'use strict';(function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"===typeof exports?module.exports=a(require("jquery")):a(jQuery)})(function(a){function m(){var b,e={height:n.innerHeight,width:n.innerWidth};e.height||!(b=c.compatMode)&&a.support.boxModel||(b="CSS1Compat"===b?k:c.body,e={height:b.clientHeight,width:b.clientWidth});return e}function f(){if(d.length){var b=0,e=a.map(d,function(p){var t=p.data.selector;p=p.$element;return t?p.find(t):p});l=l||m();for(g=g||{top:n.pageYOffset||
k.scrollTop||c.body.scrollTop,left:n.pageXOffset||k.scrollLeft||c.body.scrollLeft};b<d.length;b++)if(a.contains(k,e[b][0])){var h=a(e[b]),v=h[0].offsetHeight,w=h[0].offsetWidth,q=h.offset(),u=h.data("inview");if(!g||!l)break;q.top+v>g.top&&q.top<g.top+l.height&&q.left+w>g.left&&q.left<g.left+l.width?u||h.data("inview",!0).trigger("inview",[!0]):u&&h.data("inview",!1).trigger("inview",[!1])}}}var d=[],l,g,c=document,n=window,k=c.documentElement,r;a.event.special.inview={add:function(b){d.push({data:b,
$element:a(this),element:this});!r&&d.length&&(r=setInterval(f,250))},remove:function(b){for(var e=0;e<d.length;e++){var h=d[e];if(h.element===this&&h.data.guid===b.guid){d.splice(e,1);break}}d.length||(clearInterval(r),r=null)}};a(n).on("scroll resize scrollstop",function(){l=g=null});!k.addEventListener&&k.attachEvent&&k.attachEvent("onfocusin",function(){g=null})});
(function(a){window._EPADashboard_=window._EPADashboard_||{};window._EPADashboard_.embdyn=function(){a("iframe[data-ep-src]").each(function(){var m=a(this);m.data("epyteventinview")||(m.data("epyteventinview","1"),m.one("inview",function(f,d,l,g){if(d){var c=a(this);f=c.attr("data-ep-src");f=window._EPADashboard_.cleanSrc(f);c.attr("src",f);window._EPADashboard_.loadYTAPI();window._EPADashboard_.setupevents(this.id);c.removeAttr("data-ep-src");setTimeout(function(){"undefined"!==typeof a.fn.fitVidsEP&&
a(c.parent()).fitVidsEP();c.addClass("animated "+c.attr("data-ep-a"))},1)}}))})};a(window).on("load._EPYT_",window._EPADashboard_.embdyn);if(window._EPYT_.ajax_compat)a(window).on("load._EPYT_",function(){a(document).ajaxSuccess(function(m,f,d){f&&f.responseText&&-1!==f.responseText.indexOf("<iframe ")&&window._EPADashboard_.embdyn()})})})(jQuery);