(function(w){var x=window.AmazonUIPageJS||window.P,t=x._namespace||x.attributeErrors,u=t?t("AmazonLightsaberPageAssets",""):x;u.guardFatal?u.guardFatal(w)(u,window):u.execute(function(){w(u,window)})})(function(w,x,t){(function(){var u;(function(e){e.isSupportedAndroidMshopClient=function(a){return a.capabilities.isAmazonApp&&a.capabilities.android};e.isSupportedMobileWebBrowserClient=function(a){if(a=!!a.capabilities&&a.capabilities.android&&a.capabilities.mobile&&!a.capabilities.isAmazonApp)a=String.fromCharCode(92), a=b(/Chrome/i)&&!b(/Edg/i)&&!b(/OPR/i)&&!b(new RegExp(a+"bwv"+a+"b"));return a};var b=function(a){try{return a.test(navigator.userAgent)}catch(f){return!1}}})(u||(u={}));var E;(function(e){e.deep=function(b){return JSON.parse(JSON.stringify(b))}})(E||(E={}));var y;(function(e){e.log=function(b){for(var a=1;ad[0]&&a[1]d[0]&&a[1]d[0]&&a[1]c.length||this.sendToWorker(c)};b.prototype._getSource=function(){return{url:this.global.location.href, pty:q.getPageType(this.global),spty:q.getSubPageType(this.global),rid:q.getRequestId(this.global)}};b._IDLE_TIMEOUT=1E3;b._RENDERING_HINTS_NATURE="speculated_navigation_content";return b}(A),U=this&&this.__extends||function(){var e=function(b,a){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return e(b,a)};return function(b,a){function f(){this.constructor=b}e(b,a);b.prototype=null===a?Object.create(a): (f.prototype=a.prototype,new f)}}(),F=this&&this.__assign||function(){F=Object.assign||function(e){for(var b,a=1,f=arguments.length;ad[0]&&a[1]d[0]&&a[1]d[0]&&a[1]this._buffer.length)this._pendingBufferLength=0;else{if(this._pendingSend){if(this._buffer.length<=this._pendingBufferLength)return;p.clearQueuedTask(this._pendingSend)}this._pendingSend=p.queueTask(function(){a._send(a._buffer.slice());a._pendingBufferLength=a._buffer.length=0;a._pendingSend=t},b._SEND_DEBOUNCE_MS);this._pendingBufferLength= this._buffer.length}};b.prototype._send=function(a){if(0!==a.length){var e=[{nature:b._RENDERING_HINTS_NATURE,data:{targets:a},source:this._getSource()}];this._logCount("Targets",a.length);this.sendToWorker(e)}};b.prototype._logCount=function(a,b){e.prototype.logCount.call(this,"NTHC:"+a,b)};b.prototype._getSource=function(){return{url:this.global.location.href,pty:q.getPageType(this.global),spty:q.getSubPageType(this.global),rid:q.getRequestId(this.global)}};b._IDLE_TIMEOUT=1E3;b._RENDERING_HINTS_NATURE= "navigation_targets";b._ANCHOR_SELECTOR="a[href]";b._SEND_DEBOUNCE_MS=100;return b}(A);A=function(){function e(b,a,e,c){var f=this;this.global=b;this.csmLogger=a;this.P=e;this.A=c;"complete"===b.document.readyState?this.survey():b.addEventListener("load",function(){f.survey()})}e.prototype.getResourceTimingRecords=function(b){var a=this.global.performance.getEntriesByType("resource");return"function"===typeof b?a.filter(b):a};e.prototype.getServerTimingRecords=function(){var b=this.global.performance.getEntriesByType("navigation")[0]; return b&&b.serverTiming?b.serverTiming.filter(function(a){return a.name===e._SERVER_TIMING_NAME}).map(function(a){if(a.description)try{return JSON.parse(decodeURIComponent(a.description))}catch(f){}}).filter(function(a){return!!a}):[]};e.prototype.getEpochForPerformanceTimeline=function(b){return Math.round(this.global.performance.timeOrigin+b)};e.prototype.logTag=function(b){this.csmLogger.tag(this._getMetricName(b))};e.prototype.logCount=function(b,a){this.csmLogger.count(this._getMetricName(b), a)};e.prototype.logWidgetLatency=function(b,a,e){a=this._getMetricName(a);this.csmLogger.widgetLatency(b,a,e)};e.prototype.logError=function(b,a){this.csmLogger.logError(b,a)};e.prototype._getMetricName=function(b){return"RenderingHints:Survey:"+b};e._SERVER_TIMING_NAME="lightsaber";return e}();var v;(function(e){e.Hostname="hostname";e.Prefix="prefix";e.PhysicalId="physicalId";e.Suffix="suffix"})(v||(v={}));var ha=this&&this.__extends||function(){var e=function(b,a){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return e(b,a)};return function(b,a){function f(){this.constructor=b}e(b,a);b.prototype=null===a?Object.create(a):(f.prototype=a.prototype,new f)}}(),H=this&&this.__awaiter||function(e,b,a,f){function c(b){return b instanceof a?b:new a(function(a){a(b)})}return new (a||(a=Promise))(function(a,g){function d(a){try{l(f.next(a))}catch(m){g(m)}}function h(a){try{l(f["throw"](a))}catch(m){g(m)}}function l(b){b.done? a(b.value):c(b.value).then(d,h)}l((f=f.apply(e,b||[])).next())})},I=this&&this.__generator||function(e,b){function a(a){return function(b){return f([a,b])}}function f(a){if(h)throw new TypeError("Generator is already executing.");for(;c;)try{if(h=1,g&&(d=a[0]&2?g["return"]:a[0]?g["throw"]||((d=g["return"])&&d.call(g),0):g.next)&&!(d=d.call(g,a[1])).done)return d;if(g=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;g=a[1];a= [0];continue;case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0d[0]&&a[1]