!function(){"use strict";const t={adt_ei:{identityApiKey:"plainText",source:"url",type:"plaintext",priority:1},adt_eih:{identityApiKey:"sha256",source:"urlh",type:"hashed",priority:2},sh_kit:{identityApiKey:"sha256",source:"urlhck",type:"hashed",priority:3}},e=Object.keys(t);function i(t){return function(t){const e=t.match(/((?=([a-z0-9._!#$%+^&*()[\]<>-]+))\2@[a-z0-9._-]+\.[a-z0-9._-]+)/gi);return e?e[0]:""}(function(t){return t.replace(/\s/g,"")}(t.toLowerCase()))}!async function(){const n=new URL(window.location.href),o=n.searchParams;let a=null;const r=Object.entries(t).sort(([,t],[,e])=>t.priority-e.priority).map(([t])=>t);for(const e of r){const n=o.get(e),r=t[e];if(!n||!r)continue;const c=decodeURIComponent(n),d="plaintext"===r.type&&i(c),s="hashed"===r.type&&c;if(d||s){a={value:c,config:r};break}}if(a){const{value:t,config:e}=a;window.adthrive=window.adthrive||{},window.adthrive.cmd=window.adthrive.cmd||[],window.adthrive.cmd.push(function(){window.adthrive.identityApi({source:e.source,[e.identityApiKey]:t},({success:i,data:n})=>{i?window.adthrive.log("info","Plugin","detectEmails",`Identity API called with ${e.type} email: ${t}`,n):window.adthrive.log("warning","Plugin","detectEmails",`Failed to call Identity API with ${e.type} email: ${t}`,n)})})}!function(t,e){const i=new URL(e);t.forEach(t=>i.searchParams.delete(t)),history.replaceState(null,"",i.toString())}(e,n)}()}();
window.adthriveCLS = {
enabledLocations: ['Content', 'Recipe'],
injectedSlots: [],
injectedFromPlugin: true,
branch: '66d1224',bucket: 'prod', };
window.adthriveCLS.siteAds = {"betaTester":false,"targeting":[{"value":"62b4c04e081f8452403b9418","key":"siteId"},{"value":"6769c645e58f21518391f1dc","key":"organizationId"},{"value":"On The Feeder","key":"siteName"},{"value":"AdThrive Edge","key":"service"},{"value":"on","key":"bidding"},{"value":["Pets","Lifestyle","Gardening"],"key":"verticals"}],"siteUrl":"https://www.onthefeeder.com","siteId":"62b4c04e081f8452403b9418","siteName":"On The Feeder","breakpoints":{"tablet":768,"desktop":1024},"cloudflare":null,"adUnits":[{"sequence":1,"targeting":[{"value":["Sidebar"],"key":"location"}],"devices":["desktop"],"name":"Sidebar_1","sticky":false,"location":"Sidebar","dynamic":{"pageSelector":"body:not(.theme-generatepress)","spacing":0,"max":1,"lazyMax":null,"enable":true,"lazy":false,"elementSelector":".primary-sidebar","skip":0,"classNames":[],"position":"afterbegin","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":"body:not(.theme-generatepress)","spacing":0,"max":1,"lazyMax":null,"enable":true,"lazy":false,"elementSelector":".primary-sidebar","skip":0,"classNames":[],"position":"beforeend","every":1,"enabled":true},"stickyOverlapSelector":".site-footer","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, body.page:not(.home):not(.page-id-19170)","spacing":0.85,"max":4,"lazyMax":95,"enable":true,"lazy":true,"elementSelector":".entry-content > *:not(h2):not(h3):not(h4):not(.dpsp-content-wrapper)","skip":6,"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","phone"],"name":"Content","sticky":false,"location":"Content","dynamic":{"pageSelector":"body.single, body.page:not(.home):not(.page-id-19170)","spacing":0.85,"max":6,"lazyMax":93,"enable":true,"lazy":true,"elementSelector":".entry-content > *:not(h2):not(h3):not(h4):not(.dpsp-content-wrapper)","skip":6,"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":["Footer"],"key":"location"},{"value":true,"key":"sticky"}],"devices":["desktop","phone","tablet"],"name":"Footer","sticky":true,"location":"Footer","dynamic":{"pageSelector":"","spacing":0,"max":1,"lazyMax":null,"enable":true,"lazy":false,"elementSelector":"body:not(.page-id-19170)","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.22,"onePerViewport":false},"pageOverrides":[],"desktop":{"adDensity":0.22,"onePerViewport":false}},"adDensityEnabled":true,"siteExperiments":[],"adTypes":{"sponsorTileDesktop":true,"interscrollerDesktop":true,"nativeBelowPostDesktop":true,"miniscroller":true,"largeFormatsMobile":true,"nativeMobileContent":true,"inRecipeRecommendationMobile":true,"nativeMobileRecipe":true,"sponsorTileMobile":true,"expandableCatalogAdsMobile":false,"outstreamMobile":true,"nativeHeaderMobile":true,"inRecipeRecommendationDesktop":true,"nativeDesktopContent":true,"outstreamDesktop":true,"animatedFooter":true,"skylineHeader":false,"expandableFooter":true,"nativeDesktopSidebar":true,"videoFootersMobile":true,"videoFootersDesktop":true,"interscroller":true,"nativeDesktopRecipe":true,"nativeHeaderDesktop":true,"nativeBelowPostMobile":true,"expandableCatalogAdsDesktop":false,"largeFormatsDesktop":true},"adOptions":{"theTradeDesk":true,"rtbhouse":true,"undertone":true,"sidebarConfig":{"dynamicStickySidebar":{"minHeight":1800,"enabled":true,"blockedSelectors":[]}},"footerCloseButton":true,"teads":true,"seedtag":true,"pmp":true,"thirtyThreeAcross":true,"sharethrough":true,"optimizeVideoPlayersForEarnings":true,"removeVideoTitleWrapper":true,"pubMatic":true,"contentTermsFooterEnabled":true,"infiniteScroll":false,"longerVideoAdPod":true,"yahoossp":true,"spa":false,"stickyContainerConfig":{"recipeDesktop":{"minHeight":null,"enabled":false},"blockedSelectors":[],"stickyHeaderSelectors":[],"content":{"minHeight":null,"enabled":false},"recipeMobile":{"minHeight":null,"enabled":false}},"sonobi":true,"gatedPrint":{"siteEmailServiceProviderId":null,"defaultOptIn":false,"enabled":false,"newsletterPromptEnabled":false},"yieldmo":true,"footerSelector":"","amazonUAM":true,"gamMCMEnabled":true,"gamMCMChildNetworkCode":"23270557265","rubicon":true,"conversant":true,"openx":true,"customCreativeEnabled":true,"mobileHeaderHeight":1,"secColor":"#000000","unruly":true,"mediaGrid":true,"bRealTime":true,"adInViewTime":null,"gumgum":true,"comscoreFooter":false,"desktopInterstitial":false,"amx":true,"footerCloseButtonDesktop":false,"ozone":true,"isAutoOptimized":false,"adform":true,"comscoreTAL":false,"targetaff":false,"bgColor":"#FFFFFF","advancePlaylistOptions":{"playlistPlayer":{"enabled":true},"relatedPlayer":{"enabled":true,"applyToFirst":true}},"kargo":true,"liveRampATS":true,"footerCloseButtonMobile":false,"interstitialBlockedPageSelectors":"","prioritizeShorterVideoAds":true,"allowSmallerAdSizes":true,"comscore":null,"blis":true,"wakeLock":{"desktopEnabled":true,"mobileValue":15,"mobileEnabled":true,"desktopValue":30},"mobileInterstitial":true,"tripleLift":true,"sensitiveCategories":["alc","ast","cbd","conl","cosm","dat","drg","gamc","gamv","pol","rel","sst","ske","tob","wtl"],"liveRamp":true,"mobileInterstitialBlockedPageSelectors":"","adthriveEmailIdentity":true,"criteo":true,"nativo":true,"infiniteScrollOptions":{"selector":"","heightThreshold":0},"siteAttributes":{"mobileHeaderSelectors":[],"desktopHeaderSelectors":[]},"dynamicContentSlotLazyLoading":true,"clsOptimizedAds":true,"ogury":true,"verticals":["Pets","Lifestyle","Gardening"],"inImage":false,"stackadapt":true,"usCMP":{"enabled":false,"regions":[]},"advancePlaylist":true,"medianet":true,"delayLoading":true,"inImageZone":null,"appNexus":true,"rise":true,"liveRampId":"","infiniteScrollRefresh":false,"indexExchange":true},"siteAdsProfiles":[],"thirdPartySiteConfig":{"partners":{"discounts":[]}},"videoPlayers":{"contextual":{"autoplayCollapsibleEnabled":false,"overrideEmbedLocation":false,"defaultPlayerType":"static"},"videoEmbed":"wordpress","footerSelector":"","contentSpecificPlaylists":[],"players":[{"playlistId":"","pageSelector":"","devices":["mobile","desktop"],"mobileLocation":null,"description":"","skip":0,"title":"","type":"stationaryRelated","enabled":true,"formattedType":"Stationary Related","elementSelector":"","id":4079236,"position":"","saveVideoCloseState":false,"shuffle":false,"playerId":"Ofq2Bmkc"},{"playlistId":"GY3OTrXO","pageSelector":"body.single, body.page:not(.home):not(.page-id-19170)","devices":["desktop"],"description":"","skip":4,"title":"","type":"stickyPlaylist","enabled":true,"formattedType":"Sticky Playlist","elementSelector":".entry-content > *:not(h2):not(h3):not(h4):not(.dpsp-content-wrapper)","id":4079237,"position":"afterend","saveVideoCloseState":false,"shuffle":false,"mobileHeaderSelector":null,"playerId":"Dlx7h7OW"},{"playlistId":"GY3OTrXO","pageSelector":"body.single, body.page:not(.home):not(.page-id-19170)","devices":["mobile"],"mobileLocation":"bottom-right","description":"","skip":4,"title":"","type":"stickyPlaylist","enabled":true,"formattedType":"Sticky Playlist","elementSelector":".entry-content > *:not(h2):not(h3):not(h4):not(.dpsp-content-wrapper)","id":4079238,"position":"afterend","saveVideoCloseState":false,"shuffle":false,"mobileHeaderSelector":null,"playerId":"Dlx7h7OW"}],"partners":{"theTradeDesk":true,"unruly":true,"mediaGrid":true,"undertone":true,"gumgum":true,"seedtag":true,"amx":true,"ozone":true,"adform":true,"pmp":true,"kargo":true,"connatix":true,"stickyOutstream":{"desktop":{"enabled":true},"blockedPageSelectors":"body.page-id-19170","mobileLocation":"bottom-left","allowOnHomepage":true,"mobile":{"enabled":true},"saveVideoCloseState":false,"mobileHeaderSelector":null,"allowForPageWithStickyPlayer":{"enabled":false}},"sharethrough":true,"blis":true,"tripleLift":true,"pubMatic":true,"criteo":true,"yahoossp":true,"nativo":true,"stackadapt":true,"yieldmo":true,"amazonUAM":true,"medianet":true,"rubicon":true,"appNexus":true,"rise":true,"openx":true,"indexExchange":true}}};
(function(w, d) {
w.adthrive = w.adthrive || {};
w.adthrive.cmd = w.adthrive.cmd || [];
w.adthrive.plugin = 'adthrive-ads-3.9.0';
w.adthrive.host = 'ads.adthrive.com';
w.adthrive.integration = 'plugin';var commitParam = (w.adthriveCLS && w.adthriveCLS.bucket !== 'prod' && w.adthriveCLS.branch) ? '&commit=' + w.adthriveCLS.branch : '';var s = d.createElement('script');
s.async = true;
s.referrerpolicy='no-referrer-when-downgrade';
s.src = 'https://' + w.adthrive.host + '/sites/62b4c04e081f8452403b9418/ads.min.js?referrer=' + w.encodeURIComponent(w.location.href) + commitParam + '&cb=' + (Math.floor(Math.random() * 100) + 1) + '';
var n = d.getElementsByTagName('script')[0];
n.parentNode.insertBefore(s, n);
})(window, document);
document.documentElement.classList.remove( 'no-js' );
var breeze_prefetch = {"local_url":"https:\/\/onthefeeder.com","ignore_remote_prefetch":"1","ignore_list":["wp-admin","wp-login.php"]};
https://onthefeeder.com/wp-includes/js/jquery/jquery.min.js
https://onthefeeder.com/wp-includes/js/jquery/jquery-migrate.min.js
https://onthefeeder.com/wp-content/plugins/related-posts-thumbnails/assets/js/front.min.js
https://onthefeeder.com/wp-content/plugins/related-posts-thumbnails/assets/js/lazy-load.js
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '1121655562673179');
fbq('track', 'PageView');
(function(){window.adthriveCLS.buildDate=`2025-10-27`;let e=new class{info(e,t,...n){this.call(console.info,e,t,...n)}warn(e,t,...n){this.call(console.warn,e,t,...n)}error(e,t,...n){this.call(console.error,e,t,...n),this.sendErrorLogToCommandQueue(e,t,...n)}event(e,t,...n){var r;((r=window.adthriveCLS)==null?void 0:r.bucket)===`debug`&&this.info(e,t)}sendErrorLogToCommandQueue(e,t,...n){window.adthrive=window.adthrive||{},window.adthrive.cmd=window.adthrive.cmd||[],window.adthrive.cmd.push(()=>{window.adthrive.logError!==void 0&&typeof window.adthrive.logError==`function`&&window.adthrive.logError(e,t,n)})}call(e,t,n,...r){let i=[`%c${t}::${n} `],a=[`color: #999; font-weight: bold;`];r.length>0&&typeof r[0]==`string`&&i.push(r.shift()),a.push(...r);try{Function.prototype.apply.call(e,console,[i.join(``),...a])}catch(e){console.error(e);return}}};function t(e){"@babel/helpers - typeof";return t=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},t(e)}function n(e,n){if(t(e)!=`object`||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n||`default`);if(t(i)!=`object`)return i;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(n===`string`?String:Number)(e)}function r(e){var r=n(e,`string`);return t(r)==`symbol`?r:r+``}function i(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=class{constructor(){i(this,`name`,void 0),i(this,`disable`,void 0),i(this,`gdprPurposes`,void 0)}};function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?o(Object(n),!0).forEach(function(t){i(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let c=[`mcmpfreqrec`],l=new class extends a{constructor(...e){super(...e),i(this,`name`,`BrowserStorage`),i(this,`disable`,!1),i(this,`gdprPurposes`,[1]),i(this,`_sessionStorageHandlerQueue`,[]),i(this,`_localStorageHandlerQueue`,[]),i(this,`_cookieHandlerQueue`,[]),i(this,`_gdpr`,void 0),i(this,`_shouldQueue`,!1)}init(e){this._gdpr=e.gdpr===`true`,this._shouldQueue=this._gdpr}clearQueue(e){e&&(this._shouldQueue=!1,this._sessionStorageHandlerQueue.forEach(e=>{this.setSessionStorage(e.key,e.value)}),this._localStorageHandlerQueue.forEach(e=>{if(e.key===`adthrive_abgroup`){let t=Object.keys(e.value)[0],n=e.value[t],r=e.value[`${t}_weight`];this.getOrSetABGroupLocalStorageValue(t,n,r,{value:24,unit:`hours`})}else e.expiry?e.type===`internal`?this.setExpirableInternalLocalStorage(e.key,e.value,{expiry:e.expiry,resetOnRead:e.resetOnRead}):this.setExpirableExternalLocalStorage(e.key,e.value,{expiry:e.expiry,resetOnRead:e.resetOnRead}):e.type===`internal`?this.setInternalLocalStorage(e.key,e.value):this.setExternalLocalStorage(e.key,e.value)}),this._cookieHandlerQueue.forEach(e=>{e.type===`internal`?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)}readExternalCookieList(e){return this._readCookieList(e)}getAllCookies(){return this._getCookies()}readInternalLocalStorage(e){return this._verifyInternalKey(e),this._readFromLocalStorage(e)}readExternalLocalStorage(e){return this._readFromLocalStorage(e)}readSessionStorage(e){let 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,n){this._verifyInternalKey(e),this._setCookieValue(`internal`,e,t,n)}setExternalCookie(e,t,n){this._setCookieValue(`external`,e,t,n)}setInternalLocalStorage(e,t){if(this._verifyInternalKey(e),this._gdpr&&this._shouldQueue){let n={key:e,value:t,type:`internal`};this._localStorageHandlerQueue.push(n)}else{let n=typeof t==`string`?t:JSON.stringify(t);window.localStorage.setItem(e,n)}}setExternalLocalStorage(e,t){if(this._gdpr&&this._shouldQueue){let n={key:e,value:t,type:`external`};this._localStorageHandlerQueue.push(n)}else{let n=typeof t==`string`?t:JSON.stringify(t);window.localStorage.setItem(e,n)}}setExpirableInternalLocalStorage(e,t,n){this._verifyInternalKey(e);try{var r,i;let a=(r=n==null?void 0:n.expiry)==null?{value:400,unit:`days`}:r,o=(i=n==null?void 0:n.resetOnRead)==null?!1:i;if(this._gdpr&&this._shouldQueue){let n={key:e,value:t,type:`internal`,expires:this._getExpiryDate(a),expiry:a,resetOnRead:o};this._localStorageHandlerQueue.push(n)}else{let n={value:t,type:`internal`,expires:this._getExpiryDate(a),expiry:a,resetOnRead:o};window.localStorage.setItem(e,JSON.stringify(n))}}catch(e){console.error(e)}}setExpirableExternalLocalStorage(e,t,n){try{var r,i;let a=(r=n==null?void 0:n.expiry)==null?{value:400,unit:`days`}:r,o=(i=n==null?void 0:n.resetOnRead)==null?!1:i;if(this._gdpr&&this._shouldQueue){let n={key:e,value:JSON.stringify(t),type:`external`,expires:this._getExpiryDate(a),expiry:a,resetOnRead:o};this._localStorageHandlerQueue.push(n)}else{let n={value:t,type:`external`,expires:this._getExpiryDate(a),expiry:a,resetOnRead:o};window.localStorage.setItem(e,JSON.stringify(n))}}catch(e){console.error(e)}}setSessionStorage(e,t){if(this._gdpr&&this._shouldQueue){let n={key:e,value:t};this._sessionStorageHandlerQueue.push(n)}else{let n=typeof t==`string`?t:JSON.stringify(t);window.sessionStorage.setItem(e,n)}}getOrSetABGroupLocalStorageValue(e,t,n,r,i=!0){let a=`adthrive_abgroup`,o=(this.readInternalLocalStorage(a));if(o!==null){var c;let t=o[e],n=(c=o[`${e}_weight`])==null?null:c;if(this._isValidABGroupLocalStorageValue(t))return[t,n]}let l=(s(s({},o),{},{[e]:t,[`${e}_weight`]:n}));return r?this.setExpirableInternalLocalStorage(a,l,{expiry:r,resetOnRead:i}):this.setInternalLocalStorage(a,l),[t,n]}_isValidABGroupLocalStorageValue(e){return e!=null&&!(typeof e==`number`&&isNaN(e))}_getExpiryDate({value:e,unit:t}){let n=new Date;return t===`milliseconds`?n.setTime(n.getTime()+e):t==`seconds`?n.setTime(n.getTime()+e*1e3):t===`minutes`?n.setTime(n.getTime()+e*60*1e3):t===`hours`?n.setTime(n.getTime()+e*60*60*1e3):t===`days`?n.setTime(n.getTime()+e*24*60*60*1e3):t===`months`&&n.setTime(n.getTime()+e*30*24*60*60*1e3),n.toUTCString()}_resetExpiry(e){return e.expires=this._getExpiryDate(e.expiry),e}_readCookie(e){let t=(document.cookie.split(`; `).find(t=>t.split(`=`)[0]===e));if(!t)return null;let n=(t.split(`=`))[1];if(n)try{return JSON.parse(decodeURIComponent(n))}catch(e){return decodeURIComponent(n)}return null}_readCookieList(e){let t;for(let n of document.cookie.split(`;`)){let[r,...i]=(n.split(`=`));r.trim()===e&&(t=i.join(`=`).trim())}return t&&JSON.parse(t)||[]}_getCookies(){let e=[];return document.cookie.split(`;`).forEach(t=>{let[n,r]=t.split(`=`).map(e=>e.trim());e.push({name:n,value:r})}),e}_readFromLocalStorage(e){let t=(window.localStorage.getItem(e));if(!t)return null;try{let r=(JSON.parse(t)),i=r.expires&&(new Date().getTime())>=(new Date(r.expires).getTime());if(e===`adthrive_abgroup`&&r.created)return window.localStorage.removeItem(e),null;if(r.resetOnRead&&r.expires&&!i){var n;let t=(this._resetExpiry(r));return window.localStorage.setItem(e,JSON.stringify(r)),(n=t.value)==null?t:n}else if(i)return window.localStorage.removeItem(e),null;if(Object.prototype.hasOwnProperty.call(r,`value`))try{return JSON.parse(r.value)}catch(e){return r.value}else return r}catch(e){return t}}_setCookieValue(e,t,n,r){try{if(this._gdpr&&this._shouldQueue){let r={key:t,value:n,type:e};this._cookieHandlerQueue.push(r)}else{var i,a,o;let e=(this._getExpiryDate((i=r==null?void 0:r.expiry)==null?{value:400,unit:`days`}:i)),s=(a=r==null?void 0:r.sameSite)==null?`None`:a,c=(o=r==null?void 0:r.secure)==null?!0:o,l=typeof n==`object`?JSON.stringify(n):n;document.cookie=`${t}=${l}; SameSite=${s}; ${c?`Secure;`:``} expires=${e}; path=/`}}catch(e){}}_verifyInternalKey(e){let t=(e.startsWith(`adthrive_`)),n=(e.startsWith(`adt_`));if(!t&&!n&&!c.includes(e))throw Error(`When reading an internal cookie, the key must start with "adthrive_" or "adt_" or be part of the allowed legacy keys.`)}},u=(e,t)=>{let n=document.getElementsByTagName(`script`)[0];n&&n.parentNode&&!t?n.parentNode.insertBefore(e,n):document.body.appendChild(e)},d=(e,t=!1,n=!1,r=!1)=>new Promise((i,a)=>{let o=document.createElement(`script`);o.addEventListener(`error`,()=>a(Error(`Failed to import script ${e}`))),o.addEventListener(`load`,()=>i(o)),o.type=`text/javascript`,o.src=e,o.defer=n,o.async=r,u(o,t)}),f=()=>{let e=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),t=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0);return{width:e,height:t}},p=()=>{let e=new RegExp(`python,apis,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,chatgpt,check_http,cloudflare,cmradar/0.1,coldfusion,comodo ssl checker,convera,copypants,crowsnest,curl,dap/nethttp,daumoa,deepseek,deepseekbot,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),gpt,gptbot,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,nightmare,nmap,nutch,online-domain-tools,openai,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`.split(`,`).join(`|`),`i`),t=window.navigator.userAgent.toLowerCase();return e.test(t)};var m=class{constructor(){i(this,`runTests`,()=>{let e=!1;return window&&document&&(e=[`webdriver`in window,`_Selenium_IDE_Recorder`in window,`callSelenium`in window,`_selenium`in window,`__webdriver_script_fn`in document,`__driver_evaluate`in document,`__webdriver_evaluate`in document,`__selenium_evaluate`in document,`__fxdriver_evaluate`in document,`__driver_unwrapped`in document,`__webdriver_unwrapped`in document,`__selenium_unwrapped`in document,`__fxdriver_unwrapped`in document,`__webdriver_script_func`in document,document.documentElement.getAttribute(`selenium`)!==null,document.documentElement.getAttribute(`webdriver`)!==null,document.documentElement.getAttribute(`driver`)!==null].some(e=>e)),e})}isSelenium(){return this.runTests()}};let h=()=>{if(navigator&&navigator.userAgent&&p())return`uav`},g=()=>{let e=f();if(e.width>5e3||e.height>5e3)return`vpv`},_=()=>{if(new m().isSelenium())return`selenium`},v=()=>{let e=[g(),h(),_()].filter(e=>!!e);return e.length?e:void 0},y=()=>l.readExternalCookie(`usprivacy`)===`1YYY`;v()||y()||(()=>{let e=`unknown`;return typeof Intl<`u`&&typeof Intl.DateTimeFormat==`function`&&typeof Intl.DateTimeFormat().resolvedOptions==`function`&&(e=Intl.DateTimeFormat().resolvedOptions().timeZone||`unknown`),e.startsWith(`America/`)})()&&(()=>{let t=`6035453`,n=y()?`0`:`1`,r=s({c1:`2`,c2:t,cs_fpid:l.readExternalCookie(`_pubcid`)||window.localStorage.getItem(`_pubcid`),cs_fpit:`o`,cs_fpdm:`*null`,cs_fpdt:`*null`,options:{enableFirstPartyCookie:!0}},{cs_ucfr:n||`0`});window._comscore=window._comscore||[],window._comscore.push(r);let i=`https://sb.scorecardresearch.com/cs/${t}/beacon.js`;d(i).catch(t=>{e.error(`ComscoreTrackerComponent`,`init`,`Error during Comscore beacon.js import: `,t)})})()})();
var cls_disable_ads=(function(exports){window.adthriveCLS.buildDate=`2025-10-27`;let t=new class{info(e,t,...n){this.call(console.info,e,t,...n)}warn(e,t,...n){this.call(console.warn,e,t,...n)}error(e,t,...n){this.call(console.error,e,t,...n),this.sendErrorLogToCommandQueue(e,t,...n)}event(e,t,...n){var r;((r=window.adthriveCLS)==null?void 0:r.bucket)===`debug`&&this.info(e,t)}sendErrorLogToCommandQueue(e,t,...n){window.adthrive=window.adthrive||{},window.adthrive.cmd=window.adthrive.cmd||[],window.adthrive.cmd.push(()=>{window.adthrive.logError!==void 0&&typeof window.adthrive.logError==`function`&&window.adthrive.logError(e,t,n)})}call(e,t,n,...r){let i=[`%c${t}::${n} `],a=[`color: #999; font-weight: bold;`];r.length>0&&typeof r[0]==`string`&&i.push(r.shift()),a.push(...r);try{Function.prototype.apply.call(e,console,[i.join(``),...a])}catch(e){console.error(e);return}}},n=()=>window.adthriveCLS,r={Below_Post_1:`Below_Post_1`,Below_Post:`Below_Post`,Content:`Content`,Content_1:`Content_1`,Content_2:`Content_2`,Content_3:`Content_3`,Content_4:`Content_4`,Content_5:`Content_5`,Content_6:`Content_6`,Content_7:`Content_7`,Content_8:`Content_8`,Content_9:`Content_9`,Recipe:`Recipe`,Recipe_1:`Recipe_1`,Recipe_2:`Recipe_2`,Recipe_3:`Recipe_3`,Recipe_4:`Recipe_4`,Recipe_5:`Recipe_5`,Native_Recipe:`Native_Recipe`,Footer_1:`Footer_1`,Footer:`Footer`,Header_1:`Header_1`,Header_2:`Header_2`,Header:`Header`,Sidebar_1:`Sidebar_1`,Sidebar_2:`Sidebar_2`,Sidebar_3:`Sidebar_3`,Sidebar_4:`Sidebar_4`,Sidebar_5:`Sidebar_5`,Sidebar_9:`Sidebar_9`,Sidebar:`Sidebar`,Interstitial_1:`Interstitial_1`,Interstitial:`Interstitial`,Video_StickyOutstream_1:`Video_StickyOutstream_1`,Video_StickyOutstream:`Video_StickyOutstream`,Video_StickyInstream:`Video_StickyInstream`,Sponsor_Tile:`Sponsor_Tile`},i=e=>{let t=window.location.href;return e.some(e=>new RegExp(e,`i`).test(t))};function a(e){"@babel/helpers - typeof";return a=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},a(e)}function o(e,t){if(a(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(a(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function s(e){var t=o(e,`string`);return a(t)==`symbol`?t:t+``}function c(e,t,n){return(t=s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=class{constructor(e){this.adthrive=e,c(this,`all`,!1),c(this,`content`,!1),c(this,`recipe`,!1),c(this,`video`,!1),c(this,`locations`,new Set),c(this,`reasons`,new Set),(this.urlHasEmail(window.location.href)||this.urlHasEmail(window.document.referrer))&&(this.all=!0,this.reasons.add(`all_email`));try{this.checkCommandQueue(),document.querySelector(`.tag-novideo`)!==null&&(this.video=!0,this.locations.add(`Video`),this.reasons.add(`video_tag`))}catch(e){t.error(`ClsDisableAds`,`checkCommandQueue`,e)}}checkCommandQueue(){this.adthrive&&this.adthrive.cmd&&this.adthrive.cmd.forEach(e=>{let t=e.toString(),n=this.extractAPICall(t,`disableAds`);n&&this.disableAllAds(this.extractPatterns(n));let r=this.extractAPICall(t,`disableContentAds`);r&&this.disableContentAds(this.extractPatterns(r));let i=this.extractAPICall(t,`disablePlaylistPlayers`);i&&this.disablePlaylistPlayers(this.extractPatterns(i))})}extractPatterns(e){let t=e.match(/["'](.*?)['"]/g);if(t!==null)return t.map(e=>e.replace(/["']/g,``))}extractAPICall(e,t){let n=RegExp(t+`\\((.*?)\\)`,`g`),r=e.match(n);return r===null?!1:r[0]}disableAllAds(e){(!e||i(e))&&(this.all=!0,this.reasons.add(`all_page`))}disableContentAds(e){(!e||i(e))&&(this.content=!0,this.recipe=!0,this.locations.add(r.Content),this.locations.add(r.Recipe),this.reasons.add(`content_plugin`))}disablePlaylistPlayers(e){(!e||i(e))&&(this.video=!0,this.locations.add(`Video`),this.reasons.add(`video_page`))}urlHasEmail(e){return e?/([A-Z0-9._%+-]+(@|%(25)*40)[A-Z0-9.-]+\.[A-Z]{2,})/i.exec(e)!==null:!1}};let u=n();return u&&(u.disableAds=new l(window.adthrive)),exports.ClsDisableAds=l,exports})({});
Skip to content I tested seven different camera binoculars in search of the best one for birdwatching. Only one model is worthy or shall I say, better than the others. This article includes hands-on reviews of each binocular camera I tested along with actual photos I took from each one. After reading this article you may find the better question is “Are binocular cameras worth it?”.
If you’re too busy or impatient (like me), below is the best camera with a built-in camera. If you’re really interested in buying one, please do not buy until you’ve read this article to the end . I’m confident this article will change your mind.
Best Camera Binoculars
Camonity Camera Binoculars For 25+ years I’ve been attracting and enjoying wild birds in my backyard. I love taking pictures and sharing with friends online.
I have a terrific DSLR camera but have not yet invested in a proper zoom lens necessary to take crisp, up-close photos of the birds. The lens I have my eye on costs more than $1,000.
I heard about binoculars cameras and thought they would be a spectacular approach to getting my up-close bird photos without the large zoom lens investment.
So, I researched the highly-rated binoculars with built-in cameras, purchased, and tested 7 of them. Today, I share my recommendation and test results with you so you can save time & money finding the best one for you.
Here are the 7 camera binoculars models I tested:
Camonity 5M ATN BinoX-HD Bestguarder NV900 JStoon Rexing B1 Creative XP NVB One Creative XP Pro Before I get to the reviews of each device I’d like to provide an overview of this relatively unknown device. Rather get right to the reviews? Click here
Overview of Binoculars with Camera Built-In Binoculars are used to view closeups of things far away. Cameras are used to capture images close up and far away. Binocular cameras are used to view and capture images of things that are far away.
Binoculars with a built-in camera are ideal for birdwatching because most birdwatchers carry binoculars and a camera with them. A device with combined capabilities is less, lighter, and less bulky gear to carry.
Advantages of Binoculars with Camera Built-In Binoculars with a camera built-in have one key advantage:
They’re smaller, lighter, and less bulky than separate binoculars and DSLR digital cameras. Disadvantages of Binoculars with Camera Built-In Below are the disadvantages of a binoculars camera;
The image quality of binocular cameras is less than stellar. To be perfectly frank, the image quality is poor. The instructions for many devices are unclear and confusing. If you’re persistent and have the time, you’ll figure it out by fiddling with it. There are numerous unknown brands selling binoculars/cameras as a private label. This means the manufacturer behind the device isn’t willing to reveal themselves – an indication that they do not have expertise or a great reputation in the industry. None of the top binoculars or camera brands offer a binocular/camera (e.g. Canon, Nikon, Sony …) so brand recognition and the trust that goes with it are absent. How to Choose the Right Binoculars with Camera Built-In There are several steps to consider when choosing a binocular camera:
Budget: Determine your budget: Binocular cameras can range in price from around $50 to a thousand dollars. Intended use: Consider your intended use so you can establish feature requirements.If you plan to use it for viewing nocturnal birds, be sure it has night vision. Will you use it when it rains? Look for a pair that is waterproof. Will you use it in the cold or hot temps? Look for a pair that is fog proof. Magnification: The magnification is indicated by a number, such as 10x or 20x. Bigger gets you closer to the birds but also may be difficult to keep steady enough to keep the bird in sight. Objective Lens Size: The objective lens size is the diameter of the front lens element, measured in millimeters. A larger objective lens size will gather more light, which can be helpful in low light conditions – a time when birds are typically active (am & pm). However, a larger objective lens size also means a larger and heavier device. Prism: Consider the prism: There are two types of prisms commonly used in binocular cameras – roof prisms and Porro prisms. While Roof prisms are more compact and lighter, they are also more expensive. Porro prisms are less expensive, but a bit more bulky. Eyepice: Pay attention to the eyepiece. Make sure they’re comfortable to use and adjust easily – especially if you wear glasses. Quality: Check the build quality of the binoculars camera. Is it made of durable materials, that feel solid and well constructed? Reviews: Check out the reviews of the model(s) you’re interested in but take them with a grain of salt. Many will be fake. Return policy: Make sure you can return them if they turn out to be a big disappointment. < This may be the most important step in the process because there is a 99% likelihood you will be disappointed. Brands of Binoculars with Camera Built-In As mentioned earlier, none of the top binoculars or camera brands offer a binocular/camera (e.g. Canon, Nikon, Sony …). Additionally, reputable binoculars and camera retailers don’t sell them either. Coincidence? I think not.
Below are the brands that make binoculars with built-in cameras:
Camonity ATN Bestguarder JStoon Rexing Creative Bushnell Bell + Howell Sharper Image Many, many more obscure brands What I learned after Testing 7 Binoculars Cameras My primary intent with wanting one of these devices was to take photos of the zoomed-in subjects so my testing focus was on image quality.
Right away I learned holding the binoculars camera and focusing them on the subject was a shaky ordeal. They all came with tripod capability but I wanted to make sure I could use them without a tripod as that’s how I would actually use them. With a subject more than 100′ away, I zoomed in and focused the best I could. In just about all cases, except with the Camonity 5M, I could not achieve a clear and crisp-focused subject. Sometimes just pressing the “Snap” button pushed the subject out of the viewport so I had to take multiple shots. In those cases, I chose the best shot to use as the sample. After testing the first three for image quality, I got very discouraged. The quality of the photos they captured was poor. At best, the subject was fuzzy and grainy. At worst, the subject was completely unfocused – even though I had the device focused as best it could get. I stayed positive and hoped at least one of the remaining four binocular cameras would prove to be a quality product. Unfortunately, that did not happen. One or more of the 7 that I tested may be amazing for night vision or any of the other features but since my primary focus was testing the image quality
I’d like to clarify that many of the binocular cameras I tested have additional features such as night vision, video, and more. Since my primary focus was testing the image quality and early on it became evident camera binoculars did a poor job of it, I didn’t proceed with testing any of the other features.
Alternatives to Binoculars with Camera Built-In Superzoom cameras are the #1 alternative to binoculars with cameras built in. Actually, it’s not even fair to compare the two because superzoom cameras have amazing image quality and are manufactured by reputable brands (e.g. Nikon, Sony, Panasonic, Canon).
Binoculars Cameras Reviews, Test Results & Sample Photos Below are the binoculars camera models I tested along with the photos I captured from them (except the ATN model). I purposely did not add my commentary on the quality of each photo because a picture is worth a thousand words. In other words, you be the judge ;)
For reference, below is a photo of the subject taken from my Samsung S5 cellphone from the same location the binoculars camera photos were taken. While the Samsung S5 isn’t known for its amazing camera capability, it’s still better than the binoculars cameras and gives you something to compare the test images against.
Photo taken from my Samsung S5 cell phone. Camonity 5M Review & Sample Photo The Camonity 5M is my pick for the binoculars camera with the best image quality.
Camonity 5M Binoculars Camera Below is the sample photo taken with the Camonity binoculars camera (left) against the photo taken with my Samsung S5 cellphone (right).
Photo taken from the Camonity 5MP binocular camera Photo taken from my Samsung S5 cell phone. In life all things are relative. Binocular cameras are no different. From my testing, the Camonity 5M binoculars with a built-in camera had the best photo quality compared to the others I tested .
If you don’t want to wait for the binocular camera technology to improve I recommend purchasing the Camonity 5M.
Best Camera Binoculars
Camonity Camera Binoculars ATN BinoX-HD Review & Sample Photo ATN Bino-X HD Binocular Camera I don’t have a sample photo taken from the ATN BinoX-HD to share with you.
I was unable to get the wifi transfer capability to work. It’s a handy feature of the device but I couldn’t figure it out and the documentation didn’t explain it.
Although there was a MicroUSB port, the camera didn’t come with a cable, and the one I had didn’t fit.
You might say this device failed the tests because the setup could not be complete.
Bestguarder NV900 Review & Sample Photo Bestguarder NV900 Binocular Camera Below is the sample photo taken with the Bestguarder NV900 binoculars camera (left) against the photo taken with my Samsung S5 cellphone (right).
Photo taken from Bestguarder binoculars camera Photo taken from my Samsung S5 cell phone. JStoon Review & Sample Photo JStoon Below is the sample photo taken with the JStoon binoculars camera (left) against the photo taken with my Samsung S5 cellphone (right).
Sample photo taken from the JStoon binocular camera Photo taken from my Samsung S5 cell phone. Rexing B1 Review & Sample Photo Rexing B1 Below is the sample photo taken with the Rexing B1 binoculars camera (left) against the photo taken with my Samsung S5 cellphone (right).
Photo taken from the Rexing B1 binoculars camera Photo taken from my Samsung S5 cell phone. Creative XP NVB One Review & Sample Photo Below is the sample photo taken with the Creative XP NV1 binoculars camera (left) against the photo taken with my Samsung S5 cellphone (right). Need I say more?
Photo taken from Creative XP NV1 binoculars camera Photo taken from my Samsung S5 cell phone. CreativeXP Pro Review & Sample Photo CreativeXP Glass Owl Pro binoculars camera Below is the sample photo taken with the Creative XP NV binoculars camera (left) against the photo taken with my Samsung S5 cellphone (right). You be the judge.
Photo taken by CreativeXP NV Pro binocular camera Photo taken from my Samsung S5 cell phone. Are binocular cameras worth it? No, binocular cameras are not worth the money. The images are fuzzy rendering the subject virtually unrecognizable.
I used to believe once the powerhouse camera companies like Canon, Nikon, Sony, and others enter the market and invest in developing the binoculars camera technology, the quality will skyrocket.
Now I believe superzoom cameras are the future for amateur and hobby birdwatchers.
If you’re a birdwatcher interested in snapping clear, zoomed-in, high-quality pictures of birds you must check out The Best Superzoom Cameras for Birding . Even the budget superzoom camera blows the best binoculars camera out of the water.
What do you think? Based on my sample photos, do you think binocular cameras are worth it? Leave a comment below.
Happy Birding!
https://onthefeeder.com/wp-content/plugins/breeze/assets/js/js-front-end/breeze-prefetch-links.min.js
https://onthefeeder.com/wp-content/uploads/breeze/google/gtag.js
(function(){window.adthriveCLS.buildDate=`2025-10-27`;let e={Below_Post_1:`Below_Post_1`,Below_Post:`Below_Post`,Content:`Content`,Content_1:`Content_1`,Content_2:`Content_2`,Content_3:`Content_3`,Content_4:`Content_4`,Content_5:`Content_5`,Content_6:`Content_6`,Content_7:`Content_7`,Content_8:`Content_8`,Content_9:`Content_9`,Recipe:`Recipe`,Recipe_1:`Recipe_1`,Recipe_2:`Recipe_2`,Recipe_3:`Recipe_3`,Recipe_4:`Recipe_4`,Recipe_5:`Recipe_5`,Native_Recipe:`Native_Recipe`,Footer_1:`Footer_1`,Footer:`Footer`,Header_1:`Header_1`,Header_2:`Header_2`,Header:`Header`,Sidebar_1:`Sidebar_1`,Sidebar_2:`Sidebar_2`,Sidebar_3:`Sidebar_3`,Sidebar_4:`Sidebar_4`,Sidebar_5:`Sidebar_5`,Sidebar_9:`Sidebar_9`,Sidebar:`Sidebar`,Interstitial_1:`Interstitial_1`,Interstitial:`Interstitial`,Video_StickyOutstream_1:`Video_StickyOutstream_1`,Video_StickyOutstream:`Video_StickyOutstream`,Video_StickyInstream:`Video_StickyInstream`,Sponsor_Tile:`Sponsor_Tile`},t=[`siteId`,`siteName`,`adOptions`,`breakpoints`,`adUnits`],n=(e,n=t)=>{if(!e)return window.adthriveCLS&&(window.adthriveCLS.disabled=!0),!1;for(let t=0;t<n.length;t++)if(!e[n[t]])return window.adthriveCLS&&(window.adthriveCLS.disabled=!0),!1;return!0},r=()=>window.adthriveCLS;function i(e){"@babel/helpers - typeof";return i=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},i(e)}function a(e,t){if(i(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(i(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function o(e){var t=a(e,`string`);return i(t)==`symbol`?t:t+``}function s(e,t,n){return(t=o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=class{constructor(){s(this,`_clsGlobalData`,r())}get enabled(){return!!this._clsGlobalData&&!!this._clsGlobalData.siteAds&&n(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}get enabledLocations(){return[e.Below_Post,e.Content,e.Recipe,e.Sidebar]}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}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}setExperiment(e,t,n=!1){this._clsGlobalData.experiments=this._clsGlobalData.experiments||{},this._clsGlobalData.siteExperiments=this._clsGlobalData.siteExperiments||{};let r=n?this._clsGlobalData.siteExperiments:this._clsGlobalData.experiments;r[e]=t}getExperiment(e,t=!1){let n=t?this._clsGlobalData.siteExperiments:this._clsGlobalData.experiments;return n&&n[e]}setWeightedChoiceExperiment(e,t,n=!1){this._clsGlobalData.experimentsWeightedChoice=this._clsGlobalData.experimentsWeightedChoice||{},this._clsGlobalData.siteExperimentsWeightedChoice=this._clsGlobalData.siteExperimentsWeightedChoice||{};let r=n?this._clsGlobalData.siteExperimentsWeightedChoice:this._clsGlobalData.experimentsWeightedChoice;r[e]=t}getWeightedChoiceExperiment(e,t=!1){var n,r;let i=t?(n=this._clsGlobalData)==null?void 0:n.siteExperimentsWeightedChoice:(r=this._clsGlobalData)==null?void 0:r.experimentsWeightedChoice;return i&&i[e]}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}get removeVideoTitleWrapper(){return this._clsGlobalData.siteAds.adOptions.removeVideoTitleWrapper}};let l=e=>{let t={};return function(...n){let r=JSON.stringify(n);if(t[r])return t[r];let i=e.apply(this,n);return t[r]=i,i}},u=l(()=>{let 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)&&!t});var d=class{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=e.length,n,r;for(;t!==0;)r=Math.floor(Math.random()*e.length),--t,n=e[t],e[t]=e[r],e[r]=n;return e}static isMobileLandscape(){return window.matchMedia(`(orientation: landscape) and (max-height: 480px)`).matches}static playerViewable(e){let t=e.getBoundingClientRect();return this.isMobileLandscape()?window.innerHeight>t.top+t.height/2&&t.top+t.height/2>0:window.innerHeight>t.top+t.height/2}static createQueryString(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join(`&`)}static createEncodedQueryString(e){return Object.keys(e).map(t=>`${t}=${encodeURIComponent(e[t])}`).join(`&`)}static setMobileLocation(e,t=!1){e=e||`bottom-right`;let n=t?`raptive-player-sticky`:`adthrive-collapse`;return e===`top-left`?e=`${n}-top-left`:e===`top-right`?e=`${n}-top-right`:e===`bottom-left`?e=`${n}-bottom-left`:e===`bottom-right`?e=`${n}-bottom-right`:e===`top-center`&&(e=`adthrive-collapse-${u()?`top-center`:`bottom-right`}`),e}static addMaxResolutionQueryParam(e){let t=`max_resolution=${u()?`320`:`1280`}`,[n,r]=String(e).split(`?`),i=r?r+`&${t}`:t;return`${n}?${i}`}};let f=(e,t)=>e==null||e!==e?t:e;var p=class{constructor(e){this._clsOptions=e,s(this,`relatedSettings`,void 0),s(this,`players`,void 0),s(this,`removeVideoTitleWrapper`,void 0),s(this,`footerSelector`,void 0),this.removeVideoTitleWrapper=f(this._clsOptions.siteAds.adOptions.removeVideoTitleWrapper,!1);let t=this._clsOptions.siteAds.videoPlayers;this.footerSelector=f(t&&t.footerSelector,``),this.players=f(t&&t.players.map(e=>(e.mobileLocation=d.setMobileLocation(e.mobileLocation),e)),[]),this.relatedSettings=t&&t.contextual}},m=class{constructor(e){s(this,`mobileStickyPlayerOnPage`,!1),s(this,`collapsiblePlayerOnPage`,!1),s(this,`playlistPlayerAdded`,!1),s(this,`relatedPlayerAdded`,!1),s(this,`collapseSettings`,void 0),s(this,`footerSelector`,``),s(this,`removeVideoTitleWrapper`,!1),s(this,`desktopCollapseSettings`,void 0),s(this,`mobileCollapseSettings`,void 0),s(this,`relatedSettings`,void 0),s(this,`playerId`,void 0),s(this,`playlistId`,void 0),s(this,`desktopRelatedCollapseSettings`,void 0),s(this,`mobileRelatedCollapseSettings`,void 0),s(this,`collapsePlayerId`,void 0),s(this,`players`,void 0),s(this,`videoAdOptions`,void 0),this.videoAdOptions=new p(e),this.players=this.videoAdOptions.players,this.relatedSettings=this.videoAdOptions.relatedSettings,this.removeVideoTitleWrapper=this.videoAdOptions.removeVideoTitleWrapper,this.footerSelector=this.videoAdOptions.footerSelector}};navigator.vendor;let h=navigator.userAgent,g=l(e=>/Chrom|Applechromium/.test(e||h)),_=l(()=>/WebKit/.test(h)),v=l(()=>g()?`chromium`:_()?`webkit`:`other`),y=e=>{let t=e.clientWidth;if(getComputedStyle){let n=getComputedStyle(e,null);t-=parseFloat(n.paddingLeft||`0`)+parseFloat(n.paddingRight||`0`)}return t};var b=class{},ee=class extends b{constructor(e){super(),this._probability=e}get(){if(this._probability<0||this._probability>1)throw Error(`Invalid probability: ${this._probability}`);return Math.random()<this._probability}},te=class{constructor(){s(this,`_featureRollouts`,{}),s(this,`_checkedFeatureRollouts`,new Map),s(this,`_enabledFeatureRolloutIds`,[])}get siteFeatureRollouts(){return this._featureRollouts}_isRolloutEnabled(e){if(this._doesRolloutExist(e)){let t=this._featureRollouts[e],n=t.enabled,r=t.data;if(this._doesRolloutHaveConfig(e)&&this._isFeatureRolloutConfigType(r)){let e=r.pct_enabled?r.pct_enabled/100:1;n=n&&new ee(e).get()}return n}return!1}isRolloutEnabled(e){var t;let n=(t=this._checkedFeatureRollouts.get(e))==null?this._isRolloutEnabled(e):t;return this._checkedFeatureRollouts.get(e)===void 0&&this._checkedFeatureRollouts.set(e,n),n}_doesRolloutExist(e){return this._featureRollouts&&!!this._featureRollouts[e]}_doesRolloutHaveConfig(e){return this._doesRolloutExist(e)&&`data`in this._featureRollouts[e]}_isFeatureRolloutConfigType(e){return typeof e==`object`&&!!e&&!!Object.keys(e).length}getSiteRolloutConfig(e){var t;let n=this.isRolloutEnabled(e),r=(t=this._featureRollouts[e])==null?void 0:t.data;return n&&this._doesRolloutHaveConfig(e)&&this._isFeatureRolloutConfigType(r)?r:{}}get enabledFeatureRolloutIds(){return this._enabledFeatureRolloutIds}},ne=class extends te{constructor(e){super(),this._featureRollouts=e,this._setEnabledFeatureRolloutIds()}_setEnabledFeatureRolloutIds(){Object.entries(this._featureRollouts).forEach(([e,t])=>{this.isRolloutEnabled(e)&&t.featureRolloutId!==void 0&&this._enabledFeatureRolloutIds.push(t.featureRolloutId)})}},x;let re=new ne(window.adthriveCLS&&window.adthriveCLS.siteAds&&`featureRollouts`in window.adthriveCLS.siteAds?(x=window.adthriveCLS.siteAds.featureRollouts)==null?{}:x:{}),ie=[[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],[300,420],[728,250],[320,300],[300,390]],S=new Map([[e.Footer,1],[e.Header,2],[e.Sidebar,3],[e.Content,4],[e.Recipe,5],[`Sidebar_sticky`,6],[`Below Post`,7]]),C=e=>ie.filter(([t,n])=>e.some(([e,r])=>t===e&&n===r)),ae=(t,[n,r],i)=>{let{location:a,sequence:o}=t;if(a===e.Footer)return!(i===`phone`&&n===320&&r===100);if(a===e.Header)return!0;if(a===e.Recipe)return!(u()&&i===`phone`&&(n===300&&r===390||n===320&&r===300));if(a===e.Sidebar){let e=t.adSizes.some(([,e])=>e<=300),n=!!o&&o<=5,i=r>300;return i&&!e||o===9?!0:n?i?t.sticky:!0:!i}else return!0},oe=(t,n)=>{let{location:r,sticky:i}=t;if(r===e.Recipe&&n){let{recipeMobile:e,recipeDesktop:t}=n;if(u()&&e!=null&&e.enabled||!u()&&t!=null&&t.enabled)return!0}return r===e.Footer||i},se=(t,n)=>{let r=n.adUnits,i=re.isRolloutEnabled(`enable-250px-max-ad-height`);return r.filter(e=>e.dynamic!==void 0&&e.dynamic.enabled).map(r=>{let a=r.location.replace(/\s+/g,`_`),o=a===`Sidebar`?0:2;return a===e.Content&&i&&g()&&(r.adSizes=r.adSizes.filter(e=>e[1]<=250)),{auctionPriority:S.get(a)||8,location:a,sequence:f(r.sequence,1),thirdPartyAdUnitName:r.thirdPartyAdUnitName||``,sizes:C(r.adSizes).filter(e=>ae(r,e,t)),devices:r.devices,pageSelector:f(r.dynamic.pageSelector,``).trim(),elementSelector:f(r.dynamic.elementSelector,``).trim(),position:f(r.dynamic.position,`beforebegin`),max:Math.floor(f(r.dynamic.max,0)),spacing:f(r.dynamic.spacing,0),skip:Math.floor(f(r.dynamic.skip,0)),every:Math.max(Math.floor(f(r.dynamic.every,1)),1),classNames:r.dynamic.classNames||[],sticky:oe(r,n.adOptions.stickyContainerConfig),stickyOverlapSelector:f(r.stickyOverlapSelector,``).trim(),autosize:r.autosize,special:f(r.targeting,[]).filter(e=>e.key===`special`).reduce((e,t)=>e.concat(...t.value),[]),lazy:f(r.dynamic.lazy,!1),lazyMax:f(r.dynamic.lazyMax,o),lazyMaxDefaulted:r.dynamic.lazyMax===0?!1:!r.dynamic.lazyMax,name:r.name}})},w=(t,n)=>{let r=y(n),i=t.sticky&&t.location===e.Sidebar;return t.sizes.filter(e=>{let n=t.autosize?e[0]<=r||e[0]<=320:!0,a=i?e[1]<=window.innerHeight-100:!0;return n&&a})},ce=(e,t)=>e.devices.includes(t),le=e=>e.pageSelector.length===0||document.querySelector(e.pageSelector)!==null,T=new class{info(e,t,...n){this.call(console.info,e,t,...n)}warn(e,t,...n){this.call(console.warn,e,t,...n)}error(e,t,...n){this.call(console.error,e,t,...n),this.sendErrorLogToCommandQueue(e,t,...n)}event(e,t,...n){var r;((r=window.adthriveCLS)==null?void 0:r.bucket)===`debug`&&this.info(e,t)}sendErrorLogToCommandQueue(e,t,...n){window.adthrive=window.adthrive||{},window.adthrive.cmd=window.adthrive.cmd||[],window.adthrive.cmd.push(()=>{window.adthrive.logError!==void 0&&typeof window.adthrive.logError==`function`&&window.adthrive.logError(e,t,n)})}call(e,t,n,...r){let i=[`%c${t}::${n} `],a=[`color: #999; font-weight: bold;`];r.length>0&&typeof r[0]==`string`&&i.push(r.shift()),a.push(...r);try{Function.prototype.apply.call(e,console,[i.join(``),...a])}catch(e){console.error(e);return}}},E={Desktop:`desktop`,Mobile:`mobile`},ue=e=>{let t=document.body,n=`adthrive-device-${e}`;if(!t.classList.contains(n))try{t.classList.add(n)}catch(e){T.error(`BodyDeviceClassComponent`,`init`,{message:e.message});let t=`classList`in document.createElement(`_`);T.error(`BodyDeviceClassComponent`,`init.support`,{support:t})}},D=e=>`adthrive-${e.location.replace(`_`,`-`).toLowerCase()}`,O=e=>`${D(e)}-${e.sequence}`,de=(e,t)=>{let n=window.innerWidth;return n>=t?`desktop`:n>=e?`tablet`:`phone`},fe=e=>{let t=e.offsetHeight,n=e.offsetWidth,r=e.getBoundingClientRect(),i=document.body,a=document.documentElement,o=window.pageYOffset||a.scrollTop||i.scrollTop,s=window.pageXOffset||a.scrollLeft||i.scrollLeft,c=a.clientTop||i.clientTop||0,l=a.clientLeft||i.clientLeft||0,u=Math.round(r.top+o-c),d=Math.round(r.left+s-l);return{top:u,left:d,bottom:u+t,right:d+n,width:n,height:t}},pe=(e=document)=>(e===document?document.body:e).getBoundingClientRect().top,me=e=>e.includes(`,`)?e.split(`,`):[e],he=(e=document)=>{let t=e.querySelectorAll(`article`);if(t.length===0)return null;let n=Array.from(t).reduce((e,t)=>t.offsetHeight>e.offsetHeight?t:e);return n&&n.offsetHeight>window.innerHeight*1.5?n:null},ge=(e,t,n=document)=>{let r=he(n),i=r?[r]:[],a=[];e.forEach(e=>{let r=Array.from(n.querySelectorAll(e.elementSelector)).slice(0,e.skip);me(e.elementSelector).forEach(o=>{let s=n.querySelectorAll(o);for(let n=0;n<s.length;n++){let o=s[n];if(t.map.some(({el:e})=>e.isEqualNode(o)))continue;let c=o&&o.parentElement;c&&c!==document.body?i.push(c):i.push(o),r.indexOf(o)===-1&&a.push({dynamicAd:e,element:o})}})});let o=pe(n),s=a.sort((e,t)=>e.element.getBoundingClientRect().top-o-(t.element.getBoundingClientRect().top-o));return[i,s]},_e=(e,t,n=document)=>{let[r,i]=ge(e,t,n);return r.length===0?[null,i]:[Array.from(r).reduce((e,t)=>t.offsetHeight>e.offsetHeight?t:e)||document.body,i]},ve=(e,t=`div #comments, section .comments`)=>{let n=e.querySelector(t);return n?e.offsetHeight-n.offsetHeight:e.offsetHeight},k=()=>{let e=document.body,t=document.documentElement;return Math.max(e.scrollHeight,e.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight)},A=()=>{let e=document.body,t=document.documentElement;return Math.max(e.scrollWidth,e.offsetWidth,t.clientWidth,t.scrollWidth,t.offsetWidth)};function j(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(!e||typeof document>`u`)){var r=document.head||document.getElementsByTagName(`head`)[0],i=document.createElement(`style`);i.type=`text/css`,n===`top`&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}var M=j;let N=e=>M(`
.adthrive-device-phone .adthrive-sticky-content {
height: 450px !important;
margin-bottom: 100px !important;
}
.adthrive-content.adthrive-sticky {
position: -webkit-sticky;
position: sticky !important;
top: 42px !important;
margin-top: 42px !important;
}
.adthrive-content.adthrive-sticky:after {
content: "— Advertisement. Scroll down to continue. —";
font-size: 10pt;
margin-top: 5px;
margin-bottom: 5px;
display:block;
color: #888;
}
.adthrive-sticky-container {
position: relative;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: center;
min-height:${e||400}px;
margin: 10px 0 10px 0;
background-color: #FAFAFA;
padding-bottom:0px;
}
`),P=e=>{M(`
.adthrive-recipe.adthrive-sticky {
position: -webkit-sticky;
position: sticky !important;
top: 42px !important;
margin-top: 42px !important;
}
.adthrive-recipe-sticky-container {
position: relative;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: center;
min-height:${e||400}px !important;
margin: 10px 0 10px 0;
background-color: #FAFAFA;
padding-bottom:0px;
}
`)},F=e=>e.some(e=>document.querySelector(e)!==null),ye=e=>/^[-_a-zA-Z]+[-_a-zA-Z0-9]*$/.test(e),be=(e,t,n)=>{let r=e=>e?!!(e.classList.contains(`adthrive-ad`)||e.id.includes(`_${n}_`)):!1;switch(t){case`beforebegin`:return r(e.previousElementSibling);case`afterend`:return r(e.nextElementSibling);case`afterbegin`:return r(e.firstElementChild);case`beforeend`:return r(e.lastElementChild);default:return!1}};function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function L(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?I(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let R=e=>{try{return{valid:!0,elements:document.querySelectorAll(e)}}catch(e){return L({valid:!1},e)}},z=e=>e===``?{valid:!0}:R(e),xe=(e,t)=>Math.random()*(t-e)+e;var B=class e extends b{constructor(e=[],t){super(),this._choices=e,this._default=t}static fromArray(t,n){return new e(t.map(([e,t])=>({choice:e,weight:t})),n)}addChoice(e,t){this._choices.push({choice:e,weight:t})}get(){let e=xe(0,100),t=0;for(let{choice:n,weight:r}of this._choices)if(t+=r,t>=e)return n;return this._default}get totalWeight(){return this._choices.reduce((e,{weight:t})=>e+t,0)}};let V={AdDensity:`addensity`,AdLayout:`adlayout`,FooterCloseButton:`footerclose`,Interstitial:`interstitial`,RemoveVideoTitleWrapper:`removevideotitlewrapper`,StickyOutstream:`stickyoutstream`,StickyOutstreamOnStickyPlayer:`sospp`,VideoAdvancePlaylistRelatedPlayer:`videoadvanceplaylistrp`,MobileStickyPlayerPosition:`mspp`};var Se=class{constructor(){s(this,`name`,void 0),s(this,`disable`,void 0),s(this,`gdprPurposes`,void 0)}};let Ce=[`mcmpfreqrec`],H=new class extends Se{constructor(...e){super(...e),s(this,`name`,`BrowserStorage`),s(this,`disable`,!1),s(this,`gdprPurposes`,[1]),s(this,`_sessionStorageHandlerQueue`,[]),s(this,`_localStorageHandlerQueue`,[]),s(this,`_cookieHandlerQueue`,[]),s(this,`_gdpr`,void 0),s(this,`_shouldQueue`,!1)}init(e){this._gdpr=e.gdpr===`true`,this._shouldQueue=this._gdpr}clearQueue(e){e&&(this._shouldQueue=!1,this._sessionStorageHandlerQueue.forEach(e=>{this.setSessionStorage(e.key,e.value)}),this._localStorageHandlerQueue.forEach(e=>{if(e.key===`adthrive_abgroup`){let t=Object.keys(e.value)[0],n=e.value[t],r=e.value[`${t}_weight`];this.getOrSetABGroupLocalStorageValue(t,n,r,{value:24,unit:`hours`})}else e.expiry?e.type===`internal`?this.setExpirableInternalLocalStorage(e.key,e.value,{expiry:e.expiry,resetOnRead:e.resetOnRead}):this.setExpirableExternalLocalStorage(e.key,e.value,{expiry:e.expiry,resetOnRead:e.resetOnRead}):e.type===`internal`?this.setInternalLocalStorage(e.key,e.value):this.setExternalLocalStorage(e.key,e.value)}),this._cookieHandlerQueue.forEach(e=>{e.type===`internal`?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)}readExternalCookieList(e){return this._readCookieList(e)}getAllCookies(){return this._getCookies()}readInternalLocalStorage(e){return this._verifyInternalKey(e),this._readFromLocalStorage(e)}readExternalLocalStorage(e){return this._readFromLocalStorage(e)}readSessionStorage(e){let 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,n){this._verifyInternalKey(e),this._setCookieValue(`internal`,e,t,n)}setExternalCookie(e,t,n){this._setCookieValue(`external`,e,t,n)}setInternalLocalStorage(e,t){if(this._verifyInternalKey(e),this._gdpr&&this._shouldQueue){let n={key:e,value:t,type:`internal`};this._localStorageHandlerQueue.push(n)}else{let n=typeof t==`string`?t:JSON.stringify(t);window.localStorage.setItem(e,n)}}setExternalLocalStorage(e,t){if(this._gdpr&&this._shouldQueue){let n={key:e,value:t,type:`external`};this._localStorageHandlerQueue.push(n)}else{let n=typeof t==`string`?t:JSON.stringify(t);window.localStorage.setItem(e,n)}}setExpirableInternalLocalStorage(e,t,n){this._verifyInternalKey(e);try{var r,i;let a=(r=n==null?void 0:n.expiry)==null?{value:400,unit:`days`}:r,o=(i=n==null?void 0:n.resetOnRead)==null?!1:i;if(this._gdpr&&this._shouldQueue){let n={key:e,value:t,type:`internal`,expires:this._getExpiryDate(a),expiry:a,resetOnRead:o};this._localStorageHandlerQueue.push(n)}else{let n={value:t,type:`internal`,expires:this._getExpiryDate(a),expiry:a,resetOnRead:o};window.localStorage.setItem(e,JSON.stringify(n))}}catch(e){console.error(e)}}setExpirableExternalLocalStorage(e,t,n){try{var r,i;let a=(r=n==null?void 0:n.expiry)==null?{value:400,unit:`days`}:r,o=(i=n==null?void 0:n.resetOnRead)==null?!1:i;if(this._gdpr&&this._shouldQueue){let n={key:e,value:JSON.stringify(t),type:`external`,expires:this._getExpiryDate(a),expiry:a,resetOnRead:o};this._localStorageHandlerQueue.push(n)}else{let n={value:t,type:`external`,expires:this._getExpiryDate(a),expiry:a,resetOnRead:o};window.localStorage.setItem(e,JSON.stringify(n))}}catch(e){console.error(e)}}setSessionStorage(e,t){if(this._gdpr&&this._shouldQueue){let n={key:e,value:t};this._sessionStorageHandlerQueue.push(n)}else{let n=typeof t==`string`?t:JSON.stringify(t);window.sessionStorage.setItem(e,n)}}getOrSetABGroupLocalStorageValue(e,t,n,r,i=!0){let a=`adthrive_abgroup`,o=(this.readInternalLocalStorage(a));if(o!==null){var s;let t=o[e],n=(s=o[`${e}_weight`])==null?null:s;if(this._isValidABGroupLocalStorageValue(t))return[t,n]}let c=(L(L({},o),{},{[e]:t,[`${e}_weight`]:n}));return r?this.setExpirableInternalLocalStorage(a,c,{expiry:r,resetOnRead:i}):this.setInternalLocalStorage(a,c),[t,n]}_isValidABGroupLocalStorageValue(e){return e!=null&&!(typeof e==`number`&&isNaN(e))}_getExpiryDate({value:e,unit:t}){let n=new Date;return t===`milliseconds`?n.setTime(n.getTime()+e):t==`seconds`?n.setTime(n.getTime()+e*1e3):t===`minutes`?n.setTime(n.getTime()+e*60*1e3):t===`hours`?n.setTime(n.getTime()+e*60*60*1e3):t===`days`?n.setTime(n.getTime()+e*24*60*60*1e3):t===`months`&&n.setTime(n.getTime()+e*30*24*60*60*1e3),n.toUTCString()}_resetExpiry(e){return e.expires=this._getExpiryDate(e.expiry),e}_readCookie(e){let t=(document.cookie.split(`; `).find(t=>t.split(`=`)[0]===e));if(!t)return null;let n=(t.split(`=`))[1];if(n)try{return JSON.parse(decodeURIComponent(n))}catch(e){return decodeURIComponent(n)}return null}_readCookieList(e){let t;for(let n of document.cookie.split(`;`)){let[r,...i]=(n.split(`=`));r.trim()===e&&(t=i.join(`=`).trim())}return t&&JSON.parse(t)||[]}_getCookies(){let e=[];return document.cookie.split(`;`).forEach(t=>{let[n,r]=t.split(`=`).map(e=>e.trim());e.push({name:n,value:r})}),e}_readFromLocalStorage(e){let t=(window.localStorage.getItem(e));if(!t)return null;try{let r=(JSON.parse(t)),i=r.expires&&(new Date().getTime())>=(new Date(r.expires).getTime());if(e===`adthrive_abgroup`&&r.created)return window.localStorage.removeItem(e),null;if(r.resetOnRead&&r.expires&&!i){var n;let t=(this._resetExpiry(r));return window.localStorage.setItem(e,JSON.stringify(r)),(n=t.value)==null?t:n}else if(i)return window.localStorage.removeItem(e),null;if(Object.prototype.hasOwnProperty.call(r,`value`))try{return JSON.parse(r.value)}catch(e){return r.value}else return r}catch(e){return t}}_setCookieValue(e,t,n,r){try{if(this._gdpr&&this._shouldQueue){let r={key:t,value:n,type:e};this._cookieHandlerQueue.push(r)}else{var i,a,o;let e=(this._getExpiryDate((i=r==null?void 0:r.expiry)==null?{value:400,unit:`days`}:i)),s=(a=r==null?void 0:r.sameSite)==null?`None`:a,c=(o=r==null?void 0:r.secure)==null?!0:o,l=typeof n==`object`?JSON.stringify(n):n;document.cookie=`${t}=${l}; SameSite=${s}; ${c?`Secure;`:``} expires=${e}; path=/`}}catch(e){}}_verifyInternalKey(e){let t=(e.startsWith(`adthrive_`)),n=(e.startsWith(`adt_`));if(!t&&!n&&!Ce.includes(e))throw Error(`When reading an internal cookie, the key must start with "adthrive_" or "adt_" or be part of the allowed legacy keys.`)}},we=e=>{let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return t>>>0},Te=e=>we(e).toString(16),Ee=e=>{if(e===null)return null;let t=e.map(({choice:e})=>e);return Te(JSON.stringify(t))},De=(e,t)=>{var n,r;return(n=(r=e.find(({choice:e})=>e===t))==null?void 0:r.weight)==null?null:n},Oe=e=>e!=null&&!(typeof e==`number`&&isNaN(e)),U=()=>(e,t,n)=>{let r=n.value;r&&(n.value=function(...e){let t=Ee(this._choices),n=this._expConfigABGroup?this._expConfigABGroup:this.abgroup,i=n?n.toLowerCase():this.key?this.key.toLowerCase():``,a=t?`${i}_${t}`:i,o=this.localStoragePrefix?`${this.localStoragePrefix}-${a}`:a,s=`config`in window.adthrive?window.adthrive.config.gdpr.enabled:window.adthrive.gdpr===`true`;if([V.AdLayout,V.AdDensity].includes(i)&&s)return r.apply(this,e);let c=H.readInternalLocalStorage(`adthrive_branch`);(c&&c.enabled)===!1&&H.deleteLocalStorage(o);let l=(()=>r.apply(this,e))(),u=De(this._choices,l),[d,f]=H.getOrSetABGroupLocalStorageValue(o,l,u,{value:24,unit:`hours`});return this._stickyResult=d,this._stickyWeight=f,d})},ke=(e=window.location.search)=>{let t=e.indexOf(`?`)===0?1:0;return e.slice(t).split(`&`).reduce((e,t)=>{let[n,r]=t.split(`=`);return e.set(n,r),e},new Map)},Ae=e=>{let t={},n=ke().get(e);if(n)try{let r=decodeURIComponent(n).replace(/\+/g,``);t=JSON.parse(r),T.event(`ExperimentOverridesUtil`,`getExperimentOverrides`,e,t)}catch(e){e instanceof URIError}return t},je=(e,t)=>typeof e==typeof t,Me=(e,t)=>{let n=e.adDensityEnabled,r=e.adDensityLayout.pageOverrides.find(e=>!!document.querySelector(e.pageSelector)&&(e[t].onePerViewport||typeof e[t].adDensity==`number`));return n?!r:!0},Ne=e=>{var t;let n=(t=e.videoPlayers)==null||(t=t.partners)==null||(t=t.stickyOutstream)==null?void 0:t.blockedPageSelectors;return n?!document.querySelector(n):!0},Pe=e=>{let t=e.adOptions.interstitialBlockedPageSelectors;return t?!document.querySelector(t):!0},Fe=(e,t,n)=>{switch(t){case V.AdDensity:return Me(e,n);case V.StickyOutstream:return Ne(e);case V.Interstitial:return Pe(e);default:return!0}},Ie=e=>e.length===1,Le=e=>{let t=e.reduce((e,t)=>t.weight?t.weight+e:e,0);return e.length>0&&e.every(e=>{let t=e.value,n=e.weight;return!!(t!=null&&!(typeof t==`number`&&isNaN(t))&&n)})&&t===100},Re=(e,t)=>{if(!e)return!1;let n=!!e.enabled,r=e.dateStart==null||Date.now()>=e.dateStart,i=e.dateEnd==null||Date.now()<=e.dateEnd,a=e.selector===null||e.selector!==``&&!!document.querySelector(e.selector),o=e.platform===`mobile`&&t===`mobile`,s=e.platform===`desktop`&&t===`desktop`,c=e.platform===null||e.platform===`all`||o||s,l=e.experimentType===`bernoulliTrial`?Ie(e.variants):Le(e.variants);return l||T.error(`SiteTest`,`validateSiteExperiment`,`experiment presented invalid choices for key:`,e.key,e.variants),n&&r&&i&&a&&c&&l};var W=class{constructor(e){var t,n;s(this,`siteExperiments`,[]),s(this,`_clsOptions`,void 0),s(this,`_device`,void 0),this._clsOptions=e,this._device=u()?`mobile`:`desktop`,this.siteExperiments=(t=(n=this._clsOptions.siteAds.siteExperiments)==null?void 0:n.filter(e=>{let t=e.key,n=Re(e,this._device),r=Fe(this._clsOptions.siteAds,t,this._device);return n&&r}))==null?[]:t}getSiteExperimentByKey(e){let t=this.siteExperiments.filter(t=>t.key.toLowerCase()===e.toLowerCase())[0],n=Ae(`at_site_features`),r=je(t!=null&&t.variants[1]?t==null?void 0:t.variants[1].value:t==null?void 0:t.variants[0].value,n[e]);return t&&n[e]&&r&&(t.variants=[{displayName:`test`,value:n[e],weight:100,id:0}]),t}},ze=class{constructor(){s(this,`experimentConfig`,void 0)}get enabled(){return this.experimentConfig!==void 0}_isValidResult(e,t=()=>!0){return t()&&Oe(e)}},G=class extends ze{constructor(...e){super(...e),s(this,`_resultValidator`,()=>!0)}_isValidResult(e){return super._isValidResult(e,()=>this._resultValidator(e)||e===`control`)}run(){if(!this.enabled)return T.error(`CLSWeightedChoiceSiteExperiment`,`run`,`() => %o`,`No experiment config found. Defaulting to control.`),`control`;if(!this._mappedChoices||this._mappedChoices.length===0)return T.error(`CLSWeightedChoiceSiteExperiment`,`run`,`() => %o`,`No experiment variants found. Defaulting to control.`),`control`;let e=new B(this._mappedChoices).get();return this._isValidResult(e)?e:(T.error(`CLSWeightedChoiceSiteExperiment`,`run`,`() => %o`,`Invalid result from experiment choices. Defaulting to control.`),`control`)}};function K(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var q=class extends G{constructor(e){super(),s(this,`_choices`,[]),s(this,`_mappedChoices`,[]),s(this,`_result`,``),s(this,`_clsSiteExperiments`,void 0),s(this,`_resultValidator`,e=>typeof e==`string`),s(this,`key`,V.AdLayout),s(this,`abgroup`,V.AdLayout),this._clsSiteExperiments=new W(e),this.experimentConfig=this._clsSiteExperiments.getSiteExperimentByKey(this.key),this.enabled&&this.experimentConfig&&(this._choices=this.experimentConfig.variants,this._mappedChoices=this._mapChoices(),this._result=this.run(),e.setWeightedChoiceExperiment(this.abgroup,this._result,!0))}get result(){return this._result}run(){if(!this.enabled)return T.error(`CLSAdLayoutSiteExperiment`,`run`,`() => %o`,`No experiment config found. Defaulting to empty class name.`),``;let e=new B(this._mappedChoices).get();return this._isValidResult(e)?e:(T.error(`CLSAdLayoutSiteExperiment`,`run`,`() => %o`,`Invalid result from experiment choices. Defaulting to empty class name.`),``)}_mapChoices(){return this._choices.map(({weight:e,value:t})=>({weight:e,choice:t}))}};K([U()],q.prototype,`run`,null);var J=class extends G{constructor(e){super(),s(this,`_choices`,[]),s(this,`_mappedChoices`,[]),s(this,`_result`,`control`),s(this,`_clsSiteExperiments`,void 0),s(this,`_resultValidator`,e=>typeof e==`number`),s(this,`key`,V.AdDensity),s(this,`abgroup`,V.AdDensity),this._clsSiteExperiments=new W(e),this.experimentConfig=this._clsSiteExperiments.getSiteExperimentByKey(this.key),this.enabled&&this.experimentConfig&&(this._choices=this.experimentConfig.variants,this._mappedChoices=this._mapChoices(),this._result=this.run(),e.setWeightedChoiceExperiment(this.abgroup,this._result,!0))}get result(){return this._result}run(){if(!this.enabled)return T.error(`CLSTargetAdDensitySiteExperiment`,`run`,`() => %o`,`No experiment config found. Defaulting to control.`),`control`;let e=new B(this._mappedChoices).get();return this._isValidResult(e)?e:(T.error(`CLSTargetAdDensitySiteExperiment`,`run`,`() => %o`,`Invalid result from experiment choices. Defaulting to control.`),`control`)}_mapChoices(){return this._choices.map(({weight:e,value:t})=>({weight:e,choice:typeof t==`number`?(t||0)/100:`control`}))}};K([U()],J.prototype,`run`,null);let Y=`250px`;var Be=class{constructor(t,n){this._clsOptions=t,this._adInjectionMap=n,s(this,`_recipeCount`,0),s(this,`_mainContentHeight`,0),s(this,`_mainContentDiv`,null),s(this,`_totalAvailableElements`,[]),s(this,`_minDivHeight`,250),s(this,`_densityDevice`,E.Desktop),s(this,`_pubLog`,{onePerViewport:!1,targetDensity:0,targetDensityUnits:0,combinedMax:0}),s(this,`_densityMax`,.99),s(this,`_smallerIncrementAttempts`,0),s(this,`_absoluteMinimumSpacingByDevice`,250),s(this,`_usedAbsoluteMinimum`,!1),s(this,`_infPageEndOffset`,0),s(this,`locationMaxLazySequence`,new Map([[e.Recipe,5]])),s(this,`locationToMinHeight`,{Below_Post:Y,Content:Y,Recipe:Y,Sidebar:Y}),s(this,`_device`,void 0),s(this,`_clsTargetAdDensitySiteExperiment`,void 0);let{tablet:r,desktop:i}=this._clsOptions.siteAds.breakpoints;this._device=de(r,i),this._clsTargetAdDensitySiteExperiment=this._clsOptions.siteAds.siteExperiments?new J(this._clsOptions):null}start(){try{var e;ue(this._device);let n=new q(this._clsOptions);if(n.enabled){let e=n.result,t=e.startsWith(`.`)?e.substring(1):e;if(ye(t))try{document.body.classList.add(t)}catch(e){T.error(`ClsDynamicAdsInjector`,`start`,`Uncaught CSS Class error: ${e}`)}else T.error(`ClsDynamicAdsInjector`,`start`,`Invalid class name: ${t}`)}let r=se(this._device,this._clsOptions.siteAds).filter(e=>this._locationEnabled(e)).filter(e=>ce(e,this._device)).filter(e=>le(e)),i=this.inject(r);if(!((e=this._clsOptions.siteAds.adOptions.stickyContainerConfig)==null||(e=e.content)==null)&&e.enabled&&!F(this._clsOptions.siteAds.adOptions.stickyContainerConfig.blockedSelectors||[])){var t;N((t=this._clsOptions.siteAds.adOptions.stickyContainerConfig)==null||(t=t.content)==null?void 0:t.minHeight)}i.forEach(e=>this._clsOptions.setInjectedSlots(e))}catch(e){T.error(`ClsDynamicAdsInjector`,`start`,e)}}inject(t,n=document){this._densityDevice=this._device===`desktop`?E.Desktop:E.Mobile,this._overrideDefaultAdDensitySettingsWithSiteExperiment();let r=this._clsOptions.siteAds,i=f(r.adDensityEnabled,!0),a=r.adDensityLayout&&i,o=t.filter(t=>a?t.location!==e.Content:t),s=t.filter(t=>a?t.location===e.Content:null);return this._capturePreSlotInsertionPageAreaMeasurement(),[...o.length?this._injectNonDensitySlots(o,n):[],...s.length?this._injectDensitySlots(s,n):[]]}_injectNonDensitySlots(t,n=document){var r;let i=[],a=[];if(t.some(t=>t.location===e.Recipe&&t.sticky)&&!F(((r=this._clsOptions.siteAds.adOptions.stickyContainerConfig)==null?void 0:r.blockedSelectors)||[])){var o,s;let e=this._clsOptions.siteAds.adOptions.stickyContainerConfig,t=this._device===`phone`?e==null||(o=e.recipeMobile)==null?void 0:o.minHeight:e==null||(s=e.recipeDesktop)==null?void 0:s.minHeight;P(t)}for(let e of t)this._insertNonDensityAds(e,i,a,n);return a.forEach(({location:e,element:t})=>{t.style.minHeight=this.locationToMinHeight[e]}),i}_injectDensitySlots(e,t=document){try{this._calculateMainContentHeightAndAllElements(e,t),this._capturePreSlotInsertionMainContentMeasurement()}catch(e){return[]}let{onePerViewport:n,targetAll:r,targetDensityUnits:i,combinedMax:a,numberOfUnits:o}=this._getDensitySettings(e,t);return this._absoluteMinimumSpacingByDevice=n?window.innerHeight:this._absoluteMinimumSpacingByDevice,o?(this._adInjectionMap.filterUsed(),this._findElementsForAds(o,n,r,a,i,t),this._insertAds()):[]}_overrideDefaultAdDensitySettingsWithSiteExperiment(){var e;if((e=this._clsTargetAdDensitySiteExperiment)!=null&&e.enabled){let e=this._clsTargetAdDensitySiteExperiment.result;typeof e==`number`&&(this._clsOptions.siteAds.adDensityEnabled=!0,this._clsOptions.siteAds.adDensityLayout[this._densityDevice].adDensity=e)}}_getDensitySettings(e,t=document){let n=this._clsOptions.siteAds.adDensityLayout,r=this._determineOverrides(n.pageOverrides),i=r.length?r[0]:n[this._densityDevice],a=i.adDensity,o=i.onePerViewport,s=this._shouldTargetAllEligible(a),c=this._getTargetDensityUnits(a,s),l=this._getCombinedMax(e,t),u=Math.min(this._totalAvailableElements.length,c,...l>0?[l]:[]);return this._pubLog={onePerViewport:o,targetDensity:a,targetDensityUnits:c,combinedMax:l},{onePerViewport:o,targetAll:s,targetDensityUnits:c,combinedMax:l,numberOfUnits:u}}_determineOverrides(e){return e.filter(e=>{let t=z(e.pageSelector);return e.pageSelector===``||t.elements&&t.elements.length}).map(e=>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 f(e.filter(e=>{let n;try{n=t.querySelector(e.elementSelector)}catch(e){}return n}).map(e=>Number(e.max)+Number(e.lazyMaxDefaulted?0:e.lazyMax)).sort((e,t)=>t-e)[0],0)}_elementLargerThanMainContent(e){return e.offsetHeight>=this._mainContentHeight&&this._totalAvailableElements.length>1}_elementDisplayNone(e){let t=window.getComputedStyle(e,null).display;return t&&t===`none`||e.style.display===`none`}_isBelowMaxes(e,t){return this._adInjectionMap.map.length<e&&this._adInjectionMap.map.length<t}_findElementsForAds(e,t,n,r,i,a=document){this._clsOptions.targetDensityLog={onePerViewport:t,combinedMax:r,targetDensityUnits:i,targetDensityPercentage:this._pubLog.targetDensity,mainContentHeight:this._mainContentHeight,recipeCount:this._recipeCount,numberOfEls:this._totalAvailableElements.length};let o=e=>{for(let{dynamicAd:t,element:o}of this._totalAvailableElements){if(this._logDensityInfo(o,t.elementSelector,e),!n&&this._elementLargerThanMainContent(o)||this._elementDisplayNone(o))continue;if(this._isBelowMaxes(r,i))this._checkElementSpacing({dynamicAd:t,element:o,insertEvery:e,targetAll:n,target:a});else break}!this._usedAbsoluteMinimum&&this._smallerIncrementAttempts<5&&(++this._smallerIncrementAttempts,o(this._getSmallerIncrement(e)))},s=this._getInsertEvery(e,t,i);o(s)}_getSmallerIncrement(e){let t=e*.6;return t<=this._absoluteMinimumSpacingByDevice&&(t=this._absoluteMinimumSpacingByDevice,this._usedAbsoluteMinimum=!0),t}_insertNonDensityAds(t,n,r,i=document){let a=0,o=0,s=0;t.spacing>0&&(a=window.innerHeight*t.spacing,o=a);let c=this._repeatDynamicAds(t),l=this.getElements(t.elementSelector,i);t.skip;for(let u=t.skip;u<l.length&&!(s+1>c.length);u+=t.every){let d=l[u];if(a>0){let{bottom:e}=fe(d);if(e<=o)continue;o=e+a}let f=c[s],p=`${f.location}_${f.sequence}`;n.some(e=>e.name===p)&&(s+=1);let m=this.getDynamicElementId(f),h=D(t),g=O(t),_=t.location===e.Sidebar&&t.sticky&&t.sequence&&t.sequence<=5?`adthrive-sticky-sidebar`:``,v=t.location===e.Recipe&&t.sticky?`adthrive-recipe-sticky-container`:``,y=[_,v,h,g,...t.classNames];if(be(d,t.position,t.location)&&t.location===e.Recipe)continue;let b=this.addAd(d,m,t.position,y);if(b){let a=w(f,b);if(a.length){let o={clsDynamicAd:t,dynamicAd:f,element:b,sizes:a,name:p,infinite:i!==document};n.push(o),r.push({location:f.location,element:b}),t.location===e.Recipe&&++this._recipeCount,s+=1}d=b}}}_insertAds(){let e=[],t=0;return this._adInjectionMap.filterUsed(),this._adInjectionMap.map.forEach(({el:n,dynamicAd:r,target:i},a)=>{let o=Number(r.sequence)+a,s=r.max,c=r.lazy&&o>s;r.sequence=o,r.lazy=c;let l=this._addContentAd(n,r,i);l&&(r.used=!0,e.push(l),++t)}),e}_getInsertEvery(e,t,n){let r=this._absoluteMinimumSpacingByDevice;return this._moreAvailableElementsThanUnitsToInject(n,e)?(this._usedAbsoluteMinimum=!1,r=this._useWiderSpacing(n,e)):(this._usedAbsoluteMinimum=!0,r=this._useSmallestSpacing(t)),t&&window.innerHeight>r?window.innerHeight:r}_useWiderSpacing(e,t){return this._mainContentHeight/Math.min(e,t)}_useSmallestSpacing(e){return e&&window.innerHeight>this._absoluteMinimumSpacingByDevice?window.innerHeight:this._absoluteMinimumSpacingByDevice}_moreAvailableElementsThanUnitsToInject(e,t){return this._totalAvailableElements.length>e||this._totalAvailableElements.length>t}_logDensityInfo(e,t,n){let{onePerViewport:r,targetDensity:i,targetDensityUnits:a,combinedMax:o}=this._pubLog;this._totalAvailableElements.length}_checkElementSpacing({dynamicAd:e,element:t,insertEvery:n,targetAll:r,target:i=document}){(this._isFirstAdInjected()||this._hasProperSpacing(t,e,r,n))&&this._markSpotForContentAd(t,L({},e),i)}_isFirstAdInjected(){return!this._adInjectionMap.map.length}_markSpotForContentAd(e,t,n=document){let r=t.position===`beforebegin`||t.position===`afterbegin`;this._adInjectionMap.add(e,this._getElementCoords(e,r),t,n),this._adInjectionMap.sort()}_hasProperSpacing(t,n,r,i){let a=n.position===`beforebegin`||n.position===`afterbegin`,o=n.position===`beforeend`||n.position===`afterbegin`,s=r||this._isElementFarEnoughFromOtherAdElements(t,i,a),c=o||this._isElementNotInRow(t,a),l=t.id.indexOf(`AdThrive_${e.Below_Post}`)===-1;return s&&c&&l}_isElementFarEnoughFromOtherAdElements(e,t,n){let r=this._getElementCoords(e,n),i=!1;for(let e=0;e<this._adInjectionMap.map.length;e++){let n=this._adInjectionMap.map[e].coords,a=this._adInjectionMap.map[e+1]&&this._adInjectionMap.map[e+1].coords;if(i=r-t>n&&(!a||r+t<a),i)break}return i}_isElementNotInRow(e,t){let n=e.previousElementSibling,r=e.nextElementSibling,i=t?!n&&r||n&&e.tagName!==n.tagName?r:n:r;return i&&e.getBoundingClientRect().height===0?!0:i?e.getBoundingClientRect().top!==i.getBoundingClientRect().top:!0}_calculateMainContentHeightAndAllElements(e,t=document){let[n,r]=_e(e,this._adInjectionMap,t);if(!n)throw Error(`No main content element found`);this._mainContentDiv=n,this._totalAvailableElements=r,this._mainContentHeight=ve(this._mainContentDiv)}_capturePreSlotInsertionMainContentMeasurement(){window.adthriveCLS&&(window.adthriveCLS.preSlotInsertionMeasurements?window.adthriveCLS.preSlotInsertionMeasurements.mainContentHeight=this._mainContentHeight:window.adthriveCLS.preSlotInsertionMeasurements={mainContentHeight:this._mainContentHeight})}_capturePreSlotInsertionPageAreaMeasurement(){if(window.adthriveCLS){let e=k()*A();window.adthriveCLS.preSlotInsertionMeasurements?window.adthriveCLS.preSlotInsertionMeasurements.totalPageArea=e:window.adthriveCLS.preSlotInsertionMeasurements={totalPageArea:e}}}_getElementCoords(e,t=!1){let n=e.getBoundingClientRect();return(t?n.top:n.bottom)+window.scrollY}_addContentAd(e,t,n=document){var r;let i=null,a=D(t),o=O(t),s=!((r=this._clsOptions.siteAds.adOptions.stickyContainerConfig)==null||(r=r.content)==null)&&r.enabled?`adthrive-sticky-container`:``,c=this.addAd(e,this.getDynamicElementId(t),t.position,[s,a,o,...t.classNames]);if(c){let e=w(t,c);if(e.length){c.style.minHeight=this.locationToMinHeight[t.location];let r=`${t.location}_${t.sequence}`;i={clsDynamicAd:t,dynamicAd:t,element:c,sizes:e,name:r,infinite:n!==document}}}return i}getDynamicElementId(e){return`AdThrive_${e.location}_${e.sequence}_${this._device}`}getElements(e,t=document){return t.querySelectorAll(e)}addAd(e,t,n,r=[]){if(!document.getElementById(t)){let i=`<div id="${t}" class="adthrive-ad ${r.join(` `)}"></div>`;e.insertAdjacentHTML(n,i)}return document.getElementById(t)}_repeatDynamicAds(t){let n=[],r=t.location===e.Recipe?99:this.locationMaxLazySequence.get(t.location),i=t.lazy?f(r,0):0,a=t.max,o=t.lazyMax,s=i===0&&t.lazy?a+o:Math.min(Math.max(i-t.sequence+1,0),a+o),c=Math.max(a,s);for(let e=0;e<c;e++){let r=Number(t.sequence)+e,i=t.lazy&&e>=a,o=r;t.name===`Recipe_1`&&r>=5&&(o=r+1),n.push(L(L({},t),{},{sequence:o,lazy:i}))}return n}_locationEnabled(e){let t=this._clsOptions.enabledLocations.includes(e.location),n=this._clsOptions.disableAds&&this._clsOptions.disableAds.all||document.body.classList.contains(`adthrive-disable-all`),r=!document.body.classList.contains(`adthrive-disable-content`)&&!this._clsOptions.disableAds.reasons.has(`content_plugin`);return t&&!n&&r}},Ve=class{constructor(){s(this,`_map`,[])}add(e,t,n,r=document){this._map.push({el:e,coords:t,dynamicAd:n,target:r})}get map(){return this._map}sort(){this._map.sort(({coords:e},{coords:t})=>e-t)}filterUsed(){this._map=this._map.filter(({dynamicAd:e})=>!e.used)}reset(){this._map=[]}},He=class extends Ve{};let X=l((e=navigator.userAgent)=>/Windows NT|Macintosh/i.test(e)),Ue=()=>{let e=u()?`mobile`:`tablet`;return X(h)?`desktop`:e},Z=e=>{let t=v(),n=Ue(),r=e.siteAdsProfiles,i=null;if(r&&r.length)for(let e of r){let r=e.targeting.device,a=e.targeting.browserEngine,o=r&&r.length&&r.includes(n),s=a&&a.length&&a.includes(t);o&&s&&(i=e)}return i},We=e=>{let t=Z(e);if(t){let e=t.profileId;document.body.classList.add(`raptive-profile-${e}`)}},Q={Video_Collapse_Autoplay_SoundOff:`Video_Collapse_Autoplay_SoundOff`,Video_Individual_Autoplay_SOff:`Video_Individual_Autoplay_SOff`,Video_Coll_SOff_Smartphone:`Video_Coll_SOff_Smartphone`,Video_In_Post_ClicktoPlay_SoundOn:`Video_In-Post_ClicktoPlay_SoundOn`,Video_Collapse_Autoplay_SoundOff_15s:`Video_Collapse_Autoplay_SoundOff_15s`,Video_Individual_Autoplay_SOff_15s:`Video_Individual_Autoplay_SOff_15s`,Video_Coll_SOff_Smartphone_15s:`Video_Coll_SOff_Smartphone_15s`,Video_In_Post_ClicktoPlay_SoundOn_15s:`Video_In-Post_ClicktoPlay_SoundOn_15s`};var Ge=class{get enabled(){return!0}};function Ke(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function $(e,t){if(e==null)return{};var n,r,i=Ke(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}let qe=[`valid`,`elements`],Je=[`valid`,`elements`];var Ye=class extends Ge{constructor(e,t,n){super(),this._videoConfig=e,this._component=t,this._context=n,s(this,`_potentialPlayerMap`,void 0),s(this,`_device`,void 0),s(this,`_stickyRelatedOnPage`,!1),s(this,`_relatedMediaIds`,[]),this._device=X()?`desktop`:`mobile`,this._potentialPlayerMap=this.setPotentialPlayersMap()}setPotentialPlayersMap(){let e=this._videoConfig.players||[],t=this._filterPlayerMap();return t.stationaryRelated=e.filter(e=>e.type===`stationaryRelated`&&e.enabled),this._potentialPlayerMap=t,this._potentialPlayerMap}_filterPlayerMap(){let e=this._videoConfig.players,t={stickyRelated:[],stickyPlaylist:[],stationaryRelated:[]};return e&&e.length?e.filter(e=>{var t;return(t=e.devices)==null?void 0:t.includes(this._device)}).reduce((e,t)=>(e[t.type]||(T.event(this._component,`constructor`,`Unknown Video Player Type detected`,t.type),e[t.type]=[]),t.enabled&&e[t.type].push(t),e),t):t}_checkPlayerSelectorOnPage(e){for(let t of this._potentialPlayerMap[e]){let e=this._getPlacementElement(t);if(e)return{player:t,playerElement:e}}return{player:null,playerElement:null}}_getOverrideElement(e,t,n){if(e&&t){let r=document.createElement(`div`);t.insertAdjacentElement(e.position,r),n=r}else{let{player:e,playerElement:t}=this._checkPlayerSelectorOnPage(`stickyPlaylist`);if(e&&t){let r=document.createElement(`div`);t.insertAdjacentElement(e.position,r),n=r}}return n}_shouldOverrideElement(e){let t=e.getAttribute(`override-embed`);return t===`true`||t===`false`?t===`true`:this._videoConfig.relatedSettings?this._videoConfig.relatedSettings.overrideEmbedLocation:!1}_checkPageSelector(e,t,n=[]){return e&&t&&n.length===0?(window.location.pathname!==`/`&&T.event(`VideoUtils`,`getPlacementElement`,Error(`PSNF: ${e} does not exist on the page`)),!1):!0}_getElementSelector(e,t,n){return t&&t.length>n?t[n]:(T.event(`VideoUtils`,`getPlacementElement`,Error(`ESNF: ${e} does not exist on the page`)),null)}_getPlacementElement(e){let{pageSelector:t,elementSelector:n,skip:r}=e,i=z(t),{valid:a,elements:o}=i,s=$(i,qe),c=R(n),{valid:l,elements:u}=c,d=$(c,Je);return t!==``&&!a?(T.error(`VideoUtils`,`getPlacementElement`,Error(`${t} is not a valid selector`),s),null):l?this._checkPageSelector(t,a,o)&&this._getElementSelector(n,u,r)||null:(T.error(`VideoUtils`,`getPlacementElement`,Error(`${n} is not a valid selector`),d),null)}_getEmbeddedPlayerType(e){let t=e.getAttribute(`data-player-type`);return(!t||t===`default`)&&(t=this._videoConfig.relatedSettings?this._videoConfig.relatedSettings.defaultPlayerType:`static`),this._stickyRelatedOnPage&&(t=`static`),t}_getMediaId(e){let t=e.getAttribute(`data-video-id`);return t?(this._relatedMediaIds.push(t),t):!1}_createRelatedPlayer(e,t,n,r){t===`collapse`?this._createCollapsePlayer(e,n):t===`static`&&this._createStaticPlayer(e,n,r)}_createCollapsePlayer(e,t){let{player:n,playerElement:r}=this._checkPlayerSelectorOnPage(`stickyRelated`),i=n||this._potentialPlayerMap.stationaryRelated[0];i&&i.playerId?(this._shouldOverrideElement(t)&&(t=this._getOverrideElement(n,r,t)),t=document.querySelector(`#cls-video-container-${e} > div`)||t,this._createStickyRelatedPlayer(L(L({},i),{},{mediaId:e}),t)):T.error(this._component,`_createCollapsePlayer`,`No video player found`)}_createStaticPlayer(e,t,n){if(this._potentialPlayerMap.stationaryRelated.length&&this._potentialPlayerMap.stationaryRelated[0].playerId){let r=this._potentialPlayerMap.stationaryRelated[0];this._createStationaryRelatedPlayer(L(L({},r),{},{mediaOrPlaylistId:e}),t,n)}else T.error(this._component,`_createStaticPlayer`,`No video player found`)}_shouldRunAutoplayPlayers(){return!!(this._isVideoAllowedOnPage()&&(this._potentialPlayerMap.stickyRelated.length||this._potentialPlayerMap.stickyPlaylist.length))}_setPlaylistMediaIdWhenStationaryOnPage(e,t){if(this._potentialPlayerMap.stationaryRelated.length&&this._potentialPlayerMap.stationaryRelated[0].playerId&&e&&e.length){let n=e[0].getAttribute(`data-video-id`);return n?L(L({},t),{},{mediaId:n}):t}return t}_determineAutoplayPlayers(e){let t=this._component,n=t===`VideoManagerComponent`,r=this._context;if(this._stickyRelatedOnPage){T.event(t,`stickyRelatedOnPage`,n&&{device:r&&r.device,isDesktop:this._device}||{});return}let{playerElement:i}=this._checkPlayerSelectorOnPage(`stickyPlaylist`),{player:a}=this._checkPlayerSelectorOnPage(`stickyPlaylist`);a&&a.playerId&&i?(a=this._setPlaylistMediaIdWhenStationaryOnPage(e,a),this._createPlaylistPlayer(a,i)):Math.random()<.01&&setTimeout(()=>{T.event(t,`noStickyPlaylist`,n&&{vendor:`none`,device:r&&r.device,isDesktop:this._device}||{})},1e3)}_initializeRelatedPlayers(e){let t=new Map;for(let n=0;n<e.length;n++){let r=e[n],i=r.offsetParent,a=this._getEmbeddedPlayerType(r),o=this._getMediaId(r);if(i&&o){let e=(t.get(o)||0)+1;t.set(o,e),this._createRelatedPlayer(o,a,r,e)}}}},Xe=class extends Ye{constructor(e,t){super(e,`ClsVideoInsertion`),this._videoConfig=e,this._clsOptions=t,s(this,`_IN_POST_SELECTOR`,`.adthrive-video-player`),s(this,`_WRAPPER_BAR_HEIGHT`,36),s(this,`_playersAddedFromPlugin`,[]),t.removeVideoTitleWrapper&&(this._WRAPPER_BAR_HEIGHT=0)}init(){this._initializePlayers()}_wrapVideoPlayerWithCLS(e,t,n=0){if(e.parentNode){let r=e.offsetWidth*(9/16),i=this._createGenericCLSWrapper(r,t,n);return e.parentNode.insertBefore(i,e),i.appendChild(e),i}return null}_createGenericCLSWrapper(e,t,n){let r=document.createElement(`div`);return r.id=`cls-video-container-${t}`,r.className=`adthrive`,r.style.minHeight=`${e+n}px`,r}_getTitleHeight(){let e=document.createElement(`h3`);e.style.margin=`10px 0`,e.innerText=`Title`,e.style.visibility=`hidden`,document.body.appendChild(e);let t=window.getComputedStyle(e),n=parseInt(t.height,10),r=parseInt(t.marginTop,10),i=parseInt(t.marginBottom,10);return document.body.removeChild(e),Math.min(n+i+r,50)}_initializePlayers(){let e=document.querySelectorAll(this._IN_POST_SELECTOR);e.length&&this._initializeRelatedPlayers(e),this._shouldRunAutoplayPlayers()&&this._determineAutoplayPlayers(e)}_createStationaryRelatedPlayer(e,t,n){let r=this._device===`mobile`?[400,225]:[640,360],i=Q.Video_In_Post_ClicktoPlay_SoundOn;if(t&&e.mediaOrPlaylistId){let a=`${e.mediaOrPlaylistId}_${n}`,o=this._wrapVideoPlayerWithCLS(t,a);this._playersAddedFromPlugin.push(e.mediaOrPlaylistId),o&&this._clsOptions.setInjectedVideoSlots({playerId:e.playerId,playerName:i,playerSize:r,element:o,type:`stationaryRelated`})}}_createStickyRelatedPlayer(e,t){let n=this._device===`mobile`?[400,225]:[640,360],r=Q.Video_Individual_Autoplay_SOff;if(this._stickyRelatedOnPage=!0,this._videoConfig.mobileStickyPlayerOnPage=this._device===`mobile`,this._videoConfig.collapsiblePlayerOnPage=!0,t&&e.position&&e.mediaId){let i=document.createElement(`div`);t.insertAdjacentElement(e.position,i);let a=this._getTitleHeight(),o=this._wrapVideoPlayerWithCLS(i,e.mediaId,this._WRAPPER_BAR_HEIGHT+a);this._playersAddedFromPlugin.push(e.mediaId),o&&this._clsOptions.setInjectedVideoSlots({playlistId:e.playlistId,playerId:e.playerId,playerSize:n,playerName:r,element:i,type:`stickyRelated`})}}_createPlaylistPlayer(e,t){let n=e.playlistId,r=this._device===`mobile`?Q.Video_Coll_SOff_Smartphone:Q.Video_Collapse_Autoplay_SoundOff,i=this._device===`mobile`?[400,225]:[640,360];this._videoConfig.mobileStickyPlayerOnPage=!0,this._videoConfig.collapsiblePlayerOnPage=!0;let a=document.createElement(`div`);t.insertAdjacentElement(e.position,a);let o=this._WRAPPER_BAR_HEIGHT;e.title&&(o+=this._getTitleHeight());let s=this._wrapVideoPlayerWithCLS(a,n,o);this._playersAddedFromPlugin.push(`playlist-${n}`),s&&this._clsOptions.setInjectedVideoSlots({playlistId:e.playlistId,playerId:e.playerId,playerSize:i,playerName:r,element:a,type:`stickyPlaylist`})}_isVideoAllowedOnPage(){let e=this._clsOptions.disableAds;if(e&&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`)&&(t=`command queue`);let n=t?`ClsVideoInsertionMigrated`:`ClsVideoInsertion`;return T.error(n,`isVideoAllowedOnPage`,Error(`DBP: Disabled by publisher via ${t||`other`}`)),!1}return!this._clsOptions.videoDisabledFromPlugin}};try{(()=>{let e=new c;!e||!e.enabled||(e.siteAds&&We(e.siteAds),new Be(e,new He).start(),new Xe(new m(e),e).init())})()}catch(e){T.error(`CLS`,`pluginsertion-iife`,e),window.adthriveCLS&&(window.adthriveCLS.injectedFromPlugin=!1)}})();
(function () {var clsElements = document.querySelectorAll("script[id^='cls-']"); window.adthriveCLS && clsElements && clsElements.length === 0 ? window.adthriveCLS.injectedFromPlugin = false : ""; })();
document.documentElement.style.setProperty('--scrollbar-offset', window.innerWidth - document.documentElement.clientWidth + 'px' );
https://onthefeeder.com/wp-content/plugins/honeypot/includes/js/wpa.js
wpa_field_info = {"wpa_field_name":"hxcwds1543","wpa_field_value":397773,"wpa_add_test":"no"}
var kadenceConfig = {"screenReader":{"expand":"Child menu","expandOf":"Child menu of","collapse":"Child menu","collapseOf":"Child menu of"},"breakPoints":{"desktop":"1024","tablet":768},"scrollOffset":"0"};
https://onthefeeder.com/wp-content/themes/kadence/assets/js/navigation.min.js
var dpsp_ajax_send_save_this_email = {"ajax_url":"https:\/\/onthefeeder.com\/wp-admin\/admin-ajax.php","dpsp_token":"83ec1f9ca6"};
https://onthefeeder.com/wp-content/plugins/social-pug/assets/dist/front-end-free.js
var consent_api = {"consent_type":"","waitfor_consent_hook":"","cookie_expiration":"30","cookie_prefix":"wp_consent"};
https://onthefeeder.com/wp-content/plugins/wp-consent-api/assets/js/wp-consent-api.min.js
const loadScriptsTimer=setTimeout(loadScripts,5*1000);const userInteractionEvents=['click', 'mousemove', 'keydown', 'touchstart', 'touchmove', 'wheel'];userInteractionEvents.forEach(function(event){window.addEventListener(event,triggerScriptLoader,{passive:!0})});function triggerScriptLoader(){loadScripts();clearTimeout(loadScriptsTimer);userInteractionEvents.forEach(function(event){window.removeEventListener(event,triggerScriptLoader,{passive:!0})})}
function loadScripts(){document.querySelectorAll("script[data-type='lazy']").forEach(function(elem){elem.setAttribute("src",elem.getAttribute("data-src"))})}
window.addEventListener("DOMContentLoaded",(e=>{document.querySelectorAll('img[loading="lazy"]').forEach((e=>{e.getBoundingClientRect().top<=window.innerHeight&&(e.loading="eager")}))}));
!function(e){const r={"Europe/Brussels":"gdpr","Europe/Sofia":"gdpr","Europe/Prague":"gdpr","Europe/Copenhagen":"gdpr","Europe/Berlin":"gdpr","Europe/Tallinn":"gdpr","Europe/Dublin":"gdpr","Europe/Athens":"gdpr","Europe/Madrid":"gdpr","Africa/Ceuta":"gdpr","Europe/Paris":"gdpr","Europe/Zagreb":"gdpr","Europe/Rome":"gdpr","Asia/Nicosia":"gdpr","Europe/Nicosia":"gdpr","Europe/Riga":"gdpr","Europe/Vilnius":"gdpr","Europe/Luxembourg":"gdpr","Europe/Budapest":"gdpr","Europe/Malta":"gdpr","Europe/Amsterdam":"gdpr","Europe/Vienna":"gdpr","Europe/Warsaw":"gdpr","Europe/Lisbon":"gdpr","Atlantic/Madeira":"gdpr","Europe/Bucharest":"gdpr","Europe/Ljubljana":"gdpr","Europe/Bratislava":"gdpr","Europe/Helsinki":"gdpr","Europe/Stockholm":"gdpr","Europe/London":"gdpr","Europe/Vaduz":"gdpr","Atlantic/Reykjavik":"gdpr","Europe/Oslo":"gdpr","Europe/Istanbul":"gdpr","Europe/Zurich":"gdpr"},p=(()=>{const e=Intl.DateTimeFormat().resolvedOptions().timeZone;return r[e]||null})();if(null===p||"gdpr"!==p){const r="__adblocker";if(-1===e.cookie.indexOf(r)){const p=new XMLHttpRequest;p.open("GET","https://ads.adthrive.com/abd/abd.js",!0),p.onreadystatechange=function(){if(XMLHttpRequest.DONE===p.readyState)if(200===p.status){const r=e.createElement("script");r.innerHTML=p.responseText,e.getElementsByTagName("head")[0].appendChild(r)}else{const p=new Date;p.setTime(p.getTime()+3e5),e.cookie=r+"=true; expires="+p.toUTCString()+"; path=/"}},p.send()}}}(document);
!function(e){(function(){var n,t;function r(){var n=e.createElement("script");n.src="https://cafemedia-com.videoplayerhub.com/galleryplayer.js",e.head.appendChild(n)}function a(){var n=e.cookie.match("(^|[^;]+)\\s*__adblocker\\s*=\\s*([^;]+)");return n&&n.pop()}function c(){clearInterval(t)}return{init:function(){var e;"true"===(n=a())?r():(e=0,t=setInterval(function(){100!==e&&"false"!==n||c(),"true"===n&&(r(),c()),n=a(),e++},50))}}})().init()}(document);
Thanks. I think you’ve convinced me that binoculars with cameras are not quite primetime yet. Maybe in a couple more years…
Happy to help :)
Excellent!