(function(){/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ var g;function aa(){var a=l,b=0;return function(){return b>>0),sa=0;function ta(a,b,c){return a.call.apply(a.bind,arguments)} function ua(a,b,c){if(!a)throw Error();if(2c?null:"string"===typeof a?a.charAt(c):a[c]} function ya(a){return Array.prototype.concat.apply([],arguments)} function za(a){var b=a.length;if(0/g,Na=/"/g,Oa=/'/g,Pa=/\x00/g,Qa=/[\x00&<>"']/;var D;a:{var Ra=m.navigator;if(Ra){var Sa=Ra.userAgent;if(Sa){D=Sa;break a}}D=""}function E(a){return-1!=D.indexOf(a)} ;function Ta(){this.f="";this.g=Ua} var Ua={};function Va(a){var b=new Ta;b.f=a;return b} Va("");var Wa=Va("");Va("
");function Xa(a){var b=new Ga(Ha,C instanceof Da&&C.constructor===Da&&C.f===Fa?C.g:"type_error:Const");a.src=(b instanceof Ga&&b.constructor===Ga&&b.f===Ia?b.g:"type_error:TrustedResourceUrl").toString()} ;var Ya=E("Opera"),Za=E("Trident")||E("MSIE"),$a=E("Edge"),ab=E("Gecko")&&!(-1!=D.toLowerCase().indexOf("webkit")&&!E("Edge"))&&!(E("Trident")||E("MSIE"))&&!E("Edge"),bb=-1!=D.toLowerCase().indexOf("webkit")&&!E("Edge");function cb(){var a=m.document;return a?a.documentMode:void 0} var db;a:{var eb="",fb=function(){var a=D;if(ab)return/rv:([^\);]+)(\)|;)/.exec(a);if($a)return/Edge\/([\d\.]+)/.exec(a);if(Za)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(bb)return/WebKit\/(\S+)/.exec(a);if(Ya)return/(?:Version)[ \/]?(\S+)/.exec(a)}(); fb&&(eb=fb?fb[1]:"");if(Za){var gb=cb();if(null!=gb&&gb>parseFloat(eb)){db=String(gb);break a}}db=eb}var hb=db,ib;if(m.document&&Za){var jb=cb();ib=jb?jb:parseInt(hb,10)||void 0}else ib=void 0;var kb=ib;var F=window;function lb(){this.f=("undefined"==typeof document?null:document)||{cookie:""}} g=lb.prototype;g.isEnabled=function(){return navigator.cookieEnabled}; g.set=function(a,b,c){var d=!1;if("object"===typeof c){var e=c.aa;d=c.secure||!1;var f=c.domain||void 0;var h=c.path||void 0;var k=c.I}if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');void 0===k&&(k=-1);c=f?";domain="+f:"";h=h?";path="+h:"";d=d?";secure":"";k=0>k?"":0==k?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(w()+1E3*k)).toUTCString();this.f.cookie=a+"="+b+c+h+k+d+(null!=e?";samesite="+e:"")}; g.get=function(a,b){for(var c=a+"=",d=(this.f.cookie||"").split(";"),e=0,f;ea&&0===a%1&&this.g[a]!=b&&(this.g[a]=b,this.f=-1)}; Cb.prototype.get=function(a){return!!this.g[a]}; function Db(a){-1==a.f&&(a.f=wa(a.g,function(b,c,d){return c?b+Math.pow(2,d):b},0)); return a.f} ;function Eb(a,b){this.h=a;this.i=b;this.g=0;this.f=null} Eb.prototype.get=function(){if(0b.g&&(b.g++,a.next=b.f,b.f=a)}Ob=!1} ;function G(){this.h=this.h;this.i=this.i} G.prototype.h=!1;G.prototype.dispose=function(){this.h||(this.h=!0,this.D())}; G.prototype.D=function(){if(this.i)for(;this.i.length;)this.i.shift()()};var H="StopIteration"in m?m.StopIteration:{message:"StopIteration",stack:""};function I(){} I.prototype.next=function(){throw H;}; I.prototype.m=function(){return this}; function Rb(a){if(a instanceof I)return a;if("function"==typeof a.m)return a.m(!1);if(pa(a)){var b=0,c=new I;c.next=function(){for(;;){if(b>=a.length)throw H;if(b in a)return a[b++];b++}}; return c}throw Error("Not implemented");} function Sb(a,b){if(pa(a))try{A(a,b,void 0)}catch(c){if(c!==H)throw c;}else{a=Rb(a);try{for(;;)b.call(void 0,a.next(),void 0,a)}catch(c){if(c!==H)throw c;}}} function Tb(a){if(pa(a))return za(a);a=Rb(a);var b=[];Sb(a,function(c){b.push(c)}); return b} ;function Ub(a,b){this.h={};this.f=[];this.i=this.g=0;var c=arguments.length;if(12*this.g&&Wb(this),!0):!1}; function Wb(a){if(a.g!=a.f.length){for(var b=0,c=0;b=d.f.length)throw H;var f=d.f[b++];return a?f:d.h[f]}; return e};var Yb=m.JSON.stringify;function J(a){G.call(this);this.s=1;this.j=[];this.l=0;this.f=[];this.g={};this.v=!!a} z(J,G);g=J.prototype;g.subscribe=function(a,b,c){var d=this.g[a];d||(d=this.g[a]=[]);var e=this.s;this.f[e]=a;this.f[e+1]=b;this.f[e+2]=c;this.s=e+3;d.push(e);return e}; function Zb(a,b,c){var d=$b;if(a=d.g[a]){var e=d.f;(a=xa(a,function(f){return e[f+1]==b&&e[f+2]==c}))&&d.A(a)}} g.A=function(a){var b=this.f[a];if(b){var c=this.g[b];if(0!=this.l)this.j.push(a),this.f[a+1]=oa;else{if(c){var d=va(c,a);0<=d&&Array.prototype.splice.call(c,d,1)}delete this.f[a];delete this.f[a+1];delete this.f[a+2]}}return!!b}; g.F=function(a,b){var c=this.g[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;ew())N.prototype.remove.call(this,a);else return b}};function ec(){} ;function O(){} z(O,ec);O.prototype.clear=function(){var a=Tb(this.m(!0)),b=this;A(a,function(c){b.remove(c)})};function fc(a){this.f=a} z(fc,O);g=fc.prototype;g.isAvailable=function(){if(!this.f)return!1;try{return this.f.setItem("__sak","1"),this.f.removeItem("__sak"),!0}catch(a){return!1}}; g.set=function(a,b){try{this.f.setItem(a,b)}catch(c){if(0==this.f.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}}; g.get=function(a){a=this.f.getItem(a);if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a}; g.remove=function(a){this.f.removeItem(a)}; g.m=function(a){var b=0,c=this.f,d=new I;d.next=function(){if(b>=c.length)throw H;var e=c.key(b++);if(a)return e;e=c.getItem(e);if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return e}; return d}; g.clear=function(){this.f.clear()}; g.key=function(a){return this.f.key(a)};function gc(){var a=null;try{a=window.localStorage||null}catch(b){}this.f=a} z(gc,fc);function hc(a,b){this.g=a;this.f=null;var c;if(c=Za)c=!(9<=Number(kb));if(c){ic||(ic=new Ub);this.f=ic.get(a);this.f||(b?this.f=document.getElementById(b):(this.f=document.createElement("userdata"),this.f.addBehavior("#default#userData"),document.body.appendChild(this.f)),ic.set(a,this.f));try{this.f.load(this.g)}catch(d){this.f=null}}} z(hc,O);var jc={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},ic=null;function kc(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return jc[b]})} g=hc.prototype;g.isAvailable=function(){return!!this.f}; g.set=function(a,b){this.f.setAttribute(kc(a),b);lc(this)}; g.get=function(a){a=this.f.getAttribute(kc(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a}; g.remove=function(a){this.f.removeAttribute(kc(a));lc(this)}; g.m=function(a){var b=0,c=this.f.XMLDocument.documentElement.attributes,d=new I;d.next=function(){if(b>=c.length)throw H;var e=c[b++];if(a)return decodeURIComponent(e.nodeName.replace(/\./g,"%")).substr(1);e=e.nodeValue;if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return e}; return d}; g.clear=function(){for(var a=this.f.XMLDocument.documentElement,b=a.attributes.length;0u)p=null;else{L=p.indexOf("&",u);if(0>L||L>x)L=x;u+=n.length+1;p=decodeURIComponent(p.substr(u,L-u).replace(/\+/g, " "))}null!==p&&(k[n]=p)}); c.src=U(a.g,"host")+a.C()+"?"+ub(k);return c} g.J=function(){this.f&&this.f.contentWindow?this.G({event:"listening"}):window.clearInterval(this.h)}; function Qc(a){Hc(a.g,a,a.j);a.h=yc(v(a.J,a));xc(a.f,"load",v(function(){window.clearInterval(this.h);this.h=yc(v(this.J,this))},a))} function Sc(a,b){a.M[b]||(a.M[b]=!0,Tc(a,"addEventListener",[b]))} g.G=function(a){a.id=this.j;a.channel="widget";a=Yb(a);var b=this.g;var c=sb(this.f.src||"");b=0==c.indexOf("https:")?[c]:b.f?[c.replace("http:","https:")]:b.h?[c]:[c,c.replace("http:","https:")];if(this.f.contentWindow)for(c=0;c")&&(c=c.replace(Ma,">")),-1!=c.indexOf('"')&&(c=c.replace(Na,""")),-1!=c.indexOf("'")&&(c=c.replace(Oa,"'")),-1!=c.indexOf("\x00")&&(c=c.replace(Pa,"�")));a=''; return a}; g.getOptions=function(a){return this.o.namespaces?a?this.o[a].options||[]:this.o.namespaces||[]:[]}; g.getOption=function(a,b){if(this.o.namespaces&&a&&b)return this.o[a][b]}; function Yc(a){if("iframe"!=a.tagName.toLowerCase()){var b=T(a,"videoid");b&&(b={videoId:b,width:T(a,"width"),height:T(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")} la(Z,X);Z.prototype.C=function(){return"/embed/"+U(this.g,"videoId")}; Z.prototype.B=function(){return{player:0,thumb_width:U(this.g,"thumbWidth"),thumb_height:U(this.g,"thumbHeight"),thumb_align:U(this.g,"thumbAlign")}}; Z.prototype.w=function(a,b){X.prototype.w.call(this,a,b?b.info:void 0)}; function Zc(a){if("iframe"!=a.tagName.toLowerCase()){var b=T(a,"videoid");if(b){b={videoId:b,events:{},width:T(a,"width"),height:T(a,"height"),thumbWidth:T(a,"thumb-width"),thumbHeight:T(a,"thumb-height"),thumbAlign:T(a,"thumb-align")};var c=T(a,"onclick");c&&(b.events.onClick=c);new Z(a,b)}}} ;y("YT.PlayerState.UNSTARTED",-1);y("YT.PlayerState.ENDED",0);y("YT.PlayerState.PLAYING",1);y("YT.PlayerState.PAUSED",2);y("YT.PlayerState.BUFFERING",3);y("YT.PlayerState.CUED",5);y("YT.get",function(a){return S[a]}); y("YT.scan",Dc);y("YT.subscribe",function(a,b,c){$b.subscribe(a,b,c);Cc[a]=!0;for(var d in S)Rc(S[d],a)}); y("YT.unsubscribe",function(a,b,c){Zb(a,b,c)}); y("YT.Player",Y);y("YT.Thumbnail",Z);X.prototype.destroy=X.prototype.destroy;X.prototype.setSize=X.prototype.setSize;X.prototype.getIframe=X.prototype.N;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=Ec("player",a);A(a,Yc)}); l.push(function(){var a=Ec("thumbnail");A(a,Zc)}); "undefined"!=typeof YTConfig&&YTConfig.parsetags&&"onload"!=YTConfig.parsetags||Dc();var $c=q("onYTReady");$c&&$c();var ad=q("onYouTubeIframeAPIReady");ad&&ad();var bd=q("onYouTubePlayerAPIReady");bd&&bd();}).call(this);