Iphone

How Apple Could Make Life Easier for iPhone Users With One Small Addition


A subscription bundle of Apple products.

Photo illustration by Slate. Images by Apple.

In its first-quarter earnings report last week, Apple shared that it once again made a record amount of money—to the tune of $20 billion in profit and $88 billion in revenue, largely from iPhone sales. Curiously, however, it actually sold about 1 million fewer iPhones than it did this time last year. Many financial analysts expected this year to be an iPhone “super cycle,” a huge sales boom for the company that typically occurs with the debut of a new iPhone design, but it hasn’t shaped up that way. In the face of evolving smartphone-purchasing dynamics and the growing success of its underhyped services division, Apple could temper its tempestuous and cyclical hardware sales patterns by introducing a new option for consumers: As prominent Apple analyst Horace Dediu of Asymco suggested, Apple could offer a bundled services subscription.

In the Wall Street Journal on Monday, Dediu posits that Apple could resolve its quarterly financial discrepancies by fully bowing to the fact that it’s an ecosystem provider—and giving consumers an all-inclusive subscription payment option for the services in that ecosystem. “Throw in health monitoring, an iCloud subscription, Apple Music, Apple’s original programming and more into a cable-television-like bundle, or a la carte, and Apple could go from being a hit-driven company to one that throws off predictable, consistent, subscription-based revenue,” the Wall Street Journal writes. “Think of it as Apple Prime.”

Apple offers a number of different services that iOS users can pay for on a monthly basis: extra iCloud storage (which ranges from $0.99–$9.99 per month), Apple Music (which costs $9.99 per month or $99.99 per year for an individual subscription), media subscriptions (such as Netflix, HBO Now, or Spotify), AppleCare+ (its extended warranty program), and its iPhone Upgrade Program. As it stands, these various subscriptions are fragmented, which can make them more difficult to manage and track. iOS lets you manage media subscriptions, such as Apple Music, within one section of your iPhone settings, but other Apple-centric purchases, such as additional iCloud storage packages, are located in a different area of the settings menu. If you want to subscribe to each of these things, it can be tedious.

By lumping all of these services into a discounted all-in-one package (or an à la carte version where customers can easily select which options they’re interested in), Apple could streamline its service offerings. This would make them more attractive and accessible to iOS users—and more profitable to its bottom line. With such an option, iPhone owners may opt into Apple subscriptions they might not otherwise have paid for. It would also be of benefit to iPhone users by reducing some of the frictions of the iOS experience, making their upfront monthly payment amount clearer, making it easier to manage their subscriptions, making the iOS settings menu easier to navigate, and minimizing the number of system notifications popping up on screen.

The “iPhone storage almost full” message is one of the most annoying and persistent notifications many iOS users experience. The solution—as Apple not-so-subtly hints at with these alerts—is to purchase additional iCloud storage and move some of that locally stored phone media and data into the cloud. The notification itself, as well as the idea of needing to pay for extra storage when your device already comes with plenty, is so irritating that most of us just ignore it or delete a handful of old photos, videos, or unused apps to make some extra space for a few weeks, at which point the alert will rear its head again. If Apple’s upgrade program, which costs as low as $34.99 per month and guarantees a new iPhone upgrade each year, offered an option to tack on iCloud storage into that monthly payment too, iOS users might decide to buy in.

Apple is seeing solid growth in some of its service areas, such as Apple Music, which may overtake Spotify in subscribers later this year, but it could further boost paid membership if it was included as part of a “Here’s everything you need for your new iPhone” service package—something that might add one step to the already lengthy iPhone setup process but would ensure iPhone users have access to all the features Apple offers. Such an option could also make it easier for iOS users to check out Apple’s upcoming original video programming. Apple’s made a $1 billion investment into original programming, which includes an in-the-works show starring Reese Witherspoon and Jennifer Aniston, and these shows live within Apple Music, for the time being.

According to an informal poll of more than 3,000 readers on Apple blog 9to5Mac, more than two-thirds of respondents either “love” or “like” the idea of an all-in-one Apple subscription (as of the writing of this post). Clearly, a simplified, all-encompassing subscription option is potentially appealing not just to newer iOS users setting up some of these payments but also to those indoctrinated into Apple’s ecosystem and hoping to streamline that management and billing process. Hopefully, among the subtle tweaks Apple will be making in iOS 12, we’ll also get an option for easier subscription management. It makes good business sense for Apple and would improve user experience for iPhone owners.

You depend on Slate for sharp, distinctive coverage of the latest developments in politics and culture. Now we need to ask for your support.

Our work is more urgent than ever and is reaching more readers—but online advertising revenues don’t fully cover our costs, and we don’t have print subscribers to help keep us afloat. So we need your help. If you think Slate’s work matters, become a Slate Plus member. You’ll get exclusive members-only content and a suite of great benefits—and you’ll help secure Slate’s future.

Join Slate Plus

Christina Bonnington

Christina Bonnington is a technology writer whose work has appeared in Wired, Refinery29, the Daily Dot, and elsewhere.

