<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">'use strict';
(function(w, d) {
    
  function importScript(src, isDynamicImportModule) {
      var script = d.createElement('script');
      script.src = src;

      if (isDynamicImportModule) {
        script.type = 'module';
      }

      var node = d.getElementsByTagName('script')[0];
      if (node &amp;&amp; node.parentNode) {
          node.parentNode.insertBefore(script, node);
      } else {
          document.body.appendChild(script);
      }
  }
    w.adthrive = w.adthrive || {};
    w.adthrive.cmd = w.adthrive.cmd || [];
    w.adthrive.host = "ads.adthrive.com";
    w.adthrive.threshold = 0;
    w.adthrive.styleUrl = "https://ads.adthrive.com/sites/540753cf3467ce8320843965/ads.min.css";
    w.adthrive.deployment = "2024-12-19-01:rpsc-101:pr5715:647cc2a:4";
    w.adthrive.branch = "647cc2a";
    w.adthrive.bucket = "flex-48";
    w.adthrive.baseUrl = "https://ads.adthrive.com/builds/core/647cc2a";
    w.adthrive.deliveryFeatures = ["amazonBetaApstag","consentManagerCMP","optimalBidders","raptiveFloors","raptiveManualCookieSync","recencyFrequency","reissuingSticky","stickyBucketsLocalStorage","switzerlandGdpr","prebidLoad","gptLoad","amazonLoad","ttdSync","optableLoad"];
    w.adthrive.deliveryAudit = [{"include":"clsInsertion","value":true,"reason":["adOptions.clsOptimizatedAds is true"]},{"include":"prebidLoad","value":true,"reason":["adOptions.delayLoading is false"]},{"include":"gptLoad","value":true,"reason":["adOptions.delayLoading is false"]},{"include":"amazonLoad","value":true,"reason":["adOptions.delayLoading is false","adOptions.amazonUAM is true"]},{"include":"dcsllSiteSpecific","value":false,"reason":["Delivery Feature Missing"]},{"include":"prebidBrowserRouting","value":false,"reason":["Delivery Feature Missing"]},{"include":"disableStickyBuckets","value":false,"reason":["Delivery Feature Missing"]},{"include":"ttdSync","value":true,"reason":["Non-GDPR Country Detected"]},{"include":"viewabilityV2","value":false,"reason":["Delivery Feature Missing"]},{"include":"manualCookieSync","value":false,"reason":["Delivery Feature Missing"]},{"include":"campaignByURLHash","value":false,"reason":["Delivery Feature Missing"]},{"include":"switzerlandGdpr","value":true,"reason":["Delivery Feature Enabled"]}];
    w.adthrive.deliveryVersion = "1.112.0";
    w.adthrive.isIOS = /iP(hone|od|ad)/i.test(navigator.userAgent) ? true : false;
    w.adthrive.targetPath = '/es5';
    w.adthrive.sticky = true;
    w.adthrive.stickyBucketsEnabled = true;
    w.adthrive.bucketKeys = ["flex-03&amp;2024-12-19-01:e247afe:10:con","hbs-q4&amp;dep-2:pr5447:hbs-q4:b07cc1f:2:exp","hbs-q4:con&amp;dep-2:pr5447:hbs-q4:b07cc1f:2:con","beta03&amp;ade-1714:pr5417:beta03:d21c222:100:exp","beta05&amp;ade-1748:pr5517:beta05:d0786a2:100:exp","beta02&amp;ada-844:pr5671:beta02:6b08d65:100:exp","beta04&amp;ada-852:pr5696:beta04:eda14c4:100:exp","beta01&amp;aco-2511:pr5805:beta01:c31df17:100:exp","flex-34&amp;2024-12-19-01:adv-370:pr5047:29fdf1d:2","flex-06&amp;2024-12-19-01:adv-522:pr5748:ab074ba:4","flex-07&amp;2024-12-19-01:adv-472:pr5747:154f5b4:4","flex-11&amp;2024-12-19-01:acd-505:pr5764:deee21c:4","flex-13&amp;2024-12-19-01:acd-780:pr5781:df96dd1:4","flex-23&amp;2024-12-19-01:ade-1812:pr5711:0077337:4","flex-25&amp;2024-12-19-01:acd-801:pr5782:6d1ca94:4","flex-30&amp;2024-12-19-01:ada-851:pr5728:5a45204:4","flex-35&amp;2024-12-19-01:ada-842:pr5668:bc3693a:4","flex-37&amp;2024-12-19-01:ade-1805:pr5765:4f47845:4","flex-38&amp;2024-12-19-01:acd-792:pr5787:a031ba9:4","flex-39&amp;2024-12-19-01:rpsc-122:pr5770:00a08f8:8","flex-42&amp;2024-12-19-01:rpsc-104:pr5677:f4d7c4b:4","flex-43&amp;2024-12-19-01:rpsc-147:pr5776:1ce9960:4","flex-44&amp;2024-12-19-01:rpsc-115:pr5753:c4e6419:4","flex-47&amp;2024-12-19-01:rpsc-99:pr5630:b5eb2b5:4","flex-48&amp;2024-12-19-01:rpsc-101:pr5715:647cc2a:4","flex-04&amp;2024-12-19-01:ada-861:pr5758:0c3a521:4","flex-16&amp;2024-12-19-01:adv-489:pr5763:9eff9cc:2","flex-22&amp;2024-12-19-01:adv-408:pr5656:a923aa2:4","flex-40&amp;2024-12-19-01:acd-729:pr5719:71a4956:4","flex-14&amp;2024-12-19-01:ada-824:pr5730:453ab13:1","flex-17&amp;2024-12-19-01:ada-894:pr5809:8834fcf:1","flex-19&amp;2024-12-19-01:acd-802:pr5796:37466ee:1","flex-20&amp;2024-12-19-01:adv-543:pr5804:a78b005:1","prod&amp;30726b6"];
    w.adthrive.forceGDPR = false;
    w.adthrive.debug = false;
    w.adthrive.country = "US";
    w.adthrive.region = "NY";
    
    if ('cookieDeprecationLabel' in navigator) {
      navigator.cookieDeprecationLabel.getValue()
        .then(function(value) {
          w.adthrive.cookieDeprecationLabel = value;
        })
        .catch(function(error) {
          w.adthrive.cmd.push(function () {
            w.adthrive.logError('ads-site-origin-request', 'insertCookieDeprecationLabelCode', ['Unable to set cookie deprecation label.', error]);
          });
        });
    }
  
    
      // Sticky Bucket
      function isValidStickyBucketData(stickyBucket) {
        return (stickyBucket &amp;&amp; stickyBucket.bucket &amp;&amp; stickyBucket.branch &amp;&amp; stickyBucket.deployment &amp;&amp; stickyBucket.ttl &amp;&amp; stickyBucket.ttl &gt; Date.now() &amp;&amp; w.adthrive.bucketKeys &amp;&amp; ((w.adthrive.bucketKeys.indexOf(stickyBucket.bucket + '&amp;' + stickyBucket.deployment) &gt; -1) || (stickyBucket.bucket == 'prod' &amp;&amp; w.adthrive.bucketKeys.indexOf('prod&amp;' + stickyBucket.branch) &gt; -1)));
      }
      function isMatchingStickyData(stickyBucket) {
        return stickyBucket &amp;&amp; w.adthrive.deployment == stickyBucket.deployment &amp;&amp; w.adthrive.bucket == stickyBucket.bucket &amp;&amp; w.adthrive.branch == stickyBucket.branch;
      }
      function tagNewStickyBucket() {
        var newStickyBucketData = {
          branch: w.adthrive.branch,
          bucket: w.adthrive.bucket,
          deployment: w.adthrive.deployment,
          deliveryFeatures: w.adthrive.deliveryFeatures,
          ttl: Date.now() + (3600 * 1000 * 24),
        };
        if(w.adthrive.deliveryFeatures.indexOf('stickyBucketsLocalStorage') &gt; -1) {
          w.adthrive = w.adthrive || {};
          w.adthrive.cmd = w.adthrive.cmd || [];
          w.adthrive.cmd.push(function() {
            w.adthrive.api.browserStorage.setLocalStorage('at_sticky_data', JSON.stringify(newStickyBucketData))
          });
        } else {
          w.sessionStorage.setItem('at_sticky_data', JSON.stringify(newStickyBucketData));
        }
      }
      var stickyBucketJSON = w.sessionStorage.getItem('at_sticky_data');
      var stickyBucketJSONLocal = w.localStorage.getItem('at_sticky_data');
      if(stickyBucketJSONLocal) {
        stickyBucketJSON = stickyBucketJSONLocal;
      }

      try {
        var stickyBucket = JSON.parse(stickyBucketJSON);
        if (isValidStickyBucketData(stickyBucket)) {
          if (stickyBucket.deliveryFeatures &amp;&amp; stickyBucket.deliveryFeatures.indexOf('reissuingSticky') &gt; -1) {
            // check if deployment data in current response matches sticky deployment at_sticky_data
            if (!isMatchingStickyData(stickyBucket)) {
              // we need to reissue ads.min.js with querystring params for sticky deployment info
              // AND we need to return/quit execution of ads.min.js
              var newAdsMinSrc = 'https://' + w.adthrive.host + '/sites/540753cf3467ce8320843965/ads.min.js?stickyDeployment=' + stickyBucket.deployment + '&amp;stickyBucket=' + stickyBucket.bucket + '&amp;stickyBranch=' + stickyBucket.branch;
              importScript(newAdsMinSrc);
              return;
            }
          } else {
            w.adthrive.branch = stickyBucket.branch;
            w.adthrive.bucket = stickyBucket.bucket;
            w.adthrive.deployment = stickyBucket.deployment;
            w.adthrive.baseUrl = 'https://' + w.adthrive.host + '/builds/core/' + stickyBucket.branch;
          }
        } else {
          tagNewStickyBucket();
        }
      } catch (e) {
        w.adthrive.cmd.push(function () {
          w.adthrive.log = w.adthrive.log || console.log;
          w.adthrive.log('log', 'ads-site-origin-request', 'insertStickyBucketCode', ['Error parsing session storage bucket data']);
        });
        tagNewStickyBucket();
      }

    w.adthrive.siteAds = {"betaTester":false,"siteId":"540753cf3467ce8320843965","siteName":"Everyday Annie","targeting":[{"value":"540753cf3467ce8320843965","key":"siteId"},{"value":"6233884d5bd1587088a7f311","key":"organizationId"},{"value":"Everyday Annie","key":"siteName"},{"value":"AdThrive Premium","key":"service"},{"value":"on","key":"bidding"},{"value":["Food","Lifestyle"],"key":"verticals"}],"breakpoints":{"tablet":768,"desktop":1024},"adUnits":[{"sequence":null,"targeting":[{"value":["Header"],"key":"location"}],"devices":["desktop"],"name":"Header","sticky":false,"location":"Header","dynamic":{"pageSelector":"body.home","spacing":0,"max":1,"lazyMax":null,"enable":true,"lazy":false,"elementSelector":".home-intro","skip":0,"classNames":[],"position":"afterend","every":1,"enabled":true},"stickyOverlapSelector":"","adSizes":[[728,90],[320,50],[468,60],[970,90],[1,1],[320,100],[970,250],[300,50],[728,250]],"priority":399,"autosize":true},{"sequence":1,"targeting":[{"value":["Sidebar"],"key":"location"}],"devices":["desktop"],"name":"Sidebar_1","sticky":false,"location":"Sidebar","dynamic":{"pageSelector":"","spacing":0,"max":1,"lazyMax":null,"enable":true,"lazy":false,"elementSelector":".right-col &gt; .sidebar-section.annie-sidebar &gt; *","skip":0,"classNames":[],"position":"afterend","every":1,"enabled":true},"stickyOverlapSelector":"","adSizes":[[160,600],[336,280],[320,50],[300,600],[250,250],[1,1],[320,100],[300,1050],[300,50],[300,420],[300,250]],"priority":299,"autosize":true},{"sequence":9,"targeting":[{"value":["Sidebar"],"key":"location"},{"value":true,"key":"sticky"}],"devices":["desktop"],"name":"Sidebar_9","sticky":true,"location":"Sidebar","dynamic":{"pageSelector":"","spacing":0,"max":1,"lazyMax":null,"enable":true,"lazy":false,"elementSelector":".right-col","skip":0,"classNames":[],"position":"beforeend","every":1,"enabled":true},"stickyOverlapSelector":".page-section.linked-section","adSizes":[[160,600],[336,280],[320,50],[300,600],[250,250],[1,1],[320,100],[300,1050],[300,50],[300,420],[300,250]],"priority":291,"autosize":true},{"sequence":null,"targeting":[{"value":["Content"],"key":"location"}],"devices":["desktop"],"name":"Content","sticky":false,"location":"Content","dynamic":{"pageSelector":"body.single","spacing":1,"max":4,"lazyMax":2,"enable":true,"lazy":true,"elementSelector":".recipe-section p","skip":1,"classNames":[],"position":"afterend","every":1,"enabled":true},"stickyOverlapSelector":"","adSizes":[[728,90],[336,280],[320,50],[468,60],[970,90],[250,250],[1,1],[320,100],[970,250],[1,2],[300,50],[300,300],[552,334],[728,250],[300,250]],"priority":199,"autosize":true},{"sequence":null,"targeting":[{"value":["Content"],"key":"location"}],"devices":["desktop"],"name":"Content","sticky":false,"location":"Content","dynamic":{"pageSelector":"body.single","spacing":1,"max":3,"lazyMax":null,"enable":true,"lazy":false,"elementSelector":".loving-list-wrap div","skip":5,"classNames":[],"position":"afterend","every":1,"enabled":true},"stickyOverlapSelector":"","adSizes":[[728,90],[336,280],[320,50],[468,60],[970,90],[250,250],[1,1],[320,100],[970,250],[1,2],[300,50],[300,300],[552,334],[728,250],[300,250]],"priority":199,"autosize":true},{"sequence":null,"targeting":[{"value":["Content"],"key":"location"}],"devices":["desktop"],"name":"Content","sticky":false,"location":"Content","dynamic":{"pageSelector":"body.single","spacing":1,"max":2,"lazyMax":null,"enable":true,"lazy":false,"elementSelector":".big-steps li","skip":2,"classNames":[],"position":"afterend","every":1,"enabled":true},"stickyOverlapSelector":"","adSizes":[[728,90],[336,280],[320,50],[468,60],[970,90],[250,250],[1,1],[320,100],[970,250],[1,2],[300,50],[300,300],[552,334],[728,250],[300,250]],"priority":199,"autosize":true},{"sequence":null,"targeting":[{"value":["Content"],"key":"location"}],"devices":["desktop"],"name":"Content","sticky":false,"location":"Content","dynamic":{"pageSelector":"body.single","spacing":1,"max":3,"lazyMax":null,"enable":true,"lazy":false,"elementSelector":".inner .text &gt; *","skip":5,"classNames":[],"position":"afterend","every":1,"enabled":true},"stickyOverlapSelector":"","adSizes":[[728,90],[336,280],[320,50],[468,60],[970,90],[250,250],[1,1],[320,100],[970,250],[1,2],[300,50],[300,300],[552,334],[728,250],[300,250]],"priority":199,"autosize":true},{"sequence":null,"targeting":[{"value":["Content"],"key":"location"}],"devices":["phone"],"name":"Content","sticky":false,"location":"Content","dynamic":{"pageSelector":"body.post-template-default","spacing":1,"max":2,"lazyMax":null,"enable":true,"lazy":false,"elementSelector":".recipe-section:first-of-type &gt; .text &gt; p","skip":1,"classNames":[],"position":"afterend","every":1,"enabled":true},"stickyOverlapSelector":"","adSizes":[[728,90],[336,280],[320,50],[468,60],[970,90],[250,250],[1,1],[320,100],[970,250],[1,2],[300,50],[300,300],[552,334],[728,250],[300,250]],"priority":199,"autosize":true},{"sequence":null,"targeting":[{"value":["Content"],"key":"location"}],"devices":["phone"],"name":"Content","sticky":false,"location":"Content","dynamic":{"pageSelector":"body:not(.post-template-default).single","spacing":1,"max":3,"lazyMax":2,"enable":true,"lazy":true,"elementSelector":".inner .text &gt; *","skip":3,"classNames":[],"position":"afterend","every":1,"enabled":true},"stickyOverlapSelector":"","adSizes":[[728,90],[336,280],[320,50],[468,60],[970,90],[250,250],[1,1],[320,100],[970,250],[1,2],[300,50],[300,300],[552,334],[728,250],[300,250]],"priority":199,"autosize":true},{"sequence":null,"targeting":[{"value":["Content"],"key":"location"}],"devices":["phone"],"name":"Content","sticky":false,"location":"Content","dynamic":{"pageSelector":"body.single","spacing":1,"max":3,"lazyMax":2,"enable":true,"lazy":true,"elementSelector":".loving-list-wrap div","skip":3,"classNames":[],"position":"afterend","every":1,"enabled":true},"stickyOverlapSelector":"","adSizes":[[728,90],[336,280],[320,50],[468,60],[970,90],[250,250],[1,1],[320,100],[970,250],[1,2],[300,50],[300,300],[552,334],[728,250],[300,250]],"priority":199,"autosize":true},{"sequence":null,"targeting":[{"value":["Content"],"key":"location"}],"devices":["phone"],"name":"Content","sticky":false,"location":"Content","dynamic":{"pageSelector":"body.single","spacing":1,"max":3,"lazyMax":3,"enable":true,"lazy":true,"elementSelector":".big-steps li","skip":0,"classNames":[],"position":"afterend","every":1,"enabled":true},"stickyOverlapSelector":"","adSizes":[[728,90],[336,280],[320,50],[468,60],[970,90],[250,250],[1,1],[320,100],[970,250],[1,2],[300,50],[300,300],[552,334],[728,250],[300,250]],"priority":199,"autosize":true},{"sequence":null,"targeting":[{"value":["Content"],"key":"location"}],"devices":["phone"],"name":"Content","sticky":false,"location":"Content","dynamic":{"pageSelector":"body.home","spacing":0,"max":2,"lazyMax":null,"enable":true,"lazy":false,"elementSelector":".home-wrap &gt; *","skip":0,"classNames":[],"position":"afterend","every":1,"enabled":true},"stickyOverlapSelector":"","adSizes":[[728,90],[336,280],[320,50],[468,60],[970,90],[250,250],[1,1],[320,100],[970,250],[1,2],[300,50],[300,300],[552,334],[728,250],[300,250]],"priority":199,"autosize":true},{"sequence":null,"targeting":[{"value":["Content"],"key":"location"}],"devices":["tablet"],"name":"Content","sticky":false,"location":"Content","dynamic":{"pageSelector":"body.post-template-default","spacing":1,"max":2,"lazyMax":null,"enable":true,"lazy":false,"elementSelector":".recipe-section:first-of-type &gt; .text &gt; p","skip":1,"classNames":[],"position":"afterend","every":1,"enabled":true},"stickyOverlapSelector":"","adSizes":[[728,90],[336,280],[320,50],[468,60],[970,90],[250,250],[1,1],[320,100],[970,250],[1,2],[300,50],[300,300],[552,334],[728,250],[300,250]],"priority":199,"autosize":true},{"sequence":null,"targeting":[{"value":["Content"],"key":"location"}],"devices":["tablet"],"name":"Content","sticky":false,"location":"Content","dynamic":{"pageSelector":"body.single","spacing":1,"max":3,"lazyMax":3,"enable":true,"lazy":true,"elementSelector":".loving-list-wrap div","skip":3,"classNames":[],"position":"afterend","every":1,"enabled":true},"stickyOverlapSelector":"","adSizes":[[728,90],[336,280],[320,50],[468,60],[970,90],[250,250],[1,1],[320,100],[970,250],[1,2],[300,50],[300,300],[552,334],[728,250],[300,250]],"priority":199,"autosize":true},{"sequence":null,"targeting":[{"value":["Content"],"key":"location"}],"devices":["tablet"],"name":"Content","sticky":false,"location":"Content","dynamic":{"pageSelector":"body.single","spacing":1,"max":3,"lazyMax":3,"enable":true,"lazy":true,"elementSelector":".big-steps li","skip":0,"classNames":[],"position":"afterend","every":1,"enabled":true},"stickyOverlapSelector":"","adSizes":[[728,90],[336,280],[320,50],[468,60],[970,90],[250,250],[1,1],[320,100],[970,250],[1,2],[300,50],[300,300],[552,334],[728,250],[300,250]],"priority":199,"autosize":true},{"sequence":null,"targeting":[{"value":["Content"],"key":"location"}],"devices":["tablet"],"name":"Content","sticky":false,"location":"Content","dynamic":{"pageSelector":"body:not(.post-template-default).single","spacing":1,"max":3,"lazyMax":2,"enable":true,"lazy":true,"elementSelector":".inner .text &gt; *","skip":3,"classNames":[],"position":"afterend","every":1,"enabled":true},"stickyOverlapSelector":"","adSizes":[[728,90],[336,280],[320,50],[468,60],[970,90],[250,250],[1,1],[320,100],[970,250],[1,2],[300,50],[300,300],[552,334],[728,250],[300,250]],"priority":199,"autosize":true},{"sequence":null,"targeting":[{"value":["Recipe"],"key":"location"}],"devices":["phone","tablet"],"name":"Recipe","sticky":false,"location":"Recipe","dynamic":{"pageSelector":"body.post-template-default","spacing":1,"max":1,"lazyMax":2,"enable":true,"lazy":true,"elementSelector":"#directions li","skip":1,"classNames":[],"position":"afterend","every":1,"enabled":true},"stickyOverlapSelector":"","adSizes":[[320,50],[250,250],[1,1],[320,100],[1,2],[300,50],[320,300],[300,390],[300,250]],"priority":-101,"autosize":true},{"sequence":2,"targeting":[{"value":["Recipe"],"key":"location"}],"devices":["phone","tablet","desktop"],"name":"Recipe_2","sticky":false,"location":"Recipe","dynamic":{"pageSelector":"","spacing":0,"max":1,"lazyMax":null,"enable":true,"lazy":false,"elementSelector":"#directions","skip":0,"classNames":[],"position":"afterend","every":1,"enabled":true},"stickyOverlapSelector":"","adSizes":[[320,50],[250,250],[1,1],[320,100],[1,2],[300,50],[320,300],[300,390],[300,250]],"priority":-102,"autosize":true},{"sequence":null,"targeting":[{"value":["Footer"],"key":"location"},{"value":true,"key":"sticky"}],"devices":["tablet","phone","desktop"],"name":"Footer","sticky":true,"location":"Footer","dynamic":{"pageSelector":"body.single","spacing":0,"max":1,"lazyMax":null,"enable":true,"lazy":false,"elementSelector":"body","skip":0,"classNames":[],"position":"beforeend","every":1,"enabled":true},"stickyOverlapSelector":"","adSizes":[[320,50],[320,100],[728,90],[970,90],[468,60],[1,1],[300,50]],"priority":-1,"autosize":true}],"adDensityLayout":{"mobile":{"adDensity":0.26,"onePerViewport":false},"pageOverrides":[{"mobile":{"adDensity":0.3,"onePerViewport":false},"note":null,"pageSelector":"body.home","desktop":{"adDensity":0.26,"onePerViewport":false}}],"desktop":{"adDensity":0.24,"onePerViewport":false}},"adDensityEnabled":true,"siteExperiments":[],"adTypes":{"sponsorTileDesktop":true,"interscrollerDesktop":true,"nativeDesktopContent":true,"outstreamDesktop":true,"nativeBelowPostDesktop":true,"miniscroller":true,"animatedFooter":true,"largeFormatsMobile":true,"nativeMobileContent":true,"inRecipeRecommendationMobile":true,"nativeMobileRecipe":true,"expandableFooter":true,"nativeDesktopSidebar":true,"sponsorTileMobile":true,"expandableCatalogAdsMobile":false,"interscroller":true,"nativeDesktopRecipe":true,"outstreamMobile":true,"nativeHeaderDesktop":true,"nativeHeaderMobile":true,"nativeBelowPostMobile":true,"expandableCatalogAdsDesktop":false,"largeFormatsDesktop":true,"inRecipeRecommendationDesktop":true},"adOptions":{"theTradeDesk":true,"rtbhouse":true,"undertone":true,"sidebarConfig":{"dynamicStickySidebar":{"minHeight":1800,"enabled":true,"blockedSelectors":[]}},"footerCloseButton":true,"teads":true,"redPandaOutstream":false,"pmp":true,"thirtyThreeAcross":true,"sharethrough":true,"optimizeVideoPlayersForEarnings":true,"removeVideoTitleWrapper":true,"pubMatic":true,"swoop":false,"infiniteScroll":false,"yahoossp":true,"improvedigital":true,"stickyContainerConfig":{"recipeDesktop":{"minHeight":400,"enabled":false},"blockedSelectors":[],"content":{"minHeight":400,"enabled":false},"recipeMobile":{"minHeight":400,"enabled":false}},"yieldbotId":"","sonobi":true,"yieldmo":true,"footerSelector":"","amazonUAM":true,"gamMCMEnabled":true,"gamMCMChildNetworkCode":"22656764687","stickyContainerAds":false,"rubiconMediaMath":true,"rubicon":true,"conversant":false,"openx":true,"customCreativeEnabled":false,"mobileHeaderHeight":1,"secColor":"#000000","unruly":true,"mediaGrid":true,"bRealTime":true,"gumgum":true,"comscoreFooter":true,"desktopInterstitial":false,"footerCloseButtonDesktop":true,"ozone":false,"isAutoOptimized":false,"adform":true,"comscoreTAL":true,"targetaff":false,"bgColor":"#FFFFFF","tripleLiftMobile":true,"advancePlaylistOptions":{"playlistPlayer":{"enabled":true},"relatedPlayer":{"applyToFirst":true,"enabled":true}},"amazonASR":false,"kargo":true,"liveRampATS":true,"footerCloseButtonMobile":true,"interstitialBlockedPageSelectors":"","allowSmallerAdSizes":true,"comscore":"Food","wakeLock":{"desktopEnabled":true,"mobileValue":15,"mobileEnabled":true,"desktopValue":30},"mobileInterstitial":false,"tripleLift":true,"sensitiveCategories":["alc","drg","conl","gamv"],"liveRamp":true,"mobileInterstitialBlockedPageSelectors":"","adthriveEmailIdentity":true,"criteo":true,"nativo":false,"infiniteScrollOptions":{"selector":"","heightThreshold":0},"dynamicContentSlotLazyLoading":true,"clsOptimizedAds":true,"aidem":false,"verticals":["Food","Lifestyle"],"inImage":false,"advancePlaylist":true,"flipp":true,"delayLoading":false,"tripleLiftDesktop":false,"inImageZone":null,"appNexus":true,"rise":true,"liveRampId":"","infiniteScrollRefresh":false,"indexExchange":true},"videoPlayers":{"contextual":{"autoplayCollapsibleEnabled":false,"defaultPlayerType":"static","overrideEmbedLocation":false},"videoEmbed":"wordpress","footerSelector":"","contentSpecificPlaylists":[],"players":[{"devices":["desktop","mobile"],"description":"","id":4046805,"title":"Stationary related player - desktop and mobile","type":"stationaryRelated","enabled":true,"playerId":"nvq5UZ39"},{"pageSelector":"","devices":["desktop"],"description":"","elementSelector":".inner .text &gt; *","skip":0,"id":4046806,"position":"afterend","title":"Sticky related player - desktop","type":"stickyRelated","enabled":true,"playerId":"nvq5UZ39"},{"pageSelector":"","devices":["mobile"],"mobileLocation":"top-right","description":"","elementSelector":".inner .text &gt; *","skip":0,"id":4046807,"position":"afterend","title":"Sticky related player - mobile","type":"stickyRelated","enabled":true,"playerId":"nvq5UZ39"},{"playlistId":"mCJK3v9h","pageSelector":"body.single","devices":["mobile"],"mobileLocation":"top-right","description":"","skip":0,"title":"","type":"stickyPlaylist","enabled":false,"footerSelector":"","elementSelector":".inner .text &gt; *","id":4046809,"position":"afterend","saveVideoCloseState":false,"shuffle":true,"playerId":"rxBv5KgC"},{"playlistId":"mCJK3v9h","pageSelector":"body.single","devices":["desktop"],"description":"","skip":0,"title":"","type":"stickyPlaylist","enabled":false,"footerSelector":"","elementSelector":".inner .text &gt; *","id":4046808,"position":"afterend","saveVideoCloseState":false,"shuffle":true,"playerId":"rxBv5KgC"}],"partners":{"theTradeDesk":true,"yahoossp":true,"criteo":true,"unruly":true,"mediaGrid":true,"improvedigital":true,"undertone":true,"gumgum":true,"aidem":false,"yieldmo":true,"adform":true,"pmp":true,"amazonUAM":true,"kargo":true,"thirtyThreeAcross":false,"stickyOutstream":{"desktop":{"enabled":false},"blockedPageSelectors":"","mobileLocation":"bottom-left","allowOnHomepage":false,"mobile":{"enabled":false},"saveVideoCloseState":false,"mobileHeaderSelector":"","allowForPageWithStickyPlayer":{"enabled":false}},"sharethrough":true,"rubicon":true,"appNexus":true,"rise":true,"tripleLift":true,"openx":true,"pubMatic":true,"indexExchange":true}}};

    
    
    //Raptive Manual Cookie Sync
    var raptiveUA = w.navigator ? w.navigator.userAgent : '';
    var isSafari = /Safari/.test(raptiveUA) &amp;&amp; !(/chrom/i.test(raptiveUA) || /crios/i.test(raptiveUA)) &amp;&amp; !/Edge\/|Edg\//.test(raptiveUA);
    var metaTagList = d.getElementsByTagName('meta');
    var hasHealthDirectedMetaTag = !!Array.from(metaTagList).filter(function(metaTag) {
      return metaTag.name === 'health-directed-treatment' &amp;&amp; metaTag.content === 'true';
    }).length;
    if (!isSafari &amp;&amp; ((w.navigator &amp;&amp; !w.navigator.globalPrivacyControl) || !w.navigator) &amp;&amp; !(hasHealthDirectedMetaTag &amp;&amp; (w.adthrive.country === 'US' &amp;&amp; w.adthrive.region === 'WA'))) {
      try {
        var g = document.createElement("iframe");
        g.height = 1;
        g.frameBorder = 0;
        g.style.display = "none";
        g.src = "https://ads.adthrive.com/builds/prebid/load-cookie.html?endpoint=https://prebid.production.adthrive.com/cookie_sync&amp;max_sync_count=15&amp;coop_sync=true&amp;bidders=undertone,gumgum,appnexus,adf,colossus,ix,kargo,openx,pubmatic,rubicon,triplelift,triplelift_native,33across,conversant,epsilon,unruly,yieldmo,resetDigital,grid,yahoossp,improvedigital,aidem,criteo&amp;args=account:1234";
        if (document.body) {
          document.body.append(g);
        } else {
          document.addEventListener("DOMContentLoaded", function() {
            document.body.appendChild(g);
          });
        }
      } catch (err) {
          console.log("Error with Raptive manual cookie sync. Error: ", err);
      }
    }
    
    
      //TTD User Sync Logic
      var metaTagList = d.getElementsByTagName('meta');
      var hasHealthDirectedMetaTag = !!Array.from(metaTagList).filter(function(metaTag) {
        return metaTag.name === 'health-directed-treatment' &amp;&amp; metaTag.content === 'true';
      }).length;
      if (((w.navigator &amp;&amp; !w.navigator.globalPrivacyControl) || !w.navigator) &amp;&amp; !(hasHealthDirectedMetaTag &amp;&amp; (w.adthrive.country === 'US' &amp;&amp; w.adthrive.region === 'WA'))) {
        try {
          var unifiedIdExp = w.localStorage.getItem('pbjs-unifiedid_exp');
          // Check if there is expired pbjs-unifiedid_exp value in local storage
          if ((new Date(unifiedIdExp)).getTime() - Date.now() &lt; 0) {
            // Try to call TTD user sync endpoint and set local storage values
            var userSyncUrl = 'https://match.adsrvr.org/track/rid?ttd_pid=iowij76&amp;fmt=json';
            var xhrUserSync = new XMLHttpRequest();
            xhrUserSync.onload = function() {
              var status = xhrUserSync.status;
              if (status === 200) {
                var response = xhrUserSync.response;
                var newExpirationGMTString = new Date(Date.now() + 5184000000).toGMTString();
                w.localStorage.setItem('pbjs-unifiedid_exp', newExpirationGMTString);
                w.localStorage.setItem('pbjs-unifiedid', encodeURIComponent(JSON.stringify(response)));
              } else {
                w.adthrive.cmd.push(function () {
                  w.adthrive.log = w.adthrive.log || console.log;
                  w.adthrive.log('log', 'ads-site-origin-request', 'getTTDUserSync', ['User sync call failed', status]);
                });
              }
            };
            xhrUserSync.open('GET', userSyncUrl, true);
            xhrUserSync.responseType = 'json';
            xhrUserSync.withCredentials = true;
            xhrUserSync.send();
          }
        } catch (err) {
          w.adthrive.cmd.push(function () {
            w.adthrive.log = w.adthrive.log || console.log;
            w.adthrive.log('log', 'ads-site-origin-request', 'getTTDUserSync', ['Error with unifiedId sync', err]);
          });
        }
      }
      
    
    
    //GPP V1.1 Code
          
window.__gpp_addFrame = function (n)
{
 if (!window.frames[n])
 {
  if (document.body)
  {
   var i           = document.createElement('iframe');
   i.style.cssText = 'display:none';
   i.name          = n;
   document.body.appendChild(i);
  }
  else
  {
   window.setTimeout(window.__gppaddFrame, 10, n);
  }
 }
};
window.__gpp_stub = function ()
{
 var b       = arguments;
 __gpp.queue = __gpp.queue || [];
 if (!b.length){ return __gpp.queue; }
 var cmd = b[0];
 var clb = b.length &gt; 1 ? b[1] : null;
 var par = b.length &gt; 2 ? b[2] : null;
 if (cmd === 'ping')
 {
  return {
  gppVersion        : '1.1', // must be â€œVersion.Subversionâ€, current: â€œ1.1â€
  cmpStatus         : 'stub', // possible values: stub, loading, loaded, error
  cmpDisplayStatus  : 'hidden', // possible values: hidden, visible, disabled
  supportedAPIs     : ['6:uspv1', '7:usnat'], // list of supported APIs
  cmpId             : 0, // IAB assigned CMP ID, may be 0 during stub/loading
  sectionList       : [],
  applicableSections: [-1], //or 0 or ID set by publisher
  signalStatus      : 'not ready',
  gppString         : ''
  };
 }
 else if (cmd === 'addEventListener')
 {
  __gpp.events = __gpp.events || [];
  if (!('lastId' in __gpp)){ __gpp.lastId = 0; }
  __gpp.lastId++;
  var lnr = __gpp.lastId;
  __gpp.events.push({
                     'id'       : lnr,
                     'callback' : clb,
                     'parameter': par
                    });
  return {
   eventName : 'listenerRegistered',
   listenerId: lnr, // Registered ID of the listener
   data      : true, // positive signal
   pingData: {
    gppVersion        : '1.1',
    cmpStatus         : 'stub',
    cmpDisplayStatus  : 'hidden',
    supportedAPIs     : ['6:uspv1', '7:usnat'],
    cmpId             : 0,
    sectionList       : [],
    applicableSections: [-1], //or 0 or ID set by publisher
    signalStatus      : 'not ready',
    gppString         : ''
   }
  };
 }
 else if (cmd === 'removeEventListener')
 {
  var success = false;
  __gpp.events = __gpp.events || [];
  for(var i=0; i&lt;__gpp.events.length; i++)
  {
   if(__gpp.events[i].id == par)
   {
    __gpp.events[i].splice(i,1);
    success = true;
    break;
   }
  }
  return {
   eventName : 'listenerRemoved', 
   listenerId: par, // Registered ID of the listener
   data      : success, // status info
   pingData: {
    gppVersion        : '1.1',
    cmpStatus         : 'stub',
    cmpDisplayStatus  : 'hidden',
    supportedAPIs     : ['6:uspv1', '7:usnat'],
    cmpId             : 0,
    sectionList       : [],
    applicableSections: [-1], //or 0 or ID set by publisher
    signalStatus      : 'not ready',
    gppString         : ''
   }
  };
}
 //these commands must not be queued but may return null while in stub-mode
 else if (cmd === 'hasSection' || cmd === 'getSection' || cmd === 'getField')
 {
  return null;
 }
 //queue all other commands
 else
 {
  __gpp.queue.push([].slice.apply(b));
 }
};
window.__gpp_msghandler = function (event)
{
 var msgIsString = typeof event.data === 'string';
 try{ var json = msgIsString ? JSON.parse(event.data) : event.data; }
 catch (e){ var json = null; }
 if (typeof (json) === 'object' &amp;&amp; json !== null &amp;&amp; '__gppCall' in json)
 {
  var i = json.__gppCall;
  window.__gpp(i.command, function (retValue, success)
{
var returnMsg = {
 '__gppReturn': {
  'returnValue': retValue,
  'success'    : success,
  'callId'     : i.callId
 }
};
event.source.postMessage(msgIsString ? JSON.stringify(returnMsg) : returnMsg, '*');
},'parameter' in i? i.parameter: null, 'version' in i ? i.version : '1.1');
 }
};
if (!('__gpp' in window) || (typeof (window.__gpp) !== 'function'))
{
 window.__gpp = window.__gpp_stub;
 window.addEventListener('message', window.__gpp_msghandler, false);
 window.__gpp_addFrame('__gppLocator');
}

    
      //CLS Insertion
      var cls_site_insertion=function(e){"use strict";var t;window.adthrive.buildDate="2024-12-19",function(e){e.Below_Post_1="Below_Post_1",e.Below_Post="Below_Post",e.Content="Content",e.Content_1="Content_1",e.Content_2="Content_2",e.Content_3="Content_3",e.Content_4="Content_4",e.Content_5="Content_5",e.Content_6="Content_6",e.Content_7="Content_7",e.Content_8="Content_8",e.Content_9="Content_9",e.Recipe="Recipe",e.Recipe_1="Recipe_1",e.Recipe_2="Recipe_2",e.Recipe_3="Recipe_3",e.Recipe_4="Recipe_4",e.Recipe_5="Recipe_5",e.Native_Recipe="Native_Recipe",e.Footer_1="Footer_1",e.Footer="Footer",e.Header_1="Header_1",e.Header_2="Header_2",e.Header="Header",e.Sidebar_1="Sidebar_1",e.Sidebar_2="Sidebar_2",e.Sidebar_3="Sidebar_3",e.Sidebar_4="Sidebar_4",e.Sidebar_5="Sidebar_5",e.Sidebar_9="Sidebar_9",e.Sidebar="Sidebar",e.Interstitial_1="Interstitial_1",e.Interstitial="Interstitial",e.Video_StickyOutstream_1="Video_StickyOutstream_1",e.Video_StickyOutstream="Video_StickyOutstream",e.Video_StickyInstream="Video_StickyInstream",e.Sponsor_Tile="Sponsor_Tile"}(t||(t={}));class i{constructor(e){this.clsOptions=e,this.enabledLocations=[t.Below_Post,t.Content,t.Recipe,t.Sidebar]}}const n=(e,t)=&gt;null==e||e!=e?t:e;function s(){return s=Object.assign||function(e){for(var t=1;t&lt;arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&amp;&amp;(e[n]=i[n])}return e},s.apply(this,arguments)}var o,r,a,l,c,d,h,u,p,m,_,g,y,f,v,S,b,w,C;!function(e){e.amznbid="amznbid",e.amzniid="amzniid",e.amznp="amznp",e.amznsz="amznsz"}(o||(o={})),function(e){e.ThirtyThreeAcross="33across",e.Adform="adform",e.Aidem="aidem",e.AidemServer="aidem_ss",e.AppNexus="appnexus",e.AmazonTAM="amazon",e.AmazonUAM="AmazonUAM",e.AmazonASR="AmazonASR",e.Colossus="colossus",e.ColossusServer="col_ss",e.Conversant="conversant",e.Concert="concert",e.Criteo="criteo",e.CriteoServer="crit_ss",e.GumGum="gumgum",e.ImproveDigital="improvedigital",e.ImproveDigitalServer="improve_ss",e.IndexExchange="ix",e.Kargo="kargo",e.KargoServer="krgo_ss",e.MediaGrid="grid",e.MediaGridVideo="gridvid",e.Nativo="nativo",e.Ogury="ogury",e.OpenX="openx",e.OpenXServer="opnx_ss",e.Ozone="ozone",e.Pubmatic="pubmatic",e.PubmaticServer="pubm_ss",e.ResetDigital="resetdigital",e.Rise="rise",e.Rtbhouse="rtbhouse",e.Rubicon="rubicon",e.RubiconServer="rubi_ss",e.RubiconServerISV="rubiv_ss",e.Seedtag="seedtag",e.Sharethrough="sharethrough",e.SharethroughServer="share_ss",e.Teads="teads",e.Triplelift="triplelift",e.TripleliftServer="tripl_ss",e.TTD="ttd",e.Undertone="undertone",e.UndertoneServer="under_ss",e.Unruly="unruly",e.YahooSSP="yahoossp",e.YahooSSPServer="yah_ss",e.Verizon="verizon",e.Yieldmo="yieldmo",e.Flipp="flipp"}(r||(r={})),function(e){e.Prebid="prebid",e.GAM="gam",e.Amazon="amazon",e.Marmalade="marmalade",e.Floors="floors",e.CMP="cmp",e.Optable="optable",e.OptimalBidder="optimalBidder"}(a||(a={})),function(e){e.cm="cm",e.fbrap="fbrap",e.rapml="rapml"}(l||(l={})),function(e){e.lazy="lazy",e.raptive="raptive",e.refresh="refresh",e.session="session",e.crossDomain="crossdomain",e.highSequence="highsequence",e.lazyBidPool="lazyBidPool"}(c||(c={})),function(e){e.lazy="l",e.raptive="rapml",e.refresh="r",e.session="s",e.crossdomain="c",e.highsequence="hs",e.lazyBidPool="lbp"}(d||(d={})),function(e){e.Version="Version",e.SharingNotice="SharingNotice",e.SaleOptOutNotice="SaleOptOutNotice",e.SharingOptOutNotice="SharingOptOutNotice",e.TargetedAdvertisingOptOutNotice="TargetedAdvertisingOptOutNotice",e.SensitiveDataProcessingOptOutNotice="SensitiveDataProcessingOptOutNotice",e.SensitiveDataLimitUseNotice="SensitiveDataLimitUseNotice",e.SaleOptOut="SaleOptOut",e.SharingOptOut="SharingOptOut",e.TargetedAdvertisingOptOut="TargetedAdvertisingOptOut",e.SensitiveDataProcessing="SensitiveDataProcessing",e.KnownChildSensitiveDataConsents="KnownChildSensitiveDataConsents",e.PersonalDataConsents="PersonalDataConsents",e.MspaCoveredTransaction="MspaCoveredTransaction",e.MspaOptOutOptionMode="MspaOptOutOptionMode",e.MspaServiceProviderMode="MspaServiceProviderMode",e.SubSectionType="SubsectionType",e.Gpc="Gpc"}(h||(h={})),function(e){e[e.NA=0]="NA",e[e.OptedOut=1]="OptedOut",e[e.OptedIn=2]="OptedIn"}(u||(u={})),function(e){e.AdDensity="addensity",e.AdLayout="adlayout",e.FooterCloseButton="footerclose",e.Interstitial="interstitial",e.RemoveVideoTitleWrapper="removevideotitlewrapper",e.StickyOutstream="stickyoutstream",e.StickyOutstreamOnStickyPlayer="sospp",e.VideoAdvancePlaylistRelatedPlayer="videoadvanceplaylistrp",e.MobileStickyPlayerPosition="mspp"}(p||(p={})),function(e){e.Desktop="desktop",e.Mobile="mobile"}(m||(m={})),function(e){e.Video_Collapse_Autoplay_SoundOff="Video_Collapse_Autoplay_SoundOff",e.Video_Individual_Autoplay_SOff="Video_Individual_Autoplay_SOff",e.Video_Coll_SOff_Smartphone="Video_Coll_SOff_Smartphone",e.Video_In_Post_ClicktoPlay_SoundOn="Video_In-Post_ClicktoPlay_SoundOn",e.Video_Collapse_Autoplay_SoundOff_15s="Video_Collapse_Autoplay_SoundOff_15s",e.Video_Individual_Autoplay_SOff_15s="Video_Individual_Autoplay_SOff_15s",e.Video_Coll_SOff_Smartphone_15s="Video_Coll_SOff_Smartphone_15s",e.Video_In_Post_ClicktoPlay_SoundOn_15s="Video_In-Post_ClicktoPlay_SoundOn_15s"}(_||(_={})),function(e){e.vpaidAdPlayError="vpaidAdPlayError",e.adError="adError",e.adLoaded="adLoaded"}(g||(g={})),function(e){e.Float="adthrive-collapse-float",e.Sticky="adthrive-collapse-sticky",e.Mobile="adthrive-collapse-mobile"}(y||(y={})),function(e){e.Small="adthrive-collapse-small",e.Medium="adthrive-collapse-medium"}(f||(f={})),function(e){e.BottomRight="adthrive-collapse-bottom-right"}(v||(v={})),function(e){e[e.Unstarted=0]="Unstarted",e[e.UncollapsedPlay=1]="UncollapsedPlay",e[e.CollapsedPlay=2]="CollapsedPlay",e[e.UserPauseUncollapsed=3]="UserPauseUncollapsed",e[e.UserPauseCollapsed=4]="UserPauseCollapsed",e[e.PausedNotVisible=5]="PausedNotVisible",e[e.Overlapped=6]="Overlapped",e[e.Closed=7]="Closed",e[e.NonLinearAdPlay=8]="NonLinearAdPlay",e[e.NonLinearAdPaused=9]="NonLinearAdPaused",e[e.NonLinearAdOverlapped=10]="NonLinearAdOverlapped",e[e.UserUnPaused=11]="UserUnPaused"}(S||(S={})),function(e){e[e.Play=0]="Play",e[e.UserClick=1]="UserClick",e[e.PageSwitch=2]="PageSwitch",e[e.OutOfView=3]="OutOfView",e[e.InView=4]="InView",e[e.Close=5]="Close",e[e.Overlapping=6]="Overlapping",e[e.OtherVideoPlaying=7]="OtherVideoPlaying"}(b||(b={})),function(e){e.None="none"}(w||(w={})),function(e){e.Default="default",e.AZ_Animals="5daf495ed42c8605cfc74b0b",e.Natashas_Kitchen="55bccc97303edab84afd77e2",e.RecipeTin_Eats="55cb7e3b4bc841bd0c4ea577",e.Sallys_Baking_Recipes="566aefa94856897050ee7303",e.Spend_With_Pennies="541917f5a90318f9194874cf"}(C||(C={}));const x=e=&gt;{const t={};return function(...i){const n=JSON.stringify(i);if(t[n])return t[n];const s=e.apply(this,i);return t[n]=s,s}};const A=new class{info(e,t,...i){this.call(console.info,e,t,...i)}warn(e,t,...i){this.call(console.warn,e,t,...i)}error(e,t,...i){this.call(console.error,e,t,...i),this.sendErrorLogToCommandQueue(e,t,...i)}event(e,t,...i){var n;"debug"===(null==(n=window.adthriveCLS)?void 0:n.bucket)&amp;&amp;this.info(e,t)}sendErrorLogToCommandQueue(e,t,...i){window.adthrive=window.adthrive||{},window.adthrive.cmd=window.adthrive.cmd||[],window.adthrive.cmd.push((()=&gt;{void 0!==window.adthrive.logError&amp;&amp;"function"==typeof window.adthrive.logError&amp;&amp;window.adthrive.logError(e,t,i)}))}call(e,t,i,...n){const s=[`%c${t}::${i} `],o=["color: #999; font-weight: bold;"];n.length&gt;0&amp;&amp;"string"==typeof n[0]&amp;&amp;s.push(n.shift()),o.push(...n);try{Function.prototype.apply.call(e,console,[s.join(""),...o])}catch(e){return void console.error(e)}}},O=e=&gt;{const t=e.offsetHeight,i=e.offsetWidth,n=e.getBoundingClientRect(),s=document.body,o=document.documentElement,r=window.pageYOffset||o.scrollTop||s.scrollTop,a=window.pageXOffset||o.scrollLeft||s.scrollLeft,l=o.clientTop||s.clientTop||0,c=o.clientLeft||s.clientLeft||0,d=Math.round(n.top+r-l),h=Math.round(n.left+a-c);return{top:d,left:h,bottom:d+t,right:h+i,width:i,height:t}},E=e=&gt;{let t={};const i=((e=window.location.search)=&gt;{const t=0===e.indexOf("?")?1:0;return e.slice(t).split("&amp;").reduce(((e,t)=&gt;{const[i,n]=t.split("=");return e.set(i,n),e}),new Map)})().get(e);if(i)try{const n=decodeURIComponent(i).replace(/\+/g,"");t=JSON.parse(n),A.event("ExperimentOverridesUtil","getExperimentOverrides",e,t)}catch(e){}return t},P=x(((e=navigator.userAgent)=&gt;/Windows NT|Macintosh/i.test(e))),k=x((()=&gt;{const e=navigator.userAgent,t=/Tablet|iPad|Playbook|Nook|webOS|Kindle|Android (?!.*Mobile).*Safari|CrOS/i.test(e);return/Mobi|iP(hone|od)|Opera Mini/i.test(e)&amp;&amp;!t})),D=(e,t,i=document)=&gt;{const n=((e=document)=&gt;{const t=e.querySelectorAll("article");if(0===t.length)return null;const i=Array.from(t).reduce(((e,t)=&gt;t.offsetHeight&gt;e.offsetHeight?t:e));return i&amp;&amp;i.offsetHeight&gt;1.5*window.innerHeight?i:null})(i),s=n?[n]:[],o=[];e.forEach((e=&gt;{const n=Array.from(i.querySelectorAll(e.elementSelector)).slice(0,e.skip);var r;(r=e.elementSelector,r.includes(",")?r.split(","):[r]).forEach((r=&gt;{const a=i.querySelectorAll(r);for(let i=0;i&lt;a.length;i++){const r=a[i];if(t.map.some((({el:e})=&gt;e.isEqualNode(r))))continue;const l=r&amp;&amp;r.parentElement;l&amp;&amp;l!==document.body?s.push(l):s.push(r),-1===n.indexOf(r)&amp;&amp;o.push({dynamicAd:e,element:r})}}))}));const r=((e=document)=&gt;(e===document?document.body:e).getBoundingClientRect().top)(i),a=o.sort(((e,t)=&gt;e.element.getBoundingClientRect().top-r-(t.element.getBoundingClientRect().top-r)));return[s,a]};class R{}const I=e=&gt;null!=e&amp;&amp;!("number"==typeof e&amp;&amp;isNaN(e)),M=(e,t,i,n,o=!0)=&gt;{const r="adthrive_abgroup",a=T.readInternalLocalStorage(r);if(null!==a){const t=a[e];var l;const i=null!=(l=a[`${e}_weight`])?l:null;if(I(t))return[t,i]}const c=s({},a,{[e]:t,[`${e}_weight`]:i});return n?T.setExpirableInternalLocalStorage(r,c,{expiry:n,resetOnRead:o}):T.setInternalLocalStorage(r,c),[t,i]},L=["mcmpfreqrec"];const T=new class extends R{init(e){this._gdpr="true"===e.gdpr,this._shouldQueue=this._gdpr}clearQueue(e){e&amp;&amp;(this._shouldQueue=!1,this._sessionStorageHandlerQueue.forEach((e=&gt;{this.setSessionStorage(e.key,e.value)})),this._localStorageHandlerQueue.forEach((e=&gt;{if("adthrive_abgroup"===e.key){const t=Object.keys(e.value)[0],i=e.value[t],n=e.value[`${t}_weight`];M(t,i,n,{value:24,unit:"hours"})}else e.expiry?"internal"===e.type?this.setExpirableInternalLocalStorage(e.key,e.value,{expiry:e.expiry,resetOnRead:e.resetOnRead}):this.setExpirableExternalLocalStorage(e.key,e.value,{expiry:e.expiry,resetOnRead:e.resetOnRead}):"internal"===e.type?this.setInternalLocalStorage(e.key,e.value):this.setExternalLocalStorage(e.key,e.value)})),this._cookieHandlerQueue.forEach((e=&gt;{"internal"===e.type?this.setInternalCookie(e.key,e.value):this.setExternalCookie(e.key,e.value)}))),this._sessionStorageHandlerQueue=[],this._localStorageHandlerQueue=[],this._cookieHandlerQueue=[]}readInternalCookie(e){return this._verifyInternalKey(e),this._readCookie(e)}readExternalCookie(e){return this._readCookie(e)}readInternalLocalStorage(e){return this._verifyInternalKey(e),this._readFromLocalStorage(e)}readExternalLocalStorage(e){return this._readFromLocalStorage(e)}readSessionStorage(e){const t=window.sessionStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return t}}deleteCookie(e){document.cookie=`${e}=; SameSite=None; Secure; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/`}deleteLocalStorage(e){window.localStorage.removeItem(e)}deleteSessionStorage(e){window.sessionStorage.removeItem(e)}setInternalCookie(e,t,i){this._verifyInternalKey(e),this._setCookieValue("internal",e,t,i)}setExternalCookie(e,t,i){this._setCookieValue("external",e,t,i)}setInternalLocalStorage(e,t){if(this._verifyInternalKey(e),this._gdpr&amp;&amp;this._shouldQueue){const i={key:e,value:t,type:"internal"};this._localStorageHandlerQueue.push(i)}else{const i="string"==typeof t?t:JSON.stringify(t);window.localStorage.setItem(e,i)}}setExternalLocalStorage(e,t){if(this._gdpr&amp;&amp;this._shouldQueue){const i={key:e,value:t,type:"external"};this._localStorageHandlerQueue.push(i)}else{const i="string"==typeof t?t:JSON.stringify(t);window.localStorage.setItem(e,i)}}setExpirableInternalLocalStorage(e,t,i){this._verifyInternalKey(e);try{var n;const o=null!=(n=null==i?void 0:i.expiry)?n:{value:400,unit:"days"};var s;const r=null!=(s=null==i?void 0:i.resetOnRead)&amp;&amp;s;if(this._gdpr&amp;&amp;this._shouldQueue){const i={key:e,value:t,type:"internal",expires:this._getExpiryDate(o),expiry:o,resetOnRead:r};this._localStorageHandlerQueue.push(i)}else{const i={value:t,type:"internal",expires:this._getExpiryDate(o),expiry:o,resetOnRead:r};window.localStorage.setItem(e,JSON.stringify(i))}}catch(e){console.error(e)}}setExpirableExternalLocalStorage(e,t,i){try{var n;const o=null!=(n=null==i?void 0:i.expiry)?n:{value:400,unit:"days"};var s;const r=null!=(s=null==i?void 0:i.resetOnRead)&amp;&amp;s;if(this._gdpr&amp;&amp;this._shouldQueue){const i={key:e,value:JSON.stringify(t),type:"external",expires:this._getExpiryDate(o),expiry:o,resetOnRead:r};this._localStorageHandlerQueue.push(i)}else{const i={value:t,type:"external",expires:this._getExpiryDate(o),expiry:o,resetOnRead:r};window.localStorage.setItem(e,JSON.stringify(i))}}catch(e){console.error(e)}}setSessionStorage(e,t){if(this._gdpr&amp;&amp;this._shouldQueue){const i={key:e,value:t};this._sessionStorageHandlerQueue.push(i)}else{const i="string"==typeof t?t:JSON.stringify(t);window.sessionStorage.setItem(e,i)}}_getExpiryDate({value:e,unit:t}){const i=new Date;return"milliseconds"===t?i.setTime(i.getTime()+e):"seconds"==t?i.setTime(i.getTime()+1e3*e):"minutes"===t?i.setTime(i.getTime()+60*e*1e3):"hours"===t?i.setTime(i.getTime()+60*e*60*1e3):"days"===t?i.setTime(i.getTime()+24*e*60*60*1e3):"months"===t&amp;&amp;i.setTime(i.getTime()+30*e*24*60*60*1e3),i.toUTCString()}_resetExpiry(e){return e.expires=this._getExpiryDate(e.expiry),e}_readCookie(e){const t=document.cookie.split("; ").find((t=&gt;t.split("=")[0]===e));if(!t)return null;const i=t.split("=")[1];if(i)try{return JSON.parse(decodeURIComponent(i))}catch(e){return decodeURIComponent(i)}return null}_readFromLocalStorage(e){const t=window.localStorage.getItem(e);if(!t)return null;try{const n=JSON.parse(t),s=n.expires&amp;&amp;(new Date).getTime()&gt;new Date(n.expires).getTime();if("adthrive_abgroup"===e&amp;&amp;n.created)return window.localStorage.removeItem(e),null;if(n.resetOnRead&amp;&amp;n.expires&amp;&amp;!s){const t=this._resetExpiry(n);var i;return window.localStorage.setItem(e,JSON.stringify(n)),null!=(i=t.value)?i:t}if(s)return window.localStorage.removeItem(e),null;if(!n.hasOwnProperty("value"))return n;try{return JSON.parse(n.value)}catch(e){return n.value}}catch(e){return t}}_setCookieValue(e,t,i,n){try{if(this._gdpr&amp;&amp;this._shouldQueue){const n={key:t,value:i,type:e};this._cookieHandlerQueue.push(n)}else{var s;const e=this._getExpiryDate(null!=(s=null==n?void 0:n.expiry)?s:{value:400,unit:"days"});var o;const a=null!=(o=null==n?void 0:n.sameSite)?o:"None";var r;const l=null==(r=null==n?void 0:n.secure)||r,c="object"==typeof i?JSON.stringify(i):i;document.cookie=`${t}=${c}; SameSite=${a}; ${l?"Secure;":""} expires=${e}; path=/`}}catch(e){}}_verifyInternalKey(e){const t=e.startsWith("adthrive_"),i=e.startsWith("adt_");if(!t&amp;&amp;!i&amp;&amp;!L.includes(e))throw new Error('When reading an internal cookie, the key must start with "adthrive_" or "adt_" or be part of the allowed legacy keys.')}constructor(...e){super(...e),this.name="BrowserStorage",this.disable=!1,this.gdprPurposes=[1],this._sessionStorageHandlerQueue=[],this._localStorageHandlerQueue=[],this._cookieHandlerQueue=[],this._shouldQueue=!1}},V=(e,t,i)=&gt;{switch(t){case p.AdDensity:return((e,t)=&gt;{const i=e.adDensityEnabled,n=e.adDensityLayout.pageOverrides.find((e=&gt;!!document.querySelector(e.pageSelector)&amp;&amp;(e[t].onePerViewport||"number"==typeof e[t].adDensity)));return!i||!n})(e,i);case p.StickyOutstream:return(e=&gt;{var t,i,n;const s=null==(n=e.videoPlayers)||null==(i=n.partners)||null==(t=i.stickyOutstream)?void 0:t.blockedPageSelectors;return!s||!document.querySelector(s)})(e);case p.Interstitial:return(e=&gt;{const t=e.adOptions.interstitialBlockedPageSelectors;return!t||!document.querySelector(t)})(e);default:return!0}},j=e=&gt;{const t=window.location.href;return e.some((e=&gt;new RegExp(e,"i").test(t)))},N=e=&gt;{try{return{valid:!0,elements:document.querySelectorAll(e)}}catch(e){return s({valid:!1},e)}},H=e=&gt;""===e?{valid:!0}:N(e),F=(e,t)=&gt;{if(!e)return!1;const i=!!e.enabled,n=null==e.dateStart||Date.now()&gt;=e.dateStart,s=null==e.dateEnd||Date.now()&lt;=e.dateEnd,o=null===e.selector||""!==e.selector&amp;&amp;!!document.querySelector(e.selector),r="mobile"===e.platform&amp;&amp;"mobile"===t,a="desktop"===e.platform&amp;&amp;"desktop"===t,l=null===e.platform||"all"===e.platform||r||a,c="bernoulliTrial"===e.experimentType?1===e.variants.length:(e=&gt;{const t=e.reduce(((e,t)=&gt;t.weight?t.weight+e:e),0);return e.length&gt;0&amp;&amp;e.every((e=&gt;{const t=e.value,i=e.weight;return!(null==t||"number"==typeof t&amp;&amp;isNaN(t)||!i)}))&amp;&amp;100===t})(e.variants);return c||A.error("SiteTest","validateSiteExperiment","experiment presented invalid choices for key:",e.key,e.variants),i&amp;&amp;n&amp;&amp;s&amp;&amp;o&amp;&amp;l&amp;&amp;c},G=["siteId","siteName","adOptions","breakpoints","adUnits"];window.adthrive.windowPerformance=window.adthrive.windowPerformance||new class{resetTimeOrigin(){this._timeOrigin=window.performance.now()}now(){try{return Math.round(window.performance.now()-this._timeOrigin)}catch(e){return 0}}constructor(){this._timeOrigin=0}};const z=window.adthrive.windowPerformance,B=z.now.bind(z);class U{static getScrollTop(){return(window.pageYOffset||document.documentElement.scrollTop)-(document.documentElement.clientTop||0)}static getScrollBottom(){return this.getScrollTop()+(document.documentElement.clientHeight||0)}static shufflePlaylist(e){let t,i,n=e.length;for(;0!==n;)i=Math.floor(Math.random()*e.length),n-=1,t=e[n],e[n]=e[i],e[i]=t;return e}static isMobileLandscape(){return window.matchMedia("(orientation: landscape) and (max-height: 480px)").matches}static playerViewable(e){const t=e.getBoundingClientRect();return this.isMobileLandscape()?window.innerHeight&gt;t.top+t.height/2&amp;&amp;t.top+t.height/2&gt;0:window.innerHeight&gt;t.top+t.height/2}static createQueryString(e){return Object.keys(e).map((t=&gt;`${t}=${e[t]}`)).join("&amp;")}static createEncodedQueryString(e){return Object.keys(e).map((t=&gt;`${t}=${encodeURIComponent(e[t])}`)).join("&amp;")}static setMobileLocation(e){return"top-left"===(e=e||"bottom-right")?e="adthrive-collapse-top-left":"top-right"===e?e="adthrive-collapse-top-right":"bottom-left"===e?e="adthrive-collapse-bottom-left":"bottom-right"===e?e="adthrive-collapse-bottom-right":"top-center"===e&amp;&amp;(e=k()?"adthrive-collapse-top-center":"adthrive-collapse-bottom-right"),e}static addMaxResolutionQueryParam(e){const t=`max_resolution=${k()?"320":"1280"}`,[i,n]=String(e).split("?");return`${i}?${n?n+`&amp;${t}`:t}`}}class W{constructor(e){this._clsOptions=e,this.removeVideoTitleWrapper=n(this._clsOptions.siteAds.adOptions.removeVideoTitleWrapper,!1);const t=this._clsOptions.siteAds.videoPlayers;this.footerSelector=n(t&amp;&amp;t.footerSelector,""),this.players=n(t&amp;&amp;t.players.map((e=&gt;(e.mobileLocation=U.setMobileLocation(e.mobileLocation),e))),[]),this.relatedSettings=t&amp;&amp;t.contextual}}class q{constructor(e){this.mobileStickyPlayerOnPage=!1,this.playlistPlayerAdded=!1,this.relatedPlayerAdded=!1,this.footerSelector="",this.removeVideoTitleWrapper=!1,this.videoAdOptions=new W(e),this.players=this.videoAdOptions.players,this.relatedSettings=this.videoAdOptions.relatedSettings,this.removeVideoTitleWrapper=this.videoAdOptions.removeVideoTitleWrapper,this.footerSelector=this.videoAdOptions.footerSelector}}class Q{checkCommandQueue(){this.adthrive&amp;&amp;this.adthrive.cmd&amp;&amp;this.adthrive.cmd.forEach((e=&gt;{const t=e.toString(),i=this.extractAPICall(t,"disableAds");i&amp;&amp;this.disableAllAds(this.extractPatterns(i));const n=this.extractAPICall(t,"disableContentAds");n&amp;&amp;this.disableContentAds(this.extractPatterns(n));const s=this.extractAPICall(t,"disablePlaylistPlayers");s&amp;&amp;this.disablePlaylistPlayers(this.extractPatterns(s))}))}extractPatterns(e){const t=e.match(/["'](.*?)['"]/g);if(null!==t)return t.map((e=&gt;e.replace(/["']/g,"")))}extractAPICall(e,t){const i=new RegExp(t+"\\((.*?)\\)","g"),n=e.match(i);return null!==n&amp;&amp;n[0]}disableAllAds(e){e&amp;&amp;!j(e)||(this.all=!0,this.reasons.add("all_page"))}disableContentAds(e){e&amp;&amp;!j(e)||(this.content=!0,this.recipe=!0,this.locations.add(t.Content),this.locations.add(t.Recipe),this.reasons.add("content_plugin"))}disablePlaylistPlayers(e){e&amp;&amp;!j(e)||(this.video=!0,this.locations.add("Video"),this.reasons.add("video_page"))}urlHasEmail(e){if(!e)return!1;return null!==/([A-Z0-9._%+-]+(@|%(25)*40)[A-Z0-9.-]+\.[A-Z]{2,})/i.exec(e)}constructor(e){this.adthrive=e,this.all=!1,this.content=!1,this.recipe=!1,this.video=!1,this.locations=new Set,this.reasons=new Set,(this.urlHasEmail(window.location.href)||this.urlHasEmail(window.document.referrer))&amp;&amp;(this.all=!0,this.reasons.add("all_email"));try{this.checkCommandQueue(),null!==document.querySelector(".tag-novideo")&amp;&amp;(this.video=!0,this.locations.add("Video"),this.reasons.add("video_tag"))}catch(e){A.error("ClsDisableAds","checkCommandQueue",e)}}}const K=window.adthriveCLS;K&amp;&amp;(K.disableAds=new Q(window.adthrive));class J{}class Y extends J{get(){if(this._probability&lt;0||this._probability&gt;1)throw new Error(`Invalid probability: ${this._probability}`);return Math.random()&lt;this._probability}constructor(e){super(),this._probability=e}}class Z{get siteFeatureRollouts(){return this._featureRollouts}_isRolloutEnabled(e){if(this._doesRolloutExist(e)){const t=this._featureRollouts[e];let i=t.enabled;const n=t.data;if(this._doesRolloutHaveConfig(e)&amp;&amp;this._isFeatureRolloutConfigType(n)){const e=n.pct_enabled?n.pct_enabled/100:1;i=i&amp;&amp;new Y(e).get()}return i}return!1}isRolloutEnabled(e){var t;const i=null!=(t=this._checkedFeatureRollouts.get(e))?t:this._isRolloutEnabled(e);return void 0===this._checkedFeatureRollouts.get(e)&amp;&amp;this._checkedFeatureRollouts.set(e,i),i}_doesRolloutExist(e){return this._featureRollouts&amp;&amp;!!this._featureRollouts[e]}_doesRolloutHaveConfig(e){return this._doesRolloutExist(e)&amp;&amp;"data"in this._featureRollouts[e]}_isFeatureRolloutConfigType(e){return null!=e&amp;&amp;"object"==typeof e&amp;&amp;!!Object.keys(e).length}getSiteRolloutConfig(e){var t;return this.isRolloutEnabled(e)&amp;&amp;null!=(t=this._featureRollouts[e].data)?t:{}}get enabledFeatureRolloutIds(){return this._enabledFeatureRolloutIds}constructor(){this._featureRollouts={},this._checkedFeatureRollouts=new Map,this._enabledFeatureRolloutIds=[]}}class X extends Z{_setEnabledFeatureRolloutIds(){Object.entries(this._featureRollouts).forEach((([e,t])=&gt;{this.isRolloutEnabled(e)&amp;&amp;void 0!==t.featureRolloutId&amp;&amp;this._enabledFeatureRolloutIds.push(t.featureRolloutId)}))}constructor(e){super(),this._featureRollouts=e,this._setEnabledFeatureRolloutIds()}}class ee{get enabled(){return!!this._clsGlobalData&amp;&amp;!!this._clsGlobalData.siteAds&amp;&amp;((e,t=G)=&gt;{if(!e)return!1;for(let i=0;i&lt;t.length;i++)if(!e[t[i]])return!1;return!0})(this._clsGlobalData.siteAds)}get error(){return!(!this._clsGlobalData||!this._clsGlobalData.error)}set siteAds(e){this._clsGlobalData.siteAds=e}get siteAds(){return this._clsGlobalData.siteAds}set disableAds(e){this._clsGlobalData.disableAds=e}get disableAds(){return this._clsGlobalData.disableAds}set enabledLocations(e){this._clsGlobalData.enabledLocations=e}get enabledLocations(){return this._clsGlobalData.enabledLocations}get injectedFromPlugin(){return this._clsGlobalData.injectedFromPlugin}set injectedFromPlugin(e){this._clsGlobalData.injectedFromPlugin=e}get injectedFromSiteAds(){return this._clsGlobalData.injectedFromSiteAds}set injectedFromSiteAds(e){this._clsGlobalData.injectedFromSiteAds=e}overwriteInjectedSlots(e){this._clsGlobalData.injectedSlots=e}setInjectedSlots(e){this._clsGlobalData.injectedSlots=this._clsGlobalData.injectedSlots||[],this._clsGlobalData.injectedSlots.push(e)}get injectedSlots(){return this._clsGlobalData.injectedSlots}setInjectedVideoSlots(e){this._clsGlobalData.injectedVideoSlots=this._clsGlobalData.injectedVideoSlots||[],this._clsGlobalData.injectedVideoSlots.push(e)}get injectedVideoSlots(){return this._clsGlobalData.injectedVideoSlots}setInjectedScripts(e){this._clsGlobalData.injectedScripts=this._clsGlobalData.injectedScripts||[],this._clsGlobalData.injectedScripts.push(e)}get getInjectedScripts(){return this._clsGlobalData.injectedScripts}setExperiment(e,t,i=!1){this._clsGlobalData.experiments=this._clsGlobalData.experiments||{},this._clsGlobalData.siteExperiments=this._clsGlobalData.siteExperiments||{};(i?this._clsGlobalData.siteExperiments:this._clsGlobalData.experiments)[e]=t}getExperiment(e,t=!1){const i=t?this._clsGlobalData.siteExperiments:this._clsGlobalData.experiments;return i&amp;&amp;i[e]}setWeightedChoiceExperiment(e,t,i=!1){this._clsGlobalData.experimentsWeightedChoice=this._clsGlobalData.experimentsWeightedChoice||{},this._clsGlobalData.siteExperimentsWeightedChoice=this._clsGlobalData.siteExperimentsWeightedChoice||{};(i?this._clsGlobalData.siteExperimentsWeightedChoice:this._clsGlobalData.experimentsWeightedChoice)[e]=t}getWeightedChoiceExperiment(e,t=!1){var i,n;const s=t?null==(i=this._clsGlobalData)?void 0:i.siteExperimentsWeightedChoice:null==(n=this._clsGlobalData)?void 0:n.experimentsWeightedChoice;return s&amp;&amp;s[e]}get branch(){return this._clsGlobalData.branch}get bucket(){return this._clsGlobalData.bucket}set videoDisabledFromPlugin(e){this._clsGlobalData.videoDisabledFromPlugin=e}get videoDisabledFromPlugin(){return this._clsGlobalData.videoDisabledFromPlugin}set targetDensityLog(e){this._clsGlobalData.targetDensityLog=e}get targetDensityLog(){return this._clsGlobalData.targetDensityLog}shouldHalveIOSDensity(){const e=new X(this.enabled&amp;&amp;this._clsGlobalData&amp;&amp;this._clsGlobalData.siteAds&amp;&amp;"featureRollouts"in this._clsGlobalData.siteAds&amp;&amp;this._clsGlobalData.siteAds.featureRollouts||{});return((e=navigator.userAgent)=&gt;/iP(hone|od|ad)/i.test(e))()&amp;&amp;e.isRolloutEnabled("iOS-Resolution")}getTargetDensity(e){return this.shouldHalveIOSDensity()?e/2:e}get removeVideoTitleWrapper(){return this._clsGlobalData.siteAds.adOptions.removeVideoTitleWrapper}constructor(){this._clsGlobalData=window.adthriveCLS}}class te{setExperimentKey(e=!1){this._clsOptions.setExperiment(this.abgroup,this.result,e)}constructor(){this._clsOptions=new ee,this.shouldUseCoreExperimentsConfig=!1}}class ie extends te{get result(){return this._result}run(){return new Y(.1).get()}constructor(){super(),this._result=!1,this._choices=[{choice:!0},{choice:!1}],this.key="RemoveLargeSize",this.abgroup="smhd100",this._result=this.run(),this.setExperimentKey()}}function ne(e,t,i,n){var s,o=arguments.length,r=o&lt;3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a&gt;=0;a--)(s=e[a])&amp;&amp;(r=(o&lt;3?s(r):o&gt;3?s(t,i,r):s(t,i))||r);return o&gt;3&amp;&amp;r&amp;&amp;Object.defineProperty(t,i,r),r}function se(e,t){if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}"function"==typeof SuppressedError&amp;&amp;SuppressedError;const oe=(e,t,i,n,s,o)=&gt;{const r=Math.round(o-s),a=[],l=[];a.push("(",i.map((()=&gt;"%o")).join(", "),")"),l.push(...i),void 0!==n&amp;&amp;(a.push(" =&gt; %o"),l.push(n)),a.push(` %c(${r}ms)`),l.push("color: #999;")},re=(e,t,i)=&gt;{const n=void 0!==i.get?i.get:i.value;return function(...i){try{const s=B(),o=n.apply(this,i);if(o instanceof Promise)return o.then((e=&gt;{const t=B();return oe(0,0,i,e,s,t),Promise.resolve(e)})).catch((i=&gt;{throw i.logged||(A.error(e,t,i),i.logged=!0),i}));{const e=B();return oe(0,0,i,o,s,e),o}}catch(i){throw i.logged||(A.error(e,t,i),i.logged=!0),i}}},ae=(e,t=!1)=&gt;i=&gt;{const n=Object.getOwnPropertyNames(i.prototype).filter((e=&gt;t||0!==e.indexOf("_"))).map((e=&gt;[e,Object.getOwnPropertyDescriptor(i.prototype,e)]));for(const[t,o]of n)void 0!==o&amp;&amp;"function"==typeof o.value?i.prototype[t]=re(e,t,o):void 0!==o&amp;&amp;void 0!==o.get&amp;&amp;"function"==typeof o.get&amp;&amp;Object.defineProperty(i.prototype,t,s({},o,{get:re(e,t,o)}))};class le extends te{get result(){return this._result}run(){return new Y(this.weight).get()}constructor(e){super(),this._result=!1,this.key="ParallaxAdsExperiment",this.abgroup="parallax",this._choices=[{choice:!0},{choice:!1}],this.weight=.5;!!k()&amp;&amp;e.largeFormatsMobile&amp;&amp;(this._result=this.run(),this.setExperimentKey())}}le=ne([ae("ParallaxAdsExperiment"),se("design:type",Function),se("design:paramtypes",["undefined"==typeof AdTypes?Object:AdTypes])],le);class ce extends te{get result(){return this._result}run(){return new Y(1).get()}constructor(){super(),this._result=!1,this._choices=[{choice:!0},{choice:!1}],this.key="mrsf",this.abgroup="mrsf",k()&amp;&amp;(this._result=this.run(),this.setExperimentKey())}}const de=[[728,90],[300,250],[300,600],[320,50],[970,250],[160,600],[300,1050],[336,280],[970,90],[300,50],[320,100],[468,60],[250,250],[120,240],[1,1],[300,300],[552,334],[300,420],[728,250],[320,300],[300,390]],he=[[300,600],[160,600]],ue=new Map([[t.Footer,1],[t.Header,2],[t.Sidebar,3],[t.Content,4],[t.Recipe,5],["Sidebar_sticky",6],["Below Post",7]]),pe=(e,i)=&gt;{const{location:n,sticky:s}=e;if(n===t.Recipe&amp;&amp;i){const{recipeMobile:e,recipeDesktop:t}=i;if(k()&amp;&amp;(null==e?void 0:e.enabled))return!0;if(!k()&amp;&amp;(null==t?void 0:t.enabled))return!0}return n===t.Footer||s},me=(e,i)=&gt;{const s=i.adUnits,o=(e=&gt;!!e.adTypes&amp;&amp;new le(e.adTypes).result)(i),r=new ie,a=new ce;return s.filter((e=&gt;void 0!==e.dynamic&amp;&amp;e.dynamic.enabled)).map((s=&gt;{const l=s.location.replace(/\s+/g,"_"),c="Sidebar"===l?0:2;return{auctionPriority:ue.get(l)||8,location:l,sequence:n(s.sequence,1),sizes:(d=s.adSizes,de.filter((([e,t])=&gt;d.some((([i,n])=&gt;e===i&amp;&amp;t===n))))).filter((i=&gt;((e,[i,n],s,o,r)=&gt;{const{location:a,sequence:l}=e;if(a===t.Footer)return!("phone"===s&amp;&amp;320===i&amp;&amp;100===n);if(a===t.Header)return!(n&gt;100&amp;&amp;o.result);if(a===t.Recipe)return!(r.result&amp;&amp;"phone"===s&amp;&amp;(300===i&amp;&amp;390===n||320===i&amp;&amp;300===n));if(a===t.Sidebar){const t=e.adSizes.some((([,e])=&gt;e&lt;=300)),i=n&gt;300;return!(!i||t)||9===l||(l&amp;&amp;l&lt;=5?!i||e.sticky:!i)}return!0})(s,i,e,r,a))).concat(o&amp;&amp;s.location===t.Content?he:[]),devices:s.devices,pageSelector:n(s.dynamic.pageSelector,"").trim(),elementSelector:n(s.dynamic.elementSelector,"").trim(),position:n(s.dynamic.position,"beforebegin"),max:Math.floor(n(s.dynamic.max,0)),spacing:n(s.dynamic.spacing,0),skip:Math.floor(n(s.dynamic.skip,0)),every:Math.max(Math.floor(n(s.dynamic.every,1)),1),classNames:s.dynamic.classNames||[],sticky:pe(s,i.adOptions.stickyContainerConfig),stickyOverlapSelector:n(s.stickyOverlapSelector,"").trim(),autosize:s.autosize,special:n(s.targeting,[]).filter((e=&gt;"special"===e.key)).reduce(((e,t)=&gt;e.concat(...t.value)),[]),lazy:n(s.dynamic.lazy,!1),lazyMax:n(s.dynamic.lazyMax,c),lazyMaxDefaulted:0!==s.dynamic.lazyMax&amp;&amp;!s.dynamic.lazyMax,name:s.name};var d}))},_e=(e,i)=&gt;{const n=(e=&gt;{let t=e.clientWidth;if(getComputedStyle){const i=getComputedStyle(e,null);t-=parseFloat(i.paddingLeft||"0")+parseFloat(i.paddingRight||"0")}return t})(i),s=e.sticky&amp;&amp;e.location===t.Sidebar;return e.sizes.filter((t=&gt;{const i=!e.autosize||(t[0]&lt;=n||t[0]&lt;=320),o=!s||t[1]&lt;=window.innerHeight-100;return i&amp;&amp;o}))},ge=e=&gt;`adthrive-${e.location.replace("_","-").toLowerCase()}`,ye=e=&gt;`${ge(e)}-${e.sequence}`;function fe(e,t){void 0===t&amp;&amp;(t={});var i=t.insertAt;if(e&amp;&amp;"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css","top"===i&amp;&amp;n.firstChild?n.insertBefore(s,n.firstChild):n.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e))}}const ve=e=&gt;e.some((e=&gt;null!==document.querySelector(e)));class Se extends te{get result(){return this._result}run(){return new Y(1).get()}constructor(){super(),this._result=!1,this._choices=[{choice:!0},{choice:!1}],this.key="RemoveRecipeCap",this.abgroup="rrc",this._result=this.run(),this.setExperimentKey()}}class be extends J{static fromArray(e,t){return new be(e.map((([e,t])=&gt;({choice:e,weight:t}))),t)}addChoice(e,t){this._choices.push({choice:e,weight:t})}get(){const e=(t=0,i=100,Math.random()*(i-t)+t);var t,i;let n=0;for(const{choice:t,weight:i}of this._choices)if(n+=i,n&gt;=e)return t;return this._default}get totalWeight(){return this._choices.reduce(((e,{weight:t})=&gt;e+t),0)}constructor(e=[],t){super(),this._choices=e,this._default=t}}const we=()=&gt;(e,t,i)=&gt;{const n=i.value;n&amp;&amp;(i.value=function(...e){const t=(e=&gt;{if(null===e)return null;const t=e.map((({choice:e})=&gt;e));return(e=&gt;{let t=5381,i=e.length;for(;i;)t=33*t^e.charCodeAt(--i);return t&gt;&gt;&gt;0})(JSON.stringify(t)).toString(16)})(this._choices),i=this._expConfigABGroup?this._expConfigABGroup:this.abgroup,s=i?i.toLowerCase():this.key?this.key.toLowerCase():"",o=t?`${s}_${t}`:s,r=this.localStoragePrefix?`${this.localStoragePrefix}-${o}`:o,a=T.readInternalLocalStorage("adthrive_branch");!1===(a&amp;&amp;a.enabled)&amp;&amp;T.deleteLocalStorage(r);const l=(()=&gt;n.apply(this,e))(),c=(d=this._choices,h=l,null!=(p=null==(u=d.find((({choice:e})=&gt;e===h)))?void 0:u.weight)?p:null);var d,h,u,p;const[m,_]=M(r,l,c,{value:24,unit:"hours"});return this._stickyResult=m,this._stickyWeight=_,m})};class Ce{get enabled(){return void 0!==this.experimentConfig}_isValidResult(e,t=()=&gt;!0){return t()&amp;&amp;I(e)}}class xe extends Ce{_isValidResult(e){return super._isValidResult(e,(()=&gt;this._resultValidator(e)||"control"===e))}run(){if(!this.enabled)return A.error("CLSWeightedChoiceSiteExperiment","run","() =&gt; %o","No experiment config found. Defaulting to control."),"control";if(!this._mappedChoices||0===this._mappedChoices.length)return A.error("CLSWeightedChoiceSiteExperiment","run","() =&gt; %o","No experiment variants found. Defaulting to control."),"control";const e=new be(this._mappedChoices).get();return this._isValidResult(e)?e:(A.error("CLSWeightedChoiceSiteExperiment","run","() =&gt; %o","Invalid result from experiment choices. Defaulting to control."),"control")}constructor(...e){super(...e),this._resultValidator=()=&gt;!0}}class Ae{getSiteExperimentByKey(e){const t=this.siteExperiments.filter((t=&gt;t.key.toLowerCase()===e.toLowerCase()))[0],i=E("at_site_features"),n=(s=(null==t?void 0:t.variants[1])?null==t?void 0:t.variants[1].value:null==t?void 0:t.variants[0].value,o=i[e],typeof s==typeof o);var s,o;return t&amp;&amp;i[e]&amp;&amp;n&amp;&amp;(t.variants=[{displayName:"test",value:i[e],weight:100,id:0}]),t}constructor(e){var t,i;this.siteExperiments=[],this._clsOptions=e,this._device=k()?"mobile":"desktop",this.siteExperiments=null!=(i=null==(t=this._clsOptions.siteAds.siteExperiments)?void 0:t.filter((e=&gt;{const t=e.key,i=F(e,this._device),n=V(this._clsOptions.siteAds,t,this._device);return i&amp;&amp;n})))?i:[]}}class Oe extends xe{get result(){return this._result}run(){if(!this.enabled)return A.error("CLSAdLayoutSiteExperiment","run","() =&gt; %o","No experiment config found. Defaulting to empty class name."),"";const e=new be(this._mappedChoices).get();return this._isValidResult(e)?e:(A.error("CLSAdLayoutSiteExperiment","run","() =&gt; %o","Invalid result from experiment choices. Defaulting to empty class name."),"")}_mapChoices(){return this._choices.map((({weight:e,value:t})=&gt;({weight:e,choice:t})))}constructor(e){super(),this._choices=[],this._mappedChoices=[],this._result="",this._resultValidator=e=&gt;"string"==typeof e,this.key=p.AdLayout,this.abgroup=p.AdLayout,this._clsSiteExperiments=new Ae(e),this.experimentConfig=this._clsSiteExperiments.getSiteExperimentByKey(this.key),this.enabled&amp;&amp;this.experimentConfig&amp;&amp;(this._choices=this.experimentConfig.variants,this._mappedChoices=this._mapChoices(),this._result=this.run(),e.setWeightedChoiceExperiment(this.abgroup,this._result,!0))}}ne([we(),se("design:type",Function),se("design:paramtypes",[]),se("design:returntype",void 0)],Oe.prototype,"run",null);class Ee extends xe{get result(){return this._result}run(){if(!this.enabled)return A.error("CLSTargetAdDensitySiteExperiment","run","() =&gt; %o","No experiment config found. Defaulting to control."),"control";const e=new be(this._mappedChoices).get();return this._isValidResult(e)?e:(A.error("CLSTargetAdDensitySiteExperiment","run","() =&gt; %o","Invalid result from experiment choices. Defaulting to control."),"control")}_mapChoices(){return this._choices.map((({weight:e,value:t})=&gt;({weight:e,choice:"number"==typeof t?(t||0)/100:"control"})))}constructor(e){super(),this._choices=[],this._mappedChoices=[],this._result="control",this._resultValidator=e=&gt;"number"==typeof e,this.key=p.AdDensity,this.abgroup=p.AdDensity,this._clsSiteExperiments=new Ae(e),this.experimentConfig=this._clsSiteExperiments.getSiteExperimentByKey(this.key),this.enabled&amp;&amp;this.experimentConfig&amp;&amp;(this._choices=this.experimentConfig.variants,this._mappedChoices=this._mapChoices(),this._result=this.run(),e.setWeightedChoiceExperiment(this.abgroup,this._result,!0))}}ne([we(),se("design:type",Function),se("design:paramtypes",[]),se("design:returntype",void 0)],Ee.prototype,"run",null);class Pe extends te{get result(){return this._result}run(){return new Y(this.weight).get()}constructor(){super(),this._result=!1,this.abgroup="scae",this.key="StickyContainerAds",this._choices=[{choice:!0},{choice:!1}],this.weight=.99,this._result=this.run(),this.setExperimentKey()}}Pe=ne([ae("StickyContainerAdsExperiment"),se("design:type",Function),se("design:paramtypes",[])],Pe);class ke extends te{get result(){return this._result}run(){return new Y(this.weight).get()}constructor(){super(),this._result=!1,this.abgroup="scre",this.key="StickyContainerRecipe",this._choices=[{choice:!0},{choice:!1}],this.weight=.99,this._result=this.run(),this.setExperimentKey()}}ke=ne([ae("StickyContainerRecipeExperiment"),se("design:type",Function),se("design:paramtypes",[])],ke);const De="250px";class Re{start(){try{var e,t;(e=&gt;{const t=document.body,i=`adthrive-device-${e}`;if(!t.classList.contains(i))try{t.classList.add(i)}catch(e){A.error("BodyDeviceClassComponent","init",{message:e.message});const t="classList"in document.createElement("_");A.error("BodyDeviceClassComponent","init.support",{support:t})}})(this._device);const s=new Oe(this._clsOptions);if(s.enabled){const e=s.result,t=e.startsWith(".")?e.substring(1):e;if((e=&gt;/^[-_a-zA-Z]+[-_a-zA-Z0-9]*$/.test(e))(t))try{document.body.classList.add(t)}catch(e){A.error("ClsDynamicAdsInjector","start",`Uncaught CSS Class error: ${e}`)}else A.error("ClsDynamicAdsInjector","start",`Invalid class name: ${t}`)}const o=me(this._device,this._clsOptions.siteAds).filter((e=&gt;this._locationEnabled(e))).filter((e=&gt;{return t=e,i=this._device,t.devices.includes(i);var t,i})).filter((e=&gt;{return 0===(t=e).pageSelector.length||null!==document.querySelector(t.pageSelector);var t})),r=this.inject(o);var i,n;if(null==(t=this._clsOptions.siteAds.adOptions.stickyContainerConfig)||null==(e=t.content)?void 0:e.enabled)if(this._stickyContainerAdsExperiment.result&amp;&amp;!ve(this._clsOptions.siteAds.adOptions.stickyContainerConfig.blockedSelectors||[]))fe(`\n  .adthrive-device-phone .adthrive-sticky-content {\n    height: 450px !important;\n    margin-bottom: 100px !important;\n  }\n  .adthrive-content.adthrive-sticky {\n    position: -webkit-sticky;\n    position: sticky !important;\n    top: 42px !important;\n    margin-top: 42px !important;\n  }\n  .adthrive-content.adthrive-sticky:after {\n    content: "â€” Advertisement. Scroll down to continue. â€”";\n    font-size: 10pt;\n    margin-top: 5px;\n    margin-bottom: 5px;\n    display:block;\n    color: #888;\n  }\n  .adthrive-sticky-container {\n    position: relative;\n    display: flex;\n    flex-direction: column;\n    justify-content: flex-start;\n    align-items: center;\n    min-height:${(null==(n=this._clsOptions.siteAds.adOptions.stickyContainerConfig)||null==(i=n.content)?void 0:i.minHeight)||400}px !important;\n    margin: 10px 0 10px 0;\n    background-color: #FAFAFA;\n    padding-bottom:0px;\n  }\n  `);r.forEach((e=&gt;this._clsOptions.setInjectedSlots(e)))}catch(e){A.error("ClsDynamicAdsInjector","start",e)}}inject(e,i=document){this._densityDevice="desktop"===this._device?m.Desktop:m.Mobile,this._overrideDefaultAdDensitySettingsWithSiteExperiment();const s=this._clsOptions.siteAds,o=n(s.adDensityEnabled,!0),r=s.adDensityLayout&amp;&amp;o,a=e.filter((e=&gt;r?e.location!==t.Content:e)),l=e.filter((e=&gt;r?e.location===t.Content:null));return[...a.length?this._injectNonDensitySlots(a,i):[],...l.length?this._injectDensitySlots(l,i):[]]}_injectNonDensitySlots(e,i=document){var n;const s=[],o=[];if(this._stickyContainerRecipeExperiment.result&amp;&amp;e.some((e=&gt;e.location===t.Recipe&amp;&amp;e.sticky))&amp;&amp;!ve((null==(n=this._clsOptions.siteAds.adOptions.stickyContainerConfig)?void 0:n.blockedSelectors)||[])){var r,a;const e=this._clsOptions.siteAds.adOptions.stickyContainerConfig;(e=&gt;{fe(`\n  .adthrive-recipe.adthrive-sticky {\n    position: -webkit-sticky;\n    position: sticky !important;\n    top: 42px !important;\n    margin-top: 42px !important;\n  }\n  .adthrive-recipe-sticky-container {\n    position: relative;\n    display: flex;\n    flex-direction: column;\n    justify-content: flex-start;\n    align-items: center;\n    min-height:${e||400}px !important;\n    margin: 10px 0 10px 0;\n    background-color: #FAFAFA;\n    padding-bottom:0px;\n  }\n  `)})("phone"===this._device?null==e||null==(r=e.recipeMobile)?void 0:r.minHeight:null==e||null==(a=e.recipeDesktop)?void 0:a.minHeight)}for(const t of e)this._insertNonDensityAds(t,s,o,i);return o.forEach((({location:e,element:t})=&gt;{t.style.minHeight=this.locationToMinHeight[e]})),s}_injectDensitySlots(e,t=document){try{this._calculateMainContentHeightAndAllElements(e,t)}catch(e){return[]}const{onePerViewport:i,targetAll:n,targetDensityUnits:s,combinedMax:o,numberOfUnits:r}=this._getDensitySettings(e,t);return this._absoluteMinimumSpacingByDevice=i?window.innerHeight:this._absoluteMinimumSpacingByDevice,r?(this._adInjectionMap.filterUsed(),this._findElementsForAds(r,i,n,o,s,t),this._insertAds()):[]}_overrideDefaultAdDensitySettingsWithSiteExperiment(){var e;if(null==(e=this._clsTargetAdDensitySiteExperiment)?void 0:e.enabled){const e=this._clsTargetAdDensitySiteExperiment.result;"number"==typeof e&amp;&amp;(this._clsOptions.siteAds.adDensityEnabled=!0,this._clsOptions.siteAds.adDensityLayout[this._densityDevice].adDensity=e)}}_getDensitySettings(e,t=document){const i=this._clsOptions.siteAds.adDensityLayout,n=this._determineOverrides(i.pageOverrides),s=n.length?n[0]:i[this._densityDevice],o=this._clsOptions.getTargetDensity(s.adDensity),r=s.onePerViewport,a=this._shouldTargetAllEligible(o),l=this._getTargetDensityUnits(o,a),c=this._getCombinedMax(e,t),d=Math.min(this._totalAvailableElements.length,l,...c&gt;0?[c]:[]);return this._pubLog={onePerViewport:r,targetDensity:o,targetDensityUnits:l,combinedMax:c},{onePerViewport:r,targetAll:a,targetDensityUnits:l,combinedMax:c,numberOfUnits:d}}_determineOverrides(e){return e.filter((e=&gt;{const t=H(e.pageSelector);return""===e.pageSelector||t.elements&amp;&amp;t.elements.length})).map((e=&gt;e[this._densityDevice]))}_shouldTargetAllEligible(e){return e===this._densityMax}_getTargetDensityUnits(e,t){return t?this._totalAvailableElements.length:Math.floor(e*this._mainContentHeight/(1-e)/this._minDivHeight)-this._recipeCount}_getCombinedMax(e,t=document){return n(e.filter((e=&gt;{let i;try{i=t.querySelector(e.elementSelector)}catch(e){}return i})).map((e=&gt;Number(e.max)+Number(e.lazyMaxDefaulted?0:e.lazyMax))).sort(((e,t)=&gt;t-e))[0],0)}_elementLargerThanMainContent(e){return e.offsetHeight&gt;=this._mainContentHeight&amp;&amp;this._totalAvailableElements.length&gt;1}_elementDisplayNone(e){const t=window.getComputedStyle(e,null).display;return t&amp;&amp;"none"===t||"none"===e.style.display}_isBelowMaxes(e,t){return this._adInjectionMap.map.length&lt;e&amp;&amp;this._adInjectionMap.map.length&lt;t}_findElementsForAds(e,t,i,n,s,o=document){this._clsOptions.targetDensityLog={onePerViewport:t,combinedMax:n,targetDensityUnits:s,targetDensityPercentage:this._pubLog.targetDensity,mainContentHeight:this._mainContentHeight,recipeCount:this._recipeCount,numberOfEls:this._totalAvailableElements.length};const r=e=&gt;{for(const{dynamicAd:t,element:r}of this._totalAvailableElements)if(this._logDensityInfo(r,t.elementSelector,e),!(!i&amp;&amp;this._elementLargerThanMainContent(r)||this._elementDisplayNone(r))){if(!this._isBelowMaxes(n,s))break;this._checkElementSpacing({dynamicAd:t,element:r,insertEvery:e,targetAll:i,target:o})}!this._usedAbsoluteMinimum&amp;&amp;this._smallerIncrementAttempts&lt;5&amp;&amp;(++this._smallerIncrementAttempts,r(this._getSmallerIncrement(e)))},a=this._getInsertEvery(e,t,s);r(a)}_getSmallerIncrement(e){let t=.6*e;return t&lt;=this._absoluteMinimumSpacingByDevice&amp;&amp;(t=this._absoluteMinimumSpacingByDevice,this._usedAbsoluteMinimum=!0),t}_insertNonDensityAds(e,i,n,s=document){let o=0,r=0,a=0;e.spacing&gt;0&amp;&amp;(o=window.innerHeight*e.spacing,r=o);const l=this._repeatDynamicAds(e),c=this.getElements(e.elementSelector,s);e.skip;for(let d=e.skip;d&lt;c.length&amp;&amp;!(a+1&gt;l.length);d+=e.every){let h=c[d];if(o&gt;0){const{bottom:e}=O(h);if(e&lt;=r)continue;r=e+o}const u=l[a],p=`${u.location}_${u.sequence}`;i.some((e=&gt;e.name===p))&amp;&amp;(a+=1);const m=this.getDynamicElementId(u),_=ge(e),g=ye(e),y=[e.location===t.Sidebar&amp;&amp;e.sticky&amp;&amp;e.sequence&amp;&amp;e.sequence&lt;=5?"adthrive-sticky-sidebar":"",this._stickyContainerRecipeExperiment.result&amp;&amp;e.location===t.Recipe&amp;&amp;e.sticky?"adthrive-recipe-sticky-container":"",_,g,...e.classNames],f=this.addAd(h,m,e.position,y);if(f){const o=_e(u,f);if(o.length){const r={clsDynamicAd:e,dynamicAd:u,element:f,sizes:o,name:p,infinite:s!==document};i.push(r),n.push({location:u.location,element:f}),e.location===t.Recipe&amp;&amp;++this._recipeCount,a+=1}h=f}}}_insertAds(){const e=[];return this._adInjectionMap.filterUsed(),this._adInjectionMap.map.forEach((({el:t,dynamicAd:i,target:n},s)=&gt;{const o=Number(i.sequence)+s,r=i.max,a=i.lazy&amp;&amp;o&gt;r;i.sequence=o,i.lazy=a;const l=this._addContentAd(t,i,n);l&amp;&amp;(i.used=!0,e.push(l))})),e}_getInsertEvery(e,t,i){let n=this._absoluteMinimumSpacingByDevice;return this._moreAvailableElementsThanUnitsToInject(i,e)?(this._usedAbsoluteMinimum=!1,n=this._useWiderSpacing(i,e)):(this._usedAbsoluteMinimum=!0,n=this._useSmallestSpacing(t)),t&amp;&amp;window.innerHeight&gt;n?window.innerHeight:n}_useWiderSpacing(e,t){return this._mainContentHeight/Math.min(e,t)}_useSmallestSpacing(e){return e&amp;&amp;window.innerHeight&gt;this._absoluteMinimumSpacingByDevice?window.innerHeight:this._absoluteMinimumSpacingByDevice}_moreAvailableElementsThanUnitsToInject(e,t){return this._totalAvailableElements.length&gt;e||this._totalAvailableElements.length&gt;t}_logDensityInfo(e,t,i){const{onePerViewport:n,targetDensity:s,targetDensityUnits:o,combinedMax:r}=this._pubLog;this._totalAvailableElements.length}_checkElementSpacing({dynamicAd:e,element:t,insertEvery:i,targetAll:n,target:o=document}){(this._isFirstAdInjected()||this._hasProperSpacing(t,e,n,i))&amp;&amp;this._markSpotForContentAd(t,s({},e),o)}_isFirstAdInjected(){return!this._adInjectionMap.map.length}_markSpotForContentAd(e,t,i=document){const n="beforebegin"===t.position||"afterbegin"===t.position;this._adInjectionMap.add(e,this._getElementCoords(e,n),t,i),this._adInjectionMap.sort()}_hasProperSpacing(e,i,n,s){const o="beforebegin"===i.position||"afterbegin"===i.position,r="beforeend"===i.position||"afterbegin"===i.position,a=n||this._isElementFarEnoughFromOtherAdElements(e,s,o),l=r||this._isElementNotInRow(e,o),c=-1===e.id.indexOf(`AdThrive_${t.Below_Post}`);return a&amp;&amp;l&amp;&amp;c}_isElementFarEnoughFromOtherAdElements(e,t,i){const n=this._getElementCoords(e,i);let s=!1;for(let e=0;e&lt;this._adInjectionMap.map.length;e++){const i=this._adInjectionMap.map[e].coords,o=this._adInjectionMap.map[e+1]&amp;&amp;this._adInjectionMap.map[e+1].coords;if(s=n-t&gt;i&amp;&amp;(!o||n+t&lt;o),s)break}return s}_isElementNotInRow(e,t){const i=e.previousElementSibling,n=e.nextElementSibling,s=t?!i&amp;&amp;n||i&amp;&amp;e.tagName!==i.tagName?n:i:n;return!(!s||0!==e.getBoundingClientRect().height)||(!s||e.getBoundingClientRect().top!==s.getBoundingClientRect().top)}_calculateMainContentHeightAndAllElements(e,t=document){const[i,n]=((e,t,i=document)=&gt;{const[n,s]=D(e,t,i);if(0===n.length)throw Error("No Main Content Elements Found");return[Array.from(n).reduce(((e,t)=&gt;t.offsetHeight&gt;e.offsetHeight?t:e))||document.body,s]})(e,this._adInjectionMap,t);this._mainContentDiv=i,this._totalAvailableElements=n,this._mainContentHeight=((e,t="div #comments, section .comments")=&gt;{const i=e.querySelector(t);return i?e.offsetHeight-i.offsetHeight:e.offsetHeight})(this._mainContentDiv)}_getElementCoords(e,t=!1){const i=e.getBoundingClientRect();return(t?i.top:i.bottom)+window.scrollY}_addContentAd(e,t,i=document){var n,s;let o=null;const r=ge(t),a=ye(t),l=(null==(s=this._clsOptions.siteAds.adOptions.stickyContainerConfig)||null==(n=s.content)?void 0:n.enabled)&amp;&amp;this._stickyContainerAdsExperiment.result?"adthrive-sticky-container":"",c=this.addAd(e,this.getDynamicElementId(t),t.position,[l,r,a,...t.classNames]);if(c){const e=_e(t,c);if(e.length){c.style.minHeight=this.locationToMinHeight[t.location];o={clsDynamicAd:t,dynamicAd:t,element:c,sizes:e,name:`${t.location}_${t.sequence}`,infinite:i!==document}}}return o}getDynamicElementId(e){return`AdThrive_${e.location}_${e.sequence}_${this._device}`}getElements(e,t=document){return t.querySelectorAll(e)}addAd(e,t,i,n=[]){if(!document.getElementById(t)){const s=`&lt;div id="${t}" class="adthrive-ad ${n.join(" ")}"&gt;&lt;/div&gt;`;e.insertAdjacentHTML(i,s)}return document.getElementById(t)}_repeatDynamicAds(e){const i=[],o=this._removeRecipeCapExperiment.result&amp;&amp;e.location===t.Recipe?99:this.locationMaxLazySequence.get(e.location),r=e.lazy?n(o,0):0,a=e.max,l=e.lazyMax,c=0===r&amp;&amp;e.lazy?a+l:Math.min(Math.max(r-e.sequence+1,0),a+l),d=Math.max(a,c);for(let t=0;t&lt;d;t++){const n=Number(e.sequence)+t;if("Recipe_1"!==e.name||5!==n){const o=e.lazy&amp;&amp;t&gt;=a;i.push(s({},e,{sequence:n,lazy:o}))}}return i}_locationEnabled(e){const t=this._clsOptions.enabledLocations.includes(e.location),i=this._clsOptions.disableAds&amp;&amp;this._clsOptions.disableAds.all||document.body.classList.contains("adthrive-disable-all"),n=!document.body.classList.contains("adthrive-disable-content")&amp;&amp;!this._clsOptions.disableAds.reasons.has("content_plugin");return t&amp;&amp;!i&amp;&amp;n}constructor(e,n){this._clsOptions=e,this._adInjectionMap=n,this._recipeCount=0,this._mainContentHeight=0,this._mainContentDiv=null,this._totalAvailableElements=[],this._minDivHeight=250,this._densityDevice=m.Desktop,this._pubLog={onePerViewport:!1,targetDensity:0,targetDensityUnits:0,combinedMax:0},this._densityMax=.99,this._smallerIncrementAttempts=0,this._absoluteMinimumSpacingByDevice=250,this._usedAbsoluteMinimum=!1,this._infPageEndOffset=0,this.locationMaxLazySequence=new Map([[t.Recipe,5]]),this.locationToMinHeight={Below_Post:De,Content:De,Recipe:De,Sidebar:De};const{tablet:s,desktop:o}=this._clsOptions.siteAds.breakpoints;this._device=((e,t)=&gt;{const i=window.innerWidth;return i&gt;=t?"desktop":i&gt;=e?"tablet":"phone"})(s,o),this._config=new i(e),this._clsOptions.enabledLocations=this._config.enabledLocations,this._clsTargetAdDensitySiteExperiment=this._clsOptions.siteAds.siteExperiments?new Ee(this._clsOptions):null,this._stickyContainerAdsExperiment=new Pe,this._stickyContainerRecipeExperiment=new ke,this._removeRecipeCapExperiment=new Se}}class Ie{add(e,t,i,n=document){this._map.push({el:e,coords:t,dynamicAd:i,target:n})}get map(){return this._map}sort(){this._map.sort((({coords:e},{coords:t})=&gt;e-t))}filterUsed(){this._map=this._map.filter((({dynamicAd:e})=&gt;!e.used))}reset(){this._map=[]}constructor(){this._map=[]}}class Me extends Ie{}function Le(e,t){if(null==e)return{};var i,n,s={},o=Object.keys(e);for(n=0;n&lt;o.length;n++)i=o[n],t.indexOf(i)&gt;=0||(s[i]=e[i]);return s}class Te{get enabled(){return!0}}class Ve extends Te{setPotentialPlayersMap(){const e=this._videoConfig.players||[],t=this._filterPlayerMap(),i=e.filter((e=&gt;"stationaryRelated"===e.type&amp;&amp;e.enabled));return t.stationaryRelated=i,this._potentialPlayerMap=t,this._potentialPlayerMap}_filterPlayerMap(){const e=this._videoConfig.players,t={stickyRelated:[],stickyPlaylist:[],stationaryRelated:[]};return e&amp;&amp;e.length?e.filter((e=&gt;{var t;return null==(t=e.devices)?void 0:t.includes(this._device)})).reduce(((e,t)=&gt;(e[t.type]||(A.event(this._component,"constructor","Unknown Video Player Type detected",t.type),e[t.type]=[]),t.enabled&amp;&amp;e[t.type].push(t),e)),t):t}_checkPlayerSelectorOnPage(e){const t=this._potentialPlayerMap[e].map((e=&gt;({player:e,playerElement:this._getPlacementElement(e)})));return t.length?t[0]:{player:null,playerElement:null}}_getOverrideElement(e,t,i){if(e&amp;&amp;t){const n=document.createElement("div");t.insertAdjacentElement(e.position,n),i=n}else{const{player:e,playerElement:t}=this._checkPlayerSelectorOnPage("stickyPlaylist");if(e&amp;&amp;t){const n=document.createElement("div");t.insertAdjacentElement(e.position,n),i=n}}return i}_shouldOverrideElement(e){const t=e.getAttribute("override-embed");return"true"===t||"false"===t?"true"===t:!!this._videoConfig.relatedSettings&amp;&amp;this._videoConfig.relatedSettings.overrideEmbedLocation}_checkPageSelector(e,t,i=[]){if(e&amp;&amp;t&amp;&amp;0===i.length){return!("/"===window.location.pathname)&amp;&amp;A.event("VideoUtils","getPlacementElement",new Error(`PSNF: ${e} does not exist on the page`)),!1}return!0}_getElementSelector(e,t,i){return t&amp;&amp;t.length&gt;i?t[i]:(A.event("VideoUtils","getPlacementElement",new Error(`ESNF: ${e} does not exist on the page`)),null)}_getPlacementElement(e){const{pageSelector:t,elementSelector:i,skip:n}=e,s=H(t),{valid:o,elements:r}=s,a=Le(s,["valid","elements"]),l=N(i),{valid:c,elements:d}=l,h=Le(l,["valid","elements"]);if(""!==t&amp;&amp;!o)return A.error("VideoUtils","getPlacementElement",new Error(`${t} is not a valid selector`),a),null;if(!c)return A.error("VideoUtils","getPlacementElement",new Error(`${i} is not a valid selector`),h),null;if(!this._checkPageSelector(t,o,r))return null;return this._getElementSelector(i,d,n)||null}_getEmbeddedPlayerType(e){let t=e.getAttribute("data-player-type");return t&amp;&amp;"default"!==t||(t=this._videoConfig.relatedSettings?this._videoConfig.relatedSettings.defaultPlayerType:"static"),this._stickyRelatedOnPage&amp;&amp;(t="static"),t}_getMediaId(e){const t=e.getAttribute("data-video-id");return!!t&amp;&amp;(this._relatedMediaIds.push(t),t)}_createRelatedPlayer(e,t,i,n){"collapse"===t?this._createCollapsePlayer(e,i):"static"===t&amp;&amp;this._createStaticPlayer(e,i,n)}_createCollapsePlayer(e,t){const{player:i,playerElement:n}=this._checkPlayerSelectorOnPage("stickyRelated"),o=i||this._potentialPlayerMap.stationaryRelated[0];if(o&amp;&amp;o.playerId){this._shouldOverrideElement(t)&amp;&amp;(t=this._getOverrideElement(i,n,t)),t=document.querySelector(`#cls-video-container-${e} &gt; div`)||t,this._createStickyRelatedPlayer(s({},o,{mediaId:e}),t)}else A.error(this._component,"_createCollapsePlayer","No video player found")}_createStaticPlayer(e,t,i){if(this._potentialPlayerMap.stationaryRelated.length&amp;&amp;this._potentialPlayerMap.stationaryRelated[0].playerId){const n=this._potentialPlayerMap.stationaryRelated[0];this._createStationaryRelatedPlayer(s({},n,{mediaOrPlaylistId:e}),t,i)}else A.error(this._component,"_createStaticPlayer","No video player found")}_shouldRunAutoplayPlayers(){return!(!this._isVideoAllowedOnPage()||!this._potentialPlayerMap.stickyRelated.length&amp;&amp;!this._potentialPlayerMap.stickyPlaylist.length)}_determineAutoplayPlayers(){const e=this._component,t="VideoManagerComponent"===e,i=this._context;if(this._stickyRelatedOnPage)return void A.event(e,"stickyRelatedOnPage",t&amp;&amp;{device:i&amp;&amp;i.device,isDesktop:this._device}||{});const{player:n,playerElement:s}=this._checkPlayerSelectorOnPage("stickyPlaylist");n&amp;&amp;n.playerId&amp;&amp;n.playlistId&amp;&amp;s?this._createPlaylistPlayer(n,s):Math.random()&lt;.01&amp;&amp;setTimeout((()=&gt;{A.event(e,"noStickyPlaylist",t&amp;&amp;{vendor:"none",device:i&amp;&amp;i.device,isDesktop:this._device}||{})}),1e3)}_initializeRelatedPlayers(e){const t=new Map;for(let i=0;i&lt;e.length;i++){const n=e[i],s=n.offsetParent,o=this._getEmbeddedPlayerType(n),r=this._getMediaId(n);if(s&amp;&amp;r){const e=(t.get(r)||0)+1;t.set(r,e),this._createRelatedPlayer(r,o,n,e)}}}constructor(e,t,i){super(),this._videoConfig=e,this._component=t,this._context=i,this._stickyRelatedOnPage=!1,this._relatedMediaIds=[],this._device=P()?"desktop":"mobile",this._potentialPlayerMap=this.setPotentialPlayersMap()}}class je extends Ve{init(){this._initializePlayers()}_wrapVideoPlayerWithCLS(e,t,i=0){if(e.parentNode){const n=e.offsetWidth*(9/16),s=this._createGenericCLSWrapper(n,t,i);return e.parentNode.insertBefore(s,e),s.appendChild(e),s}return null}_createGenericCLSWrapper(e,t,i){const n=document.createElement("div");return n.id=`cls-video-container-${t}`,n.className="adthrive",n.style.minHeight=`${e+i}px`,n}_getTitleHeight(){const e=document.createElement("h3");e.style.margin="10px 0",e.innerText="Title",e.style.visibility="hidden",document.body.appendChild(e);const t=window.getComputedStyle(e),i=parseInt(t.height,10),n=parseInt(t.marginTop,10),s=parseInt(t.marginBottom,10);return document.body.removeChild(e),Math.min(i+s+n,50)}_initializePlayers(){const e=document.querySelectorAll(this._IN_POST_SELECTOR);e.length&amp;&amp;this._initializeRelatedPlayers(e),this._shouldRunAutoplayPlayers()&amp;&amp;this._determineAutoplayPlayers()}_createStationaryRelatedPlayer(e,t,i){const n="mobile"===this._device?[400,225]:[640,360],s=_.Video_In_Post_ClicktoPlay_SoundOn;if(t&amp;&amp;e.mediaOrPlaylistId){const o=`${e.mediaOrPlaylistId}_${i}`,r=this._wrapVideoPlayerWithCLS(t,o);this._playersAddedFromPlugin.push(e.mediaOrPlaylistId),r&amp;&amp;this._clsOptions.setInjectedVideoSlots({playerId:e.playerId,playerName:s,playerSize:n,element:r,type:"stationaryRelated"})}}_createStickyRelatedPlayer(e,t){const i="mobile"===this._device?[400,225]:[640,360],n=_.Video_Individual_Autoplay_SOff;if(this._stickyRelatedOnPage=!0,this._videoConfig.mobileStickyPlayerOnPage="mobile"===this._device,t&amp;&amp;e.position&amp;&amp;e.mediaId){const s=document.createElement("div");t.insertAdjacentElement(e.position,s);const o=this._getTitleHeight(),r=this._wrapVideoPlayerWithCLS(s,e.mediaId,this._WRAPPER_BAR_HEIGHT+o);this._playersAddedFromPlugin.push(e.mediaId),r&amp;&amp;this._clsOptions.setInjectedVideoSlots({playlistId:e.playlistId,playerId:e.playerId,playerSize:i,playerName:n,element:s,type:"stickyRelated"})}}_createPlaylistPlayer(e,t){const i=e.playlistId,n="mobile"===this._device?_.Video_Coll_SOff_Smartphone:_.Video_Collapse_Autoplay_SoundOff,s="mobile"===this._device?[400,225]:[640,360];this._videoConfig.mobileStickyPlayerOnPage=!0;const o=document.createElement("div");t.insertAdjacentElement(e.position,o);let r=this._WRAPPER_BAR_HEIGHT;e.title&amp;&amp;(r+=this._getTitleHeight());const a=this._wrapVideoPlayerWithCLS(o,i,r);this._playersAddedFromPlugin.push(`playlist-${i}`),a&amp;&amp;this._clsOptions.setInjectedVideoSlots({playlistId:e.playlistId,playerId:e.playerId,playerSize:s,playerName:n,element:o,type:"stickyPlaylist"})}_isVideoAllowedOnPage(){const e=this._clsOptions.disableAds;if(e&amp;&amp;e.video){let t="";e.reasons.has("video_tag")?t="video tag":e.reasons.has("video_plugin")?t="video plugin":e.reasons.has("video_page")&amp;&amp;(t="command queue");const i=t?"ClsVideoInsertionMigrated":"ClsVideoInsertion";return A.error(i,"isVideoAllowedOnPage",new Error(`DBP: Disabled by publisher via ${t||"other"}`)),!1}return!this._clsOptions.videoDisabledFromPlugin}constructor(e,t){super(e,"ClsVideoInsertion"),this._videoConfig=e,this._clsOptions=t,this._IN_POST_SELECTOR=".adthrive-video-player",this._WRAPPER_BAR_HEIGHT=36,this._playersAddedFromPlugin=[],t.removeVideoTitleWrapper&amp;&amp;(this._WRAPPER_BAR_HEIGHT=0)}}const Ne=()=&gt;{var e,t,i;return(e="generator",(null!=(i=null==(t=document.querySelector(`meta[name=${e}]`))?void 0:t.content)?i:null)||"").includes("Wix")||!!window.wixPerformanceMeasurements||!!window["wix-perf-measure"]||!!window.wixDevelopersAnalytics};class He{start(){window.requestAnimationFrame&amp;&amp;this._adthrive&amp;&amp;this._adthrive.siteAds&amp;&amp;this._adthrive.siteAds.adOptions&amp;&amp;this._adthrive.siteAds.adOptions.clsOptimizedAds&amp;&amp;!Ne()&amp;&amp;(this._clsOptions.disableAds=new Q(window.adthrive),this._result&amp;&amp;(this._animationRequestId=window.requestAnimationFrame(this.addClsInsertion.bind(this))))}addClsInsertion(){document.body?(this._clsOptions.injectedFromSiteAds=!0,this._clsOptions.videoDisabledFromPlugin=!!document.body.classList.contains("adthrive-disable-video"),fe(".adthrive-ad{margin-top:10px;margin-bottom:10px;text-align:center;overflow-x:visible;clear:both;line-height:0}"),this.startClsInsertion()):"complete"===document.readyState||this._clsOptions.injectedFromSiteAds?window.cancelAnimationFrame(this._animationRequestId):this._animationRequestId=window.requestAnimationFrame(this.addClsInsertion.bind(this))}startClsInsertion(){if(!this._clsOptions.injectedSlots.some((e=&gt;this._clsOptions.enabledLocations.includes(e.dynamicAd.location)))){new Re(this._clsOptions,new Me).start()}new je(new q(this._clsOptions),this._clsOptions).init()}constructor(e){this._clsOptions=e,this._expKey="clsins_ss",this._animationRequestId=0,this._adthrive=window.adthrive,this._clsOptions.siteAds=this._adthrive&amp;&amp;this._adthrive.siteAds||{},this._result=!0,this._clsOptions.setExperiment(this._expKey,this._result),this._config=new i(e),this._clsOptions.enabledLocations=this._config.enabledLocations}}try{(()=&gt;{let e=new ee;if(e.enabled&amp;&amp;e.injectedFromPlugin)return;e.error||(window.adthriveCLS={injectedFromPlugin:!1,injectedSlots:[],experiments:{},siteExperiments:{},injectedVideoSlots:[]},e=new ee,new He(e).start())})()}catch(e){A.error("CLS","siteinsertion-iife",e),window.adthriveCLS&amp;&amp;(window.adthriveCLS.injectedFromSiteAds=!1)}return e.ClsSiteInsertion=He,e}({});

    
      //esVersionDetection
      function supports(exp) {
          try {
              new Function(exp)();
          } catch (e) {
              return false;
          }
          return true;
      }
      function isUserAgentInvalid() {
          return new RegExp('googleweblight|spider|crawler|curl|wget|ia_archiver|insights|baidu|bot|monitor|scraper|A6-Indexer|addthis|admantx|agentslug|alexa|anderspink|apache-httpclient|apachebench|apis-google|appengine-google|ask jeeves|asynchttpclient|awe.sm|baidu|barkrowler|biglotron|bingpreview|brandverify|bubing|butterfly|buzztalk|cf-uc|check_http|cloudflare|cmradar/0.1|coldfusion|comodo ssl checker|convera|copypants|crowsnest|curl|dap\/nethttp|daumoa|developers.google.com\/+\/web\/snippet\/|digitalpersona fingerprint software|drupact|duckduck|elb-healthchecker|embedly|eoaagent|europarchive|eventmachine httpclient|evrinid|exaleadcloudview|ezooms|ez publish|facebookexternalhit|feedburner|feedfetcher-google|findlink|findthatfile|flipboardproxy|garlik|genieo|getprismatic.com|ghost|gigablast|go http package|google( page speed insights| web preview|google-site-verification|-structured-data-testing-tool|-structureddatatestingtool)|hatena|headless|heritrix|htmlparser|http(_request2|client|s|unit)|httrack|hubspot|ichiro|icoreservice|idmarch|in(agist|sieve|stapaper)|ips-agent|jack|jakarta commons|java|jetslide|jobseeker|js-kit|kimengi|knows.is|kraken|laconica|libwww|lighthouse|linode|lipperhey|longurl|ltx71|lwp-trivial|mappydata|mastodon|mediapartners-google|megaindex.ru|metauri|mfe_expand|mixnode|mon(tastic|tools)|moreover|mrchrome|nberta|net(craft|researchserver|state|vibes)|newrelicpinger|newspaper|newsme|ning|nmap|nutch|online-domain-tools|paessler|page(peek|sinventory|thing)|panopta|peerindex|phantomjs|pingdom|plukkie|proximic|pu_in|publiclibraryarchive.org|python-(httplib2|requests|urllib)|quanti|queryseeker|quicklook|qwanti|re-animator|readability|rebelmouse|relateiq|riddler|rssmicro|ruby|scrapy|seo-audit|seodiver|seokicks|shopwiki|shortlinktranslate|siege|sistrix|site24x7|siteexplorer|skypeuripreview|slack|slurp|socialrank|sogou|spinn3r|squider|statuscake|stripe|summify|teeraid|teoma|test certificate info|tineye|traackr|tweetedtimes|twikle|twitjobsearch|twitmunin|twurly|typhoeus|unwindfetch|uptim(e|ia)|uptm.io|vagabondo|vb project|vigil|vkshare|wappalyzer|watchsumo|webceo|webdatascout|webmon|webscout|wesee|wget|whatsapp|whatweb|wikido|wordpress|wormly|wotbox|xenu link sleuth|xing-contenttabreceiver|yandex|yanga|yeti|yff35|yourls|zelist.ro|zibb|^Mozilla\/5\.0$|Viv\/2', 'i')
          .test(window.navigator.userAgent);
      }

      var supportsIO = 'IntersectionObserver' in window &amp;&amp; 'IntersectionObserverEntry' in window &amp;&amp; 'intersectionRatio' in window.IntersectionObserverEntry.prototype &amp;&amp; 'isIntersecting' in window.IntersectionObserverEntry.prototype;

      var target = 'es5'
      if (supportsIO &amp;&amp; supports('async () =&gt; Promise.resolve(({ ...{} })).finally(() =&gt; Symbol.asyncIterator)')) {
        target = 'es2018';
      }

      var invalid = isUserAgentInvalid() ? 'invalid-ua' : '';

      if(invalid === '') {
        w.adthrive.targetPath = '/' + target;
      }

      w.adthrive.cmd.push(function () {
        w.adthrive.setTargetingFlag('target', ([target, invalid]).filter(function (k) { return k != ''; }));
      });
    
      //getMarmaladeData
      w.adthrive.marmaladeFinished = function() {};
      var page = encodeURIComponent(location.href);
      var campaignsUrl = 'https://' + w.adthrive.host + '/api/v1/marmalade?siteid=540753cf3467ce8320843965&amp;url=' + page + '&amp;deliveryFeatures=amazonBetaApstag,consentManagerCMP,optimalBidders,raptiveFloors,raptiveManualCookieSync,recencyFrequency,reissuingSticky,stickyBucketsLocalStorage,switzerlandGdpr,prebidLoad,gptLoad,amazonLoad,ttdSync,optableLoad';
      if (w.fetch) {
        fetch(campaignsUrl)
          .then(function(response) {
            w.adthrive.marmalade = response.json();
            w.adthrive.marmalade.then(function(data) {
              w.adthrive.marmaladeFinished(data);
            });
          })
          .catch(function(error) {
            w.adthrive.cmd.push(function () {
              w.adthrive.logError('ads-site-origin-request', 'insertMarmaladeCode', ['Unable to get marmalade data', error]);
            });
          });
      } else {
          var xhrMarmalade = new XMLHttpRequest();
          xhrMarmalade.onload = function() {
              if (xhrMarmalade.status === 200) {
                  w.adthrive.marmalade = xhrMarmalade.response;
                  w.adthrive.marmaladeFinished(w.adthrive.marmalade);
              }
          };
          xhrMarmalade.open('GET', campaignsUrl, true);
          xhrMarmalade.responseType = 'json';
          xhrMarmalade.send();
      }
    
      if (!w.apstag) {
        //Amazon Load
        importScript('https://c.aps.amazon-adsystem.com/apstag.js');
        var q = function (c, r) {
            var date = new Date().getTime();
            var queueContents = queueContents = [c, r, date];
            w.apstag.queue.push(queueContents);
        };
        w.apstag = {
            init: function () {
                q('i', arguments);
            },
            fetchBids: function () {
                q('f', arguments);
            },
            setDisplayBids: function () {
                return;
            },
            targetingKeys: function () {
                return [];
            },
            dpa: function() {
                q('di', arguments);
            },
            rpa: function() {
                q('ri', arguments);
            },
            upa: function() {
                q('ui', arguments);
            },
            queue: [],
            customPlacements: function() { return {}; },
        };
      }

      //GPT Load
      importScript('https://securepubads.g.doubleclick.net/tag/js/gpt.js');
      w.googletag = w.googletag || {};
      w.googletag.cmd = w.googletag.cmd || [];

      //Prebid Load
      importScript(w.adthrive.baseUrl + '/vendor/prebid' + w.adthrive.targetPath + '/prebid.min.js');
      w.pbjs = w.pbjs || {};
      w.pbjs.que = w.pbjs.que || [];

      w.optable = window.optable || { cmd: [] };
      w.optable.site = 's-540753cf3467ce8320843965';
      w.optable.auth = window.optable.auth || {};
      w.optable.auth.site = 's-540753cf3467ce8320843965';

      var optableScript = document.createElement('script');
      optableScript.type = 'text/javascript';
      optableScript.src = 'https://raptive.solutions.cdn.optable.co/public-assets/raptive-sdk.js';

      optableScript.addEventListener('error', function() {
        w.adthrive.cmd.push(function () {
          w.adthrive.logError('ads-site-origin-request', 'getOptableScript', ['Failed to import Optable SDK script']);
        });
      });

      optableScript.addEventListener('load', function() {
        w.adthrive.cmd.push(function () {
          w.adthrive.log = w.adthrive.log || console.log;
          w.adthrive.log('log', 'ads-site-origin-request', 'getOptableScript', ['Optable SDK script loaded']);
        });
      });

      document.head.appendChild(optableScript);
  
    
    // Raptive floors
    w.adthrive.raptiveFloorsFinished = function() {};
    var floorsUrl = 'https://' + w.adthrive.host + '/api/v2/raptiveFloors/540753cf3467ce8320843965';
    var xhrFloors = new XMLHttpRequest();
    xhrFloors.onload = function() {
      var status = xhrFloors.status;
      if (status === 200) {
        w.adthrive.raptiveFloors = xhrFloors.response;
        w.adthrive.raptiveFloorsFinished(w.adthrive.raptiveFloors);
      } else {
        w.adthrive.cmd.push(function () {
          w.adthrive.log = w.adthrive.log || console.log;
          w.adthrive.log('log', 'ads-site-origin-request', 'insertRaptiveFloorsCode', ['Unable to get floor data', status]);
        });
      }
    };
    xhrFloors.open('GET', floorsUrl, true);
    xhrFloors.responseType = 'json';
    xhrFloors.send();
  
    
      // Optimal Bidders
      w.adthrive.optimalBiddersFinished = function() {};
      var bandwidth = '?bw=';
      var hour = '&amp;h=' + new Date().getHours();
      var connection = window.navigator &amp;&amp; (window.navigator.connection || window.navigator.mozConnection || window.navigator.webkitConnection);
      if (connection) {
        var downlink = connection.downlink || connection.bandwidth;
        if (downlink) bandwidth += downlink;
      }
      var optimalBiddersEndpoint = 'https://' + w.adthrive.host + '/api/v2/optimalBidders/540753cf3467ce8320843965'+ bandwidth + hour;
      var xhrOptimalBidders = new XMLHttpRequest();
      xhrOptimalBidders.onload = function() {
        var status = xhrOptimalBidders.status;
        if (status === 200) {
          w.adthrive.optimalBidders = xhrOptimalBidders.response;
          w.adthrive.optimalBiddersFinished(w.adthrive.optimalBidders);
        } else {
          w.adthrive.cmd.push(function () {
            w.adthrive.log = w.adthrive.log || console.log;
            w.adthrive.log('log', 'ads-site-origin-request', 'insertOptimalBiddersCode', ['Unable to get optimal bidders data', status]);
          });
        }
      };
      xhrOptimalBidders.open('GET', optimalBiddersEndpoint, true);
      xhrOptimalBidders.responseType = 'json';
      xhrOptimalBidders.send();
  
    
  importScript(
    w.adthrive.baseUrl +
    w.adthrive.targetPath +
    '/js/adthrive.min.js' +
    '?deployment=' + w.adthrive.deployment +
    '&amp;bucket='+ w.adthrive.bucket +
    '&amp;deliveryFeatures=amazonBetaApstag,consentManagerCMP,optimalBidders,raptiveFloors,raptiveManualCookieSync,recencyFrequency,reissuingSticky,stickyBucketsLocalStorage,switzerlandGdpr,prebidLoad,gptLoad,amazonLoad,ttdSync,optableLoad' +
    '&amp;siteid=540753cf3467ce8320843965' +
    '', false
  );
  
    
})(window, document);</pre></body></html>