1"use strict";(self.webpackChunkoutrigger=self.webpackChunkoutrigger||[]).push([[142],{2472:function(t,e,i){let r,o;i.r(e);var n={slotstoReplace:[],abString:"",adTemplate:"",onScrollTick:function(){let t=document.getElementById("tick"),e=document.getElementById("skip").dataset.ts||-1;if(t&&e>=0){let i=_WF.utils.getWindowScrollYPosition();n.bottomOutOfView(t,i)&&n.getMore(e)}},onScrollAds:function(){if(0==n.slotstoReplace.length)return;let t=[],e=[],i=[],r=_WF.utils.getWindowScrollYPosition(),o=document.querySelectorAll('.iscroll.reserve:not([id^="ISAS"])');for(let t=o.length>>>0;t--;)i[t]=o[t];if(i.length>0){for(;i.length>0&&n.slotstoReplace.length>0;){let e=!1;for(;n.slotstoReplace.length>0;){let t=n.slotstoReplace.shift();if(e=document.getElementById(t),!n.bottomOutOfView(e,r))break;e=!1}if(!e)return;{let r=i.shift(),o=r.id;n.swapAdNodes(r,e),t.push(o)}}if(t.length>0)try{_WF.prebid.refreshSlots(t)}catch(e){_WF.utils.log("iScrollArticleLoader: error calling for slots refresh",t)}return}let l=document.querySelectorAll('.iscroll:not([id^="ISAS"])');for(let t=l.length>>>0;t--;)e[t]=l[t];for(;e.length>0&&n.slotstoReplace.length>0;){let i=e.shift(),o=i.id;if(!n.bottomOutOfView(i,r))break;{let e=!1;for(;n.slotstoReplace.length>0;){let t=n.slotstoReplace.shift();if(e=document.getElementById(t),!n.bottomOutOfView(e,r))break;e=!1}e&&(n.swapAdNodes(i,e),t.push(o))}}if(t.length>0)try{_WF.prebid.refreshSlots(t)}catch(e){_WF.utils.log("iScrollArticleLoader: error calling for slots refresh",t)}},bottomOutOfView:function(t,e){let i=window.getComputedStyle(t),r=t.offsetHeight+parseInt(i.marginBottom)+100;for(;t.offsetTop>0;)r+=t.offsetTop,t=t.offsetParent;return r<e},getMore:function(t){document.getElementById("skip").dataset.ts=0;let e=t,i=document.getElementById("skip").dataset.qry||!1;i&&i.length>0&&(e+="?qry="+i),document.getElementById("tick").id="";let r=new XMLHttpRequest;r.open("GET","/wp-json/iwsmt/v1/is/P"+e,!0),r.onload=function(){let t=JSON.parse(r.responseText);t.parr&&(t.parr.forEach((function(e,i){_WF.utils.isTesting(n.abString,i.toString(),!0)&&(t.parr[i]=n.adTemplate.replace("######",t.pids[i]).replace("######",t.pids[i])+t.parr[i],n.slotstoReplace.push("ISAS-P"+t.pids[i])),i==parseInt(t.parr.length/2)-1&&(t.parr[i]='<div id="tick"></div>'+t.parr[i])})),document.getElementById("skip").insertAdjacentHTML("beforebegin",t.parr.join("")),n.initServices(t.pids)),document.getElementById("skip").dataset.ts=t.ts,document.getElementById("skip").innerHTML=""},r.send()},initServices:function(t){if(67==o){try{var e="https://www.slowrobot.com/prod/vote/";void 0!==t&&t.length>0&&jQuery.ajax({type:"GET",url:e+"?site=sr&type=get&ids="+t.join(","),success:function(t){t.forEach((function(t){jQuery("#score_"+t.id).html(t.votes)}))}})}catch(t){_WF.utils.log("iScrollArticleLoader: error getting votes")}try{jQuery(".vote_btn").unbind("click").live("click",(function(){var t=jQuery(this).data("id"),i=jQuery("#score_"+t),r=jQuery(this).data("type");if(null==localStorage.getItem("voted_"+t)||localStorage.getItem("voted_"+t)!=r){var o=parseInt(i.html());"down"==r?o--:o++,jQuery(i).fadeOut("fast").html(o).fadeIn("fast"),null==localStorage.getItem("voted_"+t)||"none"==localStorage.getItem("voted_"+t)?localStorage.setItem("voted_"+t,r):localStorage.setItem("voted_"+t,"none"),jQuery.ajax({type:"GET",url:e+"?site=sr&type="+r+"&id="+t,success:function(t){jQuery("#score_"+t[0].id).html(t[0].votes)}})}return!1}))}catch(t){_WF.utils.log("iScrollArticleLoader: error setting voting triggers")}try{void 0!==t&&t.length>0&&_WF.utils.xhr("https://open-api.spot.im/v1/messages-count?spot_id=sp_8PmYyxXk&posts_ids="+t.join(","),(function(e){(e=JSON.parse(e))&&e.messages_count&&t.forEach((function(t){document.getElementById("cm_"+t).innerHTML=e.messages_count[t]||0}))}))}catch(t){_WF.utils.log("iScrollArticleLoader: error activating spotim widgets")}try{jQuery(".fb_share_button").unbind("click").click((function(t){t.preventDefault();var e=jQuery(this).data("url_to_share");FB.ui({method:"share",href:e},(function(t){}))}))}catch(t){_WF.utils.log("iScrollArticleLoader: error activating facebook buttons")}}if(68==o){try{e="https://www.iwastesomuchtime.com/prod/vote/",void 0!==t&&t.length>0&&e&&jQuery.ajax({type:"GET",url:e+"?site=iwsmt&type=get&ids="+t.join(","),success:function(t){t.forEach((function(t){jQuery("#"+t.id+"_awesome").attr("current_count",t.awesome),jQuery("#"+t.id+"_wtw").attr("current_count",t.wtw),jQuery("#"+t.id+"_boring").attr("current_count",t.boring),null!=localStorage.getItem("voted_"+t.id+"_1")?jQuery("#"+t.id+"_awesome").html(t.awesome+" WUV YOU <3"):jQuery("#"+t.id+"_awesome").html(t.awesome+" AWESOME"),null!=localStorage.getItem("voted_"+t.id+"_2")?jQuery("#"+t.id+"_wtw").html(t.wtw+" RIGHT?!"):jQuery("#"+t.id+"_wtw").html(t.wtw+" WTW"),null!=localStorage.getItem("voted_"+t.id+"_3")?jQuery("#"+t.id+"_boring").html(t.boring+" BLOODY HIPSTER"):jQuery("#"+t.id+"_boring").html(t.boring+" BORING")}))}})}catch(t){_WF.utils.log("iScrollArticleLoader: error getting voting data")}try{void 0!==t&&t.length>0&&_WF.utils.xhr("https://open-api.spot.im/v1/messages-count?spot_id=sp_TVSjAJFM&posts_ids="+t.join(","),(function(e){(e=JSON.parse(e))&&e.messages_count&&t.forEach((function(t){document.getElementById("cm_"+t).innerHTML=e.messages_count[t]||0}))}))}catch(t){_WF.utils.log("iScrollArticleLoader: error activating spotim widgets")}try{jQuery(".vote").unbind("click").click((function(){var t=jQuery(this).attr("post_id"),i=jQuery(this).attr("vote_type");if(null==localStorage.getItem("voted_"+t+"_"+i)){localStorage.setItem("voted_"+t+"_"+i,1);
1var r=parseInt(jQuery(this).attr("current_count"))+1;switch(i){case"1":var o="awesome",n=r+" WUV YOU <3";break;case"2":o="wtw",n=r+" RIGHT?!";break;case"3":o="boring",n=r+" BLOODY HIPSTER"}return jQuery(this).html(n),jQuery.ajax({type:"GET",url:e+"?site=iwsmt&type=up&id="+t+"&field="+o,success:function(t){jQuery("#"+t[0].id+"_awesome").attr("current_count",t[0].awesome),jQuery("#"+t[0].id+"_wtw").attr("current_count",t[0].wtw),jQuery("#"+t[0].id+"_boring").attr("current_count",t[0].boring),null!=localStorage.getItem("voted_"+t[0].id+"_1")?jQuery("#"+t[0].id+"_awesome").html(t[0].awesome+" WUV YOU <3"):jQuery("#"+t[0].id+"_1").html(t[0].awesome+" AWESOME"),null!=localStorage.getItem("voted_"+t[0].id+"_2")?jQuery("#"+t[0].id+"_wtw").html(t[0].wtw+" RIGHT?!"):jQuery("#"+t[0].id+"_2").html(t[0].wtw+" WTW"),null!=localStorage.getItem("voted_"+t[0].id+"_3")?jQuery("#"+t[0].id+"_boring").html(t[0].boring+" BLOODY HIPSTER"):jQuery("#"+t[0].id+"_3").html(t[0].boring+" BORING")}}),!1}return!1}))}catch(t){_WF.utils.log("iScrollArticleLoader: error setting voting trigger")}try{jQuery(".fb_share_button").unbind("click").click((function(t){t.preventDefault();var e=jQuery(this).attr("url_to_share");FB.ui({method:"share",href:e},(function(t){}))}))}catch(t){_WF.utils.log("iScrollArticleLoader: error setting facebook trigger")}try{jQuery("video").unbind("inview").on("inview",(function(t,e){e?jQuery(this)[0].play():jQuery(this)[0].pause()}))}catch(t){_WF.utils.log("iScrollArticleLoader: error setting inview trigger")}try{"undefined"!=typeof PinUtils&&PinUtils.build()}catch(t){_WF.utils.log("iScrollArticleLoader: error updating pinterest buttons")}}_WF.dataCollection.init()},swapAdNodes:function(t,e){let i=t.id,r=document.getElementById(e.id+"-wrapper"),o=document.getElementById(i+"-wrapper"),l="";if(o){let t=window.getComputedStyle(o);l=n.objectFilter(t,"margin-top","margin-bottom")}t.id="",t.removeAttribute("data-google-query-id"),t.removeAttribute("style"),t.classList.remove("iscroll"),e.id=i,o&&(o.id=""),r&&(r.id=i+"-wrapper")},objectFilter:function(t,...e){return e.reduce(((e,i)=>(e[i]=t[i],e)),{})},addScrollListener:function(){_WF.utils.isTesting(n.abString,"noInf",!0)||_WF.utils.addScrollListener((function(t){n.onScrollTick()})),_WF.utils.isTesting(n.abString,"x")||_WF.utils.addScrollListener((function(t){n.onScrollAds()}))},initGlobals:function(){r=_WF.utils.getLogger("footer",_WF.LOGLEVEL.FOOTER),o=_WF.utils.parseInt(_WF.cache.getItem(_WF.KEYS.BLOGID))},initSplSlots:function(){const t=document.querySelectorAll(n.container),e=_WF.utils.abState(n.abString).split(" ").find((t=>-1!==t.indexOf("splUnits"))).split(":");if(2!==e.length&&3!==e.length)return;const i=Number.parseInt(e[1]),r=e[2]?Number.parseInt(e[2]):0;Array.from(t).forEach(((t,e)=>{e<r||(e-r)%i==0&&(t.insertAdjacentHTML("beforebegin",n.adTemplate.replace("######",`orig-${e}`).replace("######",`orig-${e}`)),n.slotstoReplace.push(`ISAS-Porig-${e}`))})),n.onScrollAds()},init:function(){n.initGlobals(),67==o&&(n.abString="srinfinite_ab",n.container="div.sub_container",n.adTemplate='<div class="pohcontainer"><div id="ISAS-P######-wrapper" class="interstitial_container infinite ad-widget-wrapper primary-ad-wrapper"><div class="attribution attribution-over attribution-center">ADVERTISEMENT</div><div id="ISAS-P######" class="primary-ad-widget iscroll"></div></div></div>'),68==o&&(n.abString="iwinfinite_ab",n.container="div.blog-post",n.adTemplate='<div class="pohcontainer"><div id="ISAS-P######-wrapper" class="interstitial_container infinite ad-widget-wrapper primary-ad-wrapper"><div class="attribution attribution-over attribution-center">ADVERTISEMENT</div><div id="ISAS-P######" class="ad_interstitial primary-ad-widget iscroll"></div></div></div>'),r("iScrollArticleLoader: init"),_WF.utils.isTesting(n.abString,"splUnits",!0)&&n.initSplSlots(),n.addScrollListener()}};e.default=n}}]);
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.