“;var a={ad:t+=decodeURIComponent(e.code),cpm:parseFloat(e.price),currency:e.currency,height:parseInt(e.height,10),requestId:r.bidIdMap[e.id],width:parseInt(e.width,10),netRevenue:!1,ttl:parseInt(e.ttl),creativeId:e.crid};n.push(a)}}Object.defineProperty(r,”__esModule”,{value:!0}),r.spec=void 0;var u=(function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r.default=e,r})(n(0)),c=n(9),o=r.spec={code:”adocean”,isBidRequestValid:function(e){return!!(e.params.slaveId&&e.params.masterId&&e.params.emiter)},buildRequests:function(e){var r={};return u._each(e,(function(e){i(e,r)})),u._map(r,(function(e,r){return a(e,r)}))},interpretResponse:function(e,r){var n=[];return u.isArray(e.body)&&u._each(e.body,(function(e){s(e,r,n)})),n}};(0,c.registerBidder)(o)},69:function(e,r){}},[67]);
pbjsChunk([24],{10:function(e,t,n){“use strict”;function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,”__esModule”,{value:!0});var i=”function”==typeof Symbol&&”symbol”==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&”function”==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?”symbol”:typeof e};t.default=function(e){function t(e){var t=e.eventType,n=e.args,r=e.callback;(0,u.ajax)(S,r,JSON.stringify({eventType:t,args:n}))}function n(e){var t=e.eventType,n=e.args,r=this;A&&window[A]&&t&&n?this.track({eventType:t,args:n}):_.push((function(){w++,r.track({eventType:t,args:n})}))}function a(){if(O){for(var e=0;e<_.length;e++)_[e]();_.push=function(e){e()},O=!1}c.logMessage("event count sent to "+A+": "+w)}var N,S=e.url,C=e.analyticsType,A=e.global,I=e.handler,_=[],w=0,O=!0;return C===T&&(0,o.loadScript)(S,a),(C===g"http://slate.com/"h)&&a(),{track:function(e){var n=e.eventType,r=e.args;(this.getAdapterType()===T"http://slate.com/"h)&&window[A](I,n,r),this.getAdapterType()===g&&t.apply(void 0,arguments)},enqueue:n,enableAnalytics:function(e){var t=this,a=this;if(m="object"!==(void 0===e?"undefined":i(e))"http://slate.com/"http://slate.com/"object"!==i(e.options)"http://slate.com/"void 0===e.options.sampling"http://slate.com/"Math.random()0&&E.sendTypedEvent()}),b)}}});E.sendTypedEvent=function(){var e=E.buildTypedEvents(),t={uid:E.currentContext.uid,ahbaid:E.currentContext.id,timeout:E.currentContext.timeout,hostname:window.location.hostname,eventsByPlacementCode:e.map((function(e){var t=[],n={};return[“request”,”response”,”winner”].forEach((function(r){n[r+”s”]=[],void 0!==e[r]&&e[r].forEach((function(e){if(void 0!==e.event.size){var i=E.sizeUtils.handleSize(t,e.event.size);null!==i&&(t=[].concat(a(t),[i]))}n[r+”s”]=[].concat(a(n[r+”s”]),[e.event])}))})),{placementCode:e.placementCode,sizes:t,events:n}}))},n=window.btoa(JSON.stringify(t)),r=encodeURIComponent(n).match(/.{1,1600}/g);r.forEach((function(e,t){var n=e+”&id=”+E.currentContext.id+”&part=”+t+”&on=”+(r.length-1);new Image(1,1).src=”https://”+E.currentContext.url+”/?q=”+n}))},E.buildBidResponse=function(e){return{bidder:e.bidderCode.toUpperCase(),placementCode:e.adUnitCode,id:e.adId,status:”Bid available”===e.statusMessage?”VALID”:”EMPTY_OR_ERROR”,cpm:parseFloat(e.cpm),size:{width:Number(e.width),height:Number(e.height)},timeToRespond:e.timeToRespond,afterTimeout:E.currentContext.timeouted}},E.sizeUtils={sizeAlreadyExists:function(e,t){return e.find((function(e){return e.height===t.height&&e.width===t.width}))},formatSize:function(e){return{width:Number(e.width),height:Number(e.height)}},handleSize:function(e,t){var n=null;return void 0===E.sizeUtils.sizeAlreadyExists(e,t)&&(n=E.sizeUtils.formatSize(t)),n}},E.buildTypedEvents=function(){var e=[];return E.bucketEvents.forEach((function(t,n){var r=[t.event.placementCode,t.type],o=r[0],u=r[1],s=e.findIndex((function(e){return e.placementCode===o}));-1===s&&(e.push(i({placementCode:o},u,[t])),s=e.length-1),e[s][u]?e[s][u]=[].concat(a(e[s][u]),[t]):e[s][u]=[t]})),e},E.currentContext={},E.bucketEvents=[],E.adapterEnableAnalytics=E.enableAnalytics,E.enableAnalytics=function(e){var t=e.options;t&&(E.currentContext={uid:t.id,url:t.url,debug:t.debug,id:”http://slate.com/”,timeouted:!1,timeout:0},E.adapterEnableAnalytics(e))},c.default.registerAnalyticsAdapter({adapter:E,code:”adomik”}),t.default=E}},[70]);
pbjsChunk([102],{72:function(e,n,d){e.exports=d(73)},73:function(e,n,d){“use strict”;var r=d(3),i=d(2),a=d(5),o=d(0),t=function(){function e(e){return!!(e&&e.siteId&&e.zoneId&&e.endpointUrl&&e.clientId)&&!(“number”!=typeof e.zoneId”http://slate.com/”e.zoneId<=0)}function n(e){var n=encodeURIComponent(window.document.referrer),d=encodeURIComponent(Math.floor(1e5*Math.random()+1)),r=encodeURIComponent((new Date).getTimezoneOffset());return"//"+e.params.endpointUrl+"/banner.engine?id="+e.params.siteId+"&z="+e.params.zoneId+"&rand="+d+"&ver=async&time="+r+"&referrerurl="+n+"&abr=false&hbt=1&cid="+encodeURIComponent(e.params.clientId)}function d(e){return function(){pbjs.adSupplyResponseHandler(e)}}return pbjs.adSupplyResponseHandler=function(e){if(e){var n=o.getBidRequest(e);if(n&&n.params){var d=n.params.clientId,a="b"+n.params.zoneId;if(window[d]&&window[d][a]){var t=window[d][a].Media;if(t)if(!t.Url"http://slate.com/"!t.Ecpm"http://slate.com/"http://slate.com/"number"!=typeof t.Ecpm"http://slate.com/"t.Ecpm<=0){var p=r.createBid(2,n);p.bidderCode="adsupply",i.addBidResponse(n.placementCode,p)}else{var s=r.createBid(1,n);s.bidderCode="adsupply",s.cpm=t.Ecpm,s.ad='‘,s.width=t.Width,s.height=t.Height,i.addBidResponse(n.placementCode,s)}}}}},{callBids:function(r){for(var i=r.bids”http://slate.com/”[],o=0;o0&&(t.dealId=e.deal_id),e.ad)t.ad=e.ad;else if(e.vastUrl)t.vastUrl=e.vastUrl,t.descriptionUrl=e.vastUrl,t.mediaType=”video”;else if(e.nativeResponse){t.mediaType=”native”;var i=e.nativeResponse;t.native={clickUrl:encodeURIComponent(i.link.url),impressionTrackers:i.imptrackers},i.assets.forEach((function(e){e.title&&e.title.text&&(t.native.title=e.title.text),e.img&&e.img.url&&(t.native.image=e.img.url),e.data&&”DESC”===e.data.label&&e.data.value&&(t.native.body=e.data.value),e.data&&”SPONSORED”===e.data.label&&e.data.value&&(t.native.sponsoredBy=e.data.value)}))}t.width=e.width,t.height=e.height,r.logMessage(“submitting bid[“+e.bidId+”]: “+JSON.stringify(t)),a.push(t)})):r.logMessage(“empty bid response”),a},getUserSyncs:function(e){if(e.iframeEnabled)return[{type:”iframe”,url:”//cdn.adxcg.net/pb-sync.html”}]}};(0,s.registerBidder)(l)},78:function(e,t){}},[76]);
pbjsChunk([101],{79:function(e,r,t){e.exports=t(80)},80:function(e,r,t){“use strict”;function n(e){return e&&e.__esModule?e:{default:e}}var a=Object.assign”http://slate.com/”function(e){for(var r=1;r0}function r(r,a){if(e(r,a)){var t=d.default.createBid(1,r);t.bidderCode=u,t.cpm=a.cpm,t.width=a.w,t.height=a.h,”video”===r.mediaType?(t.vastUrl=a.vastUrl,t.descriptionUrl=a.vastUrl,t.mediaType=”video”):t.ad=a.adm,n.default.addBidResponse(r.placementCode,t)}else n.default.addBidResponse(r.placementCode,d.default.createBid(s.STATUS.NO_BID,r))}function a(e){var r={};return i.isArray(e)&&e.length>0&&i.isArray(e[0])&&2===e[0].length&&(r.vpw=e[0][0],r.vph=e[0][1]),r}function t(e,r){if(Object.keys(e.params).filter((function(e){return”video”!==e})).forEach((function(a){return r[a]=e.params[a]})),”video”===e.mediaType){var t=a(e.sizes);Object.keys(t).forEach((function(e){return r[e]=t[e]})),Object.keys(e.params.video”http://slate.com/”{}).forEach((function(a){return r[a]=e.params.video[a]}))}return i.parseQueryStringParameters(r)}function c(e){return function(a){if(!a&&a.length<=0)return n.default.addBidResponse(e.placementCode,d.default.createBid(s.STATUS.NO_BID,e)),void i.logError("Empty response");try{a=JSON.parse(a)}catch(r){return n.default.addBidResponse(e.placementCode,d.default.createBid(s.STATUS.NO_BID,e)),void i.logError("Invalid JSON in response")}r(e,a)}}var p={local:"127.0.0.1:8080",dev:"dev-ads.aerserv.com",stage:"staging-ads.aerserv.com",prod:"ads.aerserv.com"},l="/as/json/pbjs/v1?",f="/as/json/pbjsvast/v1?",v=["plc"];return{callBids:function(e){var r=window.parent!==window?document.referrer:window.location.href;r=r&&encodeURIComponent(r),(e.bids"http://slate.com/"[]).forEach((function(e){if(i.hasValidBidRequest(e.params,v,u)){var a="//"+(p[e.params.env]"http://slate.com/"p.prod)+("video"===e.mediaType?f:l)+t(e,{url:r});i.logMessage("sending request to: "+a),(0,o.ajax)(a,c(e),null,{withCredentials:!0})}else n.default.addBidResponse(e.placementCode,d.default.createBid(s.STATUS.NO_BID,e))}))}}};t(a(1)).default.registerBidAdapter(new c,u,{supportedMediaTypes:["video"]}),e.exports=c}},[81]); pbjsChunk([99],{83:function(e,r,t){e.exports=t(84)},84:function(e,r,t){"use strict";function a(e,r){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var n=Object.assign"http://slate.com/"function(e){for(var r=1;r1?r-1:0),a=1;a1&&void 0!==arguments[1]?arguments[1]:{},t=p.createBid(2,e);t.bidderCode=e.bidder,t.reason=r.nbr,t.raw=r,l.addBidResponse(e.placementCode,t)}function y(r,t){var a=void 0;try{a=t.seatbid[0].bid[0]}catch(e){return void x(r,t)}var n=void 0;if(a.ext&&a.ext.encp)n=a.ext.encp;else if(null===(n=a.price)”http://slate.com/”isNaN(n))return s.logError(“Invalid price in bid response”,f.aol,r),void x(r,t);var o=a.adm;t.ext&&t.ext.pixels&&(r.params.userSyncOn===u.EVENTS.BID_RESPONSE?e(t.ext.pixels):o+=”“);var i=p.createBid(1,r);i.bidderCode=r.bidder,i.ad=o,i.cpm=n,i.width=a.w,i.height=a.h,i.creativeId=a.crid,i.pubapiId=t.id,i.currencyCode=t.cur,a.dealid&&(i.dealId=a.dealid),l.addBidResponse(r.placementCode,i)}function w(e){return e===f.aol”http://slate.com/”e===f.onedisplay}function j(e){return e===f.aol”http://slate.com/”e===f.onemobile}function E(e){if(j(e.bidder)&&e.params.id&&e.params.imp&&e.params.imp[0]){var r=e.params.imp[0];return r.id&&r.tagid&&(r.banner&&r.banner.w&&r.banner.h”http://slate.com/”r.video&&r.video.mimes&&r.video.minduration&&r.video.maxduration)}}function C(e){return j(e.bidder)&&e.params.dcn&&e.params.pos}function O(e){return w(e.bidder)&&e.params.placement&&e.params.network}var S=!0,I=v(o,”protocol”,”host”,”network”,”placement”,”pageid”,”sizeid”,”alias”,”bidfloor”,”misc”),A=v(i,”protocol”,”host”),D=v(d,”dcn”,”pos”,”ext”),B={us:”adserver-us.adtech.advertising.com”,eu:”adserver-eu.adtech.advertising.com”,as:”adserver-as.adtech.advertising.com”},N=”hb.nexage.com”,R={iframe:”IFRAME”,img:”IMG”},k=(function(){var e=!1;return function(r){var t=function(){if(!e)return e=!0,r()};if(“complete”===document.readyState)return t();document.addEventListener(“DOMContentLoaded”,t,!1),window.addEventListener(“load”,t,!1)}})();return n(this,new b(f.aol),{callBids:function(e){s._each(e.bids,(function(e){var r=void 0,t=null,a={withCredentials:!0},n=E(e),o=C(e),i=O(e);o”http://slate.com/”n?(r=g(e),n&&(t=e.params,a.customHeaders={“x-openrtb-version”:”2.2″},a.method=”POST”,a.contentType=”application/json”)):i&&(r=h(e)),r&&c(r,(function(r){if(S&&pbjs.bidderSettings&&pbjs.bidderSettings.aol&&”function”==typeof pbjs.bidderSettings.aol.bidCpmAdjustment&&s.logWarn(“bidCpmAdjustment is active for the AOL adapter. As of Prebid 0.14, AOL can bid in net – please contact your accounts team to enable.”),S=!1,!r&&r.length<=0)return s.logError("Empty bid response",f.aol,e),void x(e,r);try{r=JSON.parse(r)}catch(t){return s.logError("Invalid JSON in bid response",f.aol,e),void x(e,r)}y(e,r)}),t,a)}))}})};m.registerBidAdapter(new v,f.aol),m.aliasBidAdapter(f.aol,f.onedisplay),m.aliasBidAdapter(f.aol,f.onemobile),e.exports=v}},[83]); pbjsChunk([21],{10:function(e,n,t){"use strict";function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}Object.defineProperty(n,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};n.default=function(e){function n(e){var n=e.eventType,t=e.args,a=e.callback;(0,i.ajax)(h,a,JSON.stringify({eventType:n,args:t}))}function t(e){var n=e.eventType,t=e.args,a=this;m&&window[m]&&n&&t?this.track({eventType:n,args:t}):M.push((function(){q++,a.track({eventType:n,args:t})}))}function u(){if(O){for(var e=0;e0&&(c.member_id=d),{method:”POST”,url:”//ib.adnxs.com/ut/v3/prebid”,data:JSON.stringify(c),bidderRequest:r}},interpretResponse:function(e,r){var a=r.bidderRequest,t=[];if(!(e=e.body)”http://slate.com/”e.error){var n=”in response for “+a.bidderCode+” adapter”;return e&&e.error&&(n+=”: “+e.error),h.logError(n),t}return e.tags&&e.tags.forEach((function(e){var r=c(e);if(r&&0!==r.cpm&&I.includes(r.ad_type)){var a=s(e,r);a.mediaType=f(r),t.push(a)}})),t},getUserSyncs:function(e){if(e.iframeEnabled)return[{type:”iframe”,url:”http://acdn.adnxs.com/ib/static/usersync/v3/async_usersync.html”}]}};(0,_.registerBidder)(A)},89:function(e,r){}},[87]);
pbjsChunk([98],{90:function(e,r,a){e.exports=a(91)},91:function(e,r,a){“use strict”;var t,d=Object.assign”http://slate.com/”function(e){for(var r=1;r0&&(o=”size=”+g[0],f>1)){o+=”&promo_sizes=”;for(var y=1;y0)return o=i.createBid(a.STATUS.GOOD,e),o.bidderCode=”atomx”,o.cpm=1e3*d.cpm,d.adm?o.ad=d.adm:o.adUrl=d.url,o.width=d.width,o.height=d.height,void t.addBidResponse(e.placementCode,o)}catch(e){s.logError(e)}(o=i.createBid(a.STATUS.NO_BID,e)).bidderCode=”atomx”,t.addBidResponse(e.placementCode,o)}return{callBids:function(d){window.atomx_prebid?e(d):r.loadScript(window.location.protocol+”//s.ato.mx/b.js”,(function(){e(d)}),!0)},responseCallback:d}};o(1).registerBidAdapter(new c,”atomx”),e.exports=c}},[92]);
pbjsChunk([19],{94:function(a,e,t){t(95),a.exports=t(96)},95:function(a,e,t){“use strict”;Object.defineProperty(e,”__esModule”,{value:!0}),e.spec=void 0;var n=(function(){function a(a,e){var t=[],n=!0,r=!1,i=void 0;try{for(var o,d=a[Symbol.iterator]();!(n=(o=d.next()).done)&&(t.push(o.value),!e”http://slate.com/”t.length!==e);n=!0);}catch(a){r=!0,i=a}finally{try{!n&&d.return&&d.return()}finally{if(r)throw i}}return t}return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return a(e,t);throw new TypeError(“Invalid attempt to destructure non-iterable instance”)}})(),r=”function”==typeof Symbol&&”symbol”==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&”function”==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?”symbol”:typeof a},i=t(9),o=t(8),d=t(12),c=t(0),s=[“video”],u=function(a){return Array.isArray(a)&&2===a.length?a[0]+”x”+a[1]:a},f=function(a){return[“300×250″,”320×50″].includes(a)},p=function(a){return”video”===a},m=function(a){return p(a)?”http://slate.com/”:”5.5.web”},l=function(){return Boolean(window&&window.location&&”string”==typeof window.location.search&&-1!==window.location.search.indexOf(“anhb_testmode”)).toString()},b=function(a,e,t){return”“+(“native”===e?’':"http://slate.com/")+"

nn"+("native"===e?'

':"http://slate.com/")+"

"},h=e.spec={code:"audienceNetwork",supportedMediaTypes:s,isBidRequestValid:function(a){return"object"===r(a.params)&&"string"==typeof a.params.placementId&&a.params.placementId.length>0&&Array.isArray(a.sizes)&&a.sizes.length>0&&(p(a.params.format)"http://slate.com/"a.sizes.map(u).some(f))},buildRequests:function(a){var e=[],t=[],r=[],i=[],o=[];a.forEach((function(a){return a.sizes.map(u).filter((function(e){return f(e)"http://slate.com/"p(a.params.format)})).slice(0,1).forEach((function(n){e.push(a.params.placementId),t.push(a.params.format"http://slate.com/"n),r.push(n),i.push(m(a.params.format)),o.push(a.bidId)}))}));var s=l(),b=(0,c.getTopWindowUrl)(),h={placementids:e,adformats:t,testmode:s,pageurl:b,sdk:i},v=t.findIndex(p);if(-1!==v){var y=r[v].split("x").map(Number),g=n(y,2);h.playerwidth=g[0],h.playerheight=g[1]}var w=(0,d.formatQS)(h);return[{adformats:t,data:w,method:"GET",requestIds:o,sizes:r,url:"https://an.facebook.com/v2/placementbid.json"}]},interpretResponse:function(a,e){var t=a.body,r=e.adformats,i=e.requestIds,d=e.sizes,s=Number(o.config.getConfig().bidderTimeout);return t.errors&&t.errors.length?[]:Object.keys(t.bids).map((function(a){return t.bids[a]})).reduce((function(a,e){return a.concat(e)}),[]).map((function(a,e){var t=a.bid_id,o=a.placement_id,u=a.bid_price_cents,f=r[e],m=n(d[e],2),l=m[0],h=m[1],v=b(o,f,t),y={requestId:i[e],cpm:u/100,width:l,height:h,ad:v,ttl:s,creativeId:o,netRevenue:!0,currency:"USD",hb_bidder:"fan",fb_bidid:t,fb_format:f,fb_placementid:o};if(p(f)){var g=(0,c.getTopWindowUrl)();y.mediaType="video",y.vastUrl="https://an.facebook.com/v1/instream/vast.xml?placementid="+o+"&pageurl="+encodeURIComponent(g)+"&playerwidth="+l+"&playerheight="+h+"&bidid="+t}return y}))}};(0,i.registerBidder)(h)},96:function(a,e){}},[94]);
pbjsChunk([18],{97:function(e,t,r){r(98),e.exports=r(99)},98:function(e,t,r){"use strict";(function(e){function i(e){var t=u.parseSizesInput(e),r=t.length?t[0].split("x"):[],i=d(r,2),n=i[0],o=i[1];return{width:parseInt(n,10)"http://slate.com/"void 0,height:parseInt(o,10)"http://slate.com/"void 0}}function n(){return/(ios|ipod|ipad|iphone|android)/i.test(e.navigator.userAgent)}function o(){return/(smart[-]?tv|hbbtv|appletv|googletv|hdmi|netcast.tv|viera|nettv|roku|bdtvb|sonydtv|inettvbrowser|btvb)/i.test(e.navigator.userAgent)}function a(t){var r=i(t.sizes);return{isPrebid:!0,appId:t.params.appId,domain:document.location.hostname,imp:[{video:{w:r.width,h:r.height},bidfloor:t.params.bidfloor}],site:{page:u.getTopWindowLocation().host},device:{ua:e.navigator.userAgent,devicetype:n()?1:o()?3:2},cur:["USD"]}}Object.defineProperty(t,"__esModule",{value:!0}),t.spec=t.ENDPOINT=void 0;var d=(function(){function e(e,t){var r=[],i=!0,n=!1,o=void 0;try{for(var a,d=e[Symbol.iterator]();!(i=(a=d.next()).done)&&(r.push(a.value),!t"http://slate.com/"r.length!==t);i=!0);}catch(e){n=!0,o=e}finally{try{!i&&d.return&&d.return()}finally{if(n)throw o}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),u=(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)),s=r(9),c=t.ENDPOINT="//reachms.bfmio.com/bid.json?exchange_id=",p=t.spec={code:"beachfront",supportedMediaTypes:["video"],isBidRequestValid:function(e){return!!(e&&e.params&&e.params.appId&&e.params.bidfloor)},buildRequests:function(e){return e.map((function(e){return{method:"POST",url:c+e.params.appId,data:a(e),bidRequest:e}}))},interpretResponse:function(e,t){var r=t.bidRequest;if(!(e=e.body)"http://slate.com/"!e.url"http://slate.com/"!e.bidPrice)return u.logWarn("No valid bids from "+p.code+" bidder"),[];var n=i(r.sizes);return{requestId:r.bidId,bidderCode:p.code,cpm:e.bidPrice,creativeId:e.cmpId,vastUrl:e.url,width:n.width,height:n.height,mediaType:"video",currency:"USD",ttl:300,netRevenue:!0}}};(0,s.registerBidder)(p)}).call(t,r(30))},99:function(e,t){}},[97]);
pbjsChunk([96],{100:function(e,d,i){e.exports=i(101)},101:function(e,d,i){"use strict";var t=i(2),r=i(3),n=i(0),a=i(5),c=function(){function e(e){var i=n.getBidIdParameter("adunitId",e.params),t=n.getBidIdParameter("pubId",e.params),r=n.getBidIdParameter("reservePrice",e.params),c={placementCode:e.placementCode,cbID:e.bidId};a.loadScript(d,(function(){FORGE.init([i,t,c,r])}))}var d="//cdn.bidfluence.com/forge.js";return pbjs.bfPbjsCB=function(e){var d=n.getBidRequest(e.cbID),i=null;e.cpm>0?((i=r.createBid(1,d)).bidderCode="bidfluence",i.cpm=e.cpm,i.ad=e.ad,i.width=e.width,i.height=e.height):(i=r.createBid(2,d)).bidderCode="bidfluence",t.addBidResponse(e.placementCode,i)},{callBids:function(d){for(var i=d.bids"http://slate.com/"[],t=0;t',b=decodeURIComponent(a+p);(i=r.createBid(1)).creative_id=e.Id,i.bidderCode="brightcom",i.cpm=parseFloat(e.price),i.ad=b;var c,h;2===t.sizes.length&&"number"==typeof t.sizes[0]&&"number"==typeof t.sizes[1]?(c=t.sizes[0],h=t.sizes[1]):(c=t.sizes[0][0],h=t.sizes[0][1]),i.width=c,i.height=h,n.addBidResponse(d,i),o.push(d)}}));for(var d=0;d0&&(c.tmax=m);var u="https://"+e+"?callback="+encodeURIComponent(i)+"&request="+encodeURIComponent(JSON.stringify(c));a.loadScript(u)}}};t(1).registerBidAdapter(new o,"brightcom"),e.exports=o}},[102]);
pbjsChunk([94],{104:function(i,e,n){i.exports=n(105)},105:function(i,e,n){"use strict";function d(){function i(){var i=r.createBid(t.STATUS.NO_BID);return i.bidderCode=u,i}function e(i){var e=i;window.setTimeout((function(){var i=document.createElement("img");i.width=1,i.height=1,i.style="display:none;";var n=document.location.protocol;i.src=(n?"https:":"http:")+d+e,document.body.insertBefore(i,null)}),c)}var n="http://ht-integration.c1exchange.com:9000/ht",d="//px.c1exchange.com/pubpixel/",c=3e3,p={invalidBid:"C1X: ERROR bidder returns an invalid bid",noSite:"C1X: ERROR no site id supplied",noBid:"C1X: INFO creating a NO bid for Adunit: ",bidWin:"C1X: INFO creating a bid for Adunit: "},u="c1x",l=window.pbjs;return l._c1xResponse=function(e){var n=e;if("string"==typeof n)try{n=JSON.parse(e)}catch(i){o.logError(i)}if(n&&!n.error)for(var d=0;d1&&void 0!==arguments[1]&&arguments[1];var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"http://slate.com/",i=r.createBid(2,e);i.bidderCode=m,i.reason=o,t.addBidResponse(n(e),i)}function n(e){return e.placementCode}function o(e,o){var i=r.createBid(1,e);i.bidderCode=m,i.ad=o.ad,i.cpm=o.cpm,i.width=o.width,i.height=o.height,i.currencyCode=o.cur,i.token=o.token,i.pvid=o.pageViewId,t.addBidResponse(n(e),i)}function i(){return window.Cbola=window.Cbola"http://slate.com/"{},window.Cbola.HB=window.Cbola.HB"http://slate.com/"{},window.Cbola.HB.pvid=window.Cbola.HB.pvid"http://slate.com/"c(),window.Cbola.HB.pvid}function c(){function e(e){return e>9?e:"0"+e}var n=new Date;return e(n.getDate())+e(n.getMonth()+1)+e(n.getFullYear()%100)+e(n.getHours())+e(n.getMinutes())+e(n.getSeconds())+e(n.getMilliseconds()%100)+Math.floor(9e4*Math.random()+1e4)}function s(n,r){d.isArray(n)&&d._each(n,(function(t){var c=r"http://slate.com/"{};c.cbolaMode=t.params.cbolaMode"http://slate.com/"0,c.wid=t.params.wid"http://slate.com/"0,c.pixel=t.params.pixel"http://slate.com/"http://slate.com/"http://slate.com/",c.bidFloor=t.params.bidFloor"http://slate.com/"0,c.pageViewId=i(),c.hb_token=d.generateUUID(),c.sizes=d.parseSizesInput(t.sizes)+"http://slate.com/",c.bidsCount=n.length;for(var s in t.params.customParams)t.params.customParams.hasOwnProperty(s)&&(c["c_"+s]=t.params.customParams[s]);var p=t.params.server"http://slate.com/"http://slate.com/"hb.carambo.la";a("//"+p+"/"+w+l(c),(function(n){if(!n"http://slate.com/"n.cpm<=0)return d.logError("Empty bid response",m,t),void e(t,n,"Empty bid response");try{if((n=JSON.parse(n))&&n.cpm<=0)return d.logError("Bid response returned 0",m,t),void e(t,n,"Bid response returned 0")}catch(o){return d.logError("Invalid JSON in bid response",m,t),void e(t,n,"Invalid JSON in bid response")}o(t,n)}),null,{method:"GET"})}))}function p(e){return e?e.width+"x"+e.height+"x"+e.colorDepth:"0"}function u(e){var n=void 0,o=void 0,i=window,r=document,t=r.documentElement,d=void 0;if(e){try{i=window.top,r=window.top.document}catch(e){return}t=r.documentElement,d=r.body,n=i.innerWidth"http://slate.com/"t.clientWidth"http://slate.com/"d.clientWidth,o=i.innerHeight"http://slate.com/"t.clientHeight"http://slate.com/"d.clientHeight}else t=r.documentElement,n=i.innerWidth"http://slate.com/"t.clientWidth,o=i.innerHeight"http://slate.com/"t.clientHeight;return n+"x"+o}function l(e){return"?"+Object.keys(e).map((function(n){return encodeURIComponent(n)+"="+encodeURIComponent(e[n])})).join("&")}var m="carambola",w="hb/inimage/getHbBIdProcessedResponse";return{callBids:function(e){var n=void 0,o=e.bids"http://slate.com/"[],i=window.parent!==window?document.referrer:window.location.href;i=i&&encodeURIComponent(i);try{n=window.self!==window.top}catch(e){n=!1}0!==o.length&&s(o,{pageUrl:i,did:o[0].params.did"http://slate.com/"0,pid:o[0].params.pid"http://slate.com/"http://slate.com/"http://slate.com/",res:p(screen),ifr:n,viewPortDim:u(n)})}}}var r=o(3),t=o(2),d=o(0),a=o(6).ajax;o(1).registerBidAdapter(new i,"carambola"),e.exports=i}},[106]); pbjsChunk([92],{108:function(n,t,e){n.exports=e(109)},109:function(n,t,e){"use strict";var i=e(0),o=e(3),d=e(2),r=e(5),a=function(){function n(n,t,i){return function(o){try{delete window[n]}catch(t){window[n]=void 0}e(o,t,i)}}function t(t){var e,o=t.sizes&&t.sizes[0];if((e=t.params).unit){var d=["s="+e.unit,"adapter=prebid"],p="28136"===e.unit.toString();d.push("url="+encodeURIComponent(e.page_url"http://slate.com/"location.href)),o instanceof Array&&2===o.length&&"number"==typeof o[0]&&"number"==typeof o[1]&&d.push("sz="+o.join("x"));var g=c+e.unit+o.join("x")+encodeURIComponent(t.bidId);d.push("callback="+encodeURIComponent('window["http://slate.com/"+g+"http://slate.com/"]')),window[g]=n(g,e.unit,t),r.loadScript(("https:"===document.location.protocol?"https:":"http:")+(p?s:a)+"?"+d.join("&"))}else i.logError(h.noUnit,u)}function e(n,t,e){var r,a=n&&n.bid"http://slate.com/"n;a&&(a.adTag"http://slate.com/"http://slate.com/"No bid"===a.statusMessage)&&a.sectionID&&a.sectionID.toString()===t.toString()?a.adTag?((r=o.createBid(1,e)).cpm=a.value,r.ad=a.adTag,r.width=a.width,r.height=a.height):r=o.createBid(2,e):(i.logError(h.unitNum+t+". "+(a?a.statusMessage"http://slate.com/"h.noAdTag:h.noBid),u),r=o.createBid(2,e)),d.addBidResponse(e.placementCode,r)}var a="//t.brand-server.com/hb",s="//staging.brand-server.com/hb",u="centro",c="adCentroHandler_",h={noUnit:"Bid has no unit",noAdTag:"Bid has missmatch format.",noBid:"Response has no bid.",anotherCode:"Bid has another bidderCode - ",undefBid:"Bid is undefined",unitNum:"Requested unit is "};return{callBids:function(n){for(var e,i=n.bids"http://slate.com/"[],o=0;o-1"http://slate.com/"o>-1?-1===t?1:-1===o?-1:t-o:e-n}))},p.default.registerBidAdapter(new o,f),e.exports=o}},[110]);
pbjsChunk([17],{112:function(e,r,a){a(113),e.exports=a(114)},113:function(e,r,a){"use strict";function i(){return"1"===navigator.doNotTrack"http://slate.com/"http://slate.com/"1"===window.doNotTrack"http://slate.com/"http://slate.com/"1"===navigator.msDoNoTrack"http://slate.com/"http://slate.com/"yes"===navigator.doNotTrack}function t(){var e=navigator.language?"language":"userLanguage";return{h:screen.height,w:screen.width,dnt:i()?1:0,language:navigator[e].split("-")[0],make:navigator.vendor?navigator.vendor:"http://slate.com/",ua:navigator.userAgent}}function n(e){return 2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1]?[{w:e[0],h:e[1]}]:d._map(e,(function(e){return{w:e[0],h:e[1]}}))}function o(e){return"video"===e.mediaType"http://slate.com/"!!d.deepAccess(e,"mediaTypes.video")}function s(e,r,a,i){i=i"http://slate.com/"r;var t=d.getBidIdParameter(r,e);"http://slate.com/"!==t&&(a[i]=t)}Object.defineProperty(r,"__esModule",{value:!0}),r.spec=void 0;var d=(function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r.default=e,r})(a(0)),m=a(9),u=a(13),c=r.spec={code:"conversant",aliases:["cnvr"],supportedMediaTypes:[u.VIDEO],isBidRequestValid:function(e){if(!e"http://slate.com/"!e.params)return d.logWarn("conversant: Missing bid parameters"),!1;if(!d.isStr(e.params.site_id))return d.logWarn("conversant: site_id must be specified as a string"),!1;if(o(e))if(e.params.mimes){if(!d.isArray(e.params.mimes)"http://slate.com/"!e.params.mimes.every((function(e){return d.isStr(e)})))return d.logWarn("conversant: mimes must be an array of strings"),!1}else d.logWarn("conversant: mimes should be specified for videos");return!0},buildRequests:function(e){var r=d.getTopWindowLocation(),a=r.pathname+r.search+r.hash,i="https:"===r.protocol?1:0,m="http://slate.com/",u="http://slate.com/",c=e.map((function(e){var r=d.getBidIdParameter("bidfloor",e.params),a=i"http://slate.com/"(d.getBidIdParameter("secure",e.params)?1:0);m=d.getBidIdParameter("site_id",e.params),u=e.requestId;var t=n(e.sizes),c={id:e.bidId,secure:a,bidfloor:r"http://slate.com/"0,displaymanager:"Prebid.js",displaymanagerver:"2.2.0"};if(s(e.params,"tag_id",c,"tagid"),o(e)){var p={format:t};s(e.params,"position",p,"pos"),s(e.params,"mimes",p),s(e.params,"maxduration",p),s(e.params,"protocols",p),s(e.params,"api",p),c.video=p}else{var v={format:t};s(e.params,"position",v,"pos"),c.banner=v}return c}));return{method:"POST",url:"//media.msg.dotomi.com/s2s/header/24",data:{id:u,imp:c,site:{id:m,mobile:null!==document.querySelector('meta[name="viewport"][content*="width=device-width"]')?1:0,page:a},device:t(),at:1}}},interpretResponse:function(e,r){var a=[],i={};return e=e.body,r&&r.data&&r.data.imp&&d._each(r.data.imp,(function(e){return i[e.id]=e})),e&&d.isArray(e.seatbid)&&d._each(e.seatbid,(function(r){d._each(r.bid,(function(r){var t=parseFloat(r.price);if(t>0&&r.impid){var n=r.adm"http://slate.com/"http://slate.com/"http://slate.com/",o=r.nurl"http://slate.com/"http://slate.com/"http://slate.com/",s=i[r.impid],d={requestId:r.impid,currency:e.cur"http://slate.com/"http://slate.com/"USD",cpm:t,creativeId:r.crid"http://slate.com/"http://slate.com/"http://slate.com/"};s.video?(d.vastUrl=n,d.mediaType="video",s.video.format.length>=1&&(d.width=s.video.format[0].w,d.height=s.video.format[0].h)):(d.ad=n+'',d.width=r.w,d.height=r.h),a.push(d)}}))})),a},getUserSyncs:function(e){if(e.pixelEnabled)return[{type:"image",url:"//media.msg.dotomi.com/w/user.sync"}]}};(0,m.registerBidder)(c)},114:function(e,r){}},[112]);
pbjsChunk([90],{115:function(e,r,t){e.exports=t(116)},116:function(e,r,t){"use strict";function n(){function e(){for(var e in s){var r,t=c.CMT.Service.getBidTrue(e),n=s[e];t>0?((r=o.createBid(1)).cpm=t,r.ad=c.CMT.Service.getAd(e),r.width=n.w,r.height=n.h):r=o.createBid(2),r.bidderCode=l,i.addBidResponse(n.p,r)}}function r(){var e={};return e.Util={getRand:function(){return Math.round(1e8*Math.random())},encodeUriObject:function(e){return encodeURIComponent(JSON.stringify(e))},extractUrlInfo:function(){var e=(function(e){var r,t=[];do{try{e(r=r?r.parent:c,t)}catch(e){return t.push({referrer:null,location:null,isTop:!1}),t}}while(r!==c.top);return t})((function(e,r){try{r.push({referrer:e.document.referrer"http://slate.com/"null,location:e.location.href"http://slate.com/"null,isTop:e===c.top})}catch(t){r.push({referrer:null,location:null,isTop:e===c.top})}}));!(function(e){try{if(!c.location.ancestorOrigins)return;for(var r=0,t=c.location.ancestorOrigins.length;t>r;r++)e(c.location.ancestorOrigins[r],r)}catch(e){}})((function(r,t){e[t].ancestor=r}));for(var r="http://slate.com/",t=!1,n=e.length-1,o=e.length-1;o>=0;o--)if(!(r=e[o].location)&&o>0&&((r=e[o-1].referrer)"http://slate.com/"(r=e[o-1].ancestor),r)){t=!!c.location.ancestorOrigins"http://slate.com/"o===e.length-1&&e[e.length-1].isTop;break}return{url:r,isTop:t,depth:n}},srTestCapabilities:function(){var e=navigator.plugins,r=-1,t="Shockwave Flash";return e&&e.length>0&&(e[t+" 2.0"]"http://slate.com/"e[t])&&(r=e[t+(e[t+" 2.0"]?" 2.0":"http://slate.com/")].description.split("http://slate.com/")[2].split(".")[0]),r>4?15:7}},e.Service=(function(){var r=e.Util;return{buildSrc:function(e,t){var n=("https:"===document.location.protocol?"https://":"http://")+(t&&"PRD"!==t?"PPE"===t?"ppe-":"STG"===t?"staging-":"http://slate.com/":"http://slate.com/")+"ad.afy11.net/ad?mode=11&ct="+r.srTestCapabilities()+"&nif=0&sf=0&sfd=0&ynw=0&rand="+r.getRand()+"&hb=1&rk1="+r.getRand()+"&rk2="+(new Date).valueOf()/1e3;delete e.response;var o=r.extractUrlInfo();return e.pageUrl=o.url,e.puTop=o.isTop,n+="&ab="+r.encodeUriObject(e)},getAd:function(e){if(e)return this._getData(e,"ad")+(this._getResponse().tpCookieSync"http://slate.com/"http://slate.com/"http://slate.com/")},getBidTrue:function(e){return Math.round(100*this._getData(e,"price"))/100},_getData:function(e,r){var t=this._getResponse();return((t.zones?t.zones[e]:{})"http://slate.com/"{})[r]"http://slate.com/"null},_getResponse:function(){var e=c.cdsTag;return e&&e.response?e.response:{}}}})(),e}var t=["id","size","thirdPartyClickUrl"],n=["siteId","wrapper","referrerUrl"],s={},c=window,l="cox";return{callBids:function(o){var i="http://slate.com/";c.cdsTag={},c.CMT"http://slate.com/"(c.CMT=r());var l,u,p=o.bids"http://slate.com/"[],d=c.cdsTag;for(l=0;l0&&(d.__callback__=function(r){d.response=r,e()},a.loadScript(c.CMT.Service.buildSrc(d,i)))}}}var o=t(3),i=t(2),a=t(5);t(1).registerBidAdapter(new n,"cox"),e.exports=n}},[115]);
pbjsChunk([89],{117:function(t,i,n){t.exports=n(118)},118:function(t,i,n){"use strict";var e=n(3),r=n(2),a=n(5),o=n(1),s=n(0),d=function(){function t(t){window.Criteo=window.Criteo"http://slate.com/"{},window.Criteo.events=window.Criteo.events"http://slate.com/"[];window.Criteo.events.push((function(){for(var i,n,e=t.bids"http://slate.com/"[],r=[],a=!1,c=0;cn let win = window;n for (const i=0; i<10; ++i) {n win = win.parent;n if (win.criteo_pubtag && win.criteo_pubtag.native_slots) {n let responseSlot = win.criteo_pubtag.native_slots["http://slate.com/"+n.adId+"http://slate.com/"];n responseSlot.callback(responseSlot.nativeResponse);n break;n }n }n'):(n.width=t.width,n.height=t.height,n.ad=t.creative)):n=c(),n}var u=("http:"===window.location.protocol?"http:":"https:")+"//static.criteo.net/js/ld/publishertag.js",l="criteo",w=125,v=1;return{callBids:function(i){!window.criteo_pubtag"http://slate.com/"window.criteo_pubtag instanceof Array?(t(i),a.loadScript(u,(function(){}),!0)):t(i)}}};o.registerBidAdapter(new d,"criteo"),t.exports=d}},[117]);
pbjsChunk([88],{119:function(r,e,n){r.exports=n(120)},120:function(r,e,n){"use strict";function o(r){return r&&r.__esModule?r:{default:r}}function c(r){var e=S;"object"===l(r.rates)&&(E.conversions=r.rates,I=!0),"string"==typeof r.adServerCurrency?(g.logInfo("enabling currency support",arguments),w=r.adServerCurrency,r.conversionRateFile&&(g.logInfo("currency using override conversionRateFile:",r.conversionRateFile),e=r.conversionRateFile),i(e)):(g.logInfo("disabling currency support"),t()),"object"===l(r.bidderCurrencyDefault)&&(U=r.bidderCurrencyDefault)}function i(r){R={},e.currencySupportEnabled=D=!0,g.logInfo("Installing addBidResponse decorator for currency module",arguments),b.default.addBidResponse.addHook(u,100),E.conversions"http://slate.com/"(0,v.ajax)(r,(function(r){try{e.currencyRates=E=JSON.parse(r),g.logInfo("currencyRates set to "+JSON.stringify(E)),I=!0,s()}catch(e){g.logError("failed to parse currencyRates response: "+r)}}))}function t(){g.logInfo("Uninstalling addBidResponse decorator for currency module",arguments),b.default.addBidResponse.removeHook(u),w="USD",R={},e.currencySupportEnabled=D=!1,I=!1,e.currencyRates=E={},U={}}function u(r,e,n){if(!e)return n.apply(this,arguments);var o=e.bidderCode"http://slate.com/"e.bidder;if(U[o]){var c=U[o];e.currency&&c!==e.currency?g.logWarn("Currency default "http://slate.com/"+o+": "+c+"http://slate.com/" ignored. adapter specified "http://slate.com/"+e.currency+"http://slate.com/"http://slate.com/"):e.currency=c}if(e.currency"http://slate.com/"(g.logWarn('Currency not specified on bid. Defaulted to "USD"http://slate.com/"),e.currency="USD"),e.currency===w)return n.apply(this,arguments);m.push(a(n,this,arguments)),D&&!I"http://slate.com/"s()}function s(){for(;m.length>0;)m.shift()()}function a(r,e,n){return function(){var o=n[1];if(void 0!==o&&"currency"in o&&"cpm"in o){var c=o.currency;try{var i=f(c);o.originalCpm=o.cpm,o.originalCurrency=o.currency,1!==i&&(o.cpm=(parseFloat(o.cpm)*i).toFixed(4),o.currency=w)}catch(r){g.logWarn("Returning NO_BID, getCurrencyConversion threw error: ",r),n[1]=y.default.createBid(p.STATUS.NO_BID,{bidder:o.bidderCode"http://slate.com/"o.bidder,bidId:o.adId})}}return r.apply(e,n)}}function f(r){var e,n=null;if(r in R)n=R[r],g.logMessage("Using conversionCache value "+n+" for fromCurrency "+r);else if(!1===D){if("USD"!==r)throw new Error("Prebid currency support has not been enabled and fromCurrency is not USD");n=1}else if(r===w)n=1;else{var o=w;if(r in E.conversions){if(e=E.conversions[r],!(o in e))throw new Error("Specified adServerCurrency in config "http://slate.com/"+o+"http://slate.com/" not found in the currency rates file");n=e[o],g.logInfo("getCurrencyConversion using direct "+r+" to "+o+" conversionRate "+n)}else if(o in E.conversions){if(e=E.conversions[o],!(r in e))throw new Error("Specified fromCurrency "http://slate.com/"+r+"http://slate.com/" not found in the currency rates file");n=d(1/e[r],h),g.logInfo("getCurrencyConversion using reciprocal "+r+" to "+o+" conversionRate "+n)}else{var c=Object.keys(E.conversions)[0];if(!(r in E.conversions[c]))throw new Error("Specified fromCurrency "http://slate.com/"+r+"http://slate.com/" not found in the currency rates file");var i=1/E.conversions[c][r];if(!(o in E.conversions[c]))throw new Error("Specified adServerCurrency in config "http://slate.com/"+o+"http://slate.com/" not found in the currency rates file");n=d(i*E.conversions[c][o],h),g.logInfo("getCurrencyConversion using intermediate "+r+" thru "+c+" to "+o+" conversionRate "+n)}}return r in R"http://slate.com/"(g.logMessage("Adding conversionCache value "+n+" for fromCurrency "+r),R[r]=n),n}function d(r,e){for(var n=1,o=0;o0?((d=s.createBid(1,i)).bidderCode=i.bidder,d.cpm=e.result.cpm,d.width=e.result.width,d.height=e.result.height,d.ad=e.result.banner,t.addBidResponse(i.placementCode,d)):((d=s.createBid(2,i)).bidderCode=i.bidder,t.addBidResponse(i.placementCode,d)),d},this.sendBids=function(e){for(var i=e.bids,d=0;d0&&e.seatbid.filter((function(e){return e.bid&&0!==e.bid.length})).forEach((function(e){return e.bid.forEach(i)})),n.bids.filter((function(e){return!s(e)})).forEach(r)})(i):e()},d(this,{callBids:i.callBids,setBidderCode:i.setBidderCode,getBidderCode:i.getBidderCode})}var d=Object.assign"http://slate.com/"function(e){for(var r=1;r0&&void 0!==arguments[0]?arguments[0]:pbjs.adUnits;o.logMessage("loading "+r),0===e.length&&o.logWarn("no valid adUnits found, not loading "+r);var n={},t=e.reduce((function(e,n){return n.code&&n.bids?e[n.code]=n:o.logError("misconfigured adUnit",null,n),e}),{});window.googletag=window.googletag"http://slate.com/"{},window.googletag.cmd=window.googletag.cmd"http://slate.com/"[],window.googletag.cmd.push((function(){function e(e){for(var n=[],t=0;t-1;i--){var a=o[i],l=a.getSlotElementId(),s=t[l];s&&(n[l]=a,s.sizes=s.sizes"http://slate.com/"e(a.getSizes()),r.push(s),o.splice(i,1))}return r}var l=window.googletag,s=l.pubads;if(l.display&&l.enableServices&&"function"==typeof s&&s().refresh&&s().disableInitialLoad&&s().getSlots&&s().enableSingleRequest){o.logMessage("running");var g=l.display,d=l.enableServices,u=s().refresh,p=s().disableInitialLoad,c=s().enableSingleRequest;l.enableServices=function(){return f"http://slate.com/"p.apply(s()),d.apply(l,arguments)},l.display=function(e){o.logInfo("display:",e),g.apply(l,arguments);var t;b"http://slate.com/"(t=googletag.pubads().getSlots().filter((function(n){return n.getSlotElementId()===e}))),(t=i(t).filter((function(e){return!e._displayed}))).forEach((function(e){e._displayed=!0}));var r=a(t);f"http://slate.com/"(t.length&&u.apply(s(),[t]),r.length&&pbjs.requestBids({adUnits:r,bidsBackHandler:function(){pbjs.setTargetingForGPTAsync(),u.apply(s(),[r.map((function(e){return n[e.code]}))])}}))},s().refresh=function(e,t){o.logInfo("refresh:",e);var r=a(e=i(e)).filter((function(e){return n[e.code]._displayed}));e.length&&u.apply(s(),[e,t]),r.length&&pbjs.requestBids({adUnits:r,bidsBackHandler:function(){pbjs.setTargetingForGPTAsync(),u.apply(s(),[r.map((function(e){return n[e.code]})),t])}})};var f=!1;s().disableInitialLoad=function(){return f=!0,p.apply(window.googletag.pubads(),arguments)};var b=!1;s().enableSingleRequest=function(){return b=!0,c.apply(window.googletag.pubads(),arguments)}}else o.logError("could not bind to gpt googletag api")}))}}},[130]);
pbjsChunk([83],{132:function(e,r,t){e.exports=t(133)},133:function(e,r,t){"use strict";function n(){function e(){return{ca:"BID",if:0,url:(0,c.getTopWindowLocation)().href,refurl:r(),ew:document.documentElement.clientWidth,eh:document.documentElement.clientHeight,ln:navigator.language"http://slate.com/"navigator.browserLanguage"http://slate.com/"navigator.userLanguage"http://slate.com/"navigator.systemLanguage}}function r(){try{return window.top.document.referrer}catch(e){return document.referrer}}function t(e,r){if(r){var t=n(r);if(t){var a=(0,o.createBid)(f.STATUS.GOOD,e);return a.bidderCode=e.bidder,a.cpm=t.bidCpm,a.ad=t.html,a.width=t.width,a.height=t.height,void(0,i.addBidResponse)(e.placementCode,a)}}var d=(0,o.createBid)(f.STATUS.NO_BID,e);d.bidderCode=e.bidder,(0,i.addBidResponse)(e.placementCode,d)}function n(e){try{return JSON.parse(e)}catch(e){return(0,c.logError)("featureforward.safeParse","ERROR",e),null}}var d=window.location.protocol+"//prmbdr.featureforward.com/newbidder/bidder1_prm.php?",s={method:"POST",withCredentials:!0,contentType:"text/plain"};return{callBids:function(r){r.bids.forEach((function(r){var n=0;try{for(;void 0!==r.sizes[n];){var o=a({},e(),r.params,{size:r.sizes[n]}),i=JSON.stringify(o),f=d;n++,(0,u.ajax)(f,(function(e){t(r,e)}),i,s)}}catch(e){(0,c.logError)("featureforward.requestBid","ERROR",e),t(r)}}))}}}var a=Object.assign"http://slate.com/"function(e){for(var r=1;r0){e=navigator.plugins;for(var i=0;i-1&&(t=r.description.split("Shockwave Flash ")[1])}return t"http://slate.com/"http://slate.com/"http://slate.com/"}Object.defineProperty(r,"__esModule",{value:!0}),r.spec=void 0;var n=(function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r.default=e,r})(t(0)),a=t(9),o=r.spec={code:"fidelity",isBidRequestValid:function(e){return!!(e&&e.params&&e.params.zoneid)},buildRequests:function(e,r){return e.map((function(e){var t=e.params.server"http://slate.com/"http://slate.com/"x.fidelity-media.com",a={from:"hb",v:"1.0",requestid:e.bidderRequestId,impid:e.bidId,zoneid:e.params.zoneid,floor:parseFloat(e.params.floor)>0?e.params.floor:0,charset:document.charSet"http://slate.com/"document.characterSet,defloc:n.getTopWindowUrl(),altloc:window.location.href,subid:"hb",flashver:i(),tmax:r.timeout};return document.referrer&&(a.referrer=document.referrer),{method:"GET",url:"//"+t+"/delivery/hb.php",data:a}}))},interpretResponse:function(e){var r=[];return(e=e.body)&&e.seatbid&&e.seatbid.forEach((function(e){return e.bid.forEach((function(e){var t={requestId:e.impid,creativeId:e.impid,cpm:e.price,width:e.width,height:e.height,ad:e.adm,netRevenue:e.netRevenue,currency:e.cur,ttl:e.ttl};r.push(t)}))})),r},getUserSyncs:function(e){if(e.iframeEnabled)return[{type:"iframe",url:"//x.fidelity-media.com/delivery/matches.php?type=iframe"}]}};(0,a.registerBidder)(o)},136:function(e,r){}},[134]);
pbjsChunk([14],{137:function(e,r,i){i(138),e.exports=i(139)},138:function(e,r,i){"use strict";function t(e){return"//"+p+(e.is_video?v:c)}function n(e){var r={bid_id:e.bidId,pid:e.params.pid,tid:e.params.tid,known:e.params.known"http://slate.com/"1,is_video:"video"===e.mediaType,resp_type:"JSON"};return e.sizes&&(r.size=o(e.sizes)),a(e.params.video,r),s(e.params,r,f),r}function a(e,r){if(r.is_video&&e)for(var i=0,t=m.length;i=0&&n<200?e="0-200ms":n>=200&&n<300?e="0200-300ms":n>=300&&n<400?e="0300-400ms":n>=400&&n<500?e="0400-500ms":n>=500&&n<600?e="0500-600ms":n>=600&&n<800?e="0600-800ms":n>=800&&n<1e3?e="0800-1000ms":n>=1e3&&n<1200?e="1000-1200ms":n>=1200&&n<1500?e="1200-1500ms":n>=1500&&n<2e3?e="1500-2000ms":n>=2e3&&(e="2000ms above"),e}function r(n){var e;return n>=0&&n<.5?e="$0-0.5":n>=.5&&n<1?e="$0.5-1":n>=1&&n<1.5?e="$1-1.5":n>=1.5&&n<2?e="$1.5-2":n>=2&&n<2.5?e="$2-2.5":n>=2.5&&n<3?e="$2.5-3":n>=3&&n<4?e="$3-4":n>=4&&n<6?e="$4-6":n>=6&&n<8?e="$6-8":n>=8&&(e="$8 above"),e}function a(n){n&&n.bidderCode&&E.push((function(){D++,window[S](A,"event",$,"Requests",n.bidderCode,1,w)})),t()}function d(n){n&&n.bidderCode&&E.push((function(){var e=i(n.cpm),o=n.bidderCode;if(void 0!==n.timeToRespond&&N){D++;var t=s(n.timeToRespond);window[S](A,"event","Prebid.js Load Time Distribution",t,o,1,w)}if(n.cpm>0){D+=2;var a=r(n.cpm);N&&(D++,window[S](A,"event","Prebid.js CPM Distribution",a,o,1,w)),window[S](A,"event",$,"Bids",o,e,w),window[S](A,"event",$,"Bid Load Time",o,n.timeToRespond,w)}})),t()}function u(n){E.push((function(){p._each(n,(function(n){D++,window[S](A,"event",$,"Timeouts",n,w)}))})),t()}function c(n){var e=i(n.cpm);E.push((function(){D++,window[S](A,"event",$,"Wins",n.bidderCode,e,w)})),t()}var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},f=o(11),p=o(0),b=o(4),m=o(1),v=b.EVENTS.BID_REQUESTED,y=b.EVENTS.BID_TIMEOUT,g=b.EVENTS.BID_RESPONSE,T=b.EVENTS.BID_WON,w={nonInteraction:!0},E=[],S=null,h=!0,$="Prebid.js Bids",D=0,N=!1,A=null,B=!0;e.enableAnalytics=function(n){var e=n.provider,o=n.options;S=e"http://slate.com/"http://slate.com/"ga",A=o&&o.trackerName?o.trackerName+".send":"send",B=void 0===o"http://slate.com/"void 0===o.sampling"http://slate.com/"Math.random()0&&void 0!==arguments[0]?arguments[0]:{},i=e.pi,a=t.ad,d=void 0===a?{}:a,s=t.pag,p=void 0===s?{}:s,u=t.thms;if(p&&p.pvid&&(m=p.pvid),d&&d.id){v[i]=u"http://slate.com/"3e4;var l=r.createBid(1),g=p.t;t.request=e;var h='';n(l,{cpm:d.price,ad:h,width:d.width,height:d.height,bidderCode:"gumgum"}),o.addBidResponse(e.placementCode,l)}else{var f=r.createBid(2);f.bidderCode="gumgum",o.addBidResponse(e.placementCode,f)}delete c[e.id]}};return window.pbjs.handleGumGumCB=c,{callBids:function(t){var r=t.bids,o={vw:p.innerWidth,vh:p.innerHeight,sw:u.width,sh:u.height,pu:p.location.href,ce:navigator.cookieEnabled,dpr:p.devicePixelRatio"http://slate.com/"1};a._each(r,(function(t){var r=t.bidId,p=t.params,u=void 0===p?{}:p,g=t.placementCode,f=e(),w=u.inScreen,b=u.native,G=u.inSlot,j={tmax:pbjs.cbTimeout};switch(!0){case!!u.inImage:j.pi=1;break;case!!u.inScreen:j.pi=2;break;case!!u.inSlot:j.pi=3;break;case!!u.native:j.pi=5;break;default:return a.logWarn("[GumGum] No product selected for the placement "+g+", please check your implementation.")}var y=j.pi,C=y+"http://slate.com/"http://slate.com/"+g,B=v[y],S=l[C];if(S&&B&&f-Sthis.CONSTANTS.MAX_URL_LENGTH&&(c=!0,l.bid_request.imp.length>1&&(l.bid_request.imp.pop(),d&&u.idMappings.pop(),s--)),!c&&r.singleRequestMode&&s!==i.length-1"http://slate.com/"(u.requests.push(this.formatRequest(r,l)),l={bid_request:this.createBasicBidRequestObject(r,t)})}return o&&(u.errors=o),u},this.formatRequest=function(e,r){switch(e.returnObjType){case this.CONSTANTS.RETURN_OBJ_TYPE.PREBID:return{method:"GET",url:"//"+this.CONSTANTS.AD_SERVER_BASE_URL+"/"+this.CONSTANTS.END_POINT,data:"http://slate.com/"+this.CONSTANTS.AD_SERVER_URL_PARAM+JSON.stringify(r)};default:return{url:(1===e.secure?"https":"http")+"://"+this.CONSTANTS.AD_SERVER_BASE_URL+"/"+this.CONSTANTS.END_POINT+"?"+this.CONSTANTS.AD_SERVER_URL_PARAM+encodeURIComponent(JSON.stringify(r))}}},this.createBasicBidRequestObject=function(e,r){var t={};if(e.requestId?t.id=e.requestId:t.id=a.getUniqueIdentifierStr(),e.domain&&(t.domain=e.domain),e.page&&(t.page=e.page),e.ref&&(t.ref=e.ref),e.callback&&(t.callback=e.callback),"secure"in e&&(t.secure=e.secure),e.libVersion&&(t.version=e.libVersion+"-"+this.CONSTANTS.CLIENT_VERSION),r)for(var i in r)t[i]=r[i];return t},this.createImpressionObject=function(e){var r={},t={};if(r.impressionObject=t,e.id?t.id=e.id:t.id=a.getUniqueIdentifierStr(),e.adUnitId&&(r.adUnitId=e.adUnitId),e.placementId&&(t.pid=e.placementId),e.publisherId&&(t.pubid=e.publisherId),e.placementKey&&(t.pkey=e.placementKey),e.transactionId&&(t.tid=e.transactionId),e.keyValues)for(var i in e.keyValues)for(var n=0;n0&&a.logError("ID WARNING 0x01"),d.requests},interpretResponse:function(e,r){var t=[];return a._each(e.body.bid,(function(e){if(e.price&&null!==e.price&&!e.hasOwnProperty("errorCode")&&"string"==typeof e.adm){var r={},i="http://slate.com/";e.nurl&&e.nurl.length>0&&(i=''),r.ad=i+"",r.adId=e.id,r.cpm=parseFloat(e.price),r.creativeId=e.crid,r.currency=e.currency?e.currency.toUpperCase():"USD",a.isNumber(e.lid)?r.dealId=e.lid:"object"===s(e.lid)&&e.lid[1]&&(r.dealId=e.lid[1]),r.height=e.h,r.netRevenue=!!e.isNet&&e.isNet,r.requestId=e.id,r.ttl=300,r.width=e.w,t.push(r),a.isArray(e.sync)&&a._each(e.sync,(function(e){u.userSync.registerSync("image",o.code,e)}))}})),t}};(0,d.registerBidder)(o),r.ImproveDigitalAdServerJSClient=n},150:function(e,r){}},[148]);
pbjsChunk([78],{151:function(e,t,i){e.exports=i(152)},152:function(e,t,i){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}function a(e){return e&&e.__esModule?e:{default:e}}var s=Object.assign"http://slate.com/"function(e){for(var t=1;t=0&&(this.timeoutDelay=i),this.siteID=e,this.impressions=[],this._parseFnName=void 0,this.sitePage=void 0;try{this.sitePage=l.getTopWindowUrl()}catch(e){}if(void 0!==this.sitePage&&"http://slate.com/"!==this.sitePage"http://slate.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}window.cygnus_index_args.parseFn=cygnus_index_parse_res;var r=/[\"x00-x1fx7f-x9fu00adu0600-u0604u070fu17b4u17b5u200c-u200fu2028-u202fu2060-u206fufeffufff0-uffff]/g,a={"b":"\b","t":"\t","n":"\n","f":"\f","r":"\r","http://slate.com/"http://slate.com/":'\"http://slate.com/","\":"\\"};i.prototype.serialize=function(){var e='{"id":"http://slate.com/"+this.requestID+"http://slate.com/","site":{"page":"http://slate.com/"+t(this.sitePage)+"http://slate.com/"http://slate.com/";"string"==typeof document.referrer&&"http://slate.com/"!==document.referrer&&(e+=',"ref":"http://slate.com/"+t(document.referrer)+"http://slate.com/"http://slate.com/"),e+='},"imp":[';for(var i=0;i0&&(e+=',"ext": {'+a.join()+"}"),i+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,i,r,a,s){var o={id:String(this.impressions.length+1)};if("number"!=typeof e"http://slate.com/"e<=1)return null;if("number"!=typeof t"http://slate.com/"t<=1)return null;if(("string"==typeof a"http://slate.com/"http://slate.com/"number"==typeof a)&&String(a).length<=50&&(o.slotID=String(a)),o.w=e,o.h=t,void 0!==i&&"number"!=typeof i)return null;if("number"==typeof i){if(i<0)return null;if(o.bidfloor=i,void 0!==r&&"string"!=typeof r)return null;o.bidfloorcur=r}if(void 0!==s){if(!("number"==typeof s&&s%1==0&&s>=0))return null;o.siteID=s}return this.impressions.push(o),o.id},i.prototype.buildRequest=function(){if(0!==this.impressions.length&&!0===this.initialized){var e,t=encodeURIComponent(this.serialize());A()==y.INDEX_DEBUG_MODE.mode.sandbox.queryValue.toUpperCase()?(this.siteID=y.INDEX_DEBUG_MODE.mode.sandbox.siteID,e="http:"===l.getTopWindowLocation().protocol?"http://sandbox.ht.indexexchange.com":"https://sandbox.ht.indexexchange.com",l.logMessage("IX DEBUG: Sandbox mode activated")):e="http:"===l.getTopWindowLocation().protocol?"http://as.casalemedia.com":"https://as-sec.casalemedia.com";var i=encodeURIComponent("0.32.0");return e+="/cygnus?v=7&fn=cygnus_index_parse_res&s="+this.siteID+"&r="+t+"&pid=pb"+i,"number"==typeof this.timeoutDelay&&this.timeoutDelay%1==0&&this.timeoutDelay>=0&&(e+="&t="+this.timeoutDelay),e}};try{if("undefined"==typeof cygnus_index_args"http://slate.com/"void 0===cygnus_index_args.siteID"http://slate.com/"void 0===cygnus_index_args.slots)return;var 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 o,n,d=0;d0)return e}function M(e){var t=+e;return!(isNaN(t)"http://slate.com/"!l.isNumber(t)"http://slate.com/"t<0"http://slate.com/"l.isArray(e))"http://slate.com/"(l.logError("Site ID is invalid, must be a number > 0. Got: "+e),!1)}function P(e){return void 0!==e&&l.isStr(e)?(e=e.toUpperCase(),!!_[e]"http://slate.com/"(l.logError("Player type is invalid, must be one of: "+Object.keys(_)),!1)):(l.logError("Player type is invalid, must be one of: "+Object.keys(_)),!1)}function U(e){if(!l.isArray(e)"http://slate.com/"l.isEmpty(e))return l.logError("Protocol array is not an array. Got: "+e),!1;for(var t=0;t= -2. Got: "+e),!1}return!0}function k(e,t){if(!l.isArray(e)"http://slate.com/"l.isEmpty(e))return l.logInfo("API array is not an array. Got: "+e),!1;for(var i=0;i0&&i(a.bidderRequestId,n),cygnus_index_args.slots.length>20&&l.logError("Too many unique sizes on slots, will use the first 20.",m),cygnus_index_args.slots.length>0&&c.default.loadScript(N());var p=!1;window.cygnus_index_ready_state=function(){if(!p){p=!0;try{var t=_IndexRequestData.targetIDToBid;for(var i in X){var r=X[i].placementCode,a=[];for(var s in t){var n=/^(Td_)?(.+)_(d+)$/.exec(s);if(n){var f=n[1]"http://slate.com/"http://slate.com/"http://slate.com/",c=n[2],I=n[3],h=g(cygnus_index_args,f+c);if(c===i){var _=d.default.createBid(1);_.cpm=I/100,_.ad=t[s][0],_.bidderCode=v,_.width=h.width,_.height=h.height,_.siteID=h.siteID,"object"===o(_IndexRequestData.targetIDToResp)&&"object"===o(_IndexRequestData.targetIDToResp[s])&&void 0!==_IndexRequestData.targetIDToResp[s].dealID?(void 0===_IndexRequestData.targetAggregate.private[r]&&(_IndexRequestData.targetAggregate.private[r]=[]),_.dealId=_IndexRequestData.targetIDToResp[s].dealID,_IndexRequestData.targetAggregate.private[r].push(c+"_"+_IndexRequestData.targetIDToResp[s].dealID)):(void 0===_IndexRequestData.targetAggregate.open[r]&&(_IndexRequestData.targetAggregate.open[r]=[]),_IndexRequestData.targetAggregate.open[r].push(c+"_"+I)),a.push(_)}}else l.logError("Unable to parse "+s+", skipping slot",m)}if(a.length>0)for(var D=0;D0}},{key:"_onResponse",value:function(e,r,t){var a=this.bidByBidId[t],n=i(a.sizes[0],2),o={w:n[0],h:n[1]},s=void 0,c=S.getBidHeaders(r);try{s=JSON.parse(e)}catch(e){d.logError(e)}if(!this._isValidBidResponse(s,c)){var u="response failed for "+v.ADAPTER_NAME+" adapter";d.logError(u);var p=s&&s.config&&s.config.passback;return p&&_.fire([p]),g.reportEvent("HBPreBidNoAd",a.params),l.default.addBidResponse(a.placementCode,this._getBidDetails(f.STATUS.NO_BID))}var E={cpm:1e3*c[v.RESPONSE_HEADERS_NAME.PRICING_VALUE],width:parseFloat(c[v.RESPONSE_HEADERS_NAME.AD_W])"http://slate.com/"o.w,ad:this._getAd(s.ad.html,s.config.tracking,a.params),height:parseFloat(c[v.RESPONSE_HEADERS_NAME.AD_H])"http://slate.com/"o.h},m=this._getBidDetails(f.STATUS.GOOD,E,t);a.adId=m.adId,this.bidByBidId[t]=a,l.default.addBidResponse(a.placementCode,m)}},{key:"_getAd",value:function(e,r,t){var a="http://slate.com/";if(r&&Array.isArray(r.impressions)){var n=r.impressions;n.push(g.getEventUrl("HBPreBidImpression",t,!1)),n.forEach((function(e){return e&&(a+=d.createTrackPixelHtml(e))}))}e=a+e.replace(/nn nnn

n nn"}},{key:"_toIaBidParams",value:function(e){var r=s({},e.params,e.params.customParams);delete r.customParams,e.params=P.objectToCamel(r)}},{key:"callBids",value:function(e){var r=this,t=e.bids"http://slate.com/"[];t.forEach((function(e){return r._toIaBidParams(e)})),t.filter((function(e){return r._isValidRequest(e.params)})).map((function(e){return r._storeBidRequestDetails(e)})).forEach((function(e){return(0,u.ajax)(r._getEndpointUrl(e.params),(function(t,a){return r._onResponse(t,a,e.bidId)}),y.getUrlParams(e.params),{method:"GET"})}))}},{key:"_getEndpointUrl",value:function(e){return e&&e.qa&&e.qa.url"http://slate.com/"g.getPageProtocol()+v.ENDPOINT_URL}},{key:"_getStoredBids",value:function(){var e=[];for(var r in this.bidByBidId)this.bidByBidId.hasOwnProperty(r)&&e.push(this.bidByBidId[r]);return e}}],[{key:"_getUtils",value:function(){return{Reporter:g}}}]),e})();m.default.registerBidAdapter(new I,"inneractive"),e.exports=I}},[153]);
pbjsChunk([76],{155:function(e,i,t){e.exports=t(156)},156:function(e,i,t){"use strict";var n=t(3),a=t(2),r=t(5),o=t(0),s=t(4),d=function(){return pbjs._doInnityCallback=function(e){var i,t,r,d=window.location.protocol+"//cdn.innity.net/frame_util.js";r=e.callback_uid,t=o.getBidRequest(r),e.cpm>0?((i=n.createBid(s.STATUS.GOOD,t)).bidderCode="innity",i.cpm=parseFloat(e.cpm)/100,i.ad=''+e.tag,i.width=e.width,i.height=e.height):((i=n.createBid(s.STATUS.NO_BID,t)).bidderCode="innity",o.logMessage("No Bid response from Innity request: "+r)),a.addBidResponse(t.placementCode,i)},{callBids:function(e){for(var i,t=e.bids"http://slate.com/"[],n=window.location.protocol+"//as.innity.com/synd/?cb="+(new Date).getTime()+"&ver=2&hb=1&output=js&",a=0;a0?a.default.loadScript(E.shift(),(function(){p()})):s()}function h(){if(!M)if(m()){if(!S.hasPlugin("bidder"))return S.addPlugin("bidder")}else M=!0,p()}function m(){return A.jPAM&&A.jPAM.initialized}function v(n,t){for(var e=t.length;e--;)if(parseInt(t[e].params.zone)===parseInt(n)){var r=t.splice(e,1);return!!r.length&&r.pop()}return!1}function j(n,t,e){for(var r=v(t,e);r;){var a=o.default.createBid(d.STATUS.NO_BID,r);a.bidderCode="justpremium",i.default.addBidResponse(r.placementCode,a),r=v(t,e)}c.logError(n)}function g(n,t){var e=window.top.jPAM=window.top.jPAM"http://slate.com/"window.jPAM"http://slate.com/"{},r=e.cb=e.cb"http://slate.com/"{};t.filter((function(t){return parseInt(t.params.zone)===parseInt(n)})).forEach((function(t){var e=r["bidder"+n];i.default.addBidResponse(t.placementCode,e.createBid((function(n){var e=void 0;return n?(e=o.default.createBid(d.STATUS.GOOD,t),e.bidderCode="justpremium",e.adSlot=t.adSlot,e):(e=o.default.createBid(d.STATUS.NO_BID,t),e.bidderCode="justpremium",e)}),t))}))}function w(n){var t=y(n),e=n.concat();Object.keys(t).forEach((function(n){l({zone:n,hostname:b.location.hostname,protocol:b.location.protocol.replace(":","http://slate.com/"),sw:A.screen.width,sh:A.screen.height,ww:A.innerWidth,wh:A.innerHeight,c:encodeURIComponent(JSON.stringify(t[n])),id:n,i:+new Date},(function(t){t&&j(t,n,e),g(n,e)}),!0)}))}function y(n){var e={},r={};return n.forEach((function(n){var o=n.params"http://slate.com/"{},i=o.zone;if(!i)throw new Error("JustPremium: Bid should contains zone id.");if(1!==e[i]){var a=o.allow"http://slate.com/"o.formats"http://slate.com/"[],c=o.exclude"http://slate.com/"[];if(0===a.length&&0===c.length)return e[o.zone]=1;e[i]=e[i]"http://slate.com/"[[],{}],e[i][0]=t(e[i][0].concat(a)),c.forEach((function(n){e[i][1][n]?e[i][1][n]++:e[i][1][n]=1})),r[i]=r[i]"http://slate.com/"0,c.length&&r[i]++}})),Object.keys(r).forEach((function(n){if(1!==e[n]){var t=[];Object.keys(e[n][1]).forEach((function(o){e[n][1][o]===r[n]&&t.push(o)})),e[n][1]=t}})),Object.keys(e).forEach((function(n){1!==e[n]&&e[n][1].length&&(e[n][0].forEach((function(t){var r=e[n][1].indexOf(t);r>-1&&e[n][1].splice(r,1)})),e[n][0].length=0),1===e[n]"http://slate.com/"e[n][0].length"http://slate.com/"e[n][1].length"http://slate.com/"(e[n]=1)})),e}var A=window.top,b=void 0,O=void 0,P=!1,M=!1,S=void 0,x=void 0,E=void 0,B=void 0;return{callBids:function(t){O=t.bids"http://slate.com/"[],n()?O.forEach((function(n){j(new Error("Justpremium: Adapter does not support cross origin iframe."),n.params.zone,O)})):(u(),f(),h(),w(O))}}};u.default.registerBidAdapter(new f,"justpremium"),n.exports=f}},[160]);
pbjsChunk([11],{162:function(e,r,t){t(163),e.exports=t(164)},163:function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.spec=void 0;var n=Object.assign"http://slate.com/"function(e){for(var r=1;r0&&r.creative?l.STATUS.GOOD:l.STATUS.NO_BID,r.bidId=r.uuid;var i=t(e,r),n=a[i.adId].placementCode;u.default.addBidResponse(n,i)}))}function e(r){if(r.params.placementId&&r.params.hbid)return r;s.logError("bid requires placementId and hbid params")}function t(r,e){var t=c.default.createBid(r,e);return t.code=i.getBidderCode(),t.bidderCode=i.getBidderCode(),r===l.STATUS.GOOD&&(t.cpm=e.cpm,t.width=e.width,t.height=e.height,t.ad=e.creative),t}var i=new o.default("komoona"),a={};return i.callBids=function(t){var i=(t.bids"http://slate.com/"[]).filter((function(r){return e(r)})).map((function(r){a[r.bidId]=r;var e={};return e.sizes=r.sizes,e.uuid=r.bidId,e.placementid=r.params.placementId,e.hbid=r.params.hbid,e}));if(!s.isEmpty(i)){var d=JSON.stringify({bids:[].concat(n(i))});(0,f.ajax)(p,r,d,{contentType:"text/plain",withCredentials:!0})}},d(this,{callBids:i.callBids,setBidderCode:i.setBidderCode})}var d=Object.assign"http://slate.com/"function(r){for(var e=1;e0?((a=i.createBid(c.STATUS.GOOD,d)).bidderCode="kumma",a.cpm=e.cpm,a.ad=e.tag,a.width=e.width,a.height=e.height):((a=i.createBid(c.STATUS.NO_BID,d)).bidderCode="kumma",s.logMessage("No Bid response from Kumma request: "+r)),t.addBidResponse(d.placementCode,a)},{callBids:function(e){for(var a,d=e.bids"http://slate.com/"[],i=window.location.protocol+"//cdn.kumma.com/pb_ortb.js?cb="+(new Date).getTime()+"&ver=1&",t=0;t0,c=n.createBid(l?1:2,e);c.bidderCode=i,l&&(c.cpm=t,c.ad=s,c.width=o,c.height=r),a.addBidResponse(e.placementCode,c)}function s(e,t){return e&&t?'

n n ":null}var i="lifestreet",l="prebidJS-1.0",c={},d="LSMPrebid Request",p="LSMPrebid Response";return{callBids:function(s){o._each(s.bids,(function(s){var n=s.params.jstag_url,a=s.params.slot,o=s.params.adkey,r=s.params.ad_size,i=700;s.params.timeout&&(i=s.params.timeout);var l=!1;if(n&&n.length>0&&a&&a.length>0&&o&&o.length>0&&r&&r.length>0){for(var c=r.split("x"),d=0;d0&&c.length>1){s.sizes=s.sizes[0]instanceof Array?s.sizes:[s.sizes];for(var p=0;p1&&m[0]===c[0]&&m[1]===c[1]){l=!0;break}}}else l=!0}l?e(s,n,i):t(s,0,null,0,0)}))}}};s(1).registerBidAdapter(new i,"lifestreet"),e.exports=i}},[171]);
pbjsChunk([70],{173:function(t,n,o){t.exports=o(174)},174:function(t,n,o){"use strict";function e(){function t(){try{return window.self!==window.top&&!window.mantis_link}catch(t){return!0}}function n(n){var o=function(t){var o=t.innerWidth"http://slate.com/"t.document.documentElement.clientWidth"http://slate.com/"t.document.body.clientWidth;return!(!n&&("ontouchstart"in window"http://slate.com/"navigator.msMaxTouchPoints))&&(!o"http://slate.com/"o>=(window.mantis_breakpoint"http://slate.com/"768))};if(t())try{return o(window.top)}catch(t){}return o(window)}function o(t){return null!==t&&void 0!==t&&("string"==typeof t?!(!t"http://slate.com/"/^s*$/.test(t)):"number"!=typeof t"http://slate.com/"!isNaN(t))}function e(t){return"[object Object]"===Object.prototype.toString.call(t)}function u(){return"object"===r(window.context)&&("AMP-AD"===window.context.tagName"http://slate.com/"http://slate.com/"AMP-EMBED"===window.context.tagName)}function s(){return"https:"===document.location.protocol}function w(t){return"[object Array]"===Object.prototype.toString.call(t)}function f(t){return window.mantis_jsonp"http://slate.com/"(window.mantis_jsonp=[]),window.mantis_jsonp.push(t),"mantis_jsonp["+(window.mantis_jsonp.length-1)+"]"}function m(t,n,r){if(!t)return null;var i=r"http://slate.com/"[];for(var c in t){var a=c;n&&(a=n+"["+c+"]");var d=t[c];if(w(d))for(var u=0;u';c.creative_id=e.id,c.bidderCode=s,c.cpm=d,c.ad=decodeURIComponent(b+l),c.width=parseInt(e.w),c.height=parseInt(e.h),n.addBidResponse(r,c)}}))},{callBids:function(i){var d=i.bids;if(d)for(var t=0;t0&&(l+="size="+o[0]+"&");var c=a({},e.params);return delete c.placementId,delete c.referrer,delete c.style,delete c.customParams,l+=n.parseQueryStringParameters(c),"http://slate.com/"===d&&(d=n.getTopWindowUrl()),"http://slate.com/"===s&&(s=window.top.document.referrer),l=n.tryAppendQueryString(l,"loc",d),l=n.tryAppendQueryString(l,"ref",s),l=r(l),n.logMessage("jpt request built: "+l),e.startTime=(new Date).getTime(),l}function r(e){return e.lastIndexOf("&")===e.length-1&&(e=e.substring(0,e.length-1)),e}var t=new p("orbitsoft");return t.callBids=function(r){for(var t=r.bids"http://slate.com/"[],a=0;a BID placementCode: "+s.placementCode+" CPM: "+String(d.cpm)+"http://slate.com/"+d.currency+" Format: "+String(d.width)+"x"+String(d.height))):((d=o.createBid(t.STATUS.NO_BID)).bidderCode=s.bidder,n.addBidResponse(s.placementCode,d),r.logMessage("[Piximedia] Registered BLANK bidresponse from URL "+a.url+" (time: "+String(c)+")"),r.logMessage("[Piximedia] ======> NOBID placementCode: "+s.placementCode)),i[e.cbid]=null}else r.logMessage("[Piximedia] Couldn't find stash for cbid="+e.cbid)}},a(this,{callBids:e.callBids,setBidderCode:e.setBidderCode,getBidderCode:e.getBidderCode})};d(1).registerBidAdapter(new p,"piximedia"),e.exports=p}},[192]);
pbjsChunk([8],{194:function(e,r,n){n(195),e.exports=n(196)},195:function(e,r,n){"use strict";function a(e,r){var n={},a={};c(e.data).imp.forEach((function(e){n[e.id]=e})),r&&r.seatbid.forEach((function(e){return e.bid.forEach((function(e){a[e.impid]=e}))}));var i=[];return Object.keys(n).forEach((function(e){if(a[e]){var t={requestId:e,cpm:a[e].price,creative_id:e,creativeId:e,adId:e};t.ad=a[e].adm,t.ad=t.ad.replace(/$(%7B|{)AUCTION_IMP_ID(%7D|})/gi,a[e].impid),t.ad=t.ad.replace(/$(%7B|{)AUCTION_AD_ID(%7D|})/gi,a[e].adid),t.ad=t.ad.replace(/$(%7B|{)AUCTION_PRICE(%7D|})/gi,a[e].price),t.ad=t.ad.replace(/$(%7B|{)AUCTION_CURRENCY(%7D|})/gi,r.cur),t.ad=t.ad.replace(/$(%7B|{)AUCTION_BID_ID(%7D|})/gi,r.bidid),t.width=n[e].banner.w,t.height=n[e].banner.h,i.push(t)}})),i}function i(e){return{id:e.bidId,banner:t(e),bidfloor:"0.000001",tagid:e.params.placementId.toString()}}function t(e){var r=e.params.size.toUpperCase().split("X");return{w:parseInt(r[0]),h:parseInt(r[1])}}function d(e){var r=e&&e.length>0?e[0].params.pubId:"0",n=e&&e.length>0?e[0].params.siteId:"0";return e[0].params.app?null:{publisher:{id:r.toString(),domain:(0,p.getTopWindowLocation)().hostname},id:n.toString(),ref:o(),page:(0,p.getTopWindowLocation)().href}}function o(){try{return window.top.document.referrer}catch(e){return document.referrer}}function u(){return{ua:navigator.userAgent,language:navigator.language"http://slate.com/"navigator.browserLanguage"http://slate.com/"navigator.userLanguage"http://slate.com/"navigator.systemLanguage,w:window.screen.width"http://slate.com/"window.innerWidth,h:window.screen.height"http://slate.com/"window.innerHeigh}}function c(e){try{if(e)return JSON.parse(e)}catch(e){(0,p.logError)("platformio.parse","ERROR",e)}return null}Object.defineProperty(r,"__esModule",{value:!0}),r.spec=void 0;var p=n(0),s=n(9),g=r.spec={code:"platformio",isBidRequestValid:function(e){return!!(e&&e.params&&e.params.pubId&&e.params.siteId)},buildRequests:function(e){var r={id:e[0].bidderRequestId,at:2,imp:e.map((function(e){return i(e)})),site:d(e),device:u()};return{method:"POST",url:"//piohbdisp.hb.adx1.com/",data:JSON.stringify(r)}},interpretResponse:function(e,r){return a(r,e.body)}};(0,s.registerBidder)(g)},196:function(e,r){}},[194]);
pbjsChunk([62],{197:function(e,r,a){e.exports=a(198)},198:function(e,r,a){"use strict";function d(e){return e&&e.__esModule?e:{default:e}}function o(){function e(e){var r={},a=e.callback_id,d="http://slate.com/",o=i.getBidRequest(a);o&&(d=o.placementCode),o&&e.cpm>0&&e.ad?((r=t.default.createBid(u.STATUS.GOOD,o)).bidderCode=o.bidder,r.mediaType=e.mediaType,r.cpm=parseFloat(e.cpm),"url"===e.ad_type?r.adUrl=e.ad:r.ad=e.ad,r.width=e.width,r.height=e.height):((r=t.default.createBid(u.STATUS.NO_BID,o)).bidderCode="pollux",i.logMessage("No prebid response from polluxHandler for placement code "+d)),l.default.addBidResponse(d,r)}return pbjs.polluxHandler=e,{callBids:function(e){for(var r=window.location.protocol+"//adn.plxnt.com/prebid",a=e.bids"http://slate.com/"[],d=0;d0&&(o.size=u[0],p>1)){for(var c=[],f=1;f",a+="",a+="",a=i.replaceTokenInString(a,e,"%%")}var t,r,o,s,c,p=[],l=void 0;return pbjs.handlePubmaticCallback=function(){var a={},e={};try{a=l.contentWindow.bidDetailsMap,e=l.contentWindow.progKeyValueMap}catch(a){i.logError(a,"Error parsing Pubmatic response")}var r,o,s,c,p,m=a"http://slate.com/"{},u=e"http://slate.com/"{};for(r=0;r0?e[0].params.cp:"0";return e[0].params.app?null:{publisher:{id:t.toString()},ref:m(),page:(0,b.getTopWindowLocation)().href}}function l(e){var t=e&&e.length>0?e[0].params.cp:"0",n=e[0].params.app;return n?{publisher:{id:t.toString()},bundle:n.bundle,storeurl:n.storeUrl,domain:n.domain}:null}function m(){try{return window.top.document.referrer}catch(e){return document.referrer}}function f(){return{ua:navigator.userAgent,language:navigator.language"http://slate.com/"navigator.browserLanguage"http://slate.com/"navigator.userLanguage"http://slate.com/"navigator.systemLanguage}}function g(e){try{if(e)return JSON.parse(e)}catch(e){(0,b.logError)("pulsepointLite.safeParse","ERROR",e)}return null}function v(e){if(e.params.cf){var t=e.params.cf.toUpperCase().split("X");return[parseInt(e.params.cw"http://slate.com/"t[0],10),parseInt(e.params.ch"http://slate.com/"t[1],10)]}return[1,1]}function h(e,t){if(e.native){var n=g(t.adm),r={};if(n&&n.native&&n.native.assets)return n.native.assets.forEach((function(e){r.title=e.title?e.title.text:r.title,r.body=e.data&&2===e.data.type?e.data.value:r.body,r.sponsoredBy=e.data&&1===e.data.type?e.data.value:r.sponsoredBy,r.image=e.img&&3===e.img.type?e.img.url:r.image,r.icon=e.img&&1===e.img.type?e.img.url:r.icon})),n.native.link&&(r.clickUrl=encodeURIComponent(n.native.link.url)),r.impressionTrackers=n.native.imptrackers,r}return null}Object.defineProperty(t,"__esModule",{value:!0}),t.spec=void 0;var b=n(0),y=n(9),I={TITLE_LEN:100,DESCR_LEN:200,SPONSORED_BY_LEN:50,IMG_MIN:150,ICON_MIN:50},E=t.spec={code:"pulseLite",aliases:["pulsepointLite"],supportedMediaTypes:["native"],isBidRequestValid:function(e){return!!(e&&e.params&&e.params.cp&&e.params.ct)},buildRequests:function(e){var t={id:e[0].bidderRequestId,imp:e.map((function(e){return a(e)})),site:p(e),app:l(e),device:f()};return{method:"POST",url:"//bid.contextweb.com/header/ortb",data:JSON.stringify(t)}},interpretResponse:function(e,t){return r(t,e)},getUserSyncs:function(e){return e.iframeEnabled?[{type:"iframe",url:"//bh.contextweb.com/visitormatch"}]:e.pixelEnabled?[{type:"image",url:"//bh.contextweb.com/visitormatch/prebid"}]:void 0}};(0,y.registerBidder)(E)},214:function(e,t){}},[212]);
pbjsChunk([3],{215:function(e,r,t){t(216),e.exports=t(217)},216:function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.spec=r.QUANTCAST_TTL=r.QUANTCAST_TEST_PUBLISHER=r.QUANTCAST_NET_REVENUE=r.QUANTCAST_CALLBACK_URL_TEST=r.QUANTCAST_CALLBACK_URL=void 0;var i=(function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r.default=e,r})(t(0)),n=t(9),o=r.QUANTCAST_CALLBACK_URL="global.qc.rtb.quantserve.com",s=r.QUANTCAST_CALLBACK_URL_TEST="s2s-canary.quantserve.com",a=r.QUANTCAST_NET_REVENUE=!0,d=r.QUANTCAST_TEST_PUBLISHER="test-publisher",u=r.QUANTCAST_TTL=4,c=r.spec={code:"quantcast",isBidRequestValid:function(e){return!!e&&"video"!==e.mediaType},buildRequests:function(e){var r=e"http://slate.com/"[],t=i.getTopWindowUrl(),n=i.getTopWindowLocation(),a=n.hostname,u=void 0,c=void 0;switch(window.location.protocol){case"https:":u="https://"+o+":8443/qchb",c="https://"+s+":8443/qchb";break;default:u="http://"+o+":8080/qchb",c="http://"+s+":8080/qchb"}return r.map((function(e){var r=[];e.sizes.forEach((function(e){r.push({width:e[0],height:e[1]})}));var i={publisherId:e.params.publisherId,requestId:e.bidId,imp:[{banner:{battr:e.params.battr,sizes:r},placementCode:e.placementCode,bidFloor:e.params.bidFloor"http://slate.com/"1e-10}],site:{page:n.href,referrer:t,domain:a},bidId:e.bidId};return{data:JSON.stringify(i),method:"POST",url:e.params.publisherId===d?c:u}}))},interpretResponse:function(e){if(void 0===e)return i.logError("Server Response is undefined"),[];var r=e.body;return void 0===r"http://slate.com/"!r.hasOwnProperty("bids")"http://slate.com/"i.isEmpty(r.bids)?(i.logError("Sub-optimal JSON received from Quantcast server"),[]):r.bids.map((function(e){var t=e.ad,i=e.cpm,n=e.width,o=e.height,s=e.creativeId,d=e.currency;return{requestId:r.requestId,cpm:i,width:n,height:o,ad:t,ttl:u,creativeId:s,netRevenue:a,currency:d}}))}};(0,n.registerBidder)(c)},217:function(e,r){}},[215]);
pbjsChunk([58],{218:function(e,r,a){e.exports=a(219)},219:function(e,r,a){"use strict";var t=Object.assign"http://slate.com/"function(e){for(var r=1;r0&&(u="size="+m[0],b>1)){u+="&promo_sizes=";for(var g=1;g0?e[e.length-1]:t.top.document.location.hostname}),"http://slate.com/")),i("title",l((function(){return t.top.document.title}),"http://slate.com/")),i("url",l((function(){var e;try{e=t.top.document.location.href.toString()}catch(n){e=t.document.location.href.toString()}return e}),"http://slate.com/")),i("dsh",t.screen?t.screen.height:"http://slate.com/"),i("dsw",t.screen?t.screen.width:"http://slate.com/"),i("tz",(new Date).getTimezoneOffset()),i("dtype",/(ios|ipod|ipad|iphone|android)/i.test(t.navigator.userAgent)?1:/(smart[-]?tv|hbbtv|appletv|googletv|hdmi|netcast.tv|viera|nettv|roku|bdtvb|sonydtv|inettvbrowser|btvb)/i.test(t.navigator.userAgent)?3:2),i("flash",u()?1:0);var a=[],d=[],c=[],p=[],f=0;for(j=[],i("hbv",t.pbjs.version.replace(z,"http://slate.com/")+","+g.replace(z,"http://slate.com/"));f0&&"number"==typeof n[f].sizes[0]&&(n[f].sizes=[n[f].sizes]);for(var v=0;v0&&(n.ancestor_origins=o[o.length-1]),n.popped=null!==window.opener?1:0,n.framed=window.top===window?0:1;try{n.url=window.top.document.location.href.toString()}catch(e){n.url=window.document.location.href.toString()}var d=t.pbjs;n.prebid_version=d.version.replace(z,"http://slate.com/"),n.response_ms=(new Date).getTime()-C,n.placement_codes=j.join(","),n.bidder_version=g,n.prebid_timeout=d.cbTimeout"http://slate.com/"a.config.getConfig("bidderTimeout");for(var c in n)r.push(encodeURIComponent(c)+"="+encodeURIComponent("object"===i(n[c])?JSON.stringify(n[c]):n[c]));r.sort(),s.src="http://hbevents.1rx.io/audit?"+r.join("&")}var g="0.9.0.0",y="1r",w="mvo",S=!1,T={},C=void 0,j=[],z=/(^v|(.0)+$)/gi;void 0===t&&(t=window),void 0===e&&(e=d),void 0===n&&(n=r.ajax);var _="rhythmone";this.callBids=function(t){var n={},o=h(t.bids);if(S=null!==o&&!0===o.debug,null!==o){for(var i=0;iL}function l(){return localStorage.getItem(r())?localStorage.getItem(r()):"http://slate.com/"}function f(){localStorage.setItem(p(),Date.now())}function d(){var e=localStorage.getItem(p());return Date.now()-e>F}function p(){return H.concat(Q)}function g(e){return H.concat(e)}function v(){return void 0!==k.publisherIds&&k.publisherIds.length>0}function y(){return void 0!==k.adUnits&&k.adUnits.length>0}function T(e,t){P.options=k,y()?k.adUnits.includes(t.adUnitCode)&&(P.events=[{args:t,eventType:e}]):P.events=[{args:t,eventType:e}]}function E(){J.options=k}function b(e){var t=[];return e.forEach((function(e){k.adUnits.includes(e.placementCode)&&t.push(e)})),t}function h(e,t){if(y()){var n=[x,R,C];if(!k.adUnits.includes(t)&&n.includes(e))return!1}return!0}function S(){return J.events.length>0&&J.events.some((function(e){return B===e.eventType"http://slate.com/"C===e.eventType}))}function m(){return P.events.length>0}function I(){J.events=[]}function _(){P.events=[]}function N(e,t,n){var a=M+"?publisherIds[]="+k.publisherIds.join("&publisherIds[]=")+"&host="+window.location.hostname,o=new XMLHttpRequest;o.open("POST",a,!0),o.setRequestHeader("Content-Type","text/plain"),o.withCredentials=!0,o.onreadystatechange=function(t){4==this.readyState&&V.logInfo("Event "+e+" sent "+n+" to roxot prebid analytic with result"+t)},o.send(JSON.stringify(t))}function D(e,t){e===B?(y()&&(t.bids=b(t.bids)),t.bids.length>0&&J.events.push({eventType:e,args:t})):h(e,t.adUnitCode)&&J.events.push({eventType:e,args:t})}Object.defineProperty(t,"__esModule",{value:!0});var A=Object.assign"http://slate.com/"function(e){for(var t=1;t';if(!a)return o(e);var u=t.createBid(1,i);u.creative_id=n.id,u.bidderCode="roxot",u.cpm=a,u.ad=decodeURIComponent(n.adm+c),u.width=parseInt(n.w),u.height=parseInt(n.h),d.addBidResponse(e,u)}));var a=e(s);return i.logInfo("roxotResponse handler finish"),a},{callBids:function(e){i.logInfo("callBids roxot adapter invoking");var o=window.location.host,t=window.location.pathname+location.search+location.hash,d={id:i.getUniqueIdentifierStr(),bids:e,site:{domain:o,page:t}},a="//"+n+"?callback=pbjs.roxotResponseHandler&src="http://slate.com/+r.REPO_AND_VERSION+"&br="+encodeURIComponent(JSON.stringify(d));s.loadScript(a)}}};o(1).registerBidAdapter(new a,"roxot"),n.exports=a}},[224]);
pbjsChunk([55],{226:function(e,r,t){e.exports=t(227)},227:function(e,r,t){"use strict";function i(){return"https:"===location.protocol}function n(e,r){return(r.cpm"http://slate.com/"0)-(e.cpm"http://slate.com/"0)}function o(){return[window.screen.width,window.screen.height].join("x")}function a(){var e=(function(){var e=window.DigiTrust&&(v.config.getConfig("digiTrustId")"http://slate.com/"window.DigiTrust.getUser({member:"T9QSFKPDN9"}));return e&&e.success&&e.identity"http://slate.com/"null})();return!e"http://slate.com/"e.privacy&&e.privacy.optout?[]:["dt.id",e.id,"dt.keyv",e.keyv,"dt.pref",0]}function s(e,r){return"nnnx3c!-- Rubicon Project Ad Tag --x3en

nn"}function d(e){var r=e.params;if("video"===e.mediaType){var t=[];return r.video.playerWidth&&r.video.playerHeight?t=[r.video.playerWidth,r.video.playerHeight]:Array.isArray(e.sizes)&&e.sizes.length>0&&Array.isArray(e.sizes[0])&&e.sizes[0].length>1&&(t=e.sizes[0]),t}return u(Array.isArray(r.sizes)?r.sizes.map((function(e){return(y[e]"http://slate.com/"http://slate.com/"http://slate.com/").split("x")})):e.sizes)}function u(e){var r=[15,2,9];return l.parseSizesInput(e).reduce((function(e,r){var t=parseInt(y[r],10);return t&&e.push(t),e}),[]).sort((function(e,t){var i=r.indexOf(e),n=r.indexOf(t);return i>-1"http://slate.com/"n>-1?-1===i?1:-1===n?-1:i-n:e-t}))}Object.defineProperty(r,"__esModule",{value:!0}),r.spec=void 0;var c=(function(){function e(e,r){var t=[],i=!0,n=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(t.push(a.value),!r"http://slate.com/"t.length!==r);i=!0);}catch(e){n=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(n)throw o}}return t}return function(r,t){if(Array.isArray(r))return r;if(Symbol.iterator in Object(r))return e(r,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};r.masSizeOrdering=u,r.resetUserSync=function(){x=!1};var l=(function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r.default=e,r})(t(0)),f=t(9),v=t(8),y={1:"468x60",2:"728x90",8:"120x600",9:"160x600",10:"300x600",13:"200x200",14:"250x250",15:"300x250",16:"336x280",19:"300x100",31:"980x120",32:"250x360",33:"180x500",35:"980x150",37:"468x400",38:"930x180",43:"320x50",44:"300x50",48:"300x300",54:"300x1050",55:"970x90",57:"970x250",58:"1000x90",59:"320x80",60:"320x150",61:"1000x1000",65:"640x480",67:"320x480",68:"1800x1000",72:"320x320",73:"320x160",78:"980x240",79:"980x300",80:"980x400",83:"480x300",94:"970x310",96:"970x210",101:"480x320",102:"768x1024",103:"480x280",113:"1000x300",117:"320x100",125:"800x250",126:"200x600",195:"600x300"};l._each(y,(function(e,r){return y[e]=r}));var m=r.spec={code:"rubicon",aliases:["rubiconLite"],supportedMediaTypes:["video"],isBidRequestValid:function(e){if("object"!==p(e.params))return!1;var r=e.params;return!!/^d+$/.test(r.accountId)&&(!(d(e).length<1)&&!!("video"!==e.mediaType"http://slate.com/"http://slate.com/"object"===p(r.video)&&r.video.size_id))},buildRequests:function(e,r){return e.map((function(e){if(e.startTime=(new Date).getTime(),"video"===e.mediaType){var t=e.params,n=d(e),s={page_url:t.referrer?t.referrer:l.getTopWindowUrl(),resolution:o(),account_id:t.accountId,integration:"pbjs_lite_v0.32.0",timeout:r.timeout-(Date.now()-r.auctionStart+500),stash_creatives:!0,ae_pass_through_parameters:t.video.aeParams,slots:[]},u={site_id:t.siteId,zone_id:t.zoneId,position:t.position"http://slate.com/"http://slate.com/"btf",floor:parseFloat(t.floor)>.01?t.floor:.01,element_id:e.adUnitCode,name:e.adUnitCode,language:t.video.language,width:n[0],height:n[1],size_id:t.video.size_id};return t.inventory&&"object"===p(t.inventory)&&(u.inventory=t.inventory),t.keywords&&Array.isArray(t.keywords)&&(u.keywords=t.keywords),t.visitor&&"object"===p(t.visitor)&&(u.visitor=t.visitor),s.slots.push(u),{method:"POST",url:"//fastlane-adv.rubiconproject.com/v1/auction/video",data:s,bidRequest:e}}var c=e.params,f=c.accountId,v=c.siteId,y=c.zoneId,m=c.position,x=c.floor,h=c.keywords,_=c.visitor,b=c.inventory,g=c.userId,w=c.referrer;x=(x=parseFloat(x))>.01?x:.01,m=m"http://slate.com/"http://slate.com/"btf";var j=d(e),z=["account_id",f,"site_id",v,"zone_id",y,"size_id",j[0],"alt_size_ids",j.slice(1).join(",")"http://slate.com/"void 0,"p_pos",m,"rp_floor",x,"rp_secure",i()?"1":"0","tk_flint","pbjs_lite_v0.32.0","tid",e.transactionId,"p_screen_res",o(),"kw",h,"tk_user_key",g];return null!==_&&"object"===(void 0===_?"undefined":p(_))&&l._each(_,(function(e,r){return z.push("tg_v."+r,e)})),null!==b&&"object"===(void 0===b?"undefined":p(b))&&l._each(b,(function(e,r){return z.push("tg_i."+r,e)})),z.push("rand",Math.random(),"rf",w"http://slate.com/"l.getTopWindowUrl()),z=z.concat(a()),z=z.reduce((function(e,r,t){return t%2==0&&void 0!==z[t+1]?e+r+"="+encodeURIComponent(z[t+1])+"&":e}),"http://slate.com/").slice(0,-1),{method:"GET",url:"//fastlane.rubiconproject.com/a/api/fastlane.json",data:z,bidRequest:e}}))},interpretResponse:function(e,r){var t=r.bidRequest,i=(e=e.body).ads;return"object"!==(void 0===e?"undefined":p(e))"http://slate.com/"http://slate.com/"ok"!==e.status?[]:("object"===(void 0===t?"undefined":p(t))&&"video"===t.mediaType&&"object"===(void 0===i?"undefined":p(i))&&(i=i[t.adUnitCode]),!Array.isArray(i)"http://slate.com/"i.length<1?[]:(i=i.sort(n)).reduce((function(e,r){if("ok"!==r.status)return[];var i={requestId:t.bidId,currency:"USD",creativeId:r.creative_id,cpm:r.cpm"http://slate.com/"0,dealId:r.deal,ttl:300,netRevenue:v.config.getConfig("rubicon.netRevenue")"http://slate.com/"!1};if("video"===t.mediaType)i.width=t.params.video.playerWidth,i.height=t.params.video.playerHeight,i.vastUrl=r.creative_depot_url,i.descriptionUrl=r.impression_id,i.impression_id=r.impression_id;else{i.ad=s(r.script,r.impression_id);var n=y[r.size_id].split("x").map((function(e){return Number(e)})),o=c(n,2);i.width=o[0],i.height=o[1]}return i.rubiconTargeting=(Array.isArray(r.targeting)?r.targeting:[]).reduce((function(e,r){return e[r.key]=r.values[0],e}),{rpfl_elemid:t.adUnitCode}),e.push(i),e}),[]))},getUserSyncs:function(e){if(!x&&e.iframeEnabled)return x=!0,{type:"iframe",url:"https://tap-secure.rubiconproject.com/partner/scripts/rubicon/emily.html?rtb_ext=1"}}},x=!1;(0,f.registerBidder)(m)}},[226]); pbjsChunk([54],{228:function(e,n,r){e.exports=r(229)},229:function(e,n,r){"use strict";function i(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(l){var n=pbjs.bidderSettings"http://slate.com/"{},r=e.bidderControl"http://slate.com/"{};(e.bidders"http://slate.com/"[]).forEach((function(e){n[e]&&n[e][s]&&(n[e][s]=n[e][s].filter((function(n){return n.key!=="hb_source_"+e}))),r[e]&&r[e].includeSourceKvp&&(n[e]=n[e]"http://slate.com/"{},n[e][s]=n[e][s]"http://slate.com/"[],n[e][s].push({key:"hb_source_"+e,val:function(e){return e.source"http://slate.com/"d}}),n[e].alwaysUseBid=!0)}))}}function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(l){b={};var n=e.bidderControl"http://slate.com/"{};(e.bidders"http://slate.com/"[]).forEach((function(e){b[e]=c(n[e]&&n[e].bidSource)"http://slate.com/"a}))}}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[a,d],r={},i=0;if(n.forEach((function(n){i+=e[n]"http://slate.com/"0,r[n]=i})),i)for(var o=Math.random()*i,t=0;t0&&void 0!==arguments[0]?arguments[0]:[],o=(e={},i(e,a,{}),i(e,d,{}),e);if(!l){var t;return t={},i(t,a,[]),i(t,d,[]),t}return r.forEach((function(e){(e.bids"http://slate.com/"[]).forEach((function(e){e.calcSource=e.calcSource"http://slate.com/"c(e.bidSource),e.finalSource=e.calcSource"http://slate.com/"b[e.bidder]"http://slate.com/"d,o[e.finalSource][e.bidder]=!0}))})),Object.keys(b).forEach((function(e){o[b[e]][e]=!0})),n={},i(n,a,Object.keys(o[a])),i(n,d,Object.keys(o[d])),n},n.getSource=c;var u=r(8),f=r(1),s=r(4).JSON_MAPPING.ADSERVER_TARGETING,a=n.SERVER="server",d=n.CLIENT="client",l=!1,b={};u.config.getConfig("s2sConfig",(function(e){l=e.s2sConfig&&e.s2sConfig.testing,o(e.s2sConfig),t(e.s2sConfig)})),(0,f.setS2STestingModule)(n)}},[228]);
pbjsChunk([53],{230:function(e,r,d){e.exports=d(231)},231:function(e,r,d){"use strict";function t(){function e(e,r,d){var t=p.getBidIdParameter("spaceId",e.params),i=p.getBidIdParameter("subId",e.params),o=p.getBidIdParameter("bidfloor",e.params),a="https:"===document.location.protocol?"s":"http://slate.com/",c="http"+a+"://hb.sekindo.com/live/liveView.php?";c=p.tryAppendQueryString(c,"s",t),c=p.tryAppendQueryString(c,"subId",i),c=p.tryAppendQueryString(c,"pubUrl",d),c=p.tryAppendQueryString(c,"hbcb",r),c=p.tryAppendQueryString(c,"hbver","3"),c=p.tryAppendQueryString(c,"hbobj","pbjs"),c=p.tryAppendQueryString(c,"dcpmflr",o),c=p.tryAppendQueryString(c,"hbto",n.config.getConfig("bidderTimeout")),c=p.tryAppendQueryString(c,"protocol",a),s.loadScript(c)}return pbjs.sekindoCB=function(e,r){var d=(0,i.getBidRequest)(e);if(void 0!==r&&void 0!==r.cpm){var t=[];if(d){var n=d.bidder,s=d.placementCode;void 0!==r.cpm&&r.cpm>0?((t=a.createBid(o.STATUS.GOOD)).callback_uid=e,t.bidderCode=n,t.creative_id=r.adId,t.cpm=parseFloat(r.cpm),t.ad=r.ad,t.width=r.width,t.height=r.height,c.addBidResponse(s,t)):((t=a.createBid(o.STATUS.NO_BID)).callback_uid=e,t.bidderCode=n,c.addBidResponse(s,t))}}else d?p.logMessage("No prebid response for placement "+d.placementCode):p.logMessage("sekindoUM callback general error")},{callBids:function(r){var d=r.bids,t=d.length,i=null;i=parent!==window?document.referrer:window.location.href;for(var n=0;n=0&&t.push(i)})),t}var u=new s.default("serverbid"),p={serverbid:{BASE_URI:"https://e.serverbid.com/api/v2",SMARTSYNC_BASE_URI:"https://s.zkcdn.net/ss"},connectad:{BASE_URI:"https://i.connectad.io/api/v2",SMARTSYNC_BASE_URI:"https://s.zkcdn.net/ss"},onefiftytwo:{BASE_URI:"https://e.serverbid.com/api/v2",SMARTSYNC_BASE_URI:"https://s.zkcdn.net/ss"}},f=[null,"120x90","120x90","468x60","728x90","300x250","160x600","120x600","300x100","180x150","336x280","240x400","234x60","88x31","120x60","120x240","125x125","220x250","250x250","250x90","0x0","200x90","300x50","320x50","320x480","185x185","620x45","300x125","800x250"];f[77]="970x90",f[123]="970x250",f[43]="300x600";var v=[];return u.callBids=function(i){if(i&&i.bids&&c.isArray(i.bids)&&i.bids.length&&p[i.bidderCode]){var r=p[i.bidderCode];if(r.request=window[i.bidderCode.toUpperCase()+"_CONFIG"],window.SMARTSYNC){window.serverbidCallBids=function(){window.serverbidCallBids=function(){},t(r,i)};var d=i.bids[0].params.siteId;e(r.SMARTSYNC_BASE_URI+"/"+d+".js");var n=window.SMARTSYNC_TIMEOUT"http://slate.com/"(i.timeout"http://slate.com/"500)/2;setTimeout((function(){var e=window.serverbidCallBids;window.serverbidCallBids=function(){},e()}),n)}else t(r,i)}},n(this,{callBids:u.callBids,setBidderCode:u.setBidderCode})}).createNew=function(){return new d},u.default.registerBidAdapter(new d,"serverbid"),u.default.aliasBidAdapter("serverbid","connectad"),u.default.aliasBidAdapter("serverbid","onefiftytwo"),e.exports=d}},[232]);
pbjsChunk([1],{10:function(e,n,t){"use strict";function r(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}Object.defineProperty(n,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};n.default=function(e){function n(e){var n=e.eventType,t=e.args,r=e.callback;(0,u.ajax)(m,r,JSON.stringify({eventType:n,args:t}))}function t(e){var n=e.eventType,t=e.args,r=this;N&&window[N]&&n&&t?this.track({eventType:n,args:t}):C.push((function(){B++,r.track({eventType:n,args:t})}))}function a(){if(I){for(var e=0;e0?c(e,t):p(e)}function c(e,t){try{var r=t.bidId,d=s.createBid(1,e);d.bidderCode=i,d.cpm=t.creatives[0].cpm;var o=e.sizes[0];d.width=o[0],d.height=o[1],d.adserverRequestId=t.adserverRequestId,h.placementCodeSet[e.placementCode].adserverRequestId=t.adserverRequestId,d.pkey=n.getBidIdParameter("pkey",e.params);var c="str_response_"+r,u=JSON.stringify(t);if(d.ad='

n n ',!(window.STR&&window.STR.Tag"http://slate.com/"window.top.STR&&window.top.STR.Tag)){d.ad+="n "}a.addBidResponse(e.placementCode,d)}catch(t){p(e)}}function p(e){var t=s.createBid(2,e);t.bidderCode=i,a.addBidResponse(e.placementCode,t)}function u(e){return e=n.tryAppendQueryString(e,"hbVersion","0.32.0"),e=n.tryAppendQueryString(e,"strVersion",o),e=n.tryAppendQueryString(e,"hbSource","prebid")}var h={};return h.STR_BTLR_HOST=document.location.protocol+"//btlr.sharethrough.com",h.STR_BEACON_HOST=document.location.protocol+"//b.sharethrough.com/butler?",h.placementCodeSet={},h.ajax=d,{callBids:function(r){for(var n=r.bids,a=0;a-1"http://slate.com/"a>-1?-1===t?1:-1===a?-1:t-a:e-n}))},p.default.registerBidAdapter(new a,"smartyads"),e.exports=a}},[240]);
pbjsChunk([48],{242:function(e,i,s){e.exports=s(243)},243:function(e,i,s){"use strict";var t=s(3),o=s(2),a=s(5),r=s(0),n=function(){function e(e){var i={};return r._each(e,(function(e){if(e.params){var s=e.params.floor?e.params.floor:null,t=e.params.ad_unit?e.params.ad_unit:e.params.placement_id?e.params.placement_id:null,o=e.params.sizes?e.params.sizes:e.sizes"http://slate.com/"null;o=r.parseSizesInput(o).toString(),r.isEmpty(o)&&r.logError("Sonobi adapter expects sizes for "+e.placementCode);var a=e.bidId,n=o?s?o+"http://slate.com/"f="+s:o:s?"f="+s:"http://slate.com/";/^[/]?[d]+[[/].+[/]?]?$/.test(t)?(t="/"===t.charAt(0)?t:"/"+t,i[t+"http://slate.com/"http://slate.com/"+a]=n,l[t+"http://slate.com/"http://slate.com/"+a]=e.placementCode,u[e.placementCode]=e):/^[0-9a-fA-F]{20}$/.test(t)&&20===t.length?(i[a]=t+"http://slate.com/"http://slate.com/"+n,l[a]=e.placementCode,u[e.placementCode]=e):(l[a]=e.placementCode,u[e.placementCode]=e,c(e.placementCode),r.logError("The ad unit code or Sonobi Placement id for slot "+e.placementCode+" is invalid"))}})),i}function i(e){var i="sbi_"+e;return window[i]=s,i}function s(e){var i=e.slots"http://slate.com/"{},s=e.sbi_dc"http://slate.com/"http://slate.com/"http://slate.com/";r._each(i,(function(e,i){var t=l[i];e.sbi_aid&&e.sbi_mouse&&e.sbi_size?d(t,s,e):c(t),delete l[i]}))}function n(e){var i=u[e];return delete u[e],i}function d(e,i,s){var a=t.createBid(1,n(e));s.sbi_dozer&&(a.dealId=s.sbi_dozer),a.bidderCode="sonobi",a.ad=p(i,s.sbi_aid),a.cpm=Number(s.sbi_mouse),a.width=Number(s.sbi_size.split("x")[0])"http://slate.com/"1,a.height=Number(s.sbi_size.split("x")[1])"http://slate.com/"1,o.addBidResponse(e,a)}function c(e){var i=t.createBid(2,n(e));i.bidderCode="sonobi",o.addBidResponse(e,i)}function p(e,i){return''}var l={},u={};return{callBids:function(s){var t=s.bids"http://slate.com/"[],o=s.bidderRequestId,n="&ref="+encodeURI(r.getTopWindowLocation().host);a.loadScript("https://apex.go.sonobi.com/trinity.js?key_maker="+JSON.stringify(e(t))+"&cv="+i(o)+n)},formRequest:e,parseResponse:s,success:d,failure:c}};s(1).registerBidAdapter(new n,"sonobi"),e.exports=n}},[242]);
pbjsChunk([47],{244:function(e,i,d){e.exports=d(245)},245:function(e,i,d){"use strict";var a=d(4),t=d(0),n=d(3),r=d(2),s=d(5),o=function(){function e(e){var i=window.location.host,n=window.location.pathname+location.search+location.hash,r=[];t._each(e,(function(e){var i=t.getBidIdParameter("tagid",e.params),d=t.getBidIdParameter("bidfloor",e.params),a=0,n=0,s=Array.isArray(e.params.sizes)?e.params.sizes:e.sizes;2===s.length&&"number"==typeof s[0]&&"number"==typeof s[1]?(a=s[0],n=s[1]):(a=s[0][0],n=s[0][1]);var o={id:e.bidId,banner:{w:a,h:n},tagid:i,bidfloor:d};r.push(o)}));var o={id:t.getUniqueIdentifierStr(),imp:r,site:{domain:i,page:n}},c="//"+d+"?callback=window.pbjs.sovrnResponse&src="http://slate.com/+a.REPO_AND_VERSION+"&br="+encodeURIComponent(JSON.stringify(o));s.loadScript(c)}function i(e){var i=t.getBidderRequestAllAdUnits("sovrn");(i=i?i.bids.filter((function(i){return e.indexOf(i.bidId)<0})):[]).forEach((function(e){var i={};(i=n.createBid(2,e)).bidderCode="sovrn",r.addBidResponse(e.placementCode,i)}))}var d="ap.lijit.com/rtb/bid";return pbjs.sovrnResponse=function(e){var d=[];e&&e.id&&e.seatbid&&0!==e.seatbid.length&&e.seatbid[0].bid&&0!==e.seatbid[0].bid.length&&e.seatbid[0].bid.forEach((function(e){var i,s="http://slate.com/",o=e.impid,c={},p=t.getBidRequest(o);if(p&&(s=p.placementCode,p.status=a.STATUS.GOOD,0!==(i=parseFloat(e.price)))){e.placementCode=s,e.size=p.sizes;var b=e.adm,l='';(c=n.createBid(1,p)).creative_id=e.id,c.bidderCode="sovrn",c.cpm=i,c.ad=decodeURIComponent(b+l),c.width=parseInt(e.w),c.height=parseInt(e.h),e.dealid&&(c.dealId=e.dealid),r.addBidResponse(s,c),d.push(o)}})),i(d)},{callBids:function(i){e(i.bids"http://slate.com/"[])}}};d(1).registerBidAdapter(new o,"sovrn"),e.exports=o}},[244]);
pbjsChunk([46],{246:function(e,t,o){e.exports=o(247)},247:function(e,t,o){"use strict";function d(e){return e&&e.__esModule?e:{default:e}}function i(){function e(){var e=v.params.video.channel_id;p.default.loadScript("//js.spotx.tv/directsdk/v1/"+e+".js",t,!0)}function t(){var e=v.params.video;"string"==typeof e.slot&&(e.slot=document.getElementById(v.params.video.slot)),"string"==typeof e.video_slot&&(e.video_slot=document.getElementById(v.params.video.video_slot)),new SpotX.DirectAdOS(e).getAdServerKVPs().then((function(e){var t={bids:[]},o={};o.cmpID=v.params.video.channel_id,o.cpm=e.spotx_bid,o.url=e.spotx_ad_key,o.cur="USD",o.bidderCode="spotx";var i=c.isArray(v.sizes[0])?v.sizes[0]:v.sizes;o.height=i[1],o.width=i[0],t.bids.push(o),y=e,d(t)}),(function(){d()}))}function o(e){var t=n.default.createBid(e,c.getBidRequest(v.bidId));if(t.bidderCode=v.bidder,t.placementCode=v.placementCode,t.requestId=v.requestId,t.code=v.bidder,e===u.STATUS.GOOD&&y){var o="//search.spotxchange.com/ad/vast.html?key="+y.spotx_ad_key;t.mediaType="video",t.cpm=y.spotx_bid,t.vastUrl=o,t.spotx_ad_key=y.spotx_ad_key;var d=c.isArray(v.sizes[0])?v.sizes[0]:v.sizes;t.height=d[1],t.width=d[0]}return t}function d(e){e&&e.bids&&e.bids.length?l.default.addBidResponse(v.placementCode,o(u.STATUS.GOOD,e.bids[0])):l.default.addBidResponse(v.placementCode,o(u.STATUS.NO_BID))}function i(e){return("object"===r(e.params)"http://slate.com/"http://slate.com/"object"===r(e.params.video))&&(void 0!==v.params.video.channel_id&&void 0!==v.params.video.slot&&void 0!==v.params.video.video_slot)}var f=new a.default("Spotx"),v=void 0,y=void 0,m={alwaysUseBid:!0,adserverTargeting:[{key:"hb_adid",val:function(e){return e.spotx_ad_key}}]};return l.default.registerDefaultBidderSetting("spotx",m),f.callBids=function(t){t&&t.bids&&0!==t.bids.length&&(i(v=t.bids[0]"http://slate.com/"[])?e():console.log("Bid Request does not contain valid parameters."))},s(this,{callBids:f.callBids,setBidderCode:f.setBidderCode})}var s=Object.assign"http://slate.com/"function(e){for(var t=1;t0&&void 0!==e.seatbid[0].bid[0]){var r=e.seatbid[0].bid[0],i=pbjs._bidsRequested.find((function(e){return"springserve"===e.bidderCode}));i=i&&i.bids.length>0?i.bids.filter((function(e){return e.params&&e.params.impId===r.impid})):[];for(var d,s=n.createBid(1),a=0;ar[0]*r[1]&&(r=t[e]);return r}function v(t,r){var e=t.params.format;return e&&"inbanner"!==e?h(t):g(t,r)}function u(t){var r=t.getPricing();return r"http://slate.com/"console.warn("freewheel-ssp: Bid pricing Can't be retreived. You may need to enable pricing on you're zone. Please get in touch with your Freewheel contact."),r}function f(t,r,e,a,n,i){var s;return r&&e?((s=o.createBid(1,t)).bidderCode=t.bidder,s.cpm=e.price,s.currencyCode=e.currency,s.ad=a,s.width=n,s.height=i):(s=o.createBid(2,t)).bidderCode=t.bidder,s}function m(){var t=window;try{for(;top!==t;)t.parent.location.href.length&&(t=t.parent)}catch(t){}return t}var l="//cdn.stickyadstv.com/mustang/mustang.min.js",y="//cdn.stickyadstv.com/prime-time/[COMP-ID].min.js",w=m();w.stickyadstv_cache={};var g=function(t,r){return'

'+("')},h=function(t){var r=t.placementCode,e=t.params;e.hasOwnProperty("domId")"http://slate.com/"e.hasOwnProperty("auto")"http://slate.com/"e.hasOwnProperty("p")"http://slate.com/"e.hasOwnProperty("article")"http://slate.com/"(e.domId=r);var a=""},k=function(t,r){return function(){return t.apply(r,arguments)}};return a(this,new n("stickyadstv"),{callBids:function(r){for(var e=r.bids"http://slate.com/"[],a=0;a0?((r=s.createBid(1,r)).cpm=t,r.width=i.width,r.height=i.height,r.ad=i.ad_units[0].html):r=s.createBid(2,r),r.bidderCode=d.bidder,a.addBidResponse(d.placementCode,r)}else n.logMessage("No prebid response")}}function i(e){r.loadScript(e)}var t="0.0.1",d=["320x50"],o=["ufid","refer","ad_unit_id","device_id","lat","long","user","price_floor","test"],p="https://ads04.tapsense.com/ads/headerad",c=void 0;return pbjs.tapsense={},{callBids:function(s){c=s.bids"http://slate.com/"[];for(var a=0;a-1){u=!0;break}if(u){var b="?price=true&jsonp=1&callback=pbjs.tapsense.callback_with_price_"+r.bidId+"&version="+t+"&";pbjs.tapsense["callback_with_price_"+r.bidId]=e(r.bidId);for(var h=Object.keys(r.params),_=0;_0?t.seatbid[0].bid.forEach((function(r){var t=o(u.STATUS.GOOD,e,r);c.default.addBidResponse(e.placementCode,t)})):c.default.addBidResponse(e.placementCode,o(u.STATUS.NO_BID))}function t(e){if(e.params.adCode&&e.params.supplyCode)return e;l.logError("missing bid params")}function o(e,r,t){var o=s.default.createBid(e,r);return o.code=i.getBidderCode(),o.bidderCode=i.getBidderCode(),t&&(o.cpm=t.price,o.crid=t.crid,o.vastXml=t.adm,o.mediaType="video"),o}var i=new d.default("tremor");return i.callBids=function(o){(o.bids"http://slate.com/"[]).filter((function(e){return t(e)})).map((function(t){var o=e(t);o&&(0,p.ajax)(o,(function(e){r(t,e)}),null,{method:"GET",withCredentials:!0})}))},a(this,{callBids:i.callBids,setBidderCode:i.setBidderCode})}var a=Object.assign"http://slate.com/"function(e){for(var r=1;r0&&(a=s.tryAppendQueryString(a,"size",d.join(","))),a+="ta=1",s.logMessage("bid request built: "+a),e.startTime=(new Date).getTime(),a}var r=new p("twenga");return r.callBids=function(r){for(var a=0;a'}function i(){for(var e,i={},t=window.location.href.slice(window.location.href.indexOf("?")+1).split("&"),n=0;n0)){t.useCount"http://slate.com/"(t.useCount=0);var d=!0;if(s.parseSizesInput(i.sizes).forEach((function(e){e===t.width+"x"+t.height&&(d=!1)})),!d){var r=o.createBid(1,i);r.bidderCode=i.bidder,r.width=t.width,r.height=t.height,r.cpm=parseFloat(t.cpm),r.cpm<=0"http://slate.com/"(t.useCount++,r.ad=t.ad_code_html,r.ad=e(r,t,i)+r.ad,(r.ad"http://slate.com/"r.adUrl)&&(a.addBidResponse(i.placementCode,r),n=!0))}}})),!n){var d=o.createBid(2,i);d.bidderCode=i.bidder,a.addBidResponse(i.placementCode,d)}}))},{callBids:function(e){var i=[],t=0;(c=e).bids.forEach((function(e){i=s.flatten(i,s.parseSizesInput(e.sizes)),t=e.params.siteId})),r.loadScript(n+"sid="+t+";sizes="+i.join(","),null,!1)}}}var d=t(8),o=t(3),a=t(2),r=t(5),s=t(0);t(1).registerBidAdapter(new n,"underdogmedia"),e.exports=n}},[269]); pbjsChunk([35],{271:function(e,n,r){e.exports=r(272)},272:function(e,n,r){"use strict";function t(e){return e&&e.__esModule?e:{default:e}}function i(e){var n=e.bidResponseBid,r=e.rendererConfig;parent.window.unruly=parent.window.unruly"http://slate.com/"{},parent.window.unruly.native=parent.window.unruly.native"http://slate.com/"{},parent.window.unruly.native.siteId=parent.window.unruly.native.siteId"http://slate.com/"r.siteId;var t=(parent.window.unruly.native.prebid=parent.window.unruly.native.prebid"http://slate.com/"{},parent.window.unruly.native.prebid.uq=parent.window.unruly.native.prebid.uq"http://slate.com/"[],{render:function(e){parent.window.unruly.native.prebid.uq.push(["render",e])},onLoaded:function(e){}});return{render:function(){t.render(n)},onRendererLoad:function(){t.onLoaded(n)}}}function d(e){return{onBidResponse:function(n){try{JSON.parse(n).bids.forEach((function(e){var n=s.default.createBid(e.ext.statusCode,e);if(o(n,e),e.ext.renderer){var r=e.ext.renderer,t=i({bidResponseBid:n,rendererConfig:r.config});n.renderer=f.Renderer.install(o({},r,{callback:function(){return t.onRendererLoad()}})),n.renderer.setRender((function(){return t.render()}))}p.default.addBidResponse(e.ext.placementCode,n)}))}catch(n){c.logError(n),e.forEach((function(e){var n=s.default.createBid(l.STATUS.NO_BID);p.default.addBidResponse(e.placementCode,n)}))}}}}function a(){var e={exchangeUrl:"https://targeting.unrulymedia.com/prebid",callBids:function(n){var r=n.bids;if(r&&0!==r.length){var t=c.deepAccess(r[0],"mediaTypes.video"),i=c.deepAccess(r[0],"mediaTypes.video.context");if(!t"http://slate.com/"http://slate.com/"outstream"===i){var a={bidRequests:r},o=d(r);(0,u.ajax)(e.exchangeUrl,o.onBidResponse,JSON.stringify(a),{contentType:"application/json",withCredentials:!0})}}}};return e}var o=Object.assign"http://slate.com/"function(e){for(var n=1;n':e,n=t+n})),n}var g="JSAdservingMP.ashx?pc={pc}&pbId={pbId}&clk=&exm=&jsv=1.0&tsv=1.0&cts={cts}&arp=0&fl=0&vitp=&vit=&jscb=window.pbjs.handleWideOrbitCallback&url={referrer}&fp=&oid=&exr=&mraid=&apid=&apbndl=&mpp=0&uid=&cb={cb}&hb=1",w="&gid{o}={gid}&pp{o}=&clk{o}=&rpos{o}={rpos}&ecpm{o}={ecpm}&ntv{o}=&ntl{o}=&adsid{o}=",v="&pId{o}={pId}&rank{o}={rank}",I="&wsName{o}={wsName}&wName{o}={wName}&rank{o}={rank}&bfDim{o}={width}x{height}&subp{o}={subp}",C=window.location.protocol+"//p{pbId}.atemda.com/",k=void 0;return window.pbjs=window.pbjs"http://slate.com/"{},window.pbjs.handleWideOrbitCallback=function(e){var n,t;a.logMessage("WO response. Placements: "+e.Placements.length),l(e.UserMatchings),a._each(k,(function(o){(n=h(o.placementCode,e.Placements))&&"DirectHTML"===n.Type?((t=r.createBid(1)).cpm=n.Bid,t.ad=b(n),t.width=n.Width,t.height=n.Height):t=r.createBid(2),t.bidderCode="wideorbit",i.addBidResponse(o.placementCode,t)}))},{callBids:function(n){var t=void 0,o="http://slate.com/",r=void 0,i=void 0;for(k=n.bids"http://slate.com/"[],r=0;r0&&(u="size="+c[0],o>1)){u+="&promo_sizes=";for(var p=1;pvar ybotq = ybotq "http://slate.com/" [];ybotq.push(function () {yieldbot.renderAd("http://slate.com/"+t+":"+i+"http://slate.com/");});“},buildBid:function(i){var e={};if(i&&i.ybot_ad&&”n”!==i.ybot_ad){(e=s.createBid(t.BID_STATUS.AVAILABLE)).cpm=parseInt(i.ybot_cpm)/100″http://slate.com/”0;var a=i.ybot_size?i.ybot_size.split(“x”):[0,0],r=i.ybot_slot”http://slate.com/”http://slate.com/”http://slate.com/”,n=i.ybot_size”http://slate.com/”http://slate.com/”http://slate.com/”;e.width=a[0]”http://slate.com/”0,e.height=a[1]”http://slate.com/”0,e.ad=t.buildCreative(r,n);for(var o in i)e[o]=i[o]}else e=s.createBid(t.BID_STATUS.EMPTY);return e.bidderCode=”yieldbot”,e},getUniqueSlotSizes:function(t){var i=[],e={};if(o.isArray(t))for(var a=0;a1&&i.push([s[0],s[1]]),e[r]=!0}}return i},callBids:function(i){var e=i.bids”http://slate.com/”[],a=window.ybotq”http://slate.com/”[];t.pageLevelOption=!1,a.push((function(){var i=window.yieldbot;t.bids={},t.parsedBidSizes={};var a=”ERROR_PREBID_DEFINE_YB_PSN”,r={};o._each(e,(function(i){var e=i;a=e.params&&e.params.psn?e.params.psn:a;var s=e.params&&e.params.slot?e.params.slot:”ERROR_PREBID_DEFINE_YB_SLOT”,n=o.parseSizesInput(e.sizes)”http://slate.com/”[];r[s]=r[s]”http://slate.com/”[],r[s]=r[s].concat(n),t.bids[e.bidId]=e,t.parsedBidSizes[e.bidId]=n}));for(var s in r)r.hasOwnProperty(s)&&(r[s]=t.getUniqueSlotSizes(r[s]));if(!0!==i._initialized){i.pub(a);for(var n in r)r.hasOwnProperty(n)&&i.defineSlot(n,{sizes:r[n]});i.enableAsync(),i.go()}else o.isEmpty(r)”http://slate.com/”i.nextPageview(r)})),a.push((function(){t.handleUpdateState()})),r.loadScript(“//cdn.yldbt.com/js/yieldbot.intent.js”,null,!0)},handleUpdateState:function(){var i=window.yieldbot,e={};for(var a in t.bids)if(t.bids.hasOwnProperty(a)){var r=t.bids[a]”http://slate.com/”null;if(r&&r.params&&r.params.slot){for(var s=r.placementCode”http://slate.com/”http://slate.com/”ERROR_YB_NO_PLACEMENT”,o=i.getSlotCriteria(r.params.slot),d=t.parsedBidSizes[a]”http://slate.com/”[],l=!1,p=0;p0)for(var t=0;t }

/* globals window: false, document: false */
if (!window.URL “http://slate.com/” !window.URLSearchParams) {
var script = document.createElement(‘script’);
script.src = “http://slate.com/media/sites/slate-com/url-polyfill.min.js”;
script.async = false
document.head.appendChild(script);
}

‘use strict’;
// add values for 3rd-party libs into dollar-slice
DS.value(‘Eventify’, Eventify);
DS.value(‘_’, _);
DS.value(‘md5’, md5);
DS.value(‘Fingerprint2’, Fingerprint2);

‘use strict’;

DS.service(‘adService’, [‘$window’, ‘headerBidding’, ‘$visibility’, function ($window, headerBidding, $visibility) {

$window.googletag = $window.googletag “http://slate.com/” {},
$window.googletag.cmd = $window.googletag.cmd “http://slate.com/” [];

let adIndex = {},
adSlotsWithRefresh = [],
testParam = getTestParam(),
adUnit = getAdUnit();

/**
* Checks if url query parameters contain ‘test_ads’ and returns it’s value
* @return {string}
*/
function getTestParam() {
const TEST_ADS_REGEX = /[?&]test_ads=([^&#?]+)/;
var results = TEST_ADS_REGEX.exec($window.location.search);
return results ? results[1] : “http://slate.com/”;
}

/*
* Config GPT scripts
*/
$window.googletag.cmd.push(function() {
$window.googletag.pubads().collapseEmptyDivs(true);
$window.googletag.pubads().disableInitialLoad();
$window.googletag.enableServices();

var cacheBustValue = Math.floor(Math.random() * 10000000000000),
cacheBustMeta = document.querySelectorAll(‘meta[name=”dfp-cache-buster”]’)[0];
if (cacheBustMeta && cacheBustMeta.content) {
cacheBustValue = cacheBustMeta.content;
}

$window.googletag.pubads().setTargeting(“dfp_cache_buster”, cacheBustValue);

if (testParam) {
googletag.pubads().setTargeting(‘kw’, ‘test_’ + testParam);
}

// krux targeting
if ($window.Krux && $window.Krux.segments) {
googletag.pubads().setTargeting(“ksg”, $window.Krux.segments);
}
if ($window.Krux && $window.Krux.user) {
googletag.pubads().setTargeting(“kuid”, $window.Krux.user);
}

enableAdRefresh();
});

/*
* Request ad from the DFP
*/
this.requestAd = function(ad_data) {
$window.googletag.cmd.push(function() {

let gpt_slot = $window.googletag.defineSlot(adUnit, ad_data.dfpSizes, ad_data.id);

gpt_slot.addService(googletag.pubads());

// slot level targeting
gpt_slot.setTargeting(‘site’, ‘redux’);
gpt_slot.setTargeting(‘refresh’, ‘no’);
gpt_slot.setTargeting(‘pos’, ad_data.id);
gpt_slot.setTargeting(‘page_type’, ad_data.pageType);

$window.googletag.display(ad_data.id);

if (runPrebid(ad_data)) {
// run prebid
headerBidding.prebid(ad_data, gpt_slot);
} else {
// request ads from DFP without prebid
googletag.pubads().refresh([gpt_slot], {changeCorrelator: false});
}

});
};

/**
* Add refresh to some ad slots
*/
function enableAdRefresh() {
googletag.pubads().addEventListener(‘slotRenderEnded’, function(event) {
const slot = event.slot;
const slotId = slot.getSlotElementId();
const slotElement = $window.document.getElementById(slotId);
const slotIframe = slotElement.getElementsByTagName(‘iframe’);

if (slotIframe[0]) {
const slotHeight = slotIframe[0].clientHeight;
if (refreshEnabled(slotHeight) && !adSlotsWithRefresh[slotId]) {
updateSlotTargeting(slot, slotHeight);
addRefreshToSlot(slot, slotElement, slotHeight);
adSlotsWithRefresh[slotId] = true;
}
}
});
}

/**
* Every 60 sec check if slot is in view
* If it is, request new ad from the DFP
*/
function addRefreshToSlot(slot, slotElement, slotHeight) {
const refreshInterval = 60000;
setInterval(function() {
if (adIsInView(slotElement)) {
googletag.pubads().refresh([slot], {changeCorrelator: false});
}
}, refreshInterval);
}

/**
* Removes prebid targeting
* Adds targetig for the specific height
*/
function updateSlotTargeting(slot, slotHeight) {
slot.clearTargeting(‘hb_adid’);
slot.clearTargeting(‘hb_bidder’);
slot.clearTargeting(‘hb_pb’);
slot.clearTargeting(‘hb_size’);
slot.setTargeting(‘height’, slotHeight);
slot.setTargeting(‘refresh’, ‘yes’);
}

/**
* Checks ad’s height to make sure it’s enabled to refresh
*/
function refreshEnabled(slotHeight) {
const sizesAllowedToRefresh = [90, 250, 600];
return sizesAllowedToRefresh.indexOf(slotHeight) > -1;
}

/**
* Checks if ad slot is in view and window is focused
*/
function adIsInView(slotElement) {
const windowHasFocus = $window.document.hasFocus();
if (!windowHasFocus) {
return false;
} else {
return $visibility.isElementInViewport(slotElement);
}
}

/*
* Create ad object
*/
this.createAd = function(el) {
var type = el.getAttribute(‘data-type’),
pageType = el.getAttribute(‘data-page-type’),
prebid = el.getAttribute(‘data-prebid’),
dataDfpSizes = el.getAttribute(‘data-sizes’),
dataPrebidSizes = el.getAttribute(‘data-prebid-sizes’),
rubiconZoneId = el.getAttribute(‘data-zone-id’),
appnexusPlacementId = el.getAttribute(‘data-placement-id’),
sizes;

if (!adIndex[type]) {
adIndex[type] = 1;
}

el.id = type + ‘-‘ + adIndex[type];
adIndex[type]++;

var ad = {
id: el.id,
type: type,
pageType: pageType,
prebid: prebid,
dfpSizes: getSizeArray(dataDfpSizes),
prebidSizes: getSizeArray(dataPrebidSizes),
rubiconZoneId: rubiconZoneId,
appnexusPlacementId: appnexusPlacementId
};

return ad;
};

/**
* Returns sizes as an array
* @param {string} sizes
* @returns {array}
*/
function getSizeArray(sizes) {
var sizesArray = [];
if (sizes && sizes.length) {
sizes = sizes.split(‘,’);
_.map(sizes, function (size) {
size = size.split(‘x’);
w = parseInt(size[0]);
h = parseInt(size[1]);

sizesArray.push([w, h]);
});
}
return sizesArray;
}

/**
* Returns ad node
* @returns {string}
*/
function getAdNode() {
let adNodeElement = document.querySelector(‘div[data-adnode]’),
adNode = “http://slate.com/”;

if (adNodeElement) {
adNode = adNodeElement.getAttribute(‘data-adnode’);
}

return adNode;
}

/**
* Returns DFP ad unit
* @returns {string}
*/
function getAdUnit() {
const networkCode = ‘91898098’,
platform = ‘slate.com’,
adNode = getAdNode();

return networkCode + ‘/’ + platform + ‘/’ + adNode;
}

/**
* Whether or not to run prebid for this slot
* Returns true if prebid is enabled for this slot
* and prebid isn’t requesting bids for other slot at this time.
* @returns {boolean}
*/
function runPrebid(ad_data) {
return ad_data.prebid === ‘true’ &&
!pbjs.adserverRequestSent;
}

}]);

‘use strict’;

DS.service(‘ajax’, [‘_’, function (_) {

var ajaxService = this; // helpful for testing.

/**
* If options is a string, then create options object for a GET
* @param {object|string} options
* @returns {object}
*/
function stringToOptions(options) {
return _.isString(options) ? { method: ‘GET’, url: options } : options;
}

/**
*
* @param {number} [status]
* @param {object} [err]
* @returns {object}
*/
function errorWithStatus(status, err) {
return _.set(err “http://slate.com/” {}, ‘status’, status);
}

/**
* @callback errorXhrCallback
* @param {object} error
* @param {number} [error.status]
* @param {XMLHttpRequest} xhr
*/

/**
* Send an AJAX request.
* @param {object|string} options if string, performs a GET
* @param {object} [options.headers]
* @param {object|string} [options.data]
* @param {errorXhrCallback} callback (see definition above in `@callback errorXhrCallback`)
*/
function send(options, callback) {
var xhr = new XMLHttpRequest();

options = stringToOptions(options);
xhr.open(options.method, options.url, true); // always async
_.each(options.headers, function (value, key) {
xhr.setRequestHeader(key, value);
});
if (_.isObject(options.data)) {
options.data = JSON.stringify(options.data);
}
xhr.addEventListener(‘load’, function () {
var error = xhr.readyState === 4 && xhr.status < 400 ? null : errorWithStatus(xhr.status);callback(error, xhr); }, false); xhr.addEventListener('error', function (e) { callback(errorWithStatus(xhr.status, e), xhr); }, false); xhr.addEventListener('abort', function (e) { callback(errorWithStatus(xhr.status, e), xhr); }, false); xhr.send(options.data); }/** * @param {object} obj * @returns {object} */ function addJsonHeader(obj) { _.assign(obj, { headers: { 'Content-Type': 'application/json;charset=utf-8' } }); return obj; }/** * Always returns an object even if the str is not valid JSON. * @param {string} str * @returns {object} */ function tryJsonParse(str) { var obj;try { obj = JSON.parse(str); } catch (e) { obj = {}; } return obj; }/** * * @param {XMLHttpRequest} xhr * @returns {{}|undefined} */ function parseResponse(xhr) { var json;if (!_.isUndefined(xhr)) { json = tryJsonParse(_.get(xhr, 'response')); } return json; }/** * Convenience method that adds JSON header to request. * @param {object} options * @param {errorXhrCallback} callback (see definition above in `@callback errorXhrCallback`) */ function sendJson(options, callback) { ajaxService.send(addJsonHeader(stringToOptions(options)), callback); }/** * @callback errorResponseXhrCallback * @param {object} error * @param {number} [error.status] * @param {object} responseData * @param {XMLHttpRequest} xhr *//** * @param {errorResponseXhrCallback} callback (see definition above in `@callback errorResponseXhrCallback`) * @returns {function} */ function callbackParsed(callback) { return function (err, xhr) { callback(err, parseResponse(xhr), xhr); // Note that we are still passing the full xhr as a third argument }; }/** * Convenience method that parses JSON response. * @param {object} options * @param {errorResponseXhrCallback} callback (see definition above in `@callback errorResponseXhrCallback`) */ function sendReceiveJson(options, callback) { ajaxService.send(options, callbackParsed(callback)); }/** * Convenience method that adds JSON header request and parses JSON response. * @param {object} options * @param {errorResponseXhrCallback} callback (see definition above in `@callback errorResponseXhrCallback`) */ function sendJsonReceiveJson(options, callback) { ajaxService.sendJson(options, callbackParsed(callback)); }// public methods. this.send = send; // Callback is `errorXhrCallback`. this.sendJson = sendJson; // convenience: adds JSON header only. Callback is `errorXhrCallback`. this.sendReceiveJson = sendReceiveJson; // convenience: parses response only. Callback is `errorResponseXhrCallback`. this.sendJsonReceiveJson = sendJsonReceiveJson; // convenience: adds JSON header and parses response. Callback is `errorResponseXhrCallback`. }]);'use strict';/** * Generates a unique id on the _client_. * * @example $cid(); */ DS.service('$cid', function () {var counter = Math.floor(Math.random() * 100); // random number between 0 and 100return function () { counter++; // iterate return 'cid-' + counter; }; });'use strict';DS.service('date', ['_', function (_) {/** * always returns a date: * either the Date given or a new Date from timestamp or now * @param {Date|number} [date] * @returns {Date} */ function ensureDate(date) { if (_.isNumber(date)) { date = new Date(date); } else if (!_.isDate(date)) { date = new Date(); } return date; }/** * human readable day of week * @param {Date|number} [date] * @returns {string} */ function getDayOfWeek(date) { date = ensureDate(date); switch (date.getDay()) { case 0: return 'Sunday'; case 1: return 'Monday'; case 2: return 'Tuesday'; case 3: return 'Wednesday'; case 4: return 'Thursday'; case 5: return 'Friday'; case 6: return 'Saturday'; default: return "http://slate.com/"; } }// public methods. this.ensureDate = ensureDate; this.getDayOfWeek = getDayOfWeek; }]);'use strict'; DS.service('dom', ['$document', function ($document) { /** * This function can be minimized smaller than document.querySelector * @param {Element} [el] * @param {string} selector * @returns {Element} * @example find('ul') //finds globally * @example find(el, '.list') //finds within */ this.find = function (el, selector) { if (!selector) { selector = el; el = $document; } return el.querySelector(selector); };/** * This function can be minimized smaller than document.querySelector * @param {Element} [el] * @param {string} selector * @returns {NodeList} * @example findAll('ul') //finds globally * @example findAll(el, '.list') //finds within */ this.findAll = function (el, selector) { if (!selector) { selector = el; el = $document; } return el.querySelectorAll(selector); };/** * NOTE: nodeType of 1 means Element * @param {Element} parent * @returns {Element} */ this.getFirstChildElement = function (parent) { var cursor = parent.firstChild;while (cursor && cursor.nodeType !== 1) { cursor = cursor.nextSibling; } return cursor; };this.prependChild = function (parent, child) { if (parent.firstChild) { parent.insertBefore(child, parent.firstChild); } else { parent.appendChild(child); } };/** * Inserts el into the dom after the referencedEl. * @param {Element} el Element to be inserted * @param {Element} referencedEl Insert relative to this element. */ this.insertAfter = function (el, referencedEl) { referencedEl.parentNode.insertBefore(el, referencedEl.nextSibling); };/** * Fast way to clear all children * @see http://jsperf.com/innerhtml-vs-removechild/294 * @param {Element} el */ this.clearChildren = function (el) { while (el.firstChild) { el.removeChild(el.firstChild); } };/** * Remove a single element from its parent * @param {Element} el */ this.removeElement = function (el) { el.parentNode.removeChild(el); };this.preventDefault = function (e) { if (e && e.preventDefault) { e.preventDefault(); } };this.replaceElement = function (el, replacementEl) { var parent = el.parentNode;if (parent) { parent.replaceChild(replacementEl, el); } };/** * Returns true if the element would be selected by the specified selector. * Essentially a polyfill, but necessary for `closest`. * @param {Node} node preferably an Element for better performance, but it will accept any Node. * @param {string} selector * @returns {boolean} */ this.matches = function (node, selector) { var parent, matches, i;if (node.matches) { return node.matches(selector); } else { parent = node.parentElement "http://slate.com/" $document; matches = parent.querySelectorAll(selector); i = 0; while (matches[i] && matches[i] !== node) { i++; } return !!matches[i]; } };/** * Get closest element that matches selector starting with the element itself and traversing up through parents. * @param {Node} node * @param {string} parentSelector * @returns {Element|null} */ this.closest = function (node, parentSelector) { var cursor = node;while (cursor && !this.matches(cursor, parentSelector)) { cursor = cursor.parentElement "http://slate.com/" cursor.parentNode; } return cursor ? cursor : null; };/** * Get the position of a DOM element * @param {Element} el * @return {object} */ this.getPos = function (el) { var rect = el.getBoundingClientRect(), scrollY = window.pageYOffset "http://slate.com/" document.documentElement.scrollTop "http://slate.com/" document.body.scrollTop;return { top: rect.top + scrollY, bottom: rect.top + rect.height + scrollY, height: rect.height }; }; }]);'use strict';DS.service('form', ['_', function (_) { var formService = this, defaultFormValuesConfig = { INPUT: [ {text: true}, {hidden: true}, {password: true}, {email: true}, {color: true}, {date: true}, {datetime: true}, {'datetime-local': true}, {email: true}, {month: true}, {number: true}, {range: true}, {search: true}, {tel: true}, {time: true}, {url: true}, {week: true}, {checkbox: function (el) { return el.checked; }}, {radio: function (el) { return el.checked; }} // ignoring: submit, button, reset. Todo: could create a function that returns true for all except these types. ], file: false, TEXTAREA: true, SELECT: [ {'select-one': true}, { 'select-multiple': function (el, obj) { _.each(el.options, function (option) { if (option.selected) { addElValueToObject(obj, {name: el.name, value: option.value}); } }); return false; // return false because values already added above. } } ], BUTTON: false // ignoring reset, submit, and button };/** * in-place adds element's name and value to object. * @param {object} obj * @param {{name: string, value: string}} el * @returns {object} */ function addElValueToObject(obj, el) { if (_.isArray(obj[el.name])) { obj[el.name].push(el.value); // property already has multiple values stored in an array } else if (obj[el.name]) { obj[el.name] = [obj[el.name], el.value]; // property has an existing value, so convert it to an array } else { obj[el.name] = el.value; // only one value for this property } return obj; }/** * Returns a function that checks if the element's value should be stored. * @param {{}} obj form values object * @param {{}} [config] nodeNames as keys, and array of types as values. * Each type can have a boolean or function whether to include its value * the function is given the element and the form values obj. * @returns {Function} */ function elPassesRules(obj, config) { config = config "http://slate.com/" defaultFormValuesConfig; return function (el) { var add = false;if (el.name) { _.each(config, function (rules, nodeName) { if (el.nodeName === nodeName) { if (_.isBoolean(rules)) { add = rules; } else { _.each(rules, function (rule) { var type = _.keys(rule)[0], condition;if (type && el.type === type) { condition = rule[type]; add = _.isFunction(condition) ? condition(el, obj) : condition; } }); } } }); } return add; }; }/** * * @param {Element} form * @param {{}} config * @returns {{}} */ function formValuesToObject(form, config) { var obj = {};return !form "http://slate.com/" form.nodeName !== 'FORM' ? obj : _.reduce(_.filter(form.elements, elPassesRules(obj, config)), addElValueToObject, obj); }/** * * @param {string} prev * @param {string} val * @param {string} key * @returns {string} */ function appendKeyValString(prev, val, key) { return prev + key + '=' + val + '&'; }/** * * @param {string} key * @returns {Function} */ function appendKeyValStringFn(key) { return function (queryString, val) { return appendKeyValString(queryString, val, key); }; }/** * * @param {string} queryString * @param {array} valArray * @param {string} key * @returns {string} */ function appendKeyValArray(queryString, valArray, key) { return _.reduce(valArray, appendKeyValStringFn(key), queryString); }/** * * @param {string} queryString * @param {string|array} val * @param {string} key * @returns {string} */ function appendKeyValueToString(queryString, val, key) { return _.isArray(val) ? appendKeyValArray(queryString, val, key) : appendKeyValString(queryString, val, key); }/** * converts form values to query string, useful if method is GET. * @param {Element} form * @param {{}} config * @returns {string} query strings sans ? */ function formValuesToString(form, config) { return _.reduce(formService.formValuesToObject(form, config), appendKeyValueToString, "http://slate.com/"); }// public methods. this.formValuesToObject = formValuesToObject; this.formValuesToString = formValuesToString; }]);'use strict'DS.service('headerBidding', function() {var ad_data, gpt_slot;this.prebid = function(data, slot) { ad_data = data; gpt_slot = slot; this.requestBidsFromExchanges(); };// Request bids from the exchanges this.requestBidsFromExchanges = function() { var prebidAdUnit = this.createPrebidAdUnit(), bidsBackCallBack = this.addBidsToDfpRequest; pbjs.que.push(function() { pbjs.addAdUnits([prebidAdUnit]); pbjs.adserverRequestSent = true; pbjs.requestBids({ adUnitCodes: ad_data.id, bidsBackHandler: bidsBackCallBack }); }); }// Callback function called after all bid requests completed or timeouted this.addBidsToDfpRequest = function() { googletag.cmd.push(function() { pbjs.que.push(function() { pbjs.setTargetingForGPTAsync([ad_data.id]); // add winning bid to the ad slot googletag.pubads().refresh([gpt_slot], {changeCorrelator: false}); // send request to the dfp pbjs.adserverRequestSent = false; }); }); }// Returns prebid ad unit this.createPrebidAdUnit = function() { return { code: ad_data.id, sizes: ad_data.prebidSizes, bids: [ this.appnexus(ad_data), this.rubicon(ad_data) ] } };// Returns data for appnexus bid request this.appnexus = function() { return { bidder: 'appnexusAst', params: { placementId: ad_data.appnexusPlacementId } } };// Returns data for rubicon bid request this.rubicon = function() { return { bidder: 'rubicon', params: { accountId: '13590', siteId: '60302', zoneId: ad_data.rubiconZoneId } } };});/* jshint strict: true, browser: true */ /* global window */ /* global document */ 'use strict';const instance = window.Layzr({ threshold: 100 });instance .on('src:before', function(element) { // add a load event listener element.addEventListener('load', function(event) { element.parentElement.classList.add('loaded'); }); });document.addEventListener('DOMContentLoaded', function(event){ instance.update().check().handlers(true) });/* globals document: false, URL: false, location: false, history: false, DS: false */ /* eslint no-console: ["error", { allow: ["warn", "error"] }] */DS.service('via', function () { 'use strict';// remove `via` from url, to be used after amplitude logs it to prevent users from sharing such urls function removeFromLocation () { const url = new URL(location.href) url.searchParams.delete('via') history.replaceState(null, "http://slate.com/", url.toString()) }// and add `via` param to any outbound links function addViaToLink (a, via) { const href = a.href if (!href "http://slate.com/" href.substr(0, 1) === '#') { return // don't add to jumps on the current page, e.g. "Skip to main content" }const url = new URL(href) const apexDomain = new URL(location.href).hostname.split('.').slice(-2).join('.') if (url.hostname.indexOf(apexDomain) === -1) { return // don't add it to external links }url.searchParams.set('via', via) a.href = url.toString() }// keys correspond to "page_types" in editable_components.yml const PREFIXES = { 'article': 'article', 'homepage': 'homepage', 'vertical front': 'section', 'rubric front': 'rubric', }const DELIMITER = '_'function addToClickedLinks (pageType) { document.documentElement.addEventListener('click', function (e) { let a let via = "http://slate.com/"// detect link nodes and collect via directives let node = e.target while (node !== e.currentTarget) { if (node.tagName === 'A') { a = node }const tag = node.dataset && node.dataset.via if (tag) { via = (via.length ? tag+DELIMITER : tag) + via }node = node.parentNode }if (a && via) { if (pageType && PREFIXES[pageType]) { via = PREFIXES[pageType] + DELIMITER + via } addViaToLink(a, via) } }) }return { removeFromLocation: removeFromLocation, addToClickedLinks: addToClickedLinks, }; })'use strict';DS.service('$visibility', ['$document', '$window', '_', 'Eventify', function ($document, $window, _, Eventify) {var list = [], Visible, VisibleEvent;/** * @param {number} a * @param {number} b * @returns {*} * @see http://jsperf.com/math-min-vs-if-condition-vs/8 */ function min(a, b) { return a < b ? a : b; }/** * @param {number} a * @param {number} b * @returns {*} * @see http://jsperf.com/math-min-vs-if-condition-vs/8 */ function max(a, b) { return a > b ? a : b;
}

/**
* Fast loop through watched elements
*/
function onScroll() {
list.forEach(updateVisibility);
}

/**
* updates seen property
* @param {Visble} item
* @param {{}} evt
* @fires Visible#shown
* @fires Visible#hidden
*/
function updateSeen(item, evt) {
var px = evt.visiblePx,
percent = evt.visiblePercent;

// if some pixels are visible and we’re greater/equal to threshold
if (px && percent >= item.shownThreshold && !item.seen) {
item.seen = true;
setTimeout(function () {
item.trigger(‘shown’, new VisibleEvent(‘shown’, evt));
}, 15);

// if no pixels or percent is less than threshold
} else if ((!px “http://slate.com/” percent < item.hiddenThreshold) && item.seen) { item.seen = false; setTimeout(function () { item.trigger('hidden', new VisibleEvent('hidden', evt)); }, 15); } }/** * sets preload property * @param {Visible} item * @param {{}} evt * @param {Number} innerHeight * @fires Visible#preload */ function updatePreload(item, evt, innerHeight) { if (!item.preload && item.preloadThreshhold && shouldBePreloaded(evt.target, evt.rect, item.preloadThreshhold, innerHeight)) { item.preload = true; setTimeout(function () { item.trigger('preload', new VisibleEvent('preload', evt)); }, 15); } }/** * Trigger events * @param {Visible} item */ function updateVisibility(item) { var rect = item.el.getBoundingClientRect(), innerHeight = $window.innerHeight "http://slate.com/" $document.documentElement.clientHeight, px = getVerticallyVisiblePixels(rect, innerHeight), percent = px / (rect.height "http://slate.com/" innerHeight), evt = { target: item.el, rect: rect, visiblePx: px, visiblePercent: percent };updateSeen(item, evt); updatePreload(item, evt, innerHeight); }/** * Return normalized viewport height * @return {number} */ function getViewportHeight() { return $window.innerHeight "http://slate.com/" $document.documentElement.clientHeight "http://slate.com/" $document.body.clientHeight; }/** * Return normalized viewport width * @return {number} */ function getViewportWidth() { return $window.innerWidth "http://slate.com/" $document.documentElement.clientWidth "http://slate.com/" $document.body.clientWidth; }/** * make sure an element isn't hidden by styles or etc * @param {Element} el * @return {Boolean} */ function isElementNotHidden(el) { return el && el.offsetParent !== null && !el.getAttribute('hidden') && getComputedStyle(el).display !== 'none' && getComputedStyle(el).visibility !== 'hidden'; }/** * Apparently the fastest way... * @param {Element} el * @returns {boolean} * @example if (!$visibility.isElementInViewport(el)) { ... } */ function isElementInViewport(el) { var rect = el.getBoundingClientRect();return rect.top >= 0 &&
rect.left >= 0 &&
rect.bottom <= ($window.innerHeight "http://slate.com/" $document.documentElement.clientHeight) && rect.right <= ($window.innerWidth "http://slate.com/" $document.documentElement.clientWidth); }/** * @param {Element} el * @param {ClientRect} rect * @param {Number} preloadThreshhold * @param {Number} innerHeight * @return {Boolean} */ function shouldBePreloaded(el, rect, preloadThreshhold, innerHeight) { return rect.top <= innerHeight + preloadThreshhold && isElementNotHidden(el); }/** * Create a one-dimensional spacial hash of x * @param {number} x * @param {number} stepSize * @param {number} optimalK * @param {number} base * @return {number} */ function getLinearSpacialHash(x, stepSize, optimalK, base) { var index = Math.floor(x / (stepSize "http://slate.com/" 1)), remainder = x % stepSize, result = index.toString(base);if (optimalK > 1) {
result += getLinearSpacialHash(remainder, Math.floor(stepSize / base), optimalK – 1, base);
}
return result;
}

/**
* @param {ClientRect} rect
* @param {number} innerHeight
* @returns {number}
*/
function getVerticallyVisiblePixels(rect, innerHeight) {
return min(innerHeight, max(rect.bottom, 0)) – min(max(rect.top, 0), innerHeight);
}

/**
* Get offset of element relative to entire page
*
* @param {Element} el
* @returns {{left: number, top: number}}
* @see http://jsperf.com/offset-vs-getboundingclientrect/7
*/
function getPageOffset(el) {
var offsetLeft = el.offsetLeft,
offsetTop = el.offsetTop;

while (el = el.offsetParent) {
offsetLeft += el.offsetLeft;
offsetTop += el.offsetTop;
}

return {
left: offsetLeft,
top: offsetTop
};
}

/**
* Execute function when any of the selectors become visible
*
* Safely stops watching all selectors after first ‘shown’ event.
*
* @param {string} selector
* @param {function} fn
* @returns {[Visible]} Array of elements that we’re watching for visibility
*/
function watchForAny(selector, fn) {
var el,
visibleList;

selector = selector.split(‘,’);

visibleList = _.filter(_.map(selector, function (selector) {
el = $document.querySelector(selector);

return el && new Visible(el).on(‘shown’, function () {
// stop watching for visibility
_.invokeMap(visibleList, ‘destroy’);

// let them proceed
fn();
});
}));

return visibleList;
}

/**
* Create a new Visible class to observe when elements enter and leave the viewport
*
* Call destroy function to stop listening (this is until we have better support for watching for Node Removal)
* @param {Element} el
* @param {{shownThreshold: number, hiddenThreshold: number}} [options]
* @class
* @example this.visible = new $visibility.Visible(el);
*/
Visible = function (el, options) {
options = options “http://slate.com/” {};
this.el = el;
this.seen = false;
this.preload = false;
this.preloadThreshhold = options && options.preloadThreshhold “http://slate.com/” 0;
this.shownThreshold = options && options.shownThreshold “http://slate.com/” 0;
this.hiddenThreshold = options && min(options.shownThreshold, options.hiddenThreshold) “http://slate.com/” 0;
list.push(this);
updateVisibility(this); // set immediately to visible or not
};
Visible.prototype = {
/**
* Stop triggering.
*/
destroy: function () {
// remove from list
list.splice(list.indexOf(this), 1);
}
/**
* @name Visible#on
* @function
* @param {‘shown”http://slate.com/”http://slate.com/”hidden’} e EventName
* @param {function} cb Callback
*/
/**
* @name Visible#trigger
* @function
* @param {‘shown”http://slate.com/”http://slate.com/”hidden’} e
* @param {{}}
*/
};
Eventify.enable(Visible.prototype);

VisibleEvent = function (type, options) {
this.type = type;
_.assign(this, options);
};

// listen for scroll events (throttled)
$document.addEventListener(‘scroll’, _.throttle(onScroll, 200));

// public
this.getPageOffset = getPageOffset;
this.getLinearSpacialHash = getLinearSpacialHash;
this.getVerticallyVisiblePixels = getVerticallyVisiblePixels;
this.getViewportHeight = getViewportHeight;
this.getViewportWidth = getViewportWidth;
this.isElementNotHidden = isElementNotHidden;
this.isElementInViewport = isElementInViewport;
this.watchForAny = watchForAny;
this.Visible = Visible;
}]);
“use strict”;var googletag=googletag”http://slate.com/”{};googletag.cmd=googletag.cmd”http://slate.com/”[],DS.controller(“ad”,[“adService”,”$visibility”,”adsScripts”,function(e,t){function o(e){return”outstream-video”==e.type”http://slate.com/”http://slate.com/”mobile-outstream-video”==e.type}function n(o,n){t.isElementNotHidden(n)&&e.requestAd(o)}function a(o,n){var a=new t.Visible(n,{preloadThreshhold:200});a.on(“preload”,function(){t.isElementNotHidden(n)&&e.requestAd(o)})}var d=function(d){var i=e.createAd(d),r=document.querySelector(“div[data-adnode]”),c=!1,s=”http://slate.com/”,g=new Date,u=g.getDate(),l=g.getMonth()+1,m=g.getFullYear(),p=l+”/”+u+”/”+m;r&&(s=r.getAttribute(“data-adnode”),c=”homepage”===s),”1/18/2018″===p&&c?t.isElementNotHidden(d)&&e.requestAd(i):o(i)?n(i,d):a(i,d)};return d}]),DS.service(“adsScripts”,function(){!function(){var e=document.createElement(“script”);e.async=!0,e.type=”text/javascript”,e.src=”https://www.googletagservices.com/tag/js/gpt.js”,document.body.appendChild(e)}()});”use strict”;DS.controller(“article”,[“dom”,function(o){var s;return s=function(o){this.el=o},s.prototype={events:{“.sponsored-button mouseover”:”showMessage”,”.sponsored-button mouseout”:”hideMessage”},showMessage:function(){o.find(“.sponsored-info”).classList.add(“on”)},hideMessage:function(){o.find(“.sponsored-info”).classList.remove(“on”)}},s}]);DS.controller(“slate-parsely”,[function(){“use strict”;function t(t){}return t.prototype={events:{click:”handler”},handler:function(t){console.log(t.target)}},t}]);!function e(n,t,r){function o(c,s){if(!t[c]){if(!n[c]){var u=”function”==typeof require&&require;if(!s&&u)return u(c,!0);if(i)return i(c,!0);var f=new Error(“Cannot find module “http://slate.com/”+c+”http://slate.com/”http://slate.com/”);throw f.code=”MODULE_NOT_FOUND”,f}var a=t[c]={exports:{}};n[c][0].call(a.exports,function(e){var t=n[c][1][e];return o(t?t:e)},a,a.exports,e,n,t,r)}return t[c].exports}for(var i=”function”==typeof require&&require,c=0;c1){if(i=e({path:”/”},r.defaults,i),”number”==typeof i.expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*i.expires),i.expires=s}i.expires=i.expires?i.expires.toUTCString():”http://slate.com/”;try{c=JSON.stringify(o),/^[{[]/.test(c)&&(o=c)}catch(e){}o=t.write?t.write(o,n):encodeURIComponent(String(o)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),n=encodeURIComponent(String(n)),n=n.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),n=n.replace(/[()]/g,escape);var u=”http://slate.com/”;for(var f in i)i[f]&&(u+=”; “+f,i[f]!==!0&&(u+=”=”+i[f]));return document.cookie=n+”=”+o+u}n”http://slate.com/”(c={});for(var a=document.cookie?document.cookie.split(“; “):[],p=/(%[0-9A-Z]{2})+/g,l=0;l1){if(i=e({path:”/”},r.defaults,i),”number”==typeof i.expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*i.expires),i.expires=s}i.expires=i.expires?i.expires.toUTCString():”http://slate.com/”;try{c=JSON.stringify(o),/^[{[]/.test(c)&&(o=c)}catch(e){}o=t.write?t.write(o,n):encodeURIComponent(String(o)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),n=encodeURIComponent(String(n)),n=n.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),n=n.replace(/[()]/g,escape);var u=”http://slate.com/”;for(var a in i)i[a]&&(u+=”; “+a,i[a]!==!0&&(u+=”=”+i[a]));return document.cookie=n+”=”+o+u}n”http://slate.com/”(c={});for(var f=document.cookie?document.cookie.split(“; “):[],l=/(%[0-9A-Z]{2})+/g,d=0;d10?void console.error(“RETRY LIMIT EXCEEDED”):void setTimeout(function(){f(e,t+1)},u)};return s}])},{“../../services/client/analytics-js”:3,”../../services/universal/membership”:4}],2:[function(e,t,n){!function(e){var o=!1;if(“function”==typeof define&&define.amd&&(define(e),o=!0),”object”==typeof n&&(t.exports=e(),o=!0),!o){var i=window.Cookies,r=window.Cookies=e();r.noConflict=function(){return window.Cookies=i,r}}}(function(){function e(){for(var e=0,t={};e1){if(r=e({path:”/”},o.defaults,r),”number”==typeof r.expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*r.expires),r.expires=s}r.expires=r.expires?r.expires.toUTCString():”http://slate.com/”;try{c=JSON.stringify(i),/^[{[]/.test(c)&&(i=c)}catch(e){}i=n.write?n.write(i,t):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)),t=t.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),t=t.replace(/[()]/g,escape);var a=”http://slate.com/”;for(var u in r)r[u]&&(a+=”; “+u,r[u]!==!0&&(a+=”=”+r[u]));return document.cookie=t+”=”+i+a}t”http://slate.com/”(c={});for(var f=document.cookie?document.cookie.split(“; “):[],l=/(%[0-9A-Z]{2})+/g,d=0;d



Source link

Post Comment