Trump Calls Hurricane Florence ‘One of the Wettest We’ve Ever Seen From the Standpoint of Water’

‘:”http://nymag.com/”},t.getDefinedParams=function(e,t){return t.filter(function(t){return e[t]}).reduce(function(t,r){return n(t,function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},r,e[r]))},{})},t.isValidMediaTypes=function(e){var t=[“banner”,”native”,”video”];return!!Object.keys(e).every(function(e){return t.includes(e)})&&(!e.video”http://nymag.com/”!e.video.context”http://nymag.com/”[“instream”,”outstream”].includes(e.video.context))},t.unsupportedBidderMessage=function(e,t){var r=e.mediaType”http://nymag.com/”Object.keys(e.mediaTypes).join(“, “),n=1===t.length?”This bidder”:”These bidders”;return”n “+e.code+” is a “+r+” ad unitn containing bidders that don’t support “+r+”: “+t.join(“, “)+”.n “+n+” won’t fetch demand.n “};var o,a=r(8),s=(o=r(61))&&o.__esModule?o:{default:o},d=r(2),u=!1,c=Object.prototype.toString,l=null;try{l=console.info.bind(window.console)}catch(e){}t.replaceTokenInString=function(e,t,r){return this._each(t,function(t,n){t=void 0===t?”http://nymag.com/”:t;var i=r+n.toUpperCase()+r,o=new RegExp(i,”g”);e=e.replace(o,t)}),e};var f,p=(f=0,function(){return++f});function g(){return p()+Math.random().toString(16).substr(2)}function v(e){if(t.isArray(e)&&2===e.length&&!isNaN(e[0])&&!isNaN(e[1]))return e[0]+”x”+e[1]}function m(){return window.console&&window.console.log}t.getUniqueIdentifierStr=g,t.generateUUID=function e(t){return t?(t^16*Math.random()>>t/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e)},t.getBidIdParameter=function(e,t){return t&&t[e]?t[e]:”http://nymag.com/”},t.tryAppendQueryString=function(e,t,r){return r?e+(t+”=”)+encodeURIComponent(r)+”&”:e},t.parseQueryStringParameters=function(e){var t=”http://nymag.com/”;for(var r in e)e.hasOwnProperty(r)&&(t+=r+”=”+encodeURIComponent(e[r])+”&”);return t},t.transformAdServerTargetingObj=function(e){return e&&Object.getOwnPropertyNames(e).length>0?S(e).map(function(t){return t+”=”+encodeURIComponent(E(e,t))}).join(“&”):”http://nymag.com/”},t.getTopWindowLocation=function(){var e=void 0;try{window.top.location.toString(),e=window.top.location}catch(t){e=window.location}return e},t.getTopWindowUrl=function(){var e=void 0;try{e=this.getTopWindowLocation().href}catch(t){e=”http://nymag.com/”}return e},t.getTopWindowReferrer=function(){try{return window.top.document.referrer}catch(e){return document.referrer}},t.logWarn=function(e){b()&&console.warn&&console.warn(“WARNING: “+e)},t.logInfo=function(e,t){b()&&m()&&l&&(t&&0!==t.length”http://nymag.com/”(t=”http://nymag.com/”),l(“INFO: “+e+(“http://nymag.com/”===t?”http://nymag.com/”:” : params : “),t))},t.logMessage=function(e){b()&&m()&&console.log(“MESSAGE: “+e)},t.hasConsoleLogger=m;var b=function(){if(!1===a.config.getConfig(“debug”)&&!1===u){var e=”TRUE”===y(d.DEBUG_MODE).toUpperCase();a.config.setConfig({debug:e}),u=!0}return!!a.config.getConfig(“debug”)};t.debugTurnedOn=b,t.logError=function(){b()&&window.console&&window.console.error&&console.error.apply(console,arguments)},t.createInvisibleIframe=function(){var e=document.createElement(“iframe”);return e.id=g(),e.height=0,e.width=0,e.border=”0px”,e.hspace=”0″,e.vspace=”0″,e.marginWidth=”0″,e.marginHeight=”0″,e.style.border=”0″,e.scrolling=”no”,e.frameBorder=”0″,e.src=”http://nymag.com/about:blank”,e.style.display=”none”,e};var y=function(e){var t=new RegExp(“[\?&]”+e+”=([^]*)”).exec(window.location.search);return null===t?”http://nymag.com/”:decodeURIComponent(t[1].replace(/+/g,”http://nymag.com/”))};t.getParameterByName=y,t.hasValidBidRequest=function(e,t,r){var n=!1;function i(e,r){r===t[o]&&(n=!0)}for(var o=0;o0);for(var r in e)if(hasOwnProperty.call(e,r))return!1;return!0},t.isEmptyStr=function(e){return this.isStr(e)&&(!e”http://nymag.com/”0===e.length)},t._each=function(e,t){if(!this.isEmpty(e)){if(this.isFn(e.forEach))return e.forEach(t,this);var r=0,n=e.length;if(n>0)for(;r‘+’‘:”http://nymag.com/”},t.createTrackPixelIframeHtml=function(e){var r=!(arguments.length>1&&void 0!==arguments[1])”http://nymag.com/”arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:”http://nymag.com/”;return e?(r&&(e=encodeURI(e)),n&&(n=’sandbox=”http://nymag.com/”+n+”http://nymag.com/”‘),”http://nymag.com/”):”http://nymag.com/”},t.getIframeDocument=function(e){if(e){var t=void 0;try{t=e.contentWindow?e.contentWindow.document:e.contentDocument.document?e.contentDocument.document:e.contentDocument}catch(e){this.logError(“Cannot get iframe document”,e)}return t}},t.getValueString=function(e,t,r){return null==t?r:this.isStr(t)?t:this.isNumber(t)?t.toString():void this.logWarn(“Unsuported type for param: “+e+” required type: String”)}},function(e,t,r){var n=Object.assign”http://nymag.com/”function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{}).supportedMediaTypes,i=void 0===n?[]:n;e&&r?”function”==typeof e.callBids?(f[r]=e,i.includes(“video”)&&t.videoAdapters.push(r),i.includes(“native”)&&a.nativeAdapters.push(r)):d.logError(“Bidder adaptor error for bidder code: “+r+”bidder must implement a callBids() function”):d.logError(“bidAdaptor or bidderCode not specified”)},t.aliasBidAdapter=function(e,r){var i,o;if(void 0===f[r]){var u=f[e];if(void 0===u)d.logError(‘bidderCode “http://nymag.com/”+e+”http://nymag.com/” is not an existing bidder.’,”adaptermanager.aliasBidAdapter”);else try{var c=void 0,l=(i=e,o=[],t.videoAdapters.includes(i)&&o.push(“video”),a.nativeAdapters.includes(i)&&o.push(“native”),o);if(u.constructor.prototype!=Object.prototype)(c=new u.constructor).setBidderCode(r);else{var p=u.getSpec();c=(0,s.newBidder)(n({},p,{code:r}))}this.registerBidAdapter(c,r,{supportedMediaTypes:l})}catch(t){d.logError(e+” bidder does not currently support aliasing.”,”adaptermanager.aliasBidAdapter”)}}else d.logMessage(‘alias name “http://nymag.com/”+r+”http://nymag.com/” has been already specified.’)},t.registerAnalyticsAdapter=function(e){var t=e.adapter,r=e.code;t&&r?”function”==typeof t.enableAnalytics?(t.code=r,m[r]=t):d.logError(‘Prebid Error: Analytics adaptor error for analytics “http://nymag.com/”+r+”http://nymag.com/”n analytics adapter must implement an enableAnalytics() function’):d.logError(“Prebid Error: analyticsAdapter or analyticsCode not specified”)},t.enableAnalytics=function(e){d.isArray(e)”http://nymag.com/”(e=[e]),d._each(e,function(e){var t=m[e.provider];t?t.enableAnalytics(e):d.logError(“Prebid Error: no analytics adapter found in registry forn “+e.provider+”.”)})},t.setBidderSequence=function(e){v[e]?b=e:d.logWarn(“Invalid order: “+e+”. Bidder Sequence was not set.”)},t.getBidAdapter=function(e){return f[e]},t.setS2SConfig=function(e){p=e},t.setS2STestingModule=function(e){l=e}},function(e,t){e.exports={JSON_MAPPING:{PL_CODE:”code”,PL_SIZE:”sizes”,PL_BIDS:”bids”,BD_BIDDER:”bidder”,BD_ID:”paramsd”,BD_PL_ID:”placementId”,ADSERVER_TARGETING:”adserverTargeting”,BD_SETTING_STANDARD:”standard”},REPO_AND_VERSION:”prebid_prebid_0.34.16″,DEBUG_MODE:”pbjs_debug”,STATUS:{GOOD:1,NO_BID:2},CB:{TYPE:{ALL_BIDS_BACK:”allRequestedBidsBack”,AD_UNIT_BIDS_BACK:”adUnitBidsBack”,BID_WON:”bidWon”,REQUEST_BIDS:”requestBids”}},EVENTS:{AUCTION_INIT:”auctionInit”,AUCTION_END:”auctionEnd”,BID_ADJUSTMENT:”bidAdjustment”,BID_TIMEOUT:”bidTimeout”,BID_REQUESTED:”bidRequested”,BID_RESPONSE:”bidResponse”,BID_WON:”bidWon”,SET_TARGETING:”setTargeting”,REQUEST_BIDS:”requestBids”,ADD_AD_UNITS:”addAdUnits”},EVENT_ID_PATHS:{bidWon:”adUnitCode”},GRANULARITY_OPTIONS:{LOW:”low”,MEDIUM:”medium”,HIGH:”high”,AUTO:”auto”,DENSE:”dense”,CUSTOM:”custom”},TARGETING_KEYS:[“hb_bidder”,”hb_adid”,”hb_pb”,”hb_size”,”hb_deal”],S2S:{DEFAULT_ENDPOINT:”https://prebid.adnxs.com/pbs/v1/auction”,SRC:”s2s”,ADAPTER:”prebidServer”,SYNC_ENDPOINT:”https://prebid.adnxs.com/pbs/v1/cookie_sync”,SYNCED_BIDDERS_KEY:”pbjsSyncs”}}},function(e,t,r){var n=Object.assign”http://nymag.com/”function(e){for(var t=1;tpbjs.cbTimeout+pbjs.timeoutBuffer&&t.executeCallback(!0)}function w(e){var r;m.emit(p.EVENTS.BID_RESPONSE,e),pbjs._bidsReceived.push(e),e.adUnitCode&&function(e){var t=this;return pbjs._bidsRequested.map(function(r){return r.bids.filter(o.adUnitsFilter.bind(t,pbjs._adUnitCodes)).filter(function(t){return t.placementCode===e})}).reduce(o.flatten,[]).map(function(e){return”indexExchange”===e.bidder?e.sizes.length:1}).reduce(I,0)===pbjs._bidsReceived.filter(function(t){return t.adUnitCode===e}).length}(e.adUnitCode)&&(r=[e.adUnitCode],x(b.byAdUnit,r)),S()&&t.executeCallback()}function T(e,t){var r={},i=pbjs.bidderSettings;return t&&i&&A(r,j(),t),e&&t&&i&&i[e]&&i[e][p.JSON_MAPPING.ADSERVER_TARGETING]?(A(r,i[e],t),t.alwaysUseBid=i[e].alwaysUseBid,t.sendStandardTargeting=i[e].sendStandardTargeting):y[e]&&(A(r,y[e],t),t.alwaysUseBid=y[e].alwaysUseBid,t.sendStandardTargeting=y[e].sendStandardTargeting),t.native&&(r=n({},r,(0,s.getNativeTargeting)(t))),r}function A(e,t,r){var n=t[p.JSON_MAPPING.ADSERVER_TARGETING];return r.size=r.getSize(),v._each(n,function(n){var i=n.key,o=n.val;if(e[i]&&v.logWarn(“The key: “+i+” is getting ovewritten”),v.isFn(o))try{o=o(r)}catch(e){v.logError(“bidmanager”,”ERROR”,e)}(void 0===t.suppressEmptyKeys”http://nymag.com/”!0!==t.suppressEmptyKeys)&&”hb_deal”!==i”http://nymag.com/”!v.isEmptyStr(o)&&null!=o?e[i]=o:v.logInfo(“suppressing empty key “http://nymag.com/”+i+”http://nymag.com/” from adserver targeting”)}),e}function x(e,t){var r=this;v.isArray(e)&&e.forEach(function(e){var n=t”http://nymag.com/”pbjs._adUnitCodes,i=[pbjs._bidsReceived.filter(o.adUnitsFilter.bind(r,n)).reduce(D,{})];e.apply(pbjs,i)})}function D(e,t){return e[t.adUnitCode]”http://nymag.com/”(e[t.adUnitCode]={bids:[]}),e[t.adUnitCode].bids.push(t),e}function C(e){var t=e.bidderCode,r=e.cpm,i=void 0;if(pbjs.bidderSettings&&(t&&pbjs.bidderSettings[t]&&”function”==typeof pbjs.bidderSettings[t].bidCpmAdjustment?i=pbjs.bidderSettings[t].bidCpmAdjustment:pbjs.bidderSettings[p.JSON_MAPPING.BD_SETTING_STANDARD]&&”function”==typeof pbjs.bidderSettings[p.JSON_MAPPING.BD_SETTING_STANDARD].bidCpmAdjustment&&(i=pbjs.bidderSettings[p.JSON_MAPPING.BD_SETTING_STANDARD].bidCpmAdjustment),i))try{r=i(e.cpm,n({},e))}catch(e){v.logError(“Error during bid adjustment”,”bidmanager.js”,e)}r>=0&&(e.cpm=r)}function j(){var e=l.config.getConfig(“priceGranularity”),t=pbjs.bidderSettings;return t[p.JSON_MAPPING.BD_SETTING_STANDARD]”http://nymag.com/”(t[p.JSON_MAPPING.BD_SETTING_STANDARD]={}),t[p.JSON_MAPPING.BD_SETTING_STANDARD][p.JSON_MAPPING.ADSERVER_TARGETING]”http://nymag.com/”(t[p.JSON_MAPPING.BD_SETTING_STANDARD][p.JSON_MAPPING.ADSERVER_TARGETING]=[{key:”hb_bidder”,val:function(e){return e.bidderCode}},{key:”hb_adid”,val:function(e){return e.adId}},{key:”hb_pb”,val:function(t){return e===p.GRANULARITY_OPTIONS.AUTO?t.pbAg:e===p.GRANULARITY_OPTIONS.DENSE?t.pbDg:e===p.GRANULARITY_OPTIONS.LOW?t.pbLg:e===p.GRANULARITY_OPTIONS.MEDIUM?t.pbMg:e===p.GRANULARITY_OPTIONS.HIGH?t.pbHg:e===p.GRANULARITY_OPTIONS.CUSTOM?t.pbCg:void 0}},{key:”hb_size”,val:function(e){return e.size}},{key:”hb_deal”,val:function(e){return e.dealId}}]),t[p.JSON_MAPPING.BD_SETTING_STANDARD]}t.getTimedOutBidders=function(){return pbjs._bidsRequested.map(h).filter(o.uniques).filter(function(e){return pbjs._bidsReceived.map(_).filter(o.uniques).indexOf(e)0″http://nymag.com/”e.dealId)&&(s=T(e.bidderCode,e)),e.adserverTargeting=n(e.adserverTargeting”http://nymag.com/”{},s)}(t,e),”video”===t.mediaType?(r=t,l.config.getConfig(“usePrebidCache”)&&!r.videoCacheKey?(0,u.store)([r],function(e,t){e?v.logWarn(“Failed to save to the video cache: “+e+”. Video bid must be discarded.”):(r.videoCacheKey=t[0].uuid,r.vastUrl”http://nymag.com/”(r.vastUrl=(0,u.getCacheUrl)(r.videoCacheKey)),w(r)),E(r)}):(w(r),E(r))):(w(t),E(t)))}),t.getKeyValueTargetingPairs=function(){return T.apply(void 0,arguments)},t.registerDefaultBidderSetting=function(e,t){y[e]=t},t.executeCallback=function(e){if(!e&&b.timer&&clearTimeout(b.timer),!0!==b.all.called&&(x(b.all),b.all.called=!0,e)){var r=t.getTimedOutBidders();r.length&&m.emit(p.EVENTS.BID_TIMEOUT,r)}if(b.oneTime){m.emit(g);try{x([b.oneTime])}catch(e){v.logError(“Error executing bidsBackHandler”,null,e)}finally{b.oneTime=null,b.timer=!1,pbjs.clearAuction()}}},t.externalCallbackReset=function(){b.all.called=!1},t.addOneTimeCallback=function(e,t){b.oneTime=e,b.timer=t},t.addCallback=function(e,t,r){t.id=e,p.CB.TYPE.ALL_BIDS_BACK===r?b.all.push(t):p.CB.TYPE.AD_UNIT_BIDS_BACK===r&&b.byAdUnit.push(t)},m.on(p.EVENTS.BID_ADJUSTMENT,function(e){C(e)}),t.adjustBids=function(){return C.apply(void 0,arguments)},t.getStandardBidderAdServerTargeting=function(){return j()[p.JSON_MAPPING.ADSERVER_TARGETING]}},function(e,t,r){var n=r(0);t.createBid=function(e,t){return new function(e,t){var r=t&&t.bidId”http://nymag.com/”n.getUniqueIdentifierStr(),i=e”http://nymag.com/”0;this.bidderCode=t&&t.bidder”http://nymag.com/””http://nymag.com/”,this.width=0,this.height=0,this.statusMessage=function(){switch(i){case 0:return”Pending”;case 1:return”Bid available”;case 2:return”Bid returned empty or error response”;case 3:return”Bid timed out”}}(),this.adId=r,this.mediaType=”banner”,this.getStatusCode=function(){return i},this.getSize=function(){return this.width+”x”+this.height}}(e,t)}},function(e,t,r){var n=r(0),i={};function o(e,t){var r=document.createElement(“script”);r.type=”text/javascript”,r.async=!0,t&&”function”==typeof t&&(r.readyState?r.onreadystatechange=function(){“loaded”!==r.readyState&&”complete”!==r.readyState”http://nymag.com/”(r.onreadystatechange=null,t())}:r.onload=function(){t()}),r.src=e;var n=document.getElementsByTagName(“head”);(n=n.length?n:document.getElementsByTagName(“body”)).length&&(n=n[0]).insertBefore(r,n.firstChild)}t.loadScript=function(e,t,r){e?r?i[e]?t&&”function”==typeof t&&(i[e].loaded?t():i[e].callbacks.push(t)):(i[e]={loaded:!1,callbacks:[]},t&&”function”==typeof t&&i[e].callbacks.push(t),o(e,function(){i[e].loaded=!0;try{for(var t=0;t3&&void 0!==arguments[3]?arguments[3]:{};try{var c=void 0,l=!1,f=u.method”http://nymag.com/”(r?”POST”:”GET”),p=”object”===(void 0===t?”undefined”:i(t))?t:{success:function(){a.logMessage(“xhr success”)},error:function(e){a.logError(“xhr error”,null,e)}};if(“function”==typeof t&&(p.success=t),window.XMLHttpRequest?void 0===(c=new window.XMLHttpRequest).responseType&&(l=!0):l=!0,l?((c=new window.XDomainRequest).onload=function(){p.success(c.responseText,c)},c.onerror=function(){p.error(“error”,c)},c.ontimeout=function(){p.error(“timeout”,c)},c.onprogress=function(){a.logMessage(“xhr onprogress”)}):c.onreadystatechange=function(){if(c.readyState===s){var e=c.status;e>=200&&e0;)try{this.cmd.shift().call()}catch(e){i.logError(“Error processing Renderer command: “,e)}}},function(e,t,r){Object.defineProperty(t,”__esModule”,{value:!0}),t.userSync=void 0;var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t”http://nymag.com/”r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{!n&&s.return&&s.return()}finally{if(i)throw o}}return r}(e,t);throw new TypeError(“Invalid attempt to destructure non-iterable instance”)},i=Object.assign”http://nymag.com/”function(e){for(var t=1;t=u.syncsPerBidder?o.logWarn(‘Number of user syncs exceeded for “{$bidder}”http://nymag.com/”):u.enabledBidders&&u.enabledBidders.length&&u.enabledBidders.indexOf(t)0&&void 0!==arguments[0]?arguments[0]:0;if(e)return window.setTimeout(c,Number(e));c()},t.triggerUserSyncs=function(){u.enableOverride&&t.syncUsers()},t}a.config.setDefaults({userSync:{syncEnabled:!0,pixelEnabled:!0,syncsPerBidder:5,syncDelay:3e3}});var d=!o.isSafariBrowser()&&o.cookiesAreEnabled();t.userSync=s({config:a.config.getConfig(“userSync”),browserSupportsCookies:d})},function(e,t){var r=e.exports=”undefined”!=typeof window&&window.Math==Math?window:”undefined”!=typeof self&&self.Math==Math?self:Function(“return this”)();”number”==typeof __g&&(__g=r)},function(e,t){var r=e.exports={version:”2.5.3″};”number”==typeof __e&&(__e=r)},function(e,t){e.exports=function(e){return”object”==_typeof(e)?null!==e:”function”==typeof e}},function(e,t,r){var n=r(16),i=r(14),o=r(28),a=r(412),s=r(48),d=”prototype”,u=function e(t,r,u){var c,l,f,p,g=t&e.F,v=t&e.G,m=t&e.P,b=t&e.B,y=v?n:t&e.S?n[r]”http://nymag.com/”(n[r]={}):(n[r]”http://nymag.com/”{})[d],h=v?i:i[r]”http://nymag.com/”(i[r]={}),_=h[d]”http://nymag.com/”(h[d]={});for(c in v&&(u=r),u)f=((l=!g&&y&&void 0!==y[c])?y:u)[c],p=b&&l?s(f,n):m&&”function”==typeof f?s(Function.call,f):f,y&&a(y,c,f,t&e.U),h[c]!=f&&o(h,c,p),m&&_[c]!=f&&(_[c]=f)};n.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t){e.exports=function(e){return”object”==_typeof(e)?null!==e:”function”==typeof e}},function(e,t,r){var n=r(19),i=r(20),o=r(36),a=r(103),s=”prototype”,d=function e(t,r,d){var u,c,l,f=t&e.F,p=t&e.G,g=t&e.S,v=t&e.P,m=t&e.B,b=t&e.W,y=p?i:i[r]”http://nymag.com/”(i[r]={}),h=y[s],_=p?n:g?n[r]:(n[r]”http://nymag.com/”{})[s];for(u in p&&(d=r),d)(c=!f&&_&&void 0!==_[u])&&u in y”http://nymag.com/”(l=c?_[u]:d[u],y[u]=p&&”function”!=typeof _[u]?d[u]:m&&c?o(l,n):b&&_[u]==l?function(e){var t=function(t,r,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,r)}return new e(t,r,n)}return e.apply(this,arguments)};return t[s]=e[s],t}(l):v&&”function”==typeof l?o(Function.call,l):l,v&&((y.virtual”http://nymag.com/”(y.virtual={}))[u]=l,t&e.R&&h&&!h[u]&&a(h,u,l)))};d.F=1,d.G=2,d.S=4,d.P=8,d.B=16,d.W=32,d.U=64,d.R=128,e.exports=d},function(e,t,r){e.exports=!r(37)(function(){return 7!=Object.defineProperty({},”a”,{get:function(){return 7}}).a})},function(e,t){e.exports=function(){}},function(e,t,r){var n=r(0),i=r(8),o=r(15);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s=r(3),d=r(0),u=r(2),c=t,l=[];function f(e){return”string”==typeof e?[e]:d.isArray(e)?e:pbjs._adUnitCodes”http://nymag.com/”[]}function p(){return s.getStandardBidderAdServerTargeting().map(function(e){return e.key}).concat(u.TARGETING_KEYS).filter(n.uniques)}function g(e){return{adUnitCode:e,cpm:0,adserverTargeting:{},timeToRespond:0}}c.resetPresetTargeting=function(e){if((0,n.isGptPubadsDefined)()){var t=f(e),r=pbjs.adUnits.filter(function(e){return t.includes(e.code)});window.googletag.pubads().getSlots().forEach(function(e){l.forEach(function(t){r.forEach(function(r){r.code!==e.getAdUnitPath()&&r.code!==e.getSlotElementId()”http://nymag.com/”e.setTargeting(t,null)})})})}},c.getAllTargeting=function(e){var t,r,s,d,v,m,b=f(e),y=(d=b,v=c.getWinningBids(d),m=p(),v=v.map(function(e){return a({},e.adUnitCode,Object.keys(e.adserverTargeting).filter(function(t){return void 0===e.sendStandardTargeting”http://nymag.com/”e.sendStandardTargeting”http://nymag.com/”-1===m.indexOf(t)}).map(function(t){return a({},t.substring(0,20),[e.adserverTargeting[t]])}))})).concat(function(e){var t=p();return pbjs._bidsReceived.filter(n.adUnitsFilter.bind(this,e)).map(function(e){if(e.alwaysUseBid)return a({},e.adUnitCode,Object.keys(e.adserverTargeting).map(function(r){if(!(t.indexOf(r)>-1))return a({},r.substring(0,20),[e.adserverTargeting[r]])}).filter(function(e){return e}))}).filter(function(e){return e})}(b)).concat(i.config.getConfig(“enableSendAllBids”)?(t=u.TARGETING_KEYS.concat(o.NATIVE_TARGETING_KEYS),r=[],s=(0,n.groupBy)(pbjs._bidsReceived,”adUnitCode”),Object.keys(s).forEach(function(e){var t=(0,n.groupBy)(s[e],”bidderCode”);Object.keys(t).forEach(function(e){return r.push(t[e].reduce(n.getHighestCpm,g()))})}),r.map(function(e){if(e.adserverTargeting)return a({},e.adUnitCode,(r=e,t.filter(function(t){return void 0!==e.adserverTargeting[t]}).map(function(e){return a({},(e+”_”+r.bidderCode).substring(0,20),[r.adserverTargeting[e]])})));var r}).filter(function(e){return e})):[]);return y.map(function(e){Object.keys(e).map(function(t){e[t].map(function(e){-1===l.indexOf(Object.keys(e)[0])&&(l=Object.keys(e).concat(l))})})}),y},c.setTargeting=function(e){window.googletag.pubads().getSlots().forEach(function(t){e.filter(function(e){return Object.keys(e)[0]===t.getAdUnitPath()”http://nymag.com/”Object.keys(e)[0]===t.getSlotElementId()}).forEach(function(e){return e[Object.keys(e)[0]].forEach(function(e){e[Object.keys(e)[0]].map(function(r){return d.logMessage(“Attempting to set key value for slot: “+t.getSlotElementId()+” key: “+Object.keys(e)[0]+” value: “+r),r}).forEach(function(r){t.setTargeting(Object.keys(e)[0],r)})})})})},c.getWinningBids=function(e){var t=f(e);return pbjs._bidsReceived.filter(function(e){return t.includes(e.adUnitCode)}).filter(function(e){return e.cpm>0}).map(function(e){return e.adUnitCode}).filter(n.uniques).map(function(e){return pbjs._bidsReceived.filter(function(t){return t.adUnitCode===e?t:null}).reduce(n.getHighestCpm,g(e))})},c.setTargetingForAst=function(){var e=pbjs.getAdserverTargeting();Object.keys(e).forEach(function(t){return Object.keys(e[t]).forEach(function(r){if(d.logMessage(“Attempting to set targeting for targetId: “+t+” key: “+r+” value: “+e[t][r]),d.isStr(e[t][r])”http://nymag.com/”d.isArray(e[t][r])){var n={};n[r.toUpperCase()]=e[t][r],window.apntag.setKeywords(t,n)}})})},c.isApntagDefined=function(){if(window.apntag&&d.isFn(window.apntag.setKeywords))return!0}},function(e,t,r){var n=r(406),i=r(411);e.exports=r(29)?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){e.exports=!r(30)(function(){return 7!=Object.defineProperty({},”a”,{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){var r=0,n=Math.random();e.exports=function(e){return”Symbol(“.concat(void 0===e?”http://nymag.com/”:e,”)_”,(++r+n).toString(36))}},function(e,t,r){var n=r(50);e.exports=Object(“z”).propertyIsEnumerable(0)?Object:function(e){return”String”==n(e)?e.split(“http://nymag.com/”):Object(e)}},function(e,t,r){var n=r(55)(“unscopables”),i=Array.prototype;null==i[n]&&r(28)(i,n,{}),e.exports=function(e){i[n][e]=!0}},function(e,t,r){Object.defineProperty(t,”__esModule”,{value:!0});var n=r(0),i=2,o={buckets:[{min:0,max:5,increment:.5}]},a={buckets:[{min:0,max:20,increment:.1}]},s={buckets:[{min:0,max:20,increment:.01}]},d={buckets:[{min:0,max:3,increment:.01},{min:3,max:8,increment:.05},{min:8,max:20,increment:.5}]},u={buckets:[{min:0,max:5,increment:.05},{min:5,max:10,increment:.1},{min:10,max:20,increment:.5}]};function c(e,t,r){var n=”http://nymag.com/”;if(!l(t))return n;var o=t.buckets.reduce(function(e,t){return e.max>t.max?e:t},{max:0}),a=t.buckets.find(function(t){if(e>o.max*r){var a=t.precision;void 0===a&&(a=i),n=(t.max*r).toFixed(a)}else if(e=t.min*r)return t});return a&&(n=function(e,t,r,n){void 0===r&&(r=i);var o=1/(t*n);return(Math.floor(e*o)/o).toFixed(r)}(e,a.increment,a.precision,r)),n}function l(e){if(n.isEmpty(e)”http://nymag.com/”!e.buckets”http://nymag.com/”!Array.isArray(e.buckets))return!1;var t=!0;return e.buckets.forEach(function(e){void 0!==e.min&&e.max&&e.increment”http://nymag.com/”(t=!1)}),t}t.getPriceBucketString=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=parseFloat(e);return isNaN(n)&&(n=”http://nymag.com/”),{low:”http://nymag.com/”===n?”http://nymag.com/”:c(e,o,r),med:”http://nymag.com/”===n?”http://nymag.com/”:c(e,a,r),high:”http://nymag.com/”===n?”http://nymag.com/”:c(e,s,r),auto:”http://nymag.com/”===n?”http://nymag.com/”:c(e,u,r),dense:”http://nymag.com/”===n?”http://nymag.com/”:c(e,d,r),custom:”http://nymag.com/”===n?”http://nymag.com/”:c(e,t,r)}},t.isValidPriceConfig=l},function(e,t,r){Object.defineProperty(t,”__esModule”,{value:!0}),t.hasNonVideoBidder=t.videoBidder=t.videoAdUnit=void 0,t.isValidVideoBid=function(e){var t=(0,i.getBidRequest)(e.adId),r=t&&(0,i.deepAccess)(t,”mediaTypes.video”),n=r&&(0,i.deepAccess)(r,”context”);return!t”http://nymag.com/”r&&n!==a?o.config.getConfig(“usePrebidCache”)”http://nymag.com/”!e.vastXml”http://nymag.com/”e.vastUrl?!(!e.vastUrl&&!e.vastXml):((0,i.logError)(“n This bid contains only vastXml and will not work when prebid-cache is disabled.n Try enabling prebid-cache with pbjs.setConfig({ usePrebidCache: true });n “),!1):n!==a”http://nymag.com/”!(!e.renderer&&!t.renderer)};var n=r(1),i=r(0),o=r(8),a=”outstream”,s=(t.videoAdUnit=function(e){var t=”video”===e.mediaType,r=(0,i.deepAccess)(e,”mediaTypes.video”);return t”http://nymag.com/”r},t.videoBidder=function(e){return n.videoAdapters.includes(e.bidder)});t.hasNonVideoBidder=function(e){return e.bids.filter(function(e){return!s(e)}).length}},function(e,t,r){var n=r(102);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},,function(e,t,r){var n=r(40);e.exports=Object(“z”).propertyIsEnumerable(0)?Object:function(e){return”String”==n(e)?e.split(“http://nymag.com/”):Object(e)}},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError(“Can’t call method on “+e);return e}},function(e,t,r){var n=r(43),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t,r){r(147),e.exports=r(20).Array.includes},function(e,t){var r;r=function(){return this}();try{r=r”http://nymag.com/”Function(“return this”)()”http://nymag.com/”(0,eval)(“this”)}catch(e){“object”==(“undefined”==typeof window?”undefined”:_typeof(window))&&(r=window)}e.exports=r},function(e,t,r){Object.defineProperty(t,”__esModule”,{value:!0}),t.getGlobal=function(){return window.pbjs},window.pbjs=window.pbjs”http://nymag.com/”{},window.pbjs.cmd=window.pbjs.cmd”http://nymag.com/”[],window.pbjs.que=window.pbjs.que”http://nymag.com/”[]},function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},function(e,t,r){var n=r(413);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,r){var n=r(48),i=r(32),o=r(51),a=r(53),s=r(414);e.exports=function(e,t){var r=1==e,d=2==e,u=3==e,c=4==e,l=6==e,f=5==e”http://nymag.com/”l,p=t”http://nymag.com/”s;return function(t,s,g){for(var v,m,b=o(t),y=i(b),h=n(s,g,3),_=a(y.length),I=0,S=r?p(t,_):d?p(t,0):void 0;_>I;I++)if((f”http://nymag.com/”I in y)&&(m=h(v=y[I],I,b),e))if(r)S[I]=m;else if(m)switch(e){case 3:return!0;case 5:return v;case 6:return I;case 2:S.push(v)}else if(c)return!1;return l?-1:u”http://nymag.com/”c?c:S}}},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t,r){var n=r(52);e.exports=function(e){return Object(n(e))}},function(e,t){e.exports=function(e){if(null==e)throw TypeError(“Can’t call method on “+e);return e}},function(e,t,r){var n=r(54),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t,r){var n=r(56)(“wks”),i=r(31),o=r(16).Symbol,a=”function”==typeof o;(e.exports=function(e){return n[e]”http://nymag.com/”(n[e]=a&&o[e]”http://nymag.com/”(a?o:i)(“Symbol.”+e))}).store=n},function(e,t,r){var n=r(16),i=”__core-js_shared__”,o=n[i]”http://nymag.com/”(n[i]={});e.exports=function(e){return o[e]”http://nymag.com/”(o[e]={})}},function(e,t,r){var n=r(58),i=r(53),o=r(421);e.exports=function(e){return function(t,r,a){var s,d=n(t),u=i(d.length),c=o(a,u);if(e&&r!=r){for(;u>c;)if((s=d[c++])!=s)return!0}else for(;u>c;c++)if((e”http://nymag.com/”c in d)&&d[c]===r)return e”http://nymag.com/”c”http://nymag.com/”0;return!e&&-1}}},function(e,t,r){var n=r(32),i=r(52);e.exports=function(e){return n(i(e))}},,,function(e,t){e.exports=function e(t){var r=Array.isArray(t)?[]:{};for(var n in t){var i=t[n];r[n]=i&&”object”==_typeof(i)?e(i):i}return r}},function(e,t,r){Object.defineProperty(t,”__esModule”,{value:!0}),t.setWindow=t.getScreenWidth=t.mapSizes=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(0)),i=void 0;function o(e){var t=e”http://nymag.com/”i”http://nymag.com/”window,r=t.document;return t.innerWidth?t.innerWidth:r.body.clientWidth?r.body.clientWidth:r.documentElement.clientWidth?r.documentElement.clientWidth:0}t.mapSizes=function(e){if(t=e.sizeMapping,!(n.isArray(t)&&t.length>0″http://nymag.com/”(n.logInfo(“No size mapping defined”),0)))return e.sizes;var t,r=o();if(!r){var i=e.sizeMapping.reduce(function(e,t){return e.minWidth=e.minWidth});return s&&s.sizes&&s.sizes.length?(a=s.sizes,n.logMessage(“AdUnit : “+e.code+” resized based on device width to : “+a)):n.logMessage(“AdUnit : “+e.code+” not mapped to any sizes for device width. This request will be suppressed.”),a},t.getScreenWidth=o,t.setWindow=function(e){i=e}},function(e,t,r){Object.defineProperty(t,”__esModule”,{value:!0}),t.store=function(e,t){var r,a={puts:e.map(o)};(0,n.ajax)(i,(r=t,{success:function(e){var t=void 0;try{t=JSON.parse(e).responses}catch(e){return void r(e,[])}t?r(null,t):r(new Error(“The cache server didn’t respond with a responses property.”),[])},error:function(e,t){r(new Error(“Error storing video ad in the cache: “+e+”: “+JSON.stringify(t)),[])}}),JSON.stringify(a),{contentType:”text/plain”,withCredentials:!0})},t.getCacheUrl=function(e){return i+”?uuid=”+e};var n=r(7),i=”https://prebid.adnxs.com/pbc/v1/cache”;function o(e){return{type:”xml”,value:e.vastXml?e.vastXml:’n n n prebid.org wrappern n n n n n “}}},function(e,t,r){Object.defineProperty(t,”__esModule”,{value:!0});var n=Object.assign”http://nymag.com/”function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:10;”function”==typeof e&&(a.push({fn:e,priority:t}),a.sort(function(e,t){return t.priority-e.priority}))},removeHook:function(e){a=a.filter(function(r){return r.fn===t”http://nymag.com/”r.fn!==e})}};return”string”==typeof r&&(o[r]=d),n(function(){for(var r=arguments.length,n=Array(r),i=0;i1?arguments[1]:void 0)}}),r(26)(“includes”)},function(e,t,r){var n=r(149),i=r(42),o=r(150);e.exports=function(e){return function(t,r,a){var s,d=n(t),u=i(d.length),c=o(a,u);if(e&&r!=r){for(;u>c;)if((s=d[c++])!=s)return!0}else for(;u>c;c++)if((e”http://nymag.com/”c in d)&&d[c]===r)return e”http://nymag.com/”c”http://nymag.com/”0;return!e&&-1}}},function(e,t,r){var n=r(39),i=r(41);e.exports=function(e){return n(i(e))}},function(e,t,r){var n=r(43),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=n(e))0&&void 0!==arguments[0]?arguments[0]:{},t=e.bidsBackHandler,r=e.timeout,n=e.adUnits,i=e.adUnitCodes;S.emit(“requestBids”);var o=m.cbTimeout=r”http://nymag.com/”g.config.getConfig(“bidderTimeout”);if(n=n”http://nymag.com/”m.adUnits,y.logInfo(“Invoking pbjs.requestBids”,arguments),i&&i.length?n=n.filter(function(e){return i.includes(e.code)}):i=n&&n.map(function(e){return e.code}),n.filter(s.videoAdUnit).filter(s.hasNonVideoBidder).forEach(function(e){var t=e.bids.filter(function(e){return!(0,s.videoBidder)(e)}).map(function(e){return e.bidder});y.logWarn(y.unsupportedBidderMessage(e,t)),e.bids=e.bids.filter(s.videoBidder)}),n.filter(d.nativeAdUnit).filter(d.hasNonNativeBidder).forEach(function(e){var t=e.bids.filter(function(e){return!(0,d.nativeBidder)(e)}).map(function(e){return e.bidder});y.logWarn(y.unsupportedBidderMessage(e,t)),e.bids=e.bids.filter(d.nativeBidder)}),j)B.push(function(){m.requestBids({bidsBackHandler:t,timeout:o,adUnits:n,adUnitCodes:i})});else{if(j=!0,m._adUnitCodes=i,h.externalCallbackReset(),m._bidsRequested=[],m._bidsReceived=m._bidsReceived.filter(function(e){return!m._adUnitCodes.includes(e.adUnitCode)}),!n”http://nymag.com/”0===n.length)return y.logMessage(“No adUnits configured. No bids requested.”),”function”==typeof t&&h.addOneTimeCallback(t,!1),void h.executeCallback();var a=h.executeCallback.bind(h,!0),u=setTimeout(a,o);(0,p.setAjaxTimeout)(o),”function”==typeof t&&h.addOneTimeCallback(t,u),_.callBids({adUnits:n,adUnitCodes:i,cbTimeout:o}),0===m._bidsRequested.length&&h.executeCallback()}},m.addAdUnits=function(e){y.logInfo(“Invoking pbjs.addAdUnits”,arguments),y.isArray(e)?(e.forEach(function(e){return e.transactionId=y.generateUUID()}),m.adUnits.push.apply(m.adUnits,e)):”object”===(void 0===e?”undefined”:n(e))&&(e.transactionId=y.generateUUID(),m.adUnits.push(e)),S.emit(C)},m.onEvent=function(e,t,r){y.logInfo(“Invoking pbjs.onEvent”,arguments),y.isFn(t)?!r”http://nymag.com/”O[e].call(null,r)?S.on(e,t,r):y.logError(‘The id provided is not valid for event “http://nymag.com/”+e+”http://nymag.com/” and no handler was set.’):y.logError(‘The event handler provided is not a function and was not set on event “http://nymag.com/”+e+”http://nymag.com/”.’)},m.offEvent=function(e,t,r){y.logInfo(“Invoking pbjs.offEvent”,arguments),r&&!O[e].call(null,r)”http://nymag.com/”S.off(e,t,r)},m.addCallback=function(e,t){y.logWarn(“pbjs.addCallback will be removed in Prebid 1.0. Please use onEvent instead”),y.logInfo(“Invoking pbjs.addCallback”,arguments);var r=null;return e&&t&&”function”==typeof t?(r=y.getUniqueIdentifierStr,h.addCallback(r,t,e),r):(y.logError(“error registering callback. Check method signature”),r)},m.removeCallback=function(){return y.logWarn(“pbjs.removeCallback will be removed in Prebid 1.0. Please use offEvent instead.”),null},m.registerBidAdapter=function(e,t){y.logInfo(“Invoking pbjs.registerBidAdapter”,arguments);try{_.registerBidAdapter(e(),t)}catch(e){y.logError(“Error registering bidder adapter : “+e.message)}},m.registerAnalyticsAdapter=function(e){y.logInfo(“Invoking pbjs.registerAnalyticsAdapter”,arguments);try{_.registerAnalyticsAdapter(e)}catch(e){y.logError(“Error registering analytics adapter : “+e.message)}},m.bidsAvailableForAdapter=function(e){y.logInfo(“Invoking pbjs.bidsAvailableForAdapter”,arguments),m._bidsRequested.find(function(t){return t.bidderCode===e}).bids.map(function(t){return i(t,I.createBid(1),{bidderCode:e,adUnitCode:t.placementCode})}).map(function(e){return m._bidsReceived.push(e)})},m.createBid=function(e){return y.logInfo(“Invoking pbjs.createBid”,arguments),I.createBid(e)},m.addBidResponse=function(e,t){y.logWarn(“pbjs.addBidResponse will be removed in Prebid 1.0. Each bidder will be passed a reference to addBidResponse function in callBids as an argument. See https://github.com/prebid/Prebid.js/issues/1087 for more details.”),y.logInfo(“Invoking pbjs.addBidResponse”,arguments),h.addBidResponse(e,t)},m.loadScript=function(e,t,r){y.logInfo(“Invoking pbjs.loadScript”,arguments),(0,f.loadScript)(e,t,r)},m.enableAnalytics=function(e){e&&!y.isEmpty(e)?(y.logInfo(“Invoking pbjs.enableAnalytics for: “,e),_.enableAnalytics(e)):y.logError(“pbjs.enableAnalytics should be called with option {}”)},m.aliasBidder=function(e,t){y.logInfo(“Invoking pbjs.aliasBidder”,arguments),e&&t?_.aliasBidAdapter(e,t):y.logError(“bidderCode and alias must be passed as arguments”,”pbjs.aliasBidder”)},m.setPriceGranularity=function(e){y.logWarn(“pbjs.setPriceGranularity will be removed in Prebid 1.0. Use pbjs.setConfig({ priceGranularity: }) instead.”),y.logInfo(“Invoking pbjs.setPriceGranularity”,arguments),g.config.setConfig({priceGranularity:e})},m.enableSendAllBids=function(){g.config.setConfig({enableSendAllBids:!0})},m.getAllWinningBids=function(){return m._winningBids},m.buildMasterVideoTagFromAdserverTag=function(e,t){y.logWarn(“pbjs.buildMasterVideoTagFromAdserverTag will be removed in Prebid 1.0. Include the dfpVideoSupport module in your build, and use the pbjs.adservers.dfp.buildVideoAdUrl function instead”),y.logInfo(“Invoking pbjs.buildMasterVideoTagFromAdserverTag”,arguments);var r=(0,u.parse)(e);if(0===m._bidsReceived.length)return e;if(“dfp”===t.adserver.toLowerCase()){var n=E.dfpAdserver(t,r);return n.verifyAdserverTag()”http://nymag.com/”y.logError(“Invalid adserverTag, required google params are missing in query string”),n.appendQueryParams(),(0,u.format)(n.urlComponents)}y.logError(“Only DFP adserver is supported”)},m.setBidderSequence=_.setBidderSequence,m.getHighestCpmBids=function(e){return w.getWinningBids(e)},m.setS2SConfig=function(e){if(y.contains(Object.keys(e),”accountId”))if(y.contains(Object.keys(e),”bidders”)){var t=i({enabled:!1,endpoint:b.S2S.DEFAULT_ENDPOINT,timeout:1e3,maxBids:1,adapter:b.S2S.ADAPTER,syncEndpoint:b.S2S.SYNC_ENDPOINT,cookieSet:!0,bidders:[]},e);_.setS2SConfig(t)}else y.logError(“bidders missing in Server to Server config”);else y.logError(“accountId missing in Server to Server config”)},m.getConfig=g.config.getConfig,m.setConfig=g.config.setConfig,m.que.push(function(){return(0,c.listenMessagesFromCreative)()}),m.cmd.push=function(e){if(“function”==typeof e)try{e.call()}catch(e){y.logError(“Error processing command :”,e.message,e.stack)}else y.logError(“Commands written into pbjs.cmd.push must be wrapped in a function”)},m.que.push=m.cmd.push,m.processQueue=function(){P(m.que),P(m.cmd)}},function(e,t,r){r(404),r(417),r(419),r(422),Number.isInteger=Number.isInteger”http://nymag.com/”function(e){return”number”==typeof e&&isFinite(e)&&Math.floor(e)===e}},function(e,t,r){r(405),e.exports=r(14).Array.find},function(e,t,r){var n=r(22),i=r(49)(5),o=”find”,a=!0;o in[]&&Array(1)[o](function(){a=!1}),n(n.P+n.F*a,”Array”,{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),r(33)(o)},function(e,t,r){var n=r(407),i=r(408),o=r(410),a=Object.defineProperty;t.f=r(29)?Object.defineProperty:function(e,t,r){if(n(e),t=o(t,!0),n(r),i)try{return a(e,t,r)}catch(e){}if(“get”in r”http://nymag.com/””set”in r)throw TypeError(“Accessors not supported!”);return”value”in r&&(e[t]=r.value),e}},function(e,t,r){var n=r(23);e.exports=function(e){if(!n(e))throw TypeError(e+” is not an object!”);return e}},function(e,t,r){e.exports=!r(29)&&!r(30)(function(){return 7!=Object.defineProperty(r(409)(“div”),”a”,{get:function(){return 7}}).a})},function(e,t,r){var n=r(23),i=r(16).document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,r){var n=r(23);e.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&”function”==typeof(r=e.toString)&&!n(i=r.call(e)))return i;if(“function”==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i;if(!t&&”function”==typeof(r=e.toString)&&!n(i=r.call(e)))return i;throw TypeError(“Can’t convert object to primitive value”)}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,r){var n=r(16),i=r(28),o=r(47),a=r(31)(“src”),s=”toString”,d=Function[s],u=(“http://nymag.com/”+d).split(s);r(14).inspectSource=function(e){return d.call(e)},(e.exports=function(e,t,r,s){var d=”function”==typeof r;d&&(o(r,”name”)”http://nymag.com/”i(r,”name”,t)),e[t]!==r&&(d&&(o(r,a)”http://nymag.com/”i(r,a,e[t]?”http://nymag.com/”+e[t]:u.join(String(t)))),e===n?e[t]=r:s?e[t]?e[t]=r:i(e,t,r):(delete e[t],i(e,t,r)))})(Function.prototype,s,function(){return”function”==typeof this&&this[a]”http://nymag.com/”d.call(this)})},function(e,t){e.exports=function(e){if(“function”!=typeof e)throw TypeError(e+” is not a function!”);return e}},function(e,t,r){var n=r(415);e.exports=function(e,t){return new(n(e))(t)}},function(e,t,r){var n=r(23),i=r(416),o=r(55)(“species”);e.exports=function(e){var t;return i(e)&&(“function”!=typeof(t=e.constructor)”http://nymag.com/”t!==Array&&!i(t.prototype)”http://nymag.com/”(t=void 0),n(t)&&null===(t=t[o])&&(t=void 0)),void 0===t?Array:t}},function(e,t,r){var n=r(50);e.exports=Array.isArray”http://nymag.com/”function(e){return”Array”==n(e)}},function(e,t,r){r(418),e.exports=r(14).Array.findIndex},function(e,t,r){var n=r(22),i=r(49)(6),o=”findIndex”,a=!0;o in[]&&Array(1)[o](function(){a=!1}),n(n.P+n.F*a,”Array”,{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),r(33)(o)},function(e,t,r){r(420),e.exports=r(14).Array.includes},function(e,t,r){var n=r(22),i=r(57)(!0);n(n.P,”Array”,{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),r(33)(“includes”)},function(e,t,r){var n=r(54),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=n(e))u;)for(var f,p=s(arguments[u++]),g=c?n(p).concat(c(p)):n(p),v=g.length,m=0;v>m;)l.call(p,f=g[m++])&&(r[f]=p[f]);return r}:d},function(e,t,r){var n=r(426),i=r(428);e.exports=Object.keys”http://nymag.com/”function(e){return n(e,i)}},function(e,t,r){var n=r(47),i=r(58),o=r(57)(!1),a=r(427)(“IE_PROTO”);e.exports=function(e,t){var r,s=i(e),d=0,u=[];for(r in s)r!=a&&n(s,r)&&u.push(r);for(;t.length>d;)n(s,r=t[d++])&&(~o(u,r)”http://nymag.com/”u.push(r));return u}},function(e,t,r){var n=r(56)(“keys”),i=r(31);e.exports=function(e){return n[e]”http://nymag.com/”(n[e]=i(e))}},function(e,t){e.exports=”constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf”.split(“,”)},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,r){Object.defineProperty(t,”__esModule”,{value:!0}),t.listenMessagesFromCreative=function(){addEventListener(“message”,s,!1)};var n,i=(n=r(12))&&n.__esModule?n:{default:n},o=r(15),a=r(2).EVENTS.BID_WON;function s(e){var t,r,n,s,d,u,c,l,f,p,g,v,m,b=e.message?”message”:”data”,y={};try{y=JSON.parse(e[b])}catch(e){return}if(y.adId){var h=pbjs._bidsReceived.find(function(e){return e.adId===y.adId});”Prebid Request”===y.message&&(t=h,r=y.adServerDomain,n=e.source,s=t.adId,d=t.ad,u=t.adUrl,c=t.width,l=t.height,s&&(p=(f=t).adUnitCode,g=f.width,v=f.height,(m=document.getElementById(window.googletag.pubads().getSlots().find(function(e){return e.getAdUnitPath()===p”http://nymag.com/”e.getSlotElementId()===p}).getSlotElementId()).querySelector(“iframe”)).width=”http://nymag.com/”+g,m.height=”http://nymag.com/”+v,n.postMessage(JSON.stringify({message:”Prebid Response”,ad:d,adUrl:u,adId:s,width:c,height:l}),r)),pbjs._winningBids.push(h),i.default.emit(a,h)),”Prebid Native”===y.message&&((0,o.fireNativeTrackers)(y,h),pbjs._winningBids.push(h),i.default.emit(a,h))}}},function(e,t,r){var n=r(13),i=r(27);t.dfpAdserver=function(e,t){var r=new function(e){this.name=e.adserver,this.code=e.code,this.getWinningBidByCode=function(){return(0,i.getWinningBids)(this.code)[0]}}(e);r.urlComponents=t;var o={env:”vp”,gdfp_req:”1″,impl:”s”,unviewed_position_start:”1″},a=[“output”,”iu”,”sz”,”url”,”correlator”,”description_url”,”hl”];return r.appendQueryParams=function(){var e,t=r.getWinningBidByCode();t&&(this.urlComponents.search.description_url=encodeURIComponent(t.vastUrl),this.urlComponents.search.cust_params=(e=t.adserverTargeting,encodeURIComponent((0,n.formatQS)(e))),this.urlComponents.search.correlator=Date.now())},r.verifyAdserverTag=function(){for(var e in o)if(!this.urlComponents.search.hasOwnProperty(e)”http://nymag.com/”this.urlComponents.search[e]!==o[e])return!1;for(var t in a)if(!this.urlComponents.search.hasOwnProperty(a[t]))return!1;return!0},r}}]),pbjsChunk([119],{138:function(e,t,r){e.exports=r(139)},139:function(e,t,r){var n,i,o=Object.assign”http://nymag.com/”function(e){for(var t=1;t0&&(p=”size=”+g[0],v>1)){p+=”&promo_u.parseQueryStringParameters(s);b&&(f+=b);var” y=”o({},e.params);delete” y.placementid y.memberid y.invcode y.query y.referrer y.alt_referrer y.member y.usepaymentrule h=”u.parseQueryStringParameters(y);return” request built: date e.callbids=”function(e){for(var” t=”e.bids,n=0;nn let win = window;n for (const i=0; i’):(i.width=e.width,i.height=e.height,i.ad=e.creative)):i=c(),i}return{callBids:function(t){!window.criteo_pubtag”http://nymag.com/”window.criteo_pubtag instanceof Array?(d(t),o.loadScript(e,function(){},!0)):d(t)}}};a.registerBidAdapter(new d,”criteo”),e.exports=d}},[178]),pbjsChunk([99],{218:function(e,t,r){e.exports=r(219)},219:function(e,t,r){var n=Object.assign”http://nymag.com/”function(e){for(var t=1;t=0&&(this.timeoutDelay=r),this.siteID=e,this.impressions=[],this._parseFnName=void 0,this.sitePage=void 0;try{this.sitePage=d.getTopWindowUrl()}catch(e){}if(void 0!==this.sitePage&&”http://nymag.com/”!==this.sitePage”http://nymag.com/”(top===self?this.sitePage=location.href:this.sitePage=document.referrer),top===self?this.topframe=1:this.topframe=0,void 0!==t){if(“function”!=typeof t)throw”Invalid jsonp target function”;this._parseFnName=”cygnus_index_args.parseFn”}void 0===_IndexRequestData.requestCounter?_IndexRequestData.requestCounter=Math.floor(256*Math.random()):_IndexRequestData.requestCounter=(_IndexRequestData.requestCounter+1)%256,this.requestID=String((new Date).getTime()%2592e3*256+_IndexRequestData.requestCounter+256),this.initialized=!0}i.prototype.serialize=function(){var e='{“id”:”http://nymag.com/”+this.requestID+”http://nymag.com/”,”site”:{“page”:”http://nymag.com/”+n(this.sitePage)+”http://nymag.com/”‘;”string”==typeof document.referrer&&”http://nymag.com/”!==document.referrer&&(e+=’,”ref”:”http://nymag.com/”+n(document.referrer)+”http://nymag.com/”‘),e+=’},”imp”:[‘;for(var t=0;t0&&(e+=’,”ext”: {‘+i.join()+”}”),t+1===this.impressions.length?e+=”}”:e+=”},”}return e+”]}”},i.prototype.setPageOverride=function(e){return”string”==typeof e&&!e.match(/^s*$/)&&(this.sitePage=e,!0)},i.prototype.addImpression=function(e,t,r,n,i,o){var a={id:String(this.impressions.length+1)};if(“number”!=typeof e”http://nymag.com/”e=0))return null;a.siteID=o}return this.impressions.push(a),a.id},i.prototype.buildRequest=function(){if(0!==this.impressions.length&&!0===this.initialized){var e,t=encodeURIComponent(this.serialize());(function(e){for(var t=window,r=”http://nymag.com/”,n=0;n=0&&(e+=”&t=”+this.timeoutDelay),e}};try{if(“undefined”==typeof cygnus_index_args”http://nymag.com/”void 0===cygnus_index_args.siteID”http://nymag.com/”void 0===cygnus_index_args.slots)return;var o,a,s=new i(cygnus_index_args.siteID,cygnus_index_args.parseFn,cygnus_index_args.timeout);cygnus_index_args.url&&”string”==typeof cygnus_index_args.url&&s.setPageOverride(cygnus_index_args.url),_IndexRequestData.impIDToSlotID[s.requestID]={},_IndexRequestData.reqOptions[s.requestID]={};for(var u=0;u 0. Got: “+r),0))&&(void 0!==(t=e.params.video.playerType)&&d.isStr(t)?(t=t.toUpperCase(),_[t]”http://nymag.com/”(d.logError(“Player type is invalid, must be one of: “+Object.keys(_)),0)):(d.logError(“Player type is invalid, must be one of: “+Object.keys(_)),0))&&function(e){if(!d.isArray(e)”http://nymag.com/”d.isEmpty(e))return d.logError(“Protocol array is not an array. Got: “+e),!1;for(var t=0;t0)return e;var t,r,n}(e)){e=function(e){e.params.video.siteID=+e.params.video.siteID,e.params.video.maxduration=+e.params.video.maxduration,e.params.video.protocols=e.params.video.protocols.reduce(function(e,t){return e.concat(I[t])},[]);var t=e.params.video.minduration;void 0!==t&&O(t)”http://nymag.com/”(d.logInfo(“Using default value for ‘minduration’, default: “+h.minduration),e.params.video.minduration=h.minduration);var r=e.params.video.startdelay;void 0!==r&&function(e){if(void 0===w[e]){var t=+e;if(isNaN(t)”http://nymag.com/”!d.isNumber(t)”http://nymag.com/”t= -2. Got: “+e),!1}return!0}(r)”http://nymag.com/”(d.logInfo(“Using default value for ‘startdelay’, default: “+h.startdelay),e.params.video.startdelay=h.startdelay);var n,i=e.params.video.linearity;void 0!==i&&(E[n=i]”http://nymag.com/”(d.logInfo(“Linearity is invalid, must be one of: “+Object.keys(E)+”. Got: “+n),0))”http://nymag.com/”(d.logInfo(“Using default value for ‘linearity’, default: “+h.linearity),e.params.video.linearity=h.linearity);var o=e.params.video.mimes,a=e.params.video.playerType.toUpperCase();void 0!==o&&function(e){if(!d.isArray(e)”http://nymag.com/”d.isEmpty(e))return d.logError(“MIMEs array is not an array. Got: “+e),!1;for(var t=0;t0&&function(e,t){var r,n,i,o={id:e,imp:t,site:{page:d.getTopWindowUrl()}};if(!d.isEmpty(o.imp)){var a=(r=o.imp[0].ext.siteID,n=o,(i=”https:”===window.location.protocol?c.parse(“https://as-sec.casalemedia.com/cygnus?v=8&fn=pbjs.handleCygnusResponse”):c.parse(“http://as.casalemedia.com/cygnus?v=8&fn=pbjs.handleCygnusResponse”)).search.s=r,i.search.r=encodeURIComponent(JSON.stringify(n)),c.format(i));l.default.loadScript(a)}}(e.bidderRequestId,o),cygnus_index_args.slots.length>20&&d.logError(“Too many unique sizes on slots, will use the first 20.”,v),cygnus_index_args.slots.length>0&&l.default.loadScript(C());var u=!1;window.cygnus_index_ready_state=function(){if(!u){u=!0;try{var e=_IndexRequestData.targetIDToBid;for(var r in t){var n=t[r].placementCode,o=[];for(var c in e){var l=/^(Td_)?(.+)_(d+)$/.exec(c);if(l){var p=l[1]”http://nymag.com/””http://nymag.com/”,b=l[2],y=l[3],h=j(cygnus_index_args,p+b);if(b===r){var _=a.default.createBid(1);_.cpm=y/100,_.ad=e[c][0],_.bidderCode=m,_.width=h.width,_.height=h.height,_.siteID=h.siteID,”object”===i(_IndexRequestData.targetIDToResp)&&”object”===i(_IndexRequestData.targetIDToResp[c])&&void 0!==_IndexRequestData.targetIDToResp[c].dealID?(void 0===_IndexRequestData.targetAggregate.private[n]&&(_IndexRequestData.targetAggregate.private[n]=[]),_.dealId=_IndexRequestData.targetIDToResp[c].dealID,_IndexRequestData.targetAggregate.private[n].push(b+”_”+_IndexRequestData.targetIDToResp[c].dealID)):(void 0===_IndexRequestData.targetAggregate.open[n]&&(_IndexRequestData.targetAggregate.open[n]=[]),_IndexRequestData.targetAggregate.open[n].push(b+”_”+y)),o.push(_)}}else d.logError(“Unable to parse “+c+”, skipping slot”,v)}if(o.length>0)for(var I=0;I0&&r.length>0&&a.push({code:t.id,sizes:r,bids:n})}),a}(),r=new Event(“nymPrebidCleared”),n.length>0?window.pbjs.que.push(function(){window.pbjs.addAdUnits(n),window.pbjs.requestBids({bidsBackHandler:h})}):a=0,setTimeout(function(){window.prebid.cleared=!0,h(),window.dispatchEvent(r)},a))},10),setTimeout(function(){c&&(i.clearInterval(c),i.googletag.pubads().refresh(),i.location.href.indexOf(“pbjs_debug=true”)>-1&&console.log(“MESSAGE: Timeout for prebid load exceeded, aborting”))},500)),r=function(e){var t,a,n=e.data;return n.loaded?e:(n.loaded=!0,t=null,(t=n.sizes?l.defineSlot(n.name,n.sizes,n.id).addService(l.pubads()):l.defineOutOfPageSlot(n.name,n.id).addService(l.pubads())).setTargeting(“adid”,n.id),b.hasOwnProperty(“utm_campaign”)&&t.setTargeting(“utmcamp”,b.utm_campaign),a=p.getAdCount(n.label),t.setTargeting(“label”,n.label+”_”+n.site+”-“+a),l.display(n.id),l.pubads().addEventListener(“slotOnload”,function(){i.NYM.analytics.firstAdLoadTime”http://nymag.com/”(i.NYM.analytics.firstAdLoadTime=i.performance.now(),i.NYM.analytics.firstAdLoadLabel=e.data.label)}),window.prebid&&window.prebid.cleared&&(window.pbjs.setTargetingForGPTAsync(),l.pubads().refresh([t],{changeCorrelator:!1})),e.slot=t,e)},o=function(e){var a,i,n,r=t(),o=e.getAttribute(“data-name”),d=e.getAttribute(“data-sizes”),s=e.getAttribute(“data-label”),u=e.getAttribute(“data-site”);r=e.id,d&&d.length?(d=d.split(“,”),a=[],_map(d,function(e){e=e.split(“x”),i=parseInt(e[0]),n=parseInt(e[1]),a.push([i,n])})):(e.classList.add(“oop”),a=!1),this.data={id:r,name:o,sizes:a,loaded:!1,label:s,site:u},g[r]=this},s=function(e){l.cmd.push(function(){var t=r(e);g[e.data.id]=t})},d=function(e){e.slot?(window.pbjs.setTargetingForGPTAsync(),l.pubads().refresh([e.slot],{changeCorrelator:!1})):e&&s(e)},l.cmd.push(function(){var e,t,n,r=page.getMeta(“article:tag”),o=page.getMeta(“author”),d=i.location.href,s=(e=a.head.querySelector(“.head-gtm”),t=a.body.querySelector(“.gtm”),e&&”top”===e.getAttribute(“data-gtm”)?”gtmtop”:t&&”bottom”===t.getAttribute(“data-gtm”)?”gtmbottom”:”http://nymag.com/”);n=[],_forEach([r,o,s],function(e){_forEach(e.split(“,”),function(e){(e=e.trim().toLowerCase().replace(/s/g,”-“).replace(/”http://nymag.com/”’/g,”http://nymag.com/”)).length&&n.push(e)})}),l.pubads().setTargeting(“kw”,n),d=d.slice(d.lastIndexOf(“/”)+1),l.pubads().setTargeting(“pn”,d),l.companionAds().setRefreshUnfilledSlots(!0),l.pubads().enableAsyncRendering(),l.enableServices()}),this.load=s,this.create=function(e){return new o(e)},this.refresh=function(e){var t;_isString(e)?(t=this.getById(e),d(t)):d(e)},this.remove=function(e){var t=e.data.id;a.getElementById(t).innerHTML=”http://nymag.com/”},this.getAdCount=function(e){var t,a=0,i=Object.keys(g);return _each(i,function(i){(t=g[i]).data.loaded&&t.data.label===e&&a++}),a},this.getById=function(e){return g[e]},u=_debounce(function(){var e={TopLeaderboard:1,RightColTopMPU:2,outOfPage:99,”homepageTakeover/TopLeaderboard”:1},t=_sortBy(f,function(t){return e[t.data.label]”http://nymag.com/”10});_forEach(t,function(e){return s(e)}),f=[]},10),this.addToPageLoadQueue=function(e){f.push(e),u()}}]);
}, {“6″:6,”15″:15,”28″:28,”39″:39,”62″:62,”101″:101,”111″:111,”115″:115,”120″:120,”126″:126,”158”:158}];
window.modules[“chartbeat.legacy”] = [function(require,module,exports){“use strict”;var page=require(120);DS.service(“chartbeat”,[“$document”,”$window”,”login”,function(t,e,a){var n,o,c,s,i,r,g,p=t.getElementById(“cb-sponsor-data”);e._sf_async_config={uid:19989,useCanonical:!0,domain:”nymag.com”,sections:(n=page.getSiteBase(),o=page.getSiteName(),c=o”http://nymag.com/”n,”The Cut”!==c&&”Vulture”!==c”http://nymag.com/”(c+=[“,”,c,page.getChannel()].join(“http://nymag.com/”)),c)},(s=page.getPrimaryPageComponent())&&”Sponsored Story”===s.getAttribute(“data-type”)?(e._sf_async_config.sponsorName=p&&p.getAttribute(“data-sponsor”),e._sf_async_config.type=”Sponsored”):e._sf_async_config.sponsorName=void 0,(i=t.querySelectorAll(“.article-author”)).length&&(e._sf_async_config.authors=i[0].textContent.trim()),e._cbq=e._cbq”http://nymag.com/”[],e._cbq.push([“_acct”,a.isLoggedIn()?”lgdin”:”anon”]),r=function(){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)},”complete”===t.readyState?r():(g=”function”==typeof e.onload?e.onload:function(){},e.onload=function(){g(),r()})}]),setTimeout(function(){DS.get(“chartbeat”)},0);
}, {“120”:120}];
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[“cookie.legacy”] = [function(require,module,exports){“use strict”;DS.service(“cookie”,[“$document”,function(t){var e=this;this.set=function(t,i,n){var s,r=”http://nymag.com/”;n&&((s=new Date).setTime(s.getTime()+864e5*n),r=”; expires=”+s.toGMTString()),e.nativeSet(t+”=”+i+r+”; path=/”)},this.get=function(t){var i,n,s,r=e.nativeGet().split(“;”);for(t+=”=”,i=0,n=r.length;i0&&(t.dataLayer.push.apply(t.dataLayer,u),u=[]),d=!1)}function L(t,i){var n=(i”http://nymag.com/”e.body).querySelectorAll(“[“+l+”]”);_each(n,function(e){var i=e.getAttribute(l),n=f[i];n&&n.init&&n.init(e,i,t)})}t.dataLayer=t.dataLayer”http://nymag.com/”[],this.init=function(u){var d=!!e.head.querySelector(“.head-gtm”);r”http://nymag.com/”(r=!0,i.onceReady(function(i){n=i,d”http://nymag.com/”function(i,n){a.reportNow({event:”dataLayer-initialized”,userDetails:{newYorkMediaUserID:n.clientId,loyaltyLevel:n.userLoyalty},pageDetails:{pageUri:n.pageUri,vertical:o,pageType:c,author:s}}),function(t,e,i,n,a){t[n]=t[n]”http://nymag.com/”[],t[n].push({“gtm.start”:(new Date).getTime(),event:”gtm.js”});var r=e.getElementsByTagName(i)[0],o=e.createElement(i);o.async=!0,o.src=”https://www.googletagmanager.com/gtm.js?id=”+a,r.parentNode.insertBefore(o,r)}(t,e,”script”,”dataLayer”,i)}(u,i),L(i),a.reportNow(),e.addEventListener(“mouseleave”,function(t){t.clientY=_size(o)}function m(){var e;e=_mapValues(o,n.get),a=_omitBy(e,function(e){return”http://nymag.com/”===e”http://nymag.com/”_isUndefined(e)”http://nymag.com/”_isNull(e)})}function h(){return f()”http://nymag.com/”m()”http://nymag.com/”f()}function g(){return h()&&a}function _(e){s.redirect(“login”,function(e){return{userId:e.id,session_id:e.session,username:e.username,remember_me:!!e.rememberMe}}(e))}function v(e,n){d(c+”/account/email/”+(e”http://nymag.com/””http://nymag.com/”),n)}function w(e,n){d(c+”/account/username/”+(e”http://nymag.com/””http://nymag.com/”),n)}function b(e,n){v(e,function(t,i){w(e,function(e,s){var a=i”http://nymag.com/”s;n(a?null:t”http://nymag.com/”e,a)})})}function p(e,n){var t,i=(t=[e.first_name,e.last_name,n],_filter(t,_isString).join(“.”).toLowerCase().replace(/[^.’A-Za-z]+/g,”http://nymag.com/”));w(i,function(t,a){a”http://nymag.com/”t?p(e,n?n+1:1):(e.username=i,s.trigger(“open:register-fb-account”,e))})}function k(e){ajax.sendJsonReceiveJson({method:”POST”,url:c+”/account/social/login/facebook”,data:u(r,e)},function(n,t,i){if(n”http://nymag.com/”200!==i.status)switch(_get(t,”reasonCode”)){case 0:p(e);break;case 2:s.trigger(“open:link-fb-account”,e)}else _(l(t))})}function q(e){var n=window.location.search.match(new RegExp(“[?&]”+e+”=([^]*)”));return n&&n[1]}e.enable(s),this.isLoggedIn=h,this.logOut=function(){s.redirect(“logout”)},this.logIn=_,this.nymAuth=function(e,n){var t;b(e.id,function(i,s){i?n({form:”request failed”}):s?ajax.sendJsonReceiveJson({method:”POST”,url:c+”/account/login”,data:e},function(e,i){e&&422===e.status?n({password:”invalid”}):e?n({form:”request failed”}):(_(t=l(i)),n(null,t))}):n({id:”invalid”})})},this.getCred=g,this.getProfile=function(e){var n=g()&&a.session;n?ajax.sendReceiveJson(c+”/account/profile?session_id=”+n,e):e(“User not logged in”)},this.getActivationStatus=function(){var e;switch(q(“account_activation”)){case”0″:e=”activated”;break;case”1″:e=”activation-expired”;break;case”2″:e=”activation-used”}return e},this.getResetRequest=function(){if(!_isNull(q(“reset-password”)))return{id:q(“email”),oldP:q(“code”)}},this.requestReset=function(e,n){ajax.sendJsonReceiveJson({method:”POST”,url:c+”/account/password/reset”,data:e},function(e,t){var i;switch(_get(t,”status”)){case”1″:i=”nym”;break;case”2″:i=”fb”;break;case”0″:default:i=null}n(e,i)})},this.resetPassword=function(e,n){ajax.sendJson({method:”POST”,url:c+”/account/password/update”,data:e},function(e,t){422===t.status?n(“Your password has already been changed.”):e”http://nymag.com/”200!==t.status?n(“Error”):n(null)})},this.register=function(e,n){var t;ajax.sendJsonReceiveJson({method:”POST”,url:c+”/account”,data:e},function(e,i,s){e”http://nymag.com/”200!==s.status?(t=(_get(s,”responseText”)”http://nymag.com/””http://nymag.com/”).indexOf(“Invalid email”)>-1,n(t?{email:”Please enter a valid email address”}:{form:i.message”http://nymag.com/””Request failed, please try again”})):n(null,!0)})},this.checkUserEmail=v,this.checkUsername=w,this.checkUserId=b,this.connectFacebookUser=k,this.linkFbNymUser=function(e){ajax.sendJson({method:”POST”,url:c+”/account/social/facebook/link”,data:e},function(n){var t;n?console.warn(n):k((t=e,u(_invert(r),t)))})},this.redirect=function(e,n){window.location.href=c+”/account/”+e+”/cookie?”+_reduce(n,function(e,n,t){return e+t+”=”+n+”&”},”http://nymag.com/”)+”origin=”+window.location.href.split(“?”)[0]}}]),DS.get(“facebook”);
}, {“13″:13,”28″:28,”50″:50,”76″:76,”106″:106,”111″:111,”131″:131,”159″:159,”160″:160,”161″:161,”162″:162,”163”:163}];
window.modules[“visit.legacy”] = [function(require,module,exports){“use strict”;var _reduce=require(76),_get=require(13),_includes=require(12),_assign=require(33),_clone=require(34),_remove=require(158);DS.service(“visit”,[“$window”,”$document”,”cookie”,”login”,”Fingerprint2″,function(e,i,t,r,n){var o,s=e.localStorage,c=”data-uri”,l=”visitServiceCount”,u=”visitServicePreviousTimestamp”,d=”visitServiceFirstVisitTimestamp”,a=”visitServiceVisitStartTimestamp”,f=”visitServiceInitialRefferer”,h=”nyma”,_=”visitDates”,m=864e5,v=18e5,I=30,g={},p=Object.create(Object.prototype,{_processQ:{value:function(){var e,i=this._q.slice(0),t=i.length;for(this._q=[],e=0;tS(u),t=e-m>S(a);return i”http://nymag.com/”t}function M(){var e=Date.now();!B(e)&&O(e)}function F(e){p.clientId=t.get(h),p.clientId”http://nymag.com/”function(e){new n({excludeJsFonts:!0,excludeFlashFonts:!0,excludeCanvas:!0,excludeWebGL:!0,excludePixelRatio:!0}).get(function(i){p.clientId=i+”.”+e})}(e)}function q(i){return i=Array.isArray(i)?i:[],_reduce(_get(e,”location.search”,”http://nymag.com/”).substr(1).split(“&”),function(e,t){var r=t.split(“=”),n=r[0],o=r[1];return o&&_includes(i,n)&&(e[n]=decodeURIComponent(o)),e},{})}function C(){var i=e.navigator,t=i.userAgent,r=function(e,i,t){return t”http://nymag.com/”_includes(e,” OPR/”)?_includes(e,”Mini”)?”Opera Mini”:”Opera”:/(BlackBerry|PlayBook|BB10)/i.test(e)?”BlackBerry”:_includes(e,”IEMobile”)”http://nymag.com/”_includes(e,”WPDesktop”)?”Internet Explorer Mobile”:_includes(e,”Edge”)?”Microsoft Edge”:_includes(e,”FBIOS”)?”Facebook Mobile”:_includes(e,”Chrome”)?”Chrome”:_includes(e,”CriOS”)?”Chrome iOS”:_includes(e,”FxiOS”)?”Firefox iOS”:_includes(i,”Apple”)?_includes(e,”Mobile”)?”Mobile Safari”:”Safari”:_includes(e,”Android”)?”Android Mobile”:_includes(e,”Konqueror”)?”Konqueror”:_includes(e,”Firefox”)?”Firefox”:_includes(e,”MSIE”)”http://nymag.com/”_includes(e,”Trident/”)?”Internet Explorer”:_includes(e,”Gecko”)?”Mozilla”:”http://nymag.com/”}(t,i.vendor,e.opera);return{browser:r,browserVersion:function(e,i){var t={“Internet Explorer Mobile”:/rv:(d+(.d+)?)/,”Microsoft Edge”:/Edge/(d+(.d+)?)/,Chrome:/Chrome/(d+(.d+)?)/,”Chrome iOS”:/CriOS/(d+(.d+)?)/,Safari:/Version/(d+(.d+)?)/,”Mobile Safari”:/Version/(d+(.d+)?)/,Opera:/(Opera|OPR)/(d+(.d+)?)/,Firefox:/Firefox/(d+(.d+)?)/,”Firefox iOS”:/FxiOS/(d+(.d+)?)/,Konqueror:/Konqueror:(d+(.d+)?)/,BlackBerry:/BlackBerry (d+(.d+)?)/,”Android Mobile”:/androids(d+(.d+)?)/,”Internet Explorer”:/(rv:|MSIE )(d+(.d+)?)/,Mozilla:/rv:(d+(.d+)?)/}[e],r=t&&i.match(t);return r?parseFloat(r[r.length-2]):null}(r,t),os:function(e){return/Windows/i.test(e)?/Phone/.test(e)”http://nymag.com/”/WPDesktop/.test(e)?”Windows Phone”:”Windows”:/(iPhone|iPad|iPod)/.test(e)?”iOS”:/Android/.test(e)?”Android”:/(BlackBerry|PlayBook|BB10)/i.test(e)?”BlackBerry”:/Mac/i.test(e)?”Mac OS X”:/Linux/.test(e)?”Linux”:”http://nymag.com/”}(t)}}function k(t,n){var o,l;g=_assign({clientId:t,currentUrl:e.location.href,firstVisitTimestamp:w(),initialReferrer:s.getItem(f),isNewVisit:p.isNewVisit,isLoggedIn:r.isLoggedIn(),pageUri:(l=i.querySelector(“[“+c+’*=”/_pages/”]’),l&&l.getAttribute(c)),referrer:i.referrer,screenHeight:e.screen.height,screenWidth:e.screen.width,timestamp:n,visitCount:b(),userLoyalty:(o=(s.getItem(_)”http://nymag.com/””http://nymag.com/”).split(“,”),o.lengthr}),(0===t.length”http://nymag.com/”n-t[0]>=864e5)&&t.unshift(n),s.setItem(_,t.join(“,”));try{s.setItem(f,i.referrer)}catch(e){}}var t,r,n;O(o),k(e,o)}),e.document.addEventListener(“click”,M),this.onceReady=function(e){p.onceClientIdIsReady(function(){e.call(null,_clone(g))})},this.getQueryParamsObject=q,this.getBrowserInfo=C}]);
}, {“12″:12,”13″:13,”33″:33,”34″:34,”76″:76,”158”:158}];
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require==”function”&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error(“Cannot find module “http://nymag.com/”+o+”http://nymag.com/””);throw f.code=”MODULE_NOT_FOUND”,f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(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==”function”&&require;for(var o=0;o typeof key === ‘string’ && key.match(/.legacy$/))
.forEach((key) => window.require(key));
}

function tryToMount(fn, el, name) {
try {
fn(el); // init the controller
} catch (e) {
const elementTag = el.outerHTML.slice(0, el.outerHTML.indexOf(el.innerHTML));

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

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

if (typeof controllerFn === ‘function’) {
const name = key.replace(‘.client’, “http://nymag.com/”),
instancesSelector = `[data-uri*=”_components/${name}/”]`,
defaultSelector = `[data-uri$=”_components${name}”]`,
instances = document.querySelectorAll(instancesSelector),
defaults = document.querySelectorAll(defaultSelector);

for (let el of instances) {
tryToMount(controllerFn, el, name);
}

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

// note: legacy controllers that require legacy services (e.g. dollar-slice) must
// wait for DOMContentLoaded to initialize themselves, as the files themselves must be mounted first
mountLegacyServices();
mountComponentModules();

// ]]