function processYoutubeVideo(i,n){var e;document.getElementById("youtube-api")||((e=document.createElement("script")).id="youtube-api",e.src="https://www.youtube.com/iframe_api",document.head.insertAdjacentElement("beforeend",e)),t_videoprocessor__onFuncLoad("YT",function(){var e,t={"url-youtube":"",nomute:"",noloop:"",nocover:""};for(e in t){var o=i.getAttribute("data-content-video-"+e);o&&(t[e]=o)}"yes"!==t.nocover&&(t.nomute=""),t.mute="yes"!==t.nomute,t.loop="yes"!==t.noloop,t.cover="yes"!==t.nocover,t_videoprocessor__setYoutubePlayer(i,t),t_videoprocessor__updateVideoHeight(i,n,"youtube"),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||"ontouchend"in document||(window.addEventListener("resize",function(){t.cover&&t_videoprocessor__updateVideoHeight(i,n,"youtube")}),i.addEventListener("coverHeightUpdated",function(){t_videoprocessor__updateVideoHeight(i,n,"youtube")},{once:!0}))})}function t_videoprocessor__updateVideoHeight(e,t,o){var i=t;"youtube"===o&&(i=t_videoprocessor__getHeightFromAttr(t)<(parseInt(e.getAttribute("data-content-cover-updated-height"),10)||0)?e.getAttribute("data-content-cover-updated-height"):t),setWidthAndHeightVideo(e,i,o)}function t_videoprocessor__setYoutubePlayer(t,o){var i,n=document.createElement("iframe");n.src=t_videoprocessor__generateYoutubeURL(o),n.frameBorder="0",n.allow="fullscreen",n.style.opacity="0",t.appendChild(n),new YT.Player(n,{events:{onReady:function(e){-1===e.target.getPlayerState()&&"y"!==n.getAttribute("programmly-updated")&&(n.src=t_videoprocessor__generateYoutubeURL(o),n.setAttribute("programmly-updated","y")),n.style.opacity="",t_videoprocessor__pauseAndPlayYouTubeVideo(t,e.target,o.mute),t_videoprocessor__muteYouTubeVideo(e,o),e.target.setLoop(!0)},onStateChange:function(e){t_videoprocessor__muteYouTubeVideo(e,o),e.data===YT.PlayerState.PLAYING?i=t_videoprocessor__updateLoopedVideo(e.target,o):window.clearInterval(i)}}})}function t_videoprocessor__muteYouTubeVideo(e,t){e.target.setVolume&&t.mute&&e.target.setVolume(0)}function t_videoprocessor__updateLoopedVideo(o,i){return setInterval(function(){var e=o.getCurrentTime(),t=o.getDuration();t&&t