9 Horrifying Sentences Men Wrote About Sex This twelve months – The Decrease

zero&&p>s&&(p=s);for(var y=zero;y

=zero?(u=f.substr(zero,v),c=f.substr(v+1)):(u=f,c=””),i=decodeURIComponent(u),l=decodeURIComponent(c),hasOwnProperty(o,i)?isArray(o[i])?o[i].push(l):o[i]=[o[i],l]:o[i]=l}return o};var isArray=Array.isArray||characteristic(r){return”[object Array]”===Object.prototype.toString.call(r)};
}, {}];
window.modules[“1130”] = [function(require,module,exports){“use strict”;var stringifyPrimitive=function(r){switch(typeof r){case”string”:return r;case”boolean”:return r?”true”:”false”;case”number”:return isFinite(r)?r:””;default:return””}};module.exports=function(r,e,t,n){return e=e||”&”,t=t||”=”,null===r&&(r=void 0),”object”==typeof r?map(objectKeys(r),function(n){var i=encodeURIComponent(stringifyPrimitive(n))+t;return isArray(r[n])?blueprint(r[n],characteristic(r){return i+encodeURIComponent(stringifyPrimitive(r))}).join(e):i+encodeURIComponent(stringifyPrimitive(r[n]))}).join(e):n?encodeURIComponent(stringifyPrimitive(n))+t+encodeURIComponent(stringifyPrimitive(r)):””};var isArray=Array.isArray||characteristic(r){return”[object Array]”===Object.prototype.toString.call(r)};characteristic blueprint(r,e){if(r.blueprint)return r.blueprint(e);for(var t=[],n=zero;n=zero;r–){var l=localStorage().key(r);e(be taught(l),l)}}characteristic take(e){return localStorage().removeItem(e)}characteristic clearAll(){return localStorage().sure()}module.exports={title:”localStorage”,be taught:be taught,write:write,every:every,take:take,clearAll:clearAll};
}, {“1170”:1170}];
window.modules[“1172″] = [function(require,module,exports){module.exports={name:”memoryStorage”,read:read,write:write,each:each,remove:remove,clearAll:clearAll};var memoryStorage={};function read(e){return memoryStorage[e]}characteristic write(e,r){memoryStorage[e]=r}characteristic every(e){for(var r in memoryStorage)memoryStorage.hasOwnProperty(r)&&e(memoryStorage[r],r)}characteristic take(e){delete memoryStorage[e]}characteristic clearAll(e){memoryStorage={}}
}, {}];
window.modules[“article-nav.client”] = [function(require,module,exports){“use strict”;var dom=require(1),_throttle=require(23),$visibility=require(28),$popup=require(40),$gtm=require(41);DS.controller(“article-nav”,[function(){return function(t){var e=dom.find(“.page-header”),i=dom.find(“.article-content”),o=dom.find(t,”.deepscroll-headline”),r=dom.find(t,”.deepscroll-rubric”),n=dom.find(t,”.deepscroll-rubric-sponsored”),l=dom.find(“.article .article-header .rubric”),s=dom.find(“#deepscroll_center_divider”),a=dom.find(“.clay-paragraph”),d=dom.find(t,”.logo”),c=dom.find(t,”.dyn-cut-logo”),p=dom.find(t,”.article-nav-top”),u=dom.find(t,”.article-nav-deepscroll”),m=dom.find(‘link[rel=”canonical”]’),f=m&&m.getAttribute(“href”),g=dom.get(‘meta[property=”og:image”]’)?dom.get(‘meta[property=”og:image”]’).getAttribute(“sing material”):””,h=dom.get(‘meta[property=”og:title”]’)?dom.get(‘meta[property=”og:title”]’).getAttribute(“sing material”):””,y=dom.get(t,”.portion-hyperlink.facebook”),v=dom.get(t,”.portion-hyperlink.twitter”),w=dom.get(t,”.portion-hyperlink.pinterest”),b=t.classList.contains(“header-easy”),x=window.getComputedStyle(d,null).getPropertyValue(“–targetFlexBasis”),C=window.getComputedStyle(d,null).getPropertyValue(“–verticalStart”)||zero,L=window.getComputedStyle(d,null).getPropertyValue(“–verticalEnd”)||zero;characteristic _(){!1,$()}characteristic $(){var o,r,n,l=t.getBoundingClientRect().prime,s=window.getComputedStyle(d,null).getPropertyValue(“–baseFlexBasis”),m=s-x,f=(e.getBoundingClientRect().prime-fifty five)/-106,g=Math.abs(f),h=C-L-2,y=Math.spherical(C-(h*g+2)),v=Math.ceil(s-m*g);if(fl?t.classList.add(“after-scroll”):t.classList.take(“after-scroll”),window.scrollY>l?e.classList.add(“header-after-scroll”):e.classList.take(“header-after-scroll”),$visibility.getViewportWidth()>=1180&&i&&(o=a?$visibility.getPageOffset(a).prime-70:zero,r=$visibility.getPageOffset(i).prime,n=Math.max(r,o),Math.max(window.scrollY,narrative.body.scrollTop)>=n)?t.classList.add(“deep-scroll”):t.classList.take(“deep-scroll”)}characteristic k(t){var e=t.currentTarget,i=e.getAttribute(“href”),o=e.getAttribute(“details-deal with”),r=$popup.getPopupClass(e.classList),n=$visibility.isBelowPrimaryContent(e)?”bottom”:”prime”;$gtm.reportNow({tournament:”social-portion-widget”,clickLocation:n,socialNetwork:r}),$visibility.getViewportWidth()>=768&&r&&(t.preventDefault(),$popup.popWindow(r,o,i))}!characteristic(){var e=_throttle($,30);if(dom.findAll(t,”.portion-hyperlink”).forEach(characteristic(t){return t.addEventListener(“click on”,k)}),y&&(y.href=”http://www.facebook.com/sharer/sharer.php?u=”+f+”?utm_source=fb&utm_medium=s3&utm_campaign=sharebutton-t”),v&&(v.href=”https://twitter.com/portion?textual sing material=”+encodeURIComponent(h)+”&url=”+f+”?utm_source=tw&utm_medium=s3&utm_campaign=sharebutton-t&by technique of=”+v.getAttribute(“details-deal with”)),w&&(w.href=”http://pinterest.com/pin/rep/button/?url=”+f+”?utm_source=pin&utm_medium=s3&utm_campaign=sharebutton-t&description=”+encodeURIComponent(h)+”&media=”+g),b)return;window.addEventListener(“scroll”,e),window.addEventListener(“resize”,_),l?l.classList.contains(“rubric-sponsor-narrative”)&&n?(r.classList.take(“visible”),n.classList.add(“visible”),n.textContent=l.textual sing material||l.textContent):(r.textContent=l.textual sing material||l.textContent,r.href=l.href||”#”):(s.type.insist=”none”,r.type.insist=”none”);_(),o.textContent=h}()}}]);
}, {“1″:1,”23″:23,”28″:28,”forty”:forty,”forty one”:forty one}];
window.modules[“nav-dropdown-button.client”] = [characteristic(requiremoduleexports){“usestrict”;vardom=require(1);characteristicgetNextSiblings(n){for(vart=[],e=n;e=e.nextElementSibling;)t.push(e);return t}module.exports=characteristic(n){var t,e=n.querySelector(“.nav-dropdown-button-trigger”),o=dom.get(“body”),i=dom.get(“header.website-header”),s=dom.get(‘[data-editable=”main”]’);characteristic d(){var e,d=window.innerWidth0&&(this.isNavVariation&&e1?”s”:””),this.el.classList.take(“no-feedback”))},n.prototype.shouldRenderCommentStream=characteristic(){return-1!==e.indexOf(“@published”)},n}]);
}, {“1″:1,”33″:33,”seventy eight”:seventy eight,”Seventy 9″:Seventy 9}];
window.modules[“ad.client”] = [characteristic(requiremoduleexports){“usestrict”;var_forEach=require(27)_max=require(29)$visibility=require(28)flaggedComponentsOnPage=characteristic(){varet=narrativequerySelector(“article-singmaterial”)n=[];return t&&_forEach([‘.article-sidebar[data-width=”large”]’],characteristic(a){e=t.querySelectorAll(a),_forEach(e,characteristic(e){n.push(e)})}),n}();characteristic getElementsVerticalOverlap(e,t){var n=e.getBoundingClientRect(),a=t.getBoundingClientRect();return!(n.prime>a.bottom||n.correcta.correct)?a.bottom-n.prime:zero}characteristic getElementsOverlapAmount(e,t){var n,a=[];return _forEach(t,characteristic(t){n=getElementsVerticalOverlap(e,t),a.push(n)}),_max(a)}characteristic getCutAdChannel(e){return{all:””,animals:”Self/SoU”,class:”Fashion/Beauty”,”occupation money productiveness”:”Energy/Money”,celeb:”Tradition/Extensive title”,”crime-assault”:”Energy”,”culture-media”:”Tradition”,type:”Fashion/Fashion”,”feminism-politics-id”:”Energy/Politics”,”relationships-guests family”:”Self”,”health-wellness”:”Self/Health”,”home compose”:”Fashion/Design_Hunting”,”studying creativity”:”Self/SoU”,residing:”Fashion”,other:””,parenting:”Self/Motherhood”,”psychological health personality social conduct”:”Self”,”relationships-sex courting marriage”:”Self/sex_relationships”,shopping:”Fashion/Having a explore”,weddings:”Fashion/Weddings”}[e]||””}characteristic getVultureAdChannel(e){var t=””;switch(e){case”tv”:case”music”:case”movies”:case”books”:case”comedy”:case”art work”:case”theater”:t=e;damage;default:t=””}return t}characteristic getIntelligencerAdChannel(e){var t=””;switch(e){case”politics-home”:case”politics-global”:t=”Politics”;damage;case”industrial”:case”web-culture”:case”merchandise-apps-machine”:case”merchandise-consumer-electronics”:t=”Enterprise”;damage;case”tech-substitute”:case”tech-society”:t=”Know-how”;damage;default:t=””}return t}characteristic getNYMagAdChannel(e){var t=””;switch(e){case”all”:t=e;damage;case”company details”:t=”company”;damage;case”giant apple guides & issues to make”:t=”to-make”;damage;case”other”:t=e;damage;case”subsidized guides”:t=”s-guides”;damage;default:t=””}return t}characteristic appendSectionToDfpAds(){var e,t,n,a=narrative.querySelector(“meta[property=’og:site_name’]”),i=narrative.querySelector(“article[data-content-channel]”),o=narrative.querySelectorAll(‘[data-name^=”/4088/”]’);a&&(e=a.sing material),i&&(t=i.getAttribute(“details-sing material-channel”).toLowerCase()),t&&(“The Decrease”===e?n=getCutAdChannel(t):”Vulture”===e?n=getVultureAdChannel(t):”Intelligencer”===e?n=getIntelligencerAdChannel(t):”Fresh York Journal”===e&&(n=getNYMagAdChannel(t)),n&&_forEach(o,characteristic(e){e.setAttribute(“details-title”,e.getAttribute(“details-title”)+”/”+n)}))}characteristic injectGoogleScripts(){var e=narrative.createElement(“script”),t=narrative.createElement(“script”),n=narrative.createDocumentFragment();e.src=”//www.googletagservices.com/save/js/gpt.js”,e.async=”async”,t.src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”,t.async=”async”,n.appendChild(e),n.appendChild(t),narrative.getElementsByTagName(“body”)[0].appendChild(n)}appendSectionToDfpAds(),injectGoogleScripts(),DS.controller(“advert”,[“adService”,function(e){return function(t){var n,a,i=e.create(t),o=t.getAttribute(“data-offload”),r=new $visibility.Visible(t,{preloadThreshold:o?window.innerHeight/2:200}),s=!1;function l(){window.innerWidth>=1180&&t.parentElement.classList.contains(“ad-repeat”)&&flaggedComponentsOnPage.length&&(n=getElementsOverlapAmount(t,flaggedComponentsOnPage),a=parseInt(t.parentElement.getAttribute(“data-gap”),10),t.style.marginTop=a+30+n+”px”)}function c(){l(),e.refresh(i)}function d(){e.remove(i),s||(s=!0,r.on(“shown”,c))}r.preload&&$visibility.isElementNotHidden(t)?(e.addToPageLoadQueue(i),o&&r.on(“hidden”,d)):(r.on(“preload”,function(){!i.slot&&$visibility.isElementNotHidden(t)&&(l(),e.load(i))}),o&&r.on(“hidden”,d)),this.adData=i}}]);
}, {“27″:27,”28″:28,”29”:29}];
window.modules[“coral-talk.client”] = [characteristic(requiremoduleexports){“usestrict”;varcoralEmbeddom=require(1)retailer=require(88)visibility=require(28)auth0=require(7)TALK_AUTH=”discuss:auth_token”hasEmbedScriptLoaded=!1hasCoralTalkRendered=!1;characteristicrenderComments(e){if(hasEmbedScriptLoaded&&!hasCoralTalkRendered){vart={discuss:””concat(windowspaceprotocol”//”)concat(eCORAL_TALK_HOST)auth_token:retailerrep(TALK_AUTH)asset_url:eTALK_ASSET_URL};hasCoralTalkRendered=!zerocoralEmbed=windowCoralTalkaboutrender(ecommentStreamContainert)}}characteristiccoralLogin(){coralEmbedlogin(retailerrep(TALK_AUTH))}characteristicembedScript(et){varn=narrativecreateElement(“script”);nform=”textualsingmaterial/javascript”nasync=!zeronsrc=enaddEventListener(“load”characteristic(){hasEmbedScriptLoaded=!zerorenderComments(t)})narrativegetElementsByTagName(“head”)[0].appendChild(n)}characteristic attemptScriptEmbedding(e){hasEmbedScriptLoaded?renderComments(e):embedScript(e.EMBED_URL,e)}characteristic addVisibilityListener(e,t){contemporary visibility.Seen(e,{preloadThreshold:750}).on(“preload”,characteristic(){return attemptScriptEmbedding(t)})}characteristic removeSignInButton(e){e&&e.parentNode&&dom.removeElement(e)}characteristic init(e){var t=e.getAttribute(“details-coral-discuss-host”),n=””.concat(window.space.protocol,”//”).concat(t,”/embed.js”),i=narrative.documentElement.getAttribute(“details-uri”),o=”http://”.concat(i,”.html”),r=”factual”===e.getAttribute(“details-maintenance”),a=-1!==o.indexOf(“@published”),c=e.querySelector(“.coral-discuss-container”),d=e.querySelector(“.coral-discuss-btn-signin”),l={CORAL_TALK_HOST:t,EMBED_URL:n,commentStreamContainer:c,signInButton:d,TALK_ASSET_URL:o};!r&&a&&(auth0.on(“init”,characteristic(){addVisibilityListener(e,l),d.addEventListener(“click on”,characteristic(){return auth0.showLogin()}),auth0.isAuthenticated()&&removeSignInButton(d)}),auth0.on(“login”,characteristic(t,n){removeSignInButton(d),retailer.space(TALK_AUTH,t[“http://nymag.com/coral_talk”],n),visibility.isElementInViewport(e)&&attemptScriptEmbedding(l),hasCoralTalkRendered&&coralLogin()}),auth0.on(“logout”,characteristic(){retailer.take(TALK_AUTH)}))}module.exports=init;
}, {“1″:1,”7″:7,”28″:28,”88”:88}];
window.modules[“choreographer.client”] = [function(require,module,exports){“use strict”;var cookie=require(26),_require=require(64),insertSpeedBumpComponents=_require.insertSpeedBumpComponents,_require2=require(62),generateGrowl=_require2.generateGrowl,gtm=require(41),isProduction=require(5)(),_require3=require(63),getClientHistory=_require3.getClientHistory,updateClientHistoryWithPageData=_require3.updateClientHistoryWithPageData,auth0=require(7),_require4=require(61),Scenario=_require4.Scenario,cidReadyEvent=”nymcid-set”,cidKey=”nymcid”;function initializeChoreographer(e){var o=e.getAttribute(“data-site-slug”),t=pageShouldCountAsView(),n=auth0.isSubscriber();return o?getClientId(cidKey,8e3).then(function(e){return!isProduction&&console.log(“……clientId: “.concat(e,”……”)),!isProduction&&console.log(“……page counts as a view: “.concat(t)),t?updateClientHistoryWithPageData(e,o):getClientHistory(e)}).then(function(r){console.log(“……client history……”),console.table(r),!isProduction&&console.log(“……Evaluating scenarios……”);var i=readJSONFromScript(e.querySelector(“script”)),c=i.scenarios,a=i.touts,l=c.map(function(e){return Scenario(e,r,o,n)}).filter(function(e){return!isProduction&&console.log(“”.concat(e.action,”: “).concat(e.shouldShow)),!isProduction&&console.log(“……Scenario data ……”),!isProduction&&console.log(e),e.shouldShow}).reduce(function(e,o){var t=o.action,n=o.min,r=o.count,i=a.find(function(e){return e.value===t});return!i||e[i.type]?e:(e[i.type]=i,e[i.type].viewCount=r-n,e)},{});!isProduction&&console.log(“……active touts……”),!isProduction&&console.log(l),executeTouts(e,t,l,r)}).buy(console.error):!isProduction&&console.error(“siteSlug no longer stumbled on.”)}characteristic documentIncludesComponent(e){return narrative.querySelector(‘[data-uri*=”/’.concat(e,’/”]’))}characteristic pageShouldCountAsView(){return!documentIncludesComponent(“product”)}characteristic executeTouts(e,o){var t=arguments.length>2&&void zero!==arguments[2]?arguments[2]:{},n=arguments.length>Three?arguments[3]:void zero,r=n.global,i={totalArticleCount:r.total||zero,standardArticleCount:r.Article||zero,featureArticleCount:r.Feature||zero,magazineArticleCount:r.Journal||zero};o&&t[“content-cliff”]?cliff(findTemplate(e,”sing material-cliff”),t[“content-cliff”],t[“content-cliff”].viewsLeft,n):t[“growl-newletter”]||!t[“promo-growl”]?t[“speed-bump”]&&insertSpeedBumpComponents(findTemplate(e,”tempo-bump”),t[“speed-bump”],i):promoGrowl(findTemplate(e,”growl-message”),{contentClass:”promo-sing material”,title:void zero,title:t[“promo-growl”].title,scrollDepth:t[“promo-growl”].promoGrowlScrollDepth,cta:t[“promo-growl”].promoGrowlCTA,body:t[“promo-growl”].promoGrowlMessage,hyperlink:t[“promo-growl”].promoGrowlLink,baseTrackingData:i})}characteristic promoGrowl(e,o){var t=o.contentClass,n=o.scrollDepth,r=o.title,i=o.title,c=o.body,a=o.cta,l=o.hyperlink,u=o.baseTrackingData;var s,m=(s=’n n “),narrative.createRange().createContextualFragment(s));m.querySelector(“a”).addEventListener(“click on”,characteristic(){var e=u;e.tournament=”eec.promotionClick”,e.ecommerce={promoClick:{promotions:[{name:r,creative:c,id:”promo growl”,position:”growl”}]}},gtm.reportNow(e)}),generateGrowl(e,”#growl-message”,{sing material:m,scrollDepth:n,onShow:characteristic(){var e=u;e.tournament=”eec.promotionView”,e.ecommerce={promoView:{promotions:[{name:r,creative:c,id:”promo growl”,position:”growl”}]}},gtm.reportNow(e)}})}characteristic cliff(e,o,t,n){var r=n.first_visit,i=n.global,c={totalArticleCount:i.total||zero,standardArticleCount:i.Article||zero,featureArticleCount:i.Feature||zero,magazineArticleCount:i.Journal||zero},a=o.title,l=o.contentCliffWarningBody,u=o.contentCliffBody,s=narrative.importNode(e,!zero).querySelector(“.sing material-cliff”),m=narrative.querySelector(“.article-sing material > .clay-paragraph”);s&&(m.insertAdjacentHTML(“afterend”,s.outerHTML),require(“sing material-cliff.consumer”)(narrative.querySelector(“.sing material-cliff”),{cliffOptions:o,viewsLeft:t,firstVisit:Number(r),onWarn:characteristic(){var e=c;e.tournament=”eec.promotionView”,e.ecommerce={promoView:{promotions:[{name:a,creative:l,id:”warning growl”,position:”growl”}]}},gtm.reportNow(e)},onClickWarn:characteristic(){var e=c;e.tournament=”eec.promotionClick”,e.ecommerce={promoClick:{promotions:[{name:a,creative:l,id:”warning growl”,position:”growl”}]}},gtm.reportNow(e)},onShow:characteristic(){var e=c;e.tournament=”eec.promotionView”,e.ecommerce={promoView:{promotions:[{name:a,creative:u,id:”content cliff”,position:”in-article”}]}},gtm.reportNow(e)},onClickCliff:characteristic(){var e=c;e.tournament=”eec.promotionClick”,e.ecommerce={promoClick:{promotions:[{name:a,creative:u,id:”content cliff”,position:”in-article”}]}},gtm.reportNow(e)}}))}characteristic getClientId(){var e=arguments.length>zero&&void zero!==arguments[0]?arguments[0]:””,o=arguments.length>1&&void zero!==arguments[1]?arguments[1]:8e3,t=cookie.rep(e);return t?Promise.unravel(t):contemporary Promise(characteristic(t,n){var r=setTimeout(characteristic(){n(“might well no longer get key: “.concat(e,” on cookie after “).concat(o,”ms”))},o);window.addEventListener(cidReadyEvent,characteristic(){clearTimeout(r),t(cookie.rep(e))})})}characteristic readJSONFromScript(e){strive{return JSON.parse(e.innerHTML)}buy(e){return{touts:[],scenarios:[]}}}characteristic findTemplate(e){var o=arguments.length>1&&void zero!==arguments[1]?arguments[1]:””,t=e&&e.querySelector(‘[data-template-id=”‘.concat(o,'”]’));return t&&t.sing material}module.exports=characteristic(e){auth0.on(“init”,characteristic(){initializeChoreographer(e)})};
}, {“5″:5,”7″:7,”26″:26,”forty one”:forty one,”sixty one”:sixty one,”sixty two”:sixty two,”sixty three”:sixty three,”Sixty four”:Sixty four,”sing material-cliff.consumer”:”sing material-cliff.consumer”}];
window.modules[“growl.client”] = [function(require,module,exports){“use strict”;require(110);var dom=require(1),localStorageKeyRoot=”slideout-“,_require=require(85),getLocalStorage=_require.getLocalStorage,setLocalStorage=_require.setLocalStorage;module.exports=function(e,t){var o=t.content,r=t.onShow,i=t.scrollDepth,n=void 0===i?50:i,a=t.dismissable,s=void 0!==a&&a,c=Number(n||e.getAttribute(“data-display-at-page-scroll-percentage”)),l=dom.find(e,”.modal”),d=t.id||e.getAttribute(“id”),u=localStorageKeyRoot+d,g=getLocalStorage(u);function v(){l.classList.add(“hidden”)}function m(){setLocalStorage(u,!0),v()}s&&g?e.remove():(o&&e.querySelector(“[data-content]”).appendChild(o),c&&characteristic(){var e=arguments.length>zero&&void zero!==arguments[0]?arguments[0]:50,t=contemporary IntersectionObserver(characteristic(e){e[0]&&e[0].isIntersecting&&(l.type.prime=”inherit”,l.classList.take(“hidden”,”preliminary”),”characteristic”==typeof r&&r())});l.type.prime=””.concat(narrative.querySelector(“body”).scrollHeight/(a hundred/e),”px”),t.sight(l)}(c),e.querySelector(“.push apart-modal”).addEventListener(“click on”,characteristic(){return s?m():v()}),e.addEventListener(“growl:veil”,v),e.addEventListener(“growl:push apart”,m))};
}, {“1″:1,”85″:85,”110”:110}];
window.modules[“speed-bump.client”] = [function(require,module,exports){“use strict”;var gtm=require(41),visibility=require(28);module.exports=function(e,i){if(i&&e){var o=i.name,r=i.speedbumpDescription,t=i.speedbumpMessage,n=i.speedbumpLink,s=i.baseTrackingData,c=new visibility.Visible(e,{shownThreshold:.5});e.querySelector(“.description”).innerHTML=r,e.querySelector(“.promo-link”).innerHTML=t,e.querySelector(“.promo-link”).href=n,e.classList.remove(“collapsed”),c.on(“shown”,function(){if(visibility.isElementNotHidden(e)){var i=s;i.event=”eec.promotionView”,i.ecommerce={promoView:{promotions:[{name:o,creative:r,id:”speed bump”,position:”in-article”}]}},gtm.reportNow(i),c.abolish()}}),e.querySelector(“.promo-hyperlink”).addEventListener(“click on”,characteristic(){var e=s;e.tournament=”eec.promotionClick”,e.ecommerce={promoClick:{promotions:[{name:o,creative:r,id:”speed bump”,position:”in-article”}]}},gtm.reportNow(e)})}};
}, {“28″:28,”forty one”:forty one}];
window.modules[“content-cliff.client”] = [characteristic(requiremoduleexports){“usestrict”;var_require=require(sixtytwo)generateGrowl=_requiregenerateGrowlauth0=require(7)isProduction=require(5)()_require2=require(85)getLocalStorage=_require2getLocalStoragesetLocalStorage=_require2setLocalStorage;characteristicfindTemplate(n){vart=argumentslength>1&&voidzero!==arguments[1]?arguments[1]:””,e=n&&n.querySelector(‘[data-template-id=”‘.concat(t,'”]’));return e&&e.sing material}module.exports=characteristic(n,t){if(t){var e,o=t.cliffOptions,r=t.viewCount,c=t.firstVisit,i=t.onWarn,a=t.onClickWarn,l=t.onShow,u=t.onClickCliff,f=o.contentCliffWarningTitle,s=o.contentCliffWarningBody,d=o.contentCliffWarningCTA,g=o.contentCliffWarningLink,v=o.contentCliffWarningScrollDepth,h=findTemplate(n,”sing material-cliff-warning-growl”),w=300,m=[“taboola”],p=”#sing material-cliff”,S=n,q=(e=zero,narrative.querySelectorAll(“[data-word-count]”).forEach(characteristic(n){e+=Number(n.getAttribute(“details-discover-depend”)||zero,10)||zero}),e),C=characteristic(n,t){characteristic e(n){return Math.spherical(n.getTime()/1e3/60)}var o=e(n),r=e(t);return o-r}(contemporary Date,contemporary Date(c))n n

n

‘).concat(c,’

n

‘).concat(u,’

n
‘).concat(s,”n

n n n “),narrative.createRange().createContextualFragment(S));var S;characteristic q(){var n=contemporary Date,t=n.getMonth(),e=n.getFullYear();return”sing material-cliff-warning-displayed-“.concat(e,”-“).concat(t)}return p.querySelector(“a”).addEventListener(“click on”,a),{warn:characteristic(){generateGrowl(n,”#sing material-cliff-warning-growl”,{sing material:p,onShow:characteristic(){var n;i(),n=q(),setLocalStorage(n,”factual”)},scrollDepth:h})},shouldWarn:characteristic(n){return t=q(),!(“factual”===getLocalStorage(t))||nzero&&void zero!==arguments[0]?arguments[0]:””;return narrative.querySelectorAll(“”.concat(n,” ~ *”))}(p)).forEach(characteristic(n){return n.take()}),t=o.contentCliffStatus,e=o.contentCliffPromo,r=o.contentCliffCTA,c=o.contentCliffURL,i=n.querySelector(“[data-content-cliff-status]”),a=n.querySelector(“[data-content-cliff-promo]”),(f=n.querySelector(“[data-content-cliff-cta]”))&&f.setAttribute(“href”,c),f&&f.insertAdjacentHTML(“afterbegin”,r),i&&i.insertAdjacentHTML(“afterbegin”,t),a&&a.insertAdjacentHTML(“afterbegin”,e),f&&f.addEventListener(“click on”,u),S.classList.take(“collapsed”),m.forEach(characteristic(n){var t=narrative.querySelector(‘[data-uri*=”/’.concat(n,’/”]’));t&&t.take()}),b.addEventListener(“click on”,characteristic(){return auth0.showLogin()})}}[characteristic(){if(q1&&iclassListadd(“multi-children”)a=zero;a=1180?t.push({mode:a?”thumbnails-f”:”thumbnails-b”,container:”taboola-desktop-beneath-article-thumbnails”,placement:”Desktop Beneath Article Thumbnails”,target_type:”mix”}):window.innerWidth>=768?t.push({mode:a?”thumbnails-g”:”thumbnails-c”,container:”taboola-capsule-beneath-article-thumbnails”,placement:”Tablet Beneath Article Thumbnails”,target_type:”mix”}):t.push({mode:a?”thumbnails-h”:”thumbnails-d”,container:”taboola-mobile-beneath-article-thumbnails”,placement:”Mobile Beneath Article Thumbnails”,target_type:”mix”})}module.exports=characteristic(t){var e,a,o,i,n=t.getAttribute(“details-taboolaId”),l=t.getAttribute(“details-residence-slug”);t.classList.contains(“disabled”)||(window._taboola=window._taboola||[],window._taboola.push({article:”auto”}),e=narrative.createElement(“script”),a=narrative.getElementsByTagName(“script”)[0],o=”//cdn.taboola.com/libtrc/”.concat(n,”/loader.js”),i=”tb_loader_script”,narrative.getElementById(i)||(e.async=1,e.src=o,e.id=i,a.parentNode.insertBefore(e,a)),window.performance&&”characteristic”==typeof window.performance.price&&window.performance.price(“tbl_ic”),pushUnits(window._taboola,l),window._taboola.push({flush:!zero}))};
}, {}];
window.modules[“article.client”] = [function(require,module,exports){“use strict”;var $visibility=require(28),$gtm=require(41);DS.controller(“article”,[function(){var e=40;function t(t){var i=document.querySelector(“.wrapper > .tertiary”),n=t.querySelector(“.article-header”),r=n?n.querySelector(“img”):null,o=function(){i.style.paddingTop=n.getBoundingClientRect().height+e+”px”};i&&n&&(window.innerWidth-1,o=new RegExp(“[\?&]save=[^&]+”);if(r&&n)return(i=_get(e,”search”,””)).match(o)||(e.search=(i?i+”&”:”?”)+”save=”+n),e.href}(u,r)||f(s,r,u))&&(u.href=i))}characteristic h(e){var t,n,r=dom.closest(e.target,”a”),o=r&&r.href;o&&o.length&&(r.href=(n=(t=o).split(i)).length>1?decodeURIComponent(n[1]):t)}return characteristic(e){var i=characteristic(e){return!!(r=e.getAttribute(“details-skimlinks”))}(e),a=characteristic(e){return!!(n=e.getAttribute(“details-amazon”))}(e);search recommendation from.onceReady(characteristic(e){o=e}),(i||a)&&(!characteristic(e){t=(e.getAttribute(“details-excluded-hostnames”)||””).toLowerCase().split(“,”)}(e),globalClick.addHandler(_,h))}}]);
}, {“1″:1,”30″:30,”31″:31,”32″:32,”33″:33,”34″:34,”35″:35,”36”:36}];
window.modules[“gtm.client”] = [function(require,module,exports){“use strict”;var $gtm=require(41);DS.controller(“gtm”,[function(){return function(t){$gtm.init(t.getAttribute(“data-container-id”))}}]);
}, {“forty one”:forty one}];
window.modules[“sailthru-personalization-pixel.client”] = [function(require,module,exports){“use strict”;DS.controller(“sailthru-personalization-pixel”,[function(){return function(){var t,e=document.querySelector(“.sailthru-personalization-pixel”),o=e.getAttribute(“data-horizon”);(t=document.createElement(“script”)).type=”text/javascript”,t.async=!0,t.src=”https://ak.sail-horizon.com/horizon/v1.js”,t.onload=function(){Sailthru.setup({domain:o,useStoredTags:!1})},e.appendChild(t)}}]);
}, {}];
window.modules[“global-nav.client”] = [function(require,module,exports){“use strict”;var dom=require(1),auth0=require(7),signInButton=dom.find(“.user-signin”),signOutButton=dom.find(“.user-signout”);function init(i){auth0.on(“init”,function(){signInButton.addEventListener(“click”,function(){return auth0.showLogin()}),signOutButton.addEventListener(“click”,function(){return auth0.logout()}),auth0.isAuthenticated()&&i.classList.add(“signed-in”),auth0.isSubscriber()&&i.classList.add(“subscribed”)}),auth0.on(“login”,function(){i.classList.add(“signed-in”),auth0.isSubscriber()&&i.classList.add(“subscribed”)}),auth0.on(“logout”,function(){i.classList.remove(“signed-in”),i.classList.remove(“subscribed”)})}module.exports=init;
}, {“1″:1,”7”:7}];
window.modules[“aaa-module-mounting.legacy”] = [function(require,module,exports){“use strict”;var eventify=require(133),_pickBy=require(57),_each=require(210),fingerprintjs2=require(209),DS=require(208);function registerGlobals(){window.DS=DS,window.Eventify=eventify,window.Fingerprint2=fingerprintjs2,DS.value(“Eventify”,eventify),DS.value(“Fingerprint2”,fingerprintjs2),DS.value(“$document”,window.document),DS.value(“$window”,window)}function mountDollarSliceComponents(){DS.service(“components”,[“$document”,”$module”,function(e,n){var r=_pickBy(n.definitions,function(e){return e.providerStrategy===n.providers.controller}),o=Object.keys(r);function t(e){return function(r){try{n.get(e,r)}catch(e){logMountError(r,e)}}}_each(o,function(n){var r=e.querySelectorAll(‘[data-uri*=”/_components/’+n+’/”]’),o=e.querySelectorAll(‘[data-uri$=”/_components/’+n+'”]’);_each(r,t(n)),_each(o,t(n))}),this.formula=o}]),DS.rep(“formula”)}characteristic logMountError(e,n){var r=e.outerHTML.slice(zero,e.outerHTML.indexOf(e.innerHTML));console.error(“Error attaching controller to “+r,n)}registerGlobals(),narrative.addEventListener(“DOMContentLoaded”,characteristic(){mountDollarSliceComponents()});
}, {“fifty seven”:fifty seven,”133″:133,”208″:208,”209″:209,”210″:210}];
window.modules[“ads.legacy”] = [characteristic(requiremoduleexports){“usestrict”;var_map=require(37)_forEach=require(27)_isString=require(ahundredandfiftyfive)_each=require(210)_debounce=require(onezeroone)_sortBy=require(95)website=require(164)searchrecommendationfrom=require(35);DScarrier(“adService”[“Eventify””$cid””$narrative””$window”characteristic(etai){varnrosduc={}l=thisg=[],f=search recommendation from.getQueryParamsObject([“utm_campaign”]);i.NYM={},i.NYM.analytics={},i.NYM.analytics.adStartTime=i.performance.now(),i.googletag=i.googletag||{},i.googletag.cmd=i.googletag.cmd||[],u=i.googletag,n=characteristic(e){var t,a,n=e.details;return n.loaded?e:(n.loaded=!zero,t=null,(t=n.sizes?u.defineSlot(n.title,n.sizes,n.id).addService(u.pubads()):u.defineOutOfPageSlot(n.title,n.id).addService(u.pubads())).setTargeting(“adid”,n.id),f.hasOwnProperty(“utm_campaign”)&&t.setTargeting(“utmcamp”,f.utm_campaign),a=l.getAdCount(n.impress),t.setTargeting(“impress”,n.impress+”_”+n.residence+”-“+a),u.insist(n.id),u.pubads().addEventListener(“slotOnload”,characteristic(){i.NYM.analytics.firstAdLoadTime||(i.NYM.analytics.firstAdLoadTime=i.performance.now(),i.NYM.analytics.firstAdLoadLabel=e.details.impress)}),e.slot=t,e)},r=characteristic(e){var a,i,n,r=t(),o=e.getAttribute(“details-title”),s=e.getAttribute(“details-sizes”),d=e.getAttribute(“details-impress”),u=e.getAttribute(“details-residence”);r=e.id,s&&s.length?(s=s.split(“,”),a=[],_map(s,characteristic(e){e=e.split(“x”),i=parseInt(e[0]),n=parseInt(e[1]),a.push([i,n])})):(e.classList.add(“oop”),a=!1),this.details={id:r,title:o,sizes:a,loaded:!1,impress:d,residence:u},c[r]=this},s=characteristic(e){u.cmd.push(characteristic(){var t=n(e);c[e.data.id]=t})},o=characteristic(e){e.slot?u.pubads().refresh([e.slot],{changeCorrelator:!1}):e&&s(e)},u.cmd.push(characteristic(){var e,t,n,r=website.getMeta(“article:save”),o=website.getMeta(“author”),s=i.space.href,d=(e=a.head.querySelector(“.head-gtm”),t=a.body.querySelector(“.gtm”),e&&”prime”===e.getAttribute(“details-gtm”)?”gtmtop”:t&&”bottom”===t.getAttribute(“details-gtm”)?”gtmbottom”:””);n=[],_forEach([r,o,d],characteristic(e){_forEach(e.split(“,”),characteristic(e){(e=e.natty().toLowerCase().replace(/s/g,”-“).replace(/’|’/g,””)).length&&n.push(e)})}),u.pubads().setTargeting(“kw”,n),s=s.slice(s.lastIndexOf(“/”)+1),u.pubads().setTargeting(“pn”,s),u.companionAds().setRefreshUnfilledSlots(!zero),u.pubads().enableAsyncRendering(),u.enableServices()}),this.load=s,this.rep=characteristic(e){return contemporary r(e)},this.refresh=characteristic(e){var t;_isString(e)?(t=this.getById(e),o(t)):o(e)},this.take=characteristic(e){var t=e.details.id;a.getElementById(t).innerHTML=””},this.getAdCount=characteristic(e){var t,a=zero,i=Object.keys(c);return _each(i,characteristic(i){(t=c[i]).details.loaded&&t.details.impress===e&&a++}),a},this.getById=characteristic(e){return c[e]},d=_debounce(characteristic(){var e={TopLeaderboard:1,RightColTopMPU:2,outOfPage:ninety 9,”homepageTakeover/TopLeaderboard”:1},t=_sortBy(g,characteristic(t){return e[t.data.label]||10});_forEach(t,characteristic(e){return e.details.sizes?s(e):i.setTimeout(characteristic(){s(e)},1200)}),g=[]},10),this.addToPageLoadQueue=characteristic(e){g.push(e),d()}}]);
}, {“27″:27,”35″:35,”37″:37,”95″:95,”one zero one”:one zero one,”a hundred and fifty five”:a hundred and fifty five,”164″:164,”210″:210}];
window.modules[“chartbeat.legacy”] = [function(require,module,exports){“use strict”;var page=require(164),auth0=require(7);DS.service(“chartbeat”,[“$document”,”$window”,function(t,e){var a,n,o,i,c,s=t.getElementById(“cb-sponsor-data”);function r(){var a=t.createElement(“script”);e._sf_endpt=(new Date).getTime(),a.setAttribute(“language”,”javascript”),a.setAttribute(“type”,”text/javascript”),a.setAttribute(“src”,”//static.chartbeat.com/js/chartbeat.js”),t.body.appendChild(a)}e._sf_async_config={uid:19989,useCanonical:!0,domain:”nymag.com”,sections:(a=page.getSiteBase(),n=page.getSiteName(),o=n||a,”The Cut”!==o&&”Vulture”!==o||(o+=[“,”,o,page.getChannel()].join(” “)),o)},(i=website.getPrimaryPageComponent())&&”Backed Yarn”===i.getAttribute(“details-form”)?(e._sf_async_config.sponsorName=s&&s.getAttribute(“details-sponsor”),e._sf_async_config.form=”Backed”):e._sf_async_config.sponsorName=void zero,(c=t.querySelectorAll(“.article-author”)).length&&(e._sf_async_config.authors=c[0].textContent.natty()),e._cbq=e._cbq||[],auth0.on(“init”,characteristic(){var a,n;e._cbq.push([“_acct”,auth0.isAuthenticated()?”lgdin”:”anon”]),a=r,”total”===t.readyState?a():(n=”characteristic”==typeof e.onload?e.onload:characteristic(){},e.onload=characteristic(){n(),a()})})}]),setTimeout(characteristic(){DS.rep(“chartbeat”)},zero);
}, {“7″:7,”164”:164}];
window.modules[“cid.legacy”] = [function(require,module,exports){“use strict”;DS.service(“$cid”,function(){var r=Math.floor(100*Math.random());return function(){return”cid-“+ ++r}});
}, {}];
window.modules[“facebook.legacy”] = [characteristic(requiremoduleexports){“usestrict”;DScarrier(“facebook”[characteristic(){thisfb=characteristic(i){windowFB&&windowFB[i].be aware(this,Array.prototype.slice.call(arguments,1))}}]);
}, {}];
require=(characteristic e(t,n,r){characteristic s(o,u){if(!n[o]){if(!t[o]){var a=typeof require==”characteristic”&&require;if(!u&&a)return a(o,!zero);if(i)return i(o,!zero);var f=contemporary Error(“Can not get module ‘”+o+”‘”);throw f.code=”MODULE_NOT_FOUND”,f}var l=n[o]={exports:{}};t[o][0].call(l.exports,characteristic(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require==”characteristic”&&require;for(var o=zero;o typeof key === ‘string’ && key.match(/.legacy$/))
.forEach((key) => window.require(key));
}

characteristic tryToMount(fn, el, title) {
strive {
fn(el); // init the controller
} buy (e) {
const elementTag = el.outerHTML.slice(zero, el.outerHTML.indexOf(el.innerHTML));

console.error(`Error initializing controller for “${title}” on “${elementTag}”`, e);
}
}

/**
* mount consumer.js component controllers
*/
characteristic mountComponentModules() {
Object.keys(window.modules)
.filter((key) => typeof key === ‘string’ && key.match(/.consumer$/))
.forEach((key) => {
let controllerFn = window.require(key);

if (typeof controllerFn === ‘characteristic’) {
const title = key.replace(‘.consumer’, ”),
instancesSelector = `[data-uri*=”_components/${name}/”]`,
defaultSelector = `[data-uri$=”_components${name}”]`,
circumstances = narrative.querySelectorAll(instancesSelector),
defaults = narrative.querySelectorAll(defaultSelector);

for (let el of circumstances) {
tryToMount(controllerFn, el, title);
}

for (let el of defaults) {
tryToMount(controllerFn, el, title);
}
}
});
}

// insist: legacy controllers that require legacy products and services (e.g. greenback-slice) have to
// watch for DOMContentLoaded to initialize themselves, because the details themselves have to be mounted first
mountLegacyServices();
mountComponentModules();

// ]]

Read More

Leave a Reply