How the C-section went from last resort to overused.

':""},t.getDefinedParams=function(e,t){return t.filter(function(t){return e[t]}).reduce(function(t,n){return d(t,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},n,e[n]))},{})},t.isValidMediaTypes=function(e){var t=["banner","native","video"];return!!Object.keys(e).every(function(e){return(0,v.default)(t,e)})&&(!e.video||!e.video.context||(0,v.default)(["instream","outstream"],e.video.context))},t.getBidderRequest=function(e,t,n){return(0,h.default)(e,function(e){return e.bids.filter(function(e){return e.bidder===t&&e.adUnitCode===n}).length>0})||{start:null,auctionId:null}},t.getUserConfiguredParams=function(e,t,n){return e.filter(function(e){return e.code===t}).map(function(e){return e.bids}).reduce(c,[]).filter(function(e){return e.bidder===n}).map(function(e){return e.params||{}})},t.getOrigin=function(){return window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")},t.getDNT=function(){return"1"===navigator.doNotTrack||"1"===window.doNotTrack||"1"===navigator.msDoNotTrack||"yes"===navigator.doNotTrack},t.isAdUnitCodeMatchingSlot=function(e){return function(t){return x(e,t)}},t.isSlotMatchingAdUnitCode=function(e){return function(t){return x(t,e)}},t.unsupportedBidderMessage=function(e,t){var n=Object.keys(e.mediaTypes||{banner:"banner"}).join(", ");return"\n "+e.code+" is a "+n+" ad unit\n containing bidders that don't support "+n+": "+t+".\n This bidder won't fetch demand.\n "},t.deletePropertyFromObject=function(e,t){var n=d({},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},t.convertCamelToUnderscore=function(e){return e.replace(/(?:^|\.?)([A-Z])/g,function(e,t){return"_"+t.toLowerCase()}).replace(/^_/,"")};var p=n(3),g=r(n(63)),h=r(n(10)),v=r(n(8)),b=n(12),y=n(2),m=!1,_=Object.prototype.toString,w=null;try{w=console.info.bind(window.console)}catch(e){}t.replaceTokenInString=function(e,t,n){return this._each(t,function(t,r){t=void 0===t?"":t;var i=n+r.toUpperCase()+n,o=new RegExp(i,"g");e=e.replace(o,t)}),e};var A,E=(A=0,function(){return++A});t.getUniqueIdentifierStr=i,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]:""},t.tryAppendQueryString=function(e,t,n){return n?e+(t+"=")+encodeURIComponent(n)+"&":e},t.parseQueryStringParameters=function(e){var t="";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?s(e).map(function(t){return t+"="+encodeURIComponent(f(e,t))}).join("&"):""},t.getTopWindowLocation=function(){if(t.inIframe()){var e=void 0;try{e=t.getAncestorOrigins()||t.getTopFrameReferrer()}catch(e){logInfo("could not obtain top window location",e)}if(e)return(0,b.parse)(e,{decodeSearchAsString:!0})}return t.getWindowLocation()},t.getTopFrameReferrer=function(){try{window.top.location.toString();var e="",t=void 0;do{(t=t?t.parent:window).document&&t.document.referrer&&(e=t.document.referrer)}while(t!==window.top);return e}catch(e){return window.document.referrer}},t.getAncestorOrigins=function(){if(window.document.location&&window.document.location.ancestorOrigins&&window.document.location.ancestorOrigins.length>=1)return window.document.location.ancestorOrigins[window.document.location.ancestorOrigins.length-1]},t.getWindowTop=function(){return window.top},t.getWindowSelf=function(){return window.self},t.getWindowLocation=function(){return window.location},t.getTopWindowUrl=function(){var e=void 0;try{e=this.getTopWindowLocation().href}catch(t){e=""}return e},t.getTopWindowReferrer=function(){try{return window.top.document.referrer}catch(e){return document.referrer}},t.logWarn=function(e){S()&&console.warn&&console.warn("WARNING: "+e)},t.logInfo=function(e,t){S()&&u()&&w&&(t&&0!==t.length||(t=""),w("INFO: "+e+(""===t?"":" : params : "),t))},t.logMessage=function(e){S()&&u()&&console.log("MESSAGE: "+e)},t.hasConsoleLogger=u;var S=function(){if(!1===p.config.getConfig("debug")&&!1===m){var e="TRUE"===T(y.DEBUG_MODE).toUpperCase();p.config.setConfig({debug:e}),m=!0}return!!p.config.getConfig("debug")};t.debugTurnedOn=S,t.logError=function(){S()&&window.console&&window.console.error&&console.error.apply(console,arguments)},t.createInvisibleIframe=function(){var e=document.createElement("iframe");return e.id=i(),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="about:blank",e.style.display="none",e};var T=function(e){var t=new RegExp("[\\?&]"+e+"=([^]*)").exec(window.location.search);return null===t?"":decodeURIComponent(t[1].replace(/\+/g," "))};t.getParameterByName=T,t.hasValidBidRequest=function(e,t,n){function r(e,n){n===t[o]&&(i=!0)}for(var i=!1,o=0;o0);for(var n in e)if(hasOwnProperty.call(e,n))return!1;return!0},t.isEmptyStr=function(e){return this.isStr(e)&&(!e||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'},t.createTrackPixelIframeHtml=function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e?(n&&(e=encodeURI(e)),r&&(r='sandbox="'+r+'"'),"'):""},t.getIframeDocument=function(e){if(e){var t=void 0;try{t=e.contentWindow?e.contentWindow.document:e.contentDocument.document?e.contentDocument.document:e.contentDocument}catch(e){this.logError("Cannot get iframe document",e)}return t}},t.getValueString=function(e,t,n){return null==t?n:this.isStr(t)?t:this.isNumber(t)?t.toString():void this.logWarn("Unsuported type for param: "+e+" required type: String")};var x=function(e,t){return e.getAdUnitPath()===t||e.getSlotElementId()===t}},1:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){function t(t,n){if(e.getUserSyncs){var r=e.getUserSyncs({iframeEnabled:d.config.getConfig("userSync.iframeEnabled"),pixelEnabled:d.config.getConfig("userSync.pixelEnabled")},t,n);r&&(Array.isArray(r)||(r=[r]),r.forEach(function(t){p.userSync.registerSync(t.type,e.code,t.url)}))}}function n(t){return!!e.isBidRequestValid(t)||((0,m.logWarn)("Invalid bid sent to bidder "+e.code+": "+JSON.stringify(t)),!1)}return c(new s.default(e.code),{getSpec:function(){return Object.freeze(e)},registerSyncs:t,callBids:function(r,i,u,s){function f(e){var n=(e?e[0]?e:[e]:[]).some(function(e){return"video"===e.mediaType}),i=d.config.getConfig("cache.url");n&&i||u(),b.default.emit(v.default.EVENTS.BIDDER_DONE,r),t(g,r.gdprConsent)}if(Array.isArray(r.bids)){var p={},g=[],h=r.bids.filter(n);if(0!==h.length){var y={};h.forEach(function(e){y[e.bidId]=e,e.adUnitCode||(e.adUnitCode=e.placementCode)});var _=e.buildRequests(h,r);if(_&&0!==_.length){Array.isArray(_)||(_=[_]);var w=(0,m.delayExecution)(f,_.length);_.forEach(function(t){function n(n,u){function a(t){var n,u,a=y[t.requestId];if(a){var s=c(l.default.createBid(v.default.STATUS.GOOD,a),t);n=a.adUnitCode,u=s,p[n]=!0,o(n,u,[r])&&i(n,u)}else(0,m.logWarn)("Bidder "+e.code+" made bid for unknown request ID: "+t.requestId+". Ignoring.")}try{n=JSON.parse(n)}catch(e){}n={body:n,headers:{get:u.getResponseHeader.bind(u)}},g.push(n);var s=void 0;try{s=e.interpretResponse(n,t)}catch(t){return(0,m.logError)("Bidder "+e.code+" failed to interpret the server's response. Continuing without bids",null,t),void w()}s&&(s.forEach?s.forEach(a):a(s)),w(s)}function u(t){(0,m.logError)("Server call for "+e.code+" failed: "+t+". Continuing without bids."),w()}switch(t.method){case"GET":s(""+t.url+function(e){return e?"?"+("object"===(void 0===e?"undefined":a(e))?(0,m.parseQueryStringParameters)(e):e):""}(t.data),{success:n,error:u},void 0,c({method:"GET",withCredentials:!0},t.options));break;case"POST":s(t.url,{success:n,error:u},"string"==typeof t.data?t.data:JSON.stringify(t.data),c({method:"POST",contentType:"text/plain",withCredentials:!0},t.options));break;default:(0,m.logWarn)("Skipping invalid request from "+e.code+". Request type "+t.type+" must be GET or POST"),w()}})}else f()}else f()}}})}function o(e,t,n){function r(e){return"Invalid bid from "+t.bidderCode+". Ignoring bid: "+e}return e?t?(i=Object.keys(t),_.every(function(e){return(0,y.default)(i,e)})?"native"!==t.mediaType||(0,g.nativeBidIsValid)(t,n)?"video"!==t.mediaType||(0,h.isValidVideoBid)(t,n)?!("banner"===t.mediaType&&!function(e,t,n){if((t.width||0===t.width)&&(t.height||0===t.height))return!0;var r=(0,m.getBidderRequest)(n,t.bidderCode,e),i=r&&r.bids&&r.bids[0]&&r.bids[0].sizes,o=(0,m.parseSizesInput)(i);if(1===o.length){var a=o[0].split("x"),c=u(a,2),s=c[0],f=c[1];return t.width=s,t.height=f,!0}return!1}(e,t,n)&&((0,m.logError)(r("Banner bids require a width and height")),1)):((0,m.logError)(r("Video bid does not have required vastUrl or renderer property")),!1):((0,m.logError)(r("Native bid missing some required properties.")),!1):((0,m.logError)(r("Bidder "+t.bidderCode+" is missing required params. Check http://prebid.org/dev-docs/bidder-adapter-1.html for list of params.")),!1)):((0,m.logWarn)("Some adapter tried to add an undefined bid for "+e+"."),!1):((0,m.logWarn)("No adUnitCode was supplied to addBidResponse."),!1);var i}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var u,a=e[Symbol.iterator]();!(r=(u=a.next()).done)&&(n.push(u.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&a.return&&a.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a="function"==typeof Symbol&&"symbol"==_typeof(Symbol.iterator)?function(e){return void 0===e?"undefined":_typeof(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":_typeof(e)},c=Object.assign||function(e){for(var t=1;t=f.syncsPerBidder?u.logWarn('Number of user syncs exceeded for "'+t+'"'):f.enabledBidders&&f.enabledBidders.length&&f.enabledBidders.indexOf(t)0&&void 0!==arguments[0]?arguments[0]:0;if(e)return setTimeout(t,Number(e));t()},n.triggerUserSyncs=function(){f.enableOverride&&n.syncUsers()},n}Object.defineProperty(t,"__esModule",{value:!0}),t.userSync=void 0;var i=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var u,a=e[Symbol.iterator]();!(r=(u=a.next()).done)&&(n.push(u.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&a.return&&a.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=Object.assign||function(e){for(var t=1;t0;)try{this.cmd.shift().call()}catch(e){o.logError("Error processing Renderer command: ",e)}}},16:function(e,t,n){var r=n(20),i=n(14),o=n(28),u=n(44),a=n(51),c="prototype",s=function e(t,n,s){var f,d,l,p=t&e.F,g=t&e.G,h=t&e.S,v=t&e.P,b=t&e.B,y=t&e.W,m=g?i:i[n]||(i[n]={}),_=m[c],w=g?r:h?r[n]:(r[n]||{})[c];for(f in g&&(s=n),s)(d=!p&&w&&void 0!==w[f])&&a(m,f)||(l=d?w[f]:s[f],m[f]=g&&"function"!=typeof w[f]?s[f]:b&&d?o(l,r):y&&w[f]==l?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[c]=e[c],t}(l):v&&"function"==typeof l?o(Function.call,l):l,v&&((m.virtual||(m.virtual={}))[f]=l,t&e.R&&_&&!_[f]&&u(_,f,l)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},166:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){t.timeToRespond>e.getTimeout()+b.config.getConfig("timeoutBuffer")&&e.executeCallback(!0)}function o(e,t){T.emit(I.EVENTS.BID_RESPONSE,t),e.addBidReceived(t),i(e,t)}function u(){var e=b.config.getConfig("priceGranularity"),t=pbjs.bidderSettings;return t[I.JSON_MAPPING.BD_SETTING_STANDARD]||(t[I.JSON_MAPPING.BD_SETTING_STANDARD]={}),t[I.JSON_MAPPING.BD_SETTING_STANDARD][I.JSON_MAPPING.ADSERVER_TARGETING]||(t[I.JSON_MAPPING.BD_SETTING_STANDARD][I.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===I.GRANULARITY_OPTIONS.AUTO?t.pbAg:e===I.GRANULARITY_OPTIONS.DENSE?t.pbDg:e===I.GRANULARITY_OPTIONS.LOW?t.pbLg:e===I.GRANULARITY_OPTIONS.MEDIUM?t.pbMg:e===I.GRANULARITY_OPTIONS.HIGH?t.pbHg:e===I.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[I.JSON_MAPPING.BD_SETTING_STANDARD]}function a(e,t){if(!t)return{};var n={},r=pbjs.bidderSettings;return r&&(c(n,u(),t),e&&r[e]&&r[e][I.JSON_MAPPING.ADSERVER_TARGETING]&&(c(n,r[e],t),t.sendStandardTargeting=r[e].sendStandardTargeting)),t.native&&(n=d({},n,(0,g.getNativeTargeting)(t))),n}function c(e,t,n){var r=t[I.JSON_MAPPING.ADSERVER_TARGETING];return n.size=n.getSize(),E._each(r,function(r){var i=r.key,o=r.val;if(e[i]&&E.logWarn("The key: "+i+" is getting ovewritten"),E.isFn(o))try{o=o(n)}catch(e){E.logError("bidmanager","ERROR",e)}(void 0===t.suppressEmptyKeys||!0!==t.suppressEmptyKeys)&&"hb_deal"!==i||!E.isEmptyStr(o)&&null!=o?e[i]=o:E.logInfo("suppressing empty key '"+i+"' from adserver targeting")}),e}function s(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[I.JSON_MAPPING.BD_SETTING_STANDARD]&&"function"==typeof pbjs.bidderSettings[I.JSON_MAPPING.BD_SETTING_STANDARD].bidCpmAdjustment&&(r=pbjs.bidderSettings[I.JSON_MAPPING.BD_SETTING_STANDARD].bidCpmAdjustment),r))try{n=r(e.cpm,d({},e))}catch(e){E.logError("Error during bid adjustment","bidmanager.js",e)}n>=0&&(e.cpm=n)}function f(e,t){return e[t.adUnitCode]||(e[t.adUnitCode]={bids:[]}),e[t.adUnitCode].bids.push(t),e}Object.defineProperty(t,"__esModule",{value:!0}),t.addBidResponse=t.AUCTION_COMPLETED=t.AUCTION_IN_PROGRESS=t.AUCTION_STARTED=void 0;var d=Object.assign||function(e){for(var t=1;t=1})&&(E.logInfo("Bids Received for Auction with id: "+v,g),y=O,t(!1,!0))}var r=e.adUnits,i=e.adUnitCodes,o=e.callback,u=e.cbTimeout,a=e.labels,c=r,s=a,d=i,p=[],g=[],h=void 0,v=E.generateUUID(),y=void 0,m=o,R=void 0,B=u,k=[];return{addBidReceived:function(e){g=g.concat(e)},executeCallback:t,callBids:function(){e=t.bind(null,!0),r=setTimeout(e,B),R=r,y=x;var e,r,i={timestamp:h=Date.now(),auctionId:v,timeout:B};T.emit(I.EVENTS.AUCTION_INIT,i);var o=S.makeBidRequests(c,h,v,B,s);E.logInfo("Bids Requested for Auction with id: "+v,o),o.forEach(function(e){var t;t=e,p=p.concat(t)}),y=j,S.callBids(c,o,C.bind(this),function(e){var t=e;return(0,l.delayExecution)(function(){(0,_.default)(p,function(e){return t===e.bidderRequestId}).doneCbCallCount+=1,n()},1)}.bind(this))},bidsBackAll:n,addWinningBid:function(e){k=k.concat(e)},getWinningBids:function(){return k},getTimeout:function(){return B},getAuctionId:function(){return v},getAuctionStatus:function(){return y},getAdUnits:function(){return c},getAdUnitCodes:function(){return d},getBidRequests:function(){return p},getBidsReceived:function(){return g}}},t.getStandardBidderSettings=u,t.getKeyValueTargetingPairs=a,t.adjustBids=s;var l=n(0),p=n(27),g=n(18),h=n(167),v=n(15),b=n(3),y=n(13),m=n(21),_=r(n(10)),w=r(n(8)),A=y.userSync.syncUsers,E=n(0),S=n(7),T=n(9),I=n(2),x=t.AUCTION_STARTED="started",j=t.AUCTION_IN_PROGRESS="inProgress",O=t.AUCTION_COMPLETED="completed";T.on(I.EVENTS.BID_ADJUSTMENT,function(e){s(e)});var C=t.addBidResponse=(0,m.createHook)("asyncSeries",function(e,t){var n,r,u,c,s=this.getBidRequests(),f=this.getAuctionId(),g=(0,l.getBidderRequest)(s,t.bidderCode,e),y=function(e){var t=e.adUnitCode,n=e.bid,r=e.bidRequest,i=e.auctionId,o=r.start,u=d({},n,{auctionId:i,responseTimestamp:(0,l.timestamp)(),requestTimestamp:o,cpm:parseFloat(n.cpm)||0,bidder:n.bidderCode,adUnitCode:t});u.timeToRespond=u.responseTimestamp-u.requestTimestamp,T.emit(I.EVENTS.BID_ADJUSTMENT,u);var c=r.bids&&r.bids[0]&&r.bids[0].renderer;c&&c.url&&(u.renderer=v.Renderer.install({url:c.url}),u.renderer.setRender(c.render));var s,f=(0,p.getPriceBucketString)(u.cpm,b.config.getConfig("customPriceBucket"),b.config.getConfig("currency.granularityMultiplier"));return u.pbLg=f.low,u.pbMg=f.med,u.pbHg=f.high,u.pbAg=f.auto,u.pbDg=f.dense,u.pbCg=f.custom,u.bidderCode&&(u.cpm>0||u.dealId)&&(s=a(u.bidderCode,u)),u.adserverTargeting=d(u.adserverTargeting||{},s),u}({adUnitCode:e,bid:t,bidRequest:g,auctionId:f});"video"===y.mediaType?(n=this,r=y,u=g,c=!0,b.config.getConfig("cache.url")&&(r.videoCacheKey?r.vastUrl||(E.logError("videoCacheKey specified but not required vastUrl for video bid"),c=!1):(c=!1,(0,h.store)([r],function(e,t){e?(E.logWarn("Failed to save to the video cache: "+e+". Video bid must be discarded."),i(n,r)):(r.videoCacheKey=t[0].uuid,r.vastUrl||(r.vastUrl=(0,h.getCacheUrl)(r.videoCacheKey)),u.doneCbCallCount+=1,o(n,r),n.bidsBackAll())}))),c&&o(n,r)):o(this,y)},"addBidResponse")},167:function(e,t,n){"use strict";function r(e){var t,n;return{type:"xml",value:e.vastXml?e.vastXml:(t=e.vastUrl,n=e.vastImpUrl,'\n \n \n prebid.org wrapper\n \n "+(n?"":"")+"\n \n \n \n ")}}Object.defineProperty(t,"__esModule",{value:!0}),t.store=function(e,t){var n={puts:e.map(r)};(0,i.ajax)(o.config.getConfig("cache.url"),(u=t,{success:function(e){var t=void 0;try{t=JSON.parse(e).responses}catch(e){return void u(e,[])}t?u(null,t):u(new Error("The cache server didn't respond with a responses property."),[])},error:function(e,t){u(new Error("Error storing video ad in the cache: "+e+": "+JSON.stringify(t)),[])}}),JSON.stringify(n),{contentType:"text/plain",withCredentials:!0});var u},t.getCacheUrl=function(e){return o.config.getConfig("cache.url")+"?uuid="+e};var i=n(6),o=n(3)},17:function(e,t){e.exports=function(e){return"object"==(void 0===e?"undefined":_typeof(e))?null!==e:"function"==typeof e}},18:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasNonNativeBidder=t.nativeBidder=t.nativeAdUnit=t.NATIVE_TARGETING_KEYS=t.NATIVE_KEYS=t.nativeAdapters=void 0;var r="function"==typeof Symbol&&"symbol"==_typeof(Symbol.iterator)?function(e){return void 0===e?"undefined":_typeof(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":_typeof(e)};t.processNativeAdUnitParams=function(e){return e&&e.type&&function(e){return!(!e||!(0,a.default)(Object.keys(f),e))||((0,o.logError)(e+" nativeParam is not supported"),!1)}(e.type)?f[e.type]:e},t.nativeBidIsValid=function(e,t){var n=(0,o.getBidRequest)(e.adId,t);if(!n)return!1;if(!(0,o.deepAccess)(e,"native.clickUrl"))return!1;if((0,o.deepAccess)(e,"native.image")&&(!(0,o.deepAccess)(e,"native.image.height")||!(0,o.deepAccess)(e,"native.image.width")))return!1;if((0,o.deepAccess)(e,"native.icon")&&(!(0,o.deepAccess)(e,"native.icon.height")||!(0,o.deepAccess)(e,"native.icon.width")))return!1;var r=n.nativeParams;if(!r)return!0;var i=Object.keys(r).filter(function(e){return r[e].required}),u=Object.keys(e.native).filter(function(t){return e.native[t]});return i.every(function(e){return(0,a.default)(u,e)})},t.fireNativeTrackers=function(e,t){var n=void 0;"click"===e.action?n=t.native&&t.native.clickTrackers:(n=t.native&&t.native.impressionTrackers,t.native&&t.native.javascriptTrackers&&(0,o.insertHtmlIntoIframe)(t.native.javascriptTrackers)),(n||[]).forEach(o.triggerPixel)},t.getNativeTargeting=function(e){var t={};return Object.keys(e.native).forEach(function(n){var i=s[n],o=e.native[n];"object"===(void 0===o?"undefined":r(o))&&o.url&&(o=o.url),i&&(t[i]=o)}),t};var i,o=n(0),u=n(8),a=(i=u)&&i.__esModule?i:{default:i},c=t.nativeAdapters=[],s=t.NATIVE_KEYS={title:"hb_native_title",body:"hb_native_body",sponsoredBy:"hb_native_brand",image:"hb_native_image",icon:"hb_native_icon",clickUrl:"hb_native_linkurl",cta:"hb_native_cta"},f=(t.NATIVE_TARGETING_KEYS=Object.keys(s).map(function(e){return s[e]}),{image:{image:{required:!0},title:{required:!0},sponsoredBy:{required:!0},clickUrl:{required:!0},body:{required:!1},icon:{required:!1}}});t.nativeAdUnit=function(e){var t="native"===e.mediaType,n=(0,o.deepAccess)(e,"mediaTypes.native");return t||n};var d=t.nativeBidder=function(e){return(0,a.default)(c,e.bidder)};t.hasNonNativeBidder=function(e){return e.bids.filter(function(e){return!d(e)}).length}},19:function(e,t,n){"use strict";var r=n(0);t.createBid=function(e,t){return new function(e,t){var n=t&&t.bidId||r.getUniqueIdentifierStr(),i=t&&t.src||"client",o=e||0;this.bidderCode=t&&t.bidder||"",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=i,this.getStatusCode=function(){return o},this.getSize=function(){return this.width+"x"+this.height}}(e,t)}},2: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.10.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",BIDDER_DONE:"bidderDone",SET_TARGETING:"setTargeting",REQUEST_BIDS:"requestBids",ADD_AD_UNITS:"addAdUnits",AD_RENDER_FAILED:"adRenderFailed"},AD_RENDER_FAILED_REASON:{PREVENT_WRITING_ON_MAIN_DOCUMENT:"preventWritingOnMainDocuemnt",NO_AD:"noAd",EXCEPTION:"exception",CANNOT_FIND_AD:"cannotFindAd",MISSING_DOC_OR_ADID:"missingDocOrAdid"},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"}}},20: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)},21:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:10;"function"==typeof e&&(u.push({fn:e,priority:t}),u.sort(function(e,t){return t.priority-e.priority}))},removeHook:function(e){u=u.filter(function(n){return n.fn===t||n.fn!==e})}};return"string"==typeof n&&(o[n]=c),r(function(){for(var n=arguments.length,r=Array(n),i=0;it.max?e:t},{max:0}),h=(0,a.default)(t.buckets,function(t){if(e>g.max*n){var i=t.precision;void 0===i&&(i=s),r=(t.max*n).toFixed(i)}else if(e=t.min*n)return t});return h&&(o=e,c=n,f=void 0!==(u=h).precision?u.precision:s,d=u.increment*c,l=u.min*c,p=Math.floor((o-l)/d)*d+l,r=(p=Number(p.toFixed(10))).toFixed(f)),r}function i(e){if(c.isEmpty(e)||!e.buckets||!Array.isArray(e.buckets))return!1;var t=!0;return e.buckets.forEach(function(e){void 0!==e.min&&e.max&&e.increment||(t=!1)}),t}Object.defineProperty(t,"__esModule",{value:!0}),t.isValidPriceConfig=t.getPriceBucketString=void 0;var o,u=n(10),a=(o=u)&&o.__esModule?o:{default:o},c=n(0),s=2,f={buckets:[{min:0,max:5,increment:.5}]},d={buckets:[{min:0,max:20,increment:.1}]},l={buckets:[{min:0,max:20,increment:.01}]},p={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=""),{low:""===i?"":r(e,f,n),med:""===i?"":r(e,d,n),high:""===i?"":r(e,l,n),auto:""===i?"":r(e,g,n),dense:""===i?"":r(e,p,n),custom:""===i?"":r(e,t,n)}},t.isValidPriceConfig=i},28:function(e,t,n){var r=n(43);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)}}},29:function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},3:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(){function e(){function e(e){return(0,c.default)(Object.keys(w),function(t){return e===w[t]})}n={},r={_debug:l,get debug(){return this._debug},set debug(e){this._debug=e},_bidderTimeout:p,get bidderTimeout(){return this._bidderTimeout},set bidderTimeout(e){this._bidderTimeout=e},_publisherDomain:g,get publisherDomain(){return this._publisherDomain},set publisherDomain(e){this._publisherDomain=e},_cookieSyncDelay:h,get cookieSyncDelay(){return pbjs.cookieSyncDelay||this._cookieSyncDelay},set cookieSyncDelay(e){this._cookieSyncDelay=e},_priceGranularity:w.MEDIUM,set priceGranularity(t){(function(t){if(!t)return d.logError("Prebid Error: no value passed to `setPriceGranularity()`"),!1;if("string"==typeof t)e(t)||d.logWarn("Prebid Warning: setPriceGranularity was called with invalid setting, using `medium` as default.");else if("object"===(void 0===t?"undefined":u(t))&&!(0,a.isValidPriceConfig)(t))return d.logError("Invalid custom price value passed to `setPriceGranularity()`"),!1;return!0})(t)&&("string"==typeof t?this._priceGranularity=e(t)?t:w.MEDIUM:"object"===(void 0===t?"undefined":u(t))&&(this._customPriceBucket=t,this._priceGranularity=w.CUSTOM,d.logMessage("Using custom price granularity")))},get priceGranularity(){return this._priceGranularity},_customPriceBucket:{},get customPriceBucket(){return this._customPriceBucket},_sendAllBids:v,get enableSendAllBids(){return this._sendAllBids},set enableSendAllBids(e){this._sendAllBids=e},_bidderSequence:_,get bidderSequence(){return this._bidderSequence},set bidderSequence(e){m[e]?this._bidderSequence=e:d.logWarn("Invalid order: "+e+". Bidder Sequence was not set.")},_timoutBuffer:b,get timeoutBuffer(){return this._timoutBuffer},set timeoutBuffer(e){this._timoutBuffer=e}}}var t=[],n=void 0,r=void 0,i=(0,f.createHook)("asyncSeries",function(e){if("object"===(void 0===e?"undefined":u(e))){var i,a,c=Object.keys(e),f={};c.forEach(function(t){var i=e[t];"object"===u(n[t])&&"object"===(void 0===i?"undefined":u(i))&&(i=o({},n[t],i)),f[t]=r[t]=i}),i=f,a=Object.keys(i),t.filter(function(e){return(0,s.default)(a,e.topic)}).forEach(function(e){var t,n,r;e.callback((t={},n=e.topic,r=i[e.topic],n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t))}),t.filter(function(e){return e.topic===A}).forEach(function(e){return e.callback(i)})}else d.logError("setConfig options must be an object")});return e(),{getConfig:function(){if(arguments.lengthw;w++)if((l||w in y)&&(v=m(h=y[w],w,b),e))if(n)A[w]=v;else if(v)switch(e){case 3:return!0;case 5:return h;case 6:return w;case 2:A.push(h)}else if(f)return!1;return d?-1:s||f?f:A}}},31:function(e,t,n){var r=n(32);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},32:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},33:function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},34:function(e,t,n){var r=n(35),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},35:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},36:function(e,t,n){var r=n(32);e.exports=Array.isArray||function(e){return"Array"==r(e)}},37:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getGlobal=function(){return window.pbjs},window.pbjs=window.pbjs||{},window.pbjs.cmd=window.pbjs.cmd||[],window.pbjs.que=window.pbjs.que||[]},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(t){return"string"==typeof t?[t]:p.isArray(t)?t:e.getAdUnitCodes()||[]}function i(){return e.getBidsReceived().filter(m).filter(t.isBidExpired).filter(_)}function u(){return e.getStandardBidderAdServerTargeting().map(function(e){return e.key}).concat(g.TARGETING_KEYS).filter(a.uniques)}function f(e,t,n,r){return Object.keys(t.adserverTargeting).filter(d()).forEach(function(n){var r,i;e.length&&e.filter((i=n,function(e){return e.adUnitCode===t.adUnitCode&&e.adserverTargeting[i]})).forEach((r=n,function(e){p.isArray(e.adserverTargeting[r])||(e.adserverTargeting[r]=[e.adserverTargeting[r]]),e.adserverTargeting[r]=e.adserverTargeting[r].concat(t.adserverTargeting[r]).filter(a.uniques),delete t.adserverTargeting[r]}))}),e.push(t),e}function d(){var e=u();return function(t){return-1===e.indexOf(t)}}function b(e){return r({},e.adUnitCode,Object.keys(e.adserverTargeting).filter(d()).map(function(t){return r({},t.substring(0,y),[e.adserverTargeting[t]])}))}function w(e){return{adUnitCode:e,cpm:0,adserverTargeting:{},timeToRespond:0}}var A={};return A.resetPresetTargeting=function(t){if((0,a.isGptPubadsDefined)()){var r=n(t),i=e.getAdUnits().filter(function(e){return(0,l.default)(r,e.code)});window.googletag.pubads().getSlots().forEach(function(e){h.forEach(function(t){i.forEach(function(n){n.code!==e.getAdUnitPath()&&n.code!==e.getSlotElementId()||e.setTargeting(t,null)})})})}},A.getAllTargeting=function(e){var t,d,m,_,E,S,T,I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i(),x=n(e),j=function(e,t){var n=A.getWinningBids(e,t);n.forEach(function(e){e.status=v});var i=u();return n=n.map(function(e){return r({},e.adUnitCode,Object.keys(e.adserverTargeting).filter(function(t){return void 0===e.sendStandardTargeting||e.sendStandardTargeting||-1===i.indexOf(t)}).map(function(t){return r({},"hb_deal"===t?(t+"_"+e.bidderCode).substring(0,y):t.substring(0,y),[e.adserverTargeting[t]])}))})}(x,I).concat((S=x,T=I,T.filter(function(e){return(0,l.default)(S,e.adUnitCode)}).map(function(e){return o({},e)}).reduce(f,[]).map(b).filter(function(e){return e}))).concat(c.config.getConfig("enableSendAllBids")?(t=x,d=I,m=g.TARGETING_KEYS.concat(s.NATIVE_TARGETING_KEYS),_=[],E=(0,a.groupBy)(d,"adUnitCode"),Object.keys(E).forEach(function(e){var t=(0,a.groupBy)(E[e],"bidderCode");Object.keys(t).forEach(function(e){return _.push(t[e].reduce(a.getHighestCpm,w()))})}),_.map(function(e){if(e.adserverTargeting&&t&&(p.isArray(t)&&(0,l.default)(t,e.adUnitCode)||"string"==typeof t&&e.adUnitCode===t))return r({},e.adUnitCode,(n=e,m.filter(function(t){return void 0!==e.adserverTargeting[t]}).map(function(e){return r({},(e+"_"+n.bidderCode).substring(0,y),[n.adserverTargeting[e]])})));var n}).filter(function(e){return e})):[]);return j.map(function(e){Object.keys(e).map(function(t){e[t].map(function(e){-1===h.indexOf(Object.keys(e)[0])&&(h=Object.keys(e).concat(h))})})}),j=j.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},{})},A.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 p.logMessage("Attempting to set key value for slot: "+t.getSlotElementId()+" key: "+r+" value: "+e),e}).forEach(function(e){t.setTargeting(r,e)})})})})},A.getWinningBids=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i(),r=n(e);return t.filter(function(e){return(0,l.default)(r,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,w(e))})},A.setTargetingForAst=function(){var e=A.getAllTargeting();Object.keys(e).forEach(function(t){return Object.keys(e[t]).forEach(function(n){if(p.logMessage("Attempting to set targeting for targetId: "+t+" key: "+n+" value: "+e[t][n]),p.isStr(e[t][n])||p.isArray(e[t][n])){var r={};r[n.toUpperCase()]=e[t][n],window.apntag.setKeywords(t,r)}})})},A.isApntagDefined=function(){if(window.apntag&&p.isFn(window.apntag.setKeywords))return!0},A}Object.defineProperty(t,"__esModule",{value:!0}),t.targeting=t.getOldestBid=t.isBidExpired=t.RENDERED=t.BID_TARGETING_SET=void 0;var o=Object.assign||function(e){for(var t=1;t(0,a.timestamp)()},function(e){return e&&(e.status&&!(0,l.default)([v,b],e.status)||!e.status)}),_=t.getOldestBid=function(e,t,n){var r=!0;return n.forEach(function(n,i){t!==i&&e.bidder===n.bidder&&e.adUnitCode===n.adUnitCode&&e.responseTimestamp>n.responseTimestamp&&(r=!1)}),r};t.targeting=i(f.auctionManager)},39:function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==("undefined"==typeof window?"undefined":_typeof(window))&&(n=window)}e.exports=n},4:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NATIVE="native",t.VIDEO="video",t.BANNER="banner"},42:function(e,t,n){"use strict";var r=n(16),i=n(30)(5),o="find",u=!0;o in[]&&Array(1)[o](function(){u=!1}),r(r.P+r.F*u,"Array",{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(24)(o)},43:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},44:function(e,t,n){var r=n(45),i=n(50);e.exports=n(23)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},45:function(e,t,n){var r=n(46),i=n(47),o=n(49),u=Object.defineProperty;t.f=n(23)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},459:function(e,t,n){e.exports=n(460)},46:function(e,t,n){var r=n(17);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},460:function(e,t,n){"use strict";function r(e,t,n){e.defaultView&&e.defaultView.frameElement&&(e.defaultView.frameElement.width=t,e.defaultView.frameElement.height=n)}function i(e,t,n){var r={};r.reason=e,r.message=t,n&&(r.bid=n),A.logError(t),T.emit(B,r)}function o(e){e.forEach(function(e){if(void 0===e.called)try{e.call(),e.called=!0}catch(e){A.logError("Error processing command :","prebid.js",e)}})}var u,a="function"==typeof Symbol&&"symbol"==_typeof(Symbol.iterator)?function(e){return void 0===e?"undefined":_typeof(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":_typeof(e)},c=Object.assign||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;T.emit(C);var u=n||g.config.getConfig("bidderTimeout");if(r=r||_.adUnits,A.logInfo("Invoking pbjs.requestBids",arguments),i&&i.length?r=r.filter(function(e){return(0,m.default)(i,e.code)}):i=r&&r.map(function(e){return e.code}),r.forEach(function(e){var t=Object.keys(e.mediaTypes||{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(),u=o&&o.supportedMediaTypes||["banner"];t.some(function(e){return(0,m.default)(u,e)})||(A.logWarn(A.unsupportedBidderMessage(e,n)),e.bids=e.bids.filter(function(e){return e.bidder!==n}))})}),r&&0!==r.length){var a=h.auctionManager.createAuction({adUnits:r,adUnitCodes:i,callback:t,cbTimeout:u,labels:o});return a.callBids(),a}if(A.logMessage("No adUnits configured. No bids requested."),"function"==typeof t)try{t()}catch(e){A.logError("Error executing bidsBackHandler",null,e)}}),_.addAdUnits=function(e){A.logInfo("Invoking pbjs.addAdUnits",arguments),A.isArray(e)?(e.forEach(function(e){return e.transactionId=A.generateUUID()}),_.adUnits.push.apply(_.adUnits,e)):"object"===(void 0===e?"undefined":a(e))&&(e.transactionId=A.generateUUID(),_.adUnits.push(e)),T.emit(j)},_.onEvent=function(e,t,n){A.logInfo("Invoking pbjs.onEvent",arguments),A.isFn(t)?!n||q[e].call(null,n)?T.on(e,t,n):A.logError('The id provided is not valid for event "'+e+'" and no handler was set.'):A.logError('The event handler provided is not a function and was not set on event "'+e+'".')},_.offEvent=function(e,t,n){A.logInfo("Invoking pbjs.offEvent",arguments),n&&!q[e].call(null,n)||T.off(e,t,n)},_.registerBidAdapter=function(e,t){A.logInfo("Invoking pbjs.registerBidAdapter",arguments);try{E.registerBidAdapter(e(),t)}catch(e){A.logError("Error registering bidder adapter : "+e.message)}},_.registerAnalyticsAdapter=function(e){A.logInfo("Invoking pbjs.registerAnalyticsAdapter",arguments);try{E.registerAnalyticsAdapter(e)}catch(e){A.logError("Error registering analytics adapter : "+e.message)}},_.createBid=function(e){return A.logInfo("Invoking pbjs.createBid",arguments),S.createBid(e)},_.loadScript=function(e,t,n){A.logInfo("Invoking pbjs.loadScript",arguments),(0,p.loadScript)(e,t,n)},_.enableAnalytics=function(e){e&&!A.isEmpty(e)?(A.logInfo("Invoking pbjs.enableAnalytics for: ",e),E.enableAnalytics(e)):A.logError("pbjs.enableAnalytics should be called with option {}")},_.aliasBidder=function(e,t){A.logInfo("Invoking pbjs.aliasBidder",arguments),e&&t?E.aliasBidAdapter(e,t):A.logError("bidderCode and alias must be passed as arguments","pbjs.aliasBidder")},_.getAllWinningBids=function(){return h.auctionManager.getAllWinningBids().map(f.removeRequestId)},_.getAllPrebidWinningBids=function(){return h.auctionManager.getBidsReceived().filter(function(e){return e.status===v.BID_TARGETING_SET}).map(f.removeRequestId)},_.getHighestCpmBids=function(e){var t=h.auctionManager.getBidsReceived().filter(v.getOldestBid);return v.targeting.getWinningBids(e,t).map(f.removeRequestId)},_.getConfig=g.config.getConfig,_.setConfig=g.config.setConfig,_.que.push(function(){return(0,d.listenMessagesFromCreative)()}),_.cmd.push=function(e){if("function"==typeof e)try{e.call()}catch(e){A.logError("Error processing command :",e.message,e.stack)}else A.logError("Commands written into pbjs.cmd.push must be wrapped in a function")},_.que.push=_.cmd.push,_.processQueue=function(){o(_.que),o(_.cmd)}},461:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t,n,r,i,a,l,p,g,h,v,b,y,m,_=e.message?"message":"data",w={};try{w=JSON.parse(e[_])}catch(e){return}if(w.adId){var A=(0,f.default)(s.auctionManager.getBidsReceived(),function(e){return e.adId===w.adId});"Prebid Request"===w.message&&(t=A,n=w.adServerDomain,r=e.source,i=t.adId,a=t.ad,l=t.adUrl,p=t.width,g=t.height,i&&(v=(h=t).adUnitCode,b=h.width,y=h.height,(m=document.getElementById((0,f.default)(window.googletag.pubads().getSlots().filter((0,c.isSlotMatchingAdUnitCode)(v)),function(e){return e}).getSlotElementId()).querySelector("iframe")).width=""+b,m.height=""+y,r.postMessage(JSON.stringify({message:"Prebid Response",ad:a,adUrl:l,adId:i,width:p,height:g}),n)),s.auctionManager.addWinningBid(A),o.default.emit(d,A)),"Prebid Native"===w.message&&((0,u.fireNativeTrackers)(w,A),s.auctionManager.addWinningBid(A),o.default.emit(d,A))}}Object.defineProperty(t,"__esModule",{value:!0}),t.listenMessagesFromCreative=function(){addEventListener("message",i,!1)};var o=r(n(9)),u=n(18),a=n(2),c=n(0),s=n(26),f=r(n(10)),d=a.EVENTS.BID_WON},47:function(e,t,n){e.exports=!n(23)&&!n(29)(function(){return 7!=Object.defineProperty(n(48)("div"),"a",{get:function(){return 7}}).a})},48:function(e,t,n){var r=n(17),i=n(20).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},49:function(e,t,n){var r=n(17);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")}},50:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},51:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},52:function(e,t,n){var r=n(33);e.exports=function(e){return Object(r(e))}},53:function(e,t,n){var r=n(54);e.exports=function(e,t){return new(r(e))(t)}},54:function(e,t,n){var r=n(17),i=n(36),o=n(55)("species");e.exports=function(e){var t;return i(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!i(t.prototype)||(t=void 0),r(t)&&null===(t=t[o])&&(t=void 0)),void 0===t?Array:t}},55:function(e,t,n){var r=n(56)("wks"),i=n(58),o=n(20).Symbol,u="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=u&&o[e]||(u?o:i)("Symbol."+e))}).store=r},56:function(e,t,n){var r=n(14),i=n(20),o="__core-js_shared__",u=i[o]||(i[o]={});(e.exports=function(e,t){return u[e]||(u[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(57)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},57:function(e,t){e.exports=!0},58:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},59:function(e,t,n){"use strict";var r=n(16),i=n(60)(!0);r(r.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(24)("includes")},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 f=void 0,d=!1,l=s.method||(r?"POST":"GET"),p="object"===(void 0===n?"undefined":o(n))&&null!==n?n:{success:function(){a.logMessage("xhr success")},error:function(e){a.logError("xhr error",null,e)}};if("function"==typeof n&&(p.success=n),window.XMLHttpRequest?void 0===(f=new window.XMLHttpRequest).responseType&&(d=!0):d=!0,d?((f=new window.XDomainRequest).onload=function(){p.success(f.responseText,f)},f.onerror=function(){p.error("error",f)},f.ontimeout=function(){p.error("timeout",f)},f.onprogress=function(){a.logMessage("xhr onprogress")}):(f.onreadystatechange=function(){if(f.readyState===c){var e=f.status;e>=200&&ef;)if((a=c[f++])!=a)return!0}else for(;s>f;f++)if((e||f in c)&&c[f]===n)return e||f||0;return!e&&-1}}},61:function(e,t,n){var r=n(31),i=n(33);e.exports=function(e){return r(i(e))}},62:function(e,t,n){var r=n(35),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))0&&void 0!==arguments[0]?arguments[0]:{},n=t.labels,r=void 0===n?[]:n,o=t.labelAll,u=void 0!==o&&o,c=t.activeLabels,d=void 0===c?[]:c,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],p=(e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f,e.reduce(function(e,t){return"object"===(void 0===t?"undefined":i(t))&&"string"==typeof t.mediaQuery?matchMedia(t.mediaQuery).matches&&(Array.isArray(t.sizesSupported)&&(e.shouldFilter=!0),["labels","sizesSupported"].forEach(function(n){return(t[n]||[]).forEach(function(t){return e[n][t]=!0})})):(0,a.logWarn)('sizeConfig rule missing required property "mediaQuery"'),e},{labels:{},sizesSupported:{},shouldFilter:!1})),g=void 0;return g=p.shouldFilter?l.filter(function(e){return p.sizesSupported[e]}):l,{active:g.length>0&&(0===r.length||!u&&(r.some(function(e){return p.labels[e]})||r.some(function(e){return(0,s.default)(d,e)}))||u&&r.reduce(function(e,t){return e?p.labels[t]||(0,s.default)(d,t):e},!0)),sizes:g}};var o,u=n(3),a=n(0),c=n(8),s=(o=c)&&o.__esModule?o:{default:o},f=[];u.config.getConfig("sizeConfig",function(e){return r(e.sizeConfig)})},65: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,o.getBidRequest)(e.adId,t),r=n&&(0,o.deepAccess)(n,"mediaTypes.video"),i=r&&(0,o.deepAccess)(r,"context");return!n||r&&i!==s?u.config.getConfig("cache.url")||!e.vastXml||e.vastUrl?!(!e.vastUrl&&!e.vastXml):((0,o.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):i!==s||!(!e.renderer&&!n.renderer)};var r,i=n(7),o=n(0),u=n(3),a=n(8),c=(r=a)&&r.__esModule?r:{default:r},s="outstream",f=(t.videoAdUnit=function(e){var t="video"===e.mediaType,n=(0,o.deepAccess)(e,"mediaTypes.video");return t||n},t.videoBidder=function(e){return(0,c.default)(i.videoAdapters,e.bidder)});t.hasNonVideoBidder=function(e){return e.bids.filter(function(e){return!f(e)}).length}},7:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){return e.labelAll?{labelAll:!0,labels:e.labelAll,activeLabels:t}:{labelAll:!1,labels:e.labelAny,activeLabels:t}}function o(e){var t=e.bidderCode,n=e.auctionId,r=e.bidderRequestId,o=e.adUnits,u=e.labels;return o.reduce(function(e,o){var a=(0,f.resolveStatus)(i(o,u),o.sizes),l=a.active,p=a.sizes;return l&&e.push(o.bids.filter(function(e){return e.bidder===t}).reduce(function(e,t){o.mediaTypes&&(b.isValidMediaTypes(o.mediaTypes)?t=c({},t,{mediaTypes:o.mediaTypes}):b.logError("mediaTypes is not correctly configured for adunit "+o.code));var a=o.nativeParams||b.deepAccess(o,"mediaTypes.native");a&&(t=c({},t,{nativeParams:(0,d.processNativeAdUnitParams)(a)})),t=c({},t,(0,s.getDefinedParams)(o,["mediaType","renderer"]));var l=(0,f.resolveStatus)(i(t,u),p),g=l.active,h=l.sizes;return g&&e.push(c({},t,{adUnitCode:o.code,transactionId:o.transactionId,sizes:h,bidId:t.bid_id||b.getUniqueIdentifierStr(),bidderRequestId:r,auctionId:n})),e},[])),e},[]).reduce(s.flatten,[]).filter(function(e){return""!==e})}function u(){return A&&A.enabled&&A.testing&&_}var a=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var u,a=e[Symbol.iterator]();!(r=(u=a.next()).done)&&(n.push(u.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&a.return&&a.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=Object.assign||function(e){for(var t=1;t (eg mediaTypes.banner.sizes).");var n=e.mediaTypes;if(n&&n.banner){var r=n.banner;r.sizes?e.sizes=r.sizes:(b.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(n&&n.video){var i=n.video;if(i.playerSize)if(Array.isArray(i.playerSize)&&1===i.playerSize.length&&i.playerSize.every(t))e.sizes=i.playerSize;else if(t(i.playerSize)){var o=[];o.push(i.playerSize),b.logInfo("Transforming video.playerSize from "+i.playerSize+" to "+o+" so it's in the proper format."),e.sizes=i.playerSize=o}else b.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(n&&n.native){var u=n.native;u.image&&u.image.sizes&&!Array.isArray(u.image.sizes)&&(b.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),u.image&&u.image.aspect_ratios&&!Array.isArray(u.image.aspect_ratios)&&(b.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),u.icon&&u.icon.sizes&&!Array.isArray(u.icon.sizes)&&(b.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,p.ajaxBuilder)(t[0].timeout),o=t.reduce(function(e,t){return e[Number(void 0!==t.src&&t.src===y.S2S.SRC)].push(t),e},[[],[]]),u=a(o,2),c=u[0],f=u[1];if(f.length){var d=A.bidders,l=w[A.adapter],g=f[0].tid,_=f[0].adUnitsS2SCopy;if(_.forEach(function(e){var t=e.bids.filter(function(t){return(0,v.default)(f,function(n){return n.bidderCode===t.bidder&&(0,v.default)(n.bids,function(t){return t.adUnitCode===e.code})})});e.bids=t}),_=_.filter(function(e){return e.bids.length>0}),l){var E={tid:g,ad_units:_};if(E.ad_units.length){var S=f.map(function(e){return e.start=(0,s.timestamp)(),e.doneCbCallCount=0,r(e.bidderRequestId)}),T=E.ad_units.reduce(function(e,t){return e.concat((t.bids||[]).reduce(function(e,t){return e.concat(t.bidder)},[]))},[]);b.logMessage("CALLING S2S HEADER BIDDERS ==== "+d.filter(function(e){return(0,h.default)(T,e)}).join(",")),f.forEach(function(e){m.emit(y.EVENTS.BID_REQUESTED,e)}),l.callBids(E,f,n,function(){return S.forEach(function(e){return e()})},i)}}}c.forEach(function(e){e.start=(0,s.timestamp)();var t=w[e.bidderCode];if(t){b.logMessage("CALLING BIDDER ======= "+e.bidderCode),m.emit(y.EVENTS.BID_REQUESTED,e),e.doneCbCallCount=0;var o=r(e.bidderRequestId);t.callBids(e,n,o,i)}else b.logError("Adapter trying to be called which does not exist: "+e.bidderCode+" adaptermanager.callBids")})}else b.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?(w[n]=e,(0,h.default)(i,"video")&&t.videoAdapters.push(n),(0,h.default)(i,"native")&&d.nativeAdapters.push(n)):b.logError("Bidder adaptor error for bidder code: "+n+"bidder must implement a callBids() function"):b.logError("bidAdaptor or bidderCode not specified")},t.aliasBidAdapter=function(e,n){var r,i;if(void 0===w[n]){var o=w[e];if(void 0===o)b.logError('bidderCode "'+e+'" is not an existing bidder.',"adaptermanager.aliasBidAdapter");else try{var u=void 0,a=(r=e,i=[],(0,h.default)(t.videoAdapters,r)&&i.push("video"),(0,h.default)(d.nativeAdapters,r)&&i.push("native"),i);if(o.constructor.prototype!=Object.prototype)(u=new o.constructor).setBidderCode(n);else{var s=o.getSpec();u=(0,l.newBidder)(c({},s,{code:n})),t.aliasRegistry[n]=e}this.registerBidAdapter(u,n,{supportedMediaTypes:a})}catch(t){b.logError(e+" bidder does not currently support aliasing.","adaptermanager.aliasBidAdapter")}}else b.logMessage('alias name "'+n+'" has been already specified.')},t.registerAnalyticsAdapter=function(e){var t=e.adapter,n=e.code;t&&n?"function"==typeof t.enableAnalytics?(t.code=n,E[n]=t):b.logError('Prebid Error: Analytics adaptor error for analytics "'+n+'"\n analytics adapter must implement an enableAnalytics() function'):b.logError("Prebid Error: analyticsAdapter or analyticsCode not specified")},t.enableAnalytics=function(e){b.isArray(e)||(e=[e]),b._each(e,function(e){var t=E[e.provider];t?t.enableAnalytics(e):b.logError("Prebid Error: no analytics adapter found in registry for\n "+e.provider+".")})},t.getBidAdapter=function(e){return w[e]},t.setS2STestingModule=function(e){_=e},t.callTimedOutBidders=function(e,t,n){t=t.map(function(t){return t.params=b.getUserConfiguredParams(e,t.adUnitCode,t.bidder),t.timeout=n,t}),t=b.groupBy(t,"bidder"),Object.keys(t).forEach(function(e){try{var n=w[e].getSpec();n&&n.onTimeout&&"function"==typeof n.onTimeout&&(b.logInfo("Invoking "+e+".onTimeout"),n.onTimeout(t[e]))}catch(t){b.logWarn("Error calling onTimeout of "+e)}})}},8:function(e,t,n){n(59),e.exports=n(14).Array.includes},9:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t1?arguments[1]:void 0)}}),n(24)(o)}}),pbjsChunk([134],{111:function(e,t,n){e.exports=n(112)},112:function(e,t,n){"use strict";function r(){if(_&&"object"===s(window[m])&&"function"==typeof window[m].getInstance){for(var e=0;e0){var t=i(e);w++,window[m].logEvent("Prebid.js Bids",t)}}),r()}function a(e){y.push(function(){d._each(e,function(e){var t=i(e);w++,window[m].logEvent("Prebid.js Timeouts",t)})}),r()}function c(e){y.push(function(){var t=i(e);w++,window[m].logEvent("Prebid.js Wins",t)}),r()}var s="function"==typeof Symbol&&"symbol"==_typeof(Symbol.iterator)?function(e){return void 0===e?"undefined":_typeof(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":_typeof(e)},f=n(9),d=n(0),l=n(2),p=n(7),g=l.EVENTS.BID_REQUESTED,h=l.EVENTS.BID_TIMEOUT,v=l.EVENTS.BID_RESPONSE,b=l.EVENTS.BID_WON,y=[],m=null,_=!0,w=0,A=!0,E=["bidder","bidderCode","size","cpm","statusMessage","timeToRespond","adUnitCode"];t.enableAnalytics=function(e){var t=e.provider,n=e.options;if(m=t||"amplitude",A=void 0===n||void 0===n.sampling||Math.random()0&&(f.member_id=s),t&&t.gdprConsent&&(f.gdpr_consent={consent_string:t.gdprConsent.consentString,consent_required:t.gdprConsent.gdprApplies}),{method:"POST",url:"//ib.adnxs.com/ut/v3/prebid",data:JSON.stringify(f),bidderRequest:t}},interpretResponse:function(e,t){var n=this,r=t.bidderRequest;e=e.body;var i=[];if(!e||e.error){var o="in response for "+r.bidderCode+" adapter";return e&&e.error&&(o+=": "+e.error),l.logError(o),i}return e.tags&&e.tags.forEach(function(e){var t,o,u=(t=e)&&t.ads&&t.ads.length&&(0,h.default)(t.ads,function(e){return e.rtb});if(u&&0!==u.cpm&&(0,v.default)(n.supportedMediaTypes,u.ad_type)){var a=function(e,t,n){var r={requestId:e.uuid,cpm:t.cpm,creativeId:t.creative_id,dealId:t.deal_id,currency:"USD",netRevenue:!0,ttl:300,appnexus:{buyerMemberId:t.buyer_member_id}};if(t.rtb.video){if(f(r,{width:t.rtb.video.player_width,height:t.rtb.video.player_height,vastUrl:t.rtb.video.asset_url,vastImpUrl:t.notify_url,ttl:3600}),t.renderer_url){var i=l.deepAccess(n.bids[0],"renderer.options");f(r,{adResponse:e,renderer:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=d.Renderer.install({id:t.renderer_id,url:t.renderer_url,config:n,loaded:!1});try{r.setRender(c)}catch(e){l.logWarn("Prebid Error calling setRender on renderer",e)}return r.setEventHandlers({impression:function(){return l.logMessage("AppNexus outstream video impression event")},loaded:function(){return l.logMessage("AppNexus outstream video loaded event")},ended:function(){l.logMessage("AppNexus outstream renderer video event"),document.querySelector("#"+e).style.display="none"}}),r}(r.adUnitCode,t,i)}),r.adResponse.ad=r.adResponse.ads[0],r.adResponse.ad.video=r.adResponse.ad.rtb.video}}else if(t.rtb[g.NATIVE]){var o=t.rtb[g.NATIVE];r[g.NATIVE]={title:o.title,body:o.desc,cta:o.ctatext,sponsoredBy:o.sponsored,clickUrl:o.link.url,clickTrackers:o.link.click_trackers,impressionTrackers:o.impression_trackers,javascriptTrackers:o.javascript_trackers},o.main_img&&(r.native.image={url:o.main_img.url,height:o.main_img.height,width:o.main_img.width}),o.icon&&(r.native.icon={url:o.icon.url,height:o.icon.height,width:o.icon.width})}else{f(r,{width:t.rtb.banner.width,height:t.rtb.banner.height,ad:t.rtb.banner.content});try{var u=t.rtb.trackers[0].impression_urls[0],a=l.createTrackPixelHtml(u);r.ad+=a}catch(e){l.logError("Error appending tracking pixel",e)}}return r}(e,u,r);a.mediaType=(o=u.ad_type)===g.VIDEO?g.VIDEO:o===g.NATIVE?g.NATIVE:g.BANNER,i.push(a)}}),i},getUserSyncs:function(e){if(e.iframeEnabled)return[{type:"iframe",url:"//acdn.adnxs.com/ib/static/usersync/v3/async_usersync.html"}]}};(0,p.registerBidder)(_)},120:function(e,t){}},[118]),pbjsChunk([132],{156:function(e,t,n){e.exports=n(157)},157:function _(module,exports,__webpack_require__){"use strict";function _interopRequireWildcard(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function publisherTagAvailable(){return"undefined"!=typeof Criteo&&Criteo.PubTag&&Criteo.PubTag.Adapters&&Criteo.PubTag.Adapters.Prebid}function buildContext(e){var t=utils.getTopWindowUrl(),n=(0,_url.parse)(t).search,r={url:t,debug:"1"===n.pbt_debug,noLog:"1"===n.pbt_nolog,integrationMode:void 0};return e.forEach(function(e){e.params.integrationMode&&(r.integrationMode=e.params.integrationMode)}),r}function buildCdbUrl(e){var t=CDB_ENDPOINT;return t+="?profileId="+PROFILE_ID,t+="&av="+String(ADAPTER_VERSION),t+="&cb="+String(Math.floor(99999999999*Math.random())),e.integrationMode in INTEGRATION_MODES&&(t+="&im="+INTEGRATION_MODES[e.integrationMode]),e.debug&&(t+="&debug=1"),e.noLog&&(t+="&nolog=1"),t}function buildCdbRequest(e,t){var n=void 0,r={publisher:{url:e.url},slots:t.map(function(e){n=e.params.networkId||n;var t={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&&(t.zoneid=e.params.zoneId),e.params.publisherSubId&&(t.publishersubid=e.params.publisherSubId),e.params.nativeCallback&&(t.native=!0),t})};return n&&(r.publisher.networkid=n),r}function createNativeAd(e,t,n){return window.criteo_prebid_native_slots=window.criteo_prebid_native_slots||{},window.criteo_prebid_native_slots[e]={callback:n,payload:t},'

");var o=g[t.size_id].split("x").map(function(e){return Number(e)}),u=a(o,2);i.width=u[0],i.height=u[1]}return i.rubiconTargeting=(Array.isArray(t.targeting)?t.targeting:[]).reduce(function(e,t){return e[t.key]=t.values[0],e},{rpfl_elemid:n.adUnitCode}),e.push(i),e},[]))},getUserSyncs:function(e){if(!v&&e.iframeEnabled)return v=!0,{type:"iframe",url:"https://eus.rubiconproject.com/usync.html"}}},v=!1;(0,f.registerBidder)(h)},358:function(e,t){}},[356]),pbjsChunk([26],{392:function(e,t,n){n(393),e.exports=n(394)},393: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){return e.params.sizes?(0,d.parseSizesInput)(e.params.sizes).join(","):(0,d.parseSizesInput)(e.sizes).join(",")}function o(e){return e.params.floor?"|f="+e.params.floor:""}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=y(e);return t(0,768)?"mobile":t(768,992)?"tablet":"desktop"}Object.defineProperty(t,"__esModule",{value:!0}),t._isInbounds=t.spec=void 0;var a=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var u,a=e[Symbol.iterator]();!(r=(u=a.next()).done)&&(n.push(u.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&a.return&&a.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=Object.assign||function(e){for(var t=1;t'}},y=t._isInbounds=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_SAFE_INTEGER;return e.innerWidth>=t&&e.innerWidthi;i+=1)if(t.call(n,e[i],i,e)===u)return}else for(r in e)if(this.has(e,r)&&t.call(n,e[r],r,e)===u)return},once:function(e){var t,n=!1;return function(){return n?t:(n=!0,t=e.apply(this,arguments),e=null,t)}}}}(),l=/\s+/,p=function(){return this};return p.prototype={version:"1.0.0",on:function(e,t,n){return i(this,"on",e,[t,n])&&t?(this._events=this._events||{},(this._events[e]||(this._events[e]=[])).push({callback:t,context:n,ctx:n||this}),this):this},once:function(e,t,n){var r,o=this;return i(this,"once",e,[t,n])&&t?(r=d.once(function(){o.off(e,r),t.apply(this,arguments)}),r._callback=t,this.on(e,r,n)):this},off:function(e,t,n){var r,o,u,a,c,s,f,l;if(!this._events||!i(this,"off",e,[t,n]))return this;if(!e&&!t&&!n)return this._events={},this;for(a=e?[e]:d.keys(this._events),c=0,s=a.length;s>c;c+=1)if(e=a[c],u=this._events[e]){if(this._events[e]=r=[],t||n)for(f=0,l=u.length;l>f;f+=1)o=u[f],(t&&t!==o.callback&&t!==o.callback._callback||n&&n!==o.context)&&r.push(o);r.length||delete this._events[e]}return this},trigger:function(e){if(!this._events)return this;var t,n,o=c.call(arguments,1);return i(this,"trigger",e,o)?(t=this._events[e],n=this._events.all,t&&r(t,o),n&&r(n,arguments),this):this},stopListening:function(e,t,n){var r,i,o=this._listeners;if(!o)return this;r=!t&&!n,"object"==typeof t&&(n=this),o={},e&&(o[e._listenerId]=e);for(i in o)o.hasOwnProperty(i)&&(o[i].off(t,n,this),r&&delete this._listeners[i]);return this},noConflict:function(){return t.Eventify=f,this},enable:function(e){var t,n,r=["on","once","off","trigger","stopListening","listenTo","listenToOnce","bind","unbind"];for(e=e||{},t=0,n=r.length;n>t;t+=1)e[r[t]]=this[r[t]];return e}},i=function(e,t,n,r){var i,o,u,a;if(!n)return!0;if("object"==typeof n){for(i in n)n.hasOwnProperty(i)&&e[t].apply(e,[i,n[i]].concat(r));return!1}if(l.test(n)){for(a=n.split(l),o=0,u=a.length;u>o;o+=1)e[t].apply(e,[a[o]].concat(r));return!1}return!0},r=function(e,t){var n,r=0,i=e.length,o=t[0],u=t[1],a=t[2];switch(t.length){case 0:for(;i>r;)n=e[r],n.callback.call(n.ctx),r+=1;return;case 1:for(;i>r;)n=e[r],n.callback.call(n.ctx,o),r+=1;return;case 2:for(;i>r;)n=e[r],n.callback.call(n.ctx,o,u),r+=1;return;case 3:for(;i>r;)n=e[r],n.callback.call(n.ctx,o,u,a),r+=1;return;default:for(;i>r;)n=e[r],n.callback.apply(n.ctx,t),r+=1}},d.each(o,function(e,t){p.prototype[t]=function(t,n,r){var i,o=this._listeners||(this._listeners={});return t._listenerId=t._listenerId||d.uniqueId("l"),i=t._listenerId,o[i]=t,"object"==typeof n&&(r=this),t[e](n,r,this),this}}),n=new p,n.mixin=n.enable,n}),navigator.userAgent.match(/Trident/g)||navigator.userAgent.match(/MSIE/g)){var script=document.createElement("script");script.src="https://slate.com/media/sites/slate-com/svg4everybody.min.js",script.async=!1,document.head.appendChild(script)}if(function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Layzr=t()}(this,function(){"use strict";var e=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]&&arguments[1];return t?u[e].splice(u[e].indexOf(t),1):delete u[e],this}function i(e){for(var t=this,n=arguments.length,i=Array(n>1?n-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:{},u=Object.create(null);return e({},o,{on:t,once:n,off:r,emit:i})};return function(){function e(){return window.scrollY||window.pageYOffset}function n(){d=e(),r()}function r(){l||(window.requestAnimationFrame(function(){return c()}),l=!0)}function i(e){return e.getBoundingClientRect().top+d}function o(e){var t=d,n=t+g,r=i(e),o=r+e.offsetHeight,u=h.threshold/100*g;return o>=t-u&&r1&&e.getAttribute(h.retina);e.setAttribute("src",t||e.getAttribute(h.normal))}y.emit("src:after",e),[h.normal,h.retina,h.srcset].forEach(function(t){return e.removeAttribute(t)}),s()}function a(e){var t=e?"addEventListener":"removeEventListener";return["scroll","resize"].forEach(function(e){return window[t](e,n)}),this}function c(){return g=window.innerHeight,p.forEach(function(e){return o(e)&&u(e)}),l=!1,this}function s(){return p=Array.prototype.slice.call(document.querySelectorAll("["+h.normal+"]")),this}var f=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},d=e(),l=void 0,p=void 0,g=void 0,h={normal:f.normal||"data-normal",retina:f.retina||"data-retina",srcset:f.srcset||"data-srcset",threshold:f.threshold||0},v=document.body.classList.contains("srcset")||"srcset"in document.createElement("img"),b=window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI,y=t({handlers:a,check:c,update:s});return y}}),!window.URL||!window.URLSearchParams){var script=document.createElement("script");script.src="https://slate.com/media/sites/slate-com/url-polyfill.min.js",script.async=!1,document.head.appendChild(script)}!function(e){var t=!1;if("function"==typeof define&&define.amd&&(define(e),t=!0),"object"==typeof exports&&(module.exports=e(),t=!0),!t){var n=window.Cookies,r=window.Cookies=e();r.noConflict=function(){return window.Cookies=n,r}}}(function(){function e(){for(var e=0,t={};e1){if(o=e({path:"/"},r.defaults,o),"number"==typeof o.expires){var a=new Date;a.setMilliseconds(a.getMilliseconds()+864e5*o.expires),o.expires=a}o.expires=o.expires?o.expires.toUTCString():"";try{u=JSON.stringify(i),/^[\{\[]/.test(u)&&(i=u)}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 c="";for(var s in o)o[s]&&(c+="; "+s,!0!==o[s]&&(c+="="+o[s]));return document.cookie=t+"="+i+c}t||(u={});for(var f=document.cookie?document.cookie.split("; "):[],d=/(%[0-9A-Z]{2})+/g,l=0;l-1}function c(t){return!!e.document.hasFocus()&&n.isElementInViewport(t)}function s(e){var t=[];return e&&e.length&&(e=e.split(","),r.map(e,function(e){e=e.split("x");var n=parseInt(e[0]),r=parseInt(e[1]);t.push([n,r])})),t}function f(){var e=document.querySelector("div[data-adnode]"),t="";return e&&(t=e.getAttribute("data-adnode")),t}function d(e){return"true"===e.prebid&&!pbjs.adserverRequestSent}e.googletag=e.googletag||{},e.googletag.cmd=e.googletag.cmd||[],e.pbjs=e.pbjs||{},e.pbjs.que=e.pbjs.que||[];var l={},p=[],g=function(){var t=/[?&]test_ads=([^?]+)/,n=t.exec(e.location.search);return n?n[1]:""}(),h=function(){return"91898098/slate.com/"+f()}();e.googletag.cmd.push(function(){e.googletag.pubads().collapseEmptyDivs(!0),e.googletag.pubads().disableInitialLoad(),e.googletag.enableServices();var t=Math.floor(1e13*Math.random()),n=document.querySelectorAll('meta[name="dfp-cache-buster"]')[0];n&&n.content&&(t=n.content),e.googletag.pubads().setTargeting("dfp_cache_buster",t),g&&googletag.pubads().setTargeting("kw","test_"+g),e.Krux&&e.Krux.segments&&googletag.pubads().setTargeting("ksg",e.Krux.segments),e.Krux&&e.Krux.user&&googletag.pubads().setTargeting("kuid",e.Krux.user),i()}),this.requestAd=function(n){e.googletag.cmd.push(function(){var r=e.googletag.defineSlot(h,n.dfpSizes,n.id);r.addService(googletag.pubads()),r.setTargeting("site","redux"),r.setTargeting("refresh","no"),r.setTargeting("pos",n.id),r.setTargeting("page_type",n.pageType),e.googletag.display(n.id),d(n)?t.prebid(n,r):googletag.pubads().refresh([r],{changeCorrelator:!1})})},this.createAd=function(e){var t=e.getAttribute("data-type"),n=e.getAttribute("data-page-type"),r=e.getAttribute("data-prebid"),i=e.getAttribute("data-sizes"),o=e.getAttribute("data-prebid-sizes"),u=e.getAttribute("data-zone-id"),a=e.getAttribute("data-placement-id"),c=e.getAttribute("data-trustx-id"),f=e.getAttribute("data-criteo-id"),d=e.getAttribute("data-site-id");return l[t]||(l[t]=1),e.id=t+"-"+l[t],l[t]++,{id:e.id,type:t,pageType:n,prebid:r,dfpSizes:s(i),prebidSizes:s(o),rubiconZoneId:u,appnexusPlacementId:a,trustxId:c,criteoZoneId:f,indexSiteId:d}}}]),DS.service("$cid",function(){var e=Math.floor(100*Math.random());return function(){return"cid-"+ ++e}}),DS.service("dom",["$document",function(e){this.find=function(t,n){return n||(n=t,t=e),t.querySelector(n)},this.findAll=function(t,n){return n||(n=t,t=e),t.querySelectorAll(n)},this.getFirstChildElement=function(e){for(var t=e.firstChild;t&&1!==t.nodeType;)t=t.nextSibling;return t},this.prependChild=function(e,t){e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)},this.insertAfter=function(e,t){t.parentNode.insertBefore(e,t.nextSibling)},this.clearChildren=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},this.removeElement=function(e){e.parentNode.removeChild(e)},this.preventDefault=function(e){e&&e.preventDefault&&e.preventDefault()},this.replaceElement=function(e,t){var n=e.parentNode;n&&n.replaceChild(t,e)},this.matches=function(t,n){var r,i,o;if(t.matches)return t.matches(n);for(r=t.parentElement||e,i=r.querySelectorAll(n),o=0;i[o]&&i[o]!==t;)o++;return!!i[o]},this.closest=function(e,t){for(var n=e;n&&!this.matches(n,t);)n=n.parentElement||n.parentNode;return n||null},this.getPos=function(e){var t=e.getBoundingClientRect(),n=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop;return{top:t.top+n,bottom:t.top+t.height+n,height:t.height}}}]),DS.service("headerBidding",function(){var e,t;this.prebid=function(n,r){e=n,t=r,this.requestBidsFromExchanges()},this.requestBidsFromExchanges=function(){this.getBidsFromPrebidExchanges(),this.getBidsFromAmazon()},this.getBidsFromPrebidExchanges=function(){var t=this.createPrebidAdUnit(),n=this.addBidsToDfpRequest;pbjs.que.push(function(){pbjs.addAdUnits([t]),pbjs.adserverRequestSent=!0,pbjs.requestBids({adUnitCodes:[e.id],bidsBackHandler:n})})},this.getBidsFromAmazon=function(){var e=this.createApsAdUnit(),t=pbjs.getConfig("bidderTimeout"),n=t||800;apstag&&apstag.fetchBids({slots:[e],timeout:n},function(e){googletag.cmd.push(function(){apstag.setDisplayBids()})})},this.addBidsToDfpRequest=function(){googletag.cmd.push(function(){pbjs.que.push(function(){pbjs.setTargetingForGPTAsync([e.id]),googletag.pubads().refresh([t],{changeCorrelator:!1}),pbjs.adserverRequestSent=!1})})},this.createPrebidAdUnit=function(){return{code:e.id,mediaTypes:{banner:{sizes:e.prebidSizes}},bids:this.getBids()}},this.getBids=function(){for(var t=[this.appnexus(),this.rubicon(),this.trustx(),this.sonobi(),this.criteo()],n=0;n969,r=window.innerWidtht?e:t}function u(){w.forEach(s)}function a(e,t){var n=t.visiblePx,r=t.visiblePercent;n&&r>=e.shownThreshold&&!e.seen?(e.seen=!0,setTimeout(function(){e.trigger("shown",new _("shown",t))},15)):(!n||r=0&&r.left>=0&&r.bottom1&&(u+=h(o,Math.floor(t/r),n-1,r)),u}function v(e,t){return i(t,o(e.bottom,0))-i(o(e.top,0),t)}function b(e){for(var t=e.offsetLeft,n=e.offsetTop;e=e.offsetParent;)t+=e.offsetLeft,n+=e.offsetTop;return{left:t,top:n}}function y(t,r){var i,o;return t=t.split(","),o=n.filter(n.map(t,function(t){return(i=e.querySelector(t))&&new m(i).on("shown",function(){n.invokeMap(o,"destroy"),r()})}))}var m,_,w=[];m=function(e,t){t=t||{},this.el=e,this.seen=!1,this.preload=!1,this.preloadThreshhold=t&&t.preloadThreshhold||0,this.shownThreshold=t&&t.shownThreshold||0,this.hiddenThreshold=t&&i(t.shownThreshold,t.hiddenThreshold)||0,w.push(this),s(this)},m.prototype={destroy:function(){w.splice(w.indexOf(this),1)}},r.enable(m.prototype),_=function(e,t){this.type=e,n.assign(this,t)},e.addEventListener("scroll",n.throttle(u,200)),this.getPageOffset=b,this.getLinearSpacialHash=h,this.getVerticallyVisiblePixels=v,this.getViewportHeight=f,this.getViewportWidth=d,this.isElementNotHidden=l,this.isElementInViewport=p,this.watchForAny=y,this.Visible=m}]);"use strict";var _typeof="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};!function e(t,n,o){function r(c,s){if(!n[c]){if(!t[c]){var a="function"==typeof require&&require;if(!s&&a)return a(c,!0);if(i)return i(c,!0);var u=new Error("Cannot find module '"+c+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[c]={exports:{}};t[c][0].call(l.exports,function(e){var n=t[c][1][e];return r(n||e)},l,l.exports,e,t,n,o)}return n[c].exports}for(var i="function"==typeof require&&require,c=0;c1){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():"";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="";for(var u in i)i[u]&&(a+="; "+u,!0!==i[u]&&(a+="="+i[u]));return document.cookie=t+"="+r+a}t||(c={});for(var l=document.cookie?document.cookie.split("; "):[],d=/(%[0-9A-Z]{2})+/g,f=0;ft&&o-t1){if(i=e({path:"/"},n.defaults,i),"number"==typeof i.expires){var c=new Date;c.setMilliseconds(c.getMilliseconds()+864e5*i.expires),i.expires=c}i.expires=i.expires?i.expires.toUTCString():"";try{s=JSON.stringify(r),/^[\{\[]/.test(s)&&(r=s)}catch(e){}r=o.write?o.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="";for(var u in i)i[u]&&(a+="; "+u,!0!==i[u]&&(a+="="+i[u]));return document.cookie=t+"="+r+a}t||(s={});for(var f=document.cookie?document.cookie.split("; "):[],p=/(%[0-9A-Z]{2})+/g,l=0;l1){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():"";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 u="";for(var a in i)i[a]&&(u+="; "+a,!0!==i[a]&&(u+="="+i[a]));return document.cookie=t+"="+r+u}t||(c={});for(var d=document.cookie?document.cookie.split("; "):[],l=/(%[0-9A-Z]{2})+/g,f=0;ff?void console.error("RETRY LIMIT EXCEEDED"):void setTimeout(function(){e(t,n+1)},l)};return a}])},{"../../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"===(void 0===n?"undefined":_typeof(n))&&(t.exports=e(),o=!0),!o){var r=window.Cookies,i=window.Cookies=e();i.noConflict=function(){return window.Cookies=r,i}}}(function(){function e(){for(var e=0,t={};e1){if(i=e({path:"/"},o.defaults,i),"number"==typeof i.expires){var a=new Date;a.setMilliseconds(a.getMilliseconds()+864e5*i.expires),i.expires=a}i.expires=i.expires?i.expires.toUTCString():"";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 s="";for(var u in i)i[u]&&(s+="; "+u,!0!==i[u]&&(s+="="+i[u]));return document.cookie=t+"="+r+s}t||(c={});for(var l=document.cookie?document.cookie.split("; "):[],f=/(%[0-9A-Z]{2})+/g,d=0;d

https://slate.com/technology/2018/05/how-the-c-section-went-from-last-resort-to-overused.html