'use strict';(function(){try{var f=window.sdCmpCwYoutube||{};f.userGesture=!1;f.initiated=!1;f.loadLogged=!1;function m(a){if(!a)return!1;try{a=a.toString()}catch(c){return!1}return a.indexOf("https://www.youtube-nocookie.com")===0||a.indexOf("https://www.youtube.com")===0||a.indexOf("https://youtu.be")===0||a.indexOf("//www.youtube-nocookie.com")===0||a.indexOf("//www.youtube.com")===0||a.indexOf("//youtu.be")===0}function v(a){if(!a)return!0;a=String(a).trim().toLowerCase();return a==="transparent"||a==="rgba(0,0,0,0)"|| a==="rgba(0, 0, 0, 0)"||a==="rgb(0 0 0 / 0)"||a==="hsla(0,0%,0%,0)"||a==="hsla(0 0% 0% / 0)"}function A(a){if(!a)return null;a=String(a).trim();if(a[0]==="#"){a=a.slice(1);if(a.length===3)a=a.split("").map(function(e){return e+e}).join("");else if(a.length===4)a=a.slice(0,3).split("").map(function(e){return e+e}).join("");else if(a.length!==6)if(a.length===8)a=a.slice(0,6);else return null;return"#"+a.toLowerCase()}if(a=a.match(/^rgba?\(\s*([0-9]{1,3})[,\s]+([0-9]{1,3})[,\s]+([0-9]{1,3})(?:[,\s/]+([0-9.]+))?\s*\)$/i)){var c= Math.max(0,Math.min(255,parseInt(a[2],10))),d=Math.max(0,Math.min(255,parseInt(a[3],10)));return"#"+Math.max(0,Math.min(255,parseInt(a[1],10))).toString(16).padStart(2,"0")+c.toString(16).padStart(2,"0")+d.toString(16).padStart(2,"0")}return null}function q(a){try{return a&&(a.parentElement||a.getRootNode&&a.getRootNode().host)||document.body}catch(c){return document.body}}function n(a,c){a:{try{for(var d=c||document.body||document.body;d;){if(d.nodeType===1){var e=getComputedStyle(d).backgroundColor; if(!v(e)){var b=e;break a}}var g=d.getRootNode&&d.getRootNode();d=d.parentElement||g&&g.host||null}}catch(h){}c=getComputedStyle(document.body).backgroundColor;v(c)?(c=getComputedStyle(document.documentElement).backgroundColor,b=v(c)?"#ffffff":c):b=c}c=(A(b)||"#ffffff").slice(1).toLowerCase();return"https://cdn.sirdata.eu/load_with_tcf.php?url="+encodeURIComponent(a)+"&bg="+encodeURIComponent(c)}f.logLoad=function(){if(!f.loadLogged){f.loadLogged=!0;var a=new Image;a.setAttribute("referrerpolicy", "origin");a.setAttribute("crossorigin","anonymous");var c=null,d=null;window.Sddan&&window.Sddan.info&&(c=window.Sddan.info.pa,d=window.Sddan.info.c);a.src="proxy.php?url=https://stats.sirdata.eu/ping_cw.gif?t=youtube&rand="+(Math.floor(4294967296*(1+Math.random()))+Math.floor(4294967296*(1+Math.random())))+"&pa="+encodeURIComponent(c)+"&c="+encodeURIComponent(d)}};f.onDocumentReady=function(a){document.readyState!=="loading"?a():document.addEventListener?document.addEventListener("DOMContentLoaded", a):document.attachEvent("onreadystatechange",function(){document.readyState==="complete"&&a()})};f.messageHandler=function(a){if(a&&a.origin==="https://cdn.sirdata.eu"&&a.data&&a.data.action&&window.Sddan&&window.Sddan.cmp)if(a.data.action==="resurfaceCmpUi"&&window.Sddan.cmp.displayUI)try{return window.Sddan.cmp.displayUI()}catch(c){}else if(a.data.action==="getCmpTheme"&&window.Sddan.cmp.theme)try{a.source.postMessage({action:"setTheme",userGesture:f.userGesture,sdMainColor:window.Sddan.cmp.theme.lightMode&& window.Sddan.cmp.theme.lightMode.mainColor||window.Sddan.cmp.theme.mainColor||null,sdBackgroundColor:window.Sddan.cmp.theme.lightMode&&window.Sddan.cmp.theme.lightMode.backgroundColor||window.Sddan.cmp.theme.backgroundColor||null,sdFontFamily:window.Sddan.cmp.theme.fontFamily||window.Sddan.cmp.theme.fontFamilyTitle||null},"*")}catch(c){}};f.__msgBound||(f.__msgBound=!0,window.addEventListener?window.addEventListener("message",f.messageHandler,!1):window.attachEvent&&window.attachEvent("onmessage", f.messageHandler));f.observeShadow=function(a){try{if(a&&!a.__sdCw_observed){(new MutationObserver(function(b){for(var g=0;g]*\bsrc="proxy.php?url=)([^"]+)(")/gmi,function(d,e,b,g){return m(b)? e+n(b,c&&c.host||document.body)+g:e+b+g})}}catch(d){}try{f.observeShadow(this)}catch(d){}return t.set.call(this,a)}})}}catch(a){}f.init=function(){!f.initiated&&document.body&&(document.body.addEventListener("click",function(){f.userGesture=!0},!0),f.initiated=!0);var a=document.getElementsByTagName("iframe");if(a&&a.length)for(var c=0;c-1&&(b=b.replace("https://www.youtube.com","https://www.youtube-nocookie.com")); Element.prototype.setAttribute.call(d,"src",b);f.init(!1);return!0}}}),d.setAttribute=function(b,g){b==="type"||b==="src"?d[b]=g:Element.prototype.setAttribute.call(d,b,g)}}catch(b){}return d}if(a==="img"){var e=u.call(document,a);try{Object.defineProperties(e,{src:{configurable:!0,get:function(){return e.getAttribute("src")},set:function(b){(b=b!=null?b.toString():b)&&b.indexOf("https://img.youtube.com/vi/")===0&&(b=b.replace("https://img.youtube.com/vi/","https://i.ytimg.com/vi/"));Element.prototype.setAttribute.call(e, "src",b);return!0}}}),e.setAttribute=function(b,g){b==="type"||b==="src"?e[b]=g:Element.prototype.setAttribute.call(e,b,g)}}catch(b){}return e}return u.call(document,a)}}catch(a){}f.observe=function(){typeof MutationObserver!=="undefined"&&(new MutationObserver(function(a){for(var c=0;c -1)try{g=g.replace(/(]*\bsrc="proxy.php?url=)([^"]+)(")/gmi,function(l,y,x,z){return m(x)?y+n(x,b)+z:y+x+z}),g!==b.innerHTML&&(b.innerHTML=g)}catch(l){}}if(b&&b.nodeType===1&&b.tagName==="SCRIPT"&&b.src)try{var h=b.src.toString();if(h==="https://www.youtube.com/iframe_api"||h.indexOf("https://www.youtube.com")===0&&h.indexOf("www-widgetapi.js")>-1){b.type="javascript/blocked";b.src=h==="https://www.youtube.com/iframe_api"?"https://cdn.sirdata.eu/iframe_api.js":h.replace("https://www.youtube.com","https://www.youtube-nocookie.com"); var p=function(){try{b.preventDefault&&b.preventDefault()}catch(l){}b.removeEventListener&&b.removeEventListener("beforescriptexecute",p)};b.addEventListener&&b.addEventListener("beforescriptexecute",p);b.type="text/javascript"}}catch(l){}if(b&&b.nodeType===1&&b.tagName==="IMG"&&b.src)try{var k=b.src.toString();k.indexOf("https://img.youtube.com/vi/")===0&&(b.src=k.replace("https://img.youtube.com/vi/","https://i.ytimg.com/vi/"))}catch(l){}if(b&&b.nodeType===1&&b.tagName==="IFRAME"&&b.src)try{var r= b.src.toString();m(r)&&(b.src=n(r,q(b)),b.setAttribute("scrolling","no"))}catch(l){}}})).observe(document.documentElement,{childList:!0,subtree:!0})};f.observe();f.onDocumentReady(function(){f.logLoad();f.init();var a=document.getElementsByTagName("iframe");if(a&&a.length)for(var c=0;c