(function(f){var a=window.AmazonUIPageJS||window.P,n=a._namespace||a.attributeErrors,h=n?n("DetailPagePQVAssets",""):a;h.guardFatal?h.guardFatal(f)(h,window):h.execute(function(){f(h,window)})})(function(f,a,n){function h(c,d){if(!(c instanceof d))throw new TypeError("Cannot call a class as a function");}function A(){B||(B=!0,f.register("pqv-ready"))}var C=function(){function c(d,c){for(var b=0;b<c.length;b++){var a=c[b];a.enumerable=a.enumerable||!1;a.configurable=!0;"value"in a&&(a.writable=!0);
Object.defineProperty(d,a.key,a)}}return function(d,a,b){a&&c(d.prototype,a);b&&c(d,b);return d}}(),B=!1;f.when("dp-latency-marker").execute(A);f.when("PQVOverlayMarker").execute(A);f.when("pqv-ready").register("PQVConstants",function(){return{AUI_COMPONENT_TYPE_DESKTOP:"popover",AUI_COMPONENT_TYPE_MOBILE:"sheet",AUI_COMPONENT_MODULE_DESKTOP:"a-modal",AUI_COMPONENT_MODULE_MOBILE:"a-sheet",FEEDBACK_METRIC_NEGATIVE:"PQV:Feedback:Negative",FEEDBACK_METRIC_POSITIVE:"PQV:Feedback:Positive",INGRESS_CLICK_METRIC:"PQV:Ingress:Click",
INGRESS_ERROR_METRIC:"PQV:Ingress:Error",DEVICE_TYPE_DESKTOP:"Desktop",DEVICE_TYPE_MOBILE:"Mobile",PQV_DECLARATIVE_ACTION_ID:"pqv-trigger",PQV_INGRESS_CONTAINER_ID:"pqv-hidden-ingress",PQV_POPOVER_TRIGGER_ID:"pqv-overlay",PQV_TEMPLATE_ID:"pqv-template",PQV_TIMEOUT:2E3,PQV_TRIGGER_CONTAINER:"#dp",QUICK_LINKS:"pqv-buybox pqv-unqualified-buybox pqv-buying-options pqv-reviews pqv-report-issue pqv-twister".split(" "),ELEMENTS_TO_HIDE:"pqv-price-omnibus pqv-report-issue pqv-ratings pqv-bought-in-last-month pqv-twister pqv-newer-version pqv-documents pqv-price-list-price".split(" "),
SPACE_KEY_CODE:32,AE_CUSTOM_EVENT_SCHEMA_ID:"A11y.AccessibilityEngagementMetrics.2",AE_PRODUCER_ID:"ae-metrics",PQV_A11Y_ENGAGEMENT_SIGNAL:"PQV"}});f.when("A","jQuery","3p-promise","PQVConstants").register("PQV-API",function(c,d,e,b){var p=void 0,r=void 0,k=void 0,g=void 0,v=void 0;d("#"+b.PQV_INGRESS_CONTAINER_ID).removeClass("aok-hidden");return{initialize:function(l){var e=l===b.DEVICE_TYPE_MOBILE;r=e?b.AUI_COMPONENT_TYPE_MOBILE:b.AUI_COMPONENT_TYPE_DESKTOP;e=e?b.AUI_COMPONENT_MODULE_MOBILE:b.AUI_COMPONENT_MODULE_DESKTOP;
l===b.DEVICE_TYPE_MOBILE&&f.when("a-sheet").execute(function(a){c.on("a:sheet:afterShow:pqvOverlay",function(){var d=a.get("pqvOverlay");if(d){var b=c.$("#pqvBottomSheet").height();0<b&&d.changeHeight({height:b})}})});f.when("PQVOverlayMarker","pqv_hideElement","pqv_metrics","ae_metrics_publisher",e).execute(function(e,p,m,h,E){var D=e.loadTime,w=void 0,x=void 0,t=[];a.aPageStart&&m.recordMetric("PQV:Modal:"+l+":ReadyTime",e.loadTime-a.aPageStart);p.initialize();e=document.getElementById(b.PQV_TEMPLATE_ID);
if(!e)m.incrementMetric(b.INGRESS_ERROR_METRIC);else if(e.content&&e.content.cloneNode){p=e.content.cloneNode(!0);var y=document.querySelector(b.PQV_TRIGGER_CONTAINER);if(!y)throw Error("PQV trigger container was not found on the page");y.insertBefore(p,y.firstChild);e.remove&&e.remove();var z=d("#"+b.PQV_POPOVER_TRIGGER_ID);if(1>z.length)throw Error("PQV trigger was not found on the page");v=E.get(z);f.register("PQVPopoverTrigger",function(){return z});c.on("a:"+r+":afterShow:pqvOverlay",function(){w=
+new Date;m.incrementMetric("PQV:Modal:"+l+":View");m.recordMetric("PQV:Modal:"+l+":LaunchTime",w-D);d("body \x3e div:visible:not([aria-hidden]):not([aria-modal]):not([aria-live]):not(.a-modal-scroller):not(.a-sheet-web-container)").each(function(){0<this.innerText.length&&(this.setAttribute("aria-hidden","true"),t.push(this))});for(var a=d(".pqv-time"),c=0;c<a.length;c++){var b=d(a.get(c)),e=parseInt(b.attr("datetime"));b.text((new Date(e)).toLocaleString())}if((a=document.querySelector('[data-cel-widget^\x3d"pqv-dpx-widget-"] h1'))&&
"pqv-title"!==a.id)throw Error("PQV displayed an error message");});c.on("a:"+r+":afterHide:pqvOverlay",function(){x=+new Date;m.incrementMetric("PQV:Modal:"+l+":Close");m.recordMetric("PQV:Modal:"+l+":DwellTime",x-w);D=x;g?function(){var a=d(g),b=a.attr("tabindex"),c=0<=+b;c||a.attr("tabindex","-1");a[0].focus({focusVisible:c,preventscroll:!0});a[0].scrollIntoView({behavior:"smooth"});c||function(){a.blur(function F(){b!==a.attr("tabindex")&&("undefined"===typeof b?a.removeAttr("tabindex"):a.attr("tabindex",
b));a.unbind("blur",F)})}()}():k&&k.focus();if(v.attrs){var b=!(g||k);v.attrs("restoreFocusOnHide",b);b||function(){var b=a.scrollTo;a.scrollTo=function(){};c.delay(function(){a.scrollTo=b},750)}()}k=g=n;for(b=0;b<t.length;b++)t[b].removeAttribute("aria-hidden");t.splice(0,t.length)});var q=d("#"+b.PQV_DECLARATIVE_ACTION_ID);q.click(function(){m.incrementMetric(b.INGRESS_CLICK_METRIC);h.publishAECustomEvent(l)});q.keydown(function(a){a.keyCode===b.SPACE_KEY_CODE&&(m.incrementMetric(b.INGRESS_CLICK_METRIC),
h.publishAECustomEvent(l))});var u=c.$("#pqv-ingress");u.attr("tabindex",0);q.attr("tabindex",-1);u.focus(function(){u.removeAttr("tabindex");q.removeAttr("tabindex");q[0].focus()});q.blur(function(){u.attr("tabindex",0);q.attr("tabindex",-1)});0<=navigator.userAgent.toUpperCase().indexOf("MAC")&&u.addClass("has-opt-key")}})},checkVisibility:function(a){return"function"===typeof a.checkVisibility?a.checkVisibility({visibilityProperty:!0,checkVisibilityCSS:!0}):!!(a.offsetParent||a.offsetWidth||a.offsetHeight||
a.getClientRects().length)&&"hidden"!==getComputedStyle(a).visibility},get:function(){p||(p=new e(function(a,d){var e=!1,g=c.delay(function(){e=!0;d()},b.PQV_TIMEOUT);f.when("PQVPopoverTrigger").execute(function(b){f.when("a-modal").execute(function(c){e||(clearTimeout(g),a(c.get(b)))})})}));return p},setReturnFocusElement:function(a){k=a},setReturnHash:function(a){g=a}}});f.when("pqv-ready").execute(function(){function c(){var c=a.innerWidth*a.innerHeight;return!!document.elementsFromPoint(Math.floor(a.innerWidth/
2),Math.floor(a.innerHeight/2)).find(function(a){if(["fixed","absolute"].includes(getComputedStyle(a).position))return a=a.clientWidth*a.clientHeight,0<c&&.5<a/c})}document.addEventListener("keydown",function(a){!a.shiftKey||!a.altKey||"KeyD"!==a.code||a.repeat||a.ctrlKey||a.metaKey||(a.preventDefault(),f.when("PQV-API","pqv_metrics","PQVConstants","ae_metrics_publisher").execute(function(a,b,d,r){b.incrementMetric("PQV:Shortcut:Pressed");r.publishAECustomEvent(d.DEVICE_TYPE_DESKTOP);a.get().then(function(d){if(d.isActive())d.hide(),
b.recordMetric("PQV:Shortcut:PressedToClose",1);else{var g;if(!(g=document.activeElement.matches('input[type\x3d"text"], input[type\x3d"search"], input[type\x3d"email"], input[type\x3d"password"], textarea, [contenteditable\x3d"true"], select')||c()))a:{g=document.querySelectorAll("#hmenu-container, .a-popover, .a-dropdown, .a-popover-modal");for(var e=0;e<g.length;e++)if(a.checkVisibility(g[e])){g=!0;break a}g=!1}g?b.recordMetric("PQV:Shortcut:Blocked",1):(document.activeElement&&a.setReturnFocusElement(document.activeElement),
d.show())}}).catch(function(){f.now("PQVOverlayMarker").execute(function(a){document.getElementById(d.PQV_POPOVER_TRIGGER_ID)?a?b.recordMetric("PQV:Shortcut:Failed",1):b.recordMetric("PQV:Shortcut:Failed:PQVOverlayNotFound",1):b.recordMetric("PQV:Shortcut:Failed:PQVIngressNotFound",1)})})}))})});f.when("pqv-ready").register("pqv_metrics",function(){return{recordMetric:function(c,d){a.ue&&"function"===typeof a.ue.count&&a.ue.count(c,d)},incrementMetric:function(c){var d=1<arguments.length&&arguments[1]!==
n?arguments[1]:1;a.ue&&"function"===typeof a.ue.count&&a.ue.count(c,(a.ue.count(c)||0)+d)},recordLatency:function(c){a.uex&&"function"===typeof a.uex&&a.uex("ld",c,{wb:1})}}});f.when("PQV-API","PQVConstants").execute(function(a,d){a.initialize(d.DEVICE_TYPE_DESKTOP)});f.when("pqv","PQV-API","PQVConstants").execute(function(a,d,e){var b=function(){function a(b,c,d,e,f){h(this,a);this.A=b;this.overlay=c;this.pqv=d;this.pqvMetrics=e;this.Constants=f}C(a,[{key:"redirectOnClick",value:function(a){var b=
a.$target.context.getAttribute("data-target"),c=this.overlay.get("pqvOverlay");c&&(a.$event.preventDefault(),this.pqv.setReturnHash(b),c.hide())}},{key:"shouldHideElement",value:function(a,b,c){return!b||""===b.innerText||!this.pqv.checkVisibility(b)||"HideElement"===c&&"pqv-bought-in-last-month"===a.id&&a.innerText!==b.innerText}},{key:"hideElement",value:function(a,b){var c=document.getElementById(a);if(!c)return!0;var d=document.querySelector(c.dataset.target);if(d=this.shouldHideElement(c,d,b))this.pqvMetrics.incrementMetric("PQV:"+
b+":"+a+":TargetNotPresent"),c.classList.add("aok-hidden");return d}},{key:"initialize",value:function(){var a=this,b=this;this.Constants.ELEMENTS_TO_HIDE.forEach(function(b){return a.hideElement(b,"HideElement")});this.Constants.QUICK_LINKS.forEach(function(a){b.hideElement(a,"QuickLink")||b.A.declarative(a+"-action","click",function(a){b.redirectOnClick(a)})})}}]);return a}();f.when("A","pqv_metrics",("mobile"===a.overlayType?e.DEVICE_TYPE_MOBILE:e.DEVICE_TYPE_DESKTOP)===e.DEVICE_TYPE_MOBILE?e.AUI_COMPONENT_MODULE_MOBILE:
e.AUI_COMPONENT_MODULE_DESKTOP).register("pqv_hideElement",function(a,c,f){return new b(a,f,d,c,e)})});f.when("A","a-button","pqv_metrics","PQVConstants","PQVOverlayMarker").execute(function(a,d,e,b){var c=function(){function a(b,c,d,e){h(this,a);this.$=b;this.metrics=c;this.positiveButton=d;this.negativeButton=e;this.feedbackMetricRecorded=n}C(a,[{key:"setFeedback",value:function(a){if(!this.feedbackMetricRecorded){var c=a?b.FEEDBACK_METRIC_POSITIVE:b.FEEDBACK_METRIC_NEGATIVE;this.metrics.incrementMetric(c);
this.feedbackMetricRecorded=c;this.positiveButton.hide();this.negativeButton.hide();a="pqv-feedback-message-"+(a?"positive":"negative");this.$("#"+a).removeClass("aok-hidden");this.$("#pqv-feedback-reset").removeClass("aok-hidden");this.$("#pqv-feedback-buttons-section")&&this.$("#pqv-feedback-buttons-section").addClass("aok-hidden");this.$("#pqv-feedback-submit-section")&&this.$("#pqv-feedback-submit-section").removeClass("aok-hidden");this.$("#"+a+" .a-alert-content").focus()}}},{key:"resetFeedback",
value:function(){if(this.feedbackMetricRecorded){this.metrics.incrementMetric(this.feedbackMetricRecorded,-1);this.feedbackMetricRecorded=n;this.positiveButton.show();this.negativeButton.show();this.$("#pqv-feedback-reset").addClass("aok-hidden");this.$("#pqv-feedback-message-positive").addClass("aok-hidden");this.$("#pqv-feedback-message-negative").addClass("aok-hidden");var a=this.$("#pqv-feedback-buttons-section"),b=this.$("#pqv-feedback-submit-section");a&&a.removeClass("aok-hidden");b&&this.$("#pqv-feedback-submit-section").addClass("aok-hidden");
this.$("#pqv-feedback-positive-native").focus()}}}]);return a}();a.$("#pqv-feedback .a-alert-content").attr("tabindex",-1);var f=d("#pqv-feedback-positive");d=d("#pqv-feedback-negative");var k=new c(a.$,e,f,d);a.declarative("pqv-feedback-positive-action","click",function(){k.setFeedback(!0)});a.declarative("pqv-feedback-negative-action","click",function(){k.setFeedback(!1)});a.declarative("pqv-feedback-reset-action","click",function(){k.resetFeedback()})});f.when("PQVConstants").register("ae_metrics_publisher",
function(c){return{publishAECustomEvent:function(d){a.csa&&a.ue&&(a.ue.rid||a.ue.sid)&&a.csa("Events",{producerId:c.AE_PRODUCER_ID})("log",{schemaId:c.AE_CUSTOM_EVENT_SCHEMA_ID,hashedCustomerId:"",requestId:a.ue.rid||"",sessionId:a.ue.sid||"",accessibilityEngagementSignal:[c.PQV_A11Y_ENGAGEMENT_SIGNAL],platform:d})}}})});