(function(id,ctx){(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};m[i].l=1*new Date();for(var j=0;j{var m=ck.match(new RegExp('(?:^|;\\s*)'.concat(k).concat('=([^;]+)')));return m&&m[1]});if('localStorage' in window){try{r[4]=localStorage.getItem('adrcid')}catch(e){} try{r[5]=JSON.parse(localStorage.getItem('rb_sync_id')).fpid}catch(e){} try{r[6]=localStorage.getItem('cached_thumbmark')}catch(e){} try{r[7]=localStorage.getItem('cached_bot')}catch(e){}} if(!r[6]){try{var m=ck.match(/(?:^|;\s*)_sltm=([^;]+)/);r[6]=m&&m[1]}catch(e){}} if(r[6]&&r[6].includes('~')){var p=r[6].split('~');r[6]=p[0];if(r[7]==null)r[7]=p[1]} if(!r[7]){try{var m=ck.match(/(?:^|;\s*)_sltb=([^;]+)/);r[7]=m&&m[1]}catch(e){}} try{const[t,b]=await Promise.allSettled([r[6]?Promise.resolve({thumbmark:r[6]}):import('https://static.kimberlite.io/js/thumbmark.umd.js').then(()=>new ThumbmarkJS.Thumbmark({logging:false}).get()),r[7]!==null?Promise.resolve({bot:r[7]}):import('https://static.kimberlite.io/js/botd.js').then(m=>m.load()).then(a=>a.detect())]);if(t.status=='fulfilled'){try{r[6]=t.value.thumbmark}catch(e){}} if(b.status=='fulfilled'){try{r[7]=+b.value.bot?1:0}catch(e){}} if(r[6]){try{var fp=r[7]!=null?r[6]+'~'+r[7]:r[6];if('localStorage' in window&&(!localStorage.getItem('cached_thumbmark')||!localStorage.getItem('cached_thumbmark').includes('~'))){localStorage.setItem('cached_thumbmark',fp)} document.cookie='_sltm='+fp+'; path=/; max-age=7776000; samesite=lax; secure';}catch(e){}} if(r[7]!=null){try{if('localStorage' in window&&localStorage.getItem('cached_bot')===null){localStorage.setItem('cached_bot',r[7])} document.cookie='_sltb='+r[7]+'; path=/; max-age=7776000; samesite=lax; secure';}catch(e){}}}catch(e){console.log(e)} try{var xhr=new XMLHttpRequest();var query=[['v',1],['u',r.map((i)=>i||'').join(',')]].map((i)=>i[0].concat('=',encodeURIComponent(i[1]))).join('&');xhr.open('GET','https://kimberlite.io/rtb/ut?'+query,true);xhr.withCredentials=true;xhr.send();}catch(e){console.log(e)} if(r[6]){const original_fetch=window.fetch;const bid_url='//kimberlite.io/rtb/bid/vast/';window.fetch=function(...args){try{var input=args[0];var url=typeof input==='string'?input:(input&&input.url);if(url&&url.includes(bid_url)){const urlObj=new URL(url);urlObj.searchParams.set('fp',r[7]!=null?r[6]+'~'+r[7]:r[6]);args[0]=typeof input==='string'?urlObj.toString():new Request(urlObj.toString(),input);}}catch(e){console.log(e)} return original_fetch.apply(this,args);};const original_open=XMLHttpRequest.prototype.open;XMLHttpRequest.prototype.open=function(method,url,...args){try{if(url&&url.includes(bid_url)){const urlObj=new URL(url);urlObj.searchParams.set('fp',r[7]!=null?r[6]+'~'+r[7]:r[6]);url=urlObj.toString();}}catch(e){console.log(e)} return original_open.apply(this,[method,url,...args]);};var age_ok=false;if(ctx){age_ok=ctx['age_ok'];delete ctx['age_ok']} if(ctx&&!age_ok){const isYandex=/YaBrowser/i.test(navigator.userAgent);const isIOS=/iPad|iPhone|iPod/.test(navigator.userAgent)||(navigator.platform==='MacIntel'&&navigator.maxTouchPoints>1);if(isYandex||isIOS){ctx['sessionId']=r[6].concat(':',ctx['ip']);ctx['ut']='fpip'} else{ctx['sessionId']=r[6];ctx['ut']='fp'}}} if(id&&ctx&&('ym' in window)){ym(id,"init",{clickmap:true,trackLinks:true,accurateTrackBounce:true,webvisor:true,params:ctx});} if(r[6])(function(stable){try{var re=/adfox|an\.yandex|yabs\.yandex|yandex_rtb|safeframe|Ya\.Context|yaContextCb|\brtb\b/i;var yd=/an\.yandex|yabs\.yandex|yandex_rtb|adfox|safeframe/i;var seen={};var t0=(window.performance&&performance.now)?performance.now():0;var ms=function(){return Math.round(((window.performance&&performance.now)?performance.now():0)-t0)};var scan=function(){var batch=[];try{document.querySelectorAll('iframe').forEach(function(f){var cls=typeof f.className==='string'?f.className:'';var blob=[f.src||'',f.id||'',f.name||'',f.title||'',cls,f.outerHTML||''].join(' ');if(!re.test(blob))return;if(f.closest&&f.closest('ins,[data-adfox-id],[data-rtb-id],[id*=yandex_rtb]'))return;var k='i|'+(f.src||'')+(f.id||'')+(f.name||'');if(seen[k])return;seen[k]=1;var click='';try{var d=f.contentDocument||(f.contentWindow&&f.contentWindow.document);if(d){var a=d.querySelector('a[href]');if(a)click=a.href}}catch(e){} batch.push({stable:stable,event_type:'show',creative_type:'banner',creative_id:f.id||f.name||'',click_url:click||f.src||'',placement:f.id||f.name||'',is_yandex_direct:yd.test(blob)?1:0,publisher_host:location.hostname,page_url:location.href,ts:Date.now(),loaded_at_ms:ms()});});document.querySelectorAll('ins,[data-adfox-id],[data-rtb-id],[id*=yandex_rtb]').forEach(function(el){var af=el.getAttribute('data-adfox-id')||'',rt=el.getAttribute('data-rtb-id')||'';var cls=typeof el.className==='string'?el.className:'';if(!af&&!rt&&!re.test((el.id||'')+' '+cls))return;if(!el.querySelector('iframe'))return;var blk=(cls.match(/R-[A-Z]-\d+-\d+/)||[])[0]||af||rt||'';var partner=(blk.match(/R-[A-Z]-(\d+)/)||[])[1]||'';var k='c|'+(el.id||blk);if(seen[k])return;seen[k]=1;batch.push({stable:stable,event_type:'show',creative_type:'banner',creative_id:'',click_url:'',placement:blk||el.id||'',partner_id:partner,is_yandex_direct:1,publisher_host:location.hostname,page_url:location.href,ts:Date.now(),loaded_at_ms:ms()});});}catch(e){} if(!batch.length)return;try{var body=JSON.stringify({events:batch});if(navigator.sendBeacon)navigator.sendBeacon('https://kimberlite.io/rtb/adxspc',new Blob([body],{type:'text/plain'}));else{var x=new XMLHttpRequest();x.open('POST','https://kimberlite.io/rtb/adxspc',true);x.withCredentials=true;x.setRequestHeader('Content-Type','application/json');x.send(body)}}catch(e){}};[1500,6000,15000].forEach(function(dl){setTimeout(scan,dl)});}catch(e){}})(r[6]);})(id,ctx);})(108219966,{"p1":"73","ip":"194.154.29.176","sessionId":"aqEXtvKfIBs"});