(function(){'use strict';var p;function aa(a){var b=0;return function(){return b>>0)+"_",e=0;return b}); u("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c>>0),ua=0;function va(a,b,c){return a.call.apply(a.bind,arguments)} function wa(a,b,c){if(!a)throw Error();if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}} function G(a,b,c){G=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?va:wa;return G.apply(null,arguments)} function H(a,b){a=a.split(".");var c=E;a[0]in c||typeof c.execScript=="undefined"||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||b===void 0?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b} function xa(a,b){function c(){} c.prototype=b.prototype;a.I=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Y=function(d,e,k){for(var f=Array(arguments.length-2),g=2;g=0&&Array.prototype.splice.call(a,b,1)} function Aa(a){return Array.prototype.concat.apply([],arguments)} function Ba(a){var b=a.length;if(b>0){for(var c=Array(b),d=0;d0){this.h--;var a=this.g;this.g=a.next;a.next=null}else a=this.i();return a};var Da,J;a:{for(var Ea=["CLOSURE_FLAGS"],K=E,Fa=0;Fa/g,Ka=/"/g,La=/'/g,Ma=/\x00/g,Na=/[\x00&<>"']/;function Oa(){var a=E.navigator;return a&&(a=a.userAgent)?a:""} var L,Pa=E.navigator;L=Pa?Pa.userAgentData||null:null;function Qa(){return Da?L?L.brands.some(function(a){return(a=a.brand)&&a.indexOf("Chromium")!=-1}):!1:!1} function M(a){return Oa().indexOf(a)!=-1} ;function Ra(){return Da?!!L&&L.brands.length>0:!1} function Sa(a){var b={};a.forEach(function(c){b[c[0]]=c[1]}); return function(c){return b[c.find(function(d){return d in b})]||""}} function Ta(){for(var a=Oa(),b=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g"),c=[],d;d=b.exec(a);)c.push([d[1],d[2],d[3]||void 0]);a=Sa(c);return(Ra()?Qa():(M("Chrome")||M("CriOS"))&&(Ra()||!M("Edge"))||M("Silk"))?a(["Chrome","CriOS","HeadlessChrome"]):""} function Ua(){if(Ra()){var a=L.brands.find(function(b){return b.brand==="Chromium"}); if(!a||!a.version)return NaN;a=a.version.split(".")}else{a=Ta();if(a==="")return NaN;a=a.split(".")}return a.length===0?NaN:Number(a[0])} ;/* SPDX-License-Identifier: Apache-2.0 */ function N(a){this.g=a} N.prototype.toString=function(){return this.g}; var Va=new N("about:invalid#zClosurez");function Wa(a){this.S=a} function O(a){return new Wa(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})} var Xa=[O("data"),O("http"),O("https"),O("mailto"),O("ftp"),new Wa(function(a){return/^[^:]*([/?#]|$)/.test(a)})]; function Ya(a){var b=b===void 0?Xa:b;a:if(b=b===void 0?Xa:b,!(a instanceof N)){for(var c=0;c")!=-1&&(a=a.replace(Ja,">")),a.indexOf('"')!=-1&&(a=a.replace(Ka,""")),a.indexOf("'")!=-1&&(a=a.replace(La,"'")),a.indexOf("\x00")!=-1&&(a=a.replace(Ma,"�")));return a} ;function db(){var a=document;var b="IFRAME";a.contentType==="application/xhtml+xml"&&(b=b.toLowerCase());return a.createElement(b)} ;var eb;function fb(){var a=E.MessageChannel;typeof a==="undefined"&&typeof window!=="undefined"&&window.postMessage&&window.addEventListener&&!M("Presto")&&(a=function(){var e=db();e.style.display="none";document.documentElement.appendChild(e);var k=e.contentWindow;e=k.document;e.open();e.close();var f="callImmediate"+Math.random(),g=k.location.protocol=="file:"?"*":k.location.protocol+"//"+k.location.host;e=G(function(h){if((g=="*"||h.origin==g)&&h.data==f)this.port1.onmessage()},this); k.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){k.postMessage(f,g)}}}); if(typeof a!=="undefined"){var b=new a,c={},d=c;b.port1.onmessage=function(){if(c.next!==void 0){c=c.next;var e=c.F;c.F=null;e()}}; return function(e){d.next={F:e};d=d.next;b.port2.postMessage(0)}}return function(e){E.setTimeout(e,0)}} ;function gb(a){E.setTimeout(function(){throw a;},0)} ;function hb(){this.h=this.g=null} hb.prototype.add=function(a,b){var c=ib.get();c.set(a,b);this.h?this.h.next=c:this.g=c;this.h=c}; hb.prototype.remove=function(){var a=null;this.g&&(a=this.g,this.g=this.g.next,this.g||(this.h=null),a.next=null);return a}; var ib=new Ca(function(){return new jb},function(a){return a.reset()}); function jb(){this.next=this.scope=this.g=null} jb.prototype.set=function(a,b){this.g=a;this.scope=b;this.next=null}; jb.prototype.reset=function(){this.next=this.scope=this.g=null};var S,kb=!1,lb=new hb;function mb(a){S||nb();kb||(S(),kb=!0);lb.add(a,void 0)} function nb(){if(E.Promise&&E.Promise.resolve){var a=E.Promise.resolve(void 0);S=function(){a.then(ob)}}else S=function(){var b=ob; typeof E.setImmediate!=="function"||E.Window&&E.Window.prototype&&E.Window.prototype.setImmediate==E.setImmediate?(eb||(eb=fb()),eb(b)):E.setImmediate(b)}} function ob(){for(var a;a=lb.remove();){try{a.g.call(a.scope)}catch(c){gb(c)}var b=ib;b.j(a);b.h<100&&(b.h++,a.next=b.g,b.g=a)}kb=!1} ;function T(){this.i=this.i;this.j=this.j} T.prototype.i=!1;T.prototype.dispose=function(){this.i||(this.i=!0,this.C())}; T.prototype[Symbol.dispose]=function(){this.dispose()}; T.prototype.addOnDisposeCallback=function(a,b){this.i?b!==void 0?a.call(b):a():(this.j||(this.j=[]),this.j.push(b!==void 0?G(a,b):a))}; T.prototype.C=function(){if(this.j)for(;this.j.length;)this.j.shift()()};function U(a){T.call(this);this.s=1;this.l=[];this.m=0;this.g=[];this.h={};this.u=!!a} xa(U,T);p=U.prototype;p.subscribe=function(a,b,c){var d=this.h[a];d||(d=this.h[a]=[]);var e=this.s;this.g[e]=a;this.g[e+1]=b;this.g[e+2]=c;this.s=e+3;d.push(e);return e}; function pb(a,b,c){var d=V;if(a=d.h[a]){var e=d.g;(a=a.find(function(k){return e[k+1]==b&&e[k+2]==c}))&&d.D(a)}} p.D=function(a){var b=this.g[a];if(b){var c=this.h[b];this.m!=0?(this.l.push(a),this.g[a+1]=function(){}):(c&&za(c,a),delete this.g[a],delete this.g[a+1],delete this.g[a+2])}return!!b}; p.H=function(a,b){var c=this.h[a];if(c){for(var d=Array(arguments.length-1),e=1,k=arguments.length;e0&&this.m==0)for(;c=this.l.pop();)this.D(c)}}return e!=0}return!1}; function qb(a,b,c){mb(function(){a.apply(b,c)})} p.clear=function(a){if(a){var b=this.h[a];b&&(b.forEach(this.D,this),delete this.h[a])}else this.g.length=0,this.h={}}; p.C=function(){U.I.C.call(this);this.clear();this.l.length=0};var rb=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function sb(a){var b=a.match(rb);a=b[1];var c=b[2],d=b[3];b=b[4];var e="";a&&(e+=a+":");d&&(e+="//",c&&(e+=c+"@"),e+=d,b&&(e+=":"+b));return e} function tb(a,b,c){if(Array.isArray(b))for(var d=0;d=119;return b.call(a,c&&!!navigator.permissions&&!!navigator.permissions.query&&"requestStorageAccessFor"in document)})} function zb(){var a=new xb,b=["https://www.youtube.com"];b=b===void 0?wb:b;qa(function(c){switch(c.g){case 1:return ka(c,yb(),2);case 2:if(!c.m){c.g=3;break}return ka(c,Promise.all(b.map(function(d){var e;return qa(function(k){if(k.g==1)return k.l=2,ka(k,navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:d}),4);k.g!=2?(e=k.m,e.state==="prompt"&&a.g.push(d),k.g=0,k.l=0):(k.l=0,k.i=null,k.g=0)})})),4); case 4:a.g.length>0&&window.addEventListener("click",a.h);case 3:return c.return()}})} ;var W={},Ab=[],V=new U,Bb={};function Cb(){for(var a=v(Ab),b=a.next();!b.done;b=a.next())b=b.value,b()} function Db(a,b){return a.tagName.toLowerCase().substring(0,3)==="yt:"?a.getAttribute(b):a.dataset?a.dataset[b]:a.getAttribute("data-"+b)} function Eb(a){V.H.apply(V,arguments)} ;function Fb(a){this.g=a||{};a=[this.g,window.YTConfig||{}];for(var b=0;b=0&&ml)n=l;m+=g.length+1;h=decodeURIComponent(h.slice(m,n!==-1?n:0).replace(/\+/g," "))}h!==null&&(f[g]=h)}); Nb.yt_embedsEnableIframeApiSendFullEmbedUrl&&(window.location.href&&(f.forigin=window.location.href),window.document.referrer&&(f.gporigin=window.document.referrer));a=""+X(a.h,"host")+("/embed/"+X(a.h,"videoId"))+"?"+ub(f);Nb.yt_embedsEnableIframeSrcWithIntent?(bb(c,Ya(a)),c.sandbox.add("allow-presentation","allow-top-navigation")):c.src=a;return c} p.G=function(){this.g&&this.g.contentWindow?this.sendMessage({event:"listening"}):clearInterval(this.i)}; function Pb(a){Gb(a.h,a,a.id);a.i=setInterval(a.G.bind(a),250);a.g&&(a.u=function(){clearInterval(a.i);a.i=setInterval(a.G.bind(a),250)},a.g.addEventListener("load",a.u))} function Rb(a,b){a.B[b]||(a.B[b]=!0,Sb(a,"addEventListener",[b]))} p.sendMessage=function(a){a.id=this.id;a.channel="widget";a=JSON.stringify(a);var b=[sb(this.g.src||"").replace("http:","https:")];if(this.g.contentWindow)for(var c=0;c0||console&&console.warn&&console.warn(d);else throw d;}else console&&console.warn&&console.warn("The YouTube player is not attached to the DOM. API calls should be made after the onReady event. See more: https://developers.google.com/youtube/iframe_api_reference#Events")}; function Tb(a){var b=X(a.h,"playerVars");if(b){var c={},d;for(d in b)c[d]=b[d];b=c}else b={};window!==window.top&&document.referrer&&(b.widget_referrer=document.referrer.substring(0,256));if(a=X(a.h,"embedConfig")){if(F(a))try{a=JSON.stringify(a)}catch(e){console.error("Invalid embed config JSON",e)}b.embed_config=a}return b} function Jb(a,b){if(F(b)){for(var c in b)b.hasOwnProperty(c)&&(a.playerInfo[c]=b[c]);a.playerInfo.hasOwnProperty("videoData")&&(b=a.playerInfo.videoData,b.hasOwnProperty("title")&&b.title?(b=b.title,b!==a.videoTitle&&(a.videoTitle=b,a.g.setAttribute("title",b))):(a.videoTitle="",a.g.setAttribute("title","YouTube "+X(a.h,"title"))))}} function Kb(a,b){I(b,function(c){this[c]||(c==="getCurrentTime"?this[c]=function(){var d=this.playerInfo.currentTime;if(this.playerInfo.playerState===1){var e=(Date.now()/1E3-this.playerInfo.currentTimeLastUpdated_)*this.playerInfo.playbackRate;e>0&&(d+=Math.min(e,1))}return d}:Lb(c)?this[c]=function(){this.playerInfo={}; this.v={};Sb(this,c,arguments);return this}:Mb(c)?this[c]=function(){var d=0; c.search("get")===0?d=3:c.search("is")===0&&(d=2);return this.playerInfo[c.charAt(d).toLowerCase()+c.substr(d+1)]}:this[c]=function(){Sb(this,c,arguments); return this})},a)} p.getVideoEmbedCode=function(){var a=X(this.h,"host")+("/embed/"+X(this.h,"videoId")),b=Number(X(this.h,"width")),c=Number(X(this.h,"height"));if(isNaN(b)||isNaN(c))throw Error("Invalid width or height property");b=Math.floor(b);c=Math.floor(c);var d=this.videoTitle;a=cb(a);d=cb(d!=null?d:"YouTube video player");return'')}; p.getOptions=function(a){return this.v.namespaces?a?this.v[a]?this.v[a].options||[]:[]:this.v.namespaces||[]:[]}; p.getOption=function(a,b){if(this.v.namespaces&&a&&b&&this.v[a])return this.v[a][b]}; function Ub(a){if(a.tagName.toLowerCase()!=="iframe"){var b=Db(a,"videoid");b&&(b={videoId:b,width:Db(a,"width"),height:Db(a,"height")},new Z(a,b))}} ;H("YT.PlayerState.UNSTARTED",-1);H("YT.PlayerState.ENDED",0);H("YT.PlayerState.PLAYING",1);H("YT.PlayerState.PAUSED",2);H("YT.PlayerState.BUFFERING",3);H("YT.PlayerState.CUED",5);H("YT.get",function(a){return W[a]}); H("YT.scan",Cb);H("YT.subscribe",function(a,b,c){V.subscribe(a,b,c);Bb[a]=!0;for(var d in W)W.hasOwnProperty(d)&&Qb(W[d],a)}); H("YT.unsubscribe",function(a,b,c){pb(a,b,c)}); H("YT.Player",Z);Z.prototype.destroy=Z.prototype.destroy;Z.prototype.setSize=Z.prototype.setSize;Z.prototype.getIframe=Z.prototype.getIframe;Z.prototype.addEventListener=Z.prototype.addEventListener;Z.prototype.getVideoEmbedCode=Z.prototype.getVideoEmbedCode;Z.prototype.getOptions=Z.prototype.getOptions;Z.prototype.getOption=Z.prototype.getOption; Ab.push(function(a){var b=a;b||(b=document);a=Ba(b.getElementsByTagName("yt:player"));var c=b||document;if(c.querySelectorAll&&c.querySelector)b=c.querySelectorAll(".yt-player");else{var d;c=document;b=b||c;if(b.querySelectorAll&&b.querySelector)b=b.querySelectorAll(".yt-player");else if(b.getElementsByClassName){var e=b.getElementsByClassName("yt-player");b=e}else{e=b.getElementsByTagName("*");var k={};for(c=d=0;b=e[c];c++){var f=b.className,g;if(g=typeof f.split=="function")g=ya(f.split(/\s+/), "yt-player")>=0;g&&(k[d++]=b)}k.length=d;b=k}}b=Ba(b);I(Aa(a,b),Ub)}); typeof YTConfig!=="undefined"&&YTConfig.parsetags&&YTConfig.parsetags!=="onload"||Cb();var Vb=E.onYTReady;Vb&&Vb();var Wb=E.onYouTubeIframeAPIReady;Wb&&Wb();var Xb=E.onYouTubePlayerAPIReady;Xb&&Xb();}).call(this);