function pwtCreatePrebidNamespace(preBidNameSpace) { window[preBidNameSpace] = window[preBidNameSpace] || {}; window[preBidNameSpace].que = window[preBidNameSpace].que || [];/* prebid.js v1.36.0Updated : 2019-02-18 */!(function(u){var s=window.owpbjsChunk;window.owpbjsChunk=function(e,t,n){for(var r,i,o,a=0,d=[];a';u+="",u+="",u+="",u+=i.adHtml,u+="",d.write(u),d.close()}catch(l){f.log("Error in rendering creative in safe frame."),f.log(l),f.log("Rendering synchronously."),f.displayCreative(window.document,msgData.pwt_bid)}else i.adUrl?f.writeIframe(window.document,i.adUrl,i.width,i.height,""):(f.log("creative details are not found"),f.log(i))}}}catch(l){}},e.addMessageEventListenerForSafeFrame=function(t){f.addMessageEventListener(t,f.safeFrameCommunicationProtocol)},e.getElementLocation=function(t){var e,i=0,n=0;if(f.isFunction(t.getBoundingClientRect))e=t.getBoundingClientRect(),i=Math.floor(e.left),n=Math.floor(e.top);else for(;t;)i+=t.offsetLeft,n+=t.offsetTop,t=t.offsetParent;return{x:i,y:n}},e.createVLogInfoPanel=function(t,e){var i,n,r,o=window.document;if(f.visualDebugLogIsEnabled&&(i=o.getElementById(t),i&&e.length&&e[0][0]&&e[0][1]&&(r=t+"-pwtc-info",!f.isUndefined(o.getElementById(r))))){var a=f.getElementLocation(i);n=o.createElement("div"),n.id=r,n.style="position: absolute; /*top: "+a.y+"px;*/ left: "+a.x+"px; width: "+e[0][0]+"px; height: "+e[0][1]+"px; border: 1px solid rgb(255, 204, 52); padding-left: 11px; background: rgb(247, 248, 224) none repeat scroll 0% 0%; overflow: auto; z-index: 9999997; visibility: hidden;opacity:0.9;font-size:13px;font-family:monospace;";var s=o.createElement("img");s.src=f.metaInfo.protocol+"ads.pubmatic.com/AdServer/js/pwt/close.png",s.style="cursor:pointer; position: absolute; top: 2px; left: "+(a.x+e[0][0]-16-15)+"px; z-index: 9999998;",s.title="close",s.onclick=function(){n.style.display="none"},n.appendChild(s),n.appendChild(o.createElement("br"));for(var d="Slot: "+t+" | ",u=0;ua&&(a=0),n="Bid: "+e.bidder+(e.s2s?"(s2s)":"")+": "+s.getNetEcpm()+"("+s.getGrossEcpm()+"): "+a+"ms",s.getPostTimeoutStatus()&&(n+=": POST-TIMEOUT");break;case"win-bid":var s=e.bidDetails;n="Winning Bid: "+s.getAdapterID()+": "+s.getNetEcpm();break;case"win-bid-fail":n="There are no bids from PWT";break;case"hr":n="----------------------";break;case"disp":n="Displaying creative from "+e.adapter}i.appendChild(r.createTextNode(n)),i.appendChild(r.createElement("br"))}}},e.getExternalBidderStatus=function(t){var e=!0;return f.forEachOnArray(t,(function(t,i){e=window.OWT.externalBidderStatuses[i]?e&&window.OWT.externalBidderStatuses[i].status:e})),e},e.resetExternalBidderStatus=function(t){f.forEachOnArray(t,(function(t,e){f.log("resetExternalBidderStatus: "+e),window.OWT.externalBidderStatuses[e]=void 0}))},e.ajaxRequest=function(t,e,i,n){try{n=n||{};var r,o=4,a=!0,s=n.method||(i?"POST":"GET");if(window.XMLHttpRequest?(r=new window.XMLHttpRequest,f.isUndefined(r.responseType)&&(a=!1)):a=!1,!a)return f.log("Ajax is not supported"),void 0;r.onreadystatechange=function(){r.readyState===o&&e&&e(r.responseText,r)},r.open(s,t),n.withCredentials&&(r.withCredentials=!0),n.preflight&&r.setRequestHeader("X-Requested-With","XMLHttpRequest"),r.setRequestHeader("Content-Type",n.contentType||"text/plain"),r.send("POST"===s&&i)}catch(d){f.log("Failed in Ajax"),f.log(d)}}}),(function(t,e){e.COMMON={BID_PRECISION:2,DEAL_KEY_FIRST_PART:"pwtdeal_",DEAL_KEY_VALUE_SEPARATOR:"_-_",PREBID_PREFIX:"PB_",CONFIG:"config",DIV_ID:"divID",PARAMS:"params",SIZES:"sizes",HEIGHT:"height",WIDTH:"width",SLOTS:"slots",KEY_GENERATION_PATTERN_VALUE:"kgpv",KEY_VALUE_PAIRS:"kvp",IMPRESSION_ID:"iid",PARENT_ADAPTER_PREBID:"prebid"},e.CONFIG={GLOBAL:"global",ADAPTERS:"adapters",COMMON:"pwt",TIMEOUT:"t",KEY_GENERATION_PATTERN:"kgp",KEY_LOOKUP_MAP:"klm",SERVER_SIDE_KEY:"sk",PUBLISHER_ID:"pubid",PROFILE_ID:"pid",PROFILE_VERSION_ID:"pdvid",LOGGER_URL:"dataURL",TRACKER_URL:"winURL",REV_SHARE:"rev_share",THROTTLE:"throttle",BID_PASS_THROUGH:"pt",GLOBAL_KEY_VALUE:"gkv",MASK_BIDS:"maksBids",META_DATA_PATTERN:"metaDataPattern",SEND_ALL_BIDS:"sendAllBids",SERVER_SIDE_ENABLED:"serverSideEnabled",GDPR_CONSENT:"gdpr",CONSENT_STRING:"cns",GDPR_CMPAPI:"cmpApi",GDPR_TIMEOUT:"gdprTimeout",GDPR_AWC:"awc",DEFAULT_GDPR_CMPAPI:"iab",DEFAULT_GDPR_TIMEOUT:1e4,DEFAULT_GDPR_AWC:"0",DEFAULT_GDPR_CONSENT:"0",DISABLE_AJAX_TIMEOUT:"disableAjaxTimeout"},e.METADATA_MACROS={WIDTH:"_W_",HEIGHT:"_H_",PARTNER:"_P_",GROSS_ECPM:"_GE_",NET_ECPM:"_NE_",BID_COUNT:"_BC_",PARTNER_COUNT:"_PC_"},e.MACROS={WIDTH:"_W_",HEIGHT:"_H_",AD_UNIT_ID:"_AU_",AD_UNIT_INDEX:"_AUI_",INTEGER:"_I_",DIV:"_DIV_"},e.SLOT_STATUS={CREATED:0,PARTNERS_CALLED:1,TARGETING_ADDED:2,DISPLAYED:3},e.WRAPPER_TARGETING_KEYS={BID_ID:"pwtsid",BID_STATUS:"pwtbst",BID_ECPM:"pwtecp",BID_DEAL_ID:"pwtdid",BID_ADAPTER_ID:"pwtpid",BID_SIZE:"pwtsz",PUBLISHER_ID:"pwtpubid",PROFILE_ID:"pwtprofid",PROFILE_VERSION_ID:"pwtverid",META_DATA:"pwtm",PLATFORM_KEY:"pwtplt"},e.IGNORE_PREBID_KEYS={hb_bidder:1,hb_adid:1,hb_pb:1,hb_size:1,hb_deal:1},e.LOGGER_PIXEL_PARAMS={TIMESTAMP:"tst",PAGE_URL:"purl",TIMEOUT:"to"},e.MESSAGES={M1:": In fetchbids.",M2:": Throttled.",M3:": adapter must implement the fetchBids() function.",M4:"BidManager: entry ",M5:": Callback.",M6:"bidAlreadExists : ",M7:": Exiting from fetchBids.",M8:". Config not found, ignored.",M9:". Config ignored.",M10:"Bid is rejected as ecpm is NULL.",M11:"Bid is rejected as ecpm is NaN: ",M12:"Existing bid ecpm: ",M13:", is lower than new bid ecpm ",M14:", so we are replacing bid.",M15:", is greater than new bid ecpm ",M16:", so we are not replacing bid.",M17:"Post timeout bid, ignored.",M18:"Bid is selected.",M19:": Found winning adapterID: ",M20:"Bid is rejected as ecpm is empty string.",M21:": error in respose handler.",M22:"Bid is rejected as ecpm is <= 0.",M23:"Existing bid is default-bid with zero ecpm, thus replacing it with the new bid from partner.",M24:"Passsed argument is not a bidAdaptor",M25:"Bid details not found for bidID: "},e.PLATFORM_VALUES={DISPLAY:"display"}}),(function(t,e,i){function n(t,e){this.adapterID=t,this.kgpv=e,this.bidID=a.getUniqueIdentifierStr(),this.grossEcpm=0,this.netEcpm=0,this.defaultBid=0,this.adHtml="",this.adUrl="",this.height=0,this.width=0,this.creativeID="",this.keyValuePairs={},this.isPostTimeout=!1,this.receivedTime=0,this.isServerSide=r.isServerSideAdapter(t)?1:0,this.dealID="",this.dealChannel="",this.isWinningBid=!1,this.status=0,this.serverSideResponseTime=0,this.mi=void 0}var r=i(4),o=i(2),a=i(1);n.prototype.setServerSideResponseTime=function(t){this.serverSideResponseTime=t},n.prototype.getServerSideResponseTime=function(){return this.serverSideResponseTime},n.prototype.getServerSideStatus=function(){return this.isServerSide},n.prototype.setServerSideStatus=function(t){this.isServerSide=t},n.prototype.getAdapterID=function(){return this.adapterID},n.prototype.getBidID=function(){return this.bidID},n.prototype.setGrossEcpm=function(t){return null===t?(a.log(o.MESSAGES.M10),a.log(this),this):a.isString(t)&&(t=t.replace(/\s/g,""),0===t.length)?(a.log(o.MESSAGES.M20),a.log(this),this):window.isNaN(t)?(a.log(o.MESSAGES.M11+t),a.log(this),this):(t=window.parseFloat(t.toFixed(o.COMMON.BID_PRECISION)),this.grossEcpm=t,this.netEcpm=window.parseFloat((this.grossEcpm*r.getAdapterRevShare(this.getAdapterID())).toFixed(o.COMMON.BID_PRECISION)),this)},n.prototype.getGrossEcpm=function(){return this.grossEcpm},n.prototype.getNetEcpm=function(){return this.netEcpm},n.prototype.setDefaultBidStatus=function(t){return this.defaultBid=t,this},n.prototype.getDefaultBidStatus=function(){return this.defaultBid},n.prototype.setAdHtml=function(t){return this.adHtml=t,this},n.prototype.getAdHtml=function(){return this.adHtml},n.prototype.setAdUrl=function(t){return this.adUrl=t,this},n.prototype.getAdUrl=function(){return this.adUrl},n.prototype.setHeight=function(t){return this.height=t,this},n.prototype.getHeight=function(){return this.height},n.prototype.setWidth=function(t){return this.width=t,this},n.prototype.getWidth=function(){return this.width},n.prototype.getKGPV=function(){return this.kgpv},n.prototype.setKeyValuePair=function(t,e){return this.keyValuePairs[t.substr(0,20)]=e,this},n.prototype.getKeyValuePairs=function(){return this.keyValuePairs},n.prototype.setPostTimeoutStatus=function(){return this.isPostTimeout=!0,this},n.prototype.getPostTimeoutStatus=function(){return this.isPostTimeout},n.prototype.setReceivedTime=function(t){return this.receivedTime=t,this},n.prototype.getReceivedTime=function(){return this.receivedTime},n.prototype.setDealID=function(t){return t&&(this.dealID=t,this.dealChannel=this.dealChannel||"PMP",this.setKeyValuePair(o.COMMON.DEAL_KEY_FIRST_PART+this.adapterID,this.dealChannel+o.COMMON.DEAL_KEY_VALUE_SEPARATOR+this.dealID+o.COMMON.DEAL_KEY_VALUE_SEPARATOR+this.bidID)),this},n.prototype.getDealID=function(){return this.dealID},n.prototype.setDealChannel=function(t){return this.dealID&&t&&(this.dealChannel=t,this.setKeyValuePair(o.COMMON.DEAL_KEY_FIRST_PART+this.adapterID,this.dealChannel+o.COMMON.DEAL_KEY_VALUE_SEPARATOR+this.dealID+o.COMMON.DEAL_KEY_VALUE_SEPARATOR+this.bidID)),this},n.prototype.getDealChannel=function(){return this.dealChannel},n.prototype.setWinningBidStatus=function(){return this.isWinningBid=!0,this},n.prototype.getWinningBidStatus=function(){return this.isWinningBid},n.prototype.setStatus=function(t){return this.status=t,this},n.prototype.getStatus=function(){return this.status},n.prototype.setSendAllBidsKeys=function(){this.setKeyValuePair(o.WRAPPER_TARGETING_KEYS.BID_ID+"_"+this.adapterID,this.bidID),this.setKeyValuePair(o.WRAPPER_TARGETING_KEYS.BID_STATUS+"_"+this.adapterID,this.getNetEcpm()>0?1:0),this.setKeyValuePair(o.WRAPPER_TARGETING_KEYS.BID_ECPM+"_"+this.adapterID,this.getNetEcpm().toFixed(o.COMMON.BID_PRECISION)),this.setKeyValuePair(o.WRAPPER_TARGETING_KEYS.BID_SIZE+"_"+this.adapterID,this.width+"x"+this.height)},n.prototype.setMi=function(t){return this.mi=t,this},n.prototype.getMi=function(){return this.mi},t.exports.Bid=n,e.createBid=function(t,e){return new n(t,e)}}),(function(t,e,i){function n(){var t=o.COMMON.PARENT_ADAPTER_PREBID;if(!a.isOwnProperty(r.adapters,t)){var e={};e[o.CONFIG.REV_SHARE]="0.0",e[o.CONFIG.THROTTLE]="100",e[o.CONFIG.KEY_GENERATION_PATTERN]="_DIV_",e[o.CONFIG.KEY_LOOKUP_MAP]={},r.adapters[t]=e}}var r=i(5),o=i(2),a=i(1),s=null;s=this,e.getPublisherId=function(){return a.trim(r.pwt.pubid)||"0"},e.getMataDataPattern=function(){return a.isString(r[o.CONFIG.COMMON][o.CONFIG.META_DATA_PATTERN])?r[o.CONFIG.COMMON][o.CONFIG.META_DATA_PATTERN]:null},e.getSendAllBidsStatus=function(){return window.parseInt(r[o.CONFIG.COMMON][o.CONFIG.SEND_ALL_BIDS])||0},e.getTimeout=function(){return window.parseInt(r.pwt.t)||1e3},e.getDisableAjaxTimeout=function(){var t=r.pwt;return a.isOwnProperty(t,o.CONFIG.DISABLE_AJAX_TIMEOUT)?1==r.pwt.disableAjaxTimeout:!0},e.getAdapterRevShare=function(t){var e=r.adapters;return a.isOwnProperty(e[t],o.CONFIG.REV_SHARE)?1-window.parseFloat(e[t][o.CONFIG.REV_SHARE])/100:1},e.getAdapterThrottle=function(t){var e=r.adapters;return a.isOwnProperty(e[t],o.CONFIG.THROTTLE)?100-window.parseFloat(e[t][o.CONFIG.THROTTLE]):0},e.isServerSideAdapter=function(t){var e=r.adapters;return e[t]&&a.isOwnProperty(e[t],o.CONFIG.SERVER_SIDE_ENABLED)?1===window.parseInt(e[t][o.CONFIG.SERVER_SIDE_ENABLED]):!1},e.getAdapterMaskBidsStatus=function(t){var e=r.adapters,i={audienceNetwork:1};return a.isOwnProperty(i,t)?i[t]:a.isOwnProperty(e[t],o.CONFIG.MASK_BIDS)?window.parseInt(e[t][o.CONFIG.MASK_BIDS])||0:0},e.getBidPassThroughStatus=function(t){var e=r.adapters;return a.isOwnProperty(e[t],o.CONFIG.BID_PASS_THROUGH)?window.parseInt(e[t][o.CONFIG.BID_PASS_THROUGH]):0},e.getProfileID=function(){return a.trim(r.pwt[o.CONFIG.PROFILE_ID])||"0"},e.getProfileDisplayVersionID=function(){return a.trim(r.pwt[o.CONFIG.PROFILE_VERSION_ID])||"0"},e.getAnalyticsPixelURL=function(){return r.pwt[o.CONFIG.LOGGER_URL]||!1},e.getMonetizationPixelURL=function(){return r.pwt[o.CONFIG.TRACKER_URL]||!1},e.forEachAdapter=function(t){a.forEachOnObject(r.adapters,t)},e.getGdpr=function(){var t=r[o.CONFIG.COMMON][o.CONFIG.GDPR_CONSENT]||o.CONFIG.DEFAULT_GDPR_CONSENT;return"1"===t},e.getCmpApi=function(){return r[o.CONFIG.COMMON][o.CONFIG.GDPR_CMPAPI]||o.CONFIG.DEFAULT_GDPR_CMPAPI},e.getGdprTimeout=function(){var t=r[o.CONFIG.COMMON][o.CONFIG.GDPR_TIMEOUT];return t?window.parseInt(t):o.CONFIG.DEFAULT_GDPR_TIMEOUT},e.getAwc=function(){var t=r[o.CONFIG.COMMON][o.CONFIG.GDPR_AWC]||o.CONFIG.DEFAULT_GDPR_AWC;return"1"===t},e.addPrebidAdapter=n,e.initConfig=function(){s.addPrebidAdapter();var t={};a.forEachOnObject(o.CONFIG,(function(e,i){t[i]=""})),a.forEachOnObject(r.adapters,(function(e,i){var n={};a.forEachOnObject(i,(function(e,i){a.isOwnProperty(t,e)||(n[e]=i)})),a.forEachOnObject(i[o.CONFIG.KEY_LOOKUP_MAP],(function(t,e){a.forEachOnObject(n,(function(t,i){e[t]=i}))}))}))}}),(function(t,e){e.pwt={t:"1000",pid:"915",gcv:"75",pdvid:"22",pubid:"157006",dataURL:"t.pubmatic.com/wl?",winURL:"t.pubmatic.com/wt?",metaDataPattern:0,sendAllBids:"1",adserver:"DFP",gdpr:"0",cmp:0,gdprTimeout:0,awc:0,platform:"display",refreshInterval:0,priceGranularity:0},e.adapters={pubmatic:{publisherId:"157006",rev_share:"0.0",timeout:"1000",throttle:"100",pt:0,serverSideEnabled:"0",amp:0,video:0,"in-app":0,kgp:"_AU_@_W_x_H_:_AUI_",sk:"true"},appnexus:{rev_share:"0.0",timeout:"1000",throttle:"100",pt:0,serverSideEnabled:"0",amp:0,video:0,"in-app":0,kgp:"_AU_@_W_x_H_",klm:{"/48901027/details_bottom@320x100":{placementId:"11835091"},"/48901027/details_bottom@320x50":{placementId:"15058103"},"/48901027/details_bottom@728x90":{placementId:"11835086"},"/48901027/details_mid@300x250":{placementId:"11835090"},"/48901027/details_side@160x600":{placementId:"11835085"},"/48901027/details_top@320x100":{placementId:"11835089"},"/48901027/details_top@320x50":{placementId:"15058102"},"/48901027/details_top@728x90":{placementId:"11835084"},"/48901027/listings_bottom@320x100":{placementId:"11835088"},"/48901027/listings_bottom@320x50":{placementId:"15058101"},"/48901027/listings_bottom@728x90":{placementId:"11835083"},"/48901027/listings_side@160x600":{placementId:"11835082"},"/48901027/listings_top@320x100":{placementId:"11835087"},"/48901027/listings_top@320x50":{placementId:"15058100"},"/48901027/listings_top@728x90":{placementId:"11835081"}}},sovrn:{throttle:"100",bidfloor:0,timeout:"1000",rev_share:"0.0",kgp:"_AU_@_W_x_H_",klm:{"/48901027/details_bottom@320x100":{tagid:"499687"},"/48901027/details_bottom@320x50":{tagid:"496637"},"/48901027/details_bottom@728x90":{tagid:"496631"},"/48901027/details_mid@300x250":{tagid:"496638"},"/48901027/details_side@160x600":{tagid:"496633"},"/48901027/details_top@320x100":{tagid:"499684"},"/48901027/details_top@320x50":{tagid:"496635"},"/48901027/details_top@728x90":{tagid:"496629"},"/48901027/listings_bottom@320x100":{tagid:"499685"},"/48901027/listings_bottom@320x50":{tagid:"496636"},"/48901027/listings_bottom@728x90":{tagid:"496630"},"/48901027/listings_side@160x600":{tagid:"496632"},"/48901027/listings_top@320x100":{tagid:"499686"},"/48901027/listings_top@320x50":{tagid:"496634"},"/48901027/listings_top@728x90":{tagid:"496628"}}},indexExchange:{rev_share:"0.0",timeout:"1000",throttle:"100",pt:0,serverSideEnabled:"0","in-app":0,kgp:"_AU_@_W_x_H_",klm:{"/48901027/details_bottom@320x100":{siteID:"219074",id:"219074"},"/48901027/details_bottom@320x50":{siteID:"219074",id:"219074"},"/48901027/details_bottom@728x90":{siteID:"219069",id:"219069"},"/48901027/details_mid@300x250":{siteID:"219073",id:"219073"},"/48901027/details_side@160x600":{siteID:"219068",id:"219068"},"/48901027/details_top@320x100":{siteID:"219072",id:"219072"},"/48901027/details_top@320x50":{siteID:"219072",id:"219072"},"/48901027/details_top@728x90":{siteID:"219067",id:"219067"},"/48901027/listings_bottom@320x100":{siteID:"219071",id:"219071"},"/48901027/listings_bottom@320x50":{siteID:"219071",id:"219071"},"/48901027/listings_bottom@728x90":{siteID:"219066",id:"219066"},"/48901027/listings_side@160x600":{siteID:"219065",id:"219065"},"/48901027/listings_top@320x100":{siteID:"219070",id:"219070"},"/48901027/listings_top@320x50":{siteID:"219070",id:"219070"},"/48901027/listings_top@728x90":{siteID:"219064",id:"219064"}}},openx:{delDomain:"coinmarketcap-d.openx.net",rev_share:"0.0",timeout:"1000",throttle:"100",pt:0,kgp:"_AU_@_W_x_H_",klm:{"/48901027/details_bottom@320x100":{unit:"540631892"},"/48901027/details_bottom@320x50":{unit:"539181160"},"/48901027/details_bottom@728x90":{unit:"539181149"},"/48901027/details_mid@300x250":{unit:"539181170"},"/48901027/details_side@160x600":{unit:"539181151"},"/48901027/details_top@320x100":{unit:"540631894"},"/48901027/details_top@320x50":{unit:"539181162"},"/48901027/details_top@728x90":{unit:"539181150"},"/48901027/listings_bottom@320x100":{unit:"540631893"},"/48901027/listings_bottom@320x50":{unit:"539181154"},"/48901027/listings_bottom@728x90":{unit:"539181147"},"/48901027/listings_side@160x600":{unit:"539181152"},"/48901027/listings_top@320x100":{unit:"540631895"},"/48901027/listings_top@320x50":{unit:"539181156"},"/48901027/listings_top@728x90":{unit:"539181148"}}}}}),(function(t,e,i){function n(t){c.isOwnProperty(window.PWT.bidMap,t)||(window.PWT.bidMap[t]=f.createBMEntry(t))}function r(t,e,i,n){window.PWT.bidMap[t].setNewBid(e,i),window.PWT.bidIdMap[i.getBidID()]={s:t,a:e},0===i.getDefaultBidStatus()&&"pubmaticServer"!==i.adapterID&&c.vLogInfo(t,{type:"bid",bidder:e+(0!==l.getBidPassThroughStatus(e)?"(Passthrough)":""),bidDetails:i,latency:n,s2s:l.isServerSideAdapter(e)})}function o(t,e,i){var n="",r=0,o=0,s=p.METADATA_MACROS,d="g";c.forEachOnObject(e.adapters,(function(e,i){""!=i.getLastBidID()&&("pubmaticServer"!==e&&o++,c.forEachOnObject(i.bids,(function(e,i){1!=i.getDefaultBidStatus()&&1!=i.getPostTimeoutStatus()&&0!=i.getGrossEcpm()&&(r++,n+=a(t,i))})))})),0==n.length&&(n=t),n=n.replace(new RegExp(s.BID_COUNT,d),r),n=n.replace(new RegExp(s.PARTNER_COUNT,d),o),i[p.WRAPPER_TARGETING_KEYS.META_DATA]=encodeURIComponent(n)}function a(t,e){var i=p.METADATA_MACROS,n="g";return t.replace(new RegExp(i.PARTNER,n),e.getAdapterID()).replace(new RegExp(i.WIDTH,n),e.getWidth()).replace(new RegExp(i.HEIGHT,n),e.getHeight()).replace(new RegExp(i.GROSS_ECPM,n),e.getGrossEcpm()).replace(new RegExp(i.NET_ECPM,n),e.getNetEcpm())}function s(t){var e=null,i={};return c.forEachOnObject(t.adapters,(function(t,n){var r=h.auctionBidsCallBack(t,n,i,e);e=r.winningBid,i=r.keyValuePairs})),null!==l.getMataDataPattern()&&o(l.getMataDataPattern(),t,i),{wb:e,kvp:i}}function d(t,e,i,n){return""!=e.getLastBidID()?(c.forEachOnObject(e.bids,(function(e,r){return r.getPostTimeoutStatus()===!0?{winningBid:n,keyValuePairs:i}:(1!==r.getDefaultBidStatus()&&1==l.getSendAllBidsStatus()&&r.setSendAllBidsKeys(),0===l.getBidPassThroughStatus(t)&&c.copyKeyValueObject(i,r.getKeyValuePairs()),0!==l.getBidPassThroughStatus(t)?(c.copyKeyValueObject(i,r.getKeyValuePairs()),{winningBid:n,keyValuePairs:i}):(null==n?n=r:n.getNetEcpm()0?(e.setStatus(1),e.setWinningBidStatus(),c.vLogInfo(t,{type:"win-bid",bidDetails:e})):c.vLogInfo(t,{type:"win-bid-fail"})}return{wb:e,kvp:i}},e.getBidById=function(t){if(!c.isOwnProperty(window.PWT.bidIdMap,t))return c.log(p.MESSAGES.M25+t),null;var e=window.PWT.bidIdMap[t].s,i=window.PWT.bidIdMap[t].a;if(c.isOwnProperty(window.PWT.bidMap,e)){c.log("BidID: "+t+", DivID: "+e+p.MESSAGES.M19+i);var n=window.PWT.bidMap[e].getBid(i,t);return null==n?null:{bid:n,slotid:e}}return c.log(p.MESSAGES.M25+t),null},e.displayCreative=function(t,e){var i=h.getBidById(e);if(i){var n=i.bid,r=i.slotid;c.displayCreative(t,n),c.vLogInfo(r,{type:"disp",adapter:n.getAdapterID()}),h.executeMonetizationPixel(r,n)}},e.executeAnalyticsPixel=function(){var t={s:[]},e=l.getPublisherId(),i=g.getUserConsentDataFromLS(),n="",r=l.getAnalyticsPixelURL(),o={};r&&(r=c.metaInfo.protocol+r+"pubid="+e,t[p.CONFIG.PUBLISHER_ID]=l.getPublisherId(),t[p.LOGGER_PIXEL_PARAMS.TIMEOUT]=""+l.getTimeout(),t[p.LOGGER_PIXEL_PARAMS.PAGE_URL]=window.decodeURIComponent(c.metaInfo.pageURL),t[p.LOGGER_PIXEL_PARAMS.TIMESTAMP]=c.getCurrentTimestamp(),t[p.CONFIG.PROFILE_ID]=l.getProfileID(),t[p.CONFIG.PROFILE_VERSION_ID]=l.getProfileDisplayVersionID(),l.getGdpr()&&(n=i&&i.c?encodeURIComponent(i.c):"",t[p.CONFIG.GDPR_CONSENT]=i&&i.g,t[p.CONFIG.CONSENT_STRING]=n,r+="&gdEn="+(l.getGdpr()?1:0)),c.forEachOnObject(window.PWT.bidMap,(function(t,e){h.analyticalPixelCallback(t,e,o)})),c.forEachOnObject(o,(function(e,i){i.length>0&&(t.s=i,t[p.COMMON.IMPRESSION_ID]=window.encodeURIComponent(e),t.psl=i.psl,c.ajaxRequest(r,(function(){}),"json="+window.encodeURIComponent(JSON.stringify(t)),{contentType:"application/x-www-form-urlencoded",withCredentials:!0}))})))},e.executeMonetizationPixel=function(t,e){var i=l.getMonetizationPixelURL(),n=l.getPublisherId();i&&(i+="pubid="+n,i+="&purl="+window.encodeURIComponent(c.metaInfo.pageURL),i+="&tst="+c.getCurrentTimestamp(),i+="&iid="+window.encodeURIComponent(window.PWT.bidMap[t].getImpressionID()),i+="&bidid="+window.encodeURIComponent(e.getBidID()),i+="&pid="+window.encodeURIComponent(l.getProfileID()),i+="&pdvid="+window.encodeURIComponent(l.getProfileDisplayVersionID()),i+="&slot="+window.encodeURIComponent(t),i+="&pn="+window.encodeURIComponent(e.getAdapterID()),i+="&en="+window.encodeURIComponent(e.getNetEcpm()),i+="&eg="+window.encodeURIComponent(e.getGrossEcpm()),i+="&kgpv="+window.encodeURIComponent(e.getKGPV()),h.setImageSrcToPixelURL(i))},e.analyticalPixelCallback=u,e.setImageSrcToPixelURL=function(t){var e=new window.Image;e.src=c.metaInfo.protocol+t},e.getAllPartnersBidStatuses=function(t,e){var i=!0;return c.forEachOnArray(e,(function(e,n){t[n]&&c.forEachOnObject(t[n].adapters,(function(t,e){c.forEachOnObject(e.bids,(function(t,e){i=i&&0===e.getDefaultBidStatus()}))}))})),i}}),(function(t,e){function i(t,e){return toString.call(t)==="[object "+e+"]"}var n="OpenWrap",r=909090,o=function(t){return i(t,"Function")},a=(function(){try{return window.localStorage&&o(window.localStorage.getItem)&&o(window.localStorage.setItem)}catch(t){return!1}})(),s=function(t,e,i,r){var o;if(a){try{o=window.localStorage.getItem(n)}catch(s){}if(o&&"string"==typeof o)try{o=JSON.parse(o)}catch(s){o={}}else o={};o&&(o.hasOwnProperty(t)||(o[t]={}),o[t].t=(new Date).getTime(),o[t][e]=i,"c"==e&&(o[t].g=r?1:0));try{window.localStorage.setItem(n,JSON.stringify(o))}catch(s){}}};e.setConsentDataInLS=s,e.isCmpFound=function(){return!!window.__cmp},e.getUserConsentDataFromCMP=function(){function t(t){if(t&&t.data&&t.data.__cmp&&t.data.__cmp.result){var e=t.data.__cmp.result;e&&e.consentData?s(i,"c",e.consentData,e.gdprApplies):"string"==typeof e&&s(i,"c",e)}}function e(){window.__cmp("getConsentData","vendorConsents",(function(t){t&&t.consentData?s(i,"c",t.consentData,t.gdprApplies):"string"==typeof t&&s(i,"c",t)}))}var i=r,n=0,o={__cmp:{callId:"iframe:"+ ++n,command:"getConsentData"}};window.__cmp?"function"==typeof window.__cmp?e():setTimeout((function(){"function"==typeof window.__cmp&&e()}),500):(window.top.postMessage(o,"*"),window.addEventListener("message",t))},e.getUserConsentDataFromLS=function(){var t=r,e={c:"",g:0};if(!a)return e;var i;try{i=window.localStorage.getItem(n)}catch(o){}if(i&&"string"==typeof i){try{i=JSON.parse(i)}catch(o){i={}}if(i.hasOwnProperty(t)){var s=i[t];s&&s.c&&s.t&&s.t&&parseInt(s.t,10)>(new Date).getTime()-864e5&&(e.c=s.c,e.g=s.g)}}return e}}),(function(t,e,i){function n(t){this.name=t,this.sizes=[],this.adapters={},this.creationTime=o.getCurrentTimestampInMs(),this.impressionID="",this.analyticsEnabled=!1,this.expired=!1}var r=i(2),o=i(1),a=i(9).AdapterEntry;n.prototype.setExpired=function(){return this.expired=!0,this},n.prototype.getExpiredStatus=function(){return this.expired},n.prototype.setAnalyticEnabled=function(){return this.analyticsEnabled=!0,this},n.prototype.getAnalyticEnabledStatus=function(){return this.analyticsEnabled},n.prototype.setNewBid=function(t,e){o.isOwnProperty(this.adapters,t)||(this.adapters[t]=new a(t)),this.adapters[t].setNewBid(e)},n.prototype.getBid=function(t,e){return o.isOwnProperty(this.adapters,t)?this.adapters[t].getBid(e):void 0},n.prototype.getName=function(){return this.name},n.prototype.getCreationTime=function(){return this.creationTime},n.prototype.setImpressionID=function(t){return this.impressionID=t,this},n.prototype.getImpressionID=function(){return this.impressionID},n.prototype.setSizes=function(t){return this.sizes=t,this},n.prototype.getSizes=function(){return this.sizes},n.prototype.setAdapterEntry=function(t){return o.isOwnProperty(this.adapters,t)||(this.adapters[t]=new a(t),o.log(r.MESSAGES.M4+this.name+" "+t+" "+this.adapters[t].getCallInitiatedTime())),this},n.prototype.getLastBidIDForAdapter=function(t){return o.isOwnProperty(this.adapters,t)?this.adapters[t].getLastBidID():""},t.exports.BMEntry=n,e.createBMEntry=function(t){return new n(t)}}),(function(t,e,i){function n(t){this.adapterID=t,this.callInitiatedTime=r.getCurrentTimestampInMs(),this.bids={},this.lastBidID=""}var r=i(1);n.prototype.getCallInitiatedTime=function(){return this.callInitiatedTime},n.prototype.getLastBidID=function(){return this.lastBidID},n.prototype.getBid=function(t){return r.isOwnProperty(this.bids,t)?this.bids[t]:null},n.prototype.setNewBid=function(t){delete this.bids[this.lastBidID];var e=t.getBidID();this.bids[e]=t,this.lastBidID=e},t.exports.AdapterEntry=n}),(function(t,e,i){function n(t){X.isObject(t)&&(se=t)}function r(){return se}function o(t){var e=0;try{var i=t.getSlotId().getId().split("_");e=parseInt(i[i.length-1])}catch(n){}return e}function a(t,e){if(!X.isOwnProperty(e,t))return!1;var i=e[t],n=X.getScreenWidth(de.getWindowReference()),r=X.getScreenHeight(de.getWindowReference());if(X.log(t+": responsiveSizeMapping found: screenWidth: "+n+", screenHeight: "+r),X.log(i),!X.isArray(i))return!1;for(var o=0,a=i.length;a>o;o++)if(2==i[o].length&&2==i[o][0].length){var s=i[o][0][0],d=i[o][0][1];if(n>=s&&r>=d){if(0!=i[o][1].length&&!X.isArray(i[o][1][0])){if(2==i[o][1].length&&X.isNumber(i[o][1][0])&&X.isNumber(i[o][1][1]))return[i[o][1]];X.log(t+": Unsupported mapping template."),X.log(i)}return i[o][1]}}return!1}function s(t,e){var i=de.getSizeFromSizeMapping(t,de.slotSizeMapping);if(i!==!1)return X.log(t+": responsiveSizeMapping applied: "),X.log(i),i;var n=[];return X.isFunction(e.getSizes)&&X.forEachOnArray(e.getSizes(),(function(e,i){X.isFunction(i.getWidth)&&X.isFunction(i.getHeight)?n.push([i.getWidth(),i.getHeight()]):(X.log(t+", size object does not have getWidth and getHeight method. Ignoring: "),X.log(i))})),n}function d(t,e){X.isObject(t)&&X.isFunction(t.getDivID)&&X.isArray(e)&&e[0]&&e[0]==t.getDivID()&&(t.setDisplayFunctionCalled(!0),t.setArguments(e))}function u(t,e,i){if(X.isOwnProperty(de.slotsMap,t))i||de.slotsMap[t].setSizes(de.getAdSlotSizesArray(t,e));else{var n=$.createSlot(t);n.setDivID(t),n.setPubAdServerObject(e),n.setAdUnitID(e.getAdUnitPath()),n.setAdUnitIndex(de.getAdUnitIndex(e)),n.setSizes(de.getAdSlotSizesArray(t,e)),n.setStatus(q.SLOT_STATUS.CREATED),ie&&X.isObject(JSON)&&X.isFunction(JSON.stringify)&&X.forEachOnArray(e.getTargetingKeys(),(function(t,i){n.setKeyValue(i,e.getTargeting(i))})),de.slotsMap[t]=n,X.createVLogInfoPanel(t,n.getSizes())}}function l(t){if(X.isObject(t)&&X.isFunction(t.getSlotId)){var e=t.getSlotId();if(e&&X.isFunction(e.getDomId))return e.getDomId()}return""}function p(t,e,i){X.log("Generating slotsMap"),X.forEachOnArray(t,(function(t,n){var r=de.generateSlotName(n);de.storeInSlotsMap(r,n,i),i&&X.isOwnProperty(de.slotsMap,r)&&de.setDisplayFunctionCalledIfRequired(de.slotsMap[r],e)})),X.log(de.slotsMap)}function c(t){return X.isOwnProperty(de.slotsMap,t)?de.slotsMap[t].getStatus():q.SLOT_STATUS.DISPLAYED}function g(t,e){X.isOwnProperty(de.slotsMap,t)&&de.slotsMap[t].updateStatusAfterRendering(e)}function f(t){var e=[];return X.forEachOnObject(de.slotsMap,(function(i,n){X.isOwnProperty(t,n.getStatus())&&e.push(i)})),e}function h(t){var e,i={};X.isOwnProperty(de.slotsMap,t)&&(e=de.slotsMap[t].getPubAdServerObject(),X.forEachOnArray(e.getTargetingKeys(),(function(t,n){i[n]=e.getTargeting(n)})),e.clearTargeting(),X.forEachOnObject(i,(function(t,i){X.isOwnProperty(de.wrapperTargetingKeys,t)||e.setTargeting(t,i)})))}function I(t,e,i){X.forEachOnArray(t,(function(t,n){if(X.isOwnProperty(de.slotsMap,n)){var r=de.slotsMap[n];r.setStatus(q.SLOT_STATUS.PARTNERS_CALLED),i&&(de.removeDMTargetingFromSlot(n),r.setRefreshFunctionCalled(!0),r.setArguments(e))}}))}function S(t){var e=[];return X.forEachOnArray(t,(function(t,i){e.push(de.slotsMap[i])})),e}function m(t){var e={};return X.forEachOnObject(t,(function(t,i){e[i]=""})),e}function w(t){var e=J.getBid(t),i=e.wb||null,n=e.kvp||null,r=de.slotsMap[t].getPubAdServerObject(),o=q.IGNORE_PREBID_KEYS;if(X.log("DIV: "+t+" winningBid: "),X.log(i),i&&i.getNetEcpm()>0){de.slotsMap[t].setStatus(q.SLOT_STATUS.TARGETING_ADDED),r.setTargeting(q.WRAPPER_TARGETING_KEYS.BID_ID,i.getBidID()),r.setTargeting(q.WRAPPER_TARGETING_KEYS.BID_STATUS,i.getStatus()),r.setTargeting(q.WRAPPER_TARGETING_KEYS.BID_ECPM,i.getNetEcpm().toFixed(q.COMMON.BID_PRECISION));var a=i.getDealID();a&&r.setTargeting(q.WRAPPER_TARGETING_KEYS.BID_DEAL_ID,a),r.setTargeting(q.WRAPPER_TARGETING_KEYS.BID_ADAPTER_ID,i.getAdapterID()),r.setTargeting(q.WRAPPER_TARGETING_KEYS.PUBLISHER_ID,Y.getPublisherId()),r.setTargeting(q.WRAPPER_TARGETING_KEYS.PROFILE_ID,Y.getProfileID()),r.setTargeting(q.WRAPPER_TARGETING_KEYS.PROFILE_VERSION_ID,Y.getProfileDisplayVersionID()),r.setTargeting(q.WRAPPER_TARGETING_KEYS.BID_SIZE,i.width+"x"+i.height),r.setTargeting(q.WRAPPER_TARGETING_KEYS.PLATFORM_KEY,q.PLATFORM_VALUES.DISPLAY)}X.forEachOnObject(n,(function(t,e){X.isOwnProperty(o,t)||(r.setTargeting(t,e),de.defineWrapperTargetingKey(t))}))}function E(t){X.isObject(de.wrapperTargetingKeys)||(de.wrapperTargetingKeys={}),de.wrapperTargetingKeys[t]=""}function T(t,e){return X.isObject(t)&&X.isFunction(e)?function(){return ee=!0,X.log("Disable Initial Load is called"),e.apply(t,arguments)}:(X.log("disableInitialLoad: originalFunction is not a function"),null)}function A(t,e){return X.isObject(t)&&X.isFunction(e)?function(){return X.log("enableSingleRequest is called"),e.apply(t,arguments)}:(X.log("disableInitialLoad: originalFunction is not a function"),null)}function D(t,e){return X.isObject(t)&&X.isFunction(e)?function(){var i=arguments,n=i[0]?i[0]:null;return null!=n&&(X.isOwnProperty(ae,n)||(ae[n]=[]),ae[n]=ae[n].concat(i[1])),e.apply(t,arguments)}:(X.log("setTargeting: originalFunction is not a function"),null)}function y(t,e){return X.isObject(t)&&X.isFunction(e)?function(){var i=arguments[0]||window.googletag.pubads().getSlots();return X.forEachOnArray(i,(function(t,e){delete oe[de.generateSlotName(e)]})),e.apply(t,arguments)}:(X.log("destroySlots: originalFunction is not a function"),null)}function _(t,e,i,n){X.log(t),X.log(n),de.updateStatusAfterRendering(n[0],!1),i.apply(e,n)}function O(t,e){var i=e.getStatus();i!=q.SLOT_STATUS.DISPLAYED&&i!=q.SLOT_STATUS.TARGETING_ADDED&&de.findWinningBidAndApplyTargeting(t)}function P(t,e,i){de.getStatusOfSlotForDivId(i[0])!=q.SLOT_STATUS.DISPLAYED?de.updateStatusAndCallOriginalFunction_Display("Calling original display function after timeout with arguments, ",t,e,i):X.log("AdSlot already rendered")}function b(t,e,i){X.getExternalBidderStatus(e)&&J.getAllPartnersBidStatuses(window.PWT.bidMap,e)?(X.resetExternalBidderStatus(e),i()):t>0&&window.setTimeout((function(){de.executeDisplay(t-10,e,i)}),10)}function v(t,e,i,n){switch(t){case q.SLOT_STATUS.CREATED:case q.SLOT_STATUS.PARTNERS_CALLED:var r=Object.keys(de.slotsMap);"object"==typeof window.OWT.externalBidderStatuses[n[0]]&&window.OWT.externalBidderStatuses[n[0]]&&de.executeDisplay(Y.getTimeout(),r,(function(){X.forEachOnObject(de.slotsMap,(function(t,e){de.findWinningBidIfRequired_Display(t,e)})),de.processDisplayCalledSlot(e,i,n)})),setTimeout((function(){X.log("PostTimeout.. back in display function"),X.forEachOnObject(de.slotsMap,(function(t,e){de.findWinningBidIfRequired_Display(t,e)})),de.processDisplayCalledSlot(e,i,n)}),Y.getTimeout());break;case q.SLOT_STATUS.TARGETING_ADDED:de.updateStatusAndCallOriginalFunction_Display("As DM processing is already done, Calling original display function with arguments",e,i,n);break;case q.SLOT_STATUS.DISPLAYED:de.updateStatusAndCallOriginalFunction_Display("As slot is already displayed, Calling original display function with arguments",e,i,n)}}function R(t,e,i){if(t.length>0){de.updateStatusOfQualifyingSlotsBeforeCallingAdapters(t,e,i);var n=de.arrayOfSelectedSlots(t);Z.callAdapters(n)}}function M(t,e){return Q.getUserConsentDataFromCMP(),X.isObject(t)&&X.isFunction(e)?function(){if(X.log("In display function, with arguments: "),X.log(arguments),ee)return X.log("DisableInitialLoad was called, Nothing to do"),e.apply(t,arguments);de.updateSlotsMapFromGoogleSlots(t.pubads().getSlots(),arguments,!0),de.displayFunctionStatusHandler(c(arguments[0]),t,e,arguments);var i={};i[q.SLOT_STATUS.CREATED]="",de.forQualifyingSlotNamesCallAdapters(f(i),arguments,!1);var n=arguments[0];setTimeout((function(){X.realignVLogInfoPanel(n),J.executeAnalyticsPixel()}),2e3+Y.getTimeout())}:(X.log("display: originalFunction is not a function"),null)}function C(t){de.displayHookIsAdded||(de.displayHookIsAdded=!0,X.log("Adding hook on googletag.display."),X.addHookOnFunction(t,!1,"display",this.newDisplayFunction))}function B(t,e,i){return X.isOwnProperty(de.slotsMap,t)&&de.slotsMap[t].isRefreshFunctionCalled()===!0&&de.slotsMap[t].getStatus()!==q.SLOT_STATUS.DISPLAYED?(de.findWinningBidAndApplyTargeting(e),de.updateStatusAfterRendering(e,!0),!0):i}function x(t,e){X.createVLogInfoPanel(t,de.slotsMap[e].getSizes()),X.realignVLogInfoPanel(t),J.executeAnalyticsPixel()}function F(t,e,i,n){X.log("Executing post timeout events, arguments: "),X.log(n);var r=!1;X.forEachOnArray(t,(function(t,e){var i=de.slotsMap[e].getDivID();r=de.findWinningBidIfRequired_Refresh(e,i,r),window.setTimeout((function(){de.postRederingChores(i,e)}),2e3)})),this.callOriginalRefeshFunction(r,e,i,n)}function N(t,e,i,n){t===!0?(X.log("Calling original refresh function post timeout"),i.apply(e,n)):X.log("AdSlot already rendered")}function L(t,e){var i=[],n=[];return n=0==t.length||null==t[0]?e.getSlots():t[0],X.forEachOnArray(n,(function(t,e){var n=de.generateSlotName(e);n.length>0&&(i=i.concat(n))})),i}function G(t,e){return Q.getUserConsentDataFromCMP(),X.isObject(t)&&X.isFunction(e)?function(){X.log("In Refresh function"),de.updateSlotsMapFromGoogleSlots(t.getSlots(),arguments,!1);var i=L(arguments,t);de.forQualifyingSlotNamesCallAdapters(i,arguments,!0),X.log("Intiating Call to original refresh function with Timeout: "+Y.getTimeout()+" ms");var n=arguments;"object"==typeof window.OWT.externalBidderStatuses[i[0]]&&window.OWT.externalBidderStatuses[i[0]]&&de.executeDisplay(Y.getTimeout(),i,(function(){de.postTimeoutRefreshExecution(i,t,e,n)})),setTimeout((function(){de.postTimeoutRefreshExecution(i,t,e,n)}),Y.getTimeout())}:(X.log("refresh: originalFunction is not a function"),null)}function U(t,e){return X.isObject(t)&&X.isFunction(e)?function(){return re[de.generateSlotName(this)]=arguments[0],e.apply(this,arguments)}:(X.log("newSizeMappingFunction: originalFunction is not a function"),null)}function W(t){if(X.isObject(t)&&X.isFunction(t.defineSlot)){var e=t.defineSlot("/Harshad",[[728,90]],"Harshad-02051986");if(e)return X.addHookOnFunction(e,!0,"defineSizeMapping",de.newSizeMappingFunction),t.destroySlots([e]),!0}return!1}function H(t,e){return X.isObject(t)&&X.isFunction(e)?function(){var i=e.apply(t,arguments);return X.addHookOnFunction(i,!1,"defineSizeMapping",de.newSizeMappingFunction),i}:(X.log("newDefineSlot: originalFunction is not a function"),null)}function k(t){if(X.isObject(t)&&X.isObject(t.googletag)&&X.isFunction(t.googletag.pubads)){var e=t.googletag,i=e.pubads();return X.isObject(i)?(X.addHookOnFunction(e,!1,"defineSlot",de.newDefineSlot),X.addHookOnFunction(i,!1,"disableInitialLoad",de.newDisableInitialLoadFunction),X.addHookOnFunction(i,!1,"enableSingleRequest",de.newEnableSingleRequestFunction),de.newAddHookOnGoogletagDisplay(e),X.addHookOnFunction(i,!1,"refresh",de.newRefreshFuncton),X.addHookOnFunction(i,!1,"setTargeting",de.newSetTargetingFunction),X.addHookOnFunction(e,!1,"destroySlots",de.newDestroySlotsFunction),!0):!1}return!1}function j(t){return X.isObject(t)?(t.googletag=t.googletag||{},t.googletag.cmd=t.googletag.cmd||[],!0):!1}function K(t){if(X.isUndefined(t.google_onload_fired)&&X.isObject(t.googletag)&&X.isArray(t.googletag.cmd)&&X.isFunction(t.googletag.cmd.unshift)){X.log("Succeeded to load before GPT");var e=this;return t.googletag.cmd.unshift((function(){X.log("OpenWrap initialization started"),e.addHooks(t),X.log("OpenWrap initialization completed")})),!0}return X.log("Failed to load before GPT"),!1}function V(t){return X.isObject(t)&&X.isObject(t.PWT)&&X.isFunction(t.PWT.jsLoaded)?(t.PWT.jsLoaded(),!0):!1}function z(t){t.PWT.safeFrameMessageListenerAdded||(X.addMessageEventListenerForSafeFrame(t),t.PWT.safeFrameMessageListenerAdded=!0)}var Y=i(4),q=i(2),X=i(1),J=i(6),Q=i(7),Z=i(11),$=i(13),te=!1;e.displayHookIsAdded=te;var ee=!1,ie=!0,ne={};e.wrapperTargetingKeys=ne;var re={};e.slotSizeMapping=re;var oe={};e.slotsMap=oe;var ae={},se=null,de=this;e.setWindowReference=n,e.getWindowReference=r,e.getAdUnitIndex=o,e.getSizeFromSizeMapping=a,e.getAdSlotSizesArray=s,e.setDisplayFunctionCalledIfRequired=d,e.storeInSlotsMap=u,e.generateSlotName=l,e.updateSlotsMapFromGoogleSlots=p,e.getStatusOfSlotForDivId=c,e.updateStatusAfterRendering=g,e.getSlotNamesByStatus=f,e.removeDMTargetingFromSlot=h,e.updateStatusOfQualifyingSlotsBeforeCallingAdapters=I,e.arrayOfSelectedSlots=S,e.defineWrapperTargetingKeys=m,e.findWinningBidAndApplyTargeting=w,e.defineWrapperTargetingKey=E,e.newDisableInitialLoadFunction=T,e.newEnableSingleRequestFunction=A,e.newSetTargetingFunction=D,e.newDestroySlotsFunction=y,e.updateStatusAndCallOriginalFunction_Display=_,e.findWinningBidIfRequired_Display=O,e.processDisplayCalledSlot=P,e.executeDisplay=b,e.displayFunctionStatusHandler=v,e.forQualifyingSlotNamesCallAdapters=R,e.newDisplayFunction=M,e.newAddHookOnGoogletagDisplay=C,e.findWinningBidIfRequired_Refresh=B,e.postRederingChores=x,e.postTimeoutRefreshExecution=F,e.callOriginalRefeshFunction=N,e.getQualifyingSlotNamesForRefresh=L,e.newRefreshFuncton=G,e.newSizeMappingFunction=U,e.addHookOnSlotDefineSizeMapping=W,e.newDefineSlot=H,e.addHooks=k,e.defineGPTVariables=j,e.addHooksIfPossible=K,e.callJsLoadedIfRequired=V,e.initSafeFrameListener=z,e.init=function(t){return Y.initConfig(),X.isObject(t)?(de.setWindowReference(t),de.initSafeFrameListener(t),de.wrapperTargetingKeys=de.defineWrapperTargetingKeys(q.WRAPPER_TARGETING_KEYS),de.defineGPTVariables(t),Z.registerAdapters(),de.addHooksIfPossible(t),de.callJsLoadedIfRequired(t),!0):!1}}),(function(t,e,i){function n(){return Math.floor(100*Math.random())}function r(t,e,i){c.forEachOnObject(t,(function(t,n){I.setInitTimeForSlotsForAdapter(e,t),n.fB(e,i)}))}function o(t,e){c.forEachOnArray(t,(function(t,i){var n=i.getDivID();g.resetBid(n,e),g.setSizes(n,c.generateSlotNamesFromPattern(i,"_W_x_H_"))}))}function a(t,e){return!(t>=l.getAdapterThrottle(e))}function s(t,e){c.forEachOnObject(t,(function(t,i){g.setCallInitTime(i.getDivID(),e)}))}function d(t){if(t){var e=t.ID();c.isFunction(t.fB)?I.registeredAdapters[e]=t:c.log(e+p.MESSAGES.M3)}else c.log(p.MESSAGES.M3),c.log(t)}function u(){I.registerAdapter(f.register())}var l=i(4),p=i(2),c=i(1),g=i(6),f=i(12),h={};e.registeredAdapters=h;var I=this;e.callAdapters=function(t){var e=c.generateUUID();I.resetSlots(t,e),I.callAdapter(h,t,e)},e.getRandomNumberBelow100=n,e.callAdapter=r,e.resetSlots=o,e.throttleAdapter=a,e.setInitTimeForSlotsForAdapter=s,e.registerAdapter=d,e.registerAdapters=u}),(function(t,e,i){function n(t,e){var i=I.createBid(t.bidderCode,e),n=parseInt(t.pubmaticServerErrorCode);return i.setGrossEcpm(t.cpm),i.setDealID(t.dealId),i.setDealChannel(t.dealChannel),i.setAdHtml(t.ad||""),i.setAdUrl(t.adUrl||""),i.setWidth(t.width),i.setHeight(t.height),i.setMi(t.mi),i.setReceivedTime(t.responseTimestamp),i.setServerSideResponseTime(t.serverSideResponseTime),1===n||2===n||6===n?(i.setDefaultBidStatus(-1),i.setWidth(0),i.setHeight(0)):3===n||4===n||5===n?(i.setDefaultBidStatus(0),0===i.isServerSide&&i.setPostTimeoutStatus()):n&&i.setDefaultBidStatus(1),S.forEachOnObject(t.adserverTargeting,(function(t,e){"hb_format"!==t&&"hb_source"!==t&&i.setKeyValuePair(t,e)})),i}function r(t,e){var i=e,n=e.split("@");if(n&&3==n.length){var r=n[2];t.getSize()&&t.getSize()!=r&&"0X0"!=t.getSize().toUpperCase()&&(i=n[0]+"@"+n[1]+"@"+t.getSize().toUpperCase())}return i}function o(t){var e=t.adUnitCode||"";if(e&&(e=r(t,e)),S.isOwnProperty(D.kgpvMap,e)){if("pubmaticServer"===t.bidderCode&&(t.bidderCode=t.originalBidder),t.bidderCode&&f.isServerSideAdapter(t.bidderCode)){var i=D.kgpvMap[e].divID,n=D.getPBCodeWithWidthAndHeight(i,t.bidderCode,t.width,t.height),o=D.getPBCodeWithoutWidthAndHeight(i,t.bidderCode);if(S.isOwnProperty(D.kgpvMap,n))e=n;else{if(!S.isOwnProperty(D.kgpvMap,o))return S.log("Failed to find kgpv details for S2S-adapter:"+t.bidderCode),void 0;e=o}t.ss=f.isServerSideAdapter(t.bidderCode)?1:0}t.bidderCode&&m.setBidFromBidder(D.kgpvMap[e].divID,D.transformPBBidToOWBid(t,D.kgpvMap[e].kgpv))}else S.log("Failed to find pbBid.adUnitCode in kgpvMap, pbBid.adUnitCode:"+t.adUnitCode)}function a(t){for(var e in t)if(S.isOwnProperty(t,e)&&S.isOwnProperty(D.kgpvMap,e))for(var i=t[e],r=i.bids||[],o=0;o0&&t[i].divID==e)return!1;return!0}function l(t,e,i,n,r,o,a,s,d,l){var p,c,g=a.getDivID();if(o?(p=D.getPBCodeWithWidthAndHeight(g,t,d,l),c=[[d,l]]):(p=D.getPBCodeWithoutWidthAndHeight(g,t),c=a.getSizes()),"pubmatic"==t&&(c=a.getSizes()),D.kgpvMap[p]={kgpv:r,divID:g},f.isServerSideAdapter(t))return S.log("Not calling adapter: "+t+", for "+r+", as it is serverSideEnabled."),void 0;S.isOwnProperty(e,p)||("pubmatic"!=t||"pubmatic"==t&&u(e,g))&&(e[p]={code:p,mediaTypes:{banner:{sizes:c}},sizes:c,bids:[],divID:g});var h={};switch(S.forEachOnObject(s,(function(t,e){h[t]=e})),t){case"pubmaticServer":h.publisherId=i.publisherId,h.adUnitIndex=""+a.getAdUnitIndex(),h.adUnitId=a.getAdUnitID(),h.divId=a.getDivID(),h.adSlot=r,h.wiid=n,h.profId=f.getProfileID(),window.PWT.udpv&&(h.verId=f.getProfileDisplayVersionID()),e[p].bids.push({bidder:t,params:h});break;case"pubmatic":S.isOwnProperty(e,p)&&(h.publisherId=i.publisherId,h.adSlot=r,h.wiid=n,h.profId=f.getProfileID(),window.PWT.udpv&&(h.verId=f.getProfileDisplayVersionID()),e[p].bids.push({bidder:t,params:h}));break;case"pulsepoint":S.forEachOnArray(c,(function(i,n){var r={};S.forEachOnObject(s,(function(t,e){r[t]=e})),r.cf=n[0]+"x"+n[1],e[p].bids.push({bidder:t,params:r})}));break;case"adg":S.forEachOnArray(c,(function(i,n){var r={};S.forEachOnObject(s,(function(t,e){r[t]=e})),r.width=n[0],r.height=n[1],e[p].bids.push({bidder:t,params:r})}));break;case"yieldlab":S.forEachOnArray(c,(function(i,n){var r={};S.forEachOnObject(s,(function(t,e){r[t]=e})),r.adSize=n[0]+"x"+n[1],e[p].bids.push({bidder:t,params:r})}));break;case"indexExchange":S.forEachOnArray(c,(function(i,n){var r={};s.siteID&&(r.siteId=s.siteID),r.size=n,e[p].bids.push({bidder:t,params:r})}));break;default:e[p].bids.push({bidder:t,params:h})}}function p(t,e,i,n,r){S.log(t+h.MESSAGES.M1),e&&S.forEachGeneratedKey(t,n,e,r,[],i,e[h.CONFIG.KEY_GENERATION_PATTERN],e[h.CONFIG.KEY_LOOKUP_MAP]||null,D.generatedKeyCallback,!0)}function c(t,e){if(window.pwtCreatePrebidNamespace(T),!window[T])return S.log("PreBid js is not loaded"),void 0;if(!S.isFunction(window[T].onEvent))return S.log("PreBid js onEvent method is not available"),void 0;window[T].onEvent("bidResponse",D.pbBidStreamHandler),window[T].logging=S.isDebugLogEnabled();var i={},n=w.getRandomNumberBelow100();f.forEachAdapter((function(r,o){r!==D.parentAdapterID&&(f.isServerSideAdapter(r)||0==w.throttleAdapter(n,r)?(w.setInitTimeForSlotsForAdapter(t,r),D.generatePbConf(r,o,t,i,e)):S.log(r+h.MESSAGES.M2))}));var r=[];for(var o in i)S.isOwnProperty(i,o)&&r.push(i[o]);if(r.length>0&&window[T])try{if(S.isFunction(window[T].setConfig)){var a={debug:S.isDebugLogEnabled(),bidderSequence:"random",userSync:{iframeEnabled:!0,pixelEnabled:!0,enabledBidders:(function(){var t=[];return f.forEachAdapter((function(e){t.push(e)})),t})(),syncDelay:2e3},disableAjaxTimeout:f.getDisableAjaxTimeout()};f.getGdpr()&&(a.consentManagement={cmpApi:f.getCmpApi(),timeout:f.getGdprTimeout(),allowAuctionWithoutConsent:f.getAwc()}),window[T].setConfig(a)}if(!S.isFunction(window[T].requestBids))return S.log("PreBid js requestBids function is not available"),void 0;window[T].requestBids({adUnits:r,bidsBackHandler:function(t){S.log("In PreBid bidsBackHandler with bidResponses: "),S.log(t)},timeout:f.getTimeout()-50})}catch(s){S.log("Error occured in calling PreBid."),S.log(s)}}function g(){return D.parentAdapterID}var f=i(4),h=i(2),I=i(3),S=i(1),m=i(6),w=i(11),E=(i(5),h.COMMON.PARENT_ADAPTER_PREBID),T="owpbjs";e.parentAdapterID=E;var A={};e.kgpvMap=A;var D=this;e.transformPBBidToOWBid=n,e.checkAndModifySizeOfKGPVIfRequired=r,e.pbBidStreamHandler=o,e.handleBidResponses=a,e.getPBCodeWithWidthAndHeight=s,e.isPubMaticAdUnitPresentForDivId=u,e.getPBCodeWithoutWidthAndHeight=d,e.generatedKeyCallback=l,e.generatePbConf=p,e.fetchBids=c,e.getParenteAdapterID=g,e.register=function(){return{fB:D.fetchBids,ID:D.getParenteAdapterID}}}),(function(t,e,i){function n(t){this.name=t,this.status=r.SLOT_STATUS.CREATED,this.divID="",this.adUnitID="",this.adUnitIndex=0,this.sizes=[],this.keyValues={},this.arguments=[],this.pubAdServerObject=null,this.displayFunctionCalled=!1,this.refreshFunctionCalled=!1}var r=i(2);n.prototype.getName=function(){return this.name},n.prototype.setStatus=function(t){return this.status=t,this},n.prototype.getStatus=function(){return this.status},n.prototype.setDivID=function(t){return this.divID=t,this},n.prototype.getDivID=function(){return this.divID},n.prototype.setAdUnitID=function(t){return this.adUnitID=t,this},n.prototype.getAdUnitID=function(){return this.adUnitID},n.prototype.setAdUnitIndex=function(t){return this.adUnitIndex=t,this},n.prototype.getAdUnitIndex=function(){return this.adUnitIndex},n.prototype.setSizes=function(t){return this.sizes=t,this},n.prototype.getSizes=function(){return this.sizes},n.prototype.setKeyValue=function(t,e){return this.keyValues[t]=e,this},n.prototype.setKeyValues=function(t){return this.keyValues=t,this},n.prototype.getkeyValues=function(){return this.keyValues},n.prototype.setArguments=function(t){return this.arguments=t,this},n.prototype.getArguments=function(){return this.arguments},n.prototype.setPubAdServerObject=function(t){return this.pubAdServerObject=t,this},n.prototype.getPubAdServerObject=function(){return this.pubAdServerObject},n.prototype.setDisplayFunctionCalled=function(t){return this.displayFunctionCalled=t,this},n.prototype.isDisplayFunctionCalled=function(){return this.displayFunctionCalled},n.prototype.setRefreshFunctionCalled=function(t){return this.refreshFunctionCalled=t,this},n.prototype.isRefreshFunctionCalled=function(){return this.refreshFunctionCalled},n.prototype.updateStatusAfterRendering=function(t){this.status=r.SLOT_STATUS.DISPLAYED,this.arguments=[],t?this.refreshFunctionCalled=!1:this.displayFunctionCalled=!1},t.exports.Slot=n,e.createSlot=function(t){return new n(t)}})]);