/* Rapid+JS v8.0.0 Released on 2024-01-12T18:40Z | (c) Yottaa, Inc. | https://www.yottaa.com/rapidjs-license */ var $yojscomp=$yojscomp||{};$yojscomp.scope={};$yojscomp.arrayIteratorImpl=function(d){var l=0;return function(){return l=F}},'es6','es3'); var Yo=function(d,l){return l(d)}('undefined'!==typeof window?window:this,function(d,l){function w(a){return h.rum.key+'-'+a}function A(){for(var a=h.rum.key?h.rum.key:e.getCookie('yo-rum-key'),b=0,c=0,g=0,r=0;rG.visitorTimestamp+h.sessionTimeout;b.visitor={visitorTimestamp:(new Date).getTime(),numVisitorPageViews:G.numVisitorPageViews+1,numSessionPageViews:D?1:G.numSessionPageViews+1,visitorId:G.visitorId?G.visitorId:e.uuid(),numSessions:D?G.numSessions+1:G.numSessions,sessionId:D?e.uuid():G.sessionId,bandwidth:''}}else b.visitor={visitorTimestamp:(new Date).getTime(),numVisitorPageViews:1,numSessionPageViews:1, numSessions:1,visitorId:e.uuid(),sessionId:e.uuid(),bandwidth:''};localStorage.setItem(w('rapid-js-visitor-3'),JSON.stringify(b.visitor));var H=localStorage.getItem(w('rapid-js-qoe-5'));null!=H&&(b.qoe=JSON.parse(H))}}catch(Ga){e.log('localStorage was not available',Ga)}1==b.isNavigationSupported&&!0!==h.rum.spa&&(b.navigationTiming=d.performance.timing.toJSON(),b.experienceMetrics=N,sa&&(b.webVitalsInfo=J));b.isPaintTimingSupported=!1;b.paintTiming={};b.userTiming={};b.measureTiming={};if(d.performance&& d.performance.getEntriesByType){C=d.performance.getEntriesByType('paint');if(null!=C&&0x&&(B=t.currentSrc||t.src,x=D.width*D.height);else break}t=B}for(A=0;Ah.rum.advanced.blockingTime?H.push(F(4,y,v,x)):0==y&&v.duration>h.rum.advanced.performanceTime&& H.push(F(0,y,v,x)),v.decodedBodySize>h.rum.advanced.violationSize&&H.push(F(1,y,v,x)),1==v.name.toLowerCase().startsWith('https:')&&1==v.name.toLowerCase().startsWith('http:')&&H.push(F(3,y,v,x)),t==v.name&&(p.setExperienceMetric('hero_image_display',v.startTime+v.duration),p.setExperienceMetric('hero_image',t)),v.toJSON&&(v=v.toJSON(),v.implementationType='dom',n.def(x)&&(v.stack=x),x=E(v.name),null!=x&&(v.delayedType=x.orgDelayType,v.delayedValue=x.delayValue),v.onLoadStartTime=B-l,c.push(v))); 1a.collectionTimestamp+h.sessionTimeout?r:a.sessionTimeSaved+r,journeyTime:a.journeyTime+r});a.entries= g;a.timeSaved=r;a.score=z;a.pageMeasured=b?b.fullPageURL:d.location.href;a.pageMeasuredCategory=b?b.pageCategory:'';a.violations=H;!0===h.rum.requests&&(a.resourceTiming=c);a.jsErrors=da;a.domElementCount=document.getElementsByTagName('*').length;a.maxScrollDepth=u.maxScrollDepth;a.pageMeasuredPrefetched=b.pagePrefetched;a.pageMeasuredUuid=Z;a.lastInteraction=aa;a.serviceWorkers=u.serviceWorkers;a.collectionTimestamp=(new Date).getTime();a.commonDimensions={};for(var I in L)a.commonDimensions[I]= L[I];a.experienceMetrics=N;sa&&(a.webVitalsInfo=J);a.commonDimensions.optState||(a.commonDimensions.optState=R);try{!0!==h.sendRumOnUnload?localStorage.setItem(w('rapid-js-qoe-5'),JSON.stringify(a)):b.qoe=a}catch(ra){n.log('LocalStorage failed to save',ra)}}}function Ha(a){if(d.performance&&d.performance.getEntriesByType)for(var b=d.performance.getEntriesByType('resource'),c=0;cc.length)m.pubsub.publish({topic:'sequence/beforeloading/'+ b,message:a}),navigator.sendBeacon(b,c),m.pubsub.publish({topic:'sequence/afterloaded/'+b,message:a});else if(c.lengthg;g++)if(!b[g]){var d=0|16*c();b[g]=a[19==g?d&3|8:d&15]}return b.join('')}},k={},I={},za=1,ma={},X=[],Oa=function(a,b){la(function(){a.callback.call(a.context,b.message,b.topic)},0)}; k.reset=function(){I={};za=1;ma={};X=[]};k.subscribe=function(a){a.id=++za;e.undef(a.priority)&&(a.priority=0);e.undef(a.priority)&&(a.priority=0);'string'===typeof a.topic&&-1!=a.topic.indexOf('*')&&(a.topic=new RegExp(a.topic.replace(/\*/g,'.*')));if('string'===typeof a.topic){a.topic=a.topic.toLowerCase();1==e.undef(I[a.topic])&&(I[a.topic]=[]);I[a.topic].push(a);I[a.topic].sort(function(a,b){return b.priority-a.priority});var b=ma[a.topic];e.def(b)&&a.callback.call(b.context,b.message,b.topic)}else X.push(a); e.log('_pubsub.subscribe',a.topic,a.id);return a.id};k.publish=function(a){var b=a.topic;a.topic=a.topic.toLowerCase();for(var c=I[a.topic],g=c=1==e.undef(c)?[]:c.slice(0),d=0;du.maxScrollDepth&&(u.maxScrollDepth=a)});e.addEvent(d, 'error',function(a){var b=a.message,c=a.lineno,d=a.filename;3==arguments.length&&(b=arguments[0],d=arguments[1],c=arguments[2]);e.log('errorCapture',b,c,d);var r='';try{r=a&&a.error&&a.error.stack?a.error.stack:Error().stack}catch(z){}k.publish({topic:'core/js/error',persistent:!0,message:{message:b,implementationType:'dom',resourceName:d,lineNumber:c,stack:r,collectionTimestamp:(new Date).getTime()}});u.errors={has:!0}});var y={man:function(){q('__ __ _ _ \n\\ \\ / / | | | | \n \\ V /___ | |_| |_ __ _ __ _ \n \\ // _ \\| __| __/ _` |/ _` |\n | | (_) | |_| || (_| | (_| | \n \\_/\\___/ \\__|\\__\\__,_|\\__,_|'); q('\n\nUse the console to see information about Yottaa running on your application\n');D([{command:'Yo.utils.console.man();',help:'You just ran this command, which displays this help.'},{command:'Yo.utils.console.rum();',help:'See RUM statistics captured by Yottaa for the current web page.'},{command:'Yo.utils.console.resources();',help:'See information about resources that were loaded. Add a URL to see details about that specific URL.'},{command:'Yo.utils.console.coreWebVitals();',help:'See information about Core Web Vitals as they happen on your website.'}, {command:'Yo.utils.console.sequencing();',help:'See the configuration for sequencing and the resources it is applied to.'},{command:'Yo.utils.console.storeLocalConfiguration();',help:'Store your local configuration for easier debugging.'},{command:'Yo.utils.console.updateABTest();',help:'Update an A/B test variation.'}])},coreWebVitals:function(){q('\n\nCore web vital information for your page is detailed below.\n');1==e.def(p.getCoreWebVitalDetails)&&(q('\n\nRaw core web vital information below\n\n'), q(p.getCoreWebVitalDetails()));var a=function(a,c,d){var b=new PerformanceObserver(function(g){q(c);g=g.getEntries();if('event'!=a)D(d(g));else{var r={duration:-1};(g||[]).forEach(function(a){e.def(a.interactionId)&&r.duratione[b]}).forEach(function(c){0e[c]&&(a.push({'Resource Name':c,'Resource Type':'EVENT','Load Time':'---','Started Loading':e[c], 'Yottaa Sequencing Type':'---'}),e[c]=Number.MAX_VALUE)});a.push(b);return a},[]))},storeLocalConfiguration:function(a){e.setCookie('yo-aftershock-config',JSON.stringify(a||{}))},updateABTest:function(a,b){var c=p.get().testVariations;a=a||'A/B Testing';if(1==e.def(c)){var d=c.find(function(b){return b.testName==a});null==d?q('No test with the name of',a,'was found'):(1==e.def(b)?d.variationName=b:d.variationName='Optimized'==d.variationName?'Unoptimized':'Optimized',localStorage.setItem('rapid.testVariations', JSON.stringify(c)),q(a,'test variation name was set to',d.variationName,'Please refresh.'))}else q('No A/B Tests were enabled')},_sequencingType:function(a,b,c){b+=1;var d=P.config.delayed.filter(function(b){return b.src&&0a&&(document.cookie='yo-disable-instanton=true;Max-Age=2',d.location.reload(!0));a=document.documentElement.getElementsByTagName('head')[0].children[a];for(var g=0;ga&&(document.cookie= 'yo-disable-instanton=true;Max-Age=2',d.location.reload(!0));document.documentElement.getElementsByTagName('head')[0].children[a].textContent=b};n.isIE=function(a){var b=navigator.userAgent;return b&&a&&11==parseInt(a)&&-1!=b.indexOf('rv:11')?!0:b&&a&&-1!=b.indexOf('MSIE '+a)?!0:b&&(-1!=b.indexOf('MSIE')||-1!=b.indexOf('rv:11'))};n.isIos=function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!d.MSStream};n.isAndroid=function(){return/Android/.test(navigator.userAgent)&&!d.MSStream};n.browser= function(){var a=navigator.userAgent,b=a.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];if(/trident/i.test(b[1])){var c=/\brv[ :]+(\d+)/g.exec(a)||[];return{name:'IE',version:c[1]||''}}if('Chrome'===b[1]&&(c=a.match(/\bOPR|Edge\/(\d+)/),null!=c))return{name:'Opera',version:c[1]};b=b[2]?[b[1],b[2]]:[navigator.appName,navigator.appVersion,'-?'];null!=(c=a.match(/version\/(\d+)/i))&&b.splice(1,1,c[1]);return{name:b[0].toLowerCase(),version:parseInt(b[1])}};n.inArray=function(a, b,c){if(b){if(Array.prototype.indexOf)return Array.prototype.indexOf.call(b,a,c);var d=b.length;for(c=c?0>c?Math.max(0,d+c):c:0;c'}return a.toString?a.toString():'[Object]'}catch(z){}};var Aa=0,Ba=!1;e.hasWebVitals=function(){return'undefined'!==typeof d.LayoutShift};l=function(){(new PerformanceObserver(function(a){a=a.getEntries();for(var b=0;b=n[0]&&l<=n[1])){if(d.push(k),2n[1]-e){if(m>c)break;n=[l,m+e];Ca(d,n)}if(f=b[0]&&e<=b[1])&&(a.splice(c,1),c--)}};k.publish({topic:'sequencing/user/first',callback:function(){Ba=!0}});var t={defaultCurrency:'USD',purchaseMapFunctions:[],trackBusinessValue:function(a,b){1==e.def(b)&&(t.defaultCurrency=b);1==e.def(a)&&(t.purchaseMapFunctions=a.concat(t.purchaseMapFunctions));t._analyzePage()},_shopify:function(){if(Shopify&&Shopify.Checkout)return{currencyType:Shopify.Checkout.currency, purchaseAmount:Shopify.Checkout.totalPrice,purchaseType:'Standard',orderId:Shopify.Checkout.token,source:'shopify'}},_gtm:function(){if(d.dataLayer)for(var a=0;aN[a]&&(N[a]=b)};p.getExperienceMetric=function(a){return N[a]};p.getCoreWebVitalDetails=function(){return J};k.subscribe({topic:'core/load', callback:function(){1==n.def(h.rum)&&(h.rum.onLoadTime=p.now());p.captureRum()}});k.subscribe({topic:'sequence/captured',callback:function(a,b){b='';a.open_args?b=a.open_args[1]:a.newNode&&a.newNode.src?b=a.newNode.src:a.delayed&&a.delayed.newNode&&a.delayed.newNode.src?b=a.delayed.newNode.src:a.src&&(b=a.src);ba[b]=p.captureStack()}});k.subscribe({topic:'core/js/error',callback:function(a,b){da.push(a)}});k.subscribe({topic:'rum/spa/transition/start',callback:function(a,b){if(0!=na){a=p.now();b= u.rum;h.rum.spa=h.rum.spaTransition=!0;h.delayed=[];if(e.undef(b)||e.undef(b.navigationTiming))e.undef(b)&&(b={}),d.performance&&d.performance.timing&&(b.navigationTiming=d.performance.timing.toJSON());for(var c in b.navigationTiming)b.navigationTiming[c]=a;Z=e.uuid();H=[];da=[];K(Ea);d.performance&&(p.clearResourceTimings.call(d.performance),d.performance.clearMarks&&d.performance.clearMarks(),d.performance.clearMeasures&&d.performance.clearMeasures())}}});k.subscribe({topic:'rum/spa/rendered',callback:function(a, b){b=u.rum;var c=p.now(),g=b?b.navigationTiming:null;A();b=u.rum;1==n.undef(b.navigationTiming)&&(b.navigationTiming=g?g:d.performance&&d.performance.timing?d.performance.timing.toJSON():{});a.pageType&&a.viewType&&(b.pageCategory=a.pageType+'-'+a.viewType);1==Yo.utils.def(a.trigger)&&(b.spaTrigger=a.trigger);if(!0===h.rum.spaTransition)b.navigationTiming.loadEventEnd=c;else if(h.rum.onLoadTime)b.navigationTiming.loadEventEnd=b.navigationTiming.navigationStart+(b.navigationTiming.loadEventEnd-b.navigationTiming.navigationStart)+ (c-h.rum.onLoadTime);else return h.rum.spa=!1,na++,!1;h.rum.spaTransition=!1;1==e.hasResourceTiming()&&(Ea=d.performance.getEntries().length);na++;a=k.publish({topic:'rum/beforeSend',async:!1,message:u.rum});if(0==a.length||!1!==a[0])e.sendData(u.rum,h.rum.beaconUrl),k.publish({topic:'rum/sendBeacon',message:u.rum});p.setExperienceMetric('cumulative_layout_shift',0);J={lcp:[],cls:[],fid:[],inp:[]};1==n.def(m.sequence)&&(m.configure({scan:['img','source','script']}),m.sequence.displayNow())}});k.subscribe({topic:'rum/send', callback:function(a,b){A();!0===h.sendRumOnUnload&&K();a=k.publish({topic:'rum/beforeSend',async:!1,message:u.rum});if(0==a.length||!1!==a[0])e.sendData(u.rum,h.rum.beaconUrl),k.publish({topic:'rum/sendBeacon',message:u.rum})}});d.performance&&d.performance.clearResourceTimings&&(p.clearResourceTimings=d.performance.clearResourceTimings,d.performance.clearResourceTimings=function(){});(function(){var a=function(a){aa={type:a.type,target:e.elementToString(a.target)}};e.addEvent(document,'keydown', a);e.addEvent(document,'click',a);e.addEvent(document,'touchstart',a)})();l();var Q=document;_loadCookieConfig=function(){var a=e.getCookie('yo-aftershock-config');if(null!=a&&0'=== a.outerHTML}},{id:43,name:'Anonymous div',requireDetection:!0,test:function(a){return a.parentElement===document.body.parentElement&&'DIV'===a.tagName&&1===a.attributes.length&&500<(a.getAttribute('style')||'').length&&1===a.children.length&&'STYLE'===a.children[0].tagName}},{id:44,name:'Found Codes Popup',requireDetection:!1,test:function(a){return'HTML'===a.parentElement.tagName&&'DIV'===a.tagName&&0===a.childElementCount&&2===a.attributes.length&&'all: initial !important;'===a.getAttribute('style')&& 'true'===a.attributes[1].value&&/^data-[{]?[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}[}]?$/.test(a.attributes[1].name)}}],browsers:{safari_mac:!0,edge:!0,firefox:!0,chrome:!0,safari_ios:!0}},{id:16,name:'CNET Shopping',reportOnly:!0,assetUrls:['chrome-extension://lghjfnfolmcikomdjmoiemllfnlmmoko/images/cnet-logo-128.png'],components:[{id:27,name:'Coupons',requireDetection:!1,test:function(a){return'pbpopup-container'===a.id}}],browsers:{safari_mac:!0,edge:!0,firefox:!0,chrome:!0}},{id:18, name:'BeFrugal',reportOnly:!0,assetUrls:['chrome-extension://logldmlncddmdfcjaaljjjkajcnacigc/icon128.png'],components:[{id:29,name:'Cash Back',requireDetection:!1,test:function(a){return'BFRLsliderIframe'===a.id}},{id:30,name:'Coupon',requireDetection:!1,test:function(a){return'bfrl_divCouponsFound'===a.id}}],browsers:{safari_mac:!0,edge:!0,firefox:!0,chrome:!0}},{id:14,name:'Avast SafePrice',reportOnly:!0,assetUrls:['chrome-extension://eofcbnmajmjmplflapaojjnihcjkigck/common/ui/icons/logo-safeprice-128.png'], components:[{id:23,name:'Offers-Coupon Popup',requireDetection:!1,test:function(a){return'a-panel'===a.id&&'DIV'===a.tagName}},{id:24,name:'Save Money using Coupons',requireDetection:!1,test:function(a){return'a-sp-root-template'===a.id&&'SPAN'===a.tagName&&'HTML'===a.parentElement.tagName}}],browsers:{edge:!0,firefox:!0,chrome:!0}},{id:27,name:'Amazon Assistant',reportOnly:!0,assetUrls:['chrome-extension://pbjikboenpfhbbejgkoklgkhjpfogcam/static/js/cookieProxy.js','chrome-extension://pbjikboenpfhbbejgkoklgkhjpfogcam/static/js/localProxy.js'], components:[{id:45,name:'General Container',requireDetection:!1,test:function(a){var b=a.className;if(b='BODY'===a.parentElement.tagName&&('DIV'===a.tagName||'SPAN'===a.tagName)&&1===a.attributes.length&&'class'===a.attributes[0].name&&3b.length&&/[A-Z]/.test(b)&&/([a-z0-9])/.test(b)&&!1===/[\s-_]/.test(b))try{a.attachShadow({mode:'open'}),b=!1}catch(c){b=!0}return b}}],browsers:{chrome:!0}},{id:8,name:'AVG SafePrice',reportOnly:!0,assetUrls:['chrome-extension://mbckjcfnjmoiinpgddefodcighgikkgn/common/ui/icons/logo-safeprice-128.png'], components:[{id:11,name:'Oh Look! popup',requireDetection:!1,test:function(a){return'a-sp-root-template'===a.id&&'SPAN'===a.tagName&&'HTML'===a.parentElement.tagName}}],browsers:{edge:!0,firefox:!0,chrome:!0}}]})}});var x={enableAssetDetection:function(){if(x.enabled)return!1;if(!x.shouldDetectAssets)return m.utils.log('Journey Hijacking asset detection disabled'),!1;if(!ea())return m.utils.log('Journey Hijacking asset detection not supported'),!1;x.enabled=!0;m.utils.log('Journey Hijacking asset detection enabled'); f.config.detectOn&&(f.detectOnId=k.subscribe({topic:f.config.detectOn,callback:x.startDetection}));return!0},startDetection:function(){if(!x.enabled)return!1;m.utils.log('Journey Hijacking starting asset detection');k.publish({topic:'hijacking/start',message:f.config});O=Ja();S=0;for(var a=f.supportedExtensions,b=0;b