(function(){'use strict';var p;function aa(a){var b=0;return function(){return b>>0)+"_",e=0;return b}); w("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;c0&&c>0;)if(d[--c]!=b[--e])return!1;return e<=0}}); function Ka(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c=f}}); w("Number.isFinite",function(a){return a?a:function(b){return typeof b!=="number"?!1:!isNaN(b)&&b!==Infinity&&b!==-Infinity}}); w("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>>0;if(b===0)return 32;var c=0;(b&4294901760)===0&&(b<<=16,c+=16);(b&4278190080)===0&&(b<<=8,c+=8);(b&4026531840)===0&&(b<<=4,c+=4);(b&3221225472)===0&&(b<<=2,c+=2);(b&2147483648)===0&&c++;return c}}); w("Math.log10",function(a){return a?a:function(b){return Math.log(b)/Math.LN10}}); w("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)ma(b,d)&&c.push([d,b[d]]);return c}}); w("globalThis",function(a){return a||fa});/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ var Na=Na||{},C=this||self;function D(a,b,c){a=a.split(".");c=c||C;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 Oa(a,b){var c=E("CLOSURE_FLAGS");a=c&&c[a];return a!=null?a:b} function E(a,b){a=a.split(".");b=b||C;for(var 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 Xa(a,b,c){Xa=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?Va:Wa;return Xa.apply(null,arguments)} function Ya(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}} function Za(){return Date.now()} function $a(a,b){function c(){} c.prototype=b.prototype;a.Ba=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.base=function(d,e,f){for(var g=Array(arguments.length-2),h=2;h=0)&&Array.prototype.splice.call(a,b,1);return c} function Jb(a,b){for(var c=1;c>>0;return b} ;var lc=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function mc(a){return a?decodeURI(a):a} function nc(a,b){return b.match(lc)[a]||null} function oc(a){return mc(nc(3,a))} function pc(a){var b=a.match(lc);a=b[5];var c=b[6];b=b[7];var d="";a&&(d+=a);c&&(d+="?"+c);b&&(d+="#"+b);return d} function qc(a){var b=a.indexOf("#");return b<0?a:a.slice(0,b)} function rc(a,b,c){if(Array.isArray(b))for(var d=0;dc){d=c;var e=""}else e=a.substring(d+1,c);a=[a.slice(0,d),e,a.slice(c)];c=a[1];a[1]=b?c?c+"&"+b:b:c;b=a[0]+(a[1]?"?"+a[1]:"")+a[2]}else b=a;return b} function uc(a,b,c,d){for(var e=c.length;(b=a.indexOf(c,b))>=0&&b=0;)f.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);f.push(a.slice(d));return f.join("").replace(wc,"$1")} ;function yc(a){this.h=a} ;function zc(a,b,c){this.l=a;this.j=b;this.fields=c||[];this.h=new Map} p=zc.prototype;p.Hd=function(a){var b=B.apply(1,arguments),c=this.vc(b);c?c.push(new yc(a)):this.td(a,b)}; p.td=function(a){var b=this.Oc(B.apply(1,arguments));this.h.set(b,[new yc(a)])}; p.vc=function(){var a=this.Oc(B.apply(0,arguments));return this.h.has(a)?this.h.get(a):void 0}; p.Yd=function(){var a=this.vc(B.apply(0,arguments));return a&&a.length?a[0]:void 0}; p.clear=function(){this.h.clear()}; p.Oc=function(){var a=B.apply(0,arguments);return a?a.join(","):"key"};function Ac(a,b){zc.call(this,a,3,b)} y(Ac,zc);Ac.prototype.i=function(a){var b=B.apply(1,arguments),c=0,d=this.Yd(b);d&&(c=d.h);this.td(c+a,b)};function Bc(a,b){zc.call(this,a,2,b)} y(Bc,zc);Bc.prototype.record=function(a){this.Hd(a,B.apply(1,arguments))};function Cc(a){a&&typeof a.dispose=="function"&&a.dispose()} ;function Dc(a){for(var b=0,c=arguments.length;b0:!1} function Qc(){return Pc()?!1:I("Opera")} function Rc(){return I("Firefox")||I("FxiOS")} function Sc(){return Pc()?Oc("Chromium"):(I("Chrome")||I("CriOS"))&&!(Pc()?0:I("Edge"))||I("Silk")} ;function Tc(){return Ic?!!Mc&&!!Mc.platform:!1} function Uc(){return I("iPhone")&&!I("iPod")&&!I("iPad")} ;function Vc(a){Vc[" "](a);return a} Vc[" "]=function(){};var Wc=Qc(),Xc=Pc()?!1:I("Trident")||I("MSIE"),Yc=I("Edge"),Zc=I("Gecko")&&!(Lc().toLowerCase().indexOf("webkit")!=-1&&!I("Edge"))&&!(I("Trident")||I("MSIE"))&&!I("Edge"),$c=Lc().toLowerCase().indexOf("webkit")!=-1&&!I("Edge");$c&&I("Mobile");Tc()||I("Macintosh");Tc()||I("Windows");(Tc()?Mc.platform==="Linux":I("Linux"))||Tc()||I("CrOS");var ad=Tc()?Mc.platform==="Android":I("Android");Uc();I("iPad");I("iPod");Uc()||I("iPad")||I("iPod");Lc().toLowerCase().indexOf("kaios");function bd(a,b){Fc.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)} $a(bd,Fc);var cd={2:"touch",3:"pen",4:"mouse"}; bd.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(Zc){a:{try{Vc(b.nodeName);var e=!0;break a}catch(f){}e=!1}e||(b=null)}}else c=="mouseover"?b=a.fromElement:c=="mouseout"&&(b=a.toElement);this.relatedTarget=b;d?(this.clientX=d.clientX!==void 0?d.clientX:d.pageX,this.clientY=d.clientY!==void 0?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY|| 0):(this.clientX=a.clientX!==void 0?a.clientX:a.pageX,this.clientY=a.clientY!==void 0?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||(c=="keypress"?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=typeof a.pointerType==="string"?a.pointerType:cd[a.pointerType]||"";this.state=a.state; this.i=a;a.defaultPrevented&&bd.Ba.preventDefault.call(this)}; bd.prototype.stopPropagation=function(){bd.Ba.stopPropagation.call(this);this.i.stopPropagation?this.i.stopPropagation():this.i.cancelBubble=!0}; bd.prototype.preventDefault=function(){bd.Ba.preventDefault.call(this);var a=this.i;a.preventDefault?a.preventDefault():a.returnValue=!1};var dd="closure_listenable_"+(Math.random()*1E6|0);var ed=0;function fd(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.ec=e;this.key=++ed;this.Pb=this.Xb=!1} function gd(a){a.Pb=!0;a.listener=null;a.proxy=null;a.src=null;a.ec=null} ;function hd(a){this.src=a;this.listeners={};this.h=0} hd.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=id(a,b,d,e);g>-1?(b=a[g],c||(b.Xb=!1)):(b=new fd(b,this.src,f,!!d,e),b.Xb=c,a.push(b));return b}; hd.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=id(e,b,c,d);return b>-1?(gd(e[b]),Array.prototype.splice.call(e,b,1),e.length==0&&(delete this.listeners[a],this.h--),!0):!1}; function jd(a,b){var c=b.type;c in a.listeners&&Ib(a.listeners[c],b)&&(gd(b),a.listeners[c].length==0&&(delete a.listeners[c],a.h--))} function id(a,b,c,d){for(var e=0;e-1?b[a]:null)&&wd(c))} function wd(a){if(typeof a!=="number"&&a&&!a.Pb){var b=a.src;if(b&&b[dd])jd(b.h,a);else{var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(td(c),d):b.addListener&&b.removeListener&&b.removeListener(d);md--;(c=rd(b))?(jd(c,a),c.h==0&&(c.src=null,b[kd]=null)):gd(a)}}} function td(a){return a in ld?ld[a]:ld[a]="on"+a} function ud(a,b){if(a.Pb)a=!0;else{b=new bd(b,this);var c=a.listener,d=a.ec||a.src;a.Xb&&wd(a);a=c.call(d,b)}return a} function rd(a){a=a[kd];return a instanceof hd?a:null} var xd="__closure_events_fn_"+(Math.random()*1E9>>>0);function pd(a){if(typeof a==="function")return a;a[xd]||(a[xd]=function(b){return a.handleEvent(b)}); return a[xd]} ;function yd(){G.call(this);this.h=new hd(this);this.Za=this;this.ga=null} $a(yd,G);yd.prototype[dd]=!0;p=yd.prototype;p.addEventListener=function(a,b,c,d){nd(this,a,b,c,d)}; p.removeEventListener=function(a,b,c,d){vd(this,a,b,c,d)}; function zd(a,b){var c=a.ga;if(c){var d=[];for(var e=1;c;c=c.ga)d.push(c),++e}a=a.Za;c=b.type||b;typeof b==="string"?b=new Fc(b,a):b instanceof Fc?b.target=b.target||a:(e=b,b=new Fc(c,a),Ub(b,e));e=!0;if(d)for(var f=d.length-1;!b.j&&f>=0;f--){var g=b.h=d[f];e=Ad(g,c,!0,b)&&e}b.j||(g=b.h=a,e=Ad(g,c,!0,b)&&e,b.j||(e=Ad(g,c,!1,b)&&e));if(d)for(f=0;!b.j&&f0){this.i--;var a=this.h;this.h=a.next;a.next=null}else a=this.j();return a}; function Cd(a,b){a.l(b);a.i<100&&(a.i++,b.next=a.h,a.h=b)} ;function Dd(){} function Ed(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}} ;"ARTICLE SECTION NAV ASIDE H1 H2 H3 H4 H5 H6 HEADER FOOTER ADDRESS P HR PRE BLOCKQUOTE OL UL LH LI DL DT DD FIGURE FIGCAPTION MAIN DIV EM STRONG SMALL S CITE Q DFN ABBR RUBY RB RT RTC RP DATA TIME CODE VAR SAMP KBD SUB SUP I B U MARK BDI BDO SPAN BR WBR INS DEL PICTURE PARAM TRACK MAP TABLE CAPTION COLGROUP COL TBODY THEAD TFOOT TR TD TH SELECT DATALIST OPTGROUP OPTION OUTPUT PROGRESS METER FIELDSET LEGEND DETAILS SUMMARY MENU DIALOG SLOT CANVAS FONT CENTER ACRONYM BASEFONT BIG DIR HGROUP STRIKE TT".split(" ").concat(["BUTTON", "INPUT"]);function Fd(a,b){this.x=a!==void 0?a:0;this.y=b!==void 0?b:0} p=Fd.prototype;p.clone=function(){return new Fd(this.x,this.y)}; p.equals=function(a){return a instanceof Fd&&(this==a?!0:this&&a?this.x==a.x&&this.y==a.y:!1)}; p.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; p.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; p.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; p.scale=function(a,b){this.x*=a;this.y*=typeof b==="number"?b:a;return this};function Gd(a,b){this.width=a;this.height=b} p=Gd.prototype;p.clone=function(){return new Gd(this.width,this.height)}; p.aspectRatio=function(){return this.width/this.height}; p.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; p.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; p.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; p.scale=function(a,b){this.width*=a;this.height*=typeof b==="number"?b:a;return this};function Hd(a){var b=document;return typeof a==="string"?b.getElementById(a):a} function Id(a){var b=document;a=String(a);b.contentType==="application/xhtml+xml"&&(a=a.toLowerCase());return b.createElement(a)} function Jd(a,b){for(var c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null} ;var Kd;function Ld(){var a=C.MessageChannel;typeof a==="undefined"&&typeof window!=="undefined"&&window.postMessage&&window.addEventListener&&!I("Presto")&&(a=function(){var e=Id("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=f.location.protocol=="file:"?"*":f.location.protocol+"//"+f.location.host;e=Xa(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(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.Sc;c.Sc=null;e()}}; return function(e){d.next={Sc:e};d=d.next;b.port2.postMessage(0)}}return function(e){C.setTimeout(e,0)}} ;function Md(a){C.setTimeout(function(){throw a;},0)} ;function Nd(){this.i=this.h=null} Nd.prototype.add=function(a,b){var c=Od.get();c.set(a,b);this.i?this.i.next=c:this.h=c;this.i=c}; Nd.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 Od=new Bd(function(){return new Pd},function(a){return a.reset()}); function Pd(){this.next=this.scope=this.h=null} Pd.prototype.set=function(a,b){this.h=a;this.scope=b;this.next=null}; Pd.prototype.reset=function(){this.next=this.scope=this.h=null};var Qd,Rd=!1,Sd=new Nd;function Td(a,b){Qd||Ud();Rd||(Qd(),Rd=!0);Sd.add(a,b)} function Ud(){if(C.Promise&&C.Promise.resolve){var a=C.Promise.resolve(void 0);Qd=function(){a.then(Vd)}}else Qd=function(){var b=Vd; typeof C.setImmediate!=="function"||C.Window&&C.Window.prototype&&C.Window.prototype.setImmediate==C.setImmediate?(Kd||(Kd=Ld()),Kd(b)):C.setImmediate(b)}} function Vd(){for(var a;a=Sd.remove();){try{a.h.call(a.scope)}catch(b){Md(b)}Cd(Od,a)}Rd=!1} ;function Wd(a){this.h=0;this.A=void 0;this.l=this.i=this.j=null;this.v=this.m=!1;if(a!=Dd)try{var b=this;a.call(void 0,function(c){Xd(b,2,c)},function(c){Xd(b,3,c)})}catch(c){Xd(this,3,c)}} function Yd(){this.next=this.context=this.h=this.i=this.child=null;this.j=!1} Yd.prototype.reset=function(){this.context=this.h=this.i=this.child=null;this.j=!1}; var Zd=new Bd(function(){return new Yd},function(a){a.reset()}); function $d(a,b,c){var d=Zd.get();d.i=a;d.h=b;d.context=c;return d} function ae(a){return new Wd(function(b,c){c(a)})} Wd.prototype.then=function(a,b,c){return be(this,typeof a==="function"?a:null,typeof b==="function"?b:null,c)}; Wd.prototype.$goog_Thenable=!0;p=Wd.prototype;p.oc=function(a,b){return be(this,null,a,b)}; p.catch=Wd.prototype.oc;p.cancel=function(a){if(this.h==0){var b=new ce(a);Td(function(){de(this,b)},this)}}; function de(a,b){if(a.h==0)if(a.j){var c=a.j;if(c.i){for(var d=0,e=null,f=null,g=c.i;g&&(g.j||(d++,g.child==a&&(e=g),!(e&&d>1)));g=g.next)e||(f=g);e&&(c.h==0&&d==1?de(c,b):(f?(d=f,d.next==c.l&&(c.l=d),d.next=d.next.next):ee(c),fe(c,e,3,b)))}a.j=null}else Xd(a,3,b)} function ge(a,b){a.i||a.h!=2&&a.h!=3||he(a);a.l?a.l.next=b:a.i=b;a.l=b} function be(a,b,c,d){var e=$d(null,null,null);e.child=new Wd(function(f,g){e.i=b?function(h){try{var k=b.call(d,h);f(k)}catch(l){g(l)}}:f; e.h=c?function(h){try{var k=c.call(d,h);k===void 0&&h instanceof ce?g(h):f(k)}catch(l){g(l)}}:g}); e.child.j=a;ge(a,e);return e.child} p.cf=function(a){this.h=0;Xd(this,2,a)}; p.df=function(a){this.h=0;Xd(this,3,a)}; function Xd(a,b,c){if(a.h==0){a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself"));a.h=1;a:{var d=c,e=a.cf,f=a.df;if(d instanceof Wd){ge(d,$d(e||Dd,f||null,a));var g=!0}else{if(d)try{var h=!!d.$goog_Thenable}catch(l){h=!1}else h=!1;if(h)d.then(e,f,a),g=!0;else{if(Ra(d))try{var k=d.then;if(typeof k==="function"){ie(d,k,e,f,a);g=!0;break a}}catch(l){f.call(a,l);g=!0;break a}g=!1}}}g||(a.A=c,a.h=b,a.j=null,he(a),b!=3||c instanceof ce||je(a,c))}} function ie(a,b,c,d,e){function f(k){h||(h=!0,d.call(e,k))} function g(k){h||(h=!0,c.call(e,k))} var h=!1;try{b.call(a,g,f)}catch(k){f(k)}} function he(a){a.m||(a.m=!0,Td(a.Sd,a))} function ee(a){var b=null;a.i&&(b=a.i,a.i=b.next,b.next=null);a.i||(a.l=null);return b} p.Sd=function(){for(var a;a=ee(this);)fe(this,a,this.h,this.A);this.m=!1}; function fe(a,b,c,d){if(c==3&&b.h&&!b.j)for(;a&&a.v;a=a.j)a.v=!1;if(b.child)b.child.j=null,ke(b,c,d);else try{b.j?b.i.call(b.context):ke(b,c,d)}catch(e){le.call(null,e)}Cd(Zd,b)} function ke(a,b,c){b==2?a.i.call(a.context,c):a.h&&a.h.call(a.context,c)} function je(a,b){a.v=!0;Td(function(){a.v&&le.call(null,b)})} var le=Md;function ce(a){bb.call(this,a)} $a(ce,bb);ce.prototype.name="cancel";function me(a,b){yd.call(this);this.j=a||1;this.i=b||C;this.l=Xa(this.Ze,this);this.m=Za()} $a(me,yd);p=me.prototype;p.enabled=!1;p.Fa=null;p.setInterval=function(a){this.j=a;this.Fa&&this.enabled?(this.stop(),this.start()):this.Fa&&this.stop()}; p.Ze=function(){if(this.enabled){var a=Za()-this.m;a>0&&a2147483647?-1:C.setTimeout(a,b||0)} ;function oe(a){G.call(this);this.F=a;this.j=0;this.l=100;this.m=!1;this.i=new Map;this.A=new Set;this.flushInterval=3E4;this.h=new me(this.flushInterval);this.h.listen("tick",this.Aa,!1,this);Ec(this,this.h)} y(oe,G);p=oe.prototype;p.sendIsolatedPayload=function(a){this.m=a;this.l=1}; function pe(a){a.h.enabled||a.h.start();a.j++;a.j>=a.l&&a.Aa()} p.Aa=function(){var a=this.i.values();a=[].concat(la(a)).filter(function(b){return b.h.size}); a.length&&this.F.flush(a,this.m);qe(a);this.j=0;this.h.enabled&&this.h.stop()}; p.Ra=function(a){var b=B.apply(1,arguments);this.i.has(a)||this.i.set(a,new Ac(a,b))}; p.Fb=function(a){var b=B.apply(1,arguments);this.i.has(a)||this.i.set(a,new Bc(a,b))}; function re(a,b){return a.A.has(b)?void 0:a.i.get(b)} p.Bb=function(a){this.Fd(a,1,B.apply(1,arguments))}; p.Fd=function(a,b){var c=B.apply(2,arguments),d=re(this,a);d&&d instanceof Ac&&(d.i(b,c),pe(this))}; p.record=function(a,b){var c=B.apply(2,arguments),d=re(this,a);d&&d instanceof Bc&&(d.record(b,c),pe(this))}; function qe(a){for(var b=0;b>2];g=b[(g&3)<<4|h>>4];h=b[(h&15)<<2|k>>6];k=b[k&63];c[f++]=""+l+g+h+k}l=0;k=d;switch(a.length-e){case 2:l=a[e+1],k=b[(l&15)<<2]||d;case 1:a=a[e],c[f]=""+b[a>>2]+b[(a&3)<<4|l>>4]+k+d}return c.join("")} function Me(a){var b=a.length,c=b*3/4;c%3?c=Math.floor(c):"=.".indexOf(a[b-1])!=-1&&(c="=.".indexOf(a[b-2])!=-1?c-2:c-1);var d=new Uint8Array(c),e=0;Ne(a,function(f){d[e++]=f}); return e!==c?d.subarray(0,e):d} function Ne(a,b){function c(k){for(;d>4);g!=64&&(b(f<<4&240|g>>2),h!=64&&b(g<<6&192|h))}} function Le(){if(!Je){Je={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;c<5;c++){var d=a.concat(b[c].split(""));Ie[c]=d;for(var e=0;e>>0;$e=b;af=(a-b)/4294967296>>>0} function cf(a){if(a<0){bf(0-a);var b=x(df($e,af));a=b.next().value;b=b.next().value;$e=a>>>0;af=b>>>0}else bf(a)} function ef(a,b){b>>>=0;a>>>=0;if(b<=2097151)var c=""+(4294967296*b+a);else Ze()?c=""+(BigInt(b)<>>24|b<<8)&16777215,b=b>>16&65535,a=(a&16777215)+c*6777216+b*6710656,c+=b*8147497,b*=2,a>=1E7&&(c+=a/1E7>>>0,a%=1E7),c>=1E7&&(b+=c/1E7>>>0,c%=1E7),c=b+ff(c)+ff(a));return c} function ff(a){a=String(a);return"0000000".slice(a.length)+a} function gf(){var a=$e,b=af;b&2147483648?Ze()?a=""+(BigInt(b|0)<>>0)):(b=x(df(a,b)),a=b.next().value,b=b.next().value,a="-"+ef(a,b)):a=ef(a,b);return a} function df(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]} ;function hf(a){return Array.prototype.slice.call(a)} ;var jf=typeof Symbol==="function"&&typeof Symbol()==="symbol";function kf(a){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?Symbol():a} var lf=kf(),mf=kf("2ex"),nf=kf("1oa");Math.max.apply(Math,la(Object.values({qg:1,og:2,ng:4,tg:8,sg:16,rg:32,uf:64,vg:128,mg:256,lg:512,pg:1024,zf:2048,ug:4096,Af:8192})));var of=jf?function(a,b){a[lf]|=b}:function(a,b){a.Ua!==void 0?a.Ua|=b:Object.defineProperties(a,{Ua:{value:b, configurable:!0,writable:!0,enumerable:!1}})},pf=jf?function(a){return a[lf]|0}:function(a){return a.Ua|0},qf=jf?function(a){return a[lf]}:function(a){return a.Ua},rf=jf?function(a,b){a[lf]=b}:function(a,b){a.Ua!==void 0?a.Ua=b:Object.defineProperties(a,{Ua:{value:b, configurable:!0,writable:!0,enumerable:!1}})}; function sf(a,b){rf(b,(a|0)&-14591)} function tf(a,b){rf(b,(a|34)&-14557)} ;var uf={},vf={};function wf(a){return!(!a||typeof a!=="object"||a.h!==vf)} function xf(a){return a!==null&&typeof a==="object"&&!Array.isArray(a)&&a.constructor===Object} function yf(a,b,c){if(!Array.isArray(a)||a.length)return!1;var d=pf(a);if(d&1)return!0;if(!(b&&(Array.isArray(b)?b.includes(c):b.has(c))))return!1;rf(a,d|1);return!0} var zf,Af=[];rf(Af,55);zf=Object.freeze(Af);function Bf(a){if(a&2)throw Error();} Object.freeze({});Object.freeze({});var Cf=Object.freeze({});var Df;function Ef(){var a=Error();ec(a,"incident");Md(a)} function Ff(a){a=Error(a);ec(a,"warning");return a} ;function Gf(a){return a.displayName||a.name||"unknown type name"} function Hf(a){if(a!=null&&typeof a!=="boolean")throw Error("Expected boolean but got "+Pa(a)+": "+a);return a} var If=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;function Jf(a){var b=typeof a;return b==="number"?Number.isFinite(a):b!=="string"?!1:If.test(a)} function Kf(a){if(typeof a!=="number")throw Ff("int32");if(!Number.isFinite(a))throw Ff("int32");return a|0} function Lf(a){return a==null?a:Kf(a)} function Mf(a){if(a==null)return a;if(typeof a==="string"){if(!a)return;a=+a}if(typeof a==="number")return Number.isFinite(a)?a|0:void 0} function Nf(a){if(a!=null){var b=!!b;if(!Jf(a))throw Ff("int64");a=typeof a==="string"?Of(a):b?Pf(a):Qf(a)}return a} function Rf(a){return a[0]==="-"?a.length<20?!0:a.length===20&&Number(a.substring(0,7))>-922337:a.length<19?!0:a.length===19&&Number(a.substring(0,6))<922337} function Qf(a){Jf(a);a=Math.trunc(a);if(!Number.isSafeInteger(a)){cf(a);var b=$e,c=af;if(a=c&2147483648)b=~b+1>>>0,c=~c>>>0,b==0&&(c=c+1>>>0);b=c*4294967296+(b>>>0);a=a?-b:b}return a} function Pf(a){Jf(a);a=Math.trunc(a);if(Number.isSafeInteger(a))a=String(a);else{var b=String(a);Rf(b)?a=b:(cf(a),a=gf())}return a} function Of(a){Jf(a);var b=Math.trunc(Number(a));if(Number.isSafeInteger(b))return String(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));a.indexOf(".");if(!Rf(a)){if(a.length<16)cf(Number(a));else if(Ze())a=BigInt(a),$e=Number(a&BigInt(4294967295))>>>0,af=Number(a>>BigInt(32)&BigInt(4294967295));else{b=+(a[0]==="-");af=$e=0;for(var c=a.length,d=0+b,e=(c-b)%6+b;e<=c;d=e,e+=6)d=Number(a.slice(d,e)),af*=1E6,$e=$e*1E6+d,$e>=4294967296&&(af+=Math.trunc($e/4294967296),af>>>=0,$e>>>=0);b&&(b=x(df($e,af)), a=b.next().value,b=b.next().value,$e=a,af=b)}a=gf()}return a} function Sf(a){if(typeof a!=="string")throw Error();return a} function Tf(a){if(a!=null&&typeof a!=="string")throw Error();return a} function Uf(a,b){if(!(a instanceof b))throw Error("Expected instanceof "+Gf(b)+" but got "+(a&&Gf(a.constructor)));} function Vf(a,b,c){if(a!=null&&typeof a==="object"&&a.Cc===uf)return a;if(Array.isArray(a)){var d=pf(a),e=d;e===0&&(e|=c&32);e|=c&2;e!==d&&rf(a,e);return new b(a)}} ;var Wf;function Xf(a,b){pf(b);Wf=b;a=new a(b);Wf=void 0;return a} function J(a,b,c){a==null&&(a=Wf);Wf=void 0;if(a==null){var d=96;c?(a=[c],d|=512):a=[];b&&(d=d&-16760833|(b&1023)<<14)}else{if(!Array.isArray(a))throw Error("narr");d=pf(a);if(d&2048)throw Error("farr");if(d&64)return a;d|=64;if(c&&(d|=512,c!==a[0]))throw Error("mid");a:{c=a;var e=c.length;if(e){var f=e-1;if(xf(c[f])){d|=256;b=f-(+!!(d&512)-1);if(b>=1024)throw Error("pvtlmt");d=d&-16760833|(b&1023)<<14;break a}}if(b){b=Math.max(b,e-(+!!(d&512)-1));if(b>1024)throw Error("spvt");d=d&-16760833|(b&1023)<< 14}}}rf(a,d);return a} ;function Yf(a){if(typeof Proxy!=="function")return a;var b=Zf(a);if(b)return b;b=new Proxy(a,{set:function(c,d,e){$f();c[d]=e;return!0}}); ag(a,b);return b} function $f(){Ef()} var bg=void 0,cg=void 0;function Zf(a){var b;return(b=bg)==null?void 0:b.get(a)} function dg(a){var b;return((b=cg)==null?void 0:b.get(a))||a} function ag(a,b){(bg||(bg=new WeakMap)).set(a,b);(cg||(cg=new WeakMap)).set(b,a)} ;function eg(a,b){return fg(b)} function fg(a){switch(typeof a){case "number":return isFinite(a)?a:String(a);case "boolean":return a?1:0;case "object":if(a)if(Array.isArray(a)){if(yf(a,void 0,0))return}else{if(Ue(a))return Qe(a);if(a instanceof Ye){var b=a.h;return b==null?"":typeof b==="string"?b:a.h=Qe(b)}}}return a} ;function gg(a,b,c){a=hf(a);var d=a.length,e=b&256?a[d-1]:void 0;d+=e?-1:0;for(b=b&512?1:0;b=a.length||b>=c))return a[b]} function og(a,b,c,d){if(c===-1)return null;var e=b>>14&1023||536870912;if(c>=e){if(b&256)return a[a.length-1][c]}else{var f=a.length;if(d&&b&256&&(d=a[f-1][c],d!=null)){if(pg(a,b,e,c)&&mf!=null){var g;a=(g=Df)!=null?g:Df={};g=a[mf]||0;g>=4||(a[mf]=g+1,Ef())}return d}return pg(a,b,e,c)}} function K(a,b,c){var d=a.D,e=qf(d);Bf(e);qg(d,e,b,c);return a} function qg(a,b,c,d,e){xf(d);var f=b>>14&1023||536870912;if(c>=f||e&&!Kc){var g=b;if(b&256)e=a[a.length-1];else{if(d==null)return g;e=a[f+(+!!(b&512)-1)]={};g|=256}e[c]=d;c=0;m--){var r=c[m];d&&m===c.length-1&&r===d||(l++,r!=null&&k++)}if(d)for(var t in d)m=+t,isNaN(m)||(n+=Wg(m),h++,m>g&&(g=m));l=e(l,k)+f(h,g,n);t=k;m=h;r=g;for(var v=n,u=c.length-1;u>=0;u--){var z=c[u];if(!(z==null||d&&u===c.length-1&&z===d)){z=u-b;var F=e(z,t)+f(m,r,v);F= 1024||(m--,t++,v-=H.length,g=e(d,t)+f(m,r,v),g1?a-1:0)} function Ug(a,b){return(a>1?a-1:0)+(a-b)*4} function Sg(a,b){return a==0?0:9*Math.max(1<<32-Math.clz32(a+a/2-1),4)<=b?a==0?0:a<4?100+(a-1)*16:a<6?148+(a-4)*16:a<12?244+(a-6)*16:a<22?436+(a-12)*19:a<44?820+(a-22)*17:52+32*a:40+4*b} function Rg(a){return 40+4*a} function Wg(a){return a>=100?a>=1E4?Math.ceil(Math.log10(1+a)):a<1E3?3:4:a<10?1:2} ;var Xg,Yg;function L(a,b,c){this.D=J(a,b,c)} p=L.prototype;p.toJSON=function(){return Zg(this)}; p.serialize=function(a){try{return Yg=!0,a&&(Xg=a===Mg||a!==Lg&&a!==Ng&&a!==Tg?Mg:a),JSON.stringify(Zg(this),eg)}finally{a&&(Xg=void 0),Yg=!1}}; function $g(a,b){if(b==null||b=="")return new a;b=JSON.parse(b);if(!Array.isArray(b))throw Error("dnarr");of(b,32);return Xf(a,b)} p.clone=function(){var a=this.D,b=qf(a);return Xf(this.constructor,lg(a,b,!1))}; p.Cc=uf;p.toString=function(){try{return Yg=!0,Zg(this).toString()}finally{Yg=!1}}; function Zg(a){var b;Yg?b=a.D:b=ig(a.D,jg,void 0,void 0,!1);var c=!Yg;var d=Jc?void 0:a.constructor.Qa;var e=qf(c?a.D:b);if(a=b.length){var f=b[a-1],g=xf(f);g?a--:f=void 0;var h=+!!(e&512)-1,k=a-h,l=!!Xg&&Kc&&!(e&512),n;e=(n=Xg)!=null?n:Mg;e=l?e(k,h,b,f):k;k=(n=l&&k!==e)?Array.prototype.slice.call(b,0,a):b;if(g||n){b:{var m=k;var r=f;g={};l=!1;if(n)for(var t=Math.max(0,e+h);t0;a--){F=a-1;z=k[F];F-=h;if(!(z==null||yf(z,d,F)||wf(z)&&z.size===0))break;var H=!0}if(k!==b||m||H){if(!n&&!c)k=Array.prototype.slice.call(k,0,a);else if(H||m||r)k.length=a;r&&k.push(r)}H=k}else H=b;return H} ;function ah(a){a.Fg=!0;return a} ;function bh(a){this.D=J(a)} y(bh,L);bh.Qa=[1,2,3,4];var ch={toString:function(a){var b=[],c=0;a-=-2147483648;b[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(a%52);for(a=Math.floor(a/52);a>0;)b[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(a%62),a=Math.floor(a/62);return b.join("")}};function dh(a){function b(){c-=d;c-=e;c^=e>>>13;d-=e;d-=c;d^=c<<8;e-=c;e-=d;e^=d>>>13;c-=d;c-=e;c^=e>>>12;d-=e;d-=c;d^=c<<16;e-=c;e-=d;e^=d>>>5;c-=d;c-=e;c^=e>>>3;d-=e;d-=c;d^=c<<10;e-=c;e-=d;e^=d>>>15} a=eh(a);for(var c=2654435769,d=2654435769,e=314159265,f=a.length,g=f,h=0;g>=12;g-=12,h+=12)c+=fh(a,h),d+=fh(a,h+4),e+=fh(a,h+8),b();e+=f;switch(g){case 11:e+=a[h+10]<<24;case 10:e+=a[h+9]<<16;case 9:e+=a[h+8]<<8;case 8:d+=a[h+7]<<24;case 7:d+=a[h+6]<<16;case 6:d+=a[h+5]<<8;case 5:d+=a[h+4];case 4:c+=a[h+3]<<24;case 3:c+=a[h+2]<<16;case 2:c+=a[h+1]<<8;case 1:c+=a[h+0]}b();return ch.toString(e)} function eh(a){for(var b=[],c=0;c>>31)&4294967295;m=e[0];var v=e[1],u=e[2],z=e[3],F=e[4];for(t=0;t<80;t++){if(t<40)if(t<20){var H=z^v&(u^z);var O=1518500249}else H=v^u^z,O=1859775393;else t<60?(H=v&u|z&(v|u),O=2400959708):(H=v^u^z,O=3395469782);H=((m<<5|m>>>27)&4294967295)+H+F+O+r[t]&4294967295;F=z;z=u;u=(v<<30|v>>>2)&4294967295;v=m;m=H}e[0]=e[0]+m&4294967295;e[1]=e[1]+v&4294967295;e[2]= e[2]+u&4294967295;e[3]=e[3]+z&4294967295;e[4]=e[4]+F&4294967295} function c(m,r){if(typeof m==="string"){m=unescape(encodeURIComponent(m));for(var t=[],v=0,u=m.length;v=56;t--)f[t]=r&255,r>>>=8;b(f);for(t=r=0;t<5;t++)for(var v=24;v>=0;v-=8)m[r++]=e[t]>>v&255;return m} for(var e=[],f=[],g=[],h=[128],k=1;k<64;++k)h[k]=0;var l,n;a();return{reset:a,update:c,digest:d,Od:function(){for(var m=d(),r="",t=0;t=0;a--)this.remove(b[a])}; var uh=new th(typeof document=="undefined"?null:document);function vh(a){return!!sh.FPA_SAMESITE_PHASE2_MOD||!(a===void 0||!a)} function wh(a){a=a===void 0?!1:a;var b=C.__SAPISID||C.__APISID||C.__3PSAPISID||C.__OVERRIDE_SID;vh(a)&&(b=b||C.__1PSAPISID);if(b)return!0;if(typeof document!=="undefined"){var c=new th(document);b=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID");vh(a)&&(b=b||c.get("__Secure-1PAPISID"))}return!!b} function xh(a,b,c,d){(a=C[a])||typeof document==="undefined"||(a=(new th(document)).get(b));return a?ph(a,c,d):null} function yh(a,b){b=b===void 0?!1:b;var c=nh(String(C.location.href)),d=[];if(wh(b)){c=c.indexOf("https:")==0||c.indexOf("chrome-extension:")==0||c.indexOf("chrome-untrusted://new-tab-page")==0||c.indexOf("moz-extension:")==0;var e=c?C.__SAPISID:C.__APISID;e||typeof document==="undefined"||(e=new th(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?ph(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e);c&&vh(b)&&((b=xh("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b), (a=xh("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",a))&&d.push(a))}return d.length==0?null:d.join(" ")} ;function zh(a){this.D=J(a)} y(zh,L);zh.Qa=[2];function Ah(a,b){this.intervalMs=a;this.callback=b;this.enabled=!1;this.h=function(){return Za()}; this.i=this.h()} Ah.prototype.setInterval=function(a){this.intervalMs=a;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()}; Ah.prototype.start=function(){var a=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){a.tick()},this.intervalMs),this.i=this.h())}; Ah.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)}; Ah.prototype.tick=function(){var a=this;if(this.enabled){var b=Math.max(this.h()-this.i,0);b0&&(this.j.splice(0,b),this.m+=b);this.j.push(a);this.Ib||this.h.enabled||this.h.start()}}; p.flush=function(a,b){var c=this;if(this.j.length===0)a&&a();else{var d=Date.now();if(this.ga>d&&this.T0&&(c.T=Date.now(),c.ga=c.T+k),l=Th.ctor?Th.h(l,Th.ctor,175237375,!0):Th.h(l,175237375,null,!0),l=l===null?void 0:l)&&(k=-1,k=k===void 0?0:k,l=Gg(Mf(ng(l,1)),k),l!==-1&&(c.l=new Dh(l<1?1:l),c.h.setInterval(c.l.getValue())))}a&&a();c.K=0}; h=function(k,l){var n=e.D,m=qf(n);var r=m;var t=!(2&m),v=(m=!!(2&r))?1:2;t&&(t=!m);m=og(n,r,3);m=Array.isArray(m)?m:zf;var u=pf(m),z=!!(4&u);if(!z){var F=u;F===0&&(F=wg(F,r));u=m;F|=1;var H=r,O=!!(2&F);O&&(H|=2);for(var S=!O,da=!0,ta=0,P=0;ta=0)||d||e||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b=x(c);for(d=b.next();!d.done;d=b.next())c=x(d.value),d=c.next().value,c=c.next().value,this.U.setRequestHeader(d,c);this.xa&&(this.U.responseType=this.xa);"withCredentials"in this.U&&this.U.withCredentials!==this.ia&&(this.U.withCredentials=this.ia);try{xi(this),this.F>0&&(this.getStatus(),this.A=ne(this.bf,this.F,this)),this.getStatus(),this.m=!0,this.U.send(a),this.m= !1}catch(g){this.getStatus(),wi(this,g)}}; p.bf=function(){typeof Na!="undefined"&&this.U&&(this.l="Timed out after "+this.F+"ms, aborting",this.getStatus(),zd(this,"timeout"),this.abort(8))}; function wi(a,b){a.i=!1;a.U&&(a.j=!0,a.U.abort(),a.j=!1);a.l=b;yi(a);zi(a)} function yi(a){a.T||(a.T=!0,zd(a,"complete"),zd(a,"error"))} p.abort=function(){this.U&&this.i&&(this.getStatus(),this.i=!1,this.j=!0,this.U.abort(),this.j=!1,zd(this,"complete"),zd(this,"abort"),zi(this))}; p.X=function(){this.U&&(this.i&&(this.i=!1,this.j=!0,this.U.abort(),this.j=!1),zi(this,!0));ri.Ba.X.call(this)}; p.jd=function(){this.V||(this.Z||this.m||this.j?Ai(this):this.te())}; p.te=function(){Ai(this)}; function Ai(a){if(a.i&&typeof Na!="undefined")if(a.K[1]&&Bi(a)==4&&a.getStatus()==2)a.getStatus();else if(a.m&&Bi(a)==4)ne(a.jd,0,a);else if(zd(a,"readystatechange"),a.isComplete()){a.getStatus();a.i=!1;try{if(Ci(a))zd(a,"complete"),zd(a,"success");else{try{var b=Bi(a)>2?a.U.statusText:""}catch(c){b=""}a.l=b+" ["+a.getStatus()+"]";yi(a)}}finally{zi(a)}}} function zi(a,b){if(a.U){xi(a);var c=a.U,d=a.K[0]?function(){}:null; a.U=null;a.K=null;b||zd(a,"ready");try{c.onreadystatechange=d}catch(e){}}} function xi(a){a.A&&(C.clearTimeout(a.A),a.A=null)} p.isActive=function(){return!!this.U}; p.isComplete=function(){return Bi(this)==4}; function Ci(a){var b=a.getStatus();a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var c=!0;break a;default:c=!1}if(!c){if(b=b===0)a=nc(1,String(a.da)),!a&&C.self&&C.self.location&&(a=C.self.location.protocol.slice(0,-1)),b=!si.test(a?a.toLowerCase():"");c=b}return c} function Bi(a){return a.U?a.U.readyState:0} p.getStatus=function(){try{return Bi(this)>2?this.U.status:-1}catch(a){return-1}}; p.getLastError=function(){return typeof this.l==="string"?this.l:String(this.l)};function Di(){} Di.prototype.send=function(a,b,c){b=b===void 0?function(){}:b; c=c===void 0?function(){}:c; vi(a.url,function(d){d=d.target;if(Ci(d)){try{var e=d.U?d.U.responseText:""}catch(f){e=""}b(e)}else c(d.getStatus())},a.requestType,a.body,a.pd,a.timeoutMillis,a.withCredentials)}; Di.prototype.dc=function(){return 1};function Ei(a,b,c){this.logger=a;this.event=b;if(c===void 0||c)this.h=Fi()} Ei.prototype.start=function(){this.h=Fi()}; Ei.prototype.done=function(){this.h!=null&&this.logger.ub(this.event,Fi()-this.h)}; function Gi(){} p=Gi.prototype;p.zc=function(){}; p.ub=function(){}; p.ed=function(a,b){a=a();this.ub(b,0);return a}; p.Ha=function(){}; p.Aa=function(){}; function Hi(a,b,c,d){c=c===void 0?"":c;G.call(this);this.Ea=b;this.A=c;this.l=new Map;this.i=new Map;b=new gi(1828,"0");b.h="22";b.network=new Di;d&&(c=new bh,d=vg(c,d,Kf),b.i=d);this.m=new ii(1828,"","",!1,"",hi(b));this.h=new oe(this.m);this.h.l=1E5;d=this.h;d.flushInterval=3E4;d.h.setInterval(3E4);this.da=new ue(this.h);this.ga=new xe(this.h);this.ia=new ye(this.h);this.Z=new te(this.h);this.F=new ve(this.h);this.K=new we(this.h);this.errorCount=new Be(this.h);this.T=new Ae(this.h);new ze(this.h); new Ce(this.h);new De(this.h);new Ee(this.h);this.j=a?dh(a):"";a=new se(this.h);this.l.set("h",1);this.l.set("u",2);this.l.set("k",3);this.i.set(25,1);this.i.set(26,2);this.i.set(27,3);this.i.set(28,4);a.h.Bb("/client_streamz/bg/fic",this.Ea);Ec(this,this.m);Ec(this,this.h)} y(Hi,G);p=Hi.prototype;p.zc=function(){this.ga.h.Bb("/client_streamz/bg/fsc",this.j,this.Ea)}; p.ub=function(a,b){if(a==="t")this.da.record(b,this.j,this.Ea);else if(a==="n")this.ia.record(b,this.j,this.Ea);else if(a==="h"||a==="u"||a==="k"){if(a=this.l.get(a))this.F.h.Bb("/client_streamz/bg/fcc",a,this.Ea),this.K.record(b,a,this.Ea)}else this.T.record(b,a,"",this.A,this.Ea)}; p.ed=function(a,b){var c=Fi();a=a();this.ub(b,Fi()-c);return a}; p.Ha=function(a){var b=this.i.get(a);b?this.Z.h.Bb("/client_streamz/bg/fiec",this.j,this.Ea,b):this.errorCount.h.Bb("/client_streamz/bg/cec",a,"",this.A,this.Ea)}; p.Aa=function(){this.h.Aa()}; function Fi(){var a,b,c;return(c=(a=globalThis.performance)==null?void 0:(b=a.now)==null?void 0:b.call(a))!=null?c:Date.now()} ;function Ii(a){this.D=J(a,0,"bfkj")} y(Ii,L);var Ji=function(a){return ah(function(b){return b instanceof a&&!(pf(b.D)&2)})}(Ii);function Ki(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})} ;function Li(a){function b(m,r,t){Promise.resolve().then(function(){l.done();d.ea.Aa();k.resolve({Jd:m,Ue:r,Lg:t})})} function c(m,r,t,v){var u="k";r?u="h":t&&(u="u");u!=="k"?v!==0&&d.ea.ub(u,m):d.h<=0?(d.ea.ub(u,m),d.h=Math.floor(Math.random()*200)):d.h--} G.call(this);var d=this;this.h=Math.floor(Math.random()*200);if("challenge"in a&&Ji(a.challenge)){var e=Hg(a.challenge,4);var f=Hg(a.challenge,5)}else e=a.program,f=a.ae;var g=new G;this.addOnDisposeCallback(function(){d.i.then(function(m){m=m.Ue;d.ea.Aa();m==null||m();g.dispose()})}); if(a.Ae!==!1)if(a.ea)this.ea=a.ea;else{var h;Ec(g,this.ea=new Hi(f,(h=a.Ea)!=null?h:"_"))}else this.ea=new Gi;var k=new Ki;this.i=k.promise;var l=new Ei(this.ea,"t",!1);if(!C[f])throw this.ea.Ha(25),this.ea.Aa(),Error("EGOU");if(!C[f].a)throw this.ea.Ha(26),this.ea.Aa(),Error("ELIU");try{var n=C[f].a;l.start();this.j=x(n(e,b,!0,a.Vg,c)).next().value;this.Te=k.promise.then(function(){})}catch(m){throw this.ea.Ha(28),this.ea.Aa(),m; }} y(Li,G);Li.prototype.snapshot=function(a){var b=this;if(this.V)throw Error("Already disposed");this.ea.zc();return this.i.then(function(c){var d=c.Jd;return new Promise(function(e){var f=new Ei(b.ea,"n");d(function(g){f.done();b.ea.Aa();e(g)},[a.Uc, a.Ve,a.gf,a.We])})})}; Li.prototype.vd=function(a){var b=this;if(this.V)throw Error("Already disposed");this.ea.zc();var c=this.ea.ed(function(){return b.j([a.Uc,a.Ve,a.gf,a.We])},"n"); this.ea.Aa();return c};var Mi=window;ib("csi.gstatic.com");ib("googleads.g.doubleclick.net");ib("partner.googleadservices.com");ib("pubads.g.doubleclick.net");ib("securepubads.g.doubleclick.net");ib("tpc.googlesyndication.com");function Ni(a){var b=Oi;if(b)for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&a(b[c],c,b)} function Pi(){var a=[];Ni(function(b){a.push(b)}); return a} var Oi={hf:"allow-forms",jf:"allow-modals",kf:"allow-orientation-lock",lf:"allow-pointer-lock",mf:"allow-popups",nf:"allow-popups-to-escape-sandbox",pf:"allow-presentation",qf:"allow-same-origin",rf:"allow-scripts",sf:"allow-top-navigation",tf:"allow-top-navigation-by-user-activation"},Qi=Ed(function(){return Pi()}); function Ri(){var a=Si(),b={};Db(Qi(),function(c){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(c)&&(b[c]=!0)}); return b} function Si(){var a=a===void 0?document:a;return a.createElement("iframe")} ;function Ti(a){typeof a=="number"&&(a=Math.round(a)+"px");return a} ;var Ui=(new Date).getTime();function Vi(){var a=Wi;return ah(function(b){for(var c in a)if(b===a[c]&&!/^[0-9]+$/.test(c))return!0;return!1})} ;function Xi(a){yd.call(this);var b=this;this.A=this.j=0;this.Da=a!=null?a:{pa:function(e,f){return setTimeout(e,f)}, qa:function(e){clearTimeout(e)}}; var c,d;this.i=(d=(c=window.navigator)==null?void 0:c.onLine)!=null?d:!0;this.l=function(){return A(function(e){return e.yield(Yi(b),0)})}; window.addEventListener("offline",this.l);window.addEventListener("online",this.l);this.A||Zi(this)} y(Xi,yd);function $i(){var a=aj;Xi.h||(Xi.h=new Xi(a));return Xi.h} Xi.prototype.dispose=function(){window.removeEventListener("offline",this.l);window.removeEventListener("online",this.l);this.Da.qa(this.A);delete Xi.h}; Xi.prototype.va=function(){return this.i}; function Zi(a){a.A=a.Da.pa(function(){var b;return A(function(c){if(c.h==1)return a.i?((b=window.navigator)==null?0:b.onLine)?c.B(3):c.yield(Yi(a),3):c.yield(Yi(a),3);Zi(a);c.h=0})},3E4)} function Yi(a,b){return a.m?a.m:a.m=new Promise(function(c){var d,e,f,g;return A(function(h){switch(h.h){case 1:return d=window.AbortController?new window.AbortController:void 0,f=(e=d)==null?void 0:e.signal,g=!1,Aa(h,2,3),d&&(a.j=a.Da.pa(function(){d.abort()},b||2E4)),h.yield(fetch("/generate_204",{method:"HEAD", signal:f}),5);case 5:g=!0;case 3:h.K=[h.j];h.l=0;h.v=0;a.m=void 0;a.j&&(a.Da.qa(a.j),a.j=0);g!==a.i&&(a.i=g,a.i?zd(a,"networkstatus-online"):zd(a,"networkstatus-offline"));c(g);Ca(h);break;case 2:Ba(h),g=!1,h.B(3)}})})} ;function bj(){this.data=[];this.h=-1} bj.prototype.set=function(a,b){b=b===void 0?!0:b;0<=a&&a<52&&Number.isInteger(a)&&this.data[a]!==b&&(this.data[a]=b,this.h=-1)}; bj.prototype.get=function(a){return!!this.data[a]}; function cj(a){a.h===-1&&(a.h=a.data.reduce(function(b,c,d){return b+(c?Math.pow(2,d):0)},0)); return a.h} ;function dj(){this.blockSize=-1} ;function ej(){this.blockSize=-1;this.blockSize=64;this.h=[];this.v=[];this.m=[];this.j=[];this.j[0]=128;for(var a=1;a>>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;e<80;e++){if(e<40)if(e<20){f=h^c&(g^h);var l=1518500249}else f=c^g^h,l=1859775393;else e<60?(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} ej.prototype.update=function(a,b){if(a!=null){b===void 0&&(b=a.length);for(var c=b-this.blockSize,d=0,e=this.v,f=this.i;d=56;c--)this.v[c]=b&255,b/=256;fj(this,this.v);for(c=b=0;c<5;c++)for(var d=24;d>=0;d-=8)a[b]=this.h[c]>>d&255,++b;return a};function gj(a){return typeof a.className=="string"?a.className:a.getAttribute&&a.getAttribute("class")||""} function hj(a,b){typeof a.className=="string"?a.className=b:a.setAttribute&&a.setAttribute("class",b)} function ij(a,b){a.classList?b=a.classList.contains(b):(a=a.classList?a.classList:gj(a).match(/\S+/g)||[],b=Cb(a,b)>=0);return b} function jj(){var a=document.body;a.classList?a.classList.remove("inverted-hdpi"):ij(a,"inverted-hdpi")&&hj(a,Array.prototype.filter.call(a.classList?a.classList:gj(a).match(/\S+/g)||[],function(b){return b!="inverted-hdpi"}).join(" "))} ;function kj(){} kj.prototype.next=function(){return lj}; var lj={done:!0,value:void 0};kj.prototype.mb=function(){return this};function mj(a){if(a instanceof nj||a instanceof oj||a instanceof pj)return a;if(typeof a.next=="function")return new nj(function(){return a}); if(typeof a[Symbol.iterator]=="function")return new nj(function(){return a[Symbol.iterator]()}); if(typeof a.mb=="function")return new nj(function(){return a.mb()}); throw Error("Not an iterator or iterable.");} function nj(a){this.h=a} nj.prototype.mb=function(){return new oj(this.h())}; nj.prototype[Symbol.iterator]=function(){return new pj(this.h())}; nj.prototype.i=function(){return new pj(this.h())}; function oj(a){this.h=a} y(oj,kj);oj.prototype.next=function(){return this.h.next()}; oj.prototype[Symbol.iterator]=function(){return new pj(this.h)}; oj.prototype.i=function(){return new pj(this.h)}; function pj(a){nj.call(this,function(){return a}); this.j=a} y(pj,nj);pj.prototype.next=function(){return this.j.next()};function M(a){G.call(this);this.m=1;this.j=[];this.l=0;this.h=[];this.i={};this.A=!!a} $a(M,G);p=M.prototype;p.subscribe=function(a,b,c){var d=this.i[a];d||(d=this.i[a]=[]);var e=this.m;this.h[e]=a;this.h[e+1]=b;this.h[e+2]=c;this.m=e+3;d.push(e);return e}; p.unsubscribe=function(a,b,c){if(a=this.i[a]){var d=this.h;if(a=a.find(function(e){return d[e+1]==b&&d[e+2]==c}))return this.Cb(a)}return!1}; p.Cb=function(a){var b=this.h[a];if(b){var c=this.i[b];this.l!=0?(this.j.push(a),this.h[a+1]=function(){}):(c&&Ib(c,a),delete this.h[a],delete this.h[a+1],delete this.h[a+2])}return!!b}; p.Ya=function(a,b){var c=this.i[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e0&&this.l==0)for(;c=this.j.pop();)this.Cb(c)}}return e!=0}return!1}; function qj(a,b,c){Td(function(){a.apply(b,c)})} p.clear=function(a){if(a){var b=this.i[a];b&&(b.forEach(this.Cb,this),delete this.i[a])}else this.h.length=0,this.i={}}; p.X=function(){M.Ba.X.call(this);this.clear();this.j.length=0};function rj(a){this.h=a} rj.prototype.set=function(a,b){b===void 0?this.h.remove(a):this.h.set(a,(new ji).serialize(b))}; rj.prototype.get=function(a){try{var b=this.h.get(a)}catch(c){return}if(b!==null)try{return JSON.parse(b)}catch(c){throw"Storage: Invalid value was encountered";}}; rj.prototype.remove=function(a){this.h.remove(a)};function sj(a){this.h=a} $a(sj,rj);function tj(a){this.data=a} function uj(a){return a===void 0||a instanceof tj?a:new tj(a)} sj.prototype.set=function(a,b){sj.Ba.set.call(this,a,uj(b))}; sj.prototype.i=function(a){a=sj.Ba.get.call(this,a);if(a===void 0||a instanceof Object)return a;throw"Storage: Invalid value was encountered";}; sj.prototype.get=function(a){if(a=this.i(a)){if(a=a.data,a===void 0)throw"Storage: Invalid value was encountered";}else a=void 0;return a};function vj(a){this.h=a} $a(vj,sj);vj.prototype.set=function(a,b,c){if(b=uj(b)){if(c){if(cZa())vj.prototype.remove.call(this,a);else return b}};function wj(){} ;function xj(){} $a(xj,wj);xj.prototype[Symbol.iterator]=function(){return mj(this.mb(!0)).i()}; xj.prototype.clear=function(){var a=Array.from(this);a=x(a);for(var b=a.next();!b.done;b=a.next())this.remove(b.value)};function yj(a){this.h=a;this.i=null} $a(yj,xj);p=yj.prototype;p.isAvailable=function(){var a=this.h;if(a)try{a.setItem("__sak","1");a.removeItem("__sak");var b=!0}catch(c){b=c instanceof DOMException&&(c.name==="QuotaExceededError"||c.code===22||c.code===1014||c.name==="NS_ERROR_DOM_QUOTA_REACHED")&&a&&a.length!==0}else b=!1;return this.i=b}; p.set=function(a,b){zj(this);try{this.h.setItem(a,b)}catch(c){if(this.h.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}}; p.get=function(a){zj(this);a=this.h.getItem(a);if(typeof a!=="string"&&a!==null)throw"Storage mechanism: Invalid value was encountered";return a}; p.remove=function(a){zj(this);this.h.removeItem(a)}; p.mb=function(a){zj(this);var b=0,c=this.h,d=new kj;d.next=function(){if(b>=c.length)return lj;var e=c.key(b++);if(a)return{value:e,done:!1};e=c.getItem(e);if(typeof e!=="string")throw"Storage mechanism: Invalid value was encountered";return{value:e,done:!1}}; return d}; p.clear=function(){zj(this);this.h.clear()}; p.key=function(a){zj(this);return this.h.key(a)}; function zj(a){if(a.h==null)throw Error("Storage mechanism: Storage unavailable");var b;((b=a.i)!=null?b:a.isAvailable())||Md(Error("Storage mechanism: Storage unavailable"))} ;function Aj(){var a=null;try{a=C.localStorage||null}catch(b){}yj.call(this,a)} $a(Aj,yj);function Bj(a,b){this.i=a;this.h=b+"::"} $a(Bj,xj);Bj.prototype.set=function(a,b){this.i.set(this.h+a,b)}; Bj.prototype.get=function(a){return this.i.get(this.h+a)}; Bj.prototype.remove=function(a){this.i.remove(this.h+a)}; Bj.prototype.mb=function(a){var b=this.i[Symbol.iterator](),c=this,d=new kj;d.next=function(){var e=b.next();if(e.done)return e;for(e=e.value;e.slice(0,c.h.length)!=c.h;){e=b.next();if(e.done)return e;e=e.value}return{value:a?e.slice(c.h.length):c.i.get(e),done:!1}}; return d};/* (The MIT License) Copyright (C) 2014 by Vitaly Puzrin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ----------------------------------------------------------------------------- Ported from zlib, which is under the following license https://github.com/madler/zlib/blob/master/zlib.h zlib.h -- interface of the 'zlib' general purpose compression library version 1.2.8, April 28th, 2013 Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. Jean-loup Gailly Mark Adler jloup@gzip.org madler@alumni.caltech.edu The data format used by the zlib library is described by RFCs (Request for Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950 (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format). */ var N={},Cj=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";N.assign=function(a){for(var b=Array.prototype.slice.call(arguments,1);b.length;){var c=b.shift();if(c){if(typeof c!=="object")throw new TypeError(c+"must be non-object");for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}}return a}; N.Kc=function(a,b){if(a.length===b)return a;if(a.subarray)return a.subarray(0,b);a.length=b;return a}; var Dj={nb:function(a,b,c,d,e){if(b.subarray&&a.subarray)a.set(b.subarray(c,c+d),e);else for(var f=0;f>>6:(f<65536?h[c++]=224|f>>>12:(h[c++]=240|f>>>18,h[c++]=128|f>>>12&63),h[c++]=128|f>>> 6&63),h[c++]=128|f&63);return h} ;var Hj={};Hj=function(a,b,c,d){var e=a&65535|0;a=a>>>16&65535|0;for(var f;c!==0;){f=c>2E3?2E3:c;c-=f;do e=e+b[d++]|0,a=a+e|0;while(--f);e%=65521;a%=65521}return e|a<<16|0};for(var Ij={},Jj,Kj=[],Lj=0;Lj<256;Lj++){Jj=Lj;for(var Mj=0;Mj<8;Mj++)Jj=Jj&1?3988292384^Jj>>>1:Jj>>>1;Kj[Lj]=Jj}Ij=function(a,b,c,d){c=d+c;for(a^=-1;d>>8^Kj[(a^b[d])&255];return a^-1};var Nj={};Nj={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};function Oj(a){for(var b=a.length;--b>=0;)a[b]=0} var Pj=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Qj=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Rj=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Sj=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Tj=Array(576);Oj(Tj);var Uj=Array(60);Oj(Uj);var Vj=Array(512);Oj(Vj);var Wj=Array(256);Oj(Wj);var Xj=Array(29);Oj(Xj);var Yj=Array(30);Oj(Yj);function Zj(a,b,c,d,e){this.wd=a;this.Vd=b;this.Ud=c;this.Pd=d;this.qe=e;this.bd=a&&a.length} var ak,bk,ck;function dk(a,b){this.Wc=a;this.wb=0;this.Wa=b} function ek(a,b){a.aa[a.pending++]=b&255;a.aa[a.pending++]=b>>>8&255} function fk(a,b,c){a.ja>16-c?(a.oa|=b<>16-a.ja,a.ja+=c-16):(a.oa|=b<>>=1,c<<=1;while(--b>0);return c>>>1} function ik(a,b,c){var d=Array(16),e=0,f;for(f=1;f<=15;f++)d[f]=e=e+c[f-1]<<1;for(c=0;c<=b;c++)e=a[c*2+1],e!==0&&(a[c*2]=hk(d[e]++,e))} function jk(a){var b;for(b=0;b<286;b++)a.ra[b*2]=0;for(b=0;b<30;b++)a.bb[b*2]=0;for(b=0;b<19;b++)a.ka[b*2]=0;a.ra[512]=1;a.Pa=a.Ab=0;a.ya=a.matches=0} function kk(a){a.ja>8?ek(a,a.oa):a.ja>0&&(a.aa[a.pending++]=a.oa);a.oa=0;a.ja=0} function lk(a,b,c){kk(a);ek(a,c);ek(a,~c);N.nb(a.aa,a.window,b,c,a.pending);a.pending+=c} function mk(a,b,c,d){var e=b*2,f=c*2;return a[e]>>7)];gk(a,g,c);h=Qj[g];h!==0&&(e-=Yj[g],fk(a,e,h))}}while(d>1;g>=1;g--)nk(a,c,g);k=f;do g=a.ba[1],a.ba[1]=a.ba[a.Na--],nk(a,c,1),d=a.ba[1],a.ba[--a.qb]=g,a.ba[--a.qb]=d,c[k*2]=c[g*2]+c[d*2],a.depth[k]=(a.depth[g]>=a.depth[d]?a.depth[g]:a.depth[d])+1,c[g*2+1]=c[d*2+1]=k,a.ba[1]=k++,nk(a,c,1);while(a.Na>= 2);a.ba[--a.qb]=a.ba[1];g=b.Wc;k=b.wb;d=b.Wa.wd;e=b.Wa.bd;f=b.Wa.Vd;var l=b.Wa.Ud,n=b.Wa.qe,m,r=0;for(m=0;m<=15;m++)a.Ka[m]=0;g[a.ba[a.qb]*2+1]=0;for(b=a.qb+1;b<573;b++){var t=a.ba[b];m=g[g[t*2+1]*2+1]+1;m>n&&(m=n,r++);g[t*2+1]=m;if(!(t>k)){a.Ka[m]++;var v=0;t>=l&&(v=f[t-l]);var u=g[t*2];a.Pa+=u*(m+v);e&&(a.Ab+=u*(d[t*2+1]+v))}}if(r!==0){do{for(m=n-1;a.Ka[m]===0;)m--;a.Ka[m]--;a.Ka[m+1]+=2;a.Ka[n]--;r-=2}while(r>0);for(m=n;m!==0;m--)for(t=a.Ka[m];t!==0;)d=a.ba[--b],d>k||(g[d*2+1]!==m&&(a.Pa+=(m-g[d* 2+1])*g[d*2],g[d*2+1]=m),t--)}ik(c,h,a.Ka)} function qk(a,b,c){var d,e=-1,f=b[1],g=0,h=7,k=4;f===0&&(h=138,k=3);b[(c+1)*2+1]=65535;for(d=0;d<=c;d++){var l=f;f=b[(d+1)*2+1];++g>>=1)if(b&1&&a.ra[c*2]!==0)return 0;if(a.ra[18]!==0||a.ra[20]!==0||a.ra[26]!==0)return 1;for(c=32;c<256;c++)if(a.ra[c*2]!==0)return 1;return 0} var tk=!1;function uk(a,b,c){a.aa[a.Hb+a.ya*2]=b>>>8&255;a.aa[a.Hb+a.ya*2+1]=b&255;a.aa[a.yc+a.ya]=c&255;a.ya++;b===0?a.ra[c*2]++:(a.matches++,b--,a.ra[(Wj[c]+256+1)*2]++,a.bb[(b<256?Vj[b]:Vj[256+(b>>>7)])*2]++);return a.ya===a.Mb-1} ;function vk(a,b){a.msg=Nj[b];return b} function wk(a){for(var b=a.length;--b>=0;)a[b]=0} function xk(a){var b=a.state,c=b.pending;c>a.R&&(c=a.R);c!==0&&(N.nb(a.output,b.aa,b.Ob,c,a.xb),a.xb+=c,b.Ob+=c,a.Lc+=c,a.R-=c,b.pending-=c,b.pending===0&&(b.Ob=0))} function yk(a,b){var c=a.ta>=0?a.ta:-1,d=a.o-a.ta,e=0;if(a.level>0){a.M.sc===2&&(a.M.sc=sk(a));pk(a,a.hc);pk(a,a.ac);qk(a,a.ra,a.hc.wb);qk(a,a.bb,a.ac.wb);pk(a,a.Qc);for(e=18;e>=3&&a.ka[Sj[e]*2+1]===0;e--);a.Pa+=3*(e+1)+14;var f=a.Pa+3+7>>>3;var g=a.Ab+3+7>>>3;g<=f&&(f=g)}else f=g=d+5;if(d+4<=f&&c!==-1)fk(a,b?1:0,3),lk(a,c,d);else if(a.strategy===4||g===f)fk(a,2+(b?1:0),3),ok(a,Tj,Uj);else{fk(a,4+(b?1:0),3);c=a.hc.wb+1;d=a.ac.wb+1;e+=1;fk(a,c-257,5);fk(a,d-1,5);fk(a,e-4,4);for(f=0;f>>8&255;a.aa[a.pending++]=b&255} function Ak(a,b){var c=a.gd,d=a.o,e=a.wa,f=a.hd,g=a.o>a.ma-262?a.o-(a.ma-262):0,h=a.window,k=a.Xa,l=a.Ia,n=a.o+258,m=h[d+e-1],r=h[d+e];a.wa>=a.Zc&&(c>>=2);f>a.u&&(f=a.u);do{var t=b;if(h[t+e]===r&&h[t+e-1]===m&&h[t]===h[d]&&h[++t]===h[d+1]){d+=2;for(t++;h[++d]===h[++t]&&h[++d]===h[++t]&&h[++d]===h[++t]&&h[++d]===h[++t]&&h[++d]===h[++t]&&h[++d]===h[++t]&&h[++d]===h[++t]&&h[++d]===h[++t]&&de){a.vb=b;e=t;if(t>=f)break;m=h[d+e-1];r=h[d+e]}}}while((b=l[b&k])>g&&--c!==0);return e<= a.u?e:a.u} function Bk(a){var b=a.ma,c;do{var d=a.Cd-a.u-a.o;if(a.o>=b+(b-262)){N.nb(a.window,a.window,b,b,0);a.vb-=b;a.o-=b;a.ta-=b;var e=c=a.fc;do{var f=a.head[--e];a.head[e]=f>=b?f-b:0}while(--c);e=c=b;do f=a.Ia[--e],a.Ia[e]=f>=b?f-b:0;while(--c);d+=b}if(a.M.na===0)break;e=a.M;c=a.window;f=a.o+a.u;var g=e.na;g>d&&(g=d);g===0?c=0:(e.na-=g,N.nb(c,e.input,e.hb,g,f),e.state.wrap===1?e.J=Hj(e.J,c,g,f):e.state.wrap===2&&(e.J=Ij(e.J,c,g,f)),e.hb+=g,e.kb+=g,c=g);a.u+=c;if(a.u+a.sa>=3)for(d=a.o-a.sa,a.P=a.window[d], a.P=(a.P<=3&&(a.P=(a.P<=3)if(c=uk(a,a.o-a.vb,a.S-3),a.u-=a.S,a.S<=a.Ac&&a.u>=3){a.S--;do a.o++,a.P=(a.P<=3&&(a.P=(a.P<4096)&&(a.S=2));if(a.wa>=3&&a.S<=a.wa){d=a.o+a.u-3;c=uk(a,a.o-1-a.ld,a.wa-3);a.u-=a.wa-1;a.wa-=2;do++a.o<=d&&(a.P=(a.P<=3&&a.o>0&&(d=a.o-1,c=f[d],c===f[++d]&&c===f[++d]&&c===f[++d])){for(e=a.o+258;c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&da.u&&(a.S=a.u)}a.S>=3?(c=uk(a,1,a.S-3),a.u-=a.S,a.o+=a.S,a.S=0):(c=uk(a,0,a.window[a.o]),a.u--,a.o++);if(c&&(yk(a,!1),a.M.R===0))return 1}a.sa=0;return b===4?(yk(a,!0),a.M.R===0?3:4): a.ya&&(yk(a,!1),a.M.R===0)?1:2} function Fk(a,b){for(var c;;){if(a.u===0&&(Bk(a),a.u===0)){if(b===0)return 1;break}a.S=0;c=uk(a,0,a.window[a.o]);a.u--;a.o++;if(c&&(yk(a,!1),a.M.R===0))return 1}a.sa=0;return b===4?(yk(a,!0),a.M.R===0?3:4):a.ya&&(yk(a,!1),a.M.R===0)?1:2} function Gk(a,b,c,d,e){this.be=a;this.pe=b;this.se=c;this.oe=d;this.Xd=e} var Hk;Hk=[new Gk(0,0,0,0,function(a,b){var c=65535;for(c>a.za-5&&(c=a.za-5);;){if(a.u<=1){Bk(a);if(a.u===0&&b===0)return 1;if(a.u===0)break}a.o+=a.u;a.u=0;var d=a.ta+c;if(a.o===0||a.o>=d)if(a.u=a.o-d,a.o=d,yk(a,!1),a.M.R===0)return 1;if(a.o-a.ta>=a.ma-262&&(yk(a,!1),a.M.R===0))return 1}a.sa=0;if(b===4)return yk(a,!0),a.M.R===0?3:4;a.o>a.ta&&yk(a,!1);return 1}), new Gk(4,4,8,4,Ck),new Gk(4,5,16,8,Ck),new Gk(4,6,32,32,Ck),new Gk(4,4,16,16,Dk),new Gk(8,16,32,32,Dk),new Gk(8,16,128,128,Dk),new Gk(8,32,128,256,Dk),new Gk(32,128,258,1024,Dk),new Gk(32,258,258,4096,Dk)]; function Ik(){this.M=null;this.status=0;this.aa=null;this.wrap=this.pending=this.Ob=this.za=0;this.I=null;this.Ca=0;this.method=8;this.sb=-1;this.Xa=this.Nc=this.ma=0;this.window=null;this.Cd=0;this.head=this.Ia=null;this.hd=this.Zc=this.strategy=this.level=this.Ac=this.gd=this.wa=this.u=this.vb=this.o=this.fb=this.ld=this.S=this.ta=this.Ma=this.La=this.wc=this.fc=this.P=0;this.ra=new N.Ja(1146);this.bb=new N.Ja(122);this.ka=new N.Ja(78);wk(this.ra);wk(this.bb);wk(this.ka);this.Qc=this.ac=this.hc= null;this.Ka=new N.Ja(16);this.ba=new N.Ja(573);wk(this.ba);this.qb=this.Na=0;this.depth=new N.Ja(573);wk(this.depth);this.ja=this.oa=this.sa=this.matches=this.Ab=this.Pa=this.Hb=this.ya=this.Mb=this.yc=0} function Jk(a,b){if(!a||!a.state||b>5||b<0)return a?vk(a,-2):-2;var c=a.state;if(!a.output||!a.input&&a.na!==0||c.status===666&&b!==4)return vk(a,a.R===0?-5:-2);c.M=a;var d=c.sb;c.sb=b;if(c.status===42)if(c.wrap===2)a.J=0,R(c,31),R(c,139),R(c,8),c.I?(R(c,(c.I.text?1:0)+(c.I.Ta?2:0)+(c.I.extra?4:0)+(c.I.name?8:0)+(c.I.comment?16:0)),R(c,c.I.time&255),R(c,c.I.time>>8&255),R(c,c.I.time>>16&255),R(c,c.I.time>>24&255),R(c,c.level===9?2:c.strategy>=2||c.level<2?4:0),R(c,c.I.os&255),c.I.extra&&c.I.extra.length&& (R(c,c.I.extra.length&255),R(c,c.I.extra.length>>8&255)),c.I.Ta&&(a.J=Ij(a.J,c.aa,c.pending,0)),c.Ca=0,c.status=69):(R(c,0),R(c,0),R(c,0),R(c,0),R(c,0),R(c,c.level===9?2:c.strategy>=2||c.level<2?4:0),R(c,3),c.status=113);else{var e=8+(c.Nc-8<<4)<<8;e|=(c.strategy>=2||c.level<2?0:c.level<6?1:c.level===6?2:3)<<6;c.o!==0&&(e|=32);c.status=113;zk(c,e+(31-e%31));c.o!==0&&(zk(c,a.J>>>16),zk(c,a.J&65535));a.J=1}if(c.status===69)if(c.I.extra){for(e=c.pending;c.Ca<(c.I.extra.length&65535)&&(c.pending!==c.za|| (c.I.Ta&&c.pending>e&&(a.J=Ij(a.J,c.aa,c.pending-e,e)),xk(a),e=c.pending,c.pending!==c.za));)R(c,c.I.extra[c.Ca]&255),c.Ca++;c.I.Ta&&c.pending>e&&(a.J=Ij(a.J,c.aa,c.pending-e,e));c.Ca===c.I.extra.length&&(c.Ca=0,c.status=73)}else c.status=73;if(c.status===73)if(c.I.name){e=c.pending;do{if(c.pending===c.za&&(c.I.Ta&&c.pending>e&&(a.J=Ij(a.J,c.aa,c.pending-e,e)),xk(a),e=c.pending,c.pending===c.za)){var f=1;break}f=c.Ca e&&(a.J=Ij(a.J,c.aa,c.pending-e,e));f===0&&(c.Ca=0,c.status=91)}else c.status=91;if(c.status===91)if(c.I.comment){e=c.pending;do{if(c.pending===c.za&&(c.I.Ta&&c.pending>e&&(a.J=Ij(a.J,c.aa,c.pending-e,e)),xk(a),e=c.pending,c.pending===c.za)){f=1;break}f=c.Cae&&(a.J=Ij(a.J,c.aa,c.pending-e,e));f===0&&(c.status=103)}else c.status=103;c.status===103&&(c.I.Ta?(c.pending+2>c.za&&xk(a),c.pending+2<=c.za&&(R(c, a.J&255),R(c,a.J>>8&255),a.J=0,c.status=113)):c.status=113);if(c.pending!==0){if(xk(a),a.R===0)return c.sb=-1,0}else if(a.na===0&&(b<<1)-(b>4?9:0)<=(d<<1)-(d>4?9:0)&&b!==4)return vk(a,-5);if(c.status===666&&a.na!==0)return vk(a,-5);if(a.na!==0||c.u!==0||b!==0&&c.status!==666){d=c.strategy===2?Fk(c,b):c.strategy===3?Ek(c,b):Hk[c.level].Xd(c,b);if(d===3||d===4)c.status=666;if(d===1||d===3)return a.R===0&&(c.sb=-1),0;if(d===2&&(b===1?(fk(c,2,3),gk(c,256,Tj),c.ja===16?(ek(c,c.oa),c.oa=0,c.ja=0):c.ja>= 8&&(c.aa[c.pending++]=c.oa&255,c.oa>>=8,c.ja-=8)):b!==5&&(fk(c,0,3),lk(c,0,0),b===3&&(wk(c.head),c.u===0&&(c.o=0,c.ta=0,c.sa=0))),xk(a),a.R===0))return c.sb=-1,0}if(b!==4)return 0;if(c.wrap<=0)return 1;c.wrap===2?(R(c,a.J&255),R(c,a.J>>8&255),R(c,a.J>>16&255),R(c,a.J>>24&255),R(c,a.kb&255),R(c,a.kb>>8&255),R(c,a.kb>>16&255),R(c,a.kb>>24&255)):(zk(c,a.J>>>16),zk(c,a.J&65535));xk(a);c.wrap>0&&(c.wrap=-c.wrap);return c.pending!==0?0:1} ;var Kk={};Kk=function(){this.input=null;this.kb=this.na=this.hb=0;this.output=null;this.Lc=this.R=this.xb=0;this.msg="";this.state=null;this.sc=2;this.J=0};var Lk=Object.prototype.toString; function Mk(a){if(!(this instanceof Mk))return new Mk(a);a=this.options=N.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},a||{});a.raw&&a.windowBits>0?a.windowBits=-a.windowBits:a.gzip&&a.windowBits>0&&a.windowBits<16&&(a.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.M=new Kk;this.M.R=0;var b=this.M;var c=a.level,d=a.method,e=a.windowBits,f=a.memLevel,g=a.strategy;if(b){var h=1;c===-1&&(c=6);e<0?(h=0,e=-e):e>15&&(h=2,e-=16);if(f<1||f> 9||d!==8||e<8||e>15||c<0||c>9||g<0||g>4)b=vk(b,-2);else{e===8&&(e=9);var k=new Ik;b.state=k;k.M=b;k.wrap=h;k.I=null;k.Nc=e;k.ma=1<>=7;f<30;f++)for(Yj[f]=g<<7,e=0;e<1<=l.ma&&(b===0&&(wk(l.head),l.o=0,l.ta=0,l.sa=0),c=new N.lb(l.ma),N.nb(c,f,g-l.ma,l.ma,0),f=c,g=l.ma);c=a.na;d=a.hb;e=a.input;a.na=g;a.hb=0;a.input=f;for(Bk(l);l.u>=3;){f=l.o;g=l.u-2;do l.P=(l.P<0||c.R===0)&&a!==1);if(e===4)return(c=this.M)&&c.state?(d=c.state.status,d!==42&&d!==69&&d!==73&&d!==91&&d!==103&&d!==113&&d!==666?a=vk(c,-2):(c.state=null,a=d===113?vk(c,-3):0)):a=-2,Nk(this,a),this.ended=!0,a===0;e===2&&(Nk(this,0),c.R=0);return!0}; function Nk(a,b){b===0&&(a.result=a.options.to==="string"?a.chunks.join(""):N.Xc(a.chunks));a.chunks=[];a.err=b;a.msg=a.M.msg} function Ok(a,b){b=b||{};b.gzip=!0;b=new Mk(b);b.push(a,!0);if(b.err)throw b.msg||Nj[b.err];return b.result} ;function Pk(a){if(!a)return null;a=a.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue;var b;a?b=mb(a):b=null;return b} ;function Qk(a){return mb(a===null?"null":a===void 0?"undefined":a)} ;function Rk(a){this.name=a} ;var Sk=new Rk("rawColdConfigGroup");var Tk=new Rk("rawHotConfigGroup");function Uk(a){this.D=J(a)} y(Uk,L);var Vk=new Rk("continuationCommand");var Wk=new Rk("webCommandMetadata");var Xk=new Rk("signalServiceEndpoint");var Yk={yf:"EMBEDDED_PLAYER_MODE_UNKNOWN",vf:"EMBEDDED_PLAYER_MODE_DEFAULT",xf:"EMBEDDED_PLAYER_MODE_PFP",wf:"EMBEDDED_PLAYER_MODE_PFL"};var Zk=new Rk("feedbackEndpoint");function $k(a){this.D=J(a)} y($k,L);$k.prototype.setTrackingParams=function(a){if(a!=null)if(typeof a==="string")a=a?new Ye(a,Ve):We||(We=new Ye(null,Ve));else if(a.constructor!==Ye)if(Ue(a))a=a.length?new Ye(new Uint8Array(a),Ve):We||(We=new Ye(null,Ve));else throw Error();return K(this,1,a)};var Wi={ag:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN",If:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING",Rf:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL",Vf:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE",Ff:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE",Zf:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE",cg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE",Uf:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK", eg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT",dg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP",Sf:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED",Xf:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED",ig:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION",hg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST",gg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT",Yf:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL", Tf:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY",jg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST",Wf:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED",kg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP",Jf:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET",Nf:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED",Mf:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED",Pf:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT", fg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI",Qf:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN",Of:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN",Cf:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED",Bf:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED",Df:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED",Ef:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED",Gf:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE",Hf:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED", Lf:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED",Kf:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED"};var al=new Rk("shareEndpoint"),bl=new Rk("shareEntityEndpoint"),cl=new Rk("shareEntityServiceEndpoint"),dl=new Rk("webPlayerShareEntityServiceEndpoint");var el=new Rk("playlistEditEndpoint");var fl=new Rk("modifyChannelNotificationPreferenceEndpoint");var gl=new Rk("unsubscribeEndpoint");var hl=new Rk("subscribeEndpoint");function il(){var a=jl;E("yt.ads.biscotti.getId_")||D("yt.ads.biscotti.getId_",a)} function kl(a){D("yt.ads.biscotti.lastId_",a)} ;function ll(a,b){b.length>1?a[b[0]]=b[1]:b.length===1&&Object.assign(a,b[0])} ;var ml=C.window,nl,ol,pl=(ml==null?void 0:(nl=ml.yt)==null?void 0:nl.config_)||(ml==null?void 0:(ol=ml.ytcfg)==null?void 0:ol.data_)||{};D("yt.config_",pl);function ql(){ll(pl,arguments)} function T(a,b){return a in pl?pl[a]:b} function rl(a){var b=pl.EXPERIMENT_FLAGS;return b?b[a]:void 0} ;var sl=[];function tl(a){sl.forEach(function(b){return b(a)})} function ul(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){vl(b)}}:a} function vl(a){var b=E("yt.logging.errors.log");b?b(a,"ERROR",void 0,void 0,void 0,void 0,void 0):(b=T("ERRORS",[]),b.push([a,"ERROR",void 0,void 0,void 0,void 0,void 0]),ql("ERRORS",b));tl(a)} function wl(a,b,c,d,e){var f=E("yt.logging.errors.log");f?f(a,"WARNING",b,c,d,void 0,e):(f=T("ERRORS",[]),f.push([a,"WARNING",b,c,d,void 0,e]),ql("ERRORS",f))} ;var xl=/^[\w.]*$/,yl={q:!0,search_query:!0};function zl(a,b){b=a.split(b);for(var c={},d=0,e=b.length;d1?a[1]:a[0])):{}} function Fl(a,b,c){var d=a.split("#",2);a=d[0];d=d.length>1?"#"+d[1]:"";var e=a.split("?",2);a=e[0];e=Dl(e[1]||"");for(var f in b)!c&&e!==null&&f in e||(e[f]=b[f]);return tc(a,e)+d} function Gl(a){if(!b)var b=window.location.href;var c=nc(1,a),d=oc(a);c&&d?(a=a.match(lc),b=b.match(lc),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?oc(b)===d&&(Number(nc(4,b))||null)===(Number(nc(4,a))||null):!0;return a} function Al(a){return a&&a.match(xl)?a:decodeURIComponent(a.replace(/\+/g," "))} ;function Hl(a){var b=Il;a=a===void 0?E("yt.ads.biscotti.lastId_")||"":a;var c=Object,d=c.assign,e={};e.dt=Ui;e.flash="0";a:{try{var f=b.h.top.location.href}catch(La){f=2;break a}f=f?f===b.i.location.href?0:1:2}e=(e.frm=f,e);try{e.u_tz=-(new Date).getTimezoneOffset();var g=g===void 0?Mi:g;try{var h=g.history.length}catch(La){h=0}e.u_his=h;var k;e.u_h=(k=Mi.screen)==null?void 0:k.height;var l;e.u_w=(l=Mi.screen)==null?void 0:l.width;var n;e.u_ah=(n=Mi.screen)==null?void 0:n.availHeight;var m;e.u_aw= (m=Mi.screen)==null?void 0:m.availWidth;var r;e.u_cd=(r=Mi.screen)==null?void 0:r.colorDepth}catch(La){}h=b.h;try{var t=h.screenX;var v=h.screenY}catch(La){}try{var u=h.outerWidth;var z=h.outerHeight}catch(La){}try{var F=h.innerWidth;var H=h.innerHeight}catch(La){}try{var O=h.screenLeft;var S=h.screenTop}catch(La){}try{F=h.innerWidth,H=h.innerHeight}catch(La){}try{var da=h.screen.availWidth;var ta=h.screen.availTop}catch(La){}t=[O,S,t,v,da,ta,u,z,F,H];try{var P=(b.h.top||window).document,ea=P.compatMode== "CSS1Compat"?P.documentElement:P.body;var na=(new Gd(ea.clientWidth,ea.clientHeight)).round()}catch(La){na=new Gd(-12245933,-12245933)}P=na;na={};var Ma=Ma===void 0?C:Ma;ea=new bj;"SVGElement"in Ma&&"createElementNS"in Ma.document&&ea.set(0);v=Ri();v["allow-top-navigation-by-user-activation"]&&ea.set(1);v["allow-popups-to-escape-sandbox"]&&ea.set(2);Ma.crypto&&Ma.crypto.subtle&&ea.set(3);"TextDecoder"in Ma&&"TextEncoder"in Ma&&ea.set(4);Ma=cj(ea);na.bc=Ma;na.bih=P.height;na.biw=P.width;na.brdim=t.join(); b=b.i;b=(na.vis=b.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[b.visibilityState||b.webkitVisibilityState||b.mozVisibilityState||""]||0,na.wgl=!!Mi.WebGLRenderingContext,na);c=d.call(c,e,b);c.ca_type="image";a&&(c.bid=a);return c} var Il=new function(){var a=window.document;this.h=window;this.i=a}; D("yt.ads_.signals_.getAdSignalsString",function(a){return Cl(Hl(a))});Za();navigator.userAgent.indexOf(" (CrKey ");var Jl="XMLHttpRequest"in C?function(){return new XMLHttpRequest}:null; function Kl(){if(!Jl)return null;var a=Jl();return"open"in a?a:null} function Ll(a){switch(a&&"status"in a?a.status:-1){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}} ;function Ml(a,b){typeof a==="function"&&(a=ul(a));return window.setTimeout(a,b)} ;var Nl="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");[].concat(la(Nl),["client_dev_set_cookie"]);function U(a){a=Ol(a);return typeof a==="string"&&a==="false"?!1:!!a} function Pl(a,b){a=Ol(a);return a===void 0&&b!==void 0?b:Number(a||0)} function Ol(a){return T("EXPERIMENT_FLAGS",{})[a]} function Ql(){for(var a=[],b=T("EXPERIMENTS_FORCED_FLAGS",{}),c=x(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,a.push({key:d,value:String(b[d])});c=T("EXPERIMENT_FLAGS",{});d=x(Object.keys(c));for(var e=d.next();!e.done;e=d.next())e=e.value,e.startsWith("force_")&&b[e]===void 0&&a.push({key:e,value:String(c[e])});return a} ;var Rl={Authorization:"AUTHORIZATION","X-Goog-EOM-Visitor-Id":"EOM_VISITOR_DATA","X-Goog-Visitor-Id":"SANDBOXED_VISITOR_ID","X-Youtube-Domain-Admin-State":"DOMAIN_ADMIN_STATE","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","X-Goog-AuthUser":"SESSION_INDEX","X-Goog-PageId":"DELEGATED_SESSION_ID"},Sl="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(la(Nl)),Tl=!1; function Ul(a,b,c,d,e,f,g,h){function k(){(l&&"readyState"in l?l.readyState:0)===4&&b&&ul(b)(l)} c=c===void 0?"GET":c;d=d===void 0?"":d;h=h===void 0?!1:h;var l=Kl();if(!l)return null;"onloadend"in l?l.addEventListener("loadend",k,!1):l.onreadystatechange=k;U("debug_forward_web_query_parameters")&&(a=Vl(a));l.open(c,a,!0);f&&(l.responseType=f);g&&(l.withCredentials=!0);c=c==="POST"&&(window.FormData===void 0||!(d instanceof FormData));if(e=Wl(a,e))for(var n in e)l.setRequestHeader(n,e[n]),"content-type"===n.toLowerCase()&&(c=!1);c&&l.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); if(h&&"setAttributionReporting"in XMLHttpRequest.prototype){a={eventSourceEligible:!0,triggerEligible:!1};try{l.setAttributionReporting(a)}catch(m){wl(m)}}l.send(d);return l} function Wl(a,b){b=b===void 0?{}:b;var c=Gl(a),d=T("INNERTUBE_CLIENT_NAME"),e=U("web_ajax_ignore_global_headers_if_set"),f;for(f in Rl){var g=T(Rl[f]),h=f==="X-Goog-AuthUser"||f==="X-Goog-PageId";f!=="X-Goog-Visitor-Id"||g||(g=T("VISITOR_DATA"));var k;if(!(k=!g)){if(!(k=c||(oc(a)?!1:!0))){k=a;var l;if(l=U("add_auth_headers_to_remarketing_google_dot_com_ping")&&f==="Authorization"&&(d==="TVHTML5"||d==="TVHTML5_UNPLUGGED"||d==="TVHTML5_SIMPLY"))l=oc(k),l=l!==null?l.split(".").reverse():null,l=l===null? !1:l[1]==="google"?!0:l[2]==="google"?l[0]==="au"&&l[1]==="com"?!0:l[0]==="uk"&&l[1]==="co"?!0:!1:!1;l&&(k=mc(nc(5,k))||"",k=k.split("/"),k="/"+(k.length>1?k[1]:""),l=k==="/pagead");k=l?!0:!1}k=!k}k||e&&b[f]!==void 0||d==="TVHTML5_UNPLUGGED"&&h||(b[f]=g)}"X-Goog-EOM-Visitor-Id"in b&&"X-Goog-Visitor-Id"in b&&delete b["X-Goog-Visitor-Id"];if(c||!oc(a))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(c||!oc(a)){try{var n=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(m){}n&& (b["X-YouTube-Time-Zone"]=n)}document.location.hostname.endsWith("youtubeeducation.com")||!c&&oc(a)||(b["X-YouTube-Ad-Signals"]=Cl(Hl()));return b} function Xl(a,b){b.method="POST";b.postParams||(b.postParams={});return Yl(a,b)} function Yl(a,b){var c=b.format||"JSON";a=Zl(a,b);var d=$l(a,b),e=!1,f=am(a,function(k){if(!e){e=!0;h&&window.clearTimeout(h);var l=Ll(k),n=null,m=400<=k.status&&k.status<500,r=500<=k.status&&k.status<600;if(l||m||r)n=bm(a,c,k,b.convertToSafeHtml);l&&(l=cm(c,k,n));n=n||{};m=b.context||C;l?b.onSuccess&&b.onSuccess.call(m,k,n):b.onError&&b.onError.call(m,k,n);b.onFinish&&b.onFinish.call(m,k,n)}},b.method,d,b.headers,b.responseType,b.withCredentials); d=b.timeout||0;if(b.onTimeout&&d>0){var g=b.onTimeout;var h=Ml(function(){e||(e=!0,f.abort(),window.clearTimeout(h),g.call(b.context||C,f))},d)}return f} function Zl(a,b){b.includeDomain&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=T("XSRF_FIELD_NAME");if(b=b.urlParams)b[c]&&delete b[c],a=Fl(a,b||{},!0);return a} function $l(a,b){var c=T("XSRF_FIELD_NAME"),d=T("XSRF_TOKEN"),e=b.postBody||"",f=b.postParams,g=T("XSRF_FIELD_NAME"),h;b.headers&&(h=b.headers["Content-Type"]);b.excludeXsrf||oc(a)&&!b.withCredentials&&oc(a)!==document.location.hostname||b.method!=="POST"||h&&h!=="application/x-www-form-urlencoded"||b.postParams&&b.postParams[g]||(f||(f={}),f[c]=d);(U("ajax_parse_query_data_only_when_filled")&&f&&Object.keys(f).length>0||f)&&typeof e==="string"&&(e=Dl(e),Ub(e,f),e=b.postBodyFormat&&b.postBodyFormat=== "JSON"?JSON.stringify(e):sc(e));f=e||f&&!Nb(f);!Tl&&f&&b.method!=="POST"&&(Tl=!0,vl(Error("AJAX request with postData should use POST")));return e} function bm(a,b,c,d){var e=null;switch(b){case "JSON":try{var f=c.responseText}catch(g){throw d=Error("Error reading responseText"),d.params=a,wl(d),g;}a=c.getResponseHeader("Content-Type")||"";f&&a.indexOf("json")>=0&&(f.substring(0,5)===")]}'\n"&&(f=f.substring(5)),e=JSON.parse(f));break;case "XML":if(a=(a=c.responseXML)?dm(a):null)e={},Db(a.getElementsByTagName("*"),function(g){e[g.tagName]=em(g)})}d&&fm(e); return e} function fm(a){if(Ra(a))for(var b in a){var c;(c=b==="html_content")||(c=b.length-5,c=c>=0&&b.indexOf("_html",c)==c);if(c){c=b;var d=a[b],e=fb();d=e?e.createHTML(d):d;a[c]=new Vb(d)}else fm(a[b])}} function cm(a,b,c){if(b&&b.status===204)return!0;switch(a){case "JSON":return!!c;case "XML":return Number(c&&c.return_code)===0;case "RAW":return!0;default:return!!c}} function dm(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&a.length>0?a[0]:null:null} function em(a){var b="";Db(a.childNodes,function(c){b+=c.nodeValue}); return b} function Vl(a){var b=window.location.search,c=oc(a);U("debug_handle_relative_url_for_query_forward_killswitch")||!c&&Gl(a)&&(c=document.location.hostname);var d=mc(nc(5,a));d=(c=c&&(c.endsWith("youtube.com")||c.endsWith("youtube-nocookie.com")))&&d&&d.startsWith("/api/");if(!c||d)return a;var e=Dl(b),f={};Db(Sl,function(g){e[g]&&(f[g]=e[g])}); return Fl(a,f||{},!1)} var am=Ul;var gm=[{Bc:function(a){return"Cannot read property '"+a.key+"'"}, ic:{Error:[{regexp:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{regexp:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{regexp:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{regexp:/\uc815\uc758\ub418\uc9c0 \uc54a\uc74c \ub610\ub294 (null|undefined) \ucc38\uc870\uc778 '([^']+)' \uc18d\uc131\uc744 \uac00\uc838\uc62c \uc218 \uc5c6\uc2b5\ub2c8\ub2e4./, groups:["value","key"]},{regexp:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{regexp:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{regexp:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{Bc:function(a){return"Cannot call '"+a.key+"'"}, ic:{TypeError:[{regexp:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{regexp:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{regexp:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{regexp:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{regexp:/\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f '([^']+)' \u30d7\u30ed\u30d1\u30c6\u30a3\u307e\u305f\u306f\u30e1\u30bd\u30c3\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093/, groups:["key"]},{regexp:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{Bc:function(a){return a.key+" is not defined"}, ic:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var im={Va:[],Sa:[{callback:hm,weight:500}]};function hm(a){if(a.name==="JavaException")return!0;a=a.stack;return a.includes("chrome://")||a.includes("chrome-extension://")||a.includes("moz-extension://")} ;function jm(){this.Sa=[];this.Va=[]} var km;function lm(){if(!km){var a=km=new jm;a.Va.length=0;a.Sa.length=0;im.Va&&a.Va.push.apply(a.Va,im.Va);im.Sa&&a.Sa.push.apply(a.Sa,im.Sa)}return km} ;var mm=new M;function nm(a){function b(){return a.charCodeAt(d++)} var c=a.length,d=0;do{var e=om(b);if(e===Infinity)break;var f=e>>3;switch(e&7){case 0:e=om(b);if(f===2)return e;break;case 1:if(f===2)return;d+=8;break;case 2:e=om(b);if(f===2)return a.substr(d,e);d+=e;break;case 5:if(f===2)return;d+=4;break;default:return}}while(d500));d++);d=e}else if(typeof a==="object")for(e in a){if(a[e]){var f=e;var g=a[e],h=b,k=c;f=typeof g!=="string"||f!=="clickTrackingParams"&&f!=="trackingParams"?0:(g=nm(atob(g.replace(/-/g,"+").replace(/_/g,"/"))))?qm(f+".ve",g,h,k):0;d+=f;d+=qm(e,a[e],b,c);if(d>500)break}}else c[b]=rm(a),d+=c[b].length;else c[b]=rm(a),d+=c[b].length;return d} function qm(a,b,c,d){c+="."+a;a=rm(b);d[c]=a;return c.length+a.length} function rm(a){try{return(typeof a==="string"?a:String(JSON.stringify(a))).substr(0,500)}catch(b){return"unable to serialize "+typeof a+" ("+b.message+")"}} ;function sm(a){var b=this;this.i=void 0;this.h=!1;a.addEventListener("beforeinstallprompt",function(c){c.preventDefault();b.i=c}); a.addEventListener("appinstalled",function(){b.h=!0},{once:!0})} function tm(){if(!C.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return C.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":C.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":C.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":C.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(a){return"WEB_DISPLAY_MODE_UNKNOWN"}} ;function um(){this.Xe=!0} function wm(){um.h||(um.h=new um);return um.h} function xm(a,b){a={};var c=[];"SESSION_ID"in pl&&c.push({key:"u",value:T("SESSION_ID")});if(c=yh(c))a.Authorization=c,c=b=b==null?void 0:b.sessionIndex,c===void 0&&(c=Number(T("SESSION_INDEX",0)),c=isNaN(c)?0:c),U("voice_search_auth_header_removal")||(a["X-Goog-AuthUser"]=c.toString()),"INNERTUBE_HOST_OVERRIDE"in pl||(a["X-Origin"]=window.location.origin),b===void 0&&"DELEGATED_SESSION_ID"in pl&&(a["X-Goog-PageId"]=T("DELEGATED_SESSION_ID"));return a} ;var ym={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};function zm(a,b,c,d,e){uh.set(""+a,b,{Nb:c,path:"/",domain:d===void 0?"youtube.com":d,secure:e===void 0?!1:e})} function Am(a){return uh.get(""+a,void 0)} function Bm(a,b,c){uh.remove(""+a,b===void 0?"/":b,c===void 0?"youtube.com":c)} function Cm(){if(U("embeds_web_enable_cookie_detection_fix")){if(!C.navigator.cookieEnabled)return!1}else if(!uh.isEnabled())return!1;if(uh.h.cookie)return!0;U("embeds_web_enable_cookie_detection_fix")?uh.set("TESTCOOKIESENABLED","1",{Nb:60,Ge:"none",secure:!0}):uh.set("TESTCOOKIESENABLED","1",{Nb:60});if(uh.get("TESTCOOKIESENABLED")!=="1")return!1;uh.remove("TESTCOOKIESENABLED");return!0} ;var Dm=E("ytglobal.prefsUserPrefsPrefs_")||{};D("ytglobal.prefsUserPrefsPrefs_",Dm);function Em(){this.h=T("ALT_PREF_COOKIE_NAME","PREF");this.i=T("ALT_PREF_COOKIE_DOMAIN","youtube.com");var a=Am(this.h);a&&this.parse(a)} var Fm;function Gm(){Fm||(Fm=new Em);return Fm} p=Em.prototype;p.get=function(a,b){Hm(a);Im(a);a=Dm[a]!==void 0?Dm[a].toString():null;return a!=null?a:b?b:""}; p.set=function(a,b){Hm(a);Im(a);if(b==null)throw Error("ExpectedNotNull");Dm[a]=b.toString()}; function Jm(a){return!!((Km("f"+(Math.floor(a/31)+1))||0)&1<=0;b--)a.i[b].length=0;a.i[8].length=0;a.j={};a.stop()} p.isHidden=function(){return!!document.hidden||!1}; function an(a){return!a.isHidden()&&a.ia} function Zm(a){if(a.i[8].length){if(a.T)return 4;if(an(a))return 3}for(var b=5;b>=a.l;b--)if(a.i[b].length>0)return b>0?an(a)?3:2:1;return 0} p.Ha=function(a){var b=E("yt.logging.errors.log");b&&b(a)}; function Ym(a,b){try{b()}catch(c){a.Ha(c)}} function bn(a){for(var b=x(Wm),c=b.next();!c.done;c=b.next())if(a.i[c.value].length)return!0;return!1} p.ce=function(a){var b=void 0;a&&(b=a.timeRemaining());this.ga=!0;cn(this,b);this.ga=!1}; p.af=function(){cn(this)}; p.Id=function(){dn(this)}; p.ye=function(a){this.T=!0;var b=Zm(this);b===4&&b!==this.A&&(this.stop(),this.start());cn(this,void 0,a);this.T=!1}; p.ue=function(){this.isHidden()||dn(this);this.h&&(this.stop(),this.start())}; function dn(a){a.stop();a.m=!0;for(var b=Za(),c=a.i[8];c.length;){var d=c.shift(),e=a.j[d];delete a.j[d];e&&Ym(a,e)}en(a);a.m=!1;bn(a)&&a.start();b=Za()-b;a.F-=b} function en(a){for(var b=0,c=a.K.length;bd?a.l:d;if(!(Za()>=b)){do{a:{c=a;f=d;for(e=3;e>=f;e--)for(var g=c.i[e];g.length;){var h=g.shift(),k=c.j[h];delete c.j[h];if(k){c=k;break a}}c=null}c&&Ym(a,c)}while(c&&Za()a&&(b.l=a,b.start())} function wn(){window.clearTimeout(jn);var a=kn();a.l=0;a.start()} ;function xn(){Sm.apply(this,arguments)} y(xn,Sm);function yn(){xn.h||(xn.h=new xn);return xn.h} xn.prototype.ab=function(a,b,c){c!==void 0&&Number.isNaN(Number(c))&&(c=void 0);var d=E("yt.scheduler.instance.addJob");return d?d(a,b,c):c===void 0?(a(),NaN):Ml(a,c||0)}; xn.prototype.qa=function(a){if(a===void 0||!Number.isNaN(Number(a))){var b=E("yt.scheduler.instance.cancelJob");b?b(a):window.clearTimeout(a)}}; xn.prototype.start=function(){var a=E("yt.scheduler.instance.start");a&&a()}; xn.prototype.pause=function(){var a=E("yt.scheduler.instance.pause");a&&a()}; var aj=yn(); U("web_scheduler_auto_init")&&!E("yt.scheduler.initialized")&&(D("yt.scheduler.instance.dispose",ln),D("yt.scheduler.instance.addJob",nn),D("yt.scheduler.instance.addImmediateJob",on),D("yt.scheduler.instance.cancelJob",pn),D("yt.scheduler.instance.cancelAllJobs",mn),D("yt.scheduler.instance.start",rn),D("yt.scheduler.instance.pause",sn),D("yt.scheduler.instance.setPriorityThreshold",un),D("yt.scheduler.instance.enablePriorityThreshold",vn),D("yt.scheduler.instance.clearPriorityThreshold",wn),D("yt.scheduler.initialized", !0));function zn(a){var b=new Aj;this.h=(a=b.isAvailable()?a?new Bj(b,a):b:null)?new vj(a):null;this.i=document.domain||window.location.hostname} zn.prototype.set=function(a,b,c,d){c=c||31104E3;this.remove(a);if(this.h)try{this.h.set(a,b,Date.now()+c*1E3);return}catch(f){}var e="";if(d)try{e=escape((new ji).serialize(b))}catch(f){return}else e=escape(b);zm(a,e,c,this.i)}; zn.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=Am(a))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c}; zn.prototype.remove=function(a){this.h&&this.h.remove(a);Bm(a,"/",this.i)};var An=function(){var a;return function(){a||(a=new zn("ytidb"));return a}}(); function Bn(){var a;return(a=An())==null?void 0:a.get("LAST_RESULT_ENTRY_KEY",!0)} ;var Cn=[],Dn,En=!1;function Fn(){var a={};for(Dn=new Gn(a.handleError===void 0?Hn:a.handleError,a.logEvent===void 0?In:a.logEvent);Cn.length>0;)switch(a=Cn.shift(),a.type){case "ERROR":Dn.Ha(a.payload);break;case "EVENT":Dn.logEvent(a.eventType,a.payload)}} function Jn(a){En||(Dn?Dn.Ha(a):(Cn.push({type:"ERROR",payload:a}),Cn.length>10&&Cn.shift()))} function Kn(a,b){En||(Dn?Dn.logEvent(a,b):(Cn.push({type:"EVENT",eventType:a,payload:b}),Cn.length>10&&Cn.shift()))} ;function Ln(a){if(a.indexOf(":")>=0)throw Error("Database name cannot contain ':'");} function Mn(a){return a.substr(0,a.indexOf(":"))||a} ;var Nn=Fe||Ge;function On(a){var b=Lc();return b?b.toLowerCase().indexOf(a)>=0:!1} ;var Pn={},Qn=(Pn.AUTH_INVALID="No user identifier specified.",Pn.EXPLICIT_ABORT="Transaction was explicitly aborted.",Pn.IDB_NOT_SUPPORTED="IndexedDB is not supported.",Pn.MISSING_INDEX="Index not created.",Pn.MISSING_OBJECT_STORES="Object stores not created.",Pn.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",Pn.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",Pn.UNKNOWN_ABORT="Transaction was aborted for unknown reasons.", Pn.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",Pn.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",Pn.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",Pn.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",Pn),Rn={},Sn=(Rn.AUTH_INVALID="ERROR",Rn.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",Rn.EXPLICIT_ABORT="IGNORED",Rn.IDB_NOT_SUPPORTED="ERROR",Rn.MISSING_INDEX= "WARNING",Rn.MISSING_OBJECT_STORES="ERROR",Rn.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",Rn.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",Rn.QUOTA_EXCEEDED="WARNING",Rn.QUOTA_MAYBE_EXCEEDED="WARNING",Rn.UNKNOWN_ABORT="WARNING",Rn.INCOMPATIBLE_DB_VERSION="WARNING",Rn),Tn={},Un=(Tn.AUTH_INVALID=!1,Tn.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,Tn.EXPLICIT_ABORT=!1,Tn.IDB_NOT_SUPPORTED=!1,Tn.MISSING_INDEX=!1,Tn.MISSING_OBJECT_STORES=!1,Tn.DB_DELETED_BY_MISSING_OBJECT_STORES=!1,Tn.DB_REOPENED_BY_MISSING_OBJECT_STORES= !1,Tn.QUOTA_EXCEEDED=!1,Tn.QUOTA_MAYBE_EXCEEDED=!0,Tn.UNKNOWN_ABORT=!0,Tn.INCOMPATIBLE_DB_VERSION=!1,Tn);function Vn(a,b,c,d,e){b=b===void 0?{}:b;c=c===void 0?Qn[a]:c;d=d===void 0?Sn[a]:d;e=e===void 0?Un[a]:e;V.call(this,c,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:a},b));this.type=a;this.message=c;this.level=d;this.h=e;Object.setPrototypeOf(this,Vn.prototype)} y(Vn,V);function Wn(a,b){Vn.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:b,foundObjectStores:a},Qn.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,Wn.prototype)} y(Wn,Vn);function Xn(a,b){var c=Error.call(this);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.index=a;this.objectStore=b;Object.setPrototypeOf(this,Xn.prototype)} y(Xn,Error);var Yn=["The database connection is closing","Can't start a transaction on a closed database","A mutation operation was attempted on a database that did not allow mutations"]; function Zn(a,b,c,d){b=Mn(b);var e=a instanceof Error?a:Error("Unexpected error: "+a);if(e instanceof Vn)return e;a={objectStoreNames:c,dbName:b,dbVersion:d};if(e.name==="QuotaExceededError")return new Vn("QUOTA_EXCEEDED",a);if(He&&e.name==="UnknownError")return new Vn("QUOTA_MAYBE_EXCEEDED",a);if(e instanceof Xn)return new Vn("MISSING_INDEX",Object.assign({},a,{objectStore:e.objectStore,index:e.index}));if(e.name==="InvalidStateError"&&Yn.some(function(f){return e.message.includes(f)}))return new Vn("EXECUTE_TRANSACTION_ON_CLOSED_DB", a); if(e.name==="AbortError")return new Vn("UNKNOWN_ABORT",a,e.message);e.args=[Object.assign({},a,{name:"IdbError",kd:e.name})];e.level="WARNING";return e} function $n(a,b,c){var d=Bn();return new Vn("IDB_NOT_SUPPORTED",{context:{caller:a,publicName:b,version:c,hasSucceededOnce:d==null?void 0:d.hasSucceededOnce}})} ;function ao(a){if(!a)throw Error();throw a;} function bo(a){return a} function co(a){this.h=a} function eo(a){function b(e){if(d.state.status==="PENDING"){d.state={status:"REJECTED",reason:e};e=x(d.i);for(var f=e.next();!f.done;f=e.next())f=f.value,f()}} function c(e){if(d.state.status==="PENDING"){d.state={status:"FULFILLED",value:e};e=x(d.h);for(var f=e.next();!f.done;f=e.next())f=f.value,f()}} var d=this;this.state={status:"PENDING"};this.h=[];this.i=[];a=a.h;try{a(c,b)}catch(e){b(e)}} eo.all=function(a){return new eo(new co(function(b,c){var d=[],e=a.length;e===0&&b(d);for(var f={rb:0};f.rb=f)uo(a,k,t,g,v,b.join(),e),h=v;z.B(2);break;case 4:return z.return(Promise.reject(h))}})} function uo(a,b,c,d,e,f,g){b=c-b;e?(e instanceof Vn&&(e.type==="QUOTA_EXCEEDED"||e.type==="QUOTA_MAYBE_EXCEEDED")&&Kn("QUOTA_EXCEEDED",{dbName:Mn(a.h.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:g.mode}),e instanceof Vn&&e.type==="UNKNOWN_ABORT"&&(c-=a.j,c<0&&c>=Math.pow(2,31)&&(c=0),Kn("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.i=!0),vo(a,!1,d,f,b,g.tag),Jn(e)):vo(a,!0,d,f,b,g.tag)} function vo(a,b,c,d,e,f){Kn("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.i,duration:e,isSuccessful:b,tryCount:c,tag:f===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":f})} p.getName=function(){return this.h.name}; function qo(a){this.h=a} p=qo.prototype;p.add=function(a,b){return ko(this.h.add(a,b))}; p.autoIncrement=function(){return this.h.autoIncrement}; p.clear=function(){return ko(this.h.clear()).then(function(){})}; function wo(a,b,c){a.h.createIndex(b,c,{unique:!1})} p.count=function(a){return ko(this.h.count(a))}; function xo(a,b){return yo(a,{query:b},function(c){return c.delete().then(function(){return zo(c)})}).then(function(){})} p.delete=function(a){return a instanceof IDBKeyRange?xo(this,a):ko(this.h.delete(a))}; p.get=function(a){return ko(this.h.get(a))}; p.index=function(a){try{return new Ao(this.h.index(a))}catch(b){if(b instanceof Error&&b.name==="NotFoundError")throw new Xn(a,this.h.name);throw b;}}; p.getName=function(){return this.h.name}; p.keyPath=function(){return this.h.keyPath}; function yo(a,b,c){a=a.h.openCursor(b.query,b.direction);return Bo(a).then(function(d){return lo(d,c)})} function so(a){var b=this;this.h=a;this.i=new Map;this.aborted=!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.aborted){e=Vn;for(var f=b.h.objectStoreNames,g=[],h=0;h=z},u); u.done.catch(function(z){e(z)})}catch(z){e(z)}}); g.addEventListener("success",function(){var t=g.result;k&&t.addEventListener("versionchange",function(){k(f())}); t.addEventListener("close",function(){Kn("IDB_UNEXPECTEDLY_CLOSED",{dbName:Mn(a),dbVersion:t.version});l&&l()}); d(f())}); g.addEventListener("error",function(){e(g.error)}); h&&g.addEventListener("blocked",function(){h()})})} function Fo(a,b,c){c=c===void 0?{}:c;return Eo(a,b,c)} function Go(a,b){b=b===void 0?{}:b;var c,d,e,f;return A(function(g){if(g.h==1)return Aa(g,2),c=self.indexedDB.deleteDatabase(a),d=b,(e=d.Kd)&&c.addEventListener("blocked",function(){e()}),g.yield(jo(c),4); if(g.h!=2)g.h=0,g.l=0;else throw f=Ba(g),Zn(f,a,"",-1);})} ;function Ho(a,b){this.name=a;this.options=b;this.j=!0;this.v=this.l=0} Ho.prototype.i=function(a,b,c){c=c===void 0?{}:c;return Fo(a,b,c)}; Ho.prototype.delete=function(a){a=a===void 0?{}:a;return Go(this.name,a)}; function Io(a,b){return new Vn("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})} function Jo(a,b){if(!b)throw $n("openWithToken",Mn(a.name));return a.open()} Ho.prototype.open=function(){function a(){var f,g,h,k,l,n,m,r,t,v;return A(function(u){switch(u.h){case 1:return g=(f=Error().stack)!=null?f:"",Aa(u,2),u.yield(c.i(c.name,c.options.version,e),4);case 4:for(var z=h=u.i,F=c.options,H=[],O=x(Object.keys(F.yb)),S=O.next();!S.done;S=O.next()){S=S.value;var da=F.yb[S],ta=da.Be===void 0?Number.MAX_VALUE:da.Be;!(z.h.version>=da.Gb)||z.h.version>=ta||z.h.objectStoreNames.contains(S)||H.push(S)}k=H;if(k.length===0){u.B(5);break}l=Object.keys(c.options.yb); n=h.objectStoreNames();if(c.vc.options.version+1)throw r.close(),c.j=!1,Io(c,t);return u.return(r);case 8:throw b(),m instanceof Error&&!U("ytidb_async_stack_killswitch")&&(m.stack=m.stack+"\n"+g.substring(g.indexOf("\n")+1)),Zn(m,c.name,"",(v=c.options.version)!=null?v:-1);}})} function b(){c.h===d&&(c.h=void 0)} var c=this;if(!this.j)throw Io(this);if(this.h)return this.h;var d,e={blocking:function(f){f.close()}, closed:b,Ye:b,upgrade:this.options.upgrade};return this.h=d=a()};var Ko=new Ho("YtIdbMeta",{yb:{databases:{Gb:1}},upgrade:function(a,b){b(1)&&po(a,"databases",{keyPath:"actualName"})}}); function Lo(a,b){var c;return A(function(d){if(d.h==1)return d.yield(Jo(Ko,b),2);c=d.i;return d.return(oo(c,["databases"],{la:!0,mode:"readwrite"},function(e){var f=e.objectStore("databases");return f.get(a.actualName).then(function(g){if(g?a.actualName!==g.actualName||a.publicName!==g.publicName||a.userIdentifier!==g.userIdentifier:1)return ko(f.h.put(a,void 0)).then(function(){})})}))})} function Mo(a,b){var c;return A(function(d){if(d.h==1)return a?d.yield(Jo(Ko,b),2):d.return();c=d.i;return d.return(c.delete("databases",a))})} function No(a,b){var c,d;return A(function(e){return e.h==1?(c=[],e.yield(Jo(Ko,b),2)):e.h!=3?(d=e.i,e.yield(oo(d,["databases"],{la:!0,mode:"readonly"},function(f){c.length=0;return yo(f.objectStore("databases"),{},function(g){a(g.getValue())&&c.push(g.getValue());return zo(g)})}),3)):e.return(c)})} function Oo(a){return No(function(b){return b.publicName==="LogsDatabaseV2"&&b.userIdentifier!==void 0},a)} function Po(a,b,c){return No(function(d){return c?d.userIdentifier!==void 0&&!a.includes(d.userIdentifier)&&c.includes(d.publicName):d.userIdentifier!==void 0&&!a.includes(d.userIdentifier)},b)} function Qo(a){var b,c;return A(function(d){if(d.h==1)return b=Rm("YtIdbMeta hasAnyMeta other"),d.yield(No(function(e){return e.userIdentifier!==void 0&&e.userIdentifier!==b},a),2); c=d.i;return d.return(c.length>0)})} ;var Ro,So=new function(){}(new function(){}); function To(){var a,b,c,d;return A(function(e){switch(e.h){case 1:a=Bn();if((b=a)==null?0:b.hasSucceededOnce)return e.return(!0);var f;if(f=Nn)f=/WebKit\/([0-9]+)/.exec(Lc()),f=!!(f&&parseInt(f[1],10)>=600);f&&(f=/WebKit\/([0-9]+)/.exec(Lc()),f=!(f&&parseInt(f[1],10)>=602));if(f||Yc)return e.return(!1);try{if(c=self,!(c.indexedDB&&c.IDBIndex&&c.IDBKeyRange&&c.IDBObjectStore))return e.return(!1)}catch(g){return e.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return e.return(!1); Aa(e,2);d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return e.yield(Lo(d,So),4);case 4:return e.yield(Mo("yt-idb-test-do-not-use",So),5);case 5:return e.return(!0);case 2:return Ba(e),e.return(!1)}})} function Uo(){if(Ro!==void 0)return Ro;En=!0;return Ro=To().then(function(a){En=!1;var b;if((b=An())!=null&&b.h){var c;b={hasSucceededOnce:((c=Bn())==null?void 0:c.hasSucceededOnce)||a};var d;(d=An())==null||d.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0)}return a})} function Vo(){return E("ytglobal.idbToken_")||void 0} function Wo(){var a=Vo();return a?Promise.resolve(a):Uo().then(function(b){(b=b?So:void 0)&&D("ytglobal.idbToken_",b);return b})} ;var Xo=0;function Yo(a,b){Xo||(Xo=aj.pa(function(){var c,d,e,f,g;return A(function(h){switch(h.h){case 1:return h.yield(Wo(),2);case 2:c=h.i;if(!c)return h.return();d=!0;Aa(h,3);return h.yield(Po(a,c,b),5);case 5:e=h.i;if(!e.length){d=!1;h.B(6);break}f=e[0];return h.yield(Go(f.actualName),7);case 7:return h.yield(Mo(f.actualName,c),6);case 6:h.h=4;h.l=0;break;case 3:g=Ba(h),Jn(g),d=!1;case 4:aj.qa(Xo),Xo=0,d&&Yo(a,b),h.h=0}})}))} function Zo(){var a;return A(function(b){return b.h==1?b.yield(Wo(),2):(a=b.i)?b.return(Qo(a)):b.return(!1)})} new Ki;function $o(a){if(!Qm())throw a=new Vn("AUTH_INVALID",{dbName:a}),Jn(a),a;var b=Rm();return{actualName:a+":"+b,publicName:a,userIdentifier:b}} function ap(a,b,c,d){var e,f,g,h,k,l;return A(function(n){switch(n.h){case 1:return f=(e=Error().stack)!=null?e:"",n.yield(Wo(),2);case 2:g=n.i;if(!g)throw h=$n("openDbImpl",a,b),U("ytidb_async_stack_killswitch")||(h.stack=h.stack+"\n"+f.substring(f.indexOf("\n")+1)),Jn(h),h;Ln(a);k=c?{actualName:a,publicName:a,userIdentifier:void 0}:$o(a);Aa(n,3);return n.yield(Lo(k,g),5);case 5:return n.yield(Fo(k.actualName,b,d),6);case 6:return n.return(n.i);case 3:return l=Ba(n),Aa(n,7),n.yield(Mo(k.actualName, g),9);case 9:n.h=8;n.l=0;break;case 7:Ba(n);case 8:throw l;}})} function bp(a,b,c){c=c===void 0?{}:c;return ap(a,b,!1,c)} function cp(a,b,c){c=c===void 0?{}:c;return ap(a,b,!0,c)} function dp(a,b){b=b===void 0?{}:b;var c,d;return A(function(e){if(e.h==1)return e.yield(Wo(),2);if(e.h!=3){c=e.i;if(!c)return e.return();Ln(a);d=$o(a);return e.yield(Go(d.actualName,b),3)}return e.yield(Mo(d.actualName,c),0)})} function ep(a,b,c){a=a.map(function(d){return A(function(e){return e.h==1?e.yield(Go(d.actualName,b),2):e.yield(Mo(d.actualName,c),0)})}); return Promise.all(a).then(function(){})} function fp(){var a=a===void 0?{}:a;var b,c;return A(function(d){if(d.h==1)return d.yield(Wo(),2);if(d.h!=3){b=d.i;if(!b)return d.return();Ln("LogsDatabaseV2");return d.yield(Oo(b),3)}c=d.i;return d.yield(ep(c,a,b),0)})} function gp(a,b){b=b===void 0?{}:b;var c;return A(function(d){if(d.h==1)return d.yield(Wo(),2);if(d.h!=3){c=d.i;if(!c)return d.return();Ln(a);return d.yield(Go(a,b),3)}return d.yield(Mo(a,c),0)})} ;function hp(a,b){Ho.call(this,a,b);this.options=b;Ln(a)} y(hp,Ho);function ip(a,b){var c;return function(){c||(c=new hp(a,b));return c}} hp.prototype.i=function(a,b,c){c=c===void 0?{}:c;return(this.options.shared?cp:bp)(a,b,Object.assign({},c))}; hp.prototype.delete=function(a){a=a===void 0?{}:a;return(this.options.shared?gp:dp)(this.name,a)}; function jp(a,b){return ip(a,b)} ;var kp={},lp=jp("ytGcfConfig",{yb:(kp.coldConfigStore={Gb:1},kp.hotConfigStore={Gb:1},kp),shared:!1,upgrade:function(a,b){b(1)&&(wo(po(a,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),wo(po(a,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});function mp(a){return Jo(lp(),a)} function np(a,b,c){var d,e,f;return A(function(g){switch(g.h){case 1:return d={config:a,hashData:b,timestamp:W()},g.yield(mp(c),2);case 2:return e=g.i,g.yield(e.clear("hotConfigStore"),3);case 3:return g.yield(ro(e,"hotConfigStore",d),4);case 4:return f=g.i,g.return(f)}})} function op(a,b,c,d){var e,f,g;return A(function(h){switch(h.h){case 1:return e={config:a,hashData:b,configData:c,timestamp:W()},h.yield(mp(d),2);case 2:return f=h.i,h.yield(f.clear("coldConfigStore"),3);case 3:return h.yield(ro(f,"coldConfigStore",e),4);case 4:return g=h.i,h.return(g)}})} function pp(a){var b,c;return A(function(d){return d.h==1?d.yield(mp(a),2):d.h!=3?(b=d.i,c=void 0,d.yield(oo(b,["coldConfigStore"],{mode:"readwrite",la:!0},function(e){return Co(e.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})} function qp(a){var b,c;return A(function(d){return d.h==1?d.yield(mp(a),2):d.h!=3?(b=d.i,c=void 0,d.yield(oo(b,["hotConfigStore"],{mode:"readwrite",la:!0},function(e){return Co(e.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})} ;function rp(){G.call(this);this.i=[];this.h=[];var a=E("yt.gcf.config.hotUpdateCallbacks");a?(this.i=[].concat(la(a)),this.h=a):(this.h=[],D("yt.gcf.config.hotUpdateCallbacks",this.h))} y(rp,G);rp.prototype.X=function(){for(var a=x(this.i),b=a.next();!b.done;b=a.next()){var c=this.h;b=c.indexOf(b.value);b>=0&&c.splice(b,1)}this.i.length=0;G.prototype.X.call(this)};function sp(){this.h=0;this.i=new rp} function tp(){var a;return(a=E("yt.gcf.config.hotConfigGroup"))!=null?a:T("RAW_HOT_CONFIG_GROUP")} function up(a,b,c){var d,e,f;return A(function(g){switch(g.h){case 1:if(!U("start_client_gcf")){g.B(0);break}c&&(a.j=c,D("yt.gcf.config.hotConfigGroup",a.j||null));a.l(b);d=Vo();if(!d){g.B(3);break}if(c){g.B(4);break}return g.yield(qp(d),5);case 5:e=g.i,c=(f=e)==null?void 0:f.config;case 4:return g.yield(np(c,b,d),3);case 3:if(c)for(var h=c,k=x(a.i.h),l=k.next();!l.done;l=k.next())l=l.value,l(h);g.h=0}})} function vp(a,b,c){var d,e,f,g;return A(function(h){if(h.h==1){if(!U("start_client_gcf"))return h.B(0);a.coldHashData=b;D("yt.gcf.config.coldHashData",a.coldHashData||null);return(d=Vo())?c?h.B(4):h.yield(pp(d),5):h.B(0)}h.h!=4&&(e=h.i,c=(f=e)==null?void 0:f.config);if(!c)return h.B(0);g=c.configData;return h.yield(op(c,b,g,d),0)})} function wp(){if(!sp.h){var a=new sp;sp.h=a}a=sp.h;var b=W()-a.h;if(!(a.h!==0&&b0&&(b.request={internalExperimentFlags:c});c=a.cd;if((c==="WEB"||c==="MWEB"||c===1||c===2)&&b){var d;b.client.mainAppWebInfo=(d=b.client.mainAppWebInfo)!= null?d:{};b.client.mainAppWebInfo.webDisplayMode=tm()}(d=E("yt.embedded_player.embed_url"))&&b&&(b.thirdParty={embedUrl:d});var e;if(U("web_log_memory_total_kbytes")&&((e=C.navigator)==null?0:e.deviceMemory)){var f;e=(f=C.navigator)==null?void 0:f.deviceMemory;b&&(b.client.memoryTotalKbytes=""+e*1E6)}a.appInstallData&&b&&(b.client.configInfo=b.client.configInfo||{},b.client.configInfo.appInstallData=a.appInstallData);(a=Om())&&b&&(b.client.connectionType=a);U("web_log_effective_connection_type")&& (a=Pm())&&b&&(b.client.effectiveConnectionType=a);U("start_client_gcf")&&(e=wp())&&(a=e.coldConfigData,f=e.coldHashData,e=e.hotHashData,b&&(b.client.configInfo=b.client.configInfo||{},a&&(b.client.configInfo.coldConfigData=a),f&&(b.client.configInfo.coldHashData=f),e&&(b.client.configInfo.hotHashData=e)));T("DELEGATED_SESSION_ID")&&!U("pageid_as_header_web")&&(b.user={onBehalfOfUser:T("DELEGATED_SESSION_ID")});!U("fill_delegate_context_in_gel_killswitch")&&(a=T("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&& (b.user=Object.assign({},b.user,{serializedDelegationContext:a}));a=Object;f=a.assign;e=b.client;d={};c=x(Object.entries(Dl(T("DEVICE",""))));for(var g=c.next();!g.done;g=c.next()){var h=x(g.value);g=h.next().value;h=h.next().value;g==="cbrand"?d.deviceMake=h:g==="cmodel"?d.deviceModel=h:g==="cbr"?d.browserName=h:g==="cbrver"?d.browserVersion=h:g==="cos"?d.osName=h:g==="cosver"?d.osVersion=h:g==="cplatform"&&(d.platform=h)}b.client=f.call(a,e,d);return b} function Ap(a,b,c){c=c===void 0?{}:c;var d={};T("EOM_VISITOR_DATA")?d={"X-Goog-EOM-Visitor-Id":T("EOM_VISITOR_DATA")}:d={"X-Goog-Visitor-Id":c.visitorData||T("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;b=c.authorization||T("AUTHORIZATION");b||(a?b="Bearer "+E("gapi.auth.getToken")().xg:(a=xm(wm()),U("pageid_as_header_web")||delete a["X-Goog-PageId"],d=Object.assign({},d,a)));b&&(d.Authorization=b);return d} ;var Bp=typeof TextEncoder!=="undefined"?new TextEncoder:null,Cp=Bp?function(a){return Bp.encode(a)}:function(a){for(var b=[],c=0,d=0;d>6|192:((e&64512)==55296&&d+1>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}a=new Uint8Array(b.length);for(c=0;c0){var v=Array(t);for(k=0;kVp||g=$p&&(Yp++,U("abandon_compression_after_N_slow_zips")?Zp===Pl("compression_disable_point")&&Yp>aq&&(Xp=!1):Xp=!1);jq(b);d.headers||(d.headers={});d.headers["Content-Encoding"]="gzip";d.postBody=a;d.postParams=void 0;e(c,d)} function kq(a){var b=b===void 0?!1:b;var c=c===void 0?!1:c;var d=W(),e={startTime:d,ticks:{},infos:{}},f=b?E("yt.logging.gzipForFetch",!1):!0;if(Xp&&f){if(!a.body)return a;try{var g=c?a.body:typeof a.body==="string"?a.body:JSON.stringify(a.body);f=g;if(!c&&typeof g==="string"){var h=iq(g);if(h!=null&&(h>Vp||h=$p)if(Yp++,U("abandon_compression_after_N_slow_zips")||U("abandon_compression_after_N_slow_zips_lr")){b=Yp/Zp;var l=aq/Pl("compression_disable_point");Zp>0&&Zp%Pl("compression_disable_point")===0&&b>=l&&(Xp=!1)}else Xp=!1;jq(e)}}a.headers=Object.assign({},{"Content-Encoding":"gzip"},a.headers||{});a.body=f;return a}catch(n){return wl(n),a}}else return a} function iq(a){try{return(new Blob(a.split(""))).size}catch(b){return wl(b),null}} function jq(a){U("gel_compression_csi_killswitch")||!U("log_gel_compression_latency")&&!U("log_gel_compression_latency_lr")||Qp("gel_compression",a,{sampleRate:.1})} ;function lq(a){a=Object.assign({},a);delete a.Authorization;var b=yh();if(b){var c=new ej;c.update(T("INNERTUBE_API_KEY"));c.update(b);a.hash=Ke(c.digest(),3)}return a} ;var mq;function nq(){mq||(mq=new zn("yt.innertube"));return mq} function oq(a,b,c,d){if(d)return null;d=nq().get("nextId",!0)||1;var e=nq().get("requests",!0)||{};e[d]={method:a,request:b,authState:lq(c),requestTime:Math.round(W())};nq().set("nextId",d+1,86400,!0);nq().set("requests",e,86400,!0);return d} function pq(a){var b=nq().get("requests",!0)||{};delete b[a];nq().set("requests",b,86400,!0)} function qq(a){var b=nq().get("requests",!0);if(b){for(var c in b){var d=b[c];if(!(Math.round(W())-d.requestTime<6E4)){var e=d.authState,f=lq(Ap(!1));Qb(e,f)&&(e=d.request,"requestTimeMs"in e&&(e.requestTimeMs=Math.round(W())),rq(a,d.method,e,{}));delete b[c]}}nq().set("requests",b,86400,!0)}} ;function sq(a){this.Wb=this.h=!1;this.potentialEsfErrorCounter=this.i=0;this.handleError=function(){}; this.pb=function(){}; this.now=Date.now;this.Jb=!1;var b;this.xd=(b=a.xd)!=null?b:100;var c;this.rd=(c=a.rd)!=null?c:1;var d;this.od=(d=a.od)!=null?d:2592E6;var e;this.md=(e=a.md)!=null?e:12E4;var f;this.qd=(f=a.qd)!=null?f:5E3;var g;this.W=(g=a.W)!=null?g:void 0;this.cc=!!a.cc;var h;this.Zb=(h=a.Zb)!=null?h:.1;var k;this.kc=(k=a.kc)!=null?k:10;a.handleError&&(this.handleError=a.handleError);a.pb&&(this.pb=a.pb);a.Jb&&(this.Jb=a.Jb);a.Wb&&(this.Wb=a.Wb);this.Y=a.Y;this.Da=a.Da;this.ha=a.ha;this.fa=a.fa;this.sendFn=a.sendFn; this.Hc=a.Hc;this.Ec=a.Ec;tq(this)&&(!this.Y||this.Y("networkless_logging"))&&uq(this)} function uq(a){tq(a)&&!a.Jb&&(a.h=!0,a.cc&&Math.random()<=a.Zb&&a.ha.Ld(a.W),vq(a),a.fa.va()&&a.Sb(),a.fa.listen(a.Hc,a.Sb.bind(a)),a.fa.listen(a.Ec,a.Rc.bind(a)))} p=sq.prototype;p.writeThenSend=function(a,b){var c=this;b=b===void 0?{}:b;if(tq(this)&&this.h){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.ha.set(d,this.W).then(function(e){d.id=e;c.fa.va()&&wq(c,d)}).catch(function(e){wq(c,d); xq(c,e)})}else this.sendFn(a,b)}; p.sendThenWrite=function(a,b,c){var d=this;b=b===void 0?{}:b;if(tq(this)&&this.h){var e={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.Y&&this.Y("nwl_skip_retry")&&(e.skipRetry=c);if(this.fa.va()||this.Y&&this.Y("nwl_aggressive_send_then_write")&&!e.skipRetry){if(!e.skipRetry){var f=b.onError?b.onError:function(){}; b.onError=function(g,h){return A(function(k){if(k.h==1)return k.yield(d.ha.set(e,d.W).catch(function(l){xq(d,l)}),2); f(g,h);k.h=0})}}this.sendFn(a,b,e.skipRetry)}else this.ha.set(e,this.W).catch(function(g){d.sendFn(a,b,e.skipRetry); xq(d,g)})}else this.sendFn(a,b,this.Y&&this.Y("nwl_skip_retry")&&c)}; p.sendAndWrite=function(a,b){var c=this;b=b===void 0?{}:b;if(tq(this)&&this.h){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0},e=!1,f=b.onSuccess?b.onSuccess:function(){}; d.options.onSuccess=function(g,h){d.id!==void 0?c.ha.ob(d.id,c.W):e=!0;c.fa.gb&&c.Y&&c.Y("vss_network_hint")&&c.fa.gb(!0);f(g,h)}; this.sendFn(d.url,d.options,void 0,!0);this.ha.set(d,this.W).then(function(g){d.id=g;e&&c.ha.ob(d.id,c.W)}).catch(function(g){xq(c,g)})}else this.sendFn(a,b,void 0,!0)}; p.Sb=function(){var a=this;if(!tq(this))throw Error("IndexedDB is not supported: throttleSend");this.i||(this.i=this.Da.pa(function(){var b;return A(function(c){if(c.h==1)return c.yield(a.ha.Yc("NEW",a.W),2);if(c.h!=3)return b=c.i,b?c.yield(wq(a,b),3):(a.Rc(),c.return());a.i&&(a.i=0,a.Sb());c.h=0})},this.xd))}; p.Rc=function(){this.Da.qa(this.i);this.i=0}; function wq(a,b){var c;return A(function(d){switch(d.h){case 1:if(!tq(a))throw Error("IndexedDB is not supported: immediateSend");if(b.id===void 0){d.B(2);break}return d.yield(a.ha.ne(b.id,a.W),3);case 3:(c=d.i)||a.pb(Error("The request cannot be found in the database."));case 2:if(yq(a,b,a.od)){d.B(4);break}a.pb(Error("Networkless Logging: Stored logs request expired age limit"));if(b.id===void 0){d.B(5);break}return d.yield(a.ha.ob(b.id,a.W),5);case 5:return d.return();case 4:b.skipRetry||(b=zq(a, b));if(!b){d.B(0);break}if(!b.skipRetry||b.id===void 0){d.B(8);break}return d.yield(a.ha.ob(b.id,a.W),8);case 8:a.sendFn(b.url,b.options,!!b.skipRetry),d.h=0}})} function zq(a,b){if(!tq(a))throw Error("IndexedDB is not supported: updateRequestHandlers");var c=b.options.onError?b.options.onError:function(){}; b.options.onError=function(e,f){var g,h,k,l;return A(function(n){switch(n.h){case 1:g=Aq(f);(h=Bq(f))&&a.Y&&a.Y("web_enable_error_204")&&a.handleError(Error("Request failed due to compression"),b.url,f);if(!(a.Y&&a.Y("nwl_consider_error_code")&&g||a.Y&&!a.Y("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.kc)){n.B(2);break}if(!a.fa.nc){n.B(3);break}return n.yield(a.fa.nc(),3);case 3:if(a.fa.va()){n.B(2);break}c(e,f);if(!a.Y||!a.Y("nwl_consider_error_code")||((k=b)==null?void 0:k.id)===void 0){n.B(6); break}return n.yield(a.ha.Ic(b.id,a.W,!1),6);case 6:return n.return();case 2:if(a.Y&&a.Y("nwl_consider_error_code")&&!g&&a.potentialEsfErrorCounter>a.kc)return n.return();a.potentialEsfErrorCounter++;if(((l=b)==null?void 0:l.id)===void 0){n.B(8);break}return b.sendCount=c?!1:!0} function vq(a){if(!tq(a))throw Error("IndexedDB is not supported: retryQueuedRequests");a.ha.Yc("QUEUED",a.W).then(function(b){b&&!yq(a,b,a.md)?a.Da.pa(function(){return A(function(c){if(c.h==1)return b.id===void 0?c.B(2):c.yield(a.ha.Ic(b.id,a.W),2);vq(a);c.h=0})}):a.fa.va()&&a.Sb()})} function xq(a,b){a.Dd&&!a.fa.va()?a.Dd(b):a.handleError(b)} function tq(a){return!!a.W||a.Wb} function Aq(a){var b;return(a=a==null?void 0:(b=a.error)==null?void 0:b.code)&&a>=400&&a<=599?!1:!0} function Bq(a){var b;a=a==null?void 0:(b=a.error)==null?void 0:b.code;return!(a!==400&&a!==415)} ;var Cq; function Dq(){if(Cq)return Cq();var a={};Cq=jp("LogsDatabaseV2",{yb:(a.LogsRequestsStore={Gb:2},a),shared:!1,upgrade:function(b,c,d){c(2)&&po(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.h.indexNames.contains("newRequest")&&d.h.deleteIndex("newRequest"),wo(d,"newRequestV2",["status","interface","timestamp"]));c(7)&&b.h.objectStoreNames.contains("sapisid")&&b.h.deleteObjectStore("sapisid");c(9)&&b.h.objectStoreNames.contains("SWHealthLog")&&b.h.deleteObjectStore("SWHealthLog")}, version:9});return Cq()} ;function Eq(a){return Jo(Dq(),a)} function Fq(a,b){var c,d,e,f;return A(function(g){if(g.h==1)return c={startTime:W(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.yield(Eq(b),2);if(g.h!=3)return d=g.i,e=Object.assign({},a,{options:JSON.parse(JSON.stringify(a.options)),interface:T("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.yield(ro(d,"LogsRequestsStore",e),3);f=g.i;c.ticks.tc=W();Gq(c);return g.return(f)})} function Hq(a,b){var c,d,e,f,g,h,k,l;return A(function(n){if(n.h==1)return c={startTime:W(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},n.yield(Eq(b),2);if(n.h!=3)return d=n.i,e=T("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[a,e,0],g=[a,e,W()],h=IDBKeyRange.bound(f,g),k="prev",U("use_fifo_for_networkless")&&(k="next"),l=void 0,n.yield(oo(d,["LogsRequestsStore"],{mode:"readwrite",la:!0},function(m){return Co(m.objectStore("LogsRequestsStore").index("newRequestV2"),{query:h,direction:k}, function(r){r.getValue()&&(l=r.getValue(),a==="NEW"&&(l.status="QUEUED",r.update(l)))})}),3); c.ticks.tc=W();Gq(c);return n.return(l)})} function Iq(a,b){var c;return A(function(d){if(d.h==1)return d.yield(Eq(b),2);c=d.i;return d.return(oo(c,["LogsRequestsStore"],{mode:"readwrite",la:!0},function(e){var f=e.objectStore("LogsRequestsStore");return f.get(a).then(function(g){if(g)return g.status="QUEUED",ko(f.h.put(g,void 0)).then(function(){return g})})}))})} function Jq(a,b,c,d){c=c===void 0?!0:c;var e;return A(function(f){if(f.h==1)return f.yield(Eq(b),2);e=f.i;return f.return(oo(e,["LogsRequestsStore"],{mode:"readwrite",la:!0},function(g){var h=g.objectStore("LogsRequestsStore");return h.get(a).then(function(k){return k?(k.status="NEW",c&&(k.sendCount+=1),d!==void 0&&(k.options.compress=d),ko(h.h.put(k,void 0)).then(function(){return k})):eo.resolve(void 0)})}))})} function Kq(a,b){var c;return A(function(d){if(d.h==1)return d.yield(Eq(b),2);c=d.i;return d.return(c.delete("LogsRequestsStore",a))})} function Lq(a){var b,c;return A(function(d){if(d.h==1)return d.yield(Eq(a),2);b=d.i;c=W()-2592E6;return d.yield(oo(b,["LogsRequestsStore"],{mode:"readwrite",la:!0},function(e){return yo(e.objectStore("LogsRequestsStore"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return zo(f)})})}),0)})} function Mq(){A(function(a){return a.yield(fp(),0)})} function Gq(a){U("nwl_csi_killswitch")||Qp("networkless_performance",a,{sampleRate:1})} ;var Nq={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135, mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28, nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42, assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225, liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73, visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88, spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153, vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,mbsConnectionInitiated:138, mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,kidsParentalGateTracking:168, kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387, transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189, ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258, ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221, accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245, musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270, yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296, notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478, tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340, iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361, mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380, mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400, clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420, mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16, mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443, cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471, webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494, miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500};var Oq={},Pq=jp("ServiceWorkerLogsDatabase",{yb:(Oq.SWHealthLog={Gb:1},Oq),shared:!0,upgrade:function(a,b){b(1)&&wo(po(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});function Qq(a){return Jo(Pq(),a)} function Rq(a){var b,c;A(function(d){if(d.h==1)return d.yield(Qq(a),2);b=d.i;c=W()-2592E6;return d.yield(oo(b,["SWHealthLog"],{mode:"readwrite",la:!0},function(e){return yo(e.objectStore("SWHealthLog"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return zo(f)})})}),0)})} function Sq(a){var b;return A(function(c){if(c.h==1)return c.yield(Qq(a),2);b=c.i;return c.yield(b.clear("SWHealthLog"),0)})} ;var Tq={},Uq=0;function Vq(a){var b=new Image,c=""+Uq++;Tq[c]=b;b.onload=b.onerror=function(){delete Tq[c]}; b.src=a} ;var Wq;function Xq(){Wq||(Wq=new zn("yt.offline"));return Wq} function Yq(a){if(U("offline_error_handling")){var b=Xq().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);Xq().set("errors",b,2592E3,!0)}} ;function Zq(){this.h=new Map;this.i=!1} function $q(){if(!Zq.h){var a=E("yt.networkRequestMonitor.instance")||new Zq;D("yt.networkRequestMonitor.instance",a);Zq.h=a}return Zq.h} Zq.prototype.requestComplete=function(a,b){b&&(this.i=!0);a=this.removeParams(a);this.h.get(a)||this.h.set(a,b)}; Zq.prototype.isEndpointCFR=function(a){a=this.removeParams(a);return(a=this.h.get(a))?!1:a===!1&&this.i?!0:null}; Zq.prototype.removeParams=function(a){return a.split("?")[0]}; Zq.prototype.removeParams=Zq.prototype.removeParams;Zq.prototype.isEndpointCFR=Zq.prototype.isEndpointCFR;Zq.prototype.requestComplete=Zq.prototype.requestComplete;Zq.getInstance=$q;function ar(){yd.call(this);var a=this;this.j=!1;this.i=$i();this.i.listen("networkstatus-online",function(){if(a.j&&U("offline_error_handling")){var b=Xq().get("errors",!0);if(b){for(var c in b)if(b[c]){var d=new V(c,"sent via offline_errors");d.name=b[c].name;d.stack=b[c].stack;d.level=b[c].level;vl(d)}Xq().set("errors",{},2592E3,!0)}}})} y(ar,yd);function br(){if(!ar.h){var a=E("yt.networkStatusManager.instance")||new ar;D("yt.networkStatusManager.instance",a);ar.h=a}return ar.h} p=ar.prototype;p.va=function(){return this.i.va()}; p.gb=function(a){this.i.i=a}; p.Zd=function(){var a=window.navigator.onLine;return a===void 0?!0:a}; p.Qd=function(){this.j=!0}; p.listen=function(a,b){return this.i.listen(a,b)}; p.nc=function(a){a=Yi(this.i,a);a.then(function(b){U("use_cfr_monitor")&&$q().requestComplete("generate_204",b)}); return a}; ar.prototype.sendNetworkCheckRequest=ar.prototype.nc;ar.prototype.listen=ar.prototype.listen;ar.prototype.enableErrorFlushing=ar.prototype.Qd;ar.prototype.getWindowStatus=ar.prototype.Zd;ar.prototype.networkStatusHint=ar.prototype.gb;ar.prototype.isNetworkAvailable=ar.prototype.va;ar.getInstance=br;function cr(a){a=a===void 0?{}:a;yd.call(this);var b=this;this.i=this.m=0;this.j=br();var c=E("yt.networkStatusManager.instance.listen").bind(this.j);c&&(a.rateLimit?(this.rateLimit=a.rateLimit,c("networkstatus-online",function(){dr(b,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){dr(b,"publicytnetworkstatus-offline")})):(c("networkstatus-online",function(){zd(b,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){zd(b,"publicytnetworkstatus-offline")})))} y(cr,yd);cr.prototype.va=function(){var a=E("yt.networkStatusManager.instance.isNetworkAvailable");return a?a.bind(this.j)():!0}; cr.prototype.gb=function(a){var b=E("yt.networkStatusManager.instance.networkStatusHint").bind(this.j);b&&b(a)}; cr.prototype.nc=function(a){var b=this,c;return A(function(d){c=E("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.j);return U("skip_network_check_if_cfr")&&$q().isEndpointCFR("generate_204")?d.return(new Promise(function(e){var f;b.gb(((f=window.navigator)==null?void 0:f.onLine)||!0);e(b.va())})):c?d.return(c(a)):d.return(!0)})}; function dr(a,b){a.rateLimit?a.i?(aj.qa(a.m),a.m=aj.pa(function(){a.l!==b&&(zd(a,b),a.l=b,a.i=W())},a.rateLimit-(W()-a.i))):(zd(a,b),a.l=b,a.i=W()):zd(a,b)} ;var er;function fr(){var a=sq.call;er||(er=new cr({Jg:!0,Cg:!0}));a.call(sq,this,{ha:{Ld:Lq,ob:Kq,Yc:Hq,ne:Iq,Ic:Jq,set:Fq},fa:er,handleError:function(b,c,d){var e,f=d==null?void 0:(e=d.error)==null?void 0:e.code;if(f===400||f===415){var g;wl(new V(b.message,c,d==null?void 0:(g=d.error)==null?void 0:g.code),void 0,void 0,void 0,!0)}else vl(b)}, pb:wl,sendFn:gr,now:W,Dd:Yq,Da:yn(),Hc:"publicytnetworkstatus-online",Ec:"publicytnetworkstatus-offline",cc:!0,Zb:.1,kc:Pl("potential_esf_error_limit",10),Y:U,Jb:!(Qm()&&hr())});this.j=new Ki;U("networkless_immediately_drop_all_requests")&&Mq();gp("LogsDatabaseV2")} y(fr,sq);function ir(){var a=E("yt.networklessRequestController.instance");a||(a=new fr,D("yt.networklessRequestController.instance",a),U("networkless_logging")&&Wo().then(function(b){a.W=b;uq(a);a.j.resolve();a.cc&&Math.random()<=a.Zb&&a.W&&Rq(a.W);U("networkless_immediately_drop_sw_health_store")&&jr(a)})); return a} fr.prototype.writeThenSend=function(a,b){b||(b={});b=kr(a,b);Qm()||(this.h=!1);sq.prototype.writeThenSend.call(this,a,b)}; fr.prototype.sendThenWrite=function(a,b,c){b||(b={});b=kr(a,b);Qm()||(this.h=!1);sq.prototype.sendThenWrite.call(this,a,b,c)}; fr.prototype.sendAndWrite=function(a,b){b||(b={});b=kr(a,b);Qm()||(this.h=!1);sq.prototype.sendAndWrite.call(this,a,b)}; fr.prototype.awaitInitialization=function(){return this.j.promise}; function jr(a){var b;A(function(c){if(!a.W)throw b=$n("clearSWHealthLogsDb"),b;return c.return(Sq(a.W).catch(function(d){a.handleError(d)}))})} function gr(a,b,c,d){d=d===void 0?!1:d;b=U("web_fp_via_jspb")?Object.assign({},b):b;U("use_cfr_monitor")&&lr(a,b);if(U("use_request_time_ms_header"))b.headers&&Gl(a)&&(b.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round(W())));else{var e;if((e=b.postParams)==null?0:e.requestTimeMs)b.postParams.requestTimeMs=Math.round(W())}if(c&&Object.keys(b).length===0){var f=f===void 0?"":f;var g=g===void 0?!1:g;var h=h===void 0?!1:h;if(a)if(f)Ul(a,void 0,"POST",f,void 0);else if(T("USE_NET_AJAX_FOR_PING_TRANSPORT", !1)||h)Ul(a,void 0,"GET","",void 0,void 0,g,h);else{b:{try{var k=new cb({url:a});if(k.j&&k.i||k.l){var l=mc(nc(5,a)),n;if(!(n=!l||!l.endsWith("/aclk"))){var m=a.search(vc),r=uc(a,0,"ri",m);if(r<0)var t=null;else{var v=a.indexOf("&",r);if(v<0||v>m)v=m;t=decodeURIComponent(a.slice(r+3,v!==-1?v:0).replace(/\+/g," "))}n=t!=="1"}var u=!n;break b}}catch(F){}u=!1}if(u){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,"")){var z=!0;break b}}catch(F){}z=!1}c=z?!0:!1}else c= !1;c||Vq(a)}}else b.compress?b.postBody?(typeof b.postBody!=="string"&&(b.postBody=JSON.stringify(b.postBody)),hq(a,b.postBody,b,Yl,d)):hq(a,JSON.stringify(b.postParams),b,Xl,d):Yl(a,b)} function kr(a,b){U("use_event_time_ms_header")&&Gl(a)&&(b.headers||(b.headers={}),b.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round(W())));return b} function lr(a,b){var c=b.onError?b.onError:function(){}; b.onError=function(e,f){$q().requestComplete(a,!1);c(e,f)}; var d=b.onSuccess?b.onSuccess:function(){}; b.onSuccess=function(e,f){$q().requestComplete(a,!0);d(e,f)}} function hr(){return oc(document.location.toString())!=="www.youtube-nocookie.com"} ;var mr=!1,nr=C.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:mr};D("ytNetworklessLoggingInitializationOptions",nr);function or(){var a;A(function(b){if(b.h==1)return b.yield(Wo(),2);a=b.i;if(!a||!Qm()&&!U("nwl_init_require_datasync_id_killswitch")||!hr())return b.B(0);mr=!0;nr.isNwlInitialized=mr;return b.yield(ir().awaitInitialization(),0)})} ;function pr(a){var b=this;this.config_=null;a?this.config_=a:xp()&&(this.config_=yp());Tm(function(){qq(b)},5E3)} pr.prototype.isReady=function(){!this.config_&&xp()&&(this.config_=yp());return!!this.config_}; function rq(a,b,c,d){function e(v){v=v===void 0?!1:v;var u;if(d.retry&&h!="www.youtube-nocookie.com"&&(v||U("skip_ls_gel_retry")||g.headers["Content-Type"]!=="application/json"||(u=oq(b,c,l,k)),u)){var z=g.onSuccess,F=g.onFetchSuccess;g.onSuccess=function(S,da){pq(u);z(S,da)}; c.onFetchSuccess=function(S,da){pq(u);F(S,da)}}try{if(v&&d.retry&&!d.networklessOptions.bypassNetworkless)g.method="POST",d.networklessOptions.writeThenSend?ir().writeThenSend(t,g):ir().sendAndWrite(t,g); else if(d.compress){var H=!d.networklessOptions.writeThenSend;if(g.postBody){var O=g.postBody;typeof O!=="string"&&(O=JSON.stringify(g.postBody));hq(t,O,g,Yl,H)}else hq(t,JSON.stringify(g.postParams),g,Xl,H)}else U("web_all_payloads_via_jspb")?Yl(t,g):Xl(t,g)}catch(S){if(S.name==="InvalidAccessError")u&&(pq(u),u=0),wl(Error("An extension is blocking network request."));else throw S;}u&&Tm(function(){qq(a)},5E3)} !T("VISITOR_DATA")&&b!=="visitor_id"&&Math.random()<.01&&wl(new V("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady()){var f=new V("innertube xhrclient not ready",b,c,d);vl(f);throw f;}var g={headers:d.headers||{},method:"POST",postParams:c,postBody:d.postBody,postBodyFormat:d.postBodyFormat||"JSON",onTimeout:function(){d.onTimeout()}, onFetchTimeout:d.onTimeout,onSuccess:function(v,u){if(d.onSuccess)d.onSuccess(u)}, onFetchSuccess:function(v){if(d.onSuccess)d.onSuccess(v)}, onError:function(v,u){if(d.onError)d.onError(u)}, onFetchError:function(v){if(d.onError)d.onError(v)}, timeout:d.timeout,withCredentials:!0,compress:d.compress};g.headers["Content-Type"]||(g.headers["Content-Type"]="application/json");var h="";(f=a.config_.he)&&(h=f);var k=a.config_.ke||!1,l=Ap(k,h,d);Object.assign(g.headers,l);(f=g.headers.Authorization)&&!h&&k&&(g.headers["x-origin"]=window.location.origin);var n="/youtubei/"+a.config_.innertubeApiVersion+"/"+b,m={alt:"json"},r=a.config_.je&&f;r=r&&f.startsWith("Bearer");r||(m.key=a.config_.innertubeApiKey);var t=Fl(""+h+n,m||{},!0);(E("ytNetworklessLoggingInitializationOptions")? nr.isNwlInitialized:mr)?Uo().then(function(v){e(v)}):e(!1)} ;var qr=0,rr=$c?"webkit":Zc?"moz":Xc?"ms":Wc?"o":"";D("ytDomDomGetNextId",E("ytDomDomGetNextId")||function(){return++qr});var sr={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,screenX:1,screenY:1,scale:1,rotation:1,webkitMovementX:1,webkitMovementY:1}; function tr(a){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;try{if(a=a||window.event){this.event=a;for(var b in a)b in sr||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;var c=a.target||a.srcElement;c&&c.nodeType==3&&(c=c.parentNode);this.target=c;var d=a.relatedTarget; if(d)try{d=d.nodeName?d:null}catch(e){d=null}else this.type=="mouseover"?d=a.fromElement:this.type=="mouseout"&&(d=a.toElement);this.relatedTarget=d;this.clientX=a.clientX!=void 0?a.clientX:a.pageX;this.clientY=a.clientY!=void 0?a.clientY:a.pageY;this.keyCode=a.keyCode?a.keyCode:a.which;this.charCode=a.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=a.altKey;this.ctrlKey=a.ctrlKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.h=a.pageX;this.i=a.pageY}}catch(e){}} function xr(a){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;a.h=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.i=a.clientY+b}} tr.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; tr.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; tr.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Mb=C.ytEventsEventsListeners||{};D("ytEventsEventsListeners",Mb);var yr=C.ytEventsEventsCounter||{count:0};D("ytEventsEventsCounter",yr); function zr(a,b,c,d){d=d===void 0?{}:d;a.addEventListener&&(b!="mouseenter"||"onmouseenter"in document?b!="mouseleave"||"onmouseenter"in document?b=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"):b="mouseout":b="mouseover");return Lb(function(e){var f=typeof e[4]==="boolean"&&e[4]==!!d,g=Ra(e[4])&&Ra(d)&&Qb(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||g)})} function Ar(a,b,c,d){d=d===void 0?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=zr(a,b,c,d);if(e)return e;e=++yr.count+"";var f=!(b!="mouseenter"&&b!="mouseleave"||!a.addEventListener||"onmouseenter"in document);var g=f?function(h){h=new tr(h);if(!Jd(h.relatedTarget,function(k){return k==a}))return h.currentTarget=a,h.type=b,c.call(a,h)}:function(h){h=new tr(h); h.currentTarget=a;return c.call(a,h)}; g=ul(g);a.addEventListener?(b=="mouseenter"&&f?b="mouseover":b=="mouseleave"&&f?b="mouseout":b=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),Br()||typeof d==="boolean"?a.addEventListener(b,g,d):a.addEventListener(b,g,!!d.capture)):a.attachEvent("on"+b,g);Mb[e]=[a,b,c,g,d];return e} function Cr(a){a&&(typeof a=="string"&&(a=[a]),Db(a,function(b){if(b in Mb){var c=Mb[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?Br()||typeof c==="boolean"?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete Mb[b]}}))} var Br=Ed(function(){var a=!1;try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}}); window.addEventListener("test",null,b)}catch(c){}return a});function Dr(a){this.F=a;this.h=null;this.l=0;this.A=null;this.m=0;this.i=[];for(a=0;a<4;a++)this.i.push(0);this.j=0;this.T=Ar(window,"mousemove",Xa(this.Z,this));a=Xa(this.K,this);typeof a==="function"&&(a=ul(a));this.da=window.setInterval(a,25)} $a(Dr,G);Dr.prototype.Z=function(a){a.h===void 0&&xr(a);var b=a.h;a.i===void 0&&xr(a);this.h=new Fd(b,a.i)}; Dr.prototype.K=function(){if(this.h){var a=W();if(this.l!=0){var b=this.A,c=this.h,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.l);this.i[this.j]=Math.abs((d-this.m)/this.m)>.5?1:0;for(c=b=0;c<4;c++)b+=this.i[c]||0;b>=3&&this.F();this.m=d}this.l=a;this.A=this.h;this.j=(this.j+1)%4}}; Dr.prototype.X=function(){window.clearInterval(this.da);Cr(this.T)};var Er={}; function Fr(a){var b=a===void 0?{}:a;a=b.xe===void 0?!1:b.xe;b=b.Rd===void 0?!0:b.Rd;if(E("_lact",window)==null){var c=parseInt(T("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;D("_lact",c,window);D("_fact",c,window);c==-1&&Gr();Ar(document,"keydown",Gr);Ar(document,"keyup",Gr);Ar(document,"mousedown",Gr);Ar(document,"mouseup",Gr);a?Ar(window,"touchmove",function(){Hr("touchmove",200)},{passive:!0}):(Ar(window,"resize",function(){Hr("resize",200)}),b&&Ar(window,"scroll",function(){Hr("scroll",200)})); new Dr(function(){Hr("mouse",100)}); Ar(document,"touchstart",Gr,{passive:!0});Ar(document,"touchend",Gr,{passive:!0})}} function Hr(a,b){Er[a]||(Er[a]=!0,aj.pa(function(){Gr();Er[a]=!1},b))} function Gr(){E("_lact",window)==null&&Fr();var a=Date.now();D("_lact",a,window);E("_fact",window)==-1&&D("_fact",a,window);(a=E("ytglobal.ytUtilActivityCallback_"))&&a()} function Ir(){var a=E("_lact",window);return a==null?-1:Math.max(Date.now()-a,0)} ;var Jr=C.ytPubsubPubsubInstance||new M,Kr=C.ytPubsubPubsubSubscribedKeys||{},Lr=C.ytPubsubPubsubTopicToKeys||{},Mr=C.ytPubsubPubsubIsSynchronous||{};function Nr(a,b){var c=Or();if(c&&b){var d=c.subscribe(a,function(){function e(){Kr[d]&&b.apply&&typeof b.apply=="function"&&b.apply(window,f)} var f=arguments;try{Mr[a]?e():Ml(e,0)}catch(g){vl(g)}},void 0); Kr[d]=!0;Lr[a]||(Lr[a]=[]);Lr[a].push(d);return d}return 0} function Pr(a){var b=Or();b&&(typeof a==="number"?a=[a]:typeof a==="string"&&(a=[parseInt(a,10)]),Db(a,function(c){b.unsubscribeByKey(c);delete Kr[c]}))} function Qr(a,b){var c=Or();c&&c.publish.apply(c,arguments)} function Rr(a){var b=Or();if(b)if(b.clear(a),a)Sr(a);else for(var c in Lr)Sr(c)} function Or(){return C.ytPubsubPubsubInstance} function Sr(a){Lr[a]&&(a=Lr[a],Db(a,function(b){Kr[b]&&delete Kr[b]}),a.length=0)} M.prototype.subscribe=M.prototype.subscribe;M.prototype.unsubscribeByKey=M.prototype.Cb;M.prototype.publish=M.prototype.Ya;M.prototype.clear=M.prototype.clear;D("ytPubsubPubsubInstance",Jr);D("ytPubsubPubsubTopicToKeys",Lr);D("ytPubsubPubsubIsSynchronous",Mr);D("ytPubsubPubsubSubscribedKeys",Kr);var Tr=Symbol("injectionDeps");function Ur(a){this.name=a} Ur.prototype.toString=function(){return"InjectionToken("+this.name+")"}; function Vr(a){this.key=a} function Wr(){this.i=new Map;this.j=new Map;this.h=new Map} function Xr(a,b){a.i.set(b.mc,b);var c=a.j.get(b.mc);if(c)try{c.Qg(a.resolve(b.mc))}catch(d){c.Og(d)}} Wr.prototype.resolve=function(a){return a instanceof Vr?Yr(this,a.key,[],!0):Yr(this,a,[])}; function Yr(a,b,c,d){d=d===void 0?!1:d;if(c.indexOf(b)>-1)throw Error("Deps cycle for: "+b);if(a.h.has(b))return a.h.get(b);if(!a.i.has(b)){if(d)return;throw Error("No provider for: "+b);}d=a.i.get(b);c.push(b);if(d.zd!==void 0)var e=d.zd;else if(d.ff)e=d[Tr]?Zr(a,d[Tr],c):[],e=d.ff.apply(d,la(e));else if(d.yd){e=d.yd;var f=e[Tr]?Zr(a,e[Tr],c):[];e=new (Function.prototype.bind.apply(e,[null].concat(la(f))))}else throw Error("Could not resolve providers for: "+b);c.pop();d.Tg||a.h.set(b,e);return e} function Zr(a,b,c){return b?b.map(function(d){return d instanceof Vr?Yr(a,d.key,c,!0):Yr(a,d,c)}):[]} ;var $r;function as(){$r||($r=new Wr);return $r} ;var bs=window;function cs(){var a,b;return"h5vcc"in bs&&((a=bs.h5vcc.traceEvent)==null?0:a.traceBegin)&&((b=bs.h5vcc.traceEvent)==null?0:b.traceEnd)?1:"performance"in bs&&bs.performance.mark&&bs.performance.measure?2:0} function ds(a){var b=cs();switch(b){case 1:bs.h5vcc.traceEvent.traceBegin("YTLR",a);break;case 2:bs.performance.mark(a+"-start");break;case 0:break;default:Xb(b,"unknown trace type")}} function es(a){var b=cs();switch(b){case 1:bs.h5vcc.traceEvent.traceEnd("YTLR",a);break;case 2:b=a+"-start";var c=a+"-end";bs.performance.mark(c);bs.performance.measure(a,b,c);break;case 0:break;default:Xb(b,"unknown trace type")}} ;var gs=U("web_enable_lifecycle_monitoring")&&cs()!==0,hs=U("web_enable_lifecycle_monitoring");function is(a){var b=this;var c=c===void 0?0:c;var d=d===void 0?yn():d;this.j=c;this.scheduler=d;this.i=new Ki;this.h=a;for(a={cb:0};a.cb-1&&a.plugins.splice(b,1)})}; p.transition=function(a,b){var c=this;gs&&es(this.state);var d=this.transitions.find(function(f){return Array.isArray(f.from)?f.from.find(function(g){return g===c.state&&f.to===a}):f.from===c.state&&f.to===a}); if(d){this.j&&(js(this.j),this.j=void 0);ls(this,a,b);this.state=a;gs&&ds(this.state);d=d.action.bind(this);var e=this.plugins.filter(function(f){return f[a]}).map(function(f){return f[a]}); d(ms(this,e),b)}else throw Error("no transition specified from "+this.state+" to "+a);}; function ms(a,b){var c=b.filter(function(e){return ns(a,e)===10}),d=b.filter(function(e){return ns(a,e)!==10}); return a.A.Sg?function(){var e=B.apply(0,arguments);return A(function(f){if(f.h==1)return f.yield(a.Ee.apply(a,[c].concat(la(e))),2);a.ud.apply(a,[d].concat(la(e)));f.h=0})}:function(){var e=B.apply(0,arguments); a.Fe.apply(a,[c].concat(la(e)));a.ud.apply(a,[d].concat(la(e)))}} p.Fe=function(a){for(var b=B.apply(1,arguments),c=yn(),d=x(a),e=d.next(),f={};!e.done;f={Lb:void 0},e=d.next())f.Lb=e.value,c.Eb(function(g){return function(){ps(g.Lb.name);g.Lb.callback.apply(g.Lb,la(b));qs(g.Lb.name)}}(f))}; p.Ee=function(a){var b=B.apply(1,arguments),c,d,e,f,g;return A(function(h){h.h==1&&(c=yn(),d=x(a),e=d.next(),f={});if(h.h!=3){if(e.done)return h.B(0);f.tb=e.value;f.Ub=void 0;g=function(k){return function(){ps(k.tb.name);var l=k.tb.callback.apply(k.tb,la(b));typeof(l==null?void 0:l.then)==="function"?k.Ub=l.then(function(){qs(k.tb.name)}):qs(k.tb.name)}}(f); c.Eb(g);return f.Ub?h.yield(f.Ub,3):h.B(3)}f={tb:void 0,Ub:void 0};e=d.next();return h.B(2)})}; p.ud=function(a){var b=B.apply(1,arguments),c=this,d=a.map(function(e){return{xc:function(){ps(e.name);e.callback.apply(e,la(b));qs(e.name)}, priority:ns(c,e)}}); d.length&&(this.j=new is(d))}; function ns(a,b){var c,d;return(d=(c=a.l)!=null?c:b.priority)!=null?d:0} function ps(a){gs&&a&&ds(a)} function qs(a){gs&&a&&es(a)} function ls(a,b,c){hs&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+a.constructor.name+"] '"+a.state+"' to '"+b+"'"),console.log("with message: ",c),console.groupEnd())} fa.Object.defineProperties(ks.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});function rs(a){ks.call(this,a===void 0?"none":a);this.h=null;this.l=10;this.transitions=[{from:"none",to:"application_navigating",action:this.i},{from:"application_navigating",to:"none",action:this.v},{from:"application_navigating",to:"application_navigating",action:function(){}}, {from:"none",to:"none",action:function(){}}]} var ss;y(rs,ks);rs.prototype.i=function(a,b){var c=this;this.h=Tm(function(){c.currentState==="application_navigating"&&c.transition("none")},5E3); a(b==null?void 0:b.event)}; rs.prototype.v=function(a,b){this.h&&(aj.qa(this.h),this.h=null);a(b==null?void 0:b.event)}; function ts(){ss||(ss=new rs);return ss} ;var us=[];D("yt.logging.transport.getScrapedGelPayloads",function(){return us});function vs(){this.store={};this.h={}} vs.prototype.storePayload=function(a,b){a=ws(a);this.store[a]?this.store[a].push(b):(this.h={},this.store[a]=[b]);return a}; vs.prototype.smartExtractMatchingEntries=function(a){if(!a.keys.length)return[];for(var b=xs(this,a.keys.splice(0,1)[0]),c=[],d=0;d=1E3?e():d>=a?Ks||(Ks=Ys(function(){e();Ks=void 0},0)):g-k>=10&&(Zs(f,c.tier),h.l=g)} function Us(a,b){if(a.endpoint==="log_event"){Qs();var c=Rs(a),d=new Map;d.set(c,[a.payload]);var e=Ss(a.payload)||"";b&&(Es=new b);return new Wd(function(f,g){Es&&Es.isReady()?$s(d,Es,f,g,{bypassNetworkless:!0},!0,e==="gelDebuggingEvent"):f()})}} function Rs(a){var b="";if(a.dangerousLogToVisitorSession)b="visitorOnlyApprovedKey";else if(a.cttAuthInfo){b=a.cttAuthInfo;var c={};b.videoId?c.videoId=b.videoId:b.playlistId&&(c.playlistId=b.playlistId);Ms[a.cttAuthInfo.token]=c;b=a.cttAuthInfo.token}return b} function Ws(a,b,c,d){a=a===void 0?{}:a;c=c===void 0?!1:c;new Wd(function(e,f){var g=Xs(c,d),h=g.j;g.j=!1;at(g.i);at(g.h);g.h=0;Es&&Es.isReady()?d===void 0&&U("enable_web_tiered_gel")?bt(e,f,a,b,c,300,h):bt(e,f,a,b,c,d,h):(Zs(c,d),e())})} function bt(a,b,c,d,e,f,g){var h=Es;c=c===void 0?{}:c;e=e===void 0?!1:e;f=f===void 0?200:f;g=g===void 0?!1:g;var k=new Map,l={isJspb:e,cttAuthInfo:d,tier:f};e={isJspb:e,cttAuthInfo:d};if(d!==void 0)f=U("enable_web_tiered_gel")?Os().smartExtractMatchingEntries({keys:[l,e],sizeLimit:1E3}):Os().extractMatchingEntries(e),k.set(d,f);else for(d=x(Object.keys(Ns)),l=d.next();!l.done;l=d.next())l=l.value,e=U("enable_web_tiered_gel")?Os().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:l,tier:f}, {isJspb:!1,cttAuthInfo:l}],sizeLimit:1E3}):Os().extractMatchingEntries({isJspb:!1,cttAuthInfo:l}),e.length>0&&k.set(l,e),(U("web_fp_via_jspb_and_json")&&c.writeThenSend||!U("web_fp_via_jspb_and_json"))&&delete Ns[l];$s(k,h,a,b,c,!1,g)} function Zs(a,b){function c(){Ws({writeThenSend:!0},void 0,a,b)} a=a===void 0?!1:a;b=b===void 0?200:b;var d=Xs(a,b),e=d===Js||d===Is?5E3:Bs;U("web_gel_timeout_cap")&&!d.h&&(e=Ys(function(){c()},e),d.h=e); at(d.i);e=T("LOGGING_BATCH_TIMEOUT",Pl("web_gel_debounce_ms",1E4));U("shorten_initial_gel_batch_timeout")&&Ls&&(e=As);e=Ys(function(){Pl("gel_min_batch_size")>0?Os().getSequenceCount({cttAuthInfo:void 0,isJspb:a,tier:b})>=Ds&&c():c()},e); d.i=e} function $s(a,b,c,d,e,f,g){e=e===void 0?{}:e;var h=Math.round(W()),k=a.size,l=(g===void 0?0:g)&&U("vss_through_gel_video_stats")?"video_stats":"log_event";a=x(a);var n=a.next();for(g={};!n.done;g={Dc:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,Gc:void 0,Fc:void 0},n=a.next()){var m=x(n.value);n=m.next().value;m=m.next().value;g.batchRequest=Sb({context:zp(b.config_||yp())});if(!Qa(m)&&!U("throw_err_when_logevent_malformed_killswitch")){d();break}g.batchRequest.events=m;(m=Ms[n])&& ct(g.batchRequest,n,m);delete Ms[n];g.dangerousLogToVisitorSession=n==="visitorOnlyApprovedKey";dt(g.batchRequest,h,g.dangerousLogToVisitorSession);U("always_send_and_write")&&(e.writeThenSend=!1);g.Gc=function(r){U("start_client_gcf")&&aj.pa(function(){return A(function(t){return t.yield(et(r),0)})}); k--;k||c()}; g.Dc=0;g.Fc=function(r){return function(){r.Dc++;if(e.bypassNetworkless&&r.Dc===1)try{rq(b,l,r.batchRequest,ft({writeThenSend:!0},r.dangerousLogToVisitorSession,r.Gc,r.Fc,f)),Ls=!1}catch(t){vl(t),d()}k--;k||c()}}(g); try{rq(b,l,g.batchRequest,ft(e,g.dangerousLogToVisitorSession,g.Gc,g.Fc,f)),Ls=!1}catch(r){vl(r),d()}}} function ft(a,b,c,d,e){a={retry:!0,onSuccess:c,onError:d,networklessOptions:a,dangerousLogToVisitorSession:b,zg:!!e,headers:{},postBodyFormat:"",postBody:"",compress:U("compress_gel")||U("compress_gel_lr")};gt()&&(a.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round(W())));return a} function dt(a,b,c){gt()||(a.requestTimeMs=String(b));U("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);!c&&(b=T("EVENT_ID"))&&((c=T("BATCH_CLIENT_COUNTER")||0)||(c=Math.floor(Math.random()*Cs/2)),c++,c>Cs&&(c=1),ql("BATCH_CLIENT_COUNTER",c),a.serializedClientEventId={serializedEventId:b,clientCounter:String(c)})} function ct(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 Qs(){var a;(a=E("yt.logging.transport.enableScrapingForTest"))||(a=Ol("il_payload_scraping"),a=(a!==void 0?String(a):"")!=="enable_il_payload_scraping");a||(us=[],D("yt.logging.transport.enableScrapingForTest",!0),D("yt.logging.transport.scrapedPayloadsForTesting",us),D("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),D("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), D("yt.logging.transport.scrapeClientEvent",!0))} function gt(){return U("use_request_time_ms_header")||U("lr_use_request_time_ms_header")} function Ys(a,b){return U("transport_use_scheduler")===!1?Ml(a,b):U("logging_avoid_blocking_during_navigation")||U("lr_logging_avoid_blocking_during_navigation")?Tm(function(){if(ts().currentState==="none")a();else{var c={};ts().install((c.none={callback:a},c))}},b):Tm(a,b)} function at(a){U("transport_use_scheduler")?aj.qa(a):window.clearTimeout(a)} function et(a){var b,c,d,e,f,g,h,k,l,n;return A(function(m){return m.h==1?(d=(b=a)==null?void 0:(c=b.responseContext)==null?void 0:c.globalConfigGroup,e=zs(d,Tk),g=(f=d)==null?void 0:f.hotHashData,h=zs(d,Sk),l=(k=d)==null?void 0:k.coldHashData,(n=as().resolve(new Vr(sp)))?g?e?m.yield(up(n,g,e),2):m.yield(up(n,g),2):m.B(2):m.return()):l?h?m.yield(vp(n,l,h),0):m.yield(vp(n,l),0):m.B(0)})} function Xs(a,b){b=b===void 0?200:b;return a?b===300?Js:Hs:b===300?Is:Gs} function Ss(a){a=Object.keys(a);a=x(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,Nq[b])return b} function Ts(a){switch(a){case "DELAYED_EVENT_TIER_UNSPECIFIED":return 0;case "DELAYED_EVENT_TIER_DEFAULT":return 100;case "DELAYED_EVENT_TIER_DISPATCH_TO_EMPTY":return 200;case "DELAYED_EVENT_TIER_FAST":return 300;case "DELAYED_EVENT_TIER_IMMEDIATE":return 400;default:return 200}} ;var ht=C.ytLoggingGelSequenceIdObj_||{};D("ytLoggingGelSequenceIdObj_",ht); function jt(a,b,c,d){d=d===void 0?{}:d;var e={},f=Math.round(d.timestamp||W());e.eventTimeMs=f=5))){d=ot;var k=fc(a);e=k.message||"Unknown Error";f=k.name||"UnknownError";var l=k.stack||a.i||"Not available";if(l.startsWith(f+": "+e)){var n=l.split("\n");n.shift();l=n.join("\n")}n=k.lineNumber||"Not available";k=k.fileName||"Not available";var m=0;if(a.hasOwnProperty("args")&&a.args&&a.args.length)for(var r=0;r=500);r++);else if(a.hasOwnProperty("params")&&a.params){var t=a.params;if(typeof a.params==="object")for(r in t){if(t[r]){var v="params."+r,u=rm(t[r]);c[v]=u;m+=v.length+u.length;if(m>500)break}}else c.params=rm(t)}if(d.length)for(r=0;r=500);r++);navigator.vendor&&!c.hasOwnProperty("vendor")&&(c["device.vendor"]=navigator.vendor);r={message:e,name:f,lineNumber:n,fileName:k,stack:l,params:c,sampleWeight:1};c=Number(a.columnNumber);isNaN(c)||(r.lineNumber= r.lineNumber+":"+c);if(a.level==="IGNORED")a=0;else a:{a=lm();c=x(a.Va);for(d=c.next();!d.done;d=c.next())if(d=d.value,r.message&&r.message.match(d.Kg)){a=d.weight;break a}a=x(a.Sa);for(c=a.next();!c.done;c=a.next())if(c=c.value,c.callback(r)){a=c.weight;break a}a=1}r.sampleWeight=a;a=x(gm);for(c=a.next();!c.done;c=a.next())if(c=c.value,c.ic[r.name])for(e=x(c.ic[r.name]),d=e.next();!d.done;d=e.next())if(f=d.value,d=r.message.match(f.regexp)){r.params["params.error.original"]=d[0];e=f.groups;f={}; for(n=0;n0&&(a.headers=b);return a} ;function Ut(){return wh()||(Fe||Ge)&&On("applewebkit")&&!On("version")&&(!On("safari")||On("gsa/"))||ad&&On("version/")?!0:T("EOM_VISITOR_DATA")?!1:!0} ;function Vt(a){a:{var b="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(b="EMBEDDED_PLAYER_MODE_PFL");var c=a.raw_embedded_player_response;if(!c&&(a=a.embedded_player_response))try{c=JSON.parse(a)}catch(e){break a}if(c)b:for(var d in Yk)if(Yk[d]==c.embeddedPlayerMode){b=Yk[d];break b}}return b==="EMBEDDED_PLAYER_MODE_PFL"} ;function Wt(a){bb.call(this,a.message||a.description||a.name);this.isMissing=a instanceof Xt;this.isTimeout=a instanceof Pt&&a.errorCode=="net.timeout";this.isCanceled=a instanceof ce} y(Wt,bb);Wt.prototype.name="BiscottiError";function Xt(){bb.call(this,"Biscotti ID is missing from server")} y(Xt,bb);Xt.prototype.name="BiscottiMissingError";var Nt={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},Yt=null;function Zt(){if(U("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!Ut())return Error("User has not consented - not fetching biscotti id.");var a=T("PLAYER_VARS",{});if(Pb(a)=="1")return Error("Biscotti ID is not available in private embed mode");if(Vt(a))return Error("Biscotti id fetching has been disabled for pfl.")} function jl(){var a=Zt();if(a!==void 0)return ae(a);Yt||(Yt=Mt().then($t).oc(function(b){return au(2,b)})); return Yt} function $t(a){a=a.xhr.responseText;if(a.lastIndexOf(")]}'",0)!=0)throw new Xt;a=JSON.parse(a.substr(4));if((a.type||1)>1)throw new Xt;a=a.id;kl(a);Yt=Rt(a);bu(18E5,2);return a} function au(a,b){b=new Wt(b);kl("");Yt=St(b);a>0&&bu(12E4,a-1);throw b;} function bu(a,b){Ml(function(){Mt().then($t,function(c){return au(b,c)}).oc(Dd)},a)} function cu(){try{var a=E("yt.ads.biscotti.getId_");return a?a():jl()}catch(b){return ae(b)}} ;var Bb=ja(["data-"]);function du(a){a&&(a.dataset?a.dataset[eu()]="true":Wb(a))} function fu(a){return a?a.dataset?a.dataset[eu()]:a.getAttribute("data-loaded"):null} var gu={};function eu(){return gu.loaded||(gu.loaded="loaded".replace(/\-([a-z])/g,function(a,b){return b.toUpperCase()}))} ;function hu(a){a=a||{};var b={},c={};this.url=a.url||"";this.args=a.args||Rb(b);this.assets=a.assets||{};this.attrs=a.attrs||Rb(c);this.fallback=a.fallback||null;this.fallbackMessage=a.fallbackMessage||null;this.html5=!!a.html5;this.disable=a.disable||{};this.loaded=!!a.loaded;this.messages=a.messages||{}} hu.prototype.clone=function(){var a=new hu,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];Pa(c)=="object"?a[b]=Rb(c):a[b]=c}return a};var iu=["share/get_share_panel"],ju=["share/get_web_player_share_panel"],ku=["feedback"],lu=["notification/modify_channel_preference"],mu=["browse/edit_playlist"],nu=["subscription/subscribe"],ou=["subscription/unsubscribe"];var pu=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};D("yt.msgs_",pu);function qu(a){ll(pu,arguments)} ;function ru(a,b,c){su(a,b,c===void 0?null:c)} function tu(a){a=uu(a);var b=document.getElementById(a);b&&(Rr(a),b.parentNode.removeChild(b))} function vu(a,b){a&&b&&(a=""+Sa(b),(a=wu[a])&&Pr(a))} function su(a,b,c){c=c===void 0?null:c;var d=uu(a),e=document.getElementById(d),f=e&&fu(e),g=e&&!f;f?b&&b():(b&&(f=Nr(d,b),b=""+Sa(b),wu[b]=f),g||(e=xu(a,d,function(){fu(e)||(du(e),Qr(d),Ml(function(){Rr(d)},0))},c)))} function xu(a,b,c,d){d=d===void 0?null:d;var e=Id("SCRIPT");e.id=b;e.onload=function(){c&&setTimeout(c,0)}; e.onreadystatechange=function(){switch(e.readyState){case "loaded":case "complete":e.onload()}}; d&&e.setAttribute("nonce",d);dc(e,Qk(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e} function uu(a){var b=document.createElement("a");zb(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+kc(a)} var wu={};function yu(a){var b=zu(a),c=document.getElementById(b),d=c&&fu(c);d||c&&!d||(c=Au(a,b,function(){if(!fu(c)){du(c);Qr(b);var e=Ya(Rr,b);Ml(e,0)}}))} function Au(a,b,c){var d=document.createElement("link");d.id=b;d.onload=function(){c&&setTimeout(c,0)}; a=Qk(a);Zb(d,a);(document.getElementsByTagName("head")[0]||document.body).appendChild(d);return d} function zu(a){var b=Id("A");zb(b,new sb(a));a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"css-"+kc(a)} ;function Bu(a){var b=B.apply(1,arguments);if(!Cu(a)||b.some(function(d){return!Cu(d)}))throw Error("Only objects may be merged."); b=x(b);for(var c=b.next();!c.done;c=b.next())Du(a,c.value)} function Du(a,b){for(var c in b)if(Cu(b[c])){if(c in a&&!Cu(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});Du(a[c],b[c])}else if(Eu(b[c])){if(c in a&&!Eu(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);Fu(a[c],b[c])}else a[c]=b[c];return a} function Fu(a,b){b=x(b);for(var c=b.next();!c.done;c=b.next())c=c.value,Cu(c)?a.push(Du({},c)):Eu(c)?a.push(Fu([],c)):a.push(c);return a} function Cu(a){return typeof a==="object"&&!Array.isArray(a)} function Eu(a){return typeof a==="object"&&Array.isArray(a)} ;function Gu(a){a=a===void 0?!1:a;G.call(this);this.h=new M(a);Ec(this,this.h)} $a(Gu,G);Gu.prototype.subscribe=function(a,b,c){return this.V?0:this.h.subscribe(a,b,c)}; Gu.prototype.unsubscribe=function(a,b,c){return this.V?!1:this.h.unsubscribe(a,b,c)}; Gu.prototype.l=function(a,b){this.V||this.h.Ya.apply(this.h,arguments)};var Hu="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" "); function Iu(a,b){var c=c===void 0?!0:c;var d=T("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=oc(window.location.href);e&&d.push(e);e=oc(a);if(Cb(d,e)>=0||!e&&a.lastIndexOf("/",0)==0)if(d=document.createElement("a"),zb(d,a),a=d.href)if(a=pc(a),a=qc(a))if(c&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:Jt()},b)),f){var f=parseInt(f,10);isFinite(f)&&f>0&&Ju(a,b,f)}else Ju(a,b)} function Ju(a,b,c){a=Ku(a);b=b?sc(b):"";c=c||5;Ut()&&zm(a,b,c)} function Ku(a){for(var b=x(Hu),c=b.next();!c.done;c=b.next())a=xc(a,c.value);return"ST-"+kc(a).toString(36)} ;function Lu(a){Dp.call(this,1,arguments);this.csn=a} y(Lu,Dp);var Mp=new Ep("screen-created",Lu),Mu=[],Nu=0,Ou=new Map,Pu=new Map,Qu=new Map; function Ru(a,b,c,d,e){e=e===void 0?!1:e;for(var f=Su({cttAuthInfo:Lt(b)||void 0},b),g=x(d),h=g.next();!h.done;h=g.next()){h=h.value;var k=h.getAsJson();(Nb(k)||!k.trackingParams&&!k.veType)&&rt(Error("Child VE logged with no data"));if(U("no_client_ve_attach_unless_shown")){var l=Tu(h,b);if(k.veType&&!Pu.has(l)&&!Qu.has(l)&&!e){if(!U("il_attach_cache_limit")||Ou.size<1E3){Ou.set(l,[a,b,c,h]);return}U("il_attach_cache_limit")&&Ou.size>1E3&&rt(new V("IL Attach cache exceeded limit"))}h=Tu(c,b);Ou.has(h)? Uu(c,b):Qu.set(h,!0)}}d=d.filter(function(n){n.csn!==b?(n.csn=b,n=!0):n=!1;return n}); c={csn:b,parentVe:c.getAsJson(),childVes:Fb(d,function(n){return n.getAsJson()})}; b==="UNDEFINED_CSN"?Vu("visualElementAttached",f,c):a?jt("visualElementAttached",c,a,f):In("visualElementAttached",c,f)} function Vu(a,b,c){Mu.push({we:a,payload:c,Gg:void 0,options:b});Nu||(Nu=Np())} function Op(a){if(Mu){for(var b=x(Mu),c=b.next();!c.done;c=b.next())c=c.value,c.payload&&(c.payload.csn=a.csn,In(c.we,c.payload,c.options));Mu.length=0}Nu=0} function Tu(a,b){return""+a.getAsJson().veType+a.getAsJson().veCounter+b} function Uu(a,b){a=Tu(a,b);Ou.has(a)&&(b=Ou.get(a)||[],Ru(b[0],b[1],b[2],[b[3]],!0),Ou.delete(a))} function Su(a,b){U("log_sequence_info_on_gel_web")&&(a.sequenceGroup=b);return a} ;function Wu(){try{return!!self.localStorage}catch(a){return!1}} ;function Xu(a){a=a.match(/(.*)::.*::.*/);if(a!==null)return a[1]} function Yu(a){if(Wu()){var b=Object.keys(window.localStorage);b=x(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=Xu(c);d===void 0||a.includes(d)||self.localStorage.removeItem(c)}}} function Zu(){if(!Wu())return!1;var a=Rm(),b=Object.keys(window.localStorage);b=x(b);for(var c=b.next();!c.done;c=b.next())if(c=Xu(c.value),c!==void 0&&c!==a)return!0;return!1} ;function $u(){var a=!1;try{a=!!window.sessionStorage.getItem("session_logininfo")}catch(b){a=!0}return(T("INNERTUBE_CLIENT_NAME")==="WEB"||T("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&a} function av(a){if(T("LOGGED_IN",!0)&&$u()){var b=T("VALID_SESSION_TEMPDATA_DOMAINS",[]);var c=oc(window.location.href);c&&b.push(c);c=oc(a);Cb(b,c)>=0||!c&&a.lastIndexOf("/",0)==0?(b=pc(a),(b=qc(b))?(b=Ku(b),b=(b=Am(b)||null)?Dl(b):{}):b=null):b=null;b==null&&(b={});c=b;var d=void 0;$u()?(d||(d=T("LOGIN_INFO")),d?(c.session_logininfo=d,c=!0):c=!1):c=!1;c&&Iu(a,b)}} ;function bv(a,b,c){b=b===void 0?{}:b;c=c===void 0?!1:c;var d=T("EVENT_ID");d&&(b.ei||(b.ei=d));b&&Iu(a,b);if(c)return!1;av(a);var e=e===void 0?{}:e;var f=f===void 0?"":f;var g=g===void 0?window:g;a=tc(a,e);av(a);f=a+f;var h=h===void 0?wb:h;a:if(h=h===void 0?wb:h,f instanceof sb)h=f;else{for(a=0;a6E4&&delete Kv[e];a&&(a.h=0)},5E3)); return c.count>5?(c.count===6&&Math.random()*1E5<1&&(c=new V("CSI data exceeded logging limit with key",b.split("_")),b.indexOf("plev")>=0||rt(c)),!0):!1} ;var Ov=window;function Pv(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}} function Qv(){var a;if(U("csi_use_performance_navigation_timing")||U("csi_use_performance_navigation_timing_tvhtml5")){var b,c,d,e=Y==null?void 0:(a=Y.getEntriesByType)==null?void 0:(b=a.call(Y,"navigation"))==null?void 0:(c=b[0])==null?void 0:(d=c.toJSON)==null?void 0:d.call(c);e?(e.requestStart=Rv(e.requestStart),e.responseEnd=Rv(e.responseEnd),e.redirectStart=Rv(e.redirectStart),e.redirectEnd=Rv(e.redirectEnd),e.domainLookupEnd=Rv(e.domainLookupEnd),e.connectStart=Rv(e.connectStart),e.connectEnd= Rv(e.connectEnd),e.responseStart=Rv(e.responseStart),e.secureConnectionStart=Rv(e.secureConnectionStart),e.domainLookupStart=Rv(e.domainLookupStart),e.isPerformanceNavigationTiming=!0,a=e):a=Y.timing}else a=U("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(Y.timing)):Y.timing;return a} function Rv(a){return Math.round(Sv()+a)} function Sv(){return(U("csi_use_time_origin")||U("csi_use_time_origin_tvhtml5"))&&Y.timeOrigin?Math.floor(Y.timeOrigin):Y.timing.navigationStart} var Y=Ov.performance||Ov.mozPerformance||Ov.msPerformance||Ov.webkitPerformance||new Pv;var Tv=!1,Uv=!1,Vv={'script[name="scheduler/scheduler"]':"sj",'script[name="player/base"]':"pj",'link[rel="preload"][name="player/embed"]':"pej",'link[rel="stylesheet"][name="www-player"]':"pc",'link[rel="stylesheet"][name="player/www-player"]':"pc",'script[name="desktop_polymer/desktop_polymer"]':"dpj",'link[rel="import"][name="desktop_polymer"]':"dph",'script[name="mobile-c3"]':"mcj",'link[rel="stylesheet"][name="mobile-c3"]':"mcc",'script[name="player-plasma-ias-phone/base"]':"mcppj",'script[name="player-plasma-ias-tablet/base"]':"mcptj", 'link[rel="stylesheet"][name="mobile-polymer-player-ias"]':"mcpc",'link[rel="stylesheet"][name="mobile-polymer-player-svg-ias"]':"mcpsc",'script[name="mobile_blazer_core_mod"]':"mbcj",'link[rel="stylesheet"][name="mobile_blazer_css"]':"mbc",'script[name="mobile_blazer_logged_in_users_mod"]':"mbliuj",'script[name="mobile_blazer_logged_out_users_mod"]':"mblouj",'script[name="mobile_blazer_noncore_mod"]':"mbnj","#player_css":"mbpc",'script[name="mobile_blazer_desktopplayer_mod"]':"mbpj",'link[rel="stylesheet"][name="mobile_blazer_tablet_css"]':"mbtc", 'script[name="mobile_blazer_watch_mod"]':"mbwj"};Xa(Y.clearResourceTimings||Y.webkitClearResourceTimings||Y.mozClearResourceTimings||Y.msClearResourceTimings||Y.oClearResourceTimings||Dd,Y);function Wv(a,b){if(!U("web_csi_action_sampling_enabled")||!yv(b).actionDisabled){var c=Gv(b||"");Bu(c.info,a);a.loadType&&(c=a.loadType,Av(b).loadType=c);Bu(Dv(b),a);c=Ev(b);b=yv(b).cttAuthInfo;Mv().info(a,c,b)}} function Xv(){var a,b,c,d;return((d=as().resolve(new Vr(sp))==null?void 0:(a=tp())==null?void 0:(b=a.loggingHotConfig)==null?void 0:(c=b.csiConfig)==null?void 0:c.debugTicks)!=null?d:[]).map(function(e){return Object.values(e)[0]})} function Z(a,b,c){if(!U("web_csi_action_sampling_enabled")||!yv(c).actionDisabled){var d=Ev(c),e;if(e=U("web_csi_debug_sample_enabled")&&d){(as().resolve(new Vr(sp))==null?0:tp())&&!Uv&&(Uv=!0,Z("gcfl",W(),c));var f,g,h;e=(as().resolve(new Vr(sp))==null?void 0:(f=tp())==null?void 0:(g=f.loggingHotConfig)==null?void 0:(h=g.csiConfig)==null?void 0:h.debugSampleWeight)||0;if(f=e!==0)b:{f=Xv();if(f.length>0)for(g=0;gc.duration?d:c},{duration:0}))&&b.startTime>0&&b.responseEnd>0&&(Z("wffs",Rv(b.startTime)),Z("wffe",Rv(b.responseEnd)))} function cw(a){var b=dw("aft",a);if(b)return b;b=T((a||"")+"TIMING_AFT_KEYS",["ol"]);for(var c=b.length,d=0;d0&&Wv(c);c={isNavigation:!0,actionType:Hv[T("TIMING_ACTION")]||"LATENCY_ACTION_UNKNOWN"};var d=T("PREVIOUS_ACTION");d&&(c.previousAction=Hv[d]||"LATENCY_ACTION_UNKNOWN");if(d=T("CLIENT_PROTOCOL"))c.httpProtocol=d;if(d=T("CLIENT_TRANSPORT"))c.transportProtocol=d;(d=Jt())&&d!=="UNDEFINED_CSN"&&(c.clientScreenNonce=d);d=Zv();if(d===1||d===-1)c.isVisible=!0;Av();zv(); c.loadType="cold";d=zv();var e=Qv(),f=Sv(),g=T("CSI_START_TIMESTAMP_MILLIS",0);g>0&&!U("embeds_web_enable_csi_start_override_killswitch")&&(f=g);f&&(Z("srt",e.responseStart),d.prerender!==1&&Z("_start",f,void 0));d=ew();d>0&&Z("fpt",d);d=Qv();d.isPerformanceNavigationTiming&&Wv({performanceNavigationTiming:!0},void 0);Z("nreqs",d.requestStart,void 0);Z("nress",d.responseStart,void 0);Z("nrese",d.responseEnd,void 0);d.redirectEnd-d.redirectStart>0&&(Z("nrs",d.redirectStart,void 0),Z("nre",d.redirectEnd, void 0));d.domainLookupEnd-d.domainLookupStart>0&&(Z("ndnss",d.domainLookupStart,void 0),Z("ndnse",d.domainLookupEnd,void 0));d.connectEnd-d.connectStart>0&&(Z("ntcps",d.connectStart,void 0),Z("ntcpe",d.connectEnd,void 0));d.secureConnectionStart>=Sv()&&d.connectEnd-d.secureConnectionStart>0&&(Z("nstcps",d.secureConnectionStart,void 0),Z("ntcpe",d.connectEnd,void 0));Y&&"getEntriesByType"in Y&&bw();d=[];if(document.querySelector&&Y&&Y.getEntriesByName)for(var h in Vv)Vv.hasOwnProperty(h)&&(e=Vv[h], aw(h,e)&&d.push(e));if(d.length>0)for(c.resourceInfo=[],h=x(d),d=h.next();!d.done;d=h.next())c.resourceInfo.push({resourceCache:d.value});Wv(c);c=Cv();c.preLoggedGelInfos||(c.preLoggedGelInfos=[]);h=c.preLoggedGelInfos;c=Dv();d=void 0;for(e=0;e-1&&(delete Qg["@type"],P=Qg);u&&a.h.has(u)&&a.h.delete(u);((vr=b.config)==null?0:vr.De)&&jw(b.config.De);if(P||(wr=a.i)==null||!wr.Ag(b.input,b.Oa)){ha.B(15);break}return ha.yield(a.i.Hg(b.input,b.Oa),16);case 16:P=ha.i;case 15:return uw(a,P,b),d(),ha.return(P||void 0)}})} function rw(a,b){a:{a=a.v;var c,d=(c=zs(b,Xk))==null?void 0:c.signal;if(d&&a.Rb&&(c=a.Rb[d])){var e=c();break a}var f;if((c=(f=zs(b,Vk))==null?void 0:f.request)&&a.Nd&&(f=a.Nd[c])){e=f();break a}for(e in b)if(a.Tc[e]&&(b=a.Tc[e])){e=b();break a}e=void 0}if(e!==void 0)return Promise.resolve(e)} function sw(a,b){var c,d,e,f;return A(function(g){if(g.h==1){e=(c=a)==null?void 0:(d=c.Vb)==null?void 0:d.sessionIndex;var h=g.yield;var k=xm(0,{sessionIndex:e});if(!(k instanceof Wd)){var l=new Wd(Dd);Xd(l,2,k);k=l}return h.call(g,k,2)}f=g.i;return g.return(Promise.resolve(Object.assign({},mv(b),f)))})} ;var vw=new Ur("INNERTUBE_TRANSPORT_TOKEN");function ww(){} y(ww,uv);ww.prototype.j=function(){return nu}; ww.prototype.i=function(a){return zs(a,hl)||void 0}; ww.prototype.h=function(a,b,c){c=c===void 0?{}:c;b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params);c.botguardResponse&&(a.botguardResponse=c.botguardResponse);c.feature&&(a.clientFeature=c.feature)}; fa.Object.defineProperties(ww.prototype,{l:{configurable:!0,enumerable:!0,get:function(){return!0}}});function xw(){} y(xw,uv);xw.prototype.j=function(){return ou}; xw.prototype.i=function(a){return zs(a,gl)||void 0}; xw.prototype.h=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)}; fa.Object.defineProperties(xw.prototype,{l:{configurable:!0,enumerable:!0,get:function(){return!0}}});var yw=new Ur("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");function zw(a){this.m=a} y(zw,uv);zw.prototype.j=function(){return iu}; zw.prototype.i=function(a){return zs(a,bl)||zs(a,cl)||zs(a,al)}; zw.prototype.h=function(a,b){b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);if(b.clientParamIdentifier){var c;if((c=this.m)==null?0:c.h(b.clientParamIdentifier))a.clientParams=this.m.i(b.clientParamIdentifier)}}; zw[Tr]=[yw];function Aw(){} y(Aw,uv);Aw.prototype.j=function(){return ku}; Aw.prototype.i=function(a){return zs(a,Zk)||void 0}; Aw.prototype.h=function(a,b,c){a.feedbackTokens=[];b.feedbackToken&&a.feedbackTokens.push(b.feedbackToken);if(b=b.cpn||c.cpn)a.feedbackContext={cpn:b};a.isFeedbackTokenUnencrypted=!!c.is_feedback_token_unencrypted;a.shouldMerge=!1;c.extra_feedback_tokens&&(a.shouldMerge=!0,a.feedbackTokens=a.feedbackTokens.concat(c.extra_feedback_tokens))}; fa.Object.defineProperties(Aw.prototype,{l:{configurable:!0,enumerable:!0,get:function(){return!0}}});function Bw(){} y(Bw,uv);Bw.prototype.j=function(){return lu}; Bw.prototype.i=function(a){return zs(a,fl)||void 0}; Bw.prototype.h=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};function Cw(){} y(Cw,uv);Cw.prototype.j=function(){return mu}; Cw.prototype.i=function(a){return zs(a,el)||void 0}; Cw.prototype.h=function(a,b){b.actions&&(a.actions=b.actions);b.params&&(a.params=b.params);b.playlistId&&(a.playlistId=b.playlistId)};function Dw(){} y(Dw,uv);Dw.prototype.j=function(){return ju}; Dw.prototype.i=function(a){return zs(a,dl)}; Dw.prototype.h=function(a,b,c){c=c===void 0?{}:c;b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);c.includeListId&&(a.includeListId=!0)};function Ew(a,b){var c=B.apply(2,arguments);a=a===void 0?0:a;V.call(this,b,c);this.errorType=a;Object.setPrototypeOf(this,this.constructor.prototype)} y(Ew,V);var Fw=new Ur("NETWORK_SLI_TOKEN");function Gw(a){this.h=a} Gw.prototype.fetch=function(a,b,c){var d=this,e;return A(function(f){e=Hw(d,a,b);return f.return(fetch(e).then(function(g){return d.handleResponse(g,c)}).catch(function(g){rt(g); if((c==null?0:c.Td)&&g instanceof Ew&&g.errorType===1)return Promise.reject(g)}))})}; function Hw(a,b,c){if(a.h){var d=mc(nc(5,xc(b,"key")))||"/UNKNOWN_PATH";a.h.start(d)}a=c;U("wug_networking_gzip_request")&&(a=kq(c));return new window.Request(b,a)} Gw.prototype.handleResponse=function(a,b){var c=a.text().then(function(d){if((b==null?0:b.me)&&a.ok)return $g(b.me,d);d=d.replace(")]}'","");if((b==null?0:b.Td)&&d)try{var e=JSON.parse(d)}catch(g){throw new Ew(1,"JSON parsing failed after fetch");}var f;return(f=e)!=null?f:JSON.parse(d)}); a.redirected||a.ok?this.h&&this.h.success():(this.h&&this.h.Dg(),c=c.then(function(d){rt(new V("Error: API fetch failed",a.status,a.url,d));return Object.assign({},d,{errorMetadata:{status:a.status}})})); return c}; Gw[Tr]=[new Vr(Fw)];var Iw=new Ur("NETWORK_MANAGER_TOKEN");var Jw;function Kw(){var a,b,c;return A(function(d){if(d.h==1)return a=as().resolve(vw),a?d.yield(qw(a),2):(rt(Error("InnertubeTransportService unavailable in fetchDatasyncIds")),d.return(void 0));if(b=d.i){if(b.errorMetadata)return rt(Error("Datasync IDs fetch responded with "+b.errorMetadata.status+": "+b.error)),d.return(void 0);c=b.Bg;return d.return(c)}rt(Error("Network request to get Datasync IDs failed."));return d.return(void 0)})} ;function Lw(){var a;return(a=T("WEB_PLAYER_CONTEXT_CONFIGS"))==null?void 0:a.WEB_PLAYER_CONTEXT_CONFIG_ID_EMBEDDED_PLAYER} ;var Mw=C.caches,Nw;function Ow(a){var b=a.indexOf(":");return b===-1?{kd:a}:{kd:a.substring(0,b),datasyncId:a.substring(b+1)}} function Pw(){return A(function(a){if(Nw!==void 0)return a.return(Nw);Nw=new Promise(function(b){var c;return A(function(d){switch(d.h){case 1:return Aa(d,2),d.yield(Mw.open("test-only"),4);case 4:return d.yield(Mw.delete("test-only"),5);case 5:d.h=3;d.l=0;break;case 2:if(c=Ba(d),c instanceof Error&&c.name==="SecurityError")return b(!1),d.return();case 3:b("caches"in window),d.h=0}})}); return a.return(Nw)})} function Qw(a){var b,c,d,e,f,g,h;A(function(k){if(k.h==1)return k.yield(Pw(),2);if(k.h!=3){if(!k.i)return k.return(!1);b=[];return k.yield(Mw.keys(),3)}c=k.i;d=x(c);for(e=d.next();!e.done;e=d.next())f=e.value,g=Ow(f),h=g.datasyncId,!h||a.includes(h)||b.push(Mw.delete(f));return k.return(Promise.all(b).then(function(l){return l.some(function(n){return n})}))})} function Rw(){var a,b,c,d,e,f,g;return A(function(h){if(h.h==1)return h.yield(Pw(),2);if(h.h!=3){if(!h.i)return h.return(!1);a=Rm("cache contains other");return h.yield(Mw.keys(),3)}b=h.i;c=x(b);for(d=c.next();!d.done;d=c.next())if(e=d.value,f=Ow(e),(g=f.datasyncId)&&g!==a)return h.return(!0);return h.return(!1)})} ;function Sw(){try{return!!self.sessionStorage}catch(a){return!1}} ;function Tw(a){a=a.match(/(.*)::.*::.*/);if(a!==null)return a[1]} function Uw(a){if(Sw()){var b=Object.keys(window.sessionStorage);b=x(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=Tw(c);d===void 0||a.includes(d)||self.sessionStorage.removeItem(c)}}} function Vw(){if(!Sw())return!1;var a=Rm(),b=Object.keys(window.sessionStorage);b=x(b);for(var c=b.next();!c.done;c=b.next())if(c=Tw(c.value),c!==void 0&&c!==a)return!0;return!1} ;function Ww(){Kw().then(function(a){a&&(Yo(a),Qw(a),Yu(a),Uw(a))})} function Xw(){var a=new cr;aj.pa(function(){var b,c,d,e,f;return A(function(g){switch(g.h){case 1:if(U("ytidb_clear_optimizations_killswitch")){g.B(2);break}b=Rm("clear");if(b.startsWith("V")&&b.endsWith("||")){var h=[b];Yo(h);Qw(h);Yu(h);Uw(h);return g.return()}c=Zu();d=Vw();return g.yield(Rw(),3);case 3:return e=g.i,g.yield(Zo(),4);case 4:if(f=g.i,!(c||d||e||f))return g.return();case 2:a.va()?Ww():a.h.add("publicytnetworkstatus-online",Ww,!0,void 0,void 0),g.h=0}})})} ;function Yw(){this.state=1;this.h=null} p=Yw.prototype;p.initialize=function(a,b,c){if(a.program){var d,e=(d=a.interpreterUrl)!=null?d:null;if(a.interpreterSafeScript){var f=a.interpreterSafeScript;f?((f=f.privateDoNotAccessOrElseSafeScriptWrappedValue)?(d=fb(),f=new ac(d?d.createScript(f):f)):f=null,d=f):d=null}else d=(f=a.interpreterScript)!=null?f:null;a.interpreterSafeUrl&&(e=Pk(a.interpreterSafeUrl).toString());Zw(this,d,e,a.program,b,c)}else rt(Error("Cannot initialize botguard without program"))}; function Zw(a,b,c,d,e,f){var g=g===void 0?"trayride":g;c?(a.state=2,ru(c,function(){window[g]?$w(a,d,g,e):(a.state=3,tu(c),rt(new V("Unable to load Botguard","from "+c)))},f)):b?(f=Id("SCRIPT"),b instanceof ac?cc(f,b):f.textContent=b,f.nonce=$b(window),document.head.appendChild(f),document.head.removeChild(f),window[g]?$w(a,d,g,e):(a.state=4,rt(new V("Unable to load Botguard from JS")))):rt(new V("Unable to load VM; no url or JS provided"))} p.isLoading=function(){return this.state===2}; function $w(a,b,c,d){a.state=5;try{var e=new Li({program:b,ae:c,Ae:U("att_web_record_metrics"),Ea:"aGIf"});e.Te.then(function(){a.state=6;d&&d(b)}); a.Jc(e)}catch(f){a.state=7,f instanceof Error&&rt(f)}} p.invoke=function(a){a=a===void 0?{}:a;return this.Mc()?this.Bd({Uc:a}):null}; p.dispose=function(){this.Jc(null);this.state=8}; p.Mc=function(){return!!this.h}; p.Bd=function(a){return this.h.vd(a)}; p.Jc=function(a){Cc(this.h);this.h=a};var ax=[],bx=!1;function cx(){if(!U("disable_biscotti_fetch_for_ad_blocker_detection")&&!U("disable_biscotti_fetch_entirely_for_all_web_clients")&&Ut()){var a=T("PLAYER_VARS",{});if(Pb(a)!="1"&&!Vt(a)){var b=function(){bx=!0;"google_ad_status"in window?ql("DCLKSTAT",1):ql("DCLKSTAT",2)}; try{ru("//static.doubleclick.net/instream/ad_status.js",b)}catch(c){}ax.push(aj.pa(function(){if(!(bx||"google_ad_status"in window)){try{vu("//static.doubleclick.net/instream/ad_status.js",b)}catch(c){}bx=!0;ql("DCLKSTAT",3)}},5E3))}}} function dx(){var a=Number(T("DCLKSTAT",0));return isNaN(a)?0:a} ;function ex(){var a=E("yt.abuse.playerAttLoader");return a&&["bgvma","bgvmb","bgvmc"].every(function(b){return b in a})?a:null} ;function fx(){Yw.apply(this,arguments)} y(fx,Yw);fx.prototype.Jc=function(a){var b;(b=ex())==null||b.bgvma();a?(b={bgvma:a.dispose.bind(a),bgvmb:a.snapshot.bind(a),bgvmc:a.vd.bind(a)},D("yt.abuse.playerAttLoader",b),D("yt.abuse.playerAttLoaderRun",function(c){return a.snapshot(c)})):(D("yt.abuse.playerAttLoader",null),D("yt.abuse.playerAttLoaderRun",null))}; fx.prototype.Mc=function(){return!!ex()}; fx.prototype.Bd=function(a){return ex().bgvmc(a)};function gx(a){ks.call(this,a===void 0?"document_active":a);var b=this;this.l=10;this.h=new Map;this.transitions=[{from:"document_active",to:"document_disposed_preventable",action:this.F},{from:"document_active",to:"document_disposed",action:this.v},{from:"document_disposed_preventable",to:"document_disposed",action:this.v},{from:"document_disposed_preventable",to:"flush_logs",action:this.m},{from:"document_disposed_preventable",to:"document_active",action:this.i},{from:"document_disposed",to:"flush_logs", action:this.m},{from:"document_disposed",to:"document_active",action:this.i},{from:"document_disposed",to:"document_disposed",action:function(){}}, {from:"flush_logs",to:"document_active",action:this.i}];window.addEventListener("pagehide",function(c){b.transition("document_disposed",{event:c})}); window.addEventListener("beforeunload",function(c){b.transition("document_disposed_preventable",{event:c})})} y(gx,ks);gx.prototype.F=function(a,b){if(!this.h.get("document_disposed_preventable")){a(b==null?void 0:b.event);var c,d;if((b==null?0:(c=b.event)==null?0:c.defaultPrevented)||(b==null?0:(d=b.event)==null?0:d.returnValue)){b.event.returnValue||(b.event.returnValue=!0);b.event.defaultPrevented||b.event.preventDefault();this.h=new Map;this.transition("document_active");return}}this.h.set("document_disposed_preventable",!0);this.h.get("document_disposed")?this.transition("flush_logs"):this.transition("document_disposed")}; gx.prototype.v=function(a,b){this.h.get("document_disposed")?this.transition("document_active"):(a(b==null?void 0:b.event),this.h.set("document_disposed",!0),this.transition("flush_logs"))}; gx.prototype.m=function(a,b){a(b==null?void 0:b.event);this.transition("document_active")}; gx.prototype.i=function(){this.h=new Map};function hx(a){ks.call(this,a===void 0?"document_visibility_unknown":a);var b=this;this.transitions=[{from:"document_visibility_unknown",to:"document_visible",action:this.i},{from:"document_visibility_unknown",to:"document_hidden",action:this.h},{from:"document_visibility_unknown",to:"document_foregrounded",action:this.m},{from:"document_visibility_unknown",to:"document_backgrounded",action:this.v},{from:"document_visible",to:"document_hidden",action:this.h},{from:"document_visible",to:"document_foregrounded", action:this.m},{from:"document_visible",to:"document_visible",action:this.i},{from:"document_foregrounded",to:"document_visible",action:this.i},{from:"document_foregrounded",to:"document_hidden",action:this.h},{from:"document_foregrounded",to:"document_foregrounded",action:this.m},{from:"document_hidden",to:"document_visible",action:this.i},{from:"document_hidden",to:"document_backgrounded",action:this.v},{from:"document_hidden",to:"document_hidden",action:this.h},{from:"document_backgrounded",to:"document_hidden", action:this.h},{from:"document_backgrounded",to:"document_backgrounded",action:this.v},{from:"document_backgrounded",to:"document_visible",action:this.i}];document.addEventListener("visibilitychange",function(c){document.visibilityState==="visible"?b.transition("document_visible",{event:c}):b.transition("document_hidden",{event:c})}); U("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(c){b.transition("document_backgrounded",{event:c})}),window.addEventListener("focus",function(c){b.transition("document_foregrounded",{event:c})}))} y(hx,ks);hx.prototype.i=function(a,b){a(b==null?void 0:b.event);U("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")}; hx.prototype.h=function(a,b){a(b==null?void 0:b.event);U("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")}; hx.prototype.v=function(a,b){a(b==null?void 0:b.event)}; hx.prototype.m=function(a,b){a(b==null?void 0:b.event)};function ix(){this.l=new gx;this.v=new hx} ix.prototype.install=function(){var a=B.apply(0,arguments),b=this;a.forEach(function(c){b.l.install(c)}); a.forEach(function(c){b.v.install(c)})};function jx(){this.l=[];this.i=new Map;this.h=new Map;this.j=new Set} jx.prototype.clickCommand=function(a,b,c){var d=a.clickTrackingParams;c=c===void 0?0:c;if(d)if(c=Jt(c===void 0?0:c)){a=this.client;d=new Ct({trackingParams:d});var e=void 0;if(U("no_client_ve_attach_unless_shown")){var f=Tu(d,c);Pu.set(f,!0);Uu(d,c)}e=e||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";f=Su({cttAuthInfo:Lt(c)||void 0},c);d={csn:c,ve:d.getAsJson(),gestureType:e};b&&(d.clientData=b);c==="UNDEFINED_CSN"?Vu("visualElementGestured",f,d):a?jt("visualElementGestured",d,a,f):In("visualElementGestured", d,f);b=!0}else b=!1;else b=!1;return b}; jx.prototype.stateChanged=function(a,b,c){this.visualElementStateChanged(new Ct({trackingParams:a}),b,c===void 0?0:c)}; jx.prototype.visualElementStateChanged=function(a,b,c){c=c===void 0?0:c;if(c===0&&this.j.has(c))this.l.push([a,b]);else{var d=c;d=d===void 0?0:d;c=Jt(d);a||(a=(a=Gt(d===void 0?0:d))?new Ct({veType:a,youtubeData:void 0,jspbYoutubeData:void 0}):null);var e=a;c&&e&&(a=this.client,d=Su({cttAuthInfo:Lt(c)||void 0},c),b={csn:c,ve:e.getAsJson(),clientData:b},c==="UNDEFINED_CSN"?Vu("visualElementStateChanged",d,b):a?jt("visualElementStateChanged",b,a,d):In("visualElementStateChanged",b,d))}}; function kx(a,b){if(b===void 0)for(var c=It(),d=0;d=0)&&b.m(e.func,e.args,d.origin)}}}; window.addEventListener("message",this.listener);Ax(this,this.ze.bind(this));this.channel="widget";if(c=T("WIDGET_ID"))this.sessionId=c;this.api=a;Bx(this,"onReady",this.onReady.bind(this));Bx(this,"onVideoProgress",this.Oe.bind(this));Bx(this,"onVolumeChange",this.Pe.bind(this));Bx(this,"onApiChange",this.He.bind(this));Bx(this,"onPlaybackQualityChange",this.Le.bind(this));Bx(this,"onPlaybackRateChange",this.Me.bind(this));Bx(this,"onStateChange",this.Ne.bind(this));Bx(this,"onWebglSettingsChanged", this.Qe.bind(this));Bx(this,"onCaptionsTrackListChanged",this.Ie.bind(this));Bx(this,"captionssettingschanged",this.Je.bind(this))} p=yx.prototype; p.ze=function(a,b,c){if(a==="addEventListener"&&b)a=b[0],a==="onReady"?this.api.logApiCall(a+" invocation",c):a==="onError"&&this.T&&(this.api.logApiCall(a+" invocation",c,this.errorCode),this.errorCode=void 0),this.api.logApiCall(a+" registration",c),this.F[a]||a==="onReady"||(b=Cx(this,a,c),this.h.push({eventType:a,listener:b,origin:c}),this.K?this.api.handleExternalCall("addEventListener",[a,b],c):this.api.addEventListener(a,b),this.F[a]=!0);else if(this.api.isExternalMethodAvailable(a,c)){b=b|| [];if(b.length>0&&vx(a)){var d=b;if(Ra(d[0])&&!Array.isArray(d[0]))var e=d[0];else switch(e={},a){case "loadVideoById":case "cueVideoById":e=wx(d[0],d[1]!==void 0?Number(d[1]):void 0,d[2]);break;case "loadVideoByUrl":case "cueVideoByUrl":e=d[0];typeof e==="string"&&(e={mediaContentUrl:e,startSeconds:d[1]!==void 0?Number(d[1]):void 0,suggestedQuality:d[2]});b:{if((d=e.mediaContentUrl)&&(d=/\/([ve]|embed)\/([^#?]+)/.exec(d))&&d[2]){d=d[2];break b}d=null}e.videoId=d;e=wx(e);break;case "loadPlaylist":case "cuePlaylist":e= xx(d[0],d[1],d[2],d[3])}b.length=1;b[0]=e}this.api.handleExternalCall(a,b,c);vx(a)&&Dx(this,Ex(this))}}; p.Wd=function(){this.isReady=!0;this.sendMessage("initialDelivery",Ex(this));this.sendMessage("onReady");Db(this.A,this.sd,this);this.A=[]}; function Dx(a,b){a.sendMessage("infoDelivery",b)} p.sd=function(a){if(this.isReady){var b=this.l;if(b){this.sessionId&&(a.id=this.sessionId);this.channel&&(a.channel=this.channel);try{var c=JSON.stringify(a);b.postMessage(c,this.targetOrigin)}catch(d){rt(d)}}}else this.A.push(a)}; p.sendMessage=function(a,b){this.sd({event:a,info:b===void 0?null:b})}; function Cx(a,b,c){return function(d){b==="onError"?a.api.logApiCall(b+" invocation",c,d):a.api.logApiCall(b+" invocation",c);a.sendMessage(b,d)}} p.onReady=function(){this.j=this.Wd.bind(this);var a=this.api.getVideoData();if(!a.isPlayable){this.T=!0;a=a.errorCode;var b=b===void 0?5:b;this.errorCode=a?tx[a]||b:b;this.sendMessage("onError",this.errorCode.toString())}}; function Bx(a,b,c){a.i.push({eventType:b,listener:c});a.api.addEventListener(b,c)} function Ex(a){if(!a.api)return null;var b=a.api.getApiInterface();Ib(b,"getVideoData");for(var c={apiInterface:b},d=0,e=b.length;d=0||this.h[a]||(b=gy(this,a),this.m&&this.m(a,b)),this.T.subscribe(a,d),a==="onReady"&&this.isReady()&&setTimeout(function(){d(c.api)},0))}; p.removeEventListener=function(a,b){this.V||(b=Wx(this,b))&&this.T.unsubscribe(a,b)}; function Wx(a,b){var c=b;if(typeof b==="string"){if(a.Ga[b])return a.Ga[b];c=function(){var d=B.apply(0,arguments),e=E(b);if(e)try{e.apply(C,d)}catch(f){throw d=new V("PlayerProxy error when executing callback",{error:f}),d.level="ERROR",d;}}; a.Ga[b]=c}return c?c:null} function gy(a,b){function c(d){var e=setTimeout(function(){if(!a.V){try{a.T.Ya(b,d!=null?d:void 0)}catch(h){var f=new V("PlayerProxy error when creating global callback",{error:h.message,event:b,playerId:a.A,data:d,originalStack:h.stack});f.level="WARNING";throw f;}f=a.K;var g=String(e);g in f&&delete f[g]}},0); Ob(a.K,String(e))} return a.h[b]=c} p.getPlayerType=function(){return this.da||(Yx(this)?"html5":null)}; p.getLastError=function(){return this.lastError}; function ay(a){a.cancel();Rx(a);a.da=null;a.config&&(a.config.loaded=!1);var b=Yx(a);b&&(Xx(a)||!dy(a)?a.j=b:(b&&b.destroy&&b.destroy(),a.j=null));if(a.l)for(a=a.l;b=a.firstChild;)a.removeChild(b)} p.cancel=function(){this.F&&vu(Zx(this),this.F);clearTimeout(this.Tb);this.Z=!1}; p.X=function(){ay(this);if(this.j&&this.config&&this.j.destroy)try{this.j.destroy()}catch(b){var a=new V("PlayerProxy error during disposal",{error:b});a.level="ERROR";throw a;}this.Ga=null;for(a in this.h)this.h.hasOwnProperty(a)&&delete this.h[a];this.Db=this.config=this.api=null;delete this.l;delete this.i;G.prototype.X.call(this)}; function dy(a){var b,c;a=(b=a.config)==null?void 0:(c=b.args)==null?void 0:c.fflags;return!!a&&a.indexOf("player_destroy_old_version=true")!==-1} function Zx(a){return a.webPlayerContextConfig?a.webPlayerContextConfig.jsUrl:(a=a.config.assets)?a.js:""} function cy(a){return a.webPlayerContextConfig?a.webPlayerContextConfig.cssUrl:(a=a.config.assets)?a.css:""} function by(a,b){if(a.webPlayerContextConfig)var c=a.webPlayerContextConfig.serializedExperimentFlags;else{var d;if((d=a.config)==null?0:d.args)c=a.config.args.fflags}return(c||"").split("&").includes(b+"=true")} function Vx(a){for(var b={},c=x(Object.keys(a)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d];b[d]=typeof e==="object"?Rb(e):e}return b} ;var hy={},iy="player_uid_"+(Math.random()*1E9>>>0);function jy(a,b){var c="player",d=!1;d=d===void 0?!0:d;c=typeof c==="string"?Hd(c):c;var e=iy+"_"+Sa(c),f=hy[e];if(f&&d)return ky(a,b)?f.api.loadVideoByPlayerVars(a.args||null):f.loadNewVideoConfig(a),f.api;f=new Qx(c,e,a,b,void 0);hy[e]=f;f.addOnDisposeCallback(function(){delete hy[f.getId()]}); return f.api} function ky(a,b){return b&&b.serializedExperimentFlags?b.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):a&&a.args&&a.args.fflags?a.args.fflags.includes("web_player_remove_playerproxy=true"):!1} ;var zx=null,ly=null; function my(){kw();var a=Gm(),b=Jm(119),c=window.devicePixelRatio>1;if(document.body&&ij(document.body,"exp-invert-logo"))if(c&&!ij(document.body,"inverted-hdpi")){var d=document.body;if(d.classList)d.classList.add("inverted-hdpi");else if(!ij(d,"inverted-hdpi")){var e=gj(d);hj(d,e+(e.length>0?" inverted-hdpi":"inverted-hdpi"))}}else!c&&ij(document.body,"inverted-hdpi")&&jj();if(b!=c){b="f"+(Math.floor(119/31)+1);d=Km(b)||0;d=c?d|67108864:d&-67108865;d===0?delete Dm[b]:(c=d.toString(16),Dm[b]=c.toString()); c=!0;U("web_secure_pref_cookie_killswitch")&&(c=!1);b=a.h;d=[];for(f in Dm)Dm.hasOwnProperty(f)&&d.push(f+"="+encodeURIComponent(String(Dm[f])));var f=d.join("&");zm(b,f,63072E3,a.i,c)}} function ny(){oy()} function py(){jw("ep_init_pr");oy()} function oy(){var a=zx.getVideoData(1);a=a.title?a.title+" - YouTube":"YouTube";document.title!==a&&(document.title=a)} function qy(){zx&&zx.sendAbandonmentPing&&zx.sendAbandonmentPing();T("PL_ATT")&&Nx.dispose();for(var a=aj,b=0,c=ax.length;b0){f=!0;break}}f&&(f=!1,e?f=!0:(typeof a==="string"?g=a:ErrorEvent&&a instanceof ErrorEvent?(f=!0,g=a.message,b=a.filename,c=a.lineno,d=a.colno):(g="Unknown error",b="Unknown file",c=0),e=new V(g),e.name="UnhandledWindowError",e.message=g, e.fileName=b,e.lineNumber=c,isNaN(d)?delete e.columnNumber:e.columnNumber=d),f?qt(e):rt(e))}; le=st;window.addEventListener("unhandledrejection",function(a){st(a.reason)}); Db(T("ERRORS")||[],function(a){qt.apply(null,a)}); ql("ERRORS",[]);}).call(this);