(function(){/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ 'use strict';var m;function aa(a){var b=0;return function(){return b>>0)+"_",e=0;return b}); t("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=e}}); t("Array.prototype.find",function(a){return a?a:function(b,c){a:{var d=this;d instanceof String&&(d=String(d));for(var e=d.length,f=0;f=f}}); t("Object.setPrototypeOf",function(a){return a||ma}); var Ca="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;cc&&(c=Math.max(c+e,0));c>>0),Ja=0;function Ka(a,b,c){return a.call.apply(a.bind,arguments)} function La(a,b,c){if(!a)throw Error();if(2")&&(a=a.replace(ib,">"));-1!=a.indexOf('"')&&(a=a.replace(jb,"""));-1!=a.indexOf("'")&&(a=a.replace(kb,"'"));-1!=a.indexOf("\x00")&&(a=a.replace(lb,"�"))}return a} var gb=/&/g,hb=//g,jb=/"/g,kb=/'/g,lb=/\x00/g,mb=/[\x00&<>"']/;function nb(a,b){this.h=b===ob?a:""} m=nb.prototype;m.aa=!0;m.Y=function(){return this.h.toString()}; m.oa=!0;m.na=function(){return 1}; m.toString=function(){return this.h.toString()}; var pb=/^(?:audio\/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)|font\/\w+|image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|video\/(?:mpeg|mp4|ogg|webm|quicktime|x-matroska))(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i,qb=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,rb=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,ob={},sb=new nb("about:invalid#zClosurez",ob);var tb;a:{var ub=B.navigator;if(ub){var vb=ub.userAgent;if(vb){tb=vb;break a}}tb=""}function I(a){return-1!=tb.indexOf(a)} ;function wb(a,b,c){this.h=c===xb?a:"";this.i=b} m=wb.prototype;m.oa=!0;m.na=function(){return this.i}; m.aa=!0;m.Y=function(){return this.h.toString()}; m.toString=function(){return this.h.toString()}; var xb={};function yb(a,b){if(void 0===db){var c=null;var d=B.trustedTypes;if(d&&d.createPolicy){try{c=d.createPolicy("goog#html",{createHTML:Na,createScript:Na,createScriptURL:Na})}catch(e){B.console&&B.console.error(e.message)}db=c}else db=c}a=(c=db)?c.createHTML(a):a;return new wb(a,b,xb)} ;function zb(a){return a=fb(a,void 0)} ;var Ab=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function Bb(a){return a?decodeURI(a):a} function Cb(a){return Bb(a.match(Ab)[3]||null)} function Db(a){var b=a.match(Ab);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 Eb(a,b,c){if(Array.isArray(b))for(var d=0;dd)return null;e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return decodeURIComponent(a.substr(d,e-d).replace(/\+/g," "))} ;function J(a,b){var c=void 0;return new (c||(c=Promise))(function(d,e){function f(k){try{h(b.next(k))}catch(l){e(l)}} function g(k){try{h(b["throw"](k))}catch(l){e(l)}} function h(k){k.done?d(k.value):(new c(function(l){l(k.value)})).then(f,g)} h((b=b.apply(a,void 0)).next())})} ;function Ib(){return I("iPhone")&&!I("iPod")&&!I("iPad")} ;function Jb(a){Jb[" "](a);return a} Jb[" "]=Ea;var Kb=I("Opera"),Lb=I("Trident")||I("MSIE"),Mb=I("Edge"),Nb=I("Gecko")&&!(-1!=tb.toLowerCase().indexOf("webkit")&&!I("Edge"))&&!(I("Trident")||I("MSIE"))&&!I("Edge"),Ob=-1!=tb.toLowerCase().indexOf("webkit")&&!I("Edge");function Pb(){var a=B.document;return a?a.documentMode:void 0} var Qb;a:{var Rb="",Sb=function(){var a=tb;if(Nb)return/rv:([^\);]+)(\)|;)/.exec(a);if(Mb)return/Edge\/([\d\.]+)/.exec(a);if(Lb)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(Ob)return/WebKit\/(\S+)/.exec(a);if(Kb)return/(?:Version)[ \/]?(\S+)/.exec(a)}(); Sb&&(Rb=Sb?Sb[1]:"");if(Lb){var Tb=Pb();if(null!=Tb&&Tb>parseFloat(Rb)){Qb=String(Tb);break a}}Qb=Rb}var Ub=Qb,Vb;if(B.document&&Lb){var Wb=Pb();Vb=Wb?Wb:parseInt(Ub,10)||void 0}else Vb=void 0;var Xb=Vb;var Yb=Ib()||I("iPod"),Zb=I("iPad"),$b=I("Safari")&&!((I("Chrome")||I("CriOS"))&&!I("Edge")||I("Coast")||I("Opera")||I("Edge")||I("Edg/")||I("OPR")||I("Firefox")||I("FxiOS")||I("Silk")||I("Android"))&&!(Ib()||I("iPad")||I("iPod"));var ac={},bc=null;var cc={ib:{value:!0,configurable:!0}};var dc=Object,ec=dc.freeze,fc=[];Array.isArray(fc)&&!Object.isFrozen(fc)&&Object.defineProperties(fc,cc);ec.call(dc,fc);var K=window;var gc=!Lb||9<=Number(Xb);function hc(a,b){this.width=a;this.height=b} m=hc.prototype;m.clone=function(){return new hc(this.width,this.height)}; m.aspectRatio=function(){return this.width/this.height}; m.isEmpty=function(){return!(this.width*this.height)}; m.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; m.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; m.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function ic(a,b){Xa(b,function(c,d){c&&"object"==typeof c&&c.aa&&(c=c.Y());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:jc.hasOwnProperty(d)?a.setAttribute(jc[d],c):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,c):a[d]=c})} var jc={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"}; function kc(a,b,c){var d=arguments,e=document,f=String(d[0]),g=d[1];if(!gc&&g&&(g.name||g.type)){f=["<",f];g.name&&f.push(' name="',zb(g.name),'"');if(g.type){f.push(' type="',zb(g.type),'"');var h={};cb(h,g);delete h.type;g=h}f.push(">");f=f.join("")}f=lc(e,f);g&&("string"===typeof g?f.className=g:Array.isArray(g)?f.className=g.join(" "):ic(f,g));2q;q+=4)r[q/4]=p[q]<<24|p[q+1]<<16|p[q+2]<<8|p[q+3];for(q=16;80>q;q++)p=r[q-3]^r[q-8]^r[q-14]^r[q-16],r[q]=(p<<1|p>>>31)&4294967295;p=e[0];var v=e[1],z=e[2],x=e[3],Q=e[4];for(q=0;80>q;q++){if(40>q)if(20>q){var R=x^v&(z^x);var E=1518500249}else R=v^z^x,E=1859775393;else 60>q?(R=v&z|x&(v|z),E=2400959708):(R=v^z^x,E=3395469782);R=((p<<5|p>>>27)&4294967295)+R+Q+E+r[q]&4294967295;Q=x;x=z;z=(v<<30|v>>>2)&4294967295;v=p;p=R}e[0]=e[0]+p&4294967295;e[1]=e[1]+v&4294967295;e[2]= e[2]+z&4294967295;e[3]=e[3]+x&4294967295;e[4]=e[4]+Q&4294967295} function c(p,r){if("string"===typeof p){p=unescape(encodeURIComponent(p));for(var q=[],v=0,z=p.length;vl?c(h,56-l):c(h,64-(l-56));for(var q=63;56<=q;q--)f[q]=r&255,r>>>=8;b(f);for(q=r=0;5>q;q++)for(var v=24;0<=v;v-=8)p[r++]=e[q]>>v&255;return p} for(var e=[],f=[],g=[],h=[128],k=1;64>k;++k)h[k]=0;var l,n;a();return{reset:a,update:c,digest:d,Ba:function(){for(var p=d(),r="",q=0;qh?"":0==h?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+1E3*h)).toUTCString())+(d?";secure":"")+(null!=e?";samesite="+e:"")}; m.get=function(a,b){for(var c=a+"=",d=(this.h.cookie||"").split(";"),e=0,f;ea&&0===a%1&&this.data_[a]!=b&&(this.data_[a]=b,this.h=-1)}; Fc.prototype.get=function(a){return!!this.data_[a]}; function Gc(a){-1==a.h&&(a.h=Sa(a.data_,function(b,c,d){return c?b+Math.pow(2,d):b},0)); return a.h} ;function Hc(a,b){this.j=a;this.l=b;this.i=0;this.h=null} Hc.prototype.get=function(){if(0a.i&&(a.i++,b.next=a.h,a.h=b)} ;var Jc; function Kc(){var a=B.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!I("Presto")&&(a=function(){var e=lc(document,"IFRAME");e.style.display="none";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.close();var g="callImmediate"+Math.random(),h="file:"==f.location.protocol?"*":f.location.protocol+"//"+f.location.host;e=Ma(function(k){if(("*"==h||k.origin==h)&&k.data==g)this.port1.onmessage()},this); f.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(g,h)}}}); if("undefined"!==typeof a&&!I("Trident")&&!I("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.ka;c.ka=null;e()}}; return function(e){d.next={ka:e};d=d.next;b.port2.postMessage(0)}}return function(e){B.setTimeout(e,0)}} ;function Lc(a){B.setTimeout(function(){throw a;},0)} ;function Mc(){this.i=this.h=null} Mc.prototype.add=function(a,b){var c=Nc.get();c.set(a,b);this.i?this.i.next=c:this.h=c;this.i=c}; Mc.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 Nc=new Hc(function(){return new Oc},function(a){return a.reset()}); function Oc(){this.next=this.scope=this.h=null} Oc.prototype.set=function(a,b){this.h=a;this.scope=b;this.next=null}; Oc.prototype.reset=function(){this.next=this.scope=this.h=null};function Pc(a,b){Qc||Rc();Sc||(Qc(),Sc=!0);Tc.add(a,b)} var Qc;function Rc(){if(B.Promise&&B.Promise.resolve){var a=B.Promise.resolve(void 0);Qc=function(){a.then(Uc)}}else Qc=function(){var b=Uc; "function"!==typeof B.setImmediate||B.Window&&B.Window.prototype&&!I("Edge")&&B.Window.prototype.setImmediate==B.setImmediate?(Jc||(Jc=Kc()),Jc(b)):B.setImmediate(b)}} var Sc=!1,Tc=new Mc;function Uc(){for(var a;a=Tc.remove();){try{a.h.call(a.scope)}catch(b){Lc(b)}Ic(Nc,a)}Sc=!1} ;function Vc(a,b){this.h=a[B.Symbol.iterator]();this.i=b;this.j=0} Vc.prototype[Symbol.iterator]=function(){return this}; Vc.prototype.next=function(){var a=this.h.next();return{value:a.done?void 0:this.i.call(void 0,a.value,this.j++),done:a.done}}; function Wc(a,b){return new Vc(a,b)} ;function Xc(){this.blockSize=-1} ;function Yc(){this.blockSize=-1;this.blockSize=64;this.h=[];this.m=[];this.o=[];this.j=[];this.j[0]=128;for(var a=1;ae;e++)d[e]=b.charCodeAt(c)<<24|b.charCodeAt(c+1)<<16|b.charCodeAt(c+2)<<8|b.charCodeAt(c+3),c+=4;else for(e=0;16>e;e++)d[e]=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4;for(e=16;80>e;e++){var f=d[e-3]^d[e-8]^d[e-14]^d[e-16];d[e]=(f<<1|f>>>31)&4294967295}b=a.h[0];c=a.h[1];var g=a.h[2],h=a.h[3],k=a.h[4];for(e=0;80>e;e++){if(40>e)if(20>e){f=h^c&(g^h);var l=1518500249}else f=c^g^h,l=1859775393;else 60>e?(f=c&g|h&(c|g),l=2400959708): (f=c^g^h,l=3395469782);f=(b<<5|b>>>27)+f+k+l+d[e]&4294967295;k=h;h=g;g=(c<<30|c>>>2)&4294967295;c=b;b=f}a.h[0]=a.h[0]+b&4294967295;a.h[1]=a.h[1]+c&4294967295;a.h[2]=a.h[2]+g&4294967295;a.h[3]=a.h[3]+h&4294967295;a.h[4]=a.h[4]+k&4294967295} Yc.prototype.update=function(a,b){if(null!=a){void 0===b&&(b=a.length);for(var c=b-this.blockSize,d=0,e=this.m,f=this.i;dthis.i?this.update(this.j,56-this.i):this.update(this.j,this.blockSize-(this.i-56));for(var c=this.blockSize-1;56<=c;c--)this.m[c]=b&255,b/=256;Zc(this,this.m);for(c=b=0;5>c;c++)for(var d=24;0<=d;d-=8)a[b]=this.h[c]>>d&255,++b;return a};function $c(a){var b=C("window.location.href");null==a&&(a='Unknown Error of type "null/undefined"');if("string"===typeof a)return{message:a,name:"Unknown error",lineNumber:"Not available",fileName:b,stack:"Not available"};var c=!1;try{var d=a.lineNumber||a.line||"Not available"}catch(g){d="Not available",c=!0}try{var e=a.fileName||a.filename||a.sourceURL||B.$googDebugFname||b}catch(g){e="Not available",c=!0}b=ad(a);if(!(!c&&a.lineNumber&&a.fileName&&a.stack&&a.message&&a.name)){c=a.message;if(null== c){if(a.constructor&&a.constructor instanceof Function){if(a.constructor.name)c=a.constructor.name;else if(c=a.constructor,bd[c])c=bd[c];else{c=String(c);if(!bd[c]){var f=/function\s+([^\(]+)/m.exec(c);bd[c]=f?f[1]:"[Anonymous]"}c=bd[c]}c='Unknown Error of type "'+c+'"'}else c="Unknown Error of unknown type";"function"===typeof a.toString&&Object.prototype.toString!==a.toString&&(c+=": "+a.toString())}return{message:c,name:a.name||"UnknownError",lineNumber:d,fileName:e,stack:b||"Not available"}}a.stack= b;return{message:a.message,name:a.name,lineNumber:a.lineNumber,fileName:a.fileName,stack:a.stack}} function ad(a,b){b||(b={});b[cd(a)]=!0;var c=a.stack||"";(a=a.Aa)&&!b[cd(a)]&&(c+="\nCaused by: ",a.stack&&0==a.stack.indexOf(a.toString())||(c+="string"===typeof a?a:a.message+"\n"),c+=ad(a,b));return c} function cd(a){var b="";"function"===typeof a.toString&&(b=""+a);return b+a.stack} var bd={};function dd(){this.j=this.j;this.m=this.m} dd.prototype.j=!1;dd.prototype.dispose=function(){this.j||(this.j=!0,this.P())}; dd.prototype.P=function(){if(this.m)for(;this.m.length;)this.m.shift()()};var ed="StopIteration"in B?B.StopIteration:{message:"StopIteration",stack:""};function fd(){} fd.prototype.next=function(){return fd.prototype.h.call(this)}; fd.prototype.h=function(){throw ed;}; fd.prototype.C=function(){return this};function gd(a){if(a instanceof hd||a instanceof id||a instanceof jd)return a;if("function"==typeof a.next)return new hd(function(){return kd(a)}); if("function"==typeof a[Symbol.iterator])return new hd(function(){return a[Symbol.iterator]()}); if("function"==typeof a.C)return new hd(function(){return kd(a.C())}); throw Error("Not an iterator or iterable.");} function kd(a){if(!(a instanceof fd))return a;var b=!1;return{next:function(){for(var c;!b;)try{c=a.next();break}catch(d){if(d!==ed)throw d;b=!0}return{value:c,done:b}}}} function hd(a){this.h=a} hd.prototype.C=function(){return new id(this.h())}; hd.prototype[Symbol.iterator]=function(){return new jd(this.h())}; hd.prototype.i=function(){return new jd(this.h())}; function id(a){this.j=a} w(id,fd);id.prototype.h=function(){var a=this.j.next();if(a.done)throw ed;return a.value}; id.prototype.next=function(){return id.prototype.h.call(this)}; id.prototype[Symbol.iterator]=function(){return new jd(this.j)}; id.prototype.i=function(){return new jd(this.j)}; function jd(a){hd.call(this,function(){return a}); this.j=a} w(jd,hd);jd.prototype.next=function(){return this.j.next()};function ld(a,b){this.i={};this.h=[];this.j=this.size=0;var c=arguments.length;if(12*this.size&&nd(this),!0):!1}; function nd(a){if(a.size!=a.h.length){for(var b=0,c=0;b=d.h.length)throw ed;var f=d.h[b++];return a?f:d.i[f]}; e.next=e.h.bind(e);return e}; function od(a,b){return Object.prototype.hasOwnProperty.call(a,b)} ;var qd=function(){if(!B.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}}); try{B.addEventListener("test",Ea,b),B.removeEventListener("test",Ea,b)}catch(c){}return a}();function rd(a,b){this.type=a;this.h=this.target=b;this.defaultPrevented=this.j=!1} rd.prototype.stopPropagation=function(){this.j=!0}; rd.prototype.preventDefault=function(){this.defaultPrevented=!0};function sd(a,b){rd.call(this,a?a.type:"");this.relatedTarget=this.h=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.i=null;a&&this.init(a,b)} G(sd,rd);var td={2:"touch",3:"pen",4:"mouse"}; sd.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.h=b;if(b=a.relatedTarget){if(Nb){a:{try{Jb(b.nodeName);var e=!0;break a}catch(f){}e=!1}e||(b=null)}}else"mouseover"==c?b=a.fromElement:"mouseout"==c&&(b=a.toElement);this.relatedTarget=b;d?(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY|| 0):(this.clientX=void 0!==a.clientX?a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType="string"===typeof a.pointerType?a.pointerType:td[a.pointerType]||"";this.state=a.state; this.i=a;a.defaultPrevented&&sd.G.preventDefault.call(this)}; sd.prototype.stopPropagation=function(){sd.G.stopPropagation.call(this);this.i.stopPropagation?this.i.stopPropagation():this.i.cancelBubble=!0}; sd.prototype.preventDefault=function(){sd.G.preventDefault.call(this);var a=this.i;a.preventDefault?a.preventDefault():a.returnValue=!1};var ud="closure_listenable_"+(1E6*Math.random()|0);var vd=0;function wd(a,b,c,d,e){this.listener=a;this.h=null;this.src=b;this.type=c;this.capture=!!d;this.Z=e;this.key=++vd;this.R=this.V=!1} function xd(a){a.R=!0;a.listener=null;a.h=null;a.src=null;a.Z=null} ;function yd(a){this.src=a;this.listeners={};this.h=0} yd.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.listeners[f];a||(a=this.listeners[f]=[],this.h++);var g=zd(a,b,d,e);-1>>0);function Gd(a){if("function"===typeof a)return a;a[Od]||(a[Od]=function(b){return a.handleEvent(b)}); return a[Od]} ;function L(){dd.call(this);this.h=new yd(this);this.ea=this;this.s=null} G(L,dd);L.prototype[ud]=!0;L.prototype.addEventListener=function(a,b,c,d){Ed(this,a,b,c,d)}; L.prototype.removeEventListener=function(a,b,c,d){Md(this,a,b,c,d)}; function Pd(a,b){var c=a.s;if(c){var d=[];for(var e=1;c;c=c.s)d.push(c),++e}a=a.ea;c=b.type||b;"string"===typeof b?b=new rd(b,a):b instanceof rd?b.target=b.target||a:(e=b,b=new rd(c,a),cb(b,e));e=!0;if(d)for(var f=d.length-1;!b.j&&0<=f;f--){var g=b.h=d[f];e=Qd(g,c,!0,b)&&e}b.j||(g=b.h=a,e=Qd(g,c,!0,b)&&e,b.j||(e=Qd(g,c,!1,b)&&e));if(d)for(f=0;!b.j&&fDate.now())ne.prototype.remove.call(this,a);else return b}};function oe(){} ;function pe(){} G(pe,oe);pe.prototype[Symbol.iterator]=function(){return gd(this.C(!0)).i()}; pe.prototype.clear=function(){var a=Array.from(this);a=u(a);for(var b=a.next();!b.done;b=a.next())this.remove(b.value)};function qe(a){this.h=a} G(qe,pe);m=qe.prototype;m.isAvailable=function(){if(!this.h)return!1;try{return this.h.setItem("__sak","1"),this.h.removeItem("__sak"),!0}catch(a){return!1}}; m.set=function(a,b){try{this.h.setItem(a,b)}catch(c){if(0==this.h.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}}; m.get=function(a){a=this.h.getItem(a);if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a}; m.remove=function(a){this.h.removeItem(a)}; m.C=function(a){var b=0,c=this.h,d=new fd;d.h=function(){if(b>=c.length)throw ed;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}; d.next=d.h.bind(d);return d}; m.clear=function(){this.h.clear()}; m.key=function(a){return this.h.key(a)};function re(){var a=null;try{a=window.localStorage||null}catch(b){}this.h=a} G(re,qe);function se(a,b){this.i=a;this.h=null;if(Lb&&!(9<=Number(Xb))){te||(te=new ld);this.h=te.get(a);this.h||(b?this.h=document.getElementById(b):(this.h=document.createElement("userdata"),this.h.addBehavior("#default#userData"),document.body.appendChild(this.h)),te.set(a,this.h));try{this.h.load(this.i)}catch(c){this.h=null}}} G(se,pe);var ue={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},te=null;function ve(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return ue[b]})} m=se.prototype;m.isAvailable=function(){return!!this.h}; m.set=function(a,b){this.h.setAttribute(ve(a),b);we(this)}; m.get=function(a){a=this.h.getAttribute(ve(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a}; m.remove=function(a){this.h.removeAttribute(ve(a));we(this)}; m.C=function(a){var b=0,c=this.h.XMLDocument.documentElement.attributes,d=new fd;d.h=function(){if(b>=c.length)throw ed;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}; d.next=d.h.bind(d);return d}; m.clear=function(){for(var a=this.h.XMLDocument.documentElement,b=a.attributes.length;0c&&(c=b.length),f=b.indexOf("?"),0>f||f>c?(f=c,e=""):e=b.substring(f+1,c),b=[b.substr(0,f),e,b.substr(c)],c=b[1],b[1]=a?c?c+"&"+a:a:c,a=b[0]+(b[1]?"?"+b[1]:"")+b[2]):a=b;return a+d} function $e(a){if(!b)var b=window.location.href;var c=a.match(Ab)[1]||null,d=Cb(a);c&&d?(a=a.match(Ab),b=b.match(Ab),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?Cb(b)==d&&(Number(b.match(Ab)[4]||null)||null)==(Number(a.match(Ab)[4]||null)||null):!0;return a} function Ve(a){return a&&a.match(Se)?a:decodeURIComponent(a.replace(/\+/g," "))} ;function S(a){a=af(a);return"string"===typeof a&&"false"===a?!1:!!a} function bf(a,b){a=af(a);return void 0===a&&void 0!==b?b:Number(a||0)} function af(a){var b=P("EXPERIMENTS_FORCED_FLAGS",{});return void 0!==b[a]?b[a]:P("EXPERIMENT_FLAGS",{})[a]} ;function cf(){} function df(a,b){return ef(a,0,b)} function ff(a,b){return ef(a,1,b)} ;function gf(){cf.apply(this,arguments)} w(gf,cf);function ef(a,b,c){void 0!==c&&Number.isNaN(Number(c))&&(c=void 0);var d=C("yt.scheduler.instance.addJob");return d?d(a,b,c):void 0===c?(a(),NaN):Qe(a,c||0)} function hf(a){if(void 0===a||!Number.isNaN(Number(a))){var b=C("yt.scheduler.instance.cancelJob");b?b(a):window.clearTimeout(a)}} gf.prototype.start=function(){var a=C("yt.scheduler.instance.start");a&&a()};gf.h||(gf.h=new gf);function jf(a){var b=kf;a=void 0===a?C("yt.ads.biscotti.lastId_")||"":a;var c=Object,d=c.assign,e={};e.dt=tc;e.flash="0";a:{try{var f=b.h.top.location.href}catch(ua){f=2;break a}f=f?f===b.i.location.href?0:1:2}e=(e.frm=f,e);e.u_tz=-(new Date).getTimezoneOffset();var g=void 0===g?K:g;try{var h=g.history.length}catch(ua){h=0}e.u_his=h;e.u_java=!!K.navigator&&"unknown"!==typeof K.navigator.javaEnabled&&!!K.navigator.javaEnabled&&K.navigator.javaEnabled();K.screen&&(e.u_h=K.screen.height,e.u_w=K.screen.width, e.u_ah=K.screen.availHeight,e.u_aw=K.screen.availWidth,e.u_cd=K.screen.colorDepth);K.navigator&&K.navigator.plugins&&(e.u_nplug=K.navigator.plugins.length);K.navigator&&K.navigator.mimeTypes&&(e.u_nmime=K.navigator.mimeTypes.length);h=b.h;try{var k=h.screenX;var l=h.screenY}catch(ua){}try{var n=h.outerWidth;var p=h.outerHeight}catch(ua){}try{var r=h.innerWidth;var q=h.innerHeight}catch(ua){}try{var v=h.screenLeft;var z=h.screenTop}catch(ua){}try{r=h.innerWidth,q=h.innerHeight}catch(ua){}try{var x= h.screen.availWidth;var Q=h.screen.availTop}catch(ua){}k=[v,z,k,l,x,Q,n,p,r,q];l=b.h.top;try{var R=(l||window).document,E="CSS1Compat"==R.compatMode?R.documentElement:R.body;var M=(new hc(E.clientWidth,E.clientHeight)).round()}catch(ua){M=new hc(-12245933,-12245933)}R=M;M={};E=new Fc;B.SVGElement&&B.document.createElementNS&&E.set(0);l=sc();l["allow-top-navigation-by-user-activation"]&&E.set(1);l["allow-popups-to-escape-sandbox"]&&E.set(2);B.crypto&&B.crypto.subtle&&E.set(3);B.TextDecoder&&B.TextEncoder&& E.set(4);E=Gc(E);M.bc=E;M.bih=R.height;M.biw=R.width;M.brdim=k.join();b=b.i;b=(M.vis={visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[b.visibilityState||b.webkitVisibilityState||b.mozVisibilityState||""]||0,M.wgl=!!K.WebGLRenderingContext,M);c=d.call(c,e,b);c.ca_type="image";a&&(c.bid=a);return c} var kf=new function(){var a=window.document;this.h=window;this.i=a}; F("yt.ads_.signals_.getAdSignalsString",function(a){return Xe(jf(a))});var lf="XMLHttpRequest"in B?function(){return new XMLHttpRequest}:null; function mf(){if(!lf)return null;var a=lf();return"open"in a?a:null} ;var nf={Authorization:"AUTHORIZATION","X-Goog-Visitor-Id":"SANDBOXED_VISITOR_ID","X-Youtube-Chrome-Connected":"CHROME_CONNECTED_HEADER","X-YouTube-Client-Name":"INNERTUBE_CONTEXT_CLIENT_NAME","X-YouTube-Client-Version":"INNERTUBE_CONTEXT_CLIENT_VERSION","X-YouTube-Delegation-Context":"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT","X-YouTube-Device":"DEVICE","X-Youtube-Identity-Token":"ID_TOKEN","X-YouTube-Page-CL":"PAGE_CL","X-YouTube-Page-Label":"PAGE_BUILD_LABEL","X-YouTube-Variants-Checksum":"VARIANTS_CHECKSUM"}, of="app debugcss debugjs expflag force_ad_params force_ad_encrypted force_viral_ad_response_params forced_experiments innertube_snapshots innertube_goldens internalcountrycode internalipoverride absolute_experiments conditional_experiments sbb sr_bns_address".split(" ").concat(fa(["client_dev_css_mss_url","client_dev_js_mss_url","client_dev_root_url","client_dev_regex_map","expflag"])),pf=!1; function qf(a,b){b=void 0===b?{}:b;var c=$e(a),d=S("web_ajax_ignore_global_headers_if_set"),e;for(e in nf){var f=P(nf[e]);!f||!c&&Cb(a)||d&&void 0!==b[e]||(b[e]=f)}if(c||!Cb(a))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(c||!Cb(a)){try{var g=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(h){}g&&(b["X-YouTube-Time-Zone"]=g)}if(c||!Cb(a))b["X-YouTube-Ad-Signals"]=Xe(jf(void 0));return b} function rf(a){var b=window.location.search,c=Cb(a);S("debug_handle_relative_url_for_query_forward_killswitch")||c||!$e(a)||(c=document.location.hostname);var d=Bb(a.match(Ab)[5]||null);d=(c=c&&(c.endsWith("youtube.com")||c.endsWith("youtube-nocookie.com")))&&d&&d.startsWith("/api/");if(!c||d)return a;var e=Ye(b),f={};H(of,function(g){e[g]&&(f[g]=e[g])}); return Ze(a,f||{},!1)} function sf(a,b){var c=b.format||"JSON";a=tf(a,b);var d=uf(a,b),e=!1,f=vf(a,function(k){if(!e){e=!0;h&&window.clearTimeout(h);a:switch(k&&"status"in k?k.status:-1){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:var l=!0;break a;default:l=!1}var n=null,p=400<=k.status&&500>k.status,r=500<=k.status&&600>k.status;if(l||p||r)n=wf(a,c,k,b.convertToSafeHtml);if(l)a:if(k&&204==k.status)l=!0;else{switch(c){case "XML":l=0==parseInt(n&&n.return_code,10);break a;case "RAW":l=!0;break a}l= !!n}n=n||{};p=b.context||B;l?b.onSuccess&&b.onSuccess.call(p,k,n):b.onError&&b.onError.call(p,k,n);b.onFinish&&b.onFinish.call(p,k,n)}},b.method,d,b.headers,b.responseType,b.withCredentials); if(b.onTimeout&&0"',style:"display:none"}),(9==a.nodeType?a:a.ownerDocument||a.document).body.appendChild(a)));else if(e)vf(a,b,"POST",e,d);else if(P("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d)vf(a,b,"GET","",d);else{b:{try{var f=new Pa({url:a});if(f.j&&f.i||f.l){var g=Bb(a.match(Ab)[5]||null);var h=!(!g||!g.endsWith("/aclk")|| "1"!==Hb(a,"ri"));break b}}catch(k){}h=!1}h?Ff(a)?(b&&b(),c=!0):c=!1:c=!1;c||Gf(a,b)}} function Hf(a,b,c){c=void 0===c?"":c;Ff(a,c)?b&&b():Ef(a,b,void 0,void 0,c)} function Ff(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1} function Gf(a,b){var c=new Image,d=""+Df++;Cf[d]=c;c.onload=c.onerror=function(){b&&Cf[d]&&b();delete Cf[d]}; c.src=a} ;var If=B.ytPubsubPubsubInstance||new O,Jf=B.ytPubsubPubsubSubscribedKeys||{},Kf=B.ytPubsubPubsubTopicToKeys||{},Lf=B.ytPubsubPubsubIsSynchronous||{};O.prototype.subscribe=O.prototype.subscribe;O.prototype.unsubscribeByKey=O.prototype.S;O.prototype.publish=O.prototype.O;O.prototype.clear=O.prototype.clear;F("ytPubsubPubsubInstance",If);F("ytPubsubPubsubTopicToKeys",Kf);F("ytPubsubPubsubIsSynchronous",Lf);F("ytPubsubPubsubSubscribedKeys",Jf);var Mf=window,T=Mf.ytcsi&&Mf.ytcsi.now?Mf.ytcsi.now:Mf.performance&&Mf.performance.timing&&Mf.performance.now&&Mf.performance.timing.navigationStart?function(){return Mf.performance.timing.navigationStart+Mf.performance.now()}:function(){return(new Date).getTime()};var Nf=bf("initial_gel_batch_timeout",2E3),Of=Math.pow(2,16)-1,Pf=null,Qf=0,Rf=void 0,Sf=0,Tf=0,Uf=0,Vf=!0,Wf=B.ytLoggingTransportGELQueue_||new Map;F("ytLoggingTransportGELQueue_",Wf);var Xf=B.ytLoggingTransportTokensToCttTargetIds_||{};F("ytLoggingTransportTokensToCttTargetIds_",Xf); function Yf(a,b){if("log_event"===a.endpoint){var c="";a.X?c="visitorOnlyApprovedKey":a.H&&(Xf[a.H.token]=Zf(a.H),c=a.H.token);var d=Wf.get(c)||[];Wf.set(c,d);d.push(a.payload);b&&(Rf=new b);a=bf("tvhtml5_logging_max_batch")||bf("web_logging_max_batch")||100;b=T();d.length>=a?$f({writeThenSend:!0}):10<=b-Uf&&(ag(),Uf=b)}} function bg(a,b){if("log_event"===a.endpoint){var c="";a.X?c="visitorOnlyApprovedKey":a.H&&(Xf[a.H.token]=Zf(a.H),c=a.H.token);var d=new Map;d.set(c,[a.payload]);b&&(Rf=new b);return new N(function(e){Rf&&Rf.isReady()?cg(d,e,{bypassNetworkless:!0}):e()})}} function $f(a){a=void 0===a?{}:a;new N(function(b){window.clearTimeout(Sf);window.clearTimeout(Tf);Tf=0;Rf&&Rf.isReady()?(cg(Wf,b,a),Wf.clear()):(ag(),b())})} function ag(){S("web_gel_timeout_cap")&&!Tf&&(Tf=Qe(function(){$f({writeThenSend:!0})},6E4)); window.clearTimeout(Sf);var a=P("LOGGING_BATCH_TIMEOUT",bf("web_gel_debounce_ms",1E4));S("shorten_initial_gel_batch_timeout")&&Vf&&(a=Nf);Sf=Qe(function(){$f({writeThenSend:!0})},a)} function cg(a,b,c){var d=Rf;c=void 0===c?{}:c;var e=Math.round(T()),f=a.size;a=u(a);for(var g=a.next();!g.done;g=a.next()){var h=u(g.value);g=h.next().value;var k=h.next().value;h=ab({context:dg(d.config_||eg())});h.events=k;(k=Xf[g])&&fg(h,g,k);delete Xf[g];g="visitorOnlyApprovedKey"===g;gg(h,e,g);S("send_beacon_before_gel")&&window.navigator&&window.navigator.sendBeacon&&!c.writeThenSend&&Hf("/generate_204");hg(d,"log_event",h,{retry:!0,onSuccess:function(){f--;f||b();Qf=Math.round(T()-e)}, onError:function(){f--;f||b()}, ra:c,X:g});Vf=!1}} function gg(a,b,c){a.requestTimeMs=String(b);S("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);!c&&(b=P("EVENT_ID",void 0))&&((c=P("BATCH_CLIENT_COUNTER",void 0)||0)||(c=Math.floor(Math.random()*Of/2)),c++,c>Of&&(c=1),Ce("BATCH_CLIENT_COUNTER",c),b={serializedEventId:b,clientCounter:String(c)},a.serializedClientEventId=b,Pf&&Qf&&S("log_gel_rtt_web")&&(a.previousBatchInfo={serializedClientEventId:Pf,roundtripMs:String(Qf)}),Pf=b,Qf=0)} function fg(a,b,c){if(c.videoId)var d="VIDEO";else if(c.playlistId)d="PLAYLIST";else return;a.credentialTransferTokenTargetId=c;a.context=a.context||{};a.context.user=a.context.user||{};a.context.user.credentialTransferTokens=[{token:b,scope:d}]} function Zf(a){var b={};a.videoId?b.videoId=a.videoId:a.playlistId&&(b.playlistId=a.playlistId);return b} ;var ig=B.ytLoggingGelSequenceIdObj_||{};F("ytLoggingGelSequenceIdObj_",ig);function jg(){if(!B.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return B.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":B.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":B.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":B.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(a){return"WEB_DISPLAY_MODE_UNKNOWN"}} ;F("ytglobal.prefsUserPrefsPrefs_",C("ytglobal.prefsUserPrefsPrefs_")||{});var kg={bluetooth:"CONN_DISCO",cellular:"CONN_CELLULAR_UNKNOWN",ethernet:"CONN_WIFI",none:"CONN_NONE",wifi:"CONN_WIFI",wimax:"CONN_CELLULAR_4G",other:"CONN_UNKNOWN",unknown:"CONN_UNKNOWN","slow-2g":"CONN_CELLULAR_2G","2g":"CONN_CELLULAR_2G","3g":"CONN_CELLULAR_3G","4g":"CONN_CELLULAR_4G"},lg={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"}; function mg(){var a=B.navigator;return a?a.connection:void 0} ;function ng(){return"INNERTUBE_API_KEY"in Be&&"INNERTUBE_API_VERSION"in Be} function eg(){return{innertubeApiKey:P("INNERTUBE_API_KEY",void 0),innertubeApiVersion:P("INNERTUBE_API_VERSION",void 0),Ea:P("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),Fa:P("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientVersion:P("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0),Ha:P("INNERTUBE_CONTEXT_HL",void 0),Ga:P("INNERTUBE_CONTEXT_GL",void 0),Ia:P("INNERTUBE_HOST_OVERRIDE",void 0)||"",Ka:!!P("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),Ja:!!P("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT", !1),appInstallData:P("SERIALIZED_CLIENT_CONFIG_DATA",void 0)}} function dg(a){var b={client:{hl:a.Ha,gl:a.Ga,clientName:a.Fa,clientVersion:a.innertubeContextClientVersion,configInfo:a.Ea}};navigator.userAgent&&(b.client.userAgent=String(navigator.userAgent));var c=B.devicePixelRatio;c&&1!=c&&(b.client.screenDensityFloat=String(c));c=P("EXPERIMENTS_TOKEN","");""!==c&&(b.client.experimentsToken=c);c=[];var d=P("EXPERIMENTS_FORCED_FLAGS",{});for(e in d)c.push({key:e,value:String(d[e])});var e=P("EXPERIMENT_FLAGS",{});for(var f in e)f.startsWith("force_")&&void 0=== d[f]&&c.push({key:f,value:String(e[f])});0f;f++){var g=d.concat(e[f].split(""));ac[f]=g;for(var h=0;h>2];l=c[(l&3)<<4|n>>4];n=c[(n&15)<<2|k>>6];k=c[k&63];d[f++]=""+h+l+n+k}h=0;k=e;switch(b.length-g){case 2:h=b[g+1],k=c[(h&15)<<2]||e;case 1:b=b[g],d[f]=""+c[b>>2]+c[(b&3)<<4|h>>4]+k+e}a.hash=d.join("")}return a} ;function qg(a){var b=new re;(b=b.isAvailable()?a?new xe(b,a):b:null)||(a=new se(a||"UserDataSharedStore"),b=a.isAvailable()?a:null);this.h=(a=b)?new ne(a):null;this.i=document.domain||window.location.hostname} qg.prototype.set=function(a,b,c,d){c=c||31104E3;this.remove(a);if(this.h)try{this.h.set(a,b,Date.now()+1E3*c);return}catch(f){}var e="";if(d)try{e=escape(Rd(b))}catch(f){return}else e=escape(b);b=this.i;Bc.set(""+a,e,{ga:c,path:"/",domain:void 0===b?"youtube.com":b,secure:!1})}; qg.prototype.get=function(a,b){var c=void 0,d=!this.h;if(!d)try{c=this.h.get(a)}catch(e){d=!0}if(d&&(c=Bc.get(""+a,void 0))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c}; qg.prototype.remove=function(a){this.h&&this.h.remove(a);var b=this.i;Bc.remove(""+a,"/",void 0===b?"youtube.com":b)};var rg;function sg(){rg||(rg=new qg("yt.innertube"));return rg} function tg(a,b,c,d){if(d)return null;d=sg().get("nextId",!0)||1;var e=sg().get("requests",!0)||{};e[d]={method:a,request:b,authState:pg(c),requestTime:Math.round(T())};sg().set("nextId",d+1,86400,!0);sg().set("requests",e,86400,!0);return d} function ug(a){var b=sg().get("requests",!0)||{};delete b[a];sg().set("requests",b,86400,!0)} function vg(a){var b=sg().get("requests",!0);if(b){for(var c in b){var d=b[c];if(!(6E4>Math.round(T())-d.requestTime)){var e=d.authState,f=pg(og(!1));$a(e,f)&&(e=d.request,"requestTimeMs"in e&&(e.requestTimeMs=Math.round(T())),hg(a,d.method,e,{}));delete b[c]}}sg().set("requests",b,86400,!0)}} ;var wg=C("ytPubsub2Pubsub2Instance")||new O;O.prototype.subscribe=O.prototype.subscribe;O.prototype.unsubscribeByKey=O.prototype.S;O.prototype.publish=O.prototype.O;O.prototype.clear=O.prototype.clear;F("ytPubsub2Pubsub2Instance",wg);F("ytPubsub2Pubsub2SubscribedKeys",C("ytPubsub2Pubsub2SubscribedKeys")||{});F("ytPubsub2Pubsub2TopicToKeys",C("ytPubsub2Pubsub2TopicToKeys")||{});F("ytPubsub2Pubsub2IsAsync",C("ytPubsub2Pubsub2IsAsync")||{});F("ytPubsub2Pubsub2SkipSubKey",null);function xg(){} ;var yg=function(){var a;return function(){a||(a=new qg("ytidb"));return a}}(); function zg(){var a;return null===(a=yg())||void 0===a?void 0:a.get("LAST_RESULT_ENTRY_KEY",!0)} function Ag(a){this.h=void 0===a?!1:a;(a=zg())||(a={hasSucceededOnce:this.h});this.i=a;var b,c;null!==(b=yg())&&void 0!==b&&b.h&&(b={hasSucceededOnce:this.i.hasSucceededOnce||this.h},null===(c=yg())||void 0===c?void 0:c.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0))} Ag.prototype.isSupported=function(){return this.h};var Bg=[],Cg=!1;function Dg(a){Cg||(Bg.push({type:"ERROR",payload:a}),10=k)jh(g,p,x,l,Q,b.join(),h),n=Q;E.v(2);break;case 3:return E.return(Promise.reject(n))}})})} function jh(a,b,c,d,e,f,g){b=c-b;e?(e instanceof U&&("QUOTA_EXCEEDED"===e.type||"QUOTA_MAYBE_EXCEEDED"===e.type)&&Eg("QUOTA_EXCEEDED",{dbName:Ig(a.h.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:g.mode}),e instanceof U&&"UNKNOWN_ABORT"===e.type&&(c-=a.j,0>c&&c>=Math.pow(2,31)&&(c=0),Eg("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.i=!0),kh(a,!1,d,f,b,g.tag),Dg(e)):kh(a,!0,d,f,b,g.tag)} function kh(a,b,c,d,e,f){Eg("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.i,duration:e,isSuccessful:b,tryCount:c,tag:void 0===f?"IDB_TRANSACTION_TAG_UNKNOWN":f})} m.getName=function(){return this.h.name}; function fh(a){this.h=a} m=fh.prototype;m.add=function(a,b){return W(this.h.add(a,b))}; m.autoIncrement=function(){return this.h.autoIncrement}; m.clear=function(){return W(this.h.clear()).then(function(){})}; m.count=function(a){return W(this.h.count(a))}; function lh(a,b){return mh(a,{query:b},function(c){return c.delete().then(function(){return c.continue()})}).then(function(){})} m.delete=function(a){return a instanceof IDBKeyRange?lh(this,a):W(this.h.delete(a))}; m.get=function(a){return W(this.h.get(a))}; m.index=function(a){return new nh(this.h.index(a))}; m.getName=function(){return this.h.name}; m.keyPath=function(){return this.h.keyPath}; function mh(a,b,c){a=a.h.openCursor(b.query,b.direction);return oh(a).then(function(d){return ah(d,c)})} function hh(a){var b=this;this.h=a;this.j=new Map;this.i=!1;this.done=new Promise(function(c,d){b.h.addEventListener("complete",function(){c()}); b.h.addEventListener("error",function(e){e.currentTarget===e.target&&d(b.h.error)}); b.h.addEventListener("abort",function(){var e=b.h.error;if(e)d(e);else if(!b.i){e=U;for(var f=b.h.objectStoreNames,g=[],h=0;h=x},z); z.done.catch(function(x){e(x)})}catch(x){e(x)}}); g.addEventListener("success",function(){var q=g.result;k&&q.addEventListener("versionchange",function(){k(f())}); q.addEventListener("close",function(){Eg("IDB_UNEXPECTEDLY_CLOSED",{dbName:Ig(a),dbVersion:q.version});l&&l()}); d(f())}); g.addEventListener("error",function(){e(g.error)}); h&&g.addEventListener("blocked",function(){h()})})} function sh(a,b,c){c=void 0===c?{}:c;return rh(a,b,c)} function th(a,b){b=void 0===b?{}:b;return J(this,function d(){var e,f,g;return A(d,function(h){e=self.indexedDB.deleteDatabase(a);f=b;(g=f.blocked)&&e.addEventListener("blocked",function(){g()}); return y(h,$g(e),0)})})} ;function uh(a,b){this.name=a;this.options=b;this.j=!1} uh.prototype.i=function(a,b,c){c=void 0===c?{}:c;return sh(a,b,c)}; uh.prototype.delete=function(a){a=void 0===a?{}:a;return th(this.name,a)}; uh.prototype.open=function(){var a=this;if(!this.h){var b,c=function(){a.h===b&&(a.h=void 0)},d={blocking:function(f){f.close()}, closed:c,Pa:c,upgrade:this.options.upgrade},e=function(){return J(a,function g(){var h=this,k,l,n;return A(g,function(p){switch(p.h){case 1:return qa(p,2),y(p,h.i(h.name,h.options.version,d),4);case 4:k=p.i;a:{var r=h.options;for(var q=u(Object.keys(r.ia)),v=q.next();!v.done;v=q.next()){v=v.value;var z=r.ia[v];if("boolean"===typeof z){if(!k.h.objectStoreNames.contains(v)){r=v;break a}}else{var x=void 0===z.Oa?Number.MAX_VALUE:z.Oa;if(k.h.version>=z.eb&&!(k.h.version>=x)&&!k.h.objectStoreNames.contains(v)){r= v;break a}}}r=void 0}l=r;if(void 0===l){p.v(5);break}if(h.j){p.v(6);break}h.j=!0;return y(p,h.delete(),7);case 7:return Dg(new U("DB_DELETED_BY_MISSING_OBJECT_STORE",{dbName:h.name,Ma:l})),p.return(e());case 6:throw new Pg(l);case 5:return p.return(k);case 2:n=ra(p);if(n instanceof DOMException?"VersionError"===n.name:"DOMError"in self&&n instanceof DOMError?"VersionError"===n.name:n instanceof Object&&"message"in n&&"An attempt was made to open a database using a lower version than the existing version."=== n.message)return p.return(h.i(h.name,void 0,Object.assign(Object.assign({},d),{upgrade:void 0})));c();throw n;}})})}; this.h=b=e()}return this.h};var vh=new uh("YtIdbMeta",{ia:{databases:!0},upgrade:function(a,b){b(1)&&eh(a,"databases",{keyPath:"actualName"})}}); function wh(a){return J(this,function c(){var d;return A(c,function(e){if(1==e.h)return y(e,vh.open(),2);d=e.i;return e.return(ch(d,["databases"],{D:!0,mode:"readwrite"},function(f){var g=dh(f,"databases");return g.get(a.actualName).then(function(h){if(h?a.actualName!==h.actualName||a.publicName!==h.publicName||a.userIdentifier!==h.userIdentifier:1)return W(g.h.put(a,void 0)).then(function(){})})}))})})} function xh(a){return J(this,function c(){var d;return A(c,function(e){if(1==e.h)return y(e,vh.open(),2);d=e.i;return e.return(d.delete("databases",a))})})} ;var yh; function zh(){return J(this,function b(){var c,d,e;return A(b,function(f){switch(f.h){case 1:c=zg();if(null===c||void 0===c?0:c.hasSucceededOnce)return f.return(new Ag(!0));var g;if(g=Af)g=/WebKit\/([0-9]+)/.exec(tb),g=!!(g&&600<=parseInt(g[1],10));g&&(g=/WebKit\/([0-9]+)/.exec(tb),g=!(g&&602<=parseInt(g[1],10)));if(g||Mb)return f.return(new Ag(!1));try{if(d=self,!(d.indexedDB&&d.IDBIndex&&d.IDBKeyRange&&d.IDBObjectStore))return f.return(new Ag(!1))}catch(h){return f.return(new Ag(!1))}if(!("IDBTransaction"in self&& "objectStoreNames"in IDBTransaction.prototype))return f.return(new Ag(!1));qa(f,2);e={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return y(f,wh(e),4);case 4:return y(f,xh("yt-idb-test-do-not-use"),5);case 5:return f.return(new Ag(!0));case 2:return ra(f),f.return(new Ag(!1))}})})} function Ah(){if(void 0!==yh)return yh;Cg=!0;return yh=zh().then(function(a){Cg=!1;return a.isSupported()})} ;function Bh(a){try{Gg();var b=!0}catch(c){b=!1}if(!b)throw a=new U("AUTH_INVALID"),Dg(a),a;b=Gg();return{actualName:a+":"+b,publicName:a,userIdentifier:b}} function Ch(a,b,c,d){return J(this,function f(){var g,h;return A(f,function(k){switch(k.h){case 1:return y(k,Dh({caller:"openDbImpl",publicName:a,version:b}),2);case 2:return Hg(a),g=c?{actualName:a,publicName:a,userIdentifier:void 0}:Bh(a),qa(k,3),y(k,wh(g),5);case 5:return y(k,sh(g.actualName,b,d),6);case 6:return k.return(k.i);case 3:return h=ra(k),qa(k,7),y(k,xh(g.actualName),9);case 9:k.h=8;k.o=0;break;case 7:ra(k);case 8:throw h;}})})} function Dh(a){return J(this,function c(){var d;return A(c,function(e){if(1==e.h)return y(e,Ah(),2);if(!e.i)throw d=new U("IDB_NOT_SUPPORTED",{context:a}),Dg(d),d;e.h=0})})} function Eh(a,b,c){c=void 0===c?{}:c;return Ch(a,b,!1,c)} function Fh(a,b,c){c=void 0===c?{}:c;return Ch(a,b,!0,c)} function Gh(a,b){b=void 0===b?{}:b;return J(this,function d(){var e;return A(d,function(f){if(1==f.h)return y(f,Ah(),2);if(3!=f.h){if(!f.i)return f.return();Hg(a);e=Bh(a);return y(f,th(e.actualName,b),3)}return y(f,xh(e.actualName),0)})})} function Hh(a,b){b=void 0===b?{}:b;return J(this,function d(){return A(d,function(e){if(1==e.h)return y(e,Ah(),2);if(3!=e.h){if(!e.i)return e.return();Hg(a);return y(e,th(a,b),3)}return y(e,xh(a),0)})})} ;function Ih(a,b){uh.call(this,a,b);this.options=b;Hg(a)} w(Ih,uh);function Jh(a){var b;return function(){b||(b=new Ih("LogsDatabaseV2",a));return b}} Ih.prototype.i=function(a,b,c){c=void 0===c?{}:c;return(this.options.va?Fh:Eh)(a,b,Object.assign({},c))}; Ih.prototype.delete=function(a){a=void 0===a?{}:a;return(this.options.va?Hh:Gh)(this.name,a)};var Kh;function Lh(){if(Kh)return Kh();var a={};Kh=Jh({ia:(a.LogsRequestsStore=!0,a.sapisid=!0,a.SWHealthLog=!0,a),va:!1,upgrade:function(b,c){c(2)&&(eh(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0}).h.createIndex("newRequest",["status","authHash","interface","timestamp"],{unique:!1}),eh(b,"sapisid"));c(3)&&eh(b,"SWHealthLog",{keyPath:"id",autoIncrement:!0}).h.createIndex("swHealthNewRequest",["interface","timestamp"],{unique:!1})}, version:4});return Kh()} ;function Mh(a){return J(this,function c(){var d,e,f,g,h;return A(c,function(k){switch(k.h){case 1:return d={startTime:T(),transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},y(k,Lh().open(),2);case 2:e=k.i;if(5<=e.h.version){f=Object.assign(Object.assign({},a),{options:JSON.parse(JSON.stringify(a.options)),interface:P("INNERTUBE_CONTEXT_CLIENT_NAME",0)});k.v(3);break}return y(k,Nh(),4);case 4:g=k.i,f=Object.assign(Object.assign({},a),{authHash:g,options:JSON.parse(JSON.stringify(a.options)),interface:P("INNERTUBE_CONTEXT_CLIENT_NAME", 0)});case 3:return y(k,gh(e,f),5);case 5:return h=k.i,d.Qa=T(),Oh(d),k.return(h)}})})} function Ph(){return J(this,function b(){var c,d,e,f,g,h,k,l,n;return A(b,function(p){switch(p.h){case 1:return c={startTime:T(),transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},y(p,Lh().open(),2);case 2:d=p.i;e=P("INNERTUBE_CONTEXT_CLIENT_NAME",0);if(5<=d.h.version){f=["NEW",e,0];g=["NEW",e,T()];p.v(3);break}return y(p,Nh(),4);case 4:h=p.i,f=["NEW",h,e,0],g=["NEW",h,e,T()];case 3:return k=IDBKeyRange.bound(f,g),l=void 0,n=5<=d.h.version?"newRequestV2":"newRequest",y(p,ch(d,["LogsRequestsStore"],{mode:"readwrite", D:!0},function(r){return ph(dh(r,"LogsRequestsStore").index(n),{query:k,direction:"prev"},function(q){q.cursor.value&&(l=q.cursor.value,l.status="QUEUED",q.update(l))})}),5); case 5:return c.Qa=T(),Oh(c),p.return(l)}})})} function Qh(a){return J(this,function c(){var d;return A(c,function(e){if(1==e.h)return y(e,Lh().open(),2);d=e.i;return e.return(ch(d,["LogsRequestsStore"],{mode:"readwrite",D:!0},function(f){var g=dh(f,"LogsRequestsStore");return g.get(a).then(function(h){if(h)return h.status="QUEUED",W(g.h.put(h,void 0)).then(function(){return h})})}))})})} function Rh(a){return J(this,function c(){var d;return A(c,function(e){if(1==e.h)return y(e,Lh().open(),2);d=e.i;return e.return(ch(d,["LogsRequestsStore"],{mode:"readwrite",D:!0},function(f){var g=dh(f,"LogsRequestsStore");return g.get(a).then(function(h){return h?(h.status="NEW",h.sendCount+=1,W(g.h.put(h,void 0)).then(function(){return h})):V.resolve(void 0)})}))})})} function Sh(a){return J(this,function c(){var d;return A(c,function(e){if(1==e.h)return y(e,Lh().open(),2);d=e.i;return e.return(d.delete("LogsRequestsStore",a))})})} function Nh(){return J(this,function b(){var c;return A(b,function(d){if(1==d.h){xg.h||(xg.h=new xg);var e={};var f=Ec([]);f&&(e.Authorization=f,f=void 0,void 0===f&&(f=Number(P("SESSION_INDEX",0)),f=isNaN(f)?0:f),e["X-Goog-AuthUser"]=f,"INNERTUBE_HOST_OVERRIDE"in Be||(e["X-Origin"]=window.location.origin),S("pageid_as_header_web")&&"DELEGATED_SESSION_ID"in Be&&(e["X-Goog-PageId"]=P("DELEGATED_SESSION_ID")));e instanceof N||(f=new N(Ea),Sd(f,2,e),e=f);return y(d,e,2)}c=d.i;e=d.return;f=pg(c);var g= new Yc;g.update(JSON.stringify(f,Object.keys(f).sort()));f=g.digest();g="";for(var h=0;ha.sendCount?y(k,Rh(a.id),8):y(k,Sh(a.id), 4);case 8:ff(function(){ii().J()&&oi()},5E3); case 4:c(e,f),k.h=0}})})}; var d=a.options.onSuccess?a.options.onSuccess:function(){}; a.options.onSuccess=function(e,f){return J(b,function h(){return A(h,function(k){if(1==k.h)return void 0===(null===a||void 0===a?void 0:a.id)?k.v(2):y(k,Sh(a.id),2);d(e,f);k.h=0})})}; return a} function ii(){fi||(fi=new bi({La:!0,Da:!0}));return fi} function ki(a,b){if(S("networkless_with_beacon")){var c=["method","postBody"];if(Object.keys(b).length>c.length)var d=!0;else{d=0;c=u(c);for(var e=c.next();!e.done;e=c.next())b.hasOwnProperty(e.value)&&d++;d=Object.keys(b).length!==d}d?sf(a,b):S("networkless_with_ping_send")&&1===Object.keys(b).length&&b.allowPingSend?Ef(a):Hf(a,void 0,b.postBody)}else S("networkless_with_ping_send")&&1===Object.keys(b).length&&b.allowPingSend?Ef(a):sf(a,b)} function ji(){return C("ytNetworklessLoggingInitializationOptions")?gi.isNwlInitialized:!1} function mi(){return C("ytNetworklessLoggingInitializationOptions")?gi.isIdbSupported:!1} ;function qi(a){var b=this;this.config_=null;a?this.config_=a:ng()&&(this.config_=eg());df(function(){vg(b)},5E3)} qi.prototype.isReady=function(){!this.config_&&ng()&&(this.config_=eg());return!!this.config_}; function hg(a,b,c,d){function e(r){r=void 0===r?!1:r;var q;if(d.retry&&"www.youtube-nocookie.com"!=h&&(r||(q=tg(b,c,l,k)),q)){var v=g.onSuccess,z=g.onFetchSuccess;g.onSuccess=function(x,Q){ug(q);v(x,Q)}; c.onFetchSuccess=function(x,Q){ug(q);z(x,Q)}}try{r&&d.retry&&!d.ra.bypassNetworkless?(g.method="POST",!d.ra.writeThenSend&&S("nwl_send_fast_on_unload")?ni(p,g):hi(p,g)):(g.method="POST",g.postParams||(g.postParams={}),sf(p,g))}catch(x){if("InvalidAccessError"==x.name)q&&(ug(q),q=0),He(Error("An extension is blocking network request.")); else throw x;}q&&df(function(){vg(a)},5E3)} !P("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&He(new Fg("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady()){var f=new Fg("innertube xhrclient not ready",b,c,d);Ge(f);throw f;}var g={headers:{"Content-Type":"application/json"},method:"POST",postParams:c,postBodyFormat:"JSON",onTimeout:function(){d.onTimeout()}, onFetchTimeout:d.onTimeout,onSuccess:function(r,q){if(d.onSuccess)d.onSuccess(q)}, onFetchSuccess:function(r){if(d.onSuccess)d.onSuccess(r)}, onError:function(r,q){if(d.onError)d.onError(q)}, onFetchError:function(r){if(d.onError)d.onError(r)}, timeout:d.timeout,withCredentials:!0},h="";(f=a.config_.Ia)&&(h=f);var k=a.config_.Ka||!1,l=og(k,h,d);Object.assign(g.headers,l);g.headers.Authorization&&!h&&(g.headers["x-origin"]=window.location.origin);f="/youtubei/"+a.config_.innertubeApiVersion+"/"+b;var n={alt:"json"};a.config_.Ja&&g.headers.Authorization||(n.key=a.config_.innertubeApiKey);var p=Ze(""+h+f,n||{},!0);ji()?Ah().then(function(r){e(r)}):e(!1)} ;function ri(a,b){var c=void 0===c?{}:c;var d=qi;P("ytLoggingEventsDefaultDisabled",!1)&&qi==qi&&(d=null);c=void 0===c?{}:c;var e={},f=Math.round(c.timestamp||T());e.eventTimeMs=f>3;switch(e&7){case 0:e=Ai(b);if(2===f)return e;break;case 1:if(2===f)return;d+=8;break;case 2:e=Ai(b);if(2===f)return a.substr(d,e);d+=e;break;case 5:if(2===f)return;d+=4;break;default:return}}while(db)return c;b=a();c|=(b&127)<<7;if(128>b)return c;b=a();c|=(b&127)<<14;if(128>b)return c;b=a();return 128>b?c|(b&127)<<21:Infinity} ;function Bi(a,b,c,d){if(a)if(Array.isArray(a)){var e=d;for(d=0;d'}; m.getOptions=function(a){return this.F.namespaces?a?this.F[a]?this.F[a].options||[]:[]:this.F.namespaces||[]:[]}; m.getOption=function(a,b){if(this.F.namespaces&&a&&b&&this.F[a])return this.F[a][b]}; function gj(a){if("iframe"!==a.tagName.toLowerCase()){var b=Qi(a,"videoid");b&&(b={videoId:b,width:Qi(a,"width"),height:Qi(a,"height")},new dj(a,b))}} ;F("YT.PlayerState.UNSTARTED",-1);F("YT.PlayerState.ENDED",0);F("YT.PlayerState.PLAYING",1);F("YT.PlayerState.PAUSED",2);F("YT.PlayerState.BUFFERING",3);F("YT.PlayerState.CUED",5);F("YT.get",function(a){return Mi[a]}); F("YT.scan",Pi);F("YT.subscribe",function(a,b,c){he.subscribe(a,b,c);Oi[a]=!0;for(var d in Mi)Mi.hasOwnProperty(d)&&Yi(Mi[d],a)}); F("YT.unsubscribe",function(a,b,c){ge(a,b,c)}); F("YT.Player",dj);Z.prototype.destroy=Z.prototype.destroy;Z.prototype.setSize=Z.prototype.setSize;Z.prototype.getIframe=Z.prototype.ya;Z.prototype.addEventListener=Z.prototype.addEventListener;dj.prototype.getVideoEmbedCode=dj.prototype.getVideoEmbedCode;dj.prototype.getOptions=dj.prototype.getOptions;dj.prototype.getOption=dj.prototype.getOption; Ni.push(function(a){var b=a;b||(b=document);a=Va(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 f={};for(c=d=0;b=e[c];c++){var g=b.className,h;if(h="function"==typeof g.split)h=0<=Ra(g.split(/\s+/), "yt-player");h&&(f[d++]=b)}f.length=d;b=f}}b=Va(b);H(Ua(a,b),gj)}); "undefined"!=typeof YTConfig&&YTConfig.parsetags&&"onload"!=YTConfig.parsetags||Pi();var hj=B.onYTReady;hj&&hj();var ij=B.onYouTubeIframeAPIReady;ij&&ij();var jj=B.onYouTubePlayerAPIReady;jj&&jj();}).call(this);