function sendPageView(){var n=$(document).find(".free-content").length>0?!0:!1;n&&window.hidive.analytics.trigger("addPromo",promoData("Free Episode Impression","free_episode","page",window.location.pathname))}function sendInternalFreePromoGAEvent(n){window.hidive.analytics.trigger("internalFreePromo",promoData(n.id,n.name,n.creative,n.position))}function promoData(n,t,i,r,u){return{id:n,name:t,creative:i,position:r,index:u}}function getParameter(n,t){t||(t=window.location.href);n=n.replace(/[\[\]]/g,"\\$&");var r=new RegExp("[?&]"+n+"(=([^&#]*)|&|#|$)","i"),i=r.exec(t);return i?i[2]?decodeURIComponent(i[2].replace(/\+/g," ")):"":null}(function(n){function t(n,t,i){window.hidive.tron({gaecom:{event:n,message:t,data:i}})}console.debug("Initializing gaecom"),function(n,t,i,r,u,f,e){n.GoogleAnalyticsObject=u;n[u]=n[u]||function(){(n[u].q=n[u].q||[]).push(arguments)};n[u].l=1*new Date;f=t.createElement(i);e=t.getElementsByTagName(i)[0];f.async=1;f.src=r;e.parentNode.insertBefore(f,e)}(window,document,"script","https://www.google-analytics.com/analytics.js","ga");ga("create","UA-90552076-1","auto");ga("require","ec");ga("send","pageview");n.gaecom=n.gaecom||{initiateCheckout:function({plans:n,revenue:i}){n.forEach(n=>{ga("ec:addImpression",n)});ga("ec:setAction","checkout",{step:1,revenue:i});ga("send",{hitType:"event",eventCategory:"Sign Up",eventAction:"Initiate Checkout",hitCallback:function(){t("initiateCheckout","success",{plans:n,revenue:i})}})},addToCart:function({id:n,name:i,position:u,option:r,revenue:f}){ga("ec:addProduct",{id:n,name:i,position:u});ga("ec:setAction","checkout",{step:2,option:r,revenue:f});ga("send",{hitType:"event",eventCategory:"Sign Up",eventAction:"Add To Cart",hitCallback:function(){t("addToCart","success",{id:n,name:i,position:u,option:r,revenue:f})}})},completeRegistration:function({id:n,name:i,position:u,option:r,revenue:f}){ga("ec:addProduct",{id:n,name:i,position:u});ga("ec:setAction","checkout",{step:3,option:r,revenue:f});ga("send",{hitType:"event",eventCategory:"Sign Up",eventAction:"Complete Registration",hitCallback:function(){t("completeRegistration","success",{id:n,name:i,position:u,option:r,revenue:f})}})},addPromoCode:function({id:n,name:i,position:u,option:r,revenue:f}){ga("ec:addProduct",{id:n,name:i,position:u});ga("ec:setAction","checkout",{step:4,option:r,revenue:f});ga("send",{hitType:"event",eventCategory:"Sign Up",eventAction:"Promo Code",hitCallback:function(){t("addPromoCode","success",{id:n,name:i,position:u,option:r,revenue:f})}})},addPaymentInfo:function({id:n,name:i,position:u,option:r,revenue:f}){ga("ec:addProduct",{id:n,name:i,position:u});ga("ec:setAction","checkout",{step:5,option:r,revenue:f});ga("send",{hitType:"event",eventCategory:"Sign Up",eventAction:"Add Payment Info",hitCallback:function(){t("addPaymentInfo","success",{id:n,name:i,position:u,option:r,revenue:f})}})},completePurchase:function({transactionId:e,id:n,name:i,position:u,option:r,revenue:f}){ga("ec:addProduct",{id:n,name:i,position:u});ga("ec:setAction","checkout",{step:6,option:r,revenue:f});ga("send",{hitType:"event",eventCategory:"Sign Up",eventAction:"Checkout Complete",hitCallback:function(){t("completeCheckout","success",{transactionId:e,id:n,name:i,position:u,option:r,revenue:f});ga("ec:addProduct",{id:n,name:i,position:u});ga("ec:setAction","purchase",{id:e,revenue:f});ga("send",{hitType:"event",eventCategory:"Sign Up",eventAction:"Purchase Complete",hitCallback:function(){t("completePurchase","success",{transactionId:e,id:n,name:i,position:u,option:r,revenue:f})}})}})},addPromo:function({id:i,name:u,creative:n,position:f,index:r}){ga("ec:addPromo",{id:i,name:u,creative:n,position:f,index:r});t("addPromo",null,{id:i,name:u,creative:n,position:f,index:r})},internalFreePromo:function({id:i,name:r,creative:n,position:u}){ga("ec:addPromo",{id:i,name:r,creative:n,position:u});ga("ec:setAction","promo_click");ga("send","event","Internal Promotion","click",r);t("internalFreePromo",null,{id:i,name:r,creative:n,position:u})}}})(window.hidive=window.hidive||{},jQuery);$(document).ready(function(){sendPageView();$(this).on("click",".free-title-slider",function(){sendInternalFreePromoGAEvent(promoData($(this).data("title"),$(this).data("promo"),$(this).data("creative"),$(this).parents(".cell").data("section")+"-title-slider-"+$(this).parents(".cell").data("slick-index"),$(this).parents(".cell").attr("tabindex")))});$(this).on("click",".free-episode-slider",function(){sendInternalFreePromoGAEvent(promoData($(this).data("title"),$(this).data("promo"),$(this).data("creative"),$(this).parents(".cell").data("section")+"-episode-slider-"+$(this).parents(".cell").data("slick-index"),$(this).parents(".cell").attr("tabindex")))});$(this).on("click",".free-title-window",function(n){n.stopPropagation();sendInternalFreePromoGAEvent(promoData($(this).data("title"),$(this).data("promo"),$(this).data("creative"),$(this).parents(".section").attr("id")+"-window"))});$(this).on("click","#free-complete-signup",function(){sendInternalFreePromoGAEvent(promoData($(this).data("title"),$(this).data("promo"),$(this).data("creative"),"video_player_web",$(this).parents(".cell").attr("tabindex")))})}),function(n,t,i,r,u){n[r]=n[r]||[];n[r].push({"gtm.start":(new Date).getTime(),event:"gtm.js"});var e=t.getElementsByTagName(i)[0],f=t.createElement(i),o=r!="dataLayer"?"&l="+r:"";f.async=!0;f.src="//www.googletagmanager.com/gtm.js?id="+u+o;e.parentNode.insertBefore(f,e)}(window,document,"script","dataLayer","GTM-K99CSQZ"),function(n){function t(n,t,i){window.hidive.tron({gtm:{event:n,message:t,data:i}})}console.debug("Initializing gtm");window.dataLayer=window.dataLayer||[];n.gtm=n.gtm||{viewContent:function(){window.dataLayer.push({event:"viewContent"});t("viewContent",null,null)},initiateCheckout:function(){window.dataLayer.push({event:"initiateCheckout"});t("initiateCheckout",null,null)},addToCart:function(){window.dataLayer.push({event:"addToCart"});t("addToCart",null,null)},completeRegistration:function(){window.dataLayer.push({event:"completeRegistration"});t("completeRegistration",null,null)},addPaymentInfo:function(){window.dataLayer.push({event:"addPaymentInfo"});t("addPaymentInfo",null,null)},completePurchase:function(){window.dataLayer.push({event:"completePurchase"});t("completePurchase",null,null)},startTrial:function(){window.dataLayer.push({event:"startTrial"});t("startTrial",null,null)},subscribe:function(){window.dataLayer.push({event:"subscribe"});t("subscribe",null,null)},search:function(){window.dataLayer.push({event:"search"});t("search",null,null)},addPromoCode:function(){window.dataLayer.push({event:"addPromoCode"});t("addPromoCode",null,null)},addPromo:function(){window.dataLayer.push({event:"addPromo"});t("addPromo",null,null)},internalFreePromo:function(){window.dataLayer.push({event:"internalFreePromo"});t("internalFreePromo",null,null)}}}(window.hidive=window.hidive||{},jQuery),function(n){function t(n,t,i){fbq(n,t,i);window.hidive.tron({fbpx:{type:n,event:t,data:i}})}console.debug("Initializing fbpx");!function(n,t,i,r,u,f,e){n.fbq||(u=n.fbq=function(){u.callMethod?u.callMethod.apply(u,arguments):u.queue.push(arguments)},n._fbq||(n._fbq=u),u.push=u,u.loaded=!0,u.version="2.0",u.queue=[],f=t.createElement(i),f.async=!0,f.src=r,e=t.getElementsByTagName(i)[0],e.parentNode.insertBefore(f,e))}(window,document,"script","//connect.facebook.net/en_US/fbevents.js");fbq("init","1860223714239703");fbq("track","PageView");n.fbpx=n.fbpx||{viewContent:function({content_category:n,content_name:i}){t("track","ViewContent",{content_category:n,content_name:i})},initiateCheckout:function({content_category:n,contents:i,num_items:r}){t("track","InitiateCheckout",{content_category:n,contents:i,num_items:r})},addToCart:function({content_name:n,content_type:i,contents:r,currency:u,value:f}){t("track","AddToCart",{content_name:n,content_type:i,contents:r,currency:u,value:f})},completeRegistration:function({content_name:n,currency:i,status:r,value:u}){t("track","CompleteRegistration",{content_name:n,currency:i,status:r,value:u})},addPaymentInfo:function({content_category:n,contents:i,currency:r,value:u}){t("track","AddPaymentInfo",{content_category:n,contents:i,currency:r,value:u})},completePurchase:function({content_name:n,content_type:i,contents:r,currency:u,num_items:f,value:e}){t("track","Purchase",{content_name:n,content_type:i,contents:r,currency:u,num_items:f,value:e})},startTrial:function({currency:n,predicted_ltv:i,value:r}){t("track","StartTrial",{currency:n,predicted_ltv:i,value:r})},subscribe:function({currency:n,predicted_ltv:i,value:r}){t("track","Subscribe",{currency:n,predicted_ltv:i,value:r})},search:function({content_category:n,contents:i,search_string:r}){t("track","Search",{content_category:n,contents:i,search_string:r})}}}(window.hidive=window.hidive||{},jQuery),function(n){function t(n,t){ttq.track(n,t);window.hidive.tron({ttpx:{event:n,data:t}})}console.debug("Initializing ttpx");!function(n,t,i){var r,u;for(n.TiktokAnalyticsObject=i,r=n[i]=n[i]||[],r.methods=["page","track","identify","instances","debug","on","off","once","ready","alias","group","enableCookie","disableCookie"],r.setAndDefer=function(n,t){n[t]=function(){n.push([t].concat(Array.prototype.slice.call(arguments,0)))}},u=0;u<r.methods.length;u++)r.setAndDefer(r,r.methods[u]);r.instance=function(n){for(var i=r._i[n]||[],t=0;t<r.methods.length;t++)r.setAndDefer(i,r.methods[t]);return i};r.load=function(n,t){var e="https://analytics.tiktok.com/i18n/pixel/events.js",u,f;r._i=r._i||{};r._i[n]=[];r._i[n]._u=e;r._t=r._t||{};r._t[n]=+new Date;r._o=r._o||{};r._o[n]=t||{};u=document.createElement("script");u.type="text/javascript";u.async=!0;u.src=e+"?sdkid="+n+"&lib="+i;f=document.getElementsByTagName("script")[0];f.parentNode.insertBefore(u,f)};r.load("C4TOI5H6H18A0MH1PQ9G");r.page()}(window,document,"ttq");n.ttpx=n.ttpx||{viewContent:function({content_name:i,content_category:n}){t("ViewContent",{content_name:i,content_category:n})},initiateCheckout:function({content_name:i,content_category:n,contents:u,content_type:r}){t("InitiateCheckout",{content_name:i,content_category:n,contents:u,content_type:r})},addToCart:function({content_name:i,content_category:n,contents:u,content_type:r,currency:f,value:s,quantity:o,price:e}){t("AddToCart",{content_name:i,content_category:n,contents:u,content_type:r,currency:f,value:s,quantity:o,price:e})},completeRegistration:function({content_name:i,content_category:n,contents:u,content_type:r,currency:f,value:s,quantity:o,price:e}){t("CompleteRegistration",{content_name:i,content_category:n,contents:u,content_type:r,currency:f,value:s,quantity:o,price:e})},addPaymentInfo:function({content_name:i,content_category:n,contents:u,content_type:r,currency:f,value:s,quantity:o,price:e}){t("AddPaymentInfo",{content_name:i,content_category:n,contents:u,content_type:r,currency:f,value:s,quantity:o,price:e})},completePurchase:function({content_name:i,content_category:n,contents:u,content_type:r,currency:f,value:s,quantity:o,price:e}){t("CompletePayment",{content_name:i,content_category:n,contents:u,content_type:r,currency:f,value:s,quantity:o,price:e})},subscribe:function({content_name:i,content_category:n,contents:u,content_type:r,currency:f,value:s,quantity:o,price:e}){t("Subscribe",{content_name:i,content_category:n,contents:u,content_type:r,currency:f,value:s,quantity:o,price:e})},search:function({content_name:i,content_category:n,contents:r,query:u}){t("Search",{content_name:i,content_category:n,contents:r,query:u})}}}(window.hidive=window.hidive||{},jQuery),function(n){function i(n){window.hidive.tron({adr:n})}console.debug("Initializing adr");const t="HCIBQAPNKJGKLPKP7DKLCM";(function(){const n=function(){if(document.readyState&&!/loaded|complete/.test(document.readyState)){setTimeout(n,10);return}if(!window.__adroll_loaded){__adroll_loaded=!0;setTimeout(n,50);return}var t=document.createElement("script"),i="https:"==document.location.protocol?"https://s.adroll.com":"http://a.adroll.com";t.setAttribute("async","true");t.type="text/javascript";t.src=i+"/j/roundtrip.js";((document.getElementsByTagName("head")||[null])[0]||document.getElementsByTagName("script")[0].parentNode).appendChild(t)};window.addEventListener?window.addEventListener("load",n,!1):window.attachEvent("onload",n)})();n.adroll=n.adroll||{completePurchase:function(n){__adroll.record_user({adroll_segments:t});i(n)}}}(window.hidive=window.hidive||{},jQuery),function(n){function t(n,t){twq("track",n,t);window.hidive.tron({twpx:{event:n,data:t}})}console.debug("Initializing twpx");!function(n,t,i,r,u,f){n.twq||(r=n.twq=function(){r.exe?r.exe.apply(r,arguments):r.queue.push(arguments)},r.version="1.1",r.queue=[],u=t.createElement(i),u.async=!0,u.src="//static.ads-twitter.com/uwt.js",f=t.getElementsByTagName(i)[0],f.parentNode.insertBefore(u,f))}(window,document,"script");twq("init","nykrj");twq("track","PageView");n.twpx=n.twpx||{viewContent:function({content_name:i,content_category:n}){t("ViewContent",{content_name:i,content_category:n})},initiateCheckout:function({content_name:i,content_category:n,contents:u,content_type:r}){t("InitiateCheckout",{content_name:i,content_category:n,contents:u,content_type:r})},addToCart:function({content_name:i,content_category:n,contents:u,content_type:r,currency:f,value:s,quantity:o,price:e}){t("AddToCart",{content_name:i,content_category:n,contents:u,content_type:r,currency:f,value:s,quantity:o,price:e})},completeRegistration:function({content_name:i,content_category:n,contents:u,content_type:r,currency:f,value:s,quantity:o,price:e}){t("CompleteRegistration",{content_name:i,content_category:n,contents:u,content_type:r,currency:f,value:s,quantity:o,price:e})},addPaymentInfo:function({content_name:i,content_category:n,contents:u,content_type:r,currency:f,value:s,quantity:o,price:e}){t("AddPaymentInfo",{content_name:i,content_category:n,contents:u,content_type:r,currency:f,value:s,quantity:o,price:e})},completePurchase:function({content_name:i,content_category:n,contents:u,content_type:r,currency:f,value:s,quantity:o,price:e}){t("Purchase",{content_name:i,content_category:n,contents:u,content_type:r,currency:f,value:s,quantity:o,price:e})},subscribe:function({content_name:i,content_category:n,contents:u,content_type:r,currency:f,value:s,quantity:o,price:e}){t("Signup",{content_name:i,content_category:n,contents:u,content_type:r,currency:f,value:s,quantity:o,price:e})},search:function({content_name:i,content_category:n,contents:r,query:u}){t("Search",{content_name:i,content_category:n,contents:r,query:u})}}}(window.hidive=window.hidive||{},jQuery),function(n){function f(n,t){if(t=t||{},window.hidive.tron({trigger:{event:n,data:JSON.parse(JSON.stringify(t))}}),!s(n,t)){e(t);o(t);for(let i of u[n])try{i[n](t)}catch(i){console.error(`Fatal error handling analytics event: ${n}`,t);console.error(i)}}}function e(n){n.value=n.value||t.state.value||0;n.quantity=n.quantity||t.state.quantity||0;n.price=n.price||t.state.price||0;n.currency=n.currency||t.state.currency||"USD";n.content_ids=n.content_ids||t.state.content_ids||[];n.content_type=n.content_type||t.state.content_type;n.content_category=n.content_category||t.state.content_category;n.contents=n.contents||n.content_ids.map(function(n){return{id:n,quantity:1}});n.content_id=n.content_id||(n.content_ids&&n.content_ids.length==1?n.content_ids[0]:null);n.content_name=n.content_name||t.state.content_name;n.num_items=n.num_items||n.content_ids.length;n.search_string=n.query;n.id=n.id||t.state.id;n.name=n.name||t.state.name;n.revenue=n.revenue||t.state.revenue;n.plans=n.content_ids;n.contentName=n.content_name;n.contentType=n.content_type;n.contentCategory=n.content_category}function o(n){Object.assign(t.state,n)}function s(n,t){switch(n){case"viewContent":const n=JSON.stringify(t);return n==i?!0:(i=n,!1);default:return!1}}const r=btoa(window.location.host)!="d3d3LmhpZGl2ZS5jb20=";n.tron=function(n){r&&console.debug(n)};const t=n.analytics=n.analytics||{},u={viewContent:[n.fbpx,n.ttpx,n.twpx,n.gtm],initiateCheckout:[n.gaecom,n.fbpx,n.ttpx,n.twpx,n.gtm],addToCart:[n.gaecom,n.fbpx,n.ttpx,n.twpx,n.gtm],completeRegistration:[n.gaecom,n.fbpx,n.ttpx,n.twpx,n.gtm],addPaymentInfo:[n.gaecom,n.fbpx,n.ttpx,n.twpx,n.gtm],completePurchase:[n.gaecom,n.fbpx,n.ttpx,n.adroll,n.twpx,n.gtm],startTrial:[n.fbpx,n.gtm],subscribe:[n.fbpx,n.ttpx,n.twpx,n.gtm],search:[n.fbpx,n.ttpx,n.twpx,n.gtm],addPromoCode:[n.gaecom,n.gtm],addPromo:[n.gaecom,n.gtm],internalFreePromo:[n.gaecom,n.gtm]};let i=null;t.trigger=f;t.state={}}(window.hidive=window.hidive||{},jQuery),function(){var r=getParameter("campaign"),u=getParameter("source"),n,i,t;r&&(n="/campaign/set?",n+="&campaign="+r,n+="&source="+u,i=document.getElementsByTagName("script")[0],t=document.createElement("script"),t.src=n,t.async=!0,i.parentNode.insertBefore(t,i))}(),function(){var r=getParameter("ssaid"),u=getParameter("sscid"),n,i,t;r&&(n="/affiliate/sas?",n+="&ssaid="+r,n+="&sscid="+u,i=document.getElementsByTagName("script")[0],t=document.createElement("script"),t.src=n,t.async=!0,i.parentNode.insertBefore(t,i))}()