1function setPremium(){$("body").hasClass("premium")||$("body").addClass("premium"),"no"===hasReported&&window.ga&&ga.create&&(void 0!==gtag&>ag("event","auth_type",{event_category:"authentication",event_type:initStatus}),hasReported="yes"),setTimeout(setPremium,5e3)}function setAnon(){"anon"!==initStatus||$("body").hasClass("anon")||$("body").addClass("anon"),"no"===hasReported&&window.ga&&ga.create&&(void 0!==gtag&>ag("event","auth_type",{event_category:"user_type",event_type:initStatus}),hasReported="yes"),setTimeout(setAnon,5e3)}function authCheck(){var e="/AuthenticateTokenPremium"+dotNetInclusion;$.getJSON(e,(function(e){"active"===e.status||window.location.replace("/logoutpremium"+dotNetInclusion)})).fail((function(e,t,a){}))}function domain_from_url(e){var t,a;return(a=e.match(/^(?:https?:\/\/)?(?:[^@\n]+@)?(?:www\.)?([^:\/\n\?\=]+)/im))&&(a=(t=a[1]).match(/^[^\.]+\.(.+\..+)$/))&&(t=a[1]),t}function updateURLParameter(e,t,a){var i="",o=e.split("?"),n=o[0],s=o[1],l="",r;if(s){o=s.split("&");for(var d=0;d<o.length;d++)o[d].split("=")[0]!=t&&(i+=l+o[d],l="&")}return n+"?"+i+(l+""+t+"="+a)}function setCookie(e,t,a){var i="";if(a){var o=new Date;o.setTime(o.getTime()+24*a*60*60*1e3),i="; expires="+o.toUTCString()}document.cookie=e+"="+(t||"")+i+"; path=/"}function getCookie(e){for(var t=e+"=",a=document.cookie.split(";"),i=0;i<a.length;i++){for(var o=a[i];" "==o.charAt(0);)o=o.substring(1,o.length);if(0==o.indexOf(t))return o.substring(t.length,o.length)}return null}function eraseCookie(e){document.cookie=e+"=; Max-Age=-99999999;"}function completeConsentCheck(){hasConsentClosed=!0,delayPopout=!1,delayFixedAd=!1,$("#consent").hide(),clearInterval(consentCheck)}function closedConsent(){hasConsentClosed||!initialLoad&&closedConsentCookie?completeConsentCheck():(ketch("on","jurisdiction",(e=>{"EEA"==(kJurisdiction=e)?console.log("k:EEA"):"default"==kJurisdiction?console.log("k:Default"):"us___general"==kJurisdiction&&(console.log("k:US"),$("#consent").show(),void 0!==gtag&&!1===hasShown&>ag("event","global_element",{event_category:"consent",event_location:"banner",event_type:"shown"}))})),setCookie("hide-consent-banner",!0,30),hasShown=!0)}$.fn.isInViewport=function(){if($(this).length){var e=$(this).offset().top,t=e+$(this).outerHeight(),a=$(window).scrollTop(),i=a+$(window).height();return t>a&&e<i}},"undefined"==typeof dotNetInclusion&&(dotNetInclusion=".aspx"),"undefined"==typeof videoPlayerVersion&&(videoPlayerVersion="v9");var hasReported="no";if(document.getElementById("mp_article01")&&"True"===document.getElementById("mp_article01").getAttribute("is-free")?isFree="true":document.getElementById("mp_article01")&&"False"===document.getElementById("mp_article01").getAttribute("is-free")&&setPremium(),document.getElementById("sidebar-auth"))var sidebar=new Vue({el:"#sidebar-auth",data:{auth:initStatus,free:isFree},methods:{}});if(document.getElementById("buysingle-auth"))var sidebar=new Vue({el:"#buysingle-auth",data:{auth:initStatus,free:isFree},methods:{}});if(document.getElementById("authOverlay"))var authOverlay=new Vue({el:"#authOverlay",data:{auth:initStatus,free:isFree},methods:{status:function(e){changeStatus(authOverlay)}}});if(document.getElementById("authContent"))var authContent=new Vue({el:"#authContent",data:{auth:initStatus,free:isFree},methods:{status:function(e){changeStatus(authContent)}}});if(document.getElementById("changeOnAuth"))var authContent=new Vue({el:"#changeOnAuth",data:{auth:initStatus,free:isFree},methods:{status:function(e){changeStatus(authContent)}}});if(document.getElementById("mp_adpos_top"))var mp_adpos_top=new Vue({el:"#mp_adpos_top",data:{auth:initStatus,free:isFree},methods:{status:function(e){changeStatus(mp_adpos_top)}}});if(document.getElementById("headerControl"))var headerControl=new Vue({el:"#headerControl",data:{auth:initStatus,free:isFree,username:$username},methods:{status:function(e){changeStatus(headerControl)}}});"undefined"==typeof initStatus&&(initStatus=""),"anon"!==initStatus||$("body").hasClass("anon")?"auth"!==initStatus||$("body").hasClass("auth")||$("body").addClass("auth"):setAnon(),"auth"===initStatus&&authCheck(),"undefined"==typeof $benefitsPage&&($benefitsPage="/");var hasConsentClosed=!1,closedConsentCookie=getCookie("hide-consent-banner"),initialLoad=!0,hasShown=!1,kJurisdiction="unknown";closedConsentCookie&&(initialLoad=!1),closedConsent();var consentCheck=setInterval(closedConsent,1e3);"undefined"==typeof $subscribePage&&($subscribePage="/"),"undefined"==typeof liPercent&&(liPercent=99),"undefined"==typeof galleryModal&&(galleryModal=!0),"undefined"==typeof endlessScroll&&(endlessScroll=!0),"undefined"==typeof endlessTakeCount&&(endlessTakeCount=9),"undefined"==typeof singleArticleThreshold&&(singleArticleThreshold=49),"undefined"==typeof liDisabled&&(liDisabled=!0),"undefined"==typeof utmDisabled&&(utmDisabled=!0),"undefined"==typeof hasViewedDisabled&&(hasViewedDisabled=!1),"undefined"==typeof smartRefresh&&(smartRefresh=!0),"undefined"==typeof caroRail&&(caroRail=!1),"undefined"==typeof trackRefresh&&(trackRefresh=!1),"undefined"==typeof videoIVT&&(videoIVT=!1),"undefined"==typeof showSubModal&&(showSubModal=!1),"undefined"==typeof showNewsletterModal&&(showNewsletterModal=!1),"undefined"==typeof disableModal&&(disableModal=!1),"undefined"==typeof showSubModalTimer&&(showSubModalTimer=2e4),"undefined"==typeof modalBkg&&(modalBkg="https://content.osgnetworks.tv/modals/bkg_modal-default.jpg"),"undefined"==typeof useWebP&&(useWebP=!1),"undefined"==typeof smallerPlayer&&(smallerPlayer=!1),"undefined"==typeof repeatPR&&(repeatPR=!1),"undefined"==typeof repeatPRtime&&(repeatPRtime=5e3),"undefined"==typeof repeatNum&&(repeatNum=1),"undefined"==typeof delayPopout&&(delayPopout=!1),$("header .toggle-menu").is(":hidden")&&(delayPopout=!1),"undefined"==typeof delayFixedAd&&(delayFixedAd=!1),"undefined"==typeof delayAllAds&&(delayAllAds=!1),"undefined"==typeof delayForKetch&&(delayForKetch=!1),"undefined"==typeof delayCheckTime&&(delayCheckTime=500),"undefined"==typeof maxWaitTime&&(maxWaitTime=3e3),"undefined"==typeof adEventsDisabled?adEventsDisabled=!0:adEventsDisabled||(void 0===window.canRunAds?void 0!==gtag&>ag("event","display_ads",{event_category:"ad_blockers",event_label:"ads_blocked",non_interaction:!0}):void 0!==gtag&>ag("event","display_ads",{event_category:"ad_blockers",event_label:"ads_viewable",non_interaction:!0})),"undefined"==typeof switchSubscribe&&(switchSubscribe=!1),"undefined"==typeof addShowMore&&(addShowMore=!1),"undefined"==typeof showFour&&(showFour=!1),"undefined"==typeof popOutCloseDelay&&(popOutCloseDelay=4e3),"undefined"==typeof delayIframes&&(delayIframes=500);var userSliceSize=getCookie("abSliceSize");if(userSliceSize||(abTestingSlice=Math.floor(100*Math.random()),userSliceSize=abTestingSlice,setCookie("abSliceSize",parseInt(abTestingSlice)),console.log("A/B User Slice Size: "+userSliceSize)),"undefined"!=typeof google_optimize){function gtag(){dataLayer.push(arguments)}function implementExperimentCaro(e){"0"==e||"1"==e&&(caroRail=!0)}function implementExperimentA(e){"0"==e||"1"==e&&(addShowMore=!0)}function implementExperimentB(e){"0"==e||"1"==e&&(showFour=!0)}function modalTimer(e){"0"==e||("1"==e?$modalType="1":"2"==e?$modalType="2":"3"==e&&($modalType="3"))}gtag("event","optimize.callback",{name:"i8XtvH5KSrS6n_EWEfcyeQ",callback:implementExperimentCaro}),gtag("event","optimize.callback",{name:"7l6GwJoaSJ20YDRaxU62DQ",callback:implementExperimentA}),gtag("event","optimize.callback",{name:"35V_ZAZJR02JEKYQ678TIg",callback:implementExperimentB}),gtag("event","optimize.callback",{name:"mKSNOUj4TZODcjVw1QFGlQ",callback:implementExperimentB}),gtag("event","optimize.callback",{name:"yCQESMuOQVCmLvKOZZtiaA",callback:implementExperimentB}),gtag("event","optimize.callback",{name:"HwksDzyGReaf2Pq1a-uDuQ",callback:implementExperimentB}),gtag("event","optimize.callback",{name:"BLb993x6Reej2LmmrvvkgA",callback:implementExperimentB}),gtag("event","optimize.callback",{name:"RphbVukfSkmquZghqe-Yxg",callback:modalTimer}),gtag("event","optimize.callback",{name:"tG0ib0M-SuOXeIkx8DuXKQ",callback:modalTimer})}
1$.changeRelatedVideo=function(){var e=$("#video-list"),t=$("#full-playlist-feature"),a=$(".rail-video-list").find(".active-item"),i=a.next(".related-video-item");if(!i.length)return!1;a.removeClass("active-item"),i.addClass("active-item");var o=i.find(".related-video-title .is-title").text(),n=i.attr("data-descrip"),s=i.attr("data-category");i.find(".epi-label").length&&(s="Season "+i.find(".epi-label").attr("data-season")+" - Episode "+i.find(".epi-label").attr("data-episode"));var l=i.attr("data-video-id");t.find("h1").text(o),t.find(".video-desc").text(n),t.find(".cat-container").html(s),t.find("iframe").attr("src","/Video_iframe"+videoPlayerVersion+dotNetInclusion+"?vid="+l+"&autoplay=true&video-player-id=143797"),void 0!==gtag&>ag("event","next_related_video",{event_category:"show_id: "+o,event_label:"right_rail",non_interaction:!0})};var $dataPlays=1,$playNextTimeout;$.autoPlayNextVideo=function(e,t,a,i){console.log(a),console.log("Video Parent: "+$(e)),$(e).isInViewport()&&$("#article01").length&&!$(e).parents(".full-video").find(".frame-video").hasClass("pr-only")&&($(e).parents(".full-video").find(".related-video-list .countdown").addClass("active"),$playNextTimeout=setTimeout((function(){if(console.log("Plays:"+$dataPlays),$dataPlays>4)return!1;var t=$(e).parents(".full-video").find(".related-video-list .related-listings div:nth-of-type("+$dataPlays+") a:first-of-type").attr("data-video-id"),a,i,o=updateURLParameter($(e).parents(".full-video").find("iframe").attr("src"),"vid",t),n=$(e).parents(".full-video").find(".related-video-list .related-listings div:nth-of-type("+$dataPlays+") .related-video-title").text();$(e).parents(".full-video").find("iframe").attr("src",o),$(e).parents(".full-video").find(".related-video-list").fadeOut().find(".countdown").removeClass("active"),$(e).parents(".full-video").find(".related-video-list .current-video-title h2").text(n),void 0!==gtag&>ag("event","video_player",{event_category:"autoplay_next",event_type:"autoplay",video_id:t}),$dataPlays++}),0))};var repeatTimes=0;$.processRelatedVideos=function(e,t,a,i){if(console.log("PROCESS RELATED VIDEOS"),$(e).parents(".frame-video").siblings(".related-video-list").length){if($(e).parents(".frame-video").siblings(".related-video-list").fadeIn(),console.log("PROCESS RELATED 1"),$.autoPlayNextVideo(e),0===repeatTimes){return!1;console.log("PROCESS RELATED 1")}}else if("undefined"!=typeof disableRecommendations&&!0===disableRecommendations)return console.log("PROCESS RELATED 2"),!1;var o="default",n=0,s;e.className+=" related-items",e.setAttribute("data-title",a);var l=!0;void 0!==a&&""!=a||(a="Advertisement",l=!1);var r='<div class="related-video-list" id="related-video-01" data-embed-type="'+t+'"><span class="countdown"></span><div class="row"><div class="col-xs-12 col-sm-3"><div class="current-video"><a href="#replay" class="replay"><span class="icon-video-replay"></span>Watch Again</a></div></div><div class="col-xs-12 col-sm-9"><div class="current-video-title"><div class="video-label">You\'ve Been Watching</div><h2>'+a+'</h2></div></div></div><div class="related-also"><h3>You may also like</h3></div><div class="related-listings row"></div></div>';"iframe"===t?$(".related-items").each((function(){$(this).parents(".full-video").append(r),$(this).parents(".full-video").addClass("completed-video").attr("data-plays","1")})):$(".related-items").each((function(){$(this).append(r)}));var d,c=1,h=4,p,g,v="",f="/HomepageVideoRecommendation"+dotNetInclusion,u={take:4,websiteid:i,showid:"",page:1,format:"json","listing-id":""};if(l&&$.getJSON(f,u,(function(t){for(var i=[],n=0;t.items.length;){var s=t.items.splice(Math.floor(Math.random()*t.items.length),1)[0];i.push(s)}t.items=i,$.each(t.items,(function(t,i){if(n<4){var o,s="";utmDisabled||(s="?utm_reftype=video-watch-next&utm_source=li&utm_content="+a.replace(/\W/g,"")),o=""!==i.thumbnail||null!==i.thumbnail?'<div class="related-video-item col-xs-3"><a href="'+i.url+s+'" class="video" data-video-id="'+i["video-id"]+'"><img src="'+i.thumbnail+'" width="960" height="540" /></a><a href="'+i.url+'" class="related-video-title">'+i.title+"</a></div>":'<div class="related-video-item col-xs-3"><a href="'+i.url+s+'" class="related-video-title">'+i.title+"</a></div>",$(e).parents(".frame-video").siblings(".related-video-list").find(".related-listings").append(o),$(".related-video-title").each((function(e,t){$clamp(t,{clamp:2,useNativeClamp:!0})}))}n++,console.log(n)})),void 0!==gtag&>ag("event","related_videos",{event_category:"show_id: "+a,event_label:"type:"+o,non_interaction:!0}),$.autoPlayNextVideo(e)})).fail((function(e,t,a){console.log(a),$(".related-also").hide()})),$(e).isInViewport()&&repeatPR&&$("#article01").length&&$(e).parents(".full-video").find(".frame-video").hasClass("pr-only"))var m=setTimeout((function(){repeatNum>repeatTimes&&($(e).parents(".frame-video").siblings(".related-video-list").find(".replay").trigger("click"),void 0!==gtag&>ag("event","video_player",{event_category:"autoplay_next",event_type:"autoplay",video_id:"pr-only",event_report:repeatTimes+" of "+repeatNum,event_label:repeatPRtime}),repeatTimes++,window.clearTimeout(m))}),repeatPRtime);$(".temp-pause").length},$((function(){function e(e){var t=new Date,a=e.attr("data-query"),i=t.getUTCHours(),o=t.getUTCMinutes(),n=new Date,s=n.getUTCDate(),r=n.getUTCMonth(),d=n.getUTCFullYear(),c=r+1+"/"+s+"/"+d;console.log(i),console.log(o),$.getJSON(a,(function(t){var a=[];$.each(t,(function(t,a){console.log("Article:"+t+" : "+a.article_url),console.log(c);var n=a.publish_time.replace(/\D/g,""),h=1e4*i+100*o,p=!1;e.find(".grid-item h3 a").each((function(){$(this).attr("href")===a.article_url&&(p=!0)})),a.publish_date===r+1+"/"+s+"/"+d&&n<h&&!p&&(console.log("QUALIFY"),e.find(".grid-item p:not(.author-name)").addClass("hidden"),$("#MainContent_HomePageArticles_homepage_right_rail").after('<div class="grid-item appended-article" style="display: none;"><div class="content"><a aria-hidden="true" href="'+a.article_url+'" class="article-link image-overlay-container"><img class="article-img feat-img-sm" src="'+a.thumbnail_image_url+'" alt="'+a.title+'" style=""><span class="sr-only">'+a.title+'</span><div class="is-image-overlay"></div></a><div class="article-content"><a href="'+a.category_url+'" class="tag btn">'+a.category+'</a><h3><a href="'+a.article_url+'">'+a.title+"</a></h3><p>"+a.teaser+'</p><p class="author-name">'+a.author+"</p></div></div></div>"),l(".appended-article .teaser",2,!0),$(".appended-article").fadeIn("slow"))}))})).fail((function(e,t,a){}))}function t(){console.log("SINGLE ARTICLE"),$("one-article").length||($(".article-list-container").prepend("<h2>Recommended Articles</h2>"),$(".article-list").removeClass("scrollable"),$("#article-wrap").addClass("one-article"),$(".article-list-container").addClass("single-article-recommendation").removeClass("article-list-container"));
1var e=$(".rail-container"),t,a=100*parseInt($("#article01 img:not([align=left])").length+$("#article01 iframe").length/2),i=$("#article-wrap").outerHeight()+a;setTimeout((function(){if(i>6500){var t;if(j="Large",i>8500&&(j="X-Large"),$("#inline-player").length&>ag("event","article_detail",{event_category:"video_player",event_report:"inline-player"}),$("#inline-player2").length&>ag("event","article_detail",{event_category:"video_player",event_report:"inline-player2"}),$(".related-video-title").length&>ag("event","article_detail",{event_category:"video_player",event_report:"popout"}),$(window).width()<1024);else e.append('<div class="right-rail-fixed-parent" id="rail-two" style="padding-bottom:80px;"><div class="is-fixed"><div class="advertisement-label">Advertisement</div><div id="adpos_railB" ><script type="text/javascript">googletag.cmd.push(function() { googletag.display("adpos_railB"); });<\/script></div></div></div>').trigger("sticky_kit:recalc"),e.append('<div class="right-rail-fixed-parent" id="rail-three" style="padding-bottom:80px;"><div class="is-fixed"><div class="advertisement-label">Advertisement</div><div id="adpos_railC" ><script type="text/javascript">googletag.cmd.push(function() { googletag.display("adpos_railC"); });<\/script></div></div></div>').trigger("sticky_kit:recalc"),e.append('<div class="right-rail-fixed-parent" id="rail-four" style=""><div class="is-fixed"><div class="advertisement-label">Advertisement</div><div id="adpos_railA" ><script type="text/javascript">googletag.cmd.push(function() { googletag.display("adpos_railA"); });<\/script></div></div></div>').trigger("sticky_kit:recalc"),(t=$(".right-rail-fixed-parent:first-of-type #MainContent_article_list_left").clone()).appendTo("#rail-four .is-fixed"),d();setTimeout((function(){googletag.pubads().refresh([gptAdSlots[8]])}),1e3),setTimeout((function(){googletag.pubads().refresh([gptAdSlots[9]])}),1e3),setTimeout((function(){googletag.pubads().refresh([gptAdSlots[7]])}),1e3)}else if(i>5500){var t;if(j="Medium",$(window).width()<1024);else e.append('<div class="right-rail-fixed-parent" id="rail-two" style="padding-bottom:80px;"><div class="is-fixed"><div id="adpos_railB" ><script type="text/javascript">googletag.cmd.push(function() { googletag.display("adpos_railB"); });<\/script></div></div></div>').trigger("sticky_kit:recalc"),e.append('<div class="right-rail-fixed-parent" id="rail-four" style=""><div class="is-fixed"><div id="adpos_railA" ><script type="text/javascript">googletag.cmd.push(function() { googletag.display("adpos_railA"); });<\/script></div></div></div>').trigger("sticky_kit:recalc"),(t=$(".right-rail-fixed-parent:first-of-type #MainContent_article_list_left").clone()).appendTo("#rail-four .is-fixed"),d();setTimeout((function(){googletag.pubads().refresh([gptAdSlots[8]])}),1e3),setTimeout((function(){googletag.pubads().refresh([gptAdSlots[7]])}),1e3)}else i>3500?(j="Small",$(window).width()<1024||e.append('<div class="right-rail-fixed-parent" id="rail-two" style="padding-bottom:80px;"><div class="is-fixed"><div id="adpos_railB" ><script type="text/javascript">googletag.cmd.push(function() { googletag.display("adpos_railB"); });<\/script></div></div></div>').trigger("sticky_kit:recalc"),setTimeout((function(){googletag.pubads().refresh([gptAdSlots[7]])}),1e3)):(j="X-Small",e.find(".right-rail-fixed-parent").css({height:"100%"}).trigger("sticky_kit:recalc"));var a;if(void 0!==gtag&>ag("event","article_detail",{event_category:"length",event_report:j}),void 0!==gtag&&($pCount=$("#article01").find("p").length,gtag("event","article_detail",{event_category:"paragraph_count",event_report:$pCount})),$(".right-rail-fixed-parent:first-of-type #MainContent_article_list_left").clone().removeAttr("id").addClass("mobile-viewable").appendTo("#MainContent_main_article").find(".mobile-pager").remove(),caroRail){$(".article-list").find(".article-item:first-of-type").remove(),$(".article-list").addClass("rail-caro"),$(".single-article-recommendation h2").css("border","none");var o=$(".rail-caro");o.find(".article-item").append('<div class="timer"></div>'),o.each((function(){$(this).on("init",(function(e,t){$(".slick-active").addClass("is-active"),$(this).parents("#article-wrap-inner")&&$(this).removeClass("article-list")})),$(this).slick({autoplay:!0,dots:!0,pauseOnHover:!1,autoplaySpeed:5e3}),$(this).on("beforeChange",(function(e,t){$(".lazy").Lazy()})),$(this).on("afterChange",(function(e,t){$(".slick-slide").removeClass("is-active"),$(".slick-active").addClass("is-active")}))}))}}),100)}function a(e,t){var a,i=e.prev(".video-container"),o=i.find("h1").text(),n="";e.hasClass("has-seasons")&&(n="S"+i.find(".cat-container a").attr("data-season")+"E"+i.find(".cat-container a").attr("data-episode"));var s="Related Videos";e.hasClass("single-season")?s="Season "+e.attr("data-season"):void 0!==e.attr("data-title")&&(s=e.attr("data-title"));var l="";
1e.hasClass("has-seasons")||(l='<div class="related-video-item current-page active-item col-xs-12"><a href="'+window.location.href+'" class="video"><img src="'+$('meta[property="og:image"]').attr("content")+'" width="960" height="540" /></a><a href="'+window.location.href+'" class="related-video-title"><div class="epi-label">'+n+"</div>"+o+"</a></div></div>");var r='<div class="rail-header"><strong>'+s+'</strong><span id="video-count"></span></div><div class="rail-video-list"><div class="row has-listing">'+l+"</div>";e.append(r),$(".rail-header").stick_in_parent();var d=e.attr("data-list-source");$.getJSON(d,(function(t){var a=[],i=0;if(e.hasClass("has-seasons"))for(let e=0;e<t.items.length;e++)a.push(t.items[e]);else for(;t.items.length;){var n=t.items.splice(Math.floor(Math.random()*t.items.length),1)[0];a.push(n)}t.items=a,$.each(t.items,(function(t,a){if(i<20){var n,s="",l="";a.episode&&e.hasClass("has-seasons")&&(l='<div class="epi-label" data-season="'+a.season+'" data-episode="'+a.episode+'">S'+a.season+"E"+a.episode+"</div>");var r="";"1"===a.active&&(r="active-item"),utmDisabled||(s="?utm_reftype=video-watch-next&utm_source=li&utm_content="+o.replace(/\W/g,""));var d=(new DOMParser).parseFromString(a.title,"text/html").documentElement.textContent;(d!==o||e.hasClass("has-seasons"))&&(n=""!==d||null!==d?'<div class="related-video-item col-xs-12 '+r+'" data-descrip="'+a.teaser.replace(/'/g,"\\'")+'" data-category="'+a.category.replace(/'/g,"\\'")+'" data-video-id="'+a["video-id"]+'"><a href="'+a.url+s+'" class="video" aria-hidden="true"><img src="'+a.thumbnail+'" width="960" height="540" /></a><a href="'+a.url+'" class="related-video-title">'+l+'<div class="is-title">'+a.title+"</div></a></div>":'<div class="related-video-item col-xs-12 '+r+'" data-descrip="'+a.teaser.replace(/'/g,"\\'")+'" data-category="'+a.category.replace(/'/g,"\\'")+'" data-video-id="'+a["video-id"]+'"><a href="'+a.url+s+'" class="related-video-title"><div class="is-title">'+a.title+"</div></a></div>"),e.find(".has-listing").append(n)}i++}));var s="Videos";e.hasClass("has-seasons")?s="Episodes":e.hasClass("has-scenes")&&(s="Scenes"),$("#video-count").text(i+" "+s),void 0!==gtag&>ag("event","related_videos_list",{event_category:"show_id: "+o,event_label:"right_rail",non_interaction:!0})})).fail((function(t,a,i){console.log(i),e.html("")}))}function o(e,t,a,i){var o=$("#"+e);o.addClass("has-timer");var n=H[e];0===i||o.hasClass("has-rendered-quick")||(o.addClass("has-rendered-quick"),a=i);var s=setInterval((function(){if(0==a){if(0==t)return void(o.isInViewport()&&o.hasClass("has-viewed")?(console.log("Ad Refreshed: "+o),trackRefresh?googletag.pubads().setTargeting("adtype","refreshed").refresh([gptAdSlots[n]]):googletag.pubads().refresh([gptAdSlots[n]]),o.removeClass("has-queued"),a=void 0!==gptAdSlots[n].getTargeting("refresher")[0]&&""!==gptAdSlots[n].getTargeting("refresher")[0]?gptAdSlots[n].getTargeting("refresher")[0]:refreshTime,o.removeClass("has-viewed")):o.isInViewport()&&o.hasClass("has-queued")&&!0===hasViewedDisabled?(trackRefresh?googletag.pubads().setTargeting("adtype","refreshed").refresh([gptAdSlots[n]]):googletag.pubads().refresh([gptAdSlots[n]]),o.removeClass("has-queued"),a=void 0!==gptAdSlots[n].getTargeting("refresher")[0]&&""!==gptAdSlots[n].getTargeting("refresher")[0]?gptAdSlots[n].getTargeting("refresher")[0]:refreshTime):o.isInViewport()?a=1:o.addClass("has-queued"));t--,a=60}if(t>0)var e=t+(t>1?" minutes":" minute");else var e="";a--}),1e3)}function n(){!smartRefresh||delayAllAds||delayForKetch?setTimeout(n,delayCheckTime):(window.googletag.cmd.push((function(){googletag.pubads().refresh()})),googletag.cmd.push((function(){googletag.pubads().addEventListener("impressionViewable",(function(e){var t=e.slot.getSlotElementId();$("#"+t).addClass("has-viewed"),adEventsDisabled||(console.log("VIEWABLE: "+e.slot.getSlotElementId()),void 0!==gtag&>ag("event","display_ads",{event_category:e.slot.getSlotElementId(),event_label:"viewed",non_interaction:!0}))})),googletag.pubads().addEventListener("slotRenderEnded",(function(e){if("undefined"!=typeof refreshTime&&0!==refreshTime){!0!==e.isEmpty&&void 0!==gtag&>ag("event","display_ad_delivered",{event_category:"advertiser_id: "+e.advertiserId,event_label:"camp_
1id: "+e.campaignId}),!0!==e.isEmpty&&void 0!==gtag&>ag("event","article_detail",{event_category:"display_ad_delivered",event_label:window.location.href,event_location:e.slot.getSlotElementId()});var t=0,a=0;void 0!==e.slot.getTargeting("quickRefresh")[0]&&""!==e.slot.getTargeting("quickRefresh")[0]&&(a=e.slot.getTargeting("quickRefresh")[0]),void 0!==e.slot.getTargeting("refresher")[0]&&""!==e.slot.getTargeting("refresher")[0]&&(t=e.slot.getTargeting("refresher")[0]);var i=e.slot.getSlotElementId();adEventsDisabled||(console.log("Refresh: "+refreshTime+", Refresh Adjusted: "+t),void 0!==gtag&>ag("event","display_ads",{event_category:"refreshed_ads",event_label:i+"served",non_interaction:!0}));var n=$("#"+i);if(n.hasClass("has-rendered")||"teads"===i||"div-gpt-ad-1633457242956-0"===i||"reveal"===i||"native"===i)return!1;n.addClass("has-rendered"),n.isInViewport()?n.hasClass("has-timer")||o(i,0,0!==t||0!==t?t:refreshTime,a):$("body").one("inview","#"+i,(function(e,n){var s;$(this).hasClass("has-timer")||o(i,0,0!==t?t:refreshTime,a)}))}else console.log("Lazy refresh disabled.")}))})))}function s(){var e=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);l(".default-grid .content h3 a, .flex-grid .content h3 a",2,!0),l(".grid-item .new-episode h3",3,!0),l(".default-grid .content p:not(.by-line), .flex-grid .content p:not(.by-line)",2,!0),l(".default-grid .content p.by-line, .flex-grid .content p.by-line",1,!0),l(".watch-promo-container .cta-container h4",1,!0),l("#video-list-caro .article-hover h3",2,!0),l("#video-list-caro .article-hover p",3,!0),$("#full-playlist-feature").length&&l("#full-playlist-feature h1",2,!0),l(".video-desc",3,!0),e||l(".video-feature h3",2,!0),l(".video-feature p",3,!0)}function l(e,t,a){if(t=t||2,a=a||!1,"undefined"!=typeof $clamp){void 0===e&&(e=".clamped");var i=$(e);
1window.setTimeout((function(){i.each((function(){var e=$(this);t=e.attr("data-lines-to-clamp")||t,$clamp(e[0],{clamp:t,useNativeClamp:!0}),e.css("visibility","visible"),window.setTimeout((function(){e.css("opacity",1)}),500)}))}),500)}}function r(){var e=$(window).height()-$(".page-header").height()-350}function d(){var e=$(".is-sidebar .is-fixed");if($(".toggle-menu","header").is(":visible")||"fixed"===$(".side-bar").css("position"))e.trigger("sticky_kit:detach"),$(".has-vertical-divider .is-fixed").trigger("sticky_kit:detach"),$(".has-vertical-divider .is-fixed").stick_in_parent(),$(".social-menu.is-fixed").stick_in_parent({inner_scrolling:!1,spacer:!1,bottoming:!0}).css({zIndex:6});else{var t=0;$(".is-mobile-pager").trigger("sticky_kit:detach"),$(".fixed-bar").length&&(t=$(".fixed-bar").height()+45),$(".social-menu.is-fixed").stick_in_parent({inner_scrolling:!1,offset_top:t,spacer:!1,bottoming:!0}).css({zIndex:6}),window.setTimeout((function(){e.stick_in_parent({inner_scrolling:!1,offset_top:t,spacer:!1,bottoming:!0}).css({zIndex:6})}),1e3),$(".has-vertical-divider .is-fixed").trigger("sticky_kit:detach"),$(".has-vertical-divider .is-fixed").stick_in_parent({offset_top:$(".fixed-bar").height()}),$(".is-sidebar .is-fixed").length&&(t=$(".fixed-bar").height()+32,$(".is-sidebar .is-fixed").stick_in_parent({offset_top:t,inner_scrolling:!1,spacer:!1}
1)),$(".stick-to-bottom").each((function(){var e=$(window).height()-$(this).height();$(this).stick_in_parent({offset_top:e,inner_scrolling:!1,spacer:!1}),$(this).on("sticky_kit:bottom",(function(e){$(this).parent().css("position","static")})).on("sticky_kit:unbottom",(function(e){$(this).parent().css("position","relative")}))})),$(".stick-to-top").stick_in_parent()}}function c(){F.find("article").on("inview",(function(e,t){t&&(h($(this).attr("data-anchor")),F.find("article.active").removeClass("active"),$(this).hasClass("active")||$(this).addClass("active"),"undefined"!=typeof $p&&!1===liDisabled&&$p("abTestSlice",{callback:function(e){sliceSize=e,"undefined"!==sliceSize&&sliceSize>liPercent&&(K="li")}}))}))}function h(e){var t,a=E.find('.article-item a[data-target-article="'+e+'"]').parent(".article-item");E.find(".article-item.active").removeClass("active"),a.addClass("active"),f(a)}function p(e){var t;return e+"_adslot_"+G++}function g(e,a){var i=e.items.length;i++;var o=4,n=6,s="four-up";E.append('<div class="row"></div>'),E.addClass(s),t(),$.each(e.items,(function(e,t){var a=parseInt(e+2),i=("0"+a).slice(-2);if(4===e)return!1;if("li"==K&&!1===liDisabled)var o,n=(o=t.url.replace(/^.*\/\/[^\/]+/,"")).replace("/editorial/","/editorialbare/");else var o=t.url,n=t.url.replace("/editorial/","/editorialbare/");var s="";t.author&&(s=t.author),E.find(".row").addClass("has-article-list").append('<div class="article-item col-xs-12 col-sm-6 flex-center-mobile-only"><div class="reco-thumb"><a href="'+o+'" data-target-article="article'+i+'" aria-hidden="true"><img src="'+t.thumbnail+'" alt="'+t.title+'" /></a></div><a href="'+o+'" class="reco-link" data-target-article="article'+i+'">\x3c!--<span class="site-name">'+t.site_name+"</span>--\x3e<strong>"+t.title+'</strong><span class="author-date">'+s+'</span><span class="cta">Read Article</span></a></div>'),$(".article-pagination ul").append('<li><a href="'+o+'" data-target-article="article'+i+'" data-tooltip="'+t.title+'">'+i+"</a></li>");var l=$("#MainContent_pCount"),r=$("#MainContent_gPage");console.log(a),console.log(t.thumbnail),console.log(userSliceSize);var d=!1,c;$("#article-list").on("inview",(function(e,t){t&&!d&&(void 0!==gtag&>ag("event","article_detail",{event_category:"in_view",event_location:"in_page_recommended_articles"}),d=!0)})),$("body").on("click","#article-list a",(function(e){e.preventDefault(),void 0!==gtag&>ag("event","article_detail",{event_category:"in_page_recommended_articles",event_action:"click",event_location:$(this).attr("href")}),window.location.href=$(this).attr("href")})),c=$(".in-article-subscribe").length?$(".in-article-subscribe"):$(".is-newsletter.in-read"),l.length?2===a&&r[0].value==l[0].value&&c.before('<a href="'+o+'" data-target-article="article'+i+'" class="btn squared read-next-article"><strong>Read The Next Article: </strong>'+t.title+"</a>"):2===a&&c.before('<a href="'+o+'" data-target-article="article'+i+'" class="btn squared read-next-article"><strong>Read The Next Article: </strong>'+t.title+"</a>")})),!0===endlessScroll&&c()}function v(){for(var e=$(["<div class='placeholder'>","<div class='placeholder-story-title'></div>","<div class='placeholder-story-byline'></div>","<div class='placeholder-story-image'></div>","</div>"].join("\n")),t=0;t<2;t++)e.append($('<div class="placeholder-content">'));e.append($('<div class="placeholder-subhead">'));for(var t=0;t<5;t++)e.append($('<div class="placeholder-content">'));return e}function f(e){var t=E,a=e.prev(".article-item"),i=t.scrollTop()+e.position().top-a.height()-40;t.finish(),t.animate({scrollTop:i})}function u(e){var t="/"+e.attr("href").replace(/^(?:\/\/|[^\/]+)*\//,""),a=e.text();window.history.replaceState("object or string",a,t)}function m(){var e=$request+"?listing-is="+$id+"&page="+$page+"&take="+$take;$($this).addClass("loading"),$.get($request,(function(e){$(e).hide().appendTo("#"+$target).fadeIn(),$(".lazy").Lazy(),$($this).removeClass("loading")})).done((function(){}))}function y(){$(".toggle-menu","header").is(":visible")?$(".progress-bar ").addClass("is-mobile"):$(".progress-bar ").removeClass("is-mobile")}function b(){var e=E.find(".article-item.active"),t=e.find("a"),a=$("#article01"),i=0,o=e.find(".percentage"),n=$(".fixed-progress").find("span"),s=$(document).height(),l=$(window).height(),r=$(window).scrollTop(),d=F.find("article.active");a.prevAll().each((function(){$(this).hasClass("article-pagination")||(i+=$(this).outerHeight())}));var c=100*(r-i)/(s-l)*(s/a.height())-100 2;Math.round(c)<0?(Math.round(c)>-90&&!1===Q?(void 0!==gtag&>ag("event","article_detail",{event_category:"milestone",milestone:10,event_location:window.location.href,event_type:"scroll",media_title:document.title}),Q=!0):Math.round(c)>-75&&!1===Y?(void 0!==gtag&>ag("event","article_detail",{event_category:"milestone",milestone:25,event_location:window.location.href,event_type:"scroll",media_title:document.title}),Y=!0):Math.round(c)>-50&&!1===X?(void 0!==gtag&>ag("event","article_detail",{event_category:"milestone",milestone:50,event_location:window.location.href,event_type:"scroll",media_title:document.title}),X=!0):Math.round(c)>-25&&!1===Z?(void 0!==gtag&>ag("event","article_detail",{event_category:"milestone",milestone:75,event_location:window.location.href,event_type:"scroll",media_title:document.title}),Z=!0):Math.round(c)>-10&&!1===Z?(void 0!==gtag&>ag("event","article_detail",{event_category:"milestone",milestone:90,event_location:window.location.href,event_type:"scroll",media_title:document.title}),ee=!0):Math.round(c)>-1&&!1===Z&&(void 0!==gtag&>ag("event","article_detail",{event_category:"milestone",milestone:100,event_location:window.location.href,event_type:"scroll",media_title:document.title}),te=!0),d.hasClass("full-length")?(o.css("transform","translateX("+c+"%)"),n.css("transform","translateX("+c+"%)")):(o.css("transform","translateX(-100%)"),n.css("transform","translateX(-100%)"))):t.hasClass("viewed")||(t.addClass("viewed"),!1===te&&(te=!0,void 0!==gtag&>ag("event","article_scroll_length",{event_category:"size: "+j,event_label:"percent: 100",non_interaction:!0})))}function w(e){var t=!1,a,i,o=!1;if($(".consent-popup").length?(t=!0,a=$(".consent-popup"),i="default"):$("#ketch-banner").length?(t=!0,a=$("#ketch-banner"),i="ketch"):$("#ketch-consent-banner").length&&(t=!0,a=$("#ketch-consent-banner").parent(".ketch-fixed"),i="ketch",o=!0),void 0===a||"default"===i)return $(".right-rail-fixed-parent .is-fixed").length&&$("header .toggle-menu").is(":visible")?$(".full-video-small").css("bottom",$(".right-rail-fixed-parent .is-fixed").height()+10+"px"):$(".right-rail-fixed-parent .is-fixed").length||!$("header .toggle-menu").is(":visible")||"default"!==i||$(".fixed-ad").length?$(".fixed-ad").length&&$(".fixed-ad").is(":visible")?($(".full-video-small").css("bottom",$(".fixed-ad").height()+10+"px"),$(".fixed-ad").length&&$(".fixed-ad").css("bottom","0px")):$(".full-video-small").css("bottom","10px"):a.is(":visible")?$(".full-video-small").css("bottom",a.height()+20+"px"):$(".full-video-small").css("bottom","10px"),!1;a.is(":visible")&&"article"===e?($(".full-video-small").css("bottom",a.height()+$(".side-bar.related-articles").height()+40+"px"),$("#ketch-consent-banner").parent(".ketch-fixed").css("bottom","100px")):a.is(":visible")&&a.length?($(".full-video-small").css("bottom",a.height()+10+"px"),$(".fixed-ad").css("bottom",a.height()+"px"),o&&a.css("bottom","0px")):"article"===e&&a.length?($(".full-video-small").css("bottom",$(".side-bar.related-articles").height()+10+"px"),o&&a.css("bottom","0px")):($(".full-video-small").css("bottom","20px"),$(".fixed-ad").css("bottom","0px"),o&&a.css("bottom","0px"))}function _(e){return E.length&&h(e),$("body,html").animate({scrollTop:$("#"+e).offset().top-$(".page-header").height()}),!1}function k(e,t){e.removeClass("active"),t.addClass("active")}function C(e){return/^https?:\/\/[^\/?]+\/$/g.test(e)}function x(e,t,a){void 0===a&&(a=""),void 0===t&&(t="a third party"),$thirdOverlay='<div class="tp-iframe"><div class="tp-title">'+a+'</div><div class="tp-disclaimer"><h2>Third-party content, can we show it?</h2> <p>This frame source is from '+t+'. It might use cookies and has its own privacy policy. Your IP may be exposed to that party if you allow.</p><p><a href="#allow" class="btn tp-allow-always" data-allow="'+e+'">Allow Always</a> <a href="#allow" class="btn tp-allow-this btn-gray" data-allow-single="'+e+'">Only this Frame</a></p></div></div>',e.append($thirdOverlay)}function S(e,t,a){void 0===a&&(a=""),void 0===t&&(t="This content is not currently available."),$dateOverlay='<div class="tp-iframe"><div class="tp-title">'+a+'</div><div class="tp-disclaimer"><p>'+t+"</p></div></div>",e.append($dateOverlay)}function T(e,t){window.location=e+"?location="+t}
2function D(){var e=$(this).width(),t;t=e<768?"xs":"lg",$(".article-img").length&&$(".article-img").each((function(e){var a=$(this),i=a.data("src-"+t);a.attr("data-src",i)}))}function A(e,t,a,i){var o=$("#modal-gallery");console.log(t),t.prev().length?$(".prev-gal").removeClass("disabled"):$(".prev-gal").addClass("disabled"),t.next().length?$(".next-gal").removeClass("disabled"):$(".next-gal").addClass("disabled"),o.find(".prev-gal").removeClass("prev-gal"),o.find(".next-gal").removeClass("next-gal"),$(".current-gal").removeClass("current-gal"),t.addClass("current-gal"),$(".current-gal").next().addClass("next-gal"),$(".current-gal").prev().addClass("prev-gal"),o.find(".image-container img").attr("src",e),o.find(".tray-container h2").text(a),o.find(".tray-container p").text(i);var n=$(".current-gal").index()+1;$("#modal-counter").text(n+"/"+we),$e.slick("slickGoTo",n-1),1==n?$(".gal-prev").addClass("disabled"):$(".gal-prev").removeClass("disabled"),n==we?($(".gal-next").addClass("disabled"),$(".gal-set").removeClass("disabled")):($(".gal-set").addClass("disabled"),$(".gal-next").removeClass("disabled"))}function I(){$("select:not(.not-styled)").each((function(){var e=$
2(this),t=$(this).children("option").length,a="select-options",i=!1;e.addClass("visuallyhidden").addClass("focusable"),e.wrap('<div class="select"></div>'),e.after('<div class="select-styled"></div>');var o=e.next("div.select-styled");o.text(e.children("option:selected").text()),$(this).hasClass("has-redirect")&&(a+=" has-redirect",i=!0);for(var n=$("<ul />",{class:a}).insertAfter(o),s=0;s<t;s++)$("<li />",{text:e.children("option").eq(s).text(),rel:e.children("option").eq(s).val()}).appendTo(n),""==e.children("option").eq(s).attr("rel")&&n.find("li:last-of-type").remove();var l=n.children("li");o.click((function(e){e.stopPropagation(),$("div.select-styled.active").not(this).each((function(){$(this).removeClass("active").next("ul.select-options").hide()})),$(this).toggleClass("active").next("ul.select-options").toggle()})),l.click((function(t){t.stopPropagation(),""!==$(this).attr("rel")&&(void 0!==gtag&>ag("event","filter_content",{event_category:$(this).text(),event_label:"none",non_interaction:!1}),o.text($(this).text()).removeClass("active"),i?window.location.href=$(this).attr("rel"):e.val($(this).attr("rel")),n.hide())})),$(document).click((function(){o.removeClass("active"),n.hide()}))}))}function M(e,t,a){var i=$("#"+e);$.ajax({type:"GET",url:t,data:"listing-is="+t,success:function(t){var o=$(t).find(".row").first(),n;
2o.find(".wrapper .full-video iframe").each((function(){var e=$(this);e.attr("data-src",e.attr("src")).removeAttr("src")})),o.hide();var s=window.location.host;if(i.html(o),o.fadeIn(),Ie){var l=$("<div>").addClass("advertisement after-article").attr({"data-ad-position":"bottom,bottomB,btf","data-ad-size-mapping":"adpos_bottomB"});l.hide(),i.after(l),P(l,"Get Article"),l.fadeIn()}Ie=!Ie;var r=$('<div class="show-more center"><a href="'+a+'" data-article-more="'+e+'" class="btn">Show More</a></div>');r.hide(),i.after(r),r.fadeIn(),d()}}).done((function(){i.hide().fadeIn(),i.removeClass("loading"),i.addClass("loaded")}))}function P(e,t){var a=$("<div>"),i=p("test");adEventsDisabled||(console.log("Set ad: "+t),void 0!==gtag&>ag("event","display_ads",{event_category:"ad_set",event_label:t,non_interaction:!0})),a.attr({id:i}),e.html(a),window.setTimeout((function(){e.attr("data-ad-size-mapping"),googletag.cmd.push((function(){var t=googletag.defineSlot(dfp_sitePage,[0,0],i).defineSizeMapping(sizeMappings[e.attr("data-ad-size-mapping")]).addService(googletag.pubads());t.setTargeting("pos",e.attr("data-ad-position").split(",")).setTargeting("sect",sect_value).setTargeting("article",article_id).setTargeting("camp",camp_value).setTargeting("show",show_value),googletag.display(i),"teads"===e.attr("data-ad-size-mapping")&&"div-gpt-ad-1633457242956-0"===e.attr("data-ad-size-mapping")&&"object"!=typeof window.biddr||googletag.pubads().refresh([t])}))}),250)}function R(){$(".watch-now:hidden").slideDown(),$(".player-container:visible").slideUp("slow",(function(){$(".player-container.active .player").html(""),$(".player-container.active").removeClass("active"),$(".playing .pause").trigger("click")})),$(".listen-now:hidden").slideDown(),$(".player-container:visible").slideUp(),$(".toggle-play:visible").fadeOut(),$(".toggle-play:visible").find("span").removeClass("icon-play").addClass("icon-pause")}function z(e){var t=JSON.parse(e.data),a=t.type,i=t.data,o=t.url;if($(".full-video-small").length&&smallerPlayer&&($(".full-video-small").addClass("smaller-player"),$(".ic-playercontrols").fadeIn()),void 0!==a){if(JSON.stringify(o)!=='"'+$("#"+$(".full-video-small iframe").attr("id")).get(0).contentWindow.location.href+'"')return!1;void 0!==i.title&&"adstarted"!==a&&(gt=i.title);var n=$(".ic-header");switch(a){case"timeupdate":var s=$(".ic-timer"),r;(r=new Date(0)).setSeconds(i.toFixed(2));var d=r.toISOString().substring(14,19);s.text(d),n.html(gt),vt="playing",$(".ic-playercontrols .play-pause span").removeClass("icon-play"),$(".ic-playercontrols .play-pause span").addClass("icon-pause");break;case"adstarted":n.html('<a href="'+t.data.metadata.data.clickThroughUrl+'" target="_blank">Learn More</a>');break;case"mediachange":gt=i.title,n.text(gt);break;case"paused":vt="paused";break;case"playstatechange":"playing"==t.data.value?($(".ic-playercontrols .play-pause span").removeClass("icon-play"),$(".ic-playercontrols .play-pause span").addClass("icon-pause"),vt="playing"):($(".ic-playercontrols .play-pause span").removeClass("icon-pause"),$(".ic-playercontrols .play-pause span").addClass("icon-play"),vt="paused");break;case"mutechange":t.data?($(".ic-playercontrols .mute-unmute span").removeClass("icon-mute"),$(".ic-playercontrols .mute-unmute span").addClass("icon-unmute"),ut="muted"):($(".ic-playercontrols .mute-unmute span").removeClass("icon-unmute"),$(".ic-playercontrols .mute-unmute span").addClass("icon-mute"),ut="unmuted");break;case"abreakend":n.text(gt);break;case"adtimeupdate":var s=$(".ic-timer"),r;(r=new Date(0)).setSeconds(i.toFixed(2));var d=r.toISOString().substring(14,19);s.text("Ad 1 of 1 "+d);break;default:break}l(".ic-header",2,!0)}}var O=!1,E=$("#article-list"),F=$("#article-wrap-inner"),V=$("#item-selector"),B=$(".is-newsletter"),L=[];for(var N in sizeMappings)"length"!==N&&sizeMappings.hasOwnProperty(N)&&"teads"!==N&&"div-gpt-ad-1633457242956-0"!==N&&(L[N]=sizeMappings[N]);if($(".latest-articles").length&&e($(".latest-articles")),$("#article01").length&&$("header .toggle-menu").is(":visible"))if(!1!==addShowMore){$showMoreTarget=$("#article01"),$showMoreTarget.removeClass("full-length").addClass("trimmed");var q=$('<div class="show-more center"><a href="'+window.location.href+'" data-article-more="article01" class="btn">Continue Reading</a></div>');q.hide(),$showMoreTarget.after(q),q.fadeIn(),void 0!==gtag&>ag("event","a_b_show_more_mobile",{event_category:"variant",event_label:userSliceSize,non_interaction:!0})}else void 0!==gtag&>ag("event","a_b_show_more_mobile",{event_category:"base",event_label:userSliceSize,non_interaction:!0});var j="Default";$("#video-list").length&&a($("#video-list"));var H={adpos_top:0,adpos_rightA:1,adpos_rightB:2,adpos_rightC:3,adpos_rightD:4,adpos_bottomA:5,adpos_bottomB:6,adpos_railA:7,adpos_railB:8,adpos_railC:9,reveal:10,teads:11,adpos_rightE:15,adpos_rightF:16,adpos_rightG:17,adpos_rightH:18,adpos_rightI:19,adpos_rightJ:20,adpos_rightK:21,adpos_rightL:22,adpos_rightM:23,adpos_rightN:24,adpos_galleryA:25,adpos_bottom:26,adpos_bottomC:27,comm_ad_0:28,comm_ad_1:29,comm_ad_2:30,"div-gpt-ad-1633457242956-0":31,adpos_mid:32,adpos_schedule_1:40,adpos_schedule_2:41,adpos_schedule_3:42,adpos_schedule_4:43,adpos_schedule_5:44,adpos_schedule_6:45,adpos_schedule_7:46,adpos_schedule_8:47,adpos_schedule_9:48},U,W;(n(),setTimeout((function(){if(!delayAllAds&&null!==googletag.pubads().getSlots()[0].getResponseInformation())return console.log("delay is false"),!1;delayAllAds=!1,delayForKetch=!1,window.googletag.cmd.push((function(){googletag.pubads().refresh()})),void 0!==gtag&>ag("event","display_ads",{event_category:"ad_load",event_event:"max_time_reached"})}),maxWaitTime),$("body").on("click touchend",".consent-accept",(function(e){return e.preventDefault(),e.stopPropagation(),void 0!==gtag&>ag("event","global_element",{event_category:"consent",event_location:"accept",event_type:"click"}
2),setCookie("hide-consent-banner",!0,30),hasConsentClosed=!0,$("#consent").hide(),$(window).scroll(),!1})),$("body").on("click touchend",".consent-prefererences",(function(e){e.preventDefault(),e.stopPropagation(),void 0!==gtag&>ag("event","global_element",{event_category:"consent",event_location:"preferences",event_type:"click"}),semaphore.push(["showPreferences",{tab:"rightsTab"}]),$("#consent").hide()})),$("body").on("click touchend",".open-mobile-drop",(function(e){e.preventDefault(),$(this).hasClass("close-mobile-drop")?($(this).find("span").toggleClass("icon-arrow-down icon-arrow-up"),$(this).parents("h1").siblings("ul").removeClass("mobile-open"),$(this).removeClass("close-mobile-drop")):($(this).find("span").toggleClass("icon-arrow-down icon-arrow-up"),$(this).parents("h1").siblings("ul").addClass("mobile-open"),$(this).addClass("close-mobile-drop"))})),$("body").on("click",".replay",(function(e){e.preventDefault(),"iframe"==$(this).parents(".related-video-list").attr("data-embed-type")?$(this).parents(".full-video").find("iframe").attr("src",(function(e,t){return t})):amp.replay(),clearTimeout($playNextTimeout),$(this).parents(".full-video").find(".related-video-list").fadeOut()})),$("body").on("click",".related-video-item a",(function(e){e.preventDefault(),void 0!==gtag&>ag("event","related_video_click",{event_category:$(this).attr("href"),event_label:"from: "+window.location.href,non_interaction:!1}),window.location.href=$(this).attr("href")})),$("article img").each((function(){-1!=this.src.indexOf("http://imomags.com/shotgunnews")&&(this.src=this.src.replace("http://imomags.com/shotgunnews","http://www.firearmsnews.com"))})),s(),$(".trim-me[data-link]").each((function(e,t){var a=t;$clamp(a,{clamp:3,useNativeClamp:!1}),$('<div><a href="'+$(this).attr("data-link")+'">Read More</a></div>').insertAfter(a)})),$(".trim").each((function(e,t){$lines=$(this).attr("data-lines"),l(t,$lines,!0)})),$(".clamp-me").each((function(e,t){lines=$(this).attr("data-lines"),$clamp(t,{clamp:lines})})),$(".show-more").on("click",(function(e){e.preventDefault(),$(this).parent().removeAttr("style"),$(this).hide()})),$(".clamp-removal").on("click",(function(e){e.preventDefault();const t=$(this).attr("data-target");$("#"+t).removeAttr("style"),$(this).hide()})),$(".clamp-toggle").on("click",(function(e){e.preventDefault();const t=$(this).attr("data-target"),a=$(this).attr("data-close-text"),i=$(this).attr("data-open-text");return $(this).hasClass("has-opened")?(lines=$("#"+t).attr("data-lines"),$("#"+t).attr("style",$("#"+t).attr("data-clamp-style")),$(this).removeClass("has-opened").text(i)):($("#"+t).attr("data-clamp-style",$("#"+t).attr("style")),$("#"+t).removeAttr("style"),$(this).addClass("has-opened").text(a)),!1})),$(".clamp-toggle").length)&&$(".clamp-toggle").each((function(e){console.log($(this));const t=$("#"+$(this).attr("data-target"));if(t.attr("style")&&-1!==t.attr("style").indexOf("overflow")&&t.prop("scrollHeight")>t.prop("clientHeight")){console.log("clamp 1");var a=window.location.hash.replace("#","");a.length>0&&a===t.attr("id")&&$(this).trigger("click")}else t.prop("scrollHeight")>=t.prop("clientHeight")?(console.log("clamp 2"),$("#"+t.attr("id")).siblings(".read-more-clamp").hide(),$(this).hide()):t.prop("scrollHeight")==t.prop("clientHeight")&&(console.log("clamp 3"),$(this).hide())}));$(".bio-editorial").length&&($(".bio-teaser").attr("style")&&-1!==$(".bio-teaser").attr("style").indexOf("overflow")&&$(".bio-teaser").prop("scrollHeight")>$(".bio-teaser").prop("clientHeight")?((W=window.location.hash.replace("#","")).length>0&&"bioExpand"===W&&$(".bio-editorial").find(".clamp-toggle").trigger("click"),$(".bio-editorial").find(".clamp-hidden-elements").hide()):$(".bio-teaser div").prop("scrollHeight")>=$(".bio-teaser").prop("clientHeight")||$(".bio-teaser").prop("scrollHeight")==$(".bio-teaser").prop("clientHeight")&&($(".bio-editorial").find(".clamp-toggle").hide(),$(".bio-editorial").find(".clamp-hidden-elements").hide()));if($(".fixed-bar").stick_in_parent({parent:$("body")}),F.length&&F.hasClass("has-nav")&&V.length){var J=V.find("li");F.find("article").on("inview",(function(e,t){t&&(V.find(".active").removeClass("active"),F.find("article.active").removeClass("active"),V.find('[data-item="'+$
2(this).attr("data-anchor")+'"]').parent("li").addClass("active"))})),J.on("click","a",(function(e){e.preventDefault(),V.find(".active").removeClass("active"),$(this).parent("li").addClass("active"),_($(this).attr("data-item"))}))}var G=1,K="default",Q,Y,X,Z,ee,te;if($("body").on("click",".instructions ol li, ul.ingredients .ingredient",(function(){$(this).toggleClass("checked")})),$('[data-target-article="article01"]').on("click",(function(e){e.preventDefault(),_($(this).attr("data-target-article")),void 0!==gtag&>ag("event","article_detail",{event_category:"rail",event_label:"Type: "+K,non_interaction:!1})})),E.length){function ae(){var e=0;if("li"==K&&!1===liDisabled)!0!==endlessScroll&&userSliceSize<=singleArticleThreshold&&(endlessTakeCount=4),$p("setRequestFields",["author","name","title","url","rank","subcategory","site_name","published_time"]),$p("register",{max:endlessTakeCount,widget:"Endless Articles",opts:{channel:"category1"},callback:function(e){g(e,0)}}),$p("fetch");else{var t=E.attr("data-website-id"),a=E.attr("data-page"),i=E.attr("data-take"),o=E.attr("data-show-id"),n=E.attr("data-listing-id"),s=E.attr("data-main-article-id")||"";!0!==endlessScroll&&(endlessTakeCount=6);var l="/EditorialSeeMore"+dotNetInclusion,r={take:endlessTakeCount,websiteid:t,showid:o,page:a,format:"json","listing-id":n};$.getJSON(l,r,(function(e){var t=[];if(e.items=e.items.filter((function(e){return e["article-id"].toString()!==s.toString()})),E.data("randomize")){for(;e.items.length;){var a=e.items.splice(Math.floor(Math.random()*e.items.length),1)[0];t.push(a)}e.items=t}g(e,0)})).fail((function(e,t,a){}))}}"undefined"!=typeof $p&&"number"==typeof $p("userHash")&&!1===liDisabled?ae():setTimeout((function(){ae()}),500)}if($(".has-recipes").length&&($recipesWrap=$(".has-recipes"),$recipesWrap.on("click",".need, .step-indicator",(function(e){e.preventDefault(),$(this).toggleClass("checked")}))),"Recipes"==$('meta[property="cludo:category"]').attr("content")&&"Florida Sportsman"==$('meta[property="og:site_name"]').attr("content")){var ie,oe=$('h2:contains("Ingredients")').siblings("ul");console.log(oe),oe.addClass("ingredients"),oe.find("li").addClass("ingredient")}$.fn.shuffle=function(){var e=this.get(),t=function(e){return Math.floor(Math.random()*e)},a=$.map(e,(function(){var a=t(e.length),i=$(e[a]).clone(!0)[0];return e.splice(a,1),i}));return this.each((function(e){$(this).replaceWith($(a[e]))})),$(a)}
2,Q=Y=X=Z=ee=te=!1,$(window).scroll((function(){var e=$(window).scrollTop();if(e>=$(".masthead").height()){var t=$("#article-pagination");F.find("article").each((function(a){$(this).position().top<=e+100&&t.find(".active").removeClass("active")}))}else E.find(".article-item.active").removeClass("active"),E.find(".article-item:first").addClass("active");e>200?$(".to-top").fadeIn():$(".to-top").fadeOut(),$("#adpos_top").length&&E.length&&$("#adpos_top").isInViewport()&&"fixed"===$(".side-bar").css("position")?($(".side-bar.related-articles").fadeOut(),$(".consent-popup").css("bottom","0"),$("#ketch-banner").css("bottom","0"),w("non-article")):!E.length||$(".side-bar.related-articles").hasClass("closed")||"fixed"!==$(".side-bar").css("position")||delayFixedAd?delayFixedAd||w("non-article"):($(".side-bar.related-articles").fadeIn(),$(".consent-popup").css("bottom",$(".side-bar.related-articles").height()+10),$("#ketch-banner").css("bottom",$(".side-bar.related-articles").height()+10),w("article"),$(".side-bar.related-articles").find("span.icon-close").length||$(".side-bar.related-articles").append('<a href="#" class="close-ad"><span class="icon-close"></span></a>')),(!$(".popout-video").length||$(".popout-video").parent(".full-video").isInViewport()||!$(".popout-video").find("iframe").hasClass("active-play")||$(".popout-video").hasClass("closed-popout")||delayPopout)&&(!$(".popout-video").length||$(".popout-video").parent(".full-video").isInViewport()||$(".popout-video").hasClass("closed-popout")||delayPopout)?$(".popout-video").length&&$(".popout-video").removeClass("full-video-small"):$(".popout-video").addClass("full-video-small")})).scroll(),setTimeout((function(){w("non-article"),$(window).scroll()}),1500),$("body").on("click",".close-ad",(function(e){e.preventDefault(),$(".consent-popup").css("bottom","0"),$("#ketch-banner").css("bottom","0"),$(this).parent(".side-bar.related-articles").addClass("closed"),$(this).parent(".side-bar.related-articles").fadeOut()})),$(".mobile-pager").on("click",(function(e){e.preventDefault();var t=F.find("article.active");$(this).hasClass("next")?_(t.nextAll("article:first").attr("data-anchor")):$(this).hasClass("prev")&&_(t.prevAll("article:first").attr("data-anchor"))}));const ne=e=>new URL(e).hostname;var se=getCookie("tp-allow-always");null===se&&(se=[]);var le=getCookie("tp-allow-this");if(null===le&&(le=[]),$(".responsive-iframe").each((function(e,t){var a=$(t),i=a.attr("id"),o=a.attr("data-iframe-src"),n="",s=new RegExp("^//"),l,r,d=$(this).attr("data-iframe-src"),c,h=a.attr("data-start-date"),p=a.attr("data-end-date"),g=new Date,v;if((g.setHours(0,0,0,0),h)&&g<new Date(h+"T00:00:00"))return void S(a,a.attr("data-before-message"),a.attr("data-title"));if(p){var f=new Date(p+"T00:00:00");if(f.setDate(f.getDate()+1),g>=f)return void S(a,a.attr("data-after-message"),a.attr("data-title"))}0!==$("#"+i).attr("data-iframe-src").indexOf("/")||s.test($("#"+i).attr("data-iframe-src"))?s.test($("#"+i).attr("data-iframe-src"))?(c=ne(d),l=new URL("https:"+a.attr("data-iframe-src"))):(c=ne(d),l=new URL(a.attr("data-iframe-src"))):(c=ne("https://"+window.location.hostname+a.attr("data-iframe-src")),l=window.location+a.attr("data-iframe-src")),r=new URL(window.location),$(this).attr("data-third")&&(n=$(this).attr("data-third")),console.log("Third: "+n),null!==se&&se.indexOf(c)>-1&&(n="false",console.log(se)),null!==le&&le.indexOf(d)>-1&&(n="false",console.log(le)),console.log("Third: "+n),setTimeout((function(){if(ketchAdvertising&&ketchAnalytics){var e=new pym.Parent(i,o,{});console.log("Responsive 1!")}else if(console.log("Responsive 2!"),console.log(typeof n),"true"!==n&&""!==n){var e=new pym.Parent(i,o,{});console.log("Responsive 3a!")}else{if("true"===n)return console.log("Responsive 4a!"),x(a,l.hostname,a.attr("data-title")),!1;if(l.host!==r.host&&"content.osgnetworks.tv"!==l.host)return console.log("Responsive 4b!"),x(a,l.hostname,a.attr("data-title")),!1;var e=new pym.Parent(i,o,{});console.log("Responsive 3b!")}$("header .toggle-menu").is(":hidden")&&void 0!==a.attr("data-height")?a.find("iframe").css("height",a.attr("data-height")):void 0!==a.attr("data-mobile-height")?a.find("iframe").css("height",a.attr("data-mobile-height")):void 0!==a.attr("data-height")&&a.find("iframe").css("height",a.attr("data-height"))}),1500)})),$("body").on("click",".tp-allow-always",(function(e){e.preventDefault();var t=new RegExp("^//"),a=$(this).parents(".responsive-iframe").attr("id"),i=$(this).parents(".responsive-iframe").attr("data-iframe-src"),o;o=0!==$("#"+a).attr("data-iframe-src").indexOf("/")||t.test($("#"+a).attr("data-iframe-src"))?ne(i):window.location.hostname;var n=$(this).parents(".responsive-iframe").attr("id");se.push(o),setCookie("tp-allow-always",o,!0);var s=new pym.Parent(n,i,{})})),$("body").on("click",".tp-allow-this",(function(e){e.preventDefault();var t=new RegExp("^//"),a=$(this).parents(".responsive-iframe").attr("id"),i=$(this).parents(".responsive-iframe").attr("data-iframe-src"),o;o=0!==$("#"+a).attr("data-iframe-src").indexOf("/")||t.test($("#"+a).attr("data-iframe-src"))?ne(i):window.location.hostname;var n=$(this).parents(".responsive-iframe").attr("id");setCookie("tp-allow-this",i,!0);var s=new pym.Parent(n,i,{})})),$(".privacy-settings").length&&$(".privacy-settings").on("click",(function(e){return e.preventDefault(),semaphore.push(["showPreferences",{tab:"rightsTab"}]),!1})),$(".forecast-map").on("click","circle, path",(function(e){$locationQuery=$(this).attr("data-redirect"),T($locationQuery)})),$(".article-pagination a").on("click",(function(e){e.preventDefault();var t,a=$(this).parent("li"),i=a.siblings(".active").first(),o=a.index(),n=E.find(".article-item:eq("+o+") a");return k(i,a),n.trigger("click"),!1})),$("body").on("click",".more-js",(function(e){e.preventDefault(),$(this).siblings(".complete").fadeToggle();var t=$(this).text();$(this).text("more"==t?"less":"more"),void 0!==gtag&>ag("event","show_hide_more",{event_category:$(this).siblings(".teaser").text(),event_label:"none",non_interaction:!0})})),$("body").on("touchend",".sub-nav h1 a",(function(e){return $(this).find("span").hasClass("icon-arrow-down")&&$("header .toggle-menu").is(":visible")?(e.preventDefault(),$(this).find("span").removeClass("icon-arrow-down").addClass("icon-arrow-up"),$(this).parents("h1").siblings("ul").addClass("open"),$(this).parents("h1").siblings("ul").removeClass("closed"),!1):$(this).find("span").hasClass("icon-arrow-up")&&$("header .toggle-menu").is(":visible")?(e.preventDefault(),$(this).find("span").removeClass("icon-arrow-up").addClass("icon-arrow-down"),$(this).parents("h1").siblings("ul").removeClass("open"),$(this).parents("h1").siblings("ul").addClass("closed"),!1):void 0})),$(".lazy.article-img").length){var re,de=!1,ce=200;function he(){new Date-re<ce?setTimeout(he,ce):(de=!1,D())}$(window).resize((function(){re=new Date,!1===de&&(de=!0,setTimeout(he,ce))})),D()}useWebP&&(console.log("USE WEBP"),$("img.lazy").each((function(){if(void 0!==$(this).attr("data-src")&&$(this).attr("data-src").match("^https://content.osgnetworks.tv/photopacks/")){var e=$
2(this).attr("data-src").replace(".jpg",".webp");$(this).attr("data-src",e),console.log($(this))}}))),$(".lazy").lazy({effect:"fadeIn",threshold:50,afterLoad:function(e){e.addClass("loaded"),e.width()/e.height()<1.6&&e.width()/e.height()>1.4&&(e.parent().addClass("image-overlay-container"),e.parent().append('<div class="is-image-overlay" style="height: '+e.height()+"px; width: "+e.width()+'px"></div>'))}}),$(".lazy-content")&&$(".lazy-content").each((function(){var e=$(this)})),$("body").on("click",".show-more a",(function(e){if(e.preventDefault(),"undefined"==typeof ArticleShowMoreFullPage&&(ArticleShowMoreFullPage="multiPage"),!1!==addShowMore&&userSliceSize<=49&&(ArticleShowMoreFullPage="singlePage"),console.log("Show more type: "+ArticleShowMoreFullPage),"undefined"==typeof ArticleShowMoreFullPage||"singlePage"===ArticleShowMoreFullPage||""===ArticleShowMoreFullPage){var t=$(this).attr("data-article-more"),a=$(this).parents(".show-more"),i;$("#"+t).find(".wrapper .full-video iframe").each((function(){var e=$(this);e.attr("src",e.attr("data-src")).removeAttr("data-src")}));var o=$("#"+t).find("#teads");o.addClass("advertisement"),o.attr("data-ad-size-mapping","teads"),o.attr("data-ad-position","teads");var n=$("#"+t).find("#reveal");n.addClass("advertisement"),n.attr("data-ad-size-mapping","reveal"),n.attr("data-ad-position","reveal");var s=$("#"+t).find("#adpos_rightB");s.addClass("advertisement"),s.attr("data-ad-size-mapping","adpos_rightB"),s.attr("data-ad-position","reveal"),s.wrap('<div class="ad-float-right-md"></div>');for(var l=$("#"+t).find(".advertisement"),r=0;r<l.length;r++)P($(l[r]),"Show More Button");var d="";utmDisabled||(d="?utm_source="+K+"&utm_content="+$("#"+t+" h1").text().replace(/\W/g,"")),a.fadeOut(),$("#"+t).addClass("full-length"),h(t);var c=$(this).attr("data-article-more"),p;return u(E.find('.article-item.active a[data-target-article="'+c+'"]')),setTimeout((function(){$(window).scroll()}),250),!1}if("multiPage"===ArticleShowMoreFullPage){var d="";utmDisabled||(d="?utm_source="+ArticleShowMoreFullPage+"&utm_content="+$(this).attr("href")),window.location.href=$(this).attr("href")+d}})),jsSocials.shares.twitter={label:"Tweet",logo:"icon-twitter",shareUrl:"https://twitter.com/share?url={url}&text={text}&via={via}&hashtags={hashtags}",countUrl:"https://cdn.api.twitter.com/1/urls/count.json?url={url}&callback=?",getCount:function(e){return e.count}},$(".social-menu").jsSocials({showLabel:!0,showCount:!1,shareIn:"popup",shares:["twitter","facebook","email"]}),d(),y();var pe=$(window).height(),ge=$(window).width(),ve=!1,fe;"undefined"==typeof resizeScript&&(resizeScript=!1),$(window).on("resize orientationchange",(function(){if(d(),!0===endlessScroll&&r(),y(),window.googletag&&googletag.apiReady&&!1===ve){var e=.2*pe,t=.1*ge;console.log(e),console.log(t),(pe>$(window).height()+e||pe<$(window).height()-e||ge>$(window).width()+t||ge<$(window).width()-t)&&(console.log("RESIZED -------------------"),ve=!0,console.log("Init: "+ketchInit),console.log("Ads: "+ketchAdvertising),window.setTimeout((function(){ketchInit&&ketchAdvertising&&window.googletag.cmd.push((function(){googletag.pubads().refresh([gptAdSlots[0],gptAdSlots[1],gptAdSlots[2],gptAdSlots[3],gptAdSlots[4],gptAdSlots[5]])})),ve=!1,console.log("RESIZED TRIGGERED -------------------"),pe=$(window).height(),ge=$(window).width()}),5e3))}})),E.length&&$(window).scroll((function(){b()})),B.find("input").first().on("keypress",(function(e){if(13==e.which)return e.preventDefault(),B.find(".btn").first().trigger("click"),!1})),B.on("click",".btn",(function(e){e.preventDefault(),$target=e.target,void 0!==gtag&>ag("event","newsletter",{event_category:"open_modal",event_label:$target,non_interaction:!0}),void 0!==gtag&>ag("event","page_view",{page_title:"Newsletter",page_location:"modal",page_path:"/newsletter-signup/",non_interaction:!1});var t=B.attr("data-website-id"),a=B.attr("data-site-name"),i="/mag-already-registered.html",i=B.attr("data-request-from"),o,n=B.find("input:first").val();$.ajax({type:"GET",url:i,params:{websiteid:t},success:function(e){var t=$('<div class="is-newsletter-modal modal-wrapper"></div>');t.append($(e));var a=t.find("form"),i=lity(t);void 0!==n&&t.find("#email").val(n),t.find(".close-modal").on("click",(function(e){e.preventDefault(),i.close()})),t.find("input:submit").on("click touchstart",(function(e){var t=!1;a.parsley().on("form:submit",(function(){}))})),I()}})})),$("#MainContent_email").on("keypress",(function(e){if(13==e.which)return e.preventDefault(),__doPostBack("ctl00$MainContent$LogInButton",""),!1})),$("#MainContent_pass").on("keypress",(function(e){if(13==e.which)return e.preventDefault(),__doPostBack("ctl00$MainContent$LogInButton",""),!1})),$("#authOverlay").length&&"undefined"!=typeof offerMidexMedia&&"undefined"!=typeof offerDigitalOnly?($("#authOverlay .ea-intro").html(eaIntro),$("#authOverlay .ea-teaser").html(eaTeaser),$("#container-print-digital h2 small").html(offerMidexMedia.term),$("#container-print-digital h3").html(offerMidexMedia.issues),$("#container-print-digital .extras").html(offerMidexMedia.features),$("#container-digital-only h2 small").html(offerDigitalOnly.term),$("#container-digital-only h3").html(offerDigitalOnly.issues),$("#container-digital-only .extras").html(offerDigitalOnly.features), 3$("#authOverlay button").on("click",(function(e){return e.preventDefault(),$("#print-digital").is(":checked")?window.open(offerMidexMedia.link):$("#digital").is(":checked")?window.open(offerDigitalOnly.link):alert("Please select a plan to proceed."),!1}))):$("#authOverlay").length&&$("#authOverlay").hide(),$(".caro.multi").slick({dots:!1,infinite:!0,speed:800,arrows:!0,slidesToShow:4,slidesToScroll:4,responsive:[{breakpoint:1365,settings:{slidesToShow:3,slidesToScroll:3,infinite:!0,dots:!1,arrows:!0}},{breakpoint:768,settings:{slidesToShow:2,slidesToScroll:2,dots:!1,arrows:!0}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1,dots:!1,arrows:!0}}]});
3var ue=$(".premium-caro"),me;$("#video-list-caro .caro-video-next").on("click",(function(e){return e.preventDefault(),ue.slick("slickNext"),!1})),$("#video-list-caro .caro-video-prev").on("click",(function(e){return e.preventDefault(),ue.slick("slickPrev"),!1})),ue.on("beforeChange",(function(e,t,a,i){$(".lazy").Lazy()})),ue.slick({dots:!1,infinite:!0,speed:800,arrows:!1,slidesToShow:4,slidesToScroll:4,responsive:[{breakpoint:1365,settings:{slidesToShow:3,slidesToScroll:3,infinite:!0}},{breakpoint:768,settings:{slidesToShow:2,variableWidth:!0,slidesToScroll:2}},{breakpoint:480,settings:{slidesToShow:2,slidesToScroll:2}}]}),ue.find(".slick-active").length>=ue.find(".slick-slide").length&&(ue.siblings(".caro-video-prev").hide(),ue.siblings(".caro-video-next").hide()),$(".caro.wide:not(.info):not(.in-read):not(.online-exclusive)").slick({centerMode:!0,variableWidth:!0,dots:!1,infinite:!0,arrows:!0,speed:1e3,slidesToShow:1,slidesToScroll:1,responsive:[{breakpoint:1200,settings:{slidesToShow:1,slidesToScroll:1,dots:!1,arrows:!0,centerMode:!1,variableWidth:!1}}]}),$(".caro.wide:not(.info)").on("beforeChange",(function(e,t,a,i){$(".lazy").Lazy()})),$(".caro.wide.online-exclusive").slick({dots:!1,infinite:!0,arrows:!0,speed:1e3,slidesToShow:1,slidesToScroll:1,responsive:[{breakpoint:1200,settings:{slidesToShow:1,slidesToScroll:1,dots:!1,arrows:!0}}]}),"closed"!==getCookie("special-promo")&&($(".special-promo").addClass("collapse").slideDown(),$(".war-mode-caro").slick({dots:!0,infinite:!0,arrows:!0,pauseOnHover:!0,autoplaySpeed:5e3,autoplay:!0,speed:1e3,slidesToShow:1,slidesToScroll:1,responsive:[{breakpoint:1350,settings:{slidesToShow:1,slidesToScroll:1,dots:!0,arrows:!1}}]}));var $e=$(".caro.gallery"),ye=0;$e.on("init",(function(e,t,a,i){$e.find(".gal-item:first-of-type").addClass("current-gal")}));var be=$("#modal-counter"),we=0;$e.on("init reInit afterChange",(function(e,t,a,i){var o=(a||0)+1;be.text(o+"/"+t.slideCount),we=t.slideCount})),$e.slick({fade:!1,dots:!1,infinite:!1,arrows:!0,speed:1e3,slidesToShow:10,slidesToScroll:5,initialSlide:0,responsive:[{breakpoint:768,settings:{slidesToShow:3,slidesToScroll:3,dots:!1,arrows:!1,cssEase:"linear"}}]}),$.fn.isAfter=function(e){return 0!==this.prevAll().filter(e).length},$.fn.isBefore=function(e){return 0!==this.nextAll().filter(e).length}
3,$("#modal-gallery").on("click",".gal-item",(function(){var e=$(this).find("img").attr("src"),t=$(this).find("img").attr("data-title"),a=$(this).find("img").attr("alt");A(e,$(this),t,a)})),$("#modal-gallery .gal-prev, #modal-gallery .gal-next").on("click",(function(e){if(e.preventDefault(),$(this).hasClass("disabled"))return!1;var t,a,i=$(this).find("img").attr("data-title"),o=$(this).find("img").attr("alt");$(this).hasClass("gal-next")?(t=$(".current-gal").next().find("img").attr("src"),i=$(".current-gal").next().find("img").attr("data-title"),o=$(".current-gal").next().find("img").attr("alt"),a=$(".current-gal").next()):$(this).hasClass("gal-prev")&&(t=$(".current-gal").prev().find("img").attr("src"),i=$(".current-gal").prev().find("img").attr("data-title"),o=$(".current-gal").prev().find("img").attr("alt"),a=$(".current-gal").prev()),A(t,a,i,o)})),$("#modal-gallery .has-main-image").swipe((function(e){console.log("swipe: "+e),"left"==e?$("#modal-gallery .gal-next").trigger("click"):"right"==e&&$("#modal-gallery .gal-prev").trigger("click")})),$(".tray-toggle").on("click",(function(e){e.preventDefault(),$(".tray-container").toggleClass("closed")})),$(".gallery-open").on("click",(function(){$("#modal-gallery").addClass("opened"),$(this).attr("data-slide")&&$("#modal-gallery").find($(".slick-slide").eq($(this).attr("data-slide"))).trigger("click"),setTimeout((function(){$(".tray-container").addClass("closed")}),2e3)})),$(".close-gallery").on("click",(function(){$("#modal-gallery").removeClass("opened"),$(".tray-container").removeClass("closed")}));var _e=$(".caro.wide.info");if(_e.on("init reInit afterChange",(function(e,t,a,i){var o=0;_e.find(".content").each((function(){$(this).height()>o&&(o=$(this).height())})),_e.find(".content").css("height",o+"px")})),_e.slick({centerMode:!0,fade:!0,dots:!1,infinite:!0,arrows:!0,speed:1e3,slidesToShow:1,slidesToScroll:1}),$(".caro.sync-images").slick({centerMode:!1,dots:!0,slidesToShow:1,asNavFor:".sync-content",slidesToScroll:1}),$(".caro.sync-content").slick({centerMode:!1,dots:!1,slidesToShow:1,accessibility:!1,arrows:!1,asNavFor:".sync-images",slidesToScroll:1}),$(".caro.in-read").slick({centerMode:!1,dots:!0,slidesToShow:1,slidesToScroll:1}).on("lazyLoaded",(function(){})),$(".caro.full-gallery").length){var ke=0,W;(W=window.location.hash.replace("#","")).length>0&&W.match(/^\d+$/)&&(ke=W)}$(".caro.full-gallery").slick({centerMode:!1,variableWidth:!1,lazyLoad:"ondemand",asNavFor:".caro.full-gallery-controls",dots:!1,infinite:!0,arrows:!1,initialSlide:parseInt(ke),speed:1e3,focusOnSelect:!0,slidesToShow:1,slidesToScroll:1,responsive:[{breakpoint:768,settings:{centerMode:!1,variableWidth:!1}}]});var be=$(".pagingInfo"),Ce=$(".caro.full-gallery-controls");Ce.on("init reInit afterChange",(function(e,t,a,i){var o=(a||0)+1;be.text(o+" of "+t.slideCount)})),Ce.slick({centerMode:!1,variableWidth:!1,lazyLoad:"ondemand",asNavFor:".caro.full-gallery",initialSlide:parseInt(ke),draggable:!1,focusOnSelect:!0,respondTo:"slider",dots:!1,infinite:!0,arrows:!0,speed:1e3,slidesToShow:4,slidesToScroll:1,responsive:[{breakpoint:768,settings:{slidesToShow:3,slidesToScroll:3}}]}),$(".caro").on("afterChange",(function(e,t,a){$(".lazy").Lazy(),void 0!==gtag&>ag("event","carousel: "+$(this).attr("class"),{event_category:"item: "+a+" of "+t.slideCount,event_label:"none",non_interaction:!0})})),$("header nav ul.navigation").slicknav({label:"",appendTo:".masthead .main-nav",closeOnClick:!0,closedSymbol:'<span class="icon-arrow-right"></span>',openedSymbol:'<span class="icon-arrow-right"></span>'});var xe=$(".slicknav_menu .slicknav_nav"),Se=$("#cludo_search_form").clone();Se.find(".row > div:nth-of-type(2)").removeClass().addClass("col-xs-10 last-xs"),Se.find(".row > div:nth-of-type(3)").removeClass().addClass("col-xs-2"),Se.find("button").attr("aria-label","Submit Search"),Se.find("#search_field").attr("id","search_field_mobile"),Se.find("#search_field_mobile").prev("label").attr("for","search_field_mobile"),Se.find("#category").attr("id","category_mobile"),Se.attr("id","cludo_search_form_mobile");
3var Te=$("header .utility .social-links").clone(),De=$("header .has-right-subscribe").clone().addClass("mobile-subscribe");De.find(".secondary-links").remove(),De.prependTo(xe),$(".slicknav_nav .mobile-subscribe").removeClass("has-right-subscribe"),$(".slicknav_nav .mobile-subscribe .row").addClass("bottom-xs"),$(".slicknav_nav .mobile-subscribe").find(".subscribe-cta .btn").appendTo(".mobile-subscribe .subscribe-text"),$(".slicknav_nav .mobile-subscribe .subscribe-cta").remove(),$(".slicknav_nav .mobile-subscribe .subscribe-text").addClass("last-xs"),Se.prependTo(xe),Te.appendTo(xe),$('.slicknav_nav .fixed-search input[type="search"]').keypress((function(e){13==e.which&&(e.preventDefault(),window.location.href="/search-results"+dotNetInclusion+"#?cludoquery=1&cludoquery="+$('.slicknav_nav .fixed-search input[type="search"]').val(),window.location.pathname==="/search-results"+dotNetInclusion&&location.reload())})),$(".slicknav_nav .fixed-search button").on("click",(function(e){e.preventDefault(),window.location.href="/search-results"+dotNetInclusion+"#?cludoquery=1&cludoquery="+$('.slicknav_nav .fixed-search input[type="search"]').val(),window.location.pathname==="/search-results"+dotNetInclusion&&location.reload()})),$(".toggle-menu","header").on("click",(function(e){$("header nav ul").slicknav("toggle"),$("header .toggle-menu span").toggleClass("icon-menu icon-close")})),$("header .toggle-search").on("click",(function(e){$("header nav ul").slicknav("toggle"),$("header .toggle-menu span").toggleClass("icon-menu icon-close"),$('#cludo_search_form input[type="search"]').focus()})),$(".page-header").on("click",".toggle-in-page",(function(e){e.preventDefault(),$(this).find("span").toggleClass("open"),$(this).hasClass("open")?$(this).attr("aria-expanded","true"):$(this).attr("aria-expanded","false"),$(this).siblings(".sub-nav").slideToggle(),void 0!==gtag&>ag("event","in_page_menu",{event_category:"toggle",event_label:"open/close",non_interaction:!1})})),$("body").on("click",".learn-coffee",(function(e){e.preventDefault();var t=$(this).parents("section").height()-80;pymChild.scrollParentToChildPos(t),void 0!==gtag&>ag("event","promo_page",{event_category:"coffee",event_label:"learn_more",non_interaction:!1})}));var Ae=$(window).height();$(".slicknav_menu").css({"max-height":Ae,"overflow-y":"scroll"}),$(".toggle-promo").on("click",(function(e){e.preventDefault(),$(".special-promo").addClass("collapse"),$(".special-promo").hide(),setCookie("special-promo","closed",0),void 0!==gtag&>ag("event","global_element",{event_category:"war_mode",event_label:"close",event_action:"click",event_location:window.location.href})})),$(".special-promo h3").on("inview",(function(e,t){var a=!1;t&&(void 0===gtag||$(".special-promo .slick-current").hasClass("has-reported")||gtag("event","global_element",{event_category:"in_view",event_location:"war_mode",event_report:$(".special-promo .slick-current").find("h3").text()}),$(".special-promo .slick-current").addClass(".has-reported"))})),$(".special-promo").on("click","a.btn",(function(e){e.preventDefault(),void 0!==gtag&>ag("event","global_element",{event_category:"war_mode",event_label:"referral",event_action:"click",event_report:$(this).attr("href"),event_location:window.location.href}),"_blank"==$(this).attr("target")&&$(this).is('a:not([href^="#"])')?window.open($(this).attr("href")):window.location.href=$(this).attr("href")})),I(),$("select.not-styled.has-redirect").on("change",(function(e){window.location.href=this.value}));var Ie=!1;$("#endrequest").length&&$("#endrequest").each((function(){$(this).parents(".grid").siblings(".load-more").hide()}));var Me=6;($(".load-more .btn").length||$(".auto-load-randomize").length)&&$(".load-more .btn, .auto-load-randomize").on("click",(function(e){e.preventDefault();var t=$(this),a=t.attr("data-load-to"),i=t.attr("data-request-from"),o=t.attr("data-request-showid"),n=t.attr("data-request-listingid"),l=t.attr("data-request-id"),r=t.attr("data-request-page"),c=t.attr("data-request-take"),h=t.attr("data-request-start"),p="false",g,v=!1,f,u;(t.parent().hasClass("load-before")?(v=!0,g=t.attr("data-request-type"),f=i+"?listing-id="+n+"&websiteid="+l+"&page="+r+"&take="+c+"&showid="+o+"&start="+h+"&list-type="+g,googletag.pubads().refresh([gptAdSlots[8]]),$("#adpos_railB").removeClass("has-viewed")):f=i+"?listing-id="+n+"&websiteid="+l+"&page="+r+"&take="+c+"&showid="+o+"&start="+h,t.hasClass("auto-load-randomize"))&&(p="true",f=f+"&type="+t.attr("data-listing-type"));return t.addClass("loading"),$.get(f,(function(e){$content=$(e);var i=$content.find("#adpos_rightB"),o;i.addClass("advertisement"),i.attr("data-ad-size-mapping","adpos_rightB"),i.attr("data-ad-position","adpos_rightB"),$content.find(".lazy").each((function(){void 0!==$(this).attr("data-src")&&$(this).hasClass("lazy")&&-1!=$(this).attr("data-src").indexOf("http://imomags.com/shotgunne
3ws")&&(this.dataset.src=this.dataset.src.replace("http://imomags.com/shotgunnews","http://www.firearmsnews.com"))}));for(var n=$content.find(".advertisement"),s=0;s<n.length;s++)P($(n[s]),"Load More");!0===v?($content.hide().insertBefore(t.parent()).fadeIn(),$(window).scroll()):"true"==p?($content.hide().appendTo("#"+a),$("#"+a).find(".grid-item").shuffle(),$("#"+a).find(".sponsored").prependTo("#"+a),$("#"+a).find(".grid-item:lt(3)").fadeIn()):$content.hide().appendTo("#"+a).fadeIn(),D(),$(".lazy").Lazy(),t.removeClass("loading"),$("#"+a+" #endrequest").length&&t.hide()})).done((function(){void 0!==gtag&>ag("event","show_more_articles",{event_category:"from: "+i,event_label:"none",non_interaction:!1}),s(),d(),$(".clamp-me").each((function(e,t){lines=$(this).attr("data-lines"),$clamp(t,{clamp:lines})}))})),t.attr("data-request-page",parseInt(r)+1),!1})),$(".auto-load-randomize").trigger("click");var Pe=!1;$(".podcast-listing").on("click",".watch-now",(function(e){if(e.preventDefault(),R(),$(this).hasClass("has-audio")){var t,a=(t="#"+$(this).attr("data-video-target"))+" .player";$(this).slideUp("slow",(function(){$(t+" .player-container").addClass("active").fadeIn(),$(t+" .player-container .play").trigger("click")})),void 0!==gtag&>ag("event","podcast",{event_category:"listen_now",event_location:"audio_article"})}else{var i=$(this).attr("data-video-src"),t,a=(t="#"+$(this).attr("data-video-target"))+" .player";$(t+" .player-container .player").html('<iframe width="560" height="315" src="'+i+'" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>'),$(this).slideUp("slow",(function(){$(t+" .player-container").addClass("active").fadeIn()})),void 0!==gtag&>ag("event","podcast",{event_category:"watch_now",event_location:"video_article",event_label:i})}})),$("body").on("click",".podcast-item .hasInfo",(function(e){e.preventDefault(),$target=$("#"+$(this).attr("data-target")),$(this).hasClass("active")?($target.slideUp(),$(this).removeClass("active")):($target.slideDown(),$(this).addClass("active")),void 0!==gtag&>ag("event","podcast_more_info",{event_category:$(this).parents(".show-title").find("h3").text(),event_label:"none",non_interaction:!1})})),$("#region-map").on("click","g",(function(e){e.preventDefault(),void 0!==gtag&>ag("event","region_map",{event_category:$(this).attr("data-link"),event_label:"none",non_interaction:!1}),window.location.href=$(this).attr("data-link")})),$("body").on("click",".print-document",(function(e){e.preventDefault(),window.print(),void 0!==gtag&>ag("event","print_page",{event_category:"click",event_label:$(this).attr("href"),non_interaction:!1})})),$("body").on("click",".in-page-articles a",(function(e){e.preventDefault(),void 0!==gtag&>ag("event","in_page_article_link",{event_category:"click",event_label:$(this).attr("href"),non_interaction:!1}),window.location.href=$(this).attr("href")}));var Re=new URL(window.location.href),ze=getCookie("refcampmag");!ze&&Re.searchParams.get("utm_campaign")?(setCookie("refcampmag",Re.searchParams.get("utm_campaign")),void 0!==gtag&>ag("event","ref_campaign",{event_category:Re.searchParams.get("utm_campaign"),event_label:window.location.href,non_interaction:!0})):ze&&void 0!==gtag&>ag("event","ref_campaign",{event_category:ze,event_label:window.location.href,non_interaction:!0});var Oe=getCookie("userReturn"),Ee=getCookie("userReturnDate"),Fe=new Date(Ee),Ve=new Date;if(Oe){if(Oe&&Ve.setHours(0,0,0,0)!==Fe.setHours(0,0,0,0)){console.log("return:"+Oe);const $t=parseInt(Oe)+parseInt(1);console.log($t),void 0!==gtag&>ag("event","global_element",{event_category:"returning_user",event_label:"visit: "+$t}),setCookie("userReturn",$t),setCookie("userReturnDate",new Date)}}else{const yt=1;setCookie("userReturn",yt),setCookie("userReturnDate",new Date),void 0!==gtag&>ag("event","global_element",{event_category:"returning_user",event_label:"visit: "+yt})}$("body").on("click",".read-next-article",(function(e){e.preventDefault(),void 0!==gtag&>ag("event","article_detail",{event_category:"read_next",event_label:$(this).attr("href"),event_action:"click"}),window.location.href=$(this).attr("href")})),$("body").on("click",".read-next-article-img",(function(e){e.preventDefault(),void 0!==gtag&>ag("event","read_next_article_image",{event_category:$(this).attr("href"),event_label:$(this).find("img").attr("src"),non_interaction:!1}),window.location.href=$(this).attr("href")})),$(".side-bar").on("click",".current-subscribe-mag",(function(e){e.preventDefault(),void 0!==gtag&>ag("event","sub_mag",{event_category:"current_issue",event_label:$(this).attr("href"),non_interaction:!1}),window.open($(this).attr("href"))})),$(".in-article-subscribe").on("click","a",(function(e){e.preventDefault(),void 0!==gtag&>ag("event","sub_mag",{event_category:"end_article",event_label:$(this).attr("href"),non_interaction:!1}),window.open($(this).attr("href"))})),$("#currentSubscribers").on("click","a",(function(e){e.preventDefault(),void 0!==gtag&>ag("event","sub_mag",{event_category:"digital_modal",event_label:$(this).attr("href"),non_interaction:!1}),window.open($(this).attr("href"))})),$("body").on("click","a.mobile-subscribe",(function(e){e.preventDefault(),void 0!==gtag&>ag("event","sub_mag",{event_category:"mobile_header",event_label:$(this).attr("href"),non_interaction:!1}),window.open($(this).attr("href"))})),$("body").on("click","div.mobile-subscribe a",(function(e){e.preventDefault(),void 0!==gtag&>ag("event","sub_mag",{event_category:"mobile_menu",event_label:$(this).attr("href"),non_interaction:!1}),window.open($(this).attr("href"))})),$(".rail-container, .rail-caro").on("click",".article-item a",(function(e){e.preventDefault();var t="";utmDisabled||(t="?utm_source="+K+"&utm_content="+$(this).text().replace(/\W/g,"")),void 0!==gtag&>ag("event","article_rail",{event_category:"Type: "+caroRail+" - "+$(this).text(),event_label:"",non_interaction:!1}),window.location.href=$(this).attr("href")+t})),$("article").on("click",".content a.video",(function(e){e.preventDefault(),void 0!==gtag&>ag("event","article_detail",{event_category:"video",event_label:$(this).attr("href"),non_interaction:!1}),window.location.href=$(this).attr("href")})),$("article").on("click",".content a:not(.video):not(.gallery-link):not(.print-document):not(.no-track)",(function(e){e.preventDefault(),void 0!==gtag&>ag("event","article_detail",{event_category:"embedded_link",event_label:$(this).attr("href"),non_interaction:!1}),"_blank"==$(this).attr("target")&&$(this).is('a:not([href^="#"])')?window.open($(this).attr("href")):window.location.href=$(this).attr("href")})),$('article a[href*="#"]').not('[href="#"]').not('[href="#0"]').not('[href="#editorial-gallery"]').click((function(e){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var t=$(this.hash);(t=t.length?t:$("[name="+this.hash.slice(1)+"]")).length&&(e.preventDefault(),$("html, body").animate({scrollTop:t.offset().top-$(".page-header").height()-20}
3,1e3,(function(){var e=$(t);if(e.focus(),e.is(":focus"))return!1;e.attr("tabindex","-1"),e.focus()})))}})),$("a.feature-item").on("click","a:not(.video.overlay)",(function(e){e.preventDefault(),void 0!==gtag&>ag("event","feature_item_click",{event_category:$(this).text()+" "+$(this).attr("href"),event_label:"",non_interaction:!1}),window.location.href=$(this).attr("href")})),$(".video-grid").on("click","a.video",(function(e){e.preventDefault(),void 0!==gtag&>ag("event","feature_item_click",{event_category:$(this).text()+" "+$(this).attr("href"),event_label:"",non_interaction:!1}),window.location.href=$(this).attr("href")})),$(".video-grid").on("click","h3 a",(function(e){e.preventDefault(),void 0!==gtag&>ag("event","video_grid_click",{event_category:$(this).text(),event_label:$(this).attr("href"),non_interaction:!1}),window.location.href=$(this).attr("href")})),$(".has-feature.has-col").on("click","a.video, a.btn",(function(e){e.preventDefault(),void 0!==gtag&>ag("event","two_col_video",{event_category:$(this).parents(".has-feature.has-col").find("h3").text(),event_label:"",non_interaction:!1}),window.location.href=$(this).attr("href")})),$(".cam-list").on("click","a",(function(e){e.preventDefault(),void 0!==gtag&>ag("event","switch_cam",{event_category:$(this).parents(".content-container").find("h1").text(),event_label:"",non_interaction:!1}),window.location.href=$(this).attr("href")})),$(".has-cams .is-cam").on("click","a",(function(e){e.preventDefault(),void 0!==gtag&>ag("event","click_cam",{event_category:$(this).parents(".is-cam").find("h3").text(),event_label:"",non_interaction:!1}),window.location.href=$(this).attr("href")})),$(".sponsor-feature").on("click","a",(function(e){e.preventDefault(),void 0!==gtag&>ag("event","sponsor_feat",{event_category:$(this).parents(".sponsor-feature").find("h3").text(),event_label:"",non_interaction:!1}),"_blank"==$(this).attr("target")&&$(this).is('a:not([href^="#"])')?window.open($(this).attr("href")):window.location.href=$(this).attr("href")})),$(".sponsor-list").on("click","a",(function(e){e.preventDefault(),void 0!==gtag&>ag("event","sponsor_feat",{event_category:$(this).attr("href"),event_label:"",non_interaction:!1}),"_blank"==$(this).attr("target")&&$(this).is('a:not([href^="#"])')?window.open($(this).attr("href")):window.location.href=$(this).attr("href")})),$(".has-episodes .is-episode:not(.is-podcast)").on("click","a",(function(e){e.preventDefault(),void 0!==gtag&>ag("event","watch_listen_now",{event_category:$(this).attr("href"),event_label:$(this).text(),non_interaction:!1}),"_blank"==$(this).attr("target")&&$(this).is('a:not([href^="#"])')?window.open($(this).attr("href")):window.location.href=$(this).attr("href")})),$(".recommendation-set, .lastest-articles").on("click","a",(function(e){e.preventDefault(),void 0!==gtag&>ag("event","related_article",{event_category:$(this).attr("href"),event_label:$(this).parents(".content").find("h3 a").text(),non_interaction:!1}),"_blank"==$(this).attr("target")&&$(this).is('a:not([href^="#"])')?window.open($(this).attr("href")):window.location.href=$(this).attr("href")})),$(".main-nav nav").on("click","a",(function(e){e.preventDefault(),void 0!==gtag&>ag("event","referral",{event_category:"main_nav",event_location:$(this).attr("href")}),"_blank"==$(this).attr("target")&&$(this).is('a:not([href^="#"])')?window.open($(this).attr("href")):window.location.href=$(this).attr("href")})),$(".main-nav .logo").on("click","a",(function(e){e.preventDefault(),void 0!==gtag&>ag("event","referral",{event_category:"main_nav",event_location:"logo"}),"_blank"==$(this).attr("target")&&$(this).is('a:not([href^="#"])')?window.open($(this).attr("href")):window.location.href=$(this).attr("href")})),$(".slicknav_menu").on("click","a:not(.slicknav_item.slicknav_row, [data-lity])",(function(e){e.preventDefault(),void 0!==gtag&>ag("event","referral",{event_category:"mobile_nav",event_location:$(this).attr("href")}),"_blank"==$(this).attr("target")&&$(this).is('a:not([href^="#"])')?window.open($(this).attr("href")):window.location.href=$(this).attr("href")})),$(".mini-promo .has-img").on("click","a",(function(e){e.preventDefault(),void 0!==gtag&>ag("event","referral",{event_category:"home_subscribe",event_location:"image"}),"_blank"==$(this).attr("target")&&$(this).is('a:not([href^="#"])')?window.open($(this).attr("href")):window.location.href=$(this).attr("href")})),$(".mini-promo .has-head").on("click","a",(function(e){e.preventDefault(),void 0!==gtag&>ag("event","referral",{event_category:"home_subscribe",event_location:"header"}),"_blank"==$(this).attr("target")&&$(this).is('a:not([href^="#"])')?window.open($(this).attr("href")):window.location.href=$(this).attr("href")})),$(".has-promo.is-magazine-sub").on("click","a",(function(e){e.preventDefault(),void 0!==gtag&>ag("event","referral",{event_category:"footer_subscribe",event_location:$(this).text()}),"_blank"==$(this).attr("target")&&$(this).is('a:not([href^="#"])')?window.open($(this).attr("href")):window.location.href=$(this).attr("href")})),$("footer").on("click","a",(function(e){e.preventDefault(),void 0!==gtag&>ag("event","referral",{event_category:"footer_nav",event_location:$(this).attr("href")}),"_blank"==$(this).attr("target")&&$(this).is('a:not([href^="#"])')?window.open($(this).attr("href")):window.location.href=$(this).attr("href")})),$(".has-promo.is-magazine-sub").on("inview",(function(e,t){var a=!1;t&&!a&&(void 0!==gtag&>ag("event","global_element",{event_category:"in_view",event_location:"footer_subscribe"}),a=!0)})),$(".is-newsletter.has-promo.in-read").on("inview",(function(e,t){var a=!1;t&&!a&&(void 0!==gtag&>ag("event","article_detail",{event_category:"in_view",event_location:"in_read_subscribe"}),a=!0)})),$(".track").on("click",(function(e){e.preventDefault();var t="Custom Anchor: ",a=$(this).attr("data-name");""!=a&&(t=a),void 0!==gtag&>ag("event",t,{event_category:$(this).text(),event_label:$(this).attr("href"),non_interaction:!1}),"_blank"==$(this).attr("target")&&$(this).is('a:not([href^="#"])')?window.open($(this).attr("href")):window.location.href=$(this).attr("href")}));var Be=getCookie("subscribeModalShown"),Le=getCookie("newsletterModalShown");if(!0===showSubModal&&!Be&&window.location.href.indexOf("editorial")>-1&&!1===disableModal)"undefined"!=typeof subModalHeadline&&$("#sub-head-container").html(subModalHeadline),"undefined"!=typeof subModalIntro&&$("#sub-intro-container").html(subModalIntro),"undefined"!=typeof subModalDisclaimer&&$("#sub-discalimer-container").html(subModalDisclaimer),"undefined"!=typeof subModalCTA&&$("#sub-cta-btn").attr("href",subModalCTA),"undefined"!=typeof modalBkg&&$(".bkg-modal").css("background-image","url("+modalBkg+")"),"undefined"!=typeof $modalType&&"0"==$modalType?(void 0!==gtag&>ag("event","subscribe_modal",{event_category:"no_modal",event_label:$(this).attr("href"),non_interaction:!0}),showSubModalTimer=6e5):"undefined"!=typeof $modalType&&"1"==$modalType?showSubModalTimer=2e4:"undefined"!=typeof $modalType&&"2"==$modalType?showSubModalTimer=4e4:"undefined"!=typeof $modalType&&"3"==$modalType&&(showSubModalTimer=6e4),setTimeout((function(){lity("#sub-modal-container"),void 0!==gtag&>ag("event","subscribe_modal",{event_category:showSubModalTimer,event_label:$(this).attr("href"),non_interaction:!0}),setCookie("subscribeModalShown","Shown",1)}),showSubModalTimer);else if(!0===showNewsletterModal&&!Le&&!1===disableModal){if(console.log("not editorial"),"undefined"==typeof newsletterProperty)return console.log("no email list property defined"),!1;$("#newsletter-modal-container").find(".disclaimer input").attr("value",newsletterProperty),"undefined"!=typeof newsletterHeadline&&$("#sub-head-container").html(newsletterHeadline),"undefined"!=typeof newsletterIntro&&$("#sub-intro-container").html(newsletterIntro),"undefined"!=typeof newsletterDisclaimer&&$("#sub-discalimer-container").html(newsletterDisclaimer),"undefined"!=typeof newsletterCTA&&$("#sub-cta-btn").attr("href",newsletterCTA),"undefined"!=typeof modalBkg&&$(".bkg-modal").css("background-image","url("+modalBkg+")"),"undefined"!=typeof $modalType&&"0"==$modalType?(void 0!==gtag&>ag("event","newsletter_modal",{event_category:"no_modal",event_label:$(this).attr("href"),non_interaction:!0}),showSubModalTimer=6e5):"undefined"!=typeof $modalType&&"1"==$modalType?showSubModalTimer=2e4:"undefined"!=typeof $modalType&&"2"==$modalType?showSubModalTimer=4e4:"undefined"!=typeof $modalType&&"3"==$modalType&&(showSubModalTimer=6e4),setTimeout((function(){lity("#newsletter-modal-container"),$("#sub-logo-container").append($(".masthead .logo").html()),void 0!==gtag&>ag("event","newsletter_modal",{event_category:showSubModalTimer,event_label:$(this).attr("href"),non_interaction:!0})}),showSubModalTimer)}if($("body").on("click","#sub-modal-container #sub-cta-btn",(function(e){e.preventDefault(),void 0!==gtag&>ag("event","subscribe_modal",{event_category:"click",event_label:$(this).attr("href"),non_interaction:!1}),"_blank"==$(this).attr("target")&&$(this).is('a:not([href^="#"])')?window.open($(this).attr("href")):window.location.href=$(this).attr("href")})),$("body").on("click","#section-description a",(function(e){e.preventDefault(),void 0!==gtag&>ag("event","modal",{event_category:"click",event_label:"privacy_modal"}),lity($(this).attr("href"))})),$(".lazy-frame, #akamai-media-player").length){var Ne='<div class="lazy-play"><div class="play-container"><span class="icon-play"></span></div></div>',qe='<div class="lazy-play audio"><div class="play-container"></div></div>',je;function He(e){if(console.log("Active: "+e),!e.hasClass("active-play")&&!e.parent('div[class^="full-video"]').hasClass("completed-video")&&!e.hasClass("no-video")){var t;if($(".active-play").length&&($("#"+$(".active-play").attr("id")).get(0).contentWindow.postMessage("pause","*"),$(".active-play").removeClass("active-play")),e.parents(".frame-video").siblings(".related-video-list")&&e.parents(".frame-video").siblings(".related-video-list").fadeOut(),e.hasClass("oov-pause")&&$("#"+e.attr("id")).get(0).contentWindow.postMessage("play","*"),$(".active-play").parent('div[class^="frame-"]').hasClass("popout-video")&&!e.parent("div").hasClass("pr-only")&&$(".active-play").parent('div[class^="frame-"]').addClass("closed-popout").removeClass("full-video-small"),e.hasClass("temp-pause")||e.hasClass("oov-pause")&&"2"!==e.attr("data-plays"))$("#"+e.attr("id")).parents(".full-video").hasClass("completed-video")||$("#"+e.attr("id")).get(0).contentWindow.postMessage("play","*"),e.removeClass("temp-pause").addClass("active-play"),console.log("Switch 0");else{if($(".active-play").length&&(t=$(".active-play").attr("id")),e.parent(".frame-video").hasClass("pr-only")?(console.log("Switch 2"),$(".active-play").length&&$("#"+t).get(0).contentWindow.postMessage("pause","*")):$(".active-play").length&&!$(".temp-pause").length&&(console.log("Switch 3"),$(".lazy-play").fadeIn().parent().find("iframe").attr("src","")),$(".active-play").removeClass("active-play"),!e.hasClass("temp-pause")){var a=Math.floor(Date.now()/1e3);e.parent("div").find("iframe").attr("src",e.parent("div").find("iframe").attr("data-media-src")+"&reset="+a).addClass("active-play"),e.parent("div").find(".lazy-play").fadeOut()}e.addClass("active-play")}"1"==e.parent("div").find("iframe").attr("data-plays")&&e.parent("div").find("iframe").attr("data-plays","2"),e.parents(".full-video").find(".pr-only")&&e.parents(".full-video").find(".pr-only").removeClass("auto-play")}}function Ue(){delayForKetch?setTimeout(Ue,delayIframes):$(".lazy-frame").on("inview",(function(e,t){if(t){var a;(a=$(this)).addClass("was-inview"),console.log("TEST: "+a.attr("data-media-src")+t);var i="",o,n;if(o=0===a.attr("data-media-src").indexOf("/")?window.location+a.attr("data-media-src"):new URL(a.attr("data-media-src")),n=new URL(window.location),i=$(this).attr("data-third")?$(this).attr("data-third"):"false",ketchAdvertising&&ketchAnalytics)a.attr("src")||a.attr("src",a.attr("data-media-src"));else{if(o.host!==n.host&&"content.osgnetworks.tv"!==o.host&&"true"===i)return!1;a.attr("src")||a.attr("src",a.attr("data-media-src"))}console.log("pre-switch"),a.parent("div").hasClass("pr-only")&&!a.hasClass("active-play")?(console.log("switch 1"),$(".active-play").length&&$(".active-play").addClass("temp-pause"),He(a)):a.parent("div").hasClass("hero-video")&&a.parent("div").hasClass("auto-play")&&t&&!a.hasClass("active-play")&&!$(".active-play").length?(console.log("switch 2"),He(a)):a.parent("div").hasClass("auto-play")&&t&&!a.hasClass("active-play")&&(console.log("switch 3"),He(a)),a.parent().hasClass("auto-play")&&!a.hasClass("active-play")&&a.parent().hasClass("closed-popout")&&"1"==a.attr("data-plays")&&(console.log("trigger second play"),void 0!==gtag&>ag("event","video_player",{event_category:"second_ad_play",event_url:window.location.href}), 4a.attr("data-plays","2"))}else{var a;if((a=$(this)).parents(".frame-video").hasClass("closed-popout")||a.addClass("oov-pause"),a.removeClass("active-play"),$("#"+a.attr("id")).get(0).contentWindow.postMessage("pause","*"),$(".temp-pause").length){var s=$(".temp-pause").attr("id");He($("#"+s))}}})).on("load",(function(){console.log("Frame: load");
4var e=$(this).contents();$(e).on("click",(function(e){parent.closeModal(".full-video")}))}))}$(".lazy-frame, #akamai-media-player").length<2&&$(".lazy-frame:not(.youtube-embed):not(.no-video)")&&$(".lazy-frame").addClass("auto-play hero-video"),$(".lazy-frame").each((function(e,t){if(void 0===$(this).attr("id")&&$(this).attr("id","frame-container-"+e),$(this).parent().parent().hasClass("full-video")?$(this).parent().append(Ne):$(this).parent().parent().hasClass("full-audio")&&$(this).parent().append(qe),$(this).hasClass("youtube-embed")){var a=/(?:youtube(?:-nocookie)?\.com\/(?:[^\/\n\s]+\/\S+\/|(?:v|e(?:mbed)?)\/|\S*?[?&]v=)|youtu\.be\/)([a-zA-Z0-9_-]{11})/,i,o=$(this).attr("data-media-src").match(a)[1];$(this).attr("data-media-src","https://www.youtube.com/embed/"+o+"?feature=oembed&autoplay=1"),$(this).attr("data-src","https://img.youtube.com/vi/"+o+"/maxresdefault.jpg")}-1!=$(this).attr("data-media-src").indexOf("Video_iframe"+videoPlayerVersion)&&console.log("Akamai Player");var n="default";$(this).hasClass("has-playlist")?n="playlist":"inline-player"===$(this).parents(".full-video").attr("id")?n="inline-one":"inline-player2"===$(this).parents(".full-video").attr("id")?n="inline-two":window.location.href.indexOf("podcast")>-1?n="podcast":window.location.href.indexOf("editorial")>-1?n="editorial":window.location.href.indexOf("onlineexclusive")>-1?n="online-exclusive":window.location.href.indexOf("watchall")>-1?n="watchall":window.location.href.indexOf("show")>-1?n="show":window.location.href.indexOf("listing")>-1?n="listing":window.location.href.indexOf("videodetail")>-1?n="videodetail":window.location.href.indexOf("content")>-1?n="content-page":$(this).parents(".popout-video").length&&(n="popout");var s="default";if($(this).parents(".frame-video").hasClass("popout-video")?s="popout":$(this).hasClass("has-playlist")&&(s="playlist"),-1!=$(this).attr("data-media-src").toLowerCase().includes("video_iframe"+videoPlayerVersion)){var l=$(this).attr("data-media-src");$(this).attr("data-media-src",l+"&playerLocation="+n+"&playerType="+s+"&pageUrl="+encodeURIComponent(window.location.href))}})),setTimeout(Ue,delayIframes),$("body").on("click",".lazy-play",(function(e){e.preventDefault(),He($(this))}))}$("body").on("click",".popout-video .close",(function(e){e.preventDefault(),void 0!==gtag&>ag("event","video_player",{event_category:"close_modal",event_url:window.location.href,non_interaction:!1}),$(this).parent('div[class^="frame-"]').removeClass("full-video-small").addClass("closed-popout").find("iframe").attr("src","").removeClass("active-play"),"1"!=$(this).parent('div[class^="frame-"]').attr("data-plays")||$(this).parent('div[class^="frame-"]').hasClass("play-twice")||$(this).removeClass("auto-play"),$(this).parent('div[class^="frame-"]').find(".lazy-play").fadeIn(),$(this).parent('div[class^="frame-"]').find("iframe").attr("data-plays","1")})),$(".search-results").on("error","img",(function(){$(this).hide()}));var We=$(".footer-links > .row > div h2"),Je=$(".footer-links > .row > div:nth-of-type(2) h2"),Ge=0;if(null!==We&&(We.each((function(){$(this).height()>Ge&&(Ge=$(this).height())})),Je.height()<Ge&&Je.prepend("<br />")),$(".video-search-results-container").length){var Ke=new URLSearchParams(window.location.search),Qe=Ke.get("searchTerm"),Ye,Xe=1,Ze=$(".video-results-head"),et=18,tt;if(1!==Ke.get("page")&&(Xe=Ke.get("page")),null==Qe)return Ze.text("Please enter a search term."),$("#video-search-results").html("No results"),!1;$("#search-videos").val(Qe),console.log(Qe);var at={query:Qe,operator:"or",responseType:"JsonObject",perPage:et,postFilters:{ContentType:["Video"]},postFilterOperator:"or",enableFacetFiltering:!0,page:Xe};$.ajax({type:"POST",beforeSend:function(e){e.setRequestHeader("Authorization","SiteKey MTAwMDAzNjc6MTAwMDA1NDE6U2VhcmNoS2V5")},type:"post",dataType:"json",contentType:"application/json",url:"https://api-us1.cludo.com/api/v3/10000367/10000541/search",data:JSON.stringify(at),success:function(e){$totalResults=e.TotalDocument,tt=Math.ceil($totalResults/et),Ze.html('Your search for "<span class="highlight">'+Qe+'</span>" returned <span class="highlight">'+$totalResults+"</span> results"),$.each(e.TypedDocuments,(function(e,t){var a,i,o;
4try{a=t.Fields.Category.Value}catch(e){a="none"}try{i=t.Fields.CludoDesc.Value}catch(e){i="none"}try{o=t.Fields.Image.Value}catch(e){o="none"}if("none"!==a&&"none"!==i&&"none"!==o)var n='<div class="grid-item"><div class="content"><a href="'+t.Fields.Id.Value+'" class="article-link video"><img class="lazy feat-img-sm feat-img-sm" data-src="'+String(t.Fields.Image.Value)+'" alt="'+t.Fields.Title.Value+'" /></a><div class="article-content"><a href="#" class="tag btn">'+t.Fields.Category.Value+'</a><h3><a href="'+t.Fields.Id.Value+'" onclick="_gaq.push(["_trackEvent", "article-listing-click", "", this.href]);" title="">'+t.Fields.Title.Value+'</a></h3><p class="video-descrip">'+t.Fields.CludoDesc.Value+"</p></div></div></div>";else if("none"!==i&&"none"!==o&&"none"===a)var n='<div class="grid-item"><div class="content"><a href="'+t.Fields.Id.Value+'" class="article-link video"><img class="lazy feat-img-sm feat-img-sm" data-src="'+String(t.Fields.Image.Value)+'" alt="'+t.Fields.Title.Value+'" /></a><div class="article-content"><h3><a href="'+t.Fields.Id.Value+'" onclick="_gaq.push(["_trackEvent", "article-listing-click", "", this.href]);" title="">'+t.Fields.Title.Value+'</a></h3><p class="video-descrip">'+t.Fields.CludoDesc.Value+"</p></div></div></div>";else if("none"!==a&&"none"!==i&&"none"===o)var n='<div class="grid-item"><div class="content"><a href="'+t.Fields.Id.Value+'" class="article-link video"><img class="lazy feat-img-sm feat-img-sm" alt="'+t.Fields.Title.Value+'" /></a><div class="article-content"><a href="#" class="tag btn">'+t.Fields.Category.Value+'</a><h3><a href="'+t.Fields.Id.Value+'" onclick="_gaq.push(["_trackEvent", "article-listing-click", "", this.href]);" title="">'+t.Fields.Title.Value+'</a></h3><p class="video-descrip">'+t.Fields.CludoDesc.Value+"</p></div></div></div>";else if("none"!==o&&"none"!==a&&"none"===i)var n='<div class="grid-item"><div class="content"><a href="'+t.Fields.Id.Value+'" class="article-link video"><img class="lazy feat-img-sm feat-img-sm" data-src="'+String(t.Fields.Image.Value)+'" alt="'+t.Fields.Title.Value+'" /></a><div class="article-content"><a href="#" class="tag btn">'+t.Fields.Category.Value+'</a><h3><a href="'+t.Fields.Id.Value+'" onclick="_gaq.push(["_trackEvent", "article-listing-click", "", this.href]);" title="">'+t.Fields.Title.Value+"</a></h3></div></div></div>";else var n="";$(n).insertBefore("#video-search-pagination"),$("#video-search-results .grid-item:not(.feature-grid-item) .video-descrip").each((function(e,t){$clamp(t,{clamp:2,useNativeClamp:!0})})),$(".lazy").Lazy()}));var t=$("#video-search-pagination ul li:last-of-type");if(tt>5&&Xe<4)for(console.log("test 1"),i=1;i<6;i++){var a="";parseInt(Xe)===i&&(a="active"),$('<li class="'+a+'"><a href="#" data-video-page="'+i+'">'+i+"</a></li>").insertBefore(t)}else if(tt>5&&parseInt(Xe)+2>tt)for(console.log("test 2"),i=parseInt(Xe)-2;i<tt+1;i++){var a="";parseInt(Xe)===i&&(a="active"),$('<li class="'+a+'"><a href="#" data-video-page="'+i+'">'+i+"</a></li>").insertBefore(t)}else if(tt<=5&&Xe<4)for(console.log("test 3"),i=1;i<tt+1;i++){var a="";parseInt(Xe)===i&&(a="active"),$('<li class="'+a+'"><a href="#" data-video-page="'+i+'">'+i+"</a></li>").insertBefore(t)}else for(console.log("test 4"),i=parseInt(Xe)-2;i<parseInt(Xe)+3;i++){var a="";parseInt(Xe)===i&&(a="active"),$('<li class="'+a+'"><a href="#" data-video-page="'+i+'">'+i+"</a></li>").insertBefore(t)}1===parseInt(Xe)&&$("#video-search-prev").addClass("disabled"),parseInt(Xe)===parseInt(tt)&&$("#video-search-next").addClass("disabled"),0===$totalResults&&$("#video-search-pagination").hide()}})}var it="/Video/Search-Results/363306";if($("#search-videos").keypress((function(e){13==e.which&&(e.preventDefault(),window.location.href=it+"?searchTerm="+$("#search-videos").val()+"&page=1")})),$(".search-videos").on("click",(function(e){e.preventDefault(),window.location.href=it+"?searchTerm="+$("#search-videos").val()+"&page=1"})),$("#video-search-pagination").on("click","li a",(function(e){if(e.preventDefault(),$(this).hasClass("disabled"))return!1;"next"===$(this).attr("data-video-page")?window.location.href=it+"?searchTerm="+Qe+"&page="+(parseInt(Xe)+1):"prev"===$(this).attr("data-video-page")?window.location.href=it+"?searchTerm="+Qe+"&page="+(parseInt(Xe)-1):window.location.href=it+"?searchTerm="+Qe+"&page="+$(this).attr("data-video-page")})),$("body").on("click",".close-fixed-ad",(function(e){return e.preventDefault(),$(".fixed-ad").fadeOut("slow",(function(){$(this).remove()})),!1})),setTimeout((function(){$(".full-video .close").length&&$(".close").addClass("show-timer")}),popOutCloseDelay),!$("article .caro").length&&!$(".paginated-article").length&&$("#article01").length&&$("article figure img:not(.no-gallery)").length>1){var ot=$('<div id="editorial-gallery" class="lity-hide" style="width:100%;overflow:visible;"><div class="row" style="max-width: 1400px; box-sizing:border-box; padding: 20px 5vw; margin: 0 auto;"><div class="col-sm-4 last-sm has-ad"><span class="label">Advertisement</span><div id="adpos_galleryA" ><script type="text/javascript">googletag.cmd.push(function() { googletag.display("adpos_galleryA"); });<\/script></div></div><div class="col-xs-12 col-sm-8"><div class="custom_paging"></div><div class="gallery-caro"></div></div></div></div>'),nt=0,st=0,lt=!1,rt=$('<div id="editorial-gallery-promo" class="row"><div class="col-xs-6" style="padding-bottom: 10px;"><h4>Photo Gallery</h4></div><div class="col-xs-6 right gallery-promo-link" style="padding-bottom: 10px;">
4<a href="#editorial-gallery" class="gallery-link" data-slide="0"><span class="icon-arrow-right"></span> See all Photos</a></div></div>');$("#article01 #dynamic_gallery").length?rt.appendTo("#article01 #dynamic_gallery"):rt.insertAfter("article p:nth-of-type(7)"),$("#article01 figure img:not(.no-gallery), #article01 img.size-full:not(.no-gallery), #article01 img.size-medium:not(.no-gallery)").each((function(){var e=$(this),t;e.parents("figure").find("figcaption").length&&(t=e.parents("figure").find("figcaption").text()),e.hasClass("lazy")?(nt<2&&($('<div id="promo-gallery-item-'+nt+'" class="col-xs-6 promo-gallery-item"></div>').appendTo("#editorial-gallery-promo"),e.clone().attr("src",$(this).data("src")).appendTo("#promo-gallery-item-"+nt).wrap('<a href="#editorial-gallery" class="gallery-link" data-slide="'+nt+'"></a>')),e.clone().attr("src",$(this).data("src")).appendTo(ot.find(".gallery-caro"))):(nt<2&&($('<div id="promo-gallery-item-'+nt+'" class="col-xs-6 promo-gallery-item"></div>').appendTo("#editorial-gallery-promo"),e.clone().appendTo("#promo-gallery-item-"+nt).wrap('<a href="#editorial-gallery" class="gallery-link" data-slide="'+nt+'"></a>')),e.clone().appendTo(ot.find(".gallery-caro"))),$(this).parent().is("a")&&$(this).parent().attr("href").indexOf(".jpg")>0?($(this).unwrap(),$(this).wrap('<a href="#editorial-gallery" class="gallery-link" data-slide="'+nt+'"></a>'),$(this).parent("a").append('<div class="photo-gallery-hover hidden-sm"><span class="icon-arrow-right"></span> See Photo Gallery</div>'),$(this).parent("a").append('<div class="photo-gallery-mobile hidden-lg"><span class="icon-photo"></span></div>')):$(this).parent().is("a")||($(this).wrap('<a href="#editorial-gallery" class="gallery-link" data-slide="'+nt+'"></a>'),$(this).parent("a").append('<div class="photo-gallery-hover hidden-sm"><span class="icon-arrow-right"></span> See Photo Gallery</div>'),$(this).parent("a").append('<div class="photo-gallery-mobile hidden-lg"><span class="icon-photo"></span></div>')),ot.find(".gallery-caro > img").wrap('<div class="gallery-item"></div>'),ot.find(".gallery-caro > div:last-of-type").append("<br />").append(t),nt++})),galleryModal&&ot.appendTo($("body"));var dt=0;$("article").on("click",".gallery-link",(function(e){e.preventDefault(),galleryModal||ot.appendTo($("body")),void 0!==gtag&>ag("event","gallery",{event_category:"open",event_label:window.location.href,non_interaction:!0}),void 0!==gtag&>ag("event","page_view",{page_title:"Gallery",page_location:window.location.pathname+"/gallery",page_title:"Gallery of "+document.title}),$(this).parents("#editorial-gallery-promo").length?void 0!==gtag&>ag("event","gallery",{event_category:"gallery_promo",event_label:window.location.href,non_interaction:!0}):void 0!==gtag&>ag("event","gallery",{event_category:"photo",event_label:window.location.href,non_interaction:!0});var t=$(this).attr("data-slide"),a=$("#editorial-gallery").find(".gallery-caro");null!==t&&(st=t),lity("#editorial-gallery"),lt?a.slick("slickGoTo",parseInt(st)):(a.slick({infinite:!0,slidesToShow:1,initialSlide:parseInt(st),slidesToScroll:1,dots:!0,dotsClass:"custom_paging",customPaging:function(e,t){return t+1+"/"+e.slideCount}}),a.on("beforeChange",(function(e,t,a,i){dt>=0&&$("#adpos_galleryA").hasClass("has-viewed")?(googletag.pubads().refresh([gptAdSlots[25]]),void 0!==gtag&>ag("event","gallery",{event_category:"gallery_ads",event_label:"ad_refresh",non_interaction:!0}),$("#adpos_galleryA").removeClass("has-viewed"),dt=0):dt++}
4)),lt=!0),googletag.pubads().refresh([gptAdSlots[25]]),void 0!==gtag&>ag("event","gallery",{event_category:"gallery_ads",event_label:"ad_render",non_interaction:!0})}))}if($(".product-promo").length&&($(".product-promo").find("div:first-of-type").attr("data-src",$('meta[property="og:image"]').attr("content")),console.log("has promo")),$(".watch-now-cta").length){const bt='<div id="videoBoxTemp" class="lity-hide"></div>';$("body > form").append(bt),$("body").on("click",".watch-now-cta",(function(e){e.preventDefault();const t=$("#videoBoxTemp").load($(this).attr("href")+" #videoContainer");return lity("#videoBoxTemp"),!1})),$(document).on("lity:close",(function(e,t){$("#videoBoxTemp").html("")}))}if($("#cludo-search-results").length)var ct=setInterval((function(){if(!$("#cludo-load-more").hasClass("cludo-hidden")){if($("#sub-sponsored-banner").length){var e=$("#sub-sponsored-banner"),t=$('meta[property="cludo:site"]').attr("content"),a=$(".masthead .logo img").attr("src"),i=$('.has-site-nav .navigation li a:contains("Current Issue")').attr("href");null!=i?(e.find(".search-result-title a").prepend(t),e.find(".search-details .primary").append(t),e.find(".search-result-featured img").attr("src",a),e.find("a").attr("href",i+"?utm_source=subscribe&utm_medium=in-page-banner&utm_campaign=subscribe-cludo&utm_content=cludo-search"),clearTimeout(ct)):$("#sub-sponsored-banner").fadeOut()}clearTimeout(ct)}}),10);!0===endlessScroll&&$(".scrollable").on("mousewheel DOMMouseScroll",(function(e){var t=e.originalEvent,a=t.wheelDelta||-t.detail;this.scrollTop+=30*(a<0?1:-1),e.preventDefault()}));var ht=function(e,t,a){var i=document.createElement("canvas");i.width=e.videoWidth*t,i.height=e.videoHeight*t,i.getContext("2d").drawImage(e,0,0,i.width,i.height);var o=document.createElement("img");o.src=i.toDataURL(),a.prepend('<div class="thumb-gen"></div>'),a.find("div:first-of-type").prepend(o)};$("#capture-button").on("click",(function(e){var t,a;e.preventDefault();var i=.5;return a=$("#thumbnail-preview"),t=$("#thumbnail-capture video").get(0),ht(t,i,a),!1})),$("body").on("click",".thumb-gen",(function(e){var t="/video-thumbnail.html",a=$(this).find("img").attr("src");$(".thumb-gen").removeClass("active"),$(this).addClass("active"),$("#videoThumbnail").val(a)})),"undefined"!=typeof byh&&byh.events.subscribe((function(e){e.type===byh.events.types.navigateToUrl?(console.log("User navigated to BookYourHunt: "+e.data.url),void 0!==gtag&>ag("event","book_your_hunt",{event_category:"click",event_label:e.data.url,non_interaction:!1})):e.type===byh.events.types.listHunts?void 0!==gtag&>ag("event","book_your_hunt",{event_category:"caro_scroll",event_label:"arrow_click",non_interaction:!1}):"initialized"===e.type?(console.log("Initialzed BYH"),void 0!==gtag&>ag("event","book_your_hunt",{event_category:"loaded_embed",event_label:$(this).attr("href"),non_interaction:!0})):console.log(e.type)}));var pt=$("#dynamic_table"),gt,vt;if(pt.length&&void 0!==pt.attr("data-type")){if("top-listing"===pt.attr("data-type")){var ft=pt.attr("data-prod-src");pt.empty(),$.getJSON(ft,(function(e){var t=e,a={},i=[],o=[];pt.append($("<select class='dynamic_table_select not-styled'><option value='whitetail-list'>Overall Rankings</option><option value='whitetail-list-tp'>Trophy Potential</option><option value='whitetail-list-pa'>Public Accessibility</option><option value='whitetail-list-sl'>Season Length</option><option value='whitetail-list-ht'>Harvest Totals</option></select>")),pt.append($("<div id='whitetail-list' class='whitetail-container'><table id='sortable-table-1' class='sortable'><tr><th class='sorttable_sorted'>Overall Rank</th><th>State</th><th>Trophy Potential (B&C entries from the past 10 years)</th><th>Public Accessibility (total public land acreage)</th><th>Season Length (number of days)</th><th>Harvest Total <br />(5-year average)</th></tr></table></div>")),pt.append($("<div id='whitetail-list-tp' class='whitetail-container' style='display:none;'><table id='sortable-table-2' class='sortable'><tr><th>Trophy Potential Rank</th><th>State</th><th>Trophy Potential (B&C entries from the past 10 years)</th></tr></table></div>")),pt.append($("<div id='whitetail-list-pa' class='whitetail-container' style='display:none;'><table id='sortable-table-3' class='sortable'><tr><th>Public Accessibility Rank</th><th>State</th><th>Public Accessibility (total public land acreage)</th></tr></table></div>")),pt.append($("<div id='whitetail-list-sl' class='whitetail-container' style='display:none;'>
4<table id='sortable-table-4' class='sortable'><tr><th>Season Length Rank </th><th>State</th><th>Season Length (Number of Days)</th></tr></table></div>")),pt.append($("<div id='whitetail-list-ht' class='whitetail-container' style='display:none;'><table id='sortable-table-5' class='sortable'><tr><th>Harvest Totals Rank</th><th>State</th><th>Harvest Totals (5-year average)</th></tr></table></div>")),$.each(t,(function(){void 0===a[this.State]&&(a[this.State]=[]),a[this.State].push(this),-1==i.indexOf(this.State)&&(i.push(this.State),o.push(this[1])),$("#whitetail-list table").append($("<tr>").attr("class","listing-row").html("<td>"+this.final_rank+"</td><td>"+this.State+"</td><td sorttable_customkey="+this.tp_rank+">"+this.trophy_potential+"</td><td sorttable_customkey="+this.pa_rank+">"+this.public_access+"</td><td sorttable_customkey="+this.sl_rank+">"+this.season_length+"</td><td sorttable_customkey="+this.ht_rank+">"+this.harvest_total+"</td>").append("</tr>")),$("#whitetail-list-tp table").append($("<tr>").attr("class","listing-row").html("<td>"+this.tp_rank+"</td><td>"+this.State+"</td><td sorttable_customkey="+this.tp_rank+">"+this.trophy_potential+"</td>").append("</tr>")),$("#whitetail-list-pa table").append($("<tr>").attr("class","listing-row").html("<td>"+this.pa_rank+"</td><td>"+this.State+"</td><td sorttable_customkey="+this.pa_rank+">"+this.public_access+"</td>").append("</tr>")),$("#whitetail-list-sl table").append($("<tr>").attr("class","listing-row").html("<td>"+this.sl_rank+"</td><td>"+this.State+"</td><td sorttable_customkey="+this.sl_rank+">"+this.season_length+"</td>").append("</tr>")),$("#whitetail-list-ht table").append($("<tr>").attr("class","listing-row").html("<td>"+this.ht_rank+"</td><td>"+this.State+"</td><td sorttable_customkey="+this.ht_rank+">
4"+this.harvest_total+"</td>").append("</tr>"))})),i=i.sort(),newTableObject1=document.getElementById("sortable-table-1"),sorttable.makeSortable(newTableObject1),newTableObject2=document.getElementById("sortable-table-2"),sorttable.makeSortable(newTableObject2),$("#sortable-table-2 tr:first-of-type th:first-of-type").trigger("click"),newTableObject3=document.getElementById("sortable-table-3"),sorttable.makeSortable(newTableObject3),$("#sortable-table-3 tr:first-of-type th:first-of-type").trigger("click"),newTableObject4=document.getElementById("sortable-table-4"),sorttable.makeSortable(newTableObject4),$("#sortable-table-4 tr:first-of-type th:first-of-type").trigger("click"),newTableObject5=document.getElementById("sortable-table-5"),sorttable.makeSortable(newTableObject5),$("#sortable-table-5 tr:first-of-type th:first-of-type").trigger("click")})),$("body").on("change","select.dynamic_table_select",(function(e){var t=$(this).val();$(".whitetail-container").hide(),$("#"+t).show()}))}}else if(pt.length){var ft=pt.attr("data-prod-src");pt.empty(),$.getJSON(ft,(function(e){var t=e,a={},i=[];$.each(t,(function(){void 0===a[this.CategorySorted+" ("+this.Condition+")"]&&(a[this.CategorySorted+" ("+this.Condition+")"]=[]),a[this.CategorySorted+" ("+this.Condition+")"].push(this),-1==i.indexOf(this.CategorySorted+" ("+this.Condition+")")&&i.push(this.CategorySorted+" ("+this.Condition+")")})),i=i.sort(),$.each(i,(function(){pt.append($("<div class='row has-article-list'>").append($("<div>").attr("class","col-xs-12").html("<h2 style='border-bottom: none;'>"+this+"</h2>").append("</div></div>"))),$.each(a[this],(function(){var e="#2c2e32";this.CurrentRank<this.PreviousRank?e="green":this.CurrentRank>this.PreviousRank&&(e="red"),pt.append($("<div class='row border-bottom margin-bottom padding-top'>").append($("<div class='col-xs-6 col-md-4' style='position:relative;'>").html('<span style="position:absolute;top:0px;left:0px;z-index:10;font-weight:bold;font-size:1.25rem;display:inline-block;padding:3px;line-height:20px;border:2px solid '+e+";border-radius:20px;height:20px;width:20px;text-align:center;background-color:#fff;color: "+e+'">'+this.CurrentRank+'</span><img src="'+this.Image+'" alt="'+this.Title+'" /></div>')).append($("<div class='col-xs-6 col-md-8'>").html('<h4><a href="'+this.Shop+"&utm_medium=web&utm_source="+window.location.hostname+'&utm_c
4ontent=toplisting" class="track" target="_blank" style="line-height:1.2em;">'+this.Title+'</a></h4>\x3c!--<span class="disclaimer">('+this.ParentGSIN+')</span><p><a href="'+this.Shop+"&utm_medium=web&utm_source="+window.location.hostname+'&utm_content=toplisting" class="btn track" target="_blank" style="line-height:1.2em;">Shop</a> <a href="'+this.View+"?utm_medium=web&utm_source="+window.location.hostname+'&utm_content=toplisting" class="btn secondary track" target="_blank" style="line-height:1.2em;">Specs</a></p>--\x3e<p class="disclaimer">Previous Rank: '+this.PreviousRank+"</p>")).append("</div></div>"))}))}))}))}$(".video-desc").length&&setTimeout((function(){($(".video-desc").prop("scrollHeight")>$(".video-desc").prop("clientHeight")||$(".video-desc p").height()>$(".video-desc").height())&&($(".video-desc").after('<a href="#more" class="more-desc" data-target="video-desc">Show More</a>'),console.log("Add More Button"))}),500),$("body").on("click",".more-desc",(function(e){e.preventDefault(),$(this).hasClass("has-closed")?($(this).text("Show More"),l(".video-desc",3,!0),$(this).removeClass("has-closed")):($(this).text("Show Less"),$(this).siblings(".video-desc").addClass("show-all").removeAttr("style"),$(this).addClass("has-closed"))}));var ut="muted";if($(".popout-video").length&&$(".full-video-small").length){var mt='<div class="player-controls"><div class="ic-timer"> </div><div class="ic-header"></div><div class="ic-playercontrols row" style="display: none;"><div class="col-xs"><a href="#" class="play-pause"><span class="icon-play"></span></a></div><div class="col-xs"><a href="#" class="mute-unmute"><span class="icon-unmute"></span><span class="sr-only">Mute/Unmute</span></a></div><div class="col-xs"><a href="#" class="full-screen"><span class="icon-fullscreen"></span><span class="sr-only">Fullscreen</span></a></div></div></div>';$("header .toggle-menu").is(":visible")&&!$(".player-controls").length&&$(".full-video-small.popout-video").append(mt)}window.addEventListener?window.addEventListener("message",z,!1):window.attachEvent&&window.attachEvent("onmessage",z),$("body").on("click",".player-controls a.play-pause",(function(e){e.preventDefault(),"paused"===vt?$("#"+$(".full-video-small iframe").attr("id")).get(0).contentWindow.postMessage("play","*"):$("#"+$(".full-video-small iframe").attr("id")).get(0).contentWindow.postMessage("pause","*")})),$("body").on("click",".player-controls a.mute-unmute",(function(e){e.preventDefault(),"muted"===ut?$("#"+$(".full-video-small iframe").attr("id")).get(0).contentWindow.postMessage("unmute","*"):$("#"+$(".full-video-small iframe").attr("id")).get(0).contentWindow.postMessage("mute","*")})),$("body").on("click",".player-controls a.full-screen",(function(e){e.preventDefault(),$("#"+$(".full-video-small iframe").attr("id")).get(0).contentWindow.postMessage("enterFullScreen","*")}))}));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.