(function(){for(var g,aa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(c.get||c.set)throw new TypeError("ES3 does not support getters and setters.");a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},k="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this,m=["String", "prototype","repeat"],n=0;na||1342177279>>=1)b+=b;return c}; r!=q&&null!=r&&aa(k,ba,{configurable:!0,writable:!0,value:r});var t=this;function u(a){a=a.split(".");for(var b=t,c;c=a.shift();)if(null!=b[c])b=b[c];else return null;return b} function ca(){} function v(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null"; else if("function"==b&&"undefined"==typeof a.call)return"object";return b} function w(a){var b=v(a);return"array"==b||"object"==b&&"number"==typeof a.length} function x(a){return"string"==typeof a} function da(a){var b=typeof a;return"object"==b&&null!=a||"function"==b} var y="closure_uid_"+(1E9*Math.random()>>>0),ea=0;function fa(a,b,c){return a.call.apply(a.bind,arguments)} function ga(a,b,c){if(!a)throw Error();if(2/g,ta=/"/g,ua=/'/g,va=/\x00/g,wa=/[\x00&<>"']/; function xa(a,b){return ab?1:0} ;var D=window.yt&&window.yt.config_||window.ytcfg&&window.ytcfg.data_||{};A("yt.config_",D);A("yt.tokens_",window.yt&&window.yt.tokens_||{});var ya=window.yt&&window.yt.msgs_||u("window.ytcfg.msgs")||{};A("yt.msgs_",ya);function za(a){var b=arguments;if(1c?Math.max(0,a.length+c):c; if(x(a))return x(b)&&1==b.length?a.indexOf(b,c):-1;for(;cc?null:x(a)?a.charAt(c):a[c]} function Ka(a){return Array.prototype.concat.apply(Array.prototype,arguments)} function La(a){var b=a.length;if(0=a.length)throw J;if(b in a)return a[b++];b++}}; return c}throw Error("Not implemented");} function Xa(a,b){if(w(a))try{I(a,b,void 0)}catch(c){if(c!==J)throw c;}else{a=Wa(a);try{for(;;)b.call(void 0,a.next(),void 0,a)}catch(c){if(c!==J)throw c;}}} function Ya(a){if(w(a))return La(a);a=Wa(a);var b=[];Xa(a,function(a){b.push(a)}); return b} ;var Za=H("Opera"),L=H("Trident")||H("MSIE"),$a=H("Edge"),ab=H("Gecko")&&!(-1!=G.toLowerCase().indexOf("webkit")&&!H("Edge"))&&!(H("Trident")||H("MSIE"))&&!H("Edge"),bb=-1!=G.toLowerCase().indexOf("webkit")&&!H("Edge");function cb(){var a=t.document;return a?a.documentMode:void 0} var db;a:{var eb="",fb=function(){var a=G;if(ab)return/rv\:([^\);]+)(\)|;)/.exec(a);if($a)return/Edge\/([\d\.]+)/.exec(a);if(L)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(bb)return/WebKit\/(\S+)/.exec(a);if(Za)return/(?:Version)[ \/]?(\S+)/.exec(a)}(); fb&&(eb=fb?fb[1]:"");if(L){var gb=cb();if(null!=gb&&gb>parseFloat(eb)){db=String(gb);break a}}db=eb}var hb=db,na={}; function ib(a){ma(a,function(){for(var b=0,c=pa(String(hb)).split("."),d=pa(String(a)).split("."),e=Math.max(c.length,d.length),f=0;0==b&&f=c.length)throw J;var d=c.key(b++);if(a)return d;d=c.getItem(d);if(!x(d))throw"Storage mechanism: Invalid value was encountered";return d}; return d}; g.clear=function(){this.a.clear()}; g.key=function(a){return this.a.key(a)};function yb(){var a=null;try{a=window.localStorage||null}catch(b){}this.a=a} B(yb,P);function zb(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.a=a} B(zb,P);var Ab=u("yt.dom.getNextId_");if(!Ab){Ab=function(){return++Bb}; A("yt.dom.getNextId_",Ab);var Bb=0};var Q={},Cb=[],O=new N,Db={};function Eb(){I(Cb,function(a){a()})} function Fb(a){var b=La(document.getElementsByTagName("yt:"+a));a="yt-"+a;var c=document;a=La(c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):tb(a));return Ka(b,a)} function R(a,b){return"yt:"==a.tagName.toLowerCase().substr(0,3)?a.getAttribute(b):a?a.dataset?a.dataset[Ea(b)]:a.getAttribute("data-"+b):null} function Gb(a,b){O.I.apply(O,arguments)} ;var C=u("yt.events.listeners_")||{};A("yt.events.listeners_",C);var Hb=u("yt.events.counter_")||{count:0};A("yt.events.counter_",Hb);function Ib(a,b,c){a.addEventListener&&("mouseenter"!=b||"onmouseenter"in document?"mouseleave"!=b||"onmouseenter"in document?"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"):b="mouseout":b="mouseover");return la(function(d){return d[0]==a&&d[1]==b&&d[2]==c&&0==d[4]})} function Jb(a,b,c){if(a&&(a.addEventListener||a.attachEvent)){var d=Ib(a,b,c);if(!d){var d=++Hb.count+"",e=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document),f;f=e?function(d){d=new E(d);if(!ub(d.relatedTarget,function(b){return b==a}))return d.currentTarget=a,d.type=b,c.call(a,d)}:function(b){b=new E(b); b.currentTarget=a;return c.call(a,b)}; f=Ba(f);a.addEventListener?("mouseenter"==b&&e?b="mouseover":"mouseleave"==b&&e?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),a.addEventListener(b,f,!1)):a.attachEvent("on"+b,f);C[d]=[a,b,c,f,!1]}}} function Kb(a){a&&("string"==typeof a&&(a=[a]),I(a,function(a){if(a in C){var b=C[a],d=b[0],e=b[1],f=b[3],b=b[4];d.removeEventListener?d.removeEventListener(e,f,b):d.detachEvent&&d.detachEvent("on"+e,f);delete C[a]}}))} ;xb(new yb);xb(new zb);function S(a,b,c){this.b=b;this.h=this.a=null;this.g=this[y]||(this[y]=++ea);this.c=0;this.B=!1;this.w=[];this.f=null;this.m=c;this.v={};b=document;if(a=x(a)?b.getElementById(a):a)if("iframe"!=a.tagName.toLowerCase()&&(b=Lb(this,a),this.h=a,(c=a.parentNode)&&c.replaceChild(b,a),a=b),this.a=a,this.a.id||(b=a=this.a,b=b[y]||(b[y]=++ea),a.id="widget"+b),Q[this.a.id]=this,window.postMessage){this.f=new N;Mb(this);a=T(this.b,"events");for(var d in a)a.hasOwnProperty(d)&&this.addEventListener(d,a[d]);for(var e in Db)Nb(this, e)}} g=S.prototype;g.S=function(a,b){this.a.width=a;this.a.height=b;return this}; g.R=function(){return this.a}; g.J=function(a){this.l(a.event,a)}; g.addEventListener=function(a,b){var c=b;"string"==typeof b&&(c=function(){window[b].apply(window,arguments)}); this.f.subscribe(a,c);Ob(this,a);return this}; function Nb(a,b){var c=b.split(".");if(2==c.length){var d=c[1];a.m==c[0]&&Ob(a,d)}} g.P=function(){this.a.id&&(Q[this.a.id]=null);var a=this.f;a&&"function"==typeof a.dispose&&a.dispose();if(this.h){var a=this.a,b=a.parentNode;b&&b.replaceChild(this.h,a)}else(a=this.a)&&a.parentNode&&a.parentNode.removeChild(a);U&&(U[this.g]=null);this.b=null;var a=this.a,c;for(c in C)C[c][0]==a&&Kb(c);this.h=this.a=null}; g.s=function(){return{}}; function V(a,b,c){c=c||[];c=Array.prototype.slice.call(c);b={event:"command",func:b,args:c};a.B?a.C(b):a.w.push(b)} g.l=function(a,b){if(!this.f.c){var c={target:this,data:b};this.f.I(a,c);Gb(this.m+"."+a,c)}}; function Lb(a,b){for(var c=document.createElement("iframe"),d=b.attributes,e=0,f=d.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||(l[a]=b)}); c.src=T(a.b,"host")+a.u()+"?"+Ra(l);return c} g.H=function(){this.a&&this.a.contentWindow?this.C({event:"listening"}):window.clearInterval(this.c)}; function Mb(a){Pb(a.b,a,a.g);a.c=Aa(z(a.H,a));Jb(a.a,"load",z(function(){window.clearInterval(this.c);this.c=Aa(z(this.H,this))},a))} function Ob(a,b){a.v[b]||(a.v[b]=!0,V(a,"addEventListener",[b]))} g.C=function(a){a.id=this.g;a.channel="widget";a=ka(a);var b;b=this.b;var c,d=this.a.src.match(Pa);c=d[1];var e=d[2],f=d[3],d=d[4],h="";c&&(h+=c+":");f&&(h+="//",e&&(h+=e+"@"),h+=f,d&&(h+=":"+d));c=h;b=0==c.indexOf("https:")?[c]:b.b?[c.replace("http:","https:")]:b.f?[c]:[c,c.replace("http:","https:")];for(c=0;c")&&(b=b.replace(sa,">")),-1!=b.indexOf('"')&&(b=b.replace(ta,""")),-1!=b.indexOf("'")&&(b=b.replace(ua,"'")),-1!=b.indexOf("\x00")&&(b=b.replace(va,"�")));a=a+b+'" frameborder="0" allowfullscreen>'; return a}; g.U=function(a){return this.i.namespaces?a?this.i[a].options||[]:this.i.namespaces||[]:[]}; g.T=function(a,b){if(this.i.namespaces&&a&&b)return this.i[a][b]};function Y(a,b){var c=new Tb(b);S.call(this,a,c,"thumbnail")} B(Y,S);function Xb(a){if("iframe"!=a.tagName.toLowerCase()){var b=R(a,"videoid");if(b){b={videoId:b,events:{}};b.width=R(a,"width");b.height=R(a,"height");b.thumbWidth=R(a,"thumb-width");b.thumbHeight=R(a,"thumb-height");b.thumbAlign=R(a,"thumb-align");var c=R(a,"onclick");c&&(b.events.onClick=c);new Y(a,b)}}} Y.prototype.u=function(){return"/embed/"+T(this.b,"videoId")}; Y.prototype.s=function(){return{player:0,thumb_width:T(this.b,"thumbWidth"),thumb_height:T(this.b,"thumbHeight"),thumb_align:T(this.b,"thumbAlign")}}; Y.prototype.l=function(a,b){Y.D.l.call(this,a,b?b.info:void 0)};function Yb(a){W.call(this,a);this.a.host="https://www.youtube.com";this.a.title="upload widget";this.a.width=640;this.a.height=.67*T(this,"width")} B(Yb,W);function Z(a,b){var c=new Yb(b);S.call(this,a,c,"upload")} B(Z,S);g=Z.prototype;g.u=function(){return"/upload_embed"}; g.s=function(){var a={},b=T(this.b,"webcamOnly");null!=b&&(a.webcam_only=b);return a}; g.l=function(a,b){Z.D.l.call(this,a,b);"onApiReady"==a&&V(this,"hostWindowReady")}; g.K=function(a){V(this,"setVideoDescription",arguments)}; g.M=function(a){V(this,"setVideoKeywords",arguments)}; g.N=function(a){V(this,"setVideoPrivacy",arguments)}; g.L=function(a){V(this,"setVideoDraftPrivacy",arguments)}; g.O=function(a){V(this,"setVideoTitle",arguments)};A("YT.PlayerState.UNSTARTED",-1);A("YT.PlayerState.ENDED",0);A("YT.PlayerState.PLAYING",1);A("YT.PlayerState.PAUSED",2);A("YT.PlayerState.BUFFERING",3);A("YT.PlayerState.CUED",5);A("YT.UploadWidgetEvent.API_READY","onApiReady");A("YT.UploadWidgetEvent.UPLOAD_SUCCESS","onUploadSuccess");A("YT.UploadWidgetEvent.PROCESSING_COMPLETE","onProcessingComplete");A("YT.UploadWidgetEvent.STATE_CHANGE","onStateChange");A("YT.UploadWidgetState.IDLE",0);A("YT.UploadWidgetState.PENDING",1); A("YT.UploadWidgetState.ERROR",2);A("YT.UploadWidgetState.PLAYBACK",3);A("YT.UploadWidgetState.RECORDING",4);A("YT.UploadWidgetState.STOPPED",5);A("YT.get",function(a){return Q[a]}); A("YT.scan",Eb);A("YT.subscribe",function(a,b,c){O.subscribe(a,b,c);Db[a]=!0;for(var d in Q)Nb(Q[d],a)}); A("YT.unsubscribe",function(a,b,c){vb(a,b,c)}); A("YT.Player",X);A("YT.Thumbnail",Y);A("YT.UploadWidget",Z);S.prototype.destroy=S.prototype.P;S.prototype.setSize=S.prototype.S;S.prototype.getIframe=S.prototype.R;S.prototype.addEventListener=S.prototype.addEventListener;X.prototype.getVideoEmbedCode=X.prototype.V;X.prototype.getOptions=X.prototype.U;X.prototype.getOption=X.prototype.T;Z.prototype.setVideoDescription=Z.prototype.K;Z.prototype.setVideoKeywords=Z.prototype.M;Z.prototype.setVideoPrivacy=Z.prototype.N;Z.prototype.setVideoTitle=Z.prototype.O; Z.prototype.setVideoDraftPrivacy=Z.prototype.L;Cb.push(function(){var a=Fb("player");I(a,Ub)}); Cb.push(function(){var a=Fb("thumbnail");I(a,Xb)}); "undefined"!=typeof YTConfig&&YTConfig.parsetags&&"onload"!=YTConfig.parsetags||Eb();var Zb=u("onYTReady");Zb&&Zb();var $b=u("onYouTubeIframeAPIReady");$b&&$b();var ac=u("onYouTubePlayerAPIReady");ac&&ac();}).call(this);