(function(b,d){b._EPYT_=b._EPYT_||{ajaxurl:"/wp-admin/admin-ajax.php",security:"",gallery_scrolloffset:100,eppathtoscripts:"/wp-content/plugins/youtube-embed-plus-pro/scripts/",eppath:"/wp-content/plugins/youtube-embed-plus-pro/",epresponsiveselector:["iframe.__youtube_prefs_widget__"],epdovol:!0,evselector:'iframe.__youtube_prefs__[src], iframe[src*="youtube.com/embed/"], iframe[src*="youtube-nocookie.com/embed/"]',stopMobileBuffer:!0,ajax_compat:!1,usingdefault:!0,ytapi_load:"light",pause_others:!1, facade_mode:!1,not_live_on_channel:!1,not_live_showtime:180,maxres_facade:"eager"};b._EPYT_.touchmoved=!1;b._EPYT_.lityOpen=!1;b._EPYT_.apiVideos=b._EPYT_.apiVideos||{};0===b.location.toString().indexOf("https://")&&(b._EPYT_.ajaxurl=b._EPYT_.ajaxurl.replace("http://","https://"));b._EPYT_.pageLoaded=!1;d(b).on("load._EPYT_",function(){b._EPYT_.pageLoaded=!0});document.querySelectorAll||(document.querySelectorAll=function(c){var a=document,e=a.documentElement.firstChild,f=a.createElement("STYLE"); e.appendChild(f);a.__qsaels=[];f.styleSheet.cssText=c+"{x:expression(document.__qsaels.push(this))}";b.scrollBy(0,0);return a.__qsaels});"undefined"===typeof b._EPADashboard_&&(b._EPADashboard_={initStarted:!1,checkCount:0,onPlayerReady:function(c){try{if("undefined"!==typeof _EPYT_.epdovol&&_EPYT_.epdovol){var a=parseInt(c.target.getIframe().getAttribute("data-vol"));isNaN(a)||(0===a?c.target.mute():(c.target.isMuted()&&c.target.unMute(),c.target.setVolume(a)))}var e=parseInt(c.target.getIframe().getAttribute("data-epautoplay")); isNaN(e)||1!==e||d(c.target.getIframe()).closest(".lity-hide").length||c.target.playVideo()}catch(h){}try{var f=d(c.target.getIframe());f.hasClass("epyt-lbif")&&f.hasClass("epyt-thumbplay")&&f.closest(".lity-content").length&&(navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry)/)&&b._EPYT_.stopMobileBuffer||c.target.playVideo())}catch(h){}try{var k=c.target.getIframe(),m=k.getAttribute("id");b._EPYT_.apiVideos[m]=c.target;b._EPADashboard_.doLiveChat(c.target);b._EPYT_.not_live_on_channel&& 0c.naturalHeight)if(a=d(c).attr("src"))d(c).attr("src",a.replace("maxresdefault","hqdefault")),d(c).off("load.epyt");2a.indexOf("maxresdefault")){a=a.replace("hqdefault","maxresdefault");var e=new Image;e.src=a;d(e).on("load.epyt", function(){d(e).off("load.epyt");200l.startp.start?1:0);he.actualStart&&null==e.actualEnd&&"live"===e.liveBroadcastContent){k=m=!0;break}h++}if(!m)for(h=0;he.actualStart&&(null==e.actualEnd||ge.start){m=!0;break}h--}m&&e&&(b._EPYT_.not_live_on_channel&&b._EPADashboard_.dateDiffInMinutes(g,e.start)>parseInt(b._EPYT_.not_live_showtime)&&(!e.actualStart||b._EPADashboard_.dateDiffInMinutes(g,e.actualStart)>parseInt(b._EPYT_.not_live_showtime))?b._EPADashboard_.doLiveFallback(a.get(0)):(m=a.data("src").replace("live_stream",e.id),k||b._EPADashboard_.dateDiffInMinutes(e.start, g),b._EPADashboard_.setVidSrc(a,m)))}e||(b._EPYT_.not_live_on_channel?b._EPADashboard_.doLiveFallback(a.get(0)):b._EPADashboard_.findSwapBlock(a.get(0)).replaceWith(d('
').attr("data-channel",n)));if(d("body.wp-admin, body.logged-in.epyt-edit-posts").length&&(e=d("#epyt-livestream-advice-template"),e.length)){k="";try{k=b._EPADashboard_.base64DecodeUnicode(e.get(0).innerHTML),a.closest(".epyt-video-wrapper").before(k)}catch(l){}}}});if(d("body.wp-admin, body.logged-in.epyt-edit-posts").length)d(document).on("click.epytLivestreamAdvice", ".epyt-livestream-advice-close",function(){d.post(_EPYT_.ajaxurl,{action:"my_embedplus_livestream_advice_close",security:_EPYT_.security});d(".epyt-livestream-advice-close").each(function(){d(this).closest(".epyt-livestream-advice").remove()})});d(".epyt-gallery").each(function(){var a=d(this);if(!a.data("epytevents")||!d("body").hasClass("block-editor-page")){a.data("epytevents","1");var e=d(this).find("iframe, div.__youtube_prefs_gdpr__, div.epyt-facade").first(),f="content"+e.attr("id");a.find(".lity-hide").attr("id", f);var k=e.data("src")||e.data("facadesrc")||e.data("lbsrc")||e.attr("src");k||(k=e.data("ep-src"));var m=d(this).find(".epyt-gallery-list .epyt-gallery-thumb").first().data("videoid");"undefined"!==typeof k?(k=k.replace(m,"GALLERYVIDEOID"),a.data("ep-gallerysrc",k)):e.hasClass("__youtube_prefs_gdpr__")&&a.data("ep-gallerysrc","");var h=a.find(".epyt-gallery-list"),n=function(){try{if(h.hasClass("epyt-gallery-style-carousel")){var g=d(h.find(".epyt-gallery-thumb").get(0)).height()/2;h.find(".epyt-pagination:first-child .epyt-pagenumbers").css("top", g+15+"px")}}catch(l){}};setTimeout(function(){n()},300);d(b).on("resize",n);a.on("click touchend",".epyt-gallery-list .epyt-gallery-thumb",function(g){if(!(b._EPYT_.lityOpen||(e=a.find("iframe, div.__youtube_prefs_gdpr__, div.epyt-facade").first(),b._EPYT_.touchmoved||d(this).hasClass("epyt-current-video")&&!a.hasClass("epyt-lb")))){a.find(".epyt-gallery-list .epyt-gallery-thumb").removeClass("epyt-current-video");d(this).addClass("epyt-current-video");g=d(this).data("videoid");a.data("currvid",g); var l=a.data("ep-gallerysrc").replace("GALLERYVIDEOID",g);g=a.find(".epyt-pagebutton").first().data("thumbplay");"0"!==g&&0!==g&&(l=0p?d("html, body").animate({scrollTop:p},500,function(){b._EPADashboard_.setVidSrc(e,l)}):b._EPADashboard_.setVidSrc(e,l)}else b._EPADashboard_.setVidSrc(e,l)}}).on("touchmove",function(g){b._EPYT_.touchmoved=!0}).on("touchstart",function(){b._EPYT_.touchmoved=!1}).on("keydown",".epyt-gallery-list .epyt-gallery-thumb, .epyt-pagebutton",function(g){var l=g.which;if(13===l||32===l)g.preventDefault(), d(this).trigger("click")});a.on("mouseenter",".epyt-gallery-list .epyt-gallery-thumb",function(){d(this).addClass("hover");if(h.hasClass("epyt-gallery-style-carousel")&&1==a.find(".epyt-pagebutton").first().data("showtitle")){a.find(".epyt-pagenumbers").addClass("hide");var g=d(this).find(".epyt-gallery-notitle span").text();a.find(".epyt-gallery-rowtitle").text(g).addClass("hover")}});a.on("mouseleave",".epyt-gallery-list .epyt-gallery-thumb",function(){d(this).removeClass("hover");h.hasClass("epyt-gallery-style-carousel")&& 1==a.find(".epyt-pagebutton").first().data("showtitle")&&(a.find(".epyt-gallery-rowtitle").text("").removeClass("hover"),0r&&d("html, body").animate({scrollTop:r},500)}})}}).on("touchmove",function(g){b._EPYT_.touchmoved=!0}).on("touchstart",function(){b._EPYT_.touchmoved=!1})}});d(".__youtube_prefs_gdpr__.epyt-is-override").each(function(){d(this).parent(".wp-block-embed__wrapper").addClass("epyt-is-override__wrapper")}); d("button.__youtube_prefs_gdpr__").on("click",function(a){a.preventDefault();d.cookie&&(d.cookie("ytprefs_gdpr_consent","1",{expires:30,path:"/"}),b.top.location.reload())});"eager"===b._EPYT_.maxres_facade?d("img.epyt-facade-poster").on("load.epyt",function(){b._EPADashboard_.resolveFacadeQuality(this,!1)}).on("error",function(){b._EPADashboard_.resolveFacadeQuality(this,!0)}).each(function(){this.complete&&d(this).trigger("load")}):"soft"===b._EPYT_.maxres_facade&&d("img.epyt-facade-poster").on("load.epyt", function(){b._EPADashboard_.maximizeFacadeQuality(this)}).each(function(){this.complete&&d(this).trigger("load")});d(".epyt-facade-play").each(function(){d(this).find("svg").length||d(this).append('')}); d(".epyt-facade-poster[data-facadeoembed]").each(function(){var a=d(this);if(!a.data("facadeoembedcomplete")){a.data("facadeoembedcomplete","1");var e="https://www.youtube.com/"+a.data("facadeoembed");d.get("https://youtube.com/oembed",{url:e,format:"json"},function(f){f="eager"===b._EPYT_.maxres_facade?f.thumbnail_url.replace("hqdefault","maxresdefault"):f.thumbnail_url;a.attr("src",f)},"json").fail(function(){}).always(function(){})}});d(document).on("click",".epyt-facade",function(a){a=d(this); var e=a.attr("data-facadesrc");e=b._EPADashboard_.cleanSrc(e);for(var f=document.createElement("iframe"),k=0;k