!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c||a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g>2,g=(3&c)<<4|d>>4,h=(15&d)<<2|e>>6,i=63&e,isNaN(d)?h=i=64:isNaN(e)&&(i=64),j=j+this._keyStr.charAt(f)+this._keyStr.charAt(g)+this._keyStr.charAt(h)+this._keyStr.charAt(i);return b?j:j.replace(/=+$/,"")},decode:function(a){var b,c,d,e,f,g,h,i="",j=0;for(a=a.replace(/[^A-Za-z0-9\+\/\=]/g,"");j>4,c=(15&f)<<4|g>>2,d=(3&g)<<6|h,i+=String.fromCharCode(b),64!=g&&(i+=String.fromCharCode(c)),64!=h&&(i+=String.fromCharCode(d));return i=Base64Url._utf8_decode(i)},_utf8_encode:function(a){a=a.replace(/\r\n/g,"\n");for(var b="",c=0;c127&&d<2048?(b+=String.fromCharCode(d>>6|192),b+=String.fromCharCode(63&d|128)):(b+=String.fromCharCode(d>>12|224),b+=String.fromCharCode(d>>6&63|128),b+=String.fromCharCode(63&d|128))}return b},_utf8_decode:function(a){for(var b="",c=0,d=c2=c3=0;c191&&d<224?(c2=a.charCodeAt(c+1),b+=String.fromCharCode((31&d)<<6|63&c2),c+=2):(c2=a.charCodeAt(c+1),c3=a.charCodeAt(c+2),b+=String.fromCharCode((15&d)<<12|(63&c2)<<6|63&c3),c+=3);return b}},CommunicationError=function(){},EventsApi={tukanParams:{},_events:[],_getTrackingIDCallbacks:[],_getTukanIDCallbacks:[],_getOptOutCallbacks:[],_getConsentCallbacks:[],_queueEvents:[],_postIntervalId:null,_postInterval:null,_blockedIntervalId:null,_blockedAC:[],_defaultPostInterval:500,_defaultBlockedInterval:6e4,_JSON:{},_loaders:{},_initializing:!1,_initialized:!1,_optout_endpoint:"https://optout.dreamlab.pl/",_tracking:{events:{endpoint:"events.ocdn.eu",version:"v2",backupEndpointType:null,cookieName:"ea_uuid",tukanCookie:"ea_tukan",pubConsentCookie:"pubconsent",adpConsentCookie:"adpconsent",mePath:"me?_ac=events",initTime:null,initError:null,pubConsent:null,adpConsent:null,forceTenant:null,ids:{eaUUID:null,localUUID:null,assignFail:null,tukan:null,newUUID:!1}}}};if(EventsApi.push=function(a){var b=a[0],c=a.slice(1);EventsApi[b].apply(EventsApi,c)},EventsApi._init=function(a){var b=EventsApi._tracking.events,c=b.ids;if(EventsApi._initialized)return void a(null,c);EventsApi._initializing=!0,EventsApi._forceCookiesRewrite();var d=Date.now(),e=b.cookieName,f=EventsApi._getUrl(EventsApi.getTenant()+"/"+b.mePath);EventsApi._cleanOldOrBadCookie(e);var g=EventsApi._getCookie(EventsApi._tracking.events.pubConsentCookie);c.localUUID=EventsApi._getCookie(e),f+=EventsApi._getTukanQueryString({lu:c.localUUID,pubc:g}),EventsApi._jsonSend(f,{},function(f,g){if(g||(g={}),EventsApi._setPostInterval(g.postInterval),null!==f)return b.initError=1,b.backupEndpointType?a(f,c):(window.accConf&&window.accConf.events&&window.accConf.events.endpointPaths?(b.endpoint=window.accConf.events.endpointPaths[0],b.backupEndpointType="local"):(b.endpoint="events.onet.pl",b.backupEndpointType="global"),b.backupEndpointType?EventsApi._init(a):a(f,c));EventsApi._setBlockedACInterval(g.blockedAC),b.initError=null,c.eaUUID=g.eaUUID||null,c.assignFail=g.assignFail||null,g.tukan?(c.tukan=g.tukan,EventsApi._setCookie(b.tukanCookie,c.tukan,4320)):EventsApi._setCookie(b.tukanCookie,"",-1440),g.pubConsent?(b.pubConsent=g.pubConsent,EventsApi._setCookie(b.pubConsentCookie,b.pubConsent)):b.pubConsent=EventsApi._getCookie(EventsApi._tracking.events.pubConsentCookie),g.adpConsent?(b.adpConsent=g.adpConsent,EventsApi._setCookie(b.adpConsentCookie,b.adpConsent)):b.adpConsent=EventsApi._getCookie(EventsApi._tracking.events.adpConsentCookie),!c.localUUID&&g.newUUID&&(c.newUUID=!0);var h=g.eaUUID||g.newUUID;h&&(!c.localUUID||h0&&(EventsApi._blockedIntervalId=setInterval(EventsApi._getBlockedAC,EventsApi._defaultBlockedInterval)))},EventsApi._setPostInterval=function(a){if(!EventsApi._postIntervalId)return EventsApi._postInterval=a||EventsApi._defaultPostInterval,void(EventsApi._postIntervalId=setInterval(EventsApi._processQueue,EventsApi._postInterval));a&&EventsApi._postInterval!==a&&(EventsApi._postInterval=a,clearInterval(EventsApi._postIntervalId),EventsApi._postIntervalId=setInterval(EventsApi._processQueue,EventsApi._postInterval))},EventsApi.send=function(a,b,c){a&&b&&EventsApi.track(a,b,c),EventsApi._initializing||EventsApi._init(function(a,b){EventsApi._initializing=!1,EventsApi._initialized=!a;for(var c=0;c=3&&b[1].match(/^(com|edu|gov|net|mil|org|nom|co|name|info|biz)$/i)?b[2]+"."+b[1]+"."+b[0]:b[1]+"."+b[0]},EventsApi._clearIDs=function(){var a=EventsApi._tracking.events;EventsApi._setCookie(a.cookieName,"",-1440),EventsApi._setCookie(a.tukanCookie,"",-1440),a.ids.eaUUID=null,a.ids.localUUID=null,a.ids.tukan=null},EventsApi._forceCookiesRewrite=function(){[EventsApi._tracking.events.adpConsentCookie,EventsApi._tracking.events.cookieName,EventsApi._tracking.events.pubConsentCookie].forEach(function(a){var b=EventsApi._getCookie(a);b&&EventsApi._setCookie(a,b)})},EventsApi._setCookie=function(a,b,c,d){var e=d||EventsApi._getTopLevelDomain(window.location.hostname),f=new Date,g=c?60*c*1e3:15768e7,h="https:"===window.location.protocol;f.setTime(f.getTime()+g),document.cookie=a+"="+b+"; Domain="+e+"; expires="+f.toGMTString()+"; path=/"+(h?"; SameSite=None; Secure":"")},EventsApi._cleanOldOrBadCookie=function(a){var b=window.location.hostname,c=EventsApi._getTopLevelDomain(b);b!==c&&EventsApi._setCookie(a,"",-1440,b);var d=EventsApi._getCookie(a);d&&!d.match(/[0-9]{24,}/)&&EventsApi._setCookie(a,"",-1440,c)},EventsApi._getCookie=function(a){for(var b=a+"=",c=document.cookie.split(";"),d=0;d=200&&b.status<300?a.success&&a.success(b.responseText,b):a.failure&&a.failure(b))},b.onreadystatechange=this.stateChange,"object"==typeof a.data){var c="";for(var d in a.data)c+=(c.length>0?"&":"")+encodeURIComponent(d)+"="+encodeURIComponent(a.data[d]);a.data=c}"POST"!=a.method&&a.data&&(a.url=a.url+"?"+a.data),a.url=EventsApi._encodeURLOnLocalEndpoint(a.url),b.open(a.method,a.url,!0),b.withCredentials=!0,"POST"==a.method?(b.setRequestHeader("Content-type","application/x-www-form-urlencoded"),b.send(a.data?a.data:null)):b.send()},EventsApi._loaders.JSONP=function(){function a(a,b){var c=document.createElement("script"),e=!1;c.src=a,c.async=!0;var g=b||f.error;"function"==typeof g&&(c.onerror=function(b){g("JSONP error",{url:a,event:b})}),c.onload=c.onreadystatechange=function(){e||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(e=!0,c.onload=c.onreadystatechange=null,c&&c.parentNode&&c.parentNode.removeChild(c))},d||(d=document.getElementsByTagName("head")[0]),d.appendChild(c)}function b(b,c,d,g){var h,i=-1===(b||"").indexOf("?")?"?":"&";g=g||f.callbackName||"callback";var j=g+"_json"+ ++e;c=c||{};for(h in c)c.hasOwnProperty(h)&&(i+=encodeURIComponent(h)+"="+encodeURIComponent(c[h])+"&");return window[j]=function(a){d(null,a);try{delete window[j]}catch(a){}window[j]=null},a(EventsApi._encodeURLOnLocalEndpoint(b+i+encodeURIComponent(g)+"="+encodeURIComponent(j)),d),j}function c(a){f=a}var d,e=0,f={};return{get:b,init:c}}(),"object"==typeof module&&module.exports&&(module.exports=EventsApi),window.addEventListener?(window.addEventListener("unload",EventsApi._processQueue,!1),window.addEventListener("beforeunload",EventsApi._processQueue,!1),window.addEventListener("pagehide",EventsApi._processQueue,!1)):window.attachEvent&&(window.attachEvent("onunload",EventsApi._processQueue),window.attachEvent("onbeforeunload",EventsApi._processQueue),window.attachEvent("onpagehide",EventsApi._processQueue)),window.EventsApi){if("[object Array]"===Object.prototype.toString.call(window.EventsApi)){for(var i=0;i=0;--d)r(a,c[d]).setAttribute("data-"+h,1);for(var d=0,c=document.querySelectorAll("."+i);d=0||"embeddedapp/main.onettvplayer"==d||"local/main.player"==d||"pulsembed/pulsembed.init"==d&&b.innerHTML.indexOf("//onet.tv/")>=0||"embeddedapp/main.app"==d&&(""+b.getAttribute("data-params")).indexOf("//onet.tv/")>=0||/^mvp:/.test(b.id)){for(var f=a.document.createElement("div"),g=e(b),i=0;i=0)f.style.background="#e2e3e7 url(//mastt.ocdn.eu/MDA_/74f6b5ce7ae8d0bdfce96970fc71bd47.jpg) no-repeat center",f.style.backgroundSize="contain";else{f.style.background="#e2e3e7 url(//mastt.ocdn.eu/MDA_/42f492f4c603c2817813a90dc951904c.jpg) no-repeat center";var k=b.getAttribute("data-height-hint");k&&(f.style.paddingBottom=k)}return b.parentNode.replaceChild(f,b),f}var f=b.cloneNode(!0);if(f.href){f.removeAttribute("href"),f.onclick=function(){};for(var i=0,l=["addEventListener","attachEvent"];i'+u+" ",s+=u.length+1,m.index=++m.index%m.length}while(s=0||b.indexOf("trident")>=0)return void t();for(var c,d=s(),e=document.querySelectorAll(".whitelistLink"),f=0,g=Math.min(d.length,e.length);f255){e=!1;break}}if(e)return a}var g=b[b.length-1];return g in d&&d[g].indexOf(b[b.length-2])>=0?b.slice(-3).join("."):b.slice(-2).join(".")}},{}],12:[function(a,b,c){if(window.getComputedStyle)var d=function(a){return window.getComputedStyle(a)};else if(window.document.documentElement.currentStyle)var d=function(a){return a.currentStyle};else var d=function(){return{length:0}};b.exports=d},{}],13:[function(a,b,c){b.exports={check:function(){try{return window.self!==window.top}catch(a){return!0}}}},{}],14:[function(a,b,c){var d="https://",e="//sgqcvfjvr.onet.pl/",f=/^(?:\w+:)?\/\//;e=d+(f.test(e)?e.replace(f,""):"lib.onet.pl/s.csr/"),b.exports={proto:d,base:e}},{}],15:[function(a,b,c){var d=a("#MvpMessageBus");b.exports=function(a){var b="https:"==window.location.protocol?"https:":"http:",c=[b+"//onet.tv",b+"//"+window.location.host,b+"//pulsembed.eu"],e=b+"//onet.tv",f=d();f&&f.setAllowedOrigins(c),f&&f.setTargetOrigin(e);var g=function(a,b){return(" "+a.className+" ").indexOf(" "+b+" ")>-1};return f.bind("mvp_deployBranding",function(b){if(f.unbind("mvp_deployBranding"),void 0!==a&&void 0!==a.addSlot&&void 0!==a.fetch){b="string"==typeof b?b.split(";"):[];for(var c=0;c2;if(null==a&&(a=[]),p&&a.reduce===p)return d&&(b=z.bind(b,d)),e?a.reduce(b,c):a.reduce(b);if(A(a,function(a,f,g){e?c=b.call(d,c,a,f,g):(c=a,e=!0)}),!e)throw new TypeError(B);return c},z.reduceRight=z.foldr=function(a,b,c,d){var e=arguments.length>2;if(null==a&&(a=[]),q&&a.reduceRight===q)return d&&(b=z.bind(b,d)),e?a.reduceRight(b,c):a.reduceRight(b);var f=a.length;if(f!==+f){var g=z.keys(a);f=g.length}if(A(a,function(h,i,j){i=g?g[--f]:--f,e?c=b.call(d,c,a[i],i,j):(c=a[i],e=!0)}),!e)throw new TypeError(B);return c},z.find=z.detect=function(a,b,c){var d;return C(a,function(a,e,f){if(b.call(c,a,e,f))return d=a,!0}),d},z.filter=z.select=function(a,b,c){var d=[];return null==a?d:r&&a.filter===r?a.filter(b,c):(A(a,function(a,e,f){b.call(c,a,e,f)&&d.push(a)}),d)},z.reject=function(a,b,c){return z.filter(a,function(a,d,e){return!b.call(c,a,d,e)},c)},z.every=z.all=function(a,b,c){b||(b=z.identity);var d=!0;return null==a?d:s&&a.every===s?a.every(b,c):(A(a,function(a,f,g){if(!(d=d&&b.call(c,a,f,g)))return e}),!!d)};var C=z.some=z.any=function(a,b,c){b||(b=z.identity);var d=!1;return null==a?d:t&&a.some===t?a.some(b,c):(A(a,function(a,f,g){if(d||(d=b.call(c,a,f,g)))return e}),!!d)};z.contains=z.include=function(a,b){return null!=a&&(u&&a.indexOf===u?-1!=a.indexOf(b):C(a,function(a){return a===b}))},z.invoke=function(a,b){var c=j.call(arguments,2),d=z.isFunction(b);return z.map(a,function(a){return(d?b:a[b]).apply(a,c)})},z.pluck=function(a,b){return z.map(a,z.property(b))},z.where=function(a,b){return z.filter(a,z.matches(b))},z.findWhere=function(a,b){return z.find(a,z.matches(b))},z.max=function(a,b,c){if(!b&&z.isArray(a)&&a[0]===+a[0]&&a.length<65535)return Math.max.apply(Math,a);var d=-1/0,e=-1/0;return A(a,function(a,f,g){var h=b?b.call(c,a,f,g):a;h>e&&(d=a,e=h)}),d},z.min=function(a,b,c){if(!b&&z.isArray(a)&&a[0]===+a[0]&&a.length<65535)return Math.min.apply(Math,a);var d=1/0,e=1/0;return A(a,function(a,f,g){var h=b?b.call(c,a,f,g):a;hd||void 0===c)return 1;if(c>>1;c.call(d,a[h])=0;c--)b=[a[c].apply(this,b)];return b[0]}},z.after=function(a,b){return function(){if(--a<1)return b.apply(this,arguments)}},z.keys=function(a){if(!z.isObject(a))return[];if(x)return x(a);var b=[];for(var c in a)z.has(a,c)&&b.push(c);return b},z.values=function(a){for(var b=z.keys(a),c=b.length,d=new Array(c),e=0;e":">",'"':""","'":"'"}};I.unescape=z.invert(I.escape);var J={escape:new RegExp("["+z.keys(I.escape).join("")+"]","g"),unescape:new RegExp("("+z.keys(I.unescape).join("|")+")","g")};z.each(["escape","unescape"],function(a){z[a]=function(b){return null==b?"":(""+b).replace(J[a],function(b){return I[a][b]})}}),z.result=function(a,b){if(null!=a){var c=a[b];return z.isFunction(c)?c.call(a):c}},z.mixin=function(a){A(z.functions(a),function(b){var c=z[b]=a[b];z.prototype[b]=function(){var a=[this._wrapped];return i.apply(a,arguments),O.call(this,c.apply(z,a))}})};var K=0;z.uniqueId=function(a){var b=++K+"";return a?a+b:b},z.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var L=/(.)^/,M={"'":"'","\\":"\\","\r":"r","\n":"n","\t":"t","\u2028":"u2028","\u2029":"u2029"},N=/\\|'|\r|\n|\t|\u2028|\u2029/g;z.template=function(a,b,c){var d;c=z.defaults({},c,z.templateSettings);var e=new RegExp([(c.escape||L).source,(c.interpolate||L).source,(c.evaluate||L).source].join("|")+"|$","g"),f=0,g="__p+='";a.replace(e,function(b,c,d,e,h){return g+=a.slice(f,h).replace(N,function(a){return"\\"+M[a]}),c&&(g+="'+\n((__t=("+c+"))==null?'':_.escape(__t))+\n'"),d&&(g+="'+\n((__t=("+d+"))==null?'':__t)+\n'"),e&&(g+="';\n"+e+"\n__p+='"),f=h+b.length,b}),g+="';\n",c.variable||(g="with(obj||{}){\n"+g+"}\n"),g="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+g+"return __p;\n";try{d=new Function(c.variable||"obj","_",g)}catch(a){throw a.source=g,a}if(b)return d(b,z);var h=function(a){return d.call(this,a,z)};return h.source="function("+(c.variable||"obj")+"){\n"+g+"}",h},z.chain=function(a){return z(a).chain()};var O=function(a){return this._chain?z(a).chain():a};z.mixin(z),A(["pop","push","reverse","shift","sort","splice","unshift"],function(a){var b=f[a];z.prototype[a]=function(){var c=this._wrapped;return b.apply(c,arguments),"shift"!=a&&"splice"!=a||0!==c.length||delete c[0],O.call(this,c)}}),A(["concat","join","slice"],function(a){var b=f[a];z.prototype[a]=function(){return O.call(this,b.apply(this._wrapped,arguments))}}),z.extend(z.prototype,{chain:function(){return this._chain=!0,this},value:function(){return this._wrapped}})}).call(this)},{}],17:[function(a,b,c){var d=a("#onet-url"),e=a("network-config"),f=a("onet"),g=a("csr"),h=a("utils"),i=400,j={POST:function(a,b,c){h.fetch(a,{credentials:"include",method:"POST",headers:[["Content-type","application/x-www-form-urlencoded"]],body:"data="+encodeURIComponent(JSON.stringify(b))},function(a,d){a?h.logError("Could not send event data using xhr - "+a.message):f.logEvent("ActivityPixel:"+c+"XHR",b)})},GET:function(a,b,c){var d=Object.keys(b).length>0?b:{},e=new window.Image(1,1);e.onload=function(){e.onload=null,f.logEvent("ActivityPixel:"+c+"GIF",d)},e.onerror=function(){e.onerror=null,h.logError("Could not send event data using pixel")},e.src=Object.keys(d).reduce(function(a,b,c){return d.hasOwnProperty(b)&&null!==d[b]&&(a+=(c?"&":"?")+b+"="+encodeURIComponent(d[b])),a},a)}},k=function(a,b){var c=q(a);if(!l(["actgid","event"])(c)&&!l(["actid"])(c))return void h.logError("Invalid eventData object missing - event/actgid or actid");var d=t(c.products),f=o(c.network,e.DEFAULT_NID),g=r(b),i=s({actid:o(c.actid),actgid:o(c.actgid),event:o(c.event),ord:o(c.ord),qty:o(c.qty,1),cost:o(c.cost,0),tax:o(c.tax,0),sitetype:o(c.sitetype),products:d.length?p(d):null});x(i,d,f,g)},l=function(a){return function(b){return a.filter(function(a){return n(b[a])}).length===a.length}},m=function(a){return function(b){return a.filter(function(a){return n(b[a])}).length>0}},n=function(a){return!(void 0===a||null===a||"function"==typeof a||"object"==typeof a)},o=function(a,b){return 1===arguments.length&&(b=null),n(a)?a.toString().trim():b},p=function(a){return JSON.stringify(a.map(function(a){var b={qty:a.qty,price:a.price};return a.hasOwnProperty("position")&&(b.position=a.position),a.hasOwnProperty("id")?(b.id=a.id,b):(a.hasOwnProperty("name")&&(b.name=a.name),b)}))},q=function(a){return a===Object(a)&&Object.keys(a).length?a:{}},r=function(a){var b=q(a),c=e.getNetworkConfig("activityConfig",{threshold:.5});return{threshold:o(b.threshold)||c.threshold,antiCache:b.antiCache}},s=function(a){return Object.keys(a).reduce(function(b,c){return a.hasOwnProperty(c)&&null!==a[c]&&void 0!==a[c]&&(b[c]=a[c]),b},{})},t=function(a){return(Array.isArray(a)?a:[]).filter(m(["id","name"])).map(function(a){return s({name:o(a.name),id:o(a.id),price:o(a.price,0),qty:o(a.qty,1),brand:o(a.brand),category:o(a.category),variant:o(a.variant),position:o(a.position)})})},u=function(a,b,c){if(!b.length)return!1;var d=(a.event||"").toLowerCase(),e=(a.sitetype||"").toLowerCase();return"products_impression"!==d||"product"===e||"cart"===e||Math.random()=i},x=function(a,b,c,e){var f=d.proto+g.getCsrLocation()+".onet.pl/"+c+"/activity";if(w(f,a))return a.products=b,void j.POST(f,a,a.event);if(v(e.antiCache)&&(a._=Math.round(1e13*Math.random())),j.GET(f,a,a.event),u(a,b,e.threshold)){var f=d.proto+g.getCsrLocation()+".onet.pl/"+c+"/microdata",h=s({actgid:a.actgid,event:"product",sitetype:a.sitetype,products:b});j.POST(f,h,"microdata")}};b.exports={initActivity:function(a){a.sendActivityEvent=k}}},{"#onet-url":14,csr:28,"network-config":44,onet:50,utils:60}],18:[function(a,b,c){var d=a("utils"),e=a("#get-main-domain"),f=a("#dl-cookie"),g=a("csr"),h=a("#adblock-detect"),i=a("#adblock-whitelist"),j=a("onet"),k=function(a){if(a.length)for(var b=0,c=document.getElementsByTagName("style");b=0&&c<1e3?a.time.TADP=12:a.adp&&(a.time.TADP=3))}),a.on("defineSlot",function(b,c){/^flat-ss-/.test(c.slot)||a.isAdblockDetected(function(b){b&&l(a,c)})}),a.on("renderAd",function(b,c,d){d&&a.isAdblockDetected(function(b){if(b){var c=[],e=a.slotsIdToReplace[d.originalDiv];e&&!1===e.replaced&&(c.push(e),e.replaced=!0);for(var f in a.classesToReplace)c.push(a.classesToReplace[f]);k(c)}})})}},{"#adblock-detect":3,"#adblock-whitelist":4,"#dl-cookie":7,"#get-main-domain":11,csr:28,onet:50,utils:60}],19:[function(a,b,c){function d(a,b){function c(a,b){return a.hasAttribute?a.hasAttribute(b):!!a.getAttribute(b)}for(var d=[{tag:"iframe",req:1,prefix:"I",attrs:[{name:"src"}]},{tag:"img",req:1,prefix:"Z",attrs:[{name:"src"}]},{tag:"object",req:0,prefix:"O",attrs:[]},{tag:"embed",req:0,prefix:"E",attrs:[]},{tag:"script",req:1,prefix:"S",attrs:[{name:"src"}]}],e=[],f=[],g=0;g0&&(n=!0,k())}catch(a){p(b,j,d),n=!0}},0)};"complete"==i.ownerDocument.readyState?t():F(i.ownerDocument,"DOMContentLoaded",function(){t(!0)})}F(i,"load",function(){n||(n=!0,k())}),F(i,"error",function(){if(!n){n=!0;var b=(new Date).getTime()-a.pending[j].start;d.adp&&b<=3e3?m():l()}})}else if(i.tagName&&"iframe"==i.tagName.toLowerCase()){var u=i.offsetWidth;F(i,"load",function(){0!=u&&0==i.offsetWidth&&d.adp?m():k()});var v=i.className;F(i,"error",function(){v!=i.className&&20==i.className.length?m():void 0!==d.adp&&0==d.adp&&l()})}else i.tagName&&"img"==i.tagName.toLowerCase()&&(F(i,"load",function(){0==i.offsetWidth&&d.adp&&(""+i.getAttribute("width")).indexOf("%")<0?m():k()}),F(i,"error",function(){var b=(new Date).getTime()-a.pending[j].start;d.adp&&b<=3e3?m():l()}));else{setTimeout(function(){if(void 0!==i.PercentLoaded)var c=(new Date).getTime(),e=setInterval(function(){(new Date).getTime()-c>6e3&&(d.adp&&m(),clearInterval(e)),void 0!==i.PercentLoaded?100===i.PercentLoaded()&&(clearInterval(e),k()):clearInterval(e)},100);else 1==G.keys(a.pending).length?k():p(b,j,d)},100)}}}function f(a){return a.parentWindow||a.defaultView}function g(a,b){this.$onet=b,G.extend(this,{adid:a,jsErr:[],blocked:0,errors:0,docVisibility:A.getVisibilityState(),timeouts:0,start:(new Date).getTime(),end:null,load:null,pending:{},loaded:{},finish:!1,send:!1,sent:!1,audits:[],reqCC:1,loadedResPrefix:"N"})}function h(a,b){return a in b.loadtime&&!b.loadtime[a].sent||(b.loadtime[a]=new g(a,b),b.sendSLA<0&&(b.sendSLA=1)),b.loadtime[a]}function i(a){return h(a,this)}function j(a,b,c){var d=h(a,c);return d.audits.push(b),d}function k(a){var b=this;return{finish:function(){return m(a,b)},watch:function(c,d){return b.loadWatch(a,c,d)},end:function(){return t(a,b)},addAudit:function(c,d){return arguments.length>2&&(d=arguments[2]),l(a,c,d,b)},sendAndRegisterAudit:function(c){var d={img:c,status:"",load:"",method:"img"};j(a,d,b);try{u(d,b)}catch(b){E(b,a)}}}}function l(a,b,c,d){if("_ADCOUNT_"==b||""==b)return!1;var c=c||"img",e=(h(a,d),{img:b,status:"",load:"",method:c});j(a,e,d);try{u(e,d)}catch(b){E(b,a)}return!1}function m(a,b){return b.loadtime[a].finish=!0,o(a,b)&&(t(a,b),v(a,b)),!0}function n(a,b,c){var d=this;return h(a,d).loadWatch(a,b,c),d.loadGetCounter(a,d)}function o(a,b){return b.loadtime[a].finish&&!G.keys(b.loadtime[a].pending).length}function p(a,b,c){delete h(a,c).pending[b],o(a,c)&&(t(a,c),v(a,c))}function q(a,b,c){var d=h(a,c);d.loaded[b]=d.pending[b],d.loaded[b].end=(new Date).getTime(),d.loaded[b].ok=1,d.loaded[b].load=d.loaded[b].end-d.loaded[b].start,delete d.pending[b],o(a,c)&&t(a,c),v(a,c)}function r(a,b,c){var d=h(a,c);d.pending[b].end=(new Date).getTime(),d.pending[b].load=d.pending[b].end-d.pending[b].start,d.errors+=1,d.pending[b].error=1,o(a,c)&&t(a,c)}function s(a,b,c){var d=h(a,c);d.blocked+=1,d.pending[b].blocked=1,o(a,c)&&t(a,c)}function t(a,b){var c=h(a,b);c.end=(new Date).getTime(),G.isEmpty(c.loaded)||(c.load=b.loadtime[a].end-c.start);var d=0,e=0;return G.each(c.loaded,function(a){0===d&&(d=a.start),0===e&&(e=a.end),d>a.start&&(d=a.start),e<\/script>'",g.width=1,g.height=1,g.style.width="1px !important",g.style.height="1px !important",g.onload=function(){a.status+="K",a.load=(new Date).getTime()-d,g.onload=g.onerror=null},g.onerror=function(){b.adp?a.status+="B":a.status+="E",a.load=(new Date).getTime()-d,g.onload=null,g.onerror=null},f.appendChild(g),document.body.appendChild(f)}else E({message:"Unknow audit method sender, audit not sent!!!"});a.sent=1}}function v(a,b){G.each(b.loadtime[a].audits,function(c){try{u(c,b)}catch(b){E(b,a)}}),b.loadtime[a].send=!0}function w(a,b){this.slaUrls[b]=a}function x(){var a=this;if(a.on("sendEvents",function(){a.sendCreationsAudit()}),a.inframe){var b=function(b){b&&b.data&&G.isString(b.data)&&"onInframeRemove"==b.data&&a.sendCreationsAudit()};A.addEvent(window,"message",b)}}function y(){var a=this,b=A.getVisibilityState();if(""!=b&&"visible"!=b)return!1;if(1!=a.sendSLA)return!1;var c={};(function(){G.each(a.loadtime,function(a){if(a.adid.indexOf("fa4")>-1&&!a.finish)return!0;if(a.docVisibility&&"visible"!=a.docVisibility)return!0;if(a.sent)return!0;if(a.sent=!0,c[a.adid]=c[a.adid]||{},c[a.adid]={FH:a.finish?[1]:[0],SD:a.send?[1]:[0],CC:[a.reqCC]},a.send&&(c[a.adid].LD=[a.load_res],c[a.adid].P=[a.loadedResPrefix]),void 0!==a.slot){c[a.adid].SL=[a.slot.slot];var b=a.slot.getProperty("csrStartReq"),d=a.end||a.start,e=b[0];c[a.adid].LDC=[d-e]}a.jsErr&&a.jsErr.length>0&&(c[a.adid].JE=a.jsErr);var f=[],g=function(a){var b=a.res.el,c="T";if(1==a.blocked?c="B":1==a.error?c="E":1==a.ok&&(c="K"),b.tagName){var d=b.src?B(b.src).hostname:"unknow";f.push(a.res.cnf.prefix+":"+d+":"+c+":"+a.load)}};G.each(G.extend(a.loaded,a.pending),g),f.length>0&&(c[a.adid].TG=f);var h=[];G.each(a.audits,function(a){h.push(B(a.img).hostname+":"+a.status+":"+a.load)}),h.length&&(c[a.adid].AU=h)})})(),G.each(a.perfWins,function(b){var d=[];try{b.performance.getEntries?d=b.performance.getEntries():b.performance.webkitGetEntries&&(d=b.performance.webkitGetEntries())}catch(a){}G.each(d,function(d){var e=0,f=0;void 0!==b.onetAdsstartLoadInFrame?(e=b.onetAdsstartLoadInFrame,f=b.onetAdsstartLoadInFrame+d.duration):(e=d.startTime,f=d.responseEnd);var g=a.resMonitReq(d.name);void 0!==g&&(c[g]=c[g]||{},(c[g].RE=c[g].RE||[]).push(Math.round(f)),(c[g].ST=c[g].ST||[]).push(Math.round(e)),d.requestStart&&((c[g].DNS=c[g].DNS||[]).push(Math.round(d.domainLookupEnd-d.domainLookupStart)),(c[g].TCP=c[g].TCP||[]).push(Math.round(d.connectEnd-d.connectStart)),(c[g].RD=c[g].RD||[]).push(Math.round(d.responseStart-d.requestStart)),(c[g].CD=c[g].CD||[]).push(Math.round(d.responseEnd-d.responseStart))),d.secureConnectionStart&&(c[g].SSL=c[g].SSL||[]).push(Math.round(d.connectEnd-d.secureConnectionStart)))})});var d=C.getKropkaCommonParams();try{window.performance&&window.performance.timing&&window.performance.timing.responseEnd&&(d.UTS=(new Date).getTime()-window.performance.timing.responseEnd)}catch(a){}try{var e=0,f=0;if(window.performance){var g=window.performance.timing;e=g.loadEventEnd-g.navigationStart,f=g.domInteractive-g.navigationStart}e>0&&e<6e4&&(d.TE=e),f>0&&f<6e4&&(d.TI=f)}catch(a){}d.PR=a.time.TPRIV||"N",d.TBC=a.time.TBC||"";try{var h=navigator,i=(h.connection||h.mozConnection||h.webkitConnection||h.msConnection).type;d.TCT="0"==i?"unknown":i}catch(a){}b&&(d.CD=b);try{document.fileSize&&(d.TFS=document.fileSize)}catch(a){}a.time.TS1&&(d.TS1=a.time.TS1),a.inframe&&(d.INF=1);var j=C.getNetworkId();return j&&(d.TID="EA-"+j),d.flash=D?1:0,d.PY=a.policy,d.ver=a.version,d.BL=a.adp?1:0,d.BLT=a.time.TADP||0,!G.isEmpty(c)&&(G.each(c,function(a,b){var c=[];G.each(a,function(a,b){c.push(b+"="+a.join(","))}),d[b]=c.join("|")}),H.send({account:"sstamp",event:"CrtPerf",type:"empty"},d),C.logEvent("sstamp:CrtPerf",d),a.sendSLA=-1,d)}function z(a){}var A=a("utils"),B=a("#get-address"),C=a("onet"),D=A.onetFlash,E=C.smartException,F=A.addEvent,G=a("_"),H=a("events-api-browser/lib/eventsapi");g.prototype.loadWatch=function(a,b,c){var f=[],g=this;G.isElement(b)?f=f.concat(d(b,this.$onet)):G.isArray(b)&&G.each(b,function(a){G.isElement(a)&&(f=f.concat(d(a,g.$onet)))}),G.each(f,function(b){e(g,a,b,g.$onet,c)})},b.exports=function(a){a.loadtime={},a.sendSLA=0,a.slaUrls={},a.perfWins=[window],a.loadStart=i,a.loadWatch=n,a.loadGetCounter=k,a.addToSla=w,a.sendCreationsAudit=y,a.registerCreationsAudit=x,a.resMonitReq=z,a.on("afterAdsFetch",function(b,c){a.perfWins.push(c)})}},{"#get-address":9,_:16,"events-api-browser/lib/eventsapi":1,onet:50,utils:60}],20:[function(a,b,c){function d(a,b,c,d,e){var f=[];d=d||[],e=e||a;var g=encodeURIComponent(e.dv),i=["DV="+g,"IP="+e.pgid,"IV="+e.iv].concat(d),j={RT:"UserAction",VE:"event"};return n.each(i,function(a){a=a.split("="),j[a[0]]=decodeURIComponent(a[1])}),n.each(b,function(a){var b=a.crtId||s;a.system=a.system||r,a.system==r&&a.title&&(b=encodeURIComponent(a.title.replace(",","-")));var d=(a.cmpId+"").split("-");d&&d[1]&&(a.cmpId=d[1]);var e=a.system+","+a.cmpId+","+b;f.push("id="+e+";DV="+g+";A="+c+";VL="+(a.crtId||s)),h.logEvent("eclk:UserAction",n.extend(j,{VM:decodeURIComponent(e),VC:c,DV:decodeURIComponent(g),VL:a.crtId?decodeURIComponent(a.crtId):s+""}))}),{eclk:"//"+k.getCsrLocation()+".onet.pl/eclk/"+f.join("/")+"/?"+i.join("&")}}function e(a){function b(b,c){try{var e=b.srcElement?b.srcElement:b.target,f=d(a,[c],"click",["ref="+encodeURIComponent(e.href),"_="+ +new Date]);a.addDot(f.eclk)}catch(a){}}function c(){if(l.length>0){var b=n.groupBy(l,function(b){var c=m.factory(a,["dv","iv","pgid"]);return b.slot&&"function"==typeof b.slot.getContext&&(c.set("dv",b.slot.getContext("dv")),c.set("iv",b.slot.getContext("iv")),c.set("pgid",b.slot.getContext("pgid"))),c.get()});l=[];for(var c in b)if(b.hasOwnProperty(c)){var e=b[c],f=d(a,e,"vis",["_="+ +new Date],JSON.parse(c));a.addDot(f.eclk)}}}function f(){n.each(k,function(a){a.checkVisible()&&!a.auditDisabled&&l.push(a)})}function h(a){k=n.filter(k,function(b){return b.slot.originalDiv!=a.originalDiv})}var j=this,k=[],l=[];e.prototype.add=function(b,c){var d=b.el||b._el;if(!d&&!(d=document.getElementById(b.elId)))return console.error&&console.error("DLAPI: Unknown visibility el/elId",b),!1;if(!d.id){do{var e=i.randomString(Math.floor(10*Math.random()+3))}while(document.getElementById(e));d.id=e}b.slot||(b.slot=a.div2slot[d.id]||{originalDiv:d.id});for(var f=0;f0&&c>0&&d>0&&e>0))return 0;for(var f,g=a.offsetTop,h=a.offsetLeft;!(f="fixed"==j(a).position)&&a.offsetParent;)a=a.offsetParent,g+=a.offsetTop,h+=a.offsetLeft;if(f)var i=0,k=0;else var i=document.documentElement.scrollLeft||window.scrollX||window.pageXOffset,k=document.documentElement.scrollTop||window.scrollY||window.pageYOffset;var l=Math.min(h+b,i+d)-Math.max(h,i),m=Math.min(g+c,k+e)-Math.max(g,k);return l>0&&m>0&&l*m/b/c*100>=o?1:0}function g(a,b){var c=this,d=c._eventBus=l.factory(["visible","hidden","viewed"]);return c.on=d.on,c.fire=d.fire,c.el=a,c.hit=0,c.state=-1,c.auditDisabled=b,c}var h=a("onet"),i=a("utils"),j=a("#get-style"),k=a("csr"),l=a("event-bus"),m=a("onet-context"),n=a("_"),o=50,p=100,q=3e3,r="nat",s=-1;g.prototype.checkVisible=function(){var a=this,b=f(a.el);return b!=a.state&&(a.fire(b?"visible":"hidden",a),a.state=b),!(a.hit<0||!(b&&++a.hit>=1e3/p)||(a.fire("viewed",a),a.hit=-1,0))},b.exports={visibility:e,isVisible:f,prepareEventUrl:d,AdView:g}},{"#get-style":12,_:16,csr:28,"event-bus":32,onet:50,"onet-context":48,utils:60}],21:[function(a,b,c){function d(a){a.aureusContext.offerIds.length>0&&a.uaEvent("offerIds","aureusOfferImpressions",JSON.stringify(a.aureusContext.offerIds),void 0),a.aureusContext.offerIds=[]}function e(a){a.aureusContext={offerIds:[]},a.registerAureusOffers=function(b){a.aureusContext.offerIds=this.aureusContext.offerIds.concat(b),f=setTimeout(function(){d(a)},g)}}var f,g=1e3;b.exports={reportOfferImpression:d,USER_ACTION_EVENT_DELAY_MS:g,init:function(a){e(a),a.on("flushEvents",function(){d(a),clearTimeout(f)})}}},{}],22:[function(a,b,c){var d=a("utils");b.exports=function(a,b){if(a.on("changeView",function(){delete a.clickmap}),"0"==a.clickmap)return a.enabledClickMapFlag=!1,null;if(a.enabledClickMapFlag)return a.clickMapObject;var c={dlApi:a};return c.doc=void 0!==b?b:document,c.hostsWithoutClickMap=["poczta.onet.pl","konto.onet.pl","kontakty.onet.pl","secure.onet.pl","poczta.gazeta.pl","m.poczta.gazeta.pl","mpoczta.gazeta.pl"],c.hostsWithoutURLClickMap=["sympatia.onet.pl","sympatiaplus.pl","czat.onet.pl","gryonline.onet.pl"],c.enableClickmap=function(){if(this.shouldBeEnabled(location)){var b={enableClickmap:this.enableClickmap,shouldBeEnabled:this.shouldBeEnabled,getElementDisplayedText:this.getElementDisplayedText,elementClicked:this.elementClicked,toString:this.toString};d.addEvent(c.doc,"mousedown",this.elementClicked),a.enabledClickMapFlag=!0,a.clickMapObject=b}},c.shouldBeEnabled=function(a){var b=/^(https?:\/\/)?(www\.)?[^\/]+(\/|\/index\.html)?([?#].*|$)/;return this.hostsWithoutClickMap.indexOf(a.host)<=-1&&(this.hostsWithoutURLClickMap.indexOf(a.host)<=-1||a.href.match(b))},c.getElementDisplayedText=function(a){var b=a.innerHTML?a.innerHTML.replace(/<\/?[a-zA-Z]+>/gi,""):"";return b.length>255&&(b=b.substr(0,252)+"..."),""===b&&a.src&&(b=a.src),b},c.toString=function(){return"ClickMap[enabled="+(a.enabledClickMapFlag?"True":"False")+"]"},c._findXpathElementIndex=function(a){var b="",c=a.tagName.toLowerCase();if("html"!=c)for(var d=0,e=0;d-1});b(ha(d,c.purposeConsents))})},Z=function(a,b,c){c||(c=b,b=null),T(c),a=P(a),S(a),b?(b=Q(b),R(b)):b=q;var d,e,f,g,h={},i=3,j=!1,k=function(){if(!--i&&!j){j=!0;var e=ca(a),k=Q(da(e));c(!f&&k.every(function(a){var c=h[a];if(!c)return!1;var e=c.purposeIds;g&&(e=e.concat(c.legIntPurposeIds));var f=e.filter(function(a){return b.indexOf(a)>-1});return ha(f,d)}))}};$(this,a,function(f){d=f.purposeConsents,e=f.vendorConsents,ha(a,e)?ha(b,d)?(j=!0,c(!0)):k():(j=!0,c(!1))}),L(function(a,b){g=a||b,k()}),ya(this,function(a,b){if(a)f=a;else try{!j&&(h=U(b,h))}catch(a){f=a}k()})},$=function(a,b,c){T(c);var d=ca(b),e=Q(da(d));W(a,e,function(a){var e={};P(b).forEach(function(b,c){var f=d[c];void 0!==f&&a.vendorConsents.hasOwnProperty(f)&&(e[b]=a.vendorConsents[f])}),c(new r(a.purposeConsents,e))})},_=function(a){a.applyPolicy(function(){if(!a.cmpLoaded){a.cmpLoaded=!0;var b=f.getNetworkConfig("cmpConfig");if(a.cmpLang&&g.isString(a.cmpLang)){f.getNetworkConfig("cmpTranslations").map(function(a){return a.toLowerCase()}).indexOf(a.cmpLang.toLowerCase())>-1&&(b.forceLocale=a.cmpLang)}d.isDebug()&&(b.logging="debug"),b.autoDisplay=oa(a),b.getConsentData=function(a){j.getConsent(function(b,c){a(b,{vendor:c&&c.adpConsent,publisher:c&&c.pubConsent})})},b.setConsentData=function(b,c){var d={RT:"UserConsent",TID:j.getTenant()};a.kropka&&a.kropka.AID&&(d.AID=a.kropka.AID),j.setConsent({adpConsent:b&&b.vendor,pubConsent:b&&b.publisher},{event:"UserConsent"},h.prepareKropkaParams(h.getKropkaCommonParams(),d),c)},b.getVendorList=function(b){ya(a,function(a,c){if(a)b(a,c);else try{b(a,c.json())}catch(a){b(a,c)}})},sa(a,i.UNSUPPORTED),window.__cmp.config=b,F(a,"addEventListener","onToggleConsentToolShowing",function(b){!b.data||a.isMobile()&&aa()?document.body.className=document.body.className.replace(/(^|\s+)cmp(\s+|$)/g," ").trim():/(^|\s+)cmp(\s+|$)/.test(document.body.className)||(document.body.className=(document.body.className.trim()+" cmp").trim())}),F(a,"addEventListener","onSubmit",function(){var b=function(){a.off("tags",b),a.fetch()};a.delayRenderTags=!1,a.cmpSubmitted=!0,a.cmpToFetch.length&&(a.toFetch=a.cmpToFetch.concat(a.toFetch),a.cmpToFetch=[],a.on("tags",b)),a.npa=null,a.fire("consentsChange")}),a.adsNoBanner&&ea(),b.autoDisplay&&a.fire("cmp"),a.fire("loadCmp"),d.addScript(f.getNetworkConfig("cmpJs"))}})},aa=function(){var a,b=document.querySelector("div.cmp-app_gdpr"),c=!1;return b&&(a=window.getComputedStyle(b),c="none"===a.getPropertyValue("display")),c},ba=function(a){a.afterReady?_(a):a.on("onready",function(){_(a)})},ca=function(a){var b=f.getNetworkConfig("cmpVendors",{});return a.map(function(a){if(b.hasOwnProperty(a))return b[a];d.logError('Vendor "'+a+'" is not supported')})},da=function(a){return a.filter(function(a){return void 0!==a})},ea=function(){var a=f.getNetworkConfig("cmpCss");a&&d.addStylesheet(a)},fa=function(a,b,c,d,e){return g.isEmpty(b)?!(e||!g.isEmpty(a)):Object.keys(b).every(function(f){var g=a[f];return!e&&!g||!(!b[f]||e||!ha(g.purposeIds,c)||d&&!ha(g.legIntPurposeIds,c))})},ga=function(a){return ha(q,a)},ha=function(a,b){for(var c=0,d=a.length;c2&&$onet.lazy&&1==c.getProperty("lazy",1)?$onet.addLazyAd(f):f.displayMc()):p(f)}}}),0===l||$onet.lazy?h.finish(q):setTimeout(function(){l>k&&$onet.errEvent("AdsError","Not all received creatives have been displayed within 5 seconds (displayed "+k+"/"+l+") ")},5e3),$onet.fire("onShowDfp")};h.handleAds=function(a,b){h.res=a,h.finish=b,j=1,q(h.res.ads);for(var c=0;c10?"1":"0",kvscreen:screen.width+"x"+screen.height}},s=function(a){var b="csr",c=f.get("onet_ad_test");return 4==c?b="tcsr":8==c?b="scsr":"adp"==a&&(b=$onet.adbCsrSubdomain||m),b},t=function(a){var b={};b.kv={},b.csrUrl=s(a),q($onet);var c=e.getKwrd();"adbeta"in $onet&&(b.kv.adbeta=$onet.adbeta),""!=c&&(b.kv.kwrd=c,b.kwrd=c),d.getValueFromUrl("test_geo")&&(b.kv.geo=d.getValueFromUrl("test_geo")),d.getValueFromUrl("test_addpar")&&(b.kv.addpar=d.getValueFromUrl("test_addpar"));var g=e.getAdpNetworkId();if(g&&(b.kv.nid=g),!$onet.keyvalues.lu){var h=f.get("onet_ad_lu")||$onet.keyvalues.lu||$onet._localUUID||null;h&&(b.kv.lu=h)}var i=l.getTukanID();i&&(b.kv.it=i),$onet.kropka&&$onet.kropka.AID&&(b.kv.aid=$onet.kropka.AID);var j=l.getConsent();return j&&j.pubConsent&&(b.kv.pubconsent=j.pubConsent),j&&j.adpConsent&&(b.kv.adpconsent=j.adpConsent),b.ver=$onet.version,b.keyvalues=$onet.keyvalues,b},u=function(a){if(0==$onet.toFetch.length)return!1;var b=t(a);b.adSlots=[],b.reqSlots=[],b.slot2slot={},b.div2slot={},b.csrStartReqTime=(new Date).getTime();var c={site:$onet.site,area:$onet.area};$onet.exclusive&&(c.area="exclusive:"+$onet.area),j.extend(c,b.kv);var f=0,h={};j.each($onet.toFetch,function(a){var e=a.div,g=a.slot,i=a.getProperty("width",0),k=document.getElementById(e);if(h.hasOwnProperty(e))return void d.logError("Duplicate declaration of slot: "+g+", id: "+e);h[e]=!0,j.each(j.keys(a.opts),function(b){c[b+f]=a.opts[b]}),a.pushProperty("csrStartReq",b.csrStartReqTime),a.setContext(),$onet.slot2slot[g]=a,$onet.div2slot[a.div]=a,b.slot2slot[g]=a,b.div2slot[a.div]=a,b.adSlots.push(g),b.reqSlots.push(a);var l=a.getProperty("size");l&&(g=g+"-"+l),c["slot"+f]=g,c["id"+f]=a.div,k&&(i=a.getSlotWidth()),i>0&&(c["swidth"+f]=i),f+=1}),$onet.toFetch=[];var i=g.proto+b.csrUrl+".onet.pl/_s/csr-006/csr.js?";c.ver=b.ver;var k=$onet.getLayout(),m="";return $onet.csrStates&&0==$onet.csrStates.length&&"std"==k&&(m="expand"),$onet.addKeyValue("adtype",m),1==$onet.mobile&&j.extend(c,r()),c.kvlayout=k,$onet.keyvalues&&"object"==typeof $onet.keyvalues&&(e.normalizeKeyValues($onet.keyvalues),j.each($onet.keyvalues,function(a,b){"nid"===b&&(a=e.getAdpNetworkId()),b.match(/\d$/)&&(b+="_"),c["kv"+b]=encodeURIComponent(a)}),$onet.keyvalues.layout&&(c.kvlayout=[k,$onet.keyvalues.layout])),j.each(b.kv,function(a,b){c[b]=encodeURIComponent(a)}),b.keyvalues=$onet.keyvalues,c.AC=d.getRequestId(),l.isThirdPartyBlocked()&&(c.kvadp_uch=["no3rd"]),$onet.inframe&&(c.du=encodeURIComponent(unescape($onet.du))),$onet.dr&&(c.dr=encodeURIComponent(unescape($onet.dr))),$onet.eventcount.length>0&&(c.count=$onet.eventcount.join("|"),$onet.eventcount=[]),j.each(j.keys(c),function(a){i+=a+"="+c[a]+"&"}),b.url=i.replace(/&$/,""),b.cid=++o,b},v=function(a){return a.fetchOnReady||(a.fetchOnReady=!0),!1},w=function(){var a=this;return a.isReadyToFetch?a.adsNoBanner||!a.isReady?v(a):void(a.canFetch&&(a.autoslot&&a.autoSlots(),a.fetchAsynchAds())):(a.callFetchAfterTags=!0,v(a))},x=function(a){if(!$onet.adsNoBanner){$onet.canFetch=0;var b;if($onet.fire("beforeAdsFetch"),b=u(a)){var c="onetShowAsynchAds"+b.cid;b.callback=c;var f=new i(b);C(f),window[c]=function(a){return p($onet,b.cid,(a||{}).ads||[]),d.logDebug("CALL ads nr:",b.cid,a.ads),$onet.time.TCSR2||($onet.time.TCSR2=(new Date).getTime()-$onet.startTime),y(f,a)},$onet.time.TCSR||($onet.time.TCSR=(new Date).getTime()-$onet.startTime),e.doCreateFriendlyIFrame(document.body,0,0,function(e){e[b.callback]=window[b.callback];var f=Date.now(),h=e.document.createElement("script");h.onerror=function(){h.onerror=null,$onet.fire("fetchAdsError",a||"csr",Date.now()-f),$onet.adp&&(f=Date.now(),d.fetch(g.proto+s("adp")+".onet.pl/",{credentials:"include",method:"POST",headers:[["Content-type","application/x-www-form-urlencoded"]],body:b.url.split("?")[1]+"&adf=2"},function(a,b){if(a)$onet.fire("fetchAdsError","adp",Date.now()-f);else{var d=b.json();window[c](d)}}))},h.src=b.url+"&callback="+b.callback+($onet.adp?"&adf=1":""),e.document.body.appendChild(h);try{if(window.performance){var i=window.performance.timing;e.onetAdsstartLoadInFrame=(new Date).getTime()-i.navigationStart}}catch(a){}$onet.fire("afterAdsFetch",e)})}else $onet.canFetch=1;return b}},y=function(a,b){if($onet.ok=1,$onet.canFetch=1,b){for(var c,e=[],f=[],g=b.data||b.ads||[],i=0;i0&&$onet.fetch(),$onet.fire("showAds",b,"csr")})}$onet.toFetch.length>0&&$onet.fetch()}else $onet.smartException({message:"Critical error, API V6 but response in 005 format!"})},z=function(a,b,c,d,e){$onet.asyncSlots||($onet.asyncSlots={}),""==a&&(a=$onet.slot),!e&&$onet.adsResultMeta[a]&&(e=j.clone($onet.adsResultMeta[a]),delete $onet.adsResultMeta[a]),$onet.asyncSlots[a]={html:b,js:c,scripts:d,meta:e}},A=function(a,b,c,f){d.logDebug("displaySlot",a,f);var g;if($onet.div2slot&&(g=$onet.div2slot[a]),c&&-1!==c.indexOf(".renderAd("))e.doCreateFriendlyIFrame(document.getElementById(a),0,0,function(a){a.document.open("text/html","replace"),a.document.write(b+'