text: pbjsChunk([60],{147:function(r,e,t){r.exports=t(148)},148:function(r,e,t){"use strict";var n=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r},o=t(3),a=t(2),c=t(5),i=t(0),s=t(1),u=t(4),d=pbjs.kargo_kraken_host||"https://krk.kargo.com",p=function(){function r(r){return function(e){i._map(r,(function(r){var t,n,c=e[r.params.placementId];if(c&&(a.addBidResponse(r.placementCode,(t=c,(n=o.createBid(u.STATUS.GOOD)).bidderCode="kargo",n.cpm=Number(t.cpm),n.ad=t.adm,n.width=t.width,n.height=t.height,n)),c.receivedTracker)){var i=document.createElement("img");i.src=c.receivedTracker,document.body.appendChild(i)}}))}}function e(r){var e=r+"=",t=document.cookie.split(";");for(var n in t){for(var o=t[n];" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(e))return o.substring(e.length,o.length)}return null}function t(r){try{return localStorage.getItem(r)}catch(r){return null}}return{callBids:function(o){var a,s,u,p,l=n({},{timeout:o.timeout,currency:"USD",cpmGranularity:1,cpmRange:{floor:0,ceil:20},adSlotIds:i._map(o.bids,(function(r){return r.params.placementId}))},{userIDs:(u=(function(){try{var r=JSON.parse(decodeURIComponent(e("krg_uid"))),t={};return r&&r.v&&(t=r.v),t}catch(r){return{}}})(),p=(function(){try{var r=JSON.parse(decodeURIComponent(e("krg_crb"))),t={};if(r&&r.v){var n=JSON.parse(atob(r.v));n&&n.syncIds&&(t=n.syncIds)}return t}catch(r){return{}}})(),{kargoID:u.userId,clientID:u.clientId,crbIDs:p,optOut:u.optOut}),krux:(a=t("kxkar_segs"),s=[],a&&(s=a.split(",")),{userID:t("kxkar_user"),segments:s}),pageURL:window.location.href}),g=encodeURIComponent(JSON.stringify(l)),m="kargo_prebid_"+o.requestId.replace(/-/g,"_");window.pbjs[m]=r(o.bids),c.loadScript(d+"/api/v1/bid?json="+g+"&cb=window.pbjs."+m)}}};s.registerBidAdapter(new p,"kargo"),r.exports=p}},[147]);