(function(){var k;function aa(){var a=l,b=0;return function(){return b>>0),na=0;function oa(a,b,c){return a.call.apply(a.bind,arguments)} function pa(a,b,c){if(!a)throw Error();if(2c?null:"string"===typeof a?a.charAt(c):a[c]} function ua(a){return Array.prototype.concat.apply([],arguments)} function va(a){var b=a.length;if(0/g,Aa=/"/g,Ba=/'/g,Ca=/\x00/g,Da=/[\x00&<>"']/;var D;a:{var Ea=q.navigator;if(Ea){var Fa=Ea.userAgent;if(Fa){D=Fa;break a}}D=""};function Ga(a){var b=E,c;for(c in b)if(a.call(void 0,b[c],c,b))return c} ;function F(a,b){this.b=a===Ha&&b||"";this.a=Ia} var Ia={},Ha={},G=new F(Ha,"");function H(a,b){this.b=a===Ja&&b||"";this.a=Ka} var Ka={},Ja={};function I(){this.a="";this.b=La} var La={};function J(a){var b=new I;b.a=a;return b} J("");var K=J("");J("
");function Ma(a){var b=new H(Ja,G instanceof F&&G.constructor===F&&G.a===Ia?G.b:"type_error:Const");a.src=(b instanceof H&&b.constructor===H&&b.a===Ka?b.b:"type_error:TrustedResourceUrl").toString()} ;function Na(a,b){var c,d;var e=document;e=b||e;if(e.querySelectorAll&&e.querySelector&&a)return e.querySelectorAll(a?"."+a:"");if(a&&e.getElementsByClassName){var f=e.getElementsByClassName(a);return f}f=e.getElementsByTagName("*");if(a){var g={};for(c=d=0;e=f[c];c++){var h=e.className,p;if(p="function"==typeof h.split)p=0<=sa(h.split(/\s+/),a);p&&(g[d++]=e)}g.length=d;return g}return f} function L(a){var b=document;a=String(a);"application/xhtml+xml"===b.contentType&&(a=a.toLowerCase());return b.createElement(a)} function Oa(a,b){for(var c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null} ;function Pa(a){q.setTimeout(function(){throw a;},0)} var M; function Qa(){var a=q.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&-1==D.indexOf("Presto")&&(a=function(){var e=L("IFRAME");e.style.display="none";Ma(e);document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.write(K instanceof I&&K.constructor===I&&K.b===La?K.a:"type_error:SafeHtml");e.close();var g="callImmediate"+Math.random(),h="file:"==f.location.protocol?"*":f.location.protocol+"//"+f.location.host;e= y(function(p){if(("*"==h||p.origin==h)&&p.data==g)this.port1.onmessage()},this); f.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(g,h)}}}); if("undefined"!==typeof a&&-1==D.indexOf("Trident")&&-1==D.indexOf("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.C;c.C=null;e()}}; return function(e){d.next={C:e};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof document&&"onreadystatechange"in L("SCRIPT")?function(e){var f=L("SCRIPT"); f.onreadystatechange=function(){f.onreadystatechange=null;f.parentNode.removeChild(f);f=null;e();e=null}; document.documentElement.appendChild(f)}:function(e){q.setTimeout(e,0)}} ;function Ra(){this.b=this.a=null} var Ta=new wa(function(){return new Sa},function(a){a.reset()}); Ra.prototype.add=function(a,b){var c=Ta.get();c.set(a,b);this.b?this.b.next=c:this.a=c;this.b=c}; Ra.prototype.remove=function(){var a=null;this.a&&(a=this.a,this.a=this.a.next,this.a||(this.b=null),a.next=null);return a}; function Sa(){this.next=this.b=this.a=null} Sa.prototype.set=function(a,b){this.a=a;this.b=b;this.next=null}; Sa.prototype.reset=function(){this.next=this.b=this.a=null};function Ua(a){N||Va();Wa||(N(),Wa=!0);Xa.add(a,void 0)} var N;function Va(){if(q.Promise&&q.Promise.resolve){var a=q.Promise.resolve(void 0);N=function(){a.then(Ya)}}else N=function(){var b=Ya,c; !(c="function"!=v(q.setImmediate))&&(c=q.Window&&q.Window.prototype)&&(c=-1==D.indexOf("Edge")&&q.Window.prototype.setImmediate==q.setImmediate);c?(M||(M=Qa()),M(b)):q.setImmediate(b)}} var Wa=!1,Xa=new Ra;function Ya(){for(var a;a=Xa.remove();){try{a.a.call(a.b)}catch(c){Pa(c)}var b=Ta;b.g(a);100>b.b&&(b.b++,a.next=b.a,b.a=a)}Wa=!1} ;function O(){this.f=this.f;this.g=this.g} O.prototype.f=!1;O.prototype.dispose=function(){this.f||(this.f=!0,this.w())}; O.prototype.w=function(){if(this.g)for(;this.g.length;)this.g.shift()()};var Za=q.JSON.stringify;function P(a){O.call(this);this.m=1;this.h=[];this.i=0;this.a=[];this.b={};this.o=!!a} ra(P,O);k=P.prototype;k.subscribe=function(a,b,c){var d=this.b[a];d||(d=this.b[a]=[]);var e=this.m;this.a[e]=a;this.a[e+1]=b;this.a[e+2]=c;this.m=e+3;d.push(e);return e}; function $a(a,b,c){var d=Q;if(a=d.b[a]){var e=d.a;(a=ta(a,function(f){return e[f+1]==b&&e[f+2]==c}))&&d.B(a)}} k.B=function(a){var b=this.a[a];if(b){var c=this.b[b];if(0!=this.i)this.h.push(a),this.a[a+1]=ma;else{if(c){var d=sa(c,a);0<=d&&Array.prototype.splice.call(c,d,1)}delete this.a[a];delete this.a[a+1];delete this.a[a+2]}}return!!b}; k.G=function(a,b){var c=this.b[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;er)u=null;else{A=u.indexOf("&",r);if(0>A||A>ea)A=ea;r+=p.length+1;u=decodeURIComponent(u.substr(r,A-r).replace(/\+/g, " "))}null!==u&&(h[p]=u)}); c.src=V(a.b,"host")+a.v()+"?"+eb(h);return c} k.F=function(){this.a&&this.a.contentWindow?this.A({event:"listening"}):window.clearInterval(this.f)}; function Cb(a){Ab(a.b,a,a.h);a.f=sb(y(a.F,a));rb(a.a,"load",y(function(){window.clearInterval(this.f);this.f=sb(y(this.F,this))},a))} function Eb(a,b){a.I[b]||(a.I[b]=!0,Fb(a,"addEventListener",[b]))} k.A=function(a){a.id=this.h;a.channel="widget";a=Za(a);var b=this.b;var c=cb(this.a.src||"");b=0==c.indexOf("https:")?[c]:b.a?[c.replace("http:","https:")]:b.f?[c]:[c,c.replace("http:","https:")];if(this.a.contentWindow)for(c=0;c")&&(c=c.replace(za,">")),-1!=c.indexOf('"')&&(c=c.replace(Aa,""")),-1!=c.indexOf("'")&&(c=c.replace(Ba,"'")),-1!=c.indexOf("\x00")&&(c=c.replace(Ca,"�")));a=''; return a}; k.getOptions=function(a){return this.j.namespaces?a?this.j[a].options||[]:this.j.namespaces||[]:[]}; k.getOption=function(a,b){if(this.j.namespaces&&a&&b)return this.j[a][b]}; function Kb(a){if("iframe"!=a.tagName.toLowerCase()){var b=U(a,"videoid");b&&(b={videoId:b,width:U(a,"width"),height:U(a,"height")},new Y(a,b))}} ;function Z(a,b){var c={title:"Thumbnail",videoId:"",width:120,height:68};if(b)for(var d in b)c[d]=b[d];X.call(this,a,c,"thumbnail")} ha(Z,X);Z.prototype.v=function(){return"/embed/"+V(this.b,"videoId")}; Z.prototype.u=function(){return{player:0,thumb_width:V(this.b,"thumbWidth"),thumb_height:V(this.b,"thumbHeight"),thumb_align:V(this.b,"thumbAlign")}}; Z.prototype.s=function(a,b){X.prototype.s.call(this,a,b?b.info:void 0)}; function Lb(a){if("iframe"!=a.tagName.toLowerCase()){var b=U(a,"videoid");if(b){b={videoId:b,events:{},width:U(a,"width"),height:U(a,"height"),thumbWidth:U(a,"thumb-width"),thumbHeight:U(a,"thumb-height"),thumbAlign:U(a,"thumb-align")};var c=U(a,"onclick");c&&(b.events.onClick=c);new Z(a,b)}}} ;z("YT.PlayerState.UNSTARTED",-1);z("YT.PlayerState.ENDED",0);z("YT.PlayerState.PLAYING",1);z("YT.PlayerState.PAUSED",2);z("YT.PlayerState.BUFFERING",3);z("YT.PlayerState.CUED",5);z("YT.get",function(a){return T[a]}); z("YT.scan",wb);z("YT.subscribe",function(a,b,c){Q.subscribe(a,b,c);vb[a]=!0;for(var d in T)Db(T[d],a)}); z("YT.unsubscribe",function(a,b,c){$a(a,b,c)}); z("YT.Player",Y);z("YT.Thumbnail",Z);X.prototype.destroy=X.prototype.destroy;X.prototype.setSize=X.prototype.setSize;X.prototype.getIframe=X.prototype.L;X.prototype.addEventListener=X.prototype.addEventListener;Y.prototype.getVideoEmbedCode=Y.prototype.getVideoEmbedCode;Y.prototype.getOptions=Y.prototype.getOptions;Y.prototype.getOption=Y.prototype.getOption;l.push(function(a){a=xb("player",a);C(a,Kb)}); l.push(function(){var a=xb("thumbnail");C(a,Lb)}); "undefined"!=typeof YTConfig&&YTConfig.parsetags&&"onload"!=YTConfig.parsetags||wb();var Mb=t("onYTReady");Mb&&Mb();var Nb=t("onYouTubeIframeAPIReady");Nb&&Nb();var Ob=t("onYouTubePlayerAPIReady");Ob&&Ob();}).call(this);