void 0===window.CleverCore&&(window.CC=(()=>{"use strict";var e=Object.defineProperty,t=Object.defineProperties,i=Object.getOwnPropertyDescriptors,r=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,n=(t,i,r)=>i in t?e(t,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[i]=r,l=(e,t)=>{for(var i in t||(t={}))s.call(t,i)&&n(e,i,t[i]);if(r)for(var i of r(t))o.call(t,i)&&n(e,i,t[i]);return e},a=(e,r)=>t(e,i(r)),c=(e,t)=>{var i={};for(var n in e)s.call(e,n)&&0>t.indexOf(n)&&(i[n]=e[n]);if(null!=e&&r)for(var n of r(e))0>t.indexOf(n)&&o.call(e,n)&&(i[n]=e[n]);return i},d=(e,t,i)=>n(e,"symbol"!=typeof t?t+"":t,i),u=(e,t,i)=>new Promise((r,s)=>{var o=e=>{try{l(i.next(e))}catch(e){s(e)}},n=e=>{try{l(i.throw(e))}catch(e){s(e)}},l=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,n);l((i=i.apply(e,t)).next())}),h={Class:"clever-core-ads",MultiClass:"clever-core-ads-multiproduct",CookieLastTrackerPrefix:"clever-last-tracker-",CookieCounterPrefix:"clever-counter-",UnloadReturnKey:"clever-unload",CookieLifeTime:720,RandomizerLastShownKey:"clever-last-shown-key",RandomizerHasBeenShownOnce:"clever-has-been-shown-once",btnCss:{right:"5px",top:"5px",width:"25px",cursor:"pointer","min-width":"auto",height:"25px",position:"absolute","z-index":99,margin:"0"},EEECountries:["AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IS","IE","IT","LV","LI","LT","LU","MT","NL","NO","PL","PT","RO","SK","SI","ES","SE"]},p=[/adspreview\.googleusercontent\.com/i,/usrfiles\.com/i];function g(e,t,i,r){return(e/=r/2)<1?i/2*e*e*e*e+t:-i/2*((e-=2)*e*e*e-2)+t}function m(e=0,t=0,i=400){let r=window.scrollX||window.pageXOffset,s=window.scrollY||window.pageYOffset,o=e-r,n=t-s,l=new Date().getTime(),a=window.setInterval(function(){let e=new Date().getTime()-l,t=g(e,r,o,i),c=g(e,s,n,i);e>=i&&window.clearInterval(a),window.scrollTo(t,c)},1e3/60)}var b=e=>e.charAt(0).toUpperCase()+e.slice(1),C=()=>f("hostname"),f=e=>{var t,i,r;try{return null!=(r=null!=(i=null==(t=window.top)?void 0:t.location[e])?i:window.parent.location[e])?r:window.location[e]}catch(t){return window.location[e]}},w=e=>{var t;if(!e)return"";let i=/(android|iphone)\.(.+)\.adsenseformobileapps\.com$/i.exec(e);return null!=(t=null==i?void 0:i[2])?t:""},v=e=>btoa(e),T=(e,t="DOMContentLoaded")=>{"loading"!==document.readyState?e():document.addEventListener(t,()=>{e()})},y=e=>e.replace(/(.)([A-Z])/g,function(e,t,i){return t+"-"+i}).toLowerCase(),k=()=>{let e=window.location.href,t=document.referrer;return["doubleclick.net","googlesyndication.com","googleadservices.com"].some(i=>e.includes(i)||t.includes(i))},I=class{constructor(e){this.URL=e}static exists(){var e;if("undefined"!=typeof $sf&&"ext"in $sf||window.location.href.includes("safeframe.googlesyndication.com"))return!0;if([62958].includes(F.group.ID))try{return!(null==(e=window.top)?void 0:e.location.hostname)}catch(e){return!0}return!1}isEnabled(){return 1===F.group.SafeFrame}currentAncestor(){if("Firefox"===F.User.Browser){let e=window;try{for(;e!==window.top;){if(e.document.referrer){let t=new URL(e.document.referrer);return this.URL.FetchDomain(t.origin)}e=e.parent}}catch(e){return F._debug("ancestorOrigin is not supported in Firefox Browser"),null}}let e=window.location.ancestorOrigins;if(void 0===e||0===e.length)return null;let t=e[0],i=".cdn.ampproject.org";return t.includes("-")&&t.includes(i)&&(t=this.URL.FetchDomain(t).split(i)[0].replace(/[-]+/g,".")),this.URL.FetchDomain(t)}},D=class e{constructor(t,i,r,s,o,n){this.SafeFrame=i,this.AMP=r,this.URL=s,this.DOM=o,d(this,"BlockedBrandsByRegion",{stake:["MI","NV","NY","ID","WA","VT","KY"]}),d(this,"Start",new Date),d(this,"isMultiProduct"),d(this,"WhitelistApps",["com.example.flutter_ads_package","com.example.core_clever_core_app_gam_demo","com.example.coreCleverCoreAppGamDemo","com.clever.core_clever_core_app_gam_demo"]),d(this,"CurrentApp",""),d(this,"postMessageSources",["https://sender.cleverwebserver.com"]),d(this,"CallbackUrl"),d(this,"Timeout"),d(this,"Whitelist"),d(this,"SDK"),d(this,"IsWL"),d(this,"Latency",{Start:new Date,End:new Date}),d(this,"defaultOptions",{group:{ID:0,Expire:24,Subdomains:null,DisableMobile:null,DisableIframes:0,UseLink:0,DOMLoad:!0,AutoClose:0,AnimationTimer:750,TriggerTimer:0,TCF:0,last_build_date:0,ads_script_type:""},timeout:0,whitelistDomains:["partner.googleadservices.com","ads.localhost","adtester.yahooinc.com","jac.yahoosandbox.com","s.yimg.com","creative-preview-an.com","previewads.com","livepreview.adform.com","testadtag.com"],whitelistApps:["127.0.0.1"],callbackUrl:null}),t=this.prepareOptions(t),e.group=t.group,this.CallbackUrl=t.callbackUrl,this.isMultiProduct=n.some(e=>1===e.multiproduct),this.Timeout=t.timeout,this.Whitelist=t.whitelistDomains,this.WhitelistApps=this.WhitelistApps.concat(t.whitelistApps),this.SDK=this.getSDK(),this.IsWL=()=>this.IsWhitelist(n),this.IsWL()}get Group(){return e.group}set User(t){e.User=t}get User(){return e.User}static _debug(e){console.log("CLVR: "+e)}Debug(t){e._debug(t)}SSL(){return"https:"===location.protocol}getLocationHref(){var e;if(I.exists()&&this.SafeFrame.isEnabled())return null!=(e=this.SafeFrame.currentAncestor())?e:"";let t=f("href");return this.AMP.isEnabled()&&this.AMP.exists()&&(t=window.context.sourceUrl),t}get TimeSpent(){return(Date.now()-this.Start.getTime())/1e3}IsWhitelist(t){let i=this.DOM.Meta("gam-ref-url"),r=w(i);if(r)return!!this.WhitelistApps.includes(r)&&(this.CurrentApp=r,!0);let s=t.find(e=>e.publisher_app_id===i);if((null==s?void 0:s.bundleId)&&this.WhitelistApps.includes(s.bundleId))return this.CurrentApp=s.bundleId,!0;let o=this.AMP.fetchCurrentDomain();I.exists()&&this.SafeFrame.isEnabled()&&(o=null!=o?o:this.SafeFrame.currentAncestor());let n={"pubads.g.doubleclick.net":["msid"],"script.cleverwebserver.com":["bid","app"]};if((o=null!=o?o:this.URL.CurrentDomain())in n){let e=n[o],t=new URLSearchParams(window.location.search);if(e.every(e=>!t.has(e)))return!1;for(let i of e){let e=t.get(i);if(e&&this.WhitelistApps.includes(e))return this.CurrentApp=e,!0}return!1}for(let t of this.Whitelist)if(t.toLowerCase()===o.toLowerCase()||1===e.group.Subdomains&&RegExp("\\."+t+"$","i").exec(o))return!0;return!1}getExpireTime(){return this.User.Mobile&&e.group.ExpireMobile?e.group.ExpireMobile:e.group.Expire}normalizeUser(){"d"in this.User&&(this.User.Mobile=this.User.d,delete this.User.d),"b"in this.User&&(this.User.Browser=this.User.b,delete this.User.b),"p"in this.User&&(this.User.Platform=this.User.p,delete this.User.p),"c"in this.User&&(this.User.CTR=this.User.c,delete this.User.c)}prepareOptions(e){var t,i,r,s;return{group:null!=(t=e.group)?t:this.defaultOptions.group,timeout:null!=(i=e.timeout)?i:this.defaultOptions.timeout,whitelistDomains:[...this.defaultOptions.whitelistDomains,...null!=(r=e.whitelistDomains)?r:[]],whitelistApps:[...this.defaultOptions.whitelistApps,...e.whitelistApps],callbackUrl:null!=(s=e.callbackUrl)?s:this.defaultOptions.callbackUrl}}getSDK(){var e;let t=new URLSearchParams(window.location.search);return t.has("sdk")?null!=(e=t.get("sdk"))?e:"":w(this.DOM.Meta("gam-ref-url"))?"GAM":""}};d(D,"MinimalVisibility",.5),d(D,"User",{ID:0,CTR:"AA",remote_addr:!1,LastGroup:!1,t:0,Browser:void 0,Platform:void 0,bot:void 0,Mobile:0,r:void 0,lastTracker:void 0,s:void 0,e:void 0,bv:void 0,cont:void 0}),d(D,"group");var F=D,E=class{constructor(e,t){this.URL=e,this.DOM=t,d(this,"domains",["ampproject.net","ads.localhost"]),d(this,"isVisible",!1),d(this,"isAMP",!1)}exists(){for(let e of this.domains){let t=RegExp(e+"$"),i=this.URL.FetchDomain(C());if(null!==t.exec(i))return!0}return!1}isEnabled(){return void 0!==F.group.AMP&&1===F.group.AMP}fetchCurrentDomain(){let e=this.DOM.Meta("origin");return e?this.URL.FetchDomain(e):null}registerViewObserver(e){this.isAMP=!0,window.context.observeIntersection(t=>{t.forEach(t=>{!this.isVisible&&t.intersectionRatio>=F.MinimalVisibility&&(this.isVisible=!0,e())})})}},S=class{constructor(e,t){this.DOM=e,this.URL=t}Click(){let e=this.DOM.Meta("callback-url-click");if(null!==e&&"put-your-click-macro-here"!==e){if(!this.URL.IsValid(e)){F._debug("Callback: Invalid click URL");return}this.appendIframe(e)}}View(){let e=this.DOM.Meta("callback-url-view");if(null!==e&&"put-your-view-macro-here"!==e){if(!this.URL.IsValid(e)){F._debug("Callback: Invalid view URL");return}this.appendIframe(e)}}FailedToLoad(){let e=this.DOM.Meta("callback-no-load");if(null!==e&&"put-your-failedToLoad-macro-here"!==e){if(this.DOM.findFunctionInWindow(e)){this.DOM.runIsolatedFunctionInWindow(e);return}if(!this.URL.IsValid(e)){F._debug("Callback: Invalid no load URL");return}this.appendIframe(e)}}appendIframe(e){let t=document.createElement("iframe");t.setAttribute("style","width: 1px; height: 1px; border: none; bottom: 0; left: 0; display: none;"),t.setAttribute("src",e),document.body.appendChild(t)}},M=class{constructor(e){this.Registry=e,d(this,"cookieKeys"),this.cookieKeys={counter:h.CookieCounterPrefix+e.Group.ID,lastTracker:h.CookieLastTrackerPrefix+e.Group.ID}}Get(e){let t=RegExp(`(^| )${e}=([^;]+)`).exec(document.cookie);return t?t[2]:null}Set(e,t,i){if(!i)return;let r=new Date;r.setTime(r.getTime());let s=new Date(r.getTime()+1e3*i),o=e+"="+escape(t)+";expires="+s.toUTCString()+";path=/;";this.Registry.SSL()&&(o+=" SameSite=None; Secure;"),document.cookie=o}saveCookie(e,t,i){return this.Set(this.cookieKeys[e],t,3600*i)}deleteCookie(e){return this.Set(this.cookieKeys[e],"",-1)}readCookie(e){return this.Get(this.cookieKeys[e])}checkExpire(){let e=this.readCookie("counter");return!(!e&&this.Registry.getExpireTime()>0)&&null!=e}saveCounter(e,t){let i=this.Registry.getExpireTime();this.saveCookie("counter",e+"-"+t,i)}saveLastTracker(e){let t=this.Registry.getExpireTime(),i=t>0?t:h.CookieLifeTime;this.saveCookie("lastTracker",String(e),i)}deleteLastTracker(){this.deleteCookie("lastTracker")}readTrackerCap(e){return this.Get(`clever-cap-${e}`)}saveTrackerCap(e,t,i){this.Set(`clever-cap-${e}`,String(t),3600*i)}},O="https://assets.cleverwebserver.com/Close.png",L="https://assets.cleverwebserver.com/Clever.png",U=class{constructor(e){this.group=e,d(this,"events",new Map),d(this,"shortCuts",{overlay:{type:"img",attr:{src:"https://assets.cleverwebserver.com/Pixel.gif",alt:"overlay-clever"},style:{width:"100%",height:"100%",zIndex:"15",top:"0",left:"0",cursor:"pointer",border:"none",borderRadius:"none",backgroundColor:"transparent",boxShadow:"none",position:"absolute",margin:"0",padding:"0"}},bannerClose:{type:"img",attr:{src:O,alt:"close"},style:{right:"2px",top:"0",width:"22px",position:"absolute",zIndex:"15",height:"22px",margin:"0",cursor:"pointer"}},anchorClever:{type:"a",attr:{href:"https://cleveradvertising.com",target:"_blank",rel:"nofollow"},style:{color:"#fff",textDecoration:"none",height:"15px",padding:"0",background:"unset",overflow:"unset"}},cleverLogo:{type:"img",attr:{src:"https://assets.cleverwebserver.com/CleverLogo.ico",alt:"Logo"},style:{left:"2px",top:"0",width:"22px",position:"absolute",zIndex:"15",height:"22px",margin:"0"}},cleverLogoWhite:{type:"img",attr:{src:L,alt:"Logo"},style:{left:"2px",top:"0",width:"15px",position:"absolute",zIndex:"15",height:"15px",margin:"0"}},iframe:{type:"iframe",attr:{title:"Clever-iframe",name:h.Class,frameBorder:"0",scrolling:"no",src:"about:blank",allowFullscreen:!0},style:{width:"100%",height:"100%",backgroundColor:"transparent",visibility:"visible",position:"absolute",top:"0",padding:"0",pointerEvents:"all",zIndex:"-1",display:"flex"}}})}getByTag(e){return document.getElementsByTagName(e)}clearEvents(){for(let[e,{element:t,event:i,callback:r}]of this.events)this.unbind(t,i,r)}wName(){return window.name?window.name:""}getByClass(e){return document.getElementsByClassName(e)}getByID(e){var t,i,r;let s=null;return document.getElementById?s=null!=(t=document.getElementById(e))?t:null:document.all?s=null!=(i=document.all[Number(e)])?i:null:document.layers&&(s=document.layers[e]),!s&&(parent.document.getElementById?s=null!=(r=parent.document.getElementById(e))?r:null:parent.document.all?s=parent.document.all[Number(e)]:parent.document.layers&&(s=parent.document.layers[e])),s}getElement(e){return e===document||e instanceof Document?document:e===window||e instanceof Window?window:e.id?document.querySelector(`#${e.id}`):void 0}bind(e,t,i){let r=this.getElement(e);(e=null!=r?r:e).addEventListener?e.addEventListener(t,i,!1):"attachEvent"in e&&e.attachEvent("on"+t,function(){i.apply(this)}),this.events.set(this.events.size+1,{element:e,callback:i,event:t})}unbind(e,t,i){e.removeEventListener&&e.removeEventListener(t,i),"detachEvent"in e&&e.detachEvent("on"+t,i)}remove(e){var t;null==(t=e.parentNode)||t.removeChild(e)}destroyElement(e){this.setHTML(e,""),this.css(e,"display","none"),this.remove(e)}css(e,t,i){let r;if(i=i?String(i):void 0,e){if("string"==typeof e){if(!(r=document.getElementById(e)))return}else{if("id"in e&&e.id){let t=document.getElementById(e.id);t&&(r=t)}r||(r=e)}if("object"==typeof t){Object.keys(t).forEach(e=>{this.css(r,e,t[e])});return}if(void 0!==i){if(i.includes("!important")){let e=i.replace("!important","").trim(),s=y(t);r.style.setProperty(s,e,"important")}else{let e=y(t);r.style.setProperty(e,i)}}}}attr(e,t,i){let r=e.id?document.getElementById(e.id):void 0;if(r&&(e=r),"object"==typeof t)for(let i in t)i in t&&this.attr(e,i,t[i]);else"id"===t?e.id=null!=i?i:"":"innerHTML"===t?e.innerHTML=null!=i?i:"":"src"===t?("iframe"===e.nodeName.toLowerCase()&&void 0!==e.location&&(e.location=i),"src"in e&&(e.src=null!=i?i:"")):"className"===t?e.setAttribute("class",null!=i?i:""):e.setAttribute(t,null!=i?i:"");return e}append(e,t){try{return e.innerHTML+=t,e}catch(e){return!1}}setHTML(e,t){if(!t)return e.innerHTML;let i=e.id?document.getElementById(e.id):void 0;return i?(i.innerHTML=t,i):(e.innerHTML=t,e)}getViewportWidth(){return window.innerWidth||document.documentElement.clientWidth||screen.availWidth||this.getByTag("body")[0].clientWidth}getViewportHeight(){return window.innerHeight||document.documentElement.clientHeight||screen.availHeight||this.getByTag("body")[0].clientHeight}height(e){return e.clientHeight||e.scrollHeight||e.offsetHeight||0}width(e){return e.clientWidth||e.scrollWidth||e.offsetWidth||0}create(e,t,i){let r=document.createElement(e);return t&&this.attr(r,t),i&&this.css(r,i),r}shortCutCreate(e,t,i,r){return this.create(null!=r?r:this.shortCuts[e].type,l(l({},this.shortCuts[e].attr),null!=t?t:{}),l(l({},this.shortCuts[e].style),null!=i?i:{}))}clone(e,t){let i={};for(let t=0;t<e.attributes.length;t++){let r=e.attributes[t];r&&(i[r.name]=r.value)}return this.create(t,i)}replace(e,t){var i;null==(i=e.parentNode)||i.replaceChild(t,e)}zIndex(e=0){let t=0x7fffffff;return F.User.Browser&&"safari"===F.User.Browser.toLowerCase()&&(t=0x1000037),String(Math.floor((t-=7)+e))}isVisible(e){let t=getComputedStyle(e);if("none"===t.display||"visible"!==t.visibility||.1>Number(t.opacity)||e.offsetWidth+e.offsetHeight+e.getBoundingClientRect().height+e.getBoundingClientRect().width===0)return!1;let i=e.getBoundingClientRect().left+e.offsetWidth/2;if(i<0||i>(document.documentElement.clientWidth||window.innerWidth))return!1;let r=e.getBoundingClientRect().top+e.offsetHeight/2;if(r<0||r>(document.documentElement.clientHeight||window.innerHeight))return!1;let s=document.elementFromPoint(i,r);if(s===e)return!0;for(;null!==s&&void 0!==s.parentNode;){if(s.parentNode===e)return!0;s=s.parentNode}return!1}isDisplayed(e){if(!e)return!1;let t=e.getBoundingClientRect(),i=document.documentElement,r=window.innerWidth||i.clientWidth,s=window.innerHeight||i.clientHeight;if("style"in e){let i=.2*parseInt(e.style.height,10);return t.top>=0&&t.left>=0&&t.bottom-i<=s&&t.right<=r}return t.top>=0&&t.left>=0&&t.right<=r}isCCMinimallyVisible(){let e=this.getByClass("clever-core-ads")[0];return this.isMinimallyVisible(e)}isMinimallyVisible(e,t,i){var r;let s,o,n;if(1===this.group.AMP||I.exists())return!0;if(!e)return F._debug("Visibility element not defined"),!1;if("object"!=typeof e)return F._debug("Visibility element must be object"),!1;if("frameElement"in e&&(e=e.frameElement),"offsetHeight"in e&&!e.offsetHeight&&!e.offsetWidth)return F._debug("Visibility element must have offset"),!1;let l=window.getComputedStyle(e);if("hidden"===l.visibility||!Number(l.opacity))return F._debug("Element is hidden or without opacity"),!1;let a=t||e.getBoundingClientRect();"style"in e&&(s=e.style.height?parseInt(e.style.height,10):e.hasAttribute("height")?parseInt(null!=(r=e.getAttribute("height"))?r:"",10):e.getBoundingClientRect().height),s&&(s*=F.MinimalVisibility),s=s||10,i?(o=i.width,n=i.height):(o=window.innerWidth,n=window.innerHeight);let c=a.bottom-s<=0,d=a.top-n+s>=0,u=a.right-s<0,h=a.left-o+s>=0;return!c&&!d&&!u&&!h}Meta(e){let t=this.getByID("CleverCoreLoader"+F.group.ID);return t?t.getAttribute("data-"+e):null}customFetch(e){let t=new Image;t.style.display="none",t.src=e}findFunctionInWindow(e){let t=window[e];return"function"==typeof t?t:null}runIsolatedFunctionInWindow(e){(t=>{t[e]()})(window)}},R={open:["beforeOpen","afterOpen"],close:["beforeClose","afterClose"],openClose:["beforeOpen","afterOpen","beforeClose","afterClose"]},_=class{constructor(){d(this,"Queue",{}),d(this,"Events"),this.Events={Generic:l({},this.generateEvents(["generic:beforeRun","generic:afterRun","generic:afterUI"]).Generic),Formats:this.generateEvents(["interstitial:openClose","banner:beforeOpen","banner:beforeEach","banner:afterOpen","banner:afterCloseBind","banner:afterEach","banner:afterAll","bannerSponsorClick:openClose","interScroller:openClose","interPaywall:openClose","pushDown:openClose","pushDownSponsorClick:openClose","topScroll:openClose","topScrollSponsorClick:openClose","miniScroller:openClose","superTopBoardScroll:openClose","leaderBoard:openClose","expandableBannerLeft:openClose","expandableBannerRight:openClose","bannerCube:openClose","cube:openClose","stickyClick:openClose","stickyFooter:openClose","stickyPop:openClose","stickySponsorClick:openClose","stickySponsorClickTop:openClose","stickyTest:openClose","mosaic:openClose","box3D:openClose","bannerApp:openClose","bannerAppVideo:openClose","bannerAppCountdown:openClose","interactiveBanner:openClose","interactiveSticky:openClose","mobilePull:openClose","scratchBanner:openClose"]),Garbage:l({},this.generateEvents(["garbage:afterRemove"]).Garbage)},this.Queue={}}Add(e,t){this.Queue[e]=t}Call(e,t){if(this.Queue[e]){let i=this.Queue[e];t=[F.group.ID,...t];try{return i(...t)}catch(e){return console.error(e),!1}}}generateEvents(e){return e.reduce((e,t)=>{let[i,r]=t.split(":");return R[r]?R[r].forEach(t=>{e[b(i)]=a(l({},e[b(i)]),{[t]:`${i}:${t}`})}):e[b(i)]=a(l({},e[b(i)]),{[r]:t}),e},{})}},x=class{constructor(e,t,i,r,s,o){this.Version=e,this.DOM=t,this.Registry=i,this.URL=r,this.AMP=s,this.TCF=o,d(this,"ExtraParam","")}buildURI(e,t){let i=[];for(let e in t.iv="-1",t)Object.prototype.hasOwnProperty.call(t,e)&&i.push(`${e}=${encodeURIComponent(t[e])}`);return`${e}?${i.join("&")}${this.ExtraParam}`}inject(e){return new Promise((t,i)=>{let r=this.DOM.create("script",{type:"text/javascript",src:e,async:!1});r.onerror=function(t,r,s,o,n){return i({errorMessage:t,injectUrl:r,url:e,lineNumber:s,column:o,errorObject:n})},r.onload=e=>(console.log("scriptTag.onload"),t(!0)),(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(r)})}getDefaultUrl(e){let t=this.fetchBaseUrl(e);return e.Landing&&""!=e.Landing&&(t+="&landing=1"),t}currentLocation(){let e;if(this.AMP.exists()){let t=new URL(JSON.parse(window.name).attributes._context.location.href);e=t.hostname+t.pathname}else e=I.exists()?document.referrer:window.location.host+window.location.pathname;return decodeURI(e)}getForbiddenUrlParam(e){return 0===e.is_forbidden_enabled?0:this.URL.forbiddenURLs.length>0&&this.URL.IsForbiddenURL(this.currentLocation())?1:0}fetchBaseUrl(e,t){var i,r,s,o,n,a,c,d,u,h,p,g;let m={id:e.ID,ref:window.btoa(null!=(i=this.Registry.getLocationHref())?i:""),ruri:window.btoa(this.URL.GetExternalReferer()),t:F.User.t,cmpId:this.TCF.cmpId,fb:"Facebook App"===F.User.Browser?1:0,wl:this.Registry.IsWL()?1:0,furl:this.getForbiddenUrlParam(e),sf:I.exists()?1:0,bw:window.btoa(null!=(r=F.User.Browser)?r:"").replace(/=+$/,""),b:null!=(s=F.User.bot)?s:0,m:null!=(o=F.User.Mobile)?o:0,p:window.btoa(null!=(n=F.User.Platform)?n:"").replace(/=+$/,""),res:this.DOM.getViewportWidth()+"x"+this.DOM.getViewportHeight(),app:this.Registry.CurrentApp,v:this.Version,s:null!=(a=F.User.s)?a:"",e:null!=(c=F.User.e)?c:"",bv:null!=(d=F.User.bv)?d:"",cont:null!=(u=F.User.cont)?u:"",st:null!=(h=F.group.ads_script_type)?h:"",sdk:null!=(p=this.Registry.SDK)?p:"",mng:k()?"GAM":"",lg:null!=(g=navigator.language)?g:""};return t&&(m=l(l({},m),t)),this.buildURI(this.URL.BaseUrl(),m)}},A=class{constructor(){d(this,"TCFVendorId",1070),d(this,"version",2),d(this,"requiredCountries",["PT"]),d(this,"requiredBrands",["solverde"]),d(this,"cmpId","")}exists(){return"function"==typeof __tcfapi}isRequired(){return!!F.User.CTR&&this.requiredCountries.includes(F.User.CTR)}isEnabled(){return void 0!==F.group.TCF&&1===F.group.TCF}isValidConsents(e){let t=this.TCFVendorId;return("boolean"!=typeof e.gdprApplies?console.log("GDPR applies: Unknown"):console.log((e.gdprApplies,"Yes")),e.purpose.consents[1])?e.purpose.consents[2]?e.vendor.consents[this.TCFVendorId]?!!e.vendor.legitimateInterests[this.TCFVendorId]||(console.log("No "+t+" legitimateInterests vendor ID"),!1):(console.log("No "+t+" vendor ID"),!1):(console.log("No #2 consent"),!1):(console.log("No #1 consent"),!1)}registerEventListeners(e){let t=(t,i)=>i?!!("tcloaded"===t.eventStatus&&this.isValidConsents(t))&&(this.cmpId=t.cmpId,e&&e(),!0):(F._debug("TCF: Failed on page load"),!1),i=(t,i)=>i?"useractioncomplete"===t.eventStatus&&!!this.isValidConsents(t)&&(this.cmpId=t.cmpId,e&&e(),__tcfapi("removeEventListener",this.version,function(){},t.listenerId),!0):(F._debug("TCF: Failed on UI load"),!1);__tcfapi("addEventListener",this.version,(e,r)=>{t(e,r)||i(e,r)})}},B=class{constructor(e){d(this,"tracker"),d(this,"trackers"),d(this,"DOM"),d(this,"Net"),d(this,"AMP"),d(this,"Registry"),d(this,"Callback"),d(this,"TrackerUtils"),d(this,"Hooks"),d(this,"TCF"),d(this,"Translation"),d(this,"URL"),d(this,"Tracker"),d(this,"Validator");let{tracker:t,Registry:i,DOM:r,AMP:s,Net:o,Callback:n,TrackerUtils:l,Hooks:a,TCF:c,Translation:u,URL:h,Tracker:p,trackers:g,Validator:m}=e;this.tracker=t,this.trackers=g,this.DOM=r,this.Net=o,this.AMP=s,this.Registry=i,this.Callback=n,this.TrackerUtils=l,this.Hooks=a,this.TCF=c,this.Translation=u,this.URL=h,this.Tracker=p,this.Validator=m}getInitialState(e){return{body:e&&document.querySelector(e)||document.body.querySelector(".GoogleActiveViewElement")||document.body.querySelector(".GoogleActiveViewInnerContainer")||document.body,baseUrl:this.Net.fetchBaseUrl(this.tracker),defaultUrl:this.Net.getDefaultUrl(this.tracker)||""}}getBlock(e){var t;let i=h.Class;if(1===this.tracker.multiproduct&&this.Registry.isMultiProduct){let t=this.TrackerUtils.getMultiProductDiv(this.tracker);return!!t&&(e?[t.div]:t.div)}let r=e?this.DOM.getByClass(i):this.AMP.exists()?this.DOM.getByID("c"):this.DOM.getByClass(i)[0];if(!r){F._debug("No .clever-core-ads detected");let s=this.DOM.Meta("target");if(s&&window.name!==s){F._debug("Placeholder found by target");let o=this.DOM.getByID(s);if(!o)return F._debug("No sourceBannerFrame found"),!1;let n=this.DOM.create("div");n.className=i,o.setAttribute("style","z-index:1; position:absolute; margin: auto; left: 0px; right: 0px"),null==(t=o.parentNode)||t.appendChild(n),r=e?this.DOM.getByClass(i):this.DOM.getByClass(i)[0]}if(e){if((null==r?void 0:r.length)===0)return!1}else if(!r)return!1}return r}getBlocks(){return this.getBlock(!0)}createId(e){if(e.includes("_"))throw Error("Invalid character in id");return`clever-${F.group.ID}-${this.tracker.ID}-${e}`}handleFormatClick(){return this.Net.fetchBaseUrl(this.tracker,{ts:this.Registry.TimeSpent,frominter:"1",click:"1"})}partialDelete(e){e.remove()}delete(e){this.DOM.setHTML(e,""),this.DOM.css(e,"display","none"),this.DOM.remove(e)}},V=class extends B{constructor(e,t){super(t),this.config=e,d(this,"wasShown"),d(this,"autoCloseTimeout",null),this.wasShown=!1,this.config=a(l({},e),{closable:void 0===e.closable||e.closable})}Close(e=!0){let{baseUrl:t}=this.getInitialState();if(!1===this.config.closable){F._debug(`Format: ${this.config.name} is not closable`);return}return(e&&this.DOM.customFetch(t+"&closed=1"),this.DOM.clearEvents(),"base"===this.config.closeFormat)?this.closeBase():"banner"===this.config.closeFormat?this.closeBanner():"other"===this.config.closeFormat?this.closeOther():void 0}closeBase(){let e=`#${this.GetId()}`,t=document.querySelector(e);t?t.remove():F._debug(`element: ${e} not found`)}closeBanner(){"unknown"!==this.config.hook&&this.Hooks.Call(this.Hooks.Events.Formats[this.config.hook].beforeClose,[]);let e=this.DOM.getByClass(h.Class);if(0===e.length)return!1;let t=e=>{this.DOM.setHTML(e,""),this.DOM.css(e,"display","none"),this.DOM.remove(e)};for(let i in e){let r=e[i];this.DOM.css(r,{height:"0",opacity:"0",marginTop:"0"}),setTimeout(t,F.group.AnimationTimer+500,r)}return"unknown"!==this.config.hook&&this.Hooks.Call(this.Hooks.Events.Formats[this.config.hook].afterClose,[]),!0}closeOther(){"unknown"!==this.config.hook&&this.Hooks.Call(this.Hooks.Events.Formats[this.config.hook].beforeClose,[]);let e=this.DOM.getByID(this.GetId());return e?(setTimeout(()=>{this.delete(e)},F.group.AnimationTimer+500),"unknown"!==this.config.hook&&this.Hooks.Call(this.Hooks.Events.Formats[this.config.hook].afterClose,[]),!0):(F._debug(`Element ${this.GetId()} not found`),!1)}GetId(e,t){if(this.config.requiredPosition&&void 0===e)throw Error("Position is required for this format");let i=this.createId(`${this.config.name}`);return e&&(i+=`-${e}`),t&&(i+=`-${t}`),i}addScrollListener(e=!1,t,i,r){if(this.wasShown)return;let s=o=>{this.isMinimallyVisible(o,t,e,i,()=>{window.removeEventListener("scroll",s),r&&r()})};window.addEventListener("scroll",s)}isMinimallyVisible(e,t=250,i=!1,r,s){let o=r?r():document.getElementById(this.GetId());if(null===o)return;let{defaultUrl:n}=this.getInitialState();if(this.DOM.isMinimallyVisible(o)){if(this.wasShown)return;if(this.wasShown=!0,i){let e=o.querySelectorAll("iframe");for(let i=0;i<e.length;i++)t=(null!=t?t:"height"in o)?Number(o.style.height):o.clientHeight,this.DOM.attr(e[i],{src:n+`&hei=${t}&ts=`+this.Registry.TimeSpent+"&cube-side="+i})}else{let e=o.querySelector("iframe");e&&this.DOM.attr(e,{src:n+`&hei=${t}&ts=`+this.Registry.TimeSpent})}F._debug(`Do Callback: ${this.config.name}`),this.TrackerUtils.DoCallback(this.tracker,!0),s&&s()}}bindBeforeUnloaded(){if("A"!==this.Registry.CurrentApp){if(1===F.User.Mobile){let e=null;this.DOM.bind(window,"visibilitychange",()=>{if("hidden"===document.visibilityState){e=setTimeout(()=>{this.imageUnload("&unload=1"),sessionStorage.setItem(h.UnloadReturnKey,"1")},1e3);return}"1"===sessionStorage.getItem(h.UnloadReturnKey)&&this.imageUnload("&return=1"),clearTimeout(e)})}this.DOM.bind(window,"beforeunload",()=>this.imageUnload("&unload=1"))}}autoCloseValidation(){if(!F.group.AutoClose)return;let{baseUrl:e}=this.getInitialState();this.autoCloseTimeout=window.setTimeout(()=>{this.DOM.customFetch(e+"&autoclose=1"),this.Close(!1)},1e3*F.group.AutoClose)}clearAutoClose(){this.autoCloseTimeout&&(clearTimeout(this.autoCloseTimeout),this.autoCloseTimeout=null)}imageUnload(e){let{baseUrl:t}=this.getInitialState(),i=new Image;i.style.display="none",i.src=t+e}},N={PushDown:class extends V{constructor(e){super({hook:"PushDown",name:"pushdown",closeFormat:"other"},e)}Open(){let e;this.Hooks.Call(this.Hooks.Events.Formats.PushDown.beforeOpen,[this.tracker.ID]);let t=k(),i=.3*this.DOM.getViewportHeight()+"px",{defaultUrl:r,body:s}=this.getInitialState(),o="100%";this.tracker.FileW&&this.tracker.FileW>0&&(o=this.tracker.FileW+"px");let n=F.group.AnimationTimer,c=this.DOM.create("div",{className:this.GetId(),id:this.GetId()},{position:"relative",display:"block",minHeight:"250px",height:i,overflow:"hidden",boxSizing:"unset",top:"0",transition:"margin "+n+"ms ease, height "+n+"ms ease, opacity "+n+"ms ease, padding "+n+"ms ease",zIndex:"10",textAlign:"left",flex:"none"}),d=this.DOM.create("div",{className:this.GetId("info-pushdown"),id:this.GetId("info-pushdown")},{width:"150px",height:"30px",color:"#fff",padding:"0",boxSizing:"unset",top:"5px",left:"5px",fontSize:"9px",position:"relative",zIndex:"20",textShadow:"-1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000",marginBottom:"-40px",fontFamily:"verdana"}),u=this.DOM.shortCutCreate("anchorClever"),p=this.DOM.shortCutCreate("cleverLogoWhite",{},{position:"unset"});if(this.DOM.shortCutCreate("anchorClever"),this.DOM.append(u,p.outerHTML),this.DOM.append(d,u.outerHTML),F.User.Mobile){let i=this.DOM.create("div",{id:this.GetId("pushdown-close")},t&&this.Validator.isEEECountry()?{display:"none"}:{});e=this.DOM.setHTML(i,this.DOM.create("img",{src:O,alt:"close"},{width:"25px",height:"25px"}).outerHTML)}else e=this.DOM.create("img",{id:this.GetId("pushdown-close"),src:O,alt:"close"});Object.assign(e.style,h.btnCss);let g=this.DOM.shortCutCreate("overlay",{id:this.GetId("pushdown-img")},{position:"relative"}),b={width:o,height:"100%",backgroundColor:"#fff",top:"0",left:"0",cursor:"pointer",frameBorder:"0",border:"none",boxSizing:"unset",zIndex:"-1",position:"absolute",margin:"0 auto",display:"block"};F.User.Mobile&&(b=a(l({},b),{minHeight:"250px"}));let C=this.DOM.create("iframe",{className:this.GetId("push-frame"),id:this.GetId("push-frame"),title:"Clever-iframe",name:h.Class,src:r+"&hei="+(.3*this.DOM.getViewportHeight()).toFixed(2)+"px&ts="+this.Registry.TimeSpent,scrolling:"no"},b);if(C.addEventListener("load",()=>{this.DOM.css(c,"height",i),F.group.AutoClose>0&&setTimeout(()=>{this.Close(!1)},1e3*F.group.AutoClose)}),c.appendChild(d),c.appendChild(g),c.appendChild(e),c.appendChild(C),s.insertBefore(c,s.firstChild),g){let e=this.Net.fetchBaseUrl(this.tracker,{id:this.tracker.ID,frominter:1,click:1,ref:v(this.Registry.getLocationHref()),ruri:v(document.referrer),cmpId:this.TCF.cmpId});m(0,0,500),"loading"!==document.readyState?m():document.addEventListener("DOMContentLoaded",()=>m()),this.DOM.bind(g,"click",()=>{this.Callback.Click(),window.open(e+"&ts="+this.Registry.TimeSpent,"_blank"),this.clearAutoClose(),this.Close(!1)})}return this.DOM.bind(e,"click",()=>{this.clearAutoClose(),this.Close()}),this.TrackerUtils.DoCallback(this.tracker,c&&c.offsetWidth>0&&c.offsetHeight>0),window.onresize=()=>{this.DOM.css(c,"height",.3*this.DOM.getViewportHeight()+"px")},F.group.AutoClose>0&&setTimeout(()=>{this.Close(!1)},1e3*F.group.AutoClose),this.Hooks.Call(this.Hooks.Events.Formats.PushDown.afterOpen,[this.tracker.ID]),this.autoCloseValidation(),!0}},SuperTopBoardScroll:class extends V{constructor(e){super({name:"super-topboard-scroll",hook:"SuperTopBoardScroll",closeFormat:"banner"},e),d(this,"Config",{ResizeEvent:!0})}Open(){this.Hooks.Call(this.Hooks.Events.Formats.SuperTopBoardScroll.beforeOpen,[]);let e=this.getBlock(!1);if(!e)return!1;let t=k(),i="1490px";F.User.Mobile&&(i="100%");let r=this.DOM.create("div",{id:this.GetId(),className:"clever-core-super-top-board-scroll"},{position:"relative",width:"100%",maxWidth:i,height:"250px",justifyContent:"center",overflowX:"hidden",cursor:"pointer",margin:"auto"}),s=this.DOM.shortCutCreate("overlay",{id:this.GetId("overlay")}),o=this.DOM.create("img",{src:L,alt:"Logo",id:this.GetId("logo")},{left:"10px",top:"10px",width:"15px",minWidth:"auto",position:"absolute",zIndex:"4500",margin:"0"}),n=this.DOM.create("img",{id:this.GetId("supertopboardscroll-close"),src:O,alt:"close"},t&&this.Validator.isEEECountry()?{display:"none"}:l({},h.btnCss)),a=this.DOM.shortCutCreate("anchorClever"),c=this.DOM.create("div",{},{position:"relative"}),d=this.DOM.create("div",{},{position:"absolute",clip:"rect(0, 100vw, 250px, 0)"}),u=this.DOM.create("iframe",{name:h.Class,id:this.GetId("iframe"),title:"Clever-iframe",frameBorder:"0",scrolling:"no",src:"about:blank",allowFullscreen:!0},{border:"0 none",width:"100%",maxWidth:i,height:"250px",position:"fixed",margin:"0",left:"0"});this.DOM.setHTML(d,u.outerHTML),this.DOM.setHTML(c,d.outerHTML),this.DOM.setHTML(r,s.outerHTML),this.DOM.append(a,o.outerHTML),this.DOM.append(r,a.outerHTML),this.DOM.append(c,n.outerHTML),this.DOM.append(r,c.outerHTML);let p=()=>{let e=document.querySelector(".clever-core-super-top-board-scroll iframe"),t=document.body.clientWidth<=1490?0:(document.body.clientWidth-1490)/2;this.DOM.css(e,"margin-left",t+"px")};if(F._debug("Detected SuperTopBoardScroll ad element"),this.DOM.setHTML(e,r.outerHTML),this.Config.ResizeEvent&&(p(),window.addEventListener("resize",p)),this.DOM.bind(s,"click",()=>{this.Callback.Click(),window.open(this.handleFormatClick(),"_blank")}),this.DOM.bind(n,"click",()=>{this.Close()}),window.self===window.top||I.exists())document.addEventListener("scroll",()=>{let t=e.getBoundingClientRect(),i=t.top>22?"block":"none",r=t.top<22?22:t.top,s=0===window.scrollY?"auto":`${r}px`;this.DOM.css(u,{top:s}),this.DOM.css(n,{display:i}),this.DOM.css(o,{display:i})}),"loading"!==document.readyState?this.isMinimallyVisible(void 0,250):document.addEventListener("DOMContentLoaded",e=>this.isMinimallyVisible(e,250)),this.addScrollListener(!0,250);else{window.addEventListener("message",function(e){let t=e.data.block,i=window.parent.document.querySelector("iframe");t&&null!==i&&(i.height=t.height)}),window.parent.postMessage({block:{height:"250"}},"*"),e&&(e.style.height="2000px"),window.addEventListener("message",e=>{let t=e.data;window.scrollTo(0,2*t.scrollY)});let t=document.querySelector("iframe");if(null!==t){let e=function(){window.postMessage({scrollY:window.parent.scrollY,rectIframe:t.getBoundingClientRect(),window:{height:window.parent.innerHeight,width:window.parent.innerWidth}},"*")};window.onload=e,window.parent.document.addEventListener("scroll",e)}}return this.Hooks.Call(this.Hooks.Events.Formats.SuperTopBoardScroll.afterOpen,[]),!0}}},H=class{constructor(e,t,i,r,s,o,n,l,a,c,u,h,p){this.Registry=e,this.DOM=t,this.Net=i,this.TrackerUtils=r,this.Cookie=s,this.Hooks=o,this.Callback=l,this.Validator=h,d(this,"args"),d(this,"isForbiddenURL"),d(this,"trackerFormats",new Map),d(this,"current",null),d(this,"getNextTracker"),d(this,"getMultiproductTracker"),d(this,"getOrCreateFormat"),d(this,"getTracker"),this.isForbiddenURL=a.IsForbiddenURL(i.currentLocation()),this.args={Registry:e,Validator:h,DOM:t,AMP:n,Net:i,TrackerUtils:r,Hooks:o,Callback:l,URL:a,TCF:c,Translation:u,Tracker:this},this.getNextTracker=(e=p,t=!1)=>this._getNextTracker(e,t),this.getMultiproductTracker=e=>this._getMultiproductTracker(p,e),this.getOrCreateFormat=(e,t)=>this._getOrCreateFormat(p,e,t),this.getTracker=e=>this._getTracker(e,e)}initialize(){if(this.current=null,this.Net.ExtraParam+=`&ctr=${F.User.CTR}&sz=${this.DOM.getViewportHeight()}`,!this.Validator.isAllowedToGetTrackers())return!1;let e=this.getNextTracker();e&&this.bindEvents(e),(null==e?void 0:e.multiproduct)&&(e=this.getMultiproductTracker(e))&&this.bindEvents(e);let t=this.Cookie.checkExpire();return e?(t||this.isForbiddenURL||(F.User.lastTracker=e.Sort,this.Cookie.saveLastTracker(e.Sort)),this.getNextTracker(void 0,!0)||(e&&!t&&this.Cookie.saveCounter(0,1),this.Cookie.deleteLastTracker(),localStorage.removeItem(h.RandomizerHasBeenShownOnce)),this.addGarbageListener(),e.ID):(t&&(this.TrackerUtils.handleCalbackWithValidation("alternative",e=>u(this,null,function*(){(yield this.Net.inject(e).catch(()=>(F._debug("Alternative "+e+" Url"),!1)))&&F._debug("Alternative  "+e+" Url")}),e),F.User.Mobile&&window.postMessage("clever|alternative","*")),!1)}bindEvents(e){if(this.trackerFormats.has(e.ID)||this.Cookie.checkExpire()&&!this.DOM.Meta("alternative")&&e.cap&&this.Cookie.readTrackerCap(e.ID))return;let t={popunder:"popUnder",banner:"banner",bannerSponsorClick:"bannerSponsorClick",interscroller:"interScroller",miniscroller:"miniScroller",leaderboard:"leaderBoard",expandablebannerleft:"expandableBannerLeft",expandablebannerright:"expandableBannerRight",supertopboardscroll:"superTopBoardScroll",bannercube:"bannerCube",cube:"cube",box3d:"box3d",mosaic:"mosaic",interactivebanner:"interactiveBanner",scratchbanner:"scratchBanner"},i={},r=e.Type;if(t[r]&&(F._debug(`${r} format detected`),i[t[r]]=!0),Object.values(i).every(e=>!e))for(let e of this.DOM.getByClass(h.Class))this.DOM.remove(e);this.openTracker(e)}openTracker(e){F._debug(`Format '${e.Type}' will try to execute`);let t=e.Type;if(!t){F._debug("No format was detected");return}if(!this.Cookie.checkExpire()||e.cap&&!this.Cookie.readTrackerCap(e.ID)){if(["scratchinterstitial","inter","interclick","interclose","interonclose","internotime","layerleft","layerright","pushdown"].includes(t)&&F.group.DisableIframes&&top!==self)return this.TrackerUtils.handleDisabledIframe();if(("layerleft"===t||"layerright"===t)&&(!F.User.Mobile||e.FileW>0&&this.DOM.getViewportWidth()>e.FileW))return this.getOrCreateFormat(e,N.LayerOver).Open();let i=this.findFormatByTrackerType(t);return i?this.getOrCreateFormat(e,i).Open():(this.Callback.FailedToLoad(),F.User.Mobile&&window.postMessage("clever|callback","*"),F._debug("No tracker was loaded"))}F._debug("CAP")}_getNextTracker(e,t=!1){let i=this.Cookie.readCookie("lastTracker");F.User.lastTracker=i?Number(i):void 0;let r=this.getTracker(e);if(r)return this.Validator.isRandomizableGroup()&&this.Validator.isRandomizableTracker(r)&&!t&&(localStorage.setItem(h.RandomizerHasBeenShownOnce,"1"),localStorage.setItem(h.RandomizerLastShownKey,r.Sort.toString())),t||(this.current=r),r}_getMultiproductTracker(e,t){if(this.Registry.isMultiProduct){let i=e.filter(e=>1===e.multiproduct&&e.ID!==t.ID);return this.getNextTracker(i)}}_getOrCreateFormat(e,t,i){let r=this.trackerFormats.get(t.ID);if(r)return r;let s=new i(l({tracker:t,trackers:e},this.args));return this.trackerFormats.set(t.ID,s),!this.isForbiddenURL&&t.cap&&this.Cookie.saveTrackerCap(t.ID,t.Sort,t.cap),s}findFormatByTrackerType(e){var t;if(["interScroller","interScroller-iframe","topScroll","topScrollSponsorClick","miniScroller","superTopBoardScroll","leaderBoard","expandableBannerLeft","expandableBannerRight","bannerCube","cube","scratchBanner","stickyClick","stickyFooter","stickyPop","stickySponsorClick","stickySponsorClickTop","stickyTest","mosaic","box3D","banner-app","banner-app-video","banner-app-countdown","interactiveBanner","interactiveSticky","mobilePull","pushDown","pushdownSponsorClick","inter","interclick","interpaywall","interclose","interonclose","internotime","scratchinterstitial","layerleft","layerright","banner","bannerSponsorClick"].find(t=>t.toLowerCase()===e.toLowerCase())){let i={"interScroller-iframe":{className:"IframeInterScroller"},"banner-app":{className:"BannerApp"},"banner-app-video":{className:"BannerAppVideo"},"banner-app-countdown":{className:"BannerAppCountdown"},scratchinterstitial:{className:"ScratchInterstitial"},inter:{className:"Interstitial"},interclose:{className:"Interstitial"},interclick:{className:"Interstitial"},interonclose:{className:"Interstitial"},internotime:{className:"Interstitial"},layerleft:{className:"Interstitial"},layerright:{className:"Interstitial"}}[e.toLowerCase()],r=null!=(t=null==i?void 0:i.className)?t:e,s=Object.keys(N).find(e=>e.toLowerCase()===r.toLowerCase());if(!s)return;return F._debug(`Format ${s} found`),N[s]}}_getTracker(e,t){var i,r,s;if(0===t.length)return;let o=!!F.User.Mobile&&F.User.Mobile>0,n=o&&2===F.group.DisableMobile,l=e.length!==t.length,a=F.User.lastTracker,c=Number(null!=(r=null==(i=e.findLast(e=>this.Validator.isRandomizableTracker(e)))?void 0:i.Sort)?r:0),d="1"===localStorage.getItem(h.RandomizerHasBeenShownOnce),u=Number(null!=(s=localStorage.getItem(h.RandomizerLastShownKey))?s:0);for(let t of e=e.filter(e=>this.Validator.isRandomizableTracker(e)&&this.Validator.isRandomizableGroup()?!d&&(c===u||e.Sort!==u):void 0===a||e.Sort>a)){if(this.Validator.isInvalidTracker(t)||(this.Validator.adjustTrackerForItaly(t),!l&&void 0!==a&&t.Sort<=a))continue;let i=t.CTR===F.User.CTR;if(t.OnlyMobile){if(o){if(i){if(t.Region){if(t.Region===F.User.r)return t}else if(!this.Validator.isTrackerFromUserRegion(e))return t}if("AA"===t.CTR)return t}continue}if(i){if(t.Region){if(t.Region===F.User.r)return t}else if(!this.Validator.isTrackerFromUserRegion(e))return t}if(!n&&(i&&t.Region&&t.Region===F.User.r||"AA"===t.CTR)||i&&!t.Region&&!this.Validator.isTrackerFromUserRegion(e))return t}}addGarbageListener(){window.addEventListener("message",e=>{var t;if("string"!=typeof e.data||-1===this.Registry.postMessageSources.indexOf(e.origin)||!e.data.startsWith("garbage"))return;F._debug("Garbage: "+e.data.replace("garbage-clever|",""));let i=F.group.ID,r=[`div[class="${h.Class}"]`,`div[class="${h.MultiClass}"]`,`div[id^="clever-${i}-"]`,`img[id^="clever-${i}-"]`];for(let e of(this.DOM.clearEvents(),this.Callback.FailedToLoad(),r))null==(t=document.querySelector(e))||t.remove();this.Hooks.Call(this.Hooks.Events.Garbage.afterRemove,[])})}},P=class{constructor(e,t,i){this.DOM=e,this.Callback=t,this.URL=i,d(this,"multiProductDivs",[])}getMultiProductDiv(e){var t;let i=this.DOM.getByClass(h.MultiClass);if(0===i.length){let e=this.DOM.Meta("target");if(e&&window.name!==e){let i=this.DOM.getByID(e);if(!i)return F._debug("No sourceBannerFrame found"),this.Callback.FailedToLoad(),!1;F._debug("Placeholder found by target");let r=this.DOM.create("div");r.className=h.MultiClass,i.setAttribute("style","z-index:1; position:absolute; margin: auto; left: 0px; right: 0px"),null==(t=i.parentNode)||t.appendChild(r),this.multiProductDivs.push({div:r})}let i=this.DOM.getByClass(h.Class)[0];i&&this.multiProductDivs.push({div:i,isMain:!0})}for(let e of i)this.multiProductDivs.push({div:e});let r=this.multiProductDivs.findIndex(t=>!t.isMain&&(!t.trackerId||t.trackerId===e.ID));return!!this.multiProductDivs[r]&&(this.multiProductDivs[r].trackerId=e.ID,this.multiProductDivs[r])}handleCalbackWithValidation(e,t,i){let r=this.DOM.Meta(e);if(r){if(F._debug(`Type: ${typeof r}`),this.URL.validateUrl(r)){F._debug(`${r} is Url`),t(r=(r=r.replace("{hstpuser}",v(JSON.stringify(F.User)))).replace("{hstpurl}",v(JSON.stringify(i))));return}if("function"==typeof r){var s;F._debug(`Callback ${r} is function`),s=F.User,r(s,i);return}if(r&&"string"==typeof r){if("function"==typeof window[r]){F._debug("Callback "+r+" is in main window"),function(e,t,i){(0,e[r])(t,i)}(window,F.User,i);return}F._debug("Callback "+r+" try to eval"),function(e,t){try{let i=(0,eval)(r);"function"==typeof i&&i(e,t)}catch(e){}}(F.User,i)}}}DoCallback(e,t){this.Callback.View(),t&&this.handleCalbackWithValidation("callback",e=>{let t=new Image(1,1);t.style.display="none",setTimeout(()=>{t.src=e},0)},e)}handleDisabledIframe(){let e=window.location.href+"?wn="+encodeURIComponent(window.name)+"&r1="+encodeURIComponent(document.referrer);try{setTimeout(function(){top&&(top.location.href=e)},1e3),F._debug("Iframe Acess")}catch(t){setTimeout(function(){parent.location.href=e},1e3)}return!1}},G=class{constructor(e,t,i="staging-sender.cleverwebserver.com"){this.forbiddenURLs=e,this.DOM=t,this.senderUrl=i,d(this,"urlRegex",/^(https?|s?ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i)}IsForbiddenURL(e){return this.forbiddenURLs.some(t=>{try{let i=decodeURIComponent(decodeURIComponent(t));return e.startsWith(i)||e.startsWith("www."+i)||e.includes(i)}catch(e){console.log("Forbidden URL is incorrect")}return!1})}FetchDomain(e){return e.replace("http://","").replace("https://","").replace("capacitor://","").replace("www.","").split(/[/?#]/)[0].replace(/^[./ ]+/g,"").replace(/[./ ]+$/g,"")}CurrentDomain(){return this.FetchDomain(C())}BaseUrl(){return`${this.senderUrl}/group/${F.group.ID}`}validateUrl(e){return this.urlRegex.test(e)}IsValid(e){try{return new URL(e),!0}catch(e){return!1}}GetExternalReferer(){var e;let t;return this.DOM.Meta("gam-ref-url")&&(t=null==(e=this.DOM.Meta("gam-ref-url"))?void 0:e.replace("%%REFERRER_URL_UNESC%%","")),t||(t=document.referrer),t}},W=class{constructor(e,t,i,r){this.Registry=e,this.TCF=t,this.Cookie=i,d(this,"specificBrands",["snai","quigioco"]),d(this,"isRandomizableGroup"),d(this,"isTrackerFromUserRegion"),this.isRandomizableGroup=()=>this._isRandomizableGroup(r),this.isTrackerFromUserRegion=()=>this._isTrackerFromUserRegion(r)}isRandomizableTracker(e){return"ZA"===e.CTR&&"hollywoodbets"===e.Landing&&("sports"===e.Vertical||"casino"===e.Vertical)}_isRandomizableGroup(e){let t=e.filter(e=>"ZA"===e.CTR&&"hollywoodbets"===e.Landing&&e.OnlyMobile===F.User.Mobile),i=t.filter(e=>"sports"===e.Vertical).length>0&&t.filter(e=>"casino"===e.Vertical).length>0;return t.length>=2&&i&&"ZA"===this.Registry.User.CTR}isAllowedToGetTrackers(){return 1===F.group.DisableMobile&&F.User.Mobile||1===F.User.bot?(F._debug("Bot"),!1):"file:"!==document.location.protocol||(F._debug("Try to access local"),!1)}isInvalidTracker(e){return!!this.isAllowedBundleId(e)||this.isBlockedByMobileOnly(e)||this.isBlockedByRegion(e)||this.isBlockedByTCF(e)||this.isTrackerOnCap(e)}isAllowedBundleId(e){return"A"===F.group.ads_script_type&&(F.User.Platform!==e.script_type||this.Registry.CurrentApp&&this.Registry.CurrentApp!==e.bundleId)}isBlockedByMobileOnly(e){return!!F.User.Mobile&&0===e.OnlyMobile&&(F._debug("Tracker is desktop only"),!0)}isBlockedByRegion(e){if(!e.brand)return!1;let t=this.Registry.BlockedBrandsByRegion;return!!(e.brand in t&&F.User.r&&t[e.brand].includes(F.User.r))&&(F._debug(`Blocked Brand: ${e.brand} for Region: ${F.User.r}`),!0)}adjustTrackerForItaly(e){var t;if("IT"===e.CTR&&"cube"===e.Type&&"888"!==e.Landing){let i="bannercube";this.specificBrands.includes(null!=(t=e.Landing)?t:"")&&"casino"==e.Vertical&&(i="cube"),e.Type=i}}isBlockedByTCF(e){return!!(e.brand&&this.TCF.requiredBrands.includes(e.brand)&&this.TCF.isRequired())&&!this.TCF.exists()&&(F._debug("Brand: "+e.brand+" can be shown only via TCF"),!0)}isTrackerOnCap(e){return this.Cookie.checkExpire()?!e.cap||!!this.Cookie.readTrackerCap(e.ID):!!(e.cap&&this.Cookie.readTrackerCap(e.ID))&&(F._debug(`Tracker ${e.ID} on cap`),!0)}_isTrackerFromUserRegion(e){return e.some(e=>e.Region&&e.Region===F.User.r&&e.CTR===F.User.CTR&&e.OnlyMobile===F.User.Mobile)}isEEECountry(){let e=F.User.CTR;return!!e&&h.EEECountries.includes(e)}},z={IT:{CLOSE:"Chiudi",CLOSE_AD:"Chiudi l'annuncio",CLOSE_VISIT_SITE:"Chiudi e torna al sito",VISIT_SITE:"Visita il sito",CONTINUE:"Continue"},EN:{CLOSE:"Close",CLOSE_AD:"Close the Ad",CLOSE_VISIT_SITE:"Skip and Visit Site",VISIT_SITE:"Visit Site",CONTINUE:"Continue"},CN:{CLOSE:unescape("%u5173%u95ED"),CLOSE_AD:unescape("%u5173%u95ED%u5E7F%u544A"),CLOSE_VISIT_SITE:unescape("%u8DF3%u8FC7%uFF0C%u8BBF%u95EE%u7F51%u7AD9"),VISIT_SITE:unescape("%u8BBF%u95EE%u7F51%u7AD9"),CONTINUE:"Continue"},ES:{CLOSE:"Cerrar",CLOSE_AD:"Cerrar el anuncio",CLOSE_VISIT_SITE:"Visitar Anunciante",VISIT_SITE:"Visitar la web",CONTINUE:"Continue"},MX:{CLOSE:"Cerrar",CLOSE_AD:"Cerrar el anuncio",CLOSE_VISIT_SITE:"Visitar Anunciante",VISIT_SITE:"Visitar la web",CONTINUE:"Continue"},PT:{CLOSE:"Fechar",CLOSE_AD:"Fechar An\xfancio",CLOSE_VISIT_SITE:"Fechar e visitar",VISIT_SITE:"Visitar pagina",CONTINUE:"Continue"},BR:{CLOSE:"Fechar",CLOSE_AD:"Fechar Pub",CLOSE_VISIT_SITE:"Fechar e visitar",VISIT_SITE:"Visitar pagina",CONTINUE:"Continue"},HU:{CLOSE:"Bez&aacute;r",CLOSE_AD:"Z&#xE1;rja be a hirdet&#xE9;st",CLOSE_VISIT_SITE:"Tov&aacute;bb az oldalra",VISIT_SITE:"Oldal megtekint&eacute;se",CONTINUE:"Continue"},TR:{CLOSE:"kapat",CLOSE_AD:"Reklamı Kapat",CLOSE_VISIT_SITE:"Kapa ve siteye git",VISIT_SITE:"Bu siteyi ziyaret et",CONTINUE:"Continue"},PL:{CLOSE:"Zamknij",CLOSE_AD:"Zamknij og&#x142;oszenie",CLOSE_VISIT_SITE:"Pomiń i odwiedź stronę",VISIT_SITE:"Zobacz portal",CONTINUE:"Continue"},SE:{CLOSE:"Close",CLOSE_AD:"St\xe4ng annonsen",CLOSE_VISIT_SITE:"Skip and visit Advertiser",VISIT_SITE:"Visit Site",CONTINUE:"Continue"},FR:{CLOSE:"Fermer",CLOSE_AD:"Fermez l'annonce",CLOSE_VISIT_SITE:"Acc\xe8der directement \xe0 la publicit\xe9",VISIT_SITE:"Acc\xe9der au site",CONTINUE:"Continue"},BE:{CLOSE:"Fermer",CLOSE_AD:"Fermez l'annonce",CLOSE_VISIT_SITE:"Acc\xe9der directement au site",VISIT_SITE:"Acc\xe9der au site",CONTINUE:"Continue"},CZ:{CLOSE:unescape("Zav%u0159%EDt"),CLOSE_AD:unescape("Zav%u0159ete%20reklamu"),CLOSE_VISIT_SITE:unescape("P%u0159esko%u010Dit%20a%20nav%u0161t%EDvit%20str%E1nku"),VISIT_SITE:unescape("Nav%u0161t%EDvit%20str%E1nku"),CONTINUE:"Continue"},RU:{CLOSE:"Закрыть",CLOSE_AD:"Закрыть рекламу",CLOSE_VISIT_SITE:"Пропустить и зайти на сайт",VISIT_SITE:"Зайти на сайт",CONTINUE:"Продолжить"}},$=class{Get(e,t="EN"){return z[t]?z[t][e]:z.EN[e]}getTranslation(e){return z[e]?z[e]:z.EN}};return class e{constructor(e){var t;d(this,"Version","2.27.4"),d(this,"Registry"),d(this,"Hooks"),d(this,"SafeFrame"),d(this,"AMP"),d(this,"URL"),d(this,"DOM"),d(this,"TCF"),d(this,"Net"),d(this,"Tracker"),d(this,"TrackerUtils"),d(this,"Validator"),d(this,"Translation"),d(this,"Cookie"),d(this,"Callback"),"object"==typeof e.trackers&&(e.trackers=Object.values(e.trackers)),e.trackers=this.normalizeTrackers(null!=(t=e.trackers)?t:[]);let{forbiddenUrls:i,senderUrl:r}=e,s=c(e,["forbiddenUrls","senderUrl"]);this.DOM=new U(s.group),this.URL=new G(i,this.DOM,r),this.AMP=new E(this.URL,this.DOM),this.Callback=new S(this.DOM,this.URL),this.SafeFrame=new I(this.URL),this.Registry=new F(s,this.SafeFrame,this.AMP,this.URL,this.DOM,e.trackers),this.TCF=new A,this.Net=new x(this.Version,this.DOM,this.Registry,this.URL,this.AMP,this.TCF),this.Hooks=new _,this.Translation=new $,this.Cookie=new M(this.Registry),this.Validator=new W(this.Registry,this.TCF,this.Cookie,e.trackers),this.TrackerUtils=new P(this.DOM,this.Callback,this.URL),this.Tracker=new H(this.Registry,this.DOM,this.Net,this.TrackerUtils,this.Cookie,this.Hooks,this.AMP,this.Callback,this.URL,this.TCF,this.Translation,this.Validator,e.trackers),this.dynamicUrl()}static get Init(){return class extends e{constructor(...e){super({trackers:e[0],group:e[1],timeout:e[2],whitelistDomains:e[3],whitelistApps:e[4],forbiddenUrls:e[5],callbackUrl:e[6],senderUrl:e[7]})}}}dynamicUrl(){if("undefined"!=typeof window){let e=window.location.hostname;for(let t of p)t.test(e)&&(this.Registry.Whitelist=this.Registry.Whitelist.concat(e))}}exec(){return u(this,null,function*(){if(this.Hooks.Call(this.Hooks.Events.Generic.beforeRun,[]),this.Registry.Latency.Start=new Date,!this.Registry.CallbackUrl)return this.Hooks.Call(this.Hooks.Events.Generic.afterRun,[]),!1;if(!(yield this.Net.inject(this.Registry.CallbackUrl))){F._debug("UI failed to load");return}if(this.Registry.normalizeUser(),F._debug("UI Loaded"),this.Registry.Latency.End=new Date,this.Hooks.Call(this.Hooks.Events.Generic.afterUI,[]),this.AMP.isEnabled()&&this.AMP.exists())return F._debug("Loading via AMP observer"),this.AMP.registerViewObserver(()=>this.LoaderCode()),!0;let e=(this.TCF.isRequired()||this.TCF.isEnabled())&&this.TCF.exists();return F.group.DOMLoad?(e?(F._debug("Loading via event TCF"),T(()=>this.TCF.registerEventListeners())):(F._debug("Loading via listener"),T(()=>this.LoaderCode())),!0):e?(F._debug("Loading via TCF"),this.TCF.registerEventListeners(()=>this.LoaderCode()),!0):(F._debug("Load normally"),this.Hooks.Call(this.Hooks.Events.Generic.afterRun,[]),this.LoaderCode())})}LoaderCode(){return u(this,null,function*(){var e,t,i,r,s,o,n,l,a,c;let d=window.CLEVER_CALLBACK_LOAD;d&&("string"==typeof d&&this.URL.validateUrl(d)?yield this.Net.inject(d):"function"==typeof d&&d());let u=this.Net.buildURI("https://call.cleverwebserver.com",{id:F.group.ID,c:null!=(e=F.User.CTR)?e:"",r:null!=(t=F.User.r)?t:"",l:this.Registry.Latency.End.getTime()-this.Registry.Latency.Start.getTime(),b:null!=(i=F.User.Browser)?i:"",bv:null!=(r=F.User.bv)?r:"",os:null!=(s=F.User.Platform)?s:"",mob:null!=(o=F.User.Mobile)?o:0,v:this.Version,lg:navigator.language,ref:window.btoa(null!=(n=this.Registry.getLocationHref())?n:""),ruri:window.btoa(this.URL.GetExternalReferer()),s:null!=(l=F.User.s)?l:"",e:null!=(a=F.User.e)?a:"",st:null!=(c=F.group.ads_script_type)?c:""});return this.DOM.customFetch(u),!!this.Tracker.initialize()||(console.warn("Tracker ID not found"),this.Callback.FailedToLoad(),!1)})}normalizeTrackers(e){return e.map((e,t)=>{var i,r,s,o,n,c,d;return a(l({},e),{FileW:Number(null!=(i=e.FileW)?i:0),FileH:Number(null!=(r=e.FileH)?r:0),multiproduct:Number(null!=(s=e.multiproduct)?s:0),OnlyMobile:Number(null!=(o=e.OnlyMobile)?o:0),DisallowOnTarget:Number(null!=(n=e.DisallowOnTarget)?n:0),CTR:null!=(c=e.CTR)?c:"AA",Sort:Number(null!=(d=e.Sort)?d:t)})})}}})(),window.CleverCore=new window.CC.Init([{AllowMobile:1,CTR:"GR",DOMLoad:0,Expires:20,FileH:null,FileW:null,GroupID:51233,ID:1053678,Iframe:null,Landing:"novibet",OnlyMobile:0,Region:"",Sort:10,TrackerID:749124,Type:"supertopboardscroll",Vertical:"sports",brand:"novibet",bundleId:"",cap:null,is_forbidden_enabled:1,is_random:0,multiproduct:0,publisher_app_id:"",script_type:""},{AllowMobile:1,CTR:"GR",DOMLoad:0,Expires:20,FileH:null,FileW:null,GroupID:51233,ID:1053679,Iframe:null,Landing:"novibet",OnlyMobile:1,Region:"",Sort:11,TrackerID:749125,Type:"supertopboardscroll",Vertical:"sports",brand:"novibet",bundleId:"",cap:null,is_forbidden_enabled:1,is_random:0,multiproduct:0,publisher_app_id:"",script_type:""},{AllowMobile:1,CTR:"CY",DOMLoad:0,Expires:20,FileH:null,FileW:null,GroupID:51233,ID:1059200,Iframe:null,Landing:"novibet",OnlyMobile:0,Region:"",Sort:16,TrackerID:754646,Type:"supertopboardscroll",Vertical:"sports",brand:"novibet",bundleId:null,cap:null,is_forbidden_enabled:1,is_random:0,multiproduct:0,publisher_app_id:null,script_type:null},{AllowMobile:1,CTR:"CY",DOMLoad:0,Expires:20,FileH:null,FileW:null,GroupID:51233,ID:1059201,Iframe:null,Landing:"novibet",OnlyMobile:1,Region:"",Sort:17,TrackerID:754647,Type:"supertopboardscroll",Vertical:"sports",brand:"novibet",bundleId:null,cap:null,is_forbidden_enabled:1,is_random:0,multiproduct:0,publisher_app_id:null,script_type:null}],{AMP:0,AnimationTimer:0,AutoClose:0,DOMLoad:0,DisableIframes:1,DisableMobile:0,Disabled:0,Expire:20,ExpireMobile:20,ID:51233,SafeFrame:0,Subdomains:0,TCF:0,TriggerTimer:0,UseLink:0,ads_script_type:"W",last_build_date:"2025-01-06T16:33:07Z"},0,["sportjournal.gr"],[],[],"https://ui.cleverwebserver.com","https://sender.cleverwebserver.com"),window.CleverCore.Registry.Debug("v"+window.CleverCore.Version),window.CleverCore.Registry.Debug(window.CleverCore.Registry.Group.ID),window.CleverCore.Registry.Debug("2025-01-06 16:33:07"),window.CleverCore.Registry.Group.Disabled?window.CleverCore.Registry.Debug("Script disabled"):window.CleverCore.Registry.Group.TriggerTimer>0?(window.CleverCore.Registry.Debug("Waiting for "+window.CleverCore.Registry.Group.TriggerTimer+" millisecond(s)..."),setTimeout(function(){window.CleverCore.exec()},window.CleverCore.Registry.Group.TriggerTimer)):window.CleverCore.exec());