(function(){var g,k=this;function l(a){return"string"==typeof a} function m(a){a=a.split(".");for(var b=k,c=0;c>>0),r=0;function ba(a,b,c){return a.call.apply(a.bind,arguments)} function ca(a,b,c){if(!a)throw Error();if(2c?null:l(a)?a.charAt(c):a[c]} function fa(a){return Array.prototype.concat.apply([],arguments)} function z(a){var b=a.length;if(0/g,ka=/"/g,la=/'/g,ma=/\x00/g,na=/[\x00&<>"']/;var B;a:{var C=k.navigator;if(C){var D=C.userAgent;if(D){B=D;break a}}B=""};function oa(a){var b=E,c;for(c in b)if(a.call(void 0,b[c],c,b))return c} ;function pa(a){k.setTimeout(function(){throw a;},0)} var F; function qa(){var a=k.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&-1==B.indexOf("Presto")&&(a=function(){var a=document.createElement("IFRAME");a.style.display="none";a.src="";document.documentElement.appendChild(a);var b=a.contentWindow;a=b.document;a.open();a.write("");a.close();var c="callImmediate"+Math.random(),d="file:"==b.location.protocol?"*":b.location.protocol+"//"+b.location.host;a=u(function(a){if(("*"==d||a.origin==d)&& a.data==c)this.port1.onmessage()},this); b.addEventListener("message",a,!1);this.port1={};this.port2={postMessage:function(){b.postMessage(c,d)}}}); if("undefined"!==typeof a&&-1==B.indexOf("Trident")&&-1==B.indexOf("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var a=c.D;c.D=null;a()}}; return function(a){d.next={D:a};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof document&&"onreadystatechange"in document.createElement("SCRIPT")?function(a){var b=document.createElement("SCRIPT"); b.onreadystatechange=function(){b.onreadystatechange=null;b.parentNode.removeChild(b);b=null;a();a=null}; document.documentElement.appendChild(b)}:function(a){k.setTimeout(a,0)}} ;function G(){this.b=this.a=null} var I=new A(function(){return new H},function(a){a.reset()}); G.prototype.add=function(a,b){var c=I.get();c.set(a,b);this.b?this.b.next=c:this.a=c;this.b=c}; G.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 H(){this.next=this.b=this.a=null} H.prototype.set=function(a,b){this.a=a;this.b=b;this.next=null}; H.prototype.reset=function(){this.next=this.b=this.a=null};function ra(a){J||sa();K||(J(),K=!0);ta.add(a,void 0)} var J;function sa(){if(-1!=String(k.Promise).indexOf("[native code]")){var a=k.Promise.resolve(void 0);J=function(){a.then(ua)}}else J=function(){var a=ua,c; !(c="function"!=n(k.setImmediate))&&(c=k.Window&&k.Window.prototype)&&(c=-1==B.indexOf("Edge")&&k.Window.prototype.setImmediate==k.setImmediate);c?(F||(F=qa()),F(a)):k.setImmediate(a)}} var K=!1,ta=new G;function ua(){for(var a;a=ta.remove();){try{a.a.call(a.b)}catch(c){pa(c)}var b=I;b.f(a);100>b.b&&(b.b++,a.next=b.a,b.a=a)}K=!1} ;function L(){this.c=this.c;this.f=this.f} L.prototype.c=!1;L.prototype.dispose=function(){this.c||(this.c=!0,this.w())}; L.prototype.w=function(){if(this.f)for(;this.f.length;)this.f.shift()()};function va(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 h={};for(c=d=0;e=f[c];c++){var t=e.className,N;if(N="function"==typeof t.split)N=0<=x(t.split(/\s+/),a);N&&(h[d++]=e)}h.length=d;return h}return f} function wa(a,b){for(var c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null} ;var xa=k.JSON.stringify;function M(a){L.call(this);this.l=1;this.g=[];this.h=0;this.a=[];this.b={};this.m=!!a} w(M,L);g=M.prototype;g.subscribe=function(a,b,c){var d=this.b[a];d||(d=this.b[a]=[]);var e=this.l;this.a[e]=a;this.a[e+1]=b;this.a[e+2]=c;this.l=e+3;d.push(e);return e}; function ya(a,b,c){var d=O;if(a=d.b[a]){var e=d.a;(a=ea(a,function(a){return e[a+1]==b&&e[a+2]==c}))&&d.C(a)}} g.C=function(a){var b=this.a[a];if(b){var c=this.b[b];if(0!=this.h)this.g.push(a),this.a[a+1]=aa;else{if(c){var d=x(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}; g.G=function(a,b){var c=this.b[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;ed)b=null;else{e=b.indexOf("&",d);if(0>e||e>c)e=c;d+=a.length+1;b=decodeURIComponent(b.substr(d,e-d).replace(/\+/g," "))}null===b||(t[a]=b)}); c.src=V(a.b,"host")+a.v()+"?"+Da(t);return c} g.F=function(){this.a&&this.a.contentWindow?this.B({event:"listening"}):window.clearInterval(this.c)}; function Ya(a){Wa(a.b,a,a.g);a.c=Oa(u(a.F,a));Na(a.a,"load",u(function(){window.clearInterval(this.c);this.c=Oa(u(this.F,this))},a))} function $a(a,b){a.m[b]||(a.m[b]=!0,X(a,"addEventListener",[b]))} g.B=function(a){a.id=this.g;a.channel="widget";a=xa(a);var b=this.b;var c=Ba(this.a.src);b=0==c.indexOf("https:")?[c]:b.a?[c.replace("http:","https:")]:b.c?[c]:[c,c.replace("http:","https:")];if(!this.a.contentWindow)throw Error("The YouTube player is not attached to the DOM.");for(c=0;c")&&(c=c.replace(ja,">")),-1!=c.indexOf('"')&&(c=c.replace(ka,""")),-1!=c.indexOf("'")&&(c=c.replace(la,"'")),-1!=c.indexOf("\x00")&&(c=c.replace(ma,"�")));a=''; return a}; g.N=function(a){return this.i.namespaces?a?this.i[a].options||[]:this.i.namespaces||[]:[]}; g.M=function(a,b){if(this.i.namespaces&&a&&b)return this.i[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];W.call(this,a,c,"thumbnail")} w(Z,W);function fb(a){if("iframe"!=a.tagName.toLowerCase()){var b=T(a,"videoid");if(b){b={videoId:b,events:{}};b.width=T(a,"width");b.height=T(a,"height");b.thumbWidth=T(a,"thumb-width");b.thumbHeight=T(a,"thumb-height");b.thumbAlign=T(a,"thumb-align");var c=T(a,"onclick");c&&(b.events.onClick=c);new Z(a,b)}}} 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.o=function(a,b){Z.I.o.call(this,a,b?b.info:void 0)};v("YT.PlayerState.UNSTARTED",-1);v("YT.PlayerState.ENDED",0);v("YT.PlayerState.PLAYING",1);v("YT.PlayerState.PAUSED",2);v("YT.PlayerState.BUFFERING",3);v("YT.PlayerState.CUED",5);v("YT.get",function(a){return R[a]}); v("YT.scan",Sa);v("YT.subscribe",function(a,b,c){O.subscribe(a,b,c);Ra[a]=!0;for(var d in R)Za(R[d],a)}); v("YT.unsubscribe",function(a,b,c){ya(a,b,c)}); v("YT.Player",Y);v("YT.Thumbnail",Z);W.prototype.destroy=W.prototype.J;W.prototype.setSize=W.prototype.L;W.prototype.getIframe=W.prototype.K;W.prototype.addEventListener=W.prototype.addEventListener;Y.prototype.getVideoEmbedCode=Y.prototype.O;Y.prototype.getOptions=Y.prototype.N;Y.prototype.getOption=Y.prototype.M;S.push(function(a){a=Ta("player",a);y(a,cb)}); S.push(function(){var a=Ta("thumbnail");y(a,fb)}); "undefined"!=typeof YTConfig&&YTConfig.parsetags&&"onload"!=YTConfig.parsetags||Sa();var gb=m("onYTReady");gb&&gb();var hb=m("onYouTubeIframeAPIReady");hb&&hb();var ib=m("onYouTubePlayerAPIReady");ib&&ib();}).call(this);