function pwtCreatePrebidNamespace(preBidNameSpace) { window[preBidNameSpace] = window[preBidNameSpace] || {}; window[preBidNameSpace].que = window[preBidNameSpace].que || [];/* prebid.js v1.21.0Updated : 2019-01-15 */!(function(u){var s=window.owpbjsChunk;window.owpbjsChunk=function(e,t,n){for(var r,i,o,a=0,d=[];a';c+="",c+="",c+="",c+=n.adHtml,c+="",d.write(c),d.close()}catch(u){f.log("Error in rendering creative in safe frame."),f.log(u),f.log("Rendering synchronously."),f.displayCreative(window.document,msgData.pwt_bid)}else n.adUrl?f.writeIframe(window.document,n.adUrl,n.width,n.height,""):(f.log("creative details are not found"),f.log(n))}}}catch(u){}},t.addMessageEventListenerForSafeFrame=function(e){f.addMessageEventListener(e,f.safeFrameCommunicationProtocol)},t.getElementLocation=function(e){var t,n=0,i=0;if(f.isFunction(e.getBoundingClientRect))t=e.getBoundingClientRect(),n=Math.floor(t.left),i=Math.floor(t.top);else for(;e;)n+=e.offsetLeft,i+=e.offsetTop,e=e.offsetParent;return{x:n,y:i}},t.createVLogInfoPanel=function(e,t){var n,i,r,o=window.document;if(f.visualDebugLogIsEnabled&&(n=o.getElementById(e),n&&t.length&&t[0][0]&&t[0][1]&&(r=e+"-pwtc-info",!f.isUndefined(o.getElementById(r))))){var a=f.getElementLocation(n);i=o.createElement("div"),i.id=r,i.style="position: absolute; /*top: "+a.y+"px;*/ left: "+a.x+"px; width: "+t[0][0]+"px; height: "+t[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+t[0][0]-16-15)+"px; z-index: 9999998;",s.title="close",s.onclick=function(){i.style.display="none"},i.appendChild(s),i.appendChild(o.createElement("br"));for(var d="Slot: "+e+" | ",c=0;ca&&(a=0),i="Bid: "+t.bidder+(t.s2s?"(s2s)":"")+": "+s.getNetEcpm()+"("+s.getGrossEcpm()+"): "+a+"ms",s.getPostTimeoutStatus()&&(i+=": POST-TIMEOUT");break;case"win-bid":var s=t.bidDetails;i="Winning Bid: "+s.getAdapterID()+": "+s.getNetEcpm();break;case"win-bid-fail":i="There are no bids from PWT";break;case"hr":i="----------------------";break;case"disp":i="Displaying creative from "+t.adapter}n.appendChild(r.createTextNode(i)),n.appendChild(r.createElement("br"))}}},t.getExternalBidderStatus=function(e){var t=!0;return f.forEachOnArray(e,(function(e,n){t=window.OWT.externalBidderStatuses[n]?t&&window.OWT.externalBidderStatuses[n].status:t})),t},t.resetExternalBidderStatus=function(e){f.forEachOnArray(e,(function(e,t){f.log("resetExternalBidderStatus: "+t),window.OWT.externalBidderStatuses[t]=void 0}))},t.ajaxRequest=function(e,t,n,i){try{i=i||{};var r,o=4,a=!0,s=i.method||(n?"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&&t&&t(r.responseText,r)},r.open(s,e),i.withCredentials&&(r.withCredentials=!0),i.preflight&&r.setRequestHeader("X-Requested-With","XMLHttpRequest"),r.setRequestHeader("Content-Type",i.contentType||"text/plain"),r.send("POST"===s&&n)}catch(d){f.log("Failed in Ajax"),f.log(d)}}}),(function(e,t){t.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"},t.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"},t.METADATA_MACROS={WIDTH:"_W_",HEIGHT:"_H_",PARTNER:"_P_",GROSS_ECPM:"_GE_",NET_ECPM:"_NE_",BID_COUNT:"_BC_",PARTNER_COUNT:"_PC_"},t.MACROS={WIDTH:"_W_",HEIGHT:"_H_",AD_UNIT_ID:"_AU_",AD_UNIT_INDEX:"_AUI_",INTEGER:"_I_",DIV:"_DIV_"},t.SLOT_STATUS={CREATED:0,PARTNERS_CALLED:1,TARGETING_ADDED:2,DISPLAYED:3},t.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"},t.IGNORE_PREBID_KEYS={hb_bidder:1,hb_adid:1,hb_pb:1,hb_size:1,hb_deal:1},t.LOGGER_PIXEL_PARAMS={TIMESTAMP:"tst",PAGE_URL:"purl",TIMEOUT:"to"},t.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: "},t.PLATFORM_VALUES={DISPLAY:"display"}}),(function(e,t,n){function i(e,t){this.adapterID=e,this.kgpv=t,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(e)?1:0,this.dealID="",this.dealChannel="",this.isWinningBid=!1,this.status=0,this.serverSideResponseTime=0,this.mi=void 0}var r=n(4),o=n(2),a=n(1);i.prototype.setServerSideResponseTime=function(e){this.serverSideResponseTime=e},i.prototype.getServerSideResponseTime=function(){return this.serverSideResponseTime},i.prototype.getServerSideStatus=function(){return this.isServerSide},i.prototype.setServerSideStatus=function(e){this.isServerSide=e},i.prototype.getAdapterID=function(){return this.adapterID},i.prototype.getBidID=function(){return this.bidID},i.prototype.setGrossEcpm=function(e){return null===e?(a.log(o.MESSAGES.M10),a.log(this),this):a.isString(e)&&(e=e.replace(/\s/g,""),0===e.length)?(a.log(o.MESSAGES.M20),a.log(this),this):window.isNaN(e)?(a.log(o.MESSAGES.M11+e),a.log(this),this):(e=window.parseFloat(e.toFixed(o.COMMON.BID_PRECISION)),this.grossEcpm=e,this.netEcpm=window.parseFloat((this.grossEcpm*r.getAdapterRevShare(this.getAdapterID())).toFixed(o.COMMON.BID_PRECISION)),this)},i.prototype.getGrossEcpm=function(){return this.grossEcpm},i.prototype.getNetEcpm=function(){return this.netEcpm},i.prototype.setDefaultBidStatus=function(e){return this.defaultBid=e,this},i.prototype.getDefaultBidStatus=function(){return this.defaultBid},i.prototype.setAdHtml=function(e){return this.adHtml=e,this},i.prototype.getAdHtml=function(){return this.adHtml},i.prototype.setAdUrl=function(e){return this.adUrl=e,this},i.prototype.getAdUrl=function(){return this.adUrl},i.prototype.setHeight=function(e){return this.height=e,this},i.prototype.getHeight=function(){return this.height},i.prototype.setWidth=function(e){return this.width=e,this},i.prototype.getWidth=function(){return this.width},i.prototype.getKGPV=function(){return this.kgpv},i.prototype.setKeyValuePair=function(e,t){return this.keyValuePairs[e.substr(0,20)]=t,this},i.prototype.getKeyValuePairs=function(){return this.keyValuePairs},i.prototype.setPostTimeoutStatus=function(){return this.isPostTimeout=!0,this},i.prototype.getPostTimeoutStatus=function(){return this.isPostTimeout},i.prototype.setReceivedTime=function(e){return this.receivedTime=e,this},i.prototype.getReceivedTime=function(){return this.receivedTime},i.prototype.setDealID=function(e){return e&&(this.dealID=e,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},i.prototype.getDealID=function(){return this.dealID},i.prototype.setDealChannel=function(e){return this.dealID&&e&&(this.dealChannel=e,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},i.prototype.getDealChannel=function(){return this.dealChannel},i.prototype.setWinningBidStatus=function(){return this.isWinningBid=!0,this},i.prototype.getWinningBidStatus=function(){return this.isWinningBid},i.prototype.setStatus=function(e){return this.status=e,this},i.prototype.getStatus=function(){return this.status},i.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)},i.prototype.setMi=function(e){return this.mi=e,this},i.prototype.getMi=function(){return this.mi},e.exports.Bid=i,t.createBid=function(e,t){return new i(e,t)}}),(function(e,t,n){function i(){var e=o.COMMON.PARENT_ADAPTER_PREBID;if(!a.isOwnProperty(r.adapters,e)){var t={};t[o.CONFIG.REV_SHARE]="0.0",t[o.CONFIG.THROTTLE]="100",t[o.CONFIG.KEY_GENERATION_PATTERN]="_DIV_",t[o.CONFIG.KEY_LOOKUP_MAP]={},r.adapters[e]=t}}var r=n(5),o=n(2),a=n(1),s=null;s=this,t.getPublisherId=function(){return a.trim(r.pwt.pubid)||"0"},t.getMataDataPattern=function(){return a.isString(r[o.CONFIG.COMMON][o.CONFIG.META_DATA_PATTERN])?r[o.CONFIG.COMMON][o.CONFIG.META_DATA_PATTERN]:null},t.getSendAllBidsStatus=function(){return window.parseInt(r[o.CONFIG.COMMON][o.CONFIG.SEND_ALL_BIDS])||0},t.getTimeout=function(){return window.parseInt(r.pwt.t)||1e3},t.getDisableAjaxTimeout=function(){var e=r.pwt;return a.isOwnProperty(e,o.CONFIG.DISABLE_AJAX_TIMEOUT)?1==r.pwt.disableAjaxTimeout:!0},t.getAdapterRevShare=function(e){var t=r.adapters;return a.isOwnProperty(t[e],o.CONFIG.REV_SHARE)?1-window.parseFloat(t[e][o.CONFIG.REV_SHARE])/100:1},t.getAdapterThrottle=function(e){var t=r.adapters;return a.isOwnProperty(t[e],o.CONFIG.THROTTLE)?100-window.parseFloat(t[e][o.CONFIG.THROTTLE]):0},t.isServerSideAdapter=function(e){var t=r.adapters;return t[e]&&a.isOwnProperty(t[e],o.CONFIG.SERVER_SIDE_ENABLED)?1===window.parseInt(t[e][o.CONFIG.SERVER_SIDE_ENABLED]):!1},t.getAdapterMaskBidsStatus=function(e){var t=r.adapters,n={audienceNetwork:1};return a.isOwnProperty(n,e)?n[e]:a.isOwnProperty(t[e],o.CONFIG.MASK_BIDS)?window.parseInt(t[e][o.CONFIG.MASK_BIDS])||0:0},t.getBidPassThroughStatus=function(e){var t=r.adapters;return a.isOwnProperty(t[e],o.CONFIG.BID_PASS_THROUGH)?window.parseInt(t[e][o.CONFIG.BID_PASS_THROUGH]):0},t.getProfileID=function(){return a.trim(r.pwt[o.CONFIG.PROFILE_ID])||"0"},t.getProfileDisplayVersionID=function(){return a.trim(r.pwt[o.CONFIG.PROFILE_VERSION_ID])||"0"},t.getAnalyticsPixelURL=function(){return r.pwt[o.CONFIG.LOGGER_URL]||!1},t.getMonetizationPixelURL=function(){return r.pwt[o.CONFIG.TRACKER_URL]||!1},t.forEachAdapter=function(e){a.forEachOnObject(r.adapters,e)},t.getGdpr=function(){var e=r[o.CONFIG.COMMON][o.CONFIG.GDPR_CONSENT]||o.CONFIG.DEFAULT_GDPR_CONSENT;return"1"===e},t.getCmpApi=function(){return r[o.CONFIG.COMMON][o.CONFIG.GDPR_CMPAPI]||o.CONFIG.DEFAULT_GDPR_CMPAPI},t.getGdprTimeout=function(){var e=r[o.CONFIG.COMMON][o.CONFIG.GDPR_TIMEOUT];return e?window.parseInt(e):o.CONFIG.DEFAULT_GDPR_TIMEOUT},t.getAwc=function(){var e=r[o.CONFIG.COMMON][o.CONFIG.GDPR_AWC]||o.CONFIG.DEFAULT_GDPR_AWC;return"1"===e},t.addPrebidAdapter=i,t.initConfig=function(){s.addPrebidAdapter();var e={};a.forEachOnObject(o.CONFIG,(function(t,n){e[n]=""})),a.forEachOnObject(r.adapters,(function(t,n){var i={};a.forEachOnObject(n,(function(t,n){a.isOwnProperty(e,t)||(i[t]=n)})),a.forEachOnObject(n[o.CONFIG.KEY_LOOKUP_MAP],(function(e,t){a.forEachOnObject(i,(function(e,n){t[e]=n}))}))}))}}),(function(e,t){t.pwt={t:"1000",pid:"938",gcv:"70",pdvid:"33",pubid:"156315",dataURL:"t.pubmatic.com/wl?",winURL:"t.pubmatic.com/wt?",metaDataPattern:0,sendAllBids:"0",adserver:"UAS",gdpr:"1",cmp:"iab",gdprTimeout:"500",awc:"1",platform:"display",refreshInterval:0},t.adapters={criteo:{rev_share:"0.0",timeout:"1000",throttle:"100",kgp:"_AU_@_W_x_H_",klm:{"10004559@970x250":{zoneId:"1317729"},"10004560@728x90":{zoneId:"1317745"},"10004561@300x250":{zoneId:"1364198"},"10004561@300x600":{zoneId:"1317728"},"10004562@300x250":{zoneId:"1364198"},"10004562@300x600":{zoneId:"1317728"},"10004563@728x90":{zoneId:"1317745"},"10004568@300x250":{zoneId:"1364198"},"10004568@320x50":{zoneId:"1364199"},"10004570@300x250":{zoneId:"1364198"},"10004570@320x50":{zoneId:"1364199"},"10004576@970x250":{zoneId:"1317729"},"10007395@970x250":{zoneId:"1317729"},"10007397@300x250":{zoneId:"1364198"},"10007397@300x600":{zoneId:"1317728"},"10007400@970x250":{zoneId:"1317729"},"10007402@728x90":{zoneId:"1317745"},"10007409@300x250":{zoneId:"1364198"},"10007409@320x50":{zoneId:"1364199"},"10007411@300x250":{zoneId:"1364198"},"10007411@320x50":{zoneId:"1364199"}}},indexExchange:{rev_share:"0.0",timeout:"1000",throttle:"100",pt:0,serverSideEnabled:"0","in-app":0,kgp:"_AU_@_W_x_H_",klm:{"10004559@970x250":{siteID:"296565",id:"1"},"10004560@728x90":{siteID:"304541",id:"2"},"10004561@300x1050":{siteID:"304544",id:"5"},"10004561@300x250":{siteID:"304542",id:"3"},"10004561@300x600":{siteID:"304543",id:"4"},"10004562@300x250":{siteID:"304545",id:"6"},"10004562@300x600":{siteID:"304546",id:"7"},"10004563@728x90":{siteID:"304547",id:"8"},"10004568@300x250":{siteID:"313989",id:"20"},"10004568@320x50":{siteID:"313990",id:"21"},"10004570@300x250":{siteID:"313991",id:"22"},"10004570@320x50":{siteID:"313992",id:"23"},"10004576@970x250":{siteID:"313978",id:"9"},"10007395@970x250":{siteID:"313980",id:"11"},"10007397@300x1050":{siteID:"313984",id:"15"},"10007397@300x250":{siteID:"313983",id:"14"},"10007397@300x600":{siteID:"313982",id:"13"},"10007400@970x250":{siteID:"313981",id:"12"},"10007402@728x90":{siteID:"313979",id:"10"},"10007409@300x250":{siteID:"313985",id:"16"},"10007409@320x50":{siteID:"313986",id:"17"},"10007411@300x250":{siteID:"313987",id:"18"},"10007411@320x50":{siteID:"313988",id:"19"}}},districtm:{rev_share:"0.0",timeout:"1000",throttle:"100",serverSideEnabled:"0",amp:0,video:0,"in-app":0,kgp:"_AU_@_W_x_H_",klm:{"10004559@970x250":{placementId:"13857492",member:"1908"},"10004560@728x90":{placementId:"13857489",member:"1908"},"10004561@300x250":{placementId:"13857468",member:"1908"},"10004561@300x600":{placementId:"13857474",member:"1908"},"10004562@300x250":{placementId:"13857468",member:"1908"},"10004562@300x600":{placementId:"13857474",member:"1908"},"10004563@728x90":{placementId:"13857489",member:"1908"},"10004568@300x250":{placementId:"14377368",member:"1908"},"10004568@320x50":{placementId:"14377369",member:"1908"},"10004570@300x250":{placementId:"14377370",member:"1908"},"10004570@320x50":{placementId:"14377371",member:"1908"},"10004576@970x250":{placementId:"13857492",member:"1908"},"10007395@970x250":{placementId:"14377372",member:"1908"},"10007397@300x1050":{placementId:"14377373",member:"1908"},"10007397@300x250":{placementId:"14377374",member:"1908"},"10007397@300x600":{placementId:"14377375",member:"1908"},"10007400@970x250":{placementId:"14377376",member:"1908"},"10007402@728x90":{placementId:"14377377",member:"1908"},"10007409@300x250":{placementId:"14377378",member:"1908"},"10007409@320x50":{placementId:"14377379",member:"1908"},"10007411@300x250":{placementId:"14377380",member:"1908"},"10007411@320x50":{placementId:"14377381",member:"1908"},"10016052@300x250":{placementId:"13857468",member:"1908"},"10016052@300x600":{placementId:"13857474",member:"1908"},"10016052@320x50":{placementId:"13857479",member:"1908"},"10016052@728x90":{placementId:"13857489",member:"1908"},"10016052@970x250":{placementId:"13857492",member:"1908"}}},pubmatic:{publisherId:"156315",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"},rhythmone:{rev_share:"0.0",timeout:"1000",throttle:"100",kgp:"_AU_@_W_x_H_",klm:{"10004559@970x250":{placementId:"78329"},"10004560@728x90":{placementId:"78329"},"10004561@300x1050":{placementId:"78329"},"10004561@300x250":{placementId:"78329"},"10004561@300x600":{placementId:"78329"},"10004562@300x250":{placementId:"78329"},"10004562@300x600":{placementId:"78329"},"10004563@728x90":{placementId:"78329"},"10004568@300x250":{placementId:"78329"},"10004568@320x50":{placementId:"78329"},"10004570@300x250":{placementId:"78329"},"10004570@320x50":{placementId:"78329"},"10004576@970x250":{placementId:"78329"},"10007395@970x250":{placementId:"78329"},"10007397@300x1050":{placementId:"78329"},"10007397@300x250":{placementId:"78329"},"10007397@300x600":{placementId:"78329"},"10007400@970x250":{placementId:"78329"},"10007402@728x90":{placementId:"78329"},"10007409@300x250":{placementId:"78329"},"10007409@320x50":{placementId:"78329"},"10007411@300x250":{placementId:"78329"},"10007411@320x50":{placementId:"78329"}}},"33across":{rev_share:"0.0",timeout:"1000",throttle:"100",kgp:"_AU_@_W_x_H_",klm:{"10004559@970x250":{productId:"siab",siteId:"bbyUBO6nir6kLoaKkGJozW"},"10004560@728x90":{productId:"siab",siteId:"bQJryU6nir6ikQaKlId8sQ"},"10004561@300x1050":{productId:"siab",siteId:"N/A"},"10004561@300x250":{productId:"siab",siteId:"cvhg5S6nir6iiWaKkv7mNO"},"10004561@300x600":{productId:"siab",siteId:"c0CftG6nir6iXiaKkGJozW"},"10004562@300x250":{productId:"siab",siteId:"dCwaBe6nir6lDBaKlId8sQ"},"10004562@300x600":{productId:"siab",siteId:"adXlHm6nmr6jb9aKkv7mNO"},"10004563@728x90":{productId:"siab",siteId:"biJRUE6nmr6jb9aKkv7mNO"},"10004568@300x250":{productId:"siab",siteId:"bntUd06nqr6jeUaKlId8sQ"},"10004568@320x50":{productId:"siab",siteId:"bXHnvA6nqr6jeUaKlId8sQ"},"10004570@300x250":{productId:"siab",siteId:"cv4bMQ6nqr6ikQaKlId8sQ"},"10004570@320x50":{productId:"siab",siteId:"dO8lHm6qir6jeUaKlId8sQ"},"10004576@970x250":{productId:"siab",siteId:"c310Vs6nqr6jeUaKlId8sQ"},"10007395@970x250":{productId:"siab",siteId:"dFtH-s6nqr6iXiaKkGJozW"},"10007397@300x1050":{productId:"siab",siteId:"N/A"},"10007397@300x250":{productId:"siab",siteId:"aX0I5i6nur6jb9aKkv7mNO"},"10007397@300x600":{productId:"siab",siteId:"bNEElY6nur6iXiaKkGJozW"},"10007400@970x250":{productId:"siab",siteId:"dPf03Q6nur6iXiaKkGJozW"},"10007402@728x90":{productId:"siab",siteId:"d9IKO-6nur6lDBaKlId8sQ"},"10007409@300x250":{productId:"siab",siteId:"cHYM186nyr6jeUaKlId8sQ"},"10007409@320x50":{productId:"siab",siteId:"dc1eIu6nyr6iowaKkGJozW"},"10007411@300x250":{productId:"siab",siteId:"dMhEYM6nyr6jeUaKlId8sQ"},"10007411@320x50":{productId:"siab",siteId:"baIky26nCr6jeUaKlId8sQ"}}}}}),(function(e,t,n){function i(e){l.isOwnProperty(window.PWT.bidMap,e)||(window.PWT.bidMap[e]=f.createBMEntry(e))}function r(e,t,n,i){window.PWT.bidMap[e].setNewBid(t,n),window.PWT.bidIdMap[n.getBidID()]={s:e,a:t},0===n.getDefaultBidStatus()&&"pubmaticServer"!==n.adapterID&&l.vLogInfo(e,{type:"bid",bidder:t+(0!==u.getBidPassThroughStatus(t)?"(Passthrough)":""),bidDetails:n,latency:i,s2s:u.isServerSideAdapter(t)})}function o(e,t,n){var i="",r=0,o=0,s=p.METADATA_MACROS,d="g";l.forEachOnObject(t.adapters,(function(t,n){""!=n.getLastBidID()&&("pubmaticServer"!==t&&o++,l.forEachOnObject(n.bids,(function(t,n){1!=n.getDefaultBidStatus()&&1!=n.getPostTimeoutStatus()&&0!=n.getGrossEcpm()&&(r++,i+=a(e,n))})))})),0==i.length&&(i=e),i=i.replace(new RegExp(s.BID_COUNT,d),r),i=i.replace(new RegExp(s.PARTNER_COUNT,d),o),n[p.WRAPPER_TARGETING_KEYS.META_DATA]=encodeURIComponent(i)}function a(e,t){var n=p.METADATA_MACROS,i="g";return e.replace(new RegExp(n.PARTNER,i),t.getAdapterID()).replace(new RegExp(n.WIDTH,i),t.getWidth()).replace(new RegExp(n.HEIGHT,i),t.getHeight()).replace(new RegExp(n.GROSS_ECPM,i),t.getGrossEcpm()).replace(new RegExp(n.NET_ECPM,i),t.getNetEcpm())}function s(e){var t=null,n={};return l.forEachOnObject(e.adapters,(function(e,i){var r=h.auctionBidsCallBack(e,i,n,t);t=r.winningBid,n=r.keyValuePairs})),null!==u.getMataDataPattern()&&o(u.getMataDataPattern(),e,n),{wb:t,kvp:n}}function d(e,t,n,i){return""!=t.getLastBidID()?(l.forEachOnObject(t.bids,(function(t,r){return r.getPostTimeoutStatus()===!0?{winningBid:i,keyValuePairs:n}:(1!==r.getDefaultBidStatus()&&1==u.getSendAllBidsStatus()&&r.setSendAllBidsKeys(),0===u.getBidPassThroughStatus(e)&&l.copyKeyValueObject(n,r.getKeyValuePairs()),0!==u.getBidPassThroughStatus(e)?(l.copyKeyValueObject(n,r.getKeyValuePairs()),{winningBid:i,keyValuePairs:n}):(null==i?i=r:i.getNetEcpm()0?(t.setStatus(1),t.setWinningBidStatus(),l.vLogInfo(e,{type:"win-bid",bidDetails:t})):l.vLogInfo(e,{type:"win-bid-fail"})}return{wb:t,kvp:n}},t.getBidById=function(e){if(!l.isOwnProperty(window.PWT.bidIdMap,e))return l.log(p.MESSAGES.M25+e),null;var t=window.PWT.bidIdMap[e].s,n=window.PWT.bidIdMap[e].a;if(l.isOwnProperty(window.PWT.bidMap,t)){l.log("BidID: "+e+", DivID: "+t+p.MESSAGES.M19+n);var i=window.PWT.bidMap[t].getBid(n,e);return null==i?null:{bid:i,slotid:t}}return l.log(p.MESSAGES.M25+e),null},t.displayCreative=function(e,t){var n=h.getBidById(t);if(n){var i=n.bid,r=n.slotid;l.displayCreative(e,i),l.vLogInfo(r,{type:"disp",adapter:i.getAdapterID()}),h.executeMonetizationPixel(r,i)}},t.executeAnalyticsPixel=function(){var e={s:[]},t=u.getPublisherId(),n=g.getUserConsentDataFromLS(),i="",r=u.getAnalyticsPixelURL(),o={};r&&(r=l.metaInfo.protocol+r+"pubid="+t,e[p.CONFIG.PUBLISHER_ID]=u.getPublisherId(),e[p.LOGGER_PIXEL_PARAMS.TIMEOUT]=""+u.getTimeout(),e[p.LOGGER_PIXEL_PARAMS.PAGE_URL]=window.decodeURIComponent(l.metaInfo.pageURL),e[p.LOGGER_PIXEL_PARAMS.TIMESTAMP]=l.getCurrentTimestamp(),e[p.CONFIG.PROFILE_ID]=u.getProfileID(),e[p.CONFIG.PROFILE_VERSION_ID]=u.getProfileDisplayVersionID(),u.getGdpr()&&(i=n&&n.c?encodeURIComponent(n.c):"",e[p.CONFIG.GDPR_CONSENT]=n&&n.g,e[p.CONFIG.CONSENT_STRING]=i,r+="&gdEn="+(u.getGdpr()?1:0)),l.forEachOnObject(window.PWT.bidMap,(function(e,t){h.analyticalPixelCallback(e,t,o)})),l.forEachOnObject(o,(function(t,n){n.length>0&&(e.s=n,e[p.COMMON.IMPRESSION_ID]=window.encodeURIComponent(t),e.psl=n.psl,l.ajaxRequest(r,(function(){}),"json="+window.encodeURIComponent(JSON.stringify(e)),{contentType:"application/x-www-form-urlencoded",withCredentials:!0}))})))},t.executeMonetizationPixel=function(e,t){var n=u.getMonetizationPixelURL(),i=u.getPublisherId();n&&(n+="pubid="+i,n+="&purl="+window.encodeURIComponent(l.metaInfo.pageURL),n+="&tst="+l.getCurrentTimestamp(),n+="&iid="+window.encodeURIComponent(window.PWT.bidMap[e].getImpressionID()),n+="&bidid="+window.encodeURIComponent(t.getBidID()),n+="&pid="+window.encodeURIComponent(u.getProfileID()),n+="&pdvid="+window.encodeURIComponent(u.getProfileDisplayVersionID()),n+="&slot="+window.encodeURIComponent(e),n+="&pn="+window.encodeURIComponent(t.getAdapterID()),n+="&en="+window.encodeURIComponent(t.getNetEcpm()),n+="&eg="+window.encodeURIComponent(t.getGrossEcpm()),n+="&kgpv="+window.encodeURIComponent(t.getKGPV()),h.setImageSrcToPixelURL(n))},t.analyticalPixelCallback=c,t.setImageSrcToPixelURL=function(e){var t=new window.Image;t.src=l.metaInfo.protocol+e},t.getAllPartnersBidStatuses=function(e,t){var n=!0;return l.forEachOnArray(t,(function(t,i){e[i]&&l.forEachOnObject(e[i].adapters,(function(e,t){l.forEachOnObject(t.bids,(function(e,t){n=n&&0===t.getDefaultBidStatus()}))}))})),n}}),(function(e,t){function n(e,t){return toString.call(e)==="[object "+t+"]"}var i="OpenWrap",r=909090,o=function(e){return n(e,"Function")},a=(function(){try{return window.localStorage&&o(window.localStorage.getItem)&&o(window.localStorage.setItem)}catch(e){return!1}})(),s=function(e,t,n,r){var o;if(a){try{o=window.localStorage.getItem(i)}catch(s){}if(o&&"string"==typeof o)try{o=JSON.parse(o)}catch(s){o={}}else o={};o&&(o.hasOwnProperty(e)||(o[e]={}),o[e].t=(new Date).getTime(),o[e][t]=n,"c"==t&&(o[e].g=r?1:0));try{window.localStorage.setItem(i,JSON.stringify(o))}catch(s){}}};t.setConsentDataInLS=s,t.isCmpFound=function(){return!!window.__cmp},t.getUserConsentDataFromCMP=function(){function e(e){if(e&&e.data&&e.data.__cmp&&e.data.__cmp.result){var t=e.data.__cmp.result;t&&t.consentData?s(n,"c",t.consentData,t.gdprApplies):"string"==typeof t&&s(n,"c",t)}}function t(){window.__cmp("getConsentData","vendorConsents",(function(e){e&&e.consentData?s(n,"c",e.consentData,e.gdprApplies):"string"==typeof e&&s(n,"c",e)}))}var n=r,i=0,o={__cmp:{callId:"iframe:"+ ++i,command:"getConsentData"}};window.__cmp?"function"==typeof window.__cmp?t():setTimeout((function(){"function"==typeof window.__cmp&&t()}),500):(window.top.postMessage(o,"*"),window.addEventListener("message",e))},t.getUserConsentDataFromLS=function(){var e=r,t={c:"",g:0};if(!a)return t;var n;try{n=window.localStorage.getItem(i)}catch(o){}if(n&&"string"==typeof n){try{n=JSON.parse(n)}catch(o){n={}}if(n.hasOwnProperty(e)){var s=n[e];s&&s.c&&s.t&&s.t&&parseInt(s.t,10)>(new Date).getTime()-864e5&&(t.c=s.c,t.g=s.g)}}return t}}),(function(e,t,n){function i(e){this.name=e,this.sizes=[],this.adapters={},this.creationTime=o.getCurrentTimestampInMs(),this.impressionID="",this.analyticsEnabled=!1,this.expired=!1}var r=n(2),o=n(1),a=n(9).AdapterEntry;i.prototype.setExpired=function(){return this.expired=!0,this},i.prototype.getExpiredStatus=function(){return this.expired},i.prototype.setAnalyticEnabled=function(){return this.analyticsEnabled=!0,this},i.prototype.getAnalyticEnabledStatus=function(){return this.analyticsEnabled},i.prototype.setNewBid=function(e,t){o.isOwnProperty(this.adapters,e)||(this.adapters[e]=new a(e)),this.adapters[e].setNewBid(t)},i.prototype.getBid=function(e,t){return o.isOwnProperty(this.adapters,e)?this.adapters[e].getBid(t):void 0},i.prototype.getName=function(){return this.name},i.prototype.getCreationTime=function(){return this.creationTime},i.prototype.setImpressionID=function(e){return this.impressionID=e,this},i.prototype.getImpressionID=function(){return this.impressionID},i.prototype.setSizes=function(e){return this.sizes=e,this},i.prototype.getSizes=function(){return this.sizes},i.prototype.setAdapterEntry=function(e){return o.isOwnProperty(this.adapters,e)||(this.adapters[e]=new a(e),o.log(r.MESSAGES.M4+this.name+" "+e+" "+this.adapters[e].getCallInitiatedTime())),this},i.prototype.getLastBidIDForAdapter=function(e){return o.isOwnProperty(this.adapters,e)?this.adapters[e].getLastBidID():""},e.exports.BMEntry=i,t.createBMEntry=function(e){return new i(e)}}),(function(e,t,n){function i(e){this.adapterID=e,this.callInitiatedTime=r.getCurrentTimestampInMs(),this.bids={},this.lastBidID=""}var r=n(1);i.prototype.getCallInitiatedTime=function(){return this.callInitiatedTime},i.prototype.getLastBidID=function(){return this.lastBidID},i.prototype.getBid=function(e){return r.isOwnProperty(this.bids,e)?this.bids[e]:null},i.prototype.setNewBid=function(e){delete this.bids[this.lastBidID];var t=e.getBidID();this.bids[t]=e,this.lastBidID=t},e.exports.AdapterEntry=i}),(function(e,t,n){function i(e){P.isObject(e)&&(x=e)}function r(){return x}function o(e,t){P.isObject(e)&&P.isFunction(e.getDivID)&&P.isArray(t)&&t[0]&&t[0]==e.getDivID()&&(e.setDisplayFunctionCalled(!0),e.setArguments(t))}function a(e,t){if(!P.isOwnProperty(M.slotsMap,e)){var n=_.createSlot(e);n.setDivID(e),n.setPubAdServerObject(t),n.setAdUnitID(t.getAdUnit()),n.setAdUnitIndex(0),n.setSizes(t.getDimensions()),n.setStatus(v.SLOT_STATUS.CREATED),M.slotsMap[e]=n,P.createVLogInfoPanel(e,n.getSizes())}}function s(e,t,n){P.log("Generating slotsMap"),P.forEachOnArray(e,(function(e,i){var r=i.getId();M.storeInSlotsMap(r,i,n),n&&P.isOwnProperty(M.slotsMap,r)&&M.setDisplayFunctionCalledIfRequired(M.slotsMap[r],t)})),P.log(M.slotsMap)}function d(e){return P.isOwnProperty(M.slotsMap,e)?M.slotsMap[e].getStatus():v.SLOT_STATUS.DISPLAYED}function c(e,t){P.isOwnProperty(M.slotsMap,e)&&M.slotsMap[e].updateStatusAfterRendering(t)}function u(e){var t=A.getBid(e),n=t.wb||null,i=t.kvp||null,r=M.slotsMap[e].getPubAdServerObject(),o=v.IGNORE_PREBID_KEYS;if(P.log("DIV: "+e+" winningBid: "),P.log(n),n&&n.getNetEcpm()>0){M.slotsMap[e].setStatus(v.SLOT_STATUS.TARGETING_ADDED),r.setTargeting(v.WRAPPER_TARGETING_KEYS.BID_ID,n.getBidID()),r.setTargeting(v.WRAPPER_TARGETING_KEYS.BID_STATUS,n.getStatus()),r.setTargeting(v.WRAPPER_TARGETING_KEYS.BID_ECPM,n.getNetEcpm().toFixed(v.COMMON.BID_PRECISION)),r.setWrapperEcpm(n.getNetEcpm().toFixed(v.COMMON.BID_PRECISION));var a=n.getDealID();a&&r.setTargeting(v.WRAPPER_TARGETING_KEYS.BID_DEAL_ID,a),r.setTargeting(v.WRAPPER_TARGETING_KEYS.BID_ADAPTER_ID,n.getAdapterID()),r.setTargeting(v.WRAPPER_TARGETING_KEYS.PUBLISHER_ID,b.getPublisherId()),r.setTargeting(v.WRAPPER_TARGETING_KEYS.PROFILE_ID,b.getProfileID()),r.setTargeting(v.WRAPPER_TARGETING_KEYS.PROFILE_VERSION_ID,b.getProfileDisplayVersionID()),r.setTargeting(v.WRAPPER_TARGETING_KEYS.PLATFORM_KEY,v.PLATFORM_VALUES.DISPLAY)}P.forEachOnObject(i,(function(e,t){P.isOwnProperty(o,e)||r.setTargeting(e,t)}))}function p(e,t){var n=t.getStatus();n!=v.SLOT_STATUS.DISPLAYED&&n!=v.SLOT_STATUS.TARGETING_ADDED&&M.findWinningBidAndApplyTargeting(e)}function l(e,t,n,i){P.log(e),P.log(i),M.updateStatusAfterRendering(i[0],!1),n(i[0])}function g(e,t,n){M.getStatusOfSlotForDivId(n[0])!=v.SLOT_STATUS.DISPLAYED?M.updateStatusAndCallOriginalFunction_Display("Calling original display function after timeout with arguments, ",e,t,n):P.log("AdSlot already rendered")}function f(e){var t=[];return P.forEachOnArray(e,(function(e,n){t.push(M.slotsMap[n])})),t}function h(e){var t=[];return P.forEachOnObject(M.slotsMap,(function(n,i){P.isOwnProperty(e,i.getStatus())&&t.push(n)})),t}function m(e){P.forEachOnArray(e,(function(e,t){if(P.isOwnProperty(M.slotsMap,t)){var n=M.slotsMap[t];n.setStatus(v.SLOT_STATUS.PARTNERS_CALLED)}}))}function I(e,t,n){if(e.length>0){M.updateStatusOfQualifyingSlotsBeforeCallingAdapters(e,t,n);var i=M.arrayOfSelectedSlots(e);T.callAdapters(i)}}function w(e,t,n){P.getExternalBidderStatus(t)&&A.getAllPartnersBidStatuses(window.PWT.bidMap,t)?(P.resetExternalBidderStatus(t),n()):e>0&&window.setTimeout((function(){M.executeDisplay(e-10,t,n)}),10)}function y(e,t,n,i){switch(e){case v.SLOT_STATUS.CREATED:case v.SLOT_STATUS.PARTNERS_CALLED:var r=Object.keys(M.slotsMap);"object"==typeof window.OWT.externalBidderStatuses[i[0]]&&window.OWT.externalBidderStatuses[i[0]]&&M.executeDisplay(b.getTimeout(),r,(function(){P.forEachOnObject(M.slotsMap,(function(e,t){M.findWinningBidIfRequired_Display(e,t)})),M.processDisplayCalledSlot(t,n,i)})),setTimeout((function(){P.log("PostTimeout.. back in display function"),P.forEachOnObject(M.slotsMap,(function(e,t){M.findWinningBidIfRequired_Display(e,t)})),M.processDisplayCalledSlot(t,n,i)}),b.getTimeout());break;case v.SLOT_STATUS.TARGETING_ADDED:M.updateStatusAndCallOriginalFunction_Display("As DM processing is already done, Calling original display function with arguments",t,n,i);break;case v.SLOT_STATUS.DISPLAYED:M.updateStatusAndCallOriginalFunction_Display("As slot is already displayed, Calling original display function with arguments",t,n,i)}}function S(e){e.Phoenix.registerPreDisplayHandler((function(e,t){O.getUserConsentDataFromCMP();var n=window.Phoenix||{};M.updateSlotsMapFromPhoenixSlots(n.getSlots(),[t],!0),M.displayFunctionStatusHandler(d(t),{},e,[t]);var i={};i[v.SLOT_STATUS.CREATED]="",M.forQualifyingSlotNamesCallAdapters(h(i),[t],!1),setTimeout((function(){P.realignVLogInfoPanel(t),A.executeAnalyticsPixel()}),2e3+b.getTimeout())}))}function E(e){return P.isObject(e)&&P.isObject(e.PWT)&&P.isFunction(e.PWT.jsLoaded)?(e.PWT.jsLoaded(),!0):!1}function D(e){if(P.isUndefined(e.Phoenix.isJSLoaded)&&P.isObject(e.Phoenix)&&P.isArray(e.Phoenix.EQ)){P.log("Succeeded to load before UAS");var t=this;return e.Phoenix.EQ.unshift((function(){P.log("OpenWrap initialization started"),t.initiateDisplay(e),P.log("OpenWrap initialization completed")})),C.init(e),!0}return P.log("Failed to load before UAS"),!1}var b=n(4),v=n(2),P=n(1),T=n(11),A=n(6),O=n(7),_=n(13),C=n(14),R={};t.slotsMap=R;var x=null,M=this;t.setWindowReference=i,t.getWindowReference=r,t.setDisplayFunctionCalledIfRequired=o,t.storeInSlotsMap=a,t.updateSlotsMapFromPhoenixSlots=s,t.getStatusOfSlotForDivId=d,t.updateStatusAfterRendering=c,t.findWinningBidAndApplyTargeting=u,t.findWinningBidIfRequired_Display=p,t.updateStatusAndCallOriginalFunction_Display=l,t.processDisplayCalledSlot=g,t.arrayOfSelectedSlots=f,t.getSlotNamesByStatus=h,t.updateStatusOfQualifyingSlotsBeforeCallingAdapters=m,t.forQualifyingSlotNamesCallAdapters=I,t.executeDisplay=w,t.displayFunctionStatusHandler=y,t.initiateDisplay=S,t.callJsLoadedIfRequired=E,t.initPhoenixScript=D,t.init=function(e){return b.initConfig(),P.isObject(e)?(M.setWindowReference(e),T.registerAdapters(),M.initPhoenixScript(e),M.callJsLoadedIfRequired(e),!0):!1}}),(function(e,t,n){function i(){return Math.floor(100*Math.random())}function r(e,t,n){l.forEachOnObject(e,(function(e,i){m.setInitTimeForSlotsForAdapter(t,e),i.fB(t,n)}))}function o(e,t){l.forEachOnArray(e,(function(e,n){var i=n.getDivID();g.resetBid(i,t),g.setSizes(i,l.generateSlotNamesFromPattern(n,"_W_x_H_"))}))}function a(e,t){return!(e>=u.getAdapterThrottle(t))}function s(e,t){l.forEachOnObject(e,(function(e,n){g.setCallInitTime(n.getDivID(),t)}))}function d(e){if(e){var t=e.ID();l.isFunction(e.fB)?m.registeredAdapters[t]=e:l.log(t+p.MESSAGES.M3)}else l.log(p.MESSAGES.M3),l.log(e)}function c(){m.registerAdapter(f.register())}var u=n(4),p=n(2),l=n(1),g=n(6),f=n(12),h={};t.registeredAdapters=h;var m=this;t.callAdapters=function(e){var t=l.generateUUID();m.resetSlots(e,t),m.callAdapter(h,e,t)},t.getRandomNumberBelow100=i,t.callAdapter=r,t.resetSlots=o,t.throttleAdapter=a,t.setInitTimeForSlotsForAdapter=s,t.registerAdapter=d,t.registerAdapters=c}),(function(e,t,n){function i(e,t){var n=f.createBid(e.bidderCode,t),i=parseInt(e.pubmaticServerErrorCode);return n.setGrossEcpm(e.cpm),n.setDealID(e.dealId),n.setDealChannel(e.dealChannel),n.setAdHtml(e.ad||""),n.setAdUrl(e.adUrl||""),n.setWidth(e.width),n.setHeight(e.height),n.setMi(e.mi),n.setReceivedTime(e.responseTimestamp),n.setServerSideResponseTime(e.serverSideResponseTime),1===i||2===i||6===i?(n.setDefaultBidStatus(-1),n.setWidth(0),n.setHeight(0)):3===i||4===i||5===i?(n.setDefaultBidStatus(0),0===n.isServerSide&&n.setPostTimeoutStatus()):i&&n.setDefaultBidStatus(1),h.forEachOnObject(e.adserverTargeting,(function(e,t){"hb_format"!==e&&"hb_source"!==e&&n.setKeyValuePair(e,t)})),n}function r(e){var t=e.adUnitCode||"";if(h.isOwnProperty(E.kgpvMap,t)){if("pubmaticServer"===e.bidderCode&&(e.bidderCode=e.originalBidder),e.bidderCode&&l.isServerSideAdapter(e.bidderCode)){var n=E.kgpvMap[t].divID,i=E.getPBCodeWithWidthAndHeight(n,e.bidderCode,e.width,e.height),r=E.getPBCodeWithoutWidthAndHeight(n,e.bidderCode);if(h.isOwnProperty(E.kgpvMap,i))t=i;else{if(!h.isOwnProperty(E.kgpvMap,r))return h.log("Failed to find kgpv details for S2S-adapter:"+e.bidderCode),void 0;t=r}e.ss=l.isServerSideAdapter(e.bidderCode)?1:0}e.bidderCode&&m.setBidFromBidder(E.kgpvMap[t].divID,E.transformPBBidToOWBid(e,E.kgpvMap[t].kgpv))}else h.log("Failed to find pbBid.adUnitCode in kgpvMap, pbBid.adUnitCode:"+e.adUnitCode)}function o(e){for(var t in e)if(h.isOwnProperty(e,t)&&h.isOwnProperty(E.kgpvMap,t))for(var n=e[t],r=n.bids||[],o=0;o0&&window[y])try{if(h.isFunction(window[y].setConfig)){var a={debug:h.isDebugLogEnabled(),bidderSequence:"random",userSync:{iframeEnabled:!0,pixelEnabled:!0,enabledBidders:(function(){var e=[];return l.forEachAdapter((function(t){e.push(t)})),e})(),syncDelay:2e3},disableAjaxTimeout:l.getDisableAjaxTimeout()};l.getGdpr()&&(a.consentManagement={cmpApi:l.getCmpApi(),timeout:l.getGdprTimeout(),allowAuctionWithoutConsent:l.getAwc()}),window[y].setConfig(a)}if(!h.isFunction(window[y].requestBids))return h.log("PreBid js requestBids function is not available"),void 0;window[y].requestBids({adUnits:r,bidsBackHandler:function(e){h.log("In PreBid bidsBackHandler with bidResponses: "),h.log(e)},timeout:l.getTimeout()-50})}catch(s){h.log("Error occured in calling PreBid."),h.log(s)}}function p(){return E.parentAdapterID}var l=n(4),g=n(2),f=n(3),h=n(1),m=n(6),I=n(11),w=(n(5),g.COMMON.PARENT_ADAPTER_PREBID),y="owpbjs";t.parentAdapterID=w;var S={};t.kgpvMap=S;var E=this;t.transformPBBidToOWBid=i,t.pbBidStreamHandler=r,t.handleBidResponses=o,t.getPBCodeWithWidthAndHeight=a,t.getPBCodeWithoutWidthAndHeight=s,t.generatedKeyCallback=d,t.generatePbConf=c,t.fetchBids=u,t.getParenteAdapterID=p,t.register=function(){return{fB:E.fetchBids,ID:E.getParenteAdapterID}}}),(function(e,t,n){function i(e){this.name=e,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=n(2);i.prototype.getName=function(){return this.name},i.prototype.setStatus=function(e){return this.status=e,this},i.prototype.getStatus=function(){return this.status},i.prototype.setDivID=function(e){return this.divID=e,this},i.prototype.getDivID=function(){return this.divID},i.prototype.setAdUnitID=function(e){return this.adUnitID=e,this},i.prototype.getAdUnitID=function(){return this.adUnitID},i.prototype.setAdUnitIndex=function(e){return this.adUnitIndex=e,this},i.prototype.getAdUnitIndex=function(){return this.adUnitIndex},i.prototype.setSizes=function(e){return this.sizes=e,this},i.prototype.getSizes=function(){return this.sizes},i.prototype.setKeyValue=function(e,t){return this.keyValues[e]=t,this},i.prototype.setKeyValues=function(e){return this.keyValues=e,this},i.prototype.getkeyValues=function(){return this.keyValues},i.prototype.setArguments=function(e){return this.arguments=e,this},i.prototype.getArguments=function(){return this.arguments},i.prototype.setPubAdServerObject=function(e){return this.pubAdServerObject=e,this},i.prototype.getPubAdServerObject=function(){return this.pubAdServerObject},i.prototype.setDisplayFunctionCalled=function(e){return this.displayFunctionCalled=e,this},i.prototype.isDisplayFunctionCalled=function(){return this.displayFunctionCalled},i.prototype.setRefreshFunctionCalled=function(e){return this.refreshFunctionCalled=e,this},i.prototype.isRefreshFunctionCalled=function(){return this.refreshFunctionCalled},i.prototype.updateStatusAfterRendering=function(e){this.status=r.SLOT_STATUS.DISPLAYED,this.arguments=[],e?this.refreshFunctionCalled=!1:this.displayFunctionCalled=!1},e.exports.Slot=i,t.createSlot=function(e){return new i(e)}}),(function(e,t){!(function(t,n){e.exports=n()})("undefined"!=typeof self?self:this,(function(){return (function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=2)})([(function(e,t){"use strict";var n="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},i=!1,r=!1,o="Array",a="String",s="Function",d="Number",c=Object.prototype.toString;t.debugLogIsEnabled=i,t.visualDebugLogIsEnabled=r;var u=function(e,t){return c.call(e)==="[object "+t+"]"};t.isA=u;var p=function(e){return u(e,s)};t.isFunction=p;var l=function(e){return u(e,a)};t.isString=l;var g=function(e){return u(e,o)};t.isArray=g;var f=function(e){return u(e,d)};t.isNumber=f;var h=function(e){return"object"===("undefined"==typeof e?"undefined":n(e))&&null!==e};t.isObject=h;var m=function(e,t){return e.hasOwnProperty?e.hasOwnProperty(t):!1};t.isOwnProperty=m;var I=function(e){return"undefined"==typeof e};t.isUndefined=I;var w=function(){i=!0};t.enableDebugLog=w;var y=function(){return i};t.isDebugLogEnabled=y;var S=function(){i=!0,r=!0};t.enableVisualDebugLog=S;var E="[OpenWrap] : ",D=function(e){i&&console&&this.isFunction(console.log)&&(this.isString(e)?console.log((new Date).getTime()+" : "+E+e):console.log(e))};t.log=D;var b=function(e,t){if(h(e)&&p(t))for(var n in e)m(e,n)&&t(n,e[n])};t.forEachOnObject=b;var v=function(e,t){if(g(e)&&p(t))for(var n=0,i=e.length;i>n;n++)t(n,e[n])};t.forEachOnArray=v;var P=function(e,t){return e.document.createElement(t)};t.createDocElement=P;var T=function _(e){try{if(e.parent.document!=e.document)return _(e.parent)}catch(t){}return e};t.getTopFrameOfSameDomain=T;var A=function(e){var t,n={},i=512;n.pageURL="",n.refURL="",n.protocol="http://",n.secure=0,n.isInIframe=e.self!==e.top;try{t=T(e),n.refURL=(t.refurl||t.document.referrer||"").substr(0,i),n.pageURL=(t!==window.top&&""!=t.document.referrer?t.document.referrer:t.location.href).substr(0,i),n.protocol=("https:"===t.location.protocol?(n.secure=1,"https"):"http")+"://"}catch(r){}return n};t.getMetaInfo=A;var O=function(e){var t=P(window,"iframe");return t.id=e.id,e.src&&(t.src=e.src),t.height=e.height,t.width=e.width,t.scrolling=e.scrolling,t.frameborder=e.frameborder,t.style.cssText=e.cssText,t};t.createFriendlyIframe=O}),(function(e,t){"use strict";t.SLOT_STATUS={CREATED:0,PARTNERS_CALLED:1,TARGETING_ADDED:2,DISPLAYED:3},t.SERVER_PATH="ae.pubmatic.com/ad?"}),(function(e,t,n){"use strict";function i(e){var t=e.Phoenix;return(a.isUndefined(t)||a.isUndefined(t.isJSLoaded))&&(e.Phoenix=new s.PhoenixClass),e.Phoenix}function r(e){1!=Phoenix.isJSLoaded&&(Phoenix=i(e),Phoenix.isJSLoaded=!0,a.log("Phoenix.js is loaded successfully."),Phoenix.EQ.executeQ())}function o(e){e.PubMatic=e.PubMatic||{},e.PubMatic._uidCB=function(e){PubMatic.pm_uid_bc=e.u}}var a=n(0),s=n(3);t.createPhoenixNamespace=i,t.initPhoenix=r,t.createPubMaticNamespace=o;var d=function(e){return a.isObject(e)?(o(e),r(e),!0):!1};t.init=d}),(function(e,t,n){"use strict";function i(){var e=o.getMetaInfo(window);this.singleRequestCall=!1,this.isSingleRequestCallAlreadyFired=!1,this.req_type=219,this.commonKeywordsAnding=0,this.secure=e.secure,this.protocol=e.protocol,this.accountID="",this.commonTargetings={},this.commonKeywords=[],this.customInfo={},this.slotStorage={},this.preDisplayHandlers=[],this.EQ=new s.EexecutionQueue(window.Phoenix),this.userSyncupInitiated=!1;var t=this;this.registerPreDisplayHandler((function(e){var n=!1;if(1==t.customInfo.gdpr)e();else{var i=o.createDocElement(window,"script"),r=window.document.getElementsByTagName("script")[0];i.type="text/javascript",i.async=!0,i.src=t.protocol+"image6.pubmatic.com/AdServer/UCookieSetPug?oid=2&cb=PubMatic._uidCB",r.parentNode.insertBefore(i,r);var a=setInterval((function(){window.PubMatic&&window.PubMatic.hasOwnProperty("._uidCB")&&clearInterval(a)}),50);setTimeout((function(){!n&&e(),n=!0,clearInterval(a)}),500)}}))}var r=n(1),o=n(0),a=n(4),s=n(5),d=n(6),c=n(7),u=n(8);i.prototype.initiateUserSyncup=function(){this.userSyncupInitiated=!0;var e=this;setTimeout((function(){var t,n=e.protocol+"ads.pubmatic.com/AdServer/js/showad.js#PIX&kdntuid=1&bce=1&p="+e.accountID;n+="&gdpr="+e.customInfo.gdpr||0,n+="&gdpr_consent="+e.customInfo.gdpr_consent||"",t=document.createElement("iframe"),t.src=n,t.style.height="0px",t.style.width="0px",t.style.display="none",t.height=0,t.width=0,t.border="0px",t.hspace="0",t.vspace="0",t.marginWidth="0",t.marginHeight="0",t.style.border="0",t.scrolling="no",t.frameBorder="0",window.document.getElementsByTagName("script")[0].parentNode.appendChild(t)}),2e3)},i.prototype.setRequestType=function(e){isNaN(e)||(this.req_type=e)},i.prototype.getAccountId=function(){return this.accountID},i.prototype.enableSingleRequestCallMode=function(){this.singleRequestCall=!0},i.prototype.enableCommonKeywordsAnding=function(){this.commonKeywordsAnding=1},i.prototype.setCommonTargeting=function(e,t){var n=this;n.commonTargetings.hasOwnProperty(e)||(n.commonTargetings[e]=[]),o.isArray(t)?o.forEachOnArray(t,(function(t,i){n.commonTargetings[e].push(i)})):n.commonTargetings[e].push(t)},i.prototype.getCommonTargetingKeys=function(){var e=[];return o.forEachOnObject(this.commonTargetings,(function(t){o.isUndefined(t)||e.push(t)})),e},i.prototype.getCommonTargeting=function(e){return this.commonTargetings.hasOwnProperty(e)?this.commonTargetings[e]:""},i.prototype.setCommonKeywords=function(e){var t=this;o.isArray(e)&&o.forEachOnArray(e,(function(e,n){t.commonKeywords.push(n)}))},i.prototype.getCommonKeywords=function(){return this.commonKeywords},i.prototype.setInfo=function(e,t){var n="";switch(e){case"PAGEURL":n="dpurl";break;case"LAT":n="lat";break;case"LON":n="lon";break;case"SEC":this.secure=1==this.secure?this.secure:t,n="";break;case"ACCID":this.accountID=t,n="",u.getUserConsentDataFromCMP(this.accountID);break;case"LOC":n="loc";break;case"LOC_SRC":n="loc_source";break;case"LOC_SOURCE":n="loc_source";break;case"AMP":n="amp",t=1;break;case"GDPR":n="gdpr",t=1;break;case"GDPR_CONSENT":n="gdpr_consent"}""!=n&&""!=t&&(this.customInfo[n]=encodeURIComponent(t))},i.prototype.defineAdSlot=function(e,t,n){var i=new c.SlotObject(e,t,n);return this.slotStorage[n]=i,i},i.prototype.getSlots=function(){var e=[];return o.forEachOnObject(this.slotStorage,(function(t,n){e.push(n)})),e},i.prototype.originalDisplay=function(e){var t,n={},i=[],s=a.getSlotByDivId(e,this.slotStorage);if(null!==s)if(s.setDisplayFunctionCalled(!0),s.getStatus()===r.SLOT_STATUS.DISPLAYED){var d=s.getResponse();null!==d?(a.createFriendlyIframeAndRenderCreative(e,d),s.setResponse(null),s.setDisplayFunctionCalled(!1),o.log("Rendering the creative for the slot "+e)):o.log("No cached response found for the slot "+e)}else o.log("Already displayed the slot: "+e);this.singleRequestCall?(n[r.SLOT_STATUS.CREATED]="",i=a.getSlotsFilteredByStatus(n,this.slotStorage),i.length>0&&(t=a.generateAdServerCall(i,this.req_type,this.customInfo,this.commonTargetings,this.secure),a.createScriptTagAndTriggerAdServerCall(t))):this.slotStorage.hasOwnProperty(e)&&(i.push(this.slotStorage[e]),t=a.generateAdServerCall(i,this.req_type,this.customInfo,this.commonTargetings,this.secure),a.createScriptTagAndTriggerAdServerCall(t))},i.prototype.registerPreDisplayHandler=function(e){var t=this;"function"==typeof e&&t.preDisplayHandlers&&t.preDisplayHandlers.push(e)},i.prototype.display=function(e){var t=this,n=u.getUserConsentDataFromLS(t.accountID);t.customInfo.gdpr_consent=n&&n.c?encodeURIComponent(n.c):t.customInfo.gdpr_consent||"",t.customInfo.gdpr=t.customInfo.gdpr_consent?1:u.isCmpFound()?1:t.customInfo.gdpr||0,!t.userSyncupInitiated&&t.initiateUserSyncup();var i=new d.TaskManager(function(){o.isArray(e)?t.originalDisplay(e[0]):t.originalDisplay(e)},t.preDisplayHandlers,e);i.execute()},i.prototype.callback=function(e){var t=this;e.bids&&o.forEachOnObject(e.bids,(function(e,n){if(1==n.isNative)return o.log("Native creative found..."),void 0;if(n.ct&&0!=n.ct.length){o.log("Creative found for "+n.id);var i=a.getSlotByDivId(n.id,t.slotStorage);null!==i?i.getDisplayFunctionCalled()===!0?(a.createFriendlyIframeAndRenderCreative(n.id,n),i.setDisplayFunctionCalled(!1)):i.setResponse(n):o.log("Invalid slot, no slot found defined for div: "+n.id)}else o.log("Creative NOT found for "+n.id)}))},t.PhoenixClass=i}),(function(e,t,n){"use strict";function i(e){var t="";return f.forEachOnObject(e,(function(e,n){t+=e+"="+n.join()+"&"})),t=t.substr(0,t.length-1)}function r(e,t){var n,i="",r={adUnit:"getAdUnit",adDiv:"getDivElement",adSizes:"getDimensions",keywords:"getKeywords",pwtecp:"getWrapperEcpm",keywordsOperation:"getKeywordsOperation",targetings:"getTargetingKeys",targetingByKey:"getTargeting",nativeTemplateID:"getNativeTemplateID",visibility:"getVisibility",extraParameters:"getExtraPatameterKeys",extraPatameterByKey:"getExtraParameters"};switch(e){case"adUnit":case"adDiv":case"nativeTemplateID":case"visibility":case"pwtecp":r.hasOwnProperty(e)&&(i=t[r[e]]());break;case"adSizes":r.hasOwnProperty(e)&&(n=t[r[e]](),f.forEachOnArray(n,(function(e,t){t[0]&&t[1]&&(i+=t[0]+"x"+t[1]+",")})),i=i.substr(0,i.length-1));break;case"keywords":r.hasOwnProperty(e)&&(i=t[r[e]](),i=i.join());break;case"keywordsOperation":r.hasOwnProperty(e)&&(i=t[r[e]]());break;case"targetings":case"extraParameters":r.hasOwnProperty(e)&&(n=t[r[e]](),f.forEachOnArray(n,(function(n,o){var a="";switch(e){case"targetings":a="targetingByKey";break;case"extraParameters":a="extraPatameterByKey"}i+=o+"="+t[r[a]](o).join()+"&"})),i=i.substr(0,i.length-1))}return i}function o(e){var t=[];return f.forEachOnArray(e,(function(e,n){var i=parseFloat(n.getWrapperEcpm());t.push(i>0?i:"")})),t.join("|")}function a(e,t){var n="",i="|",o={};return f.forEachOnArray(t,(function(t,a){n+=r(e,a)+(o.hasOwnProperty(e)?o[e]:i),a.setStatus(g.SLOT_STATUS.DISPLAYED)})),n.substr(0,n.length-1)}function s(e){e=e.indexOf("?")>-1?e.substr(e.indexOf("?")+1):"";var t=e.split("&"),n={},i={uastest:"",uaslineitemid:"",uascrid:""};return f.forEachOnArray(t,(function(e,t){var r=t.split("=");i.hasOwnProperty(r[0])&&(n[r[0]]=r[1])})),n}function d(e,t,n,r,d){var c=[],u=new Date,p=f.getMetaInfo(window),l=s(p.pageURL),h=o(e);return c.push("req_type="+t,"sec="+d,"res_format=2","cback=window.Phoenix.callback","rndn="+Math.random(),"purl="+encodeURIComponent(p.pageURL),"rurl="+encodeURIComponent(p.refURL),"js=1","iifr="+(self===top?"0":"1"),"scrn="+encodeURIComponent(screen.width+"x"+screen.height),"tz="+encodeURIComponent(-1*u.getTimezoneOffset()),"kltstamp="+encodeURIComponent(u.getFullYear()+"-"+(u.getMonth()+1)+"-"+u.getDate()+" "+u.getHours()+":"+u.getMinutes()+":"+u.getSeconds()),"au="+encodeURIComponent(a("adUnit",e)),"iid="+encodeURIComponent(a("adDiv",e)),"asz="+encodeURIComponent(a("adSizes",e)),"slt_kv="+encodeURIComponent(a("targetings",e)),"ntid="+encodeURIComponent(a("nativeTemplateID",e)),"visi="+encodeURIComponent(a("visibility",e)),"gkv="+encodeURIComponent(i(r)),"slt_param="+encodeURIComponent(a("extraParameters",e))),h&&c.push("pwtecp="+encodeURIComponent(h)),n.dpurl||(n.dpurl=encodeURIComponent(p.pageURL)),!n.loc&&n.lat&&n.lon&&(n.loc=n.lat+","+n.lon),f.forEachOnObject(n,(function(e,t){n.hasOwnProperty(e)&&"lat"!==e&&"lon"!==e&&c.push(e+"="+t)})),PubMatic.pm_uid_bc&&c.push("bcuid="+PubMatic.pm_uid_bc),f.forEachOnObject(l,(function(e,t){l.hasOwnProperty(e)&&c.push(e+"="+t)})),p.protocol+g.SERVER_PATH+c.join("&")}function c(e){var t,n;t=document.createElement("script"),t.async=!0,t.type="text/javascript",t.src=e,n=document.getElementsByTagName("script")[0],n.parentNode.insertBefore(t,n)}function u(e,t){var n,i,r,o;n=window.document.getElementById(e),n&&(r=f.createFriendlyIframe({id:e+"_adDisplay",height:t.h,width:t.w,scrolling:"no",frameborder:"0",cssText:"border: 0px; vertical-align: bottom;"}),r.marginwidth="0",r.marginheight="0",n.appendChild(r),r=window.document.getElementById(e+"_adDisplay"),r&&(o='',o+="",o+="",o+="",i=r.contentWindow.document,i.write(o),i.close())))}function p(e,t){var n=[];return f.forEachOnObject(t,(function(t,i){e.hasOwnProperty(i.getStatus())&&n.push(i)})),n}function l(e,t){return t.hasOwnProperty(e)?t[e]:null}var g=n(1),f=n(0);t.combineGlobalTargetings=i,t.combineSlotSpecificData=r,t.getEcpmFromSlots=o,t.combineSlotsData=a,t.setQueryParamsFromURL=s,t.generateAdServerCall=d,t.createScriptTagAndTriggerAdServerCall=c,t.createFriendlyIframeAndRenderCreative=u,t.getSlotsFilteredByStatus=p,t.getSlotByDivId=l}),(function(e,t,n){"use strict";var i=n(0);t.EexecutionQueue=function(e){this.Phoenix=e,this.internalQ=[],i.isUndefined(this.Phoenix)||i.isUndefined(this.Phoenix.EQ)||(this.internalQ=this.Phoenix.EQ),this.push=function(e){var t=this;i.isFunction(e)&&(i.isUndefined(t.Phoenix)&&i.isUndefined(t.Phoenix.isJSLoaded)?t.internalQ.push(e):e())},this.executeQ=function(){for(var e;e=this.internalQ.shift();)e()}}}),(function(e,t){"use strict";function n(e,t,n){this.count=t.length,this.doneTask=function(){var t=this;t.count>0&&(t.count=t.count-1),0==t.count&&e()},this.execute=function(){var e=this;t.length>0?t.forEach((function(t){t((function(){e.doneTask()}),n)})):e.doneTask()}}t.TaskManager=n}),(function(e,t,n){"use strict";function i(e,t,n){this.adUnit=e,this.dimensionArray=t,this.divElement=n,this.slotTargetings={},this.slotExtraParameters={},this.slotKeywords=[],this.keywordsOperation=0,this.status=0,this.isNative=!1,this.nativeTemplateID=0,this.nativeReqestObject=null,this.nativeRenderingFunction=null,this.id=n,this.isDisplayFunctionCalled=!1,this.response=null,this.visibility=0,this.pwtecp=0}var r=n(0);i.prototype.getWrapperEcpm=function(){return this.pwtecp},i.prototype.setWrapperEcpm=function(e){this.pwtecp=e},i.prototype.setResponse=function(e){return this.response=e,this},i.prototype.getResponse=function(){return this.response},i.prototype.getDisplayFunctionCalled=function(){return this.isDisplayFunctionCalled},i.prototype.setDisplayFunctionCalled=function(e){return this.isDisplayFunctionCalled=e,this},i.prototype.getStatus=function(){return this.status},i.prototype.setStatus=function(e){return this.status=e,this},i.prototype.getId=function(){return this.id},i.prototype.getAdUnit=function(){return this.adUnit},i.prototype.getDimensions=function(){return this.dimensionArray},i.prototype.getDivElement=function(){return this.divElement},i.prototype.setTargeting=function(e,t){return this.setSlotPairs(this.slotTargetings,e,t)},i.prototype.getTargetingKeys=function(){return this.getKeysFromSlotPairs(this.slotTargetings)},i.prototype.getTargeting=function(e){var t="";return this.slotTargetings.hasOwnProperty(e)&&(t=this.slotTargetings[e]),t},i.prototype.setKeywords=function(e){var t=this;return r.isArray(e)&&r.forEachOnArray(e,(function(e,n){t.slotKeywords.push(n)})),this},i.prototype.getKeywords=function(){return this.slotKeywords},i.prototype.enableKeywordsAnding=function(){return this.keywordsOperation=1,this},i.prototype.getKeywordsOperation=function(){return this.keywordsOperation},i.prototype.setNativeTemplateID=function(e){return this.isNative=!0,this.nativeTemplateID=e,this},i.prototype.getNativeTemplateID=function(){return this.nativeTemplateID},i.prototype.setNativeRequestObject=function(e){return this.isNative=!0,this.nativeReuestObject=e,this},i.prototype.setNativeRenderingFunction=function(e){return"function"==typeof e&&(this.isNative=!0,this.nativeRenderingFunction=e),this},i.prototype.setVisibility=function(e){var t={0:0,1:1,2:2,3:3};return this.visibility=t[e]||0,this},i.prototype.getVisibility=function(){return this.visibility},i.prototype.setExtraParameters=function(e,t){return this.setSlotPairs(this.slotExtraParameters,e,t)},i.prototype.getExtraParameters=function(e){var t="";return this.slotExtraParameters.hasOwnProperty(e)&&(t=this.slotExtraParameters[e]),t},i.prototype.getExtraPatameterKeys=function(){return this.getKeysFromSlotPairs(this.slotExtraParameters)},i.prototype.setSlotPairs=function(e,t,n){e.hasOwnProperty(t)||(e[t]=[]),r.isArray(n)?r.forEachOnArray(n,(function(n,i){e[t].push(i)})):e[t].push(n)},i.prototype.getKeyValuesFromSlotPairs=function(e,t){var n="";return e.hasOwnProperty(t)&&(n=e[t]),n},i.prototype.getKeysFromSlotPairs=function(e){var t=[];return r.forEachOnObject(e,(function(e){r.isUndefined(e)||t.push(e)})),t},t.SlotObject=i}),(function(e,t,n){"use strict";var i=n(0),r="PubMatic",o=(function(){try{return window.localStorage&&i.isFunction(window.localStorage.getItem)&&i.isFunction(window.localStorage.setItem)}catch(e){return!1}})(),a=(function(){try{return!!window.__cmp}catch(e){return!1}})(),s=function(e,t){for(var n=0,i=e.length,r=!1;i>n;n++)if(e[n]===t){r=!0;break}return r},d=function(){},c=function(e,t,n){function i(){function t(){d("in afterEach, ",i),i.getConsentData&&i.getVendorConsents&&e(i,n)}var i={};return{consentDataCallback:function(e){d("in consentDataCallback, ",e),i.getConsentData=e,t()},vendorConsentsCallback:function(e){d("in vendorConsentsCallback, ",e),i.getVendorConsents=e,t()}}}function r(){d("calling CMP "),window.__cmp("getConsentData",null,u.consentDataCallback),window.__cmp("getVendorConsents",null,u.vendorConsentsCallback)}function o(){return!(!window.$sf||!window.$sf.ext)}function a(e,t){function n(n,i){if("cmpReturn"===n){var r="getConsentData"===e?i.vendorConsentData:i.vendorConsents;t(r)}}window.$sf.ext.register(1,1,n),window.$sf.ext.cmp(e)}function c(e,i,r){function o(e){var t="string"==typeof e.data&&s(e.data,"cmpReturn")?JSON.parse(e.data):e.data;if(t.__cmpReturn&&t.__cmpReturn.callId){var n=t.__cmpReturn;"undefined"!=typeof p[n.callId]&&(p[n.callId](n.returnValue,n.success),delete p[n.callId])}}function a(){window.removeEventListener("message",o,!1)}function d(e){a(),r(e)}window.__cmp=function(e,r,o){if(!i){a();var s="CMP not found";return t(s,n)}var d=Math.random()+"",c={__cmpCall:{command:e,parameter:r,callId:d}};return p[d]=o,i.postMessage(c,"*"),null},window.addEventListener("message",o,!1),window.__cmp(e,null,d)}var u=i(),p={};if(window.__cmp)"function"==typeof window.__cmp?r():(d("calling CMP after delay"),setTimeout((function(){"function"==typeof window.__cmp&&r()}),500));else if(window!==top)if(d("Tag is executing in iframe"),o()&&"function"==typeof window.$sf.ext.cmp)d("In safe-frame CMP detection"),a("getConsentData",u.consentDataCallback),a("getVendorConsents",u.vendorConsentsCallback);else{d("In iframe CMP detection");for(var l,g=window;!l;){try{g.frames.__cmpLocator&&(l=g)}catch(f){}if(g===window.top)break;g=g.parent}c("getConsentData",l,u.consentDataCallback),c("getVendorConsents",l,u.vendorConsentsCallback)}else d("cmp might not have loaded, calling CMP after delay"),setTimeout((function(){"function"==typeof window.__cmp&&r()}),500)},u=function(e,t,n){var i;if(!o)return d("local storage is not enabled"),void 0;try{i=window.localStorage.getItem(r)}catch(a){d("failed in reading from LS")}if(i&&"string"==typeof i)try{i=JSON.parse(i)}catch(a){i={}}else i={};d("data from ls",i),i&&(i.hasOwnProperty(e)||(i[e]={}),i[e].t=(new Date).getTime(),i[e][t]=n,"c"==t&&(i[e].g=1));try{window.localStorage.setItem(r,JSON.stringify(i)),d("data stored in local storage successfuly")}catch(a){d("local storage reading exception")}};t.isCmpFound=function(){return a},t.getUserConsentDataFromCMP=function(e){function t(t){d("Data received from CMP: ",t),t&&(t.getConsentData&&t.getConsentData.consentData?(d("using getConsentData.consentData: ",t.getConsentData.consentData),u(e,"c",t.getConsentData.consentData)):t.getVendorConsents&&t.getVendorConsents.metadata&&(d("using getVendorConsents.metadata: ",t.getVendorConsents.metadata),u(e,"c",t.getVendorConsents.metadata)))}function n(){d(arguments),d("Failed to retrieve user consent data from CMP for pubId: ",e)}c(t,n)},t.getUserConsentDataFromLS=function(e){var t={c:""};if(!o)return d("LS is not enabled"),t;var n;try{n=window.localStorage.getItem(r)}catch(i){d("failed in reading from LS")}if(n&&"string"==typeof n){try{n=JSON.parse(n)}catch(i){n={}}if(n.hasOwnProperty(e)){var a=n[e];a&&a.c&&a.t&&(a.t&&parseInt(a.t,10)>(new Date).getTime()-864e5?t.c=a.c:d("data in LS had no timestamp or expired timestamp.",a))}}return t}})])}))})]);