4df1c7bd8deab53c3c2dd73f3addcf504939d2868c82e14751f77a491d851466

Source Code:

/*
 jQuery JavaScript Library v1.6.4
 http://jquery.com/

 Copyright 2011, John Resig
 Dual licensed under the MIT or GPL Version 2 licenses.
 http://jquery.org/license

 Includes Sizzle.js
 http://sizzlejs.com/
 Copyright 2011, The Dojo Foundation
 Released under the MIT, BSD, and GPL Licenses.

 Amazon elects to use jQuery and Sizzle under the MIT license.

 Date: Mon Sep 12 18:54:48 2011 -0400
*/
(function(M){var r=window.AmazonUIPageJS||window.P,p=r._namespace||r.attributeErrors,A=p?p("AmazonUIjQuery","AmazonUI"):r;A.guardFatal?A.guardFatal(M)(A,window):A.execute(function(){M(A,window)})})(function(M,r,p){r.navigator&&r.navigator.userAgent&&M.declare("jQuery",function(){function A(a,b,d){if(d===p&&1===a.nodeType)if(d="data-"+b.replace(jb,"-$1").toLowerCase(),d=a.getAttribute(d),"string"===typeof d){try{d="true"===d?!0:"false"===d?!1:"null"===d?null:c.isNaN(d)?kb.test(d)?c.parseJSON(d):d:
parseFloat(d)}catch(e){}c.data(a,b,d)}else d=p;return d}function V(a){for(var b in a)if("toJSON"!==b)return!1;return!0}function xa(a,b,d){var e=b+"defer",f=b+"queue",g=b+"mark",h=c.data(a,e,p,!0);!h||"queue"!==d&&c.data(a,f,p,!0)||"mark"!==d&&c.data(a,g,p,!0)||setTimeout(function(){c.data(a,f,p,!0)||c.data(a,g,p,!0)||(c.removeData(a,e,!0),h.resolve())},0)}function I(){return!1}function Z(){return!0}function ya(a,b,d){var e=c.extend({},d[0]);e.type=a;e.originalEvent={};e.liveFired=p;c.event.handle.call(b,
e);e.isDefaultPrevented()&&d[0].preventDefault()}function lb(a){var b,d,e,f,g,h,k,l,n,q,p,m=[];f=[];g=c._data(this,"events");if(a.liveFired!==this&&g&&g.live&&!a.target.disabled&&(!a.button||"click"!==a.type)){a.namespace&&(p=new RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)"));a.liveFired=this;var r=g.live.slice(0);for(k=0;k<r.length;k++)g=r[k],g.origType.replace(ja,"")===a.type?f.push(g.selector):r.splice(k--,1);f=c(a.target).closest(f,a.currentTarget);l=0;for(n=f.length;l<
n;l++)for(q=f[l],k=0;k<r.length;k++)if(g=r[k],q.selector===g.selector&&(!p||p.test(g.namespace))&&!q.elem.disabled){h=q.elem;e=null;if("mouseenter"===g.preType||"mouseleave"===g.preType)a.type=g.preType,(e=c(a.relatedTarget).closest(g.selector)[0])&&c.contains(h,e)&&(e=h);e&&e===h||m.push({elem:h,handleObj:g,level:q.level})}l=0;for(n=m.length;l<n;l++){f=m[l];if(d&&f.level>d)break;a.currentTarget=f.elem;a.data=f.handleObj.data;a.handleObj=f.handleObj;p=f.handleObj.origHandler.apply(f.elem,arguments);
if(!1===p||a.isPropagationStopped())if(d=f.level,!1===p&&(b=!1),a.isImmediatePropagationStopped())break}return b}}function aa(a,b){return(a&&"*"!==a?a+".":"")+b.replace(mb,"`").replace(nb,"\x26")}function za(a){return!a||!a.parentNode||11===a.parentNode.nodeType}function Aa(a,b,d){b=b||0;if(c.isFunction(b))return c.grep(a,function(a,c){return!!b.call(a,c,a)===d});if(b.nodeType)return c.grep(a,function(a,c){return a===b===d});if("string"===typeof b){var e=c.grep(a,function(a){return 1===a.nodeType});
if(ob.test(b))return c.filter(b,e,!d);b=c.filter(b,e)}return c.grep(a,function(a,e){return 0<=c.inArray(a,b)===d})}function pb(a,b){return c.nodeName(a,"table")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function Ba(a,b){if(1===b.nodeType&&c.hasData(a)){var d=c.expando,e=c.data(a),f=c.data(b,e);if(e=e[d])if(a=e.events,f=f[d]=c.extend({},e),a){delete f.handle;f.events={};for(var g in a)for(d=0,e=a[g].length;d<e;d++)c.event.add(b,g+(a[g][d].namespace?
".":"")+a[g][d].namespace,a[g][d],a[g][d].data)}}}function Ca(a,b){var d;if(1===b.nodeType){b.clearAttributes&&b.clearAttributes();b.mergeAttributes&&b.mergeAttributes(a);d=b.nodeName.toLowerCase();if("object"===d)b.outerHTML=a.outerHTML;else if("input"===d&&("checkbox"===a.type||"radio"===a.type))a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.value);else if("option"===d)b.selected=a.defaultSelected;else if("input"===d||"textarea"===d)b.defaultValue=a.defaultValue;
b.removeAttribute(c.expando)}}function ba(a){return"getElementsByTagName"in a?a.getElementsByTagName("*"):"querySelectorAll"in a?a.querySelectorAll("*"):[]}function Da(a){if("checkbox"===a.type||"radio"===a.type)a.defaultChecked=a.checked}function Ea(a){c.nodeName(a,"input")?Da(a):"getElementsByTagName"in a&&c.grep(a.getElementsByTagName("input"),Da)}function qb(a,b){b.src?c.ajax({url:b.src,async:!1,dataType:"script"}):c.globalEval((b.text||b.textContent||b.innerHTML||"").replace(rb,"/*$0*/"));b.parentNode&&
b.parentNode.removeChild(b)}function Fa(a,b,d){var e="width"===b?a.offsetWidth:a.offsetHeight,f="width"===b?sb:tb;if(0<e)return"border"!==d&&c.each(f,function(){d||(e-=parseFloat(c.css(a,"padding"+this))||0);e="margin"===d?e+(parseFloat(c.css(a,d+this))||0):e-(parseFloat(c.css(a,"border"+this+"Width"))||0)}),e+"px";e=O(a,b,b);if(0>e||null==e)e=a.style[b]||0;e=parseFloat(e)||0;d&&c.each(f,function(){e+=parseFloat(c.css(a,"padding"+this))||0;"padding"!==d&&(e+=parseFloat(c.css(a,"border"+this+"Width"))||
0);"margin"===d&&(e+=parseFloat(c.css(a,d+this))||0)});return e+"px"}function Ga(a){return function(b,d){"string"!==typeof b&&(d=b,b="*");if(c.isFunction(d)){b=b.toLowerCase().split(Ha);for(var e=0,f=b.length,g,h;e<f;e++)g=b[e],(h=/^\+/.test(g))&&(g=g.substr(1)||"*"),g=a[g]=a[g]||[],g[h?"unshift":"push"](d)}}}function ca(a,b,c,e,f,g){f=f||b.dataTypes[0];g=g||{};g[f]=!0;f=a[f];for(var h=0,k=f?f.length:0,l=a===ka,n;h<k&&(l||!n);h++)n=f[h](b,c,e),"string"===typeof n&&(!l||g[n]?n=p:(b.dataTypes.unshift(n),
n=ca(a,b,c,e,n,g)));!l&&n||g["*"]||(n=ca(a,b,c,e,"*",g));return n}function Ia(a,b){var d,e,f=c.ajaxSettings.flatOptions||{};for(d in b)b[d]!==p&&((f[d]?a:e||(e={}))[d]=b[d]);e&&c.extend(!0,a,e)}function la(a,b,d,e){if(c.isArray(b))c.each(b,function(b,f){d||ub.test(a)?e(a,f):la(a+"["+("object"===typeof f||c.isArray(f)?b:"")+"]",f,d,e)});else if(d||null==b||"object"!==typeof b)e(a,b);else for(var f in b)la(a+"["+f+"]",b[f],d,e)}function Ja(){try{return new r.XMLHttpRequest}catch(a){}}function Ka(){setTimeout(vb,
0);return da=c.now()}function vb(){da=p}function K(a,b){var d={};c.each(La.concat.apply([],La.slice(0,b)),function(){d[this]=a});return d}function Ma(a){if(!ma[a]){var b=m.body,d=c("\x3c"+a+"\x3e").appendTo(b),e=d.css("display");d.remove();if("none"===e||""===e)C||(C=m.createElement("iframe"),C.frameBorder=C.width=C.height=0),b.appendChild(C),F&&C.createElement||(F=(C.contentWindow||C.contentDocument).document,F.write((c.support.boxModel?"\x3c!doctype html\x3e":"")+"\x3chtml\x3e\x3cbody\x3e"),F.close()),
d=F.createElement(a),F.body.appendChild(d),e=c.css(d,"display"),b.removeChild(C);ma[a]=e}return ma[a]}function na(a){return c.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}var m=r.document,wb=r.navigator,xb=r.location,c=function(){function a(){if(!b.isReady){try{m.documentElement.doScroll("left")}catch(c){setTimeout(a,1);return}b.ready()}}var b=function(a,c){return new b.fn.init(a,c,f)},c=r.jQuery,e=r.$,f,g=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,h=/\S/,k=/^\s+/,l=/\s+$/,n=/\d/,
q=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,J=/^[\],:{}\s]*$/,D=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,v=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,y=/(?:^|:|,)(?:\s*\[)+/g,w=/(webkit)[ \/]([\w.]+)/,z=/(opera)(?:.*version)?[ \/]([\w.]+)/,A=/(msie) ([\w.]+)/,x=/(mozilla)(?:.*? rv:([\w.]+))?/,t=/-([a-z]|[0-9])/ig,yb=/^-ms-/,ea=function(a,b){return(b+"").toUpperCase()},W=wb.userAgent,fa,T,zb=Object.prototype.toString,oa=Object.prototype.hasOwnProperty,pa=Array.prototype.push,X=Array.prototype.slice,
Na=String.prototype.trim,u=Array.prototype.indexOf,Oa={};b.fn=b.prototype={constructor:b,init:function(a,c,d){var e;if(!a)return this;if(a.nodeType)return this.context=this[0]=a,this.length=1,this;if("body"===a&&!c&&m.body)return this.context=m,this[0]=m.body,this.selector=a,this.length=1,this;if("string"===typeof a){e="\x3c"===a.charAt(0)&&"\x3e"===a.charAt(a.length-1)&&3<=a.length?[null,a,null]:g.exec(a);if(!e||!e[1]&&c)return!c||c.jquery?(c||d).find(a):this.constructor(c).find(a);if(e[1])return d=
(c=c instanceof b?c[0]:c)?c.ownerDocument||c:m,(a=q.exec(a))?b.isPlainObject(c)?(a=[m.createElement(a[1])],b.fn.attr.call(a,c,!0)):a=[d.createElement(a[1])]:(a=b.buildFragment([e[1]],[d]),a=(a.cacheable?b.clone(a.fragment):a.fragment).childNodes),b.merge(this,a);if((c=m.getElementById(e[2]))&&c.parentNode){if(c.id!==e[2])return d.find(a);this.length=1;this[0]=c}this.context=m;this.selector=a;return this}if(b.isFunction(a))return d.ready(a);a.selector!==p&&(this.selector=a.selector,this.context=a.context);
return b.makeArray(a,this)},selector:"",jquery:"1.6.4",length:0,size:function(){return this.length},toArray:function(){return X.call(this,0)},get:function(a){return null==a?this.toArray():0>a?this[this.length+a]:this[a]},pushStack:function(a,c,d){var e=this.constructor();b.isArray(a)?pa.apply(e,a):b.merge(e,a);e.prevObject=this;e.context=this.context;"find"===c?e.selector=this.selector+(this.selector?" ":"")+d:c&&(e.selector=this.selector+"."+c+"("+d+")");return e},each:function(a,c){return b.each(this,
a,c)},ready:function(a){b.bindReady();fa.done(a);return this},eq:function(a){return-1===a?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(X.apply(this,arguments),"slice",X.call(arguments).join(","))},map:function(a){return this.pushStack(b.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:pa,sort:[].sort,splice:[].splice};b.fn.init.prototype=
b.fn;b.extend=b.fn.extend=function(){var a,c,d,e,f,g=arguments[0]||{},x=1,h=arguments.length,t=!1;"boolean"===typeof g&&(t=g,g=arguments[1]||{},x=2);"object"===typeof g||b.isFunction(g)||(g={});h===x&&(g=this,--x);for(;x<h;x++)if(null!=(a=arguments[x]))for(c in a)d=g[c],e=a[c],"__proto__"!==c&&g!==e&&(t&&e&&(b.isPlainObject(e)||(f=b.isArray(e)))?(f?(f=!1,d=d&&b.isArray(d)?d:[]):d=d&&b.isPlainObject(d)?d:{},g[c]=b.extend(t,d,e)):e!==p&&(g[c]=e));return g};b.extend({noConflict:function(a){r.$===b&&
(r.$=e);a&&r.jQuery===b&&(r.jQuery=c);return b},isReady:!1,readyWait:1,holdReady:function(a){a?b.readyWait++:b.ready(!0)},ready:function(a){if(!0===a&&!--b.readyWait||!0!==a&&!b.isReady){if(!m.body)return setTimeout(b.ready,1);b.isReady=!0;!0!==a&&0<--b.readyWait||(fa.resolveWith(m,[b]),b.fn.trigger&&b(m).trigger("ready").unbind("ready"))}},bindReady:function(){if(!fa){fa=b._Deferred();if("complete"===m.readyState)return setTimeout(b.ready,1);if(m.addEventListener)m.addEventListener("DOMContentLoaded",
T,!1),r.addEventListener("load",b.ready,!1);else if(m.attachEvent){m.attachEvent("onreadystatechange",T);r.attachEvent("onload",b.ready);var c=!1;try{c=null==r.frameElement}catch(d){}m.documentElement.doScroll&&c&&a()}}},isFunction:function(a){return"function"===b.type(a)},isArray:Array.isArray||function(a){return"array"===b.type(a)},isWindow:function(a){return a&&"object"===typeof a&&"setInterval"in a},isNaN:function(a){return null==a||!n.test(a)||isNaN(a)},type:function(a){return null==a?String(a):
Oa[zb.call(a)]||"object"},isPlainObject:function(a){if(!a||"object"!==b.type(a)||a.nodeType||b.isWindow(a))return!1;try{if(a.constructor&&!oa.call(a,"constructor")&&!oa.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}for(var d in a);return d===p||oa.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw a;},parseJSON:function(a){if("string"!==typeof a||!a)return null;a=b.trim(a);if(r.JSON&&r.JSON.parse)return r.JSON.parse(a);if(J.test(a.replace(D,
"@").replace(v,"]").replace(y,"")))return(new Function("return "+a))();b.error("Invalid JSON: "+a)},parseXML:function(a){var c,d;try{r.DOMParser?(d=new DOMParser,c=d.parseFromString(a,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(a))}catch(e){c=p}c&&c.documentElement&&!c.getElementsByTagName("parsererror").length||b.error("Invalid XML: "+a);return c},noop:function(){},globalEval:function(a){a&&h.test(a)&&(r.execScript||function(a){r.eval.call(r,a)})(a)},camelCase:function(a){return a.replace(yb,
"ms-").replace(t,ea)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var e,f=0,g=a.length,x=g===p||b.isFunction(a);if(d)if(x)for(e in a){if(!1===c.apply(a[e],d))break}else for(;f<g&&!1!==c.apply(a[f++],d););else if(x)for(e in a){if(!1===c.call(a[e],e,a[e]))break}else for(;f<g&&!1!==c.call(a[f],f,a[f++]););return a},trim:Na?function(a){return null==a?"":Na.call(a)}:function(a){return null==a?"":a.toString().replace(k,"").replace(l,"")},makeArray:function(a,
c){c=c||[];if(null!=a){var d=b.type(a);null==a.length||"string"===d||"function"===d||"regexp"===d||b.isWindow(a)?pa.call(c,a):b.merge(c,a)}return c},inArray:function(a,b){if(!b)return-1;if(u)return u.call(b,a);for(var c=0,d=b.length;c<d;c++)if(b[c]===a)return c;return-1},merge:function(a,b){var c=a.length,d=0;if("number"===typeof b.length)for(var e=b.length;d<e;d++)a[c++]=b[d];else for(;b[d]!==p;)a[c++]=b[d++];a.length=c;return a},grep:function(a,b,c){var d=[],e;c=!!c;for(var f=0,g=a.length;f<g;f++)e=
!!b(a[f],f),c!==e&&d.push(a[f]);return d},map:function(a,c,d){var e,f,g=[],x=0,h=a.length;if(a instanceof b||h!==p&&"number"===typeof h&&(0<h&&a[0]&&a[h-1]||0===h||b.isArray(a)))for(;x<h;x++)e=c(a[x],x,d),null!=e&&(g[g.length]=e);else for(f in a)e=c(a[f],f,d),null!=e&&(g[g.length]=e);return g.concat.apply([],g)},guid:1,proxy:function(a,c){if("string"===typeof c){var d=a[c];c=a;a=d}if(!b.isFunction(a))return p;var e=X.call(arguments,2),d=function(){return a.apply(c,e.concat(X.call(arguments)))};d.guid=
a.guid=a.guid||d.guid||b.guid++;return d},access:function(a,c,d,e,f,g){var x=a.length;if("object"===typeof c){for(var h in c)b.access(a,h,c[h],e,f,d);return a}if(d!==p){e=!g&&e&&b.isFunction(d);for(h=0;h<x;h++)f(a[h],c,e?d.call(a[h],h,f(a[h],c)):d,g);return a}return x?f(a[0],c):p},now:function(){return(new Date).getTime()},uaMatch:function(a){a=a.toLowerCase();a=w.exec(a)||z.exec(a)||A.exec(a)||0>a.indexOf("compatible")&&x.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}},sub:function(){function a(b,
c){return new a.fn.init(b,c)}b.extend(!0,a,this);a.superclass=this;a.fn=a.prototype=this();a.fn.constructor=a;a.sub=this.sub;a.fn.init=function(d,e){e&&e instanceof b&&!(e instanceof a)&&(e=a(e));return b.fn.init.call(this,d,e,c)};a.fn.init.prototype=a.fn;var c=a(m);return a},browser:{}});b.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){Oa["[object "+b+"]"]=b.toLowerCase()});W=b.uaMatch(W);W.browser&&(b.browser[W.browser]=!0,b.browser.version=W.version);b.browser.webkit&&
(b.browser.safari=!0);h.test(" ")&&(k=/^[\s\xA0]+/,l=/[\s\xA0]+$/);f=b(m);m.addEventListener?T=function(){m.removeEventListener("DOMContentLoaded",T,!1);b.ready()}:m.attachEvent&&(T=function(){"complete"===m.readyState&&(m.detachEvent("onreadystatechange",T),b.ready())});return b}(),qa="done fail isResolved isRejected promise then always pipe".split(" "),Pa=[].slice;c.extend({_Deferred:function(){var a=[],b,d,e,f={done:function(){if(!e){var d=arguments,h,k,l,n,q;b&&(q=b,b=0);h=0;for(k=d.length;h<
k;h++)l=d[h],n=c.type(l),"array"===n?f.done.apply(f,l):"function"===n&&a.push(l);q&&f.resolveWith(q[0],q[1])}return this},resolveWith:function(c,f){if(!e&&!b&&!d){f=f||[];d=1;try{for(;a[0];)a.shift().apply(c,f)}finally{b=[c,f],d=0}}return this},resolve:function(){f.resolveWith(this,arguments);return this},isResolved:function(){return!(!d&&!b)},cancel:function(){e=1;a=[];return this}};return f},Deferred:function(a){var b=c._Deferred(),d=c._Deferred(),e;c.extend(b,{then:function(a,c){b.done(a).fail(c);
return this},always:function(){return b.done.apply(b,arguments).fail.apply(this,arguments)},fail:d.done,rejectWith:d.resolveWith,reject:d.resolve,isRejected:d.isResolved,pipe:function(a,d){return c.Deferred(function(e){c.each({done:[a,"resolve"],fail:[d,"reject"]},function(a,d){var f=d[0],g=d[1],p;if(c.isFunction(f))b[a](function(){if((p=f.apply(this,arguments))&&c.isFunction(p.promise))p.promise().then(e.resolve,e.reject);else e[g+"With"](this===b?e:this,[p])});else b[a](e[g])})}).promise()},promise:function(a){if(null==
a){if(e)return e;e=a={}}for(var c=qa.length;c--;)a[qa[c]]=b[qa[c]];return a}});b.done(d.cancel).fail(b.cancel);delete b.cancel;a&&a.call(b,b);return b},when:function(a){function b(a){return function(b){d[a]=1<arguments.length?Pa.call(arguments,0):b;--g||h.resolveWith(h,Pa.call(d,0))}}var d=arguments,e=0,f=d.length,g=f,h=1>=f&&a&&c.isFunction(a.promise)?a:c.Deferred();if(1<f){for(;e<f;e++)d[e]&&c.isFunction(d[e].promise)?d[e].promise().then(b(e),h.reject):--g;g||h.resolveWith(h,d)}else h!==a&&h.resolveWith(h,
f?[a]:[]);return h.promise()}});c.support=function(){var a=m.createElement("div"),b=m.documentElement,d,e,f,g,h,k;a.setAttribute("className","t");a.innerHTML="   \x3clink/\x3e\x3ctable\x3e\x3c/table\x3e\x3ca href\x3d'/a' style\x3d'top:1px;float:left;opacity:.55;'\x3ea\x3c/a\x3e\x3cinput type\x3d'checkbox'/\x3e";d=a.getElementsByTagName("*");e=a.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};f=m.createElement("select");g=f.appendChild(m.createElement("option"));d=a.getElementsByTagName("input")[0];
h={leadingWhitespace:3===a.firstChild.nodeType,tbody:!a.getElementsByTagName("tbody").length,htmlSerialize:!!a.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:"/a"===e.getAttribute("href"),opacity:/^0.55$/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:"on"===d.value,optSelected:g.selected,getSetAttribute:"t"!==a.className,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,
reliableMarginRight:!0};d.checked=!0;h.noCloneChecked=d.cloneNode(!0).checked;f.disabled=!0;h.optDisabled=!g.disabled;try{delete a.test}catch(l){h.deleteExpando=!1}!a.addEventListener&&a.attachEvent&&a.fireEvent&&(a.attachEvent("onclick",function(){h.noCloneEvent=!1}),a.cloneNode(!0).fireEvent("onclick"));d=m.createElement("input");d.value="t";d.setAttribute("type","radio");h.radioValue="t"===d.value;d.setAttribute("checked","checked");a.appendChild(d);e=m.createDocumentFragment();e.appendChild(a.firstChild);
h.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked;a.innerHTML="";a.style.width=a.style.paddingLeft="1px";f=m.getElementsByTagName("body")[0];e=m.createElement(f?"div":"body");g={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};f&&c.extend(g,{position:"absolute",left:"-1000px",top:"-1000px"});for(k in g)e.style[k]=g[k];e.appendChild(a);b=f||b;b.insertBefore(e,b.firstChild);h.appendChecked=d.checked;c.boxModel=h.boxModel="CSS1Compat"===m.compatMode;"zoom"in a.style&&
(a.style.display="inline",a.style.zoom=1,h.inlineBlockNeedsLayout=2===a.offsetWidth,a.style.display="",a.innerHTML="\x3cdiv style\x3d'width:4px;'\x3e\x3c/div\x3e",h.shrinkWrapBlocks=2!==a.offsetWidth);a.innerHTML="\x3ctable\x3e\x3ctr\x3e\x3ctd style\x3d'padding:0;border:0;display:none'\x3e\x3c/td\x3e\x3ctd\x3et\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e";f=a.getElementsByTagName("td");d=0===f[0].offsetHeight;f[0].style.display="";f[1].style.display="none";h.reliableHiddenOffsets=d&&0===f[0].offsetHeight;
a.innerHTML="";m.defaultView&&m.defaultView.getComputedStyle&&(d=m.createElement("div"),d.style.width="0",d.style.marginRight="0",a.appendChild(d),h.reliableMarginRight=0===(parseInt((m.defaultView.getComputedStyle(d,null)||{marginRight:0}).marginRight,10)||0));e.innerHTML="";b.removeChild(e);if(a.attachEvent)for(k in{submit:1,change:1,focusin:1})b="on"+k,d=b in a,d||(a.setAttribute(b,"return;"),d="function"===typeof a[b]),h[k+"Bubbles"]=d;e=e=f=g=f=d=a=d=null;return h}();var kb=/^(?:\{.*\}|\[.*\])$/,
jb=/([A-Z])/g;c.extend({cache:{},uuid:0,expando:"jQuery"+(c.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?c.cache[a[c.expando]]:a[c.expando];return!!a&&!V(a)},data:function(a,b,d,e){if(c.acceptData(a)){var f=c.expando,g="string"===typeof b,h=a.nodeType,k=h?c.cache:a,l=h?a[c.expando]:a[c.expando]&&c.expando;if(!(!l||e&&l&&k[l]&&!k[l][f])||!g||d!==p){l||(h?a[c.expando]=l=++c.uuid:l=c.expando);
k[l]||(k[l]={},h||(k[l].toJSON=c.noop));if("object"===typeof b||"function"===typeof b)e?k[l][f]=c.extend(k[l][f],b):k[l]=c.extend(k[l],b);a=k[l];e&&(a[f]||(a[f]={}),a=a[f]);d!==p&&(a[c.camelCase(b)]=d);if("events"===b&&!a[b])return a[f]&&a[f].events;g?(d=a[b],null==d&&(d=a[c.camelCase(b)])):d=a;return d}}},removeData:function(a,b,d){if(c.acceptData(a)){var e,f=c.expando,g=a.nodeType,h=g?c.cache:a,k=g?a[c.expando]:c.expando;if(h[k]){if(b&&(e=d?h[k][f]:h[k])&&(e[b]||(b=c.camelCase(b)),delete e[b],!V(e))||
d&&(delete h[k][f],!V(h[k])))return;b=h[k][f];c.support.deleteExpando||!h.setInterval?delete h[k]:h[k]=null;b?(h[k]={},g||(h[k].toJSON=c.noop),h[k][f]=b):g&&(c.support.deleteExpando?delete a[c.expando]:a.removeAttribute?a.removeAttribute(c.expando):a[c.expando]=null)}}},_data:function(a,b,d){return c.data(a,b,d,!0)},acceptData:function(a){if(a.nodeName){var b=c.noData[a.nodeName.toLowerCase()];if(b)return!(!0===b||a.getAttribute("classid")!==b)}return!0}});c.fn.extend({data:function(a,b){var d=null;
if("undefined"===typeof a){if(this.length&&(d=c.data(this[0]),1===this[0].nodeType))for(var e=this[0].attributes,f,g=0,h=e.length;g<h;g++)f=e[g].name,0===f.indexOf("data-")&&(f=c.camelCase(f.substring(5)),A(this[0],f,d[f]));return d}if("object"===typeof a)return this.each(function(){c.data(this,a)});var k=a.split(".");k[1]=k[1]?"."+k[1]:"";return b===p?(d=this.triggerHandler("getData"+k[1]+"!",[k[0]]),d===p&&this.length&&(d=c.data(this[0],a),d=A(this[0],a,d)),d===p&&k[1]?this.data(k[0]):d):this.each(function(){var d=
c(this),e=[k[0],b];d.triggerHandler("setData"+k[1]+"!",e);c.data(this,a,b);d.triggerHandler("changeData"+k[1]+"!",e)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",c.data(a,b,(c.data(a,b,p,!0)||0)+1,!0))},_unmark:function(a,b,d){!0!==a&&(d=b,b=a,a=!1);if(b){d=d||"fx";var e=d+"mark";(a=a?0:(c.data(b,e,p,!0)||1)-1)?c.data(b,e,a,!0):(c.removeData(b,e,!0),xa(b,d,"mark"))}},queue:function(a,b,d){if(a){b=(b||"fx")+"queue";
var e=c.data(a,b,p,!0);d&&(!e||c.isArray(d)?e=c.data(a,b,c.makeArray(d),!0):e.push(d));return e||[]}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),e=d.shift();"inprogress"===e&&(e=d.shift());e&&("fx"===b&&d.unshift("inprogress"),e.call(a,function(){c.dequeue(a,b)}));d.length||(c.removeData(a,b+"queue",!0),xa(a,b,"queue"))}});c.fn.extend({queue:function(a,b){"string"!==typeof a&&(b=a,a="fx");return b===p?c.queue(this[0],a):this.each(function(){var d=c.queue(this,a,b);"fx"===a&&"inprogress"!==
d[0]&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){function d(){--g||e.resolveWith(f,[f])}"string"!==typeof a&&(a=p);a=a||"fx";var e=c.Deferred(),f=this;b=f.length;var g=1,h=a+"defer",k=a+"queue";a+="mark";for(var l;b--;)if(l=c.data(f[b],
h,p,!0)||(c.data(f[b],k,p,!0)||c.data(f[b],a,p,!0))&&c.data(f[b],h,c._Deferred(),!0))g++,l.done(d);d();return e.promise()}});var Qa=/[\n\t\r]/g,ra=/\s+/,Ab=/\r/g,Bb=/^(?:button|input)$/i,Cb=/^(?:button|input|object|select|textarea)$/i,Db=/^a(?:rea)?$/i,Ra=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,L,Sa;c.fn.extend({attr:function(a,b){return c.access(this,a,b,!0,c.attr)},removeAttr:function(a){return this.each(function(){c.removeAttr(this,
a)})},prop:function(a,b){return c.access(this,a,b,!0,c.prop)},removeProp:function(a){a=c.propFix[a]||a;return this.each(function(){try{this[a]=p,delete this[a]}catch(b){}})},addClass:function(a){var b,d,e,f,g,h,k;if(c.isFunction(a))return this.each(function(b){c(this).addClass(a.call(this,b,this.className))});if(a&&"string"===typeof a)for(b=a.split(ra),d=0,e=this.length;d<e;d++)if(f=this[d],1===f.nodeType)if(f.className||1!==b.length){g=" "+f.className+" ";h=0;for(k=b.length;h<k;h++)~g.indexOf(" "+
b[h]+" ")||(g+=b[h]+" ");f.className=c.trim(g)}else f.className=a;return this},removeClass:function(a){var b,d,e,f,g,h,k;if(c.isFunction(a))return this.each(function(b){c(this).removeClass(a.call(this,b,this.className))});if(a&&"string"===typeof a||a===p)for(b=(a||"").split(ra),d=0,e=this.length;d<e;d++)if(f=this[d],1===f.nodeType&&f.className)if(a){g=(" "+f.className+" ").replace(Qa," ");h=0;for(k=b.length;h<k;h++)g=g.replace(" "+b[h]+" "," ");f.className=c.trim(g)}else f.className="";return this},
toggleClass:function(a,b){var d=typeof a,e="boolean"===typeof b;return c.isFunction(a)?this.each(function(d){c(this).toggleClass(a.call(this,d,this.className,b),b)}):this.each(function(){if("string"===d)for(var f,g=0,h=c(this),k=b,l=a.split(ra);f=l[g++];)k=e?k:!h.hasClass(f),h[k?"addClass":"removeClass"](f);else if("undefined"===d||"boolean"===d)this.className&&c._data(this,"__className__",this.className),this.className=this.className||!1===a?"":c._data(this,"__className__")||""})},hasClass:function(a){a=
" "+a+" ";for(var b=0,c=this.length;b<c;b++)if(1===this[b].nodeType&&-1<(" "+this[b].className+" ").replace(Qa," ").indexOf(a))return!0;return!1},val:function(a){var b,d,e=this[0];if(!arguments.length){if(e){if((b=c.valHooks[e.nodeName.toLowerCase()]||c.valHooks[e.type])&&"get"in b&&(d=b.get(e,"value"))!==p)return d;d=e.value;return"string"===typeof d?d.replace(Ab,""):null==d?"":d}return p}var f=c.isFunction(a);return this.each(function(d){var e=c(this);1===this.nodeType&&(d=f?a.call(this,d,e.val()):
a,null==d?d="":"number"===typeof d?d+="":c.isArray(d)&&(d=c.map(d,function(a){return null==a?"":a+""})),b=c.valHooks[this.nodeName.toLowerCase()]||c.valHooks[this.type],b&&"set"in b&&b.set(this,d,"value")!==p||(this.value=d))})}});c.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,d=a.selectedIndex,e=[],f=a.options;a="select-one"===a.type;if(0>d)return null;for(var g=a?d:0,h=a?d+1:f.length;g<h;g++)if(b=f[g],!(!b.selected||
(c.support.optDisabled?b.disabled:null!==b.getAttribute("disabled"))||b.parentNode.disabled&&c.nodeName(b.parentNode,"optgroup"))){b=c(b).val();if(a)return b;e.push(b)}return a&&!e.length&&f.length?c(f[d]).val():e},set:function(a,b){var d=c.makeArray(b);c(a).find("option").each(function(){this.selected=0<=c.inArray(c(this).val(),d)});d.length||(a.selectedIndex=-1);return d}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attrFix:{tabindex:"tabIndex"},attr:function(a,
b,d,e){var f=a.nodeType;if(!a||3===f||8===f||2===f)return p;if(e&&b in c.attrFn)return c(a)[b](d);if(!("getAttribute"in a))return c.prop(a,b,d);var g,h;if(e=1!==f||!c.isXMLDoc(a))b=c.attrFix[b]||b,(h=c.attrHooks[b])||(Ra.test(b)?h=Sa:L&&(h=L));if(d!==p){if(null===d)return c.removeAttr(a,b),p;if(h&&"set"in h&&e&&(g=h.set(a,d,b))!==p)return g;a.setAttribute(b,""+d);return d}if(h&&"get"in h&&e&&null!==(g=h.get(a,b)))return g;g=a.getAttribute(b);return null===g?p:g},removeAttr:function(a,b){var d;1===
a.nodeType&&(b=c.attrFix[b]||b,c.attr(a,b,""),a.removeAttribute(b),Ra.test(b)&&(d=c.propFix[b]||b)in a&&(a[d]=!1))},attrHooks:{type:{set:function(a,b){if(Bb.test(a.nodeName)&&a.parentNode)c.error("type property can't be changed");else if(!c.support.radioValue&&"radio"===b&&c.nodeName(a,"input")){var d=a.value;a.setAttribute("type",b);d&&(a.value=d);return b}}},value:{get:function(a,b){return L&&c.nodeName(a,"button")?L.get(a,b):b in a?a.value:null},set:function(a,b,d){if(L&&c.nodeName(a,"button"))return L.set(a,
b,d);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,b,d){var e=a.nodeType;if(!a||3===e||8===e||2===e)return p;var f,g;1===e&&c.isXMLDoc(a)||(b=c.propFix[b]||b,g=c.propHooks[b]);return d!==p?g&&"set"in g&&(f=g.set(a,d,b))!==p?f:a[b]=d:g&&"get"in g&&
null!==(f=g.get(a,b))?f:a[b]},propHooks:{tabIndex:{get:function(a){var b=a.getAttributeNode("tabindex");return b&&b.specified?parseInt(b.value,10):Cb.test(a.nodeName)||Db.test(a.nodeName)&&a.href?0:p}}}});c.attrHooks.tabIndex=c.propHooks.tabIndex;Sa={get:function(a,b){var d;return!0===c.prop(a,b)||(d=a.getAttributeNode(b))&&!1!==d.nodeValue?b.toLowerCase():p},set:function(a,b,d){!1===b?c.removeAttr(a,d):(b=c.propFix[d]||d,b in a&&(a[b]=!0),a.setAttribute(d,d.toLowerCase()));return d}};c.support.getSetAttribute||
(L=c.valHooks.button={get:function(a,b){return(a=a.getAttributeNode(b))&&""!==a.nodeValue?a.nodeValue:p},set:function(a,b,c){var e=a.getAttributeNode(c);e||(e=m.createAttribute(c),a.setAttributeNode(e));return e.nodeValue=b+""}},c.each(["width","height"],function(a,b){c.attrHooks[b]=c.extend(c.attrHooks[b],{set:function(a,c){if(""===c)return a.setAttribute(b,"auto"),c}})}));c.support.hrefNormalized||c.each(["href","src","width","height"],function(a,b){c.attrHooks[b]=c.extend(c.attrHooks[b],{get:function(a){a=
a.getAttribute(b,2);return null===a?p:a}})});c.support.style||(c.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||p},set:function(a,b){return a.style.cssText=""+b}});c.support.optSelected||(c.propHooks.selected=c.extend(c.propHooks.selected,{get:function(a){if(a=a.parentNode)a.selectedIndex,a.parentNode&&a.parentNode.selectedIndex;return null}}));c.support.checkOn||c.each(["radio","checkbox"],function(){c.valHooks[this]={get:function(a){return null===a.getAttribute("value")?
"on":a.value}}});c.each(["radio","checkbox"],function(){c.valHooks[this]=c.extend(c.valHooks[this],{set:function(a,b){if(c.isArray(b))return a.checked=0<=c.inArray(c(a).val(),b)}})});var ja=/\.(.*)$/,sa=/^(?:textarea|input|select)$/i,mb=/\./g,nb=/ /g,Eb=/[^\w\s.|`]/g,Fb=function(a){return a.replace(Eb,"\\$\x26")};c.event={add:function(a,b,d,e){if(3!==a.nodeType&&8!==a.nodeType){if(!1===d)d=I;else if(!d)return;var f,g;d.handler&&(f=d,d=f.handler);d.guid||(d.guid=c.guid++);if(g=c._data(a)){var h=g.events,
k=g.handle;h||(g.events=h={});k||(g.handle=k=function(a){return"undefined"===typeof c||a&&c.event.triggered===a.type?p:c.event.handle.apply(k.elem,arguments)});k.elem=a;b=b.split(" ");for(var l,n=0,q;l=b[n++];){g=f?c.extend({},f):{handler:d,data:e};-1<l.indexOf(".")?(q=l.split("."),l=q.shift(),g.namespace=q.slice(0).sort().join(".")):(q=[],g.namespace="");g.type=l;g.guid||(g.guid=d.guid);var m=h[l],r=c.event.special[l]||{};m||(m=h[l]=[],r.setup&&!1!==r.setup.call(a,e,q,k)||(a.addEventListener?a.addEventListener(l,
k,!1):a.attachEvent&&a.attachEvent("on"+l,k)));r.add&&(r.add.call(a,g),g.handler.guid||(g.handler.guid=d.guid));m.push(g);c.event.global[l]=!0}a=null}}},global:{},remove:function(a,b,d,e){if(3!==a.nodeType&&8!==a.nodeType){!1===d&&(d=I);var f,g,h=0,k,l,n,q,m,r,v=c.hasData(a)&&c._data(a),y=v&&v.events;if(v&&y)if(b&&b.type&&(d=b.handler,b=b.type),!b||"string"===typeof b&&"."===b.charAt(0))for(f in b=b||"",y)c.event.remove(a,f+b);else{for(b=b.split(" ");f=b[h++];)if(q=f,k=0>f.indexOf("."),l=[],k||(l=
f.split("."),f=l.shift(),n=new RegExp("(^|\\.)"+c.map(l.slice(0).sort(),Fb).join("\\.(?:.*\\.)?")+"(\\.|$)")),m=y[f])if(d){q=c.event.special[f]||{};for(g=e||0;g<m.length;g++)if(r=m[g],d.guid===r.guid){if(k||n.test(r.namespace))null==e&&m.splice(g--,1),q.remove&&q.remove.call(a,r);if(null!=e)break}if(0===m.length||null!=e&&1===m.length)q.teardown&&!1!==q.teardown.call(a,l)||c.removeEvent(a,f,v.handle),delete y[f]}else for(g=0;g<m.length;g++)if(r=m[g],k||n.test(r.namespace))c.event.remove(a,q,r.handler,
g),m.splice(g--,1);if(c.isEmptyObject(y)){if(b=v.handle)b.elem=null;delete v.events;delete v.handle;c.isEmptyObject(v)&&c.removeData(a,p,!0)}}}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(a,b,d,e){var f=a.type||a,g=[],h;0<=f.indexOf("!")&&(f=f.slice(0,-1),h=!0);0<=f.indexOf(".")&&(g=f.split("."),f=g.shift(),g.sort());if(d&&!c.event.customEvent[f]||c.event.global[f]){a="object"===typeof a?a[c.expando]?a:new c.Event(f,a):new c.Event(f);a.type=f;a.exclusive=h;a.namespace=g.join(".");
a.namespace_re=new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.)?")+"(\\.|$)");if(e||!d)a.preventDefault(),a.stopPropagation();if(!d)c.each(c.cache,function(){var d=this[c.expando];d&&d.events&&d.events[f]&&c.event.trigger(a,b,d.handle.elem)});else if(3!==d.nodeType&&8!==d.nodeType){a.result=p;a.target=d;b=null!=b?c.makeArray(b):[];b.unshift(a);g=d;e=0>f.indexOf(":")?"on"+f:"";do h=c._data(g,"handle"),a.currentTarget=g,h&&h.apply(g,b),e&&c.acceptData(g)&&g[e]&&!1===g[e].apply(g,b)&&(a.result=!1,a.preventDefault()),
g=g.parentNode||g.ownerDocument||g===a.target.ownerDocument&&r;while(g&&!a.isPropagationStopped());if(!a.isDefaultPrevented()){var k,g=c.event.special[f]||{};if(!(g._default&&!1!==g._default.call(d.ownerDocument,a)||"click"===f&&c.nodeName(d,"a"))&&c.acceptData(d)){try{e&&d[f]&&((k=d[e])&&(d[e]=null),c.event.triggered=f,d[f]())}catch(l){}k&&(d[e]=k);c.event.triggered=p}}return a.result}}},handle:function(a){a=c.event.fix(a||r.event);var b=((c._data(this,"events")||{})[a.type]||[]).slice(0),d=!a.exclusive&&
!a.namespace,e=Array.prototype.slice.call(arguments,0);e[0]=a;a.currentTarget=this;for(var f=0,g=b.length;f<g;f++){var h=b[f];if(d||a.namespace_re.test(h.namespace))if(a.handler=h.handler,a.data=h.data,a.handleObj=h,h=h.handler.apply(this,e),h!==p&&(a.result=h,!1===h&&(a.preventDefault(),a.stopPropagation())),a.isImmediatePropagationStopped())break}return a.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
fix:function(a){if(a[c.expando])return a;var b=a;a=c.Event(b);for(var d=this.props.length,e;d;)e=this.props[--d],a[e]=b[e];a.target||(a.target=a.srcElement||m);3===a.target.nodeType&&(a.target=a.target.parentNode);!a.relatedTarget&&a.fromElement&&(a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement);null==a.pageX&&null!=a.clientX&&(d=a.target.ownerDocument||m,b=d.documentElement,d=d.body,a.pageX=a.clientX+(b&&b.scrollLeft||d&&d.scrollLeft||0)-(b&&b.clientLeft||d&&d.clientLeft||0),a.pageY=
a.clientY+(b&&b.scrollTop||d&&d.scrollTop||0)-(b&&b.clientTop||d&&d.clientTop||0));null!=a.which||null==a.charCode&&null==a.keyCode||(a.which=null!=a.charCode?a.charCode:a.keyCode);!a.metaKey&&a.ctrlKey&&(a.metaKey=a.ctrlKey);a.which||a.button===p||(a.which=a.button&1?1:a.button&2?3:a.button&4?2:0);return a},guid:1E8,proxy:c.proxy,special:{ready:{setup:c.bindReady,teardown:c.noop},live:{add:function(a){c.event.add(this,aa(a.origType,a.selector),c.extend({},a,{handler:lb,guid:a.handler.guid}))},remove:function(a){c.event.remove(this,
aa(a.origType,a.selector),a)}},beforeunload:{setup:function(a,b,d){c.isWindow(this)&&(this.onbeforeunload=d)},teardown:function(a,b){this.onbeforeunload===b&&(this.onbeforeunload=null)}}}};c.removeEvent=m.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent&&a.detachEvent("on"+b,c)};c.Event=function(a,b){if(!this.preventDefault)return new c.Event(a,b);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||
!1===a.returnValue||a.getPreventDefault&&a.getPreventDefault()?Z:I):this.type=a;b&&c.extend(this,b);this.timeStamp=c.now();this[c.expando]=!0};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=Z;var a=this.originalEvent;a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=Z;var a=this.originalEvent;a&&(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=
Z;this.stopPropagation()},isDefaultPrevented:I,isPropagationStopped:I,isImmediatePropagationStopped:I};var Ta=function(a){var b=a.relatedTarget,d=!1,e=a.type;a.type=a.data;b!==this&&(b&&(d=c.contains(this,b)),d||(c.event.handle.apply(this,arguments),a.type=e))},Ua=function(a){a.type=a.data;c.event.handle.apply(this,arguments)};c.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){c.event.special[a]={setup:function(d){c.event.add(this,b,d&&d.selector?Ua:Ta,a)},teardown:function(a){c.event.remove(this,
b,a&&a.selector?Ua:Ta)}}});c.support.submitBubbles||(c.event.special.submit={setup:function(a,b){if(c.nodeName(this,"form"))return!1;c.event.add(this,"click.specialSubmit",function(a){var b=a.target,f=c.nodeName(b,"input")||c.nodeName(b,"button")?b.type:"";"submit"!==f&&"image"!==f||!c(b).closest("form").length||ya("submit",this,arguments)});c.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,f=c.nodeName(b,"input")||c.nodeName(b,"button")?b.type:"";"text"!==f&&"password"!==f||!c(b).closest("form").length||
13!==a.keyCode||ya("submit",this,arguments)})},teardown:function(a){c.event.remove(this,".specialSubmit")}});if(!c.support.changeBubbles){var Y,Va=function(a){var b=c.nodeName(a,"input")?a.type:"",d=a.value;"radio"===b||"checkbox"===b?d=a.checked:"select-multiple"===b?d=-1<a.selectedIndex?c.map(a.options,function(a){return a.selected}).join("-"):"":c.nodeName(a,"select")&&(d=a.selectedIndex);return d},ga=function(a,b){var d=a.target,e,f;sa.test(d.nodeName)&&!d.readOnly&&(e=c._data(d,"_change_data"),
f=Va(d),"focusout"===a.type&&"radio"===d.type||c._data(d,"_change_data",f),e===p||f===e||null==e&&!f||(a.type="change",a.liveFired=p,c.event.trigger(a,b,d)))};c.event.special.change={filters:{focusout:ga,beforedeactivate:ga,click:function(a){var b=a.target,d=c.nodeName(b,"input")?b.type:"";("radio"===d||"checkbox"===d||c.nodeName(b,"select"))&&ga.call(this,a)},keydown:function(a){var b=a.target,d=c.nodeName(b,"input")?b.type:"";(13===a.keyCode&&!c.nodeName(b,"textarea")||32===a.keyCode&&("checkbox"===
d||"radio"===d)||"select-multiple"===d)&&ga.call(this,a)},beforeactivate:function(a){a=a.target;c._data(a,"_change_data",Va(a))}},setup:function(a,b){if("file"===this.type)return!1;for(var d in Y)c.event.add(this,d+".specialChange",Y[d]);return sa.test(this.nodeName)},teardown:function(a){c.event.remove(this,".specialChange");return sa.test(this.nodeName)}};Y=c.event.special.change.filters;Y.focus=Y.beforeactivate}c.support.focusinBubbles||c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(a){var d=
c.event.fix(a);d.type=b;d.originalEvent={};c.event.trigger(d,null,d.target);d.isDefaultPrevented()&&a.preventDefault()}var e=0;c.event.special[b]={setup:function(){0===e++&&m.addEventListener(a,d,!0)},teardown:function(){0===--e&&m.removeEventListener(a,d,!0)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(a,e,f){var g;if("object"===typeof a){for(var h in a)this[b](h,e,a[h],f);return this}if(2===arguments.length||!1===e)f=e,e=p;"one"===b?(g=function(a){c(this).unbind(a,g);return f.apply(this,
arguments)},g.guid=f.guid||c.guid++):g=f;if("unload"===a&&"one"!==b)this.one(a,e,f);else{h=0;for(var k=this.length;h<k;h++)c.event.add(this[h],a,g,e)}return this}});c.fn.extend({unbind:function(a,b){if("object"!==typeof a||a.preventDefault)for(var d=0,e=this.length;d<e;d++)c.event.remove(this[d],a,b);else for(d in a)this.unbind(d,a[d]);return this},delegate:function(a,b,c,e){return this.live(b,c,e,a)},undelegate:function(a,b,c){return 0===arguments.length?this.unbind("live"):this.die(b,null,c,a)},
trigger:function(a,b){return this.each(function(){c.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0])return c.event.trigger(a,b,this[0],!0)},toggle:function(a){var b=arguments,d=a.guid||c.guid++,e=0,f=function(d){var f=(c.data(this,"lastToggle"+a.guid)||0)%e;c.data(this,"lastToggle"+a.guid,f+1);d.preventDefault();return b[f].apply(this,arguments)||!1};for(f.guid=d;e<b.length;)b[e++].guid=d;return this.click(f)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var ta=
{focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};c.each(["live","die"],function(a,b){c.fn[b]=function(a,e,f,g){var h=0,k,l,n=g||this.selector,q=g?this:c(this.context);if("object"===typeof a&&!a.preventDefault){for(k in a)q[b](k,e,a[k],n);return this}if("die"===b&&!a&&g&&"."===g.charAt(0))return q.unbind(g),this;if(!1===e||c.isFunction(e))f=e||I,e=p;for(a=(a||"").split(" ");null!=(g=a[h++]);)if(k=ja.exec(g),l="",k&&(l=k[0],g=g.replace(ja,"")),"hover"===g)a.push("mouseenter"+
l,"mouseleave"+l);else if(k=g,ta[g]?(a.push(ta[g]+l),g+=l):g=(ta[g]||g)+l,"live"===b){l=0;for(var m=q.length;l<m;l++)c.event.add(q[l],"live."+aa(g,n),{data:e,selector:n,handler:f,origType:g,origHandler:f,preType:k})}else q.unbind("live."+aa(g,n),f);return this}});c.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(a,b){c.fn[b]=function(a,
c){null==c&&(c=a,a=null);return 0<arguments.length?this.bind(b,a,c):this.trigger(b)};c.attrFn&&(c.attrFn[b]=!0)});(function(){function a(a,b,c,d,e,f){e=0;for(var g=d.length;e<g;e++){var h=d[e];if(h){for(var k=!1,h=h[a];h;){if(h.sizcache===c){k=d[h.sizset];break}1!==h.nodeType||f||(h.sizcache=c,h.sizset=e);if(h.nodeName.toLowerCase()===b){k=h;break}h=h[a]}d[e]=k}}}function b(a,b,c,d,e,f){e=0;for(var g=d.length;e<g;e++){var h=d[e];if(h){for(var k=!1,h=h[a];h;){if(h.sizcache===c){k=d[h.sizset];break}if(1===
h.nodeType)if(f||(h.sizcache=c,h.sizset=e),"string"!==typeof b){if(h===b){k=!0;break}}else if(0<n.filter(b,[h]).length){k=h;break}h=h[a]}d[e]=k}}}var d=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e=0,f=Object.prototype.toString,g=!1,h=!0,k=/\\/g,l=/\W/;[0,0].sort(function(){h=!1;return 0});var n=function(a,b,c,e){c=c||[];var g=b=b||m;if(1!==b.nodeType&&9!==b.nodeType)return[];if(!a||"string"!==typeof a)return c;
var h,k,l,p,D,v=!0,w=n.isXML(b),u=[],z=a;do if(d.exec(""),h=d.exec(z))if(z=h[3],u.push(h[1]),h[2]){p=h[3];break}while(h);if(1<u.length&&r.exec(a))if(2===u.length&&q.relative[u[0]])k=A(u[0]+u[1],b);else for(k=q.relative[u[0]]?[b]:n(u.shift(),b);u.length;)a=u.shift(),q.relative[a]&&(a+=u.shift()),k=A(a,k);else if(!e&&1<u.length&&9===b.nodeType&&!w&&q.match.ID.test(u[0])&&!q.match.ID.test(u[u.length-1])&&(h=n.find(u.shift(),b,w),b=h.expr?n.filter(h.expr,h.set)[0]:h.set[0]),b)for(h=e?{expr:u.pop(),set:y(e)}:
n.find(u.pop(),1!==u.length||"~"!==u[0]&&"+"!==u[0]||!b.parentNode?b:b.parentNode,w),k=h.expr?n.filter(h.expr,h.set):h.set,0<u.length?l=y(k):v=!1;u.length;)h=D=u.pop(),q.relative[D]?h=u.pop():D="",null==h&&(h=b),q.relative[D](l,h,w);else l=[];l||(l=k);l||n.error(D||a);if("[object Array]"===f.call(l))if(v)if(b&&1===b.nodeType)for(a=0;null!=l[a];a++)l[a]&&(!0===l[a]||1===l[a].nodeType&&n.contains(b,l[a]))&&c.push(k[a]);else for(a=0;null!=l[a];a++)l[a]&&1===l[a].nodeType&&c.push(k[a]);else c.push.apply(c,
l);else y(l,c);p&&(n(p,g,c,e),n.uniqueSort(c));return c};n.uniqueSort=function(a){if(w&&(g=h,a.sort(w),g))for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1);return a};n.matches=function(a,b){return n(a,null,null,b)};n.matchesSelector=function(a,b){return 0<n(b,null,null,[a]).length};n.find=function(a,b,c){var d;if(!a)return[];for(var e=0,f=q.order.length;e<f;e++){var g,h=q.order[e];if(g=q.leftMatch[h].exec(a)){var l=g[1];g.splice(1,1);if("\\"!==l.substr(l.length-1)&&(g[1]=(g[1]||"").replace(k,
""),d=q.find[h](g,b,c),null!=d)){a=a.replace(q.match[h],"");break}}}d||(d="undefined"!==typeof b.getElementsByTagName?b.getElementsByTagName("*"):[]);return{set:d,expr:a}};n.filter=function(a,b,c,d){for(var e,f,g=a,h=[],k=b,l=b&&b[0]&&n.isXML(b[0]);a&&b.length;){for(var m in q.filter)if(null!=(e=q.leftMatch[m].exec(a))&&e[2]){var r,u,D=q.filter[m];u=e[1];f=!1;e.splice(1,1);if("\\"!==u.substr(u.length-1)){k===h&&(h=[]);if(q.preFilter[m])if(e=q.preFilter[m](e,k,c,h,d,l),!e)f=r=!0;else if(!0===e)continue;
if(e)for(var v=0;null!=(u=k[v]);v++)if(u){r=D(u,e,v,k);var y=d^!!r;c&&null!=r?y?f=!0:k[v]=!1:y&&(h.push(u),f=!0)}if(r!==p){c||(k=h);a=a.replace(q.match[m],"");if(!f)return[];break}}}if(a===g)if(null==f)n.error(a);else break;g=a}return k};n.error=function(a){throw"Syntax error, unrecognized expression: "+a;};var q=n.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,
TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")},type:function(a){return a.getAttribute("type")}},relative:{"+":function(a,b){var c=
"string"===typeof b,d=c&&!l.test(b),c=c&&!d;d&&(b=b.toLowerCase());for(var d=0,e=a.length,f;d<e;d++)if(f=a[d]){for(;(f=f.previousSibling)&&1!==f.nodeType;);a[d]=c||f&&f.nodeName.toLowerCase()===b?f||!1:f===b}c&&n.filter(b,a,!0)},"\x3e":function(a,b){var c,d="string"===typeof b,e=0,f=a.length;if(d&&!l.test(b))for(b=b.toLowerCase();e<f;e++){if(c=a[e])c=c.parentNode,a[e]=c.nodeName.toLowerCase()===b?c:!1}else{for(;e<f;e++)(c=a[e])&&(a[e]=d?c.parentNode:c.parentNode===b);d&&n.filter(b,a,!0)}},"":function(c,
d,f){var g,h=e++,k=b;"string"!==typeof d||l.test(d)||(g=d=d.toLowerCase(),k=a);k("parentNode",d,h,c,g,f)},"~":function(c,d,f){var g,h=e++,k=b;"string"!==typeof d||l.test(d)||(g=d=d.toLowerCase(),k=a);k("previousSibling",d,h,c,g,f)}},find:{ID:function(a,b,c){if("undefined"!==typeof b.getElementById&&!c)return(a=b.getElementById(a[1]))&&a.parentNode?[a]:[]},NAME:function(a,b){if("undefined"!==typeof b.getElementsByName){var c=[];b=b.getElementsByName(a[1]);for(var d=0,e=b.length;d<e;d++)b[d].getAttribute("name")===
a[1]&&c.push(b[d]);return 0===c.length?null:c}},TAG:function(a,b){if("undefined"!==typeof b.getElementsByTagName)return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,d,e,f){a=" "+a[1].replace(k,"")+" ";if(f)return a;f=0;for(var g;null!=(g=b[f]);f++)g&&(e^(g.className&&0<=(" "+g.className+" ").replace(/[\t\n\r]/g," ").indexOf(a))?c||d.push(g):c&&(b[f]=!1));return!1},ID:function(a){return a[1].replace(k,"")},TAG:function(a,b){return a[1].replace(k,"").toLowerCase()},CHILD:function(a){if("nth"===
a[1]){a[2]||n.error(a[0]);a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec("even"===a[2]&&"2n"||"odd"===a[2]&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0;a[3]=b[3]-0}else a[2]&&n.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){b=a[1]=a[1].replace(k,"");!f&&q.attrMap[b]&&(a[1]=q.attrMap[b]);a[4]=(a[4]||a[5]||"").replace(k,"");"~\x3d"===a[2]&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(a,b,c,e,f){if("not"===a[1])if(1<(d.exec(a[3])||"").length||
/^\w/.test(a[3]))a[3]=n(a[3],null,null,b);else return a=n.filter(a[3],b,c,1^f),c||e.push.apply(e,a),!1;else if(q.match.POS.test(a[0])||q.match.CHILD.test(a[0]))return!0;return a},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return!1===a.disabled&&"hidden"!==a.type},disabled:function(a){return!0===a.disabled},checked:function(a){return!0===a.checked},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return!0===a.selected},parent:function(a){return!!a.firstChild},
empty:function(a){return!a.firstChild},has:function(a,b,c){return!!n(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return"input"===a.nodeName.toLowerCase()&&"text"===c&&(b===c||null===b)},radio:function(a){return"input"===a.nodeName.toLowerCase()&&"radio"===a.type},checkbox:function(a){return"input"===a.nodeName.toLowerCase()&&"checkbox"===a.type},file:function(a){return"input"===a.nodeName.toLowerCase()&&"file"===a.type},
password:function(a){return"input"===a.nodeName.toLowerCase()&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return("input"===b||"button"===b)&&"submit"===a.type},image:function(a){return"input"===a.nodeName.toLowerCase()&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return("input"===b||"button"===b)&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},
focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return 0===b},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return 0===b%2},odd:function(a,b){return 1===b%2},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=q.filters[e];if(f)return f(a,c,b,d);if("contains"===e)return 0<=(a.textContent||a.innerText||
n.getText([a])||"").indexOf(b[3]);if("not"===e){b=b[3];c=0;for(d=b.length;c<d;c++)if(b[c]===a)return!1;return!0}n.error(e)},CHILD:function(a,b){var c=b[1],d=a;switch(c){case "only":case "first":for(;d=d.previousSibling;)if(1===d.nodeType)return!1;if("first"===c)return!0;d=a;case "last":for(;d=d.nextSibling;)if(1===d.nodeType)return!1;return!0;case "nth":var c=b[2],e=b[3];if(1===c&&0===e)return!0;b=b[0];var f=a.parentNode;if(f&&(f.sizcache!==b||!a.nodeIndex)){for(var g=0,d=f.firstChild;d;d=d.nextSibling)1===
d.nodeType&&(d.nodeIndex=++g);f.sizcache=b}a=a.nodeIndex-e;return 0===c?0===a:0===a%c&&0<=a/c}},ID:function(a,b){return 1===a.nodeType&&a.getAttribute("id")===b},TAG:function(a,b){return"*"===b&&1===a.nodeType||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return-1<(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)},ATTR:function(a,b){var c=b[1];a=q.attrHandle[c]?q.attrHandle[c](a):null!=a[c]?a[c]:a.getAttribute(c);var c=a+"",d=b[2];b=b[4];return null==a?"!\x3d"===d:"\x3d"===d?c===b:
"*\x3d"===d?0<=c.indexOf(b):"~\x3d"===d?0<=(" "+c+" ").indexOf(b):b?"!\x3d"===d?c!==b:"^\x3d"===d?0===c.indexOf(b):"$\x3d"===d?c.substr(c.length-b.length)===b:"|\x3d"===d?c===b||c.substr(0,b.length+1)===b+"-":!1:c&&!1!==a},POS:function(a,b,c,d){var e=q.setFilters[b[2]];if(e)return e(a,c,b,d)}}},r=q.match.POS,D=function(a,b){return"\\"+(b-0+1)},v;for(v in q.match)q.match[v]=new RegExp(q.match[v].source+/(?![^\[]*\])(?![^\(]*\))/.source),q.leftMatch[v]=new RegExp(/(^(?:.|\r|\n)*?)/.source+q.match[v].source.replace(/\\(\d+)/g,
D));var y=function(a,b){a=Array.prototype.slice.call(a,0);return b?(b.push.apply(b,a),b):a};try{Array.prototype.slice.call(m.documentElement.childNodes,0)[0].nodeType}catch(x){y=function(a,b){var c=0;b=b||[];if("[object Array]"===f.call(a))Array.prototype.push.apply(b,a);else if("number"===typeof a.length)for(var d=a.length;c<d;c++)b.push(a[c]);else for(;a[c];c++)b.push(a[c]);return b}}var w,z;m.documentElement.compareDocumentPosition?w=function(a,b){return a===b?(g=!0,0):a.compareDocumentPosition&&
b.compareDocumentPosition?a.compareDocumentPosition(b)&4?-1:1:a.compareDocumentPosition?-1:1}:(w=function(a,b){if(a===b)return g=!0,0;if(a.sourceIndex&&b.sourceIndex)return a.sourceIndex-b.sourceIndex;var c,d,e=[],f=[];c=a.parentNode;d=b.parentNode;var h=c;if(c===d)return z(a,b);if(!c)return-1;if(!d)return 1;for(;h;)e.unshift(h),h=h.parentNode;for(h=d;h;)f.unshift(h),h=h.parentNode;c=e.length;d=f.length;for(h=0;h<c&&h<d;h++)if(e[h]!==f[h])return z(e[h],f[h]);return h===c?z(a,f[h],-1):z(e[h],b,1)},
z=function(a,b,c){if(a===b)return c;for(a=a.nextSibling;a;){if(a===b)return-1;a=a.nextSibling}return 1});n.getText=function(a){for(var b="",c,d=0;a[d];d++)c=a[d],3===c.nodeType||4===c.nodeType?b+=c.nodeValue:8!==c.nodeType&&(b+=n.getText(c.childNodes));return b};(function(){var a=m.createElement("div"),b="script"+(new Date).getTime(),c=m.documentElement;a.innerHTML="\x3ca name\x3d'"+b+"'/\x3e";c.insertBefore(a,c.firstChild);m.getElementById(b)&&(q.find.ID=function(a,b,c){if("undefined"!==typeof b.getElementById&&
!c)return(b=b.getElementById(a[1]))?b.id===a[1]||"undefined"!==typeof b.getAttributeNode&&b.getAttributeNode("id").nodeValue===a[1]?[b]:p:[]},q.filter.ID=function(a,b){var c="undefined"!==typeof a.getAttributeNode&&a.getAttributeNode("id");return 1===a.nodeType&&c&&c.nodeValue===b});c.removeChild(a);c=a=null})();(function(){var a=m.createElement("div");a.appendChild(m.createComment(""));0<a.getElementsByTagName("*").length&&(q.find.TAG=function(a,b){b=b.getElementsByTagName(a[1]);if("*"===a[1]){a=
[];for(var c=0;b[c];c++)1===b[c].nodeType&&a.push(b[c]);b=a}return b});a.innerHTML="\x3ca href\x3d'#'\x3e\x3c/a\x3e";a.firstChild&&"undefined"!==typeof a.firstChild.getAttribute&&"#"!==a.firstChild.getAttribute("href")&&(q.attrHandle.href=function(a){return a.getAttribute("href",2)});a=null})();m.querySelectorAll&&function(){var a=n,b=m.createElement("div");b.innerHTML="\x3cp class\x3d'TEST'\x3e\x3c/p\x3e";if(!b.querySelectorAll||0!==b.querySelectorAll(".TEST").length){n=function(b,c,d,e){c=c||m;
if(!e&&!n.isXML(c)){var f=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(f&&(1===c.nodeType||9===c.nodeType)){if(f[1])return y(c.getElementsByTagName(b),d);if(f[2]&&q.find.CLASS&&c.getElementsByClassName)return y(c.getElementsByClassName(f[2]),d)}if(9===c.nodeType){if("body"===b&&c.body)return y([c.body],d);if(f&&f[3]){var g=c.getElementById(f[3]);if(g&&g.parentNode){if(g.id===f[3])return y([g],d)}else return y([],d)}try{return y(c.querySelectorAll(b),d)}catch(h){}}else if(1===c.nodeType&&"object"!==
c.nodeName.toLowerCase()){var f=c,k=(g=c.getAttribute("id"))||"__sizzle__",l=c.parentNode,p=/^\s*[+~]/.test(b);g?k=k.replace(/'/g,"\\$\x26"):c.setAttribute("id",k);p&&l&&(c=c.parentNode);try{if(!p||l)return y(c.querySelectorAll("[id\x3d'"+k+"'] "+b),d)}catch(h){}finally{g||f.removeAttribute("id")}}}return a(b,c,d,e)};for(var c in a)n[c]=a[c];b=null}}();(function(){var a=m.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var c=!b.call(m.createElement("div"),
"div"),d=!1;try{b.call(m.documentElement,"[test!\x3d'']:sizzle")}catch(e){d=!0}n.matchesSelector=function(a,e){e=e.replace(/\=\s*([^'"\]]*)\s*\]/g,"\x3d'$1']");if(!n.isXML(a))try{if(d||!q.match.PSEUDO.test(e)&&!/!=/.test(e)){var f=b.call(a,e);if(f||!c||a.document&&11!==a.document.nodeType)return f}}catch(g){}return 0<n(e,null,null,[a]).length}}})();(function(){var a=m.createElement("div");a.innerHTML="\x3cdiv class\x3d'test e'\x3e\x3c/div\x3e\x3cdiv class\x3d'test'\x3e\x3c/div\x3e";a.getElementsByClassName&&
0!==a.getElementsByClassName("e").length&&(a.lastChild.className="e",1!==a.getElementsByClassName("e").length&&(q.order.splice(1,0,"CLASS"),q.find.CLASS=function(a,b,c){if("undefined"!==typeof b.getElementsByClassName&&!c)return b.getElementsByClassName(a[1])},a=null))})();n.contains=m.documentElement.contains?function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:m.documentElement.compareDocumentPosition?function(a,b){return!!(a.compareDocumentPosition(b)&16)}:function(){return!1};n.isXML=function(a){return(a=
(a?a.ownerDocument||a:0).documentElement)?"HTML"!==a.nodeName:!1};var A=function(a,b){var c,d=[],e="";for(b=b.nodeType?[b]:b;c=q.match.PSEUDO.exec(a);)e+=c[0],a=a.replace(q.match.PSEUDO,"");a=q.relative[a]?a+"*":a;c=0;for(var f=b.length;c<f;c++)n(a,b[c],d);return n.filter(e,d)};c.find=n;c.expr=n.selectors;c.expr[":"]=c.expr.filters;c.unique=n.uniqueSort;c.text=n.getText;c.isXMLDoc=n.isXML;c.contains=n.contains})();var Gb=/Until$/,Hb=/^(?:parents|prevUntil|prevAll)/,Ib=/,/,ob=/^.[^:#\[\.,]*$/,Jb=Array.prototype.slice,
Wa=c.expr.match.POS,Kb={children:!0,contents:!0,next:!0,prev:!0};c.fn.extend({find:function(a){var b=this,d,e;if("string"!==typeof a)return c(a).filter(function(){d=0;for(e=b.length;d<e;d++)if(c.contains(b[d],this))return!0});var f=this.pushStack("","find",a),g,h,k;d=0;for(e=this.length;d<e;d++)if(g=f.length,c.find(a,this[d],f),0<d)for(h=g;h<f.length;h++)for(k=0;k<g;k++)if(f[k]===f[h]){f.splice(h--,1);break}return f},has:function(a){var b=c(a);return this.filter(function(){for(var a=0,e=b.length;a<
e;a++)if(c.contains(this,b[a]))return!0})},not:function(a){return this.pushStack(Aa(this,a,!1),"not",a)},filter:function(a){return this.pushStack(Aa(this,a,!0),"filter",a)},is:function(a){return!!a&&("string"===typeof a?0<c.filter(a,this).length:0<this.filter(a).length)},closest:function(a,b){var d=[],e,f,g=this[0];if(c.isArray(a)){var h,k={},l=1;if(g&&a.length){e=0;for(f=a.length;e<f;e++)h=a[e],k[h]||(k[h]=Wa.test(h)?c(h,b||this.context):h);for(;g&&g.ownerDocument&&g!==b;){for(h in k)a=k[h],(a.jquery?
-1<a.index(g):c(g).is(a))&&d.push({selector:h,elem:g,level:l});g=g.parentNode;l++}}return d}h=Wa.test(a)||"string"!==typeof a?c(a,b||this.context):0;e=0;for(f=this.length;e<f;e++)for(g=this[e];g;)if(h?-1<h.index(g):c.find.matchesSelector(g,a)){d.push(g);break}else if(g=g.parentNode,!g||!g.ownerDocument||g===b||11===g.nodeType)break;d=1<d.length?c.unique(d):d;return this.pushStack(d,"closest",a)},index:function(a){return a?"string"===typeof a?c.inArray(this[0],c(a)):c.inArray(a.jquery?a[0]:a,this):
this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(a,b){a="string"===typeof a?c(a,b):c.makeArray(a&&a.nodeType?[a]:a);b=c.merge(this.get(),a);return this.pushStack(za(a[0])||za(b[0])?b:c.unique(b))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&11!==a.nodeType?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",d)},next:function(a){return c.nth(a,2,"nextSibling")},
prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},
function(a,b){c.fn[a]=function(d,e){var f=c.map(this,b,d),g=Jb.call(arguments);Gb.test(a)||(e=d);e&&"string"===typeof e&&(f=c.filter(e,f));f=1<this.length&&!Kb[a]?c.unique(f):f;(1<this.length||Ib.test(e))&&Hb.test(a)&&(f=f.reverse());return this.pushStack(f,a,g.join(","))}});c.extend({filter:function(a,b,d){d&&(a=":not("+a+")");return 1===b.length?c.find.matchesSelector(b[0],a)?[b[0]]:[]:c.find.matches(a,b)},dir:function(a,b,d){var e=[];for(a=a[b];a&&9!==a.nodeType&&(d===p||1!==a.nodeType||!c(a).is(d));)1===
a.nodeType&&e.push(a),a=a[b];return e},nth:function(a,b,c,e){b=b||1;for(e=0;a&&(1!==a.nodeType||++e!==b);a=a[c]);return a},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}});var Lb=/ jQuery\d+="(?:\d+|null)"/g,ua=/^\s+/,Xa=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Ya=/<([\w:]+)/,Mb=/<tbody/i,Nb=/<|&#?\w+;/,Za=/<(?:script|object|embed|option|style)/i,$a=/checked\s*(?:[^=]|=\s*.checked.)/i,Ob=/\/(java|ecma)script/i,rb=/^\s*<!(?:\[CDATA\[|\-\-)/,
w={option:[1,"\x3cselect multiple\x3d'multiple'\x3e","\x3c/select\x3e"],legend:[1,"\x3cfieldset\x3e","\x3c/fieldset\x3e"],thead:[1,"\x3ctable\x3e","\x3c/table\x3e"],tr:[2,"\x3ctable\x3e\x3ctbody\x3e","\x3c/tbody\x3e\x3c/table\x3e"],td:[3,"\x3ctable\x3e\x3ctbody\x3e\x3ctr\x3e","\x3c/tr\x3e\x3c/tbody\x3e\x3c/table\x3e"],col:[2,"\x3ctable\x3e\x3ctbody\x3e\x3c/tbody\x3e\x3ccolgroup\x3e","\x3c/colgroup\x3e\x3c/table\x3e"],area:[1,"\x3cmap\x3e","\x3c/map\x3e"],_default:[0,"",""]};w.optgroup=w.option;w.tbody=
w.tfoot=w.colgroup=w.caption=w.thead;w.th=w.td;c.support.htmlSerialize||(w._default=[1,"div\x3cdiv\x3e","\x3c/div\x3e"]);c.fn.extend({text:function(a){return c.isFunction(a)?this.each(function(b){var d=c(this);d.text(a.call(this,b,d.text()))}):"object"!==typeof a&&a!==p?this.empty().append((this[0]&&this[0].ownerDocument||m).createTextNode(a)):c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapAll(a.call(this,b))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(!0);
this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var a=this;a.firstChild&&1===a.firstChild.nodeType;)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return c.isFunction(a)?this.each(function(b){c(this).wrapInner(a.call(this,b))}):this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||
c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){1===this.nodeType&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){1===this.nodeType&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,
"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,e;null!=(e=this[d]);d++)if(!a||c.filter(a,[e]).length)b||1!==e.nodeType||(c.cleanData(e.getElementsByTagName("*")),c.cleanData([e])),e.parentNode&&e.parentNode.removeChild(e);return this},
empty:function(){for(var a=0,b;null!=(b=this[a]);a++)for(1===b.nodeType&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);return this},clone:function(a,b){a=null==a?!1:a;b=null==b?a:b;return this.map(function(){return c.clone(this,a,b)})},html:function(a){if(a===p)return this[0]&&1===this[0].nodeType?this[0].innerHTML.replace(Lb,""):null;if("string"!==typeof a||Za.test(a)||!c.support.leadingWhitespace&&ua.test(a)||w[(Ya.exec(a)||["",""])[1].toLowerCase()])c.isFunction(a)?
this.each(function(b){var d=c(this);d.html(a.call(this,b,d.html()))}):this.empty().append(a);else{a=a.replace(Xa,"\x3c$1\x3e\x3c/$2\x3e");try{for(var b=0,d=this.length;b<d;b++)1===this[b].nodeType&&(c.cleanData(this[b].getElementsByTagName("*")),this[b].innerHTML=a)}catch(e){this.empty().append(a)}}return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(c.isFunction(a))return this.each(function(b){var d=c(this),e=d.html();d.replaceWith(a.call(this,b,e))});"string"!==typeof a&&(a=c(a).detach());
return this.each(function(){var b=this.nextSibling,d=this.parentNode;c(this).remove();b?c(b).before(a):c(d).append(a)})}return this.length?this.pushStack(c(c.isFunction(a)?a():a),"replaceWith",a):this},detach:function(a){return this.remove(a,!0)},domManip:function(a,b,d){var e,f,g,h=a[0],k=[];if(!c.support.checkClone&&3===arguments.length&&"string"===typeof h&&$a.test(h))return this.each(function(){c(this).domManip(a,b,d,!0)});if(c.isFunction(h))return this.each(function(e){var f=c(this);a[0]=h.call(this,
e,b?f.html():p);f.domManip(a,b,d)});if(this[0]){e=h&&h.parentNode;e=c.support.parentNode&&e&&11===e.nodeType&&e.childNodes.length===this.length?{fragment:e}:c.buildFragment(a,this,k);g=e.fragment;if(f=1===g.childNodes.length?g=g.firstChild:g.firstChild){b=b&&c.nodeName(f,"tr");for(var l=0,n=this.length,q=n-1;l<n;l++)d.call(b?pb(this[l],f):this[l],e.cacheable||1<n&&l<q?c.clone(g,!0,!0):g)}k.length&&c.each(k,qb)}return this}});c.buildFragment=function(a,b,d){var e,f,g,h;b&&b[0]&&(h=b[0].ownerDocument||
b[0]);h.createDocumentFragment||(h=m);1===a.length&&"string"===typeof a[0]&&512>a[0].length&&h===m&&"\x3c"===a[0].charAt(0)&&!Za.test(a[0])&&(c.support.checkClone||!$a.test(a[0]))&&(f=!0,(g=c.fragments[a[0]])&&1!==g&&(e=g));e||(e=h.createDocumentFragment(),c.clean(a,h,e,d));f&&(c.fragments[a[0]]=g?e:1);return{fragment:e,cacheable:f}};c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var e=
[];d=c(d);var f=1===this.length&&this[0].parentNode;if(f&&11===f.nodeType&&1===f.childNodes.length&&1===d.length)return d[b](this[0]),this;for(var f=0,g=d.length;f<g;f++){var h=(0<f?this.clone(!0):this).get();c(d[f])[b](h);e=e.concat(h)}return this.pushStack(e,a,d.selector)}});c.extend({clone:function(a,b,d){var e=a.cloneNode(!0),f,g,h;if(!(c.support.noCloneEvent&&c.support.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||c.isXMLDoc(a)))for(Ca(a,e),f=ba(a),g=ba(e),h=0;f[h];++h)g[h]&&Ca(f[h],g[h]);
if(b&&(Ba(a,e),d))for(f=ba(a),g=ba(e),h=0;f[h];++h)Ba(f[h],g[h]);return e},clean:function(a,b,d,e){b=b||m;"undefined"===typeof b.createElement&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||m);for(var f=[],g,h=0,k;null!=(k=a[h]);h++)if("number"===typeof k&&(k+=""),k){if("string"===typeof k)if(Nb.test(k)){k=k.replace(Xa,"\x3c$1\x3e\x3c/$2\x3e");g=(Ya.exec(k)||["",""])[1].toLowerCase();var l=w[g]||w._default,n=l[0],p=b.createElement("div");for(p.innerHTML=l[1]+k+l[2];n--;)p=p.lastChild;if(!c.support.tbody)for(n=
Mb.test(k),l="table"!==g||n?"\x3ctable\x3e"!==l[1]||n?[]:p.childNodes:p.firstChild&&p.firstChild.childNodes,g=l.length-1;0<=g;--g)c.nodeName(l[g],"tbody")&&!l[g].childNodes.length&&l[g].parentNode.removeChild(l[g]);!c.support.leadingWhitespace&&ua.test(k)&&p.insertBefore(b.createTextNode(ua.exec(k)[0]),p.firstChild);k=p.childNodes}else k=b.createTextNode(k);var r;if(!c.support.appendChecked)if(k[0]&&"number"===typeof(r=k.length))for(g=0;g<r;g++)Ea(k[g]);else Ea(k);k.nodeType?f.push(k):f=c.merge(f,
k)}if(d)for(a=function(a){return!a.type||Ob.test(a.type)},h=0;f[h];h++)!e||!c.nodeName(f[h],"script")||f[h].type&&"text/javascript"!==f[h].type.toLowerCase()?(1===f[h].nodeType&&(b=c.grep(f[h].getElementsByTagName("script"),a),f.splice.apply(f,[h+1,0].concat(b))),d.appendChild(f[h])):e.push(f[h].parentNode?f[h].parentNode.removeChild(f[h]):f[h]);return f},cleanData:function(a){for(var b,d,e=c.cache,f=c.expando,g=c.event.special,h=c.support.deleteExpando,k=0,l;null!=(l=a[k]);k++)if(!l.nodeName||!c.noData[l.nodeName.toLowerCase()])if(d=
l[c.expando]){if((b=e[d]&&e[d][f])&&b.events){for(var n in b.events)g[n]?c.event.remove(l,n):c.removeEvent(l,n,b.handle);b.handle&&(b.handle.elem=null)}h?delete l[c.expando]:l.removeAttribute&&l.removeAttribute(c.expando);delete e[d]}}});var va=/alpha\([^)]*\)/i,Pb=/opacity=([^)]*)/,Qb=/([A-Z]|^ms)/g,ab=/^-?\d+(?:px)?$/i,Rb=/^-?\d/,Sb=/^([\-+])=([\-+.\de]+)/,Tb={position:"absolute",visibility:"hidden",display:"block"},sb=["Left","Right"],tb=["Top","Bottom"],O,bb,cb;c.fn.css=function(a,b){return 2===
arguments.length&&b===p?this:c.access(this,a,b,!0,function(a,b,f){return f!==p?c.style(a,b,f):c.css(a,b)})};c.extend({cssHooks:{opacity:{get:function(a,b){return b?(a=O(a,"opacity","opacity"),""===a?"1":a):a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":c.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,d,e){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var f,g=c.camelCase(b),h=a.style,k=c.cssHooks[g];
b=c.cssProps[g]||g;if(d!==p){if(e=typeof d,"string"===e&&(f=Sb.exec(d))&&(d=+(f[1]+1)*+f[2]+parseFloat(c.css(a,b)),e="number"),!(null==d||"number"===e&&isNaN(d)||("number"!==e||c.cssNumber[g]||(d+="px"),k&&"set"in k&&(d=k.set(a,d))===p)))try{h[b]=d}catch(l){}}else return k&&"get"in k&&(f=k.get(a,!1,e))!==p?f:h[b]}},css:function(a,b,d){var e,f;b=c.camelCase(b);f=c.cssHooks[b];b=c.cssProps[b]||b;"cssFloat"===b&&(b="float");if(f&&"get"in f&&(e=f.get(a,!0,d))!==p)return e;if(O)return O(a,b)},swap:function(a,
b,c){var e={},f;for(f in b)e[f]=a.style[f],a.style[f]=b[f];c.call(a);for(f in b)a.style[f]=e[f]}});c.curCSS=c.css;c.each(["height","width"],function(a,b){c.cssHooks[b]={get:function(a,e,f){var g;if(e){if(0!==a.offsetWidth)return Fa(a,b,f);c.swap(a,Tb,function(){g=Fa(a,b,f)});return g}},set:function(a,b){if(ab.test(b)){if(b=parseFloat(b),0<=b)return b+"px"}else return b}}});c.support.opacity||(c.cssHooks.opacity={get:function(a,b){return Pb.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||
"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var d=a.style;a=a.currentStyle;var e=c.isNaN(b)?"":"alpha(opacity\x3d"+100*b+")",f=a&&a.filter||d.filter||"";d.zoom=1;if(1<=b&&""===c.trim(f.replace(va,""))&&(d.removeAttribute("filter"),a&&!a.filter))return;d.filter=va.test(f)?f.replace(va,e):f+" "+e}});c(function(){c.support.reliableMarginRight||(c.cssHooks.marginRight={get:function(a,b){var d;c.swap(a,{display:"inline-block"},function(){d=b?O(a,"margin-right","marginRight"):a.style.marginRight});
return d}})});m.defaultView&&m.defaultView.getComputedStyle&&(bb=function(a,b){var d,e;b=b.replace(Qb,"-$1").toLowerCase();if(!(e=a.ownerDocument.defaultView))return p;if(e=e.getComputedStyle(a,null))d=e.getPropertyValue(b),""!==d||c.contains(a.ownerDocument.documentElement,a)||(d=c.style(a,b));return d});m.documentElement.currentStyle&&(cb=function(a,b){var c,e=a.currentStyle&&a.currentStyle[b],f=a.runtimeStyle&&a.runtimeStyle[b],g=a.style;!ab.test(e)&&Rb.test(e)&&(c=g.left,f&&(a.runtimeStyle.left=
a.currentStyle.left),g.left="fontSize"===b?"1em":e||0,e=g.pixelLeft+"px",g.left=c,f&&(a.runtimeStyle.left=f));return""===e?"auto":e});O=bb||cb;c.expr&&c.expr.filters&&(c.expr.filters.hidden=function(a){var b=a.offsetHeight;return 0===a.offsetWidth&&0===b||!c.support.reliableHiddenOffsets&&"none"===(a.style.display||c.css(a,"display"))},c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)});var Ub=/%20/g,ub=/\[\]$/,db=/\r?\n/g,Vb=/#.*$/,Wb=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,Xb=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,
Yb=/^(?:GET|HEAD)$/,Zb=/^\/\//,eb=/\?/,$b=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,ac=/^(?:select|textarea)/i,Ha=/\s+/,bc=/([?&])_=[^&]*/,fb=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,gb=c.fn.load,ka={},hb={},G,H;try{G=xb.href}catch(a){G=m.createElement("a"),G.href="",G=G.href}H=fb.exec(G.toLowerCase())||[];c.fn.extend({load:function(a,b,d){if("string"!==typeof a&&gb)return gb.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(0<=e){var f=a.slice(e,a.length);
a=a.slice(0,e)}e="GET";b&&(c.isFunction(b)?(d=b,b=p):"object"===typeof b&&(b=c.param(b,c.ajaxSettings.traditional),e="POST"));var g=this;c.ajax({url:a,type:e,dataType:"html",data:b,complete:function(a,b,e){e=a.responseText;a.isResolved()&&(a.done(function(a){e=a}),g.html(f?c("\x3cdiv\x3e").append(e.replace($b,"")).find(f):e));d&&g.each(d,[e,b,a])}});return this},serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):
this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ac.test(this.nodeName)||Xb.test(this.type))}).map(function(a,b){a=c(this).val();return null==a?null:c.isArray(a)?c.map(a,function(a,c){return{name:b.name,value:a.replace(db,"\r\n")}}):{name:b.name,value:a.replace(db,"\r\n")}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){c.fn[b]=function(a){return this.bind(b,a)}});c.each(["get","post"],function(a,b){c[b]=function(a,
e,f,g){c.isFunction(e)&&(g=g||f,f=e,e=p);return c.ajax({type:b,url:a,data:e,success:f,dataType:g})}});c.extend({getScript:function(a,b){return c.get(a,p,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},ajaxSetup:function(a,b){b?Ia(a,c.ajaxSettings):(b=a,a=c.ajaxSettings);Ia(a,b);return a},ajaxSettings:{url:G,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(H[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",
html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":r.String,"text html":!0,"text json":c.parseJSON,"text xml":c.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:Ga(ka),ajaxTransport:Ga(hb),ajax:function(a,b){function d(a,b,d,m){if(2!==z){z=2;w&&clearTimeout(w);y=p;D=m||"";t.readyState=0<a?4:0;var q,r,v;m=b;if(d){var x=e,C=t,u=x.contents,
J=x.dataTypes,M=x.responseFields,E,B,P,I;for(B in M)B in d&&(C[M[B]]=d[B]);for(;"*"===J[0];)J.shift(),E===p&&(E=x.mimeType||C.getResponseHeader("content-type"));if(E)for(B in u)if(u[B]&&u[B].test(E)){J.unshift(B);break}if(J[0]in d)P=J[0];else{for(B in d){if(!J[0]||x.converters[B+" "+J[0]]){P=B;break}I||(I=B)}P=P||I}P?(P!==J[0]&&J.unshift(P),d=d[P]):d=void 0}else d=p;if(200<=a&&300>a||304===a){if(e.ifModified){if(E=t.getResponseHeader("Last-Modified"))c.lastModified[n]=E;if(E=t.getResponseHeader("Etag"))c.etag[n]=
E}if(304===a)m="notmodified",q=!0;else try{E=e;E.dataFilter&&(d=E.dataFilter(d,E.dataType));var L=E.dataTypes;B={};var G,H,O=L.length,K,Q=L[0],F,N,R,S,U;for(G=1;G<O;G++){if(1===G)for(H in E.converters)"string"===typeof H&&(B[H.toLowerCase()]=E.converters[H]);F=Q;Q=L[G];if("*"===Q)Q=F;else if("*"!==F&&F!==Q){N=F+" "+Q;R=B[N]||B["* "+Q];if(!R)for(S in U=p,B)if(K=S.split(" "),K[0]===F||"*"===K[0])if(U=B[K[1]+" "+Q]){S=B[S];!0===S?R=U:!0===U&&(R=S);break}R||U||c.error("No conversion from "+N.replace(" ",
" to "));!0!==R&&(d=R?R(d):U(S(d)))}}r=d;m="success";q=!0}catch(V){m="parsererror",v=V}}else if(v=m,!m||a)m="error",0>a&&(a=0);t.status=a;t.statusText=""+(b||m);q?h.resolveWith(f,[r,m,t]):h.rejectWith(f,[t,m,v]);t.statusCode(l);l=p;A&&g.trigger("ajax"+(q?"Success":"Error"),[t,e,q?r:v]);k.resolveWith(f,[t,m]);A&&(g.trigger("ajaxComplete",[t,e]),--c.active||c.event.trigger("ajaxStop"))}}"object"===typeof a&&(b=a,a=p);b=b||{};var e=c.ajaxSetup({},b),f=e.context||e,g=f!==e&&(f.nodeType||f instanceof c)?
c(f):c.event,h=c.Deferred(),k=c._Deferred(),l=e.statusCode||{},n,m={},r={},D,v,y,w,z=0,A,x,t={readyState:0,setRequestHeader:function(a,b){if(!z){var c=a.toLowerCase();a=r[c]=r[c]||a;m[a]=b}return this},getAllResponseHeaders:function(){return 2===z?D:null},getResponseHeader:function(a){var b;if(2===z){if(!v)for(v={};b=Wb.exec(D);)v[b[1].toLowerCase()]=b[2];b=v[a.toLowerCase()]}return b===p?null:b},overrideMimeType:function(a){z||(e.mimeType=a);return this},abort:function(a){a=a||"abort";y&&y.abort(a);
d(0,a);return this}};h.promise(t);t.success=t.done;t.error=t.fail;t.complete=k.done;t.statusCode=function(a){if(a){var b;if(2>z)for(b in a)l[b]=[l[b],a[b]];else b=a[t.status],t.then(b,b)}return this};e.url=((a||e.url)+"").replace(Vb,"").replace(Zb,H[1]+"//");e.dataTypes=c.trim(e.dataType||"*").toLowerCase().split(Ha);null==e.crossDomain&&(a=fb.exec(e.url.toLowerCase()),e.crossDomain=!(!a||a[1]==H[1]&&a[2]==H[2]&&(a[3]||("http:"===a[1]?80:443))==(H[3]||("http:"===H[1]?80:443))));e.data&&e.processData&&
"string"!==typeof e.data&&(e.data=c.param(e.data,e.traditional));ca(ka,e,b,t);if(2===z)return!1;A=e.global;e.type=e.type.toUpperCase();e.hasContent=!Yb.test(e.type);A&&0===c.active++&&c.event.trigger("ajaxStart");if(!e.hasContent&&(e.data&&(e.url+=(eb.test(e.url)?"\x26":"?")+e.data,delete e.data),n=e.url,!1===e.cache)){a=c.now();var C=e.url.replace(bc,"$1_\x3d"+a);e.url=C+(C===e.url?(eb.test(e.url)?"\x26":"?")+"_\x3d"+a:"")}(e.data&&e.hasContent&&!1!==e.contentType||b.contentType)&&t.setRequestHeader("Content-Type",
e.contentType);e.ifModified&&(n=n||e.url,c.lastModified[n]&&t.setRequestHeader("If-Modified-Since",c.lastModified[n]),c.etag[n]&&t.setRequestHeader("If-None-Match",c.etag[n]));t.setRequestHeader("Accept",e.dataTypes[0]&&e.accepts[e.dataTypes[0]]?e.accepts[e.dataTypes[0]]+("*"!==e.dataTypes[0]?", */*; q\x3d0.01":""):e.accepts["*"]);for(x in e.headers)t.setRequestHeader(x,e.headers[x]);if(e.beforeSend&&(!1===e.beforeSend.call(f,t,e)||2===z))return t.abort(),!1;for(x in{success:1,error:1,complete:1})t[x](e[x]);
if(y=ca(hb,e,b,t)){t.readyState=1;A&&g.trigger("ajaxSend",[t,e]);e.async&&0<e.timeout&&(w=setTimeout(function(){t.abort("timeout")},e.timeout));try{z=1,y.send(m,d)}catch(ea){2>z?d(-1,ea):c.error(ea)}}else d(-1,"No Transport");return t},param:function(a,b){var d=[],e=function(a,b){b=c.isFunction(b)?b():b;d[d.length]=encodeURIComponent(a)+"\x3d"+encodeURIComponent(b)};b===p&&(b=c.ajaxSettings.traditional);if(c.isArray(a)||a.jquery&&!c.isPlainObject(a))c.each(a,function(){e(this.name,this.value)});else for(var f in a)la(f,
a[f],b,e);return d.join("\x26").replace(Ub,"+")}});c.extend({active:0,lastModified:{},etag:{}});var cc=c.now(),ha=/(\=)\?(&|$)|\?\?/i;c.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return c.expando+"_"+cc++}});c.ajaxPrefilter("json jsonp",function(a,b,d){b="application/x-www-form-urlencoded"===a.contentType&&"string"===typeof a.data;if("jsonp"===a.dataTypes[0]||!1!==a.jsonp&&(ha.test(a.url)||b&&ha.test(a.data))){var e,f=a.jsonpCallback=c.isFunction(a.jsonpCallback)?a.jsonpCallback():a.jsonpCallback,
g=r[f],h=a.url,k=a.data,l="$1"+f+"$2";!1!==a.jsonp&&(h=h.replace(ha,l),a.url===h&&(b&&(k=k.replace(ha,l)),a.data===k&&(h+=(/\?/.test(h)?"\x26":"?")+a.jsonp+"\x3d"+f)));a.url=h;a.data=k;r[f]=function(a){e=[a]};d.always(function(){r[f]=g;if(e&&c.isFunction(g))r[f](e[0])});a.converters["script json"]=function(){e||c.error(f+" was not called");return e[0]};a.dataTypes[0]="json";return"script"}});c.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},
contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){c.globalEval(a);return a}}});c.ajaxPrefilter("script",function(a){a.cache===p&&(a.cache=!1);a.crossDomain&&(a.type="GET",a.global=!1)});c.ajaxTransport("script",function(a){if(a.crossDomain){var b,c=m.head||m.getElementsByTagName("head")[0]||m.documentElement;return{send:function(e,f){b=m.createElement("script");b.async="async";a.scriptCharset&&(b.charset=a.scriptCharset);b.src=a.url;b.onload=b.onreadystatechange=function(a,
e){if(e||!b.readyState||/loaded|complete/.test(b.readyState))b.onload=b.onreadystatechange=null,c&&b.parentNode&&c.removeChild(b),b=p,e||f(200,"success")};c.insertBefore(b,c.firstChild)},abort:function(){if(b)b.onload(0,1)}}}});var wa=r.ActiveXObject?function(){for(var a in N)N[a](0,1)}:!1,dc=0,N;c.ajaxSettings.xhr=r.ActiveXObject?function(){var a;if(!(a=!this.isLocal&&Ja()))a:{try{a=new r.ActiveXObject("Microsoft.XMLHTTP");break a}catch(b){}a=void 0}return a}:Ja;(function(a){c.extend(c.support,{ajax:!!a,
cors:!!a&&"withCredentials"in a})})(c.ajaxSettings.xhr());c.support.ajax&&c.ajaxTransport(function(a){if(!a.crossDomain||c.support.cors){var b;return{send:function(d,e){var f=a.xhr(),g,h;a.username?f.open(a.type,a.url,a.async,a.username,a.password):f.open(a.type,a.url,a.async);if(a.xhrFields)for(h in a.xhrFields)f[h]=a.xhrFields[h];a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType);a.crossDomain||d["X-Requested-With"]||(d["X-Requested-With"]="XMLHttpRequest");try{for(h in d)f.setRequestHeader(h,
d[h])}catch(k){}f.send(a.hasContent&&a.data||null);b=function(d,h){var n,m,r,w,v;try{if(b&&(h||4===f.readyState))if(b=p,g&&(f.onreadystatechange=c.noop,wa&&delete N[g]),h)4!==f.readyState&&f.abort();else{n=f.status;r=f.getAllResponseHeaders();w={};(v=f.responseXML)&&v.documentElement&&(w.xml=v);w.text=f.responseText;try{m=f.statusText}catch(y){m=""}n||!a.isLocal||a.crossDomain?1223===n&&(n=204):n=w.text?200:404}}catch(y){h||e(-1,y)}w&&e(n,m,w,r)};a.async&&4!==f.readyState?(g=++dc,wa&&(N||(N={},c(r).unload(wa)),
N[g]=b),f.onreadystatechange=b):b()},abort:function(){b&&b(0,1)}}}});var ma={},C,F,ec=/^(?:toggle|show|hide)$/,fc=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,ia,La=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],da;c.fn.extend({show:function(a,b,d){if(a||0===a)return this.animate(K("show",3),a,b,d);d=0;for(var e=this.length;d<e;d++)a=this[d],a.style&&(b=a.style.display,c._data(a,"olddisplay")||"none"!==b||(b=
a.style.display=""),""===b&&"none"===c.css(a,"display")&&c._data(a,"olddisplay",Ma(a.nodeName)));for(d=0;d<e;d++)if(a=this[d],a.style&&(b=a.style.display,""===b||"none"===b))a.style.display=c._data(a,"olddisplay")||"";return this},hide:function(a,b,d){if(a||0===a)return this.animate(K("hide",3),a,b,d);a=0;for(b=this.length;a<b;a++)this[a].style&&(d=c.css(this[a],"display"),"none"===d||c._data(this[a],"olddisplay")||c._data(this[a],"olddisplay",d));for(a=0;a<b;a++)this[a].style&&(this[a].style.display=
"none");return this},_toggle:c.fn.toggle,toggle:function(a,b,d){var e="boolean"===typeof a;c.isFunction(a)&&c.isFunction(b)?this._toggle.apply(this,arguments):null==a||e?this.each(function(){var b=e?a:c(this).is(":hidden");c(this)[b?"show":"hide"]()}):this.animate(K("toggle",3),a,b,d);return this},fadeTo:function(a,b,c,e){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c,e)},animate:function(a,b,d,e){var f=c.speed(b,d,e);if(c.isEmptyObject(a))return this.each(f.complete,
[!1]);a=c.extend({},a);return this[!1===f.queue?"each":"queue"](function(){!1===f.queue&&c._mark(this);var b=c.extend({},f),d=1===this.nodeType,e=d&&c(this).is(":hidden"),l,n,m,p,r;b.animatedProperties={};for(m in a){l=c.camelCase(m);m!==l&&(a[l]=a[m],delete a[m]);n=a[l];c.isArray(n)?(b.animatedProperties[l]=n[1],n=a[l]=n[0]):b.animatedProperties[l]=b.specialEasing&&b.specialEasing[l]||b.easing||"swing";if("hide"===n&&e||"show"===n&&!e)return b.complete.call(this);!d||"height"!==l&&"width"!==l||(b.overflow=
[this.style.overflow,this.style.overflowX,this.style.overflowY],"inline"===c.css(this,"display")&&"none"===c.css(this,"float")&&(c.support.inlineBlockNeedsLayout?(n=Ma(this.nodeName),"inline"===n?this.style.display="inline-block":(this.style.display="inline",this.style.zoom=1)):this.style.display="inline-block"))}null!=b.overflow&&(this.style.overflow="hidden");for(m in a)if(d=new c.fx(this,b,m),n=a[m],ec.test(n))d["toggle"===n?e?"show":"hide":n]();else l=fc.exec(n),p=d.cur(),l?(n=parseFloat(l[2]),
r=l[3]||(c.cssNumber[m]?"":"px"),"px"!==r&&(c.style(this,m,(n||1)+r),p*=(n||1)/d.cur(),c.style(this,m,p+r)),l[1]&&(n=("-\x3d"===l[1]?-1:1)*n+p),d.custom(p,n,r)):d.custom(p,n,"");return!0})},stop:function(a,b){a&&this.queue([]);this.each(function(){var a=c.timers,e=a.length;for(b||c._unmark(!0,this);e--;)if(a[e].elem===this){if(b)a[e](!0);a.splice(e,1)}});b||this.dequeue();return this}});c.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},
fadeToggle:{opacity:"toggle"}},function(a,b){c.fn[a]=function(a,c,f){return this.animate(b,a,c,f)}});c.extend({speed:function(a,b,d){var e=a&&"object"===typeof a?c.extend({},a):{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};e.duration=c.fx.off?0:"number"===typeof e.duration?e.duration:e.duration in c.fx.speeds?c.fx.speeds[e.duration]:c.fx.speeds._default;e.old=e.complete;e.complete=function(a){c.isFunction(e.old)&&e.old.call(this);!1!==e.queue?c.dequeue(this):
!1!==a&&c._unmark(this)};return e},easing:{linear:function(a,b,c,e){return c+e*a},swing:function(a,b,c,e){return(-Math.cos(a*Math.PI)/2+.5)*e+c}},timers:[],fx:function(a,b,c){this.options=b;this.elem=a;this.prop=c;b.orig=b.orig||{}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]||c.fx.step._default)(this)},cur:function(){if(null!=this.elem[this.prop]&&(!this.elem.style||null==this.elem.style[this.prop]))return this.elem[this.prop];
var a,b=c.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?b&&"auto"!==b?b:0:a},custom:function(a,b,d){function e(a){return f.step(a)}var f=this,g=c.fx;this.startTime=da||Ka();this.start=a;this.end=b;this.unit=d||this.unit||(c.cssNumber[this.prop]?"":"px");this.now=this.start;this.pos=this.state=0;e.elem=this.elem;e()&&c.timers.push(e)&&!ia&&(ia=setInterval(g.tick,g.interval))},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=!0;this.custom("width"===
this.prop||"height"===this.prop?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=!0;this.custom(this.cur(),0)},step:function(a){var b=da||Ka(),d=!0,e=this.elem,f=this.options,g;if(a||b>=f.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();f.animatedProperties[this.prop]=!0;for(g in f.animatedProperties)!0!==f.animatedProperties[g]&&(d=!1);if(d){null==f.overflow||c.support.shrinkWrapBlocks||
c.each(["","X","Y"],function(a,b){e.style["overflow"+b]=f.overflow[a]});f.hide&&c(e).hide();if(f.hide||f.show)for(var h in f.animatedProperties)c.style(e,h,f.orig[h]);f.complete.call(e)}return!1}Infinity==f.duration?this.now=b:(a=b-this.startTime,this.state=a/f.duration,this.pos=c.easing[f.animatedProperties[this.prop]](this.state,a,0,1,f.duration),this.now=this.start+(this.end-this.start)*this.pos);this.update();return!0}};c.extend(c.fx,{tick:function(){for(var a=c.timers,b=0;b<a.length;++b)a[b]()||
a.splice(b--,1);a.length||c.fx.stop()},interval:13,stop:function(){clearInterval(ia);ia=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",a.now)},_default:function(a){a.elem.style&&null!=a.elem.style[a.prop]?a.elem.style[a.prop]=("width"===a.prop||"height"===a.prop?Math.max(0,a.now):a.now)+a.unit:a.elem[a.prop]=a.now}}});c.expr&&c.expr.filters&&(c.expr.filters.animated=function(a){return c.grep(c.timers,function(b){return a===b.elem}).length});var gc=
/^t(?:able|d|h)$/i,ib=/^(?:body|html)$/i;c.fn.offset="getBoundingClientRect"in m.documentElement?function(a){var b=this[0],d;if(a)return this.each(function(b){c.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);try{d=b.getBoundingClientRect()}catch(g){}var e=b.ownerDocument,f=e.documentElement;if(!d||!c.contains(f,b))return d?{top:d.top,left:d.left}:{top:0,left:0};b=e.body;e=na(e);return{top:d.top+(e.pageYOffset||c.support.boxModel&&
f.scrollTop||b.scrollTop)-(f.clientTop||b.clientTop||0),left:d.left+(e.pageXOffset||c.support.boxModel&&f.scrollLeft||b.scrollLeft)-(f.clientLeft||b.clientLeft||0)}}:function(a){var b=this[0];if(a)return this.each(function(b){c.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);c.offset.initialize();var d,e=b.offsetParent,f=b.ownerDocument,g=f.documentElement,h=f.body;d=(f=f.defaultView)?f.getComputedStyle(b,null):b.currentStyle;
for(var k=b.offsetTop,l=b.offsetLeft;(b=b.parentNode)&&b!==h&&b!==g&&(!c.offset.supportsFixedPosition||"fixed"!==d.position);)d=f?f.getComputedStyle(b,null):b.currentStyle,k-=b.scrollTop,l-=b.scrollLeft,b===e&&(k+=b.offsetTop,l+=b.offsetLeft,!c.offset.doesNotAddBorder||c.offset.doesAddBorderForTableAndCells&&gc.test(b.nodeName)||(k+=parseFloat(d.borderTopWidth)||0,l+=parseFloat(d.borderLeftWidth)||0),e=b.offsetParent),c.offset.subtractsBorderForOverflowNotVisible&&"visible"!==d.overflow&&(k+=parseFloat(d.borderTopWidth)||
0,l+=parseFloat(d.borderLeftWidth)||0);if("relative"===d.position||"static"===d.position)k+=h.offsetTop,l+=h.offsetLeft;c.offset.supportsFixedPosition&&"fixed"===d.position&&(k+=Math.max(g.scrollTop,h.scrollTop),l+=Math.max(g.scrollLeft,h.scrollLeft));return{top:k,left:l}};c.offset={initialize:function(){var a=m.body,b=m.createElement("div"),d,e,f,g=parseFloat(c.css(a,"marginTop"))||0;c.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});
b.innerHTML="\x3cdiv style\x3d'position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'\x3e\x3cdiv\x3e\x3c/div\x3e\x3c/div\x3e\x3ctable style\x3d'position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding\x3d'0' cellspacing\x3d'0'\x3e\x3ctr\x3e\x3ctd\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e";a.insertBefore(b,a.firstChild);d=b.firstChild;e=d.firstChild;f=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=5!==
e.offsetTop;this.doesAddBorderForTableAndCells=5===f.offsetTop;e.style.position="fixed";e.style.top="20px";this.supportsFixedPosition=20===e.offsetTop||15===e.offsetTop;e.style.position=e.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=-5===e.offsetTop;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==g;a.removeChild(b);c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();c.offset.doesNotIncludeMarginInBodyOffset&&
(b+=parseFloat(c.css(a,"marginTop"))||0,d+=parseFloat(c.css(a,"marginLeft"))||0);return{top:b,left:d}},setOffset:function(a,b,d){var e=c.css(a,"position");"static"===e&&(a.style.position="relative");var f=c(a),g=f.offset(),h=c.css(a,"top"),k=c.css(a,"left"),l={};("absolute"===e||"fixed"===e)&&-1<c.inArray("auto",[h,k])?(k=f.position(),e=k.top,k=k.left):(e=parseFloat(h)||0,k=parseFloat(k)||0);c.isFunction(b)&&(b=b.call(a,d,g));null!=b.top&&(l.top=b.top-g.top+e);null!=b.left&&(l.left=b.left-g.left+
k);"using"in b?b.using.call(a,l):f.css(l)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),e=ib.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.css(a,"marginTop"))||0;d.left-=parseFloat(c.css(a,"marginLeft"))||0;e.top+=parseFloat(c.css(b[0],"borderTopWidth"))||0;e.left+=parseFloat(c.css(b[0],"borderLeftWidth"))||0;return{top:d.top-e.top,left:d.left-e.left}},offsetParent:function(){return this.map(function(){for(var a=
this.offsetParent||m.body;a&&!ib.test(a.nodeName)&&"static"===c.css(a,"position");)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(b){var f,g;return b===p?(f=this[0],f?(g=na(f))?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:c.support.boxModel&&g.document.documentElement[d]||g.document.body[d]:f[d]:null):this.each(function(){(g=na(this))?g.scrollTo(a?c(g).scrollLeft():b,a?b:c(g).scrollTop()):this[d]=b})}});c.each(["Height","Width"],function(a,
b){var d=b.toLowerCase();c.fn["inner"+b]=function(){var a=this[0];return a&&a.style?parseFloat(c.css(a,d,"padding")):null};c.fn["outer"+b]=function(a){var b=this[0];return b&&b.style?parseFloat(c.css(b,d,a?"margin":"border")):null};c.fn[d]=function(a){var f=this[0];if(!f)return null==a?null:this;if(c.isFunction(a))return this.each(function(b){var f=c(this);f[d](a.call(this,b,f[d]()))});if(c.isWindow(f)){var g=f.document.documentElement["client"+b],f=f.document.body;return c.support.boxModel&&g||f&&
f["client"+b]||g}return 9===f.nodeType?Math.max(f.documentElement["client"+b],f.body["scroll"+b],f.documentElement["scroll"+b],f.body["offset"+b],f.documentElement["offset"+b]):a===p?(g=c.css(f,d),f=parseFloat(g),c.isNaN(f)?g:f):this.css(d,"string"===typeof a?a:a+"px")}});(function(){c.find.error=function(a){throw Error("Syntax error, unrecognized expression: "+a);};c.error=function(a){throw"object"===typeof a?a:Error(a);}})();(function(){var a=c._Deferred;c._Deferred=function(){var b=a(),c=b.done;
b.done=function(){for(var a=Array(arguments.length),b=0;b<a.length;b++){var g=b,h;h=arguments[b];h="function"===typeof h&&"function"===typeof M.guardCurrent?M.guardCurrent(h):h;a[g]=h}return c.apply(this,a)};return b}})();(function(){var a;c.event.special.beforeunload={setup:function(b,d,e){a=this.onbeforeunload;c.isWindow(this)&&(this.onbeforeunload=function(){var b=!1;try{b=c.isFunction(a)}catch(d){}b&&a.apply(this,arguments);e.apply(this,arguments)})},teardown:function(b,c){this.onbeforeunload=
a}}})();return c}());M.when("jQuery").execute("rtl-jquery-plugin",function(p){p.withoutRtl=function(p){p.apply(this)}})});
/* ******** */
(function(f){var g=window.AmazonUIPageJS||window.P,l=g._namespace||g.attributeErrors,e=l?l("AmazonUIPromise","AmazonUI"):g;e.guardFatal?e.guardFatal(f)(e,window):e.execute(function(){f(e,window)})})(function(f,g,l){f.register("3p-promise",function(){function e(){}function f(a,b){return function(){a.apply(b,arguments)}}function d(a){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof a)throw new TypeError("not a function");this._state=0;this._handled=
!1;this._value=l;this._deferreds=[];q(a,this)}function r(a,b){for(;3===a._state;)a=a._value;0===a._state?a._deferreds.push(b):(a._handled=!0,m(function(){var c=1===a._state?b.onFulfilled:b.onRejected;if(null===c)(1===a._state?n:k)(b.promise,a._value);else{try{var h=c(a._value)}catch(u){k(b.promise,u);return}n(b.promise,h)}}))}function n(a,b){try{if(b===a)throw new TypeError("A promise cannot be resolved with itself.");if(b&&("object"===typeof b||"function"===typeof b)){var c=b.then;if(b instanceof
d){a._state=3;a._value=b;p(a);return}if("function"===typeof c){q(f(c,b),a);return}}a._state=1;a._value=b;p(a)}catch(h){k(a,h)}}function k(a,b){a._state=2;a._value=b;p(a)}function p(a){2===a._state&&0===a._deferreds.length&&m(function(){a._handled||t(a._value)});for(var b=0,c=a._deferreds.length;b<c;b++)r(a,a._deferreds[b]);a._deferreds=null}function v(a,b,c){this.onFulfilled="function"===typeof a?a:null;this.onRejected="function"===typeof b?b:null;this.promise=c}function q(a,b){var c=!1;try{a(function(a){c||
(c=!0,n(b,a))},function(a){c||(c=!0,k(b,a))})}catch(h){c||(c=!0,k(b,h))}}if("function"===typeof g.Promise)return g.Promise;var w=setTimeout,m="function"===typeof setImmediate&&setImmediate||function(a){w(a,0)},t=function(a){"undefined"!==typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",a)};d.prototype["catch"]=function(a){return this.then(null,a)};d.prototype.then=function(a,b){var c=new this.constructor(e);r(this,new v(a,b,c));return c};d.all=function(a){var b=Array.prototype.slice.call(a);
return new d(function(a,d){function c(e,f){try{if(f&&("object"===typeof f||"function"===typeof f)){var g=f.then;if("function"===typeof g){g.call(f,function(a){c(e,a)},d);return}}b[e]=f;0===--h&&a(b)}catch(x){d(x)}}if(0===b.length)return a([]);for(var h=b.length,e=0;e<b.length;e++)c(e,b[e])})};d.resolve=function(a){return a&&"object"===typeof a&&a.constructor===d?a:new d(function(b){b(a)})};d.reject=function(a){return new d(function(b,c){c(a)})};d.race=function(a){return new d(function(b,c){for(var d=
0,e=a.length;d<e;d++)a[d].then(b,c)})};d._setImmediateFn=function(a){m=a};d._setUnhandledRejectionFn=function(a){t=a};return d})});
/* ******** */
(function(n){var m=window.AmazonUIPageJS||window.P,r=m._namespace||m.attributeErrors,b=r?r("AmazonUIBaseJS@base","AmazonUI"):m;b.guardFatal?b.guardFatal(n)(b,window):b.execute(function(){n(b,window)})})(function(n,m,r){"use strict";n.register("a-polyfill",function(){});"use strict";n.when("jQuery").register("a-base",function(b){return{version:function(){return"3.0"},$:b}});"use strict";n.when("p-recorder-events","jQuery","a-analytics","a-util","a-constants","prv:a-post-atf").register("prv:a-declarative-analytics",
function(b,k,g,d,l,e){function p(){t();d.objectIsEmpty(q)||(k("[data-action]").each(function(){var a=this.getAttribute("data-action");h[a]=!0}),t(),q={})}function t(){d.each(q,function(c,f){h[c.daName]&&(g.count("usage:tti",c.latency),delete q[f],a[f]=c)})}var n=m.ue_t0||m.aPageStart||Date.now(),q={},a={},h={};return 0<b.length&&m.ue?{notify:function(c,f){if(c&&f&&-1!==d.indexOfArray(b,f)){var h=c+"/"+f;if(!a[h]&&!q[h]){var x=Date.now()-n;q[h]={daName:c,eventType:f,latency:x};e.execute(p)}}}}:{notify:l.constants.NOOP,
setOptions:l.constants.NOOP}});"use strict";n.register("prv:a-guard",function(){function b(b,g){return b._guard&&"function"===typeof g?b._guard(g):g}return{fn:b,obj:function(k,g){if(!k._guard)return g;var d={},l;for(l in g)g.hasOwnProperty(l)&&(d[l]=b(k,g[l]));return d}}});"use strict";n.when("p-recorder-events","a-analytics").register("a-timing-analytics",function(b,k){function g(e){d[e]=!0;0!==b.length&&m.uet&&m.uex&&m.uet("bb",e,l)}var d={},l={wb:1};g("declarative");g("A");g("dropdown");g("carousel");
return{startWidgetLogging:g,stopWidgetLogging:function(e){0!==b.length&&m.uet&&m.uex&&e in d&&(m.uet("cf",e,l),m.uex("ld",e,l))}}});"use strict";n.when("p-recorder-events","jQuery","a-analytics","a-util","prv:a-event-context","prv:a-post-atf","prv:a-collect-p-debug").register("a-event-analytics",function(b,k,g,d,l,e,p){function t(a,c){a=a+":"+c;return a in C?(c=C[a],delete C[a],c):[]}function y(a,c){if(!(c in D))return[];var f=[],h=d.filter(D[c],function(c){var h=k(c[0]).closest(a).length;h&&f.push(c[1]);
return!h});D[c]=h;return f}function q(a,c,f){var h=t(a,c);if(h&&h.length)try{g.increment("usage:true_udac",h.length);var b="aui|udac|true_udac|"+c+"|"+a+"|see: https://tiny.amazon.com/1jppzyki8",z={daName:a,eventType:c,events:[]};n.when("afterLoad").execute("logUdac",function(){d.each(h,function(a){a=l.from(a).collect(E).collect(w).collect(I).dump();z.events.push({atf:a.isATF,xpath:a.xpath,selector:a.cssSelector,feature:a.feature,data:a.daData,eventLatency:a.eventLatency,handlerLatency:f,attributionChain:d.attributionChain(a.target)})});
n.log(b,"WARN",JSON&&JSON.stringify?JSON.stringify(z):"")})}catch(M){}}function a(a,c,f){var h=y(a,c);if(h&&h.length)try{g.increment("usage:true_ujac",h.length);var b=d.xpath(h[0]._subject),z="aui|ujac|true_ujac|"+c+"|"+b+"|see: https://tiny.amazon.com/1jppzyki8",x={xpath:b,eventType:c,events:[]};n.when("afterLoad").execute("logUjac",function(){d.each(h,function(a){a=l.from(a).collect(E).collect(w).collect(I).dump();x.events.push({atf:a.isATF,xpath:a.xpath,selector:a.cssSelector,feature:a.feature,
eventLatency:a.eventLatency,handlerLatency:f,attributionChain:d.attributionChain(a.target)})});n.log(z,"WARN",JSON&&JSON.stringify?JSON.stringify(x):"")})}catch(N){}}function h(a){return"unknown"!==typeof a.type}function c(a){return k.event.fix(a)}function f(a){return-1!==d.indexOfArray(b,a.type)}function z(a){return a.target!==document}function x(a){return{eventType:a.type}}function A(a){a=k(a.target).closest("[data-action]").get(0);return a===r?null:a}function v(a){return a.target}function u(a){return{daName:a.getAttribute("data-action")}}
function B(a){var c=a.getAttribute("data-action");return{daData:a.getAttribute("data-"+c)||""}}function E(a){return{isATF:d.isATF(a)}}function w(a){return{xpath:d.xpath(a),cssSelector:d.cssSelector(a)}}function J(a){return{target:a.target}}function I(a){if(a=k(a).closest(G).get(0)){var c=a.getAttribute(K);c||(a=a.id)&&a.length>F.length&&a.indexOf(F)===a.length-F.length&&(c=a.slice(0,a.length-F.length))}return{feature:c||""}}function L(a){return function(){return{eventLatency:a}}}var C={},D={},G="[id$\x3d_feature_div],.feature",
K="data-feature-name",F="_feature_div",H=m.ue_t0||m.aPageStart||Date.now();return{handle:function(a,e){if(0!==b.length){2>arguments.length&&(e=Date.now()-H);var d=(new l(a)).filter(h).transform(c).filter(f).filter(z).collect(x).collect(L(e)).collect(J),w=l.fromEventContext(d).transform(A).collect(u).collect(B);d=d.transform(v);if(w=w.dump()){var q=w.daName+":"+w.eventType;q in C||(C[q]=[]);C[q].push(w)}if(d=d.dump())w=d.eventType,q=d._subject,w in D||(D[w]=[]),D[w].push([q,d])}},notifyDeclarativeAction:function(a,
c){0!==b.length&&(q(a,c,Date.now()-H),p())},notifyJquery:function(c,f){0!==b.length&&(d.each(f.split(" "),function(f){a(c,f,Date.now()-H)}),p())}}});n.when("a-util","a-class").register("prv:a-event-context",function(b,k){var g=k.createClass({init:function(b,g){this.subject=b;this.collected=g||{}},transform:function(b){if(null===this.subject)return this;try{var d=b(this.subject)}catch(e){return this.subject=null,this}this.subject=d;return this},filter:function(b){return this.transform(function(d){return b(d)?
d:null})},collect:function(d){var g=this;return this.transform(function(e){try{var l=d(e);g.collected=b.extend(g.collected,l)}catch(t){}return e})},dump:function(){if(null===this.subject)return null;this.collected._subject=this.subject;return this.collected}});g.from=function(b){return new g(b._subject,b)};g.fromEventContext=function(b){return new g(b.subject,b.collected)};return g});"use strict";n.register("priv:a-visibility",function(){function b(b){for(var g=["hidden","webkitHidden","mozHidden",
"msHidden","oHidden"],d=0;d<g.length;d+=1)if(g[d]in b)return g[d]}return function(k){var g=b(k);return g?function(){return k[g]}:function(){return!1}}});"use strict";n.register("prv:a-private-util",function(){try{var b=navigator.userAgent}catch(k){b=""}return{ua:b,safeFeatureTest:function(b){try{return b()}catch(g){return!1}}}});"use strict";n.when("priv:a-visibility","prv:a-guard","prv:a-private-util").register("a-util",function(b,k,g){function d(b){if(l(b))return[b];if(b.jQuery)return b.get();var a=
Object.prototype.toString.call(b);return"[object String]"===a?Array.prototype.slice.call(document.querySelectorAll(b)):"[object Array]"===a?b.filter(b,l):"object"===typeof b&&/^\[object (HTMLCollection|NodeList|Object)\]$/.test(a)&&"number"===typeof b.length&&(0===b.length||"object"===typeof b[0]&&0<b[0].nodeType)?Array.prototype.slice.call(b):[]}function l(b){return b instanceof Element||b instanceof HTMLDocument}var e=g.ua;b={now:Date.now,isPageHidden:b(document)};g=[function(b){return{each:function(a,
b,c){if(null!==a)if(Array.prototype.forEach&&a.forEach===Array.prototype.forEach)a.forEach(b,c);else if(a.length===+a.length)for(var f=0,h=a.length;f<h;f++)f in a&&b.call(c,a[f],f,a);else for(f in a)a.hasOwnProperty(f)&&b.call(c,a[f],f,a)},map:function(a,h,c){var f=[];if(null===a)return f;if(Array.prototype.map&&a.map===Array.prototype.map)return a.map(h,c);b.each(a,function(a,b,e){f[f.length]=h.call(c,a,b,e)});a.length===+a.length&&(f.length=a.length);return f},reduce:function(a,h,c,f){var e=2<arguments.length;
null===a&&(a=[]);if(Array.prototype.reduce&&a.reduce===Array.prototype.reduce)return e?a.reduce(h,c):a.reduce(h);b.each(a,function(a,b,d){e?c=h.call(f,c,a,b,d):(c=a,e=!0)});e||n.error("Reduce of empty array with no initial value","A.util","reduce");return c},filter:function(a,h,c){var f=[];if(null===a)return f;if(Array.prototype.filter&&a.filter===Array.prototype.filter)return a.filter(h,c||a);b.each(a,function(b,e,d){h.call(c||a,b,e,d)&&f.push(b)});return f},range:function(a,b,c){b===r&&(b=a||0,
a=0);c=c||1;b=Math.max(Math.ceil((b-a)/c),0);for(var f=Array(b),h=0;h<b;h++,a+=c)f[h]=a;return f},breaker:{}}},function(b){return{throttle:function(a,h,c){var f,e,d,g=k.fn(this,a),l=null,u=0;c=c||{};var B=function(){u=!1===c.leading?0:b.now();l=null;d=g.apply(f,e);f=e=null};return function(){var g=b.now();u||!1!==c.leading||(u=g);var w=h-(g-u);f=this;e=arguments;0>=w?(clearTimeout(l),l=null,u=g,d=a.apply(f,e),f=e=null):l||!1===c.trailing||(l=setTimeout(B,w));return d}},sequence:function(){var a=[].slice,
h=a.call(arguments).reverse(),c=this;return b.reduce(h,function(b,h){return function(){var f=a.call(arguments);f.push(b);h.apply(c,f)}},function(){})},debounce:function(a,h,c){var f,e,d,g,l,u=k.fn(this,a),B=function(){var a=b.now()-g;a<h?f=setTimeout(B,h-a):(f=null,c||(l=u.apply(d,e),d=e=null))};return function(){d=this;e=arguments;g=b.now();var u=c&&!f;f||(f=setTimeout(B,h));u&&(l=a.apply(d,e),d=e=null);return l}},delay:function(a,b){var c=k.fn(this,a),f=Array.prototype.slice.call(arguments,2);return setTimeout(function(){return c.apply(null,
f)},b)},animationFrameDelay:function(a){return this.delay(a,16)},interval:function(a,b){a=k.fn(this,a);return setInterval(a,b)},once:function(a){var b=!1,c=k.fn(this,a),f;return function(){b||(b=!0,f=c.apply(this,arguments));return f}},rest:function(a,b){if(a){var c=Math.max(b===r?a.length-1:b,0);return function(){for(var b=arguments,h=-1,e=Math.max(b.length-c,0),d=Array(e);++h<e;)d[h]=b[h+c];switch(c){case 0:return a.call(this,d);case 1:return a.call(this,b[0],d);case 2:return a.call(this,b[0],b[1],
d)}e=Array(c+1);for(h=-1;++h<c;)e[h]=b[h];e[c]=d;return a.apply(this,e)}}},parseFunctionName:function(a){return a.name?"anonymous"===a.name?"":a.name:(a=a.toString().match(/^function\s*([^\s(]+)/))?a[1]:""}}},function(b){function a(c){var b;"object"!==typeof c&&"function"!==typeof c&&(c={});for(var f=1;f<arguments.length;f++){var h=arguments[f];if(null!=h)for(var e in h){var u=h[e];if(c!==u&&u!==r){var l=c[e];g(u)||(b=d(u))?(b&&!d(l)?l=[]:b||g(l)||(l={}),b=!1,a(l,u)):l=u;c[e]=l}}}return c}function h(a,
c){a=a||{};c=c||{};var b={},f;for(f in a)a.hasOwnProperty(f)&&(b[f]="object"===typeof a[f]&&a[f]?h(a[f],c[f]):a[f]!==c[f]);for(f in c)c.hasOwnProperty(f)&&!b[f]&&(b[f]="object"===typeof c[f]&&c[f]?h(c[f],a[f]):c[f]!==a[f]);return b}function c(a,b){var h;if(a===b)return!0;if(d(a)){if(!d(b)||a.length!==b.length)return!1;for(h=a.length;h--;)if(!c(a[h],b[h]))return!1;return!0}if(g(a)){if(!g(b)||f(a)&&!f(b))return!1;for(h in a)if(!c(a[h],b[h]))return!1;return!0}return!1}function f(a){for(var c in a)if(a.hasOwnProperty(c))return!1;
return!0}function e(a){if(!("function"===typeof a||"object"===typeof a&&a))return[];if(Object.keys)return Object.keys(a);var c=[],b;for(b in a)a.hasOwnProperty(b)&&c.push(b);return c}function d(a){return Array.isArray?Array.isArray(a):"[object Array]"===Object.prototype.toString.call(a)}function g(a){if(!a||"object"!==typeof a||a.nodeType||a===m)return!1;try{if(a.constructor&&!a.hasOwnProperty("constructor")&&!a.constructor.prototype.hasOwnProperty("isPrototypeOf"))return!1}catch(w){return!1}for(var c in a);
return c===r||a.hasOwnProperty(c)}function l(a,c,b){Object.defineProperty(a,c,{value:b,writable:!1});return b}function u(a,c,b){a.hasOwnProperty(c)||(a[c]=b);return b}return{keys:e,values:function(a){for(var c=e(a),b=Array(c.length),f=0;f<c.length;f++)b[f]=a[c[f]];return b},extend:a,mixin:function(a,c,b){if(b)for(var f=0,h=b.length;f<h;f++)a[b[f]]=c[b[f]];else for(f in c)"function"===typeof c[f]&&(a[f]=c[f])},diff:h,equals:c,copy:function(c){return d(c)?a([],c):g(c)?a({},c):c},indexOfArray:function(a,
c,b){if(Array.prototype.indexOf&&a.indexOf===Array.prototype.indexOf)return a.indexOf(c,b);a&&a instanceof Array||n.error("Invalid arr passed to A.indexOfArray: "+a,"A.util","indexOfArray");b=parseInt(b,10);b=isNaN(b)?0:b;if(!isFinite(b))return-1;for(var f=a.length;b<f;b++)if(a[b]===c)return b;return-1},isArray:d,isPlainObject:g,isFiniteNumber:function(a){return"number"===typeof a&&!isNaN(a)&&isFinite(a)},objectIsEmpty:f,constProp:"function"===typeof Object.defineProperty?l:u}},function(b){var a=
{"\x26":"\x26amp;","\x3c":"\x26lt;","\x3e":"\x26gt;",'"':"\x26quot;","'":"\x26#39;","/":"\x26#x2F;"},h=/^\s+/,c=/\s+$/,f=new RegExp("["+b.keys(a).join("")+"]","g"),e=/([!"#$%&'\(\)*+,./:;<=>?@\[\\\]^`{|}~])/g;return{trim:function(a){return String.prototype.trim?String.prototype.trim.call(a):a.replace(h,"").replace(c,"")},contains:function(a,c){return-1!==(""+a).indexOf(c)},escapeHtml:function(c){return(""+c).replace(f,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(h,function(c){var b=a.getAttribute(c);return b&&"["+c+"\x3d"+b+"]"}).join("")}var h=["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 f=[];do f.push(a(c)),c=c.parentElement;while(c);return b.filter(f,Boolean).reverse().join(" ")}}},function(b){return{hide:function(a){b.each(d(a),function(a){b.addClass(a,"aok-hidden")})},show:function(a){b.each(d(a),
function(a){b.removeClass(a,"aok-hidden")})}}},function(b){function a(){h={};for(var a=(document.cookie||"").split(";"),f=a.length-1;0<=f;f--){var e=a[f].split("\x3d"),d=b.trim(e[0]);if(d){var g=h;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[d]=e}}}var h;return{cookies:{get:function(b){h||a();return h[b]},getAll:function(){h||a();return b.extend({},h)},refresh:function(){h=null}}}},function(b){return{onScreen:function(a,h){if(!a)return!1;
a.jquery&&(a=a[0]);if(!a)return!1;h="number"===typeof h&&!isNaN(h)&&isFinite(h)?h:100;if(1!==a.nodeType||!(a.offsetWidth||a.offsetHeight||a.getClientRects().length))return!1;var c=b.size(m),f=b.scroll(m),e=f.top,d=m.innerHeight?m.innerHeight:c.height,g=e+d;f=f.left;c=m.innerWidth?m.innerWidth:c.width;var l=f+c;e-=h;g+=h;f-=h;l+=h;var u=b.offset(a),p=b.size(a);a=u.top;h=p.height;var k=a+h;u=u.left;p=p.width;var w=u+p;return(a>=e&&a<g||k>e&&k<=g||h>d&&a<=e&&k>=g)&&(u>=f&&u<l||w>f&&w<=l||p>c&&u<=f&&
w>=l)}}},function(b){return{isATF:function(a,h){h="number"===typeof h&&!isNaN(h)&&isFinite(h)?h:100;h=b.size(m).height+h;a=b.offset(a).top;return 0<=a&&a<h}}},function(b){function a(a,b){return a.classList?a.classList.contains(b):0<=(" "+a.className+" ").indexOf(" "+b+" ")}var h=document.createElement("fakeelement"),c={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"},f=null;return{setCssImportant:function(a,b,c){a=a.jquery?
a[0]:a;"undefined"!==typeof a&&(a=a.style,a.cssText=a.cssText.replace(new RegExp(b+"\\s*:\\s*[.^;]*(\\s*;)?","gmi"),""),a.cssText+=b+": "+c+" !important;")},hasClass:a,addClass:function(b,c){a(b,c)||(b.classList?b.classList.add(c):b.className+=" "+c)},removeClass:function(b,c){a(b,c)&&(b.classList?b.classList.remove(c):b.className=(" "+b.className+" ").replace(new RegExp(" "+c+" ","g")," ").replace(/  /g," ").replace(/^ | $/g,""))},offset:function(a){a.jquery&&(a=a[0]);a=a.getBoundingClientRect();
var b=document.documentElement,c=document.body;return{top:a.top+(m.pageYOffset||b.scrollTop)-(b&&b.clientTop||c&&c.clientTop||0),left:a.left+(m.pageXOffset||b.scrollLeft)-(b&&b.clientLeft||c&&c.clientLeft||0)}},size:function(a){var b=document.documentElement,c=document.body;if(a===m)return{width:b.clientWidth,height:b.clientHeight};if(9===a.nodeType)return{width:Math.max(b.clientWidth,c.scrollWidth,b.scrollWidth,c.offsetWidth,b.offsetWidth),height:Math.max(b.clientHeight,c.scrollHeight,b.scrollHeight,
c.offsetHeight,b.offsetHeight)};var f=m.getComputedStyle(a);b=parseFloat(f.borderTopWidth);c=parseFloat(f.borderBottomWidth);var h=parseFloat(f.borderLeftWidth),e=parseFloat(f.borderRightWidth),d=parseFloat(f.paddingTop),g=parseFloat(f.paddingBottom),l=parseFloat(f.paddingLeft);f=parseFloat(f.paddingRight);return{width:a.offsetWidth-h-e-l-f,height:a.offsetHeight-c-b-d-g}},scroll:function(a){var b=document.documentElement,c=document.body;return a?a===m||9===a.nodeType?{top:"pageYOffset"in m?m.pageYOffset:
b.scrollTop||c.scrollTop,left:"pageXOffset"in m?m.pageXOffset:b.scrollLeft||c.scrollLeft}:{top:a.scrollTop,left:a.scrollLeft}:null},getTransitionEndEvent:function(){/UCBrowser/.exec(e)&&(f=c.WebkitTransition);if(null===f)for(var a in c)if(h.style[a]!==r){f=c[a];break}return f},reflowCssChanges:function(a){b.each(a,function(a){})}}},function(b){return{widescreen:function(){return b.hasClass(document.documentElement,"a-ws")}}}];for(var p=0;p<g.length;p++){var t=g[p](b),y;for(y in t)b[y]=t[y]}return b});
"use strict";n.when("p-detect","a-util","prv:a-private-util").register("prv:a-capabilities",function(b,k,g){var d={},l=/Trident/.test(g.ua);k.each({isChrome:function(){return/Chrome/.test(g.ua)},isUCBrowser:function(){return/UCBrowser/.test(g.ua)},isSafari:function(){var b=document.documentElement.style;return!("MozAppearance"in b)&&"webkitAppearance"in b&&/^Apple/.test(navigator.vendor)},isAndroidStockGuess:function(){var e=!1;b.capabilities.android&&!/Chrome|Opera|Firefox|UCBrowser/.test(g.ua)&&
(e=/AppleWebKit\/(\d+\.\d+)/.exec(g.ua),e=e[1]&&"535">e[1]);return e},isFirefox:function(){return/Firefox/.test(g.ua)},isIE:function(){return l},isIE10:function(){return l&&"onmspointerup"in document&&!("onpointerup"in document)},isIE10Plus:function(){return l&&("onpointerup"in document||"onmspointerup"in document)},isIE11Plus:function(){return l&&"onpointerup"in document},isiOS8:function(){return b.capabilities.ios&&/Version\/8\./.test(g.ua)},isIETouchCapable:function(){return d.isIE10Plus&&/Touch;/.test(g.ua)},
isMetroIEGuess:function(){var e=!0;try{e=new ActiveXObject("htmlfile")}catch(p){e=!1}return d.isIE10Plus&&!b.capabilities.mobile&&!e}},function(b,l){d[l]=g.safeFeatureTest(b)});return d});"use strict";n.when("p-detect","prv:a-capabilities","a-util","prv:a-private-util").register("a-detect",function(b,k,g,d){var l=g.copy(b),e=function(){var b=/(?:Android\s+|Windowshop.*Android\/|Android\/)(\d+(?:\.\d+)*)/.exec(d.ua);return b&&b[1]},p={};g.each({isAmazonApp:function(){return/(Windowshop|Amazon|Amazon\.com)\//.test(g.cookies.get("amzn-app-id"))},
isGen5App:function(){return/Windowshop.*(?:KFOT|KFTH|KFJWA|KFJWI|KFTT)/.test(d.ua)},isAndroid:function(){return l.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]/.test(d.ua)},pointerPrefix:function(){return"onmspointerup"in document||"onpointerup"in document?"onpointerup"in document?"pointer":"MSPointer":!1},actionMode:function(){var b=l.capabilities.pointerPrefix;
return b?b:l.capabilities.touch?"touch":"mouse"}},function(b,e){l.capabilities[e]=d.safeFeatureTest(b)});g.extend(l.capabilities,k);g.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 d=l.capabilities.actionMode,a="string"===typeof b?b:b[d];p[e]=a?d+a:b.mouse===r?"":"mouse"+b.mouse});l.action=p;b={};"pointer"===l.capabilities.pointerPrefix?(b.touch="touch",b.pen="pen",b.mouse="mouse",b.unknown=""):"MSPointer"===l.capabilities.pointerPrefix&&(b.touch=2,b.pen=3,b.mouse=4);l.pointerType=b;return l});"use strict";n.when("prv:a-guard").register("a-defer",function(b){function k(b){var e=
0,g=setTimeout(function(){k(b)},0);if(0===b.length)clearTimeout(g),d=!1;else{var m=Date.now();b.shift().call();l+=Date.now()-m;50<l&&(e=50,l=0);setTimeout(function(){k(b)},e);clearTimeout(g)}}var g=[],d=!1,l=0;return{defer:function(e){g.push(b.fn(this,e));d||(d=!0,setTimeout(function(){k(g)},0))},pauseDeferred:function(){},executeDeferred:function(){}}});"use strict";n.when("a-util").register("a-events",function(b,k){function g(a,b){for(var c=a.length;c--;)b(a[c],c,a)||a.splice(c,1)}function d(a){var b=
a.shift();if(b===r)return f;try{!1===b.fn.apply(m,b.args)&&g(a,function(a){return a.id!==b.id})}catch(E){(b.logError?b:n).logError(E,"Event execution failed for event "+b.topic,"FATAL")}}function l(a,f){if(y(a)){var h=A++,e=c[a];f=f||[];var d=b.map(e,function(b){return{topic:a,id:h,fn:b.guard?b.guard(b.fn):b.fn,args:f,logError:b.logError}});e.occurred&&p(a);e.isTimeSliced?z(d):x(d)}}function e(a,b,f){if("function"===typeof b)return f={fn:b,logError:f&&f.logError,guard:f&&f.guard},(c[a]=c[a]||[]).unshift(f),
{event:a,callback:b}}function p(a){c[a].length=0}function t(a,f){function h(a){g(c[a],function(a){return a.fn!==f})}b.each(b.filter(a.split(" "),y),f?h:p)}function y(a){return c.hasOwnProperty(a)&&0<c[a].length}function q(a,f){var h=function(){n.register(a,function(){var a=m.aPageStart;return{time:a?b.now()-a:0}})},d=c[a]=c[a]||[];d.occurred||(d.isTimeSliced=!1!==f,d.occurred=!0,e(a,h),l(a))}function a(a,b){var c=this.on;this.on=function(){return c.apply(this,arguments)};this.on._guard=a;this.on._logError=
b;for(var f in c)c.hasOwnProperty(f)&&(this.on[f]=c[f]);this.constructor=r}function h(a,b){m.attachEvent?m.attachEvent("on"+a,b):m.addEventListener(a,b,!1)}var c={},f={},z=function(){function a(){c=!0;for(var e=b.now();50>b.now()-e;)if(d(h)===f){c=!1;return}b.delay(a,15)}var c=!1,h=[];return function(b){Array.prototype.push.apply(h,b);c||a()}}(),x=function(){var a=!1,b=[];return function(c){Array.prototype.push.apply(b,c);if(!a){for(a=!0;d(b)!==f;);a=!1}}}(),A=0,v=function(){var a=function(a,f,h){var d=
a.split(" "),g=[],k=f;!0===h&&(k=function(){f.apply(m,arguments);t(a,k)});var p=this?{logError:this._logError,guard:this._guard}:{};b.each(d,function(a){(c[a]||[]).occurred?(e(a,f,p),l(a)):g.push(e(a,k,p).event)});return{event:g.join(" "),callback:k}};b.each("ready load unload afterLoad scroll resize orientationchange zoom".split(" "),function(b){a[b]=function(c,f){a.call(this,b,c,f)}});return a}();a.prototype={isListening:y,on:v,one:function(a,b){var c=a.split(" ");if(1<c.length)n.error("A.one only accepts a single event name, but was provided with: "+
c.length+", ("+a+")","A.events","one");else return v(a,b,!0)},off:function(a,b){if("object"===typeof a){var c=a.event;a=a.callback}else c=a,a=b;return t(c,a)},trigger:function(a){for(var b=arguments.length,c=Array(b),f=0;f<b;f++)c[f]=arguments[f];c.shift();l(a,c)},events:{defaults:{input:"change",select:"change",a:"click",button:"click",form:"submit"}}};a.prototype.constructor=a;n.when("a-bodyBegin").execute(function(){q("bodyBegin")});h("unload",function(){q("unload",!1)});n.when("p-detect").execute(function(a){var c=
b.once(function(){q("beforeLoad");q("load");b.delay(function(){q("beforeAfterLoad");q("afterLoad")},1500)}),f=b.once(function(){a.responsiveGridEnabled()&&a.toggleResponsiveGrid(!0);q("beforeReady");q("ready");q("afterReady");"complete"===document.readyState&&c()});(function(a){"loading"!=document.readyState?a():document.addEventListener?document.addEventListener("DOMContentLoaded",a):document.attachEvent("onreadystatechange",function(){"loading"!=document.readyState&&a()})})(f);n.when("a-domready").execute(f);
h("load",c)});return a.prototype});"use strict";n.when("a-util","a-events").register("a-prefix",function(b,k){function g(b){return b.toLowerCase().replace(/-(.)/g,function(b,e){return e.toUpperCase()})}var d={transitionend:null},l=document.createElement("div").style,e={},p=["o","ms","moz","webkit"];k.on("beforeReady",function(){if(m.addEventListener){var e=document.createElement("div"),g=function(b){d.transitionend=b.type;this.removeEventListener("webkitTransitionEnd",g,!1);this.removeEventListener("transitionend",
g,!1);this.removeEventListener("otransitionend",g,!1);this.removeEventListener("oTransitionEnd",g,!1)};e.setAttribute("style","position:absolute;top:0px;z-index:-1;transition:top 1ms ease;-webkit-transition:top 1ms ease;-moz-transition:top 1ms ease;-o-transition:top 1ms ease;");e.addEventListener("transitionend",g,!1);e.addEventListener("webkitTransitionEnd",g,!1);e.addEventListener("otransitionend",g,!1);this.addEventListener("oTransitionEnd",g,!1);document.body.appendChild(e);b.delay(function(){e.style.top=
"100px";b.delay(function(){e.parentNode.removeChild(e);e=g=null;b.each(d,function(b){})},100)},0)}});return{prefixes:{getStyle:function(b){if(!e[b]){var d=g(b);if(d in l)e[b]=d;else{d=d.charAt(0).toUpperCase()+d.slice(1);for(var k=p.length;k--;){var a=p[k]+d;a in l&&(e[b]=a)}}}return e[b]},getEvent:function(b){return b?d[b.toLowerCase()]:r}}}});"use strict";n.when("a-util","jQuery","a-declarative").register("a-draggable",function(b,k,g){var d,l={_maxZIndex:0,_isInit:!1,_draggables:[],_init:function(){this._isInit||
(this._isInit=!0,this._maxZIndex=975)},create:function(b){this._init();b._zimIndex||(b._zimIndex=975,this._maxZIndex+=1,this._draggables.push(b));this.acquireFocus(b)},acquireFocus:function(b){b.css("zIndex",this._maxZIndex);d.css("zIndex",this._maxZIndex-1);for(var a=0;a<this._draggables.length;a++){var h=this._draggables[a];h[0]!==b[0]&&h._zimIndex>b._zimIndex&&(h._zimIndex-=h._zimIndex>this._maxZIndex-1?2:1,h.css("zIndex",h._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}},p=function(b){var a=b.data.$draggable,h=a.data("a-draggables"),c=e(b);h.isMouseDown&&(a.css({left:c.x-h.clickOffset.x,top:c.y-h.clickOffset.y}),b.$event.preventDefault())},t=function(b){var a=b.$event.target||b.$event.srcElement,h=b.data.$draggable,c=h.data("a-draggables");l.acquireFocus(h);a=k(a).closest(c.$handle,h);c.isMouseDown=0<a.length;c.isMouseDown&&(d&&d.removeClass("aok-hidden"),
a=e(b),c.clickOffset={x:a.x-parseFloat(h.css("left")),y:a.y-parseFloat(h.css("top"))},h.data("a-draggables",c),d.data("a-draggables",c),b.$event.preventDefault())},m=function(b){b=b.data.$draggable;var a=b.data("a-draggables");a.isMouseDown=!1;b.data("a-draggables",a);d&&d.addClass("aok-hidden")};return{draggable:function(b,a){b=b.jquery?b:k(b);a={isMouseDown:!1,$draggable:b,$handle:a&&a.handle?a.handle:b};a.$handle=a.$handle.jquery?a.$handle:k(a.handle);a.$handle.css("cursor","move");d||(d=k("\x3cdiv\x3e",
{id:"a-draggables-mousedown-layer","class":"aok-hidden"}).appendTo("body"),g.declarative.create(d,"a-draggables",a));l.create(a.$draggable);g.declarative.create(a.$draggable,"a-draggables",a);g.declarative("a-draggables",["mousedown","touchstart"],t);g.declarative("a-draggables",["mouseup","touchend"],m);g.declarative("a-draggables",["mousemove","touchmove"],p)}}});"use strict";n.when("jQuery","a-util","a-events","a-declarative","a-constants","a-analytics").register("a-state",function(b,k,g,d,l,e){function p(a,
h,c,f){var e=!(a in q);if(null===h||b.isArray(h)||b.isPlainObject(h)){var d=k.copy(q[a]);d&&h&&!f&&(b.isArray(d)||b.isPlainObject(d))?k.extend(q[a],h):q[a]=k.copy(h);h=k.diff(d,q[a]);f=k.copy(q[a]);c||g.trigger("a:state:update:"+a,f,h,d);e&&n.declare(l.constants.PAGESTATE_LOADED_MODULE_PREFIX+a,f);return f}n.error("Invalid value passed to A.state with a namespace of "+a+".  Value: "+h,"A.state","updateNamespace")}function t(a,b,c){if(1===b.length)return a[b.shift()]=c,a;a[b.shift()]=t({},b,c);return a}
function m(){for(var a=document.getElementsByTagName("script"),h=0,c=a.length;h<c;h++)if(!b.data(a[h],"a-eval")){var f=b(a[h]),d=f.attr("data-a-state");if(d){try{var g=k.parseJSON(d)}catch(v){throw e.logError("[AUI] key value interface for accessing state data parsing failed","ERROR",JSON.stringify({xpath:k.xpath(a[h]),cssSelector:k.cssSelector(a[h]),custody:k.attributionChain(a[h])})),v;}if(g.key){try{var l=k.parseJSON(f.html())}catch(v){n.logError(v,"State parsing failed for state "+g.key,"ERROR");
continue}b.data(a[h],"a-eval",!0);(f=q[g.key])&&k.extend(l,f);p(g.key,l)}}}}var q={};d.declarative("a-state",function(a){var b=a.$target,c=a.data.key,f=a.data[a.type];f||g.events.defaults[a.targetTag]!==a.type||(f=b.attr("name"));f&&c&&(b.is("select")&&(b=b.find(":selected")),typeof b.val()!==r&&"string"===typeof f&&(a=b.val(),b.is("input[type\x3dcheckbox]")&&!b.prop("checked")&&(a=null),f=t({},f.split("."),a)),p(c,f))});d=function(a,b,c){return b===r?k.copy(q[a]):p(a,b,!!c)};d.bind=function(a,b){g.on("a:state:update:"+
a,b)};d.replace=function(a,b,c){return p(a,b,!!c,!0)};g.on("beforeReady",m);d.parse=m;return{state:d}});"use strict";n.when("prv:a-guard","jQuery","a-util","a-events","a-declarative","a-state").register("a-ajax",function(b,k,g,d,l,e){function p(a,b){if(!a)return"";var c="string"===typeof a;if("string"===b)return c?a:"";if("json"===b){if(c)return a;try{return JSON&&JSON.stringify?JSON.stringify(a):""}catch(x){n.logError(x,"AJAX POST failed to convert JSON object to string")}return""}return c?"":k.param(a)}
function t(a,b){a&&0!==a.length&&("string"===typeof a&&""===g.trim(a)?b&&b(a):(a[0]instanceof Array||(a=[a]),g.each(a,function(c){var f=q[c[0]];f?f.apply(m,c):((f=b)||n.error("There is no handler for the streaming ajax command: "+a[0],"A.ajax","chunkHandler"),f(c))})))}var y=function(){m.XMLHttpRequest||(m.XMLHttpRequest=function(){return new ActiveXObject("Microsoft.XMLHTTP")});var a=function(){function a(){0<b.length?b.pop().send():c--}var b=[],c=0,f=0,e=0;return{add:function(a){4>c?(a.send(),c++):
(b.push(a),f++,b.length>e&&(e=b.length),(a=m.ue)&&a.count&&(a.count("aui:ajax:queued",f),a.count("aui:ajax:maxQueued",e)))},complete:a,abort:function(c){c=g.indexOfArray(b,c);-1!==c&&b.splice(c,1);a()}}}(),b=function(){},e=function(b){var c=b.http,f=!1,e=!1;switch(c.readyState){case 4:e=!0;break;case 3:f=!0}var h=200===c.status||304===c.status,l=b.responsePosition;if(f||e&&h){var k=c.responseText;if(l<k.length){l=k.substring(l,k.length);k=l.split("\x26\x26\x26");var p=l.lastIndexOf("\x26\x26\x26");
if(-1===p&&f)return;p<l.length-3&&f&&k.pop();g.each(k,function(a,c){if(""!==g.trim(a))try{var f=g.parseJSON(a)}catch(G){n.logError(G,"Invalid streaming ajax JSON response: "+a)}else f=a;b.callbacks.chunk(f)});b.responsePosition+=p}}e&&(clearInterval(b.pollTimer),clearTimeout(b.timeoutTimer),a.complete(),h?b.callbacks.success(null,c.statusText,b):b.callbacks.failure(b,c.statusText,c.statusText),d.trigger("a:pageUpdate"),d.trigger("a:ajax:complete"))},h=function(b){var c=b.http;if(4===c.readyState){clearInterval(b.pollTimer);
clearTimeout(b.timeoutTimer);a.complete();var f=c.responseText;try{f=g.parseJSON(f)}catch(B){}200!==c.status&&304!==c.status?b.callbacks.failure(b,c.statusText,c.statusText):b.callbacks.success(f,c.statusText,b);d.trigger("a:ajax:complete")}};return function(){function c(b){4>b.http.readyState&&(clearInterval(b.pollTimer),b.callbacks.failure(b,"Request Timeout","Request Timeout"),a.complete())}function f(a,b,c){c=c||{};c=g.extend({},l.all,l[b],c);g.each(c,function(b,c){(b||""===b)&&a.setRequestHeader(c,
b)});return a}function d(b,c,e,d,h,g,l,k,p,u){var t=b.http;t.open(c,e);f(t,c,p);b.timeout=d;b.callbacks.chunk=h||b.callbacks.chunk;b.callbacks.success=g||b.callbacks.success;b.callbacks.failure=l||b.callbacks.failure;b.callbacks.abort=k||b.callbacks.abort;u&&(t.withCredentials=!0);a.add(b);return{abort:function(){b.abort()}}}var l={all:{"X-Requested-With":"XMLHttpRequest"},get:{Accept:"text/html,*/*"},post:{Accept:"text/html,*/*","Content-Type":"application/x-www-form-urlencoded"}},k=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}};k.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")?e:h)(a)}},25);a.timeout=
"undefined"===typeof a.timeout?2E4:a.timeout;a.timeoutTimer=g.delay(c,a.timeout,a)},get:function(a,b,c,f,e,h,g,l,k){if(b){var p=a.indexOf("?"),u=a.charAt(a.length-1);-1<p?"?"!==u&&"\x26"!==u&&(a+="\x26"):a+="?";a+=b}return d(this,"get",a,c,f,e,h,g,l,k)},abort:function(){this.http&&this.http.abort();clearInterval(this.pollTimer);clearTimeout(this.timeoutTimer);a.abort(this);this.callbacks.abort(this)},post:function(a,b,c,f,e,h,g,l,k){this.params=b;return d(this,"post",a,c,f,e,h,g,l,k)}};return k}()}(),
q={update:function(a,b,e){k(b).html(e)},append:function(a,b,e){a=k(b);a.html(a.html()+e)},prepend:function(a,b,e){a=k(b);a.html(e+a.html())},state:function(a,b,h){e.state(b,h)},script:function(a,b){eval(b)},trigger:function(a,b){var c=Array.prototype.slice.call(arguments,1);d.trigger.apply(void 0,c)}},a={"a-ajax-update":function(a){var b=new y,c=function(){var a=m.ue;a&&a.tag&&(a.tag("aui"),a.tag("aui:ajax"))},e=a.abort,h=k(a.indicator),d=h.hasClass("aok-hidden");h.removeClass("aok-hidden").show();
var l=function(a,b){h.hide();d&&h.addClass("aok-hidden");c();a&&a.apply(m,b)},p="string"===typeof a.method&&"post"===a.method.toLowerCase()?"post":"get";"get"===p&&!1===a.cache&&(a.params+=[""===a.params?"":"\x26","_\x3d",g.now()].join(""));return b[p](a.url,a.params,a.timeout,function(b){c();t(b,a.chunk)},function(){l(a.success,arguments)},function(){l(a.failure,arguments)},e,a.headers,a.withCredentials)}};l.declarative("a-ajax-update",function(b){var c=b.$target,e=b.action,h=b.data;if(h||d.events.defaults[b.targetTag]===
b.type)if("object"!==typeof h||h[b.type]){h=h||{};var g=h.url||c.attr("href")||c.attr("action"),l=p(h.params,h.paramsFormat),k=c.attr("method")||h.method,t=h.indicator;h=h.timeout;g||n.error("No ajax url provided.","A.ajax","declarativeHandler");"form"===b.targetTag&&b.type===d.events.defaults.form&&(c=c.serialize(),l+=c);b.$event.preventDefault();return a[e]({url:g,params:l,method:k,indicator:t,operation:e,timeout:h})}});var h=function(c,f){f=f||{};var e=f.headers||{};f.accepts!==r&&(e.Accept=f.accepts);
f.contentType!==r&&(e["Content-Type"]=f.contentType);var h=p(f.params,f.paramsFormat);return a["a-ajax-update"](b.obj(this,{url:c,cache:f.cache,params:h,method:f.method,chunk:f.chunk,success:f.success,failure:f.failure||f.error,abort:f.abort,indicator:f.indicator,timeout:f.timeout,headers:e,withCredentials:!!f.withCredentials}))};return{ajax:h,get:function(a,b){b=b||{};b.method="get";return h.call(this,a,b)},post:function(a,b){b=b||{};b.method="post";return h.call(this,a,b)}}});"use strict";n.when("a-util",
"p-detect","a-prefix").register("a-animate",function(b,k,g){function d(a,b,c){a=a.jquery?a[0]:a;b=g.prefixes.getStyle(b);a.style[b]=c}function l(a){var b="",c=k.capabilities.transform3d;a.top!==r&&a.left!==r?(b="translate",c&&(b+="3d"),b+="("+a.left+", "+a.top,c&&(b+=", 0"),b+=")"):(a.top!==r?b="translateY("+a.top+")":a.left!==r&&(b="translateX("+a.left+")"),c&&(b+=" translateZ(0)"));a.scale!==r&&(b+=" scale("+a.scale+")");return b}function e(a){var e={},c=!1;b.each(t,function(b){b in a&&(c=!0,e[b]=
a[b],delete a[b])});return c?e:null}function p(a,e,c){k.capabilities.transform?("string"===typeof c&&(c=parseInt(c,10)),b.isFiniteNumber(c)||(c=0),a=parseInt(a.css(e),10),b.isFiniteNumber(a)||(a=0),c=c-a+"px"):b.isFiniteNumber(c)&&(c+="px");return c}var t=["top","left","scale"],m={animate:function(a,b,c,f,e){a._a||(a._a=0);a._a++;var h=function(){a._a--;e&&e()};a.queue("fx",[function(){a.animate(b,{duration:c,easing:"linear"===f?f:"swing",complete:h,queue:!1})}])},fadeIn:function(a,b,c,f){(a.hasClass("aok-hidden")||
a.hasClass("a-hidden"))&&a.css("display","none").removeClass("aok-hidden a-hidden");this.stopAnimation(a,!0,!0);a.fadeIn({duration:b,easing:"linear"===c?c:"swing",complete:f,queue:!1})},fadeOut:function(a,b,c,f){this.stopAnimation(a,!0,!0);var e=a.css("opacity");a.fadeOut({duration:b,easing:"linear"===c?c:"swing",complete:function(){a.css("opacity",e);f&&f()},queue:!1})},fadeToggle:function(a,b,c,f){a.fadeToggle({duration:b,easing:"linear"===c?c:"swing",complete:f,queue:!1})},slideUp:function(a,b,
c,f){a.slideUp({duration:b,easing:"linear"===c?c:"swing",complete:f,queue:!1})},slideDown:function(a,b,c,f){a.slideDown({duration:b,easing:"linear"===c?c:"swing",complete:f,queue:!1})},slideToggle:function(a,b,c,f){a.slideToggle({duration:b,easing:"linear"===c?c:"swing",complete:f,queue:!1})},isAnimated:function(a){a=a.jquery?a[0]:a;return a._a&&0<a._a},stopAnimation:function(a,b,c){a.stop(b,c)}},q={animate:function(a,h,c,f,g){if(a&&a.length){var t=a[0];h=b.copy(h);c=c===r?250:c;f=f||"linear";h.top!==
r&&(h.top=p(a,"top",h.top));h.left!==r&&(h.left=p(a,"left",h.left));d(a,"transition",4>c?"all 0ms":"all "+c+"ms "+f);4<c?(t._a===r&&(t._a=0),t._a++,f=function(){0<t._a&&t._a--;t._a||d(a,"transition","");a.removeData("aAnimateTimeoutId").removeData("aAnimateOnComplete");g&&g()},a.data("aAnimateOnComplete",f).data("aAnimateTimeoutId",b.delay(f,c))):g&&b.delay(g,0);k.capabilities.transform&&(c=e(h))&&d(a,"transform",l({top:c.top,left:c.left,scale:c.scale}));b.objectIsEmpty(h)||a.css(h)}},fadeIn:function(a,
e,c,f){this.stopAnimation(a,!0,!0);if(a.data("aTargetOpacity")===r){var d=a.css("opacity")||1;a.data("aTargetOpacity",d)}else d=a.data("aTargetOpacity");a.css("opacity","0").removeClass("a-hidden aok-hidden").show();b.reflowCssChanges(a);this.animate(a,{opacity:d},e,c,function(){a.show();f&&f()})},fadeOut:function(a,b,c,f){this.stopAnimation(a,!0,!0);var e=a.css("opacity");a.data("aTargetOpacity")===r&&a.data("aTargetOpacity",e);this.animate(a,{opacity:0},b,c,function(){a.hide().css("opacity",e);
f&&f()})},fadeToggle:function(a,b,c,f){("none"===a.css("display")||.05>+a.css("opacity")?this.fadeIn:this.fadeOut).call(this,a,b,c,f)},slideUp:function(a,e,c,f){var d=this.animate;a.css({height:a.innerHeight(),overflow:"hidden"});b.delay(function(){d(a,{height:0},e,c,function(){a.hide();a.css({height:"",overflow:""});f&&f()})},0)},slideDown:function(a,e,c,f){var d=a.innerHeight(),g=this.animate;a.css({height:0,overflow:"hidden"});a.show();b.delay(function(){g(a,{height:d},e,c,function(){f&&f();a.css({height:"",
overflow:""})})},0)},slideToggle:function(a,b,c,f){(a.is(":visible")?this.slideUp:this.slideDown).call(this,a,b,c,f)},isAnimated:function(a){a=a.jquery?a[0]:a;return a._a&&0<a._a},stopAnimation:function(a,e,c){if(a&&a.length){var f=a[0];d(a,"transition","all "+(c?"1":"0")+"ms");e&&(f._a=0);b.reflowCssChanges(a);clearTimeout(a.data("aAnimateTimeoutId"));a.data("aAnimateOnComplete")&&a.data("aAnimateOnComplete")()}}};return k.capabilities.transition?q:m});"use strict";n.when("A","jQuery").register("a-image-lazy-loader",
function(b,k){function g(){k(".a-lazy-loaded").each(function(){e.set(k(this))})}function d(){var d=[];k(".a-lazy-loaded").each(function(){var p=k(this);p.data("src")&&l(p)&&(p.load(function(){b.trigger("a:image:lazyLoaded",p);g()}),d.push(p),p.removeClass("a-lazy-loaded"),e.remove(p))});b.each(d,function(b){b.attr("src",b.data("src"))})}function l(b){e.get(b)||e.set(b);var d=k(m),g=d.scrollTop();d=m.innerHeight?m.innerHeight:d.height();var l=g+d+500;g-=500;var a=e.get(b);b=a.top;a=a.height;var h=
b+a;return b>=g&&b<l||h>g&&h<=l||a>d&&b<=g&&h>=l}var e=function(){var b={},e=0;return{get:function(e){return b[e.data("cacheKey")]},set:function(d){d.data("cacheKey")||(d.data("cacheKey",e),e++);b[d.data("cacheKey")]={top:d.offset().top,height:d.height()}},remove:function(e){e.data("cacheKey")&&delete b[e.data("cacheKey")]}}}();g();d();b.on("scroll",function(){d()});b.on("scroll",b.debounce(function(){g();d()},250));b.on("resize",d);b.on("a:image:lazyLoad",d);b.on.ready(d)});"use strict";n.register("a-image-url-key-handler",
function(){return{generate:function(b,k){return b},parse:function(b){return{url:b}}}});"use strict";n.when("jQuery","a-util","a-events","a-defer","p-detect","a-image-url-key-handler").register("a-image",function(b,k,g,d,l,e){function p(a){a=b(a);var c=a.data("a-dynamic-image");if(c&&"object"===typeof c){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=l.capabilities.hires&&
m.devicePixelRatio?m.devicePixelRatio:1,d=e.width()*f,g=e.height()*f,p=Number.MAX_VALUE,t=Number.MAX_VALUE,n=a.attr("src")||"",q,y=d/g;k.each(c,function(a,b){var c=parseInt(a[0],10);a=parseInt(a[1],10);c-=g;a-=d;c=1<=y?a:c;Math.abs(c)<t&&0<=c&&(t=Math.abs(c),q=b);Math.abs(c)<p&&(p=Math.abs(c),n=b)});q&&(n=q);h.schedule(n,a);h.fill();return n}}function t(){b("img.a-dynamic-image").each(function(){b(this).data("a-manual-replacement")||p(this)})}var n=document.getElementsByTagName("img"),q={},a=0,h=
function(){var b=[],d={};return{schedule:function(a,c){a=e.generate(a,c.attr("crossorigin"));d[a]||(b.push(a),d[a]=!0);q[a]=q[a]||[];for(var f=0;f<q[a].length;f++)if(c.is(q[a][f]))return;q[a].push(c)},fill:function(){for(var e=0;e<2-a;e++)if(0<b.length){var f=b.shift();d[f]=!1;c.load(f)}}}}(),c=function(){function c(a){var b=q[a],c=e.parse(a).url;b&&(k.each(b,function(a){a.data("a-image-replaced")!==c&&(a.data("a-image-replaced",c),d.defer(function(){a.attr("src",c);g.trigger("a:image:load",{$imageElement:a,
url:c});var b=a.data("a-image-name");b&&g.trigger("a:image:load:"+b,{$imageElement:a,url:c})}))}),q[a]=[])}var l={};return{load:function(b){if(l[b])c(b);else if(!1!==l[b]){var f=new Image;f.onload=function(){a--;c(b);l[b]=!0;h.fill()};f.onerror=function(){a--;l[b]=!1;h.fill()};a++;d.defer(function(){var a=e.parse(b),c=a.crossOrigin;c&&(f.crossOrigin=c);f.src=a.url})}},poll:function(){k.isPageHidden()||k.each(n,function(a){a=b(a);!a.data("a-hires")||a.data("a-hires-loaded")||a.data("a-manual-replacement")||
a.is(":hidden")||!k.onScreen(a)||(h.schedule(a.data("a-hires"),a),a.data("a-hires-loaded",!0))})}}}();l.capabilities.hires&&g.on.ready(function(){k.interval(function(){c.poll();h.fill()},2E3)});g.on.ready(t);b(m).resize(t);return{loadHiResImage:function(a){var c=[];b(a).each(function(){var a=b(this),e=a.data("a-hires");e&&(h.schedule(e,a),h.fill(),c.push(e));a.data("a-hires-loaded",!0)});return c},loadDynamicImage:function(a){var c=[];b(a).each(function(){c.push(p(this))});return c},loadImageManually:function(a,
c){var e=[];b(a,c).each(function(){var a=b(this);if(!a.data("a-image-already-loaded")){a.data("a-image-already-loaded",!0);var c=p(a),f=b("\x3cimg\x3e").attr("src",c||a.data("a-image-source"));e.push(c);c=""+this.className;var d=a.data("a-extra-classes");d&&(c+=" "+d);f.attr("class",c);f.attr("id",this.id);f.attr("style",a.attr("style"));f.attr("alt",a.attr("alt"));f.attr("usemap",a.attr("usemap"));f.attr("title",a.attr("title"));f.attr("role",a.attr("role"));(c=a.data("a-image-crossorigin"))&&f.attr("crossorigin",
c);k.each(this.attributes,function(a){a&&a.name&&(0===a.name.indexOf("data-")||0===a.name.indexOf("aria-"))&&f.attr(a.name,a.value)});f.data(a.data());a.replaceWith(f)}return e})},loadDescendantImagesManually:function(a,c){a=b(a,c).find("div.a-manually-loaded").filter(function(){return!b(this).data("a-image-already-loaded")});return this.loadImageManually(a)}}});n.register("a-class",function(){function b(){}var k=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;b.extend=function(g){var d=this.prototype,
l=Object.create?Object.create(d):function(b){function e(){}e.prototype=b;return new e}(d),e;for(e in g)l[e]="function"===typeof g[e]&&"function"===typeof d[e]&&k.test(g[e])?function(b,e){return function(){var g=this._super;this._super=d[b];var l=e.apply(this,arguments);this._super=g;return l}}(e,g[e]):g[e];g="function"===typeof l.init?l.hasOwnProperty("init")?l.init:function(){d.init.apply(this,arguments)}:function(){};g.prototype=l;l.constructor=g;g.extend=b.extend;return g};return{createClass:function(g){return b.extend(g)}}});
"use strict";n.register("a-constants",function(){return{constants:{keycodes:{BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,SPACE:32,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,DELETE:46,HOME:36,END:35},declarativeEvents:"blur click dblclick focus focusin focusout mousedown mouseup mouseenter mouseleave mousemove change submit touchstart touchend touchmove touchcancel keydown keyup keypress MSPointerDown pointerdown MSPointerUp pointerup MSPointerMove pointermove MSPointerCancel pointercancel MSPointerOver pointerenter MSPointerOut pointerleave",
HIDE_CLASS:"aok-hidden",BROWSER_EVENTS:{SCROLL:"scroll",RESIZE:"resize",ORIENTATION_CHANGE:"orientationChange"},PAGESTATE_LOADED_MODULE_PREFIX:"page-state-loaded:",NOOP:function(){}}}});"use strict";n.when("jQuery","a-detect","a-events","a-util","a-defer").register("a-browser-events",function(b,k,g,d,l){function e(){return m.innerHeight?m.innerHeight:document.documentElement.clientHeight}function p(){return m.innerWidth?m.innerWidth:document.documentElement.clientWidth}function t(){return m.innerWidth?
Math.round(document.documentElement.clientWidth/m.innerWidth*10)/10:1}function n(a){switch(a){case c.ALL:a="orientation height width zoom scrollLeft scrollTop".split(" ");break;case c.SCROLL:a=["scrollLeft","scrollTop"];break;case c.ZOOM:a=["height","width","zoom","scrollLeft","scrollTop"];break;default:a=["orientation","height","width","scrollLeft","scrollTop"]}for(var b={},d,g;(g=a.pop())!==r;)d=f[g],"orientation"===g?f[g]=m.orientation===r?p()>e()?90:0:m.orientation:"height"===g?f[g]=e():"width"===
g?f[g]=p():"scrollTop"===g?f[g]=m.scrollY?m.scrollY:h.scrollTop():"scrollLeft"===g?f[g]=m.scrollX?m.scrollX:h.scrollLeft():"zoom"===g&&(f[g]=t()),f[g]!==d&&(b[g]=d);return b}function q(a){if(a=v[a])a.pollCounter=a.maxPollCount,a.intervalId||(a.intervalId=setInterval(a.handler,a.pollInterval))}function a(a){(a=v[a])&&a.intervalId&&(clearInterval(a.intervalId),a.intervalId=0)}var h=b(m),c={ORIENTATION_CHANGE:"orientationchange",SCROLL:"scroll",RESIZE:"resize",ZOOM:"zoom",ALL:"all"},f={scrollLeft:0,
scrollTop:0,height:e(),width:p(),orientation:m.orientation===r?p()>e()?90:0:m.orientation,zoom:t()};g.on("beforeReady",function(){n(c.ALL)});var z={speed:0,degree:0,direction:"",positionX:0,positionY:0},x=[],A;h.bind("mousemove",d.throttle(function(a){a={x:a.clientX,y:a.clientY};if(A){var b=A,c=0,e=0;x.push({speed:Math.sqrt(Math.pow(a.x-b.x,2)+Math.pow(a.y-b.y,2))/50*10,degree:Math.atan2(a.y-b.y,a.x-b.x)/(Math.PI/180)});4<x.length&&(x=x.slice(-4));b=x.length;for(var f=0;f<b;f++)c+=x[f].speed,e+=x[f].degree;
c=Number((c/b).toFixed(2));e=Math.round(e/b);z={speed:c,degree:e,direction:0<=e?157.5<e?"W":112.5<e?"SW":67.5<e?"S":22.5<e?"SE":"E":-157.5>e?"W":-112.5>e?"NW":-67.5>e?"N":-22.5>e?"NE":"E",positionX:a.x,positionY:a.y};A=a}else a&&(A=a)},50));h.bind(c.SCROLL,d.throttle(function(){var a=n(c.SCROLL);g.trigger(c.SCROLL,f,a)},100));var v={};d.each([c.RESIZE,c.ZOOM],function(a){v[a]={handler:function(){},lastViewport:d.copy(f),maxPollCount:5,pollCounter:5,pollInterval:100,intervalId:0}});v.resize.handler=
function(){var b=[],e=v.resize;n("resize");var h=d.diff(f,e.lastViewport);h.orientation&&b.push(c.ORIENTATION_CHANGE);h.width||h.height?b.push(c.RESIZE):k.capabilities.isIETouchCapable&&h.scrollTop&&b.push(c.RESIZE);b.length&&(e.lastViewport=d.copy(f),d.each(b,function(a){g.trigger(a,f,h)}));0===--e.pollCounter&&a(c.RESIZE)};v.resize.pollInterval=100;v.resize.maxPollCount=10;h.bind(c.RESIZE,function(a){q(c.RESIZE)});v.zoom.handler=function(){n(c.ZOOM);var b=v.zoom,e=d.diff(f,b.lastViewport);e.zoom&&
(b.lastViewport=d.copy(f),g.trigger(c.ZOOM,f,e));0===--b.pollCounter&&a(c.ZOOM)};v.zoom.pollInterval=200;k.capabilities.android&&h.bind("touchcancel",function(a){2===a.originalEvent.changedTouches.length&&(v.zoom.maxPollCount=15,q(c.ZOOM))});k.capabilities.ios&&h.bind("touchend",function(a){1===a.originalEvent.touches.length&&(v.zoom.maxPollCount=1,q(c.ZOOM))});k.capabilities.ios||k.capabilities.android||h.bind("resize",function(a){v.zoom.maxPollCount=5;q(c.ZOOM)});return{viewport:function(a){a&&
n(c.ALL);return d.copy(f)},cursor:function(){return d.copy(z)},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";n.register("a-analytics",function(){function b(b,d){var g=m&&m.ue&&m.ue.count;if(g&&b){var e="aui:"+
b;1<arguments.length&&g(e,d);return g(e)}}var k=m&&m.ue&&m.ue.tag;return{increment:function(g,d){if(g){var l=b(g)||0;b(g,l+(d||1))}},count:b,logError:function(b,d,l){m.ueLogError&&m.ueLogError({message:b},{logLevel:d,attribution:l})},tag:function(b){k&&b&&k("aui:"+b)}}});"use strict";n.when("a-util").register("a-request-animation-frame",function(b){for(var k=0,g=["ms","moz","webkit","o"],d=0;d<g.length&&!m.requestAnimationFrame;++d)m.requestAnimationFrame=m[g[d]+"RequestAnimationFrame"],m.cancelAnimationFrame=
m[g[d]+"CancelAnimationFrame"]||m[g[d]+"CancelRequestAnimationFrame"];m.requestAnimationFrame||(m.requestAnimationFrame=function(d,e){var g=b.now(),l=Math.max(0,16-(g-k));e=m.setTimeout(function(){d(g+l)},l);k=g+l;return e});m.cancelAnimationFrame||(m.cancelAnimationFrame=function(b){clearTimeout(b)});return{requestAnimationFrame:function(b,e){return m.requestAnimationFrame(b,e)},cancelAnimationFrame:function(b){m.cancelAnimationFrame(b)}}});"use strict";n.when("jQuery").register("a-form-controls-api",
function(b){var k=0,g=function(d){return d&&d.jquery?d:d&&1===d.nodeType?b(d):null},d=function(b,e,d){var l=g(b);if(!l||1!==l.length)return!1;b=l.find("input").first();e!==r&&(e=!!e,l.hasClass("a-touch-multi-select")&&(l.find("i.a-icon").first().toggleClass("a-icon-touch-multi-select-active",e).toggleClass("a-icon-touch-multi-select",!e),l.attr("aria-checked",e)),b.prop("checked")!==e&&b.prop("checked",e).trigger("change"));d!==r&&(d=!!d,b.prop("disabled")!==d&&b.prop("disabled",d))};return{findFormElementContainer:function(d){if((d=
g(d))&&1===d.length){var e=d.closest("form");0===e.length&&(e=d.closest("fieldset"),0===e.length&&(e=b(document)));return e}},toggleCheckboxState:function(b){b=g(b);if(b&&1===b.length){var e=b.find("input").first();d(b,!e[0].checked)}},setCheckboxState:d,setRadioState:d,normalizeElement:function(b){if((b=(b=g(b))?b:g(this))&&1===b.length){var e=b.find("input").first();e.attr("type");var l=b.hasClass("a-touch-multi-select");b.attr("id")||e.attr("id")||l&&(!l||b.parent().attr("id"))||(l="a-form-controls-autoid-"+
k,b.attr("aria-labelledby",l).find(".a-checkbox-label, .a-radio-label, .a-touch-multi-select-item-label").attr("id",l),k++);d(b,e[0].checked,e[0].disabled)}},normalizeFieldsets:function(d){b(d).closest("fieldset").each(function(e,d){e=b(d);d=e.find("legend").first();if(d.length){var g=d.attr("id");g||(g="a-form-controls-autoid-"+k,d.attr("id",g),k++);e.attr("aria-describedby",g)}})}}});"use strict";n.when("a-util","a-constants").execute("prepare-a-weblab",function(b,k){n.when(k.constants.PAGESTATE_LOADED_MODULE_PREFIX+
"a-wlab-states").register("a-weblab",function(g){function d(b){m||(r[b]=p[b]);return m&&m[b]||p[b]}function l(b){return d(b)||"C"}function e(b){return d(b)||"C"}var p=g||{},m,r={};n.when(k.constants.PAGESTATE_LOADED_MODULE_PREFIX+"a-ltree-states").execute(function(e){m=e||{};b.each(b.keys(r),function(a){(m[a]||r[a])&&m[a]!==r[a]&&n.log("a-weblab returned wrong value for "+a+". It returned "+r[a]+". it is set as "+m[a]+" at a-ltree-states.")})});return{is:function(b,a,d){return(d?e:l)(b)===a},isActive:function(b){return!!d(b)},
noTrigger:l,trigger:e}})});"use strict";n.declare("prv:a-post-atf-catchdomready",!0);n.when("a-util","a-defer","prv:a-post-atf-catchdomready").register("prv:a-post-atf",function(b,k,g){function d(){p||(p=!0,b.each(e,function(b){k.defer(b)}),e=[])}function l(){g&&d()}var e=[],p=!1;n.when("af","cf").execute("flush_queued_functions_after_ATF",d);n.when("a-domready").execute("flush_queued_functions_after_domready",function(){b.delay(l,500)});return{execute:function(b){p?k.defer(b):e.push(b)}}});"use strict";
n.register("prv:a-tnr",function(){return{findTnrAttribute:function(b,k,g){return null},ack:function(b,k,g,d){},ackDelegated:function(b){},ackDeclarative:function(b){},wrapJqBindArgs:function(){var b=arguments.length;if(1>=b)return[];for(var k=[],g=1;g<b;g++)k.push(arguments[g]);return k},wrapJqUnbindArgs:function(){for(var b=Array(arguments.length),k=0;k<b.length;++k)b[k]=arguments[k];return b},wrapDeclarativeActionHandler:function(b){return b}}});"use strict";n.register("prv:a-collect-p-debug",function(){var b=
!1;return function(){b||(b=!0,n.when("prv:p-debug","afterLoad").execute(function(b){b=JSON&&JSON.stringify?JSON.stringify(b):"{}";n.log(b,"WARN","[AUI] p-debug")}))}});"use strict";n.when("A").register("a-component-mixins",function(b){function k(g){for(var e=0;e<g.length;e++)if(0>b.indexOfArray(d,g[e]))return!1;return!0}var g=0,d=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(d,e){var l=b.parseFunctionName(e);l||n.error.call({},"Please name all asynchronous event callbacks");if(d=d?d.split(" "):r){this.fnMap=this.fnMap||{};k(d)||n.error.call({},"That event is not supported!");var m=this;b.each(d,function(d){this.fnMap[d]=this.fnMap[d]||[];var k=this.fnMap[d][e]=
"a-component-event-"+g++;b.declarative(k,d,function(){try{e.apply(m,m.callbackArgs||[])}catch(a){n.logError.call({},a,"Error occurred in an asynchronous event callback","FATAL",(e.caller||"")+d+"handler:"+(l||"anonymous"))}});b.declarative.create(m._$element,k)},m)}},off:function(d,e){d=d?d.split(" "):r;this.fnMap||n.error.call({},"There are no callbacks assigned to this component");d&&e?b.each(d,function(d){try{b.declarative.remove(this._$element,this.fnMap[d][e]),delete this.fnMap[d][e]}catch(t){n.error.call({},
"The component is not bound to a callback with name "+b.parseFunctionName(e)||"anonymous for event "+d)}},this):e||d?!e&&d?b.each(d,function(b){for(var e in this.fnMap[b])this.fnMap[b].hasOwnProperty(e)&&this.off(b,e);delete this.fnMap[b]},this):n.error.call({},"Please provide an event associated with the callback"):(b.declarative.remove(this._$element),delete this.fnMap)},trigger:function(d,e){this.callbackArgs=e||[];b.$.fn.trigger.call(this._$element,d)}}});"use strict";n.when("A","jQuery","a-component-mixins",
"a-analytics","prv:a-sampler").register("a-component",function(b,k,g,d,l){var e=b.createClass({init:function(e,d){b.contains(e,".a-")&&n.error("{API} Cannot create components using 'a-' selectors. Apply your own CSS class or ID to select this element.","API","component");this._$element=k(e,d);this._trackApi()},_trackApi:function(){this._componentName&&l("AUI API Analytics")&&d.increment("api:"+this._componentName)}});return{create:function(d){var l=d.mixin;l&&delete d.mixin;d=e.extend(d);l&&b.mixin(d.prototype,
g,l);return d}}});"use strict";n.when("A","jQuery","a-component").register("a-alert",function(b,k,g){var d=["error","success","warning","info"],l=b.map(d,function(b){return"a-alert-"+b}).join(" "),e=b.map(d,function(b){return"a-alert-inline-"+b}).join(" "),p=document.createElement("h4");p.className="a-alert-heading";var m=k(p),r=g.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=k();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(g){-1===b.indexOfArray(d,g)&&n.error("{API} Alert type must be one of [error, success, warning, info].","API","alert");this._$element.each(function(a,b){a=k(b);b="a-alert-";a.hasClass("a-alert-inline")?(b+="inline-",a.removeClass(e)):a.removeClass(l);a.addClass(b+g)});return this}});return function(b,a){return new r(b,a)}});"use strict";n.when("jQuery","a-component","a-form-controls-api").register("a-checkbox",
function(b,k,g){var d=g.setCheckboxState,l=k.create({_componentName:"checkbox",init:function(b,d){this._super(b,d);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(){d(this,b)});return this},uncheck:function(){return this.check(!1)},toggleChecked:function(){this._$element.each(function(){g.toggleCheckboxState(this)});return this},isChecked:function(){for(var b=
0,d=this._$input.length;b<d;b++)if(!this._$input[b].checked)return!1;return!0},isUnchecked:function(){for(var b=0,d=this._$input.length;b<d;b++)if(this._$input[b].checked)return!1;return!0},enable:function(b){b=void 0===b?!0:b;this._$element.each(function(){d(this,void 0,!b)});return this},disable:function(){return this.enable(!1)},toggleEnabled:function(){for(var b=0,g=this._$input.length;b<g;b++)d(this._$element[b],void 0,!this._$input[b].disabled);return this},isEnabled:function(){for(var b=0,
d=this._$input.length;b<d;b++)if(this._$input[b].disabled)return!1;return!0},isDisabled:function(){for(var b=0,d=this._$input.length;b<d;b++)if(!this._$input[b].disabled)return!1;return!0},toggle:function(d){"undefined"!==typeof d&&(d=!!d);this._$element.each(function(){b(this).toggle(d)});return this}});return function(b,d){return new l(b,d)}});"use strict";n.when("A","a-component").register("a-meter",function(b,k){var g=k.create({_componentName:"meter",init:function(b,g){this._super(b,g);this._$element=
this._$element.filter(".a-meter, .a-meter-with-txt");this._$bar=this._$element.find(".a-meter-bar");this._$progressTxt=this._$element.find(".a-meter-progress-txt")},mixin:["show","hide","size","isEmpty"],get:function(){return{percent:this.percent(),txt:this.text()}},enable:function(){this._$element.removeClass("a-inactive");return this},disable:function(){this._$element.addClass("a-inactive");return this},isEnabled:function(){return!this._$element.hasClass("a-inactive")},percent:function(d){if("undefined"===
typeof d)return d=this._$bar.get(0).style.width,parseInt(d,10);b.isFiniteNumber(d)||n.error("{API}  Meter percent should be a number between 0 and 100","a-meter","setProgress");d=Math.min(100,Math.max(0,d));d+="%";this._$bar.css({width:d});this._$element.attr({"aria-label":d,"aria-valuenow":d});return this},text:function(b){if("undefined"===typeof b)return this._$progressTxt.text();this._$progressTxt.text(b);return this},set:function(b,g){this.percent(b);g&&this.text(g);return this}});return function(b,
k){return new g(b,k)}});n.when("a-component").register("a-spinner",function(b){var k=b.create({_componentName:"spinner",init:function(b,d){this._super(b,d);this._$element=this._$element.filter(".a-spinner-wrapper, .a-spinner")},mixin:["show","hide","isEmpty","size"],remove:function(){this._$element.remove()}});return function(b,d){return new k(b,d)}});"use strict";n.register("a-ua",function(){return{compareVersions:function(b,k,g){var d=function(b){n.error("Versions are not comparable. "+b,"A - extras",
"compareVersions")};g=g||".";"string"===typeof b&&"string"===typeof k&&"string"===typeof g&&""!==b&&""!==k||d("Input values are not valid.");b=b.split(g);k=k.split(g);g=Math.max(b.length,k.length);for(var l=0;l<g;l++){var e=l<b.length?Number(b[l]):0,m=l<k.length?Number(k[l]):0;!isNaN(e)&&isFinite(e)&&!isNaN(m)&&isFinite(m)||d("Piece of one version number evaluates to NaN or +/- Infinity.");if(e<m)return-1;if(e>m)return 1}return 0}}});"use strict";n.when("a-analytics","prv:p-debug","ready").execute(function(b,
k){n.declare("prv:a-logTrigger",function(g){var d=k[g]&&k[g].registered||0,l=0,e=0,m;for(m in k)if(k.hasOwnProperty(m)){var n=k[m];n.end&&n.end<=d&&(l++,e+=n.end-n.start)}b.count("blocking-count:"+g,l);b.count("blocking-time:"+g,Math.round(e))})});"use strict";n.when("a-analytics","afterLoad").execute("a-doctype-test",function(b){document.doctype&&document.doctype.name&&"html"===document.doctype.name.toLowerCase()||(n.log("Missing or Invalid HTML doctype. Please refer to http://w?AUI/LogMessages#HDOCTYPE for more details.",
"WARN"),b.increment("a-doctype-issue"))});"use strict";n.when("jQuery","a-analytics","load").register("a-unicode-rupee-test",function(b,k){var g=b("\x3cdiv/\x3e"),d=b("\x3cspan/\x3e").html("\x26#65534;");b=b("\x3cspan/\x3e").html("\x26#8377;");g.append(d,b);g.appendTo(document.body);b=b.width();d=d.width();b===d?k.increment("aui-unsupported-rupee",1):k.increment("aui-supported-rupee",1);g.remove()});"use strict";n.register("prv:a-sampler-inclusion",function(){return{"AUI API Analytics":.01>Math.random()}});
n.when("prv:a-sampler-inclusion").register("prv:a-sampler",function(b){return function(k){return b.hasOwnProperty(k)&&b[k]}});"use strict";n.when("A","3p-promise","load").register("a-pcv",function(b,k){var g;return{getData:function(){g||(g=new k(function(b,g){var d=m.pcv.AmazonUI;d?(document.documentElement.setAttribute("data-aui-version",d),b(d)):g(Error("Package closure version of AmazonUI is not found on the page"))}));return g}}});"use strict";n.when("A").register("prv:a-timing-resource",function(b){var k=
m&&m.performance&&m.performance.getEntries&&"function"===typeof m.performance.getEntries;return function(g){if(!k)return[];var d=m.performance.getEntries({entryType:"resource"})||[];return"function"===typeof g?b.filter(d,g):d}});n.when("A","a-analytics","prv:a-timing-resource","ready").register("prv:a-asset-transfer",function(b,k,g){function d(b,d,e){return(b=b.exec(d))&&2<=b.length?b[1]:e||""}function l(){return g(function(b){return b&&("link"===b.initiatorType||"script"===b.initiatorType||"css"===
b.initiatorType)&&b.name&&0<b.name.indexOf("AUIClients/AmazonUI")})}var e=/AUIClients\/(.*?(?=#|$|-[a-z0-9]{40}))/;return function(){b.each(l(),function(b){var g=[b.initiatorType,d(e,b.name||"")].join(":");var l=b.startTime||0,m=b.responseEnd||0,a=b.transferSize||0;b=b.duration||m-l;0===a?k.tag(g+":cachehit"):k.count(g+":transferSize",a);k.count(g+":startTime",l);k.count(g+":transferTime",0<=b?b:0)})}});n.when("prv:a-asset-transfer","a-weblab").execute("a-asset-transfer-time",function(b,k){k.isActive("AUI_PERF_130093")&&
!k.is("AUI_PERF_130093","C")&&b()})});
/* ******** */
(function(l){var h=window.AmazonUIPageJS||window.P,p=h._namespace||h.attributeErrors,d=p?p("AmazonUIBaseJS@declarative","AmazonUI"):h;d.guardFatal?d.guardFatal(l)(d,window):d.execute(function(){l(d,window)})})(function(l,h,p){"use strict";l.when("jQuery","a-util","a-events","a-event-analytics","a-timing-analytics","a-constants","prv:a-declarative-analytics","p-recorder-stop","prv:a-tnr").register("a-declarative",function(d,k,q,l,h,r,p,v,w){function t(a){var c=d(a.currentTarget),b=d(a.target);if("submit"===
a.type){var e=b.closest("form");e.length&&(b=e)}if(e=c.data("action"))a={$target:b,$currentTarget:c,targetTag:b.prop("tagName").toLowerCase(),type:a.type,$event:a,$declarativeParent:c},x(e,a)}function x(a,c){var b=c.$event,e=c.$target,f=c.$currentTarget,d=c.type;a=a.split(" ");k.each(a,function(a){var g=u[a]||{},m=f.data(a),n=k.extend({},c,{action:a,data:m});a="a:declarative:"+a;var h=a+":"+d;q.trigger(a,n);q.trigger(h,n);q.isListening(h)||l.handle(b);n=!1;m?n=!!m.allowLinkDefault:g&&(n=!!g.allowLinkDefault);
"click"!==b.type||n?g=!1:(g=e.closest("a"),g=g.length&&("#"===g[0].href||b.currentTarget===g[0]||g.parent(".a-declarative").length));g&&b.preventDefault()})}var u={};v();d(document).delegate(".a-declarative",r.constants.declarativeEvents,t);d(document).delegate(".a-gesture","tap swipe swipe-horizontal swipe-vertical pan-horizontal pan-vertical doubleTap",t);r=function(){switch(arguments.length){case 2:var a=arguments[0];var c=arguments[1];break;case 3:a=arguments[0];var b=arguments[1];c=arguments[2];
break;case 4:a=arguments[0];b=arguments[1];var e=arguments[2];c=arguments[3]}if(a){"string"===typeof a&&(a=k.trim(a).split(" "));var d=this,m=w.wrapDeclarativeActionHandler(c);k.each(a,function(a){var c="a:declarative:"+a;u[a]=e||{};b?(b="string"===typeof b?k.trim(b).split(" "):b,k.each(b,function(b){q.on.call(d,c+":"+b,m);l.notifyDeclarativeAction(a,b);p.notify(a,b)})):q.on.call(d,c,m)})}};r.create=function(a,c,b){var e=a.jquery&&a.length?a:d(a);if(e.length&&c){var f=e.data("action");e.data("action",
f?f+" "+c:c).data(c,b?b:{});e.addClass("a-declarative")}return a};r.remove=function(a,c){var b=a.jquery&&a.length?a:d(a);if(!b.length)return a;var e=b.data("action");if(!e)return a;var f=e.split(" ");c?(c=c.split(" "),k.each(c,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};h.stopWidgetLogging("declarative");return{declarative:r}})});
/* ******** */
(function(d){var e=window.AmazonUIPageJS||window.P,m=e._namespace||e.attributeErrors,a=m?m("AmazonUIBaseJS@preload","AmazonUI"):e;a.guardFatal?a.guardFatal(d)(a,window):a.execute(function(){d(a,window)})})(function(d,e,m){"use strict";d.when("3p-promise","a-analytics","a-util","prv:a-preload-queue","prv:a-preload-strategies").register("a-preload",function(a,e,g,k,d){function n(){return new a(function(a){setTimeout(a,2500)})}function q(h,b){var q=Date.now();b=d.getStrategy(h,b)(h,b);var g=a.race([b.promise,
n()]).then(function(){e.increment("preload_fulfilled");return{url:h,success:!0,duration:Date.now()-q}},function(r){e.increment("preload_failed");return{url:h,success:!1,reason:r}});b.teardown&&g.then(b.teardown);return g}function l(h,b){if("string"===typeof h){if(!h.trim())return a.resolve();e.increment("preload_asks");return k(b).then(function(a){return q(h,b).then(a)})}return g.isArray(h)?a.all(h.map(function(a){return l(a,b)})):a.reject("not an URL or URL list")}return{preload:l}});d.when("3p-promise").register("prv:a-preload-queue",
function(a){function e(){if(g){var a=(k.length?k:n?p:[]).pop();a&&(g--,a())}}var g=5,k=[],p=[],n=!1;d.when("afterLoad").execute(function(){n=!0;for(var a=g;0<a;a--)e()});return function(d){function l(){l=function(){};g++;e()}return(new a(function(a){var b=d?k:p;b.splice(Math.round(Math.random()*b.length),0,a);e()})).then(function(){return function(a){l();return a}})}});d.when("3p-promise","a-util").register("prv:a-preload-strategies",function(a,d){function g(a){a=(a=/^(?:[^?#]+)[.]([a-z2]+)(?:[?#].*)?$/.exec(a))&&
a[1]||"";return"js"===a?"script":"css"===a?"style":/^gif|jpe?g|png$/.test(a)?"image":/^woff2?$/.test(a)?"font":"fetch"}function k(a,c){var f=/^(https?:|[/][/])/;return!(new RegExp("^("+c.protocol+")?//"+c.hostname+"/")).test(a)&&f.test(a)}function p(r){return function(c){var f=document.createElement("link");return{promise:new a(function(a,b){try{var d=g(c);f.rel=r;f.as=d;if("font"==d||"script"==d&&k(c,e.location))f.crossOrigin="anonymous";f.href=c;f.onerror=f.onload=a;document.head.appendChild(f)}catch(w){b("failed to preload link loader")}}),
teardown:function(){f&&f.parentElement&&f.parentElement.removeChild(f)}}}}function n(b){var c=new Image;return{promise:new a(function(a,d){try{c.style.display="none",c.onerror=c.onload=a,c.src=b,document.documentElement.appendChild(c)}catch(u){d("failed to preload image loader")}}),teardown:function(){c&&c.parentElement&&c.parentElement.removeChild(c)}}}function q(b){return{promise:new a(function(a,d){try{var c=new XMLHttpRequest;c.open("GET",b,!0);c.onreadystatechange=function(){4==this.readyState&&
a()};c.send()}catch(u){d("failed to preload ajax loader")}})}}function l(b){return{promise:new a(function(a,d){try{var c=g(b),f={mode:"font"==c||"script"==c&&k(b,e.location)?"cors":"no-cors"};e.fetch(b,f).finally(a)}catch(v){d("failed to preload fetch loader")}})}}var h=!!e.fetch,b=!1,m=!1;(function(){try{var a=document.createElement("link");b=a.relList.supports("preload");m=a.relList.supports("prefetch")}catch(c){}})();m&&p("prefetch");var t=b?p("preload"):function(){};return{getStrategy:function(a,
c){a=g(a);return b&&c?t:"image"===a?n:h?l:q}}})});
/* ******** */
(function(c){var b=window.AmazonUIPageJS||window.P,d=b._namespace||b.attributeErrors,a=d?d("AmazonUIBaseJS@touch","AmazonUI"):b;a.guardFatal?a.guardFatal(c)(a,window):a.execute(function(){c(a,window)})})(function(c,b,d){});
/* ******** */
(function(b){var c=window.AmazonUIPageJS||window.P,d=c._namespace||c.attributeErrors,a=d?d("AmazonUIBaseJS@A","AmazonUI"):c;a.guardFatal?a.guardFatal(b)(a,window):a.execute(function(){b(a,window)})})(function(b,c,d){"use strict";b.when("a-timing-analytics","a-bodyBegin").execute("build-A",function(a){var c=b.execute().decorate,d=b.when("a-util","a-defer","a-base","a-events","a-declarative","a-state","a-ajax","a-animate","a-image","a-constants","a-detect","a-browser-events","a-preload","a-prefix",
"a-request-animation-frame","a-class","a-draggable").register("A",function(b){function e(c,a,e){this._guard=c;this._logError=a;b.each(d,function(d){b.extend(this,new d.constructor(c,a))},this)}var d=[];e.prototype={};b.each(arguments,function(a){c&&a.constructor!==Object?d.push(a):(delete a.constructor,b.extend(e.prototype,a))});a.stopWidgetLogging("A");return c?e:e.prototype});c&&d.decorate(function(a,b){return new a(b.guard,b.logError)})})});
/* ******** */
(function(c){var f=window.AmazonUIPageJS||window.P,g=f._namespace||f.attributeErrors,d=g?g("AmazonUIButton@buttonJS","AmazonUI"):f;d.guardFatal?d.guardFatal(c)(d,window):d.execute(function(){c(d,window)})})(function(c,f,g){c.when("A","a-component").register("a-button",function(d,l){function e(a){a.preventDefault()}var h=l.create({_componentName:"button",init:function(a,b){this._super(a,b);this._$element=this._$element.filter(".a-button");this._$coreFormElement=this._$element.children(".a-button-inner").children("button,input");
this._$coreLinkElement=this._$element.children(".a-button-inner").children("a");this._$contentElement=this._$element.find(".a-button-text")},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);return this},disable:function(){this._$element.addClass("a-button-disabled").removeClass("a-button-focus");this._$coreFormElement.prop("disabled",
!0);this._$coreLinkElement.click(e);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"===b.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);b.attr("aria-checked",function(b,k){return m?"selected"===a:k});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")},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").attr("aria-checked",
"true");return this},setUnselected:function(){h(this);this._$element.attr("aria-checked","false");return this},isSelected:function(){return!a(this)&&this._$element.hasClass("a-button-selected")},isAvailable:function(){return!a(this)&&!this._$element.hasClass("a-button-unavailable")}});return function(a,b){return new f(a,b)}});"use strict";c.when("A","a-component","a-toggle-button").register("a-toggle-button-group",function(d,c,e){var f=c.create({_componentName:"toggleButtonGroup",init:function(a,
b){this._super(a,b);this._$toggleGroupElement=this._$element.filter(".a-button-group, .a-button-toggle-group").eq(0);this._$toggleGroupName=(a=this._$toggleGroupElement.data("a-button-group"))?a.name:g},name:function(){return this._$toggleGroupName},getToggleButtonByName:function(a){return this.getToggleButtonBySelector(".a-button:has([name\x3d"+a+"])")},setSelected:function(a){a=this.getToggleButtonBySelector(a);a.isEnabled()&&(this.getSelected().setUnselected(),a.setSelected());return this},getSelected:function(){return this.getToggleButtonBySelector(".a-button.a-button-selected")},
getToggleButtonBySelector:function(a){return e(this._$toggleGroupElement.find(a))}});return function(a,b){return new f(a,b)}})});
/* ******** */
(function(d){var 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;light 1em Amazon Ember;medium 1em Amazon Ember;italic 1em Amazon Ember;italic bold 1em Amazon Ember;italic light 1em Amazon Ember;italic medium 1em Amazon Ember".split(";"))})});
/* ******** */
(function(m){var C=window.AmazonUIPageJS||window.P,x=C._namespace||C.attributeErrors,e=x?x("AmazonUICarousel","AmazonUI"):C;e.guardFatal?e.guardFatal(m)(e,window):e.execute(function(){m(e,window)})})(function(m,C,x){m.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",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"});"use strict";m.when("jQuery").register("a-carousel-utils",function(e){function h(f){return"string"===typeof f}function g(f){return f&&f.nodeType!==x}function d(f){return""===f?"\x3cdiv\x3e\x3c/div\x3e":f?h(f)||g(f)?f:d(f.content):null}function l(f){f&&(h(f)||g(f)?f=!0:f.content=l(f.content));return f}return{addElementToDom:function(f,
d){if(d){if(h(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:l,getElementFromItem:d,isElement:g,isString:h}});"use strict";m.register("a-carousel-circular-utils",function(){function e(e){var d=0<e;return function(e,f,k){var c=f.length;k=(k||1)%c;e=e.get(0);for(var b,a=0;a<k;a++)d?(b=f.get(a),e.appendChild(b)):(b=f.get(c-1-a),e.insertBefore(b,
e.children[0]))}}function h(e){var d=0<e;return function(e,f){f=f?f%e.length:1;d?e=e.concat(e.splice(0,f)):e.unshift.apply(e,e.splice(e.length-f,f));return e}}return{rotateCW:e(1),rotateCCW:e(-1),rotateArrayCW:h(1),rotateArrayCCW:h(-1),firstCardIndexAfterRotate:function(e,d,l){e=(d+e)%l;0===e?e=l:0>e&&(e=l+e);return e},relativeIndexFromIndex:function(e,d,l){var f=1;if(0<e&&e<=l)return e>d?f=e-d+1:e<d&&(f=l-d+e+1),f;m.error("idx should be between 1 and "+l,"a-carousel-circular-utils","relativeIndexFromIndex")}}});
"use strict";m.when("A","jQuery").register("a-carousel-measure",function(e,h){return function(g){function d(d,k,c){var b,a,n;k.jquery||(k=h(k));for(e.each(c,function(b){if("top"===b||"left"===b)return a=k.offset(),!1});void 0!==(b=c.pop());){var f=d[b];"left"===b||"top"===b?d[b]=a[b]:-1<b.indexOf("outer")?d[b]=k[b](!0):d[b]=k["outer"+b.charAt(0).toUpperCase()+b.substr(1)]();d[b]!==f&&(void 0===n&&(n={}),n[b]=f)}return n}var l={carousel:{height:0,width:0,outerHeight:0,outerWidth:0},viewport:{height:0,
width:0,outerHeight:0,outerWidth:0},items:[],getFirstCardWidth:function(){return void 0===this.items[0]||!e.isFiniteNumber(this.items[0].width)||0>=this.items[0].width?160:this.items[0].width}};g.measure=function(f){var k=this.dom.$carousel,c=this.dom.$viewport,b={};f&&(f=f.split(" "));if(!f||-1<e.indexOfArray(f,"carousel"))b.carousel=d(l.carousel,k,"top left height width outerHeight outerWidth".split(" "));if(!f||-1<e.indexOfArray(f,"viewport"))b.viewport=d(l.viewport,c,["height","width","outerHeight",
"outerWidth"]);if(!f||-1<e.indexOfArray(f,"items"))l.items=[],b.items={},k.children("li").each(function(a,c){l.items[a]={};c=d(l.items[a],c,"top left height width outerHeight outerWidth".split(" "));void 0!==c&&(b.items[a]=c)});return b};g.getItemOffset=function(e){var d=l.items;e--;if(d&&d.length){if(e<d.length){for(var c=0,b=d[0].outerWidth,a=0;a<e;a++)c+=d[a]?d[a].outerWidth:b;0<e&&this.getAttr("first_item_flush_left")&&(c+=g.getAttr("currentGutter"));return c}}else return 0};g.getDimensions=function(){return e.copy(l)};
g.updateDimensionsCache=function(d){e.extend(l,d)};g.getViewportWidth=function(){try{return l.viewport.width}catch(f){}}}});"use strict";m.when("A","jQuery").register("a-carousel-attributes",function(e,h){return function(g,d){var l={},f={},k={};e.extend(l,d);g.onChange=function(c,b){c=c.split(" ");for(var a=c.length,d;a--;)d=c[a],f[d]||(f[d]=[]),h.isFunction(b)&&-1===e.indexOfArray(f[d],b)&&f[d].push(b);return this};g.unbind=function(c,b){f[c]&&b&&(b=e.indexOfArray(f[c],b),-1<b&&f[c].splice(b,1));
return this};g.once=function(c,b){var a=function(){b.apply(null,arguments);g.unbind(c,a)};return g.onChange(c,a)};g.setAttr=function(c,b,a){var d=l[c];l[c]=b;if(!(a||k[c]||e.equals(b,d))){k[c]=!0;b=e.copy(b);d=e.copy(d);if(f[c]){a=e.copy(f[c]);for(var A=0,p=a.length;A<p;A++)a[A](b,d,g,c)}b={newValue:b,oldValue:d,carousel:g};e.trigger("a:carousel:change:"+c,b);l.name&&e.trigger("a:carousel:"+l.name+":change:"+c,b);k[c]=!1}return this};g.getAttr=function(c){return e.copy(l[c])}}});"use strict";m.when("A",
"jQuery","a-carousel-measure","a-carousel-attributes","a-carousel-strategies","a-carousel-constants","a-analytics","prv:a-capabilities","prv:a-tnr").register("a-carousel-base",function(e,h,g,d,l,f,k,c,b){function a(a){var b=a.getAttr("set_size")<=a.getAttr("pageSize"),t=a.getAttr(f.NO_TRANSITION);1===a.getAttr("totalPages")&&1<a.getAttr("pageNumber")&&a.gotoPage(1,{startover:!0,animationDuration:0});a.dom.$container.find(".a-carousel-left, .a-carousel-right").css("visibility",b||t?"hidden":"visible")}
function n(a,b){return isNaN(a)?(m.log("`set_size` should be an integer: "+a,"WARN","aui:carousel:base"),b):parseInt(a,10)}function A(a){a.onChange("pageSize",function(b,c){var t=a.getAttr("firstVisibleItem"),e=Math.ceil(t/b);1===e&&1<t?e=2:1>e&&(e=1);a.setAttr("pageNumber",e);a.setAttr("totalPages",Math.ceil(a.getAttr("set_size")/b));t=a.getAttr("ajax");b>c&&(t&&t.prefetch_next_page?a.strategies.ajax.wantNextPage(a):a.strategies.ajax.wantCurrentPage(a))});a.onChange("set_size",function(b,t){var e=
a.getAttr("pageSize"),c=a.getAttr("fetchedItems");a.setAttr("totalPages",Math.ceil(b/e));b<t?(c.splice(b,Number.MAX_VALUE),a.setAttr("fetchedItems",c)):a.strategies.ajax.wantCurrentPage&&a.strategies.ajax.wantCurrentPage(a)});a.onChange("firstVisibleItem",function(b){a.dom.$container.find("input.a-carousel-firstvisibleitem").val(b)});a.onChange("pageNumber",function(b){0<b&&b<=a.getAttr("totalPages")&&a.setAttr("currentlyWrapping",!1)})}function p(a,b,c){if(0!==arguments.length){a.jquery||(a=h(a));
this.dom={$container:a,$viewport:a.hasClass("a-carousel-viewport")?a:a.find(".a-carousel-viewport"),$carousel:a.find(".a-carousel")};!a.length||this.dom.$viewport.length&&this.dom.$carousel.length||k.logError("[AUI] CarouselContainer does not have CarouselContent.","ERROR",JSON.stringify({xpath:e.xpath(a.get(0)),cssSelector:e.cssSelector(a.get(0)),custody:e.attributionChain(a.get(0))}));var t={totalPages:1E3,pageNumber:1,pageSize:0,firstVisibleItem:1,initThreshold:100,maintain_state:!0,px:0,auto_adjust_height:!0,
ajax:{}};e.extend(t,c);t.maintain_state=!!t.maintain_state;t.id_list?t.set_size||(t.set_size=t.id_list.length):t.id_list=[];var f=this.dom.$carousel.children("li");if(t.set_size)t.set_size=n(t.set_size,f.length);else{var p=parseInt(f.first().attr("aria-setsize"),10);e.isFiniteNumber(p)&&0<p?t.set_size=p:t.set_size=f.length}var r=[];this.dom.$carousel.children("li").each(function(a,b){r.push(h(b).hasClass("a-carousel-card-empty")?"":e.trim(b.innerHTML))});t.fetchedItems=r;g(this);d(this,t);this.strategies=
b;return this}}e.each(l,function(a,b){p.prototype["set"+b.charAt(0).toUpperCase()+b.slice(1)+"Strategy"]=function(a){this.strategies[name]=a;"function"===typeof a.init&&a.init(this)}});l=p.prototype;l.gotoNextPage=function(a){this.getAttr("transitionPaused")||(this.strategies.transition.gotoNextPage(this,a),a&&a.accessibleSafe&&this.strategies.accessibility.nextPage(this,a.animationDuration,a.animationSpeed))};l.gotoPrevPage=function(a){this.getAttr("transitionPaused")||(this.strategies.transition.gotoPrevPage(this,
a),a&&a.accessibleSafe&&this.strategies.accessibility.prevPage(this,a.animationDuration,a.animationSpeed))};l.gotoPage=function(a,b){this.getAttr("transitionPaused")||(this.strategies.transition.gotoPage(this,a,b),b&&b.accessibleSafe&&this.strategies.accessibility.gotoPage(this,b.animationDuration,b.animationSpeed))};l.gotoIndex=function(a,b){(!this.getAttr("transitionPaused")||b&&b.ignorePause)&&this.strategies.transition.gotoIndex(this,a,b)};l.gotoPixel=function(a,b){this.getAttr("transitionPaused")||
this.strategies.transition.gotoPixel(this,a,b)};l.resize=function(){if(this.dom.$container.is(":visible")){var a=this.measure("carousel viewport");this.strategies.display.resize(this,a)}};l.pause=function(){this.setAttr("transitionPaused",!0)};l.resume=function(){this.setAttr("transitionPaused",!1)};l.triggerEvent=function(a,b){b=b||{};b.carousel=this;e.trigger("a:carousel:"+a,b);var c=this.getAttr("name");c&&e.trigger("a:carousel:"+c+":"+a,b)};l.getStaticLoader=function(){return this.getAttr(f.STATIC_LOADER_CSS_CLASS)?
'\x3cdiv class\x3d"'+this.getAttr(f.STATIC_LOADER_CSS_CLASS)+'"\x3e\x3c/div\x3e':""};l.getEmptyCard=function(a,b){var c="a-carousel-card a-carousel-card-empty";this.getAttr(f.ELEMENT_CSS_CLASS)&&(c=c+" "+this.getAttr(f.ELEMENT_CSS_CLASS));return['\x3cli class\x3d"',c,'" role\x3d"listitem" aria-setsize\x3d"',b,'" aria-posinset\x3d"',a,'"\x3e',this.getStaticLoader(),"\x3c/li\x3e"].join("")};l.initTouchHandling=function(){var a=this,b=a.dom.$viewport;if(b.length&&((e.capabilities.touch||e.capabilities.pointerPrefix)&&
m.when("a-touch").execute(function(c){b.addClass("a-gesture a-gesture-horizontal").bind("pan-horizontal swipe-horizontal",function(){return!1});e.on("a:swipe-horizontal:"+b[0].id,function(b){if(!a.getAttr("transitionPaused")&&a.strategies.transition.onSwipe)a.strategies.transition.onSwipe(a,b)});if(!a.getAttr("disable_panning"))e.on("a:pan-horizontal:"+b[0].id,function(b){if(!a.getAttr("transitionPaused")&&a.strategies.transition.onPan)a.strategies.transition.onPan(a,b)})}),c.isIE10||c.isIE11Plus)){var d=
function(a){a.stopPropagation();a.preventDefault();document.body.removeEventListener("click",d,!0)};b.bind(e.action.start,function(a){b.bind("swipe-horizontal.a-ssiec pan-horizontal.a-ssiec",function(a){b.unbind(".a-ssiec");b.bind(e.action.end+".a-ssiec",function(a){b.unbind(".a-ssiec");document.body&&document.body.addEventListener("click",d,!0)})})});"touchstart"===e.action.start&&m.when("a-event-analytics").execute(function(a){a.notifyJquery(b,e.action.start)})}};l.init=function(){var c=this,d=
c.strategies,n=c.dom.$viewport[0];n&&!n.id&&(n.id="anonCarousel"+c.__id);c.dom.$carousel.contents().not(function(){return this.tagName&&"li"===this.tagName.toLowerCase()}).remove();e.each(c.strategies,function(a){a.initAttrs&&e.each(a.initAttrs,function(a,b){var d=a;"function"===typeof a&&(d=a(c.getAttr(b)));c.setAttr(b,d)})});if(1>c.getAttr("set_size"))return d.ajax.init(c),!1;c.measure();e.each(c.strategies,function(a){a.init(c)});d=c.getAttr("pageSize");n=c.getAttr("set_size");c.setAttr("totalPages",
Math.ceil(n/d));A(c);c.setAttr("isInTab",0<c.dom.$container.closest(".a-tab-content").length,!0);c.triggerEvent("init");e.each(c.strategies,function(a){a.afterInit&&a.afterInit(c)});c.triggerEvent("afterInit");d=c.getAttr("firstVisibleItem");1===d&&c.getAttr("maintain_state")&&(d=parseInt(c.dom.$container.find("input.a-carousel-firstvisibleitem").val(),10),e.isFiniteNumber(d)&&0<d&&d<=n||(d=1));if(1<d){n=700;for(var f=Math.ceil(d/c.getAttr("pageSize")),p=2;p<f;p++)n+=700/p;c.gotoIndex(d,{animationDuration:n,
easingFunction:"ease"})}a(this);c.onChange("pageSize set_size",function(){a(c)});d=c.dom.$container.find(".a-carousel-button");d.length&&(n=d.eq(0).position().top+"px",d.css("top",n));var k=!1,r=function(a){a.preventDefault();a={startover:!0,accessibleSafe:"keydown"===a.type?!0:!1};5<c.getAttr("pageNumber")?a.animationDuration=1250:a.animationSpeed=5*c.getDimensions().viewport.width;c.gotoPage(1,a)};c.dom.$container.delegate(".a-carousel-goto-nextpage","click dblclick",function(a){k||(k=!0,a.preventDefault(),
c.gotoNextPage(),e.delay(function(){k=!1},5));b.ackDelegated(a)}).delegate(".a-carousel-goto-prevpage","click dblclick",function(a){k||(k=!0,a.preventDefault(),c.gotoPrevPage(),e.delay(function(){k=!1},5));b.ackDelegated(a)}).delegate(".a-carousel-goto-nextpage","keydown",function(a){if(a.which===e.constants.keycodes.ENTER||a.which===e.constants.keycodes.SPACE)a.preventDefault(),c.gotoNextPage({accessibleSafe:!0});b.ackDelegated(a)}).delegate(".a-carousel-goto-prevpage","keydown",function(a){if(a.which===
e.constants.keycodes.ENTER||a.which===e.constants.keycodes.SPACE)a.preventDefault(),c.gotoPrevPage({accessibleSafe:!0});b.ackDelegated(a)}).delegate(".a-carousel-restart","keydown",function(a){a.which!==e.constants.keycodes.ENTER&&a.which!==e.constants.keycodes.SPACE||r(a);b.ackDelegated(a)}).delegate(".a-carousel-restart","click",function(a){r(a);b.ackDelegated(a)});m.when("a-event-analytics").execute(function(a){a.notifyJquery(c.dom.$container.find(".a-carousel-goto-nextpage"),"click dblclick keydown");
a.notifyJquery(c.dom.$container.find(".a-carousel-goto-prevpage"),"click dblclick keydown");a.notifyJquery(c.dom.$container.find(".a-carousel-goto-restart"),"keydown click")});c.dom.$container.find(".a-carousel-page-max").html(this.getAttr("totalPages"));return!0};return p});"use strict";m.when("A","jQuery","a-carousel-base","a-carousel-constants").register("a-carousel-mobile",function(e,h,g,d){function l(c){var b=c.getAttr("loaderHeight");b||((b=c.getAttr("maxHeight"))?(b=Math.min(.9*b,90),b=Math.max(b,
120)):b=90,c.setAttr("loaderHeight",b));return b}function f(c,b,a){g.call(this,c,b,a);if(0!==arguments.length)return this.getAttr("circular")===k&&this.setAttr("circular",!1),this.getAttr("show_partial_next")===k&&this.setAttr("show_partial_next",!0),this.getAttr("hide_off_screen")===k&&this.setAttr("hide_off_screen",!1),this.getAttr("springiness")===k&&this.setAttr("springiness",.8),this.getAttr("touch_easing")===k&&this.setAttr("touch_easing","cubic-bezier(0.215, 0.610, 0.355, 1.000)"),this.init=
function(){return g.prototype.init.call(this)?(this.getAttr(d.STATIC_LOADER_CSS_CLASS)||this.dom.$carousel.children("li").children(".a-loading-static").css("height",l(this)+"px"),this.getAttr(d.NO_TRANSITION)||this.initTouchHandling(),!0):!1},this}var k;f.prototype=new g;f.prototype.constructor=f;f.prototype.getStaticLoader=function(){return this.getAttr(d.STATIC_LOADER_CSS_CLASS)?'\x3cdiv class\x3d"'+this.getAttr(d.STATIC_LOADER_CSS_CLASS)+'"\x3e\x3c/div\x3e':'\x3cdiv class\x3d"a-loading-static" style\x3d"height:'+
l(this)+'px"\x3e\x3cdiv class\x3d"a-loading-static-inner"\x3e\x3c/div\x3e\x3c/div\x3e'};return f});"use strict";m.when("A","jQuery","a-carousel-base","a-carousel-constants").register("a-carousel-desktop",function(e,h,g,d){function l(c){var b=c.getAttr("set_size")<=c.getAttr("pageSize"),a=c.getAttr(d.NO_TRANSITION);c.dom.$container.find(".a-carousel-pagination").css("visibility",b||a?"hidden":"visible")}function f(c,b,a){g.call(this,c,b,a);if(0!==arguments.length){var e=this;e.getAttr("circular")===
k&&this.setAttr("circular",!0);e.getAttr("hide_off_screen")===k&&this.setAttr("hide_off_screen",!0);e.onChange("totalPages",function(a){e.dom.$container.find(".a-carousel-page-max").html(a);a<e.getAttr("pageNumber")&&e.gotoPage(a)});e.onChange("pageNumber",function(a,b){b=e.dom.$container;var c=b.find(".a-carousel-restart-container");1<a?c.show():c.hide();b.find(".a-carousel-page-current").html(a)});e.init=function(){var a=this;return g.prototype.init.call(a)?(l(this),a.onChange("pageSize set_size",
function(){l(a)}),2>a.getAttr("pageNumber")&&a.dom.$container.find(".a-carousel-restart-container").hide(),a.getAttr(d.NO_TRANSITION)||a.initTouchHandling(),!0):!1};return e}}var k;f.prototype=new g;return f.prototype.constructor=f});"use strict";m.when("A","a-carousel-desktop","a-carousel-mobile").register("a-carousel-classes",function(e,h,g){return{desktop:h,mobile:g,"default":e.capabilities.mobile||e.capabilities.tablet?"mobile":"desktop"}});"use strict";m.when("A","jQuery","p-detect","a-carousel-constants").register("a-carousel-stretchygoodness",
function(e,h,g,d){function l(a,b,c,d){a.getAttr("show_partial_next")&&(b-=c/10);var n=a.getAttr("minimum_gutter_width");a.getAttr("set_size");a=0;for(var f=!0;0<b;)a++,b=d&&f?b-c:b-(c+n),f=!1;0>b&&a--;return e.isFiniteNumber(a)&&0<a?a:1}function f(a,b,c,d,f,k,g){"stretch"===a.getAttr("single_page_align")&&d>k&&(d=k);b-=c*d;a.getAttr("show_partial_next")?(a=b-f*(d+1),g&&(a+=f),g=a/c,b-=c*(.5<g?.5:g)):g&&(b+=f);c=Math.ceil(b/(d+1));if(!e.isFiniteNumber(c)||c<f)c=f;return c}function k(a){if(a.getAttr("auto_adjust_height"))if(a.getAttr("animating"))a.once("animating",
function(){k(a)});else{var b=a.getAttr("maxHeight"),c=a.getDimensions();b&&e.isFiniteNumber(b)||(b=1);var d=b,f=a.getAttr("pageSize"),g=f*(a.getAttr("pageNumber")-1);f=g+f-1;c=c.items;var l=c.length,h;for(a.getAttr("show_partial_next")&&f++;g<=f&&g<l;g++)(h=c[g])&&h.outerHeight>d&&(d=c[g].outerHeight||c[g].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&&k(a)});a.onChange("loading",function(b){b||k(a)});a.onChange("firstVisibleItem",function(){k(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;h(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"),k=a.getAttr("set_size"),g=a.getAttr("first_item_flush_left"),h=l(a,c,b,g),q=f(a,c,b,h,d,k,g);a.setAttr("currentGutter",q);a.setAttr("pageSize",h);var m=a.dom.$carousel,v=m.children("li");d=v.length;var r=
a.getAttr("totalPages"),B=a.getAttr("pageNumber"),y=a.getAttr("firstVisibleItem"),G=(B-1)*h+1;B>r?(y=(r-1)*h+1,a.setAttr("pageNumber",r),a.setAttr("firstVisibleItem",y)):y!==G&&(r=Math.ceil(y/h),y=(r-1)*h+1,a.setAttr("pageNumber",r),a.setAttr("firstVisibleItem",y));var D=y-1,E=D+h-1;a.getAttr("show_partial_next")&&E++;var H=a.getAttr("hide_off_screen"),I=q+"px",J=b+"px",F;v.each(function(a,b){F=!H||a>=D&&a<=E;b.style[e.capabilities.rtl?"marginRight":"marginLeft"]=g&&0===a?0:I;b.style.visibility=F?
"":"hidden";b.style.width=J});var x;a.getAttr("first_item_flush_left")?(q=v.first().outerWidth(!0),1<v.length&&(x=v.eq(1).outerWidth(!0)),r=(d-1)*x+q):(q=x=v.first().outerWidth(!0),r=d*x);h>=k?(r=c,B=a.getAttr("single_page_align"),m.toggleClass("a-text-right","right"===B),m.toggleClass("a-text-center","center"===B),"center"===B&&v.first().css("margin-left",0)):m.removeClass("a-text-right a-text-center");r=h>=k?c:r;m.css("width",r+"px");c={carousel:{width:r,outerWidth:m.outerWidth()},items:[]};for(k=
0;k<d;k++)c.items.push({width:b,outerWidth:0===k?q:x});a.updateDimensionsCache(c);a.gotoIndex(y,{animationDuration:0,ignorePause:!0});a.triggerEvent("repaint")}return{repaint:b,init:function(a){var f=a.getAttr("minimum_gutter_width");e.isFiniteNumber(f)||(f=15,a.setAttr("minimum_gutter_width",f));a.setAttr("currentGutter",f);f=a.getAttr("height_animation_speed");e.isFiniteNumber(f)||a.setAttr("height_animation_speed",200);a.setAttr("first_item_flush_left",!!a.getAttr("first_item_flush_left"));a.setAttr("show_partial_next",
!!a.getAttr("show_partial_next"));b(a);a.getAttr(d.NO_TRANSITION)||k(a);f=a.getDimensions();a.dom.$container.find(".a-carousel-left, .a-carousel-right, .a-carousel-viewport").css("height",Math.max(f.viewport.height,f.items[0]?f.items[0].height:0)+"px");f=a.getAttr("firstVisibleItem");1<f&&(a.setAttr("firstVisibleItem",f),f=Math.ceil(f/a.getAttr("pageSize")),a.gotoPage(f));c(a)},resize:function(a,c){c.viewport&&void 0!==c.viewport.width&&b(a)}}});"use strict";m.when("A","jQuery","p-detect","a-carousel-utils").register("a-carousel-display-swap",
function(e,h,g,d){function l(c){if(c.getAttr("auto_adjust_height")){var b=c.getAttr("maxHeight");b&&e.isFiniteNumber(b)||(b=1);var a=b;c.dom.$carousel.children("li").not(".a-carousel-card-empty").each(function(b,c){b=h(c).outerHeight();a=Math.max(b,a)});a>b&&(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||l(c)});c.onChange("loading",function(b){b||l(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"),k=c.getAttr("fetchedItems"),g=c.getAttr("firstVisibleItem")-1,w=c.dom.$carousel.children("li"),u=document.createDocumentFragment();if(h.isArray(k)){for(var q=w.length;q<b;q++){var m=q+g;w=h(['\x3cli class\x3d"a-carousel-card a-carousel-card-empty" role\x3d"listitem" aria-setsize\x3d"',
a,'" aria-posinset\x3d"',m+1,'" style\x3d"width:',e,"px; margin-left:",f,'px;"\x3e',c.getStaticLoader()].join(""));k[m]&&d.addElementToDom(w,d.getElementFromItem(k[m]));m>=a&&w.removeClass("a-carousel-card-empty");u.appendChild(w[0])}c.dom.$carousel.append(u)}l(c)}});c.onChange("set_size",function(b,a){var d=c.getAttr("pageNumber"),f=c.getAttr("totalPages"),p=c.dom.$carousel.children("li");d===f&&b>a&&(p.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&&k(c))});c.onChange("single_page_align minimum_gutter_width",function(){k(c)});c.onChange("minimum_gutter_width",function(){k(c)})}function k(c){var b=c.getDimensions(),a=b.viewport.width,d=b.getFirstCardWidth(),f=c.getAttr("minimum_gutter_width");b=c.getAttr("set_size");var k=c.getAttr("minimum_gutter_width");c.getAttr("set_size");k=Math.max(Math.floor(a/(d+k)),1);k=e.isFiniteNumber(k)?k:1;var g=k;"stretch"===c.getAttr("single_page_align")&&
g>b&&(g=b);g=Math.ceil((a-d*g)/(g+1));e.isFiniteNumber(g)||(g=f);var l=g;c.setAttr("currentGutter",l);c.setAttr("pageSize",k);g=c.dom.$carousel;var h=g.children("li");f=h.length;d+=l;var q=f*d,m=Math.min(k,b);c.dom.$carousel.children("li").slice(m).remove();h.css("margin-left",l+"px");k>=b?(q=a,a=c.getAttr("single_page_align"),g.toggleClass("a-text-right","right"===a),g.toggleClass("a-text-center","center"===a),"center"===a&&h.first().css("margin-left",0)):g.removeClass("a-text-right a-text-center");
for(a={carousel:{width:q,outerWidth:g.outerWidth()},items:[]};f--;)a.items.push({outerWidth:d});c.updateDimensionsCache(a);c.triggerEvent("repaint")}return{repaint:k,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);k(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");1<b&&(c.setAttr("firstVisibleItem",b),b=Math.ceil(b/c.getAttr("pageSize")),c.gotoPage(b))},resize:function(c,b){b.viewport&&void 0!==b.viewport.width&&k(c)}}});"use strict";m.when("A","jQuery").register("a-carousel-display-single",function(e,h){function g(d){if(d.getAttr("auto_adjust_height"))if(d.getAttr("animating"))d.once("animating",function(){g(d)});else d.dom.$viewport.css("height","auto"),e.delay(function(){d.dom.$viewport.height(d.dom.$viewport.height())},
0);else d.dom.$viewport.css("height","")}function d(d,c){var b=d.dom.$carousel.children("li"),a=d.getAttr("firstVisibleItem")-1;d=d.getAttr("show_partial_next")?2:1;a=b.slice(a,a+d);b.not(a).css("visibility","hidden");c&&a.css("visibility","")}function l(e){e.getAttr("fixed_height")||(e.dom.$viewport.delegate("img","load",function(){g(e)}),e.onChange("loading",function(c){c||g(e)}),e.onChange("pageNumber",function(){e.getAttr("hide_off_screen")&&e.dom.$carousel.children("li").css("visibility","")}),
e.onChange("animating",function(c){!c&&e.getAttr("hide_off_screen")&&d(e)}),e.onChange("minimum_gutter_width",function(){f(e)}))}function f(e){var c=e.getDimensions(),b=c.viewport.width,a=e.getAttr("show_partial_next"),f=e.getAttr("minimum_gutter_width"),g=e.getAttr("set_size"),k=e.dom.$carousel.children("li");b-=2*f;a&&(b-=f+c.viewport.width/3);k.css({width:b+"px",margin:"0 "+f+"px"});c=b+2*f;a=c*g;e.dom.$carousel.width(a);for(a={carousel:{width:a},items:[]};g--;)a.items[g]={width:b,outerWidth:c};
e.updateDimensionsCache(a);e.getAttr("hide_off_screen")&&d(e,!0);e.gotoIndex(e.getAttr("firstVisibleItem"),{animationDuration:0,ignorePause:!0});e.triggerEvent("repaint")}return{repaint:f,init:function(d){var c=d.getAttr("minimum_gutter_width");d.setAttr("minimum_gutter_width",e.isFiniteNumber(c)?c:14);d.setAttr("show_partial_next",!!d.getAttr("show_partial_next"));d.setAttr("pageSize",1);d.setAttr("pageSize",1);c=d.getAttr("fixed_height");e.isFiniteNumber(c)?d.dom.$viewport.height(c):d.setAttr("fixed_height",
!1);d.dom.$carousel.children("li").css("visibility","visible");l(d);this.repaint(d);g(d)},resize:function(d,c){c.viewport&&void 0!==c.viewport.width&&(this.repaint(d),d.getAttr("fixed_height")||g(d))}}});"use strict";m.when("A","jQuery","a-carousel-constants").register("a-carousel-display-peekcircular",function(e,h,g){function d(d){return function(f){return e.isFiniteNumber(f)?f:d}}h={};h[g.PAGE_SIZE]=1;h[g.MIN_GUTTER]=d(14);h[g.PEEK_PERCENTAGE]=d(10);return{initAttrs:h,init:function(d){var e=this;
d.onChange(g.PEEK_PERCENTAGE,function(f,c){e.repaint(d)});d.dom.$carousel.children("li").css("visibility","visible");e.repaint(d)},repaint:function(d){var f=d.getAttr(g.MIN_GUTTER),k=d.getAttr(g.SET_SIZE),c=d.getAttr(g.PEEK_PERCENTAGE),b=d.getDimensions().viewport.width,a=d.dom.$carousel,n=a.children("li");c=c/100*b;var h=b-2*c-f,p=h+2*f;b=p*k;a.width(b);n.css({width:h+"px","margin-left":f+"px","margin-right":f+"px"});d.updateDimensionsCache({carousel:{width:b},items:e.map(e.range(k),function(){return{width:h,
outerWidth:p}})});d.setAttr(g.PEEK_WIDTH,c,!1);d.triggerEvent("repaint")},resize:function(d,e){e.viewport&&e.viewport.width!==x&&this.repaint(d)}}});"use strict";m.when("A").register("a-carousel-display-variablewidth",function(e){return{init:e.constants.NOOP,resize:e.constants.NOOP,repaint:e.constants.NOOP}});"use strict";m.when("a-carousel-stretchygoodness","a-carousel-display-swap","a-carousel-display-single","a-carousel-display-peekcircular","a-carousel-display-variablewidth").register("a-carousel-strategies-display",
function(e,h,g,d,l){return{swap:h,single:g,peekCircular:d,stretchyGoodness:e,variableWidth:l,"default":"stretchyGoodness"}});"use strict";m.when("A","jQuery","a-carousel-utils").register("a-carousel-transition-swap",function(e,h,g){function d(d,b){var a=d.getAttr("preloadedImages");a||(a=[]);for(var c=[],f=b.length-1;0<=f;f--)if(b[f]&&!a[f]){var p=g.getElementFromItem(b[f]);p&&h("img",p).each(function(){c.push(this.src)});a[f]=!0}e.preload(c);d.setAttr("preloadedImages",a)}function l(d){return"number"===
typeof d?d?0>d?-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"),p=f.filter(".a-carousel-card-empty");p.length&&d.setAttr("loading",!0);p.each(function(k,n){var t=h(n);n=f.index(n)+a-1;var l=b[n];l&&e.delay(function(){g.addElementToDom(t,g.getElementFromItem(l));k===p.length-1&&d.setAttr("loading",!1)},0+c)})}function k(d,b,a){a=a||{};var c=d.getAttr("pageNumber");if(b!==
c){var f=d.getAttr("set_size"),p=d.getAttr("totalPages"),k=d.getAttr("circular"),h=d.getAttr("pageSize"),u=a.delayTime||d.getAttr("delay_time"),q=l(a.direction)||NaN;!k&&1>b?b=1:!k&&b>p?b=p:k&&1>b?b=p:k&&b>p&&(b=1);q||(q=c<b?1:-1);a.startover&&(q=u=1);var m=h*(b-1),v=1===q?0:h-1;d.setAttr("pageNumber",b);d.setAttr("firstVisibleItem",m+1);d.setAttr("animating",!0);var r=e.interval(function(){var a=m+v;if(r!==d.getAttr("responsiveTimerId"))clearInterval(r);else if(-1===q&&0>v||1===q&&v>=h)d.setAttr("responsiveTimerId",
x),d.setAttr("animating",!1);else{var b=d.dom.$carousel.children("li").eq(v),c=d.getAttr("fetchedItems")[a];c?g.addElementToDom(b,g.getElementFromItem(c)):a<f?b.html(d.getStaticLoader()).addClass("a-carousel-card-empty"):b.empty().removeClass("a-carousel-card-empty");v+=q}},u);d.setAttr("responsiveTimerId",r)}}return{init:function(c){var b=c.getAttr("delay_time");e.isFiniteNumber(b)||c.setAttr("delay_time",30);c.onChange("responsiveTimerId",function(a,b){b!==a&&clearInterval(b)});c.onChange("fetchedItems",
function(a,b){f(c,a);d(c,a)});d(c,c.getAttr("fetchedItems"))},gotoIndex:function(d,b,a){a=a||{};var c=d.getAttr("pageSize");k(d,Math.ceil(b/c),a)},gotoNextPage:function(d,b){b=b||{};var a=d.getAttr("pageNumber");b.direction=-1;k(d,++a,b)},gotoPrevPage:function(d,b){b=b||{};var a=d.getAttr("pageNumber");b.direction=1;k(d,--a,b)},gotoPage:k}});"use strict";m.when("A","jQuery","a-carousel-utils","a-carousel-constants").register("a-carousel-transition-slide",function(e,h,g,d){function l(b){var a=b.dom.$carousel.children("li").length,
c=a+1,e=b.getAttr(d.SET_SIZE),f=e-a;if(0<f){f=c+f-1;for(var k=[];c<=f;c++)k.push(b.getEmptyCard(c,e));b.dom.$carousel.append(k.join(""));b.setAttr(d.LOADING,!0);f=b.getAttr(d.FETCHED_ITEMS);k=b.dom.$carousel.children("li");var h;for(c=a;c<e;c++)if(h=f[c]){var l=g.getElementFromItem(h);a=k.eq(c);g.addElementToDom(a,l);f[c]=g.clearElementFromItem(h)}b.strategies.display.repaint&&b.strategies.display.repaint(b);b.setAttr(d.FETCHED_ITEMS,f,!0);b.setAttr(d.LOADING,!1)}}function f(b,a,c){if(b.getAttr(d.ANIMATING))b.once(d.ANIMATING,
function(){f(b,a,c)});else{var k=b.getDimensions().items,p=[];if(!c||a.length>=c.length){b.setAttr(d.LOADING,!0);for(var h=b.dom.$carousel.children("li"),n,l,q=a.length;q--;)if(l=a[q],null===l&&p.push(q),l&&!e.equals(l,c[q])&&!0!==l&&!0!==l.content){var m=g.getElementFromItem(l);n=h.eq(q);n.length&&(g.addElementToDom(n,m),k[q]={width:n.outerWidth(),outerWidth:n.outerWidth(!0),height:n.outerHeight(),outerHeight:n.outerHeight(!0)},a[q]=g.clearElementFromItem(l))}p.length&&(e.each(p,function(b){h.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:k});b.setAttr(d.LOADING,!1)}}var k=e.capabilities.touch?2E3:3E3,c=e.capabilities.rtl?-1:1;return{wrapToFirst:function(b){var a=b.getAttr(d.PAGE_SIZE),c=b.getDimensions().getFirstCardWidth(),e=this;b.gotoPixel(a*c*-1,{animationDuration:0,callback:function(){b.setAttr(d.CURRENTLY_WRAPPING,!1);e.gotoPage(b,1)}})},wrapToLast:function(b){b.getAttr(d.PAGE_SIZE);
var a=b.getAttr(d.TOTAL_PAGES),c=this,e=b.getDimensions().carousel.width;b.gotoPixel(e,{animationDuration:0,callback:function(){b.setAttr(d.CURRENTLY_WRAPPING,!1);c.gotoPage(b,a)}})},gotoPage:function(b,a,c){c=c||{};(void 0===c.animationDuration||0<c.animationDuration)&&!c.silent&&b.setAttr(d.ANIMATING,!0);var e=b.getAttr(d.TOTAL_PAGES);0<a&&a<=e&&b.setAttr(d.PAGE_NUMBER,a);var f=b.getAttr(d.CIRCULAR);!f&&1>a?(a=1,c.animationDuration=Math.pow(b.getAttr(d.ANIMATION_SPEED)*b.getAttr(d.SPRINGINESS))):
!f&&a>e&&(a=e,c.animationDuration=Math.pow(b.getAttr(d.ANIMATION_SPEED),b.getAttr(d.SPRINGINESS)));this.gotoIndex(b,b.getAttr(d.PAGE_SIZE)*(a-1)+1,c)},gotoIndex:function(b,a,c){c=c||{};(void 0===c.animationDuration||0<c.animationDuration)&&!c.silent&&b.setAttr(d.ANIMATING,!0);var f=b.getAttr(d.CIRCULAR)&&!b.getAttr(d.CURRENTLY_WRAPPING),g=c.callback,k=this,h=!1,l=b.getViewportWidth(),n=Math.ceil(a/b.getAttr(d.PAGE_SIZE));n!==b.getAttr(d.PAGE_NUMBER)&&0<n&&n<=b.getAttr(d.TOTAL_PAGES)&&b.setAttr(d.PAGE_NUMBER,
n);b.setAttr(d.FIRST_VISIBLE_ITEM,a);if(1>a){if(f){h=-1*l;var m=function(){g&&g();k.wrapToLast(b)}}}else a>b.getAttr(d.SET_SIZE)?f&&(h=b.getAttr(d.CURRENT_PIXEL)+l,m=function(){g&&g();k.wrapToFirst(b)}):h=b.getItemOffset(a);m?(b.setAttr(d.CURRENTLY_WRAPPING,!0),c.callback=m,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",k=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);0<h&&!c.silent&&b.setAttr(d.ANIMATING,!0);if(e.isFiniteNumber(a)){f=0<h?function(){k&&k();b.getAttr(d.CURRENTLY_WRAPPING)||b.setAttr(d.ANIMATING,e.isAnimated(b.dom.$carousel),c.silent)}:
k;var l=e.capabilities.rtl?1:-1;b.setAttr(d.CURRENT_PIXEL,a);e.animate(b.dom.$carousel,{left:a*l},h,g,f)}else m.error("Target pixel is not a finite number","a-carousel-transition-slide","gotoPixel")}},gotoNextPage:function(b,a){var c=b.getAttr(d.PAGE_NUMBER);this.gotoPage(b,++c,a)},gotoPrevPage:function(b,a){var c=b.getAttr(d.PAGE_NUMBER);this.gotoPage(b,--c,a)},onSwipe:function(b,a){if(!b.getAttr(d.CURRENTLY_WRAPPING)){var f=b.getAttr(d.FIRST_VISIBLE_ITEM),g=b.getAttr(d.PAGE_SIZE),k=b.getAttr(d.PAGE_NUMBER),
h=0>c*a.velocityX,l=f;h&&k<b.getAttr(d.TOTAL_PAGES)?l=f+g:!h&&1<k&&(l=f-g);g=b.getAttr(d.CURRENT_PIXEL);k=b.getItemOffset(l);a=Math.abs(1E3*(h?g-k:g+k)/a.velocityX);a=Math.max(a,300);a=Math.min(a,1.2*e.viewport().width);a={animationDuration:a,easingFunction:b.getAttr(d.TOUCH_EASING)};l!==f||b.getAttr("circular")?h?b.gotoNextPage(a):b.gotoPrevPage(a):(a.animationSpeed=.95*e.viewport().width,delete a.animationDuration,b.gotoIndex(l,a))}},onPan:function(b,a){if(!b.getAttr(d.CURRENTLY_WRAPPING)){b.setAttr(d.ANIMATING,
!0);var f=b.getItemOffset(b.getAttr(d.FIRST_VISIBLE_ITEM)),g=f-c*a.touchDeltaX,k=b.getAttr(d.CIRCULAR),h=b.getAttr(d.PAGE_NUMBER),l=b.getAttr(d.TOTAL_PAGES);a.ended?(f={easingFunction:b.getAttr(d.TOUCH_EASING),animationSpeed:.95*e.viewport().width,silent:!0},a=c*a.touchDeltaX,g=Math.abs(a)<.4*b.getViewportWidth(),!k&&(0>a&&l===h||0<a&&1===h)||g?b.gotoPage(h,f):0>a?b.gotoNextPage(f):b.gotoPrevPage(f)):(!k&&(k=b.getAttr(d.SPRINGINESS),0>g&&0<a.touchDeltaX||h===l&&0>a.touchDeltaX)&&(h=Math.pow(Math.abs(a.touchDeltaX),
k),g=0>=g?-1*h:f+h),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,k);void 0===b.getAttr(d.WRAP_EASING)&&b.setAttr(d.WRAP_EASING,"linear");l(b);b.onChange(d.FETCHED_ITEMS,function(a,d){f(b,a,d)});b.onChange(d.SET_SIZE,function(a,d){a>d&&l(b)})}}});"use strict";m.when("A","a-carousel-utils","a-carousel-circular-utils","a-carousel-constants").register("a-carousel-transition-slidecircular",
function(e,h,g,d){function l(a){var b=a.dom.$carousel.children("li").length,f=a.getAttr(d.SET_SIZE),g=f-b,k=c(a,b);0<g&&(b+=1,g=e.map(e.range(b,b+g),function(b){return a.getEmptyCard(b,f)}),k.after(g.join("")),a.measure("items"))}function f(c,e){var f=c.getAttr(d.SET_SIZE);if(2<c.getAttr(d.SET_SIZE)){var g=a(c,c.getAttr(d.FIRST_VISIBLE_ITEM)),r=Math.round(c.getAttr(d.SET_SIZE)/2);f=k(r,g,f);0!==f.quantity&&(t(c,f.direction,f.quantity),g=f.direction===u.CLOCKWISE?g-f.quantity:g+f.quantity,e.gotoPixel(c,
b(c,g),{animationDuration:0}))}}function k(a,b,d){var c={};a===b?a=b=0:a>b?(b=a-b,a=d-b):(a=b-a,b=d-a);c.direction=a<=b?u.CLOCKWISE:u.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 n(b,
f,g){if(b.getAttr(d.ANIMATING))b.once(d.ANIMATING,function(){n(b,f,g)});else{var k=b.getDimensions().items,l=Math.min(f.length,b.getAttr(d.SET_SIZE));if(!g||f.length>=g.length)b.setAttr(d.LOADING,!0),e.each(e.range(l),function(d){var l=d+1,r=f[d],p=c(b,l),D=r&&!(!0===r||!0===r.content);r&&!e.equals(r,g[d])&&p.length&&D&&(l=a(b,l),k[l]={width:p.outerWidth(),outerWidth:p.outerWidth(!0),height:p.outerHeight(),outerHeight:p.outerHeight(!0)},h.addElementToDom(p,h.getElementFromItem(r)),f[d]=h.clearElementFromItem(r))}),
b.setAttr(d.LOADING,!1);b.setAttr(d.FETCHED_ITEMS,f);b.updateDimensionsCache({items:k})}}function A(a){var b={reached:!1,left:!1,right:!1};if(!(2<a.getAttr(d.SET_SIZE))){var c=a.getAttr(d.PAGE_NUMBER);a=a.getAttr(d.SET_SIZE);1===c&&(b.reached=!0,b.left=!0);c===a&&(b.reached=!0,b.right=!0)}return b}function p(a,b,c){var f=A(a),e=a.getAttr(d.PAGE_NUMBER);f.reached&&f[b]?a.gotoPage(e):("right"===b?a.gotoNextPage:a.gotoPrevPage).call(a,c)}function t(a,b,c){var f=a.getAttr(d.TRANSITION_SLIDE_CIRCULAR_FIRST_CARD_IDX)||
1,e=a.getAttr(d.SET_SIZE),k=a.dom.$carousel.children("li"),h=a.dom.$carousel;b===u.CLOCKWISE?(g.rotateCW(h,k,c),f=g.firstCardIndexAfterRotate(c,f,e)):(g.rotateCCW(a.dom.$carousel,a.dom.$carousel.children("li"),c),f=g.firstCardIndexAfterRotate(-1*c,f,e));a.setAttr(d.TRANSITION_SLIDE_CIRCULAR_FIRST_CARD_IDX,f);c=c||1;b=b||u.CLOCKWISE;f=a.getDimensions().items;f=b===u.CLOCKWISE?g.rotateArrayCW(f,c):g.rotateArrayCCW(f,c);a.updateDimensionsCache({items:f})}function w(c,g,k,h,l){var p=l.callback,r=a(c,
c.getAttr(d.FIRST_VISIBLE_ITEM)),D=c.getAttr(d.CURRENT_PIXEL)-b(c,r);e.sequence(function(a){t(c,g,h);a()},function(a){k.gotoPixel(c,b(c,g===u.CLOCKWISE?r-h:r+h)+D,{animationDuration:0,callback:a})},function(a){l.callback=a;k.gotoPixel(c,b(c,r),l)},function(a){f(c,k);a()},function(a){p&&p();a()})()}var u={CLOCKWISE:1,COUNTER_CLOCKWISE:-1},q=e.capabilities.rtl?-1:1,z=e.capabilities.touch?2E3:3E3,v={};v[d.HIDE_OFF_SCREEN]=!1;v[d.ANIMATION_SPEED]=function(a){return function(b){return e.isFiniteNumber(b)?
b:a}}(z);v[d.TRANSITION_SLIDE_CIRCULAR_FIRST_CARD_IDX]=1;return{initAttrs:v,init:function(a){l(a);a.onChange(d.FETCHED_ITEMS,function(b,c){n(a,b,c);a.strategies.display.repaint(a)});a.onChange(d.SET_SIZE,function(b,c){b>c&&l(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 f=a.getAttr(d.TOTAL_PAGES);0<b&&b<=
f&&(a.setAttr(d.PAGE_NUMBER,b),this.gotoIndex(a,a.getAttr(d.PAGE_SIZE)*(b-1)+1,c))},gotoIndex:function(c,f,e){var g=c.getAttr(d.SET_SIZE),h=a(c,c.getAttr(d.FIRST_VISIBLE_ITEM)),l=a(c,f);h===l?this.gotoPixel(c,b(c,h),e):(2<c.getAttr(d.SET_SIZE)?(g=k(h,l,g),e.startover&&(5<g.quantity?e.animationDuration=1250:(delete e.animationDuration,e.animationSpeed=5*c.getDimensions().viewport.width)),w(c,g.direction,this,g.quantity,e)):this.gotoPixel(c,b(c,f),e),c.setAttr(d.FIRST_VISIBLE_ITEM,f))},gotoPixel:function(a,
b,c){var f=a.getAttr(d.CURRENT_PIXEL);if(b!==f){e.isFiniteNumber(b)||m.error("Target pixel is not a finite number","a-carousel-transition-slide-circular","gotoPixel");c=c||{};var g=c.easingFunction||"ease-out",k=c.callback;if(c.animationDuration!==x)var h=c.animationDuration;else h=e.isFiniteNumber(c.animationSpeed)?c.animationSpeed:a.getAttr(d.ANIMATION_SPEED),f=Math.abs(b-f),h=0===h?0:Math.floor(f/h*1E3);0<h&&(!c.silent&&a.setAttr(d.ANIMATING,!0),k=function(){c.callback&&c.callback();a.setAttr(d.ANIMATING,
e.isAnimated(a.dom.$carousel),c.silent)});f=e.capabilities.rtl?u.CLOCKWISE:u.COUNTER_CLOCKWISE;a.setAttr(d.CURRENT_PIXEL,b);e.animate(a.dom.$carousel,{left:b*f},h,g,k)}},gotoNextPage:function(a,b){var c=a.getAttr(d.PAGE_NUMBER);c=c===a.getAttr(d.TOTAL_PAGES)?1:c+1;this.gotoPage(a,c,b)},gotoPrevPage:function(a,b){var c=a.getAttr(d.PAGE_NUMBER);c=1===c?a.getAttr(d.TOTAL_PAGES):c-1;this.gotoPage(a,c,b)},onSwipe:function(c,f){var g=c.getAttr(d.CURRENT_PIXEL),k=c.getAttr(d.PAGE_SIZE),h=a(c,c.getAttr(d.FIRST_VISIBLE_ITEM)),
l=0>q*f.velocityX;k=b(c,l?h+k:h-k);g=Math.abs(1E3*(l?g-k:g+k)/f.velocityX);l=1.2*e.viewport().width;p(c,0>q*f.touchDeltaX?"right":"left",{animationDuration:Math.min(Math.max(g,300),l),easingFunction:c.getAttr(d.TOUCH_EASING)})},onPan:function(c,f){c.setAttr(d.ANIMATING,!0);var g=c.getAttr(d.PAGE_NUMBER),k=a(c,c.getAttr(d.FIRST_VISIBLE_ITEM));k=b(c,k);k=A(c).reached?k-q*f.touchDeltaX*.4:k-q*f.touchDeltaX;f.ended?(k={easingFunction:c.getAttr(d.TOUCH_EASING),animationSpeed:.95*e.viewport().width,silent:!0},
Math.abs(f.touchDeltaX)>=.4*c.getViewportWidth()?p(c,0>q*f.touchDeltaX?"right":"left",k):c.gotoPage(g,k)):c.gotoPixel(k,{easingFunction:c.getAttr(d.TOUCH_EASING),animationDuration:0,silent:!0})}}});"use strict";m.when("A","a-carousel-utils","a-carousel-constants").register("a-carousel-transition-freescroll",function(e,h,g){function d(b){a[b.__id]||(a[b.__id]=new n(b));return a[b.__id]}function l(a){for(var b=a.countItems(),c=[],d=0;d<b;d++)c.push(!0);a.setAttr(g.FETCHED_ITEMS,c)}function f(a){var b=
a.countItems(),c=a.getAttr(g.SET_SIZE),d=[];if(c>b){for(var f=0;f<c-b;f++){var e=b+f+1;d.push(a.getEmptyCard(e,c))}a.appendItems(d)}}function k(a,b,c){if(!c||b.length>=c.length)for(var d=a.getItems(),f=b.length,k;f--;)(k=b[f])&&!e.equals(k,c[f])&&!0!==k&&!0!==k.content&&a.hasItem(d,f)&&(b[f]=a.insertFetchedItem(k,d,f));a.setAttr(g.FETCHED_ITEMS,b)}function c(a){a.hasEmptyCard()&&a.attachScrollListener(function(){a.throttle("detect",b)})}function b(a){var c=a.getAttr("loading_threshold_pixels"),d=
a.measureWidth(),f=a.getFirstEmptyDetails();-1!==f.index&&f.left<d+c?a.wantNext(f.index,a.getAttr("next_request_size")):(a.previousCardLeft&&a.previousCardLeft!==f.left&&a.throttle("detect",b),a.previousCardLeft=f.left)}var a={},n=function(a){this.carousel=a};e.extend(n.prototype,{setAttr:function(a,b){return this.carousel.setAttr(a,b)},getAttr:function(a){return this.carousel.getAttr(a)},onChange:function(a,b){this.carousel.onChange(a,b)},getItems:function(){return this.carousel.dom.$carousel.children("li")},
countItems:function(){return this.getItems().length},showItems:function(){return this.getItems().css("visibility","").attr("aria-hidden","false")},getEmptyCard:function(a,b){return this.carousel.getEmptyCard(a,b)},getEmptyCards:function(){return this.carousel.dom.$carousel.children(".a-carousel-card-empty")},hasEmptyCard:function(){return 0<this.getEmptyCards().length},getFirstEmptyDetails:function(){var a=this.getEmptyCards();return 0<a.length?(a=a.first(),{index:a.index(),left:a.position().left}):
{index:-1,left:-1}},appendItems:function(a){this.carousel.dom.$carousel.append(a.join(""))},hasItem:function(a,b){return 0<a.eq(b).length},insertFetchedItem:function(a,b,c){h.addElementToDom(b.eq(c),h.getElementFromItem(a));return h.clearElementFromItem(a)},attachScrollListener:function(a){this.carousel.dom.$carousel.bind(e.action.move+".a-carousel-freeScroll scroll.a-carousel-freeScroll",a)},detachScrollListener:function(a){this.carousel.dom.$carousel.unbind(".a-carousel-freeScroll")},measureWidth:function(){return this.carousel.dom.$carousel.outerWidth()},
wantNext:function(a,b){this.carousel.strategies.ajax.want(this.carousel,a,b)},throttle:function(a,b){var c=this;clearTimeout(c[a]);c[a]=setTimeout(function(){b(c)},100)}});var m={ajaxLock:!0};m[g.NO_TRANSITION]=!0;m[g.HIDE_OFF_SCREEN]=!1;m[g.AUTO_ADJUST_HEIGHT]=!1;m.next_request_size=10;m.loading_threshold_pixels=400;return{gotoIndex:e.constants.NOOP,gotoNextpage:e.constants.NOOP,gotoPrevPage:e.constants.NOOP,gotoPage:e.constants.NOOP,initAttrs:m,init:function(a){var h=d(a);h.showItems();l(h);f(h);
c(h);h.onChange(g.FETCHED_ITEMS,function(a,c){b(h);k(h,a,c);h.hasEmptyCard()||h.detachScrollListener()});e.on.resize(function(){b(h)})},afterInit:function(a){var c=d(a);e.delay(function(){c.setAttr("ajaxLock",!1);b(c)})},prepareFetchedItems:l,addEmptyCards:f,handleItemChanges:k,detectEmptyCardsLoadingThreshold:b,ATTR:{NEXT_REQUEST_SIZE:"next_request_size",LOADING_THRESHOLD_PIXELS:"loading_threshold_pixels"}}});"use strict";m.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,h,g,d,l,f,k){h={};h[k.NO_TRANSITION]=!0;h[k.HIDE_OFF_SCREEN]=!1;h[k.AUTO_ADJUST_HEIGHT]=!1;return{slideHorizontal:g,swap:d,freeScroll:l,slideCircular:f,none:{gotoIndex:e.constants.NOOP,gotoNextPage:e.constants.NOOP,gotoPrevPage:e.constants.NOOP,gotoPage:e.constants.NOOP,initAttrs:h,init:function(c){c.dom.$carousel.children("li").css("visibility","").attr("aria-hidden",
"false")}},"default":"slideHorizontal"}});"use strict";m.when("A").register("a-carousel-ajax-standard",function(e){function h(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)m.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||m.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"),k=f.getAttr("ajax"),h=[],l,w=a.length;w--;)l=a[w],null===l&&h.push(w),l&&(l.content||""===l.content?l.content=e.trim(l.content):l=e.trim(l)),b[c.offset+w]=l;k.remove_nulls&&k.id_list&&h.length&&(e.each(h,function(a){k.id_list.splice(c.offset+a,1)}),f.setAttr("ajax",k));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 f=d.getAttr("requestTimer");f&&(clearTimeout(f),d.setAttr("requestTimer",null))}function d(d,g){return e.isArray(d)?d:d!==l&&null!==d&&!e.objectIsEmpty(d)&&d.hasOwnProperty("data")&&e.isArray(d.data)?d.data:null}var l;return{getItems:function(d,g,c,b){var a=d.getAttr("ajax");d.setAttr("requestTimer",e.delay(h,a.fetch_delay,d,g,c,b))},wantNextPage:function(d){g(d);
if(d.getAttr("ajax").prefetch_next_page){var f=d.getAttr("pageSize"),c=2*f;d.getAttr("show_partial_next")&&c++;this.want(d,(d.getAttr("pageNumber")-1)*f,c)}else this.wantCurrentPage(d)},wantPrevPage:function(d){g(d);if(d.getAttr("ajax").prefetch_next_page){var f=d.getAttr("pageSize"),c=2*f;d.getAttr("show_partial_next")&&c++;this.want(d,(d.getAttr("pageNumber")-2)*f,c)}else this.wantCurrentPage(d)},wantCurrentPage:function(d){g(d);var f=d.getAttr("pageSize"),c=d.getAttr("show_partial_next")?f+1:f;
this.want(d,(d.getAttr("pageNumber")-1)*f,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=-1<e?e:0;e=e+c-1;var l=b.params||{},m=b.headers||{},u=[],q=[];0===a&&(h.length&&(a=h),l.needSetSize="true",d.setAttr("ajaxLock",!0));for(-1===c&&a&&(e=a);k<=e&&k<a;)f[k]||((c=h[k])&&u.push(c),q.push(k),f[k]=!1),k++;d.setAttr("fetchedItems",f,{silent:!0});l.count=q.length;l.offset=q[0]||
0;0<u.length&&(l[b.id_param_name]=u.join(","));(0<q.length||l.needSetSize)&&this.getItems(d,b.url,l,m)}}},init:function(d){var f=d.getAttr("ajax");e.isFiniteNumber(f.fetch_delay)||(f.fetch_delay=500);f.id_param_name=f.id_param_name||"ids";f.prefetch_next_page=f.prefetch_next_page===l?!0:!!f.prefetch_next_page;d.setAttr("ajax",f);d.getAttr("set_size")||this.want(d,0,-1)},afterInit:function(d){d.strategies.ajax.wantCurrentPage(d);d.onChange("pageNumber",function(e,c){e>c?d.strategies.ajax.wantNextPage(d):
d.strategies.ajax.wantPrevPage(d)});d.onChange("loading",function(e){e||d.strategies.ajax.wantCurrentPage(d)})}}});"use strict";m.when("a-util").register("a-carousel-ajax-promise",function(e){function h(g,d){var h=g.getAttr("requestTimer");h&&clearTimeout(h);g.setAttr("requestTimer",e.delay(d,500))}return{getItems:function(g,d,l){h(g,function(){var f=g.getAttr("async_provider");f&&f(d,l).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,h){d=Math.max(0,d);h=Math.min(d+h,g.getAttr("set_size"));for(var f=g.getAttr("fetchedItems"),k=[];d<h;d++)f[d]||(k.push(d),f[d]=!1);if(k.length){var c,b=g.getAttr("ajax").id_list;
b&&(c=e.map(k,function(a){return b[a]}));g.setAttr("fetchedItems",f,{silent:!0});this.getItems(g,k,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";m.when("A","a-carousel-ajax-standard","a-carousel-ajax-promise").register("a-carousel-strategies-ajax",function(e,
h,g){return{standard:h,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";m.when("A","a-carousel-constants").register("a-carousel-accessibility-standard-desktop",function(e,h){function g(a){var b=a.dom.$carousel,c=b.children("li"),d=a.getAttr(h.PAGE_SIZE),e=a.getAttr(h.FIRST_VISIBLE_ITEM),f=e-1,g=a.getAttr(h.TRANSITION_SLIDE_CIRCULAR_FIRST_CARD_IDX);if(a.getAttr(h.NO_TRANSITION))return c;
if(c.length<=d)return b.children("li:not(:empty), li.a-carousel-card-empty");"slideCircular"===a.getAttr(h.TRANSITION_STRATEGY)&&(f=g-e-1,0===c.length%2&&--f);b=f=(f+2*c.length)%c.length;"peekCircular"===a.getAttr(h.DISPLAY_STRATEGY)&&--b;d=f+d;if("peekCircular"===a.getAttr(h.DISPLAY_STRATEGY)||a.getAttr(h.SHOW_PARTIAL_NEXT))d+=1;return c.slice(Math.max(b,0),Math.min(d,c.length))}function d(a,b,c,d){var k=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(h.PAGE_SIZE)*a.getAttr(h.DELAY_TIME)+50)};if(0===c||0===d)e.delay(k,0);else{var l=function(b){b||(k(),a.unbind(h.ANIMATING,l))};a.onChange(h.ANIMATING,l)}}function l(a){var c=a.dom.$carousel.children("li"),d=a.getAttr(h.TRANSITION_STRATEGY),e=a.getAttr(h.SET_SIZE),f=e?{"aria-setsize":e}:{};if("swap"===d){var g=a.getAttr(h.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 k(a,b){if(!a.getAttr(h.NO_TRANSITION)){var c=a.dom.$carousel.children("li"),d=a.getAttr(h.TRANSITION_STRATEGY);a=a.getAttr(h.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(h.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(h.TOTAL_PAGES)?"true":"false")}}var b=e.$;return{init:function(a){var b=a.getAttr(h.NAME);l(a);k(a,g(a));c(a,1);e.on("a:carousel"+(b?":"+b:"")+":repaint",function(){k(a,g(a))});a.onChange(h.SET_SIZE,function(b,c){l(a)});a.onChange(h.LOADING,function(b){a.getAttr(h.ANIMATING)||
a.dom.$carousel.attr("aria-busy",(!!b).toString())});a.onChange(h.ANIMATING,function(b){a.getAttr(h.LOADING)||a.dom.$carousel.attr("aria-busy",(!!b).toString());!b&&a.getAttr(h.SET_SIZE)>a.getAttr(h.PAGE_SIZE)&&(b=a.getAttr(h.TRANSITION_STRATEGY),k(a,g(a)),"slide"!==b&&l(a))});a.onChange(h.PAGE_NUMBER,function(b){c(a,b);k(a,a.dom.$carousel.children("li"))})},afterInit:function(a){f(a)},gotoPage:function(a,b,c){a.getAttr(h.NO_TRANSITION)||d(a,!0,b,c)},nextPage:function(a,b,c){a.getAttr(h.NO_TRANSITION)||
d(a,!0,b,c)},prevPage:function(a,b,c){a.getAttr(h.NO_TRANSITION)||d(a,!1,b,c)}}});"use strict";m.when("A","a-carousel-constants").register("a-carousel-accessibility-standard-mobile",function(e,h){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(h.SET_SIZE,function(){g(d)});d.onChange(h.LOADING,function(e){d.dom.$carousel.attr("aria-busy",(!!e).toString());e||g(d)})},gotoPage:e,nextPage:e,prevPage:e}});"use strict";m.when("A","a-carousel-accessibility-standard-desktop","a-carousel-accessibility-standard-mobile").register("a-carousel-strategies-accessibility",function(e,h,g){return{standardDesktop:h,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";m.when("a-carousel-strategies-display","a-carousel-strategies-transition","a-carousel-strategies-ajax","a-carousel-strategies-accessibility").register("a-carousel-strategies",function(e,h,g,d){return{display:e,transition:h,ajax:g,accessibility:d}});"use strict";m.when("A","jQuery","a-timing-analytics","a-carousel-classes","a-carousel-strategies","a-carousel-constants").register("a-carousel-framework",
function(e,h,g,d,l,f){function k(a,b,d,f){var g=a.hasClass("a-begin"),h=0<a.children(".a-end").length;if(g?h:1)return b=new b(a,d,f),b.__id=++C,a.data("a-carousel",b),a.removeClass("a-carousel-static"),p(a,b)?e.delay(c,10,b):z.push(b),f.name&&(r[f.name]=b),b}function c(a){a.init();q.push(a);a.__initialized=!0;a.dom.$container.addClass("a-carousel-initialized");var b=a.getAttr("name");b&&y[b]&&e.each(y[b],function(b){b(a)})}function b(a,b){(b=b[a+"Strategy"])||(b=l[a]["default"]);return l[a][b]}function a(a){for(var b=
a.length,c;b--;)c=a[b],c.dom.$container.length&&B.find(c.dom.$container).length||((c=c.getAttr("name"))&&delete r[c],a.splice(b,1))}function n(){a(z);a(q)}function x(a){var c=a.data("a-carousel-options")||{};c.displayStrategy=a.data("a-display-strategy");c.transitionStrategy=a.data("a-transition-strategy");c.ajaxStrategy=a.data("a-ajax-strategy");c.accessibilityStrategy=a.data("a-accessibility-strategy");c.carouselClass=a.data("a-class");a=b("display",c);var e=b("transition",c),f=b("ajax",c),g=b("accessibility",
c),h=c.carouselClass;h||(h=d["default"]);h=d[h];if(h!==u&&a!==u&&e!==u&&f!==u&&g!==u)return{carouselClass:h,strategies:{display:a,transition:e,ajax:f,accessibility:g},opts:c}}function p(a,b){return a.hasClass("a-begin")&&0===a.children(".a-end").length?!1:e.onScreen(a,b.getAttr("initThreshold"))}function t(){h(".a-carousel-static").each(function(){var a=h(this),b=x(a);b&&k(a,b.carouselClass,b.strategies,b.opts)})}function w(){for(var a=z.length;a--;){var b=z[a];p(b.dom.$container,b)&&(z.splice(a,
1),c(b))}}var u,q=[],z=[],v=!1,r={},B=h(document),y={},C=0;e.on("resize orientationchange",function(a,b){n();(b.height||b.width)&&e.delay(function(){e.each(q,function(a){a.resize()})},e.capabilities.mobile||e.capabilities.tablet?100:0)});e.on("a:popover:afterSlideOut",function(){e.each(q,function(a){a.resize()})});e.on("a:carousel:change:name",function(a){a.newValue&&(r[a.newValue]=a.carousel);a.oldValue&&delete r[a.oldValue]});e.on(f.INIT_EVENTS,function(){w();t();e.once(function(){g.stopWidgetLogging("carousel")})()});
e.on("a:pageUpdate",n);e.on("scroll",function(){w();t()});e.declarative("a-tabs","click",function(a){e.delay(function(){w();e.each(q,function(a){a.getAttr("isInTab")&&a.resize()})},50)});e.on("a:popover:afterShow",function(){e.delay(w,50)});e.on("a:popover:ajaxContentLoaded",function(){e.delay(function(){n();t()},50)});e.on.ready(function(){v=!0});f={getCarousel:function(a){a.jquery||(a=h(a));var b=a.closest(".a-carousel-container").data("a-carousel");if(!b){var c=x(a);c&&(b=k(a,c.carouselClass,c.strategies,
c.opts))}return b},getCarouselByName:function(a){return r[a]},createAll:function(){n();t()},initializeAll:function(){n();w()},kill:function(a){a.jquery||(a=h(a));if(a.length&&(a=a.closest(".a-carousel-container"),a.length)){var b=a.data("a-carousel");if(b){var c=e.indexOfArray(q,b);-1<c?(q[c].name&&delete r[q[c].name],q.splice(c,1)):(c=e.indexOfArray(z,b),-1<c&&(z[c].name&&delete r[z[c].name],z.splice(c,1)))}a.remove()}},registerStrategy:function(a,b,c){l[a]||(l.type={});l[a][b]&&m.error("Attempted to register a "+
a+" strategy which already exists: "+b,"a-carousel-framework","registerStrategy");l[a][b]=c;v&&t()},registerCarouselClass:function(a,b){d[a]&&m.error("Attempted to register a carousel class which already exists: "+a,"a-carousel-framework","registerCarouselClass");h.isFunction(b)||m.error("Attempted to register carousel class "+a+" without a constructor function.","a-carousel-framework","registerCarouselClass");d[a]=b;v&&t()},getAllCarousels:function(){return q.concat(z)},onInit:function(a,b){a&&(y[a]||
(y[a]=[]),h.isFunction(b)&&(y[a].push(b),(a=r[a])&&a.__initialized&&b(a)))}};Object.freeze!==u&&Object.freeze(f);return f})});
/* ******** */
(function(e){var g=window.AmazonUIPageJS||window.P,k=g._namespace||g.attributeErrors,a=k?k("AmazonUIComponents","AmazonUI"):g;a.guardFatal?a.guardFatal(e)(a,window):a.execute(function(){e(a,window)})})(function(e,g,k){e.when("A","a-form-controls-api").register("a-form-controls-handlers",function(a,b){var f=a.$,d=function(){f(this).removeClass("a-hover-disable")},h=function(c,d){var h=b.findFormElementContainer(c);a.delay(function(){h.find(d).each(b.normalizeElement)},0)};return{handleBoxInputMobileFocus:function(){f(this).addClass("a-form-focus")},
handleBoxInputMobileBlur:function(){f(this).removeClass("a-form-focus")},accessibilityKeyPress:function(c){c.keyCode===a.constants.keycodes.SPACE&&(c.preventDefault(),c.stopPropagation())},formReset:h,handleCheckboxClick:function(){if(!a.capabilities.mobile&&!a.capabilities.tablet)f(this).addClass("a-hover-disable").one("mouseleave",d)},normalizeFormControls:function(){f("form").unbind("reset.a-form-controls-reset").bind("reset.a-form-controls-reset",function(c){h(c.currentTarget,"li .a-touch-multi-select")})},
touchMultiSelectHandler:function(c){b.toggleCheckboxState(c.currentTarget)}}});"use strict";e.when("A","a-form-controls-handlers","ready").register("a-form-controls",function(a,b){var f=a.$;f(document).delegate(".a-checkbox-fancy","click",b.handleCheckboxClick).delegate(".a-checkbox-fancy, .a-radio-fancy","keypress",b.accessibilityKeyPress);a.on("a:pageUpdate beforeReady",b.normalizeFormControls)});"use strict";e.when("A").register("a-buttons",function(a){var b=a.$,f=0;a.declarative("a-button-group",
["click"],function(d){var b=d.$target,c=b.closest(".a-button:not(.a-button-disabled)");if(c.length){var f=d.$declarativeParent.find(".a-button");d=d.data&&d.data.name?d.data.name:!1;b=b.closest("input[type\x3dsubmit], button").attr("name")||b.find("input[type\x3dsubmit], button").attr("name");f.removeClass("a-button-selected").attr("aria-checked","false");c.addClass("a-button-selected").attr("aria-checked","true");if(b||d)c={$button:c,buttonName:b,buttonGroupName:d},d&&(a.trigger("a:button-group:"+
d+":toggle",{selectedButton:c}),b&&a.trigger("a:button-group:"+d+":"+b+":toggle",{selectedButton:c}))}});a.on("a:pageUpdate beforeReady",function(){var a=b(".a-button:not([id])"),e=b(".a-button-group,.a-button-toggle-group");a.each(function(){var c=b(this),a=c.find(".a-button-text"),d=c.find(".a-button-input"),e="a-autoid-"+f++;c.attr("id",e);a.length&&(e=(c=a.attr("id"))?c:e+"-announce",d.attr("aria-labelledby",e),a.attr("id",e))});e.each(function(){var a=b(this).find(".a-button[role\x3d'radio']"),
d=a.length,e=1;a.each(function(){b(this).attr({"aria-posinset":e++,"aria-setsize":d})})})});b(document).delegate(".a-button-input, .a-button-text","focusin",function(){var a=b(this).closest(".a-button");a.hasClass("a-button-disabled")||a.addClass("a-button-focus")}).delegate(".a-button-input, .a-button-text","focusout "+a.action.cancel,function(){b(this).closest(".a-button").removeClass("a-button-focus")})})});
/* ******** */
(function(c){var a=window.AmazonUIPageJS||window.P,e=a._namespace||a.attributeErrors,b=e?e("AmazonUITabs@jsAssets","AmazonUI"):a;b.guardFatal?b.guardFatal(c)(b,window):b.execute(function(){c(b,window)})})(function(c,a,e){c.when("A").register("a-tabs",function(b){var c=b.$;b.declarative("a-tabs",["click"],function(a){var d=a.$target.closest("li"),h=a.data.name,f=d.data("a-tab-name"),g=d.closest(".a-tab-container");g=g.find(".a-box-tab").not(g.find(".a-box-tab .a-box-tab"));f!==e&&(c("li.a-active",
d.closest(".a-tabs")).removeClass("a-active"),d.addClass("a-active"),c.each(g,function(b,a){c(a).toggleClass("a-hidden",c(a).data("a-name")!==f)}),d={$tab:d,tabName:f,tabSetName:h},b.trigger("a:tabs:"+h+":select",{selectedTab:d}),b.trigger("a:tabs:"+h+":"+f+":select",{selectedTab:d}),a.$event.preventDefault())})})});
/* ******** */
(function(d){var f=window.AmazonUIPageJS||window.P,k=f._namespace||f.attributeErrors,a=k?k("AmazonUIAccordion@jsAssets","AmazonUI"):f;a.guardFatal?a.guardFatal(d)(a,window):a.execute(function(){d(a,window)})})(function(d,f,k){d.when("A").register("a-accordion-a11y",function(a){var d=a.$,b;return{refreshFocus:function(e,g){g=g||600;b||(b=d("\x3cb /\x3e",{"class":"a-accordion-a11y",tabIndex:-1,style:"position: absolute"}).appendTo("body"));b.css({display:"block"}).offset(e.offset());a.delay(function(){b.focus()},
50);a.delay(function(){e.focus();b.css({display:"none"})},g)}}});d.when("A","a-accordion-a11y","prv:a-capabilities").register("a-accordion",function(a,d,b){function e(b){var h=b.$target.closest(".a-accordion"),c=b.$target.closest(".a-box"),e=h.find(".a-box").not(c),l=c.find(".a-accordion-row"),n=h.data("a-accordion-name"),p=c.data("a-accordion-row-name"),u=h.hasClass("a-accordion-collapse"),v=c.find("a.a-accordion-row"),q=b.$target.closest(".a-accordion-row-a11y");h=h.find(".a-accordion-row-a11y").not(q);
if(p){var t=c.find(".a-accordion-inner"),r=!0;if(c.hasClass("a-accordion-active"))if(u)t[f]({duration:m,complete:function(){c.removeClass("a-accordion-active");c.find(".a-icon.a-accordion-radio").removeClass("a-icon-radio-active").addClass("a-icon-radio-inactive");q.attr("aria-checked","false").attr("aria-expanded","false")}});else r=!1;else e.find(".a-accordion-inner")[f]({duration:m,complete:function(){e.removeClass("a-accordion-active")}}),t[g]({duration:m,complete:function(){c.addClass("a-accordion-active");
e.find(".a-icon.a-accordion-radio").removeClass("a-icon-radio-active").addClass("a-icon-radio-inactive");c.find(".a-icon.a-accordion-radio").removeClass("a-icon-radio-inactive").addClass("a-icon-radio-active")}}),h.attr("aria-checked","false").attr("aria-expanded","false"),q.attr("aria-checked","true").attr("aria-expanded","true");r&&k&&d.refreshFocus(l);r&&(l={$row:c,rowName:p,accordionName:n},a.trigger("a:accordion:select",{selectedRow:l}),a.trigger("a:accordion:"+n+":select",{selectedRow:l}),a.trigger("a:accordion:"+
n+":"+p+":select",{selectedRow:l}))}v.length&&b.$event.preventDefault()}var g="slideDown",f="slideUp",m=300;if(a.capabilities.mobile||a.capabilities.tablet)g="show",f="hide",m=0;var k=!a.capabilities.touch&&b.isFirefox;a.declarative("a-accordion",["click"],e);a.declarative("a-accordion",["keypress"],function(b){var d=a.constants.keycodes,c=b.$event.which;c!==d.ENTER&&c!==d.SPACE||e(b)})})});
/* ******** */
(function(c){var e=window.AmazonUIPageJS||window.P,l=e._namespace||e.attributeErrors,a=l?l("AmazonUIExpander","AmazonUI"):e;a.guardFatal?a.guardFatal(c)(a,window):a.execute(function(){c(a,window)})})(function(c,e,l){c.declare("prv:a-expander-constants",{classNames:{inline:{expand:"a-icon-expand",collapse:"a-icon-collapse"},section:{expand:"a-icon-section-expand",collapse:"a-icon-section-collapse"},extender:{expand:"a-icon-extender-expand",collapse:"a-icon-extender-collapse"}},elementClasses:{container:"a-expander-container",
content:"a-expander-content",header:"a-expander-header",fadeDiv:"a-expander-content-fade"}});c.when("A","jQuery","prv:a-expander-constants").register("a-partial-expander",function(a,c,e){function k(){c(".a-expander-partial-collapse-container").each(function(){var d=c(this),a=d.children("."+m.content),f=d.data("a-expander-collapsed-height"),b=d.children("."+m.header);a.height()<=f?b.css({opacity:"0",display:"none"}):(b.css({opacity:"1",display:"block"}),a.css("padding-bottom",b.height()),"true"!==
a.attr("aria-expanded")&&d.css({height:f}),d.css({"max-height":"none"}))})}var m=e.elementClasses;a.on("load ready resize orientationchange a:popover:afterShow a:popover:ajaxContentLoaded",k);return k});"use strict";c.when("A","jQuery","prv:a-expander-constants","a-partial-expander").register("a-expander",function(a,c,e,k){function m(b,a){var f=b.closest("."+d.container),c=f.data("a-expander-collapsed-height"),e="true"===b.attr("aria-expanded"),p=function(){b.toggleClass(d.content+"-expanded");b.attr("aria-expanded",
e?"false":"true");a()};c?(f.css("height",e?c:"auto"),p()):b.toggle(0,function(){p()})}var d=e.elementClasses,n=e.classNames,f={};a.each(n,function(b,d){f[d]={};a.each(b,function(a,b){f[d][b]=new RegExp("\\b"+a+"\\b","g")})});a.declarative("a-expander-toggle","click",function(b){var c=b.$target.closest("."+d.container),e=c.find("."+d.container),k=c.data("a-expander-name");var l=b.$currentTarget.hasClass(d.header)?b.$currentTarget:c.find("."+d.header).not(e.find("."+d.header));var q=c.find("."+d.content).not(e.find("."+
d.content));m(q,function(){var g=l.find(".a-icon")[0],h=null,m=l.children("."+d.fadeDiv);"false"===q.attr("aria-expanded")?(g&&(g.className=g.className.replace(f.inline.collapse,n.inline.expand).replace(f.section.collapse,n.section.expand).replace(f.extender.collapse,n.extender.expand)),b.data&&b.data.expand_prompt&&(h=b.data.expand_prompt),m.show(),g="collapse"):(g&&(g.className=g.className.replace(f.inline.expand,n.inline.collapse).replace(f.section.expand,n.section.collapse).replace(f.extender.expand,
n.extender.collapse)),b.data&&b.data.collapse_prompt&&(h=b.data.collapse_prompt),m.hide(),g="expand");h&&""!==h&&l.find(".a-expander-prompt").not(e.find(".a-expander-prompt")).html(h);h={expander:{$expander:c,expanderName:k}};a.trigger("a:expander:toggle",h);a.trigger("a:expander:toggle:"+g,h);k&&(a.trigger("a:expander:"+k+":toggle",h),a.trigger("a:expander:"+k+":toggle:"+g,h))})});return{initializeExpanders:k}})});
/* ******** */
(function(e){var p=window.AmazonUIPageJS||window.P,l=p._namespace||p.attributeErrors,d=l?l("AmazonUISwitch@jsAssets","AmazonUI"):p;d.guardFatal?d.guardFatal(e)(d,window):d.execute(function(){e(d,window)})})(function(e,p,l){e.when("a-switch-framework","jQuery").register("a-switch",function(d,h){var g=d.SWITCH_STATE,e=d.SWITCH_CONTAINER_CLASS,w=d.SWITCH_CLASS;return{getSwitch:function(c){function m(c){var n=k.data(g);if(c===l)return n.isOn;if(!n.isEnabled||f(k))return!1;d.setOnState(k,c);return!0}function f(){return k.data(g).isDragging}
c.jquery||(c=h(c));if(0===c.length)return null;c=c.eq(0);c=c.closest("."+e);if(0===c.length)return null;var k=c.find("."+w);d.ensureInitialized(k);return{toggle:function(){return m(!k.data(g).isOn)},isOn:m,enabled:function(c){var n=k.data(g);if(c===l)return n.isEnabled;if(n.isEnabled===c)return!1;d.setEnabled(k,c);return!0},isDragging:f,label:function(d){var c=k.data(g).label,e=c[0].childNodes[0];if(d===l)return c.text();3===e.nodeType&&(e.textContent=d)}}}}});"use strict";e.when("A","jQuery").register("a-switch-framework",
function(d,h){function g(a){a.preventDefault();var b=a.data.$switch.data("a-switch-state"),c=b.control;if(!d.isAnimated(c)){a=q(a)-b.initialX;b.isOn&&(a+=b.rightBoundary);var e=b.leftBoundary,v=b.rightBoundary;a=a<e?e:a>v?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&&1<b.dragCount?b.leftOffset>b.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:-1},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",d.capabilities.touch?"touchstart":"mousedown",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-input","change",function(a){a.$event.preventDefault();a=a.$target.closest(".a-switch-row").find(".a-switch");c(a);var b=a.data("a-switch-state");m(a,!b.isOn)});
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.clicked?b.clicked=!1: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=h<c)||(g-=h-c);c=g;e(d).css("left",c+0);c=d.width();d=d.find(".a-js-tooltip-arrow");d.removeClass("aok-hidden");k?(c/=2,e(d).css("left",c+-9)):e(d).css("left",c+-27);12>f&&d.addClass("aok-hidden");e(a.find(".a-js-progress-tooltip")).removeClass("a-progress-tooltip-hidden").addClass("a-progress-tooltip-revealed")}})}var e=b.$;a();b.on("resize scroll",function(b){a()});return{init:a}})});
/* ******** */
(function(n){var u=window.AmazonUIPageJS||window.P,z=u._namespace||u.attributeErrors,c=z?z("AmazonUIPopover@base","AmazonUI"):u;c.guardFatal?c.guardFatal(n)(c,window):c.execute(function(){n(c,window)})})(function(n,u,z){n.when("A","a-popover-base-factory").register("a-popover-base-apis",function(c,f){return{show:function(c){var d=f.get(c.$trigger?c.$trigger:c);if(d)return d.show.apply(d,arguments)},hide:function(c){var d=f.get(c);if(d)return d.unlock(1),d.hide.apply(d,arguments)},get:function(c){return f.get(c)},
remove:function(c){return f.remove(c)}}});"use strict";n.when("A","a-popover-util","a-popover-objectclass","a-popover-data").register("a-popover-base-factory",function(c,f,h,d){function l(b){return e[b]?e[b]:null}function k(b,e){return new h.PopoverClass(b,e)}function a(e,m){var a=null;if("number"===typeof e)a=l(e);else if("string"===typeof e)(a=b[e]?b[e]:null)||(a=l(e));else if("object"===typeof e)if(e.$popover)a=e;else if(e=g(e),a=e.data("a-popover-id"),a||(a=e.find(".a-declarative").eq(0),a=a.length?
a.data("a-popover-id"):null),a=l(a),!a){var c=e.data("action");(c=c?e.data(c):null)&&c.name&&(a=c.name,a=b[a]?b[a]:null,!a||m&&a.type!==m?a=null:(m=(m=a.attrs("currentDataStrategy"))?d.getStrategyByName(m):d.guessStrategyByAttrs(a.attrs()))&&m.reusePopover?a.$trigger[0]!==e[0]&&(a.$trigger.data("a-popover-id",null),a.$trigger=e):a=null)}return a}function p(){q||(q=k({id:-1,$popover:r,$trigger:r,immersive:!0},{isActive:function(){return!0},hideMethod:function(){this.hideChildren()},showMethod:c.constants.NOOP}));
return q}var g=c.$,m=1,b={},e={},r=g("\x3cdiv id\x3d'a-popover-root' style\x3d'z-index:-1;position:absolute;' /\x3e").appendTo("body"),q;return{getRoot:p,get:function(e,b){b=b?b:this?this.type:null;return(e=a(e,b))&&b&&e.type!==b?null:e},create:function(d,r){var h=g(d),f=r.attributes||{},q=r.typeSpecificFunctions||r.variant||{};r=r.actionCheck||!1;h.data("a-popover-id");var t=f.type,v=null;!t||h.hasClass("a-declarative")&&h.data("action")&&-1!==h.data("action").indexOf(t)||(h=c.declarative.create(h,
"a-"+t),d=h[0]);if(r&&h.data("action")&&-1===h.data("action").indexOf(t))return null;t&&h&&(v=a(h));if(v)return v.type!==t?null:v;h=f;d=g(d);h.type?d&&d.length?(h=c.extend({id:m++,$trigger:d,$triggerWrapper:null},h),q=c.copy(q),q=k(h,q),e[q.id]=q,q.name&&(b[q.name]=q),d.data("a-popover-id",q.id),d=q.$trigger.closest(".a-popover"),d=!q.attrs("immersive")&&d.length?l(d.data("a-popover-id"))||p():p(),q.parent=d,d.children.push(q)):q=null:q=null;return q},remove:function(g,a){g=this.get(g);var m=!1;if(g){m=
g.id;if(g&&-1<m){var d=c.indexOfArray(g.parent.children,g),h=g.$container,r=g.$trigger;g.parent.children.splice(d,1);g.unlock().hide();g.update({content:""});h&&g.$container.remove();r.data("a-popover-id","");g.name&&delete b[g.name];delete e[m];m=!0}else m=!1;a&&c.declarative.remove(g.$trigger[0],"a-"+a)}return m}}});"use strict";n.when("A","a-popover-util","a-popover-base-factory","prv:a-capabilities").register("a-popover-base-handlers",function(c,f,h,d){function l(g){for(var a;g.length&&!(a=g.data("a-popover-id"));)g=
g.parent();return h.get(a)}var k=c.$;k(document).bind("click "+c.action.start,function(g){var a=k(g.target),b=g.originalEvent;if(!(b&&b.pointerType&&b.pointerType===c.pointerType.touch&&"click"===b.type||a.hasClass("a-modal-scroller")||"a-popover-lgtbox"===a[0].id||"html"===a[0].nodeName.toLowerCase())){var e=function(e){return f.eventOccursWithin(g,e)};c.each(h.getRoot().children,function(b){if(b.isVisible()||b.isContentLoaded()){var g=f.search(b,e);g?g.hideChildren():null!==b.attrs("lightboxOptions")||
b.attrs("immersive")||b.unlock(1).hide()}})}});n.when("a-event-analytics").execute(function(g){g.notifyJquery(k(document),"click "+c.action.start)});c.declarative("a-popover-close",["click",c.action.end],function(g){var a=l(g.$target);a&&(a.unlock().hide(),f.trigger("dismiss",a));g.$event.preventDefault()});var a=null,p=null;c.declarative("a-popover-a11y","focusout",function(g){var m=l(g.$target);m&&g.$target.length&&m.$firstTabbable.length&&g.$target[0]===m.$firstTabbable[0]&&!(a&&100>c.now()-a)&&
(a=c.now(),c.delay(function(){k(document.activeElement).hasClass("a-popover-start")&&m.$lastTabbable.focus()},0))});c.declarative("a-popover-a11y","focusin",function(g){var a=l(g.$target);a&&g.$target.length&&g.$target.hasClass("a-popover-end")&&!(p&&100>c.now()-p)&&(p=c.now(),c.delay(function(){a.$firstTabbable.focus()},0))});c.declarative("a-popover-a11y","keydown",function(g){var a=g.$event;a.keyCode===c.constants.keycodes.ESCAPE&&(g=l(g.$target),a.preventDefault(),g&&g.hide())});c.on("resize zoom",
function(){h.getRoot().updatePosition()});if(d.isSafari&&c.capabilities.ios)c.on("a:popover:refresh",function(g){g=g.popover;g.$popover&&g.$popover.undelegate('input[type\x3d"date"]',"blur").delegate('input[type\x3d"date"]',"blur",function(){var g=c.$(u);g.scrollTop(g.scrollTop()+1)})})});"use strict";n.when("A","a-popover-base-apis","a-popover-base-handlers").register("a-popover-base",function(c,f,h){return f});"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(c,f,h,d,l,k,a){function p(a,d){var h=-1,p=[1],q=-2;this.parent=null;this.children=[];this.typeSpecificFunctions={};this.attributes={position:"triggerVertical",alone:!1,immersive:!1,restoreFocusOnHide:!0};var t=function(){this.isActive()?this._willTriggerEvents&&f.trigger("visible",this):f.trigger("invisible",this);return this},A=function(b,a){var d=this.isActive(),h=this.getDataStrategy(),k=!this.$popover,f=a||k;a=
!1;b=b||f;if(!f)for(var q=p.length;q--&&!f;)f=!e[p[q]];f&&(f=w.apply(this),f=m(f),k||(h.unloadContent(this),this.$container.remove(),a=!0),m("body").append(f),this.$container=f,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")||(f=parseInt(this.parent.$popover.css("z-index"),10),c.isFiniteNumber(f)||(f=this.parent.attrs("immersive")?1010:0),"dropdown"===this.type&&r&&(f=Math.max(599,f)),f=Math.max(299,100+f),this.$popover.css("z-index",f));if(h.shouldRefreshContent(this)||b)a||h.unloadContent(this),h.loadContent(this,k);this.typeSpecificFunctions.updateDimensions!==g&&this.typeSpecificFunctions.updateDimensions.apply(this);p=[];d&&y.call(this,[],!1);b=this.$popover.find(".a-popover-inner").find("a, button, input, select, textarea, [tabindex]:not([tabindex\x3d'-1'])");
b=b.not(".a-dropdown-link");this.$firstTabbable=this.$popover.find('[data-action\x3d"a-popover-close"]');this.$firstTabbable=this.$firstTabbable.length?this.$firstTabbable:b.first();this.$lastTabbable=0===b.length?this.$firstTabbable:b.last();return this},y=function(e,a){function d(){m.updatePosition();var g=m.attrs("navigate");!a&&g&&m.attrs("navigate",!1);p.call(m,t,e);a&&f.trigger("show",m);k&&k.apply(m,e);a&&f.trigger("afterShow",m);m.$popover.attr("aria-hidden","false");"tooltip"!==m.type&&b.attr("aria-hidden",
"true");!a&&g&&m.attrs("navigate",g);q=2}var m=this;a=!!a;var h=m.typeSpecificFunctions,p=h.showMethod!==g?h.showMethod:B,r=h.beforeShowMethod!==g?h.beforeShowMethod:null,k=h.afterShowMethod!==g?h.afterShowMethod:null;q=1;m._willTriggerEvents=a;m.attrs("originalFocus",document.activeElement);m.$popover.css("visibility","hidden").addClass("a-popover-hidden").show();r&&r.apply(m,e);m.attrs("synchronous")?d():c.delay(function(){d()},0)};this.show=function(){var b=this,e=b.attrs("lightboxOptions")||null;
if(b.isActive()||k.isAnimating(b))return this;b.lock(1);e&&l.lock(1);b.parent.$container&&b.parent.$container.is(".a-popover")&&b.parent.$container.attr("aria-hidden","true");b.attrs("alone")&&c.each(b.parent.children,function(e){e.isActive()&&e.id!==b.id&&!e.attrs("modeless")&&e.unlock().hide()});f.trigger("beforeShow",b);if(!b.$container||b.isDirty()||b.getDataStrategy().shouldRefreshContent(b))f.trigger("refresh",b),A.call(b);if(b.draggable){var g=b.$container;c.draggable(g,{handle:g.find(".a-popover-draggable-handle")})}e&&
l.show(c.extend({popover:b},e));y.call(b,arguments,!0);c.delay(function(){b.unlock(1);e&&l.unlock(1)},0);return this};this.hide=function(){var e=this,a=e.typeSpecificFunctions,d=a.hideMethod!==g?a.hideMethod:n,h=a.beforeHideMethod!==g?a.beforeHideMethod:null,p=a.afterHideMethod!==g?a.afterHideMethod:null,r=e.attrs("lightboxOptions")||null;if(!e.isActive()||e.isLocked()||k.isAnimating(e))return this;q=-1;e.hideChildren();f.trigger("beforeHide",e);h&&h.apply(e,arguments);d.call(e,t,arguments);f.trigger("hide",
e);c.delay(function(){function a(){var b=null;"dropdown"===e.type?b=e.$trigger:e.$trigger&&m(e.$trigger).length&&(b=e.$trigger.is("a, input, button")?e.$trigger:e.$trigger.find("a, input, button"));b&&b.length||(b=m(e.attrs("originalFocus")));!b.length||v&&!b.is(":visible")||c.delay(function(){("secondary-view"===e.type||c.onScreen(b,0))&&b.focus()},400)}p&&p.apply(e,arguments);e.$popover.attr("aria-hidden","true");"tooltip"!==e.type&&b.attr("aria-hidden","false");e.parent.$container&&e.parent.$container.is(".a-popover")&&
e.parent.$container.attr("aria-hidden","false");r&&(e.parent.attrs("lightboxOptions")?l.show(c.extend({popover:e.parent},r)):l.hide(r));f.trigger("afterHide",e);q=-2;e.attrs("restoreFocusOnHide")&&a()},0);return this};this.update=function(e){var b="string"===typeof e?{content:e}:c.copy(e),a=this.attrs();e=this.getDataStrategy();c.each(b,function(e,b){(e&&!a[b]||a[b]&&a[b]!==e)&&p.push(b)});this.isDirty()&&(b=c.extend({},a,b),this.attrs(b),this.getDataStrategy(b),this.$popover&&e.unloadContent(this),
this.isActive()&&(A.call(this,!0),this.focus()));return this};this.refresh=function(b,e){return A.call(this,b||!0,e||!1)};this.isActive=function(){return 1<=q};this.isVisible=function(){return 2===q};this.isContentLoading=function(){return 3===q};this.setContentLoading=function(){q=3};this.isContentLoaded=function(){return 4===q};this.setContentLoaded=function(){q=4};this.isDirty=function(){return 0<p.length};this.lock=function(b){b||(b=10);h<b&&(h=b);return this};this.unlock=function(b){b||(b=10);
h<=b&&(h=-1);return this};this.isLocked=function(){return-1!==h};this.typeSpecificFunctions=d;this.attrs(a);c.extend(this,this.attributes)}var g,m=c.$,b=m("#a-page"),e={name:!0,url:!0,content:!0,width:!0,height:!0,"max-width":!0,"max-height":!0,"min-width":!0,"min-height":!0},r=c.capabilities.mobile,q=r||c.capabilities.tablet,t=r&&a.isIE10Plus,v=m("html").hasClass("a-lt-ie9"),B=function(b){this.$popover.css({visibility:"visible"}).removeClass("a-popover-hidden");this.attrs("focusWhenShown")&&"ajax"!==
this.attrs("currentDataStrategy")&&this.focus();b.call(this)},n=function(b){this.$popover.hide().find(".a-lgtbox-vertical-scroll").removeClass("a-lgtbox-vertical-scroll");b.call(this)},w=function(){var b=this.typeSpecificFunctions;return b.skin!==g?b.skin(this):""},x=p.prototype;x.getDataStrategy=function(b){var e=this.typeSpecificFunctions;b||this.attrs("currentDataStrategy")||(b=this.attrs());b&&(b=b.dataStrategy?h.getStrategyByName(b.dataStrategy):h.guessStrategyByAttrs(b))&&(e.dataStrategy=b,
this.attrs("currentDataStrategy",b.name));return e.dataStrategy};x.getContent=function(){return this.typeSpecificFunctions.getContent!==g?this.typeSpecificFunctions.getContent.apply(this,arguments):null};x.updateContent=function(b){this.typeSpecificFunctions.updateContent!==g&&this.typeSpecificFunctions.updateContent.apply(this,arguments);return this};x.setAriaBusy=function(b){this.typeSpecificFunctions.setAriaBusy!==g&&this.typeSpecificFunctions.setAriaBusy.apply(this,arguments);return this};x.ajax=
function(b){return this.update({url:b})};x.updateChildrenPosition=function(){c.each(this.children,function(b){b.isActive()&&b.updatePosition()});return this};x.updatePosition=function(){var b=this;if(-1===b.id)c.each(b.children,function(b){b.isActive()&&b.updatePosition()});else{if(this.typeSpecificFunctions.updatePosition!==g)return this.typeSpecificFunctions.updatePosition.apply(this,arguments),b;var e=b.$popover;a.isMetroIEGuess&&a.isIETouchCapable?e.css("opacity",.01):e.css("visibility","hidden");
var h=function(){var g=e.find(".a-popover-inner").css({height:"auto","overflow-y":"auto"}),h=b.attrs("position"),p={};p=b.typeSpecificFunctions.positionStrategy?d.customPosition(b,b.typeSpecificFunctions.positionStrategy):d[h](b);f.trigger("beforeUpdatePosition",b);h={top:p.top+"px",left:p.left+"px"};a.isMetroIEGuess&&a.isIETouchCapable?h.opacity=1:h.visibility="visible";e.css(h);b.isContentLoaded()&&0===m(document.activeElement).closest(b.$popover).length&&!0===b.attrs("focusWhenShown")&&b.focus();
if(g.length&&(!g[0].style.height||"auto"===g[0].style.height)){p=e.outerHeight()||0;var r=e.find(".a-popover-header, .a-modal-close-nohead-top").outerHeight(!0)||0,k=e.find(".a-popover-footer").outerHeight(!0)||0;h=g.outerHeight()||0;p=p-r-k;h>p&&g.css({height:p+"px","overflow-y":"scroll"})}f.trigger("afterUpdatePosition",b);f.trigger("positionUpdated",b);c.each(b.children,function(b){b.isActive()&&b.updatePosition()})};b.attrs("immersive")&&q?(e.css({top:0,left:0}),c.delay(function(){h()},0)):h()}return b};
x.attrs=function(b,e){var a=this;if(e===g&&"object"!==typeof b)return b?"string"===typeof b?this.attributes[b]!==g?this.attributes[b]:null:null:this.attributes;"object"===typeof b?c.each(b,function(b,e){a.attrs(e,b)}):"string"===typeof b&&(this.attributes[b]=e,a[b]=e);return this};x.hideChildren=function(){c.each(this.children,function(b){b.unlock(1);b.hide()});return this};x.focus=function(){var b=this,e=m(u),a=e.scrollTop(),g=b.$popover.offset().top;t&&a>g&&e.scrollTop(g);c.delay(function(){b.$firstTabbable.focus()},
0);return this};return{PopoverClass:p}});"use strict";n.when("jQuery","prv:a-tnr","ready").register("a-changeover",function(c,f){c(document).delegate(".a-changeover:not(.a-changeover-manual)","webkitAnimationEnd animationend click touchstart",function(c){f.ackDelegated(c);this.style.display="none"})});"use strict";n.when("A").register("a-dropdown-base-positions",function(c){return{positionStrategy:function(f){var h=f.$popover,d=f.$trigger,l=f.measure;f=h.find(".a-popover-inner");f.css({"min-width":"0px",
width:"auto",height:"auto"});var k=d.nextAll(".a-button-dropdown");k.length||(k=d.closest(".a-button-group"));d=l(h,k);l=d.windowWidth-(d.triggerLeft+d.popoverWidth);k=d.windowWidth-d.triggerLeft-d.triggerWidth;var a=d.triggerLeft,p={},g=d.triggerTop-d.windowTop,m=d.windowBottom-d.triggerBottom,b=h.find(".a-popover-inner");g>m&&m<d.popoverHeight?(m=g,p.top=g<d.popoverHeight?d.triggerBottom-g:d.triggerBottom-d.popoverHeight):p.top=d.triggerTop;b.css("height",m<d.popoverHeight?m-d.headerHeight+"px":
"auto");d.popoverHeight>m?b.addClass("a-lgtbox-vertical-scroll"):b.removeClass("a-lgtbox-vertical-scroll");f.hasClass("a-lgtbox-vertical-scroll")&&-1<navigator.appVersion.indexOf("Windows")?(g=Math.max(d.popoverWidth,d.triggerWidth)+c.scrollBarWidth(!0),f.width(g)):f.css("min-width",d.triggerWidth+"px");d.popoverWidth=h.width();p.left=50>l&&a>k?d.triggerRight-d.popoverWidth:d.triggerLeft;return p}}});"use strict";n.when("A","a-dropdown-base-positions").register("a-dropdown-base-view-base",function(c,
f){return c.extend(f,{updateContent:function(c){"string"===typeof c?this.$popover.find(".a-popover-inner").html(c):c&&this.$popover.find(".a-popover-inner").html("").append(c)},beforeShowMethod:function(){this.parent.lock(1);this.$trigger.attr("aria-pressed",!0)},afterShowMethod:function(){var h=this.$popover,d=h.find(".a-active");c.delay(function(){d.length?d.closest("li").focus():d=h.find("li").first().focus()},0)},beforeHideMethod:function(){this.parent.unlock(1)},afterHideMethod:function(){this.$trigger.attr("aria-pressed",
!1);this.$popover.css("width","auto")}})});"use strict";n.when("A","a-dropdown-base-view-base").register("a-dropdown-base-view",function(c,f){return f});"use strict";n.when("A","a-popover-base-factory","a-dropdown-base-view").register("a-dropdown-base-factory",function(c,f,h){function d(g,m,b){var e=['\x3cli tabindex\x3d"0" role\x3d"option"'],d=g.data("aCssClass"),h=g.data("aId"),p=g.data("aHtmlContent"),f=g.data("aImageSource"),k=JSON.stringify({stringVal:g.val()});k=['\x3ca tabindex\x3d"-1" href\x3d"javascript:void(0)" aria-hidden\x3d"true" data-value\x3d"',
c.escapeHtml(k),'"'];var l=["a-dropdown-link"],n=["a-dropdown-item"];m&&(l.push("a-active"),e.push(' aria-checked\x3d"true"'));a&&(c.capabilities.mobile||c.capabilities.tablet)&&l.push("a-list-link-after-group");a=!1;d&&n.push(d);h&&e.push(' id\x3d"'+h+'"');e.push('aria-labelledby\x3d"');e.push(b);e.push('"');k.push(' id\x3d"');k.push(b);k.push('"');e.push(' class\x3d"'+n.join(" ")+'"');e.push("\x3e");p?m=p:(m=[],f&&(l.push("a-option-has-image"),m.push('\x3cimg src\x3d"'+f+'" class\x3d"a-rich-option-image" /\x3e')),
m.push(g.html()),m=m.join(""));k.push(' class\x3d"');k.push(l.join(" "));k.push('"\x3e');k.push(m);k.push("\x3c/a\x3e");e.push(k.join(""));e.push("\x3c/li\x3e");return e.join("")}function l(g){g.jquery||(g=k(g));var m=g.children("optgroup,option:not(.a-prompt)"),b=!1,e=g[0],c=g.attr("id")?g.attr("id"):"dropdown"+p++;if(-1<e.selectedIndex)var h=e.options[e.selectedIndex].value;var f=['\x3cul tabindex\x3d"-1" class\x3d"a-nostyle a-list-link',g.data("a-has-images")?" a-box-list":"",'" role\x3d"listbox" aria-multiselectable\x3d"false"\x3e'];
var l=0;m.each(function(){var e=k(this);e.is("optgroup")?(e.children().each(function(b){f.push(d(k(this),h===this.value,c+"_"+l++))}),f.push('\x3cli tabindex\x3d"-1" class\x3d"divider"\x3e\x3chr /\x3e\x3c/li\x3e'),b=a=!0):(f.push(d(e,h===this.value,c+"_"+l++)),b=!1)});b&&f.pop();f.push("\x3c/ul\x3e");return f.join("")}var k=c.$,a=!1,p=1;return c.extend({create:f.create,remove:f.remove,get:f.get},{type:"dropdown",create:function(a,m,b){var e=m.$button,g=m.$sourceSelect,d=g[0],p=e.find(".a-dropdown-label"),
k=g.data("aTouchHeader");if(!k||!k.length&&p.length)k=p.text();return f.create(a,{attributes:{type:"dropdown",header:k,closeButtonLabel:m.closeButtonLabel?m.closeButtonLabel:"Close",inlineContent:g,position:m.position,alone:!0,sourceSelect:g,sourceButton:e,name:g[0].name,preventNameReuse:!0,lightboxOptions:c.capabilities.mobile||c.capabilities.tablet?{showDuration:c.capabilities.ios?null:0,hideDuration:0}:null},typeSpecificFunctions:c.extend({},h,b,{skin:function(e){var a=b.subskin?b.subskin(d):l(d);
e.attrs("inlineContent",a);return b.skin(e)}}),actionCheck:!1})}})});"use strict";"use strict";n.when("A","a-dropdown-base-factory").register("a-dropdown-keyboard-handlers",function(c,f){function h(a){a.removeData("a-user-navigated-text").removeData("a-user-navigated-idx")}function d(a,b){a.removeAttr("aria-selected");"option"===b.attr("role")&&b.attr("aria-selected","true");b.focus()}function l(a){var b=a.parent("ul");a=b.find("li");var e=b.find(":focus");1>e.length&&(e=b.find('[aria-checked\x3d"true"]'));
b=e;return{index:0<b.length?b.index():0,$options:a}}function k(a,b,e){a.preventDefault();b.find("a").eq(0).trigger("click");h(e)}function a(a){var b=a.data("a-user-navigated-debouncer");b||(b=c.debounce(function(){h(a)},1E3),a.data("a-user-navigated-debouncer",b));b()}var p=c.$,g=c.constants.keycodes;return{keyDown:function(a){var b=p(this),e=b.parent();switch(a.which){case g.UP_ARROW:a.preventDefault();h(e);0<l(b).index&&d(b,b.prev());break;case g.DOWN_ARROW:a.preventDefault();h(e);e=l(b);a=e.index;
0<=a&&a+1<e.$options.length&&d(b,b.next());break;case g.ENTER:k(a,b,e);break;case g.ESCAPE:a.preventDefault();b=f.get(b.closest(".a-popover"));b.sourceButton.find(".a-button-text").focus();b.hide();h(e);break;case g.SPACE:e.data("a-user-navigated-text")||k(a,b,e);break;case g.TAB:h(e);break;case g.BACKSPACE:a.preventDefault()}},keyPress:function(d){var b=p(this),e=b.parent(),h=f.get(b.closest(".a-popover")),m=d.which;if(h&&h.isActive()&&m!==g.TAB&&0!==m){a(e);var l=e.data("a-user-navigated-idx")||
0;if(!(0>l)){h=(e.data("a-user-navigated-text")||"")+String.fromCharCode(m).toLocaleLowerCase();e.data("a-user-navigated-text",h);for(var v=e.children();l<v.length;l++){var n=v.eq(l);if(0===c.trim(n.text().toLocaleLowerCase()).indexOf(h)){n.focus();e.data("a-user-navigated-idx",l);return}}e.data("a-user-navigated-idx",-1);m===g.SPACE&&k(d,b,e)}}}}});"use strict";n.when("A","a-dropdown-select-apis","a-dropdown-base-factory","a-popover-base").register("a-dropdown-base",function(c,f,h,d){function l(d,
b,e){try{var m=d.$event||d;m.preventDefault?m.preventDefault():m.returnValue=!1}catch(t){}var k=d.$declarativeParent?d.$declarativeParent:g(d.currentTarget);c.delay(function(){var m=b.$button?b.$button:b.getButtonFromEvent(d),f=b.$select?b.$select:b.getSelectFromEvent(d);if(!m.hasClass("a-button-disabled")){p(f,b).isSynced()||a(g.extend({$button:m,$select:f},b));f=c.extend({},b,{$button:m,$sourceSelect:f});var r=h.create(k,f,e);if(r&&(r.show(),m.data("a-popover-id",r.id).data("popover",r).data("isPressed",
!0),!r.hasOnLoad)){r.hasOnLoad=!0;var q=[];m=r.$popover.find("img");m.length&&(m.each(function(b,e){if(!e.complete||!e.naturalWidth){var a=g.Deferred();q.push(a);g(e).bind("load error",function(){a.resolve()})}}),q.length?g.when.apply(g,q).done(function(){r.updatePosition()}):r.updatePosition())}}})}function k(a){var b=a.$button;a=a.$select;b||(b=a.nextAll(".a-button-dropdown"));return a.length?((b=h.get(b))&&b.hide(),!0):!1}function a(a){var b=a.$button;a=a.$select;b||(b=a.nextAll(".a-button-dropdown"));
return a.length?((b=h.get(b))&&h.remove(b.id),a.data("a-info",null),!0):!1}function p(d,b){d=b.$select?b.$select:"string"===typeof d?g("select#"+d):d.jquery?d:g(d);if(!d.length)return null;var e=b.$button?b.$button:b.getButtonFromSelect(d);d.data("a-select")?b=d.data("a-select"):(b=c.extend({hidePopover:k,refreshPopover:a,options:c.extend({$select:d,$button:e},b)},f),d.data("a-select",b));return b}var g=c.$;return{toggleDropdown:function(a,b){var e=(b.$button?b.$button:b.getButtonFromEvent(a)).data("popover");
e&&e.$popover.is(":visible")?e.hide():l(a,b)},showDropdown:l,getSelect:p}});"use strict";n.when("A","jQuery").register("a-dropdown-options-apis",function(c,f){return{update:function(c){"object"!==typeof c&&n.error("input of options.update() function must be a hash");this.hidePopover(this.options);for(var d=0,h=this.size();d<h;d++){var f=this.options.elements[d],a=f[0];c.value&&f.val(c.value);void 0!==c.selected&&(!a.selected&&c.selected?this.options.$select.val(a.value):a.selected&&!c.selected&&this.options.$select.val(""));
c.html_content&&f.data("a-html-content",c.html_content);c.image_source&&f.data("a-image-source",c.image_source);c.native_css_class&&(a.className=c.native_css_class);c.css_class&&f.data("a-css-class",c.css_class);c.native_id&&(a.id=c.native_id);c.id&&f.data("a-id",c.id);c.text&&(f.text(c.text),a.selected&&this.setSelectValue(a.value))}this.refreshPopover(this.options);return this},remove:function(){this.hidePopover(this.options);for(var c=0,d=this.size();c<d;c++){var f=this.options.elements[c];f.is(":selected")&&
this.setSelectValue("");f.remove()}this.refreshPopover(this.options);return!0},info:function(){for(var c=[],d=0,f=this.size();d<f;d++){var k=this.options.elements[d];c.push({value:k[0].value,text:k.text(),selected:k[0].selected,html_content:k.data("a-html-content"),image_source:k.data("a-image-source"),native_css_class:k[0].className,css_class:k.data("a-css-class"),native_id:k[0].id,id:k.data("a-id")})}return c},size:function(){return this.options.elements.length}}});"use strict";n.when("A","jQuery",
"a-dropdown-options-apis").register("a-dropdown-select-apis",function(c,f,h){function d(a){var d=this.options.$select,g=this.options.$button,c=d[0];"number"===typeof a&&(a=a.toString());for(var b=0,e=c.options.length;b<e&&c.options[b].value!==a;b++);b===e&&""===a&&(b=0);b<e&&(g.find(".a-dropdown-prompt").html(c.options[b].innerHTML),g.css("min-width",b/c.options.length+"%"),d.val()!==a&&(d.val(a),d.trigger("change",[k,!0])));return this}function l(a){if(a===k)return this.options.$select.val();this.setValue=
d;return this.setValue(a)}var k;return{isSynced:function(){var a=this.options.$select,d=a.data("a-info"),g=this.getOptions().info();a.data("a-info",g);return d?c.equals(d,g):!0},update:function(a){"object"!==typeof a&&n.error("input of select.update() function must be an object");this.hidePopover(this.options);var d={none:!0,micro:!0,mini:!0,small:!0,base:!0,medium:!0,large:!0,"extra-large":!0,"double-large":!0,block:!0},g=this.options.$select,c=g[0],b=this.options.$button,e=b[0],h=g.siblings("label");
a.name&&(c.name=a.name);if(a.option_prompt){var q=g.find(".a-prompt");q.length?(q.text(a.option_prompt),q.prop("selected")&&b.find(".a-dropdown-prompt").text(a.option_prompt)):(g.prepend(f("\x3coption class\x3d'a-prompt' /\x3e").text(a.option_prompt)),b.find(".a-dropdown-prompt").text(a.option_prompt))}a.has_images!==k&&g.data("a-has-images",!!a.has_images);a.button_size!==k&&b.length&&("small"===a.button_size?b.addClass("a-button-small"):b.removeClass("a-button-small"));a.spacing!==k&&d.hasOwnProperty(a.spacing)&&
(d=/\ba-spacing-[a-z]+\b/g,c.className=c.className.replace(d,""),e.className=e.className.replace(d,""),g.addClass("a-spacing-"+a.spacing),b.addClass("a-spacing-"+a.spacing));a.grid_units!==k&&(d=/\ba-button-span\d{1,2}\b/g,c.className=c.className.replace(d,""),e.className=e.className.replace(d,""),isFinite(a.grid_units)&&0<a.grid_units&&13>a.grid_units&&(g.addClass("a-button-span"+a.grid_units),b.addClass("a-button-span"+a.grid_units)));a.width_name&&("base"===a.width_named?b.addClass("a-button-width-normal"):
b.removeClass("a-button-width-normal"));if(a.status){var l=a.status;d=b.closest(".a-dropdown-container, .a-splitdropdown-container").find(".a-button");q="error"===l;l="disabled"===l;c.disabled=l;d.toggleClass("a-button-disabled",l);f(c).hasClass("a-native-splitdropdown")?l?d.find("button.a-button-text").attr("aria-disabled","true").parents(".a-button-splitdropdown").find("button.a-button-text").removeAttr("role"):d.find("button.a-button-text").removeAttr("aria-disabled").parents(".a-button-splitdropdown").find("button.a-button-text").attr("role",
"combobox"):l?d.attr("aria-disabled","true"):d.removeAttr("aria-disabled");d.toggleClass("a-button-error",q)}a.native_id&&(c.id=a.native_id,h.length&&(h[0].htmlFor=a.native_id));a.id&&(e.id=a.id);a.native_css_class&&((e=g.data("a-native-class"))&&g.removeClass(e),g.addClass(a.native_css_class).data("a-native-class",a.native_css_class));a.css_class&&((e=b.data("a-class"))&&b.removeClass(e),b.addClass(a.css_class).data("a-class",a.css_class));a.label_text!==k&&(""===a.label_text?(b.find(".a-dropdown-label").remove(),
g.siblings("label").remove()):(e=b.find(".a-dropdown-label"),e.length?e.text(a.label_text):b.find(".a-dropdown-prompt").before(f("\x3cspan class\x3d'a-dropdown-label' /\x3e").text(a.label_text)),h.length?h.text(a.label_text):g.before(f("\x3clabel for\x3d'"+c.id+"' class\x3d'a-native-dropdown' /\x3e").text(a.label_text))),b.css("min-width",""===a.label_text?"0.1%":"0%"));this.refreshPopover(this.options);return this},setValue:d,val:l,getOptions:function(a){var d=this.options.$select,g=[];a=a===k?d.children("optgroup, option:not(.a-prompt)"):
f.isArray(a)?a:[a];for(var m=0,b=a.length;m<b;m++){var e=a[m],r=[];c.isFiniteNumber(e)?r=d.children("optgroup, option:not(.a-prompt)").eq(e):"string"===typeof e?r=d.children("option#"+e):"object"===typeof e&&(r=e.jquery?e:f(e));r.length&&g.push(r)}return c.extend({hidePopover:this.hidePopover,refreshPopover:this.refreshPopover,setSelectValue:l,options:c.extend({elements:g},this.options)},h)},getOption:function(a){return this.getOptions(a)},addOptions:function(a,d){f.isArray(a)||(a=[a]);for(var g=
a.length;g--;)this.addOption(a[g],d);return this},addOption:function(a,d){var g=this.options.$select;if(!a.native_id||!g.find("option#"+a.native_id).length){var c=g.children("optgroup, option:not(.a-prompt)"),b=document.createElement("option");d=d&&0<d&&d<=c.length?d:0;a.native_id&&(b.id=a.native_id);0===c.length||d===c.length?g[0].appendChild(b):c.eq(d).before(b);this.getOption(b).update(a)}return this},removeOptions:function(a){this.getOptions(a).remove();return this},removeOption:function(a){return this.removeOptions(a)},
appendOption:function(a){return this.addOption(a,this.options.$select.children("optgroup, option:not(.a-prompt)").length)},appendOptions:function(a){if(f.isArray(a))for(var d=0,g=a.length;d<g;d++)this.addOption(a[d]);return this}}});"use strict";n.when("A","a-dropdown-options","a-dropdown-apis","a-dropdown-keyboard-handlers","a-analytics").register("a-dropdown",function(c,f,h,d,l){var k=c.$,a=k(document);c.on("beforeReady a:pageUpdate a:ajax:complete",function(){var d=a.find("select.a-native-dropdown").not("[tabindex\x3d0]"),
g=d.length;g&&(d.next(".a-button-dropdown").attr("aria-hidden",!0).find(".a-button-text").removeAttr("tabindex"),l.count("dropdown:usage",g),d.attr("tabindex",0))});a.delegate(".a-native-dropdown","change",function(a,d,m){var b=f.getButtonFromEvent(a),e="",g=-1<this.selectedIndex?this.options[this.selectedIndex].value:"",q=b.data("popover");a=!1;if(b.length){b=b.eq(0);for(var p=this.length;p--;){var l=this.options[p];if(l.value===g){e=l.innerHTML;break}}q&&q.$popover&&(q.$popover.find(".a-active").removeClass("a-active").closest("li").attr("aria-checked",
!1),void 0===d&&(d=JSON.stringify({stringVal:g}),d=q.$popover.find('a[data-value\x3d"'+c.escapeJquerySelector(d)+'"]')));d&&d.length&&(a=!0,d.addClass("a-active").closest("li").attr("aria-checked",!0));b.find(".a-dropdown-prompt").html(e);b.css("min-width",this.selectedIndex/this.options.length+"%");q&&(q.hide(),(b=h.getSelect(this))&&k(this).data("a-info",b.getOptions().info()));m||(m=this.name,b=this.id,d={auiItemNode:a?d[0]:null,nativeItemNode:this.options[this.selectedIndex],selectNode:this,id:b,
name:m,value:this.value},m&&""!==m&&(c.trigger("a:dropdown:"+m+":select",d),c.trigger("a:dropdown:selected:"+m,d)),b&&""!==b&&c.trigger("a:dropdown:"+b+":select",d),c.trigger("a:dropdown:select",d))}});a.delegate(".a-button-dropdown:not(.a-button-disabled)","focusin",function(){k(this).find(".a-button-text").focus()});a.delegate("select.a-native-dropdown","focusin",function(){var a=k(this).closest(".a-dropdown-container").find(".a-button-dropdown");a.hasClass("a-button-disabled")||a.addClass("a-button-focus")}).delegate("select.a-native-dropdown",
"focusout",function(){k(this).closest(".a-dropdown-container").find(".a-button-dropdown").removeClass("a-button-focus")});return h});"use strict";n.when("A","a-dropdown-base","a-dropdown-options").register("a-dropdown-apis",function(c,f,h){function d(d){return f.getSelect(d,h)}var l=c.$;c.on("beforeReady",function(){l(".a-dropdown-container select").each(function(){var c=d(this);c&&c.val(c.val())})});return{getSelect:d,updateOption:function(c,a){var h=l("option#"+c).closest("select");d(h).getOption(c).update(a)},
updateSelect:function(c,a){d(c).update(a)},setValue:function(c,a){d(c).setValue(a)}}});"use strict";n.when("A","a-popover-accessibility").register("a-dropdown-view",function(c,f){return{skin:function(c){var d=c.attrs("header")||"";c={id:c.id,header_str:d,needs_declarative:!1};return['\x3cdiv class\x3d"a-popover a-dropdown a-dropdown-common a-declarative" aria-modal\x3d"true" data-action\x3d"a-popover-a11y"\x3e',f.getStartAnchorHtml(c),'\x3cdiv class\x3d"a-popover-wrapper"\x3e\x3cdiv class\x3d"a-popover-inner"\x3e\x3c/div\x3e\x3c/div\x3e',
f.getEndAnchorHtml(c),"\x3c/div\x3e"].join("")}}});"use strict";n.when("A").register("a-dropdown-options",function(c){function f(d){return d.nextAll(".a-button-dropdown")}var h=c.$;return{getSelectFromButton:function(d){return d.closest(".a-button-dropdown").prevAll("select.a-native-dropdown")},getButtonFromEvent:function(d){return d.popover?d.popover.$trigger.nextAll(".a-button-dropdown"):d.$target?f(d.$target):h(d.target).nextAll(".a-button-dropdown")},getButtonFromSelect:f,getSelectFromEvent:function(d){d=
h(d.target);d.length||n.error("Cannot locate the \x3cselect\x3e of dropdown");return d},triggerSelector:".a-button-dropdown"}});"use strict";n.when("A","a-popover-accessibility").register("a-dropdown-split-view",function(c,f){return{skin:function(c){var d=c.attrs("header")||"";c={id:c.id,label_str:d,needs_declarative:!1};return['\x3cdiv class\x3d"a-popover a-splitdropdown a-dropdown-common a-declarative" aria-modal\x3d"true" data-action\x3d"a-popover-a11y"\x3e',f.getStartAnchorHtml(c),'\x3cdiv class\x3d"a-popover-wrapper"\x3e\n\x3cdiv class\x3d"a-popover-inner"\x3e\x3c/div\x3e\n\x3c/div\x3e',
f.getEndAnchorHtml(c),"\x3c/div\x3e"].join("\n")}}});"use strict";n.when("A","a-dropdown-base","a-dropdown-split-utils","a-dropdown-split-view","a-dropdown-split-options","a-dropdown-base-factory","a-dropdown-keyboard-handlers","prv:a-tnr").register("a-dropdown-split-handlers",function(c,f,h,d,l,k,a,p){var g=c.$;c.declarative("a-splitdropdown-button","click",function(a){p.ackDeclarative(a);var b=l.getButtonFromEvent(a);f.showDropdown(a,c.extend({$button:b},l),d)});c.declarative("a-splitdropdown-main",
"click",function(a){p.ackDeclarative(a);var b=a.$target.closest(".a-splitdropdown-container").find("select"),e=b.attr("id"),d=b.val();h.triggerEvent(e,b,d);a.$event.preventDefault()});c.declarative("a-splitdropdown-button","keydown",function(a){p.ackDeclarative(a);var b=l.getButtonFromEvent(a),e=c.constants.keycodes,h=a.$event.which;h!==e.DOWN_ARROW&&h!==e.ENTER&&h!==e.SPACE||f.showDropdown(a,g.extend({$button:b},l),d)});g(document).delegate(".a-popover.a-splitdropdown a","click",function(a){p.ackDelegated(a);
var b=g(this),e=b.data("value").stringVal;b=k.get(b.closest(".a-popover"));var d=b.sourceSelect,c=d.attr("id");b.hide();h.triggerEvent(c,d,e);a.preventDefault()}).delegate(".a-splitdropdown li","keydown",a.keyDown).delegate(".a-splitdropdown li","keypress",a.keyPress)});"use strict";n.when("A").register("a-dropdown-split-options",function(c){function f(d){return d.popover?d.popover.$trigger.closest(".a-button-splitdropdown"):d.$target?d.$target.closest(".a-button-splitdropdown"):h(d.target).nextAll(".a-button-splitdropdown")}
var h=c.$;return{getButtonFromEvent:f,getButtonFromSelect:function(d){return d.next(".a-button-group-splitdropdown").find(".a-button-splitdropdown")},getSelectFromEvent:function(d){d=f(d).closest(".a-splitdropdown-container").find("select");d.length||n.error("cannot locate the \x3cselect\x3e of the split dropdown");return d}}});"use strict";n.when("A").register("a-dropdown-split-utils",function(c){return{triggerEvent:function(f,h,d){h={$select:h,value:d,id:f};c.trigger("a:splitdropdown:"+f+":select",
h);c.trigger("a:splitdropdown:select",h)}}});"use strict";n.when("A","a-dropdown-base","a-dropdown-split-options","a-dropdown-split-utils","a-dropdown-split-handlers","a-analytics").register("a-splitdropdown",function(c,f,h,d,l,k){var a=c.$,p=a(document);c.on("a:pageUpdate beforeReady",function(){if((c.capabilities.mobile||c.capabilities.tablet)&&!c.capabilities.touchScrolling){p.find("select.a-native-splitdropdown").removeAttr("tabindex").removeAttr("aria-hidden");var d=p.find(".a-splitdropdown-container label.a-native-dropdown");
c.each(d,function(d){a(d).attr("for",a(d).nextAll("select.a-native-splitdropdown").attr("id")||"")})}});p.delegate(".a-native-splitdropdown","change",function(c,f,b){c=a(this);f=c.val();var e=c.attr("id");b||d.triggerEvent(e,c,f)}).delegate(".a-button-splitdropdown:not(.a-button-disabled)","focusin",function(){a(this).find(".a-button-text").focus()});c.on("beforeReady a:pageUpdate a:ajax:complete",function(){var a=p.find(".a-button-group-splitdropdown .a-button-disabled");a.attr("aria-disabled")&&
(k.count("splitdropdown:usage",a.length),a.removeAttr("aria-disabled").find(".a-button-text").attr("aria-disabled",!0).removeAttr("role"))});return{getSelect:function(a){return f.getSelect(a,h)}}});"use strict";n.when("A","a-popover-accessibility-templates").register("a-popover-accessibility",function(c,f){var h=f.startAnchorTemplate,d=f.startAnchorDeclarativeTemplate,l=f.endAnchorTemplate,k=f.descriptionTemplate,a=f.offscreenDescriptionTemplate,p=f.labelTemplate,g=f.offscreenStartTemplate,m=function(b,
a){var e={"{{DESCRIPTION}}":a,"{{DESCRIPTION_ID}}":b};return k.replace(/\{\{[\w_]*\}\}/g,function(b){return e[b]})},b=function(b){var a=b.id,e=b.header_str;return(b=b.label_str)?'aria-label\x3d"'+b+'"':e?'aria-labelledby\x3d"a-popover-header-'+a+'"':""},e=function(b,e){var d={"{{DESCRIPTION}}":e,"{{DESCRIPTION_ID}}":b};return a.replace(/\{\{[\w_]*\}\}/g,function(b){return d[b]})};return{getAriaLabelledByDescribedby:function(b){var a=b.id,e=b.header_str,d=b.aria_description,c="";b.label_str?c='aria-labelledby\x3d"a-popover-label-'+
a+'"':e&&(c='aria-labelledby\x3d"a-popover-header-'+a+'"');d&&(c+=' aria-describedby\x3d"a-popover-aria-description-'+a+'"');return c},getPopoverLabelHtml:function(b){var a="",e=b.id;if(b=b.label_str){var d={"{{LABEL}}":b,"{{LABEL_ID}}":"a-popover-label-"+e};a=p.replace(/\{\{[\w_]*\}\}/g,function(b){return d[b]})}return a},getStartAnchorHtml:function(a){var e=a.id,g=a.label_str,f=a.aria_description,k="";if(!e)return"";var p={"{{ROLE}}":'role\x3d"dialog"',"{{ANCHOR_NAME}}":"a-popover-start","{{ARIA_LABEL}}":b(a),
"{{LABEL_STR}}":g||"","{{ARIA_DESCRIBEDBY}}":""};a=a.needs_declarative?d:h;f&&(e="a-popover-aria-description-"+e,p["{{ARIA_DESCRIBEDBY}}"]='aria-describedby\x3d"'+e+'"',k=m(e,f));c.capabilities.ios&&(p["{{ROLE}}"]="");a=a.replace(/\{\{[\w_]*\}\}/g,function(b){return p[b]})+k;return a.replace(/\s\s>|\s>/g,"\x3e")},getEndAnchorHtml:function(b){return l},getDescription:function(b){var a="",d=b.id;(b=b.aria_description)&&(a=e("a-popover-aria-description-"+d,b));return a},getStartAnchorSimplifiedHtml:function(){return g}}});
"use strict";n.declare("a-popover-accessibility-templates",{startAnchorTemplate:'\x3cspan tabindex\x3d"0" role\x3d"dialog" class\x3d"{{ANCHOR_NAME}} a-popover-a11y-offscreen" {{ARIA_LABEL}} {{ARIA_DESCRIBEDBY}}\x3e\x3c/span\x3e',startAnchorDeclarativeTemplate:'\x3cspan tabindex\x3d"0" role\x3d"dialog" data-action\x3d"a-popover-a11y" class\x3d"{{ANCHOR_NAME}} a-popover-a11y-offscreen a-declarative" {{ARIA_LABEL}} {{ARIA_DESCRIBEDBY}}\x3e{{LABEL_STR}}\x3c/span\x3e',endAnchorTemplate:'\x3cspan tabindex\x3d"0" class\x3d"a-popover-end a-popover-a11y-offscreen"\x3e\x3c/span\x3e',
descriptionTemplate:'\x3cspan id\x3d"{{DESCRIPTION_ID}}" class\x3d"a-popover-a11y-offscreen"\x3e{{DESCRIPTION}}\x3c/span\x3e',offscreenDescriptionTemplate:'\x3cspan id\x3d"{{DESCRIPTION_ID}}" class\x3d"a-popover-a11y-offscreen" aria-hidden\x3d"true"\x3e{{DESCRIPTION}}\x3c/span\x3e',labelTemplate:'\x3cspan id\x3d"{{LABEL_ID}}" class\x3d"a-popover-a11y-offscreen" aria-hidden\x3d"true"\x3e{{LABEL}}\x3c/span\x3e',offscreenStartTemplate:'\x3cspan tabindex\x3d"0" class\x3d"a-popover-start a-popover-a11y-offscreen"\x3e\x3c/span\x3e'});
"use strict";n.when("A","a-popover-util").register("a-popover-ajax",function(c,f){return{update:function(c,d,f){var h={};h.url=d;f.timeout&&(h.timeout=f.timeout);f.ajaxFailMsg&&(h.ajaxFailMsg=f.ajaxFailMsg);f.cache&&(h.cache=f.cache);c.update(h)},showSpinner:function(c){return f.showSpinner(c)}}});"use strict";n.when("A").register("a-popover-animate",function(c){function f(d,f){return function(){c[d].apply(c,f)}}function h(d,c){return function(){d._isAnimating=!1;c&&c()}}return{isAnimating:function(d){return d._isAnimating},
animate:function(d,l,k,a,p){d._isAnimating=0<k;c.animationFrameDelay(f("animate",[d.$popover,l,k,a,h(d,p)]))},fadeOut:function(d,l,k,a){d._isAnimating=0<l;c.animationFrameDelay(f("fadeOut",[d.$popover,l,k,h(d,a)]))},fadeIn:function(d,l,k,a){d._isAnimating=0<l;c.animationFrameDelay(f("fadeIn",[d.$popover,l,k,h(d,a)]))}}});n.declare("a-popover-lightbox-markup",{id:"a-popover-lgtbox",div:'\x3cdiv id\x3d"a-popover-lgtbox" class\x3d"a-declarative" data-action\x3d"a-popover-floating-close" /\x3e'});"use strict";
n.when("A","ready").register("a-popover-navigate",function(c){function f(a){"string"===typeof a&&(k=!0,u.location.hash=a);return u.location.hash||""}var h=c.$;h=h(u);var d=[],l=[],k=!1,a={},p=!1;l.push(f());h.bind("hashchange",function(d){d.preventDefault();p?p=!1:l.push(f());32<=l.length&&l.shift();k?k=!1:c.trigger("a:popover:navigate",a[l[l.length-1]])});c.on("a:popover:navigate",function(a){a?a.show({preventNavigate:!0}):(a=0<=d.length-1?d[d.length-1]:null)&&a.unlock().hide({preventNavigate:!0})});
c.on("a:popover:showNavigable a:popover:showNavigableLegacy",function(a){d.push(a.popover)});c.on("a:popover:hideNavigable a:popover:hideNavigableLegacy",function(a){d.pop()});return{forward:function(d){var g=d.name+"_"+c.now();a["#"+g]=d;f(g)},back:function(){0<l.length&&l.pop();p=!0;u.history.back()}}});"use strict";n.when("A","prv:a-capabilities").register("a-popover-position",function(c,f){function h(b,e){var d=c.viewport();if(1===c.viewport().zoom)var f={top:0,left:0};else p||(p=a('\x3cspan id\x3d"a-popover-offset-tracker"\x3e\x3c/span\x3e'),
a("body").prepend(p)),f=p.offset();var h=e.offset(),k=b.offset();if(m){var l=u.pageYOffset-document.documentElement.scrollTop;h.top-=l;k.top-=l}h.top-=f.top;h.left-=f.left;k.top-=f.top;k.left-=f.left;l=e[0].getBoundingClientRect();l=l.right-l.left;e=e.outerHeight();var n=b.outerWidth(!0),w=b.outerHeight(!0);b=b.find(".a-popover-header");b=b.length?b.outerHeight(!0):0;return{windowWidth:d.width,windowHeight:d.height,windowTop:d.scrollTop,windowLeft:d.scrollLeft,windowRight:d.scrollLeft+d.width,windowBottom:d.scrollTop+
d.height,zoomTop:f.top,zoomLeft:f.left,triggerWidth:l+1,triggerHeight:e,triggerTop:h.top-g,triggerLeft:h.left-g,triggerRight:h.left+l+g,triggerBottom:h.top+e+g,triggerVerticalCenter:h.top+e/2,triggerHorizontalCenter:h.left+l/2,popoverWidth:n,popoverHeight:w,popoverTop:k.top,popoverLeft:k.left,popoverRight:k.left+n,popoverBottom:k.top+w,popoverVerticalCenter:k.top+w/2,popoverHorizontalCenter:k.left+n/2,headerHeight:b}}function d(b){return b.removeClass("a-arrow-top a-arrow-bottom a-arrow-left a-arrow-right")}
function l(b){var a={deltaTop:0};a.top=b.triggerVerticalCenter-b.popoverHeight/2;if(a.top<b.windowTop+20){var d=Math.min(b.windowTop+20,b.triggerTop-20);a.deltaTop=a.top-d;a.top=d}else a.top+b.popoverHeight>b.windowBottom-20&&(d=Math.min(20,b.windowBottom-b.triggerBottom+20),a.deltaTop=a.top+b.popoverHeight-(b.windowBottom-d),a.top=b.windowBottom-d-b.popoverHeight);return a}function k(b){var a={deltaLeft:0};a.left=b.triggerHorizontalCenter-b.popoverWidth/2;if(20>a.left){var d=Math.min(20,b.triggerLeft-
20);a.deltaLeft=a.left-d;a.left=d}else a.left+b.popoverWidth>b.windowRight-20&&(d=Math.min(20,b.windowRight-b.triggerRight+20),a.deltaLeft=a.left+b.popoverWidth-(b.windowRight-d),a.left=b.windowRight-d-b.popoverWidth);return a}var a=c.$;a(u);var p=null,g=1,m=c.capabilities.mobile&&f.isIE10Plus;n.when("prv:skin-vars-desktop").execute(function(b){g=b.popover.POPOVER_SPACING?b.popover.POPOVER_SPACING:g});return{windowCenter:function(b){b=h(b.$popover,b.$trigger);var a={};a.top=(b.windowHeight-b.popoverHeight)/
2;a.left=(b.windowWidth-b.popoverWidth)/2;0>a.top&&(a.top=0);return a},windowTop:function(b){b=h(b.$popover,b.$trigger);var a={top:0};a.left=b.windowWidth/2-b.popoverWidth/2;return a},windowFullWidth:function(b){return{top:0,left:0}},triggerRight:function(b,a){var e=b.$popover,c=b.$trigger;a||(a=h(e,c));c=l(a);c.left=a.triggerRight;b.attrs("popoverArrow")&&(d(e).addClass("a-arrow-right"),e.find(".a-arrow-border").css("top",a.popoverHeight/2+c.deltaTop));return c},triggerLeft:function(b,a){var e=b.$popover,
c=b.$trigger;a||(a=h(e,c));c=l(a);c.left=a.triggerLeft-a.popoverWidth;c.left=0<c.left?c.left:0;b.attrs("popoverArrow")&&(d(e).addClass("a-arrow-left"),e.find(".a-arrow-border").css("top",a.popoverHeight/2+c.deltaTop));return c},triggerTop:function(a,e){var b=a.$popover,c=a.$trigger;e||(e=h(b,c));c=k(e);c.top=e.triggerTop-e.popoverHeight;a.attrs("popoverArrow")&&(d(b).addClass("a-arrow-top"),b.find(".a-arrow-border").css("left",e.popoverWidth/2+c.deltaLeft));return c},triggerBottom:function(a,e){var b=
a.$popover,c=a.$trigger;e||(e=h(b,c));c=k(e);c.top=e.triggerBottom;a.attrs("popoverArrow")&&(d(b).addClass("a-arrow-bottom"),b.find(".a-arrow-border").css("left",e.popoverWidth/2+c.deltaLeft));return c},triggerHorizontal:function(a,d){var b=a.$popover,c=a.$trigger;d||(d=h(b,c));return d.triggerLeft-d.windowLeft>d.windowRight-d.triggerRight?this.triggerLeft(a,d):this.triggerRight(a,d)},triggerVertical:function(a,d){var b=a.$popover,c=a.$trigger;d=d?d:h(b,c);return d.triggerTop-d.windowTop>d.popoverHeight+
20?this.triggerTop(a,d):this.triggerBottom(a,d)},triggerVerticalAlignLeft:function(a,c){var b=a.$popover,e=a.$trigger;c||(c=h(b,e));e={};var g=0,f=c.windowBottom-c.triggerBottom;e.left=c.triggerLeft;e.top=f>c.popoverHeight?c.triggerBottom+3:c.triggerTop-c.popoverHeight-3;if(20>e.left){var k=Math.min(20,c.triggerLeft-20);g=e.left-k;e.left=k}else e.left+c.popoverWidth>c.windowRight-20&&(k=Math.min(20,c.windowRight-c.triggerRight+20),g=e.left+c.popoverWidth-(c.windowRight-k),e.left=c.windowRight-k-c.popoverWidth);
a.attrs("popoverArrow")&&(d(b).addClass(f>c.popoverHeight?"a-arrow-bottom":"a-arrow-top"),b.find(".a-arrow-border").css("left",c.triggerWidth/2+g));return e},customPosition:function(a,d){return d.call(this,{popover:a,$popover:a.$popover,$trigger:a.$trigger,measure:h})}}});"use strict";n.when("A","a-modal-view-base","a-modal-positions","a-popover-accessibility").register("a-modal-view",function(c,f,h,d){var l=c.$;l=l("html").hasClass("a-lt-ie9");return c.extend(f,c.capabilities.touch||c.capabilities.mobile||
c.capabilities.tablet||l?h.innerScroll:h.modalScroll,{skin:function(f){var a=f.attrs("id"),h=f.attrs("header")||"",g=f.attrs("hideHeader")||!1,k=f.attrs("footer"),b=f.attrs("modeless")||!1,e=f.attrs("closeButton"),l=f.attrs("closeButtonLabel")||"",q=f.attrs("hideHeaderCloseButtonLayout")||"",n=f.attrs("popoverLabel")||"",v=f.attrs("padding");f=f.attrs("ariaDescription");f={id:a,header_str:h,label_str:n,aria_description:f};n=d.getDescription(f);var u=d.getPopoverLabelHtml(f);e='\x3cbutton data-action\x3d"a-popover-close" class\x3d"'+
(e?"":" a-button-close-a11y")+" a-button-close a-declarative"+(g?e?"top"===q?" a-modal-close-nohead-top":" a-button-top-right":" a-button-a11y-top-right":"")+'" aria-label\x3d"'+l+'"\x3e\x3ci class\x3d"a-icon a-icon-close"\x3e\x3c/i\x3e\x3c/button\x3e';h=!g||u?"\x3cheader"+(g?"":' class\x3d"a-popover-header"')+"\x3e"+(g?"":'\x3ch4 class\x3d"a-popover-header-content'+(b?" a-popover-draggable-handle":"")+'" id\x3d"a-popover-header-'+a+'"\x3e'+h+"\x3c/h4\x3e")+e+u+"\x3c/header\x3e":e;k=k?'\x3cdiv class\x3d"a-popover-footer"\x3e'+
k+"\x3c/div\x3e":"";v="none"===v?" a-padding-none":"";g=c.capabilities.isAndroid?"":d.getStartAnchorSimplifiedHtml();e=c.capabilities.isAndroid?"":d.getEndAnchorHtml(f);l=b?"":'\x3cdiv class\x3d"a-modal-scroller a-declarative" data-action\x3d"a-popover-floating-close"\x3e';f='\x3cdiv class\x3d"a-popover a-popover-modal a-declarative'+(b?" a-modal-modeless":" ")+'" data-action\x3d"a-popover-a11y" aria-modal\x3d"true" role\x3d"dialog"'+d.getAriaLabelledByDescribedby(f)+"\x3e";return l+f+g+n+'\x3cdiv class\x3d"a-popover-wrapper"\x3e'+
h+('\x3cdiv class\x3d"a-popover-inner'+v+'" id\x3d"a-popover-content-'+a+'"\x3e\x3c/div\x3e')+k+"\x3c/div\x3e"+e+"\x3c/div\x3e"+(b?"":"\x3c/div\x3e")}})});"use strict";n.when("A","a-popover-lightbox","a-popover-optional-helpers","prv:a-capabilities").register("a-modal-positions",function(c,f,h,d){function l(a){var b=a.$popover.closest(".a-modal-scroller");b.scrollTop(0).css("visibility","visible");b.bind("scroll",function(){a.updateChildrenPosition()})}function k(){var a=c.viewport();2<a.width/a.height&&
c.delay(function(){document.activeElement.scrollIntoView();u.scrollTo(u.pageXOffset,0)},0)}function a(a,b,d){if(0>a)return d({"padding-right":b+"px","box-sizing":"content-box"}),!0;d({"padding-right":"","box-sizing":""});return!1}function p(a){return function(b){a.css(b)}}var g=c.$,m=d.isIE10Plus&&c.capabilities.mobile,b=0;n.when("prv:skin-vars").execute(function(a){b=a.popover.optionalButtonHeight});n.declare("prv:a-model-applyHorizonalScrollStyles",a);return{innerScroll:{positionStrategy:function(e){var l=
e.popover,n=e.$popover,t=e.$trigger,v=n.find(".a-popover-inner").css("height","auto"),B=n.closest(".a-modal-scroller"),y={},w=c.viewport(!0),x=.1*w.height,A=.05*w.width;w=.8*w.height;var z=l.attrs("height");l=l.attrs("min-height");n.css({height:z?z:"","min-height":l?l:""});t=e.measure(n,t);y.left=(t.windowWidth-t.popoverWidth)/2;a(y.left,A,p(n))&&(y.left=A);h.evaluateActualHeight(e,t.popoverHeight,b)>w?(l=n.find(".a-popover-header, .a-modal-close-nohead-top").outerHeight(!0)||0,z=n.find(".a-popover-footer").outerHeight(!0)||
0,e=h.getOffsetTopDelta(e,x,b),w-=e,x+=e,v.css({height:w-l-z+"px","overflow-y":"auto"}),n.css({height:w,"min-height":0}),y.top=x):(y.top=(t.windowHeight-t.popoverHeight)/2,v.css("height","auto"));y.left+=t.zoomLeft;y.top+=t.zoomTop;m&&(B.css("top",g(u).scrollTop()),n.removeClass("a-popover-pan-y").addClass("a-popover-pan-x"),n=g(document).height(),v=g(document).width(),g("#"+f.LIGHTBOX_ID).css({height:n,width:v>t.popoverWidth?v:t.popoverWidth+A}));d.isMetroIEGuess&&d.isIETouchCapable&&k();return y},
beforeShowMethod:c.constants.NOOP,beforeHideMethod:c.constants.NOOP},modalScroll:{positionStrategy:function(b){var e=b.$popover,g=b.$trigger,f=e.closest(".a-modal-scroller"),h=e.find(".a-popover-inner").css("height","auto");if(e.hasClass("a-popover-modal-fixed-height")){var m=e.find(".a-popover-footer");h.css("padding-bottom",m.height()+15)}h={};var l=c.viewport(!0),n=l.height;m=.1*n;l=.05*l.width;n*=.8;var u=e.height(),z=e.width();b=b.measure(e,g);h.left=(b.windowWidth-z)/2;h.top=(b.windowHeight-
u)/2;a(h.left,l,p(e))&&(h.left=l);u>n?f.length?(h.top=0,e.css({position:"relative",margin:b.zoomTop+m+"px 0 "+m+"px "+(b.zoomLeft+h.left)+"px"}),h.left=0,f.css("padding-bottom","1px")):u>n&&(h.top=padding):f.length&&(e.css({position:"absolute",margin:"0px"}),f.css("padding-bottom","0px"));h.left+=b.zoomLeft;h.top+=b.zoomTop;d.isMetroIEGuess&&d.isIETouchCapable&&k();return h},beforeShowMethod:function(){l(this)},beforeHideMethod:function(){this.$popover.closest(".a-modal-scroller").css("visibility",
"hidden").unbind("scroll")}},util:{determineMaximumInnerHeight:function(a){var b=a.$popover;a=.8*c.viewport().height;var d=b.find(".a-popover-header, .a-modal-close-nohead-top").outerHeight(!0)||0;b=b.find(".a-popover-footer").outerHeight(!0)||0;return a-d-b},determineInnerVerticalPadding:function(a){a=a.$popover.find(".a-popover-inner");return a.outerHeight()-a.height()}}}});"use strict";n.when("A","a-popover-base-factory","a-modal-view","a-popover-util","prv:a-capabilities").register("a-modal-factory",
function(c,f,h,d,l){function k(g,k){var b=!1,e=!1;c.capabilities.mobile||c.capabilities.tablet||(b=d.getBool(k.modeless),e=d.getBool(k.draggable));k={modeless:b,draggable:e,type:"modal",alone:!0,immersive:!0,position:"windowCenter",header:k.header,hideHeader:k.hideHeader,footer:k.footer,padding:k.padding,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"],closeButton:d.getBool(k.closeButton,!0),timeout:k.timeout,
lightboxOptions:b?z:{lockScroll:!0,showDuration:a||p?0:null},data:k.data||{},dataStrategy:k.dataStrategy,url:k.url,manualRefresh:!!k.manualRefresh,ajaxFailMsg:k.ajaxFailMsg,cache:d.getBool(k.cache,!0),inlineContent:k.inlineContent?k.inlineContent:k.content,name:k.name,closeButtonLabel:k.closeButtonLabel?k.closeButtonLabel:"Close",hideHeaderCloseButtonLayout:k.hideHeaderCloseButtonLayout,popoverLabel:k.popoverLabel,ariaDescription:k.ariaDescription,legacyNavigable:d.getBool(k.legacyNavigable,!0)};
return f.create(g,{attributes:k,typeSpecificFunctions:h,actionCheck:!0})}var a=-1<document.documentElement.className.indexOf("a-lt-ie9"),p=c.capabilities.mobile&&l.isIE10Plus;return{type:"modal",create:k,get:function(a){var c=f.get(a,"modal");c||"object"!==typeof a||(a=d.extractDeclarativeParams(a,"modal"))&&(c=k(a.$trigger,a.attributes||{}));return c},remove:function(a){return f.remove(a,"modal")}}});"use strict";n.when("A","a-modal-factory","a-popover-base","a-modal-handlers").register("a-modal",
function(c,f){return f});"use strict";n.when("A","a-popover-util","a-popover-animate").register("a-popover-view-base",function(c,f,h){return{setAriaBusy:function(d){this.$popover.find(".a-popover-wrapper").attr("aria-busy",d)},updateContent:function(d){"string"===typeof d?this.$popover.find(".a-popover-content").html(d):d&&this.$popover.find(".a-popover-content").html("").append(d)},updateDimensions:function(){this.$popover.css(f.getCSSHash(this.attrs()));this.isActive()&&this.updatePosition();return this},
getContent:function(){return this.$popover?this.$popover.find(".a-popover-content"):null},hideMethod:function(d){var c=this;h.fadeOut(c,250,"linear",function(){c.$popover.css({top:"auto",left:"auto"});d.call(c)})}}});n.when("a-util").register("a-popover-optional-helpers",function(c){return{getOffsetTopDelta:function(f,h,d){d=parseFloat(d);var l=c.isFiniteNumber(d)&&0<d;f=f.$popover.find(".a-button-close").length&&!f.$popover.find(".a-button-close-a11y").length;return l&&f&&0>h-d?d-h:0},evaluateActualHeight:function(c,
h,d){return c.$popover.find(".a-button-close").length&&!c.$popover.find(".a-button-close-a11y").length?h+d:h}}});"use strict";n.when("A","a-popover-view-base","a-popover-util","a-popover-accessibility").register("a-popover-view",function(c,f,h,d){var l=!0;n.when("prv:skin-vars").execute(function(d){l=d.popover.closeButtonEnabled});return c.extend(f,{skin:function(f){var a=f.attrs("id"),h=f.attrs("header"),g=l&&f.attrs("closeButton"),k=f.attrs("closeButtonLabel")||"",b=f.attrs("popoverLabel")||"",
e=f.attrs("ariaDescription"),n=f.attrs("padding");f=f.attrs("popoverArrow");e={id:a,header_str:h,label_str:b,aria_description:e};c.capabilities.isAndroid&&(k=(b||h)+" "+k);g='\x3cbutton data-action\x3d"a-popover-close" class\x3d"a-button-close '+(g?"":"a-button-close-a11y")+' a-declarative" aria-label\x3d"'+k+'"\x3e\x3ci class\x3d"a-icon a-icon-close"\x3e\x3c/i\x3e\x3c/button\x3e';var q=(k=!!h)?"a-popover-has-header":"a-popover-no-header";n="none"===n?" a-padding-none":"";f=f?'\x3cdiv class\x3d"a-arrow-border"\x3e\x3cdiv class\x3d"a-arrow"\x3e\x3c/div\x3e\x3c/div\x3e':
"";b=c.capabilities.isAndroid?"":d.getStartAnchorSimplifiedHtml();var t=c.capabilities.isAndroid?"":d.getEndAnchorHtml(e);h=h?'\x3ch4 class\x3d"a-popover-header-content" id\x3d"a-popover-header-'+a+'"\x3e'+h+"\x3c/h4\x3e":"";q='\x3cdiv class\x3d"a-popover '+q+' a-declarative" data-action\x3d"a-popover-container a-popover-a11y" aria-modal\x3d"true" role\x3d"dialog"'+d.getAriaLabelledByDescribedby(e)+"\x3e";var u=d.getDescription(e);e=d.getPopoverLabelHtml(e);return q+b+u+'\x3cdiv class\x3d"a-popover-wrapper"\x3e'+
(k?'\x3cheader class\x3d"a-popover-header"\x3e'+h+g+e+"\x3c/header\x3e":"")+('\x3cdiv class\x3d"a-popover-inner'+n+'"\x3e')+(k?"":e?"\x3cheader\x3e"+g+e+"\x3c/header\x3e":g)+('\x3cdiv class\x3d"a-popover-content" id\x3d"a-popover-content-'+a+'"\x3e\x3c/div\x3e')+"\x3c/div\x3e"+f+"\x3c/div\x3e"+t+"\x3c/div\x3e"}})});"use strict";n.when("A","a-popover-base-factory","a-popover-view","a-popover-util").register("a-popover-factory",function(c,f,h,d){function l(c,a){a={type:"popover",alone:!0,header:a.header,
width:a.width,height:a.height,"max-width":a["max-width"],"max-height":a["max-height"],"min-width":a["min-width"],"min-height":a["min-height"],padding:a.padding,closeButton:d.getBool(a.closeButton,!0),position:a.position||"triggerVertical",activate:a.activate||"onmouseover",timeout:a.timeout,data:a.data||{},dataStrategy:a.dataStrategy,url:a.url,manualRefresh:!!a.manualRefresh,ajaxFailMsg:a.ajaxFailMsg,cache:d.getBool(a.cache,!0),inlineContent:a.inlineContent?a.inlineContent:a.content,name:a.name,closeButtonLabel:a.closeButtonLabel?
a.closeButtonLabel:"Close",popoverLabel:a.popoverLabel,ariaDescription:a.ariaDescription,focusWhenShown:d.getBool(a.focusWhenShown,!0),popoverArrow:d.getBool(a.popoverArrow,!0),restoreFocusOnHide:d.getBool(a.restoreFocusOnHide,!0)};return f.create(c,{attributes:a,typeSpecificFunctions:h,actionCheck:!0})}return{type:"popover",create:l,get:function(c){var a=f.get(c,"popover");a||"object"!==typeof c||(c=d.extractDeclarativeParams(c,"popover"))&&(a=l(c.$trigger,c.attributes||{}));return a},remove:function(d){return f.remove(d,
"popover")}}});"use strict";n.when("A","a-popover-factory").register("a-popover-handlers",function(c,f){function h(a){a&&!a.destroyTimer&&(a.destroyTimer=c.delay(function(){a.hide()},250))}function d(a){a&&(clearTimeout(a.destroyTimer),a.destroyTimer=null,clearTimeout(a.parent.destroyTimer),a.parent.destroyTimer=null)}var l=c.$,k=!(c.capabilities.mobile||c.capabilities.tablet)&&c.capabilities.ios;c.declarative("a-popover","click",function(a){var d=f.get(a.$declarativeParent);d&&(d.show(),a.$event.preventDefault())});
c.declarative("a-popover","keydown",function(a){var d=c.constants.keycodes,h=a.$event.which;if(h===d.ENTER||h===d.SPACE)a.$event.preventDefault(),f.get(a.$declarativeParent).show()});if(!k){var a;c.declarative("a-popover","mouseenter",function(h){var g=f.get(h.$declarativeParent);g&&"onmouseover"===g.attrs("activate")&&(d(g),a=c.delay(function(){(g=f.get(h.$declarativeParent))&&g.show()},200))});c.declarative("a-popover","mousemove",function(a){2>c.cursor().speed&&(a=f.get(a.$declarativeParent))&&
"onmouseover"===a.attrs("activate")&&a.show()});c.declarative("a-popover","mouseleave",function(d){(d=f.get(d.$declarativeParent))&&"onmouseover"===d.attrs("activate")&&(h(d),a&&clearTimeout(a))});c.declarative("a-popover-container","mouseenter",function(a){(a=f.get(a.$declarativeParent))&&"onmouseover"===a.attrs("activate")&&d(a)});c.declarative("a-popover-container","mouseleave",function(a){var d=f.get(a.$declarativeParent),k=!0,b=l(a.$event.relatedTarget);d&&"onmouseover"===d.attrs("activate")&&
d.isActive()&&(c.each(d.children,function(a){if(b.closest(a.$popover).length)return k=!1}),k&&(h(d),d.parent.immersive||0!==b.closest(d.parent.$popover).length||h(d.parent)))})}});"use strict";n.when("A","a-popover-factory","a-popover-base","a-popover-handlers").register("a-popover",function(c,f){return f});"use strict";n.when("A","a-popover-base-factory","a-secondary-view-view","a-popover-util").register("a-secondary-view-factory",function(c,f,h,d){function l(d,g){g.disableAnimation=g.disableAnimation||
c.capabilities.isOldAndroid;return f.create(d,{attributes:{type:"secondary-view",immersive:!0,disableAnimation:a||g.disableAnimation,synchronous:!!(a||g.synchronous&&"false"!==g.synchronous),animationLength:g.disableAnimation?0:300,alternateBackground:g.alternateBackground||!1,hideHeader:a||g.hideHeader||!1,scrollable:g.scrollable||!0,header:g.header,backButtonText:g.backButtonText,position:"windowFullWidth",timeout:g.timeout,dataStrategy:g.dataStrategy,inlineContent:g.inlineContent?g.inlineContent:
g.content,url:g.url,manualRefresh:!!g.manualRefresh,name:g.name,cache:"false"===g.cache||!1===g.cache?!1:!0,data:g.data||{},popoverLabel:g.popoverLabel,padding:g.padding,ariaDescription:g.ariaDescription,historyApi:"true"===g.historyApi||!0===g.historyApi},typeSpecificFunctions:h,actionCheck:!0})}var k=c.$,a=!1;n.when("mash-will-load").execute(function(){a=!0});return{type:"secondary-view",create:l,get:function(a){var c=f.get(a,"secondary-view");if(!c&&"object"===typeof a){var h=d.extractDeclarativeParams(a,
"secondary-view");h&&(c=l(h.$trigger,h.attributes||{}))}c&&"object"===typeof a&&(a=k(a),a=(a=a.hasClass("a-declarative")?a:a.find(".a-declarative").eq(0))?a.data("a-secondary-view"):null,c.data=a.data);return c},remove:function(a){return f.remove(a,"secondary-view")}}});"use strict";n.when("A","a-secondary-view-factory","a-popover-base","a-secondary-view-handlers").register("a-secondary-view",function(c,f){return f});"use strict";n.when("A","a-popover-animate").register("a-tooltip-view-base",function(c,
f){return{updateContent:function(c){this.$popover.find(".a-tooltip-inner").html(c)},getContent:function(){return this.$popover?this.$popover.find(".a-tooltip-inner"):null},hideMethod:function(c){var d=this;f.fadeOut(d,250,"linear",function(){c.call(d)})}}});"use strict";n.when("A","a-tooltip-view-base").register("a-tooltip-view",function(c,f){return c.extend(f,{skin:function(c){return['\x3cdiv role\x3d"tooltip" class\x3d"a-popover a-tooltip a-declarative" data-action\x3d"a-popover-close"\x3e\x3cdiv class\x3d"a-tooltip-inner"\x3e\x3c/div\x3e',
c.attrs("popoverArrow")?'\x3cdiv class\x3d"a-arrow-border"\x3e\x3cdiv class\x3d"a-arrow"\x3e\x3c/div\x3e\x3c/div\x3e':"","\x3c/div\x3e"].join("")}})});"use strict";n.when("A","a-popover-base-factory","a-tooltip-view","a-popover-util").register("a-tooltip-factory",function(c,f,h,d){function l(c,a){a={type:"tooltip",name:a.name,inlineContent:a.inlineContent?a.inlineContent:a.content,position:a.position||"triggerVertical",activate:a.activate||"onmouseover",popoverArrow:d.getBool(a.popoverArrow,!0),restoreFocusOnHide:!1};
a=f.create(c,{attributes:a,typeSpecificFunctions:h,actionCheck:!0});c.add(c.children()).filter("a, input").attr("aria-describedby","a-popover-"+c.data("a-popover-id"));return a}return{type:"tooltip",create:l,get:function(c){var a=f.get(c,"tooltip");a||"object"!==typeof c||(c=d.extractDeclarativeParams(c,"tooltip"))&&(a=l(c.$trigger,c.attributes||{}));return a},remove:function(d){return f.remove(d,"tooltip")}}});"use strict";n.when("A","a-tooltip-factory").register("a-tooltip-handlers",function(c,
f){c.declarative("a-tooltip","click",function(c){var d=f.get(c.$declarativeParent);d&&"onclick"===d.attrs("activate")&&(d.show(),c.$event.preventDefault())});c.declarative("a-tooltip","mouseenter",function(c){(c=f.get(c.$declarativeParent))&&"onmouseover"===c.attrs("activate")&&(c.show(),c.destroyTimer&&(clearTimeout(c.destroyTimer),c.destroyTimer=null))});c.declarative("a-tooltip","mouseleave",function(h){var d=f.get(h.$declarativeParent);d&&"onmouseover"===d.attrs("activate")&&(d.destroyTimer=c.delay(function(){d.hide()},
125))});c.declarative("a-tooltip","focus focusin",function(c){(c=f.get(c.$declarativeParent))&&c.show()});c.declarative("a-tooltip","blur focusout",function(c){(c=f.get(c.$declarativeParent))&&c.hide()})});"use strict";n.when("A","a-tooltip-factory","a-popover-base","a-tooltip-handlers").register("a-tooltip",function(c,f){return f})});
/* ******** */
(function(k){var m=window.AmazonUIPageJS||window.P,t=m._namespace||m.attributeErrors,b=t?t("AmazonUIPopover@ready-control","AmazonUI"):m;b.guardFatal?b.guardFatal(k)(b,window):b.execute(function(){k(b,window)})})(function(k,m,t){k.when("A","a-popover-util").register("a-popover-ajax-strategy",function(b,h){return{name:"ajax",reusePopover:!1,loadContent:function(c,d){c.setContentLoading();var a=c.attrs("url"),e=c.attrs("timeout")||1E4,f=c.attrs("ajaxFailMsg")||"Sorry, content is not available.",l=!!c.attrs("cache"),
g=c.attrs("spinnerTimer"),n=c.attrs("ajaxHandler"),v=c.attrs("content");c.attrs("content",null);if(v&&!d)c.updateContent(v),g&&clearTimeout(g),n&&n.abort&&n.abort();else{var k=function(){return!c.attrs("content")&&"ajax"===c.attrs("currentDataStrategy")&&(c.isVisible()||c.isActive())};g=b.delay(function(){k()&&(h.showSpinner(c),c.setAriaBusy(!0))},100);var m=function(a,d,e){k()&&(clearTimeout(g),c.setContentLoaded(),h.trigger(d,c),c.setAriaBusy(!1),c.update({content:a}),c.isActive()&&c.updatePosition(),
e&&h.trigger("ajaxContentLoaded",c))};n=b.ajax(a,{type:"GET",timeout:e,cache:l,success:function(a){m(a,"ajaxSuccess",!0)},error:function(){m(f,"ajaxFail",!1)}});c.attrs({spinnerTimer:g,ajaxHandler:n})}return this},unloadContent:function(c){h.clearContent(c);return this},shouldRefreshContent:function(c){return!c.attrs("manualRefresh")},isValidStrategy:function(c){return!!c.url}}});"use strict";k.when("A","a-popover-util").register("a-popover-inline-strategy",function(b,h){return{name:"inline",reusePopover:!1,
loadContent:function(c){c.setContentLoading();var d=c.attrs("content");d&&c.attrs("content",null);if(!d){d=c.$trigger;var a=d.data("action");d=d.data(a)||{};d=d.inlineContent?d.inlineContent:null}d||(d=c.attrs("inlineContent"));c.updateContent(d);c.setContentLoaded();return this},unloadContent:function(c){var d=c.getContent();d=d&&0<d.length?d.html():c.attrs("inlineContent");var a=c.$trigger,e=a.data("action"),b=a.data(e)||{};b.inlineContent=d;a.data(e,b);h.clearContent(c);return this},shouldRefreshContent:function(c){return c.isDirty()},
isValidStrategy:function(c){return!0}}});"use strict";k.when("A","a-popover-util").register("a-popover-preload-strategy",function(b,h){var c=b.$;return{name:"preload",reusePopover:!0,loadContent:function(d){d.setContentLoading();var a=d.attrs("name"),e=d.attrs("content");d.attrs("content",null);var b=c("#a-popover-"+a);b.detach();if(b.length){b=b[0];for(var l=document.createDocumentFragment();b.firstChild;)l.appendChild(b.firstChild);b=l}else b=!1;e?d.updateContent(e):a&&d.updateContent(b);d.setContentLoaded();
return this},unloadContent:function(d){var a=d.attrs("name");if(a){var e=d.getContent();if(e&&e.html()){a="a-popover-"+a;var f=c("#"+a);f.length?f=f[0]:(f=document.createElement("div"),f.id=a,f.className="a-popover-preload",document.body.appendChild(f));a=f;if(!b.trim(a.innerHTML))if(e=e[0],"string"===typeof e)c(a).html(e);else{for(f=document.createDocumentFragment();e.firstChild;)f.appendChild(e.firstChild);a.appendChild(f)}h.clearContent(d)}}return this},shouldRefreshContent:function(b){b=(b=b.attrs("name"))?
c("#a-popover-"+b):null;return!(!b||!b.length||""===b.html())},isValidStrategy:function(b){return b.name?"preload"===b.currentDataStrategy?!0:!!c("#a-popover-"+b.name).length:!1}}});"use strict";k.when("A","a-dropdown-base","a-dropdown-view","a-dropdown-options","a-dropdown-apis","a-dropdown-base-factory","a-dropdown-keyboard-handlers","prv:a-tnr").register("a-dropdown-handlers",function(b,h,c,d,a,e,f,l){var g=b.$;a=g(document);b.declarative("a-dropdown-button","click",function(b){d.getSelectFromButton(b.$target).trigger("click")});
a.delegate("select.a-native-dropdown","keydown",function(a){l.ackDeclarative(a);var e=b.constants.keycodes,f=a.which,n=g(a.target).nextAll(".a-button-dropdown").eq(0);if(b.onScreen(n)&&(f===e.UP_ARROW||f===e.DOWN_ARROW||f===e.ENTER||f===e.SPACE)){var k=g(a.target);k.prop("disabled",!0);b.delay(function(){k.prop("disabled",!1)},0);a.preventDefault?a.preventDefault():a.returnValue=!1;h.showDropdown(a,b.extend({$button:n},d),c)}});a.delegate("select.a-native-dropdown","click",function(a){l.ackDeclarative(a);
a.preventDefault?a.preventDefault():a.returnValue=!1;var e=g(a.target).nextAll(".a-button-dropdown").eq(0);b.onScreen(e)&&h.showDropdown(a,b.extend({$button:e},d),c)});a.delegate(".a-popover.a-dropdown a","click",function(a){a.preventDefault();l.ackDelegated(a);a=g(this);var b=e.get(a.closest(".a-popover"));if(a.hasClass("a-active"))b.hide();else{var c=a.data("value").stringVal;b.sourceSelect.val(c).trigger("change",[a])}});f&&(f.keyDown&&a.delegate(".a-dropdown li","keydown",f.keyDown),f.keyPress&&
a.delegate(".a-dropdown li","keypress",f.keyPress))});"use strict";k.when("A","a-popover-util","a-popover-inline-strategy","a-popover-preload-strategy","a-popover-ajax-strategy").register("a-popover-data",function(b,h,c,d,a){var e=[a,d,c];return{guessStrategyByAttrs:function(a){for(var b=0,c=e.length;b<c;b++){var d=e[b];if(d.isValidStrategy(a))return d}},getStrategyByName:function(a){for(var b=0,c=e.length;b<c;b++){var d=e[b];if(d.name===a)return d}return null},showSpinner:h.showSpinner}});"use strict";
k.when("A","a-popover-lightbox-markup","a-timing-analytics","prv:a-capabilities","ready").register("a-popover-lightbox",function(b,h,c,d){function a(a){a.preventDefault();a.stopPropagation();a.stopImmediatePropagation();return!1}function e(){z.bind("click",a);k.when("a-event-analytics").execute(function(a){a.notifyJquery(z,"click")});y=!0}function f(){z.unbind("click",a);y=!1}function l(a){var c=g(m);-1<u||!p||(a=a||{},e(),"number"!==typeof a.hideDuration&&(a.hideDuration=250),0<a.hideDuration?b.fadeOut(p,
a.duration,"linear",function(){a.lockScroll&&(g("html, body").css("overflow",""),g("body").css("margin-right",""),b.delay(function(){0<q&&(c.scrollTop(q),q=-1);0<x&&(c.scrollLeft(x),x=-1)},100));r=null}):(p.css("display","none"),a.lockScroll&&(g("html, body").css("overflow",""),g("body").css("margin-right",""),0<q&&(c.scrollTop(q),q=-1)),r=null),p.css({height:"",width:""}),b.delay(f,a.hideDuration+350),g("#a-page").removeAttr("aria-hidden"))}var g=b.$,n=-1<document.documentElement.className.indexOf("-ie"),
v=d.isIE10Plus&&b.capabilities.mobile,t=0===(b.capabilities.androidVersion+"").indexOf("4."),B=d.isUCBrowser,w=h.id,A=h.div,y=!1,z=g("body"),p=null,u=-1,q=-1,x=-1,r=null;g(document).delegate("#"+w,"click "+b.action.start+" "+b.action.move,function(a){a.preventDefault()});b.declarative("a-popover-floating-close",b.capabilities.touch?b.action.end:"click",function(a){!y&&a.$target.data("action")&&-1<a.$target.data("action").indexOf("a-popover-floating-close")&&(r&&r.isActive()?(r.unlock().hide(),a.$event.preventDefault()):
l())});if(d.isiOS8)b.on("a:popover:afterUpdatePosition",function(a){a=a.popover;var b=g("#"+w),c=b.length?b.offset().top:-1,e=g(m);if(a.isActive()&&a.attrs("lightboxOptions")&&c){var d=0;var f=setInterval(function(){e.scrollTop(c);5<++d&&clearInterval(f)},200)}});c.stopWidgetLogging("dropdown");return{show:function(a){g("#a-page").attr("aria-hidden","true");var c=g(m);p||(g("body").append(A),p=g("#"+w));a=a||{};e();a.lockScroll&&(-1===q&&(q=c.scrollTop(),x=c.scrollLeft()),b.setCssImportant(g("body"),
"margin-right",b.scrollBarWidth()+"px"),v||(n?g("html, body").css("overflow","hidden"):g("body").css("overflow","hidden")));var d=(r=a.popover||null)?r.$popover.css("z-index")-2:-1;0<d&&(p.css("z-index",d),t&&c.width());"number"!==typeof a.showDuration&&(a.showDuration=200);B&&r.$popover.css("overflow","auto");0<a.showDuration?b.fadeIn(p,a.showDuration):p.css("display","block");b.delay(f,a.showDuration+300)},hide:l,lock:function(a){a||(a=10);u<a&&(u=a)},unlock:function(a){a||(a=10);u<=a&&(u=-1)},
LIGHTBOX_ID:w}});"use strict";k.when("A").register("a-popover-util",function(b){function h(a,b){for(var c=a.children.length;c--;){var d=h(a.children[c],b);if(d)return d}if(b(a))return a}var c=b.$,d=/^-?\d+(?:\.\d+)?$/;return{trigger:function(a,c){b.trigger("a:popover:"+a,{popover:c});c.name&&b.trigger("a:popover:"+a+":"+c.name,{popover:c})},extractDeclarativeParams:function(a,d){a=c(a);a=a.hasClass("a-declarative")?a:a.find(".a-declarative").eq(0);d="a-"+d;var e=a.data("action");return e&&b.contains(e,
d)?{attributes:a.data(d)||null,$trigger:a}:null},eventOccursWithin:function(a,b){a=c(a.target);return 0<a.closest(b.$trigger).length||0<a.closest(b.$popover).length},search:h,getCSSHash:function(a){var c={};b.each("height width max-height max-width min-height min-width".split(" "),function(e){if(a[e]){var f=a[e];if(b.isFiniteNumber(f)||d.test(f))f+="px";c[e]=f}});c.height&&!c["max-height"]&&(c["max-height"]="none");c.width&&!c["max-width"]&&(c["max-width"]="none");return c},clearContent:function(a){(a=
a.getContent())&&a.empty()},showSpinner:function(a){a.updateContent('\x3cdiv class\x3d"a-popover-loading-wrapper a-text-center"\x3e\x3cdiv class\x3d"a-box a-color-base-background a-popover-loading"\x3e\x3c/div\x3e\x3c/div\x3e');a.updatePosition();return a},getBool:function(a,b){return void 0!==a?!0===a||"true"===a:!0===b}}});"use strict";k.when("A","a-popover-base-factory","a-modal-factory","ready").register("a-modal-handlers",function(b,h,c){h=b.$;b.declarative("a-modal","click",function(b){c.get(b.$declarativeParent).show();
b.$event.preventDefault()});h(document).delegate(".a-modal-scroller","click "+b.action.start+" "+b.action.move,function(b){b.target===this&&b.preventDefault()})})});
/* ******** */
(function(c){var f=window.AmazonUIPageJS||window.P,d=f._namespace||f.attributeErrors,e=d?d("AmazonUIPopover@modal-control","AmazonUI"):f;e.guardFatal?e.guardFatal(c)(e,window):e.execute(function(){c(e,window)})})(function(c,f,d){c.when("A","a-popover-util","a-popover-animate").register("a-modal-view-base",function(e,c,f){var d=e.$,g=d("html").hasClass("a-lt-ie9");return{setAriaBusy:function(b){this.$popover.find(".a-popover-wrapper").attr("aria-busy",b)},updateContent:function(b){"string"===typeof b?
this.$popover.find(".a-popover-inner").html(b):b&&this.$popover.find(".a-popover-inner").html("").append(b)},updateDimensions:function(){var b=this.$popover,a=c.getCSSHash(this.attrs());!this.draggable||a.width&&"auto"!==a.width||(a.width=b.width()+"px");b.css(a);a.height?b.addClass("a-popover-modal-fixed-height"):b.removeClass("a-popover-modal-fixed-height");this.isActive()&&this.updatePosition();return this},getContent:function(){return this.$popover?this.$popover.find(".a-popover-inner"):null},
showMethod:function(b){var a=this,d=a.$popover;d.css({visibility:"visible"}).removeClass("a-popover-hidden");g||"ajax"===a.attrs("currentDataStrategy")?b.call(a):(d.css({opacity:0}),f.animate(a,{opacity:1},500,"linear",function(){b.call(a)}));e.animationFrameDelay(function(){a.focus()});a.attrs("legacyNavigable")&&c.trigger("showNavigableLegacy",a)},hideMethod:function(b){var a=this;g?(a.$popover.hide().css("visibility","hidden").find(".a-lgtbox-vertical-scroll").removeClass("a-lgtbox-vertical-scroll"),
b.call(a)):f.fadeOut(a,250,"linear",function(){b.call(a)});a.attrs("legacyNavigable")&&c.trigger("hideNavigableLegacy",a)}}})});
/* ******** */
(function(c){var b=window.AmazonUIPageJS||window.P,d=b._namespace||b.attributeErrors,a=d?d("AmazonUIBottomSheet","AmazonUI"):b;a.guardFatal?a.guardFatal(c)(a,window):a.execute(function(){c(a,window)})})(function(c,b,d){});
/* ******** */
(function(e){var k=window.AmazonUIPageJS||window.P,g=k._namespace||k.attributeErrors,d=g?g("AmazonUITruncate","AmazonUI"):k;d.guardFatal?d.guardFatal(e)(d,window):d.execute(function(){e(d,window)})})(function(e,k,g){e.when("A","a-component","prv:a-truncate-util").register("a-truncate",function(d,e,k){function g(a){var b=a._$fullText,d=Math.round(parseFloat(a._$element.css("max-height"))),e=a.getOverflowMarker(),g=a.getSpecialCharacterList(),c=a._$offscreenTextHolder;a._$element.append(c);if(!(parseFloat(c.html(b).css("height"))<=
d)){a=0;for(var f=b.length,h,l;f>a;)h=Math.floor((a+f)/2),l=b.substring(0,h+1)+e,parseFloat(c.html(l).css("height"))>d?f=h:a=h+1;b=k.trimSpecialChars(b.substring(0,f),g)+e}c.remove();return b}function h(a){a=f(a).attr("data-a-recalculate",!0);m();return a.length}function c(){return h('.a-truncate:not([data-a-manual-update\x3d"true"]):not([data-a-updated])')}var f=d.$,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')},update:function(a){var b=this._$cut.html(),c=g(this);this._$fullText!==c?this._$cut.height(this.getMaxHeight()):this._$cut.height("auto");this._$cut.html(c);this._$element.attr("data-a-updated",!0);this._$full.addClass("a-offscreen");this._$cut.removeClass("a-hidden");c={truncateContainer:this._$element,truncateInstance:this};a&&a.silent||
(a=this.getTruncatedText(),b!==a&&(d.trigger("a:truncate:updated",c),(b=this._$element.data("a-truncate-name"))&&d.trigger("a:truncate:"+b+":updated",c)))},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(){(c=a())&&d.delay(b,0)}var c=!1;return function(){c||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});d.on("ready orientationchange",function(){h('.a-truncate:not([data-a-manual-update\x3d"true"])')});
d.on("resize",function(a,b){b.width&&h('.a-truncate:not([data-a-manual-update\x3d"true"])')});d.on("a:pageUpdate",c);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:c}});e.declare("prv:a-truncate-util",{trimSpecialChars:function(d,c){c=new RegExp("["+
c.replace(/[.\\+*?[^\]$(){}=!<>|:-]/g,"\\$\x26")+"\\s]+$");return d.replace(c,"")}})});
/* ******** */
(function(l){var m=window.AmazonUIPageJS||window.P,n=m._namespace||m.attributeErrors,c=n?n("AmazonUICardUI","AmazonUI"):m;c.guardFatal?c.guardFatal(l)(c,window):c.execute(function(){l(c,window)})})(function(l,m,n){l.when("A","a-component","prv:a-cardui-peek-toggle","prv:a-cardui-peek-expand").register("a-cardui",function(c,e,h,k){var b=c.$,f=e.create({_componentName:"cardui",init:function(a,b){this._super(a,b);this.metadata={interactedOnce:!1,describedByIds:this._$element.data("describedByIds"),cardExpanded:this.isExpanded(),
cardName:this.getName()}},getCardType:function(){return b(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,g){var d;if(!(d=b(a).data("cardInstance"))){switch(b(a).data("a-card-type")){case "peekToggle":d=f.extend(h);break;case "peekExpand":d=f.extend(k);break;default:d=f}g=new d(a,g);b(a).data("cardInstance",g);c.trigger("a:card:initialized",
g);b(a).attr("id")&&c.trigger("a:card:"+b(a).attr("id")+":initialized",g);d=g}return d}}});"use strict";l.when("A","a-component").register("prv:a-cardui-content",function(c,e){var h=e.create({_componentName:"carduiContent",init:function(c,b){this._super(c,b)},getHeight:function(){return this._$element[0].scrollHeight},getMaxHeightDataAttribute:function(){return this._$element.data("a-max-height")}});return{get:function(c,b){return new h(c,b)}}});"use strict";l.when("A","a-component","a-cardui").register("a-cardui-deck",
function(c,e,h){function k(a,b){f(a).data("cardInstance")||(f(a).attr("name",b.deckName+"-card"+b.cardCount++),f(a).data("describedByIds",b.describedByIds));return h.get(a)}function b(a,b){b=new g(a,b);f(a).data("deckInstance",b);return b}var f=c.$,a=0,g=e.create({_componentName:"carduiDeck",init:function(d,b){this._super(d,b);b=this._$element;d="a-cardui-deck-autoname-"+a++;f(b).attr("name",d);b=this._$element;var c=d+"-teaser-describedby-collapsed",g=d+"-teaser-describedby-expanded";f(b).find(".a-teaser-describedby-collapsed").attr("id",
c);f(b).find(".a-teaser-describedby-expanded").attr("id",g);this.metadata={cardCount:0,deckName:d,describedByIds:{collapsed:c,expanded:g}};this.initializeAllCards()},initializeCard:function(a,b){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 b=this;a&&a.url||l.error("ajax options object or url is not defined.");var d,g=a.targetSelector,k=b._$element;g?(g=f(g),g.closest(k).length?
d=g:l.error("container is outside the deck","ERROR","addCards")):d=k;c.get(a.url,{cache:!1,success:function(a){d.append(a);b.initializeAllCards();c.trigger("a:deck:new-cards-added");f(b._$element).attr("id")&&c.trigger("a:deck:"+f(b._$element).attr("id")+":new-cards-added")},failure:function(a,d,g){c.trigger("a:deck:cards-added-fail",{xhr:a,status:d,errorThrown:g});f(b._$element).attr("id")&&c.trigger("a:deck:"+f(b._$element).attr("id")+":cards-added-fail",{xhr:a,status:d,errorThrown:g})}})}});c.on("ready",
function(){f(".a-cardui-deck").each(function(){b(this)})});return{get:function(a,c){return f(a).data("deckInstance")||b(a,c)}}});"use strict";l.when("A","a-component","prv:a-see-more","prv:a-expander-icon","p-detect").register("prv:a-cardui-expand-control-footer",function(c,e,h,k,b){function f(a,b){a._$seeMore.toggleSeeMore(b.cardExpanded);a._$expanderIcon.toggleExpanderIcon(b.cardExpanded)}var a=e.create({_componentName:"carduiExpandControlFooter",init:function(a,b){this._super(a,b);this._$expanderIcon=
k.get(this._$element.find(".a-expander-icon"));this._$seeMore=h.get(this._$element.find(".a-see-more"));this._$button=this._$element.find('span[role\x3d"button"]')},toggleExpansion:function(a){var d=this;b.capabilities.transition&&a.interactedOnce?c.fadeOut(d._$element,200,"linear",function(){f(d,a);c.fadeIn(d._$element,200)}):f(d,a)},getName:function(){return this._$element.attr("name")},getId:function(){return this._$element.attr("id")},addTrigger:function(a){this._$element.click(function(){c.trigger("a:card:"+
a+":toggle",this)});this._$element.keypress(function(b){var d=c.constants.keycodes;b=b.which;b!==d.ENTER&&b!==d.SPACE||c.trigger("a:card:"+a+":toggle",this)})}});return{get:function(b,d){return new a(b,d)}}});"use strict";l.when("A","a-component").register("prv:a-cardui-expand-control-title",function(c,e){var h=e.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(k){this._$element.click(function(){c.trigger("a:card:"+k+":toggle",this)});this._$element.keypress(function(b){var f=c.constants.keycodes;b=b.which;b!==f.ENTER&&b!==f.SPACE||c.trigger("a:card:"+k+":toggle",this)})}});return{get:function(c,b){return new h(c,b)}}});"use strict";l.when("A","a-component").register("prv:a-cardui-teaser",function(c,e){var h=e.create({_componentName:"carduiTeaser",
init:function(c,b){this._super(c,b)},getHeight:function(){return this._$element[0].scrollHeight}});return{get:function(c,b){return new h(c,b)}}});"use strict";l.when("A","a-component").register("prv:a-expander-icon",function(c,e){var h=e.create({_componentName:"expanderIcon",init:function(c,b){this._super(c,b);this._$icon=this._$element.find(".a-css-icon")},toggleExpanderIcon:function(c){var b=c?"a-css-icon-expand":"a-css-icon-collapse";c=c?"a-css-icon-collapse":"a-css-icon-expand";this._$icon.addClass("a-css-icon-draw");
this._$icon.removeClass(b).addClass(c)}});return{get:function(c,b){return new h(c,b)}}});"use strict";l.when("A","a-component","prv:a-cardui-scroll-viewport").register("a-reactive-container",function(c,e,h){var k=e.create({_componentName:"reactiveContainer",init:function(b,c){this._super(b,c);this._$measured=!1;this._$element.addClass("a-reactive-container-transition")},setHeight:function(b){this._$element.css("height",b+"px");this._$measured?h.adjustScroll(this,parseFloat(b)):this._$measured=!0},
resetInitialization:function(){this._$measured=!1},getHeight:function(){return this._$element.css("height")}});return{get:function(b,c){return new k(b,c)}}});"use strict";l.when("A","a-component").register("prv:a-see-more",function(c,e){var h=e.create({_componentName:"seeMore",init:function(c,b){this._super(c,b);this._$seeMoreText=this._$element.find(".a-see-more-text");this._$seeLessText=this._$element.find(".a-see-less-text")},toggleSeeMore:function(c){c?(this._$seeMoreText.hide(),this._$seeLessText.show()):
(this._$seeMoreText.show(),this._$seeLessText.hide())}});return{get:function(c,b){return new h(c,b)}}});"use strict";l.when("A").register("prv:a-cardui-scroll-viewport",function(c){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(c,e,h,k,b,f){return{getExpandControlTitle:function(a){return e.get(a._$element.find(".a-cardui-expand-control-title"))},
getExpandControlFooter:function(a){return h.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 b.get(a._$element.find(".a-cardui-content"))},getReactiveContainer:function(a){a=a._$element.find(".a-reactive-container");return 0<a.length?f.get(a):null},getEventName:function(a){return"a:card:"+a.getName()+":toggle"}}});"use strict";l.when("A","prv:a-cardui-type-utility").register("prv:a-cardui-peek-expand",
function(c,e){function h(a){var b=a._$header,d=a._$footer;a.metadata.interactedOnce&&c.delay(function(){var a=f(document).scrollTop();b._$header.focus();f("html,body").scrollTop(a)},50);d._$element.attr("aria-hidden",!0)}function k(a){var g=e.getEventName(a);c.on(g,function(d){if(!a.metadata.interactedOnce){a.metadata.interactedOnce=!0;var g=a._$content;a._$teaser._$element.removeClass("a-cardui-uninitialized");g._$element.removeClass("a-cardui-uninitialized");g._$element.css("max-height","none");
b(a)}g=!a.isExpanded();a._$element.attr("data-a-expanded",g);a.metadata.cardExpanded=g;a._$footer.toggleExpansion(a.metadata);b(a);h(a);d={carduiInstance:a,triggerElement:d};c.trigger("a:card:toggled",d);a.getId()&&c.trigger("a:card:"+a.getId()+":toggled",d)})}function b(a){var b=a._$teaser,c=a._$content,e=a._$reactiveContainer,f=a.metadata;c.getMaxHeightDataAttribute()?(b=c.getHeight(),b<=c.getMaxHeightDataAttribute()?(a._$element.attr("data-a-card-type","basic"),a._$element.find(".a-cardui-footer").addClass("a-hidden"),
e.setHeight(b)):(a._$element.attr("data-a-card-type","peekExpand"),a._$element.find(".a-cardui-footer").removeClass("a-hidden"),a=c.getMaxHeightDataAttribute(),e.setHeight(f.cardExpanded?c.getHeight():a))):e.setHeight(f.cardExpanded?b.getHeight()+c.getHeight():b.getHeight())}var f=c.$;return{init:function(a,g){this._super(a,g);this._$content=e.getContent(this);this._$reactiveContainer=e.getReactiveContainer(this);this._$footer=e.getExpandControlFooter(this);var d=this;c.on("orientationchange",function(){d._$reactiveContainer.resetInitialization();
b(d)});this._$header=e.getExpandControlTitle(this);this._$teaser=e.getTeaser(this);this._$header.addTrigger(this.metadata.cardName);this._$footer.addTrigger(this.metadata.cardName);this._$footer.toggleExpansion(this.metadata);h(this);k(this);this._$content.getHeight()<=this._$content.getMaxHeightDataAttribute()&&(this._$reactiveContainer.setHeight(this._$content.getHeight()),this._$element.attr("data-a-card-type","basic"),this._$element.find(".a-cardui-footer").addClass("a-hidden"))},isExpanded:function(){return"true"===
this._$element.attr("data-a-expanded")},toggle:function(a){c.trigger("a:card:"+this.getName()+":toggle",a)}}});"use strict";l.when("A","prv:a-cardui-type-utility").register("prv:a-cardui-peek-toggle",function(c,e){function h(a){var b=a._$header,d=a._$footer,e=a._$teaser,h=a._$content;a=a.metadata;a.interactedOnce&&c.delay(function(){var a=f(document).scrollTop();b._$header.focus();f("html,body").scrollTop(a)},50);b._$button.attr("aria-expanded",a.cardExpanded);b._$header.attr("aria-describedby",a.cardExpanded?
a.describedByIds.expanded:a.describedByIds.collapsed);d._$button.attr("aria-expanded",a.cardExpanded);d._$element.attr("aria-describedby",a.cardExpanded?a.describedByIds.expanded:a.describedByIds.collapsed);e._$element.attr("aria-hidden",a.cardExpanded);h._$element.attr("aria-hidden",!a.cardExpanded)}function k(a){var f=e.getEventName(a);c.on(f,function(d){if(!a.metadata.interactedOnce){a.metadata.interactedOnce=!0;var e=a._$content;a._$teaser._$element.removeClass("a-cardui-uninitialized");e._$element.removeClass("a-cardui-uninitialized");
a._$reactiveContainer&&b(a)}e=!a.isExpanded();var f=a._$teaser,g=a._$content;a._$element.attr("data-a-expanded",e);(a.metadata.cardExpanded=e)?(f._$element.addClass("a-cardui-absolute-position"),g._$element.removeClass("a-cardui-absolute-position")):(g._$element.addClass("a-cardui-absolute-position"),f._$element.removeClass("a-cardui-absolute-position"));a._$footer.toggleExpansion(a.metadata);a._$reactiveContainer&&b(a);h(a);d={carduiInstance:a,triggerElement:d};c.trigger("a:card:toggled",d);a.getId()&&
c.trigger("a:card:"+a.getId()+":toggled",d)})}function b(a){var b=a._$teaser,c=a._$content,e=a._$reactiveContainer;a.metadata.cardExpanded?e.setHeight(c.getHeight()):e.setHeight(b.getHeight())}var f=c.$;return{init:function(a,f){this._super(a,f);this._$header=e.getExpandControlTitle(this);this._$content=e.getContent(this);this._$footer=e.getExpandControlFooter(this);this._$teaser=e.getTeaser(this);this._$reactiveContainer=e.getReactiveContainer(this);this._$header.addTrigger(this.metadata.cardName);
this._$footer.addTrigger(this.metadata.cardName);this._$footer.toggleExpansion(this.metadata);h(this);k(this);var d=this;if(d._$reactiveContainer)c.on("orientationchange",function(){d.metadata.interactedOnce&&(d._$reactiveContainer.resetInitialization(),b(d))})},isExpanded:function(){return"true"===this._$element.attr("data-a-expanded")},toggle:function(a){c.trigger("a:card:"+this.getName()+":toggle",a)}}})});
/* ******** */
(function(c){var b=window.AmazonUIPageJS||window.P,d=b._namespace||b.attributeErrors,a=d?d("AmazonUICompatJS","AmazonUI"):b;a.guardFatal?a.guardFatal(c)(a,window):a.execute(function(){c(a,window)})})(function(c,b,d){});
/* ******** */
(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="ec8d97e8e7007631ef0aafdc3782cb94a6b479d9"});
/* ******** */