(function(){'use strict';var n,aa=typeof Object.create=="function"?Object.create:function(a){function b(){} b.prototype=a;return new b},p=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a; a[b]=c.value;return a}; function ba(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b>>0)+"_",h=0;return b}); r("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");p(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return ia(fa(this))}}); return a}); function ia(a){var b=(typeof Iterator!="undefined"&&Iterator.prototype&&!Iterator.prototype.next?Iterator.prototype:null)||Object.prototype,c=aa(b);c.next=a;b[Symbol.iterator]||(c[Symbol.iterator]=function(){return this}); return c} r("Promise",function(a){function b(f){this.i=0;this.j=void 0;this.h=[];this.A=!1;var e=this.l();try{f(e.resolve,e.reject)}catch(g){e.reject(g)}} function c(){this.h=null} function d(f){return f instanceof b?f:new b(function(e){e(f)})} if(a)return a;c.prototype.i=function(f){if(this.h==null){this.h=[];var e=this;this.j(function(){e.m()})}this.h.push(f)}; var h=q.setTimeout;c.prototype.j=function(f){h(f,0)}; c.prototype.m=function(){for(;this.h&&this.h.length;){var f=this.h;this.h=[];for(var e=0;e>>0),la=0;function D(a,b){a=a.split(".");for(var c=A,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 ma(a,b){function c(){} c.prototype=b.prototype;a.I=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.X=function(d,h,k){for(var f=Array(arguments.length-2),e=2;e=0&&Array.prototype.splice.call(a,b,1)} function pa(a){return Array.prototype.concat.apply([],arguments)} function qa(a){var b=a.length;if(b>0){for(var c=Array(b),d=0;d0){this.i--;var a=this.h;this.h=a.next;a.next=null}else a=this.j();return a};function sa(a){A.setTimeout(function(){throw a;},0)} ;function F(){this.i=this.h=null} F.prototype.add=function(a,b){var c=ta.get();c.set(a,b);this.i?this.i.next=c:this.h=c;this.i=c}; F.prototype.remove=function(){var a=null;this.h&&(a=this.h,this.h=this.h.next,this.h||(this.i=null),a.next=null);return a}; var ta=new ra(function(){return new G},function(a){return a.reset()}); function G(){this.next=this.scope=this.h=null} G.prototype.set=function(a,b){this.h=a;this.scope=b;this.next=null}; G.prototype.reset=function(){this.next=this.scope=this.h=null};var H,I=!1,ua=new F;function va(a){H||wa();I||(H(),I=!0);ua.add(a,void 0)} function wa(){var a=Promise.resolve(void 0);H=function(){a.then(xa)}} function xa(){for(var a;a=ua.remove();){try{a.h.call(a.scope)}catch(c){sa(c)}var b=ta;b.l(a);b.i<100&&(b.i++,a.next=b.h,b.h=a)}I=!1} ;function J(){this.j=this.j;this.l=this.l} J.prototype.j=!1;J.prototype.dispose=function(){this.j||(this.j=!0,this.F())}; J.prototype[Symbol.dispose]=function(){this.dispose()}; J.prototype.addOnDisposeCallback=function(a,b){this.j?b!==void 0?a.call(b):a():(this.l||(this.l=[]),b&&(a=a.bind(b)),this.l.push(a))}; J.prototype.F=function(){if(this.l)for(;this.l.length;)this.l.shift()()};function ya(a){var b={},c;for(c in a)b[c]=a[c];return b} ;var za=/&/g,Aa=//g,Ca=/"/g,Da=/'/g,Ea=/\x00/g,Fa=/[\x00&<>"']/;/* Copyright Google LLC SPDX-License-Identifier: Apache-2.0 */ function K(a){this.h=a} K.prototype.toString=function(){return this.h}; var Ga=new K("about:invalid#zClosurez");function L(a){this.R=a} function M(a){return new L(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})} var Ha=[M("data"),M("http"),M("https"),M("mailto"),M("ftp"),new L(function(a){return/^[^:]*([/?#]|$)/.test(a)})],Ia=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var Ja={W:0,U:1,V:2,0:"FORMATTED_HTML_CONTENT",1:"EMBEDDED_INTERNAL_CONTENT",2:"EMBEDDED_TRUSTED_EXTERNAL_CONTENT"};function N(a,b){b=Error.call(this,a+" cannot be used with intent "+Ja[b]);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.type=a;this.name="TypeCannotBeUsedWithIframeIntentError"} var O=Error;N.prototype=aa(O.prototype);N.prototype.constructor=N;if(ea)ea(N,O);else for(var R in O)if(R!="prototype")if(Object.defineProperties){var Ka=Object.getOwnPropertyDescriptor(O,R);Ka&&Object.defineProperty(N,R,Ka)}else N[R]=O[R];N.I=O.prototype;function La(a){Fa.test(a)&&(a.indexOf("&")!=-1&&(a=a.replace(za,"&")),a.indexOf("<")!=-1&&(a=a.replace(Aa,"<")),a.indexOf(">")!=-1&&(a=a.replace(Ba,">")),a.indexOf('"')!=-1&&(a=a.replace(Ca,""")),a.indexOf("'")!=-1&&(a=a.replace(Da,"'")),a.indexOf("\x00")!=-1&&(a=a.replace(Ea,"�")));return a} ;function S(a){J.call(this);this.A=1;this.m=[];this.u=0;this.h=[];this.i={};this.B=!!a} ma(S,J);n=S.prototype;n.subscribe=function(a,b,c){var d=this.i[a];d||(d=this.i[a]=[]);var h=this.A;this.h[h]=a;this.h[h+1]=b;this.h[h+2]=c;this.A=h+3;d.push(h);return h}; n.unsubscribe=function(a,b,c){if(a=this.i[a]){var d=this.h;if(a=a.find(function(h){return d[h+1]==b&&d[h+2]==c}))return this.G(a)}return!1}; n.G=function(a){var b=this.h[a];if(b){var c=this.i[b];this.u!=0?(this.m.push(a),this.h[a+1]=function(){}):(c&&oa(c,a),delete this.h[a],delete this.h[a+1],delete this.h[a+2])}return!!b}; n.H=function(a,b){var c=this.i[a];if(c){var d=Array(arguments.length-1),h=arguments.length,k;for(k=1;k0&&this.u==0)for(;c=this.m.pop();)this.G(c)}}return k!=0}return!1}; function Ma(a,b,c){va(function(){a.apply(b,c)})} n.clear=function(a){if(a){var b=this.i[a];b&&(b.forEach(this.G,this),delete this.i[a])}else this.h.length=0,this.i={}}; n.F=function(){S.I.F.call(this);this.clear();this.m.length=0};var Na=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function Oa(a){var b=a.match(Na);a=b[1];var c=b[2],d=b[3];b=b[4];var h="";a&&(h+=a+":");d&&(h+="//",c&&(h+=c+"@"),h+=d,b&&(h+=":"+b));return h} function Pa(a,b,c){if(Array.isArray(b))for(var d=0;d0||console&&console.warn&&console.warn(c);else throw c;}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 Ya(a){if((a=String(Y(a,"videoId")))&&(a.length!==11||!a.match(/^[a-zA-Z0-9\-_]+$/)))throw Error("Invalid video id");return"/embed/"+a} function Xa(a,b){var c=Y(a,"playerVars");c?c=ya(c):c={};window!==window.top&&document.referrer&&(c.widget_referrer=document.referrer.substring(0,256));var d=Y(a,"embedConfig");if(d){if(B(d))try{d=JSON.stringify(d)}catch(h){console.error("Invalid embed config JSON",h)}c.embed_config=d}c.enablejsapi=window.postMessage?1:0;window.location.host&&(c.origin=window.location.protocol+"//"+window.location.host);c.widgetid=a.id;window.location.href&&E(["debugjs","debugcss"],function(h){var k=window.location.href; var f=k.search(Qa);b:{var e=0;for(var g=h.length;(e=k.indexOf(h,e))>=0&&ef)g=f;e+=h.length+1;k=decodeURIComponent(k.slice(e,g!==-1?g:0).replace(/\+/g," "))}k!==null&&(c[h]=k)}); window.location.href&&(c.forigin=window.location.href);a=window.location.ancestorOrigins;c.aoriginsup=a===void 0?0:1;a&&a.length>0&&(c.aorigins=Array.from(a).join(","));window.document.referrer&&(c.gporigin=window.document.referrer);b&&(c.vf=eb(b));return c} function fb(a,b){if(B(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.h.setAttribute("title",b))):(a.videoTitle="",a.h.setAttribute("title","YouTube "+Y(a,"title"))))}} function gb(a,b){b=x(b);var c=b.next();try{for(var d={};!c.done;d={o:void 0},c=b.next())d.o=c.value,a[d.o]||(d.o==="getCurrentTime"?a[d.o]=function(){var h=this.playerInfo.currentTime;if(this.playerInfo.playerState===1){var k=(Date.now()/1E3-this.playerInfo.currentTimeLastUpdated_)*this.playerInfo.playbackRate;k>0&&(h+=Math.min(k,1))}return h}:Ua(d.o)?a[d.o]=function(h){return function(){this.playerInfo={}; this.v={};bb(this,h.o,arguments);return this}}(d):Va(d.o)?a[d.o]=function(h){return function(){var k=h.o,f=0; k.search("get")===0?f=3:k.search("is")===0&&(f=2);return this.playerInfo[k.charAt(f).toLowerCase()+k.substring(f+1)]}}(d):a[d.o]=function(h){return function(){bb(this,h.o,arguments); return this}}(d))}finally{ha(b,c)}} n.getVideoEmbedCode=function(){var a=""+Y(this,"host")+Ya(this),b=Number(Y(this,"width")),c=Number(Y(this,"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=La(a);d=La(d!=null?d:"YouTube video player");return'')}; n.getOptions=function(a){return this.v.namespaces?a?this.v[a]?this.v[a].options||[]:[]:this.v.namespaces||[]:[]}; n.getOption=function(a,b){if(this.v.namespaces&&a&&b&&this.v[a])return this.v[a][b]}; function Y(a,b){a=[a.options,window.YTConfig||{}];for(var c=0;c