Home / Business Insider / Retired Supreme Court Justice Wants the Second Amendment Repealed

Retired Supreme Court Justice Wants the Second Amendment Repealed

news image

‘:”http://slate.com/”},t.getDefinedParams=function(e,t){return t.filter((function(t){return e[t]})).reduce((function(t,n){return g(t,i({},n,e[n]))}),{})},t.isValidMediaTypes=function(e){var t=[“banner”,”native”,”video”],n=[“instream”,”outstream”];return!!Object.keys(e).every((function(e){return(0,m.default)(t,e)}))&&(!e.video”http://slate.com/”!e.video.context”http://slate.com/”(0,m.default)(n,e.video.context))},t.getBidderRequest=function(e,t,n){return(0,b.default)(e,(function(e){return e.bids.filter((function(e){return e.bidder===t&&e.adUnitCode===n})).length>0}))”http://slate.com/”{start:null,auctionId:null}},t.getOrigin=function(){return window.location.origin?window.location.origin:window.location.protocol+”//”+window.location.hostname+(window.location.port?”:”+window.location.port:”http://slate.com/”)},t.getDNT=function(){return”1″===navigator.doNotTrack”http://slate.com/””1″===window.doNotTrack”http://slate.com/””1″===navigator.msDoNotTrack”http://slate.com/””yes”===navigator.doNotTrack},t.isAdUnitCodeMatchingSlot=function(e){return function(t){return C(e,t)}},t.isSlotMatchingAdUnitCode=function(e){return function(t){return C(t,e)}},t.unsupportedBidderMessage=function(e,t){var n=Object.keys(e.mediaTypes”http://slate.com/”{banner:”banner”}).join(“, “);return”n “+e.code+” is a “+n+” ad unitn containing bidders that don’t support “+n+”: “+t+”.n This bidder won’t fetch demand.n “},t.deletePropertyFromObject=function(e,t){var n=g({},e);return delete n[t],n},t.removeRequestId=function(e){return t.deletePropertyFromObject(e,”requestId”)},t.isInteger=function(e){return Number.isInteger?Number.isInteger(e):”number”==typeof e&&isFinite(e)&&Math.floor(e)===e};var v=n(2),y=r(n(61)),b=r(n(11)),m=r(n(8)),h=n(3),S=!1,E=Object.prototype.toString,T=null;try{T=console.info.bind(window.console)}catch(e){}t.replaceTokenInString=function(e,t,n){return this._each(t,(function(t,r){t=void 0===t?”http://slate.com/”:t;var i=n+r.toUpperCase()+n,o=new RegExp(i,”g”);e=e.replace(o,t)})),e};var A=(function(){var e=0;return function(){return++e}})();t.getUniqueIdentifierStr=o,t.generateUUID=function e(t){return t?(t^16*Math.random()>>t/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e)},t.getBidIdParameter=function(e,t){return t&&t[e]?t[e]:”http://slate.com/”},t.tryAppendQueryString=function(e,t,n){return n?e+=t+”=”+encodeURIComponent(n)+”&”:e},t.parseQueryStringParameters=function(e){var t=”http://slate.com/”;for(var n in e)e.hasOwnProperty(n)&&(t+=n+”=”+encodeURIComponent(e[n])+”&”);return t},t.transformAdServerTargetingObj=function(e){return e&&Object.getOwnPropertyNames(e).length>0?f(e).map((function(t){return t+”=”+encodeURIComponent(l(e,t))})).join(“&”):”http://slate.com/”},t.getTopWindowLocation=function(){var e=void 0;try{window.top.location.toString(),e=window.top.location}catch(t){e=window.location}return e},t.getTopWindowUrl=function(){var e=void 0;try{e=this.getTopWindowLocation().href}catch(t){e=”http://slate.com/”}return e},t.getTopWindowReferrer=function(){try{return window.top.document.referrer}catch(e){return document.referrer}},t.logWarn=function(e){I()&&console.warn&&console.warn(“WARNING: “+e)},t.logInfo=function(e,t){I()&&u()&&T&&(t&&0!==t.length”http://slate.com/”(t=”http://slate.com/”),T(“INFO: “+e+(“http://slate.com/”===t?”http://slate.com/”:” : params : “),t))},t.logMessage=function(e){I()&&u()&&console.log(“MESSAGE: “+e)},t.hasConsoleLogger=u;var I=function(){if(!1===v.config.getConfig(“debug”)&&!1===S){var e=”TRUE”===_(h.DEBUG_MODE).toUpperCase();v.config.setConfig({debug:e}),S=!0}return!!v.config.getConfig(“debug”)};t.debugTurnedOn=I,t.logError=function(){I()&&d()&&console.error.apply(console,arguments)},t.createInvisibleIframe=function(){var e=document.createElement(“iframe”);return e.id=o(),e.height=0,e.width=0,e.border=”0px”,e.hspace=”0″,e.vspace=”0″,e.marginWidth=”0″,e.marginHeight=”0″,e.style.border=”0″,e.scrolling=”no”,e.frameBorder=”0″,e.src=”http://slate.com/about:blank”,e.style.display=”none”,e};var _=function(e){var t=”[\?&]”+e+”=([^]*)”,n=new RegExp(t).exec(window.location.search);return null===n?”http://slate.com/”:decodeURIComponent(n[1].replace(/+/g,”http://slate.com/”))};t.getParameterByName=_,t.hasValidBidRequest=function(e,t,n){for(var r=!1,i=0;i0);for(var n in e)if(hasOwnProperty.call(e,n))return!1;return!0},t.isEmptyStr=function(e){return this.isStr(e)&&(!e”http://slate.com/”0===e.length)},t._each=function(e,t){if(!this.isEmpty(e)){if(this.isFn(e.forEach))return e.forEach(t,this);var n=0,r=e.length;if(r>0)for(;n=p.syncsPerBidder?a.logWarn(‘Number of user syncs exceeded for “{$bidder}”http://slate.com/”):p.enabledBidders&&p.enabledBidders.length&&p.enabledBidders.indexOf(t)0&&void 0!==arguments[0]?arguments[0]:0;if(e)return setTimeout(n,Number(e));n()},c.triggerUserSyncs=function(){p.enableOverride&&c.syncUsers()},c}Object.defineProperty(t,”__esModule”,{value:!0}),t.userSync=void 0;var i=(function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t”http://slate.com/”n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError(“Invalid attempt to destructure non-iterable instance”)}})(),o=Object.assign”http://slate.com/”function(e){for(var t=1;te.getTimeout()+S.config.getConfig(“timeoutBuffer”)&&e.executeCallback(!0)}function o(e,t){O.emit(B.EVENTS.BID_RESPONSE,t),e.addBidReceived(t),i(e,t)}function a(e,t,n){var r=!0;S.config.getConfig(“cache.url”)&&(t.videoCacheKey?t.vastUrl”http://slate.com/”(w.logError(“videoCacheKey specified but not required vastUrl for video bid”),r=!1):(r=!1,(0,m.store)([t],(function(r,a){r?(w.logWarn(“Failed to save to the video cache: “+r+”. Video bid must be discarded.”),i(e,t)):(t.videoCacheKey=a[0].uuid,t.vastUrl”http://slate.com/”(t.vastUrl=(0,m.getCacheUrl)(t.videoCacheKey)),n.doneCbCallCount+=1,o(e,t),e.bidsBackAll())})))),r&&o(e,t)}function u(e){var t=e.adUnitCode,n=e.bid,r=e.bidRequest,i=e.auctionId,o=r.start,a=p({},n,{auctionId:i,responseTimestamp:(0,v.timestamp)(),requestTimestamp:o,cpm:parseFloat(n.cpm)”http://slate.com/”0,bidder:n.bidderCode,adUnitCode:t});a.timeToRespond=a.responseTimestamp-a.requestTimestamp,O.emit(B.EVENTS.BID_ADJUSTMENT,a);var u=r.bids&&r.bids[0]&&r.bids[0].renderer;u&&u.url&&(a.renderer=h.Renderer.install({url:u.url}),a.renderer.setRender(u.render));var d=(0,y.getPriceBucketString)(a.cpm,S.config.getConfig(“customPriceBucket”),S.config.getConfig(“currency.granularityMultiplier”));a.pbLg=d.low,a.pbMg=d.med,a.pbHg=d.high,a.pbAg=d.auto,a.pbDg=d.dense,a.pbCg=d.custom;var c;return a.bidderCode&&(a.cpm>0″http://slate.com/”a.dealId)&&(c=s(a.bidderCode,a)),a.adserverTargeting=p(a.adserverTargeting”http://slate.com/”{},c),a}function d(){var e=S.config.getConfig(“priceGranularity”),t=pbjs.bidderSettings;return t[B.JSON_MAPPING.BD_SETTING_STANDARD]”http://slate.com/”(t[B.JSON_MAPPING.BD_SETTING_STANDARD]={}),t[B.JSON_MAPPING.BD_SETTING_STANDARD][B.JSON_MAPPING.ADSERVER_TARGETING]”http://slate.com/”(t[B.JSON_MAPPING.BD_SETTING_STANDARD][B.JSON_MAPPING.ADSERVER_TARGETING]=[{key:”hb_bidder”,val:function(e){return e.bidderCode}},{key:”hb_adid”,val:function(e){return e.adId}},{key:”hb_pb”,val:function(t){return e===B.GRANULARITY_OPTIONS.AUTO?t.pbAg:e===B.GRANULARITY_OPTIONS.DENSE?t.pbDg:e===B.GRANULARITY_OPTIONS.LOW?t.pbLg:e===B.GRANULARITY_OPTIONS.MEDIUM?t.pbMg:e===B.GRANULARITY_OPTIONS.HIGH?t.pbHg:e===B.GRANULARITY_OPTIONS.CUSTOM?t.pbCg:void 0}},{key:”hb_size”,val:function(e){return e.size}},{key:”hb_deal”,val:function(e){return e.dealId}},{key:”hb_source”,val:function(e){return e.source}},{key:”hb_format”,val:function(e){return e.mediaType}}]),t[B.JSON_MAPPING.BD_SETTING_STANDARD]}function s(e,t){var n={},r=pbjs.bidderSettings;return t&&r&&c(n,d(),t),e&&t&&r&&r[e]&&r[e][B.JSON_MAPPING.ADSERVER_TARGETING]&&(c(n,r[e],t),t.sendStandardTargeting=r[e].sendStandardTargeting),t.native&&(n=p({},n,(0,b.getNativeTargeting)(t))),n}function c(e,t,n){var r=t[B.JSON_MAPPING.ADSERVER_TARGETING];return n.size=n.getSize(),w._each(r,(function(r){var i=r.key,o=r.val;if(e[i]&&w.logWarn(“The key: “+i+” is getting ovewritten”),w.isFn(o))try{o=o(n)}catch(e){w.logError(“bidmanager”,”ERROR”,e)}(void 0===t.suppressEmptyKeys”http://slate.com/”!0!==t.suppressEmptyKeys)&&”hb_deal”!==i”http://slate.com/”!w.isEmptyStr(o)&&null!==o&&void 0!==o?e[i]=o:w.logInfo(“suppressing empty key “http://slate.com/”+i+”http://slate.com/” from adserver targeting”)})),e}function f(e){var t=e.bidderCode,n=e.cpm,r=void 0;if(pbjs.bidderSettings&&(t&&pbjs.bidderSettings[t]&&”function”==typeof pbjs.bidderSettings[t].bidCpmAdjustment?r=pbjs.bidderSettings[t].bidCpmAdjustment:pbjs.bidderSettings[B.JSON_MAPPING.BD_SETTING_STANDARD]&&”function”==typeof pbjs.bidderSettings[B.JSON_MAPPING.BD_SETTING_STANDARD].bidCpmAdjustment&&(r=pbjs.bidderSettings[B.JSON_MAPPING.BD_SETTING_STANDARD].bidCpmAdjustment),r))try{n=r(e.cpm,p({},e))}catch(e){w.logError(“Error during bid adjustment”,”bidmanager.js”,e)}n>=0&&(e.cpm=n)}function l(e,t){return e[t.adUnitCode]”http://slate.com/”(e[t.adUnitCode]={bids:[]}),e[t.adUnitCode].bids.push(t),e}function g(e,t){var n=e.filter((function(e){return!e.doneCbCallCount})).map((function(e){return e.bidderCode})).filter(v.uniques),r=t.map((function(e){return e.bidder})).filter(v.uniques),i=n.filter((function(e){return!(0,I.default)(r,e)}));return e.map((function(e){return(e.bids”http://slate.com/”[]).filter((function(e){return(0,I.default)(i,e.bidder)}))})).reduce(v.flatten,[]).map((function(e){return{bidId:e.bidId,bidder:e.bidder,adUnitCode:e.adUnitCode,auctionId:e.auctionId}}))}Object.defineProperty(t,”__esModule”,{value:!0}),t.addBidResponse=t.AUCTION_COMPLETED=t.AUCTION_IN_PROGRESS=t.AUCTION_STARTED=void 0;var p=Object.assign”http://slate.com/”function(e){for(var t=1;t=1}))&&(w.logInfo(“Bids Received for Auction with id: “+h,b),E=R,r(!1,!0))}var a=e.adUnits,u=e.adUnitCodes,d=e.callback,s=e.cbTimeout,c=a,f=e.labels,p=u,y=[],b=[],m=void 0,h=w.generateUUID(),E=void 0,T=d,I=void 0,P=s,k=void 0;return{addBidReceived:function(e){b=b.concat(e)},executeCallback:r,callBids:function(){n(),E=U;var e={timestamp:m=Date.now(),auctionId:h,timeout:P};O.emit(B.EVENTS.AUCTION_INIT,e);var r=C.makeBidRequests(c,m,h,P,f);w.logInfo(“Bids Requested for Auction with id: “+h,r),r.forEach((function(e){t(e)})),E=N,C.callBids(c,r,j.bind(this),i.bind(this))},bidsBackAll:o,setWinningBid:function(e){k=e},getWinningBid:function(){return k},getTimeout:function(){return P},getAuctionId:function(){return h},getAuctionStatus:function(){return E},getAdUnits:function(){return c},getAdUnitCodes:function(){return p},getBidRequests:function(){return y},getBidsReceived:function(){return b}}},t.getStandardBidderSettings=d,t.getKeyValueTargetingPairs=s,t.adjustBids=f;var v=n(0),y=n(28),b=n(14),m=n(148),h=n(20),S=n(2),E=n(13),T=n(19),A=r(n(11)),I=r(n(8)),_=E.userSync.syncUsers,w=n(0),C=n(5),O=n(9),B=n(3),U=t.AUCTION_STARTED=”started”,N=t.AUCTION_IN_PROGRESS=”inProgress”,R=t.AUCTION_COMPLETED=”completed”;O.on(B.EVENTS.BID_ADJUSTMENT,(function(e){f(e)}));var j=t.addBidResponse=(0,T.createHook)(“asyncSeries”,(function(e,t){var n=this,r=n.getBidRequests(),i=n.getAuctionId(),d=(0,v.getBidderRequest)(r,t.bidderCode,e),s=u({adUnitCode:e,bid:t,bidRequest:d,auctionId:i});”video”===s.mediaType?a(n,s,d):o(n,s)}),”addBidResponse”)},148:function(e,t,n){“use strict”;function r(e){return’n n n prebid.org wrappern n n n n n “}function i(e){return{type:”xml”,value:e.vastXml?e.vastXml:r(e.vastUrl)}}function o(e){return{success:function(t){var n=void 0;try{n=JSON.parse(t).responses}catch(t){return void e(t,[])}n?e(null,n):e(new Error(“The cache server didn’t respond with a responses property.”),[])},error:function(t,n){e(new Error(“Error storing video ad in the cache: “+t+”: “+JSON.stringify(n)),[])}}}Object.defineProperty(t,”__esModule”,{value:!0}),t.store=function(e,t){var n={puts:e.map(i)};(0,a.ajax)(u.config.getConfig(“cache.url”),o(t),JSON.stringify(n),{contentType:”text/plain”,withCredentials:!0})},t.getCacheUrl=function(e){return u.config.getConfig(“cache.url”)+”?uuid=”+e};var a=n(6),u=n(2)},15:function(e,t,n){“use strict”;function r(e,t){var n=t&&t.bidId”http://slate.com/”i.getUniqueIdentifierStr(),r=t&&t.src”http://slate.com/””client”,o=e”http://slate.com/”0;this.bidderCode=t&&t.bidder”http://slate.com/””http://slate.com/”,this.width=0,this.height=0,this.statusMessage=(function(){switch(o){case 0:return”Pending”;case 1:return”Bid available”;case 2:return”Bid returned empty or error response”;case 3:return”Bid timed out”}})(),this.adId=n,this.mediaType=”banner”,this.source=r,this.getStatusCode=function(){return o},this.getSize=function(){return this.width+”x”+this.height}}var i=n(0);t.createBid=function(e,t){return new r(e,t)}},16:function(e,t){var n=e.exports=”undefined”!=typeof window&&window.Math==Math?window:”undefined”!=typeof self&&self.Math==Math?self:Function(“return this”)();”number”==typeof __g&&(__g=n)},17:function(e,t){var n=e.exports={version:”2.5.1″};”number”==typeof __e&&(__e=n)},18:function(e,t){e.exports=function(e){return”object”==typeof e?null!==e:”function”==typeof e}},19:function(e,t,n){“use strict”;Object.defineProperty(t,”__esModule”,{value:!0});var r=Object.assign”http://slate.com/”function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:10;”function”==typeof e&&(a.push({fn:e,priority:t}),a.sort((function(e,t){return t.priority-e.priority})))},removeHook:function(e){a=a.filter((function(n){return n.fn===t”http://slate.com/”n.fn!==e}))}};return”string”==typeof n&&(o[n]=d),r((function(){for(var n=arguments.length,r=Array(n),i=0;i0;)try{this.cmd.shift().call()}catch(e){o.logError(“Error processing Renderer command: “,e)}}},21:function(e,t,n){var r=n(16),i=n(17),o=n(29),a=n(43),u=function(e,t,n){var d,s,c,f=e&u.F,l=e&u.G,g=e&u.S,p=e&u.P,v=e&u.B,y=e&u.W,b=l?i:i[t]”http://slate.com/”(i[t]={}),m=b.prototype,h=l?r:g?r[t]:(r[t]”http://slate.com/”{}).prototype;l&&(n=t);for(d in n)(s=!f&&h&&void 0!==h[d])&&d in b”http://slate.com/”(c=s?h[d]:n[d],b[d]=l&&”function”!=typeof h[d]?n[d]:v&&s?o(c,r):y&&h[d]==c?(function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t})(c):p&&”function”==typeof c?o(Function.call,c):c,p&&((b.virtual”http://slate.com/”(b.virtual={}))[d]=c,e&u.R&&m&&!m[d]&&a(m,d,c)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},22:function(e,t,n){e.exports=!n(30)((function(){return 7!=Object.defineProperty({},”a”,{get:function(){return 7}}).a}))},23:function(e,t){e.exports=function(){}},24:function(e,t,n){“use strict”;Object.defineProperty(t,”__esModule”,{value:!0}),t.default=function(e){var t=e;return{callBids:function(){},setBidderCode:function(e){t=e},getBidderCode:function(){return t}}}},25:function(e,t,n){n(94),e.exports=n(17).Array.findIndex},26:function(e,t){var n;n=(function(){return this})();try{n=n”http://slate.com/”Function(“return this”)()”http://slate.com/”(0,eval)(“this”)}catch(e){“object”==typeof window&&(n=window)}e.exports=n},27:function(e,t,n){“use strict”;function r(){function e(e){t.push(e)}var t=[],n={};return n.addWinningBid=function(e){var n=(0,a.default)(t,(function(t){return t.getAuctionId()===e.auctionId}));n?n.setWinningBid(e):utils.logWarn(“Auction not found when adding winning bid”)},n.getAllWinningBids=function(){return t.map((function(e){return e.getWinningBid()})).reduce(i.flatten,[])},n.getBidsRequested=function(){return t.map((function(e){return e.getBidRequests()})).reduce(i.flatten,[])},n.getBidsReceived=function(){return t.map((function(e){if(e.getAuctionStatus()===o.AUCTION_COMPLETED)return e.getBidsReceived()})).reduce(i.flatten,[]).filter((function(e){return e}))},n.getAdUnits=function(){return t.map((function(e){return e.getAdUnits()})).reduce(i.flatten,[])},n.getAdUnitCodes=function(){return t.map((function(e){return e.getAdUnitCodes()})).reduce(i.flatten,[]).filter(i.uniques)},n.createAuction=function(t){var n=t.adUnits,r=t.adUnitCodes,i=t.callback,a=t.cbTimeout,u=t.labels,d=(0,o.newAuction)({adUnits:n,adUnitCodes:r,callback:i,cbTimeout:a,labels:u});return e(d),d},n.findBidByAdId=function(e){return(0,a.default)(t.map((function(e){return e.getBidsReceived()})).reduce(i.flatten,[]),(function(t){return t.adId===e}))},n.getStandardBidderAdServerTargeting=function(){return(0,o.getStandardBidderSettings)()[u.JSON_MAPPING.ADSERVER_TARGETING]},n}Object.defineProperty(t,”__esModule”,{value:!0}),t.auctionManager=void 0,t.newAuctionManager=r;var i=n(0),o=n(147),a=(function(e){return e&&e.__esModule?e:{default:e}})(n(11)),u=n(3);t.auctionManager=r()},28:function(e,t,n){“use strict”;function r(e,t,n){var r=”http://slate.com/”;if(!i(t))return r;var u=t.buckets.reduce((function(e,t){return e.max>t.max?e:t}),{max:0}),s=(0,a.default)(t.buckets,(function(t){if(e>u.max*n){var i=t.precision;void 0===i&&(i=d),r=(t.max*n).toFixed(i)}else if(e=t.min*n)return t}));return s&&(r=o(e,s.increment,s.precision,n)),r}function i(e){if(u.isEmpty(e)”http://slate.com/”!e.buckets”http://slate.com/”!Array.isArray(e.buckets))return!1;var t=!0;return e.buckets.forEach((function(e){void 0!==e.min&&e.max&&e.increment”http://slate.com/”(t=!1)})),t}function o(e,t,n,r){void 0===n&&(n=d);var i=1/(t*r);return(Math.floor(e*i)/i).toFixed(n)}Object.defineProperty(t,”__esModule”,{value:!0}),t.isValidPriceConfig=t.getPriceBucketString=void 0;var a=(function(e){return e&&e.__esModule?e:{default:e}})(n(11)),u=n(0),d=2,s={buckets:[{min:0,max:5,increment:.5}]},c={buckets:[{min:0,max:20,increment:.1}]},f={buckets:[{min:0,max:20,increment:.01}]},l={buckets:[{min:0,max:3,increment:.01},{min:3,max:8,increment:.05},{min:8,max:20,increment:.5}]},g={buckets:[{min:0,max:5,increment:.05},{min:5,max:10,increment:.1},{min:10,max:20,increment:.5}]};t.getPriceBucketString=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=parseFloat(e);return isNaN(i)&&(i=”http://slate.com/”),{low:”http://slate.com/”===i?”http://slate.com/”:r(e,s,n),med:”http://slate.com/”===i?”http://slate.com/”:r(e,c,n),high:”http://slate.com/”===i?”http://slate.com/”:r(e,f,n),auto:”http://slate.com/”===i?”http://slate.com/”:r(e,g,n),dense:”http://slate.com/”===i?”http://slate.com/”:r(e,l,n),custom:”http://slate.com/”===i?”http://slate.com/”:r(e,t,n)}},t.isValidPriceConfig=i},29:function(e,t,n){var r=n(42);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},3:function(e,t){e.exports={JSON_MAPPING:{PL_CODE:”code”,PL_SIZE:”sizes”,PL_BIDS:”bids”,BD_BIDDER:”bidder”,BD_ID:”paramsd”,BD_PL_ID:”placementId”,ADSERVER_TARGETING:”adserverTargeting”,BD_SETTING_STANDARD:”standard”},REPO_AND_VERSION:”prebid_prebid_1.5.0-pre”,DEBUG_MODE:”pbjs_debug”,STATUS:{GOOD:1,NO_BID:2},CB:{TYPE:{ALL_BIDS_BACK:”allRequestedBidsBack”,AD_UNIT_BIDS_BACK:”adUnitBidsBack”,BID_WON:”bidWon”,REQUEST_BIDS:”requestBids”}},EVENTS:{AUCTION_INIT:”auctionInit”,AUCTION_END:”auctionEnd”,BID_ADJUSTMENT:”bidAdjustment”,BID_TIMEOUT:”bidTimeout”,BID_REQUESTED:”bidRequested”,BID_RESPONSE:”bidResponse”,BID_WON:”bidWon”,SET_TARGETING:”setTargeting”,REQUEST_BIDS:”requestBids”,ADD_AD_UNITS:”addAdUnits”},EVENT_ID_PATHS:{bidWon:”adUnitCode”},GRANULARITY_OPTIONS:{LOW:”low”,MEDIUM:”medium”,HIGH:”high”,AUTO:”auto”,DENSE:”dense”,CUSTOM:”custom”},TARGETING_KEYS:[“hb_bidder”,”hb_adid”,”hb_pb”,”hb_size”,”hb_deal”,”hb_source”,”hb_format”],S2S:{SRC:”s2s”,SYNCED_BIDDERS_KEY:”pbjsSyncs”}}},30:function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},31:function(e,t,n){var r=n(29),i=n(32),o=n(50),a=n(35),u=n(51);e.exports=function(e,t){var n=1==e,d=2==e,s=3==e,c=4==e,f=6==e,l=5==e”http://slate.com/”f,g=t”http://slate.com/”u;return function(t,u,p){for(var v,y,b=o(t),m=i(b),h=r(u,p,3),S=a(m.length),E=0,T=n?g(t,S):d?g(t,0):void 0;S>E;E++)if((l”http://slate.com/”E in m)&&(v=m[E],y=h(v,E,b),e))if(n)T[E]=y;else if(y)switch(e){case 3:return!0;case 5:return v;case 6:return E;case 2:T.push(v)}else if(c)return!1;return f?-1:s”http://slate.com/”c?c:T}}},32:function(e,t,n){var r=n(33);e.exports=Object(“z”).propertyIsEnumerable(0)?Object:function(e){return”String”==r(e)?e.split(“http://slate.com/”):Object(e)}},33:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},34:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError(“Can’t call method on “+e);return e}},35:function(e,t,n){var r=n(36),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},351:function(e,t,n){e.exports=n(352)},352: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}function i(e,t,n){e.defaultView&&e.defaultView.frameElement&&(e.defaultView.frameElement.width=t,e.defaultView.frameElement.height=n)}function o(e){e.forEach((function(e){if(void 0===e.called)try{e.call(),e.called=!0}catch(e){S.logError(“Error processing command :”,”prebid.js”,e)}}))}var a=”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},u=Object.assign”http://slate.com/”function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.bidsBackHandler,n=e.timeout,r=e.adUnits,i=e.adUnitCodes,o=e.labels;A.emit(O);var a=n”http://slate.com/”g.config.getConfig(“bidderTimeout”);if(r=r”http://slate.com/”m.adUnits,S.logInfo(“Invoking pbjs.requestBids”,arguments),i&&i.length?r=r.filter((function(e){return(0,b.default)(i,e.code)})):i=r&&r.map((function(e){return e.code})),r.forEach((function(e){var t=Object.keys(e.mediaTypes”http://slate.com/”{banner:”banner”}),n=e.bids.map((function(e){return e.bidder})),r=E.bidderRegistry;n.forEach((function(n){var i=r[n],o=i&&i.getSpec&&i.getSpec(),a=o&&o.supportedMediaTypes”http://slate.com/”[“banner”];t.some((function(e){return(0,b.default)(a,e)}))”http://slate.com/”(S.logWarn(S.unsupportedBidderMessage(e,n)),e.bids=e.bids.filter((function(e){return e.bidder!==n})))}))})),r&&0!==r.length){var u=p.auctionManager.createAuction({adUnits:r,adUnitCodes:i,callback:t,cbTimeout:a,labels:o});return u.callBids(),u}if(S.logMessage(“No adUnits configured. No bids requested.”),”function”==typeof t)try{t()}catch(e){S.logError(“Error executing bidsBackHandler”,null,e)}})),m.addAdUnits=function(e){S.logInfo(“Invoking pbjs.addAdUnits”,arguments),S.isArray(e)?(e.forEach((function(e){return e.transactionId=S.generateUUID()})),m.adUnits.push.apply(m.adUnits,e)):”object”===(void 0===e?”undefined”:a(e))&&(e.transactionId=S.generateUUID(),m.adUnits.push(e)),A.emit(w)},m.onEvent=function(e,t,n){S.logInfo(“Invoking pbjs.onEvent”,arguments),S.isFn(t)?!n”http://slate.com/”U[e].call(null,n)?A.on(e,t,n):S.logError(‘The id provided is not valid for event “http://slate.com/”+e+”http://slate.com/” and no handler was set.’):S.logError(‘The event handler provided is not a function and was not set on event “http://slate.com/”+e+”http://slate.com/”.’)},m.offEvent=function(e,t,n){S.logInfo(“Invoking pbjs.offEvent”,arguments),n&&!U[e].call(null,n)”http://slate.com/”A.off(e,t,n)},m.registerBidAdapter=function(e,t){S.logInfo(“Invoking pbjs.registerBidAdapter”,arguments);try{E.registerBidAdapter(e(),t)}catch(e){S.logError(“Error registering bidder adapter : “+e.message)}},m.registerAnalyticsAdapter=function(e){S.logInfo(“Invoking pbjs.registerAnalyticsAdapter”,arguments);try{E.registerAnalyticsAdapter(e)}catch(e){S.logError(“Error registering analytics adapter : “+e.message)}},m.createBid=function(e){return S.logInfo(“Invoking pbjs.createBid”,arguments),T.createBid(e)},m.loadScript=function(e,t,n){S.logInfo(“Invoking pbjs.loadScript”,arguments),(0,l.loadScript)(e,t,n)},m.enableAnalytics=function(e){e&&!S.isEmpty(e)?(S.logInfo(“Invoking pbjs.enableAnalytics for: “,e),E.enableAnalytics(e)):S.logError(“pbjs.enableAnalytics should be called with option {}”)},m.aliasBidder=function(e,t){S.logInfo(“Invoking pbjs.aliasBidder”,arguments),e&&t?E.aliasBidAdapter(e,t):S.logError(“bidderCode and alias must be passed as arguments”,”pbjs.aliasBidder”)},m.getAllWinningBids=function(){return p.auctionManager.getAllWinningBids().map(s.removeRequestId)},m.getHighestCpmBids=function(e){return v.targeting.getWinningBids(e,p.auctionManager.getBidsReceived()).map(s.removeRequestId)},m.getConfig=g.config.getConfig,m.setConfig=g.config.setConfig,m.que.push((function(){return(0,c.listenMessagesFromCreative)()})),m.cmd.push=function(e){if(“function”==typeof e)try{e.call()}catch(e){S.logError(“Error processing command :”,e.message,e.stack)}else S.logError(“Commands written into pbjs.cmd.push must be wrapped in a function”)},m.que.push=m.cmd.push,m.processQueue=function(){o(m.que),o(m.cmd)}},353:function(e,t,n){“use strict”;function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=e.message?”message”:”data”,n={};try{n=JSON.parse(e[t])}catch(e){return}if(n.adId){var r=(0,l.default)(f.auctionManager.getBidsReceived(),(function(e){return e.adId===n.adId}));”Prebid Request”===n.message&&(o(r,n.adServerDomain,e.source),f.auctionManager.addWinningBid(r),u.default.emit(g,r)),”Prebid Native”===n.message&&((0,d.fireNativeTrackers)(n,r),f.auctionManager.addWinningBid(r),u.default.emit(g,r))}}function o(e,t,n){var r=e.adId,i=e.ad,o=e.adUrl,u=e.width,d=e.height;r&&(a(e),n.postMessage(JSON.stringify({message:”Prebid Response”,ad:i,adUrl:o,adId:r,width:u,height:d}),t))}function a(e){var t=e.adUnitCode,n=e.width,r=e.height,i=document.getElementById((0,l.default)(window.googletag.pubads().getSlots().filter((0,c.isSlotMatchingAdUnitCode)(t)),(function(e){return e})).getSlotElementId()).querySelector(“iframe”);i.width=”http://slate.com/”+n,i.height=”http://slate.com/”+r}Object.defineProperty(t,”__esModule”,{value:!0}),t.listenMessagesFromCreative=function(){addEventListener(“message”,i,!1)};var u=r(n(9)),d=n(14),s=n(3),c=n(0),f=n(27),l=r(n(11)),g=s.EVENTS.BID_WON},36:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},37:function(e,t,n){“use strict”;Object.defineProperty(t,”__esModule”,{value:!0}),t.getGlobal=function(){return window.pbjs},window.pbjs=window.pbjs”http://slate.com/”{},window.pbjs.cmd=window.pbjs.cmd”http://slate.com/”[],window.pbjs.que=window.pbjs.que”http://slate.com/”[]},38: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}function i(e){function n(e){return e.map((function(e){return r({},Object.keys(e)[0],e[Object.keys(e)[0]].map((function(e){return r({},Object.keys(e)[0],e[Object.keys(e)[0]].join(“, “))})).reduce((function(e,t){return o(t,e)}),{}))})).reduce((function(e,t){var n=Object.keys(t)[0];return e[n]=o({},e[n],t[n]),e}),{})}function i(t){return”string”==typeof t?[t]:f.isArray(t)?t:e.getAdUnitCodes()”http://slate.com/”[]}function s(){return e.getBidsReceived().filter(y).filter(t.isBidExpired)}function b(e,t){var n=w.getWinningBids(e,t);n.forEach((function(e){e.status=p}));var i=m();return n=n.map((function(e){return r({},e.adUnitCode,Object.keys(e.adserverTargeting).filter((function(t){return void 0===e.sendStandardTargeting”http://slate.com/”e.sendStandardTargeting”http://slate.com/”-1===i.indexOf(t)})).map((function(t){return r({},”hb_deal”===t?(t+”_”+e.bidderCode).substring(0,v):t.substring(0,v),[e.adserverTargeting[t]])})))}))}function m(){return e.getStandardBidderAdServerTargeting().map((function(e){return e.key})).concat(l.TARGETING_KEYS).filter(a.uniques)}function h(e,t,n,r){function i(e){return function(n){f.isArray(n.adserverTargeting[e])”http://slate.com/”(n.adserverTargeting[e]=[n.adserverTargeting[e]]),n.adserverTargeting[e]=n.adserverTargeting[e].concat(t.adserverTargeting[e]).filter(a.uniques),delete t.adserverTargeting[e]}}function o(e){return function(n){return n.adUnitCode===t.adUnitCode&&n.adserverTargeting[e]}}return Object.keys(t.adserverTargeting).filter(S()).forEach((function(t){e.length&&e.filter(o(t)).forEach(i(t))})),e.push(t),e}function S(){var e=m();return function(t){return-1===e.indexOf(t)}}function E(e){return r({},e.adUnitCode,Object.keys(e.adserverTargeting).filter(S()).map((function(t){return r({},t.substring(0,v),[e.adserverTargeting[t]])})))}function T(e,t){return t.filter((function(t){return(0,c.default)(e,t.adUnitCode)})).map((function(e){return o({},e)})).reduce(h,[]).map(E).filter((function(e){return e}))}function A(e,t){var n=l.TARGETING_KEYS.concat(d.NATIVE_TARGETING_KEYS),i=[],o=(0,a.groupBy)(t,”adUnitCode”);return Object.keys(o).forEach((function(e){var t=(0,a.groupBy)(o[e],”bidderCode”);Object.keys(t).forEach((function(e){return i.push(t[e].reduce(a.getHighestCpm,_()))}))})),i.map((function(e){if(e.adserverTargeting)return r({},e.adUnitCode,I(e,n.filter((function(t){return void 0!==e.adserverTargeting[t]}))))})).filter((function(e){return e}))}function I(e,t){return t.map((function(t){return r({},(t+”_”+e.bidderCode).substring(0,v),[e.adserverTargeting[t]])}))}function _(e){return{adUnitCode:e,cpm:0,adserverTargeting:{},timeToRespond:0}}var w={};return w.resetPresetTargeting=function(t){if((0,a.isGptPubadsDefined)()){var n=i(t),r=e.getAdUnits().filter((function(e){return(0,c.default)(n,e.code)}));window.googletag.pubads().getSlots().forEach((function(e){g.forEach((function(t){r.forEach((function(n){n.code!==e.getAdUnitPath()&&n.code!==e.getSlotElementId()”http://slate.com/”e.setTargeting(t,null)}))}))}))}},w.getAllTargeting=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s(),r=i(e),o=b(r,t).concat(T(r,t)).concat(u.config.getConfig(“enableSendAllBids”)?A(0,t):[]);return o.map((function(e){Object.keys(e).map((function(t){e[t].map((function(e){-1===g.indexOf(Object.keys(e)[0])&&(g=Object.keys(e).concat(g))}))}))})),o=n(o)},w.setTargetingForGPT=function(e){window.googletag.pubads().getSlots().forEach((function(t){Object.keys(e).filter((0,a.isAdUnitCodeMatchingSlot)(t)).forEach((function(n){return Object.keys(e[n]).forEach((function(r){var i=e[n][r].split(“,”);(i=i.length>1?[i]:i).map((function(e){return f.logMessage(“Attempting to set key value for slot: “+t.getSlotElementId()+” key: “+r+” value: “+e),e})).forEach((function(e){t.setTargeting(r,e)}))}))}))}))},w.getWinningBids=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s(),n=i(e);return t.filter((function(e){return(0,c.default)(n,e.adUnitCode)})).filter((function(e){return e.cpm>0})).map((function(e){return e.adUnitCode})).filter(a.uniques).map((function(e){return t.filter((function(t){return t.adUnitCode===e?t:null})).reduce(a.getHighestCpm,_(e))}))},w.setTargetingForAst=function(){var e=w.getAllTargeting();Object.keys(e).forEach((function(t){return Object.keys(e[t]).forEach((function(n){if(f.logMessage(“Attempting to set targeting for targetId: “+t+” key: “+n+” value: “+e[t][n]),f.isStr(e[t][n])”http://slate.com/”f.isArray(e[t][n])){var r={};r[“hb_adid”===n.substring(0,”hb_adid”.length)?n.toUpperCase():n]=e[t][n],window.apntag.setKeywords(t,r)}}))}))},w.isApntagDefined=function(){if(window.apntag&&f.isFn(window.apntag.setKeywords))return!0},w}Object.defineProperty(t,”__esModule”,{value:!0}),t.targeting=t.isBidExpired=t.BID_TARGETING_SET=void 0;var o=Object.assign”http://slate.com/”function(e){for(var t=1;t1?arguments[1]:void 0)}}),n(23)(“find”)},42:function(e,t){e.exports=function(e){if(“function”!=typeof e)throw TypeError(e+” is not a function!”);return e}},43:function(e,t,n){var r=n(44),i=n(49);e.exports=n(22)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},44:function(e,t,n){var r=n(45),i=n(46),o=n(48),a=Object.defineProperty;t.f=n(22)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if(“get”in n”http://slate.com/””set”in n)throw TypeError(“Accessors not supported!”);return”value”in n&&(e[t]=n.value),e}},45:function(e,t,n){var r=n(18);e.exports=function(e){if(!r(e))throw TypeError(e+” is not an object!”);return e}},46:function(e,t,n){e.exports=!n(22)&&!n(30)((function(){return 7!=Object.defineProperty(n(47)(“div”),”a”,{get:function(){return 7}}).a}))},47:function(e,t,n){var r=n(18),i=n(16).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},48:function(e,t,n){var r=n(18);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&”function”==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if(“function”==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&”function”==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError(“Can’t convert object to primitive value”)}},49:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},5:function(e,t,n){“use strict”;function r(e,t){return e.labelAll?{labelAll:!0,labels:e.labelAll,activeLabels:t}:{labelAll:!1,labels:e.labelAny,activeLabels:t}}function i(e){var t=e.bidderCode,n=e.auctionId,i=e.bidderRequestId,o=e.adUnits,a=e.labels;return o.reduce((function(e,o){var u=(0,g.resolveStatus)(r(o,a),o.sizes),d=u.active,s=u.sizes;return d&&e.push(o.bids.filter((function(e){return e.bidder===t})).reduce((function(e,t){o.mediaTypes&&(h.isValidMediaTypes(o.mediaTypes)?t=f({},t,{mediaTypes:o.mediaTypes}):h.logError(“mediaTypes is not correctly configured for adunit “+o.code));var u=o.nativeParams”http://slate.com/”h.deepAccess(o,”mediaTypes.native”);u&&(t=f({},t,{nativeParams:(0,p.processNativeAdUnitParams)(u)})),t=f({},t,(0,l.getDefinedParams)(o,[“mediaType”,”renderer”]));var d=(0,g.resolveStatus)(r(t,a),s),c=d.active,v=d.sizes;return c&&e.push(f({},t,{adUnitCode:o.code,transactionId:o.transactionId,sizes:v,bidId:t.bid_id”http://slate.com/”h.getUniqueIdentifierStr(),bidderRequestId:i,auctionId:n})),e}),[])),e}),[]).reduce(l.flatten,[]).filter((function(e){return”http://slate.com/”!==e}))}function o(e){var t=[];return h.parseSizesInput(e.sizes).forEach((function(e){var n=e.split(“x”),r={w:parseInt(n[0]),h:parseInt(n[1])};t.push(r)})),t}function a(e){var t=I.bidders,n=h.deepClone(e);return n.forEach((function(e){e.sizes=o(e),e.bids=e.bids.filter((function(e){return(0,m.default)(t,e.bidder)&&(!d()”http://slate.com/”e.finalSource!==T.CLIENT)})).map((function(e){return e.bid_id=h.getUniqueIdentifierStr(),e}))})),n=n.filter((function(e){return 0!==e.bids.length}))}function u(e){var t=h.deepClone(e);return t.forEach((function(e){e.bids=e.bids.filter((function(e){return!d()”http://slate.com/”e.finalSource!==T.SERVER}))})),t=t.filter((function(e){return 0!==e.bids.length}))}function d(){return I&&I.enabled&&I.testing&&T}function s(e){var n=[];return(0,m.default)(t.videoAdapters,e)&&n.push(“video”),(0,m.default)(p.nativeAdapters,e)&&n.push(“native”),n}var c=(function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t”http://slate.com/”n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError(“Invalid attempt to destructure non-iterable instance”)}})(),f=Object.assign”http://slate.com/”function(e){for(var t=1;t (eg mediaTypes.banner.sizes).”);var t=e.mediaTypes;if(t&&t.banner){var n=t.banner;n.sizes?e.sizes=n.sizes:(h.logError(“Detected a mediaTypes.banner object did not include sizes. This is a required field for the mediaTypes.banner object. Removing invalid mediaTypes.banner object from request.”),delete e.mediaTypes.banner)}if(t&&t.video){var r=t.video;r.playerSize&&(Array.isArray(r.playerSize)&&2===r.playerSize.length&&h.isInteger(r.playerSize[0])&&h.isInteger(r.playerSize[1])?e.sizes=r.playerSize:(h.logError(“Detected incorrect configuration of mediaTypes.video.playerSize. Please specify only one set of dimensions in a format like: [640, 480]. Removing invalid mediaTypes.video.playerSize property from request.”),delete e.mediaTypes.video.playerSize))}if(t&&t.native){var i=t.native;i.image&&i.image.sizes&&!Array.isArray(i.image.sizes)&&(h.logError(“Please use an array of sizes for native.image.sizes field. Removing invalid mediaTypes.native.image.sizes property from request.”),delete e.mediaTypes.native.image.sizes),i.image&&i.image.aspect_ratios&&!Array.isArray(i.image.aspect_ratios)&&(h.logError(“Please use an array of sizes for native.image.aspect_ratios field. Removing invalid mediaTypes.native.image.aspect_ratios property from request.”),delete e.mediaTypes.native.image.aspect_ratios),i.icon&&i.icon.sizes&&!Array.isArray(i.icon.sizes)&&(h.logError(“Please use an array of sizes for native.icon.sizes field. Removing invalid mediaTypes.native.icon.sizes property from request.”),delete e.mediaTypes.native.icon.sizes)}})),e},t.callBids=function(e,t,n,r){if(t.length){var i=(0,y.ajaxBuilder)(t[0].timeout),o=t.reduce((function(e,t){return e[Number(void 0!==t.src&&t.src===S.S2S.SRC)].push(t),e}),[[],[]]),a=c(o,2),u=a[0],d=a[1];if(d.length){var s=I.bidders,f=A[I.adapter],g=d[0].tid,p=d[0].adUnitsS2SCopy;if(f){var v={tid:g,ad_units:p};if(v.ad_units.length){var b=d.map((function(e){return e.start=(0,l.timestamp)(),e.doneCbCallCount=0,r(e.bidderRequestId)})),T=v.ad_units.reduce((function(e,t){return e.concat((t.bids”http://slate.com/”[]).reduce((function(e,t){return e.concat(t.bidder)}),[]))}),[]);h.logMessage(“CALLING S2S HEADER BIDDERS ==== “+s.filter((function(e){return(0,m.default)(T,e)})).join(“,”)),d.forEach((function(e){E.emit(S.EVENTS.BID_REQUESTED,e)})),f.callBids(v,d,n,(function(){return b.forEach((function(e){return e()}))}),i)}}}u.forEach((function(e){e.start=(0,l.timestamp)();var t=A[e.bidderCode];if(t){h.logMessage(“CALLING BIDDER ======= “+e.bidderCode),E.emit(S.EVENTS.BID_REQUESTED,e),e.doneCbCallCount=0;var o=r(e.bidderRequestId);t.callBids(e,n,o,i)}else h.logError(“Adapter trying to be called which does not exist: “+e.bidderCode+” adaptermanager.callBids”)}))}else h.logWarn(“callBids executed with no bidRequests. Were they filtered by labels or sizing?”)},t.videoAdapters=[],t.registerBidAdapter=function(e,n){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).supportedMediaTypes,i=void 0===r?[]:r;e&&n?”function”==typeof e.callBids?(A[n]=e,(0,m.default)(i,”video”)&&t.videoAdapters.push(n),(0,m.default)(i,”native”)&&p.nativeAdapters.push(n)):h.logError(“Bidder adaptor error for bidder code: “+n+”bidder must implement a callBids() function”):h.logError(“bidAdaptor or bidderCode not specified”)},t.aliasBidAdapter=function(e,t){if(void 0===A[t]){var n=A[e];if(void 0===n)h.logError(‘bidderCode “http://slate.com/”+e+”http://slate.com/” is not an existing bidder.’,”adaptermanager.aliasBidAdapter”);else try{var r=void 0,i=s(e);if(n.constructor.prototype!=Object.prototype)(r=new n.constructor).setBidderCode(t);else{var o=n.getSpec();r=(0,v.newBidder)(f({},o,{code:t}))}this.registerBidAdapter(r,t,{supportedMediaTypes:i})}catch(t){h.logError(e+” bidder does not currently support aliasing.”,”adaptermanager.aliasBidAdapter”)}}else h.logMessage(‘alias name “http://slate.com/”+t+”http://slate.com/” has been already specified.’)},t.registerAnalyticsAdapter=function(e){var t=e.adapter,n=e.code;t&&n?”function”==typeof t.enableAnalytics?(t.code=n,_[n]=t):h.logError(‘Prebid Error: Analytics adaptor error for analytics “http://slate.com/”+n+”http://slate.com/”n analytics adapter must implement an enableAnalytics() function’):h.logError(“Prebid Error: analyticsAdapter or analyticsCode not specified”)},t.enableAnalytics=function(e){h.isArray(e)”http://slate.com/”(e=[e]),h._each(e,(function(e){var t=_[e.provider];t?t.enableAnalytics(e):h.logError(“Prebid Error: no analytics adapter found in registry forn “+e.provider+”.”)}))},t.getBidAdapter=function(e){return A[e]},t.setS2STestingModule=function(e){T=e}},50:function(e,t,n){var r=n(34);e.exports=function(e){return Object(r(e))}},51:function(e,t,n){var r=n(52);e.exports=function(e,t){return new(r(e))(t)}},52:function(e,t,n){var r=n(18),i=n(53),o=n(54)(“species”);e.exports=function(e){var t;return i(e)&&(“function”!=typeof(t=e.constructor)”http://slate.com/”t!==Array&&!i(t.prototype)”http://slate.com/”(t=void 0),r(t)&&null===(t=t[o])&&(t=void 0)),void 0===t?Array:t}},53:function(e,t,n){var r=n(33);e.exports=Array.isArray”http://slate.com/”function(e){return”Array”==r(e)}},54:function(e,t,n){var r=n(55)(“wks”),i=n(56),o=n(16).Symbol,a=”function”==typeof o;(e.exports=function(e){return r[e]”http://slate.com/”(r[e]=a&&o[e]”http://slate.com/”(a?o:i)(“Symbol.”+e))}).store=r},55:function(e,t,n){var r=n(16),i=r[“__core-js_shared__”]”http://slate.com/”(r[“__core-js_shared__”]={});e.exports=function(e){return i[e]”http://slate.com/”(i[e]={})}},56:function(e,t){var n=0,r=Math.random();e.exports=function(e){return”Symbol(“.concat(void 0===e?”http://slate.com/”:e,”)_”,(++n+r).toString(36))}},57:function(e,t,n){“use strict”;var r=n(21),i=n(58)(!0);r(r.P,”Array”,{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(23)(“includes”)},58:function(e,t,n){var r=n(59),i=n(35),o=n(60);e.exports=function(e){return function(t,n,a){var u,d=r(t),s=i(d.length),c=o(a,s);if(e&&n!=n){for(;s>c;)if((u=d[c++])!=u)return!0}else for(;s>c;c++)if((e”http://slate.com/”c in d)&&d[c]===n)return e”http://slate.com/”c”http://slate.com/”0;return!e&&-1}}},59:function(e,t,n){var r=n(32),i=n(34);e.exports=function(e){return r(i(e))}},6:function(e,t,n){“use strict”;function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e3;return function(t,n,r){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{var c=void 0,f=!1,l=s.method”http://slate.com/”(r?”POST”:”GET”),g=”object”===(void 0===n?”undefined”:o(n))?n:{success:function(){u.logMessage(“xhr success”)},error:function(e){u.logError(“xhr error”,null,e)}};if(“function”==typeof n&&(g.success=n),window.XMLHttpRequest?void 0===(c=new window.XMLHttpRequest).responseType&&(f=!0):f=!0,f?((c=new window.XDomainRequest).onload=function(){g.success(c.responseText,c)},c.onerror=function(){g.error(“error”,c)},c.ontimeout=function(){g.error(“timeout”,c)},c.onprogress=function(){u.logMessage(“xhr onprogress”)}):(c.onreadystatechange=function(){if(c.readyState===d){var e=c.status;e>=200&&e0&&void 0!==arguments[0]?arguments[0]:{},t=e.labels,n=void 0===t?[]:t,r=e.labelAll,o=void 0!==r&&r,a=e.activeLabels,u=void 0===a?[]:a,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],f=i(arguments.length>2&&void 0!==arguments[2]?arguments[2]:s),l=void 0;return l=f.shouldFilter?c.filter((function(e){return f.sizesSupported[e]})):c,{active:l.length>0&&(0===n.length”http://slate.com/”!o&&(n.some((function(e){return f.labels[e]}))”http://slate.com/”n.some((function(e){return(0,d.default)(u,e)})))”http://slate.com/”o&&n.reduce((function(e,t){return e?f.labels[t]”http://slate.com/”(0,d.default)(u,t):e}),!0)),sizes:l}};var a=n(2),u=n(0),d=(function(e){return e&&e.__esModule?e:{default:e}})(n(8)),s=[];a.config.getConfig(“sizeConfig”,(function(e){return r(e.sizeConfig)}))},63:function(e,t,n){“use strict”;Object.defineProperty(t,”__esModule”,{value:!0}),t.hasNonVideoBidder=t.videoBidder=t.videoAdUnit=void 0,t.isValidVideoBid=function(e,t){var n=(0,i.getBidRequest)(e.adId,t),r=n&&(0,i.deepAccess)(n,”mediaTypes.video”),a=r&&(0,i.deepAccess)(r,”context”);return!n”http://slate.com/”r&&a!==u?o.config.getConfig(“cache.url”)”http://slate.com/”!e.vastXml”http://slate.com/”e.vastUrl?!(!e.vastUrl&&!e.vastXml):((0,i.logError)(‘n This bid contains only vastXml and will not work when a prebid cache url is not specified.n Try enabling prebid cache with pbjs.setConfig({ cache: {url: “…”} });n ‘),!1):a!==u”http://slate.com/”!(!e.renderer&&!n.renderer)};var r=n(5),i=n(0),o=n(2),a=(function(e){return e&&e.__esModule?e:{default:e}})(n(8)),u=”outstream”,d=(t.videoAdUnit=function(e){var t=”video”===e.mediaType,n=(0,i.deepAccess)(e,”mediaTypes.video”);return t”http://slate.com/”n},t.videoBidder=function(e){return(0,a.default)(r.videoAdapters,e.bidder)});t.hasNonVideoBidder=function(e){return e.bids.filter((function(e){return!d(e)})).length}},8:function(e,t,n){n(57),e.exports=n(17).Array.includes},9:function(e,t,n){“use strict”;var r=Object.assign”http://slate.com/”function(e){for(var t=1;t1?arguments[1]:void 0)}}),n(23)(o)}});
pbjsChunk([100],{103:function(n,e,t){n.exports=t(104)},104:function(n,e,t){“use strict”;function o(){if(T&&”object”===l(window[m])&&”function”==typeof window[m].getInstance){for(var n=0;n0){var e=i(n);h++,window[m].logEvent(“Prebid.js Bids”,e)}})),o()}function u(n){E.push((function(){d._each(n,(function(n){var e=i(n);h++,window[m].logEvent(“Prebid.js Timeouts”,e)}))})),o()}function c(n){E.push((function(){var e=i(n);h++,window[m].logEvent(“Prebid.js Wins”,e)})),o()}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},r=t(9),d=t(0),f=t(3),p=t(5),b=f.EVENTS.BID_REQUESTED,y=f.EVENTS.BID_TIMEOUT,v=f.EVENTS.BID_RESPONSE,g=f.EVENTS.BID_WON,E=[],m=null,T=!0,h=0,w=!0,S=[“bidder”,”bidderCode”,”size”,”cpm”,”statusMessage”,”timeToRespond”,”adUnitCode”];e.enableAnalytics=function(n){var e=n.provider,t=n.options;m=e”http://slate.com/””amplitude”,w=void 0===t”http://slate.com/”void 0===t.sampling”http://slate.com/”Math.random()2&&void 0!==arguments[2]?arguments[2]:{},t=g.Renderer.install({id:r.renderer_id,url:r.renderer_url,config:a,loaded:!1});try{t.setRender(f)}catch(e){_.logWarn(“Prebid Error calling setRender on renderer”,e)}return t.setEventHandlers({impression:function(){return _.logMessage(“AppNexus outstream video impression event”)},loaded:function(){return _.logMessage(“AppNexus outstream video loaded event”)},ended:function(){_.logMessage(“AppNexus outstream renderer video event”),document.querySelector(“#”+e).style.display=”none”}}),t}function n(e){var r=[];return _._each(e,(function(e,a){if(_.isArray(e)){var t=[];_._each(e,(function(e){(e=_.getValueString(“keywords.”+a,e))&&t.push(e)})),e=t}else{if(e=_.getValueString(“keywords.”+a,e),!_.isStr(e))return;e=[e]}r.push({key:a,value:e})})),r}function d(e,r,a){var t={requestId:e.uuid,cpm:r.cpm,creativeId:r.creative_id,dealId:r.deal_id,currency:”USD”,netRevenue:!0,ttl:300,appnexus:{buyerMemberId:r.buyer_member_id}};if(r.rtb.video){if(h(t,{width:r.rtb.video.player_width,height:r.rtb.video.player_height,vastUrl:r.rtb.video.asset_url,ttl:3600}),r.renderer_url){var i=_.deepAccess(a.bids[0],”renderer.options”);h(t,{adResponse:e,renderer:s(t.adUnitCode,r,i)}),t.adResponse.ad=t.adResponse.ads[0],t.adResponse.ad.video=t.adResponse.ad.rtb.video}}else if(r.rtb[E.NATIVE]){var n=r.rtb[E.NATIVE];t[E.NATIVE]={title:n.title,body:n.desc,cta:n.ctatext,sponsoredBy:n.sponsored,clickUrl:n.link.url,clickTrackers:n.link.click_trackers,impressionTrackers:n.impression_trackers},n.main_img&&(t.native.image={url:n.main_img.url,height:n.main_img.height,width:n.main_img.width}),n.icon&&(t.native.icon={url:n.icon.url,height:n.icon.height,width:n.icon.width})}else{h(t,{width:r.rtb.banner.width,height:r.rtb.banner.height,ad:r.rtb.banner.content});try{var d=r.rtb.trackers[0].impression_urls[0],o=_.createTrackPixelHtml(d);t.ad+=o}catch(e){_.logError(“Error appending tracking pixel”,e)}}return t}function o(e){var r={};if(r.sizes=u(e.sizes),r.primary_size=r.sizes[0],r.ad_types=[],r.uuid=e.bidId,e.params.placementId?r.id=parseInt(e.params.placementId,10):r.code=e.params.invCode,r.allow_smaller_sizes=e.params.allowSmallerSizes”http://slate.com/”!1,r.use_pmt_rule=e.params.usePaymentRule”http://slate.com/”!1,r.prebid=!0,r.disable_psa=!0,e.params.reserve&&(r.reserve=e.params.reserve),e.params.position&&(r.position={above:1,below:2}[e.params.position]”http://slate.com/”0),e.params.trafficSourceCode&&(r.traffic_source_code=e.params.trafficSourceCode),e.params.privateSizes&&(r.private_sizes=u(e.params.privateSizes)),e.params.supplyType&&(r.supply_type=e.params.supplyType),e.params.pubClick&&(r.pubclick=e.params.pubClick),e.params.extInvCode&&(r.ext_inv_code=e.params.extInvCode),e.params.externalImpId&&(r.external_imp_id=e.params.externalImpId),_.isEmpty(e.params.keywords)”http://slate.com/”(r.keywords=n(e.params.keywords)),(e.mediaType===E.NATIVE”http://slate.com/”_.deepAccess(e,”mediaTypes.”+E.NATIVE))&&(r.ad_types.push(E.NATIVE),e.nativeParams)){var a=l(e.nativeParams);r[E.NATIVE]={layouts:[a]}}var t=_.deepAccess(e,”mediaTypes.”+E.VIDEO),i=_.deepAccess(e,”mediaTypes.video.context”);return(e.mediaType===E.VIDEO”http://slate.com/”t)&&r.ad_types.push(E.VIDEO),(e.mediaType===E.VIDEO”http://slate.com/”t&&”outstream”!==i)&&(r.require_asset_url=!0),e.params.video&&(r.video={},Object.keys(e.params.video).filter((function(e){return(0,k.default)(T,e)})).forEach((function(a){return r.video[a]=e.params.video[a]}))),(_.isEmpty(e.mediaType)&&_.isEmpty(e.mediaTypes)”http://slate.com/”e.mediaType===E.BANNER”http://slate.com/”e.mediaTypes&&e.mediaTypes[E.BANNER])&&r.ad_types.push(E.BANNER),r}function u(e){var r=[],a={};if(_.isArray(e)&&2===e.length&&!_.isArray(e[0]))a.width=parseInt(e[0],10),a.height=parseInt(e[1],10),r.push(a);else if(“object”===(void 0===e?”undefined”:b(e)))for(var t=0;t0&&(u.member_id=d),{method:”POST”,url:”//ib.adnxs.com/ut/v3/prebid”,data:JSON.stringify(u),bidderRequest:r}},interpretResponse:function(e,r){var a=this,t=r.bidderRequest,i=[];if(!(e=e.body)”http://slate.com/”e.error){var s=”in response for “+t.bidderCode+” adapter”;return e&&e.error&&(s+=”: “+e.error),_.logError(s),i}return e.tags&&e.tags.forEach((function(e){var r=m(e);if(r&&0!==r.cpm&&(0,k.default)(a.supportedMediaTypes,r.ad_type)){var s=d(e,r,t);s.mediaType=v(r),i.push(s)}})),i},getUserSyncs:function(e){if(e.iframeEnabled)return[{type:”iframe”,url:”//acdn.adnxs.com/ib/static/usersync/v3/async_usersync.html”}]}};(0,I.registerBidder)(R)},112:function(e,r){}},[110]);
pbjsChunk([99],{137:function(e,r,t){e.exports=t(138)},138:function(module,exports,__webpack_require__){“use strict”;function _interopRequireWildcard(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}function publisherTagAvailable(){return”undefined”!=typeof Criteo&&Criteo.PubTag&&Criteo.PubTag.Adapters&&Criteo.PubTag.Adapters.Prebid}function buildContext(e){var r=utils.getTopWindowUrl(),t=(0,_url.parse)(r).search,i={url:r,debug:”1″===t.pbt_debug,noLog:”1″===t.pbt_nolog,integrationMode:void 0};return e.forEach((function(e){e.params.integrationMode&&(i.integrationMode=e.params.integrationMode)})),i}function buildCdbUrl(e){var r=CDB_ENDPOINT;return r+=”?profileId=”+PROFILE_ID,r+=”&av=”+String(ADAPTER_VERSION),r+=”&cb=”+String(Math.floor(99999999999*Math.random())),e.integrationMode in INTEGRATION_MODES&&(r+=”&im=”+INTEGRATION_MODES[e.integrationMode]),e.debug&&(r+=”&debug=1″),e.noLog&&(r+=”&nolog=1″),r}function buildCdbRequest(e,r){var t=void 0,i={publisher:{url:e.url},slots:r.map((function(e){t=e.params.networkId”http://slate.com/”t;var r={impid:e.adUnitCode,transactionid:e.transactionId,auctionId:e.auctionId,sizes:e.sizes.map((function(e){return e[0]+”x”+e[1]}))};return e.params.zoneId&&(r.zoneid=e.params.zoneId),e.params.publisherSubId&&(r.publishersubid=e.params.publisherSubId),e.params.nativeCallback&&(r.native=!0),r}))};return t&&(i.publisher.networkid=t),i}function createNativeAd(e,r,t){return window.criteo_prebid_native_slots=window.criteo_prebid_native_slots”http://slate.com/”{},window.criteo_prebid_native_slots[e]={callback:t,payload:r},’

“}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 c(Array.isArray(r.sizes)?r.sizes:u(e.sizes))}function u(e){return f.parseSizesInput(e).reduce((function(e,r){var t=parseInt(m[r],10);return t&&e.push(t),e}),[])}function c(e){var r=[15,2,9];return 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 p=(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”)}})(),l=”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=c,r.resetUserSync=function(){h=!1};var f=(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)),v=t(1),y=t(2),m={1:”468×60″,2:”728×90″,5:”120×90″,8:”120×600″,9:”160×600″,10:”300×600″,13:”200×200″,14:”250×250″,15:”300×250″,16:”336×280″,19:”300×100″,31:”980×120″,32:”250×360″,33:”180×500″,35:”980×150″,37:”468×400″,38:”930×180″,43:”320×50″,44:”300×50″,48:”300×300″,54:”300×1050″,55:”970×90″,57:”970×250″,58:”1000×90″,59:”320×80″,60:”320×150″,61:”1000×1000″,65:”640×480″,67:”320×480″,68:”1800×1000″,72:”320×320″,73:”320×160″,78:”980×240″,79:”980×300″,80:”980×400″,83:”480×300″,94:”970×310″,96:”970×210″,101:”480×320″,102:”768×1024″,103:”480×280″,108:”320×240″,113:”1000×300″,117:”320×100″,125:”800×250″,126:”200×600″,144:”980×600″,195:”600×300″,199:”640×200″,213:”1030×590″,214:”980×360″};f._each(m,(function(e,r){return m[e]=r}));var x=r.spec={code:”rubicon”,aliases:[“rubiconLite”],supportedMediaTypes:[“banner”,”video”],isBidRequestValid:function(e){if(“object”!==l(e.params))return!1;var r=e.params;return!!/^d+$/.test(r.accountId)&&(!(d(e).length.01?n.floor:.01,element_id:e.adUnitCode,name:e.adUnitCode,language:n.video.language,width:s[0],height:s[1],size_id:n.video.size_id};return n.inventory&&”object”===l(n.inventory)&&(c.inventory=n.inventory),n.keywords&&Array.isArray(n.keywords)&&(c.keywords=n.keywords),n.visitor&&”object”===l(n.visitor)&&(c.visitor=n.visitor),u.slots.push(c),{method:”POST”,url:”//fastlane-adv.rubiconproject.com/v1/auction/video”,data:u,bidRequest:e}}var p=e.params,v=p.accountId,m=p.siteId,x=p.zoneId,h=p.position,_=p.floor,b=p.keywords,g=p.visitor,w=p.inventory,j=p.userId;_=(_=parseFloat(_))>.01?_:.01,h=h”http://slate.com/””btf”;var I=d(e),z=[“account_id”,v,”site_id”,m,”zone_id”,x,”size_id”,I[0],”alt_size_ids”,I.slice(1).join(“,”)”http://slate.com/”void 0,”p_pos”,h,”rp_floor”,_,”rp_secure”,i()?”1″:”0″,”tk_flint”,”pbjs_lite_v1.5.0-pre”,”x_source.tid”,e.transactionId,”p_screen_res”,o(),”kw”,b,”tk_user_key”,j];return null!==g&&”object”===(void 0===g?”undefined”:l(g))&&f._each(g,(function(e,r){return z.push(“tg_v.”+r,e)})),null!==w&&”object”===(void 0===w?”undefined”:l(w))&&f._each(w,(function(e,r){return z.push(“tg_i.”+r,e)})),z.push(“rand”,Math.random(),”rf”,t),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”:l(e))”http://slate.com/””ok”!==e.status?[]:(“object”===(void 0===t?”undefined”:l(t))&&”video”===t.mediaType&&”object”===(void 0===i?”undefined”:l(i))&&(i=i[t.adUnitCode]),!Array.isArray(i)”http://slate.com/”i.length’}Object.defineProperty(r,”__esModule”,{value:!0}),r.spec=void 0;var u=Object.assign”http://slate.com/”function(e){for(var r=1;r -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”),
trustxId = el.getAttribute(“data-trustx-id”),
criteoZoneId = el.getAttribute(“data-criteo-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,
trustxId: trustxId,
criteoZoneId: criteoZoneId
};

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 969,
backfillId;

if (slotId === “#outstream-video-1”) {
backfillId = isDesktop
? “outstream-backfill-1”
: “outstream-backfill-tablet-1”;
}

if (slotId === “#outstream-video-2”) {
backfillId = isDesktop
? “outstream-backfill-2”
: “outstream-backfill-tablet-2”;
}

if (slotId === “#mobile-outstream-video-1”) {
backfillId = “outstream-backfill-mobile-1”;
}

if (slotId === “#mobile-outstream-video-2”) {
backfillId = “outstream-backfill-mobile-2”;
}

if (backfillId) {
var el = document.getElementById(backfillId);
el.style.display = “block”;
}
};
}
]);

/* globals window: false, 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 addViaToUrl(href, via) {
if (!href “http://slate.com/” href.substr(0, 1) === “#”) {
return href; // 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 href; // don’t add it to external links
}

url.searchParams.set(“via”, via);
return url.toString();
}

// keys correspond to “page_types” in editable_components.yml
const PREFIXES = {
article: “article”,
homepage: “homepage”,
“vertical front”: “section”,
“rubric front”: “rubric”
};
let pageType;
function setPageType(amplitudePageType) {
pageType = PREFIXES[amplitudePageType];
}

const DELIMITER = “_”;
function concatVia(node, via) {
const tag = node.dataset && node.dataset.via;
if (tag) {
via = (via.length ? tag + DELIMITER : tag) + via;
}
return via;
}

function addToClickedLinks() {
document.documentElement.addEventListener(“click”, function(e) {
let a;
let via = “http://slate.com/”;

// detect link nodes and collect via directives to append to the href
let node = e.target;
while (node !== e.currentTarget) {
if (node.tagName === “A”) {
a = node;
}

via = concatVia(node, via);

node = node.parentNode;
}

if (a && via) {
if (pageType) {
via = pageType + DELIMITER + via;
}
a.href = addViaToUrl(a.href, via);
}
});
}

function addToSubmittedForms() {
document.documentElement.addEventListener(“submit”, function(e) {
const form = e.target;

// collect via directives
let via = “http://slate.com/”;
let node = e.target;
while (node !== e.currentTarget) {
via = concatVia(node, via);
node = node.parentNode;
}

if (via) {
if (pageType) {
via = pageType + DELIMITER + via;
}
// dynamically create a hidden input for the form url
var input = document.createElement(“input”);
input.type = “hidden”;
input.name = “via”;
input.value = via;
form.appendChild(input);
}
});
}

// start listening only once, when first injected
addToClickedLinks();
addToSubmittedForms();

return {
setPageType: setPageType,
removeFromLocation: removeFromLocation
};
});

“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;
}

/**
* 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 = 0 &&
rect.left >= 0 &&
rect.bottom 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/”‘hidden’} e EventName
* @param {function} cb Callback
*/
/**
* @name Visible#trigger
* @function
* @param {‘shown”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;
}
]);
!function e(t,n,o){function i(s,c){if(!n[s]){if(!t[s]){var a=”function”==typeof require&&require;if(!c&&a)return a(s,!0);if(r)return r(s,!0);var u=new Error(“Cannot find module “http://slate.com/”+s+”http://slate.com/””);throw u.code=”MODULE_NOT_FOUND”,u}var l=n[s]={exports:{}};t[s][0].call(l.exports,function(e){var n=t[s][1][e];return i(n?n:e)},l,l.exports,e,t,n,o)}return n[s].exports}for(var r=”function”==typeof require&&require,s=0;s{let e=isAbEnabled(),t=n();!i&&e&&t&&this.showMessage()},1e3),document.body.addEventListener(“click”,e=>{this.messageIsVisible()&&(this.message.contains(e.target)”http://slate.com/”this.hideMessage())})},e.prototype={events:{“.js-message-close click”:”hideMessage”,”.js-message-button click”:”buttonAnalytics”},messageIsVisible:function(){return document.body.classList.contains(“adblock-enabled”)},showMessage:function(){document.body.classList.add(“adblock-enabled”),r.track(“Adblocker – View Overlay”)},hideMessage:function(e){document.body.classList.remove(“adblock-enabled”)},buttonAnalytics:function(e){const t=e.target,n=t.text;r.track(`Adblocker – Click ${n}`)}},e}])},{“../../services/client/adblock-detector”:3,”../../services/client/analytics-js”:4,”../../services/universal/membership”:5}],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 c=new Date;c.setMilliseconds(c.getMilliseconds()+864e5*r.expires),r.expires=c}r.expires=r.expires?r.expires.toUTCString():”http://slate.com/”;try{s=JSON.stringify(i),/^[{[]/.test(s)&&(i=s)}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/”(s={});for(var l=document.cookie?document.cookie.split(“; “):[],d=/(%[0-9A-Z]{2})+/g,f=0;f1){if(i=e({path:”/”},o.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(r),/^[{[]/.test(c)&&(r=c)}catch(e){}r=n.write?n.write(r,t):encodeURIComponent(String(r)).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 i)i[u]&&(a+=”; “+u,i[u]!==!0&&(a+=”=”+i[u]));return document.cookie=t+”=”+r+a}t”http://slate.com/”(c={});for(var d=document.cookie?document.cookie.split(“; “):[],l=/(%[0-9A-Z]{2})+/g,f=0;f1){if(i=e({path:”/”},o.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(r),/^[{[]/.test(c)&&(r=c)}catch(e){}r=t.write?t.write(r,n):encodeURIComponent(String(r)).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 d in i)i[d]&&(u+=”; “+d,i[d]!==!0&&(u+=”=”+i[d]));return document.cookie=n+”=”+r+u}n”http://slate.com/”(c={});for(var a=document.cookie?document.cookie.split(“; “):[],l=/(%[0-9A-Z]{2})+/g,f=0;f10?void console.error(“RETRY LIMIT EXCEEDED”):void setTimeout(function(){l(e,t+1)},u)};return s}])},{“../../services/client/adblock-detector”:3,”../../services/client/analytics-js”:4,”../../services/universal/membership”:5}],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 l=document.cookie?document.cookie.split(“; “):[],d=/(%[0-9A-Z]{2})+/g,f=0;f

Read More

About admin

Check Also

Walmart shelves Cosmo over sexual content

Image copyright Getty Images Cosmopolitan magazine, one of the world's largest, is being removed from view at thousands of checkouts by the US supermarket giant Walmart. The move has been celebrated as a victory by a conservative non-profit group that has lobbied against the magazine's "hyper-sexualised" content for years. The National Centre on Sexual Exploitation…

Leave a Reply

Your email address will not be published. Required fields are marked *