(()=>{"use strict";let e,t,n,i={};!function(e){let n=!1;function i(){const e=(new Error).stack;if(!e)return null;const t=e.split("\n")[3].split(" ");let n=t[t.length-1];return"("!==n[0]&&(n="("+n+")"),n}e.setAllowLogging=function(e){n=!!t.findHighestWindow().location.search.includes("bex_logging=true")||e},e.logInfo=function(...e){if(!n)return;const t=i(),o=Date.now()-performance.timing.navigationStart;console.log("%c%s%c%s%s","background: #00008B; color: White; font-weight: bold;","[CeX Header Bidding]","",o,t?" ".concat(t):"","",...e)},e.logWarning=function(...e){if(!n)return;const t=i(),o=Date.now()-performance.timing.navigationStart;console.log("%c%s%c%s%s","background: #FF8C00; color: White; font-weight: bold;","[CeX Header Bidding]","",o,t?" ".concat(t):"","",...e)},e.logError=function(e,...t){if(!n)return;const o=i(),r=Date.now()-performance.timing.navigationStart;t.length>0&&console.log("%c%s%c%s%s","background: #8B0000; color: White; font-weight: bold;","[CeX Header Bidding]","",r,o?" ".concat(o):"","",...t),console.error(e),console.trace()},e.logProblem=function(...e){if(!n)return;const t=i(),o=Date.now()-performance.timing.navigationStart;console.log("%c%s%c%s%s","background: #8B0000; color: White; font-weight: bold;","[CeX Header Bidding]","",o,t?" ".concat(t):"","",...e),console.trace()}}(e||(e={})),function(t){function n(){const e=window.top;let t=window;for(;t!==e;)try{t.parent.document,t=t.parent}catch(e){break}return t}function i(){return n().document}t.getRandomInt=function(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e)+e)},t.replaceAll=function(e,t,n){return e.split(t).join(n)},t.fixDomain=function(e){return(e=(e=e.toLowerCase()).replace(/^http(s?):\/\//i,"")).startsWith("www.")&&(e=e.slice(4)),e.endsWith("/")&&(e=e.slice(0,-1)),e},t.guid=function(e=4){return e>11&&(e=11),Math.random().toString(36).substr(2,e)},t.uuidv4=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})},t.findHighestWindow=n,t.findHighestDocument=i,t.hbFrameId="__bexHBFrame";const o=t.hbdevFrameId="__bexHBDevFrame";function r(e,t){const n=i();n.body||(n.body=n.createElement("body"));let o=n.querySelector("#".concat(t));return o||(o=n.createElement("iframe"),o.id=t,o.style.display="none",o.onload=function(){const t=o.contentDocument,n=t?.createElement("script");n&&(n.src="https://".concat(e,"/hbscript"),n.async=!0,n.defer=!0,t?.head.appendChild(n))},n.body.appendChild(o),o)}function a(e){if(!e.size)return[[300,250]];let t=[];const i=n().innerWidth;e.size.desktop&&i>480&&(t=t.concat(e.size.desktop)),e.size.mobile&&i<=480&&(t=t.concat(e.size.mobile)),e.size.universal&&t.length<1&&(t=t.concat(e.size.universal)),t=t.map(function(e){return{width:e[0],height:e[1]}});let o=t.filter(function(e){return e.width<=i});return o.length<1&&(o=[t.reduce(function(e,t){return Math.abs(i-e.width)>Math.abs(i-t.width)?t:e},{width:e.size.original[0],height:e.size.original[1]})]),o}t.createHbFrame=r,t.initalizeHb=function(t,n){"www.slovenskenovice.si"===window.location.host&&window.afterIpromPrebid?(e.logInfo("Setting iframe creation through iprom initalizer..."),window.afterIpromPrebid.push(function(){return r(t,n)})):r(t,n)},t.initForeignPixels=function(){},t.initLupon=function(e){const t=n(),o=t.bextag=t.bextag||{};if(o.luponDone)return;o.luponDone=!0;const r=i(),a=r.createElement("script");a.src="https://adxbid.info/pubId".concat(e,'.js"'),a.async="async",r.body.appendChild(a)},t.isDevelMode=function(e=!1,t){return!(!e&&void 0===t)&&(e?window.frameElement?.id===o:void 0===t||t.includes("hbdev.contentexchange.me"))},t.sendEventImage=function(e){const t=i(),n=t.createElement("img");n.src=e,n.onload=function(){t.body.removeChild(n)},n.style.display="none",t.body.appendChild(n)},t.crawlToPost=function(e){let t=e;for(;t&&!t.classList.contains("$bexAd_post");){if("BODY"===t.tagName)return null;if(!t.parentElement)return null;t=t.parentElement}return t},t.getCookie=function(e,t){const n="; ".concat(t).split("; ".concat(e,"="));if(2===n.length)return n.pop()?.split(";").shift()},t.filterConfig=function(t){const i=new URL(n().location.href).searchParams.get("bex_keeponly");if(!i||"direct"==i)return;const o=i.split("-"),r=o[0],a=o[1];let s=t.placement.execList;const c=[];for(;s;){const e=s.next;e&&delete s.next,s.type==r&&("headerbidding"==r&&(s.config.bids=s.config.bids.filter(function(e){return e.bidder==a})),c.push(s)),s=e}t.placement.execList=c[0],e.logInfo("filtered config",t)},t.getAvailableSizes=a,t.makeAuctionRequest=function(e,t,n){if("DISPLAY"==n.adType){const i=a(n);return{id:t,domain:n.domain,placement:n.id,source:e,placement_size:{width:n.size.original[0],height:n.size.original[1]},availableSizes:i,size:null,type:"DISPLAY",mediaType:"banner",hasResponse:!1,hasWon:!1,cpm:0,widget:n.widget}}return{id:t,domain:n.domain,placement:n.id,source:e,placement_size:{width:0,height:0},availableSizes:[{width:0,height:0}],size:null,type:"NATIVE",mediaType:"native",hasResponse:!1,hasWon:!1,cpm:0,widget:n.widget}},t.makeAuctionResponse=function(e,t,n){if("DISPLAY"==n.adType){const i=a(n);return{id:t,domain:n.domain,placement:n.id,source:e,placement_size:{width:n.size.original[0],height:n.size.original[1]},availableSizes:i,size:{width:n.size.original[0],height:n.size.original[1]},type:"DISPLAY",mediaType:n.mediaType||"banner",hasResponse:!0,hasWon:!1,cpm:0,widget:n.widget}}return{id:t,domain:n.domain,placement:n.id,source:e,placement_size:{width:0,height:0},availableSizes:[{width:0,height:0}],size:{width:0,height:0},type:"NATIVE",mediaType:n.mediaType||"native",hasResponse:!0,hasWon:!1,cpm:0,widget:n.widget}},t.sendAuctionData=function(e){const t=n();e.window=[t.innerWidth,t.innerHeight];const i=new XMLHttpRequest;i.open("POST","".concat("https://hbstat.contentexchange.me","/auctionData")),i.setRequestHeader("Content-Type","application/json;charset=UTF-8"),i.send(JSON.stringify(e))},t.isMobile=function(){let e=!1;if("maxTouchPoints"in navigator)e=navigator.maxTouchPoints>0;else if("msMaxTouchPoints"in navigator)e=navigator.msMaxTouchPoints>0;else{var t=window.matchMedia&&matchMedia("(pointer:coarse)");if(t&&"(pointer:coarse)"===t.media)e=!!t.matches;else if("orientation"in window)e=!0;else{var n=navigator.userAgent;e=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(n)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(n)}}return e},t.getID5=function(e){return new Promise(function(t,n){const i=e.createElement("script");i.src="https://cdn.id5-sync.com/api/1.0/id5-api.js",i.onload=function(){let e=!1;try{e=ID5&&ID5.init({partnerId:1513})||!1}catch(e){console.log("ID5 error",e)}if(!e)return t(null);e.onAvailable(function(e){var n=e.getUserId();console.log("ID5",n),t(n)})},e.head.appendChild(i)})}}(t||(t={})),function(e){function n(){const e=t.findHighestWindow();let n=e.bextag;return n||(e.bextag=n={targeting:{},headerbidding:{queue:[]},_internals:{headerbidding:{bexDisplayHB:{},bexNativeHB:{}},loaders:{},bds:{}},sendQueue:[],onBexAdFailed:[],onBexAdSuccess:[]}),"sendQueue"in e.bextag||(e.bextag.sendQueue=[]),"targeting"in e.bextag||(e.bextag.targeting={}),"headerbidding"in e.bextag||(e.bextag.headerbidding={}),"queue"in e.bextag.headerbidding||(e.bextag.headerbidding.queue=[]),"_internals"in e.bextag||(e.bextag._internals={}),"headerbidding"in e.bextag._internals||(e.bextag._internals.headerbidding={}),"bexDisplayHB"in e.bextag._internals.headerbidding||(e.bextag._internals.headerbidding.bexDisplayHB={}),"bexNativeHB"in e.bextag._internals.headerbidding||(e.bextag._internals.headerbidding.bexNativeHB={}),"loaders"in e.bextag._internals||(e.bextag._internals.loaders={}),"bds"in e.bextag._internals||(e.bextag._internals.bds={}),"onBexAdFailed"in e.bextag||(e.bextag.onBexAdFailed=[]),"onBexAdSuccess"in e.bextag||(e.bextag.onBexAdSuccess=[]),n}e.getBexTag=n,e.getBexDevTag=function(){const e=n();let t=e._devTag;t||(e._devTag=t={targeting:{},headerbidding:{queue:[]},_internals:{headerbidding:{bexDisplayHB:{},bexNativeHB:{}},loaders:{},bds:{}},sendQueue:[],onBexAdFailed:[],onBexAdSuccess:[]});const i=t;return"sendQueue"in i||(i.sendQueue=[]),"targeting"in i||(i.targeting={}),"headerbidding"in i||(i.headerbidding={}),"queue"in i.headerbidding||(i.headerbidding.queue=[]),"_internals"in i||(i._internals={}),"headerbidding"in i._internals||(i._internals.headerbidding={}),"bexDisplayHB"in i._internals.headerbidding||(i._internals.headerbidding.bexDisplayHB={}),"bexNativeHB"in i._internals.headerbidding||(i._internals.headerbidding.bexNativeHB={}),"loaders"in i._internals||(i._internals.loaders={}),"bds"in i._internals||(i._internals.bds={}),"onBexAdFailed"in i||(i.onBexAdFailed=[]),"onBexAdSuccess"in i||(i.onBexAdSuccess=[]),t}}(n||(n={}));let o,r,a,s,c,d=t.findHighestWindow(),l=t.findHighestDocument(),u=d.adformtag=d.adformtag||[],f=n.getBexTag();function g(e,t,n){return t=h(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,p()?Reflect.construct(t,n||[],h(e).constructor):t.apply(e,n))}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(p=function(){return!!e})()}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}function y(e,t,n){return(t=w(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e,t){for(var n=0;n ')):"in article"!=d&&v.insertAdjacentHTML("beforebegin",'
')))}if(e){var f=t.guid();r.outerHTML=''),u="push"==d?"position:absolute;left:185px;bottom:5px;":"float:right;margin:0 0 4px 8px;clear:right;";var g="push"==d?"afterend":"beforebegin";v?.insertAdjacentHTML(g,' ")),c?.classList.add("bexvideo")}else r.setAttribute("src",y),r.setAttribute("alt",o.title),r.style["background-image"]="url("+(o[s[1]]||"")+")",a.useImageContain?r.style["background-size"]="contain":r.style["background-size"]="cover",r.style["background-repeat"]="no-repeat",r.style["background-position"]="center"}else if("$type"===s[2]&&3===s.length)switch(s[1]){case"image":d.push("bexImage");break;case"title":d.push("bexTitle");break;case"post":d.push("bexPost");break;default:e.logWarning("Invalid template element type",s[1],i)}else if("$replace"===s[2]&&5===s.length){let e=i.getAttribute(s[3]);if(!e)continue;e=t.replaceAll(e,s[4],o[s[1]]),i.setAttribute(s[3],e)}else"$style"===s[2]&&4===s.length?c[s[1]]=s[3]:("clickUrl"===s[1]&&(o.clickTrackers&&i.addEventListener("click",function(){e.logInfo("Advertisement has been clicked!",i);for(let e of o.clickTrackers)t.sendEventImage(e)}),o.clickFuncs&&i.addEventListener("click",function(){e.logInfo("Executing click functions for",i);for(let t of o.clickFuncs)try{t()}catch(n){e.logError(n,"Failed to execute click function",t)}})),i.setAttribute(s[2],o[s[1]]||""))}for(let e in c)i.style[e]=c[e];for(let e of d)i.classList.add(e);return r(n,i,o,a),i}n.registerRenderer=function(t){return t?i[t.id]?e.logWarning("Renderer already registered!",t.name):void(i[t.id]=t):e.logWarning("No renderer provided during registration!")},n.renderSticker=function(e,t){if(e.querySelector(".cex-adform-sticker")){const n=e.querySelector(".cex-adform-sticker");n.style.display="inline-block",n.innerHTML=!n?.classList.contains("cex-sticker-replace")&&n.innerHTML||t||"Ad"}else{const n=o.createElement("div");n.style="\n line-height: 1.5;\n position: absolute;\n padding:0px 5px;\n top:3px;\n left:3px;\n border-radius: 3px;\n box-shadow: 1px 1px 1px 0 rgba(50, 50, 50, 0.2);\n background-color: rgba(255, 255, 255, 0.7);\n color: #2f2f2f;\n font-size: 12px;\n border: 1px solid #b3b3b3;\n z-index:10;\n display:block",n.className="cex-adform-sticker",n.innerHTML=n.innerHTML||t||"Ad",e.appendChild(n)}},n.renderTemplate=r,n.renderElement=a,n.createHTMLTemplate=function(e){const n=o.createElement("template"),i=t.guid();return e=e.replace(/##rnd##/g,i),n.innerHTML=e,n},n.invokeRenderer=async function(t,n,o,r){if(!t||!o)return!1;const a=i[t];if(!a)return e.logWarning("Renderer is not registered!",t),!1;if(!a.isAvailable)return e.logWarning("Renderer is not available!",a.name),!1;try{if(await a.render(n,o,r))return e.logInfo("Successfuly rendered advertisment!",a.name,n),!0}catch(t){e.logError(t,"An error occured while trying to render ad!",a.name,n)}return e.logWarning("Failed to render ad using the renderer system!"),!1}}(c||(c={}));let _,k,A,T,E=[],S=null;function D(){if(S)for(let e of E)"resolve"===S.func?e[0](S.passedData):e[1](S.passedData)}!function(n){function i(){const e=t.findHighestWindow();let n=null,i=null,o=null,r=window;for(;!i;){try{if("function"==typeof r.__tcfapi){"function"==typeof r.__tcfapi&&(o=2,n=r.__tcfapi),i=r;break}}catch(e){}try{r.frames.__tcfapiLocator&&(o=2,i=r)}catch(e){}if(r===e)break;r=r.parent}return{cmpFunction:n,cmpFrame:i,cmpVersion:o}}n.findCMP=i,n.IsCMPAvailable=function(){return null!==i().cmpVersion},n.getTCString=async function(){return new Promise(function(e,t){const n=i();if(!n||!n.cmpFunction)return t("No CMP function found!");n.cmpFunction("getTCData",2,function(n,i){return i?e(n.tcString):t("Failed to get TCData.tcstring!")})})},n.checkPermissions=async function(e,t){return new Promise(function(n,o){const r=i();if(!r||!r.cmpFunction)return n(!e);r.cmpFunction("getTCData",2,function(i,o){if(!o)return n(!e);if(!i)return n(!e);if(!i.gdprApplies)return n(!0);if(e&&!i.vendor.consents[864])return n(!1);var r=!0;for(var a of t)r=r&&i.purpose.consents[a];n(r)})})},n.WaitForConsent=function(){return new Promise(function(t,n){if(S)return e.logInfo("Already passed consent system! Continuing..."),"resolve"===S.func?t(S.passedData):n(S.passedData);if(E.push([t,n]),1===E.length){const{cmpFunction:t,cmpVersion:n}=i();if(!t)return S={func:"reject"},D();if(2!==n)return S={func:"resolve"},D();let o=!1;setTimeout(function(){o||(o=!0,S={func:"reject",passedData:"Timeout reached"},D())},500);const r=function(n,i){if(!o){if(!i)return e.logProblem("Failed to set event listener for consent!"),o=!0,S={func:"resolve"},D();if("tcloaded"===n.eventStatus||"useractioncomplete"===n.eventStatus){if(e.logInfo("Successfully gotten tcloaded/useractioncomplete event!"),t("removeEventListener",2,function(t){if(t)return e.logInfo("Successfully removed event listener for consent!")},r),o)return;return o=!0,S={func:"resolve"},D()}}};t("addEventListener",2,r)}})},n.RunTest=function(){const{cmpFunction:t,cmpVersion:n}=i();t&&2===n&&t("addEventListener",2,function(t,n){n?e.logInfo("Caught tcdata",t):e.logProblem("Failed to set event listener for consent!")})}}(_||(_={})),function(i){const o=t.findHighestWindow(),a="https://hbstat.contentexchange.me",s={},c={},d={},l={},u={},f={},g=n.getBexTag();g.adIdToResponses=g.adIdToResponses||{};const p=g.adIdToResponses,h=r.getPrebid();function m(t){if(!t)return e.logProblem("No adId specified!");const n=p[t];if(!n)return e.logProblem("Failed to find registered response",t);const i=new XMLHttpRequest;i.open("POST","".concat(a,"/click")),i.setRequestHeader("Content-Type","application/json;charset=UTF-8"),i.send(JSON.stringify(n)),e.logInfo("Sending click data",n)}function b(t){if(!t)return e.logProblem("No adId specified!");const n=p[t];if(!n)return e.logProblem("Failed to find registered response",t);const i=new XMLHttpRequest;i.open("POST","".concat(a,"/viewImpression")),i.setRequestHeader("Content-Type","application/json;charset=UTF-8"),i.send(JSON.stringify(n)),e.logInfo("Sending viewable impression data",n)}i.setWinningBid=function(t,n){if(!t)return e.logWarning("Bid was not specified!");const i=p[t.adId];if(!i)return e.logWarning("Failed to find registered response",t.adId);i.hasWon=!0,i.widget=n},i.mapAdUnitBidder=function(e,t,n){e&&t&&n&&((f[e]=f[e]||{})[t]=n)},i.registerBidResponse=function(e,t){p[e]=t},i.sendAuctionData=function(n,i){var o=arguments;const r=Object.assign({},i.requests[0])||t.makeAuctionRequest("error","N/A",{});r.source=n?"no auctData":"no auctID";const a=function(){i.requests.push(r),e.logWarning(...o)};if(!n)return a();if(!d[n])return a();if(!s[n])return a();const c=[];for(let e of d[n])p[e]&&c.push(p[e]);const l=s[n];i.requests=i.requests.concat(l),i.responses=i.responses.concat(c);const u=s[n][0].placement;e.logInfo("Adding auction data ("+u+") "+n,{responses:c,requests:s[n]})},i.sendGoogleData=function(t,n,i,o){if(!t||!n)return e.logProblem("No id or slot specified!")},i.sendImpression=function(t){if(!t)return e.logProblem("No adId specified!");const n=p[t];if(!n)return e.logProblem("Failed to find registered response",t);const i=new XMLHttpRequest;i.open("POST","".concat(a,"/impression")),i.setRequestHeader("Content-Type","application/json;charset=UTF-8"),i.send(JSON.stringify(n)),e.logInfo("Sending impression data",n)},i.sendClick=m,i.sendViewableImpression=b,i.trackAdViewability=function(t,n){if(!t||!n)return e.logWarning("No adId or targetElement specified!");const i=new IntersectionObserver(function(e){for(let o of e)if(o.isIntersecting){b(t),i.unobserve(n);break}},{root:null,rootMargin:"0px",threshold:.5});i.observe(n)},i.init=function(){return new Promise(function(n,i){o.focus(),o.addEventListener("blur",function(){setTimeout(function(){const e=o.document.activeElement;if(!e)return;if("IFRAME"!==e.tagName)return;const t=e.getAttribute("data-adId");t&&(o.focus(),m(t))},0)}),h.que.push(function(){if(!h.onEvent)return i("Failed to find onEvent function!");h.onEvent("auctionInit",function(t){l[t.auctionId]=t,c[t.auctionId]={},d[t.auctionId]=[],u[t.auctionId]=t.labels||[],e.logInfo("Auction initialized",t)}),h.onEvent("bidRequested",function(n){l[n.auctionId]||e.logProblem("Failed to find registered auction",n.auctionId);let i=t.findHighestDocument(),o=t.findHighestWindow(),r=(i.referrer||"").split("/")[2]||"direct",a=o!=top?t.fixDomain(r):t.fixDomain(o.location.host);n.bids.forEach(function(e){let t,o=e.adUnitCode,r=i.getElementById(o),d=r&&r.getAttribute("domain")||a,l=o.split("-"),u=l[l.length-2],g="native"in e.mediaTypes?"NATIVE":"DISPLAY";if("DISPLAY"===g&&"sizes"in e){const n=e.sizes[0];t={width:n[0],height:n[1]}}else t={width:0,height:0};let p=[];if("DISPLAY"===g&&"sizes"in e)for(let t of e.sizes)p.push({width:t[0],height:t[1]});else p.push({width:0,height:0});const h=e.mediaType,m=c[n.auctionId][n.bidderCode+"_"+h]={id:f["div-ppas-mid-"+u][n.bidderCode+"_"+h],domain:d,placement:u,source:n.bidderCode,placement_size:t,availableSizes:p,size:null,type:g,mediaType:h,hasResponse:!1,hasWon:!1,cpm:0};(s[n.auctionId]=s[n.auctionId]||[]).push(m)})}),h.onEvent("bidResponse",function(t){if(!l[t.auctionId])return e.logProblem("Failed to find registered auction",t.auctionId);const n=c[t.auctionId][t.bidderCode+"_"+t.mediaType];if(!n)return e.logProblem("Failed to find registered request",t.bidderCode,t.mediaType,c[t.auctionId]);const i=Object.assign({},n);i.hasResponse=!0,i.cpm=t.cpm,"NATIVE"===i.type?i.size={width:0,height:0}:i.size={width:t.width,height:t.height},"contentexchange"===t.bidderCode&&(i.cpm=i.cpm/(.95*.65)),d[t.auctionId].push(t.adId),p[t.adId]=i}),n()})})}}(k||(k={})),function(e){let n=function(e){return e.Request="request",e.Response="response",e.Fallback="fallback",e.FallbackRequest="fallback_request",e}({});t.isDevelMode();const i=(t.findHighestWindow(),r.getPrebid()),o={},a={};e.sendAuctionData=function(e,t){n.Request,o[t],n.Response,a[t]},e.sendFallbackData=function(e,t){n.Fallback},e.sendFallbackRequestData=function(e){n.FallbackRequest},e.initPrebid=function(){return new Promise(function(e,t){i.que.push(function(){if(!i.onEvent)return t("Failed to find onEvent function!");i.onEvent("bidRequested",function(e){o[e.auctionId]=o[e.auctionId]||[];const t=JSON.parse(JSON.stringify(e));t.gdprConsent&&delete t.gdprConsent,o[e.auctionId].push(t)}),i.onEvent("bidResponse",function(e){a[e.auctionId]=a[e.auctionId]||[],a[e.auctionId].push(e)}),e()})})}}(A||(A={})),function(t){const n=[],i=r.getPrebid();function o(e,t,n,i){return new Promise(function(e,t){return e})}function a(e){return new Promise(function(e,t){return e})}t.sendAdUnit=function(t,r=[],s,c){let{floorPrice:d,ssp_id:l,strict_check:u,market:f,domain:g,duplicate_blocked:p,duplicate_count:h}=s;return d=d||0,new Promise(function(s,u){e.logInfo("Sending pbjs bid request",t),i.que.push(function(){if(!i.requestBids)return s({id:t[0].code,winner:null,auctionId:null,responses:[]});if(l){const e={validation:"strict",config:{ver:"1.0",complete:1,nodes:[{asi:"ssp.adnetwork.agency",sid:l,hp:1}]}};i.setConfig&&i.setConfig({schain:e})}i.setConfig&&i.setConfig({gvlMapping:{contentexchange:864}}),i.setConfig&&i.setConfig({userSync:{filterSettings:{iframe:{bidders:["connectad"],filter:"include"}}},cache:{url:"https://prebid.adnxs.com/pbc/v1/cache"}}),i.setConfig&&i.setConfig({floors:{}}),i.bidderSettings={standard:{storageAllowed:!0}};var u=t[0];i.requestBids({adUnits:t,labels:r,bidsBackHandler:async function(t,r,l){if(e.logInfo("Got prebid responses",t,"for auction",l,"for adUnit",u.code),!t)return s({id:u.code,winner:null,auctionId:l,responses:[]});const f=t[u.code];let g=[];if(!f)return s({id:u.code,winner:null,auctionId:l,responses:[]});f.bids.length&&(g=function(e,t){let n=[];if(!e.length)return n;for(let i of e)"contentexchange"===i.bidderCode&&(i.cpm=i.cpm/(.95*.65)),i.cpmh)continue}if(t.native&&n.includes(t.bidderCode))try{if(!await o())continue}catch(t){e.logError(t,"Failed to scan bid!")}m=t}}m||e.logWarning("No bid has been allowed to be displayed! Ignoring...")}return m&&i.setWinningBid&&(i.setWinningBid(m.adId),"video"==m.mediaType&&a()),s({id:u.code,winner:m,auctionId:l,responses:f.bids})}})})})},t.init=function(){return new Promise(function(t,n){const o=document.createElement("script");o.src="https://hb.contentexchange.me/prebid",o.async=!0,o.onerror=function(){return n("Error loading prebid script!")},document.head.appendChild(o),i.que.push(async function(){const n={currency:{adServerCurrency:"EUR",conversionsRateFile:"https://cdn.jsdelivr.net/gh/prebid/currency-file@1/latest.json?date=$$TODAY$$",bidderCurrencyDefault:{contentexchange:"USD"}}};_.IsCMPAvailable()&&(n.consentManagement={gdpr:{cmpApi:"iab",timeout:5e3,allowAuctionWithoutConsent:!0,defaultGdprScope:!1}},e.logInfo("Found CMP, using consent manager...")),n.userSync={aliasSyncEnabled:!0,userIds:[{name:"firstpartyid",bidders:["adformOpenRTB"],storage:{type:"cookie",name:"cx_id",expires:720}},{name:"id5Id",params:{partner:1513,externalModuleUrl:"https://cdn.id5-sync.com/api/1.0/id5PrebidModule.js",abTesting:{enabled:!1,controlGroupPct:.1}},storage:{type:"html5",name:"id5id",expires:90,refreshInSeconds:28800}}],syncDelay:1e3},n.enableTIDs=!0,i.setConfig&&i.setConfig(n),await k.init(),await A.initPrebid(),t()})})}}(T||(T={}));const P=window,F=n.getBexTag();F._internals,P.bex=P.bex||{},P.bex.loaders=P.bex.loaders||{},P.bex.loaders.loadDisplayPlacement=async function(i){const r=t.findHighestWindow(),a=t.findHighestDocument();t.initForeignPixels(),i.lupon_id&&t.initLupon(i.lupon_id),F.id5=F.id5||t.getID5(a);const s=r.location.search.includes("bex_noadform=true")||r.location.search.includes("bex_keeponly")&&!r.location.search.includes("bex_keeponly=direct")||"Fallback"==i.placement.type||"Skip Direct"==i.placement.type,c=r.location.search.includes("bex_keeponly=direct"),d=i.develMode?n.getBexDevTag():F,l=F.onBexAdSuccess,u=d.headerbidding,f=d._internals.headerbidding.bexDisplayHB,g=o.getAdformTag(),p={requests:[],responses:[]},h=r.location.search.includes("auctionMode=0")?0:r.location.search.includes("auctionMode=1")?1:Math.round(Math.random()),m={},b=i.placement.widget||i.placement.adFormat||"display";e.setAllowLogging(i.develMode);const y="div-ppas-mid-"+i.id+"-"+Math.floor(1e4*Math.random());e.logInfo("Called load for display placement with id",y,"should bypass adform",s);const x=y,v="adx.adform.net/adx/?mid=".concat(i.id,"&rnd=").concat(t.getRandomInt(1,1e5)),w={},I=[];if(s)w[v]={loaded:!1,auctionData:p};else{const n=t.makeAuctionRequest("adform-direct",y,i.placement);p.requests.push(n),I.push(v),d.placementHandlers=d.placementHandlers||{},w[v]=new Promise(function(n){d.placementHandlers[v]=function(o){if(e.logInfo("ON_ LOADED","DISPLAY",i.id,o.isEmpty?"fallback":"hit"),o&&!o.isEmpty){e.logInfo("direct-display resposnse",o);const r=t.makeAuctionResponse("adform-direct",y,i.placement);r.hasWon=!0,r.cpm=i.direct_cpm,p.responses.push(r),k.registerBidResponse(x,r),n({loaded:!0,auctionData:p})}else n({loaded:!1,auctionData:p})}}),g.push(function(){g.onLoaded(Number(i.id),function(e){d.placementHandlers[e.data](e)}),g.onRendered(Number(i.id),function(t){if(e.logInfo("ON_ RENDER","DISPLAY",i.id),!t||!t.ad||!t.ad.parentElement)return;const n=t.ad.parentElement;if(!n)return e.logInfo("NO ELEMENT FOR display",i.id);const o=n.getAttribute("id")||"";k.sendImpression(o),k.trackAdViewability(o,n);for(let n of l)try{n(t.ad.parentElement)}catch(t){e.logError(t,"Failed to execute success event!",t)}})})}"www.slovenskenovice.si"===window.location.host&&(e.logInfo("Detected SlovenskeNovice, using iprom bypass..."),window.afterIpromPrebid=window.afterIpromPrebid||[]),i.develMode?t.findHighestDocument().querySelector("#".concat(t.hbdevFrameId))||t.initalizeHb(i.source,t.hbdevFrameId):t.findHighestDocument().querySelector("#".concat(t.hbFrameId))||t.initalizeHb(i.source,t.hbFrameId);let _=document.currentScript;_&&(_=_.parentElement,function(t,n){if(i.placement.noLazy){try{n()}catch(t){e.logError(t,"Failed to execute code after intersect!")}return}const o=new IntersectionObserver(function(i){for(let r of i)if(r.isIntersecting){e.logInfo("Caught display intersection handle!",t),o.unobserve(t);try{n()}catch(t){e.logError(t,"Failed to execute code after intersect!")}break}},{root:null,rootMargin:"350px 0px 350px 0px",threshold:0});o.observe(t)}(_,async function(){let n=document.createElement("div");n.id=y,n.className="bexAd","1x2"!==i.size?(n.style.width="100%",n.style.height="100%",n.style.maxWidth="100%",n.style.maxHeight="100%",n.style.textAlign="center"):(n.style.maxWidth="1px",n.style.maxHeight="1px",n.style.display="none");const o=JSON.stringify({domain:i.placement.domain,widget:b,position:1,cpm:i.direct_cpm,placement:i.id,translation:i.translation});n.setAttribute("data-meta",o),Object.assign(n.style,{display:"flex",justifyContent:"center",alignItems:"center"});const r=n.ownerDocument.defaultView;if(r.inDapIF){const e=r.frameElement;_=e.parentElement,e.style.height=0,e.style.width=0}if(_.appendChild(n),!s){let e=document.createElement("script");e.setAttribute("data-adfscript",v),e.onerror=function(){var e;(e=n)&&e.parentElement&&e.parentElement.removeChild(e)},n.appendChild(e)}const{loaded:a,auctionData:d}=await w[v];a?(t.sendAuctionData(d),e.logInfo("Sending native data for adform-direct",a?"hit":"fallback",d)):function(e,n,i,o){c||(t.filterConfig(e),u.queue.push(function(){f.executeAd(e.placement,n,i,o,m)}))}(i,n,d,h)}),s||function(){const e=document.createElement("script");e.src="https://s1.adform.net/banners/scripts/adx.js",e.async=!0,e.defer=!0,document.body.appendChild(e)}(),d.sendQueue.push({type:"display",id:i.unique_id+":"+b,auctionMode:h}),delete P.bex.loaders.loadDisplayPlacement)};const H=self;for(var C in i)H[C]=i[C];i.__esModule&&Object.defineProperty(H,"__esModule",{value:!0})})();window.bex.loaders.loadDisplayPlacement({"id":"890589","unique_id":"ef29e810f702071856cb6aaf44a5d4ef","placement":{"id":"890589","type":"HB-Google","noLazy":false,"adFormat":"display","widget":"display","strict_check":false,"market":"si","domain":"si.contentexchange.me","tcf_strict":false,"adType":"DISPLAY","translation":"Oglas","cpm":0.6668919380590398,"size":{"universal":[[300,250]],"original":[300,250]},"execList":{"type":"headerbidding","config":{"id":"div-ppas-mid-890589","floors":{"default":0.1789},"bids":[{"bidder":"appnexus","mediaType":"banner","params":{"placementId":"20029825"}},{"bidder":"mgid","mediaType":"banner","params":{"accountId":305,"placementId":"770957"}},{"bidder":"smartadserver","mediaType":"banner","params":{"domain":"https://prg.smartadserver.com","siteId":363495,"pageId":1293495,"formatId":93786}}],"type":"DISPLAY","adFormat":"display","strict_check":false,"market":"si","domain":"si.contentexchange.me","duplicate_blocked":false,"duplicate_count":1,"size":{"universal":[[300,250]],"original":[300,250]}},"next":{"type":"google","config":{"Placement_ID":"890589","domain":"si.contentexchange.me","Google":{"Slot":"8176680440"},"ignoreDiv":true,"available_sizes":[[300,250]],"size":[300,250]},"next":{"type":"adform","config":"1740342"}}}},"source":"hb.contentexchange.me","allowKeywords":false,"size":"300x250","develMode":false,"direct_cpm":0.6668919380590398,"lupon_id":null,"translation":"Oglas","test":["ef29e810f702071856cb6aaf44a5d4ef"],"generated":"2026-10-13T13:51:59.085Z"});