(function(){ /* HTML content inlined from HTML import */ const d=document.createElement("div"); d.setAttribute("inlined-html",""); const finalStyleText="html:not(.style-scope) {\n --primary-text-color: var(--light-theme-text-color);\n --primary-background-color: var(--light-theme-background-color);\n --secondary-text-color: var(--light-theme-secondary-color);\n --disabled-text-color: var(--light-theme-disabled-color);\n --divider-color: var(--light-theme-divider-color);\n --error-color: #dd2c00;\n --primary-color: #3f51b5;\n --light-primary-color: #c5cae9;\n --dark-primary-color: #303f9f;\n --accent-color: #ff4081;\n --light-accent-color: #ff80ab;\n --dark-accent-color: #f50057;\n --light-theme-background-color: #fff;\n --light-theme-base-color: #000;\n --light-theme-text-color: #212121;\n --light-theme-secondary-color: #737373;\n --light-theme-disabled-color: #9b9b9b;\n --light-theme-divider-color: #dbdbdb;\n --dark-theme-background-color: #212121;\n --dark-theme-base-color: #fff;\n --dark-theme-text-color: #fff;\n --dark-theme-secondary-color: #bcbcbc;\n --dark-theme-disabled-color: #646464;\n --dark-theme-divider-color: #3c3c3c;\n --text-primary-color: var(--dark-theme-text-color);\n --default-primary-color: var(--primary-color);\n}\n\n"; d.appendChild(document.createElement("style")); d.lastChild.setAttribute("css-build-single",""); d.lastChild.textContent=finalStyleText; document.head.appendChild(d); })();(function(){'use strict';var g,aaa=typeof Object.create=="function"?Object.create:function(a){var b=function(){};b.prototype=a;return new b},aa=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a},baa=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b0;){var a=this.properties_.pop();if(a in this.object_)return a}return null}; oa.prototype.getNext=oa.prototype.getNext;var paa=function(a){this.JSC$5913_context_=new na;this.program_=a},raa=function(a,b){naa(a.JSC$5913_context_); var c=a.JSC$5913_context_.yieldAllIterator_;if(c)return qaa(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.JSC$5913_context_.return); a.JSC$5913_context_.return(b);return pa(a)},qaa=function(a,b,c,d){try{var e=b.call(a.JSC$5913_context_.yieldAllIterator_,c); maa(e);if(!e.done)return a.JSC$5913_context_.isRunning_=!1,e;var f=e.value}catch(h){return a.JSC$5913_context_.yieldAllIterator_=null,oaa(a.JSC$5913_context_,h),pa(a)}a.JSC$5913_context_.yieldAllIterator_=null;d.call(a.JSC$5913_context_,f);return pa(a)},pa=function(a){for(;a.JSC$5913_context_.nextAddress;)try{var b=a.program_(a.JSC$5913_context_); if(b)return a.JSC$5913_context_.isRunning_=!1,{value:b.value,done:!1}}catch(c){a.JSC$5913_context_.yieldResult=void 0,oaa(a.JSC$5913_context_,c)}a.JSC$5913_context_.isRunning_=!1;if(a.JSC$5913_context_.abruptCompletion_){b=a.JSC$5913_context_.abruptCompletion_;a.JSC$5913_context_.abruptCompletion_=null;if(b.isException)throw b.exception;return{value:b.return,done:!0}}return{value:void 0,done:!0}},saa=function(a){this.next=function(b){naa(a.JSC$5913_context_); a.JSC$5913_context_.yieldAllIterator_?b=qaa(a,a.JSC$5913_context_.yieldAllIterator_.next,b,a.JSC$5913_context_.JSC$5904_next_):(a.JSC$5913_context_.JSC$5904_next_(b),b=pa(a));return b}; this.throw=function(b){naa(a.JSC$5913_context_);a.JSC$5913_context_.yieldAllIterator_?b=qaa(a,a.JSC$5913_context_.yieldAllIterator_["throw"],b,a.JSC$5913_context_.JSC$5904_next_):(oaa(a.JSC$5913_context_,b),b=pa(a));return b}; this.return=function(b){return raa(a,b)}; this[Symbol.iterator]=function(){return this}},taa=function(a,b){b=new saa(new paa(b)); fa&&a.prototype&&fa(b,a.prototype);return b},uaa=function(a){function b(d){return a.next(d)} function c(d){return a.throw(d)} return new Promise(function(d,e){function f(h){h.done?d(h.value):Promise.resolve(h.value).then(b,c).then(f,e)} f(a.next())})},ra=function(a){return uaa(new saa(new paa(a)))}; ea("Symbol",function(a){if(a)return a;var b=function(f,h){this.$jscomp$symbol$id_=f;aa(this,"description",{configurable:!0,writable:!0,value:h})}; b.prototype.toString=function(){return this.$jscomp$symbol$id_}; var c="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",d=0,e=function(f){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new b(c+(f||"")+"_"+d++,f)}; return e}); ea("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");aa(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return vaa(jaa(this))}}); return a}); ea("Symbol.asyncIterator",function(a){return a?a:Symbol("Symbol.asyncIterator")}); var vaa=function(a){a={next:a};a[Symbol.iterator]=function(){return this}; return a},waa=function(a){this[Symbol.asyncIterator]=function(){return this}; this[Symbol.iterator]=function(){return a}; this.next=function(b){return Promise.resolve(a.next(b))}; this["throw"]=function(b){return new Promise(function(c,d){var e=a["throw"];e!==void 0?c(e.call(a,b)):(c=a["return"],c!==void 0&&c.call(a),d(new TypeError("no `throw` method")))})}; a["return"]!==void 0&&(this["return"]=function(b){return Promise.resolve(a["return"](b))})},sa=function(){for(var a=Number(this),b=[],c=a;c=f}}); ea("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=ta(this,b,"endsWith");b+="";c===void 0&&(c=d.length);c=Math.max(0,Math.min(c|0,d.length));for(var e=b.length;e>0&&c>0;)if(d[--c]!=b[--e])return!1;return e<=0}}); ea("Number.isFinite",function(a){return a?a:function(b){return typeof b!=="number"?!1:!isNaN(b)&&b!==Infinity&&b!==-Infinity}}); ea("String.prototype.repeat",function(a){return a?a:function(b){var c=ta(this,null,"repeat");if(b<0||b>1342177279)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}}); var zaa=function(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e=0&&b56319||b+1===d)return e;b=c.charCodeAt(b+1);return b<56320||b>57343?e:(e-55296)*1024+b+9216}}}); ea("String.fromCodePoint",function(a){return a?a:function(b){for(var c="",d=0;d1114111||e!==Math.floor(e))throw new RangeError("invalid_code_point "+e);e<=65535?c+=String.fromCharCode(e):(e-=65536,c+=String.fromCharCode(e>>>10&1023|55296),c+=String.fromCharCode(e&1023|56320))}return c}}); ea("Set.prototype.union",function(a){return a?a:function(b){if(!(this instanceof Set))throw new TypeError("Method must be called on an instance of Set.");if(typeof b!=="object"||b===null||typeof b.size!=="number"||b.size<0||typeof b.keys!=="function"||typeof b.has!=="function")throw new TypeError("Argument must be set-like");var c=new Set(this);b=b.keys();if(typeof b!=="object"||b===null||typeof b.next!=="function")throw new TypeError("Invalid iterator.");for(var d=b.next();!d.done;)c.add(d.value), d=b.next();return c}}); ea("Array.prototype.fill",function(a){return a?a:function(b,c,d){var e=this.length||0;c<0&&(c=Math.max(0,e+c));if(d==null||d>e)d=e;d=Number(d);d<0&&(d=Math.max(0,e+d));for(c=Number(c||0);c0&&c?c.repeat(Math.ceil(b/c.length)).substring(0,b):"")+d}}); ea("Math.sign",function(a){return a?a:function(b){b=Number(b);return b===0||isNaN(b)?b:b>0?1:-1}}); ea("Array.prototype.flat",function(a){return a?a:function(b){b=b===void 0?1:b;var c=[];Array.prototype.forEach.call(this,function(d){Array.isArray(d)&&b>0?(d=Array.prototype.flat.call(d,b-1),c.push.apply(c,d)):c.push(d)}); return c}}); ea("Array.prototype.findIndex",function(a){return a?a:function(b,c){return zaa(this,b,c).i}}); ea("String.raw",function(a){return a?a:function(b,c){b=kaa(b);for(var d=b.raw,e=d.length,f="",h=0;h>>16&65535)*e+d*(c>>>16&65535)<<16>>>0)|0}}); ea("Array.of",function(a){return a?a:function(b){return Array.from(arguments)}}); ea("Number.parseInt",function(a){return a||parseInt}); ea("Math.hypot",function(a){return a?a:function(b){if(arguments.length<2)return arguments.length?Math.abs(arguments[0]):0;var c,d,e;for(c=e=0;c1E100||e<1e-100){if(!e)return e;for(c=d=0;c>>0),Oaa=0,Paa=function(a){var b=Ea(a); if(b=="object"||b=="array"){if(typeof a.clone==="function")return a.clone();if(typeof Map!=="undefined"&&a instanceof Map)return new Map(a);if(typeof Set!=="undefined"&&a instanceof Set)return new Set(a);b=b=="array"?[]:{};for(var c in a)b[c]=Paa(a[c]);return b}return a},Qaa=function(a,b,c){return a.call.apply(a.bind,arguments)},Raa=function(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)}},Ia=function(a,b,c){Ia=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?Qaa:Raa; return Ia.apply(null,arguments)},Ja=function(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)}},Ka=function(){return Date.now()},Pa=function(a){return a},Ra=function(a,b){function c(){} c.prototype=b.prototype;a.superClass_=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.base=function(d,e,f){for(var h=Array(arguments.length-2),m=2;m=0;m--)if(h=a[m])f=(e<3?h(f):e>3?h(b,c,f):h(b,c))||f;e>3&&f&&Object.defineProperty(b,c,f)},r=function(a,b){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(a,b)},Waa=function(a,b){if(b!==null&&b!==void 0){if(typeof b!== "object"&&typeof b!=="function")throw new TypeError("Object expected."); if(c===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");var c=b[Symbol.dispose]}if(typeof c!=="function")throw new TypeError("Object not disposable.");a.stack.push({value:b,dispose:c,async:!1})}return b},Xaa=function(a){function b(f){a.error=a.hasError?new SuppressedError(f,a.error,"An error was suppressed during disposal."):f; a.hasError=!0} function c(){for(;d=a.stack.pop();)try{if(!d.async&&e===1)return e=0,a.stack.push(d),Promise.resolve().then(c);if(d.dispose){var f=d.dispose.call(d.value);if(d.async)return e|=2,Promise.resolve(f).then(c,function(h){b(h);return c()})}else e|=1}catch(h){b(h)}if(e===1)return a.hasError?Promise.reject(a.error):Promise.resolve(); if(a.hasError)throw a.error} var d,e=0;c()};function Va(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,Va);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));b!==void 0&&(this.cause=b)} Ra(Va,Error);Va.prototype.name="CustomError";var Yaa;function Wa(a,b){var c=a.length-b.length;return c>=0&&a.indexOf(b,c)==c} function Ya(a){return /^[\s\xa0]*$/.test(a)} var Za=String.prototype.trim?function(a){return a.trim()}:function(a){return /^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},Zaa=/&/g,$aa=//g,bba=/"/g,cba=/'/g,dba=/\x00/g,eba=/[\x00&<>"']/; function $a(a,b){return a.indexOf(b)!=-1} function bb(a,b){return $a(a.toLowerCase(),b.toLowerCase())} function fba(a,b){return ab?1:0} ;/* Copyright Google LLC SPDX-License-Identifier: Apache-2.0 */ function cb(a){return{valueOf:a}.valueOf()} ;var db={};var fb=globalThis.trustedTypes,gba=fb,hba;function iba(){var a=null;if(!gba)return a;try{var b=function(c){return c}; a=gba.createPolicy("goog#html",{createHTML:b,createScript:b,createScriptURL:b})}catch(c){}return a} function jba(){hba===void 0&&(hba=iba());return hba} ;var gb=function(a,b){this.privateDoNotAccessOrElseWrappedResourceUrl=b}; gb.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""}; function kb(a){var b=jba();a=b?b.createScriptURL(a):a;return new gb(db,a)} function lb(a){return a instanceof gb} function nb(a){if(lb(a))return a.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("")} ;var kba=la([""]),lba=ka([""],["\\0"]),mba=ka(["\n"],["\\n"]),nba=ka([""],["\\u0000"]),oba=la([""]),pba=ka([""],["\\0"]),qba=ka(["\n"],["\\n"]),rba=ka([""],["\\u0000"]);function ob(a){return Object.isFrozen(a)&&Object.isFrozen(a.raw)} function pb(a){return a.toString().indexOf("`")===-1} var sba=pb(function(a){return a(kba)})||pb(function(a){return a(lba)})||pb(function(a){return a(mba)})||pb(function(a){return a(nba)}),tba=ob(oba)&&ob(pba)&&ob(qba)&&ob(rba);var rb=function(a,b){this.privateDoNotAccessOrElseWrappedUrl=b}; rb.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl}; function tb(a){return new rb(db,a)} var uba=tb("about:blank"),ub=tb("about:invalid#zClosurez");function wb(a){return a instanceof rb} function xb(a){if(wb(a))return a.privateDoNotAccessOrElseWrappedUrl;throw Error("")} ;var yb=function(a){this.isValid=a}; function Ab(a){return new yb(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})} var Db={TEL:Ab("tel"),CALLTO:new yb(function(a){return /^callto:\+?\d*$/i.test(a)}), SSH:new yb(function(a){return a.indexOf("ssh://")===0}), RTSP:Ab("rtsp"),DATA:Ab("data"),HTTP:Ab("http"),HTTPS:Ab("https"),EXTENSION:new yb(function(a){return a.indexOf("chrome-extension://")===0||a.indexOf("moz-extension://")===0||a.indexOf("ms-browser-extension://")===0||a.indexOf("safari-web-extension://")===0}), FTP:Ab("ftp"),RELATIVE:new yb(function(a){return /^[^:]*([/?#]|$)/.test(a)}), MAILTO:Ab("mailto"),INTENT:Ab("intent"),MARKET:Ab("market"),ITMS:Ab("itms"),ITMS_APPSS:Ab("itms-appss"),ITMS_SERVICES:Ab("itms-services"),FACEBOOK_MESSENGER:Ab("fb-messenger"),WHATSAPP:Ab("whatsapp"),SIP:new yb(function(a){return a.indexOf("sip:")===0||a.indexOf("sips:")===0}), SMS:Ab("sms"),VND_YOUTUBE:Ab("vnd.youtube"),GOOGLEHOME:Ab("googlehome"),GOOGLEHOMESDK:Ab("googlehomesdk"),LINE:Ab("line")},vba=[Db.DATA,Db.HTTP,Db.HTTPS,Db.MAILTO,Db.FTP,Db.RELATIVE];function Eb(a,b){b=b===void 0?vba:b;if(wb(a))return a;for(var c=0;c=0} function Bc(a,b){b=Array.prototype.indexOf.call(a,b,void 0);var c;(c=b>=0)&&Array.prototype.splice.call(a,b,1);return c} function Dc(a){var b=a.length;if(b>0){for(var c=Array(b),d=0;d>>1);var m=c(b,a[h]);m>0?d=h+1:(e=h,f=!m)}return f?d:-d-1} function Ec(a,b,c){if(!Fa(a)||!Fa(b)||a.length!=b.length)return!1;var d=a.length;c=c||cca;for(var e=0;eb?1:a4);e++)b[hca(a[e])]||(c+="\nInner error "+d++ +": ",a[e].stack&&a[e].stack.indexOf(a[e].toString())==0||(c+=typeof a[e]==="string"?a[e]:a[e].message+"\n"),c+=fca(a[e],b));e1;)d+=c.shift()+e.shift();return d+c.join("%s")},Ic=function(a){return encodeURIComponent(String(a))},Mc=function(a){return decodeURIComponent(a.replace(/\+/g," "))},Nc=function(a){eba.test(a)&&(a.indexOf("&")!=-1&&(a=a.replace(Zaa,"&")),a.indexOf("<")!=-1&&(a=a.replace($aa,"<")),a.indexOf(">")!=-1&&(a=a.replace(aba,">")),a.indexOf("\"")!=-1&&(a=a.replace(bba,""")),a.indexOf("'")!= -1&&(a=a.replace(cba,"'")),a.indexOf("\0")!=-1&&(a=a.replace(dba,"�"))); return a},rca=function(a){var b={"&":"&", "<":"<",">":">",""":"\""};var c=ua.document.createElement("div");return a.replace(qca,function(d,e){var f=b[d];if(f)return f;e.charAt(0)=="#"&&(e=Number("0"+e.slice(1)),isNaN(e)||(f=String.fromCharCode(e)));f||(mc(c,Pb(d+" ")),f=c.firstChild.nodeValue.slice(0,-1));return b[d]=f})},sca=function(a){return a.replace(/&([^;]+);/g,function(b,c){switch(c){case"amp":return"&"; case"lt":return"<";case"gt":return">";case"quot":return"\"";default:return c.charAt(0)!="#"||(c=Number("0"+c.slice(1)),isNaN(c))?b:String.fromCharCode(c);}})},qca=/&([^;\s<&]+);?/g,tca=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#>>0; return b},Qc=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})},Rc=function(a){return String(a).replace(/([A-Z])/g,"-$1").toLowerCase()},wca=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})},xca=function(a){var b=1; a=a.split(":");for(var c=[];b>0&&a.length;)c.push(a.shift()),b--;a.length&&c.push(a.join(":"));return c};function yca(a,b,c,d,e,f){var h="";a&&(h+=a+":");b&&(h=h+"//"+b,c&&(h+=":"+c));d&&(h+=d);e&&(h+="?"+e);f&&(h+="#"+f);return h} var zca=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function Sc(a){return a.match(zca)} function Aca(a,b){return a?b?decodeURI(a):decodeURIComponent(a):a} function Tc(a){return Aca(Sc(a)[3]||null,!0)} function Uc(a){return Aca(Sc(a)[5]||null,!0)} function Bca(a){var b=a.indexOf("#");return b<0?null:a.slice(b+1)} function Cca(a){a=Sc(a);return yca(a[1],a[3],a[4])} function Vc(a){a=Sc(a);return yca(null,null,null,a[5],a[6],a[7])} function Wc(a){var b=a.indexOf("#");return b<0?a:a.slice(0,b)} function Yc(a,b){a=Sc(a);b=Sc(b);return a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]} function Dca(a,b){if(a){a=a.split("&");for(var c=0;c=0){var f=a[c].substring(0,d);e=a[c].substring(d+1)}else f=a[c];b(f,e?Mc(e):"")}}} function Eca(a,b){if(!b)return a;var c=a.indexOf("#");c<0&&(c=a.length);var d=a.indexOf("?");if(d<0||d>c){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;return a[0]+(a[1]?"?"+a[1]:"")+a[2]} function Fca(a,b,c){if(Array.isArray(b))for(var d=0;d=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(Ica,"$1")} ;function ed(){throw Error("Invalid UTF8")} function Jca(a,b){b=String.fromCharCode.apply(null,b);return a==null?b:a+b} var fd=void 0,Kca,Lca=typeof TextDecoder!=="undefined",Mca,Nca=typeof String.prototype.isWellFormed==="function",Oca=typeof TextEncoder!=="undefined"; function Pca(a){var b=!1;b=b===void 0?!1:b;if(Oca){if(b&&(Nca?!a.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(a)))throw Error("Found an unpaired surrogate");a=(Mca||(Mca=new TextEncoder)).encode(a)}else{for(var c=0,d=new Uint8Array(3*a.length),e=0;e>6|192;else{if(f>=55296&&f<=57343){if(f<=56319&&e=56320&&h<=57343){f=(f-55296)*1024+ h-56320+65536;d[c++]=f>>18|240;d[c++]=f>>12&63|128;d[c++]=f>>6&63|128;d[c++]=f&63|128;continue}else e--}if(b)throw Error("Found an unpaired surrogate");f=65533}d[c++]=f>>12|224;d[c++]=f>>6&63|128}d[c++]=f&63|128}}a=c===d.length?d:d.subarray(0,c)}return a} ;function gd(a){ua.setTimeout(function(){throw a},0)} ;function Qca(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)}return b} function Rca(a){return Sca(a)} function Sca(a){for(var b=[],c=0,d=0;c191&&e<224){var f=a[c++];b[d++]=String.fromCharCode((e&31)<<6|f&63)}else if(e>239&&e<365){f=a[c++];var h=a[c++],m=a[c++];e=((e&7)<<18|(f&63)<<12|(h&63)<<6|m&63)-65536;b[d++]=String.fromCharCode(55296+(e>>10));b[d++]=String.fromCharCode(56320+(e&1023))}else f=a[c++],h=a[c++],b[d++]=String.fromCharCode((e&15)<<12|(f&63)<<6|h&63)}return b.join("")} ;var hd=ya(1,!1),id=ya(610401301,!1);ya(899588437,!1);ya(772657768,!0);var Tca=ya(513659523,!1);ya(568333945,!0);var Uca=ya(1331761403,!1);ya(651175828,!1);ya(722764542,!1);ya(748402145,!1);ya(748402146,!1);var Vca=ya(748402147,!0);ya(333098724,!1);ya(861377723,!1);ya(861377724,hd);ya(869336903,!1);ya(882674507,!1);ya(869336904,hd);ya(869336905,hd);ya(2147483644,!1);ya(2147483645,!1);ya(2147483646,hd);ya(2147483647,!0);function jd(){var a=ua.navigator;return a&&(a=a.userAgent)?a:""} var md,Wca=ua.navigator;md=Wca?Wca.userAgentData||null:null;function Xca(a){if(!id||!md)return!1;for(var b=0;b0:!1} function Yca(){return qd()?!1:od("Opera")} function sd(){return od("Firefox")||od("FxiOS")} function Zca(){return od("Safari")&&!($ca()||(qd()?0:od("Coast"))||Yca()||(qd()?0:od("Edge"))||(qd()?Xca("Microsoft Edge"):od("Edg/"))||(qd()?Xca("Opera"):od("OPR"))||sd()||od("Silk")||od("Android"))} function $ca(){return qd()?Xca("Chromium"):(od("Chrome")||od("CriOS"))&&!(qd()?0:od("Edge"))||od("Silk")} ;function td(){return id?!!md&&!!md.platform:!1} function ud(){return od("iPhone")&&!od("iPod")&&!od("iPad")} ;var vd=function(a){vd[" "](a);return a}; vd[" "]=function(){}; var wd=function(a,b){try{return vd(a[b]),!0}catch(c){}return!1},ada=function(a,b,c,d){d=d?d(b):b; return Object.prototype.hasOwnProperty.call(a,d)?a[d]:a[d]=c(b)};var bda=Yca(),xd=qd()?!1:od("Trident")||od("MSIE"),yd=od("Edge"),cda=yd||xd,zd=od("Gecko")&&!(bb(jd(),"WebKit")&&!od("Edge"))&&!(od("Trident")||od("MSIE"))&&!od("Edge"),Ad=bb(jd(),"WebKit")&&!od("Edge"),dda=Ad&&od("Mobile"),eda=td()?md.platform==="macOS":od("Macintosh");td()||od("Windows");(td()?md.platform==="Linux":od("Linux"))||td()||od("CrOS");var fda=td()?md.platform==="Android":od("Android");ud();od("iPad");od("iPod");var gda=ud()||od("iPad")||od("iPod"),Bd=bb(jd(),"KaiOS"),hda; a:{var ida="",jda=function(){var a=jd();if(zd)return /rv:([^\);]+)(\)|;)/.exec(a);if(yd)return /Edge\/([\d\.]+)/.exec(a);if(xd)return /\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(Ad)return /WebKit\/(\S+)/.exec(a);if(bda)return /(?:Version)[ \/]?(\S+)/.exec(a)}(); jda&&(ida=jda?jda[1]:"");if(xd){var Dd,kda=ua.document;Dd=kda?kda.documentMode:void 0;if(Dd!=null&&Dd>parseFloat(ida)){hda=String(Dd);break a}}hda=ida} var lda=hda,mda={},nda=function(a){return ada(mda,a,function(){for(var b=0,c=Za(String(lda)).split("."),d=Za(String(a)).split("."),e=Math.max(c.length,d.length),f=0;b==0&&f=0})};var oda=sd(),pda=ud()||od("iPod"),qda=od("iPad");!od("Android")||$ca()||sd()||Yca()||od("Silk");var rda=$ca(),sda=Zca()&&!(ud()||od("iPad")||od("iPod"));var tda={},Ed=null,uda=zd||Ad||typeof ua.btoa=="function";function Fd(a,b){b===void 0&&(b=0);vda();b=tda[b];for(var c=Array(Math.floor(a.length/3)),d=b[64]||"",e=0,f=0;e>2];h=b[(h&3)<<4|m>>4];m=b[(m&15)<<2|p>>6];p=b[p&63];c[f++]=""+q+h+m+p}q=0;p=d;switch(a.length-e){case 2:q=a[e+1],p=b[(q&15)<<2]||d;case 1:a=a[e],c[f]=""+b[a>>2]+b[(a&3)<<4|q>>4]+p+d;}return c.join("")} function wda(a){var b=[];xda(a,function(c){b.push(c)}); return b} function Gd(a){var b=a.length,c=b*3/4;c%3?c=Math.floor(c):$a("=.",a[b-1])&&(c=$a("=.",a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;xda(a,function(f){d[e++]=f}); return e!==c?d.subarray(0,e):d} function xda(a,b){function c(p){for(;d>4);h!=64&&(b(f<<4&240|h>>2),m!=64&&b(h<<6&192|m))}} function vda(){if(!Ed){Ed={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;c<5;c++){var d=a.concat(b[c].split(""));tda[c]=d;for(var e=0;e=b||(d[a]=c+1,a=Error(),eca(a,"incident"),gd(a))}} ;function Od(){return typeof BigInt==="function"} ;var Pd=typeof Symbol==="function"&&typeof Symbol()==="symbol";function Qd(a,b,c){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(c===void 0?0:c)&&Symbol.for&&a?Symbol.for(a):a!=null?Symbol(a):Symbol():b} var Hda=Qd("jas",void 0,!0),Rd=Qd(void 0,"0di"),Td=Qd(void 0,"1oa"),Ud=Qd(void 0,Symbol()),Ida=Qd(void 0,"0ub"),Jda=Qd(void 0,"0ubs"),Kda=Qd(void 0,"0ubsb"),Lda=Qd(void 0,"0actk"),Vd=Qd("m_m","messagePrototypeMarker",!0),Mda=Qd(void 0,"vps"),Nda=Qd();var Oda={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}},Pda=Object.defineProperties,Wd=Pd?Hda:"internalArrayState",Xd,Qda=[];Yd(Qda,7);Xd=Object.freeze(Qda);function Zd(a,b){Pd||Wd in a||Pda(a,Oda);a[Wd]|=b} function Yd(a,b){Pd||Wd in a||Pda(a,Oda);a[Wd]=b} function $d(a){Zd(a,34);return a} function ae(a){Zd(a,8192);return a} function Rda(a){Zd(a,32);return a} ;var be={};function ce(a,b){return b===void 0?a.copyOnWrite!==de&&!!(2&(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[Wd]|0)):!!(2&b)&&a.copyOnWrite!==de} var de={};function ee(a,b){if(a!=null)if(typeof a==="string")a=a?new Id(a,Hd):Jd();else if(a.constructor!==Id)if(yda&&a!=null&&a instanceof Uint8Array)a=a.length?new Id(new Uint8Array(a),Hd):Jd();else{if(!b)throw Error();a=void 0}return a} function Sda(a,b){if(typeof b!=="number"||b<0||b>=a.length)throw Error()} var fe=function(a,b,c){this.iterable=a;this.mapper=b;this.thisArg=c}; fe.prototype.next=function(){var a=this.iterable.next();a.done||(a.value=this.mapper.call(this.thisArg,a.value));return a}; fe.prototype[Symbol.iterator]=function(){return this}; var Tda=Object.freeze({});function Uda(a,b,c){var d=b&128?0:-1,e=a.length,f;if(f=!!e)f=a[e-1],f=f!=null&&typeof f==="object"&&f.constructor===Object;var h=e+(f?-1:0);for(b=b&128?1:0;b=bea&&a<=cea:a[0]==="-"?dea(a,eea):dea(a,fea)}),eea=Number.MIN_SAFE_INTEGER.toString(),bea=le?BigInt(Number.MIN_SAFE_INTEGER):void 0,fea=Number.MAX_SAFE_INTEGER.toString(),cea=le?BigInt(Number.MAX_SAFE_INTEGER):void 0; function dea(a,b){if(a.length>b.length)return!1;if(a.lengthe)return!1;if(d>>0;oe=b;pe=(a-b)/4294967296>>>0} function se(a){if(a<0){re(0-a);var b=l(hea(oe,pe));a=b.next().value;b=b.next().value;oe=a>>>0;pe=b>>>0}else re(a)} function iea(a){var b=qe||(qe=new DataView(new ArrayBuffer(8)));b.setFloat32(0,+a,!0);pe=0;oe=b.getUint32(0,!0)} function jea(a,b){var c=b*4294967296+(a>>>0);return Number.isSafeInteger(c)?c:te(a,b)} function kea(a,b){return me(Od()?BigInt.asUintN(64,(BigInt(b>>>0)<>>0)):te(a,b))} function ve(a,b){return Od()?me(BigInt.asIntN(64,(BigInt.asUintN(32,BigInt(b))<>31;c=(c<<1|b>>>31)^d;a(b<<1^d,c)} function te(a,b){b>>>=0;a>>>=0;if(b<=2097151)var c=""+(4294967296*b+a);else Od()?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+nea(c)+nea(a));return c} function nea(a){a=String(a);return"0000000".slice(a.length)+a} function lea(a,b){b&2147483648?Od()?a=""+(BigInt(b|0)<>>0)):(b=l(hea(a,b)),a=b.next().value,b=b.next().value,a="-"+te(a,b)):a=te(a,b);return a} function we(a){if(a.length<16)se(Number(a));else if(Od())a=BigInt(a),oe=Number(a&BigInt(4294967295))>>>0,pe=Number(a>>BigInt(32)&BigInt(4294967295));else{var b=+(a[0]==="-");pe=oe=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)),pe*=1E6,oe=oe*1E6+d,oe>=4294967296&&(pe+=Math.trunc(oe/4294967296),pe>>>=0,oe>>>=0);b&&(b=l(hea(oe,pe)),a=b.next().value,b=b.next().value,oe=a,pe=b)}} function hea(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]} ;function xe(a){return Array.prototype.slice.call(a)} ;var ye=typeof BigInt==="function"?BigInt.asIntN:void 0,oea=typeof BigInt==="function"?BigInt.asUintN:void 0,ze=Number.isSafeInteger,Ce=Number.isFinite,De=Math.trunc;function Ee(a){if(a!=null&&typeof a!=="number")throw Error("Value of float/double field must be a number, found "+typeof a+": "+a);return a} function Fe(a){if(a==null||typeof a==="number")return a;if(a==="NaN"||a==="Infinity"||a==="-Infinity")return Number(a)} function Ge(a){if(typeof a!=="boolean")throw Error("Expected boolean but got "+Ea(a)+": "+a);return a} function He(a){if(a==null||typeof a==="boolean")return a;if(typeof a==="number")return!!a} var pea=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;function Ie(a){switch(typeof a){case"bigint":return!0;case"number":return Ce(a);case"string":return pea.test(a);default:return!1;}} function qea(a){if(!Ce(a))throw Md("enum");return a|0} function Je(a){return a==null?a:Ce(a)?a|0:void 0} function rea(a){if(typeof a!=="number")throw Md("int32");if(!Ce(a))throw Md("int32");return a|0} function Ke(a){return a==null?a:rea(a)} function Le(a){if(a==null)return a;if(typeof a==="string"&&a)a=+a;else if(typeof a!=="number")return;return Ce(a)?a|0:void 0} function sea(a){if(a==null)return a;if(typeof a==="string"&&a)a=+a;else if(typeof a!=="number")return;return Ce(a)?a>>>0:void 0} function tea(a){var b=void 0;b!=null||(b=1024);if(!Ie(a))throw Md("int64");var c=typeof a;switch(b){case 512:switch(c){case"string":return Ne(a);case"bigint":return String(ye(64,a));default:return uea(a);}case 1024:switch(c){case"string":return vea(a);case"bigint":return me(ye(64,a));default:return wea(a);}case 0:switch(c){case"string":return Ne(a);case"bigint":return me(ye(64,a));default:return Oe(a);}default:return Lb(b,"Unknown format requested type for int64");}} function Pe(a){return a==null?a:tea(a)} function xea(a){var b=a.length;if(a[0]==="-"?b<20||b===20&&a<="-9223372036854775808":b<19||b===19&&a<="9223372036854775807")return a;we(a);return lea(oe,pe)} function Oe(a){a=De(a);if(!ze(a)){se(a);var b=oe,c=pe;if(a=c&2147483648)b=~b+1>>>0,c=~c>>>0,b==0&&(c=c+1>>>0);b=jea(b,c);a=typeof b==="number"?a?-b:b:a?"-"+b:b}return a} function uea(a){a=De(a);ze(a)?a=String(a):(se(a),a=lea(oe,pe));return a} function Ne(a){var b=De(Number(a));if(ze(b))return String(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));return xea(a)} function vea(a){var b=De(Number(a));if(ze(b))return me(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));return Od()?me(ye(64,BigInt(a))):me(xea(a))} function wea(a){return ze(a)?me(Oe(a)):me(uea(a))} function yea(a){var b=b===void 0?!1:b;var c=typeof a;if(a==null)return a;if(c==="bigint")return String(ye(64,a));if(Ie(a))return c==="string"?Ne(a):b?uea(a):Oe(a)} function zea(a){var b=typeof a;if(a==null)return a;if(b==="bigint")return me(ye(64,a));if(Ie(a))return b==="string"?vea(a):wea(a)} function Aea(a){if(a==null)return a;var b=typeof a;if(b==="bigint")return String(ye(64,a));if(Ie(a)){if(b==="string")return Ne(a);if(b==="number")return Oe(a)}} function Qe(a){if(a==null)return a;var b=typeof a;if(b==="bigint")return String(oea(64,a));if(Ie(a)){if(b==="string")return b=De(Number(a)),ze(b)&&b>=0?a=String(b):(b=a.indexOf("."),b!==-1&&(a=a.substring(0,b)),a[0]==="-"?b=!1:(b=a.length,b=b<20?!0:b===20&&a<="18446744073709551615"),b||(we(a),a=te(oe,pe))),a;if(b==="number")return a=De(a),a>=0&&ze(a)||(se(a),a=jea(oe,pe)),a}} function Bea(a){if(a==null||typeof a=="string"||a instanceof Id)return a} function Cea(a){if(typeof a!=="string")throw Error();return a} function Re(a){if(a!=null&&typeof a!=="string")throw Error();return a} function Se(a){return a==null||typeof a==="string"?a:void 0} function Dea(a,b,c,d){if(a!=null&&a[Vd]===be)return a;if(!Array.isArray(a))return c?d&2?b[Rd]||(b[Rd]=Eea(b)):new b:void 0;c=a[Wd]|0;d=c|d&32|d&2;d!==c&&Yd(a,d);return new b(a)} function Eea(a){a=new a;$d(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return a} function Fea(a,b,c){a=b?rea(a):Le(a);return a==null?c?0:void 0:a|0} ;var Gea={};function Hea(a){return a} ;var Iea={},Jea=function(){try{var a=function(){return eaa(Map,[],this.constructor)}; k(a,Map);vd(new a);return!1}catch(b){return!0}}(),Te=function(){this.JSC$6078_map_=new Map}; g=Te.prototype;g.get=function(a){return this.JSC$6078_map_.get(a)}; g.set=function(a,b){this.JSC$6078_map_.set(a,b);this.size=this.JSC$6078_map_.size;return this}; g.delete=function(a){a=this.JSC$6078_map_.delete(a);this.size=this.JSC$6078_map_.size;return a}; g.clear=function(){this.JSC$6078_map_.clear();this.size=this.JSC$6078_map_.size}; g.has=function(a){return this.JSC$6078_map_.has(a)}; g.entries=function(){return this.JSC$6078_map_.entries()}; g.keys=function(){return this.JSC$6078_map_.keys()}; g.values=function(){return this.JSC$6078_map_.values()}; g.forEach=function(a,b){return this.JSC$6078_map_.forEach(a,b)}; Te.prototype[Symbol.iterator]=function(){return this.entries()}; var Ue=function(){if(Jea)return Object.setPrototypeOf(Te.prototype,Map.prototype),Object.defineProperties(Te.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),Te;var a=function(){return eaa(Map,[],this.constructor)}; k(a,Map);return a}(); function Kea(a){return a} var Ve=function(a,b,c,d){c=c===void 0?Kea:c;d=d===void 0?Kea:d;var e=Ue.call(this)||this;e.arrayState=a[Wd]|0;e.valueCtor=b;e.keyToApi=c;e.valueToApi=e.valueCtor?Lea:d;for(var f=0;f=h){var y=v-t,A=void 0;((A=b)!=null?A:b={})[y]=w}else f[v]=w}if(u)for(var C in u)m=u[C], m!=null&&(m=c(m,d))!=null&&(v=+C,w=void 0,q&&!Number.isNaN(v)&&(w=v+t)0?void 0:a===0?bfa||(bfa=[0,void 0]):[-a,void 0];case"string":return[0,a];case"object":return a;}} function df(a,b){return dfa(a,b[0],b[1])} function ef(a,b,c){return dfa(a,b,c,2048)} function dfa(a,b,c,d){d=d===void 0?0:d;if(a==null){var e=32;c?(a=[c],e|=128):a=[];b&&(e=e&-16760833|(b&1023)<<14)}else{if(!Array.isArray(a))throw Error("narr");e=a[Wd]|0;if(Vca&&1&e)throw Error("rfarr");2048&e&&!(2&e)&&efa();if(e&256)throw Error("farr");if(e&64)return(e|d)!==e&&Yd(a,e|d),a;if(c&&(e|=128,c!==a[0]))throw Error("mid");a:{c=a;e|=64;var f=c.length;if(f){var h=f-1,m=c[h];if(m!=null&&typeof m==="object"&&m.constructor===Object){b=e&128?0:-1;h-=b;if(h>=1024)throw Error("pvtlmt");for(var p in m)f= +p,f1024)throw Error("spvt");e=e&-16760833|(p&1023)<<14}}}Yd(a,e|64|d);return a} function efa(){if(Vca)throw Error("carr");Nd(Lda,5)} ;function ffa(a,b){if(typeof a!=="object")return a;if(Array.isArray(a)){var c=a[Wd]|0;return a.length===0&&c&1?void 0:gfa(a,c,b)}if(a!=null&&a[Vd]===be)return hfa(a);if(a instanceof Ve){b=a.arrayState;if(b&2)return a;if(!a.size)return;c=$d(Xe(a));if(a.valueCtor)for(a=0;a=f){var h=a[f];if(h!=null&&typeof h==="object"&&h.constructor===Object){c=h[b];var m=!0}else if(e===f)c=h;else return}else c=a[e];if(d&&c!=null){d=d(c);if(d==null)return d;if(!Object.is(d,c))return m?h[b]=d:a[e]=d,d}return c}},qf=function(a,b,c,d){lf(a); var e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;pf(e,e[Wd]|0,b,c,d);return a}; function pf(a,b,c,d,e){var f=c+(e?0:-1),h=a.length-1;if(h>=1+(e?0:-1)&&f>=h){var m=a[h];if(m!=null&&typeof m==="object"&&m.constructor===Object)return m[c]=d,b}if(f<=h)return a[f]=d,b;if(d!==void 0){var p;h=((p=b)!=null?p:b=a[Wd]|0)>>14&1023||536870912;c>=h?d!=null&&(f={},a[h+(e?0:-1)]=(f[c]=d,f)):a[f]=d}return b} var sf=function(a,b,c){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return rf(a,a[Wd]|0,b,c)!==void 0},uf=function(a,b,c,d){var e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows; return rf(e,e[Wd]|0,b,tf(a,d,c))!==void 0},vf=function(a,b){return of(a,b,void 0,void 0,lfa)}; function mfa(a,b,c){var d=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,e=d[Wd]|0,f=ce(a,e)?1:3;f===2&&kf(a)&&(d=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,e=d[Wd]|0);a=nfa(d,b);var h=a===Xd?7:a[Wd]|0,m=ofa(h,e);var p=4&m?!1:!0;if(p){4&m&&(a=xe(a),h=0,m=wf(m,e),e=pf(d,e,b,a));for(var q=0,t=0;qa.length)throw Error()}else d=d!=null?d:new c;e!=void 0?a.splice(e,f,d):a.push(d);e=c=a===Xd?7:a[Wd]|0;(f=ce(d))?(c&=-9,a.length===1&&(c&=-4097)):c|=4096;c!==e&&Yd(a,c);f||mf(m);return d}} var Mf=function(a,b,c,d,e){Lf(a,b,c,d,e);return a},Nf=function(a,b){return yea(of(a,b,void 0,void 0,zea))},Of=function(a,b){var c=c===void 0?!1:c; var d;return(d=He(of(a,b)))!=null?d:c},Pf=function(a,b,c){c=c===void 0?0:c; var d;return(d=Le(of(a,b)))!=null?d:c},Qf=function(a,b){var c=c===void 0?0:c; a=sea(of(a,b));return a!=null?a:c},Rf=function(a,b,c){c=c===void 0?jfa:c; a=of(a,b,void 0,void 0,zea);return a!=null?a:c},Sf=function(a,b){var c=c===void 0?0:c; a=of(a,b,void 0,void 0,Fe);return a!=null?a:c},Uf=function(a,b,c,d){c=c===void 0?"":c; var e;return(e=Se(of(a,b,d)))!=null?e:c},Vf=function(a,b){var c=c===void 0?0:c; var d;return(d=Je(of(a,b)))!=null?d:c},Wf=function(a,b){var c=c===void 0?"0":c; var d;return(d=Nf(a,b))!=null?d:c},Xf=function(a,b,c){return Uf(a,tf(a,c,b))},Yf=function(a,b,c,d){return Ef(a,b,tf(a,d,c),void 0)},zfa=function(a,b){b=tf(a,Zf,b); return Nf(a,b)},$f=function(a,b,c){b=tf(a,c,b); return Se(of(a,b))},ag=function(a,b){return Se(of(a,b,void 0,kfa))},bg=function(a,b,c){return qf(a,b,c==null?c:Ge(c))},cg=function(a,b,c){return zf(a,b,c==null?c:Ge(c),!1)},dg=function(a,b,c){return qf(a,b,Ke(c))},eg=function(a,b,c){return qf(a,b,Pe(c))},fg=function(a,b,c){return qf(a,b,Re(c))},gg=function(a,b,c,d){return zf(a,b,Re(c),"",d)},hg=function(a,b,c){return qf(a,b,c==null?c:qea(c))};var ig=function(a,b,c){this.buffer=a;if(c&&!b)throw Error();this.JSC$6091_isImmutable=b}; function Afa(a,b){if(typeof a==="string")return new ig(Dda(a),b);if(Array.isArray(a))return new ig(new Uint8Array(a),b);if(a.constructor===Uint8Array)return new ig(a,!1);if(a.constructor===ArrayBuffer)return a=new Uint8Array(a),new ig(a,!1);if(a.constructor===Id)return b=Kd(a)||new Uint8Array(0),new ig(b,!0,a);if(a instanceof Uint8Array)return a=a.constructor===Uint8Array?a:new Uint8Array(a.buffer,a.byteOffset,a.byteLength),new ig(a,!1);throw Error()} ;var Bfa=function(a,b,c,d){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6094_start_=0;this.init(a,b,c,d)}; g=Bfa.prototype;g.init=function(a,b,c,d){var e=d===void 0?{}:d;d=e.aliasBytesFields===void 0?!1:e.aliasBytesFields;e=e.treatNewDataAsImmutable===void 0?!1:e.treatNewDataAsImmutable;this.aliasBytesFields=d;this.treatNewDataAsImmutable=e;a&&(a=Afa(a,this.treatNewDataAsImmutable),this.bytes_=a.buffer,this.bytesAreImmutable_=a.JSC$6091_isImmutable,this.JSC$6094_start_=b||0,this.end_=c!==void 0?this.JSC$6094_start_+c:this.bytes_.length,this.cursor_=this.JSC$6094_start_)}; g.free=function(){this.clear();jg.length<100&&jg.push(this)}; g.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6094_start_=0;this.aliasBytesFields=!1}; g.reset=function(){this.cursor_=this.JSC$6094_start_}; g.atEnd=function(){return this.cursor_==this.end_}; var lg=function(a,b){var c=0,d=0,e=0,f=a.bytes_,h=a.cursor_;do{var m=f[h++];c|=(m&127)<32)for(d|=(m&127)>>4,e=3;e<32&&m&128;e+=7)m=f[h++],d|=(m&127)<>>0,d>>>0);throw Error()},Cfa=function(a){return lg(a,function(b,c){var d=-(b&1); b=(b>>>1|c<<31)^d;return ve(b,c>>>1^d)})},kg=function(a,b){a.cursor_=b; if(b>a.end_)throw Error()},mg=function(a){var b=a.bytes_,c=a.cursor_,d=b[c++],e=d&127; if(d&128&&(d=b[c++],e|=(d&127)<<7,d&128&&(d=b[c++],e|=(d&127)<<14,d&128&&(d=b[c++],e|=(d&127)<<21,d&128&&(d=b[c++],e|=d<<28,d&128&&b[c++]&128&&b[c++]&128&&b[c++]&128&&b[c++]&128&&b[c++]&128)))))throw Error();kg(a,c);return e},ng=function(a){var b=a.bytes_,c=a.cursor_,d=b[c+0],e=b[c+1],f=b[c+2]; b=b[c+3];kg(a,a.cursor_+4);return(d<<0|e<<8|f<<16|b<<24)>>>0},Dfa=function(a){var b=ng(a); a=ng(a);return kea(b,a)},og=function(a){var b=ng(a); a=(b>>31)*2+1;var c=b>>>23&255;b&=8388607;return c==255?b?NaN:a*Infinity:c==0?a*1.401298464324817e-45*b:a*Math.pow(2,c-150)*(b+8388608)},Efa=function(a){var b=ng(a),c=ng(a); a=(c>>31)*2+1;var d=c>>>20&2047;b=4294967296*(c&1048575)+b;return d==2047?b?NaN:a*Infinity:d==0?a*5e-324*b:a*Math.pow(2,d-1075)*(b+4503599627370496)},pg=function(a){for(var b=0,c=a.cursor_,d=c+10,e=a.bytes_;ca.end_)throw Error();a.cursor_=b;return c},Hfa=function(a,b){if(b==0)return Jd(); var c=Gfa(a,b);a.aliasBytesFields&&a.bytesAreImmutable_?c=a.bytes_.subarray(c,c+b):(a=a.bytes_,b=c+b,c=c===b?new Uint8Array(0):gea?a.slice(c,b):new Uint8Array(a.subarray(c,b)));return c.length==0?Jd():new Id(c,Hd)},jg=[];var Jfa=function(a,b,c,d){if(jg.length){var e=jg.pop();e.init(a,b,c,d);a=e}else a=new Bfa(a,b,c,d);this.decoder_=a;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;Ifa(this,d)},Ifa=function(a,b){b=b===void 0?{}:b; a.discardUnknownFields=b.discardUnknownFields===void 0?!1:b.discardUnknownFields},Kfa=function(a,b,c,d){if(qg.length){var e=qg.pop(); Ifa(e,d);e.decoder_.init(a,b,c,d);return e}return new Jfa(a,b,c,d)}; Jfa.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;qg.length<100&&qg.push(this)}; Jfa.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1}; var Lfa=function(a){if(a.decoder_.atEnd())return!1;a.fieldCursor_=a.decoder_.cursor_;var b=mg(a.decoder_)>>>0,c=b>>>3;b&=7;if(!(b>=0&&b<=5))throw Error();if(c<1)throw Error();a.nextField_=c;a.nextWireType_=b;return!0},rg=function(a){switch(a.nextWireType_){case 0:a.nextWireType_!=0?rg(a):pg(a.decoder_); break;case 1:a=a.decoder_;kg(a,a.cursor_+8);break;case 2:if(a.nextWireType_!=2)rg(a);else{var b=mg(a.decoder_)>>>0;a=a.decoder_;kg(a,a.cursor_+b)}break;case 5:a=a.decoder_;kg(a,a.cursor_+4);break;case 3:b=a.nextField_;do{if(!Lfa(a))throw Error();if(a.nextWireType_==4){if(a.nextField_!=b)throw Error();break}rg(a)}while(1);break;default:throw Error();}},sg=function(a,b,c){var d=a.decoder_.end_,e=mg(a.decoder_)>>>0; e=a.decoder_.cursor_+e;var f=e-d;f<=0&&(a.decoder_.end_=e,c(b,a,void 0,void 0,void 0),f=e-a.decoder_.cursor_);if(f)throw Error();a.decoder_.cursor_=e;a.decoder_.end_=d;return b},tg=function(a){var b=mg(a.decoder_)>>>0; a=a.decoder_;var c=Gfa(a,b);a=a.bytes_;if(Lca){var d=a,e;(e=Kca)||(e=Kca=new TextDecoder("utf-8",{fatal:!0}));b=c+b;d=c===0&&b===d.length?d:d.subarray(c,b);try{var f=e.decode(d)}catch(q){if(fd===void 0){try{e.decode(new Uint8Array([128]))}catch(t){}try{e.decode(new Uint8Array([97])),fd=!0}catch(t){fd=!1}}!fd&&(Kca=void 0);throw q}}else{f=c;b=f+b;c=[];for(var h=null,m,p;f=b?ed():(p=a[f++],m<194||(p&192)!==128?(f--,ed()):c.push((m&31)<<6|p&63)):m<240?f>=b-1?ed():( p=a[f++],(p&192)!==128||m===224&&p<160||m===237&&p>=160||((e=a[f++])&192)!==128?(f--,ed()):c.push((m&15)<<12|(p&63)<<6|e&63)):m<=244?f>=b-2?ed():(p=a[f++],(p&192)!==128||(m<<28)+(p-144)>>30!==0||((e=a[f++])&192)!==128||((d=a[f++])&192)!==128?(f--,ed()):(m=(m&7)<<18|(p&63)<<12|(e&63)<<6|d&63,m-=65536,c.push((m>>10&1023)+55296,(m&1023)+56320))):ed(),c.length>=8192&&(h=Jca(h,c),c.length=0);f=Jca(h,c)}return f},Mfa=function(a){var b=mg(a.decoder_)>>>0; return Hfa(a.decoder_,b)},Nfa=function(a,b,c){var d=mg(a.decoder_)>>>0; for(d=a.decoder_.cursor_+d;a.decoder_.cursor_>>0;this.JSC$6101_hi=b>>>0},Ofa=function(a){return a.JSC$6101_lo===0?new ug(0,1+~a.JSC$6101_hi):new ug(~a.JSC$6101_lo+1,~a.JSC$6101_hi)},vg=function(a){a=BigInt.asUintN(64,a); return new ug(Number(a&BigInt(4294967295)),Number(a>>BigInt(32)))},wg=function(a){if(!a)return Pfa||(Pfa=new ug(0,0)); if(!/^\d+$/.test(a))return null;we(a);return new ug(oe,pe)},Pfa,Qfa=function(a,b){this.JSC$6104_lo=a>>>0; this.JSC$6104_hi=b>>>0},Sfa=function(a){if(!a)return Rfa||(Rfa=new Qfa(0,0)); if(!/^-?\d+$/.test(a))return null;we(a);return new Qfa(oe,pe)},Rfa;var Tfa=function(){this.JSC$6106_buffer_=[]}; Tfa.prototype.length=function(){return this.JSC$6106_buffer_.length}; Tfa.prototype.end=function(){var a=this.JSC$6106_buffer_;this.JSC$6106_buffer_=[];return a}; var xg=function(a,b,c){for(;c>0||b>127;)a.JSC$6106_buffer_.push(b&127|128),b=(b>>>7|c<<25)>>>0,c>>>=7;a.JSC$6106_buffer_.push(b)},yg=function(a,b){for(;b>127;)a.JSC$6106_buffer_.push(b&127|128),b>>>=7; a.JSC$6106_buffer_.push(b)},Ufa=function(a,b){if(b>=0)yg(a,b);else {for(var c=0;c<9;c++)a.JSC$6106_buffer_.push(b&127|128),b>>=7;a.JSC$6106_buffer_.push(1)}},Vfa=function(a,b){we(b); mea(function(c,d){xg(a,c>>>0,d>>>0)})},zg=function(a,b){a.JSC$6106_buffer_.push(b>>>0&255); a.JSC$6106_buffer_.push(b>>>8&255);a.JSC$6106_buffer_.push(b>>>16&255);a.JSC$6106_buffer_.push(b>>>24&255)};var Wfa=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new Tfa},Ag=function(a,b){b.length!==0&&(a.blocks_.push(b),a.totalLength_+=b.length)},Bg=function(a,b,c){yg(a.encoder_,b*8+c)},Yfa=function(a,b,c){if(c!=null)switch(Xfa(c),Bg(a,b,1),typeof c){case"number":a=a.encoder_; re(c);zg(a,oe);zg(a,pe);break;case"bigint":c=vg(c);a=a.encoder_;b=c.JSC$6101_hi;zg(a,c.JSC$6101_lo);zg(a,b);break;default:c=wg(c),a=a.encoder_,b=c.JSC$6101_hi,zg(a,c.JSC$6101_lo),zg(a,b);}},Zfa=function(a,b,c){c!=null&&(c=parseInt(c,10),Bg(a,b,0),Ufa(a.encoder_,c))},Cg=function(a,b,c){Bg(a,b,2); yg(a.encoder_,c.length);Ag(a,a.encoder_.end());Ag(a,c)},Eg=function(a,b,c,d){if(c!=null){Bg(a,b,2); b=a.encoder_.end();Ag(a,b);b.push(a.totalLength_);d(c,a);c=b.pop();for(c=a.totalLength_+a.encoder_.length()-c;c>127;)b.push(c&127|128),c>>>=7,a.totalLength_++;b.push(c);a.totalLength_++}}; function $fa(a){switch(typeof a){case"string":Sfa(a);}} function Xfa(a){switch(typeof a){case"string":wg(a);}} function aga(a){switch(typeof a){case"string":a.length&&a[0]==="-"?wg(a.substring(1)):wg(a);}} ;function Fg(){var a=function(){throw Error()}; Object.setPrototypeOf(a,a.prototype);return a} var bga=Fg(),cga=Fg(),Gg=Fg(),dga=Fg(),ega=Fg(),fga=Fg(),Hg=Fg(),gga=Fg(),hga=Fg(),iga=Fg(),jga=Fg(),kga=Fg(),lga=Fg(),mga=Fg();var Ig=function(a,b,c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a,b,c)}; Ig.prototype.toJSON=function(){return af(this)}; Ig.prototype.serialize=function(a){return JSON.stringify(af(this,a))}; var Jg=function(a,b){if(b==null||b=="")return new a;b=JSON.parse(b);if(!Array.isArray(b))throw Error("dnarr");return new a(Rda(b))}; Ig.prototype.getExtension=function(a){Vea(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);Uea(this);return a.ctor?a.isRepeated?a.getExtensionFn(this,a.ctor,175237375,void 0===Tda?2:4,a.JSC$6117_hasMessageId):a.getExtensionFn(this,a.ctor,175237375,a.JSC$6117_hasMessageId):a.isRepeated?a.getExtensionFn(this,175237375,void 0===Tda?2:4,a.JSC$6117_hasMessageId):a.getExtensionFn(this,175237375,a.defaultValue,a.JSC$6117_hasMessageId)}; Ig.prototype.clone=function(){var a=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b=a[Wd]|0;return jf(this,a,b)?hf(this,a,!0):new this.constructor(ff(a,b,!1))}; Ig.prototype[Vd]=be;Ig.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()}; function nga(a,b){if(b==null)return new a;if(!Array.isArray(b))throw Error();if(Object.isFrozen(b)||Object.isSealed(b)||!Object.isExtensible(b))throw Error();return new a(Rda(b))} ;var Kg=function(a,b,c){this.$$binaryReaderFn=a;this.$$binaryWriterFn=b;a=Pa(bga);this.$$isMsg=!!a&&c===a||!1}; function Lg(a,b){var c=c===void 0?bga:c;return new Kg(a,b,c)} function oga(a,b,c,d,e){Eg(a,c,pga(b,d),e)} var qga=Lg(function(a,b,c,d,e){if(a.nextWireType_!==2)return!1;sg(a,wfa(b,d,c),e);return!0},oga),rga=Lg(function(a,b,c,d,e){if(a.nextWireType_!==2)return!1; sg(a,wfa(b,d,c),e);return!0},oga),Mg=Symbol(),Ng=Symbol(),sga=Symbol(),tga=Symbol(),uga=Symbol(),vga,wga; function Og(a,b,c,d){var e=d[a];if(e)return e;e={};e.binaryFields=d;e.messageMetadata=cfa(d[0]);var f=d[1],h=1;f&&f.constructor===Object&&(e.extensions=f,f=d[++h],typeof f==="function"&&(e.isMessageSet=!0,vga!=null||(vga=f),wga!=null||(wga=d[h+1]),f=d[h+=2]));for(var m={};f&&Array.isArray(f)&&f.length&&typeof f[0]==="number"&&f[0]>0;){for(var p=0;p>BigInt(32)));xg(a.encoder_,c.JSC$6104_lo,c.JSC$6104_hi);break;default:c=Sfa(b),xg(a.encoder_,c.JSC$6104_lo,c.JSC$6104_hi);}} function Lga(a,b,c){b=Qe(b);if(b!=null&&(Xfa(b),b!=null))switch(Bg(a,c,0),typeof b){case"number":a=a.encoder_;se(b);xg(a,oe,pe);break;case"bigint":c=vg(b);xg(a.encoder_,c.JSC$6101_lo,c.JSC$6101_hi);break;default:c=wg(b),xg(a.encoder_,c.JSC$6101_lo,c.JSC$6101_hi);}} function Mga(a,b,c){b=Le(b);b!=null&&b!=null&&(Bg(a,c,0),Ufa(a.encoder_,b))} function Nga(a,b,c){b=He(b);b!=null&&(Bg(a,c,0),a.encoder_.JSC$6106_buffer_.push(b?1:0))} function Oga(a,b,c){b=Se(b);b!=null&&Cg(a,c,Pca(b))} function Pga(a,b,c,d,e){Eg(a,c,pga(b,d),e)} function Qga(a,b,c){b=Bea(b);b!=null&&Cg(a,c,Afa(b,!0).buffer)} function Rga(a,b,c){b=sea(b);b!=null&&b!=null&&(Bg(a,c,0),yg(a.encoder_,b))} function Sga(a,b,c){Zfa(a,c,Le(b))} function Tga(a,b,c){if(a.nextWireType_!==0)return!1;Ug(b,c,lg(a.decoder_,ve));return!0} function Uga(a,b,c){if(a.nextWireType_!==0)return!1;Ug(b,c,lg(a.decoder_,kea));return!0} function Vga(a,b,c){if(a.nextWireType_!==1)return!1;Ug(b,c,Dfa(a.decoder_));return!0} var Wg=Sg(function(a,b,c){if(a.nextWireType_!==1)return!1;Ug(b,c,Efa(a.decoder_));return!0},Jga,kga),Wga=Sg(function(a,b,c,d){if(a.nextWireType_!==1)return!1; Cf(b,c,d,Efa(a.decoder_));return!0},Jga,kga),Xg=Sg(function(a,b,c){if(a.nextWireType_!==5)return!1; Ug(b,c,og(a.decoder_));return!0},Kga,jga),Xga=Tg(function(a,b,c){if(a.nextWireType_!==5&&a.nextWireType_!==2)return!1; b=Af(b,b[Wd]|0,c);a.nextWireType_==2?Nfa(a,og,b):b.push(og(a.decoder_));return!0},function(a,b,c){b=Rg(Fe,b,!0); if(b!=null&&b.length)for(Bg(a,c,2),yg(a.encoder_,b.length*4),c=0;c>>0);return!0},Rga,ega),kha=Sg(function(a,b,c,d){if(a.nextWireType_!==0)return!1; Cf(b,c,d,mg(a.decoder_)>>>0);return!0},Rga,ega),oh=Sg(function(a,b,c){if(a.nextWireType_!==0)return!1; Ug(b,c,mg(a.decoder_));return!0},Sga,mga),lha=Tg(function(a,b,c){if(a.nextWireType_!==0&&a.nextWireType_!==2)return!1; b=Af(b,b[Wd]|0,c);a.nextWireType_==2?Nfa(a,Ffa,b):b.push(mg(a.decoder_));return!0},function(a,b,c){b=Rg(Le,b,!0); if(b!=null)for(var d=0;d>>0&255),a.JSC$6106_buffer_.push(b>>>8&255),a.JSC$6106_buffer_.push(b>>>16&255),a.JSC$6106_buffer_.push(b>>>24&255))},fga),nha=Sg(function(a,b,c){a.nextWireType_!==0?a=!1:(Ug(b,c,Cfa(a.decoder_)),a=!0); return a},function(a,b,c){b=Aea(b); if(b!=null&&($fa(b),b!=null))switch(Bg(a,c,0),typeof b){case"number":a=a.encoder_;c=b;b=c<0;c=Math.abs(c)*2;re(c);c=oe;var d=pe;b&&(c==0?d==0?d=c=4294967295:(d--,c=4294967295):c--);oe=c;pe=d;xg(a,oe,pe);break;case"bigint":a=a.encoder_;b=b<>BigInt(63);oe=Number(BigInt.asUintN(32,b));pe=Number(BigInt.asUintN(32,b>>BigInt(32)));xg(a,oe,pe);break;default:Vfa(a.encoder_,b);}},hga);var qha=function(){var a=oha;this.ctor=pha;this.isRepeated=0;this.getExtensionFn=Ef;this.defaultValue=void 0;this.JSC$6117_hasMessageId=a.messageId!=null?ge:void 0}; qha.prototype.register=function(){vd(this)};function qh(a,b){return function(c,d){var e={treatNewDataAsImmutable:!0};d&&Object.assign(e,d);c=Kfa(c,void 0,void 0,e);try{var f=new a,h=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Aga(b)(h,c);var m=f}finally{c.free()}return m}} function rh(a){return function(b){return Hga(b,a)}} function th(a){return function(){return Hga(this,a)}} function rha(a){return ie(function(b){return b instanceof a&&!ce(b)})} function uh(a){return function(b){return Jg(a,b)}} ;var vh=window;function wh(a){try{return!!a&&a.location.href!=null&&wd(a,"foo")}catch(b){return!1}} ;var xh=function(){},sha=function(a){return a},tha=function(a){var b=b||0; return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}},yh=function(a){var b=!1,c; return function(){b||(c=a(),b=!0);return c}},zh=function(a,b){var c=0; return function(d){ua.clearTimeout(c);var e=arguments;c=ua.setTimeout(function(){a.apply(void 0,e)},b)}},uha=function(a,b){var c=0,d=!1,e=[],f=function(){c=0; d&&(d=!1,h())},h=function(){c=ua.setTimeout(f,b); var m=e;e=[];a.apply(void 0,m)}; return function(m){e=arguments;c?d=!0:h()}},vha=function(a,b){var c=0,d=function(){c=0}; return function(e){c||(c=ua.setTimeout(d,b),a.apply(void 0,arguments))}};function wha(){return id&&md?!md.mobile&&(od("iPad")||od("Android")||od("Silk")):od("iPad")||od("Android")&&!od("Mobile")||od("Silk")} ;function xha(a){var b=yha;if(b)for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&a(b[c],c,b)} function zha(){var a=[];xha(function(b){a.push(b)}); return a} ;function Ah(a){return new lc(db,a[0].toLowerCase())} ;function Aha(a){return rc(a.map(sc).join(""))} ;function Bh(a,b){if(Qb(a))return a;a=Ch(String(a));if(b==null?0:b.preserveSpaces)a=a.replace(/(^|[\r\n\t ]) /g,"$1 ");if(b==null?0:b.preserveNewlines)a=a.replace(/(\r\n|\n|\r)/g,"
");if(b==null?0:b.preserveTabs)a=a.replace(/(\t+)/g,"$1");return Pb(a)} function Ch(a){return a.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")} function Bha(a){return Cha("",a)} function Cha(a,b){a=Bh(a);return Pb(b.map(function(c){return Rb(Bh(c))}).join(Rb(a).toString()))} var Dha=/^[a-z][a-z\d-]*$/i,Eha="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),Fha="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),Gha=["action","formaction","href"];function Hha(a){if(!Dha.test(a))throw Error("");if(Eha.indexOf(a.toUpperCase())!==-1)throw Error("")} function Iha(a,b,c){Hha(a);var d="<"+a;b&&(d+=Jha(b));Array.isArray(c)||(c=c===void 0?[]:[c]);Fha.indexOf(a.toUpperCase())!==-1?d+=">":(b=Bha(c.map(function(e){return Qb(e)?e:Bh(String(e))})),d+=">"+b.toString()+""); return Pb(d)} function Jha(a){for(var b="",c=Object.keys(a),d=0;d";break;case"endTag":d="";}e=d}else e=d;return e}); return Pb(a)}; Dh.prototype.text=function(a){return Kha(this,{type:"html",html:Bh(a).toString()})}; Dh.prototype.safeHtml=function(a){return Kha(this,{type:"html",html:Rb(a).toString()})}; var Kha=function(a,b){var c="{_safevalues_format_marker_:"+a.replacements.size+"_"+Math.random().toString(36).slice(2)+"}";a.replacements.set(Bh(c).toString(),b);return c};function Lha(a){try{return new URL(a,window.document.baseURI)}catch(b){return new URL("about:invalid")}} ;function Mha(a,b){var c=b.createRange();c.selectNode(b.body);a=Pb(a);return lca(c,a)} ;function Nha(a){a=a.nodeName;return typeof a==="string"?a:"FORM"} function Oha(a){a=a.nodeType;return a===1||typeof a!=="number"} ;var Eh=function(a,b,c,d,e){this.allowedElements=a;this.elementPolicies=b;this.allowedGlobalAttributes=c;this.globalAttributePolicies=d;this.globallyAllowedAttributePrefixes=e},Pha=function(a,b,c){c=a.elementPolicies.get(c); return(c==null?0:c.has(b))?c.get(b):a.allowedGlobalAttributes.has(b)?{policyAction:1}:(c=a.globalAttributePolicies.get(b))?c:a.globallyAllowedAttributePrefixes&&[].concat(ia(a.globallyAllowedAttributePrefixes)).some(function(d){return b.indexOf(d)===0})?{policyAction:1}:{policyAction:0}};var Qha="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 NOBR 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(" "), Rha=[["A",new Map([["href",{policyAction:7}]])],["AREA",new Map([["href",{policyAction:7}]])],["LINK",new Map([["href",{policyAction:5,conditions:new Map([["rel",new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])],["SOURCE",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["IMG",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["VIDEO",new Map([["src", {policyAction:5}]])],["AUDIO",new Map([["src",{policyAction:5}]])]],Sha="title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked cite color cols colspan controls controlslist coords crossorigin datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden inert ismap label lang loop max maxlength media minlength min multiple muted nonce open playsinline placeholder preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type usemap valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "), Tha=[["dir",{policyAction:3,conditions:cb(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}], ["async",{policyAction:3,conditions:cb(function(){return new Map([["async",new Set(["async"])]])})}], ["loading",{policyAction:3,conditions:cb(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}], ["poster",{policyAction:5}],["target",{policyAction:3,conditions:cb(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],Uha=new Eh(new Set(Qha),new Map(Rha),new Set(Sha),new Map(Tha)),Vha=new Eh(new Set(Qha.concat(["BUTTON", "INPUT"])),new Map(Rha),new Set(cb(function(){return Sha.concat(["class","id","name"])})),new Map(cb(function(){return Tha.concat([["style", {policyAction:1}]])}))),Wha=new Eh(new Set(cb(function(){return Qha.concat("STYLE TITLE INPUT TEXTAREA BUTTON LABEL".split(" "))})),new Map(Rha),new Set(cb(function(){return Sha.concat(["class", "id","tabindex","contenteditable","name"])})),new Map(cb(function(){return Tha.concat([["style", {policyAction:1}]])})),new Set(["data-", "aria-"]));var Fh=function(a,b,c,d,e){this.JSC$6185_sanitizerTable=a;this.styleElementSanitizer=b;this.styleAttributeSanitizer=c;this.JSC$6185_resourceUrlPolicy=d;this.JSC$6185_navigationUrlPolicy=e;this.changes=[]},Hh=function(a,b){var c=document.implementation.createHTMLDocument(""); a=Xha(a,b,c);c=c.body;c.appendChild(a);c=new XMLSerializer().serializeToString(c);c=c.slice(c.indexOf(">")+1,c.lastIndexOf("2&&Kia(a,d,b,2);return d},Kia=function(a,b,c,d){function e(m){m&&b.appendChild(typeof m==="string"?a.createTextNode(m):m)} for(;d0)e(f);else{a:{if(f&&typeof f.length=="number"){if(Ga(f)){var h=typeof f.item=="function"||typeof f.item=="string";break a}if(typeof f==="function"){h=typeof f.item=="function";break a}}h=!1}uc(h?Dc(f):f,e)}}},li=function(a){return Jia(document,a)},Jia=function(a,b){b=String(b); a.contentType==="application/xhtml+xml"&&(b=b.toLowerCase());return a.createElement(b)},mi=function(a){if(a.nodeType!=1)return!1; switch(a.tagName){case"APPLET":case"AREA":case"BASE":case"BR":case"COL":case"COMMAND":case"EMBED":case"FRAME":case"HR":case"IMG":case"INPUT":case"IFRAME":case"ISINDEX":case"KEYGEN":case"LINK":case"NOFRAMES":case"NOSCRIPT":case"META":case"OBJECT":case"PARAM":case"SCRIPT":case"SOURCE":case"STYLE":case"TRACK":case"WBR":return!1;}return!0},Lia=function(a){for(var b;b=a.firstChild;)a.removeChild(b)},ni=function(a,b){b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling)},oi=function(a){return a&& a.parentNode?a.parentNode.removeChild(a):null},pi=function(a,b){if(!a||!b)return!1; if(a.contains&&b.nodeType==1)return a==b||a.contains(b);if(typeof a.compareDocumentPosition!="undefined")return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a},Oia=function(a,b){if(a==b)return 0; if(a.compareDocumentPosition)return a.compareDocumentPosition(b)&2?1:-1;if("sourceIndex"in a||a.parentNode&&"sourceIndex"in a.parentNode){var c=a.nodeType==1,d=b.nodeType==1;if(c&&d)return a.sourceIndex-b.sourceIndex;var e=a.parentNode,f=b.parentNode;return e==f?Mia(a,b):!c&&pi(e,b)?-1*Nia(a,b):!d&&pi(f,a)?Nia(b,a):(c?a.sourceIndex:e.sourceIndex)-(d?b.sourceIndex:f.sourceIndex)}d=ci(a);c=d.createRange();c.selectNode(a);c.collapse(!0);a=d.createRange();a.selectNode(b);a.collapse(!0);return c.compareBoundaryPoints(ua.Range.START_TO_END, a)},Nia=function(a,b){var c=a.parentNode; if(c==b)return-1;for(;b.parentNode!=c;)b=b.parentNode;return Mia(b,a)},Mia=function(a,b){for(;b=b.previousSibling;)if(b==a)return-1; return 1},Pia=function(a){var b,c=arguments.length; if(!c)return null;if(c==1)return arguments[0];var d=[],e=Infinity;for(b=0;b=0&&a<32768},Via=function(a){var b=[]; Uia(a,b,!1);return b.join("")},Uia=function(a,b,c){if(!(a.nodeName in Qia))if(a.nodeType==3)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in Ria)b.push(Ria[a.nodeName]);else for(a=a.firstChild;a;)Uia(a,b,c),a=a.nextSibling},Wia=function(a,b,c){if(!b&&!c)return null; var d=b?String(b).toUpperCase():null;return si(a,function(e){return(!d||e.nodeName==d)&&(!c||typeof e.className==="string"&&yc(e.className.split(/\s+/),c))},!0)},si=function(a,b,c){a&&!c&&(a=a.parentNode); for(c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null},bi=function(a){this.JSC$6229_document_=a||ua.document||document}; g=bi.prototype;g.getElement=function(a){return ei(this.JSC$6229_document_,a)}; g.$=bi.prototype.getElement;g.getElementsByTagName=function(a,b){return(b||this.JSC$6229_document_).getElementsByTagName(String(a))}; g.getElementsByTagNameAndClass=function(a,b,c){c=c||this.JSC$6229_document_;return(a=a&&a!="*"?String(a).toUpperCase():"")||b?c.querySelectorAll(a+(b?"."+b:"")):c.getElementsByTagName("*")}; g.$$=bi.prototype.getElementsByTagNameAndClass;g.setProperties=Eia;g.createDom=function(a,b,c){return Hia(this.JSC$6229_document_,arguments)}; g.createElement=function(a){return Jia(this.JSC$6229_document_,a)}; g.createTextNode=function(a){return this.JSC$6229_document_.createTextNode(String(a))}; g.appendChild=function(a,b){a.appendChild(b)}; g.append=function(a,b){Kia(ci(a),a,arguments,1)}; g.canHaveChildren=mi;g.removeNode=oi;g.contains=pi;g.isFocusable=Tia;function ti(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d} g=ti.prototype;g.getWidth=function(){return this.right-this.left}; g.getHeight=function(){return this.bottom-this.top}; g.clone=function(){return new ti(this.top,this.right,this.bottom,this.left)}; g.contains=function(a){return this&&a?a instanceof ti?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1}; g.expand=function(a,b,c,d){Ga(a)?(this.top-=a.top,this.right+=a.right,this.bottom+=a.bottom,this.left-=a.left):(this.top-=a,this.right+=Number(b),this.bottom+=Number(c),this.left-=Number(d));return this}; g.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this}; g.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this}; g.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this}; g.translate=function(a,b){a instanceof Ph?(this.left+=a.x,this.right+=a.x,this.top+=a.y,this.bottom+=a.y):(this.left+=a,this.right+=a,typeof b==="number"&&(this.top+=b,this.bottom+=b));return this}; g.scale=function(a,b){b=typeof b==="number"?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};function ui(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d} ui.prototype.clone=function(){return new ui(this.left,this.top,this.width,this.height)}; var Xia=function(a,b){var c=Math.max(a.left,b.left),d=Math.min(a.left+a.width,b.left+b.width);if(c<=d){var e=Math.max(a.top,b.top);a=Math.min(a.top+a.height,b.top+b.height);if(e<=a)return new ui(c,e,d-c,a-e)}return null}; g=ui.prototype;g.boundingRect=function(a){var b=Math.max(this.left+this.width,a.left+a.width),c=Math.max(this.top+this.height,a.top+a.height);this.left=Math.min(this.left,a.left);this.top=Math.min(this.top,a.top);this.width=b-this.left;this.height=c-this.top}; g.contains=function(a){return a instanceof Ph?a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height}; g.distance=function(a){var b=a.x>>31)&4294967295;u=e[0];var y=e[1],A=e[2],C=e[3],I=e[4];for(w=0;w<80;w++){if(w<40){if(w<20){var K=C^y&(A^C);var N=1518500249}else K=y^A^C,N=1859775393;}else w<60?(K=y&A|C&(y|A),N=2400959708):(K=y^A^C,N=3395469782);K=((u<<5|u>>>27)&4294967295)+K+I+N+v[w]&4294967295;I=C;C=A;A=(y<<30|y>>>2)&4294967295;y=u;u=K}e[0]=e[0]+u&4294967295;e[1]=e[1]+y&4294967295;e[2]= e[2]+A&4294967295;e[3]=e[3]+C&4294967295;e[4]=e[4]+I&4294967295} function c(u,v){if(typeof u==="string"){u=unescape(encodeURIComponent(u));for(var w=[],y=0,A=u.length;y=56;w--)f[w]=v&255,v>>>=8;b(f);for(w=v=0;w<5;w++)for(var y=24;y>=0;y-=8)u[v++]=e[w]>>y&255;return u} for(var e=[],f=[],h=[],m=[128],p=1;p<64;++p)m[p]=0;var q,t;a();return{reset:a,update:c,digest:d,digestString:function(){for(var u=d(),v="",w=0;w=0;b--)this.remove(a[b])}; var ija=function(a){a=(a.JSC$6250_document_.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f-1?(b=a[h],c||(b.callOnce=!1)):(b=new oja(b,this.src,f,!!d,e),b.callOnce=c,a.push(b));return b}; Pi.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=pja(e,b,c,d);return b>-1?(Oi(e[b]),Array.prototype.splice.call(e,b,1),e.length==0&&(delete this.listeners[a],this.typeCount_--),!0):!1}; var qja=function(a,b){var c=b.type;if(!(c in a.listeners))return!1;var d=Bc(a.listeners[c],b);d&&(Oi(b),a.listeners[c].length==0&&(delete a.listeners[c],a.typeCount_--));return d}; Pi.prototype.removeAll=function(a){a=a&&a.toString();var b=0,c;for(c in this.listeners)if(!a||c==a){for(var d=this.listeners[c],e=0;e-1?a[e]:null}; var pja=function(a,b,c,d){for(var e=0;e>>0),Si=function(a){if(typeof a==="function")return a; a[yja]||(a[yja]=function(b){return a.handleEvent(b)}); return a[yja]};function Yi(){Ji.call(this);this.eventTargetListeners_=new Pi(this);this.actualEventTarget_=this;this.parentEventTarget_=null} Ra(Yi,Ji);Yi.prototype[mja]=!0;g=Yi.prototype;g.addEventListener=function(a,b,c,d){Ri(this,a,b,c,d)}; g.removeEventListener=function(a,b,c,d){Wi(this,a,b,c,d)}; g.dispatchEvent=function(a){var b,c=this.parentEventTarget_;if(c)for(b=[];c;c=c.parentEventTarget_)b.push(c);c=this.actualEventTarget_;var d=a.type||a;if(typeof a==="string")a=new Li(a,c);else if(a instanceof Li)a.target=a.target||c;else{var e=a;a=new Li(d,c);Zh(a,e)}e=!0;var f;if(b)for(f=b.length-1;!a.propagationStopped_&&f>=0;f--){var h=a.currentTarget=b[f];e=Zi(h,d,!0,a)&&e}a.propagationStopped_||(h=a.currentTarget=c,e=Zi(h,d,!0,a)&&e,a.propagationStopped_||(e=Zi(h,d,!1,a)&&e));if(b)for(f=0;!a.propagationStopped_&& f0){this.occupants_--;var a=this.JSC$6302_head_;this.JSC$6302_head_=a.next;a.next=null}else a=this.create_();return a}; cj.prototype.put=function(a){this.reset_(a);this.occupants_<100&&(this.occupants_++,a.next=this.JSC$6302_head_,this.JSC$6302_head_=a)};var Gja=function(){this.workTail_=this.workHead_=null}; Gja.prototype.add=function(a,b){var c=Hja.get();c.set(a,b);this.workTail_?this.workTail_.next=c:this.workHead_=c;this.workTail_=c}; Gja.prototype.remove=function(){var a=null;this.workHead_&&(a=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),a.next=null);return a}; var Hja=new cj(function(){return new Ija},function(a){return a.reset()}),Ija=function(){this.next=this.scope=this.fn=null}; Ija.prototype.set=function(a,b){this.fn=a;this.scope=b;this.next=null}; Ija.prototype.reset=function(){this.next=this.scope=this.fn=null};var Jja,Kja=!1,Lja=new Gja,dj=function(a,b){Jja||Mja();Kja||(Jja(),Kja=!0);Lja.add(a,b)},Mja=function(){var a=Promise.resolve(void 0); Jja=function(){a.then(Nja)}}; function Nja(){for(var a;a=Lja.remove();){try{a.fn.call(a.scope)}catch(b){gd(b)}Hja.put(a)}Kja=!1} ;function Oja(){this.blockSize=-1} ;var ej=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var a=1;a>>31)&4294967295;b=a.chain_[0];c=a.chain_[1];e=a.chain_[2];for(var f=a.chain_[3],h=a.chain_[4],m,p,q=0;q<80;q++)q<40?q<20?(m=f^c&(e^f),p=1518500249):(m=c^e^f,p=1859775393):q<60?(m=c&e|f&(c|e), p=2400959708):(m=c^e^f,p=3395469782),m=(b<<5|b>>>27)+m+h+p+d[q]&4294967295,h=f,f=e,e=(c<<30|c>>>2)&4294967295,c=b,b=m;a.chain_[0]=a.chain_[0]+b&4294967295;a.chain_[1]=a.chain_[1]+c&4294967295;a.chain_[2]=a.chain_[2]+e&4294967295;a.chain_[3]=a.chain_[3]+f&4294967295;a.chain_[4]=a.chain_[4]+h&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.buf_,f=this.inbuf_;d=56;c--)this.buf_[c]=b&255,b/=256;fj(this,this.buf_);for(c=b=0;c<5;c++)for(var d=24;d>=0;d-=8)a[b]=this.chain_[c]>>d&255,++b;return a};var Pja=function(a){return typeof a.className=="string"?a.className:a.getAttribute&&a.getAttribute("class")||""},Qja=function(a,b){typeof a.className=="string"?a.className=b:a.setAttribute&&a.setAttribute("class",b)},Rja=function(a,b){return a.classList?a.classList.contains(b):yc(a.classList?a.classList:Pja(a).match(/\S+/g)||[],b)},Sja=function(a,b){a.classList?a.classList.remove(b):Rja(a,b)&&Qja(a,Array.prototype.filter.call(a.classList?a.classList:Pja(a).match(/\S+/g)||[],function(c){return c!= b}).join(" "))};function gj(){} gj.prototype.next=function(){return hj}; var hj={done:!0,value:void 0};function ij(a){return{value:a,done:!1}} gj.prototype.__iterator__=function(){return this}; function Tja(a){if(a instanceof gj)return a;if(typeof a.__iterator__=="function")return a.__iterator__(!1);if(Fa(a)){var b=0,c=new gj;c.next=function(){for(;;){if(b>=a.length)return hj;if(b in a)return ij(a[b++]);b++}}; return c}throw Error("Not implemented")} ;var Uja=function(a){if(a instanceof jj||a instanceof kj||a instanceof lj)return a;if(typeof a.next=="function")return new jj(function(){return a}); if(typeof a[Symbol.iterator]=="function")return new jj(function(){return a[Symbol.iterator]()}); if(typeof a.__iterator__=="function")return new jj(function(){return a.__iterator__()}); throw Error("Not an iterator or iterable.")},jj=function(a){this.func_=a}; jj.prototype.__iterator__=function(){return new kj(this.func_())}; jj.prototype[Symbol.iterator]=function(){return new lj(this.func_())}; jj.prototype.toEs6=function(){return new lj(this.func_())}; var kj=function(a){this.JSC$6326_iter_=a}; k(kj,gj);kj.prototype.next=function(){return this.JSC$6326_iter_.next()}; kj.prototype[Symbol.iterator]=function(){return new lj(this.JSC$6326_iter_)}; kj.prototype.toEs6=function(){return new lj(this.JSC$6326_iter_)}; var lj=function(a){jj.call(this,function(){return a}); this.JSC$6329_iter_=a}; k(lj,jj);lj.prototype.next=function(){return this.JSC$6329_iter_.next()};var Vja=function(a){try{return ua.JSON.parse(a)}catch(b){}a=String(a);if(/^\s*$/.test(a)?0:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,"")))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a)},mj=function(a){return new Wja().serialize(a)}; function Wja(){} Wja.prototype.serialize=function(a){var b=[];Xja(this,a,b);return b.join("")}; var Xja=function(a,b,c){if(b==null)c.push("null");else{if(typeof b=="object"){if(Array.isArray(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f1)));h=h.next)e||(f=h);e&&(c.state_==0&&d==1?mka(c,b):(f?(d=f,d.next==c.callbackEntriesTail_&&(c.callbackEntriesTail_=d),d.next=d.next.next):nka(c),oka(c,e,3,b)))}a.parent_=null}else tj(a,3,b)},kka=function(a,b){a.callbackEntries_||a.state_!=2&&a.state_!=3||pka(a); a.callbackEntriesTail_?a.callbackEntriesTail_.next=b:a.callbackEntries_=b;a.callbackEntriesTail_=b},jka=function(a,b,c,d){var e=dka(null,null,null); e.child=new uj(function(f,h){e.JSC$6340_onFulfilled=b?function(m){try{var p=b.call(d,m);f(p)}catch(q){h(q)}}:f; e.JSC$6340_onRejected=c?function(m){try{var p=c.call(d,m);p===void 0&&m instanceof Aj?h(m):f(p)}catch(q){h(q)}}:h}); e.child.parent_=a;kka(a,e);return e.child}; uj.prototype.unblockAndFulfill_=function(a){this.state_=0;tj(this,2,a)}; uj.prototype.unblockAndReject_=function(a){this.state_=0;tj(this,3,a)}; var tj=function(a,b,c){a.state_==0&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.state_=1,eka(c,a.unblockAndFulfill_,a.unblockAndReject_,a)||(a.result_=c,a.state_=b,a.parent_=null,pka(a),b!=3||c instanceof Aj||qka(a,c)))},eka=function(a,b,c,d){if(a instanceof uj)return lka(a,b,c,d),!0; if(aka(a))return a.then(b,c,d),!0;if(Ga(a))try{var e=a.then;if(typeof e==="function")return rka(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1},rka=function(a,b,c,d,e){var f=!1,h=function(p){f||(f=!0,c.call(e,p))},m=function(p){f||(f=!0,d.call(e,p))}; try{b.call(a,h,m)}catch(p){m(p)}},pka=function(a){a.executing_||(a.executing_=!0,dj(a.executeCallbacks_,a))},nka=function(a){var b=null; a.callbackEntries_&&(b=a.callbackEntries_,a.callbackEntries_=b.next,b.next=null);a.callbackEntries_||(a.callbackEntriesTail_=null);return b}; uj.prototype.executeCallbacks_=function(){for(var a;a=nka(this);)oka(this,a,this.state_,this.result_);this.executing_=!1}; var oka=function(a,b,c,d){if(c==3&&b.JSC$6340_onRejected&&!b.always)for(;a&&a.hadUnhandledRejection_;a=a.parent_)a.hadUnhandledRejection_=!1;if(b.child)b.child.parent_=null,ska(b,c,d);else try{b.always?b.JSC$6340_onFulfilled.call(b.context):ska(b,c,d)}catch(e){tka.call(null,e)}cka.put(b)},ska=function(a,b,c){b==2?a.JSC$6340_onFulfilled.call(a.context,c):a.JSC$6340_onRejected&&a.JSC$6340_onRejected.call(a.context,c)},qka=function(a,b){a.hadUnhandledRejection_=!0; dj(function(){a.hadUnhandledRejection_&&tka.call(null,b)})},tka=gd,Aj=function(a){Va.call(this,a)}; Ra(Aj,Va);Aj.prototype.name="cancel";var ika=function(a,b,c){this.promise=a;this.resolve=b;this.reject=c};function Bj(a){Ji.call(this);this.JSC$6352_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!a} Ra(Bj,Ji);Bj.prototype.subscribe=function(a,b,c){var d=this.topics_[a];d||(d=this.topics_[a]=[]);var e=this.JSC$6352_key_;this.subscriptions_[e]=a;this.subscriptions_[e+1]=b;this.subscriptions_[e+2]=c;this.JSC$6352_key_=e+3;d.push(e);return e}; Bj.prototype.unsubscribe=function(a,b,c){if(a=this.topics_[a]){var d=this.subscriptions_;if(a=a.find(function(e){return d[e+1]==b&&d[e+2]==c}))return this.unsubscribeByKey(a)}return!1}; Bj.prototype.unsubscribeByKey=function(a){var b=this.subscriptions_[a];if(b){var c=this.topics_[b];this.publishDepth_!=0?(this.pendingKeys_.push(a),this.subscriptions_[a+1]=function(){}):(c&&Bc(c,a),delete this.subscriptions_[a],delete this.subscriptions_[a+1],delete this.subscriptions_[a+2])}return!!b}; Bj.prototype.publish=function(a,b){var c=this.topics_[a];if(c){var d=Array(arguments.length-1),e=arguments.length,f;for(f=1;f0&&this.publishDepth_==0)for(;c=this.pendingKeys_.pop();)this.unsubscribeByKey(c)}}return f!= 0}return!1}; var uka=function(a,b,c){dj(function(){a.apply(b,c)})}; Bj.prototype.clear=function(a){if(a){var b=this.topics_[a];b&&(b.forEach(this.unsubscribeByKey,this),delete this.topics_[a])}else this.subscriptions_.length=0,this.topics_={}}; Bj.prototype.disposeInternal=function(){Bj.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};function Cj(a){this.mechanism=a} Cj.prototype.set=function(a,b){b===void 0?this.mechanism.remove(a):this.mechanism.set(a,mj(b))}; Cj.prototype.get=function(a){try{var b=this.mechanism.get(a)}catch(c){return}if(b!==null)try{return JSON.parse(b)}catch(c){throw"Storage: Invalid value was encountered"}}; Cj.prototype.remove=function(a){this.mechanism.remove(a)};function Dj(a){this.mechanism=a} Ra(Dj,Cj);var vka=function(a){this.data=a},wka=function(a){return a===void 0||a instanceof vka?a:new vka(a)}; Dj.prototype.set=function(a,b){Dj.superClass_.set.call(this,a,wka(b))}; Dj.prototype.getWrapper=function(a){a=Dj.superClass_.get.call(this,a);if(a===void 0||a instanceof Object)return a;throw"Storage: Invalid value was encountered"}; Dj.prototype.get=function(a){if(a=this.getWrapper(a)){if(a=a.data,a===void 0)throw"Storage: Invalid value was encountered"}else a=void 0;return a};function Ej(a){this.mechanism=a} Ra(Ej,Dj);Ej.prototype.set=function(a,b,c){if(b=wka(b)){if(c){if(cKa())Ej.prototype.remove.call(this,a);else return b}};function xka(){} ;var Fj=function(){}; Ra(Fj,xka);Fj.prototype[Symbol.iterator]=function(){return Uja(this.__iterator__(!0)).toEs6()}; Fj.prototype.clear=function(){var a=Array.from(this);a=l(a);for(var b=a.next();!b.done;b=a.next())this.remove(b.value)};function Gj(a){this.storage_=a;this.cachedIsStorageAvailable_=null} Ra(Gj,Fj);g=Gj.prototype;g.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var a=this.storage_;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;this.cachedIsStorageAvailable_=b}return this.cachedIsStorageAvailable_}; g.set=function(a,b){Hj(this);try{this.storage_.setItem(a,b)}catch(c){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded"}}; g.get=function(a){Hj(this);a=this.storage_.getItem(a);if(typeof a!=="string"&&a!==null)throw"Storage mechanism: Invalid value was encountered";return a}; g.remove=function(a){Hj(this);this.storage_.removeItem(a)}; g.__iterator__=function(a){Hj(this);var b=0,c=this.storage_,d=new gj;d.next=function(){if(b>=c.length)return hj;var e=c.key(b++);if(a)return ij(e);e=c.getItem(e);if(typeof e!=="string")throw"Storage mechanism: Invalid value was encountered";return ij(e)}; return d}; g.clear=function(){Hj(this);this.storage_.clear()}; g.key=function(a){Hj(this);return this.storage_.key(a)}; var Hj=function(a){if(a.storage_==null)throw Error("Storage mechanism: Storage unavailable");a.isAvailable()||gd(Error("Storage mechanism: Storage unavailable"))};function yka(){var a=null;try{a=ua.localStorage||null}catch(b){}Gj.call(this,a)} Ra(yka,Gj);function zka(){var a=null;try{a=ua.sessionStorage||null}catch(b){}Gj.call(this,a)} Ra(zka,Gj);function Ij(a,b){this.mechanism_=a;this.prefix_=b+"::"} Ra(Ij,Fj);Ij.prototype.set=function(a,b){this.mechanism_.set(this.prefix_+a,b)}; Ij.prototype.get=function(a){return this.mechanism_.get(this.prefix_+a)}; Ij.prototype.remove=function(a){this.mechanism_.remove(this.prefix_+a)}; Ij.prototype.__iterator__=function(a){var b=this.mechanism_[Symbol.iterator](),c=this,d=new gj;d.next=function(){var e=b.next();if(e.done)return e;for(e=e.value;e.slice(0,c.prefix_.length)!=c.prefix_;){e=b.next();if(e.done)return e;e=e.value}return ij(a?e.slice(c.prefix_.length):c.mechanism_.get(e))}; return d};function Aka(a){var b=new yka;return b.isAvailable()?a?new Ij(b,a):b:null} ;/* (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 Jj={},Bka=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";Jj.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}; Jj.shrinkBuf=function(a,b){if(a.length===b)return a;if(a.subarray)return a.subarray(0,b);a.length=b;return a}; var Cka={arraySet: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?m[c++]=224|f>>>12:(m[c++]=240|f>>>18,m[c++]=128|f>>>12&63),m[c++]= 128|f>>>6&63),m[c++]=128|f&63);return m};var Gka={};Gka=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 Kj={},Lj,Hka=[],Mj=0;Mj<256;Mj++){Lj=Mj;for(var Ika=0;Ika<8;Ika++)Lj=Lj&1?3988292384^Lj>>>1:Lj>>>1;Hka[Mj]=Lj}Kj=function(a,b,c,d){c=d+c;for(a^=-1;d>>8^Hka[(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 Jka=[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],Pj=[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],Kka=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Lka=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Qj=Array(576);Oj(Qj);var Rj=Array(60);Oj(Rj);var Sj=Array(512);Oj(Sj);var Tj=Array(256);Oj(Tj);var Mka=Array(29);Oj(Mka);var Xj=Array(30);Oj(Xj); function Nka(a,b,c,d,e){this.static_tree=a;this.extra_bits=b;this.extra_base=c;this.elems=d;this.max_length=e;this.has_stree=a&&a.length} var Oka,Pka,Qka;function Rka(a,b){this.dyn_tree=a;this.max_code=0;this.stat_desc=b} function Yj(a,b){a.pending_buf[a.pending++]=b&255;a.pending_buf[a.pending++]=b>>>8&255} function ak(a,b,c){a.bi_valid>16-c?(a.bi_buf|=b<>16-a.bi_valid,a.bi_valid+=c-16):(a.bi_buf|=b<>>=1,c<<=1;while(--b>0);return c>>>1} function Tka(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]=Ska(d[e]++,e))} function Uka(a){var b;for(b=0;b<286;b++)a.dyn_ltree[b*2]=0;for(b=0;b<30;b++)a.dyn_dtree[b*2]=0;for(b=0;b<19;b++)a.bl_tree[b*2]=0;a.dyn_ltree[512]=1;a.opt_len=a.static_len=0;a.last_lit=a.matches=0} function Vka(a){a.bi_valid>8?Yj(a,a.bi_buf):a.bi_valid>0&&(a.pending_buf[a.pending++]=a.bi_buf);a.bi_buf=0;a.bi_valid=0} function Wka(a,b,c){Vka(a);Yj(a,c);Yj(a,~c);Jj.arraySet(a.pending_buf,a.window,b,c,a.pending);a.pending+=c} function Xka(a,b,c,d){var e=b*2,f=c*2;return a[e]>>7)];bk(a,h,c);m=Pj[h];m!==0&&(e-=Xj[h],ak(a,e,m))}}while(d>1;h>=1;h--)Yka(a,c,h);p=f;do h=a.heap[1],a.heap[1]=a.heap[a.heap_len--],Yka(a,c,1),d=a.heap[1],a.heap[--a.heap_max]=h,a.heap[--a.heap_max]= d,c[p*2]=c[h*2]+c[d*2],a.depth[p]=(a.depth[h]>=a.depth[d]?a.depth[h]:a.depth[d])+1,c[h*2+1]=c[d*2+1]=p,a.heap[1]=p++,Yka(a,c,1);while(a.heap_len>=2);a.heap[--a.heap_max]=a.heap[1];h=b.dyn_tree;p=b.max_code;d=b.stat_desc.static_tree;e=b.stat_desc.has_stree;f=b.stat_desc.extra_bits;var q=b.stat_desc.extra_base,t=b.stat_desc.max_length,u,v=0;for(u=0;u<=15;u++)a.bl_count[u]=0;h[a.heap[a.heap_max]*2+1]=0;for(b=a.heap_max+1;b<573;b++){var w=a.heap[b];u=h[h[w*2+1]*2+1]+1;u>t&&(u=t,v++);h[w*2+1]=u;if(!(w> p)){a.bl_count[u]++;var y=0;w>=q&&(y=f[w-q]);var A=h[w*2];a.opt_len+=A*(u+y);e&&(a.static_len+=A*(d[w*2+1]+y))}}if(v!==0){do{for(u=t-1;a.bl_count[u]===0;)u--;a.bl_count[u]--;a.bl_count[u+1]+=2;a.bl_count[t]--;v-=2}while(v>0);for(u=t;u!==0;u--)for(w=a.bl_count[u];w!==0;)d=a.heap[--b],d>p||(h[d*2+1]!==u&&(a.opt_len+=(u-h[d*2+1])*h[d*2],h[d*2+1]=u),w--)}Tka(c,m,a.bl_count)} function ala(a,b,c){var d,e=-1,f=b[1],h=0,m=7,p=4;f===0&&(m=138,p=3);b[(c+1)*2+1]=65535;for(d=0;d<=c;d++){var q=f;f=b[(d+1)*2+1];++h>>=1)if(b&1&&a.dyn_ltree[c*2]!==0)return 0;if(a.dyn_ltree[18]!==0||a.dyn_ltree[20]!==0||a.dyn_ltree[26]!==0)return 1;for(c=32;c<256;c++)if(a.dyn_ltree[c*2]!==0)return 1;return 0} var dla=!1;function ck(a,b,c){a.pending_buf[a.d_buf+a.last_lit*2]=b>>>8&255;a.pending_buf[a.d_buf+a.last_lit*2+1]=b&255;a.pending_buf[a.l_buf+a.last_lit]=c&255;a.last_lit++;b===0?a.dyn_ltree[c*2]++:(a.matches++,b--,a.dyn_ltree[(Tj[c]+256+1)*2]++,a.dyn_dtree[(b<256?Sj[b]:Sj[256+(b>>>7)])*2]++);return a.last_lit===a.lit_bufsize-1} ;function dk(a,b){a.msg=Nj[b];return b} function ek(a){for(var b=a.length;--b>=0;)a[b]=0} function fk(a){var b=a.state,c=b.pending;c>a.avail_out&&(c=a.avail_out);c!==0&&(Jj.arraySet(a.output,b.pending_buf,b.pending_out,c,a.next_out),a.next_out+=c,b.pending_out+=c,a.total_out+=c,a.avail_out-=c,b.pending-=c,b.pending===0&&(b.pending_out=0))} function gk(a,b){var c=a.block_start>=0?a.block_start:-1,d=a.strstart-a.block_start,e=0;if(a.level>0){a.strm.data_type===2&&(a.strm.data_type=cla(a));$ka(a,a.l_desc);$ka(a,a.d_desc);ala(a,a.dyn_ltree,a.l_desc.max_code);ala(a,a.dyn_dtree,a.d_desc.max_code);$ka(a,a.bl_desc);for(e=18;e>=3&&a.bl_tree[Lka[e]*2+1]===0;e--);a.opt_len+=3*(e+1)+5+5+4;var f=a.opt_len+3+7>>>3;var h=a.static_len+3+7>>>3;h<=f&&(f=h)}else f=h=d+5;if(d+4<=f&&c!==-1)ak(a,b?1:0,3),Wka(a,c,d);else if(a.strategy===4||h===f)ak(a,2+(b? 1:0),3),Zka(a,Qj,Rj);else{ak(a,4+(b?1:0),3);c=a.l_desc.max_code+1;d=a.d_desc.max_code+1;e+=1;ak(a,c-257,5);ak(a,d-1,5);ak(a,e-4,4);for(f=0;f>>8&255;a.pending_buf[a.pending++]=b&255} function ela(a,b){var c=a.max_chain_length,d=a.strstart,e=a.prev_length,f=a.nice_match,h=a.strstart>a.w_size-262?a.strstart-(a.w_size-262):0,m=a.window,p=a.w_mask,q=a.prev,t=a.strstart+258,u=m[d+e-1],v=m[d+e];a.prev_length>=a.good_match&&(c>>=2);f>a.lookahead&&(f=a.lookahead);do{var w=b;if(m[w+e]===v&&m[w+e-1]===u&&m[w]===m[d]&&m[++w]===m[d+1]){d+=2;for(w++;m[++d]===m[++w]&&m[++d]===m[++w]&&m[++d]===m[++w]&&m[++d]===m[++w]&&m[++d]===m[++w]&&m[++d]===m[++w]&&m[++d]===m[++w]&&m[++d]===m[++w]&&de){a.match_start=b;e=w;if(w>=f)break;u=m[d+e-1];v=m[d+e]}}}while((b=q[b&p])>h&&--c!==0);return e<=a.lookahead?e:a.lookahead} function jk(a){var b=a.w_size,c;do{var d=a.window_size-a.lookahead-a.strstart;if(a.strstart>=b+(b-262)){Jj.arraySet(a.window,a.window,b,b,0);a.match_start-=b;a.strstart-=b;a.block_start-=b;var e=c=a.hash_size;do{var f=a.head[--e];a.head[e]=f>=b?f-b:0}while(--c);e=c=b;do f=a.prev[--e],a.prev[e]=f>=b?f-b:0;while(--c);d+=b}if(a.strm.avail_in===0)break;e=a.strm;c=a.window;f=a.strstart+a.lookahead;var h=e.avail_in;h>d&&(h=d);h===0?c=0:(e.avail_in-=h,Jj.arraySet(c,e.input,e.next_in,h,f),e.state.wrap=== 1?e.adler=Gka(e.adler,c,h,f):e.state.wrap===2&&(e.adler=Kj(e.adler,c,h,f)),e.next_in+=h,e.total_in+=h,c=h);a.lookahead+=c;if(a.lookahead+a.insert>=3)for(d=a.strstart-a.insert,a.ins_h=a.window[d],a.ins_h=(a.ins_h<=3&&(a.ins_h=(a.ins_h<=3){if(c=ck(a,a.strstart-a.match_start,a.match_length-3),a.lookahead-=a.match_length,a.match_length<=a.max_lazy_match&&a.lookahead>=3){a.match_length--; do a.strstart++,a.ins_h=(a.ins_h<=3&&(a.ins_h=(a.ins_h<4096)&&(a.match_length=2));if(a.prev_length>=3&&a.match_length<=a.prev_length){d=a.strstart+a.lookahead-3;c=ck(a,a.strstart-1-a.prev_match,a.prev_length-3);a.lookahead-=a.prev_length-1;a.prev_length-=2;do++a.strstart<=d&&(a.ins_h=(a.ins_h<=3&&a.strstart>0&&(d=a.strstart-1,c=f[d],c===f[++d]&&c===f[++d]&&c===f[++d])){for(e=a.strstart+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.lookahead&&(a.match_length=a.lookahead)}a.match_length>=3?(c=ck(a,1,a.match_length-3),a.lookahead-= a.match_length,a.strstart+=a.match_length,a.match_length=0):(c=ck(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++);if(c&&(gk(a,!1),a.strm.avail_out===0))return 1}a.insert=0;return b===4?(gk(a,!0),a.strm.avail_out===0?3:4):a.last_lit&&(gk(a,!1),a.strm.avail_out===0)?1:2} function hla(a,b){for(var c;;){if(a.lookahead===0&&(jk(a),a.lookahead===0)){if(b===0)return 1;break}a.match_length=0;c=ck(a,0,a.window[a.strstart]);a.lookahead--;a.strstart++;if(c&&(gk(a,!1),a.strm.avail_out===0))return 1}a.insert=0;return b===4?(gk(a,!0),a.strm.avail_out===0?3:4):a.last_lit&&(gk(a,!1),a.strm.avail_out===0)?1:2} function lk(a,b,c,d,e){this.good_length=a;this.max_lazy=b;this.nice_length=c;this.max_chain=d;this.func=e} var mk; mk=[new lk(0,0,0,0,function(a,b){var c=65535;for(c>a.pending_buf_size-5&&(c=a.pending_buf_size-5);;){if(a.lookahead<=1){jk(a);if(a.lookahead===0&&b===0)return 1;if(a.lookahead===0)break}a.strstart+=a.lookahead;a.lookahead=0;var d=a.block_start+c;if(a.strstart===0||a.strstart>=d)if(a.lookahead=a.strstart-d,a.strstart=d,gk(a,!1),a.strm.avail_out===0)return 1;if(a.strstart-a.block_start>=a.w_size-262&&(gk(a,!1),a.strm.avail_out===0))return 1}a.insert=0;if(b===4)return gk(a,!0),a.strm.avail_out===0?3: 4;a.strstart>a.block_start&&gk(a,!1);return 1}), new lk(4,4,8,4,fla),new lk(4,5,16,8,fla),new lk(4,6,32,32,fla),new lk(4,4,16,16,kk),new lk(8,16,32,32,kk),new lk(8,16,128,128,kk),new lk(8,32,128,256,kk),new lk(32,128,258,1024,kk),new lk(32,258,258,4096,kk)]; function ila(){this.strm=null;this.status=0;this.pending_buf=null;this.wrap=this.pending=this.pending_out=this.pending_buf_size=0;this.gzhead=null;this.gzindex=0;this.method=8;this.last_flush=-1;this.w_mask=this.w_bits=this.w_size=0;this.window=null;this.window_size=0;this.head=this.prev=null;this.nice_match=this.good_match=this.strategy=this.level=this.max_lazy_match=this.max_chain_length=this.prev_length=this.lookahead=this.match_start=this.strstart=this.match_available=this.prev_match=this.match_length= this.block_start=this.hash_shift=this.hash_mask=this.hash_bits=this.hash_size=this.ins_h=0;this.dyn_ltree=new Jj.Buf16(1146);this.dyn_dtree=new Jj.Buf16(122);this.bl_tree=new Jj.Buf16(78);ek(this.dyn_ltree);ek(this.dyn_dtree);ek(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new Jj.Buf16(16);this.heap=new Jj.Buf16(573);ek(this.heap);this.heap_max=this.heap_len=0;this.depth=new Jj.Buf16(573);ek(this.depth);this.bi_valid=this.bi_buf=this.insert=this.matches=this.static_len=this.opt_len= this.d_buf=this.last_lit=this.lit_bufsize=this.l_buf=0} function jla(a,b){if(!a||!a.state||b>5||b<0)return a?dk(a,-2):-2;var c=a.state;if(!a.output||!a.input&&a.avail_in!==0||c.status===666&&b!==4)return dk(a,a.avail_out===0?-5:-2);c.strm=a;var d=c.last_flush;c.last_flush=b;if(c.status===42)if(c.wrap===2)a.adler=0,hk(c,31),hk(c,139),hk(c,8),c.gzhead?(hk(c,(c.gzhead.text?1:0)+(c.gzhead.hcrc?2:0)+(c.gzhead.extra?4:0)+(c.gzhead.name?8:0)+(c.gzhead.comment?16:0)),hk(c,c.gzhead.time&255),hk(c,c.gzhead.time>>8&255),hk(c,c.gzhead.time>>16&255),hk(c,c.gzhead.time>> 24&255),hk(c,c.level===9?2:c.strategy>=2||c.level<2?4:0),hk(c,c.gzhead.os&255),c.gzhead.extra&&c.gzhead.extra.length&&(hk(c,c.gzhead.extra.length&255),hk(c,c.gzhead.extra.length>>8&255)),c.gzhead.hcrc&&(a.adler=Kj(a.adler,c.pending_buf,c.pending,0)),c.gzindex=0,c.status=69):(hk(c,0),hk(c,0),hk(c,0),hk(c,0),hk(c,0),hk(c,c.level===9?2:c.strategy>=2||c.level<2?4:0),hk(c,3),c.status=113);else{var e=8+(c.w_bits-8<<4)<<8;e|=(c.strategy>=2||c.level<2?0:c.level<6?1:c.level===6?2:3)<<6;c.strstart!==0&&(e|= 32);c.status=113;ik(c,e+(31-e%31));c.strstart!==0&&(ik(c,a.adler>>>16),ik(c,a.adler&65535));a.adler=1}if(c.status===69)if(c.gzhead.extra){for(e=c.pending;c.gzindex<(c.gzhead.extra.length&65535)&&(c.pending!==c.pending_buf_size||(c.gzhead.hcrc&&c.pending>e&&(a.adler=Kj(a.adler,c.pending_buf,c.pending-e,e)),fk(a),e=c.pending,c.pending!==c.pending_buf_size));)hk(c,c.gzhead.extra[c.gzindex]&255),c.gzindex++;c.gzhead.hcrc&&c.pending>e&&(a.adler=Kj(a.adler,c.pending_buf,c.pending-e,e));c.gzindex===c.gzhead.extra.length&&( c.gzindex=0,c.status=73)}else c.status=73;if(c.status===73)if(c.gzhead.name){e=c.pending;do{if(c.pending===c.pending_buf_size&&(c.gzhead.hcrc&&c.pending>e&&(a.adler=Kj(a.adler,c.pending_buf,c.pending-e,e)),fk(a),e=c.pending,c.pending===c.pending_buf_size)){var f=1;break}f=c.gzindexe&&(a.adler=Kj(a.adler,c.pending_buf,c.pending-e,e));f===0&&(c.gzindex=0,c.status=91)}else c.status=91;if(c.status=== 91)if(c.gzhead.comment){e=c.pending;do{if(c.pending===c.pending_buf_size&&(c.gzhead.hcrc&&c.pending>e&&(a.adler=Kj(a.adler,c.pending_buf,c.pending-e,e)),fk(a),e=c.pending,c.pending===c.pending_buf_size)){f=1;break}f=c.gzindexe&&(a.adler=Kj(a.adler,c.pending_buf,c.pending-e,e));f===0&&(c.status=103)}else c.status=103;c.status===103&&(c.gzhead.hcrc?(c.pending+2>c.pending_buf_size&&fk(a), c.pending+2<=c.pending_buf_size&&(hk(c,a.adler&255),hk(c,a.adler>>8&255),a.adler=0,c.status=113)):c.status=113);if(c.pending!==0){if(fk(a),a.avail_out===0)return c.last_flush=-1,0}else if(a.avail_in===0&&(b<<1)-(b>4?9:0)<=(d<<1)-(d>4?9:0)&&b!==4)return dk(a,-5);if(c.status===666&&a.avail_in!==0)return dk(a,-5);if(a.avail_in!==0||c.lookahead!==0||b!==0&&c.status!==666){d=c.strategy===2?hla(c,b):c.strategy===3?gla(c,b):mk[c.level].func(c,b);if(d===3||d===4)c.status=666;if(d===1||d===3)return a.avail_out=== 0&&(c.last_flush=-1),0;if(d===2&&(b===1?(ak(c,2,3),bk(c,256,Qj),c.bi_valid===16?(Yj(c,c.bi_buf),c.bi_buf=0,c.bi_valid=0):c.bi_valid>=8&&(c.pending_buf[c.pending++]=c.bi_buf&255,c.bi_buf>>=8,c.bi_valid-=8)):b!==5&&(ak(c,0,3),Wka(c,0,0),b===3&&(ek(c.head),c.lookahead===0&&(c.strstart=0,c.block_start=0,c.insert=0))),fk(a),a.avail_out===0))return c.last_flush=-1,0}if(b!==4)return 0;if(c.wrap<=0)return 1;c.wrap===2?(hk(c,a.adler&255),hk(c,a.adler>>8&255),hk(c,a.adler>>16&255),hk(c,a.adler>>24&255),hk(c, a.total_in&255),hk(c,a.total_in>>8&255),hk(c,a.total_in>>16&255),hk(c,a.total_in>>24&255)):(ik(c,a.adler>>>16),ik(c,a.adler&65535));fk(a);c.wrap>0&&(c.wrap=-c.wrap);return c.pending!==0?0:1} ;var kla={};kla=function(){this.input=null;this.total_in=this.avail_in=this.next_in=0;this.output=null;this.total_out=this.avail_out=this.next_out=0;this.msg="";this.state=null;this.data_type=2;this.adler=0};var lla=Object.prototype.toString; function nk(a){if(!(this instanceof nk))return new nk(a);a=this.options=Jj.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.strm=new kla;this.strm.avail_out=0;var b=this.strm;var c=a.level,d=a.method,e=a.windowBits,f=a.memLevel,h=a.strategy;if(b){var m=1;c===-1&&(c=6);e<0?(m=0,e=-e):e>15&&(m= 2,e-=16);if(f<1||f>9||d!==8||e<8||e>15||c<0||c>9||h<0||h>4)b=dk(b,-2);else{e===8&&(e=9);var p=new ila;b.state=p;p.strm=b;p.wrap=m;p.gzhead=null;p.w_bits=e;p.w_size=1<>=7;f<30;f++)for(Xj[f]=h<<7,e=0;e<1<=q.w_size&&(b===0&&(ek(q.head),q.strstart=0,q.block_start=0,q.insert=0),c=new Jj.Buf8(q.w_size),Jj.arraySet(c,f,h-q.w_size,q.w_size,0),f=c,h=q.w_size);c=a.avail_in;d=a.next_in;e=a.input;a.avail_in=h;a.next_in=0;a.input=f;for(jk(q);q.lookahead>=3;){f=q.strstart;h=q.lookahead-2;do q.ins_h=(q.ins_h<< q.hash_shift^q.window[f+3-1])&q.hash_mask,q.prev[f&q.w_mask]=q.head[q.ins_h],q.head[q.ins_h]=f,f++;while(--h);q.strstart=f;q.lookahead=2;jk(q)}q.strstart+=q.lookahead;q.block_start=q.strstart;q.insert=q.lookahead;q.lookahead=0;q.match_length=q.prev_length=2;q.match_available=0;a.next_in=d;a.input=e;a.avail_in=c;q.wrap=b;b=0}}else b=-2;if(b!==0)throw Error(Nj[b]);this._dict_set=!0}} nk.prototype.push=function(a,b){var c=this.strm,d=this.options.chunkSize;if(this.ended)return!1;var e=b===~~b?b:b===!0?4:0;typeof a==="string"?c.input=Fka(a):lla.call(a)==="[object ArrayBuffer]"?c.input=new Uint8Array(a):c.input=a;c.next_in=0;c.avail_in=c.input.length;do{c.avail_out===0&&(c.output=new Jj.Buf8(d),c.next_out=0,c.avail_out=d);a=jla(c,e);if(a!==1&&a!==0)return mla(this,a),this.ended=!0,!1;if(c.avail_out===0||c.avail_in===0&&(e===4||e===2))if(this.options.to==="string"){var f=Jj.shrinkBuf(c.output, c.next_out);b=f;f=f.length;if(f<65537&&(b.subarray&&Eka||!b.subarray))b=String.fromCharCode.apply(null,Jj.shrinkBuf(b,f));else{for(var h="",m=0;m0||c.avail_out===0)&&a!==1);if(e===4)return(c=this.strm)&&c.state?(d=c.state.status,d!==42&&d!==69&&d!==73&&d!==91&&d!==103&&d!==113&&d!==666?a=dk(c,-2):(c.state=null,a=d===113?dk(c,-3):0)):a=-2,mla(this,a),this.ended= !0,a===0;e===2&&(mla(this,0),c.avail_out=0);return!0}; var mla=function(a,b){b===0&&(a.result=a.options.to==="string"?a.chunks.join(""):Jj.flattenChunks(a.chunks));a.chunks=[];a.err=b;a.msg=a.strm.msg}; function nla(a,b){b=b||{};b.gzip=!0;b=new nk(b);b.push(a,!0);if(b.err)throw b.msg||Nj[b.err];return b.result} ;/* Copyright (c) 2017 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */ window.JSCompiler_renameProperty=function(a){return a};var ola=/(url\()([^)]*)(\))/g,pla=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,ok,pk; function qk(a,b){if(a&&pla.test(a)||a==="//")return a;if(ok===void 0){ok=!1;try{var c=new URL("b","http://a");c.pathname="c%20d";ok=c.href==="http://a/c%20d"}catch(d){}}b||(b=document.baseURI||window.location.href);if(ok)try{return new URL(a,b).href}catch(d){return a}pk||(pk=document.implementation.createHTMLDocument("temp"),pk.base=pk.createElement("base"),pk.head.appendChild(pk.base),pk.anchor=pk.createElement("a"),pk.body.appendChild(pk.anchor));pk.base.href=b;pk.anchor.href=a;return pk.anchor.href|| a} function rk(a,b){return a.replace(ola,function(c,d,e,f){return d+"'"+qk(e.replace(/["']/g,""),b)+"'"+f})} function sk(a){return a.substring(0,a.lastIndexOf("/")+1)} ;var tk=!window.ShadyDOM||!window.ShadyDOM.inUse,qla=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),rla=!window.customElements.polyfillWrapFlushCallback,uk;if(uk=tk&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var sla=new CSSStyleSheet;sla.replaceSync("");var tla=document.createElement("div");tla.attachShadow({mode:"open"});tla.shadowRoot.adoptedStyleSheets=[sla];uk=tla.shadowRoot.adoptedStyleSheets[0]===sla}catch(a){uk=!1} var ula=uk,vk=window.Polymer&&window.Polymer.rootPath||sk(document.baseURI||window.location.href),wk=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,xk=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,yk=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,zk=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Ak=window.Polymer&&window.Polymer.legacyOptimizations||!1,Dk=window.Polymer&&window.Polymer.legacyWarnings||!1,Ek=window.Polymer&&window.Polymer.syncInitialRender|| !1,Fk=window.Polymer&&window.Polymer.legacyUndefined||!1,Gk=window.Polymer&&window.Polymer.orderedComputed||!1,Hk=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Ik=window.Polymer&&window.Polymer.fastDomIf||!1,Jk=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,Kk=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,vla=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/* Copyright (c) 2017 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */ var wla=Ak;function xla(a){return a?(a=a.privateDoNotAccessOrElseSafeScriptWrappedValue)?bc(a):null:null} function Lk(a){return a?(a=a.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?kb(a):null:null} ;/* Copyright 2017 Google LLC SPDX-License-Identifier: BSD-3-Clause */ function yla(a,b,c){if(Object.hasOwnProperty.call(zla,a)&&(a=zla[a],Object.hasOwnProperty.call(a,b)&&(a=a[b],a instanceof Array))){for(var d=null,e=!1,f=0,h=a.length;f: <"+y+" "+C+"=\""+I+"\">",q));return K}}} function ema(a,b,c){return[,{filterRaw:function(d,e,f){return f}, filterString:void 0,safeReplacement:void 0,safeType:void 0},{filterRaw:void 0,filterString:void 0,safeReplacement:void 0,safeType:"HTML"},{filterRaw:void 0,filterString:void 0,safeReplacement:Pk,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:Pk,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:Ok,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:fma,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(d,e,f){f=String(f).toLowerCase(); return Bla(d,e,f)?f:Ok}, safeReplacement:Ok,safeType:void 0},,{filterRaw:void 0,filterString:function(d,e,f){return a.test(f)?f:Ok}, safeReplacement:Ok,safeType:"CONSTANT"},{filterRaw:function(d,e,f,h){if(typeof f==="string")var m=(m=f.match(Yla))?m.map(ama).filter(Boolean):[];else if(Array.isArray(f))m=f;else return Pk;var p=m;m=[];var q=[],t={};if(Array.isArray(p))for(var u=0,v=p.length;u: <"+d+" "+e+"=\""+f+"\">: "+p,h);return q===Nk?Pk:q}, filterString:void 0,safeReplacement:void 0,safeType:void 0}]} var gma=function(){var a=function(){var d={createHTML:function(){return"zClosurez"}, createScript:function(){return" /*zClosurez*/ "}, createScriptURL:function(){return"about:invalid#zClosurez"}}; return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",d):d}(),b=a.createHTML(""),c=a.createScript(""); a=a.createScriptURL("");return{INNOCUOUS_STRING:b,INNOCUOUS_SCRIPT:c,INNOCUOUS_URL:a}}(),Ok=gma.INNOCUOUS_STRING,fma=gma.INNOCUOUS_SCRIPT,Pk=gma.INNOCUOUS_URL; function hma(a){var b=dma(a);return function(c,d,e,f){return f||f===document.all?b(c,d,e)(f):f}} ;var Qk=function(a){this.name=a};function Rk(a,b){if(!a)return null;a=Object.keys(a);a=l(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.toLowerCase();if(d.indexOf(b,d.length-b.length)>-1)return c}return null} ;var Sk=ua.window,ima,jma,Tk=(Sk==null?void 0:(ima=Sk.yt)==null?void 0:ima.config_)||(Sk==null?void 0:(jma=Sk.ytcfg)==null?void 0:jma.data_)||{};va("yt.config_",Tk);function Uk(){var a=arguments;a.length>1?Tk[a[0]]=a[1]:a.length===1&&Object.assign(Tk,a[0])} function Vk(a,b){return a in Tk?Tk[a]:b} function kma(a){var b=Tk.EXPERIMENT_FLAGS;return b?b[a]:void 0} ;var lma=[];function mma(a){lma.forEach(function(b){return b(a)})} function Wk(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){Xk(b)}}:a} function Xk(a){var b=xa("yt.logging.errors.log");b?b(a,"ERROR",void 0,void 0,void 0,void 0,void 0):(b=Vk("ERRORS",[]),b.push([a,"ERROR",void 0,void 0,void 0,void 0,void 0]),Uk("ERRORS",b));mma(a)} function Yk(a,b,c,d,e){var f=xa("yt.logging.errors.log");f?f(a,"WARNING",b,c,d,void 0,e):(f=Vk("ERRORS",[]),f.push([a,"WARNING",b,c,d,void 0,e]),Uk("ERRORS",f))} ;var nma=/^[\w.]*$/,oma={q:!0,search_query:!0};function pma(a,b){b=a.split(b);for(var c={},d=0,e=b.length;d1?a[1]:a[0])):{}} function tma(a,b){return al(a,b||{},!0)} function al(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=Zk(e[1]||"");for(var f in b)!c&&e!==null&&f in e||(e[f]=b[f]);return $c(a,e)+d} function bl(a){if(!b)var b=window.location.href;var c=Sc(a)[1]||null,d=Tc(a);return c&&d?Yc(a,b):d?Tc(b)===d&&(Number(Sc(b)[4]||null)||null)===(Number(Sc(a)[4]||null)||null):!0} function uma(a){a=vma(a);return a===null?!1:a[0]==="com"&&a[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1} function vma(a){a=Tc(a);return a!==null?a.split(".").reverse():null} function qma(a){return a&&a.match(nma)?a:Mc(a)} ;var xma=function(a){var b=wma;a=a===void 0?xa("yt.ads.biscotti.lastId_")||"":a;var c=Object,d=c.assign,e={};e.dt=bja;e.flash="0";a:{try{var f=b.JSC$6412_win_.top.location.href}catch(S){f=2;break a}f=f?f===b.doc_.location.href?0:1:2}e=(e.frm=f,e);try{e.u_tz=-new Date().getTimezoneOffset();try{var h=vh.history.length}catch(S){h=0}e.u_his=h;var m;e.u_h=(m=vh.screen)==null?void 0:m.height;var p;e.u_w=(p=vh.screen)==null?void 0:p.width;var q;e.u_ah=(q=vh.screen)==null?void 0:q.availHeight;var t;e.u_aw= (t=vh.screen)==null?void 0:t.availWidth;var u;e.u_cd=(u=vh.screen)==null?void 0:u.colorDepth}catch(S){}h=b.JSC$6412_win_;try{var v=h.screenX;var w=h.screenY}catch(S){}try{var y=h.outerWidth;var A=h.outerHeight}catch(S){}try{var C=h.innerWidth;var I=h.innerHeight}catch(S){}try{var K=h.screenLeft;var N=h.screenTop}catch(S){}try{C=h.innerWidth,I=h.innerHeight}catch(S){}try{var L=h.screen.availWidth;var R=h.screen.availTop}catch(S){}v=[K,N,v,w,L,R,y,A,C,I];w=Dja(!1,b.JSC$6412_win_.top);y={};var W=W=== void 0?ua:W;A=new Bja;"SVGElement"in W&&"createElementNS"in W.document&&A.set(0);C=ria();C["allow-top-navigation-by-user-activation"]&&A.set(1);C["allow-popups-to-escape-sandbox"]&&A.set(2);W.crypto&&W.crypto.subtle&&A.set(3);"TextDecoder"in W&&"TextEncoder"in W&&A.set(4);W=Cja(A);b=(y.bc=W,y.bih=w.height,y.biw=w.width,y.brdim=v.join(),y.vis=Fja(b.doc_),y.wgl=!!vh.WebGLRenderingContext,y);c=d.call(c,e,b);c.ca_type="image";a&&(c.bid=a);return c},wma=new function(){var a=window.document; this.JSC$6412_win_=window;this.doc_=a}; va("yt.ads_.signals_.getAdSignalsString",function(a){return sma(xma(a))});Ka();navigator.userAgent.indexOf(" (CrKey ");var yma="XMLHttpRequest"in ua?function(){return new XMLHttpRequest}:null; function zma(){if(!yma)return null;var a=yma();return"open"in a?a:null} function Ama(a){switch(cl(a)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1;}} function cl(a){return a&&"status"in a?a.status:-1} ;function dl(a,b){typeof a==="function"&&(a=Wk(a));return window.setTimeout(a,b)} function jl(a,b){typeof a==="function"&&(a=Wk(a));return window.setInterval(a,b)} ;var Bma="absolute_experiments client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods theme".split(" "),Cma=[].concat(ia(Bma),["client_dev_set_cookie"]);function x(a){a=kl(a);return typeof a==="string"&&a==="false"?!1:!!a} function ll(a,b){a=kl(a);return a===void 0&&b!==void 0?b:Number(a||0)} function Dma(a){a=kl(a);return Array.isArray(a)?vc(a,function(b){return Number(b||0)}):[Number(a||0)]} function ml(a){a=kl(a);return a!==void 0?String(a):""} function Ema(a){a=kl(a);return Array.isArray(a)?vc(a,function(b){return String(b||"")}):[String(a||"")]} function Fma(){return Vk("EXPERIMENTS_TOKEN","")} function kl(a){return Vk("EXPERIMENT_FLAGS",{})[a]} function Gma(){for(var a=[],b=Vk("EXPERIMENTS_FORCED_FLAGS",{}),c=l(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,a.push({key:d,value:String(b[d])});c=Vk("EXPERIMENT_FLAGS",{});d=l(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 Hma={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-Goog-AuthUser":"SESSION_INDEX","X-Goog-PageId":"DELEGATED_SESSION_ID"},Ima="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(ia(Bma)),Jma=!1; function Kma(a,b,c,d,e,f,h,m,p){c=c===void 0?"GET":c;d=d===void 0?"":d;m=m===void 0?!1:m;var q=zma();if(!q)return null;var t=function(){(q&&"readyState"in q?q.readyState:0)===4&&b&&Wk(b)(q)}; "onloadend"in q?q.addEventListener("loadend",t,!1):q.onreadystatechange=t;x("debug_forward_web_query_parameters")&&(a=Lma(a,window.location.search));q.open(c,a,!0);f&&(q.responseType=f);h&&(q.withCredentials=!0);c=c==="POST"&&(window.FormData===void 0||!(d instanceof FormData));if(e=Mma(a,e))for(var u in e)q.setRequestHeader(u,e[u]),"content-type"===u.toLowerCase()&&(c=!1);c&&q.setRequestHeader("Content-Type","application/x-www-form-urlencoded");p&&"onprogress"in q&&(q.onprogress=function(){p(q.responseText)}); if(m&&"setAttributionReporting"in XMLHttpRequest.prototype){a={eventSourceEligible:!0,triggerEligible:!1};try{q.setAttributionReporting(a)}catch(v){Yk(v)}}q.send(d);return q} function Mma(a,b){b=b===void 0?{}:b;var c=bl(a),d=Vk("INNERTUBE_CLIENT_NAME"),e=x("web_ajax_ignore_global_headers_if_set"),f;for(f in Hma){var h=Vk(Hma[f]),m=f==="X-Goog-AuthUser"||f==="X-Goog-PageId";f!=="X-Goog-Visitor-Id"||h||(h=Vk("VISITOR_DATA"));var p;if(!(p=!h)){if(!(p=c||(Tc(a)?!1:!0))){p=a;var q;if(q=x("add_auth_headers_to_remarketing_google_dot_com_ping")&&f==="Authorization"&&(d==="TVHTML5"||d==="TVHTML5_UNPLUGGED"||d==="TVHTML5_SIMPLY"))q=vma(p),q=q===null?!1:q[1]==="google"?!0:q[2]=== "google"?q[0]==="au"&&q[1]==="com"?!0:q[0]==="uk"&&q[1]==="co"?!0:!1:!1;q&&(p=Uc(p)||"",p=p.split("/"),p="/"+(p.length>1?p[1]:""),q=p==="/pagead");p=q?!0:!1}p=!p}p||e&&b[f]!==void 0||d==="TVHTML5_UNPLUGGED"&&m||(b[f]=h)}"X-Goog-EOM-Visitor-Id"in b&&"X-Goog-Visitor-Id"in b&&delete b["X-Goog-Visitor-Id"];if(c||!Tc(a))b["X-YouTube-Utc-Offset"]=String(-new Date().getTimezoneOffset());if(c||!Tc(a)){try{var t=new Intl.DateTimeFormat().resolvedOptions().timeZone}catch(u){}t&&(b["X-YouTube-Time-Zone"]=t)}document.location.hostname.endsWith("youtubeeducation.com")|| !c&&Tc(a)||(b["X-YouTube-Ad-Signals"]=sma(xma()));return b} function Nma(a,b){var c=Tc(a);x("debug_handle_relative_url_for_query_forward_killswitch")||!c&&bl(a)&&(c=document.location.hostname);var d=Uc(a);d=(c=c&&(c.endsWith("youtube.com")||c.endsWith("youtube-nocookie.com")))&&d&&d.startsWith("/api/");if(!c||d)return a;var e=Zk(b),f={};uc(Ima,function(h){e[h]&&(f[h]=e[h])}); return al(a,f||{},!1)} function Oma(a,b){b.method="POST";b.postParams||(b.postParams={});return nl(a,b)} function Pma(a,b){var c=Vk("XSRF_FIELD_NAME"),d;b.headers&&(d=b.headers["Content-Type"]);return!b.excludeXsrf&&(!Tc(a)||b.withCredentials||Tc(a)===document.location.hostname)&&b.method==="POST"&&(!d||d==="application/x-www-form-urlencoded")&&!(b.postParams&&b.postParams[c])} function nl(a,b){var c=b.format||"JSON";a=Qma(a,b);var d=Rma(a,b),e=!1,f=Sma(a,function(p){if(!e){e=!0;m&&window.clearTimeout(m);var q=Ama(p),t=null,u=400<=p.status&&p.status<500,v=500<=p.status&&p.status<600;if(q||u||v)t=Tma(a,c,p,b.convertToSafeHtml);q&&(q=Uma(c,p,t));t=t||{};u=b.context||ua;q?b.onSuccess&&b.onSuccess.call(u,p,t):b.onError&&b.onError.call(u,p,t);b.onFinish&&b.onFinish.call(u,p,t)}},b.method,d,b.headers,b.responseType,b.withCredentials,!1,b.onProgress); d=b.timeout||0;if(b.onTimeout&&d>0){var h=b.onTimeout;var m=dl(function(){e||(e=!0,f.abort(),window.clearTimeout(m),h.call(b.context||ua,f))},d)}return f} function Qma(a,b){b.includeDomain&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=Vk("XSRF_FIELD_NAME");if(b=b.urlParams)b[c]&&delete b[c],a=tma(a,b);return a} function Rma(a,b){var c=Vk("XSRF_FIELD_NAME"),d=Vk("XSRF_TOKEN"),e=b.postBody||"",f=b.postParams;Pma(a,b)&&(f||(f={}),f[c]=d);f&&typeof e==="string"&&(e=Zk(e),Zh(e,f),e=b.postBodyFormat&&b.postBodyFormat==="JSON"?JSON.stringify(e):Zc(e));f=e||f&&!Wh(f);!Jma&&f&&b.method!=="POST"&&(Jma=!0,Xk(Error("AJAX request with postData should use POST")));return e} function Tma(a,b,c,d){var e=null;switch(b){case"JSON":try{var f=c.responseText}catch(h){throw d=Error("Error reading responseText"),d.params=a,Yk(d),h}a=c.getResponseHeader("Content-Type")||"";if(f&&a.indexOf("json")>=0){f.substring(0,5)===")]}'\n"&&(f=f.substring(5));try{e=JSON.parse(f)}catch(h){}}break;case"XML":if(a=(a=c.responseXML)?Vma(a):null)e={},uc(a.getElementsByTagName("*"),function(h){e[h.tagName]=Wma(h)});}d&&Xma(e); return e} function Xma(a){if(Ga(a))for(var b in a)b==="html_content"||Wa(b,"_html")?a[b]=Pb(a[b]):Xma(a[b])} function Uma(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 Vma(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&a.length>0?a[0]:null:null} function Wma(a){var b="";uc(a.childNodes,function(c){b+=c.nodeValue}); return b} var Lma=Nma,Sma=Kma;var Yma=[{messageFn:function(a){return"Cannot read property '"+a.key+"'"}, patternsForType:{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"]}]}},{messageFn:function(a){return"Cannot call '"+a.key+"'"}, patternsForType:{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"]}]}},{messageFn:function(a){return a.key+" is not defined"}, patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var ana={messageWeights:[],callbackWeights:[{callback:Zma,weight:500},{callback:$ma,weight:500}]};function Zma(a){if(a.name==="JavaException")return!0;a=a.stack;return a.includes("chrome://")||a.includes("-extension://")||a.includes("webkit-masked-url://")} function $ma(a){if(!a.stack)return!0;var b=!a.stack.includes("\n");return b&&a.stack.includes("ErrorType: ")||b&&a.stack.includes("Anonymous function (Unknown script")||a.stack.toLowerCase()==="not available"||a.fileName==="user-script"||a.fileName.startsWith("user-script:")?!0:!1} ;var bna=function(){this.callbackWeights=[];this.messageWeights=[]},cna,ena=function(){if(!cna){var a=cna=new bna; a.messageWeights.length=0;a.callbackWeights.length=0;dna(a,ana)}return cna},dna=function(a,b){b.messageWeights&&a.messageWeights.unshift.apply(a.messageWeights,b.messageWeights); b.callbackWeights&&a.callbackWeights.unshift.apply(a.callbackWeights,b.callbackWeights)};var fna=new Bj;function gna(a,b){var c=a.length,d=0,e=function(){return a.charCodeAt(d++)}; do{var f=hna(e);if(f===Infinity)break;var h=f>>3;switch(f&7){case 0:f=hna(e);if(h===b)return f;break;case 1:if(h===b)return;d+=8;break;case 2:f=hna(e);if(h===b)return a.substr(d,f);d+=f;break;case 5:if(h===b)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 h=a[e],m=b,p=c;f=typeof h!=="string"||f!=="clickTrackingParams"&&f!=="trackingParams"?0:(h=gna(atob(h.replace(/-/g,"+").replace(/_/g,"/")),2))?jna(f+".ve",h,m,p):0;d+=f;d+=jna(e,a[e],b,c);if(d>500)break}}else c[b]=ol(a),d+=c[b].length;}else c[b]=ol(a),d+=c[b].length;return d} function jna(a,b,c,d){c+="."+a;a=ol(b);d[c]=a;return c.length+a.length} function ol(a){try{return(typeof a==="string"?a:String(JSON.stringify(a))).substr(0,500)}catch(b){return"unable to serialize "+typeof a+" ("+b.message+")"}} ;var pl=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(pl,Ig);pl.prototype.getColdHashData=function(){return Uf(this,3)}; pl.prototype.getHotHashData=function(){return Uf(this,5)}; pl.prototype.setHotHashData=function(a){return fg(this,5,a)};var kna=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(kna,Ig);var ql=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(ql,Ig);ql.prototype.getExperimentIds=function(a){var b=mfa(this,9,Le);Sda(b,a);return b[a]}; ql.prototype.getPlayerType=function(){return Vf(this,36)}; ql.prototype.setHomeGroupInfo=function(a){return Gf(this,81,a)}; ql.prototype.clearLocationPlayabilityToken=function(){return qf(this,89)};var lna=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(lna,Ig);var mna=[2,3,4,5,6];var nna=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(nna,Ig);nna.prototype.setTrackingParams=function(a){return qf(this,1,ee(a,!1))};var ona=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(ona,Ig);var rl=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(rl,Ig);rl.prototype.getExperimentIds=function(a){var b=mfa(this,5,sea);Sda(b,a);return b[a]};var sl=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(sl,Ig);sl.prototype.setToken=function(a){return fg(this,2,a)};var tl=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(tl,Ig);tl.prototype.setSafetyMode=function(a){return hg(this,5,a)};var ul=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(ul,Ig);ul.prototype.setClient=function(a){return Gf(this,1,a)};var pna={WEB_DISPLAY_MODE_UNKNOWN:"WEB_DISPLAY_MODE_UNKNOWN",WEB_DISPLAY_MODE_BROWSER:"WEB_DISPLAY_MODE_BROWSER",WEB_DISPLAY_MODE_MINIMAL_UI:"WEB_DISPLAY_MODE_MINIMAL_UI",WEB_DISPLAY_MODE_STANDALONE:"WEB_DISPLAY_MODE_STANDALONE",WEB_DISPLAY_MODE_FULLSCREEN:"WEB_DISPLAY_MODE_FULLSCREEN"};var qna=function(a){var b=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;a.addEventListener("beforeinstallprompt",function(c){c.preventDefault();b.deferredInstallPrompt=c}); a.addEventListener("appinstalled",function(){b.appInstalledEventFired=!0},{once:!0})},rna=function(){if(!ua.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN"; try{return ua.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":ua.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":ua.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":ua.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(a){return"WEB_DISPLAY_MODE_UNKNOWN"}};var vl=function(){this.syncHeaders=!0},sna=function(){vl.instance||(vl.instance=new vl); return vl.instance},tna=function(a,b){a={}; var c=[];"USER_SESSION_ID"in Tk&&c.push({key:"u",value:Vk("USER_SESSION_ID")});if(c=Gi(c))a.Authorization=c,c=b=b==null?void 0:b.sessionIndex,c===void 0&&(c=Number(Vk("SESSION_INDEX",0)),c=isNaN(c)?0:c),x("voice_search_auth_header_removal")||(a["X-Goog-AuthUser"]=c.toString()),"INNERTUBE_HOST_OVERRIDE"in Tk||(a["X-Origin"]=window.location.origin),b===void 0&&"DELEGATED_SESSION_ID"in Tk&&(a["X-Goog-PageId"]=Vk("DELEGATED_SESSION_ID"));return a};var wl={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};function una(a){switch(a){case"DESKTOP":return 1;case"UNKNOWN_PLATFORM":return 0;case"TV":return 2;case"GAME_CONSOLE":return 3;case"MOBILE":return 4;case"TABLET":return 5;}} ;function xl(a,b,c,d,e){Fi.set(""+a,b,{maxAge:c,path:"/",domain:d===void 0?"youtube.com":d,secure:e===void 0?!1:e})} function yl(a){return Fi.get(""+a,void 0)} function vna(a,b,c){Fi.remove(""+a,b===void 0?"/":b,c===void 0?"youtube.com":c)} function wna(){if(!Fi.isEnabled())return!1;if(!Fi.isEmpty())return!0;Fi.set("TESTCOOKIESENABLED","1",{maxAge:60});if(Fi.get("TESTCOOKIESENABLED")!=="1")return!1;Fi.remove("TESTCOOKIESENABLED");return!0} ;var zl=xa("ytglobal.prefsUserPrefsPrefs_")||{};va("ytglobal.prefsUserPrefsPrefs_",zl);var Al=function(){this.cookieName=Vk("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=Vk("ALT_PREF_COOKIE_DOMAIN","youtube.com");var a=yl(this.cookieName);a&&this.parse(a)},xna,Bl=function(){xna||(xna=new Al); return xna}; Al.prototype.get=function(a,b){yna(a);zna(a);a=zl[a]!==void 0?zl[a].toString():null;return a!=null?a:b?b:""}; Al.prototype.set=function(a,b){yna(a);zna(a);if(b==null)throw Error("ExpectedNotNull");zl[a]=b.toString()}; var Cl=function(a,b){return!!((Ana("f"+(Math.floor(b/31)+1))||0)&1<10&&Rl.shift())} function Ul(a,b){Sl||(Rl.push({type:"EVENT",eventType:a,payload:b}),Rl.length>10&&Rl.shift())} ;function Vl(a){if(a.indexOf(":")>=0)throw Error("Database name cannot contain ':'")} function Wl(a){return a.substr(0,a.indexOf(":"))||a} ;var Mna=pda||qda;function Xl(){return(pda||qda)&&Yl("applewebkit")&&!Yl("version")&&(!Yl("safari")||Yl("gsa/"))} function Nna(){return fda&&Yl("version/")} function Yl(a){var b=jd();return b?b.toLowerCase().indexOf(a)>=0:!1} ;var Zl={},Ona=(Zl.AUTH_INVALID="No user identifier specified.",Zl.EXPLICIT_ABORT="Transaction was explicitly aborted.",Zl.IDB_NOT_SUPPORTED="IndexedDB is not supported.",Zl.MISSING_INDEX="Index not created.",Zl.MISSING_OBJECT_STORES="Object stores not created.",Zl.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",Zl.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",Zl.UNKNOWN_ABORT= "Transaction was aborted for unknown reasons.",Zl.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",Zl.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",Zl.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",Zl.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",Zl),$l={},Pna=($l.AUTH_INVALID="ERROR",$l.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",$l.EXPLICIT_ABORT="IGNORED", $l.IDB_NOT_SUPPORTED="ERROR",$l.MISSING_INDEX="WARNING",$l.MISSING_OBJECT_STORES="ERROR",$l.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",$l.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",$l.QUOTA_EXCEEDED="WARNING",$l.QUOTA_MAYBE_EXCEEDED="WARNING",$l.UNKNOWN_ABORT="WARNING",$l.INCOMPATIBLE_DB_VERSION="WARNING",$l),am={},Qna=(am.AUTH_INVALID=!1,am.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,am.EXPLICIT_ABORT=!1,am.IDB_NOT_SUPPORTED=!1,am.MISSING_INDEX=!1,am.MISSING_OBJECT_STORES=!1,am.DB_DELETED_BY_MISSING_OBJECT_STORES= !1,am.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,am.QUOTA_EXCEEDED=!1,am.QUOTA_MAYBE_EXCEEDED=!0,am.UNKNOWN_ABORT=!0,am.INCOMPATIBLE_DB_VERSION=!1,am),bm=function(a,b,c,d,e){b=b===void 0?{}:b;c=c===void 0?Ona[a]:c;d=d===void 0?Pna[a]:d;e=e===void 0?Qna[a]:e;Dl.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.retryable=e;Object.setPrototypeOf(this,bm.prototype)}; k(bm,Dl);var Rna=function(a,b){bm.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:b,foundObjectStores:a},Ona.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,Rna.prototype)}; k(Rna,bm);var cm=function(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,cm.prototype)}; k(cm,Error);var Sna=["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 Tna(a,b,c,d){b=Wl(b);var e=a instanceof Error?a:Error("Unexpected error: "+a);if(e instanceof bm)return e;a={objectStoreNames:c,dbName:b,dbVersion:d};if(e.name==="QuotaExceededError")return new bm("QUOTA_EXCEEDED",a);if(sda&&e.name==="UnknownError")return new bm("QUOTA_MAYBE_EXCEEDED",a);if(e instanceof cm)return new bm("MISSING_INDEX",Object.assign({},a,{objectStore:e.objectStore,index:e.index}));if(e.name==="InvalidStateError"&&Sna.some(function(f){return e.message.includes(f)}))return new bm("EXECUTE_TRANSACTION_ON_CLOSED_DB", a); if(e.name==="AbortError")return new bm("UNKNOWN_ABORT",a,e.message);e.args=[Object.assign({},a,{name:"IdbError",originalName:e.name})];e.level="WARNING";return e} function dm(a,b,c){var d=Lna();return new bm("IDB_NOT_SUPPORTED",{context:{caller:a,publicName:b,version:c,hasSucceededOnce:d==null?void 0:d.hasSucceededOnce}})} ;function Una(a){if(!a)throw Error();throw a} function Vna(a){return a} var em=function(a){this.executor=a},fm=function(a){var b=this; this.state={status:"PENDING"};this.JSC$6521_onFulfilled=[];this.JSC$6521_onRejected=[];a=a.executor;var c=function(e){if(b.state.status==="PENDING"){b.state={status:"FULFILLED",value:e};e=l(b.JSC$6521_onFulfilled);for(var f=e.next();!f.done;f=e.next())f=f.value,f()}},d=function(e){if(b.state.status==="PENDING"){b.state={status:"REJECTED", reason:e};e=l(b.JSC$6521_onRejected);for(var f=e.next();!f.done;f=e.next())f=f.value,f()}}; try{a(c,d)}catch(e){d(e)}}; fm.all=function(a){return new fm(new em(function(b,c){var d=[],e=a.length;e===0&&b(d);for(var f={i$jscomp$315:0};f.i$jscomp$315=f)coa(a,p,w,h,y,b.join(),e),m=y;C.jumpTo(2);break;case 4:return C.return(Promise.reject(m));}})},coa=function(a,b,c,d,e,f,h){b=c-b; e?(e instanceof bm&&(e.type==="QUOTA_EXCEEDED"||e.type==="QUOTA_MAYBE_EXCEEDED")&&Ul("QUOTA_EXCEEDED",{dbName:Wl(a.JSC$6533_wrapped.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:h.mode}),e instanceof bm&&e.type==="UNKNOWN_ABORT"&&(c-=a.startedMs,c<0&&c>=2147483648&&(c=0),Ul("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.hasUnknownAbortedTransaction=!0),doa(a,!1,d,f,b,h.tag),Tl(e)):doa(a, !0,d,f,b,h.tag)},doa=function(a,b,c,d,e,f){Ul("TRANSACTION_ENDED",{objectStoreNames:d, connectionHasUnknownAbortedTransaction:a.hasUnknownAbortedTransaction,duration:e,isSuccessful:b,tryCount:c,tag:f===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":f})}; jm.prototype.getName=function(){return this.JSC$6533_wrapped.name}; var mm=function(a){this.JSC$6548_wrapped=a}; mm.prototype.add=function(a,b){return gm(this.JSC$6548_wrapped.add(a,b))}; mm.prototype.autoIncrement=function(){return this.JSC$6548_wrapped.autoIncrement}; mm.prototype.clear=function(){return gm(this.JSC$6548_wrapped.clear()).then(function(){})}; var pm=function(a,b,c){a.JSC$6548_wrapped.createIndex(b,c,{unique:!1})}; mm.prototype.count=function(a){return gm(this.JSC$6548_wrapped.count(a))}; var eoa=function(a,b){return qm(a,{query:b},function(c){return c.delete().then(function(){return c.continue()})}).then(function(){})}; mm.prototype.delete=function(a){return a instanceof IDBKeyRange?eoa(this,a):gm(this.JSC$6548_wrapped.delete(a))}; mm.prototype.get=function(a){return gm(this.JSC$6548_wrapped.get(a))}; mm.prototype.getAll=function(a,b){return"getAll"in IDBObjectStore.prototype?gm(this.JSC$6548_wrapped.getAll(a,b)):foa(this,a,b)}; var foa=function(a,b,c){var d=[];return qm(a,{query:b},function(e){if(!(c!==void 0&&d.length>=c))return d.push(e.cursor.value),e.continue()}).then(function(){return d})}; mm.prototype.index=function(a){try{return new rm(this.JSC$6548_wrapped.index(a))}catch(b){if(b instanceof Error&&b.name==="NotFoundError")throw new cm(a,this.JSC$6548_wrapped.name);throw b}}; mm.prototype.getName=function(){return this.JSC$6548_wrapped.name}; mm.prototype.keyPath=function(){return this.JSC$6548_wrapped.keyPath}; mm.prototype.put=function(a,b){return gm(this.JSC$6548_wrapped.put(a,b))}; var qm=function(a,b,c){a=a.JSC$6548_wrapped.openCursor(b.query,b.direction);return goa(a).then(function(d){return aoa(d,c)})},om=function(a){var b=this; this.JSC$6556_wrapped=a;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(c,d){b.JSC$6556_wrapped.addEventListener("complete",function(){c()}); b.JSC$6556_wrapped.addEventListener("error",function(e){e.currentTarget===e.target&&d(b.JSC$6556_wrapped.error)}); b.JSC$6556_wrapped.addEventListener("abort",function(){var e=b.JSC$6556_wrapped.error;if(e)d(e);else if(!b.aborted){e=bm;for(var f=b.JSC$6556_wrapped.objectStoreNames,h=[],m=0;m=c))return d.push(e.cursor.value),e.continue()}).then(function(){return d})}; rm.prototype.keyPath=function(){return this.JSC$6559_wrapped.keyPath}; rm.prototype.unique=function(){return this.JSC$6559_wrapped.unique}; var vm=function(a,b,c){a=a.JSC$6559_wrapped.openCursor(b.query===void 0?null:b.query,b.direction===void 0?"next":b.direction);return goa(a).then(function(d){return aoa(d,c)})},wm=function(a,b){this.request=a; this.cursor=b},goa=function(a){return gm(a).then(function(b){return b?new wm(a,b):null})}; wm.prototype.continue=function(a){this.cursor.continue(a);return goa(this.request)}; wm.prototype.delete=function(){return gm(this.cursor.delete()).then(function(){})}; wm.prototype.update=function(a){return gm(this.cursor.update(a))};function ioa(a,b,c){return new Promise(function(d,e){var f=b!==void 0?self.indexedDB.open(a,b):self.indexedDB.open(a);var h=c.blocked,m=c.blocking,p=c.terminated,q=c.upgrade,t=c.closed,u,v=function(){u||(u=new jm(f.result,{closed:t}));return u}; f.addEventListener("upgradeneeded",function(w){try{if(w.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(f.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");w.dataLoss&&w.dataLoss!=="none"&&Ul("IDB_DATA_CORRUPTED",{reason:w.dataLossMessage||"unknown reason",dbName:Wl(a)});var y=v(),A=new om(f.transaction);q&&q(y,function(C){return w.oldVersion=C},A); A.done.catch(function(C){e(C)})}catch(C){e(C)}}); f.addEventListener("success",function(){var w=f.result;m&&w.addEventListener("versionchange",function(){m(v())}); w.addEventListener("close",function(){Ul("IDB_UNEXPECTEDLY_CLOSED",{dbName:Wl(a),dbVersion:w.version});p&&p()}); d(v())}); f.addEventListener("error",function(){e(f.error)}); h&&f.addEventListener("blocked",function(){h()})})} function joa(a,b,c){c=c===void 0?{}:c;return ioa(a,b,c)} function xm(a,b){b=b===void 0?{}:b;var c,d,e,f;return ra(function(h){if(h.nextAddress==1)return h.setCatchFinallyBlocks(2),c=self.indexedDB.deleteDatabase(a),d=b,(e=d.blocked)&&c.addEventListener("blocked",function(){e()}),h.yield($na(c),4); if(h.nextAddress!=2)return h.leaveTryBlock(0);f=h.enterCatchBlock();throw Tna(f,a,"",-1)})} ;var ym=function(a,b){this.name=a;this.options=b;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0}; ym.prototype.openDb=function(a,b,c){c=c===void 0?{}:c;return joa(a,b,c)}; ym.prototype.delete=function(a){a=a===void 0?{}:a;return xm(this.name,a)}; var koa=function(a,b){return new bm("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})},zm=function(a,b){if(!b)throw dm("openWithToken",Wl(a.name)); return a.open()}; ym.prototype.open=function(){var a=this;if(!this.isCompatible)throw koa(this);if(this.connectionPromise)return this.connectionPromise;var b,c=function(){a.connectionPromise===b&&(a.connectionPromise=void 0)},d={blocking:function(f){f.close()}, closed:c,terminated:c,upgrade:this.options.upgrade},e=function(){var f,h,m,p,q,t,u,v,w,y;return ra(function(A){switch(A.nextAddress){case 1:return h=(f=Error().stack)!=null?f:"",A.setCatchFinallyBlocks(2),A.yield(a.openDb(a.name,a.options.version,d),4);case 4:for(var C=m=A.yieldResult,I=a.options,K=[],N=l(Object.keys(I.objectStores)),L=N.next();!L.done;L=N.next()){L=L.value;var R=I.objectStores[L],W=R.removedAtVersion===void 0?Number.MAX_VALUE:R.removedAtVersion;!(C.JSC$6533_wrapped.version>=R.addedAtVersion)|| C.JSC$6533_wrapped.version>=W||C.JSC$6533_wrapped.objectStoreNames.contains(L)||K.push(L)}p=K;if(p.length===0){A.jumpTo(5);break}q=Object.keys(a.options.objectStores);t=m.objectStoreNames();if(a.timesReopenedToFixMissingObjectStorea.options.version+1)throw v.close(),a.isCompatible=!1,koa(a,w);return A.return(v);case 8:throw c(),u instanceof Error&&!x("ytidb_async_stack_killswitch")&&(u.stack=u.stack+"\n"+h.substring(h.indexOf("\n")+1)),Tna(u,a.name,"",(y=a.options.version)!=null?y:-1);}})}; return this.connectionPromise=b=e()};var loa=new ym("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(a,b){b(1)&&nm(a,"databases",{keyPath:"actualName"})}}); function moa(a,b){var c;return ra(function(d){if(d.nextAddress==1)return d.yield(zm(loa,b),2);c=d.yieldResult;return d.return(lm(c,["databases"],{enableRetries:!0,mode:"readwrite"},function(e){var f=e.objectStore("databases");return f.get(a.actualName).then(function(h){if(h?a.actualName!==h.actualName||a.publicName!==h.publicName||a.userIdentifier!==h.userIdentifier:1)return f.put(a).then(function(){})})}))})} function Am(a,b){var c;return ra(function(d){if(d.nextAddress==1)return a?d.yield(zm(loa,b),2):d.return();c=d.yieldResult;return d.return(c.delete("databases",a))})} function noa(a,b){var c,d;return ra(function(e){return e.nextAddress==1?(c=[],e.yield(zm(loa,b),2)):e.nextAddress!=3?(d=e.yieldResult,e.yield(lm(d,["databases"],{enableRetries:!0,mode:"readonly"},function(f){c.length=0;return qm(f.objectStore("databases"),{},function(h){a(h.cursor.value)&&c.push(h.cursor.value);return h.continue()})}),3)):e.return(c)})} function ooa(a){return noa(function(b){return b.publicName==="LogsDatabaseV2"&&b.userIdentifier!==void 0},a)} ;var poa,Bm=new function(){}(new function(){}()); function qoa(){var a,b,c;return ra(function(d){switch(d.nextAddress){case 1:a=Lna();if((b=a)==null?0:b.hasSucceededOnce)return d.return(!0);var e;if(e=Mna)e=/WebKit\/([0-9]+)/.exec(jd()),e=!!(e&&parseInt(e[1],10)>=600);e&&(e=/WebKit\/([0-9]+)/.exec(jd()),e=!(e&&parseInt(e[1],10)>=602));if(!(e=e||yd)){try{e=self;var f=!!(e.indexedDB&&e.IDBIndex&&e.IDBKeyRange&&e.IDBObjectStore)}catch(h){f=!1}e=!f}if(e||!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return d.return(!1);d.setCatchFinallyBlocks(2); c={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return d.yield(moa(c,Bm),4);case 4:return d.yield(Am("yt-idb-test-do-not-use",Bm),5);case 5:return d.return(!0);case 2:return d.enterCatchBlock(),d.return(!1);}})} function roa(){if(poa!==void 0)return poa;Sl=!0;return poa=qoa().then(function(a){Sl=!1;var b;if((b=Kna())!=null&&b.hasLocalStorage()){var c;b={hasSucceededOnce:((c=Lna())==null?void 0:c.hasSucceededOnce)||a};var d;(d=Kna())==null||d.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0)}return a})} function Cm(){return xa("ytglobal.idbToken_")||void 0} function Dm(){var a=Cm();return a?Promise.resolve(a):roa().then(function(b){b?(va("ytglobal.idbToken_",Bm),b=Bm):b=void 0;return b})} ;new nj;function soa(a){if(!El())throw a=new bm("AUTH_INVALID",{dbName:a}),Tl(a),a;var b=Fl();return{actualName:a+":"+b,publicName:a,userIdentifier:b}} function toa(a,b,c,d){var e,f,h,m,p,q;return ra(function(t){switch(t.nextAddress){case 1:return f=(e=Error().stack)!=null?e:"",t.yield(Dm(),2);case 2:h=t.yieldResult;if(!h)throw m=dm("openDbImpl",a,b),x("ytidb_async_stack_killswitch")||(m.stack=m.stack+"\n"+f.substring(f.indexOf("\n")+1)),Tl(m),m;Vl(a);p=c?{actualName:a,publicName:a,userIdentifier:void 0}:soa(a);t.setCatchFinallyBlocks(3);return t.yield(moa(p,h),5);case 5:return t.yield(joa(p.actualName,b,d),6);case 6:return t.return(t.yieldResult); case 3:return q=t.enterCatchBlock(),t.setCatchFinallyBlocks(7),t.yield(Am(p.actualName,h),9);case 9:t.leaveTryBlock(8);break;case 7:t.enterCatchBlock();case 8:throw q;}})} function uoa(a,b,c){c=c===void 0?{}:c;return toa(a,b,!1,c)} function voa(a,b,c){c=c===void 0?{}:c;return toa(a,b,!0,c)} function woa(a,b){b=b===void 0?{}:b;var c,d;return ra(function(e){if(e.nextAddress==1)return e.yield(Dm(),2);if(e.nextAddress!=3){c=e.yieldResult;if(!c)return e.return();Vl(a);d=soa(a);return e.yield(xm(d.actualName,b),3)}return e.yield(Am(d.actualName,c),0)})} function xoa(a,b,c){a=a.map(function(d){return ra(function(e){return e.nextAddress==1?e.yield(xm(d.actualName,b),2):e.yield(Am(d.actualName,c),0)})}); return Promise.all(a).then(function(){})} function yoa(){var a=a===void 0?{}:a;var b,c;return ra(function(d){if(d.nextAddress==1)return d.yield(Dm(),2);if(d.nextAddress!=3){b=d.yieldResult;if(!b)return d.return();Vl("LogsDatabaseV2");return d.yield(ooa(b),3)}c=d.yieldResult;return d.yield(xoa(c,a,b),0)})} function zoa(a,b){b=b===void 0?{}:b;var c;return ra(function(d){if(d.nextAddress==1)return d.yield(Dm(),2);if(d.nextAddress!=3){c=d.yieldResult;if(!c)return d.return();Vl(a);return d.yield(xm(a,b),3)}return d.yield(Am(a,c),0)})} ;var Em=function(a,b){ym.call(this,a,b);this.options=b;Vl(a)}; k(Em,ym);var Aoa=function(a,b){var c;return function(){c||(c=new Em(a,b));return c}}; Em.prototype.openDb=function(a,b,c){c=c===void 0?{}:c;return(this.options.shared?voa:uoa)(a,b,Object.assign({},c))}; Em.prototype.delete=function(a){a=a===void 0?{}:a;return(this.options.shared?zoa:woa)(this.name,a)}; function Fm(a,b){return Aoa(a,b)} ;var Boa={},Coa=Fm("ytGcfConfig",{objectStores:(Boa.coldConfigStore={addedAtVersion:1},Boa.hotConfigStore={addedAtVersion:1},Boa),shared:!1,upgrade:function(a,b){b(1)&&(pm(nm(a,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),pm(nm(a,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});function Gm(a){return zm(Coa(),a)} function Doa(a,b,c,d){var e,f,h;return ra(function(m){switch(m.nextAddress){case 1:return e={config:a,hashData:b,timestamp:d!==void 0?d:im()},m.yield(Gm(c),2);case 2:return f=m.yieldResult,m.yield(f.clear("hotConfigStore"),3);case 3:return m.yield(f.put("hotConfigStore",e),4);case 4:return h=m.yieldResult,m.return(h);}})} function Eoa(a,b,c,d,e){var f,h,m;return ra(function(p){switch(p.nextAddress){case 1:return f={config:a,hashData:b,configData:c,timestamp:e!==void 0?e:im()},p.yield(Gm(d),2);case 2:return h=p.yieldResult,p.yield(h.clear("coldConfigStore"),3);case 3:return p.yield(h.put("coldConfigStore",f),4);case 4:return m=p.yieldResult,p.return(m);}})} function Foa(a){var b,c;return ra(function(d){return d.nextAddress==1?d.yield(Gm(a),2):d.nextAddress!=3?(b=d.yieldResult,c=void 0,d.yield(lm(b,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(e){return vm(e.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(f){c=f.cursor.value})}),3)):d.return(c)})} function Goa(a){var b,c;return ra(function(d){return d.nextAddress==1?d.yield(Gm(a),2):d.nextAddress!=3?(b=d.yieldResult,c=void 0,d.yield(lm(b,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(e){return vm(e.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(f){c=f.cursor.value})}),3)):d.return(c)})} ;var Hoa=function(){Ji.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var a=xa("yt.gcf.config.hotUpdateCallbacks");a?(this.localHotConfigJobQueue=[].concat(ia(a)),this.sharedHotConfigJobQueue=a):(this.sharedHotConfigJobQueue=[],va("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))}; k(Hoa,Ji);Hoa.prototype.disposeInternal=function(){for(var a=l(this.localHotConfigJobQueue),b=a.next();!b.done;b=a.next()){var c=this.sharedHotConfigJobQueue;b=c.indexOf(b.value);b>=0&&c.splice(b,1)}this.localHotConfigJobQueue.length=0;Ji.prototype.disposeInternal.call(this)};var Lm=function(){var a=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new Hoa;this.TEST_ONLY={initializeConfigDb:function(){a.isConfigDbInitialized=!0}, getColdConfigGroup:function(){return a.coldGlobalConfigGroup}, setHotConfigGroup:function(b){Hm(a,b)}, setHotHashData:function(b){a.setHotHashData(b)}, setColdConfigGroup:function(b){Ioa(a,b)}, getColdHashData:function(){return a.coldHashData}, getHotHashData:function(){return a.hotHashData}, getHotConfigGroup:function(){return a.hotGlobalConfigGroup}, getExportedColdConfigGroup:function(){return Im()}, getExportedHotConfigGroup:function(){return Jm()}, getExportedColdHashData:function(){return xa("yt.gcf.config.coldHashData")}, getExportedHotHashData:function(){return xa("yt.gcf.config.hotHashData")}, triggerScheduleConfigs:function(){Joa(a)}, resetInstance:function(){a.setHotHashData(void 0);Km(a);delete Lm.instance}, setDebounceTimer:function(b){a.debounceTimer=b}, getDebounceTimer:function(){return a.debounceTimer}}},Mm=function(){var a; return(a=Jm())!=null?a:Vk("RAW_HOT_CONFIG_GROUP")},Koa=function(a){var b,c,d,e,f,h; return ra(function(m){switch(m.nextAddress){case 1:if(a.hotGlobalConfigGroup)return m.return(Jm());if(!a.isConfigDbInitialized)return b=dm("getHotConfig IDB not initialized"),Yk(b),m.return(Promise.reject(b));c=Cm();d=Vk("TIME_CREATED_MS");if(!c){e=dm("getHotConfig token error");Yk(e);m.jumpTo(2);break}return m.yield(Goa(c),3);case 3:if((f=m.yieldResult)&&f.timestamp>d)return Hm(a,f.config),a.setHotHashData(f.hashData),m.return(Jm());case 2:Hm(a,Vk("RAW_HOT_CONFIG_GROUP"));a.setHotHashData(Vk("SERIALIZED_HOT_HASH_DATA")); if(!(c&&a.hotGlobalConfigGroup&&a.hotHashData)){m.jumpTo(4);break}return m.yield(Doa(a.hotGlobalConfigGroup,a.hotHashData,c,d),4);case 4:return a.hotGlobalConfigGroup?m.return(Jm()):(h=new Dl("Config not available in ytConfig"),Yk(h),m.return(Promise.reject(h)));}})},Moa=function(a){var b,c,d,e,f,h; return ra(function(m){switch(m.nextAddress){case 1:if(a.coldGlobalConfigGroup)return m.return(Im());if(!a.isConfigDbInitialized)return b=dm("getColdConfig IDB not initialized"),Yk(b),m.return(Promise.reject(b));c=Cm();d=Vk("TIME_CREATED_MS");if(!c){e=dm("getColdConfig");Yk(e);m.jumpTo(2);break}return m.yield(Foa(c),3);case 3:if((f=m.yieldResult)&&f.timestamp>d)return Ioa(a,f.config),Loa(a,f.configData),Km(a,f.hashData),m.return(Im());case 2:Ioa(a,Vk("RAW_COLD_CONFIG_GROUP"));Km(a,Vk("SERIALIZED_COLD_HASH_DATA")); var p;Loa(a,(p=a.coldGlobalConfigGroup)==null?void 0:p.configData);if(!(c&&a.coldGlobalConfigGroup&&a.coldHashData&&a.configData)){m.jumpTo(4);break}return m.yield(Eoa(a.coldGlobalConfigGroup,a.coldHashData,a.configData,c,d),4);case 4:return a.coldGlobalConfigGroup?m.return(Im()):(h=new Dl("Config not available in ytConfig"),Yk(h),m.return(Promise.reject(h)));}})},Joa=function(a){if(!a.hotGlobalConfigGroup||!a.coldGlobalConfigGroup){if(!Cm()){var b=dm("scheduleGetConfigs"); Yk(b)}a.initJob||(a.initJob=bj.addLowPriorityJob(function(){return ra(function(c){switch(c.nextAddress){case 1:return c.setCatchFinallyBlocks(2),c.yield(Koa(a),4);case 4:c.leaveTryBlock(3);break;case 2:c.enterCatchBlock();case 3:return c.setCatchFinallyBlocks(5),c.yield(Moa(a),7);case 7:c.leaveTryBlock(6);break;case 5:c.enterCatchBlock();case 6:a.initJob&&(a.initJob=0),c.jumpToEnd();}})},100))}},Noa=function(a,b,c){var d,e,f; return ra(function(h){switch(h.nextAddress){case 1:if(!x("start_client_gcf")){h.jumpTo(0);break}c&&Hm(a,c);a.setHotHashData(b);d=Cm();if(!d){h.jumpTo(3);break}if(c){h.jumpTo(4);break}return h.yield(Goa(d),5);case 5:e=h.yieldResult,c=(f=e)==null?void 0:f.config;case 4:return h.yield(Doa(c,b,d),3);case 3:if(c)for(var m=c,p=l(a.configUpdateService.sharedHotConfigJobQueue),q=p.next();!q.done;q=p.next())q=q.value,q(m);h.jumpToEnd();}})},Ooa=function(a,b,c){var d,e,f,h; return ra(function(m){if(m.nextAddress==1){if(!x("start_client_gcf"))return m.jumpTo(0);Km(a,b);return(d=Cm())?c?m.jumpTo(4):m.yield(Foa(d),5):m.jumpTo(0)}m.nextAddress!=4&&(e=m.yieldResult,c=(f=e)==null?void 0:f.config);if(!c)return m.jumpTo(0);h=c.configData;return m.yield(Eoa(c,b,h,d),0)})},Poa=function(){if(!Lm.instance){var a=new Lm; Lm.instance=a}a=Lm.instance;var b=im()-a.debounceTimer;if(!(a.debounceTimer!==0&&b0&&(b.request={internalExperimentFlags:c});Soa(a,void 0,b);Toa(void 0, b);Uoa(void 0,b);Voa(a,void 0,b);Woa(void 0,b);x("start_client_gcf")&&Xoa(void 0,b);Vk("DELEGATED_SESSION_ID")&&!x("pageid_as_header_web")&&(b.user={onBehalfOfUser:Vk("DELEGATED_SESSION_ID")});!x("fill_delegate_context_in_gel_killswitch")&&(a=Vk("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(b.user=Object.assign({},b.user,{serializedDelegationContext:a}));a=Vk("INNERTUBE_CONTEXT");var d;if(x("enable_persistent_device_token")&&(a==null?0:(d=a.client)==null?0:d.rolloutToken)){var e;b.client.rolloutToken= a==null?void 0:(e=a.client)==null?void 0:e.rolloutToken}d=Object;e=d.assign;a=b.client;c={};for(var f=l(Object.entries(Zk(Vk("DEVICE","")))),h=f.next();!h.done;h=f.next()){var m=l(h.value);h=m.next().value;m=m.next().value;h==="cbrand"?c.deviceMake=m:h==="cmodel"?c.deviceModel=m:h==="cbr"?c.browserName=m:h==="cbrver"?c.browserVersion=m:h==="cos"?c.osName=m:h==="cosver"?c.osVersion=m:h==="cplatform"&&(c.platform=m)}b.client=e.call(d,a,c);return b} function Soa(a,b,c){a=a.innertubeContextClientName;if(a==="WEB"||a==="MWEB"||a===1||a===2)if(b){c=Ef(b,kna,96)||new kna;var d=rna();d=Object.keys(pna).indexOf(d);d=d===-1?null:d;d!==null&&hg(c,3,d);Gf(b,96,c)}else c&&(c.client.mainAppWebInfo=(d=c.client.mainAppWebInfo)!=null?d:{},c.client.mainAppWebInfo.webDisplayMode=rna())} function Toa(a,b){var c=xa("yt.embedded_player.embed_url");c&&(a?(b=Ef(a,rl,7)||new rl,fg(b,4,c),Gf(a,7,b)):b&&(b.thirdParty={embedUrl:c}))} function Uoa(a,b){var c;if(x("web_log_memory_total_kbytes")&&((c=ua.navigator)==null?0:c.deviceMemory)){var d;c=(d=ua.navigator)==null?void 0:d.deviceMemory;a?qf(a,95,Pe(c*1E6)):b&&(b.client.memoryTotalKbytes=""+c*1E6)}} function Voa(a,b,c){if(a.appInstallData)if(b){var d;c=(d=Ef(b,pl,62))!=null?d:new pl;fg(c,6,a.appInstallData);Gf(b,62,c)}else c&&(c.client.configInfo=c.client.configInfo||{},c.client.configInfo.appInstallData=a.appInstallData)} function Woa(a,b){var c=Hna();c&&(a?hg(a,61,Dna[c]):b&&(b.client.connectionType=c));x("web_log_effective_connection_type")&&(c=Ina())&&(a?hg(a,94,Ena[c]):b&&(b.client.effectiveConnectionType=c))} function Yoa(a,b,c){c=c===void 0?{}:c;var d={};Vk("EOM_VISITOR_DATA")?d={"X-Goog-EOM-Visitor-Id":Vk("EOM_VISITOR_DATA")}:d={"X-Goog-Visitor-Id":c.visitorData||Vk("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;b=c.authorization||Vk("AUTHORIZATION");b||(a?b="Bearer "+xa("gapi.auth.getToken")().access_token:(a=tna(sna()),x("pageid_as_header_web")||delete a["X-Goog-PageId"],d=Object.assign({},d,a)));b&&(d.Authorization=b);return d} function Xoa(a,b){var c=Poa();if(c){var d=c.coldConfigData,e=c.coldHashData;c=c.hotHashData;if(a){var f;b=(f=Ef(a,pl,62))!=null?f:new pl;d=fg(b,1,d);fg(d,3,e).setHotHashData(c);Gf(a,62,b)}else b&&(b.client.configInfo=b.client.configInfo||{},d&&(b.client.configInfo.coldConfigData=d),e&&(b.client.configInfo.coldHashData=e),c&&(b.client.configInfo.hotHashData=c))}} ;var Zoa=typeof TextEncoder!=="undefined"?new TextEncoder:null,$oa=Zoa?function(a){return Zoa.encode(a)}:function(a){a=Qca(a); for(var b=new Uint8Array(a.length),c=0;cmpa||fmpa||m=rpa&&(ppa++,opa=!1),tpa(e))}a.headers= Object.assign({},{"Content-Encoding":"gzip"},a.headers||{});a.body=f;return a}catch(q){return Yk(q),a}}else return a} function spa(a){try{return new Blob(a.split("")).size}catch(b){return Yk(b),null}} function tpa(a){x("gel_compression_csi_killswitch")||!x("log_gel_compression_latency")&&!x("log_gel_compression_latency_lr")||lpa("gel_compression",a,{sampleRate:.1})} ;function vpa(a){a=Object.assign({},a);delete a.Authorization;var b=Gi();if(b){var c=new ej;c.update(Vk("INNERTUBE_API_KEY"));c.update(b);a.hash=Fd(c.digest(),3)}return a} ;var wpa;function Tm(){wpa||(wpa=new Ql("yt.innertube"));return wpa} function xpa(a,b,c,d){if(d)return null;d=Tm().get("nextId",!0)||1;var e=Tm().get("requests",!0)||{};e[d]={method:a,request:b,authState:vpa(c),requestTime:Math.round(im())};Tm().set("nextId",d+1,86400,!0);Tm().set("requests",e,86400,!0);return d} function ypa(a){var b=Tm().get("requests",!0)||{};delete b[a];Tm().set("requests",b,86400,!0)} function zpa(a){var b=Tm().get("requests",!0);if(b){for(var c in b){var d=b[c];if(!(Math.round(im())-d.requestTime<6E4)){var e=d.authState,f=vpa(Yoa(!1));zia(e,f)&&(e=d.request,"requestTimeMs"in e&&(e.requestTimeMs=Math.round(im())),Um(a,d.method,e,{}));delete b[c]}}Tm().set("requests",b,86400,!0)}} ;var Wm=function(a){var b=this;this.bypassDbTokenDependency=this.initialized=!1;this.potentialEsfErrorCounter=this.intervalJob=0;this.handleError=function(){}; this.handleWarning=function(){}; this.now=Date.now;this.disableYtIdbTransactions=!1;this.TEST_ONLY={setDbToken:function(t){b.databaseToken=t}, triggerThrottle:function(){b.throttledSend()}, cancelThrottle:function(){b.cancelThrottledSend()}, immediateSend:function(t){return ra(function(u){return u.yield(b.immediateSend(t),0)})}, requestWithinAgeLimit:function(t,u){return b.requestWithinAgeLimit(t,u)}, retryQueuedRequests:function(){b.retryQueuedRequests()}}; var c;this.throttleTimeout=(c=a.throttleTimeout)!=null?c:100;var d;this.retryMaxAttempts=(d=a.retryMaxAttempts)!=null?d:1;var e;this.requestAgeLimitMs=(e=a.requestAgeLimitMs)!=null?e:2592E6;var f;this.queuedRequestAgeLimitMs=(f=a.queuedRequestAgeLimitMs)!=null?f:12E4;var h;this.retryDelayMs=(h=a.retryDelayMs)!=null?h:5E3;var m;this.databaseToken=(m=a.databaseToken)!=null?m:void 0;this.enableCleaning=!!a.enableCleaning;var p;this.cleaningRate=(p=a.cleaningRate)!=null?p:.1;var q;this.potentialEsfErrorLimit= (q=a.potentialEsfErrorLimit)!=null?q:10;a.handleError&&(this.handleError=a.handleError);a.handleWarning&&(this.handleWarning=a.handleWarning);a.disableYtIdbTransactions&&(this.disableYtIdbTransactions=a.disableYtIdbTransactions);a.bypassDbTokenDependency&&(this.bypassDbTokenDependency=a.bypassDbTokenDependency);this.getBooleanFlag=a.getBooleanFlag;this.jobManager=a.jobManager;this.logsStore=a.logsStore;this.networkManager=a.networkManager;this.sendFn=a.sendFn;this.onlineEvent=a.onlineEvent;this.offlineEvent= a.offlineEvent;Vm(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&Apa(this)},Apa=function(a){Vm(a)&&!a.disableYtIdbTransactions&&(a.initialized=!0,a.enableCleaning&&Math.random()<=a.cleaningRate&&a.logsStore.cleanLogsStore(a.databaseToken),a.retryQueuedRequests(),a.networkManager.isNetworkAvailable()&&a.throttledSend(),a.networkManager.listen(a.onlineEvent,a.throttledSend.bind(a)),a.networkManager.listen(a.offlineEvent,a.cancelThrottledSend.bind(a)))}; g=Wm.prototype;g.writeThenSend=function(a,b){var c=this;b=b===void 0?{}:b;if(Vm(this)&&this.initialized){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(d,this.databaseToken).then(function(e){d.id=e;c.networkManager.isNetworkAvailable()&&c.immediateSend(d)}).catch(function(e){c.immediateSend(d); Xm(c,e)})}else this.sendFn(a,b)}; g.sendThenWrite=function(a,b,c){var d=this;b=b===void 0?{}:b;if(Vm(this)&&this.initialized){var e={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(e.skipRetry=c);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!e.skipRetry){if(!e.skipRetry){var f=b.onError?b.onError:function(){}; b.onError=function(h,m){return ra(function(p){if(p.nextAddress==1)return p.yield(d.logsStore.set(e,d.databaseToken).catch(function(q){Xm(d,q)}),2); f(h,m);p.jumpToEnd()})}}this.sendFn(a,b,e.skipRetry)}else this.logsStore.set(e,this.databaseToken).catch(function(h){d.sendFn(a,b,e.skipRetry); Xm(d,h)})}else this.sendFn(a,b,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&c)}; g.sendAndWrite=function(a,b){var c=this;b=b===void 0?{}:b;if(Vm(this)&&this.initialized){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(h,m){d.id!==void 0?c.logsStore.deleteRequest(d.id,c.databaseToken):e=!0;c.networkManager.networkStatusHint&&c.getBooleanFlag&&c.getBooleanFlag("vss_network_hint")&&c.networkManager.networkStatusHint(!0);f(h,m)}; this.sendFn(d.url,d.options,void 0,!0);this.logsStore.set(d,this.databaseToken).then(function(h){d.id=h;e&&c.logsStore.deleteRequest(d.id,c.databaseToken)}).catch(function(h){Xm(c,h)})}else this.sendFn(a,b,void 0,!0)}; g.throttledSend=function(){var a=this;if(!Vm(this))throw Error("IndexedDB is not supported: throttleSend");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var b;return ra(function(c){if(c.nextAddress==1)return c.yield(a.logsStore.getMostRecentByStatus("NEW",a.databaseToken),2);if(c.nextAddress!=3)return b=c.yieldResult,b?c.yield(a.immediateSend(b),3):(a.cancelThrottledSend(),c.return());a.intervalJob&&(a.intervalJob=0,a.throttledSend());c.jumpToEnd()})},this.throttleTimeout))}; g.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0}; g.immediateSend=function(a){var b=this,c;return ra(function(d){switch(d.nextAddress){case 1:if(!Vm(b))throw Error("IndexedDB is not supported: immediateSend");if(a.id===void 0){d.jumpTo(2);break}return d.yield(b.logsStore.markAsQueued(a.id,b.databaseToken),3);case 3:(c=d.yieldResult)||b.handleWarning(Error("The request cannot be found in the database."));case 2:if(b.requestWithinAgeLimit(a,b.requestAgeLimitMs)){d.jumpTo(4);break}b.handleWarning(Error("Networkless Logging: Stored logs request expired age limit")); if(a.id===void 0){d.jumpTo(5);break}return d.yield(b.logsStore.deleteRequest(a.id,b.databaseToken),5);case 5:return d.return();case 4:a.skipRetry||(a=Bpa(b,a));if(!a){d.jumpTo(0);break}if(!a.skipRetry||a.id===void 0){d.jumpTo(8);break}return d.yield(b.logsStore.deleteRequest(a.id,b.databaseToken),8);case 8:b.sendFn(a.url,a.options,!!a.skipRetry),d.jumpToEnd();}})}; var Bpa=function(a,b){if(!Vm(a))throw Error("IndexedDB is not supported: updateRequestHandlers");var c=b.options.onError?b.options.onError:function(){}; b.options.onError=function(e,f){var h,m,p,q;return ra(function(t){switch(t.nextAddress){case 1:h=Cpa(f);(m=Dpa(f))&&a.getBooleanFlag&&a.getBooleanFlag("web_enable_error_204")&&a.handleError(Error("Request failed due to compression"),b.url,f);if(!(a.getBooleanFlag&&a.getBooleanFlag("nwl_consider_error_code")&&h||a.getBooleanFlag&&!a.getBooleanFlag("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.potentialEsfErrorLimit)){t.jumpTo(2);break}if(!a.networkManager.sendNetworkCheckRequest){t.jumpTo(3); break}return t.yield(a.networkManager.sendNetworkCheckRequest(),3);case 3:if(a.networkManager.isNetworkAvailable()){t.jumpTo(2);break}c(e,f);if(!a.getBooleanFlag||!a.getBooleanFlag("nwl_consider_error_code")||((p=b)==null?void 0:p.id)===void 0){t.jumpTo(6);break}return t.yield(a.logsStore.resetRequest(b.id,a.databaseToken,!1),6);case 6:return t.return();case 2:if(a.getBooleanFlag&&a.getBooleanFlag("nwl_consider_error_code")&&!h&&a.potentialEsfErrorCounter>a.potentialEsfErrorLimit)return t.return(); a.potentialEsfErrorCounter++;if(((q=b)==null?void 0:q.id)===void 0){t.jumpTo(8);break}return b.sendCount=b?!1:!0}; Wm.prototype.retryQueuedRequests=function(){var a=this;if(!Vm(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(b){b&&!a.requestWithinAgeLimit(b,a.queuedRequestAgeLimitMs)?a.jobManager.addLowPriorityJob(function(){return ra(function(c){if(c.nextAddress==1)return b.id===void 0?c.jumpTo(2):c.yield(a.logsStore.resetRequest(b.id,a.databaseToken),2);a.retryQueuedRequests();c.jumpToEnd()})}):a.networkManager.isNetworkAvailable()&& a.throttledSend()})}; var Xm=function(a,b){a.writeError&&!a.networkManager.isNetworkAvailable()?a.writeError(b):a.handleError(b)},Vm=function(a){return!!a.databaseToken||a.bypassDbTokenDependency}; function Cpa(a){var b;return(a=a==null?void 0:(b=a.error)==null?void 0:b.code)&&a>=400&&a<=599?!1:!0} function Dpa(a){var b;a=a==null?void 0:(b=a.error)==null?void 0:b.code;return!(a!==400&&a!==415)} ;var Ym; function Epa(){if(Ym)return Ym();var a={};Ym=Fm("LogsDatabaseV2",{objectStores:(a.LogsRequestsStore={addedAtVersion:2},a),shared:!1,upgrade:function(b,c,d){c(2)&&nm(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.JSC$6548_wrapped.indexNames.contains("newRequest")&&d.JSC$6548_wrapped.deleteIndex("newRequest"),pm(d,"newRequestV2",["status","interface","timestamp"]));c(7)&&b.JSC$6533_wrapped.objectStoreNames.contains("sapisid")&&b.JSC$6533_wrapped.deleteObjectStore("sapisid");c(9)&& b.JSC$6533_wrapped.objectStoreNames.contains("SWHealthLog")&&b.JSC$6533_wrapped.deleteObjectStore("SWHealthLog")}, version:9});return Ym()} ;function Zm(a){return zm(Epa(),a)} function Fpa(a,b){var c,d,e,f;return ra(function(h){if(h.nextAddress==1)return c={startTime:im(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},h.yield(Zm(b),2);if(h.nextAddress!=3)return d=h.yieldResult,e=Object.assign({},a,{options:JSON.parse(JSON.stringify(a.options)),interface:Vk("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),h.yield(d.put("LogsRequestsStore",e),3);f=h.yieldResult;c.ticks.tc=im();Gpa(c);return h.return(f)})} function Hpa(a,b){var c,d,e,f,h,m,p,q,t;return ra(function(u){if(u.nextAddress==1)return c={startTime:im(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},u.yield(Zm(b),2);if(u.nextAddress!=3)return d=u.yieldResult,e=Vk("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[a,e,0],h=[a,e,im()],m=IDBKeyRange.bound(f,h),p="prev",x("use_fifo_for_networkless")&&(p="next"),q=void 0,t=a==="NEW"?"readwrite":"readonly",x("use_readonly_for_get_most_recent_by_status_killswitch")&&(t="readwrite"),u.yield(lm(d, ["LogsRequestsStore"],{mode:t,enableRetries:!0},function(v){return vm(v.objectStore("LogsRequestsStore").index("newRequestV2"),{query:m,direction:p},function(w){w.cursor.value&&(q=w.cursor.value,a==="NEW"&&(q.status="QUEUED",w.update(q)))})}),3); c.ticks.tc=im();Gpa(c);return u.return(q)})} function Ipa(a,b){var c;return ra(function(d){if(d.nextAddress==1)return d.yield(Zm(b),2);c=d.yieldResult;return d.return(lm(c,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(e){var f=e.objectStore("LogsRequestsStore");return f.get(a).then(function(h){if(h)return h.status="QUEUED",f.put(h).then(function(){return h})})}))})} function Jpa(a,b,c,d){c=c===void 0?!0:c;var e;return ra(function(f){if(f.nextAddress==1)return f.yield(Zm(b),2);e=f.yieldResult;return f.return(lm(e,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(h){var m=h.objectStore("LogsRequestsStore");return m.get(a).then(function(p){return p?(p.status="NEW",c&&(p.sendCount+=1),d!==void 0&&(p.options.compress=d),m.put(p).then(function(){return p})):fm.resolve(void 0)})}))})} function Kpa(a,b){var c;return ra(function(d){if(d.nextAddress==1)return d.yield(Zm(b),2);c=d.yieldResult;return d.return(c.delete("LogsRequestsStore",a))})} function Lpa(a){var b,c;return ra(function(d){if(d.nextAddress==1)return d.yield(Zm(a),2);b=d.yieldResult;c=im()-2592E6;return d.yield(lm(b,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(e){return qm(e.objectStore("LogsRequestsStore"),{},function(f){if(f.cursor.value.timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})} function Mpa(){ra(function(a){return a.yield(yoa(),0)})} function Gpa(a){x("nwl_csi_killswitch")||lpa("networkless_performance",a,{sampleRate:1})} ;var Npa={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,offlineSystemFailure:546,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationPlayablesMetrics:533,liveCreationStreamWebrtcStats:288,liveCreationWebrtcError:526,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,vrCowatchUserStartOrJoinEvent:504,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,tvhtml5DeviceStorageStats:535,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,mdeQosEvent:510,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,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,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,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511, embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515,adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527,watchZoomStateChange:528,metadataEditorEvent:529,kidsPrismaDeeplinksEvent:530,creationOrchestrationEvent:531,coordinatedSamplingTriggered:532,dnaRecapScreenshotEvent:534, mdxLocalNetworkPermissionRequestEvent:536,mdxLocalNetworkPermissionResponseEvent:537,sessionReplayEvent:538,sessionReplayStatusEvent:539,loggingReliabilityProbe:540,keyValueStoreStatsEvent:541,deviceLocationPermissionEvent:542,remoteControlStarted:543,remoteControlCompleted:544,reelsAdsEvents:545,ytlrLoaderTestHarnessEvent:547,biometricAuthenticationEvent:548,mainAppLifecycleEvent:549,musicDownloadBackgroundContinuedProcessingTask:550,musicMetadataMismatchEvent:551,scrollToComponentCompleted:552, entityStoreTelemetry:553};var Opa={},Ppa=Fm("ServiceWorkerLogsDatabase",{objectStores:(Opa.SWHealthLog={addedAtVersion:1},Opa),shared:!0,upgrade:function(a,b){b(1)&&pm(nm(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});function Qpa(a){return zm(Ppa(),a)} function Rpa(a){var b,c;ra(function(d){if(d.nextAddress==1)return d.yield(Qpa(a),2);b=d.yieldResult;c=im()-2592E6;return d.yield(lm(b,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(e){return qm(e.objectStore("SWHealthLog"),{},function(f){if(f.cursor.value.timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})} function Spa(a){var b;return ra(function(c){if(c.nextAddress==1)return c.yield(Qpa(a),2);b=c.yieldResult;return c.yield(b.clear("SWHealthLog"),0)})} ;var Tpa={},Upa=0; function $m(a,b,c,d,e,f,h){e=e===void 0?"":e;f=f===void 0?!1:f;h=h===void 0?!1:h;if(a)if(c&&!Yl("cobalt"))Yk(new Dl("Legacy referrer-scrubbed ping detected")),a&&Vpa(a,void 0,{scrubReferrer:!0});else if(e)Kma(a,b,"POST",e,d);else if(Vk("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d||h)Kma(a,b,"GET","",d,void 0,f,h);else{b:{try{c:{var m=new Uaa({url:a});if(m.urlParamValues_.dsh==="1")var p=null;else{var q=m.urlParamValues_.ae;if(q==="1"){var t=m.urlParamValues_.adurl;if(t)try{p={version:3,directUrl:decodeURIComponent(t), asyncUrl:Taa(m.JSC$5981_url_,"act=1","ri=1",Vaa(m))};break c}catch(N){}}p=q==="2"?{version:4,directUrl:Taa(m.JSC$5981_url_,"dct=1","suid="+m.suid_,"ri=1"),asyncUrl:Taa(m.JSC$5981_url_,"act=1","ri=1","suid="+m.suid_)}:null}}if(p){var u=Uc(a),v;if(!(v=!u||!u.endsWith("/aclk"))){var w=a.search(Hca),y=Gca(a,0,"ri",w);if(y<0)var A=null;else{var C=a.indexOf("&",y);if(C<0||C>w)C=w;A=Mc(a.slice(y+3,C!==-1?C:0))}v=A!=="1"}var I=!v;break b}}catch(N){}I=!1}if(I){b:{try{if(window.navigator&&window.navigator.sendBeacon&& window.navigator.sendBeacon(a,"")){var K=!0;break b}}catch(N){}K=!1}K?(b&&b(),c=!0):c=!1}else c=!1;c||Vpa(a,b)}} function Vpa(a,b,c){c=c===void 0?{}:c;var d=new Image,e=""+Upa++;Tpa[e]=d;d.onload=d.onerror=function(){b&&Tpa[e]&&b();delete Tpa[e]}; c.scrubReferrer&&(d.referrerPolicy="no-referrer");d.src=a} function an(a,b){Wpa(a,b==="ATTRIBUTION_SRC_MODE_XHR_OPTION")} function Xpa(a){var b;return((b=document.featurePolicy)==null?0:b.allowedFeatures().includes("attribution-reporting"))?a+"&nis=6":a+"&nis=5"} function Ypa(a){if(!a)return!1;try{var b;if(((b=Zk(a))==null?void 0:b.asm)==="4")return!0}catch(c){Xk(c)}return!1} function Wpa(a,b){b?(a=Xpa(a),$m(a,void 0,void 0,void 0,"",!0,!0)):$m(a)} ;var Zpa;function bn(){Zpa||(Zpa=new Ql("yt.offline"));return Zpa} function $pa(a){if(x("offline_error_handling")){var b=bn().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);bn().set("errors",b,2592E3,!0)}} ;var cn=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},aqa=function(){if(!cn.instance){var a=xa("yt.networkRequestMonitor.instance")||new cn; va("yt.networkRequestMonitor.instance",a);cn.instance=a}return cn.instance}; cn.prototype.requestComplete=function(a,b){b&&(this.anyRequestHasSucceeded=!0);a=this.removeParams(a);this.requestMap.get(a)||this.requestMap.set(a,b)}; cn.prototype.isEndpointCFR=function(a){a=this.removeParams(a);return(a=this.requestMap.get(a))?!1:a===!1&&this.anyRequestHasSucceeded?!0:null}; cn.prototype.removeParams=function(a){return a.split("?")[0]}; cn.prototype.removeParams=cn.prototype.removeParams;cn.prototype.isEndpointCFR=cn.prototype.isEndpointCFR;cn.prototype.requestComplete=cn.prototype.requestComplete;cn.getInstance=aqa;var dn=function(){Yi.call(this);var a=this;this.shouldFlushErrors=!1;this.sharedNetworkStatusManager=Aja();this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(a.shouldFlushErrors&&x("offline_error_handling")){var b=bn().get("errors",!0);if(b){for(var c in b)if(b[c]){var d=new Dl(c,"sent via offline_errors");d.name=b[c].name;d.stack=b[c].stack;d.level=b[c].level;Xk(d)}bn().set("errors",{},2592E3,!0)}}})}; k(dn,Yi);var bqa=function(){if(!dn.instance){var a=xa("yt.networkStatusManager.instance")||new dn;va("yt.networkStatusManager.instance",a);dn.instance=a}return dn.instance}; g=dn.prototype;g.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()}; g.networkStatusHint=function(a){this.sharedNetworkStatusManager.isOnline=a}; g.getWindowStatus=function(){var a=window.navigator.onLine;return a===void 0?!0:a}; g.enableErrorFlushing=function(){this.shouldFlushErrors=!0}; g.listen=function(a,b){return this.sharedNetworkStatusManager.listen(a,b)}; g.sendNetworkCheckRequest=function(a){return $i(this.sharedNetworkStatusManager,a)}; dn.prototype.sendNetworkCheckRequest=dn.prototype.sendNetworkCheckRequest;dn.prototype.listen=dn.prototype.listen;dn.prototype.enableErrorFlushing=dn.prototype.enableErrorFlushing;dn.prototype.getWindowStatus=dn.prototype.getWindowStatus;dn.prototype.networkStatusHint=dn.prototype.networkStatusHint;dn.prototype.isNetworkAvailable=dn.prototype.isNetworkAvailable;dn.getInstance=bqa;var en=function(a){a=a===void 0?{}:a;Yi.call(this);var b=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=bqa();var c=xa("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);c&&(a.rateLimit?(this.rateLimit=a.rateLimit,c("networkstatus-online",function(){cqa(b,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){cqa(b,"publicytnetworkstatus-offline")})):(c("networkstatus-online",function(){b.dispatchEvent("publicytnetworkstatus-online")}),c("networkstatus-offline", function(){b.dispatchEvent("publicytnetworkstatus-offline")})))}; k(en,Yi);en.prototype.isNetworkAvailable=function(){var a=xa("yt.networkStatusManager.instance.isNetworkAvailable");return a?a.bind(this.nsmInstance)():!0}; en.prototype.networkStatusHint=function(a){var b=xa("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);b&&b(a)}; en.prototype.sendNetworkCheckRequest=function(a){var b=this,c;return ra(function(d){c=xa("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.nsmInstance);return x("skip_network_check_if_cfr")&&aqa().isEndpointCFR("generate_204")?d.return(new Promise(function(e){var f;b.networkStatusHint(((f=window.navigator)==null?void 0:f.onLine)||!0);e(b.isNetworkAvailable())})):c?d.return(c(a)):d.return(!0)})}; var cqa=function(a,b){a.rateLimit?a.lastJobTime?(bj.cancelJob(a.schedulerJob),a.schedulerJob=bj.addLowPriorityJob(function(){a.lastPublicSignalSent!==b&&(a.dispatchEvent(b),a.lastPublicSignalSent=b,a.lastJobTime=im())},a.rateLimit-(im()-a.lastJobTime))):(a.dispatchEvent(b),a.lastPublicSignalSent=b,a.lastJobTime=im()):a.dispatchEvent(b)};var dqa,fn=function(){var a=Wm.call;dqa||(dqa=new en({logOfflineErrors:!0,enablePolling:!0}));a.call(Wm,this,{logsStore:{cleanLogsStore:Lpa,deleteRequest:Kpa,getMostRecentByStatus:Hpa,markAsQueued:Ipa,resetRequest:Jpa,set:Fpa},networkManager:dqa,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 h;b=new Dl(b.message,c,d==null?void 0:(h=d.error)==null?void 0:h.code);Yk(b,void 0,void 0,void 0,!0)}else Xk(b)}, handleWarning:Yk,sendFn:eqa,now:im,writeError:$pa,jobManager:Pl(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:ll("potential_esf_error_limit",10),getBooleanFlag:x,disableYtIdbTransactions:!(El()&&Tc(document.location.toString())!=="www.youtube-nocookie.com")});this.initializationPromise=new nj;x("networkless_immediately_drop_all_requests")&&Mpa();zoa("LogsDatabaseV2")}; k(fn,Wm);var gqa=function(){var a=xa("yt.networklessRequestController.instance");a||(a=new fn,va("yt.networklessRequestController.instance",a),x("networkless_logging")&&Dm().then(function(b){a.databaseToken=b;Apa(a);a.initializationPromise.resolve();a.enableCleaning&&Math.random()<=a.cleaningRate&&a.databaseToken&&Rpa(a.databaseToken);x("networkless_immediately_drop_sw_health_store")&&fqa(a)})); return a}; fn.prototype.writeThenSend=function(a,b){b||(b={});b=hqa(a,b);El()||(this.initialized=!1);Wm.prototype.writeThenSend.call(this,a,b)}; fn.prototype.sendThenWrite=function(a,b,c){b||(b={});b=hqa(a,b);El()||(this.initialized=!1);Wm.prototype.sendThenWrite.call(this,a,b,c)}; fn.prototype.sendAndWrite=function(a,b){b||(b={});b=hqa(a,b);El()||(this.initialized=!1);Wm.prototype.sendAndWrite.call(this,a,b)}; fn.prototype.awaitInitialization=function(){return this.initializationPromise.promise}; var fqa=function(a){var b;ra(function(c){if(!a.databaseToken)throw b=dm("clearSWHealthLogsDb"),b;return c.return(Spa(a.databaseToken).catch(function(d){a.handleError(d)}))})}; function eqa(a,b,c){b=x("web_fp_via_jspb")?Object.assign({},b):b;if(x("use_request_time_ms_header"))b.headers&&bl(a)&&(b.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round(im())));else{var d;if((d=b.postParams)==null?0:d.requestTimeMs)b.postParams.requestTimeMs=Math.round(im())}c&&Object.keys(b).length===0?$m(a):b.compress?b.postBody?(typeof b.postBody!=="string"&&(b.postBody=JSON.stringify(b.postBody)),Sm(a,b.postBody,b,nl)):Sm(a,JSON.stringify(b.postParams),b,Oma):nl(a,b)} function hqa(a,b){x("use_event_time_ms_header")&&bl(a)&&(b.headers||(b.headers={}),b.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round(im())));return b} ;var iqa=ua.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};va("ytNetworklessLoggingInitializationOptions",iqa);var gn=function(a){var b=this;this.config_=null;a?this.config_=a:Qoa()&&(this.config_=Nm());Il(0,function(){zpa(b)},5E3)}; gn.prototype.isReady=function(){!this.config_&&Qoa()&&(this.config_=Nm());return!!this.config_}; var Um=function(a,b,c,d){!Vk("VISITOR_DATA")&&b!=="visitor_id"&&Math.random()<.01&&Yk(new Dl("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady()){var e=new Dl("innertube xhrclient not ready",b,c,d);Xk(e);throw e}var f={headers:d.headers||{},method:"POST",postParams:c,postBody:d.postBody,postBodyFormat:d.postBodyFormat||"JSON",onTimeout:function(){d.onTimeout()}, onFetchTimeout:d.onTimeout,onSuccess:function(u,v){if(d.onSuccess)d.onSuccess(v)}, onFetchSuccess:function(u){if(d.onSuccess)d.onSuccess(u)}, onProgress:function(u){if(d.onProgress)d.onProgress(u)}, onError:function(u,v){if(d.onError)d.onError(v)}, onFetchError:function(u){if(d.onError)d.onError(u)}, timeout:d.timeout,withCredentials:!0,compress:d.compress};f.headers["Content-Type"]||(f.headers["Content-Type"]="application/json");var h="";(e=a.config_.innertubeHostOverride)&&(h=e);var m=a.config_.innertubeUseThirdPartyAuth||!1,p=Yoa(m,h,d);Object.assign(f.headers,p);f.headers.Authorization&&!h&&m&&(f.headers["x-origin"]=window.location.origin);var q=tma(""+h+("/youtubei/"+a.config_.innertubeApiVersion+"/"+b),{alt:"json"}),t=function(u){u=u===void 0?!1:u;var v;if(d.retry&&h!="www.youtube-nocookie.com"&&( u||x("skip_ls_gel_retry")||f.headers["Content-Type"]!=="application/json"||(v=xpa(b,c,p,m)),v)){var w=f.onSuccess,y=f.onFetchSuccess;f.onSuccess=function(C,I){ypa(v);w(C,I)}; c.onFetchSuccess=function(C,I){ypa(v);y(C,I)}}try{if(u&&d.retry&&!d.networklessOptions.bypassNetworkless)f.method="POST",d.networklessOptions.writeThenSend?gqa().writeThenSend(q,f):gqa().sendAndWrite(q,f);else if(d.compress){if(f.postBody){var A=f.postBody;typeof A!=="string"&&(A=JSON.stringify(f.postBody));Sm(q,A,f,nl)}else Sm(q,JSON.stringify(f.postParams),f,Oma);}else Oma(q,f)}catch(C){if(C.name==="InvalidAccessError")v&&(ypa(v),v=0),Yk(Error("An extension is blocking network request."));else throw C}v&&Il(0,function(){zpa(a)},5E3)}; xa("ytNetworklessLoggingInitializationOptions")&&iqa.isNwlInitialized?roa().then(function(u){t(u)}):t(!1)};var jqa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(jqa,Ig);function kqa(a,b){for(a=a.firstElementChild;a;){var c=b(a)?a:kqa(a,b);if(c)return c;a=a.nextElementSibling}return null} ;var lqa=0;function mqa(){var a=document,b;xc(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],function(c){b=a[c];return!!b}); return b} function hn(a){var b=nqa(a);b?b.focus(void 0):ln(a)} function nqa(a){return(a=kqa(a,function(b){return Ga(b)&&b.nodeType==1?Tia(b)&&!!b.offsetParent:!1}))?a:null} function ln(a,b){a.hasAttribute("tabindex")||a.setAttribute("tabindex","-1");a.focus(b)} var oqa=xa("ytDomDomGetNextId")||function(){return++lqa}; va("ytDomDomGetNextId",oqa);var pqa={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},mn=function(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 pqa||(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.pageX_=a.pageX;this.pageY_=a.pageY}}catch(e){}},qqa=function(a){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop; a.pageX_=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.pageY_=a.clientY+b}}; mn.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; mn.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; mn.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var nn=ua.ytEventsEventsListeners||{};va("ytEventsEventsListeners",nn);var rqa=ua.ytEventsEventsCounter||{count:0};va("ytEventsEventsCounter",rqa); function sqa(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 wia(nn,function(e){var f=typeof e[4]==="boolean"&&e[4]==!!d,h=Ga(e[4])&&Ga(d)&&zia(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||h)})} function on(a,b,c,d){d=d===void 0?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=sqa(a,b,c,d);if(e)return e;e=++rqa.count+"";var f=!(b!="mouseenter"&&b!="mouseleave"||!a.addEventListener||"onmouseenter"in document);var h=f?function(m){m=new mn(m);if(!si(m.relatedTarget,function(p){return p==a},!0))return m.currentTarget=a,m.type=b,c.call(a,m)}:function(m){m=new mn(m); m.currentTarget=a;return c.call(a,m)}; h=Wk(h);a.addEventListener?(b=="mouseenter"&&f?b="mouseover":b=="mouseleave"&&f?b="mouseout":b=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),tqa()||typeof d==="boolean"?a.addEventListener(b,h,d):a.addEventListener(b,h,!!d.capture)):a.attachEvent("on"+b,h);nn[e]=[a,b,c,h,d];return e} function uqa(a){var b=window;var c=c===void 0?{}:c;var d=on(b,"scroll",function(){vqa(d);a.apply(b,arguments)},c)} function vqa(a){a&&(typeof a=="string"&&(a=[a]),uc(a,function(b){if(b in nn){var c=nn[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?tqa()||typeof c==="boolean"?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete nn[b]}}))} var tqa=yh(function(){var a=!1;try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}}); window.addEventListener("test",null,b)}catch(c){}return a});function rn(a){this.JSC$6695_callback_=a;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(a=0;a<4;a++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=on(window,"mousemove",Ia(this.onMouseMove_,this));this.timerId_=jl(Ia(this.checkPosition_,this),25)} Ra(rn,Ji);rn.prototype.onMouseMove_=function(a){a.pageX_===void 0&&qqa(a);var b=a.pageX_;a.pageY_===void 0&&qqa(a);this.position_=new Ph(b,a.pageY_)}; rn.prototype.checkPosition_=function(){if(this.position_){var a=im();if(this.previousTime_!=0){var b=this.previousPosition_,c=this.position_,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.previousTime_);this.cycles_[this.index_]=Math.abs((d-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(c=b=0;c<4;c++)b+=this.cycles_[c]||0;b>=3&&this.JSC$6695_callback_();this.previousVelocity_=d}this.previousTime_=a;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}}; rn.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);vqa(this.mouseListenerKey_)};var wqa={};function xqa(){var a={};var b=a.preferMobileEvents===void 0?!1:a.preferMobileEvents;a=a.enableScrollEventListener===void 0?!0:a.enableScrollEventListener;if(xa("_lact",window)==null){var c=parseInt(Vk("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;va("_lact",c,window);va("_fact",c,window);c==-1&&sn();yqa(b,a);new rn(function(){tn("mouse",100)})}} function yqa(a,b){var c=window;a=a===void 0?!1:a;b=b===void 0?!0:b;on(c.document,"keydown",sn);on(c.document,"keyup",sn);on(c.document,"mousedown",sn);on(c.document,"mouseup",sn);a?on(c,"touchmove",function(){tn("touchmove",200)},{passive:!0}):(on(c,"resize",function(){tn("resize",200)}),b&&on(c,"scroll",function(){tn("scroll",200)})); on(c.document,"touchstart",sn,{passive:!0});on(c.document,"touchend",sn,{passive:!0})} function tn(a,b){wqa[a]||(wqa[a]=!0,bj.addLowPriorityJob(function(){sn();wqa[a]=!1},b))} function sn(){xa("_lact",window)==null&&(xqa(),xa("_lact",window));var a=Date.now();va("_lact",a,window);xa("_fact",window)==-1&&va("_fact",a,window);(a=xa("ytglobal.ytUtilActivityCallback_"))&&a()} function zqa(){var a=xa("_lact",window);return a==null?-1:Math.max(Date.now()-a,0)} ;var Aqa=new Qk("rawColdConfigGroup");var Bqa=new Qk("rawHotConfigGroup");var Cqa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(Cqa,Ig);var Dqa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(Dqa,Ig);var un=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a,500)}; k(un,Ig);un.prototype.getPayloadCase=function(){return Df(this,Eqa)}; un.prototype.getContext=function(){return Ef(this,Dqa,33)}; var Eqa=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353, 354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525,526,527,528,529,530,531,536,537,538,539,541,545,548,549,550,551,552,553];var Fqa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(Fqa,Ig);var vn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(vn,Ig);vn.prototype.setVideoId=function(a){return Bf(this,1,wn,Re(a))}; vn.prototype.getPlaylistId=function(){return ag(this,tf(this,wn,2))}; var wn=[1,2];var Gqa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(Gqa,Ig);Gqa.prototype.getContext=function(){return Ef(this,ul,1)};var Hqa=ua.ytPubsubPubsubInstance||new Bj,xn=ua.ytPubsubPubsubSubscribedKeys||{},yn=ua.ytPubsubPubsubTopicToKeys||{},Iqa=ua.ytPubsubPubsubIsSynchronous||{};function Jqa(a,b){var c=zn();if(c&&b){var d=c.subscribe(a,function(){var e=arguments,f=function(){xn[d]&&b.apply&&typeof b.apply=="function"&&b.apply(window,e)}; try{Iqa[a]?f():dl(f,0)}catch(h){Xk(h)}},void 0); xn[d]=!0;yn[a]||(yn[a]=[]);yn[a].push(d);return d}return 0} function Kqa(a){var b=zn();b&&(typeof a==="number"?a=[a]:typeof a==="string"&&(a=[parseInt(a,10)]),uc(a,function(c){b.unsubscribeByKey(c);delete xn[c]}))} function Lqa(a,b){var c=zn();c&&c.publish.apply(c,arguments)} function Mqa(a){var b=zn();if(b)if(b.clear(a),a)Nqa(a);else for(var c in yn)Nqa(c)} function zn(){return ua.ytPubsubPubsubInstance} function Nqa(a){yn[a]&&(a=yn[a],uc(a,function(b){xn[b]&&delete xn[b]}),a.length=0)} Bj.prototype.subscribe=Bj.prototype.subscribe;Bj.prototype.unsubscribeByKey=Bj.prototype.unsubscribeByKey;Bj.prototype.publish=Bj.prototype.publish;Bj.prototype.clear=Bj.prototype.clear;va("ytPubsubPubsubInstance",Hqa);va("ytPubsubPubsubTopicToKeys",yn);va("ytPubsubPubsubIsSynchronous",Iqa);va("ytPubsubPubsubSubscribedKeys",xn);var An=Symbol("injectionDeps"),Bn=function(a){this.name=a}; Bn.prototype.toString=function(){return"InjectionToken("+this.name+")"}; var Oqa=function(a){this.key=a},Pqa=function(a){this.deferredKey=a}; function Cn(a){return new Oqa(a)} var Qqa=function(){var a=this;this.providers=new Map;this.JSC$6724_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(a.providers)}, overrideProvider:function(b){var c=a.providers.get(b.provide),d=a.cachedValues.get(b.provide);a.cachedValues.delete(b.provide);a.addProvider(b);return function(){a.providers.delete(b.provide);a.cachedValues.delete(b.provide);c&&a.addProvider(c);d&&a.cachedValues.set(b.provide,d)}}}}; Qqa.prototype.addProvider=function(a){this.providers.set(a.provide,a);var b=this.JSC$6724_deferred.get(a.provide);if(b)try{b.resolver(this.resolve(a.provide))}catch(c){b.rejector(c)}}; Qqa.prototype.resolve=function(a){return a instanceof Pqa?Rqa(this,a):a instanceof Oqa?Dn(this,a.key,[],!0):Dn(this,a,[])}; var Rqa=function(a,b){b=b.deferredKey;if(a.JSC$6724_deferred.has(b))return a.JSC$6724_deferred.get(b).promise;var c=Dn(a,b,[],!0);if(c!==void 0)return Promise.resolve(c);var d={};d.promise=new Promise(function(e,f){d.resolver=e;d.rejector=f}); a.JSC$6724_deferred.set(b,d);return d.promise},Dn=function(a,b,c,d){d=d===void 0?!1:d; if(c.indexOf(b)>-1)throw Error("Deps cycle for: "+b);if(a.cachedValues.has(b))return a.cachedValues.get(b);if(!a.providers.has(b)){if(d)return;throw Error("No provider for: "+b)}d=a.providers.get(b);c.push(b);if(d.useValue!==void 0)var e=d.useValue;else if(d.useFactory)e=d[An]?Sqa(a,d[An],c):[],e=d.useFactory.apply(d,ia(e));else if(d.useClass){e=d.useClass;var f=e[An]?Sqa(a,e[An],c):[];e=new(Function.prototype.bind.apply(e,[null].concat(ia(f))))}else throw Error("Could not resolve providers for: "+ b);c.pop();d.skipCache||a.cachedValues.set(b,e);return e},Sqa=function(a,b,c){return b?b.map(function(d){return d instanceof Oqa?Dn(a,d.key,c,!0):Dn(a,d,c)}):[]};var En;function Fn(){En||(En=new Qqa);return En} function Tqa(){var a=Uqa;return function(){var b=Fn();if(!b.resolve(Cn(a))){var c={};b.addProvider((c.provide=a,c.useClass=a,c[An]=void 0,c))}return b.resolve(a)}} function Gn(a,b){var c,d;ra(function(e){c=Fn();return(d=c.resolve(Cn(a)))?(b(d),e.return(Promise.resolve(d))):e.return(c.resolve(new Pqa(a)).then(function(f){b(f);return f}))})} ;var Hn=window;function Vqa(){var a,b;return"h5vcc"in Hn&&((a=Hn.h5vcc.traceEvent)==null?0:a.traceBegin)&&((b=Hn.h5vcc.traceEvent)==null?0:b.traceEnd)?1:"performance"in Hn&&Hn.performance.mark&&Hn.performance.measure?2:0} function Wqa(a){var b=Vqa();switch(b){case 1:Hn.h5vcc.traceEvent.traceBegin("YTLR",a);break;case 2:Hn.performance.mark(a+"-start");break;case 0:break;default:Lb(b,"unknown trace type");}} function Xqa(a){var b=Vqa();switch(b){case 1:Hn.h5vcc.traceEvent.traceEnd("YTLR",a);break;case 2:b=a+"-start";var c=a+"-end";Hn.performance.mark(c);Hn.performance.measure(a,b,c);break;case 0:break;default:Lb(b,"unknown trace type");}} ;var In=x("web_enable_lifecycle_monitoring")&&Vqa()!==0,Yqa=x("web_enable_lifecycle_monitoring");function Zqa(a){var b,c;(c=(b=window).onerror)==null||c.call(b,a.message,"",0,0,a)} ;var ara=function(a){var b=this;var c=c===void 0?0:c;var d=d===void 0?Pl():d;this.JSC$6732_defaultPriority=c;this.scheduler=d;this.completedResolver=new nj;this.scheduledPayloads=a;for(a={i$jscomp$324:0};a.i$jscomp$324-1&&a.plugins.splice(b,1)})}; Jn.prototype.transition=function(a,b){var c=this;In&&Xqa(this.state);var d=this.transitions.find(function(f){return Array.isArray(f.from)?f.from.find(function(h){return h===c.state&&f.to===a}):f.from===c.state&&f.to===a}); if(d){this.jobSet&&(bra(this.jobSet),this.jobSet=void 0);cra(this,a,b);this.state=a;In&&Wqa(this.state);d=d.action.bind(this);var e=this.plugins.filter(function(f){return f[a]}).map(function(f){return f[a]}); d(dra(this,e),b)}else throw Error("no transition specified from "+this.state+" to "+a)}; var dra=function(a,b){var c=b.filter(function(e){return era(a,e)===10}),d=b.filter(function(e){return era(a,e)!==10}); return a.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var e=sa.apply(0,arguments);return ra(function(f){if(f.nextAddress==1)return f.yield(a.runImmediateJobsAsync.apply(a,[c].concat(ia(e))),2);a.setJobSetWithScheduledJobs.apply(a,[d].concat(ia(e)));f.jumpToEnd()})}:function(){var e=sa.apply(0,arguments); a.runImmediateJobsSync.apply(a,[c].concat(ia(e)));a.setJobSetWithScheduledJobs.apply(a,[d].concat(ia(e)))}}; Jn.prototype.runImmediateJobsSync=function(a){var b=sa.apply(1,arguments);Pl();for(var c=l(a),d=c.next(),e={};!d.done;e={lifecycle$jscomp$2:void 0},d=c.next())e.lifecycle$jscomp$2=d.value,Nl(function(f){return function(){fra(f.lifecycle$jscomp$2.name);gra(function(){return f.lifecycle$jscomp$2.callback.apply(f.lifecycle$jscomp$2,ia(b))}); Kn(f.lifecycle$jscomp$2.name)}}(e))}; Jn.prototype.runImmediateJobsAsync=function(a){var b=sa.apply(1,arguments),c,d,e,f;return ra(function(h){h.nextAddress==1&&(Pl(),c=l(a),d=c.next(),e={});if(h.nextAddress!=3){if(d.done)return h.jumpTo(0);e.lifecycle$jscomp$3=d.value;e.asyncJobCompletion=void 0;f=function(m){return function(){fra(m.lifecycle$jscomp$3.name);var p=gra(function(){return m.lifecycle$jscomp$3.callback.apply(m.lifecycle$jscomp$3,ia(b))}); aea(p)?m.asyncJobCompletion=x("web_lifecycle_error_handling_killswitch")?p.then(function(){Kn(m.lifecycle$jscomp$3.name)}):p.then(function(){Kn(m.lifecycle$jscomp$3.name)},function(q){Zqa(q); Kn(m.lifecycle$jscomp$3.name)}):Kn(m.lifecycle$jscomp$3.name)}}(e); Nl(f);return e.asyncJobCompletion?h.yield(e.asyncJobCompletion,3):h.jumpTo(3)}e={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};d=c.next();return h.jumpTo(2)})}; Jn.prototype.setJobSetWithScheduledJobs=function(a){var b=sa.apply(1,arguments),c=this,d=a.map(function(e){return{job:function(){fra(e.name);gra(function(){return e.callback.apply(e,ia(b))}); Kn(e.name)}, priority:era(c,e)}}); d.length&&(this.jobSet=new ara(d))}; var era=function(a,b){var c,d;return(d=(c=a.overridePriority)!=null?c:b.priority)!=null?d:0},fra=function(a){In&&a&&Wqa(a)},Kn=function(a){In&&a&&Xqa(a)},cra=function(a,b,c){Yqa&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+a.constructor.name+"] '"+a.state+"' to '"+b+"'"),console.log("with message: ",c),console.groupEnd())}; ba.Object.defineProperties(Jn.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}}); function gra(a){if(x("web_lifecycle_error_handling_killswitch"))return a();try{return a()}catch(b){Zqa(b)}} ;var Ln=function(a){Jn.call(this,a===void 0?"none":a);this.navigationTimer=null;this.overridePriority=10;this.transitions=[{from:"none",to:"application_navigating",action:this.runApplicationNavigationBegin},{from:"application_navigating",to:"none",action:this.runApplicationNavigationEnd},{from:"application_navigating",to:"application_navigating",action:function(){}}, {from:"none",to:"none",action:function(){}}]},hra; k(Ln,Jn);Ln.prototype.runApplicationNavigationBegin=function(a,b){var c=this;this.navigationTimer=Il(0,function(){c.currentState==="application_navigating"&&c.transition("none")},5E3); a(b==null?void 0:b.event)}; Ln.prototype.runApplicationNavigationEnd=function(a,b){this.navigationTimer&&(bj.cancelJob(this.navigationTimer),this.navigationTimer=null);a(b==null?void 0:b.event)}; var ira=function(){hra||(hra=new Ln);return hra};var jra=[];va("yt.logging.transport.getScrapedGelPayloads",function(){return jra});var kra=void 0,lra=void 0;var Mn=function(){var a=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return a.totalEntries}}}; Mn.prototype.storePayload=function(a,b){a=mra(a);this.store[a]?this.store[a].push(b):(this.memoizedKeySequences={},this.store[a]=[b]);this.totalEntries++;x("more_accurate_gel_parser")&&(b=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(b));return a}; Mn.prototype.smartExtractMatchingEntries=function(a){if(!a.keys.length)return[];for(var b=nra(this,a.keys.splice(0,1)[0]),c=[],d=0;d=1E3?m():d>=a?wra||(wra=Ira(function(){m();wra=void 0},0)):e-h>=10&&(Jra(b,c.tier),f.lastDebounceQueueFromLogTimeMs=e)} function Dra(a,b){if(a.endpoint==="log_event"){x("more_accurate_gel_parser")&&Un().storePayload({isJspb:!1},a.payload);Vn(a);var c=Wn(a),d=new Map;d.set(c,[a.payload]);var e=Ara(a.payload)||"";b&&(On=new b);return new uj(function(f,h){On&&On.isReady()?Kra(d,On,f,h,{bypassNetworkless:!0},!0,Xn(e)):f()})}} function Gra(a,b,c){if(b.endpoint==="log_event"){Vn(void 0,b);var d=Wn(b,!0),e=new Map;e.set(d,[af(b.payload)]);c&&(On=new c);return new uj(function(f){On&&On.isReady()?Lra(e,On,f,{bypassNetworkless:!0},!0,Xn(a)):f()})}} function Wn(a,b){var c="";if(a.dangerousLogToVisitorSession)c="visitorOnlyApprovedKey";else if(a.cttAuthInfo){if(b===void 0?0:b){b=a.cttAuthInfo.token;c=a.cttAuthInfo;var d=new vn;c.videoId?d.setVideoId(c.videoId):c.playlistId&&Bf(d,2,wn,Re(c.playlistId));Sn[b]=d}else b=a.cttAuthInfo,c={},b.videoId?c.videoId=b.videoId:b.playlistId&&(c.playlistId=b.playlistId),Rn[a.cttAuthInfo.token]=c;c=a.cttAuthInfo.token}return c} function Yn(a,b,c){a=a===void 0?{}:a;b=b===void 0?!1:b;new uj(function(d,e){var f=Hra(b,c),h=f.useVideoStatsEndPoint;f.useVideoStatsEndPoint=!1;Mra(f.queueTimer);Mra(f.queueMaxTimer);f.queueMaxTimer=0;On&&On.isReady()?c===void 0&&x("enable_web_tiered_gel")?Nra(d,e,a,b,300,h):Nra(d,e,a,b,c,h):(Jra(b,c),d())})} function Nra(a,b,c,d,e,f){var h=On;c=c===void 0?{}:c;d=d===void 0?!1:d;e=e===void 0?200:e;f=f===void 0?!1:f;var m=new Map,p=new Map,q={isJspb:d,cttAuthInfo:void 0,tier:e},t={isJspb:d,cttAuthInfo:void 0};if(d){b=l(Object.keys(Tn));for(e=b.next();!e.done;e=b.next())e=e.value,p=x("enable_web_tiered_gel")?Un().smartExtractMatchingEntries({keys:[q,t],sizeLimit:1E3}):Un().extractMatchingEntries({isJspb:!0,cttAuthInfo:e}),p.length>0&&m.set(e,p),(x("web_fp_via_jspb_and_json")&&c.writeThenSend||!x("web_fp_via_jspb_and_json"))&& delete Tn[e];Lra(m,h,a,c,!1,f)}else{m=l(Object.keys(Tn));for(q=m.next();!q.done;q=m.next())q=q.value,t=x("enable_web_tiered_gel")?Un().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:q,tier:e},{isJspb:!1,cttAuthInfo:q}],sizeLimit:1E3}):Un().extractMatchingEntries({isJspb:!1,cttAuthInfo:q}),t.length>0&&p.set(q,t),(x("web_fp_via_jspb_and_json")&&c.writeThenSend||!x("web_fp_via_jspb_and_json"))&&delete Tn[q];Kra(p,h,a,b,c,!1,f)}} function Jra(a,b){a=a===void 0?!1:a;b=b===void 0?200:b;var c=function(){Yn({writeThenSend:!0},a,b)},d=Hra(a,b),e=d===vra||d===ura?5E3:qra; x("web_gel_timeout_cap")&&!d.queueMaxTimer&&(e=Ira(function(){c()},e),d.queueMaxTimer=e); Mra(d.queueTimer);e=Vk("LOGGING_BATCH_TIMEOUT",ll("web_gel_debounce_ms",1E4));x("shorten_initial_gel_batch_timeout")&&Qn&&(e=pra);e=Ira(function(){ll("gel_min_batch_size")>0?Un().getSequenceCount({cttAuthInfo:void 0,isJspb:a,tier:b})>=rra&&c():c()},e); d.queueTimer=e} function Kra(a,b,c,d,e,f,h){e=e===void 0?{}:e;var m=Math.round(im()),p=a.size,q=Ora(h);a=l(a);var t=a.next();for(h={};!t.done;h={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$3:void 0},t=a.next()){var u=l(t.value);t=u.next().value;u=u.next().value;h.batchRequest=Yh({context:Roa(b.config_||Nm())});if(!Fa(u)&&!x("throw_err_when_logevent_malformed_killswitch")){d();break}h.batchRequest.events=u;(u=Rn[t])&&Pra(h.batchRequest,t, u);delete Rn[t];h.dangerousLogToVisitorSession=t==="visitorOnlyApprovedKey";Qra(h.batchRequest,m,h.dangerousLogToVisitorSession);Rra(e);h.onSuccess$jscomp$3=function(v){x("start_client_gcf")&&bj.addLowPriorityJob(function(){return ra(function(w){return w.yield(Sra(v),0)})}); p--;p||c()}; h.networkFailures=0;h.onError$jscomp$3=function(v){return function(){v.networkFailures++;if(e.bypassNetworkless&&v.networkFailures===1)try{Um(b,q,v.batchRequest,Tra({writeThenSend:!0},v.dangerousLogToVisitorSession,v.onSuccess$jscomp$3,v.onError$jscomp$3,f)),Qn=!1}catch(w){Xk(w),d()}p--;p||c()}}(h); try{Um(b,q,h.batchRequest,Tra(e,h.dangerousLogToVisitorSession,h.onSuccess$jscomp$3,h.onError$jscomp$3,f)),Qn=!1}catch(v){Xk(v),d()}}} function Lra(a,b,c,d,e,f){d=d===void 0?{}:d;var h=Math.round(im()),m={value:a.size},p=new Map([].concat(ia(a)));p=l(p);for(var q=p.next();!q.done;q=p.next()){var t=l(q.value).next().value,u=a.get(t);q=new Gqa;var v=b.config_||Nm(),w=new ul,y=new ql;fg(y,1,v.innertubeContextHostLanguage);fg(y,2,v.innertubeContextGeoLocation);hg(y,16,v.innertubeContextClientNameFieldNumber);fg(y,17,v.innertubeContextClientVersion);if(v.innertubeContextClientConfigInfo){var A=v.innertubeContextClientConfigInfo,C=new pl; A.coldConfigData&&fg(C,1,A.coldConfigData);A.appInstallData&&fg(C,6,A.appInstallData);A.coldHashData&&fg(C,3,A.coldHashData);A.hotHashData&&C.setHotHashData(A.hotHashData);Gf(y,62,C)}(A=ua.devicePixelRatio)&&A!=1&&qf(y,65,Ee(A));A=Fma();A!==""&&fg(y,54,A);A=Gma();if(A.length>0){C=new ona;for(var I=0;I65535&&(a=1);Uk("BATCH_CLIENT_COUNTER",a);return a} function Pra(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 Vn(a,b){var c=xa("yt.logging.transport.enableScrapingForTest"),d=ml("il_payload_scraping")==="enable_il_payload_scraping";if(!c)if(d)jra=[],va("yt.logging.transport.enableScrapingForTest",!0),va("yt.logging.transport.scrapedPayloadsForTesting",jra),va("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),va("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), va("yt.logging.transport.scrapeClientEvent",!0);else return;c=xa("yt.logging.transport.scrapedPayloadsForTesting");d=xa("yt.logging.transport.payloadToScrape");b&&(b=b.payload,(b=xa("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(b)())&&c.push(b));b=xa("yt.logging.transport.scrapeClientEvent");if(d&&d.length>=1)for(var e=0;e0){h=!0;break}}h&&(h=!1,e?h=!0:(typeof a==="string"?m=a:ErrorEvent&&a instanceof ErrorEvent?(h=!0,m=a.message,b=a.filename,c=a.lineno,d=a.colno):(m="Unknown error",b="Unknown file",c=0),e=new Dl(m),e.name="UnhandledWindowError",e.message=m,e.fileName= b,e.lineNumber=c,isNaN(d)?delete e.columnNumber:e.columnNumber=d),x("wiz_enable_component_stack_propagation_killswitch")||(f=Zra(e,f)),f&&go(e,f),h?co(e):fo(e))} function co(a,b,c,d,e,f,h,m){f=f===void 0?{}:f;f.name=c||Vk("INNERTUBE_CONTEXT_CLIENT_NAME",1);f.version=d||Vk("INNERTUBE_CONTEXT_CLIENT_VERSION");c=f;b=b===void 0?"ERROR":b;h=h===void 0?!1:h;b=b===void 0?"ERROR":b;h=h===void 0?!1:h;if(a){a.hasOwnProperty("level")&&a.level&&(b=a.level);if(x("console_log_js_exceptions")||["test","dev","autopush","staging"].includes(Vk("SERVER_VERSION")))d=[],d.push("Name: "+a.name),d.push("Message: "+a.message),a.hasOwnProperty("params")&&d.push("Error Params: "+JSON.stringify(a.params)), a.hasOwnProperty("args")&&d.push("Error args: "+JSON.stringify(a.args)),d.push("File name: "+a.fileName),d.push("Stacktrace: "+a.stack),d=d.join("\n"),window.console.log(d,a);if(!(asa>=5)){d=[];e=l(esa);for(f=e.next();!f.done;f=e.next()){f=f.value;try{f()&&d.push(f())}catch(C){}}d=[].concat(ia(dsa),ia(d));var p=gca(a);e=p.message||"Unknown Error";f=p.name||"UnknownError";var q=p.stack||a.stacktrace||"Not available";if(q.startsWith(f+": "+e)){var t=q.split("\n");t.shift();q=t.join("\n")}t=p.lineNumber|| "Not available";p=p.fileName||"Not available";var u=0;if(a.hasOwnProperty("args")&&a.args&&a.args.length)for(var v=0;v=500);v++);else if(a.hasOwnProperty("params")&&a.params){var w=a.params;if(typeof a.params==="object")for(v in w){if(w[v]){var y="params."+v,A=ol(w[v]);c[y]=A;u+=y.length+A.length;if(u>500)break}}else c.params=ol(w)}if(d.length)for(v=0;v=500);v++);navigator.vendor&&!c.hasOwnProperty("vendor")&&( c["device.vendor"]=navigator.vendor);v={message:e,name:f,lineNumber:t,fileName:p,stack:q,params:c,sampleWeight:1};c=Number(a.columnNumber);isNaN(c)||(v.lineNumber=v.lineNumber+":"+c);if(a.level==="IGNORED")a=0;else a:{a=ena();c=l(a.messageWeights);for(d=c.next();!d.done;d=c.next())if(d=d.value,v.message&&v.message.match(d.messageRegExp)){a=d.weight;break a}a=l(a.callbackWeights);for(c=a.next();!c.done;c=a.next())if(c=c.value,c.callback(v)){a=c.weight;break a}a=1}v.sampleWeight=a;a=l(Yma);for(c=a.next();!c.done;c= a.next())if(c=c.value,c.patternsForType[v.name])for(e=l(c.patternsForType[v.name]),d=e.next();!d.done;d=e.next())if(f=d.value,d=v.message.match(f.regexp)){v.params["params.error.original"]=d[0];e=f.groups;f={};for(t=0;t0&&(this.timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.xhr_.send(a),this.inSend_=!1}catch(h){Fsa(this,h)}}; so.prototype.createXhr=function(){return this.JSC$6832_xmlHttpFactory_?this.JSC$6832_xmlHttpFactory_.createInstance():zsa.createInstance()}; so.prototype.timeout_=function(){typeof Aaa!="undefined"&&this.xhr_&&(this.JSC$6832_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$6832_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))}; var Fsa=function(a,b){a.JSC$6832_active_=!1;a.xhr_&&(a.inAbort_=!0,a.xhr_.abort(),a.inAbort_=!1);a.JSC$6832_lastError_=b;a.JSC$6832_lastErrorCode_=5;Gsa(a);wo(a)},Gsa=function(a){a.errorDispatched_||(a.errorDispatched_=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))}; so.prototype.abort=function(a){this.xhr_&&this.JSC$6832_active_&&(this.JSC$6832_active_=!1,this.inAbort_=!0,this.xhr_.abort(),this.inAbort_=!1,this.JSC$6832_lastErrorCode_=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),wo(this))}; so.prototype.disposeInternal=function(){this.xhr_&&(this.JSC$6832_active_&&(this.JSC$6832_active_=!1,this.inAbort_=!0,this.xhr_.abort(),this.inAbort_=!1),wo(this,!0));so.superClass_.disposeInternal.call(this)}; so.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)Hsa(this);else this.onReadyStateChangeEntryPoint_()}; so.prototype.onReadyStateChangeEntryPoint_=function(){Hsa(this)}; var Hsa=function(a){if(a.JSC$6832_active_&&typeof Aaa!="undefined")if(a.inSend_&&xo(a)==4)setTimeout(a.onReadyStateChange_.bind(a),0);else if(a.dispatchEvent("readystatechange"),a.isComplete()){a.JSC$6832_active_=!1;try{if(a.isSuccess())a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.JSC$6832_lastErrorCode_=6;try{var b=xo(a)>2?a.xhr_.statusText:""}catch(c){b=""}a.JSC$6832_lastError_=b+" ["+a.getStatus()+"]";Gsa(a)}}finally{wo(a)}}},wo=function(a,b){if(a.xhr_){a.timeoutId_&&(clearTimeout(a.timeoutId_), a.timeoutId_=null); var c=a.xhr_;a.xhr_=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=null}catch(d){}}}; so.prototype.isActive=function(){return!!this.xhr_}; so.prototype.isComplete=function(){return xo(this)==4}; so.prototype.isSuccess=function(){var a=this.getStatus();a:switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var b=!0;break a;default:b=!1;}if(!b){if(a=a===0)a=Sc(String(this.JSC$6832_lastUri_))[1]||null,!a&&ua.self&&ua.self.location&&(a=ua.self.location.protocol.slice(0,-1)),a=!Bsa.test(a?a.toLowerCase():"");b=a}return b}; var xo=function(a){return a.xhr_?a.xhr_.readyState:0}; so.prototype.getStatus=function(){try{return xo(this)>2?this.xhr_.status:-1}catch(a){return-1}}; so.prototype.getResponseText=function(){try{return this.xhr_?this.xhr_.responseText:""}catch(a){return""}}; var Isa=function(a){try{if(!a.xhr_)return null;if("response"in a.xhr_)return a.xhr_.response;switch(a.responseType_){case"":case"text":return a.xhr_.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in a.xhr_)return a.xhr_.mozResponseArrayBuffer;}return null}catch(b){return null}}; so.prototype.getAllResponseHeaders=function(){return this.xhr_&&xo(this)>=2?this.xhr_.getAllResponseHeaders()||"":""}; var Jsa=function(a){var b={};a=a.getAllResponseHeaders().split("\r\n");for(var c=0;c0;)b[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(a%62),a=Math.floor(a/62);return b.join("")}};var Osa=function(a){a=Msa(a);for(var b=2654435769,c=2654435769,d=314159265,e=a.length,f=e,h=0,m=function(){b-=c;b-=d;b^=d>>>13;c-=d;c-=b;c^=b<<8;d-=b;d-=c;d^=c>>>13;b-=c;b-=d;b^=d>>>12;c-=d;c-=b;c^=b<<16;d-=b;d-=c;d^=c>>>5;b-=c;b-=d;b^=d>>>3;c-=d;c-=b;c^=b<<10;d-=b;d-=c;d^=c>>>15};f>=12;f-=12,h+=12)b+=Nsa(a,h),c+=Nsa(a,h+4),d+=Nsa(a,h+8),m(); d+=e;switch(f){case 11:d+=a[h+10]<<24;case 10:d+=a[h+9]<<16;case 9:d+=a[h+8]<<8;case 8:c+=a[h+7]<<24;case 7:c+=a[h+6]<<16;case 6:c+=a[h+5]<<8;case 5:c+=a[h+4];case 4:b+=a[h+3]<<24;case 3:b+=a[h+2]<<16;case 2:b+=a[h+1]<<8;case 1:b+=a[h+0];}m();return Lsa.toString(d)},Msa=function(a){for(var b=[],c=0;c not found for "+a.debugName+". See go/cow-error/required-context-provider-not-found for more information.");return a.defaultValue}return b} ;tca("#");function dta(a){var b;return((b=eta.documentOverride)!=null?b:a).__wizdispatcher} var eta={};var fta=yo("WizInjectionContext_ModelRootElement"),gta=yo("WizInjectionContext_RendererData"),hta=yo("WizInjectionContext_InjectingConstructor"),ita=yo("WizInjectionContext_AppContext"),jta=yo("WizInjectionContext_Dispatcher"),kta=yo("WizInjectionContext_RootElement"),lta=yo("WizInjectionContext_AsyncDeps"),mta=yo("WizInjectionContext_ObjectCreationTracker");function Eo(a){var b=zo;if(!b){switch(a===void 0?3:a){case 0:a=Error("Registering a bleat cleanup without an open owner. See go/cow-error/missing-open-owner for more information.");break;case 1:a=Error("Attempted to inject a value outside of an injection context. Valid injection contexts are:\n A. in a Wiz Object constructor\n B. in a Client-only Wiz component\n C. in the onInit callback of a Client-only Wiz component\n D. in a effect callback of a Client-only Wiz component\n E. (advanced) in a custom wiz async binding\nNOTE: This error may also be caused if you manually instantiated anew Wiz Object instead of injecting them. See go/cow-error/missing-context-for-injection for more information."); break;case 2:a=Error("Attempted to create a portal outside of a root render context. If you're trying to create a separate TSX tree, call render() instead. See go/cow-error/portal-outside-render-context for more information.");break;default:a=Error("Missing open owner. See go/cow-error/missing-open-owner.");}throw a}return b} function nta(a){var b=Ao(a);a={};return a[Symbol.dispose]=function(){Ao(b)},a} ;function ota(){var a=Eo(1),b=Do(a,ita);if(!Co(b))return b;a=Do(a,jta);if(!Co(a))return a.getOptionalAppContext()} ;function pta(a,b){return Object.is(a,b)} ;var Fo=null,Go=!1,Ho=1,Io=Symbol("SIGNAL");function Jo(a){var b=Fo;Fo=a;return b} var Ko={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1}, producerRecomputeValue:function(){}, consumerMarkedDirty:function(){}, consumerOnSignalRead:function(){}}; function qta(a){if(Go)throw Error("");if(Fo!==null){var b=Fo.producersTail;if(b===void 0||b.producer!==a){var c=void 0,d=Fo.recomputing;if(d&&(c=b!==void 0?b.nextProducer:Fo.producers,c!==void 0&&c.producer===a)){Fo.producersTail=c;c.lastReadVersion=a.version;return}var e=a.consumersTail,f;if(!(f=e===void 0||e.consumer!==Fo)){if(d){a:{f=Fo;d=f.producersTail;if(d!==void 0){f=f.producers;do{if(f===e){d=!0;break a}if(f===d)break;f=f.nextProducer}while(f!==void 0)}d=!1}d=!d}f=d}f&&(d=Lo(Fo),c={producer:a, consumer:Fo,nextProducer:c,prevConsumer:e,lastReadVersion:a.version,nextConsumer:void 0},Fo.producersTail=c,b!==void 0?b.nextProducer=c:Fo.producers=c,d&&rta(a,c))}}} function Mo(a){if(!Lo(a)||a.dirty)if(a.dirty||a.lastCleanEpoch!==Ho)(a.producerMustRecompute(a)||sta(a))&&a.producerRecomputeValue(a),a.dirty=!1,a.lastCleanEpoch=Ho} function tta(a){if(a.consumers!==void 0){var b=Go;Go=!0;try{for(var c=a.consumers;c!==void 0;c=c.nextConsumer){var d=c.consumer;d.dirty||(a=void 0,d.dirty=!0,tta(d),(a=d.consumerMarkedDirty)==null||a.call(d,d))}}finally{Go=b}}} function uta(){var a;return((a=Fo)==null?void 0:a.consumerAllowSignalWrites)!==!1} function vta(a){a&&(a.producersTail=void 0,a.recomputing=!0);return Jo(a)} function wta(a){a.recomputing=!1;var b=a.producersTail,c=b!==void 0?b.nextProducer:a.producers;if(c!==void 0){if(Lo(a)){do c=xta(c);while(c!==void 0)}b!==void 0?b.nextProducer=void 0:a.producers=void 0}} function sta(a){for(a=a.producers;a!==void 0;a=a.nextProducer){var b=a.producer,c=a.lastReadVersion;if(c!==b.version)return!0;Mo(b);if(c!==b.version)return!0}return!1} function rta(a,b){var c=a.consumersTail,d=Lo(a);c!==void 0?(b.nextConsumer=c.nextConsumer,c.nextConsumer=b):(b.nextConsumer=void 0,a.consumers=b);b.prevConsumer=c;a.consumersTail=b;if(!d)for(a=a.producers;a!==void 0;a=a.nextProducer)rta(a.producer,a)} function xta(a){var b=a.producer,c=a.nextProducer,d=a.nextConsumer,e=a.prevConsumer;a.nextConsumer=void 0;a.prevConsumer=void 0;d!==void 0?d.prevConsumer=e:b.consumersTail=e;if(e!==void 0)e.nextConsumer=d;else if(b.consumers=d,!Lo(b))for(a=b.producers;a!==void 0;)a=xta(a);return c} function Lo(a){return a.consumerIsAlwaysLive||a.consumers!==void 0} ;function yta(a){var b=Object.create(zta);b.computation=a;a=function(){Mo(b);qta(b);if(b.value===No)throw b.error;return b.value}; a[Io]=b;return a} var Oo=Symbol("UNSET"),Po=Symbol("COMPUTING"),No=Symbol("ERRORED"),zta=Object.assign({},Ko,{value:Oo,dirty:!0,error:null,equal:pta,kind:"computed",producerMustRecompute:function(a){return a.value===Oo||a.value===Po}, producerRecomputeValue:function(a){if(a.value===Po)throw Error("");var b=a.value;a.value=Po;var c=vta(a),d=!1;try{var e=a.computation();Jo(null);d=b!==Oo&&b!==No&&e!==No&&a.equal(b,e)}catch(f){e=No,a.error=f}finally{Jo(c),a&&wta(a)}d?a.value=b:(a.value=e,a.version++)}});var Ata=Object.assign({},Ko,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});var Qo=function(){throw Error()};var Bta=null;function Ro(a,b){uta()||Qo(a);if(!a.equal(a.value,b)){a.value=b;a.version++;Ho++;tta(a);var c;(c=Bta)==null||c(a)}} var Cta=Object.assign({},Ko,{equal:pta,value:void 0,kind:"signal"});function Dta(a,b,c){var d=Object.create(Eta);d.source=a;d.computation=b;c!=void 0&&(d.equal=c);a=function(){Mo(d);qta(d);if(d.value===No)throw d.error;return d.value}; a[Io]=d;return a} var Eta=Object.assign({},Ko,{value:Oo,dirty:!0,error:null,equal:pta,kind:"linkedSignal",producerMustRecompute:function(a){return a.value===Oo||a.value===Po}, producerRecomputeValue:function(a){if(a.value===Po)throw Error("");var b=a.value;a.value=Po;var c=vta(a),d=!1;try{var e=a.source(),f=b!==Oo&&b!==No;var h=a.computation(e,f?{source:a.sourceValue,value:b}:void 0);a.sourceValue=e;Jo(null);d=f&&h!==No&&a.equal(b,h)}catch(m){h=No,a.error=m}finally{Jo(c),a&&wta(a)}d?a.value=b:(a.value=h,a.version++)}});function So(a){var b=Jo(null);try{return a()}finally{Jo(b)}} ;Object.assign({},Ko,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(a){a.schedule!==null&&a.schedule(a.ref)}, cleanupFn:function(){}});function Fta(a){return Object.create(Object.assign({},Ko,a))} ;var Gta;function Hta(){var a;return(a=Gta)!=null?a:Gta=Fta({consumerAllowSignalWrites:!0})} ;var Ita=Symbol("lYIU2b"),To=Symbol("PvID9b"),Jta=Symbol("STw07c"),Kta=ie(function(a){return ke(a)&&Ita in a}); function Lta(a,b,c){var d;return a&&b?a+"__"+b:(d=a!=null?a:b)!=null?d:c} ;var Mta={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:Tca,enableContextPerComponent:Tca,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var Uo=Object.assign({},{attributes:{},handleError:function(a){throw a}},Mta); function Nta(){var a=Object.assign({},Mta);Object.getOwnPropertyNames(Mta).forEach(function(b){Uo[b]!==void 0&&(a[b]=Uo[b])}); return a} ;function Vo(a,b,c){c=c===void 0?"":c;var d=yta(a);a=d[Io];a.debugName=Lta(b==null?void 0:b.debugName,c,"[computed]");(b==null?void 0:b.equals)!=null&&(a.equal=b.equals);return d} ;var Wo=Symbol("idom");var Xo=Symbol("IS_VNODE");var Yo=function(){this.afterRenderCallbacks=null},Ota=Symbol("ElRef"),Zo=function(a){this.props=a; this.__unmounted=!1}; Zo.prototype.didPatch=function(){}; Zo.prototype.didMount=function(){}; Zo.prototype.didUnmount=function(){}; Zo.prototype.didUpdate=function(){};function Pta(a,b){b.nextDisposable=void 0;a.tailDisposable?a.tailDisposable.nextDisposable=b:a.childDisposable=b;a.tailDisposable=b} function Qta(a,b){var c={};Pta(a,(c[Symbol.dispose]=b,c))} function $o(a){var b=zo;b&&!b.isDisposed&&(Pta(b,a),a.parent=b)} function Rta(a){for(var b=a.childDisposable;b;){var c=b.nextDisposable;ap(b);b=c}a.childDisposable=void 0;a.tailDisposable=void 0} function ap(a){if(!a.isDisposed){a.isDisposed=!0;var b;(b=a[Symbol.dispose])==null||b.call(a);delete a.parent;Rta(a)}} ;var Sta=Symbol("rIL0Me");function Tta(a){var b={};a=(b[Sta]=!0,b.debugName=a,b);!zo||$o(a);return a} function Uta(a){return ke(a)&&Sta in a} function Vta(a){for(a=a===void 0?zo:a;a;){if(Uta(a))return a;var b=void 0;a=(b=a.parent)!=null?b:null}return null} function Wta(a){a=a===void 0?zo:a;for(var b=[];a;){Uta(a)&&b.push(a.debugName);var c=void 0;a=(c=a.parent)!=null?c:null}return b} ;function Xta(a){return ke(a)&&a.name!==void 0&&a.isReactive!==void 0&&a.parent!==void 0} ;var bp=null,Yta,Zta=null,$ta;function aua(a,b,c){var d=cp(a);bp={name:c?d+" ("+c+")":d,isReactive:a.componentType!==Wo,parent:bp};a=b();bp=bp.parent;return a} function dp(){var a=bp;return a?a.isReactive:!1} function ep(a,b,c){var d=bp;b&&(bp=b);try{return c==null?a():a.call(c)}catch(f){a=f;bua(a,bp);if(a!==Yta){Zta=bp;b=[];for(c=zo;c;){var e=void 0;b.push((e=c.debugName)!=null?e:"[context]");e=void 0;c=(e=c.parent)!=null?e:null}$ta=b.reverse()}Yta=a;throw a}finally{bp=d}} function bua(a,b){try{var c=cua(b),d;if(c&&((d=a.wizMetadata)==null||!d.componentStack)&&(a.wizMetadata?a.wizMetadata.componentStack||(a.wizMetadata.componentStack=c):a.wizMetadata={componentStack:c},Uo.enableComponentStacksInErrorMessages)){var e=a.message+"\n\nComponent stack: "+c;a.stack&&(a.stack=a.stack.replace(a.message,e));a.message=e}}catch(f){}} function fp(a,b){if(a.wizMetadata)return a;try{var c,d=(c=a===Yta?Zta:null)!=null?c:bp;bua(a,d);a.wizMetadata={componentStack:cua(d),errorSeverity:4,featureFlags:Nta(),tagName:b,ownerTrace:dua()}}catch(e){}return a} function dua(){var a,b;return(b=(a=$ta)==null?void 0:a.slice())!=null?b:[]} function eua(a){for(var b=0,c="";b<20&&a;)c+="$$XID:"+a.name+"$$ > ",a=a.parent,b++;return c.slice(0,-3)} function cua(a){return Xta(a)||a===null?eua(a):Uo.enableContextBasedComponentStacks?(a=Vta(a),Wta(a).slice(0,20).map(function(b){return"$$XID:"+b+"$$"}).join(" > ")):""} function cp(a){return a.debugName||a.name||"[component]"} ;var fua={},gua=Fta(Object.assign({},{consumerAllowSignalWrites:!0},fua)),gp=Fta(Object.assign({},{consumerAllowSignalWrites:!0},fua));function hp(a){var b=Jo(gua);try{a()}finally{Jo(b)}} ;function hua(a){var b=function(){qta(a);return a.value}; b[Io]=a;return[b,function(c){Ro(a,c)}, function(c){uta()||Qo(a);Ro(a,c(a.value))}]} ;function ip(a,b,c){c=c===void 0?"":c;var d=Object.create(Cta);d.value=a;(b==null?void 0:b.equals)!==void 0&&(d.equal=b.equals);d.debugName=Lta(b==null?void 0:b.debugName,c,"[signal]");return hua(d)} ;var jp=0,kp=function(){this.isFlushing=!1;this.queue=[];this.queueLength=0}; kp.prototype.schedule=function(a){this.queue[this.queueLength++]=a}; kp.prototype.clear=function(){for(var a=0;a0)Uo.flushRenderEffectsDuringRender&&qp.flush();else{for(var a=l(pua),b=a.next();!b.done;b=a.next())b.value.flush();wua()}} function wua(){ra(function(a){if(a.nextAddress==1)return a.yield(Promise.resolve(),2);for(var b=l(qua),c=b.next();!c.done;c=b.next())c.value.flush();a.jumpToEnd()})} function mua(a){var b=a.isFlushing;a.isFlushing=!0;try{for(var c=0;c0;)e.pop().run()}}a.queueLength=0}finally{a.isFlushing=b}} function rp(a){jp--;if(a){a=l(rua);for(var b=a.next();!b.done;b=a.next())b.value.clear()}else jp>0||qp.isFlushing&&!Uo.flushRenderEffectsDuringRender||vua()} var jua=gd;var xua=bta({defaultValue:null},"im1Mkf");function sp(a,b){if((b=b===void 0?zo:b)&&!b.isDisposed&&(b=cta(xua,b),b==null?0:b.reportError)){b.reportError(a);return}throw a} ;var xp={},zua=Object.assign({},Ata,(xp[Ita]=!0,xp.effectType=To,xp.isResettableOwner=!0,xp.consumerMarkedDirty=tua,xp.run=function(){yua(this)},xp.cleanup=function(){Rta(this)},xp.componentStack=void 0,xp.debugName="[effect]",xp.destroy=function(){if(Lo(this))for(var a=this.producers;a!==void 0;)a=xta(a); this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;ap(this);this.dirty=!1},xp[Symbol.dispose]=function(){this.destroy()},xp)),Aua=Object.assign({},zua,{version:1, dirty:!1});function Bua(a,b,c){a=Object.create(a);b&&(a.fn=b);c&&(a.debugName=c);$o(a);a.componentStack=bp;return a} function yua(a){if(!a.isDisposed){if(Go)throw fp(Error("Schedulers cannot synchronously execute effects while scheduling."));var b=Ao(a);try{ep(function(){a.dirty=!1;if(!(a.version>0)||sta(a)){a.version++;var c=vta(a);try{a.cleanup(),a.fn()}finally{Jo(c),a&&wta(a)}}},a.componentStack,a)}catch(c){fp(c),sp(c)}finally{Ao(b)}}} ;var Cua=Object.assign({},zua,{effectType:To});function yp(a,b){a=Bua(Cua,a,b);tua(a)} ;function Dua(a){return a} function Eua(a,b,c){function d(){return e()} c=c===void 0?"":c;var e=typeof a==="function"?Dta(a,Dua,b==null?void 0:b.equals):Dta(a.source,a.computation,b==null?void 0:b.equals);var f=e[Io];f.debugName=Lta(b==null?void 0:b.debugName,c,"[linkedSignal]");d[Io]=f;return[d,function(h){Mo(f);Ro(f,h);f.dirty=!1;f.lastCleanEpoch=Ho}, function(h){Mo(f);if(f.value===No)throw f.error;uta()||Qo(f);Ro(f,h(f.value));f.dirty=!1;f.lastCleanEpoch=Ho}]} ;function zp(a){var b=zo;if(b){var c=bp;Qta(b,function(){var d=Jo(Hta());try{ep(function(){return void a()},c)}catch(e){throw fp(e),e; }finally{Jo(d)}})}} ;function Ap(a,b){var c={};(b===void 0||b)&&$o(c);b=Ao(c);try{a(c)}finally{Ao(b)}return function(){return void ap(c)}} ;var Fua=Symbol("signal_object_key");function Bp(a){return typeof a==="function"?a():(a==null?0:a[Fua])?a.get():a} ;function Cp(a,b){a=Ao(a);try{return So(b)}finally{Ao(a)}} ;var Gua=new Set("allowfullscreen allowtransparency async autofocus autoplay checked controls default defer disabled disableremoteplayback formnovalidate hidden inert ismap itemscope jsshadow jsslot loop multiple muted nomodule novalidate open playsinline readonly required reversed scoped seamless selected sortable typemustmatch".split(" ")),Hua=new Set(["contenteditable","draggable","spellcheck"]);var Dp=Symbol("DISPOSED_FLAG");function Iua(a,b){b=b===void 0?!1:b;var c=Eo(),d=bp;return function(e){var f=!1,h=e.currentTarget;h&&(f=!h.isConnected||b&&h[Dp]===!0);if(!(f||(c==null?0:c.isDisposed))){var m=function(){return a(e)}; try{ep(function(){return So(m)},d)}catch(p){sp(p,c)}}}} ;function Ep(a,b){b={componentStack:cua(Zta),ownerTrace:dua(),errorSeverity:3,featureFlags:Nta(),tagName:b};return[a,b]} ;function Jua(a,b){var c=a._disposeEffects;a._disposeEffects=c?function(){c();b()}:b} ;var Kua=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,Fp={},Lua=(Fp[1]=null,Fp[2]=function(a,b){return b instanceof Ob?Rb(b):ub.toString()},Fp[3]=function(a,b){return wb(b)?xb(b):Kua.test(String(b))?String(b):ub.toString()},Fp[4]=function(a,b){return b instanceof gb?nb(b):ub.toString()},Fp[5]=function(a,b){return String(b)},Fp[7]=null,Fp[8]=null,Fp[10]=null,Fp); function Mua(a,b){b=yla(a.toLowerCase(),b,function(){var d;(d=Uo.handleError)==null||d.call.apply(d,[Uo].concat(ia(Ep(Error("Contingent attribute/property lookups are not supported."),a.toLowerCase()))))}); if(b===null)return null;var c;return(c=Lua[b])!=null?c:null} function Nua(a,b,c){if(c===null||c===void 0)return c;b=b.toLowerCase();a=Mua(a,b);return a===null?c:a(b,c)} ;var Oua="Y Z E P T G M K m u n".split(" "),Pua={"":1,n:9.313225746154785e-10,u:9.5367431640625e-7,m:1/1024,k:1024,K:1024,M:1048576,G:1073741824,T:1099511627776,P:0x4000000000000,E:0x1000000000000000,Z:1.1805916207174113E21,Y:1.2089258196146292E24};var Qua=function(a){if(a.getValues&&typeof a.getValues=="function")return a.getValues();if(typeof Map!=="undefined"&&a instanceof Map||typeof Set!=="undefined"&&a instanceof Set)return Array.from(a.values());if(typeof a==="string")return a.split("");if(Fa(a)){for(var b=[],c=a.length,d=0;d1||f.length==1&&f[0]!="")&&f.pop(),d&&h==e.length&&f.push("")):(f.push(m),d=!0)}d=f.join("/")}else d=e}c?Kp(b,d):c=a.queryData_.toString()!=="";c?Tua(b,a.queryData_.clone()):c=!!a.fragment_;c&&(b.fragment_=a.fragment_);return b}; Gp.prototype.clone=function(){return new Gp(this)}; var Hp=function(a,b,c){a.scheme_=c?Lp(b,!0):b;a.scheme_&&(a.scheme_=a.scheme_.replace(/:$/,""))},Ip=function(a,b,c){a.JSC$6953_domain_=c?Lp(b,!0):b},Jp=function(a,b){if(b){b=Number(b); if(isNaN(b)||b<0)throw Error("Bad port number "+b);a.JSC$6953_port_=b}else a.JSC$6953_port_=null},Kp=function(a,b,c){a.JSC$6953_path_=c?Lp(b,!0):b; return a},Tua=function(a,b,c){b instanceof Mp?(a.queryData_=b,Yua(a.queryData_,a.JSC$6953_ignoreCase_)):(c||(b=Np(b,Zua)),a.queryData_=new Mp(b,a.JSC$6953_ignoreCase_))},Op=function(a,b,c){a.queryData_.set(b,c)},Pp=function(a){Op(a,"zx",vca()); return a}; Gp.prototype.isReadOnly=function(){return!1}; var Qp=function(a){return a instanceof Gp?a.clone():new Gp(a)},Lp=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},Np=function(a,b,c){return typeof a==="string"?(a=encodeURI(a).replace(b,$ua),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},$ua=function(a){a=a.charCodeAt(0); return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},Uua=/[#\/\?@]/g,Wua=/[#\?:]/g,Vua=/[#\?]/g,Zua=/[#\?@]/g,Xua=/#/g,Mp=function(a,b){this.count_=this.keyMap_=null; this.encodedQuery_=a||null;this.JSC$6954_ignoreCase_=!!b},Rp=function(a){a.keyMap_||(a.keyMap_=new Map,a.count_=0,a.encodedQuery_&&Dca(a.encodedQuery_,function(b,c){a.add(Mc(b),c)}))}; Mp.prototype.add=function(a,b){Rp(this);this.encodedQuery_=null;a=Sp(this,a);var c=this.keyMap_.get(a);c||this.keyMap_.set(a,c=[]);c.push(b);this.count_+=1;return this}; Mp.prototype.remove=function(a){Rp(this);a=Sp(this,a);return this.keyMap_.has(a)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(a).length,this.keyMap_.delete(a)):!1}; Mp.prototype.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0}; Mp.prototype.isEmpty=function(){Rp(this);return this.count_==0}; var ava=function(a,b){Rp(a);b=Sp(a,b);return a.keyMap_.has(b)}; g=Mp.prototype;g.forEach=function(a,b){Rp(this);this.keyMap_.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)}; g.getKeys=function(){Rp(this);for(var a=Array.from(this.keyMap_.values()),b=Array.from(this.keyMap_.keys()),c=[],d=0;d0?String(a[0]):b}; var bva=function(a,b,c){a.remove(b);c.length>0&&(a.encodedQuery_=null,a.keyMap_.set(Sp(a,b),Dc(c)),a.count_+=c.length)}; Mp.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var a=[],b=Array.from(this.keyMap_.keys()),c=0;c":f.push(q);c.push(b(f.join(""), h));e=0;f=[];m=h=null;break;default:f.push(q);}break;default:throw Error();}e===1&&p>=d&&(p=m+1,c.push("<"),e=0,f=[],m=h=null)}return c.join("")} var ova=function(a,b){a=a.replace(/<\//g,"<\\/").replace(/\]\]>/g,"]]\\>");return b?a.replace(/{/g," \\{").replace(/}/g," \\}").replace(/\/\*/g,"/ *").replace(/\\$/,"\\ "):a},Zp=function(a){Wp(a,Tp)?(a=mva(a.getContent()),a=String(a).replace(pva,iva)):a=String(a).replace(hva,iva); return a},qva=function(a){a=String(a); for(var b=function(d,e,f){for(var h=Math.min(e.length-f,d.length),m=0;m":">","`":"`","\x85":"…","\xA0":" ","\u2028":"
","\u2029":"
"},iva=function(a){return rva[a]},sva={"\0":"%00", "\x01":"%01","\x02":"%02","\x03":"%03","\x04":"%04","\x05":"%05","\x06":"%06","\x07":"%07","\b":"%08","\t":"%09","\n":"%0A","\x0B":"%0B","\f":"%0C","\r":"%0D","\x0E":"%0E","\x0F":"%0F","\x10":"%10","\x11":"%11","\x12":"%12","\x13":"%13","\x14":"%14","\x15":"%15","\x16":"%16","\x17":"%17","\x18":"%18","\x19":"%19","\x1A":"%1A","\x1B":"%1B","\x1C":"%1C","\x1D":"%1D","\x1E":"%1E","\x1F":"%1F"," ":"%20","\"":"%22","'":"%27","(":"%28",")":"%29","<":"%3C", ">":"%3E","\\":"%5C","{":"%7B","}":"%7D","\x7F":"%7F","\x85":"%C2%85","\xA0":"%C2%A0","\u2028":"%E2%80%A8","\u2029":"%E2%80%A9","\uFF01":"%EF%BC%81","\uFF03":"%EF%BC%83","\uFF04":"%EF%BC%84","\uFF06":"%EF%BC%86","\uFF07":"%EF%BC%87","\uFF08":"%EF%BC%88","\uFF09":"%EF%BC%89","\uFF0A":"%EF%BC%8A","\uFF0B":"%EF%BC%8B","\uFF0C":"%EF%BC%8C","\uFF0F":"%EF%BC%8F","\uFF1A":"%EF%BC%9A","\uFF1B":"%EF%BC%9B","\uFF1D":"%EF%BC%9D","\uFF1F":"%EF%BC%9F","\uFF20":"%EF%BC%A0","\uFF3B":"%EF%BC%BB","\uFF3D":"%EF%BC%BD"}, eq=function(a){return sva[a]},hva=/[\x00\x22\x26\x27\x3c\x3e]/g,pva=/[\x00\x22\x27\x3c\x3e]/g,fq=/[\x00- \x22\x27-\x29\x3c\x3e\\\x7b\x7d\x7f\x85\xa0\u2028\u2029\uff01\uff03\uff04\uff06-\uff0c\uff0f\uff1a\uff1b\uff1d\uff1f\uff20\uff3b\uff3d]/g,tva=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,uva=/^(?!base|iframe|link|noframes|noscript|object|script|style|textarea|title|xmp)[a-z0-9_$:-]*$/i,vva=function(a){a=String(a); return uva.test(a)?a:"zSoyz"},lva=/=0?b.setProperty(e,f):b[e]=f}}} function Cva(a,b,c){var d=typeof c;d==="object"||d==="function"?a[b]=c:iq(a,b,c)} function Dva(){var a=new Ava;a[hq.default]=Cva;a.style=Bva;return a} var jq=Dva();var Eva=Dva(),Fva=Eva[hq.default],Gva=Eva.style,Hva=["focusin","focusout"]; function Iva(a,b,c){if(typeof c==="boolean"&&Hua.has(b))iq(a,b,String(c));else if(c===!1&&Gua.has(b))iq(a,b,null);else if(b!=="idomKey"&&b!=="skip"&&b!=="skipchildren"&&b!=="children"&&b!=="el")if(b.startsWith("on")){if(b[2]!==":")throw fp(Error("Event handler attributes must be defined under the on: namespace. See go/cow-dev-guide/core/events#bind for more information.Got: "+b),a.tagName);if(c===void 0||c===null){var d;(d=Uo.handleError)==null||d.call.apply(d,[Uo].concat(ia(Ep(Error("The "+b+" attribute was set to undefined or null. This is not supported and may lead to unexpected behavior if an event handler is being conditionally set."), a.tagName))));a[b]=void 0}else{var e=b.slice(3);d=dp();if(e==="jsaction"){c=l(Array.isArray(c)?c:[c]);for(var f=c.next();!f.done;f=c.next()){f=f.value;if(typeof f!=="object"||f===null||typeof f.selfReg!=="function")throw Error("Expected the value of "+b+" to be a value or list of values created with useWizJsaction().");f.selfReg(0,a,d?zp:function(){})}}else{if(typeof c==="function"){d||a[Dp]!==void 0||(a[Dp]=!1,Jua(a,function(){a[Dp]=!0})); var h=Iua(c,!d)}else{Jva(b,c);if(c.selfReg){c.selfReg(0,a,e,d?zp:function(){}); return}h=c.getFn(0)}if(d&&a["on"+e]===void 0)a.addEventListener(e,h),zp(function(){return void a.removeEventListener(e,h)});else if(d||!Hva.includes(e))a["on"+e]=h}}}else{if(b.startsWith("data-")&&typeof c==="string")try{c=qva(c)}catch(m){c="zSoyz"}typeof c!=="function"||a._disposeEffects!=null?((d=b.startsWith("prop:"))&&(b=b.slice(5)),Uo.enableAttributeSanitization&&(d&&Kva(a.tagName)||(c=Nua(a.tagName,b,c))),b==="style"?(c instanceof gq&&(c=c.toString()),Gva(a,b,c)):d?a[b]=c:Fva(a,b,c)):(a._signalProps||(a._signalProps=[]),a._signalValues||(a._signalValues=[]),a._signalProps.push(b))}} function Lva(a,b){var c={isReactive:!0};c=(c===void 0?{}:c).isReactive;if(b==null?0:b.el){var d=b.el,e;(e=d.onRender)==null||e.call(d,a);a._disposeRef||(a._disposeRef=function(){var f;(f=d.onUnmount)==null||f.call(d);delete a._disposeRef},c&&zp(function(){var f; (f=a._disposeRef)==null||f.call(a)}))}} function Jva(a,b){if(typeof b!=="object"||b===null)throw fp(Error("Expected "+a+" to be an EventHandler but its type was: "+(typeof b+". Event handlers must be created using useHandler.")));if(typeof b.getFn!=="function")throw fp(Error("Expected the event handler for "+a+" to have a 'getFn' property but its keys were: "+(Object.keys(b)+". Event handlers must be created using useHandler.")))} function Kva(a){return a.length>0&&a.includes("-")&&!Mva.includes(a.toLowerCase())} var Mva="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var kq=function(){},Nva=function(){},Ova=function(){};var lq=Symbol("dynamicRange");function Pva(a){return ke(a)&&lq in a} function Qva(a){return Pva(a)?a[lq].flattened:a} ;function Rva(a,b){var c=sa.apply(2,arguments),d;b=(d=b)!=null?d:{};d={};return d.type=a,d.props=b,d.children=c,d[Xo]=!0,d} function mq(a){return a.children} ;var Sva,nq=Rva;function oq(a){var b=nq!==Rva;nq=a?Sva:Rva;return b} ;var pq=Symbol("reactiveData");function qq(a){return Ga(a)?"nodeType"in a:!1} ;var Tva=new Set("a altGlyph altGlyphDef altGlyphItem animate animateColor animateMotion animateTransform circle clipPath color-profile cursor defs desc ellipse feBlend feColorMatrix feComponentTransfer feComposite feConvolveMatrix feDiffuseLighting feDisplacementMap feDistantLight feDropShadow feFlood feFuncA feFuncB feFuncG feFuncR feGaussianBlur feImage feMerge feMergeNode feMorphology feOffset fePointLight feSpecularLighting feSpotLight feTile feTurbulence filter font font-face font-face-format font-face-name font-face-src font-face-uri foreignObject g glyph glyphRef hkern image line linearGradient marker mask metadata missing-glyph mpath path pattern polygon polyline radialGradient rect script set stop style svg switch symbol text textPath title tref tspan use view vkern".split(" ")), Uva=new Set(["a","font","script","style","title"]);function Vva(a){return a.startsWith("svg:")?a.replace("svg:",""):a} ;var Tsa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(Tsa,Ig);var Wva=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(Wva,Ig);var Xva=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(Xva,Ig);function Yva(a){if(!a)return null;a=ag(a,2);return a===null||a===void 0?null:Pb(a)} function Zva(a){if(!a)return null;a=ag(a,4);return a===null||a===void 0?null:kb(a)} ;function rq(){return document.createTextNode("")} function sq(a){a=document.createTextNode(String(a));a._isSignalTextNode=!0;return a} function $va(a){return Wp(a,Tp)||a instanceof Ob||Ssa()(a)} function awa(a){var b=document.createElement("div");Ssa()(a)&&Yva(a)?mc(b,Yva(a)):a instanceof Ob?mc(b,a):Wp(a,Tp)&&mc(b,fva(a));a=l(b.childNodes);for(var c=a.next();!c.done;c=a.next())c.value._isSafeOrSanitizedHtmlNode=!0;return b} function tq(a){a=typeof a;return a==="string"||a==="number"||a==="boolean"} function uq(a){return a instanceof gb||wb(a)||a instanceof qc||a instanceof gq} function vq(a,b){var c=a.parentElement;if(!c)return b;c.replaceChild(b,a);return b} function wq(a,b){var c=a[0].parentElement;if(c)if(a[0].previousSibling||a[a.length-1].nextSibling){c.insertBefore(b,a[0]);for(var d=a.length-1;d>=0;d--)c.removeChild(a[d])}else c.textContent="",c.appendChild(b);return b} function bwa(a,b){if(a[0].parentElement)for(var c=a[0].parentElement,d=b.length,e=a.length,f=d,h=0,m=0,p=a[e-1].nextSibling,q=null;ht-m)for(u=a[h];m1)throw fp(Error("Script tags can contain at most 1 child. Got "+a.length+": ["+(a.map(xq).join(", ")+"]")),"SCRIPT");a=a[0]}if(a==null)return null;if(!cc(a)){var b,c;if((b=window)==null?0:(c=b.trustedTypes)==null?0:c.isScript(a))throw Error("Do not use a TrustedScript instance in a script tag directly. Use a SafeScript instead.");if(String(a).trim().length===0)return null;throw Error("Script tags must only contain SafeScript or LegacyScript instances. Got: "+ xq(a))}return a} function fwa(a,b){b=ewa(b);b!==null&&jc(a,b)} function gwa(a){if(Array.isArray(a)){if(a.length>1)throw fp(Error("Style tags can contain at most 1 child. Got "+a.length+": ["+(a.map(xq).join(", ")+"]")),"STYLE");a=a[0]}if(a==null)return null;if(!Tba(a)){if(String(a).trim().length===0)return null;throw Error("Style tags must only contain SafeScript or LegacyScript instances. Got: "+xq(a))}return a} function hwa(a,b){b=gwa(b);b!==null&&Uba(a,b)} function xq(a){return"("+typeof a+") "+(a!=null&&typeof a==="object"?a.constructor.name:typeof a)+" "+a} ;function iwa(){} function jwa(){return null} var kwa={setUp:iwa,tearDown:iwa,log:iwa,logNodeRange:jwa,logReconciledJsx:jwa,graft:function(a,b){b()}};function yq(a,b){b=b===void 0?{}:b;var c=lwa(),d=!0,e,f=!!Uo.legacyTriggerSoyRendererEvents;f&&(e=ota());yp(function(){var h=!d&&b.isControlFlowComponent&&f,m=h?cwa(c[0]):void 0;d=!1;b.isControlFlowComponent&&jp++;var p=c[0],q=c[lq].flattened,t=oq(!0);try{try{var u=a()}catch(N){sp(N),u=rq()}var v=mwa(p,u,c),w,y=(w=kwa.logReconciledJsx(v))!=null?w:v;Array.isArray(y)||(c[lq].flattened=[y]);var A=c[lq].flattened;if(q&&(!Array.isArray(q)||q.length!==0)){var C=Array.isArray(q)?q[0]:q,I=C[pq],K=C._disposeEffects; C._disposeEffects=void 0;C=Array.isArray(A)?A[0]:A;C[pq]=I;C[pq]&&(C[pq].numNodes=C===A?1:A.length);C._disposeEffects=K}c[0]=y;b.isControlFlowComponent&&rp(!1)}catch(N){throw b.isControlFlowComponent&&rp(!0),fp(N)}finally{oq(t)}h&&dwa(m,e)},b.debugName); return c} function mwa(a,b,c){for(;typeof b==="function";)b=b();if(b!=null&&b[Xo]){var d,e,f;(f=Uo.handleError)==null||f.call.apply(f,[Uo].concat(ia(Ep(Error("Encountered a VNode when only real nodes are expected. Tag name: "+((d=b.type)==null?void 0:d.TAG_NAME)),(e=b.type)==null?void 0:e.TAG_NAME))))}if(a==null)return b==null?rq():tq(b)?sq(b):uq(b)?sq(b.toString()):qq(b)?b:b.length===0?rq():zq(b,c);if(qq(a)){if(b==null)return vq(a,rq());if(tq(b))return nwa(a,b);if(uq(b))return nwa(a,b.toString());if(qq(b))return vq(a, b);if(b.length===0)return vq(a,rq());b=zq(b,c);bwa([a],c[lq].flattened);return b}a=Aq(a);if(b==null)return wq(a,rq());if(tq(b))return wq(a,sq(b));if(uq(b))return wq(a,sq(b.toString()));if(qq(b))return bwa(a,[b])[0];if(b.length===0)return wq(a,rq());b=zq(b,c);bwa(a,c[lq].flattened);return b} function nwa(a,b){a.nodeType===Node.TEXT_NODE?a.textContent!==String(b)&&(a.textContent=String(b)):a=vq(a,sq(b));return a} function Aq(a,b,c){return Bq(a,b!=null?b:[],c===void 0?!1:c)} function zq(a,b){var c=Aq(a,void 0,!0);if(c.length===0)return rq();b[lq].flattened=c;return a} function Bq(a,b,c,d,e){b=b===void 0?[]:b;c=c===void 0?!1:c;e=e===void 0?-1:e;if(a==null)return b;if(a instanceof Yo){var f=a.render();return Bq(f,b,c,d,e)}if(qq(b)&&b.nodeType===Node.ELEMENT_NODE)switch(b.tagName){case"SCRIPT":fwa(b,a);return;case"STYLE":hwa(b,a);return;}tq(a)&&(a=sq(a),d&&c&&(d[e]=a));if($va(a)){c=awa(a);c=Array.from(c.childNodes);c=l(c);for(f=c.next();!f.done;f=c.next())Cq(b,f.value);return b}uq(a)&&(a=sq(a.toString()),d&&c&&(d[e]=a));if(qq(a))return Cq(b,a);if(Array.isArray(a)){for(f= 0;f0&&(b.children=c.length===1?c[0]:c);if(a.componentType===Wo){var f;owa(function(){var h=b;if(a.componentType!==Wo)f=!1;else{h||(h={});var m=new Gq(h,a),p=Jo(gp);try{var q=m.render(h)}finally{Jo(p)}q instanceof HTMLElement?(q.__instance=m,m.el=q,m.__type=a,a.TAG_NAME=q.tagName.toLowerCase(),Eq.didPatch(m),f=q):f=q}},a.name); if(f)return f}return pwa(a,b)},b.debugInstance); var d=wwa(a,b),e;for(e in b)Iva(d,e,b[e]);d._signalProps!=null&&d._disposeEffects==null&&rwa(d,b);Aq(c,d);Lva(d,b);Ova(d,b);return d} var uwa=function(a,b,c){this.afterRenderCallbacks=null;this.kind=a;this.props=b;this.children=c}; k(uwa,Yo);uwa.prototype.render=function(){var a=vwa(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var b=l(this.afterRenderCallbacks),c=b.next();!c.done;c=b.next())c=c.value,a=c(a);return a}; function wwa(a,b){a=(Uva.has(a.toLowerCase())?0:Tva.has(Vva(a)))?document.createElementNS("http://www.w3.org/2000/svg",Vva(a)):Nva(a,b)||document.createElement(a);a[swa]=!0;return a} ;Qo=function(a){throw fp(Error("The '"+a.debugName+"' signal was set within a computation. Please create a separate linked, computed or derived signal instead. See go/cow-error/signal-write-in-a-computation for more information."))}; function D(a,b){return nq.apply(null,[a,b].concat(ia(sa.apply(2,arguments))))} ;Sva=twa;function Hq(a,b){var c;b=Ap(function(){var d=oq(!0);jp++;try{c=Aq(a()),rp(!1)}catch(e){throw rp(!0),fp(e)}finally{oq(d)}},b===void 0?!1:b); return[c,b]} ;var xwa=Symbol("PIECES");function ywa(a,b,c){zwa(a,b);a[b][xwa].unshift(c)} function zwa(a,b){if(!a[b]||!a[b][xwa]){var c=a[b],d=c?[c]:[];a[b]=function(){for(var e=l(d),f=e.next();!f.done;f=e.next())f.value.apply(this,arguments)}; a[b][xwa]=d}} function Awa(a){if(!a)return[];var b=[];a=l(a);for(var c=a.next();!c.done;c=a.next())c=c.value,Array.isArray(c)?b.push.apply(b,ia(Awa(c))):b.push(c);return b} ;/* Copyright 2016 Google LLC SPDX-License-Identifier: BSD-3-Clause */ var Bwa=!!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString())||HTMLElement.es5Shimmed||ua.Reflect===void 0||ua.customElements===void 0||ua.customElements.polyfillWrapFlushCallback||!1,Cwa,Dwa=function(){var a=HTMLElement; if(Bwa)return a;if(Cwa!==void 0)return Cwa;var b=ua.Reflect,c=function(){return b.construct(a,[],this.constructor)}; c.prototype=a.prototype;c.prototype.constructor=c;c.es5Shimmed=!0;Object.setPrototypeOf(c,a);return Cwa=c},Ewa=!1;Bwa||Ewa||(Ewa=!0,ua.HTMLElement=Dwa());/* Copyright (c) 2019 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */ window.COMPILED=window.COMPILED||!1;var Iq={},Jq={},Kq=function(){return HTMLElement.apply(this,arguments)||this}; k(Kq,HTMLElement);Kq.import=function(a,b){return a?(a=Iq[a]||Jq[a.toLowerCase()])&&b?a.querySelector(b):a:null}; Kq.prototype.attributeChangedCallback=function(a,b,c){b!==c&&this.register()}; Kq.prototype.register=function(a){if(a=a||this.id){if(yk&&(Iq[a]||Jq[a.toLowerCase()])!==void 0)throw Iq[a]=Jq[a.toLowerCase()]=null,Error("strictTemplatePolicy: dom-module "+a+" re-registered");this.id=a;Iq[a]=Jq[a.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}}; ba.Object.defineProperties(Kq.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var a=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;a=qk(this.getAttribute("assetpath")||"",a.baseURI);this.__assetpath=sk(a)}return this.__assetpath}}}); ba.Object.defineProperties(Kq,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}}); Kq["import"]=Kq.import;Kq.prototype.modules=Iq;customElements.define("dom-module",Kq);var Fwa=0,Gwa=0,Lq=[],Hwa=0,Iwa=!1,Jwa=document.createTextNode("");new window.MutationObserver(Kwa).observe(Jwa,{characterData:!0});function Kwa(){Iwa=!1;for(var a=Lq.length,b=0;b=0){if(!Lq[b])throw Error("invalid async handle: "+a);Lq[b]=null}}};var Mwa=0,Rq=function(a){var b=a.__mixinApplications;b||(b=new WeakMap,a.__mixinApplications=b);var c=Mwa++;return function(d){var e=d.__mixinSet;if(e&&e[c])return d;var f=b,h=f.get(d);h||(h=a(d),f.set(d,h),d=Object.create(h.__mixinSet||e||null),d[c]=!0,h.__mixinSet=d);return h}};var Sq=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(a){return ShadyDOM.patch(a)}:function(a){return a};var Nwa=Rq(function(a){var b=function(){var c=a.call(this)||this;c.__dataEnabled=!1;c.__dataReady=!1;c.__dataInvalid=!1;c.__data={};c.__dataPending=null;c.__dataOld=null;c.__dataInstanceProps=null;c.__dataCounter=0;c.__serializing=!1;c._initializeProperties();return c}; k(b,a);b.createProperties=function(c){var d=this.prototype,e;for(e in c)e in d||d._createPropertyAccessor(e)}; b.attributeNameForProperty=function(c){return c.toLowerCase()}; b.typeForProperty=function(){}; b.prototype._createPropertyAccessor=function(c,d){this._addPropertyToAttributeMap(c);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[c]||(this.__dataHasAccessor[c]=!0,this._definePropertyAccessor(c,d))}; b.prototype._addPropertyToAttributeMap=function(c){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var d=this.__dataAttributes[c];d||(d=this.constructor.attributeNameForProperty(c),this.__dataAttributes[d]=c);return d}; b.prototype._definePropertyAccessor=function(c,d){Object.defineProperty(this,c,{get:function(){return this.__data[c]}, set:d?function(){}:function(e){this._setPendingProperty(c,e,!0)&&this._invalidateProperties()}})}; b.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()}; b.prototype._initializeProperties=function(){for(var c in this.__dataHasAccessor)this.hasOwnProperty(c)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[c]=this[c],delete this[c])}; b.prototype._initializeInstanceProperties=function(c){Object.assign(this,c)}; b.prototype._setProperty=function(c,d){this._setPendingProperty(c,d)&&this._invalidateProperties()}; b.prototype._getProperty=function(c){return this.__data[c]}; b.prototype._setPendingProperty=function(c,d){var e=this.__data[c],f=this._shouldPropertyChange(c,d,e);f&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||c in this.__dataOld||(this.__dataOld[c]=e),this.__data[c]=d,this.__dataPending[c]=d);return f}; b.prototype._isPropertyPending=function(c){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(c))}; b.prototype._invalidateProperties=function(){var c=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Qq.run(function(){c.__dataInvalid&&(c.__dataInvalid=!1,c._flushProperties())}))}; b.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}; b.prototype._flushProperties=function(){this.__dataCounter++;var c=this.__data,d=this.__dataPending,e=this.__dataOld;this._shouldPropertiesChange(c,d,e)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(c,d,e));this.__dataCounter--}; b.prototype._shouldPropertiesChange=function(c,d){return!!d}; b.prototype._propertiesChanged=function(){}; b.prototype._shouldPropertyChange=function(c,d,e){return e!==d&&(e===e||d===d)}; b.prototype.attributeChangedCallback=function(c,d,e,f){d!==e&&this._attributeToProperty(c,e);a.prototype.attributeChangedCallback&&a.prototype.attributeChangedCallback.call(this,c,d,e,f)}; b.prototype._attributeToProperty=function(c,d,e){if(!this.__serializing){var f=this.__dataAttributes;c=f&&f[c]||c;this[c]=this._deserializeValue(d,e||this.constructor.typeForProperty(c))}}; b.prototype._propertyToAttribute=function(c,d,e){this.__serializing=!0;e=arguments.length<3?this[c]:e;this._valueToNodeAttribute(this,e,d||this.constructor.attributeNameForProperty(c));this.__serializing=!1}; b.prototype._valueToNodeAttribute=function(c,d,e){d=this._serializeValue(d);if(e==="class"||e==="name"||e==="slot")c=Sq(c);d===void 0?c.removeAttribute(e):c.setAttribute(e,d===""&&window.trustedTypes?window.trustedTypes.emptyScript:d)}; b.prototype._serializeValue=function(c){switch(typeof c){case"boolean":return c?"":void 0;default:return c!=null?c.toString():void 0;}}; b.prototype._deserializeValue=function(c,d){switch(d){case Boolean:return c!==null;case Number:return Number(c);default:return c;}}; return b});var Owa=0,Pwa=[];function _regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry(a){console.log("["+a.is+"]: registered")} function Qwa(a){Pwa.push(a)} ;var Rwa=Rq(function(a){function b(f){f=Object.getPrototypeOf(f);return f.prototype instanceof e?f:null} function c(f){if(!f.hasOwnProperty("__ownProperties")){var h=null;if(f.hasOwnProperty("properties")){var m=f.properties;if(m){h={};for(var p in m){var q=m[p];h[p]=typeof q==="function"?{type:q}:q}}}f.__ownProperties=h}return f.__ownProperties} var d=Nwa(a),e=function(){return d.apply(this,arguments)||this}; k(e,d);e.finalize=function(){if(!this.hasOwnProperty("__finalized")){var f=b(this);f&&f.finalize();this.__finalized=!0;this._finalizeClass()}}; e._finalizeClass=function(){var f=c(this);f&&this.createProperties(f)}; e.typeForProperty=function(f){return(f=this._properties[f])&&f.type}; e.prototype._initializeProperties=function(){Owa++;this.constructor.finalize();d.prototype._initializeProperties.call(this)}; e.prototype.connectedCallback=function(){d.prototype.connectedCallback&&d.prototype.connectedCallback.call(this);this._enableProperties()}; e.prototype.disconnectedCallback=function(){d.prototype.disconnectedCallback&&d.prototype.disconnectedCallback.call(this)}; ba.Object.defineProperties(e,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var f=this;if(!this.hasOwnProperty("__observedAttributes")){Qwa(this.prototype);var h=this._properties;this.__observedAttributes=h?Object.keys(h).map(function(m){return f.prototype._addPropertyToAttributeMap(m)}):[]}return this.__observedAttributes}}, _properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var f=b(this);this.__properties=Object.assign({},f&&f._properties,c(this))}return this.__properties}}}); return e});var Uq={},Swa=/-[a-z]/g,Twa=/([A-Z])/g;function Vq(a){return Uq[a]||(Uq[a]=a.indexOf("-")<0?a:a.replace(Swa,function(b){return b[1].toUpperCase()}))} function Wq(a){return Uq[a]||(Uq[a]=a.replace(Twa,"-$1").toLowerCase())} ;for(var Uwa={},Xq=HTMLElement.prototype;Xq;){for(var Vwa=Object.getOwnPropertyNames(Xq),Wwa=0;Wwa=0} function Zq(a){var b=a.indexOf(".");return b===-1?a:a.slice(0,b)} function fxa(a,b){return a.indexOf(b+".")===0} function $q(a,b){return b.indexOf(a+".")===0} function ar(a,b,c){return b+c.slice(a.length)} function gxa(a,b){return a===b||fxa(a,b)||$q(a,b)} function br(a){if(Array.isArray(a)){for(var b=[],c=0;c1){for(b=0;b>1,w=p.get(m[v].methodInfo)-p.get(h.methodInfo);if(w<0)q=v+1;else if(w>0)t=v-1;else{u=v;break}}u<0&&(u=t+1);m.splice(u,0,h)}}}; function sxa(a){var b=a.constructor.__orderedComputedDeps;if(!b){b=new Map;for(var c=a.__computeEffects,d=txa(a),e=d.counts,f=d.ready,h=d.total;d=f.shift();)b.set(d,b.size),(d=c[d])&&d.forEach(function(m){m=m.info.methodInfo;--h;--e[m]===0&&f.push(m)}); h!==0&&console.warn("Computed graph for "+a.localName+" incomplete; circular?");a.constructor.__orderedComputedDeps=b}return b} function txa(a){var b=a.__computeInfo,c={};a=a.__computeEffects;var d=[],e=0,f;for(f in b){var h=b[f];e+=c[f]=h.args.filter(function(p){return!p.literal}).length+(h.dynamicFn?1:0)}for(var m in a)b[m]||d.push(m); return{counts:c,ready:d,total:e}} function uxa(a,b,c,d,e){b=vxa(a,b,c,d,e);if(b===er)return!1;e=e.methodInfo;if(a.__dataHasAccessor&&a.__dataHasAccessor[e])return a._setPendingProperty(e,b,!0);a[e]=b;return!1} function wxa(a,b,c,d,e,f,h){c.bindings=c.bindings||[];d={kind:d,target:e,parts:f,literal:h,isCompound:f.length!==1};c.bindings.push(d);d.target&&d.kind!="attribute"&&d.kind!="text"&&!d.isCompound&&d.parts[0].mode==="{"&&(c=d.parts[0],f=c.negate,d.listenerEvent=c.event||Wq(e)+"-changed",d.listenerNegate=f);e=b.nodeInfoList.length;for(c=0;cp.source.length&&m.kind=="property"&&!m.isCompound&&h.__isPropertyEffectsClient&&h.__dataHasAccessor&&h.__dataHasAccessor[m.target]?(c=c[b],b=ar(p.source,m.target,b),h._setPendingPropertyOrPath(b,c,!1,!0)&&a._enqueueClient(h)):(b=e.evaluator._evaluateBinding(a,p,b,c,d,f),b!==er&&(m.isCompound&&(c=h.__dataCompoundStorage[m.target],c[p.compoundIndex]=b,b=c.join("")),m.kind==="attribute"||m.target!=="textContent"&&( m.target!=="value"||h.localName!=="input"&&h.localName!=="textarea")||(b=b==void 0?"":b),p=b,wk&&(p=wk(p,m.target,m.kind,h)),m.kind=="attribute"?a._valueToNodeAttribute(h,p,m.target):(m=m.target,h.__isPropertyEffectsClient&&h.__dataHasAccessor&&h.__dataHasAccessor[m]?h.__readOnly&&h.__readOnly[m]||h._setPendingProperty(m,p)&&a._enqueueClient(h):a._setUnmanagedPropertyToNode(h,m,p))))} function Rxa(a,b,c){if(c.listenerEvent){var d=c.parts[0];a.addEventListener(c.listenerEvent,function(e){var f=c.target,h=d.source,m=d.negate,p=e.detail,q=p&&p.path;q?(h=ar(f,h,q),e=p&&p.value):e=e.currentTarget[f];b.__readOnly&&b.__readOnly[h]||!b._setPendingPropertyOrPath(h,m?!e:e,!0,!!q)||p&&p.queueProperty||b._invalidateProperties()})}} function Sxa(a,b,c,d,e,f){f=b.static||f&&(typeof f!=="object"||f[b.methodName]);e={methodName:b.methodName,args:b.args,methodInfo:e,dynamicFn:f};for(var h=0,m=void 0;h="0"&&c<="9"&&(c="#");switch(c){case"'":case"\"":b.value=a.slice(1,-1);b.literal=!0;break;case"#":b.value=Number(a),b.literal=!0;}b.literal||(b.rootProperty=Zq(a),b.structured=Yq(a),b.structured&&(b.wildcard=a.slice(-2)==".*",b.wildcard&&(b.name=a.slice(0,-2))));return b} function Yxa(a,b,c){a=cr(a,c);a===void 0&&(a=b[c]);return a} function Zxa(a,b,c,d){d={indexSplices:d};Fk&&!a._overrideLegacyUndefined&&(b.splices=d);a.notifyPath(c+".splices",d);a.notifyPath(c+".length",b.length);Fk&&!a._overrideLegacyUndefined&&(d.indexSplices=[])} function gr(a,b,c,d,e,f){Zxa(a,b,c,[{index:d,addedCount:e,removed:f,object:b,type:"splice"}])} var ir=Rq(function(a){var b=exa(Ywa(a));a=function(){var c=b.call(this)||this;c.__isPropertyEffectsClient=!0;return c}; k(a,b);a.prototype._initializeProperties=function(){b.prototype._initializeProperties.call(this);this._registerHost();this.__dataClientsReady=!1;this.__dataLinkedPaths=this.__dataToNotify=this.__dataPendingClients=null;this.__dataHasPaths=!1;this.__dataCompoundStorage=this.__dataCompoundStorage||null;this.__dataHost=this.__dataHost||null;this.__dataTemp={};this.__dataClientsInitialized=!1}; a.prototype._registerHost=function(){if(hr.length){var c=hr[hr.length-1];c._enqueueClient(this);this.__dataHost=c}}; a.prototype._initializeProtoProperties=function(c){this.__data=Object.create(c);this.__dataPending=Object.create(c);this.__dataOld={}}; a.prototype._initializeInstanceProperties=function(c){var d=this.__readOnly,e;for(e in c)d&&d[e]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[e]=this.__dataPending[e]=c[e])}; a.prototype._addPropertyEffect=function(c,d,e){this._createPropertyAccessor(c,d=="__readOnly");var f=lxa(this,d,!0)[c];f||(f=this[d][c]=[]);f.push(e)}; a.prototype._removePropertyEffect=function(c,d,e){c=lxa(this,d,!0)[c];e=c.indexOf(e);e>=0&&c.splice(e,1)}; a.prototype._hasPropertyEffect=function(c,d){d=this[d];return!(!d||!d[c])}; a.prototype._hasReadOnlyEffect=function(c){return this._hasPropertyEffect(c,"__readOnly")}; a.prototype._hasNotifyEffect=function(c){return this._hasPropertyEffect(c,"__notifyEffects")}; a.prototype._hasReflectEffect=function(c){return this._hasPropertyEffect(c,"__reflectEffects")}; a.prototype._hasComputedEffect=function(c){return this._hasPropertyEffect(c,"__computeEffects")}; a.prototype._setPendingPropertyOrPath=function(c,d,e,f){if(f||Zq(Array.isArray(c)?c[0]:c)!==c){if(!f&&(f=cr(this,c),c=ixa(this,c,d),!c||!b.prototype._shouldPropertyChange.call(this,c,d,f)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(c,d,e)){if(e=this.__dataLinkedPaths)for(var h in e)f=e[h],$q(h,c)?(f=ar(h,f,c),this._setPendingPropertyOrPath(f,d,!0,!0)):$q(f,c)&&(f=ar(f,h,c),this._setPendingPropertyOrPath(f,d,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[c])return this._setPendingProperty(c, d,e);this[c]=d}return!1}; a.prototype._setUnmanagedPropertyToNode=function(c,d,e){if(e!==c[d]||typeof e=="object")d==="className"&&(c=Sq(c)),c[d]=e}; a.prototype._setPendingProperty=function(c,d,e){var f=this.__dataHasPaths&&Yq(c);if(this._shouldPropertyChange(c,d,(f?this.__dataTemp:this.__data)[c])){this.__dataPending||(this.__dataPending={},this.__dataOld={});c in this.__dataOld||(this.__dataOld[c]=this.__data[c]);f?this.__dataTemp[c]=d:this.__data[c]=d;this.__dataPending[c]=d;if(f||this.__notifyEffects&&this.__notifyEffects[c])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[c]=e;return!0}return!1}; a.prototype._setProperty=function(c,d){this._setPendingProperty(c,d,!0)&&this._invalidateProperties()}; a.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()}; a.prototype._enqueueClient=function(c){this.__dataPendingClients=this.__dataPendingClients||[];c!==this&&this.__dataPendingClients.push(c)}; a.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}; a.prototype.__enableOrFlushClients=function(){var c=this.__dataPendingClients;if(c){this.__dataPendingClients=null;for(var d=0;d1)return er;h[m]=w}return h}; a.addPropertyEffect=function(c,d,e){this.prototype._addPropertyEffect(c,d,e)}; a.createPropertyObserver=function(c,d,e){this.prototype._createPropertyObserver(c,d,e)}; a.createMethodObserver=function(c,d){this.prototype._createMethodObserver(c,d)}; a.createNotifyingProperty=function(c){this.prototype._createNotifyingProperty(c)}; a.createReadOnlyProperty=function(c,d){this.prototype._createReadOnlyProperty(c,d)}; a.createReflectedProperty=function(c){this.prototype._createReflectedProperty(c)}; a.createComputedProperty=function(c,d,e){this.prototype._createComputedProperty(c,d,e)}; a.bindTemplate=function(c){return this.prototype._bindTemplate(c)}; a.prototype._bindTemplate=function(c,d){var e=this.constructor._parseTemplate(c),f=this.__preBoundTemplateInfo==e;if(!f)for(var h in e.propertyEffects)this._createPropertyAccessor(h);d?(e=Object.create(e),e.wasPreBound=f,this.__templateInfo?(c=c._parentTemplateInfo||this.__templateInfo,d=c.lastChild,e.parent=c,c.lastChild=e,(e.previousSibling=d)?d.nextSibling=e:c.firstChild=e):this.__templateInfo=e):this.__preBoundTemplateInfo=e;return e}; a._addTemplatePropertyEffect=function(c,d,e){(c.hostProps=c.hostProps||{})[d]=!0;c=c.propertyEffects=c.propertyEffects||{};(c[d]=c[d]||[]).push(e)}; a.prototype._stampTemplate=function(c,d){d=d||this._bindTemplate(c,!0);hr.push(this);c=b.prototype._stampTemplate.call(this,c,d);hr.pop();d.nodeList=c.nodeList;if(!d.wasPreBound)for(var e=d.childNodes=[],f=c.firstChild;f;f=f.nextSibling)e.push(f);c.templateInfo=d;e=d.nodeList;f=d.nodeInfoList;if(f.length)for(var h=0;hf&&e.push({literal:c.slice(f,h.index)});f=h[1][0];var m=!!h[2];h=h[3].trim();var p=!1,q="",t=-1;f=="{"&&(t=h.indexOf("::"))>0&&(q=h.substring(t+2),h=h.substring(0,t),p=!0);t=Wxa(h);var u=[];if(t){var v=t,w=v.args;v=v.methodName;for(var y=0;y0||h>0;)p==0?(a.push(2),h--):h==0?(a.push(3),p--):(m=b[p-1][h-1],q=b[p-1][h],t=b[p][h-1],u=q=t.s$jscomp$99.index+t.s$jscomp$99.removed.length?e.set(v,u+t.s$jscomp$99.addedCount-t.s$jscomp$99.removed.length):e.set(v,-1))}}(f)); for(var m=0;m=0&&c.linkPaths("items."+e,"selected."+d++)})}else this.__selectedMap.forEach(function(e){c.linkPaths("selected","items."+e); c.linkPaths("selectedItem","items."+e)})}; a.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null}; a.prototype.isSelected=function(c){return this.__selectedMap.has(c)}; a.prototype.isIndexSelected=function(c){return this.isSelected(this.items[c])}; a.prototype.__deselectChangedIdx=function(c){var d=this,e=this.__selectedIndexForItemIndex(c);if(e>=0){var f=0;this.__selectedMap.forEach(function(h,m){e==f++&&d.deselect(m)})}}; a.prototype.__selectedIndexForItemIndex=function(c){if(c=this.__dataLinkedPaths["items."+c])return parseInt(c.slice(9),10)}; a.prototype.deselect=function(c){var d=this.__selectedMap.get(c);if(d>=0){this.__selectedMap.delete(c);var e;this.multi&&(e=this.__selectedIndexForItemIndex(d));this.__updateLinks();this.multi?this.splice("selected",e,1):this.selected=this.selectedItem=null}}; a.prototype.deselectIndex=function(c){this.deselect(this.items[c])}; a.prototype.select=function(c){this.selectIndex(this.items.indexOf(c))}; a.prototype.selectIndex=function(c){var d=this.items[c];this.isSelected(d)?this.toggle&&this.deselectIndex(c):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(d,c),this.__updateLinks(),this.multi?this.push("selected",d):this.selected=this.selectedItem=d)}; ba.Object.defineProperties(a,{properties:{configurable:!0,enumerable:!0,get:function(){return{items:{type:Array},multi:{type:Boolean,value:!1},selected:{type:Object,notify:!0},selectedItem:{type:Object,notify:!0},toggle:{type:Boolean,value:!1}}}}, observers:{configurable:!0,enumerable:!0,get:function(){return["__updateSelection(multi, items.*)"]}}}); return a}),pya=oya(or),pr=function(){return pya.apply(this,arguments)||this}; k(pr,pya);ba.Object.defineProperties(pr,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}}, template:{configurable:!0,enumerable:!0,get:function(){return null}}}); customElements.define(pr.is,pr);var qya=window.Polymer;window.Polymer=function(a){return window.Polymer._polymerFn(a)}; qya&&Object.assign(Polymer,qya);Polymer._polymerFn=function(){throw Error("Load polymer.html to use the Polymer() function.")};Polymer.ResolveUrl={resolveCss:rk,resolveUrl:qk,pathFromUrl:sk};Polymer.DomModule=Kq;Polymer.Async={timeOut:Mq,animationFrame:Pq,idlePeriod:Lwa,microTask:Qq};Polymer.dedupingMixin=Rq;Polymer.wrap=Sq;Polymer.PropertiesChanged=Nwa;Polymer.telemetry={instanceCount:Owa,incrementInstanceCount:function(){Owa++}, registrations:Pwa,register:Qwa,dumpRegistrations:function(){Pwa.forEach(_regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=Rwa;Polymer.CaseMap={dashToCamelCase:Vq,camelToDashCase:Wq};Polymer.PropertyAccessors=Ywa;Polymer.TemplateStamp=exa;Polymer.Path={isPath:Yq,root:Zq,isAncestor:fxa,isDescendant:$q,translate:ar,matches:gxa,normalize:br,split:hxa,get:cr,set:ixa,isDeep:Yq};Polymer.Settings={useShadow:tk,useNativeCSSProperties:qla,useNativeCustomElements:rla,get rootPath(){return vk},setRootPath:function(a){vk=a}, get sanitizeDOMValue(){return wk},setSanitizeDOMValue:function(a){wk=a}, get passiveTouchGestures(){return xk},setPassiveTouchGestures:function(a){xk=a}, get strictTemplatePolicy(){return yk},setStrictTemplatePolicy:function(a){yk=a}, get allowTemplateFromDomModule(){return zk},setAllowTemplateFromDomModule:function(a){zk=a}, get legacyOptimizations(){return Ak},setLegacyOptimizations:function(a){Ak=a}, get syncInitialRender(){return Ek},setSyncInitialRender:function(a){Ek=a}, get legacyUndefined(){return Fk},setLegacyUndefined:function(a){Fk=a}, get legacyWarnings(){return Dk},setLegacyWarnings:function(a){Dk=a}, get orderedComputed(){return Gk},setOrderedComputed:function(a){Gk=a}, get fastDomIf(){return Ik},setFastDomIf:function(a){Ik=a}, get removeNestedTemplates(){return Hk},setRemoveNestedTemplates:function(a){Hk=a}, get suppressTemplateNotifications(){return Jk},setSuppressTemplateNotifications:Jk};Polymer.rootPath!==void 0&&(vk=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(wk=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(xk=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(yk=Polymer.strictTemplatePolicy);zk=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(Ak=Polymer.legacyOptimizations); Polymer.syncInitialRender!==void 0&&(Ek=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(Fk=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(Dk=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(Gk=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(Ik=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(Hk=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(Jk=Polymer.suppressTemplateNotifications); Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return wk}, set:function(a){wk=a}});Polymer.PropertyEffects=ir;Polymer.StyleGather={stylesFromModules:aya,stylesFromModule:bya,stylesFromTemplate:jr,stylesFromModuleImports:cya,cssFromModules:dya,cssFromModule:eya,cssFromTemplate:fya,cssFromModuleImports:function(a){return(a=Kq.import(a))?_cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(a):""}};Polymer.ElementMixin=kr;Polymer.updateStyles=hya;Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:kya};Polymer.html=nr;Polymer.htmlLiteral=function(a){return new mr(a,sa.apply(1,arguments))};Polymer.Element=or;Polymer.ArraySelectorMixin=oya;Polymer.ArraySelector=pr;var rya=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,qr=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,sya=/@media\s(.*)/;function tya(a,b){for(var c in b)c===null?a.style.removeProperty(c):a.style.setProperty(c,b[c])} function uya(a,b){return(a=window.getComputedStyle(a).getPropertyValue(b))?a.trim():""} ;var vya=null,wya=window.HTMLImports&&window.HTMLImports.whenReady||null,xya;function yya(a){requestAnimationFrame(function(){wya?wya(a):(vya||(vya=new Promise(function(b){xya=b}),document.readyState==="complete"?xya():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&xya()})),vya.then(function(){a&&a()}))})} ;var rr=null,sr=null,tr=function(){this.customStyles=[];this.enqueued=!1;yya(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},zya=function(a){!a.enqueued&&sr&&(a.enqueued=!0,yya(sr))}; tr.prototype.addCustomStyle=function(a){a.__seenByShadyCSS||(a.__seenByShadyCSS=!0,this.customStyles.push(a),zya(this))}; tr.prototype.getStyleForCustomStyle=function(a){if(a.__shadyCSSCachedStyle)return a.__shadyCSSCachedStyle;var b;a.getStyle?b=a.getStyle():b=a;return b}; tr.prototype.processStyles=function(){for(var a=this.customStyles,b=0;b-1)&&a!=="touchend"&&Hya&&Lya&&xk)return{passive:!0}} var Nya=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),Oya=[],Pya={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},Qya={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},Sya=function(a){var b=a.sourceCapabilities;if(!b||b.firesTouchEvents)if(a.__polymerGesturesHandled={skip:!0},a.type==="click"){b=!1;for(var c=Dr(a),d=0;d-1}if(c[d]===Rya)return}b||(a.preventDefault(),a.stopPropagation())}}; function Tya(a){for(var b=Nya?["click"]:Cr,c=0,d;c-1?b==="mousemove"?(b=a.buttons===void 0?1:a.buttons,a instanceof window.MouseEvent&&!Kya&&(b=Iya[a.which]||0),!!(b&1)):(a.button===void 0?0:a.button)===0:!1} function Uya(a){if(a.type==="click"){if(a.detail===0)return!0;var b=_findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a);if(!b.nodeType||b.nodeType!==Node.ELEMENT_NODE)return!0;b=b.getBoundingClientRect();var c=a.pageX;a=a.pageY;return!(c>=b.left&&c<=b.right&&a>=b.top&&a<=b.bottom)}return!1} var Rya=null,Fr=null,Vya=0,Wya=0,Xya=-1,Yya=!1;function Zya(a,b,c){a.movefn=b;a.upfn=c;document.addEventListener("mousemove",b);document.addEventListener("mouseup",c)} function Gr(a){document.removeEventListener("mousemove",a.movefn);document.removeEventListener("mouseup",a.upfn);a.movefn=null;a.upfn=null} document.addEventListener("touchend",function(a){Fr||Tya(!0);Rya=Dr(a)[0];Fr=Ar(Fr,Mq.after(2500),function(){Tya();Fr=Rya=null})},Lya?{passive:!0}:!1); var Dr=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(a){return a.composedPath&&a.composedPath()||[]},Hr={},Ir=[]; function $ya(a,b){for(var c=document.elementFromPoint(a,b),d=c;d&&d.shadowRoot&&!window.ShadyDOM;){var e=d;d=d.shadowRoot.elementFromPoint(a,b);if(e===d)break;d&&(c=d)}return c} function _findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a){var b=Dr(a);return b.length>0?b[0]:a.target} function _handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a){var b=a.type,c=a.currentTarget.__polymerGestures;if(c&&(c=c[b])){if(!a.__polymerGesturesHandled&&(a.__polymerGesturesHandled={},b.slice(0,5)==="touch")){var d=a.changedTouches[0];b==="touchstart"&&a.touches.length===1&&(Xya=d.identifier);if(Xya!==d.identifier)return;Hya||(b==="touchstart"||b==="touchmove")&&_handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a)}d=a.__polymerGesturesHandled; if(!d.skip){for(var e=0,f;e-1&&f.reset&&f.reset();for(e=0;ee:c==="pan-y"&&(d=e>b));d?a.preventDefault(): Jr("track")}} function Kr(a,b,c){return Hr[b]?(_add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a,b,c),!0):!1} function Lr(a,b,c){return Hr[b]?(_remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a,b,c),!0):!1} function _add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a,b,c){var d=Hr[b],e=d.deps,f=d.name,h=a.__polymerGestures;h||(a.__polymerGestures=h={});for(var m=0,p,q;m-1&&p!=="click"||((q=h[p])||(h[p]=q={_count:0}),q._count===0&&a.addEventListener(p,_handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,Mya(p)),q[f]=(q[f]||0)+1,q._count=(q._count||0)+1);a.addEventListener(b,c);d.touchAction&&Mr(a,d.touchAction)} function _remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a,b,c){var d=Hr[b],e=d.deps;d=d.name;var f=a.__polymerGestures;if(f)for(var h=0,m,p;h2&&this.moves.shift();this.moves.push(a)}, movefn:null,upfn:null,prevent:!1},reset:function(){this.info.state="start";this.info.started=!1;this.info.moves=[];this.info.x=0;this.info.y=0;this.info.prevent=!1;Gr(this.info)}, mousedown:function(a){if(Er(a)){var b=_findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a),c=this,d=function(e){var f=e.clientX,h=e.clientY;aza(c.info,f,h)&&(c.info.state=c.info.started?e.type==="mouseup"?"end":"track":"start",c.info.state==="start"&&Jr("tap"),c.info.addMove({x:f,y:h}),Er(e)||(c.info.state="end",Gr(c.info)),b&&bza(c.info,b,e),c.info.started=!0)}; Zya(this.info,d,function(e){c.info.started&&d(e);Gr(c.info)}); this.info.x=a.clientX;this.info.y=a.clientY}}, touchstart:function(a){a=a.changedTouches[0];this.info.x=a.clientX;this.info.y=a.clientY}, touchmove:function(a){var b=_findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a);a=a.changedTouches[0];var c=a.clientX,d=a.clientY;aza(this.info,c,d)&&(this.info.state==="start"&&Jr("tap"),this.info.addMove({x:c,y:d}),bza(this.info,b,a),this.info.state="track",this.info.started=!0)}, touchend:function(a){var b=_findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a);a=a.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:a.clientX,y:a.clientY}),bza(this.info,b,a))}}); function aza(a,b,c){if(a.prevent)return!1;if(a.started)return!0;c=Math.abs(a.y-c);return Math.abs(a.x-b)>=5||c>=5} function bza(a,b,c){if(b){var d=a.moves[a.moves.length-2],e=a.moves[a.moves.length-1],f=e.x-a.x,h=e.y-a.y,m=0;if(d){var p=e.x-d.x;m=e.y-d.y}_fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(b,"track",{state:a.state,x:c.clientX,y:c.clientY,dx:f,dy:h,ddx:p,ddy:m,sourceEvent:c,hover:function(){return $ya(c.clientX,c.clientY)}})}} Nr({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset:function(){this.info.x=NaN;this.info.y=NaN;this.info.prevent=!1}, mousedown:function(a){Er(a)&&(this.info.x=a.clientX,this.info.y=a.clientY)}, click:function(a){Er(a)&&cza(this.info,a)}, touchstart:function(a){a=a.changedTouches[0];this.info.x=a.clientX;this.info.y=a.clientY}, touchend:function(a){cza(this.info,a.changedTouches[0],a)}}); function cza(a,b,c){var d=Math.abs(b.clientX-a.x),e=Math.abs(b.clientY-a.y),f=_findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(c||b);!f||Qya[f.localName]&&f.hasAttribute("disabled")||!(isNaN(d)||isNaN(e)||d<=25&&e<=25||Uya(b))||a.prevent||_fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f,"tap",{x:b.clientX,y:b.clientY,sourceEvent:b,preventer:c})} ;var dza=Rq(function(a){var b=function(){return a.apply(this,arguments)||this}; k(b,a);b.prototype._addEventListenerToNode=function(c,d,e){Kr(c,d,e)||a.prototype._addEventListenerToNode.call(this,c,d,e)}; b.prototype._removeEventListenerFromNode=function(c,d,e){Lr(c,d,e)||a.prototype._removeEventListenerFromNode.call(this,c,d,e)}; return b});function eza(a,b,c,d,e){var f;e&&(f=typeof c==="object"&&c!==null)&&(d=a.__dataTemp[b]);d=d!==c&&(d===d||c===c);f&&d&&(a.__dataTemp[b]=c);return d} var Pr=Rq(function(a){var b=function(){return a.apply(this,arguments)||this}; k(b,a);b.prototype._shouldPropertyChange=function(c,d,e){return eza(this,c,d,e,!0)}; return b}),fza=Rq(function(a){var b=function(){return a.apply(this,arguments)||this}; k(b,a);b.prototype._shouldPropertyChange=function(c,d,e){return eza(this,c,d,e,this.mutableData)}; ba.Object.defineProperties(b,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}}); return b}); Pr._mutablePropertyChange=eza;var gza=!1;function hza(){if(Ak&&!tk){if(!gza){gza=!0;var a=document.createElement("style");a.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(a)}return!0}return!1} ;var iza=dza(fza(ir(HTMLElement))),Qr=function(){var a=iza.call(this)||this;if(yk)throw Error("strictTemplatePolicy: dom-bind not allowed");a.root=null;a.$=null;a.__children=null;return a}; k(Qr,iza);g=Qr.prototype;g.attributeChangedCallback=function(){this.mutableData=!0}; g.connectedCallback=function(){hza()||(this.style.display="none");this.render()}; g.disconnectedCallback=function(){this.__removeChildren()}; g.__insertChildren=function(){Sq(Sq(this).parentNode).insertBefore(this.root,this)}; g.__removeChildren=function(){if(this.__children)for(var a=0;a child")}); c.observe(this,{childList:!0});return}this.root=this._stampTemplate(b);this.$=this.root.$;this.__children=[];for(var d=this.root.firstChild;d;d=d.nextSibling)this.__children[this.__children.length]=d;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}; ba.Object.defineProperties(Qr,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}}); customElements.define("dom-bind",Qr);Polymer.Debouncer=yr;Polymer.Gestures={gestures:Hr,recognizers:Ir,deepTargetFind:$ya,addListener:Kr,removeListener:Lr,register:Nr,setTouchAction:Mr,prevent:Jr,resetMouseCanceller:function(){Fr&&Fr.flush()}, findOriginalTarget:_findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:Kr,remove:Lr};Polymer.GestureEventListeners=dza;Polymer.MutableData=Pr;Polymer.OptionalMutableData=fza;Polymer.DomBind=Qr;var Rr=function(){do{var a=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var b=Gya()}while(a||b)};var jza=null;function kza(){return jza} kza.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:kza,writable:!0}});var lza=ir(kza),mza=Pr(lza);function nza(a,b){jza=a;Object.setPrototypeOf(a,b.prototype);new b;jza=null} var oza=ir(function(){}); function pza(a,b){for(var c=0;c can only be templatized once");a.__templatizeOwner=b;var d=(b?b.constructor:Sr)._parseTemplate(a),e=d.templatizeInstanceClass;e||(e=sza(a,d,c),d.templatizeInstanceClass=e);var f=rza(a);uza(a,d,c,f);c=function(){return e.apply(this,arguments)||this}; k(c,e);c.prototype._methodHost=f;c.prototype.__dataHost=a;c.prototype.__templatizeOwner=b;c.prototype.__hostProps=d.hostProps;return c} function wza(a,b,c){c=c.constructor._properties;a=a.propertyEffects;b=b.instanceProps;for(var d in a)if(!(c[d]||b&&b[d]))for(var e=a[d],f=0;f child")}); c.observe(this,{childList:!0});return!1}this.__template=b}return!0}; g.__ensureInstance=function(){var a=Sq(this).parentNode;if(this.__hasInstance()){var b=this.__getInstanceNodes();if(b&&b.length&&Sq(this).previousSibling!==b[b.length-1])for(var c=0,d=void 0;c child")}); c.observe(this,{childList:!0});return!1}var d={};d[this.as]=!0;d[this.indexAs]=!0;d[this.itemsIndexAs]=!0;this.__ctor=Tr(b,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:d,forwardHostProp:function(e,f){for(var h=this.__instances,m=0,p=void 0;m0?Mq.after(b):Qq,a.bind(this));Br(this.__renderDebouncer)}; g.render=function(){this.__debounceRender(this.__render);Rr()}; g.__render=function(){var a=this;if(this.__ensureTemplatized()){var b=this.items||[],c=this.__sortAndFilterItems(b),d=this.__calculateLimit(c.length);this.__updateInstances(b,d,c);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){a.__chunkingId=null;a.__continueChunking()})); this._setRenderedItemCount(this.__instances.length);Jk&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}}; g.__sortAndFilterItems=function(a){for(var b=this,c=Array(a.length),d=0;d=e;a--)this.__detachAndRemoveInstance(a)}; g.__detachInstance=function(a){a=this.__instances[a];for(var b=Sq(a.root),c=0;c-1&&fs.splice(c,1)}}; a.__activateDir=!1;return a});var Qza=function(a){for(;a;){var b=Object.getOwnPropertyDescriptor(a,"observedAttributes");if(b)return b.get;a=Object.getPrototypeOf(a.prototype).constructor}return function(){return[]}}; Rq(function(a){var b=kr(a),c=Qza(b);a=function(){return b.call(this)||this}; k(a,b);a.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:b.prototype._initializeProperties.call(this)}; a.prototype._enableProperties=function(){this.__isUpgradeDisabled||b.prototype._enableProperties.call(this)}; a.prototype._canApplyPropertyDefault=function(d){return b.prototype._canApplyPropertyDefault.call(this,d)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(d))}; a.prototype.attributeChangedCallback=function(d,e,f,h){d=="disable-upgrade"?this.__isUpgradeDisabled&&f==null&&(b.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,Sq(this).isConnected&&b.prototype.connectedCallback.call(this)):b.prototype.attributeChangedCallback.call(this,d,e,f,h)}; a.prototype.connectedCallback=function(){this.__isUpgradeDisabled||b.prototype.connectedCallback.call(this)}; a.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||b.prototype.disconnectedCallback.call(this)}; ba.Object.defineProperties(a,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return c.call(this).concat("disable-upgrade")}}}); return a});var js=!1,ks=[],ls=[];function Rza(){js=!0;requestAnimationFrame(function(){js=!1;Sza(ks);setTimeout(function(){for(var a=0,b=ls.length;a *")}; var yAa=function(a,b,c){b=b.replace(rya,function(d,e,f,h){return a._produceCssProperties(d,e,f,h,c)}); return a._consumeCssProperties(b,c)}; g=ss.prototype;g._getInitialValueForProperty=function(a){this._measureElement||(this._measureElement=document.createElement("meta"),this._measureElement.setAttribute("apply-shim-measure",""),this._measureElement.style.all="initial",document.head.appendChild(this._measureElement));return window.getComputedStyle(this._measureElement).getPropertyValue(a)}; g._fallbacksFromPreviousRules=function(a){for(var b=this,c=a;c.parent;)c=c.parent;var d={},e=!1;qs(c,function(f){(e=e||f===a)||f.selector===a.selector&&Object.assign(d,b._cssTextToMap(f.parsedCssText))}); return d}; g._consumeCssProperties=function(a,b){for(var c;c=qr.exec(a);){var d=c[0],e=c[1];c=c.index;var f=c+d.indexOf("@apply"),h=c+d.length;d=a.slice(0,f);a=a.slice(h);f=b?this._fallbacksFromPreviousRules(b):{};Object.assign(f,this._cssTextToMap(d));e=this._atApplyToCssProperties(e,f);a=""+d+e+a;qr.lastIndex=c+e.length}return a}; g._atApplyToCssProperties=function(a,b){a=a.replace(uAa,"");var c=[],d=this._map.get(a);d||(this._map.set(a,{}),d=this._map.get(a));if(d){this._currentElement&&(d.dependants[this._currentElement]=!0);var e,f=d.properties;for(e in f){var h=b&&b[e];d=[e,": var(",a,"_-_",e];h&&d.push(",",h.replace(wAa,""));d.push(")");wAa.test(f[e])&&d.push(" !important");c.push(d.join(""))}}return c.join("; ")}; g._replaceInitialOrInherit=function(a,b){var c=vAa.exec(b);c&&(b=c[1]?this._getInitialValueForProperty(a):"apply-shim-inherit");return b}; g._cssTextToMap=function(a,b){b=b===void 0?!1:b;a=a.split(";");for(var c,d,e={},f=0;f1&&(c=d[0].trim(),d=d.slice(1).join(":"),b&&(d=this._replaceInitialOrInherit(c,d)),e[c]=d);return e}; g._invalidateMixinEntry=function(a){if(rs)for(var b in a.dependants)b!==this._currentElement&&rs(b)}; g._produceCssProperties=function(a,b,c,d,e){var f=this;c&&sAa(c,function(y,A){A&&f._map.get(A)&&(d="@apply "+A+";")}); if(!d)return a;var h=this._consumeCssProperties(""+d,e);e=a.slice(0,a.indexOf("--"));var m=h=this._cssTextToMap(h,!0),p=this._map.get(b),q=p&&p.properties;q?m=Object.assign(Object.create(q),h):this._map.set(b,m);var t=[],u,v=!1;for(u in m){var w=h[u];w===void 0&&(w="initial");!q||u in q||(v=!0);t.push(""+b+"_-_"+u+": "+w)}v&&this._invalidateMixinEntry(p);p&&(p.properties=m);c&&(e=a+";"+e);return""+e+t.join("; ")+";"}; ss.prototype.detectMixin=ss.prototype.detectMixin;ss.prototype.transformStyle=ss.prototype.JSC$7262_transformStyle;ss.prototype.transformCustomStyle=ss.prototype.transformCustomStyle;ss.prototype.transformRules=ss.prototype.transformRules;ss.prototype.transformRule=ss.prototype.transformRule;ss.prototype.transformTemplate=ss.prototype.transformTemplate;ss.prototype._separator="_-_";Object.defineProperty(ss.prototype,"invalidCallback",{get:function(){return rs}, set:function(a){rs=a}});var ts=new ss,zAa=function(){this.customStyleInterface=null;ts.invalidCallback=mAa},us=function(a){!a.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(a.customStyleInterface=window.ShadyCSS.CustomStyleInterface,a.customStyleInterface.transformCallback=function(b){ts.transformCustomStyle(b)},a.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){a.customStyleInterface.enqueued&&a.flushCustomStyles()})})}; g=zAa.prototype;g.prepareTemplate=function(a,b){us(this);tAa(a)===""&&(kAa[b]=a,b=ts.transformTemplate(a,b),a._styleAst=b)}; g.flushCustomStyles=function(){us(this);if(this.customStyleInterface){var a=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var b=0;b-1?c=b:c=a.getAttribute&&a.getAttribute("is")||"":c=a.is;b=kAa[c];if(!(b&&tAa(b)!==""||!b||nAa(b))){if(nAa(b)||b._applyShimValidatingVersion!==b._applyShimNextVersion)this.prepareTemplate(b,c),oAa(b);if(a=a.shadowRoot)if(a=a.querySelector("style"))a.__cssRules=b._styleAst,a.textContent=qAa(b._styleAst)}}; g.styleDocument=function(a){us(this);this.styleSubtree(document.body,a)}; if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var vs=new zAa,AAa=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(a,b){vs.flushCustomStyles();vs.prepareTemplate(a,b)}, prepareTemplateStyles:function(a,b,c){window.ShadyCSS.prepareTemplate(a,b,c)}, prepareTemplateDom:function(){}, styleSubtree:function(a,b){vs.flushCustomStyles();vs.styleSubtree(a,b)}, styleElement:function(a){vs.flushCustomStyles();vs.styleElement(a)}, styleDocument:function(a){vs.flushCustomStyles();vs.styleDocument(a)}, getComputedStyleValue:function(a,b){return uya(a,b)}, flushCustomStyles:function(){vs.flushCustomStyles()}, nativeCss:Dya,nativeShadow:ur,cssBuild:vr,disableRuntime:Cya};AAa&&(window.ShadyCSS.CustomStyleInterface=AAa)}window.ShadyCSS.ApplyShim=ts;var BAa=window.ShadyCSS,ws=Rq(function(a){a=dza(kr(a));var b=gya?a:Pza(a),c=Qza(b),d={x:"pan-x",y:"pan-y",none:"none",all:"auto"};a=function(){return b.call(this)||this}; k(a,b);a.prototype.created=function(){}; a.prototype.__attributeReaction=function(e,f,h){(this.__dataAttributes&&this.__dataAttributes[e]||e==="disable-upgrade")&&this.attributeChangedCallback(e,f,h,null)}; a.prototype.setAttribute=function(e,f){if(Kk&&!this._legacyForceObservedAttributes){var h=this.getAttribute(e);b.prototype.setAttribute.call(this,e,f);this.__attributeReaction(e,h,String(f))}else b.prototype.setAttribute.call(this,e,f)}; a.prototype.removeAttribute=function(e){if(Kk&&!this._legacyForceObservedAttributes){var f=this.getAttribute(e);b.prototype.removeAttribute.call(this,e);this.__attributeReaction(e,f,null)}else b.prototype.removeAttribute.call(this,e)}; a.prototype._enableProperties=function(){this.__isUpgradeDisabled||b.prototype._enableProperties.call(this)}; a.prototype._canApplyPropertyDefault=function(e){return b.prototype._canApplyPropertyDefault.call(this,e)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(e))}; a.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(b.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())}; a.prototype.attached=function(){}; a.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(b.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())}; a.prototype.detached=function(){}; a.prototype.attributeChangedCallback=function(e,f,h,m){f!==h&&(e=="disable-upgrade"?this.__isUpgradeDisabled&&h==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,Sq(this).isConnected&&this.connectedCallback()):(b.prototype.attributeChangedCallback.call(this,e,f,h,m),this.attributeChanged(e,f,h)))}; a.prototype.attributeChanged=function(){}; a.prototype._initializeProperties=function(){if(Ak&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var e=Object.getPrototypeOf(this);e.hasOwnProperty("__hasRegisterFinished")||(this._registered(),e.__hasRegisterFinished=!0);b.prototype._initializeProperties.call(this);this.root=this;this.created();Kk&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}}; a.prototype._takeAttributes=function(){for(var e=this.attributes,f=0,h=e.length;f0?Mq.after(h):Qq,f.bind(this))}; a.prototype.isDebouncerActive=function(e){this._debouncers=this._debouncers||{};e=this._debouncers[e];return!(!e||!e.isActive())}; a.prototype.flushDebouncer=function(e){this._debouncers=this._debouncers||{};(e=this._debouncers[e])&&e.flush()}; a.prototype.cancelDebouncer=function(e){this._debouncers=this._debouncers||{};(e=this._debouncers[e])&&e.cancel()}; a.prototype.async=function(e,f){return f>0?Mq.run(e.bind(this),f):~Qq.run(e.bind(this))}; a.prototype.cancelAsync=function(e){e<0?Qq.cancel(~e):Mq.cancel(e)}; a.prototype.create=function(e,f){e=document.createElement(e);if(f)if(e.setProperties)e.setProperties(f);else for(var h in f)e[h]=f[h];return e}; a.prototype.elementMatches=function(e,f){return Eza(f||this,e)}; a.prototype.toggleAttribute=function(e,f){var h=this;arguments.length===3&&(h=arguments[2]);arguments.length==1&&(f=!h.hasAttribute(e));if(f)return Sq(h).setAttribute(e,""),!0;Sq(h).removeAttribute(e);return!1}; a.prototype.toggleClass=function(e,f,h){h=h||this;arguments.length==1&&(f=!h.classList.contains(e));f?h.classList.add(e):h.classList.remove(e)}; a.prototype.transform=function(e,f){f=f||this;f.style.webkitTransform=e;f.style.transform=e}; a.prototype.translate3d=function(e,f,h,m){this.transform("translate3d("+e+","+f+","+h+")",m||this)}; a.prototype.arrayDelete=function(e,f){if(Array.isArray(e)){if(f=e.indexOf(f),f>=0)return e.splice(f,1)}else if(f=cr(this,e).indexOf(f),f>=0)return this.splice(e,f,1);return null}; a.prototype._logger=function(e,f){Array.isArray(f)&&f.length===1&&Array.isArray(f[0])&&(f=f[0]);switch(e){case"log":case"warn":case"error":console[e].apply(console,ia(f));}}; a.prototype._log=function(){this._logger("log",sa.apply(0,arguments))}; a.prototype._warn=function(){this._logger("warn",sa.apply(0,arguments))}; a.prototype._error=function(){this._logger("error",sa.apply(0,arguments))}; a.prototype._logf=function(e){return["[%s::%s]",this.is,e].concat(ia(sa.apply(1,arguments)))}; ba.Object.defineProperties(a.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var e=Sq(this).getRootNode();return e instanceof DocumentFragment?e.host:e}}}); ba.Object.defineProperties(a,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}}, observedAttributes:{configurable:!0,enumerable:!0,get:function(){return Kk&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],Qwa(this.prototype)),this.__observedAttributes):c.call(this).concat("disable-upgrade")}}}); a.prototype.is="";return a});Polymer.FlattenedNodesObserver=Zr;Polymer.DomApi=Jza;Polymer.EventApi=bs;Polymer.dom=es;Polymer.dom.matchesSelector=Eza;Polymer.dom.flush=Rr;Polymer.dom.addDebouncer=Br;Polymer.DirMixin=Pza;Polymer.RenderStatus={beforeNextRender:Uza,afterNextRender:ms,flush:function(){for(;ks.length||ls.length;)Sza(ks),Sza(ls);js=!1}};Polymer.LegacyElementMixin=ws;var CAa;CAa=Pr._mutablePropertyChange;var DAa={properties:{mutableData:Boolean},_shouldPropertyChange:function(a,b,c){return CAa(this,a,b,c,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(a,b,c){return CAa(this,a,b,c,!0)}}; Polymer.OptionalMutableDataBehavior=DAa;var EAa={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},FAa={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},GAa=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},FAa); function HAa(a,b,c,d){for(var e=b._noAccessors,f=Object.getOwnPropertyNames(b),h=0;h=0;d--){var e=a[d];e?Array.isArray(e)?IAa(e,b):b.indexOf(e)<0&&(!c||c.indexOf(e)<0)&&b.unshift(e):console.warn("behavior is null, check for missing or 404 import")}return b} function JAa(a,b){for(var c in b){var d=a[c],e=b[c];a[c]=!("value"in e)&&d&&"value"in d?Object.assign({value:d.value},e):e}} var KAa=ws(HTMLElement);function xs(a,b,c){var d={},e=function(){return b.apply(this,arguments)||this}; k(e,b);e._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(h)for(var p=0,q;p=0;q--){var t=p[q],u;for(u in t)this._ensureAttribute(u,t[u])}b.prototype._ensureAttributes.call(this)}; e.prototype.ready=function(){b.prototype.ready.call(this);var p=d.ready;if(p)for(var q=0;q=0?(this._cache=W,!0):!1}, get:function(W){var S=this._find(W);if(S>=0)return this._cache=W,this._values[S]}, set:function(W,S){this.delete(W);this._keys.push(W);this._values.push(S);this._cache=W;return this}, delete:function(W){W=this._find(W);return W>=0?(this._keys.splice(W,1),this._values.splice(W,1),this._cache=R,!0):!1}, clear:function(){this._keys.length=0;this._values.length=0;this._cache=R}, forEach:function(W){for(var S=this.size,Y=0;Y=0;--W)if(S=(0,L[W])(R),!p(S)){if(!t(S))throw new TypeError;R=S}return R}if(!Array.isArray(L))throw new TypeError;if(!q(R))throw new TypeError;W=u(W);for(S=L.length-1;S>=0;--S)(0,L[S])(R,W)}else{if(Array.isArray(L)){if(q(R)){if(p(W))throw new TypeError; if(!q(S))throw new TypeError}else throw new TypeError;}else throw new TypeError;W=u(W);for(var Y=L.length-1;Y>=0;--Y){var da=(0,L[Y])(R,W,S);if(!p(da)){if(!q(da))throw new TypeError;S=da}}return S}}; a.metadata=function(L,R){return function(W,S){if(p(S)){if(!t(W))throw new TypeError;b(W,void 0,!0).set(L,R)}else{if(!q(W))throw new TypeError;S=u(S);b(W,S,!0).set(L,R)}}}; a.defineMetadata=function(L,R){var W;if(q(R))p(W)||(W=u(W));else throw new TypeError;b(R,W,!0).set("parameters",L)}; a.hasMetadata=function(L,R,W){if(q(R))p(W)||(W=u(W));else throw new TypeError;return c(L,R,W)}; a.hasOwnMetadata=function(L,R,W){if(q(R))p(W)||(W=u(W));else throw new TypeError;return d(L,R,W)}; a.getMetadata=function(L,R,W){if(q(R))p(W)||(W=u(W));else throw new TypeError;return e(L,R,W)}; a.getOwnMetadata=function(L,R,W){if(q(R))p(W)||(W=u(W));else throw new TypeError;return f(L,R,W)}; a.getMetadataKeys=function(L,R){if(q(L))p(R)||(R=u(R));else throw new TypeError;return h(L,R)}; a.getOwnMetadataKeys=function(L,R){if(q(L))p(R)||(R=u(R));else throw new TypeError;return m(L,R)}; a.deleteMetadata=function(L,R,W){if(q(R))p(W)||(W=u(W));else throw new TypeError;var S=b(R,W,!1);if(!p(S)){if(!S.delete(L))return!1;if(S.size>0)return!0;L=N.get(R);L.delete(W);if(L.size>0)return!0;N.delete(R);return!0}}; (function(L){if(typeof L.Reflect!=="undefined"){if(L.Reflect!==a)for(var R in a)L.Reflect[R]=a[R]}else L.Reflect=a})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(eBa||(eBa={}));/* Copyright (c) 2015 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */ var Cs={properties:{focused:{type:Boolean,value:!1,notify:!0,readOnly:!0,reflectToAttribute:!0},disabled:{type:Boolean,value:!1,notify:!0,observer:"_disabledChanged",reflectToAttribute:!0},_oldTabIndex:{type:String},_boundFocusBlurHandler:{type:Function,value:function(){return this._focusBlurHandler.bind(this)}}}, observers:["_changedControlState(focused, disabled)"],ready:function(){this.addEventListener("focus",this._boundFocusBlurHandler,!0);this.addEventListener("blur",this._boundFocusBlurHandler,!0)}, _focusBlurHandler:function(a){this._setFocused(a.type==="focus")}, _disabledChanged:function(a){this.setAttribute("aria-disabled",a?"true":"false");this.style.pointerEvents=a?"none":"";a?(this._oldTabIndex=this.getAttribute("tabindex"),this._setFocused(!1),this.tabIndex=-1,this.blur()):this._oldTabIndex!==void 0&&(this._oldTabIndex===null?this.removeAttribute("tabindex"):this.setAttribute("tabindex",this._oldTabIndex))}, _changedControlState:function(){this._controlStateChanged&&this._controlStateChanged()}};var Ds=new Set,fBa={properties:{_parentResizable:{type:Object,observer:"_parentResizableChanged"},_notifyingDescendant:{type:Boolean,value:!1}},listeners:{"iron-request-resize-notifications":"_onIronRequestResizeNotifications"},created:function(){this._interestedResizables=[];this._boundNotifyResize=this.notifyResize.bind(this);this._boundOnDescendantIronResize=this._onDescendantIronResize.bind(this)}, attached:function(){this._requestResizeNotifications()}, detached:function(){this._parentResizable?this._parentResizable.stopResizeNotificationsFor(this):(Ds.delete(this),window.removeEventListener("resize",this._boundNotifyResize));this._parentResizable=null}, notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(a){this.resizerShouldNotify(a)&&this._notifyDescendant(a)},this),this._fireResize())}, assignParentResizable:function(a){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this);(this._parentResizable=a)&&a._interestedResizables.indexOf(this)===-1&&(a._interestedResizables.push(this),a._subscribeIronResize(this))}, stopResizeNotificationsFor:function(a){var b=this._interestedResizables.indexOf(a);b>-1&&(this._interestedResizables.splice(b,1),this._unsubscribeIronResize(a))}, _subscribeIronResize:function(a){a.addEventListener("iron-resize",this._boundOnDescendantIronResize)}, _unsubscribeIronResize:function(a){a.removeEventListener("iron-resize",this._boundOnDescendantIronResize)}, resizerShouldNotify:function(){return!0}, _onDescendantIronResize:function(a){this._notifyingDescendant?a.stopPropagation():tk||this._fireResize()}, _fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})}, _onIronRequestResizeNotifications:function(a){var b=es(a).rootTarget;b!==this&&(b.assignParentResizable(this),this._notifyDescendant(b),a.stopPropagation())}, _parentResizableChanged:function(a){a&&window.removeEventListener("resize",this._boundNotifyResize)}, _notifyDescendant:function(a){this.isAttached&&(this._notifyingDescendant=!0,a.notifyResize(),this._notifyingDescendant=!1)}, _requestResizeNotifications:function(){if(this.isAttached)if(document.readyState==="loading"){var a=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",function c(){document.removeEventListener("readystatechange",c);a()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(b){b!==this&&b._findParent()},this):(Ds.forEach(function(b){b!==this&&b._findParent()},this),window.addEventListener("resize",this._boundNotifyResize), this.notifyResize())}, _findParent:function(){this.assignParentResizable(null);this.fire("iron-request-resize-notifications",null,{node:this,bubbles:!0,cancelable:!0});this._parentResizable?Ds.delete(this):Ds.add(this)}};/* Copyright (c) 2018 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */ var Es={IronResizableBehavior:fBa};var gBa=function(a){this.multi=!1;this.selection=[];this.selectCallback=a}; g=gBa.prototype;g.get=function(){return this.multi?this.selection.slice():this.selection[0]}; g.clear=function(a){this.selection.slice().forEach(function(b){(!a||a.indexOf(b)<0)&&this.setItemSelected(b,!1)},this)}; g.isSelected=function(a){return this.selection.indexOf(a)>=0}; g.setItemSelected=function(a,b){if(a!=null&&b!==this.isSelected(a)){if(b)this.selection.push(a);else{var c=this.selection.indexOf(a);c>=0&&this.selection.splice(c,1)}this.selectCallback&&this.selectCallback(a,b)}}; g.select=function(a){this.multi?this.toggle(a):this.get()!==a&&(this.setItemSelected(this.get(),!1),this.setItemSelected(a,!0))}; g.toggle=function(a){this.setItemSelected(a,!this.isSelected(a))};var Fs={properties:{attrForSelected:{type:String,value:null},selected:{type:String,notify:!0},selectedItem:{type:Object,readOnly:!0,notify:!0},activateEvent:{type:String,value:"tap",observer:"_activateEventChanged"},selectable:String,selectedClass:{type:String,value:"iron-selected"},selectedAttribute:{type:String,value:null},fallbackSelection:{type:String,value:null},items:{type:Array,readOnly:!0,notify:!0,value:function(){return[]}}, _excludedLocalNames:{type:Object,value:function(){return{template:1,"dom-bind":1,"dom-if":1,"dom-repeat":1,"ps-dom-if":1,"ps-dom-repeat":1}}}}, observers:["_updateAttrForSelected(attrForSelected)","_updateSelected(selected)","_checkFallback(fallbackSelection)"],created:function(){this._bindFilterItem=this._filterItem.bind(this);this._selection=new gBa(this._applySelection.bind(this))}, attached:function(){this._observer=this._observeItems(this);this._addListener(this.activateEvent)}, detached:function(){this._observer&&es(this).unobserveNodes(this._observer);this._removeListener(this.activateEvent)}, indexOf:function(a){return this.items?this.items.indexOf(a):-1}, select:function(a){this.selected=a}, selectPrevious:function(){var a=this.items.length,b=a-1;this.selected!==void 0&&(b=(Number(this._valueToIndex(this.selected))-1+a)%a);this.selected=this._indexToValue(b)}, selectNext:function(){var a=0;this.selected!==void 0&&(a=(Number(this._valueToIndex(this.selected))+1)%this.items.length);this.selected=this._indexToValue(a)}, selectIndex:function(a){this.select(this._indexToValue(a))}, forceSynchronousItemUpdate:function(){this._observer&&typeof this._observer.flush==="function"?this._observer.flush():this._updateItems()}, get _shouldUpdateSelection(){return this.selected!=null},_checkFallback:function(){this._updateSelected()}, _addListener:function(a){this.listen(this,a,"_activateHandler")}, _removeListener:function(a){this.unlisten(this,a,"_activateHandler")}, _activateEventChanged:function(a,b){this._removeListener(b);this._addListener(a)}, _updateItems:function(){var a=es(this).queryDistributedElements(this.selectable||"*");a=Array.prototype.filter.call(a,this._bindFilterItem);this._setItems(a)}, _updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))}, _updateSelected:function(){this._selectSelected(this.selected)}, _selectSelected:function(){if(this.items){var a=this._valueToItem(this.selected);a?this._selection.select(a):this._selection.clear();this.fallbackSelection&&this.items.length&&this._selection.get()===void 0&&(this.selected=this.fallbackSelection)}}, _filterItem:function(a){return!this._excludedLocalNames[a.localName]}, _valueToItem:function(a){return a==null?null:this.items[this._valueToIndex(a)]}, _valueToIndex:function(a){if(this.attrForSelected)for(var b=0,c;c=this.items[b];b++){if(this._valueForItem(c)==a)return b}else return Number(a)}, _indexToValue:function(a){if(this.attrForSelected){if(a=this.items[a])return this._valueForItem(a)}else return a}, _valueForItem:function(a){if(!a)return null;if(!this.attrForSelected)return a=this.indexOf(a),a===-1?null:a;var b=a[Vq(this.attrForSelected)];return b!=void 0?b:a.getAttribute(this.attrForSelected)}, _applySelection:function(a,b){this.selectedClass&&this.toggleClass(this.selectedClass,b,a);this.selectedAttribute&&this.toggleAttribute.call(a,this.selectedAttribute,b);this._selectionChange();this.fire("iron-"+(b?"select":"deselect"),{item:a})}, _selectionChange:function(){this._setSelectedItem(this._selection.get())}, _observeItems:function(a){return es(a).observeNodes(function(b){this._updateItems();this._updateSelected();this.fire("iron-items-changed",b,{bubbles:!1,cancelable:!1})})}, _activateHandler:function(a){a=a.target;for(var b=this.items;a&&a!=this;){var c=b.indexOf(a);if(c>=0){b=this._indexToValue(c);this._itemActivate(b,a);break}a=a.parentNode}}, _itemActivate:function(a,b){this.fire("iron-activate",{selected:a,item:b},{cancelable:!0}).defaultPrevented||this.select(a)}};var Gs=function(a,b){a=Error.call(this,a);this.message=a.message;"stack"in a&&(this.stack=a.stack);this.arg=b;this.name=this.constructor.name;this.constructor=Gs;this.__proto__=Gs.prototype}; k(Gs,Error);function hBa(a,b){if(a&&a.fn){var c=a.fn;a.fn=function(){try{c.apply(this,arguments)}catch(d){if(d instanceof Gs)console.warn("Argument '"+d.arg+"'"+(b?" for method '"+b+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw d}}}return a} var iBa=Rq(function(a){var b=function(){return a.apply(this,arguments)||this}; k(b,a);b.prototype._marshalArgs=function(c,d,e){d=a.prototype._marshalArgs.call(this,c,d,e);if(this._legacyUndefinedCheck&&d.length>1)for(e=0;e-1){b.push(a[c]);break}b.push(a[c])}return b} function EBa(a){return a.length>1?" ("+DBa(a.slice().reverse()).map(function(b){return Js(b.token)}).join(" -> ")+")":""} function FBa(a,b,c,d){if(d){var e=Error(" caused by: "+(d instanceof Error?d.message:d));e.ngOriginalError=d}else e=Error();e.addKey=GBa;e.keys=[b];e.injectors=[a];e.constructResolvingMessage=c;e.message=e.constructResolvingMessage();e.ngOriginalError=d;return e} function GBa(a,b){this.injectors.push(a);this.keys.push(b);this.message=this.constructResolvingMessage()} function HBa(a,b){return FBa(a,b,function(){return"No provider for "+Js(this.keys[0].token)+"!"+EBa(this.keys)})} function IBa(a,b){return FBa(a,b,function(){return"Cannot instantiate cyclic dependency!"+EBa(this.keys)})} function JBa(a,b,c){return FBa(a,c,function(){var d=Js(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+d+"!"+EBa(this.keys)+"."},b)} function KBa(a,b){for(var c=[],d=0,e=b.length;d=a.providers.length)throw Error("Index "+d+" is out-of-bounds.");c[e]=b(a.providers[d])}return c} function $Ba(a){return typeof a==="function"&&CBa.parameters(a).every(function(b){return!!b})} ;var Ps=new Qk("signalAction");var Qs=new Qk("urlEndpoint");var Rs=function(a,b,c){this.actionName=a;this.optionalAction=b===void 0?!1:b;this.args=c===void 0?null:c;this.returnValue=[]};var Ss=new Bn("ENDPOINT_HANDLER_TOKEN");function Ts(a,b){for(var c in b)if(b.hasOwnProperty(c)){var d=c,e=b[c];a=bd(dd(a,d),d,e)}return a} function bCa(a,b,c){c=c===void 0?!1:c;if(!a)return null;if(a.adInfoDialogEndpoint||a.backstageImageUploadEndpoint||a.confirmDialogEndpoint||a.clientActionEndpoint||a.createBackstagePostDialogEndpoint||a.createCommentReplyDialogEndpoint||a.flowEndpoint||a.guideBuilderEndpoint||a.liveChatDialogEndpoint||a.modalEndpoint||a.openPopupAction||a.shareEndpoint||a.shareEntityEndpoint||a.showLiveChatItemEndpoint||a.subscriptionManagerEndpoint||a.unlimitedCreateFamilyEndpoint||a.unlimitedFamilyFlowEndpoint|| a.updateCommentDialogEndpoint||a.updateCommentReplyDialogEndpoint||a.userFeedbackEndpoint||a.videoEditorEndpoint||a.ypcCancelSurveyEndpoint)return b=ll("polymer_report_client_url_requested_rate"),!c&&Math.random()0&&(c=c.substr(b+1));c&&a.actions.push(c);return a};var gCa=/Command$/,hCa=/Endpoint$/,iCa=new Map;function jCa(a,b){var c=b+a,d=iCa.get(c);if(d)return d;a=b+"-"+a.replace(/([A-Z])/g,"-$1").toLowerCase();iCa.set(c,a);return a} function Vs(a){var b=Rk(a,"action")||Rk(a,"command")||Rk(a,"endpoint");if(!b)return null;b=jCa(b,"yt");z(a,Ps)&&(b+="-"+z(a,Ps).signal.toLowerCase().replace(/_/g,"-"));return b} function kCa(a){try{var b=Object.keys(a)}catch(e){return[]}for(var c=0;c0?c:a.composedPath?a.composedPath():[]} function mt(a){return lt(a)[0]} ;function nt(a){return a instanceof ShadowRoot?ShadowRoot:a instanceof DocumentFragment?DocumentFragment:a instanceof Document?Document:HTMLElement} function GCa(a){if(a instanceof Element)return Element.prototype;if(a instanceof DocumentFragment)return DocumentFragment.prototype;throw Error("Unsupported node type: "+a)} function HCa(a,b){return x("sunnydom_native_scoped_query_selectors")?GCa(a).querySelector.call(a,b):nt(a).prototype.querySelector.call(a,b)} function ICa(a,b){return x("sunnydom_native_scoped_query_selectors")?GCa(a).querySelectorAll.call(a,b):nt(a).prototype.querySelectorAll.call(a,b)} function JCa(a){var b,c,d;return(d=(c=(b=a.parentElement)!=null?b:a.__shady_native_parentElement)!=null?c:a.__shady_parentElement)!=null?d:null} function KCa(a){var b,c,d;return(d=(c=(b=a.parentNode)!=null?b:a.__shady_native_parentNode)!=null?c:a.__shady_parentNode)!=null?d:null} function LCa(a){var b,c,d;return(d=(c=(b=a.nextSibling)!=null?b:a.__shady_native_nextSibling)!=null?c:a.__shady_nextSibling)!=null?d:null} function MCa(a){var b,c,d;return(d=(c=(b=a.previousSibling)!=null?b:a.__shady_native_previousSibling)!=null?c:a.__shady_previousSibling)!=null?d:null} function NCa(a){var b,c,d;return(d=(c=(b=a.nextElementSibling)!=null?b:a.__shady_native_nextElementSibling)!=null?c:a.__shady_nextElementSibling)!=null?d:null} function OCa(a){var b,c,d;return(d=(c=(b=a.previousElementSibling)!=null?b:a.__shady_native_previousElementSibling)!=null?c:a.__shady_previousElementSibling)!=null?d:null} function PCa(a){var b,c,d;return new Set([].concat(ia((b=a.children)!=null?b:[]),ia((c=a.__shady_native_children)!=null?c:[]),ia((d=a.__shady_children)!=null?d:[])))} function QCa(a){var b,c,d;return new Set([].concat(ia((b=a.childNodes)!=null?b:[]),ia((c=a.__shady_native_childNodes)!=null?c:[]),ia((d=a.__shady_childNodes)!=null?d:[])))} ;function ot(a){if(!(a instanceof Element))return null;a=a.classList?Array.from(a.classList):void 0;if(!a)return null;var b=a.indexOf("style-scope");return b>-1&&b+1=a.classList.length)){d=a.classList[d+1];var e,f;a==null||(e=a.classList)==null||(f=e.replace)==null||f.call(e,d,b)}}if(a instanceof HTMLElement||a instanceof DocumentFragment)for(e=l(PCa(a)),f=e.next();!f.done;f=e.next())tt(f.value,b,c);return a} function ut(a,b){if(a instanceof HTMLElement&&ot(a)===b){var c=Array.from(a.classList).indexOf("style-scope");c===-1||c+1>=a.classList.length||a.classList.remove("style-scope",a.classList[c+1])}if(a instanceof HTMLElement||a instanceof DocumentFragment){c=l(a.children);for(var d=c.next();!d.done;d=c.next())ut(d.value,b)}return a} function kDa(a,b){return nt(a).prototype.appendChild.call(a,b)} function lDa(a,b){if(a===b)return!0;a=QCa(a);return Array.from(a).some(function(c){return lDa(c,b)})} ;var mDa=x("enable_shadydom_free_scoped_query_methods"),nDa=x("enable_shadydom_free_scoped_node_methods"),oDa=x("enable_shadydom_free_scoped_readonly_properties_batch_one"),pDa=x("enable_shadydom_free_parent_node"),qDa=x("enable_shadydom_free_children"),rDa=x("enable_shadydom_free_last_child");function vt(a){var b=window.ShadyDOM;return b&&b.noPatch&&b.wrap?b.wrap(a):b?b.patch(a):a} function wt(a,b){if(a instanceof xt)return a;(b==null?0:b.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(a,"ownerDocument")&&Object.defineProperty(a,"ownerDocument",{get:function(){return window.document}}); return new xt(a)} var xt=function(a){if(a instanceof ShadowRoot)this.host=vt(a.host),this.root=a;else if(a.$$){this.host=vt(a);var b;this.root=(b=a.root)!=null?b:this.host}else if(a.polymerController){this.host=vt(a);var c;this.root=(c=this.host.shadowRoot)!=null?c:this.host}else this.root=this.host=vt(a)}; sDa();tDa();uDa();vDa();wDa();var xDa={querySelector:function(a,b){b=SCa(b,pt(a));return x("sunnydom_native_scoped_query_selectors")?HCa(a,b):HCa(qt(a),b)}, querySelectorAll:function(a,b){b=SCa(b,pt(a));return x("sunnydom_native_scoped_query_selectors")?Array.from(ICa(a,b)):ICa(qt(a),b)}},yDa={appendChild:function(a,b){var c=pt(a),d=ot(b); return kDa(qt(a),c?tt(b,c,d):b)}, cloneNode:function(a,b){var c=ot(a);a=qt(a);b=nt(a).prototype.cloneNode.call(a,b);return c?ut(b,c):b}, contains:function(a,b){var c=pt(a),d=ot(b);return c!==d?!1:lDa(a,b)}, insertBefore:function(a,b,c){var d=pt(a),e=ot(b);a=qt(a);b=d?tt(b,d,e):b;return nt(a).prototype.insertBefore.call(a,b,c)}, removeChild:function(a,b){var c=pt(a);a=qt(a);b=c?ut(b,c):b;return nt(a).prototype.removeChild.call(a,b)}, replaceChild:function(a,b,c){var d=pt(a),e=ot(b);b=d?tt(b,d,e):e?ut(b,e):b;c=d?ut(c,d):c;a=qt(a);return nt(a).prototype.replaceChild.call(a,b,c)}, getRootNode:function(a,b){b=b===void 0?{composed:!0}:b;var c;if(((c=b)!=null?c:{}).composed)a=jDa(a);else{b=a;for(a=KCa(a);a;)b=a,a=UCa(a);a=b}return a}},zt=oDa?{firstChild:dDa, nextSibling:aDa,previousSibling:cDa,firstElementChild:eDa,lastElementChild:gDa,nextElementSibling:$Ca,previousElementSibling:bDa,childNodes:hDa}:{};pDa&&(zt.parentNode=ZCa);qDa&&(zt.children=iDa);rDa&&(zt.lastChild=fDa);mDa&&zDa(xDa);nDa&&zDa(yDa);ADa(); function sDa(){var a=xt.prototype,b=[].concat(ia(nDa?[]:["getRootNode"]),["setAttribute","removeAttribute"]);b=l(b);for(var c=b.next(),d={};!c.done;d={method$jscomp$25:void 0},c=b.next())d.method$jscomp$25=c.value,a[d.method$jscomp$25]=function(e){return function(){return this.host[e.method$jscomp$25].apply(this.host,arguments)}}(d)} function tDa(){var a=xt.prototype,b=[].concat(ia(nDa?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),ia(mDa?[]:["querySelector","querySelectorAll"]));b=l(b);for(var c=b.next(),d={};!c.done;d={method$jscomp$26:void 0},c=b.next())d.method$jscomp$26=c.value,a[d.method$jscomp$26]=function(e){return function(){return this.root[e.method$jscomp$26].apply(this.root,arguments)}}(d)} function wDa(){var a=xt.prototype,b=[].concat(ia(oDa?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),ia(pDa?[]:["parentNode"]));b=l(b);for(var c=b.next(),d={};!c.done;d={prop$jscomp$56:void 0},c=b.next())d.prop$jscomp$56=c.value,Object.defineProperty(a,d.prop$jscomp$56,{get:function(e){return function(){return this.host[e.prop$jscomp$56]}}(d), configurable:!0})} function uDa(){var a=xt.prototype,b=["activeElement"].concat(ia(oDa?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),ia(qDa?[]:["children"]),ia(rDa?[]:["lastChild"]));b=l(b);for(var c=b.next(),d={};!c.done;d={prop$jscomp$57:void 0},c=b.next())d.prop$jscomp$57=c.value,Object.defineProperty(a,d.prop$jscomp$57,{get:function(e){return function(){return this.root[e.prop$jscomp$57]}}(d), configurable:!0})} function vDa(){for(var a=xt.prototype,b=l(["innerHTML","textContent"]),c=b.next(),d={};!c.done;d={prop$jscomp$58:void 0},c=b.next())d.prop$jscomp$58=c.value,Object.defineProperty(a,d.prop$jscomp$58,{get:function(e){return function(){return this.root[e.prop$jscomp$58]}}(d), set:function(e){return function(f){this.root[e.prop$jscomp$58]=f}}(d), configurable:!0})} function zDa(a){var b=xt.prototype;a=l(Object.entries(a));for(var c=a.next(),d={};!c.done;d={fn$jscomp$317:void 0},c=a.next()){var e=l(c.value);c=e.next().value;e=e.next().value;d.fn$jscomp$317=e;b[c]=function(f){return function(){return f.fn$jscomp$317.apply(null,[this.host.node||this.host].concat(ia(arguments)))}}(d)}} function ADa(){for(var a=xt.prototype,b=l(Object.entries(zt)),c=b.next(),d={};!c.done;d={fn$jscomp$318:void 0},c=b.next()){var e=l(c.value);c=e.next().value;e=e.next().value;d.fn$jscomp$318=e;Object.defineProperty(a,c,{get:function(f){return function(){return f.fn$jscomp$318.apply(null,[this.host.node||this.host].concat(ia(arguments)))}}(d), configurable:!0})}} ;function At(a){return a instanceof Bt||a instanceof Document?a:new Bt(a)} var Bt=function(a){this.node=a instanceof ShadowRoot?a.host:a}; BDa();CDa();function BDa(){for(var a=Bt.prototype,b=l("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),c=b.next(),d={};!c.done;d={method$jscomp$27:void 0},c=b.next())d.method$jscomp$27=c.value,a[d.method$jscomp$27]=function(e){return function(){return HTMLElement.prototype[e.method$jscomp$27].call.apply(HTMLElement.prototype[e.method$jscomp$27],[this.node].concat(ia(arguments)))}}(d)} function CDa(){for(var a=Bt.prototype,b=l("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),c=b.next(),d={};!c.done;d={prop$jscomp$59:void 0},c=b.next())d.prop$jscomp$59=c.value,Object.defineProperty(a,d.prop$jscomp$59,{get:function(e){return function(){var f;return(f=this.node["__shady_native_"+e.prop$jscomp$59])!=null?f:this.node[e.prop$jscomp$59]}}(d), configurable:!0})} ;function Ct(a,b,c){c===void 0&&(c=!a.classList.contains(b));c?a.classList.add(b):a.classList.remove(b)} function Dt(a,b,c){c===void 0&&(c=!a.hasAttribute(b));if(b==="class")throw Error("toggleAttribute is not supported for class attributes");c?At(a).setAttribute(b,""):At(a).removeAttribute(b)} function DDa(a){return(a.localName!=="slot"?[]:vt(a).assignedNodes({flatten:!0})).filter(function(b){return b.nodeType===Node.ELEMENT_NODE})} function Et(a){return(a=wt(a).querySelector("slot"))&&a.localName==="slot"?DDa(a):[]} function Ft(a,b){window.ShadyCSS&&window.ShadyCSS.styleSubtree(a,b)} ;function Gt(a,b,c,d){d||(d={bubbles:!0,cancelable:!1,composed:!0});c!==null&&c!==void 0&&(d.detail=c);var e=new CustomEvent(b,d);So(function(){return void a.dispatchEvent(e)}); return e} ;var EDa=new WeakMap;function Ht(a,b){var c=b.bind(a);return function(d){c(d,d.detail)}} function It(a,b){var c=EDa.get(a);c||(c=new WeakMap,EDa.set(a,c));if(c.has(b))return c.get(b);if(x("web_fi_listen_disable_bound_fn_helper")){var d=b.bind(a);a=function(e){d(e,e==null?void 0:e.detail)}}else a=Ht(a,b); c.set(b,a);return a} ;var FDa=Symbol("PIECES");function GDa(a,b){HDa(a);a.created[FDa].push(b)} function HDa(a){if(!a.created||!a.created[FDa]){var b=a.created,c=b?[b]:[];a.created=function(){for(var d=l(c),e=d.next();!e.done;e=d.next())e.value.apply(this)}; a.created[FDa]=c}} ;var IDa=new Set(["tap","track","down","up"]),JDa=x("pbcm_fi_query_decorators");function Jt(a){return function(){var b=sa.apply(0,arguments);return function(c,d,e){a.apply(null,ia(b))(c,d,e)}}} function KDa(){return function(){var a=sa.apply(0,arguments);return function(b,c,d){ZAa.apply(null,ia(a))(b,c,d)}}} function F(a){return KDa()(a)} function H(){return Jt(cBa).apply(null,ia(sa.apply(0,arguments)))} function Kt(a){return x("pbcm_fi_listen_decorators")?LDa(a):Jt(aBa)(a)} function LDa(a){return function(b,c){GDa(b,function(){var d=this[c],e=x("web_fi_listen_disable_bound_fn_helper")?function(f){d(f,f.detail)}.bind(this):Ht(this,d); IDa.has(a)?Kr(this.hostElement,a,e):this.hostElement.addEventListener(a,e)})}} function Lt(){return Jt(bBa).apply(null,ia(sa.apply(0,arguments)))} function M(a){a=a===void 0?{}:a;return Jt($Aa)(a)} function Mt(a){if(a.hostElement&&a!==a.hostElement){var b=es(a.hostElement);b=a.renderIdom?b:b.shadowRoot}b||(a=a.root,b=a instanceof Node?es(a):null);return b} function Tt(a){return JDa?MDa(a):function(b,c){Object.defineProperty(b,c,{get:function(){var d;return(d=Mt(this))==null?void 0:d.querySelector(a)}, enumerable:!0,configurable:!0})}} function MDa(a){return function(b,c){Object.defineProperty(b,c,{get:function(){var d,e=(d=wt(this.hostElement))==null?void 0:d.querySelector(a);if(e)return e;var f;return(f=Mt(this))==null?void 0:f.querySelector(a)}, enumerable:!0,configurable:!0})}} function Ut(a){return JDa?NDa(a):function(b,c){Object.defineProperty(b,c,{get:function(){var d;return(d=Mt(this))==null?void 0:d.querySelectorAll(a)}, enumerable:!0,configurable:!0})}} function NDa(a){return function(b,c){Object.defineProperty(b,c,{get:function(){var d,e=(d=wt(this.hostElement))==null?void 0:d.querySelectorAll(a);if(e==null?0:e.length)return e;var f;return(f=Mt(this))==null?void 0:f.querySelectorAll(a)}, enumerable:!0,configurable:!0})}} function ODa(a){return function(b){if(![As,E].includes(Object.getPrototypeOf(b.prototype).constructor))throw Error("Custom elements must inherit directly from PolymerElement or PolymerElementWithoutHtml.");QAa(Object.assign({},typeof a!=="string"?a:{is:a,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(b)}} function Vt(){var a=a===void 0?{}:a;return function(b){if(![Bs,kt].includes(Object.getPrototypeOf(b.prototype).constructor))throw Error("Custom behaviors must inherit directly from PolymerBehavior or PolymerBehaviorWithoutHtml.");SAa(Object.assign({},a,{disableInheritanceCheck:!0}))(b)}} ;var PDa=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),QDa,Wt={};x("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=Wt);function Xt(a,b,c){if(Yt(a)&&!PDa.has(b)){b=b.replace(/^JSC\$[\d]+_/,"");b=b.replace(/\.\d+(\.|$)/g,function(f,h){return".#"+h}); Wt[a]!=null||(Wt[a]={});var d,e;(d=Wt[a])[e=b]!=null||(d[e]=new Set);Wt[a][b].has(c)||(Wt[a][b].add(c),ao("polymerPropertyAccessEvent",{componentName:a,propertyName:b,accessType:c}))}} function RDa(){return x("polymer_property_access_logging_debug")||x("polymer_enable_property_access_logging")} function Yt(a){if(x("polymer_property_access_logging_debug"))return!0;if(!x("polymer_enable_property_access_logging"))return!1;QDa||(QDa=Date.now());return(Pc(a)+QDa)%1000)for(var b=VBa(a),c=l(b),d=c.next();!d.done;d=c.next())YDa.addProvider(d.value);var e=new Set;ZDa(this.behaviors||[],e);b={};for(var f=l(e),h=f.next();!h.done;h=f.next()){var m=h.value;m.inject&&Object.assign(b,m.inject)}this.inject&&Object.assign(b,this.inject);for(var p=l(Object.keys(b)),q=p.next();!q.done;q=p.next()){var t=q.value,u=b[t];try{this[t]=YDa.resolve(u)}catch(v){throw v}}}catch(v){throw Error(v.message); }}};var dEa;function fu(a){return function(b){if(!a.disableElementRegistration){a.noInjection||cEa(b,a.providers);var c=b.prototype;c.__templateHelpers||ZAa(du.prototype)(c,"__templateHelpers");c=a.is;dEa||(dEa=Date.now());(Pc(c)+dEa)%1000&&b.push.apply(b,ia(a.split(".")));else{a=l(a);for(var c=a.next();!c.done;c=a.next())c=c.value,typeof c==="string"?b.push.apply(b,ia(c.split("."))):b.push(c)}return b} function iu(a,b){if(b[b.length-1]!=="*"&&b[b.length-1]!=="splices"){for(var c=0;cb.length)return!1;for(var c=0;c1&&(f.path=e.path);c.dispatchEvent(new CustomEvent(d,{detail:f}))},[{type:"wildcard", path:b.propertyKey}])} function sEa(a,b,c){rEa(a,function(){c[b.method.methodName].apply(c,ia(sa.apply(0,arguments)))},b.method.args)} function oEa(a){return"_set"+(a.slice(0,1).toUpperCase()+a.slice(1))} ;var tEa=function(a){this.wasDefined=!0;Array.isArray(a)||a instanceof Array?(this.JSC$7474_getImpl=a[0],this.JSC$7474_setImpl=a[1]):this.JSC$7474_getImpl=a}; g=tEa.prototype;g.getWithPath=function(a){return iu(this.JSC$7474_getImpl(),a)}; g.setWithPath=function(a,b){var c=this;if(a.length)throw Error("Attempted to set path on immutable property.");if(!this.JSC$7474_setImpl)throw Error("Attempted to set a non-settable Signal.");hp(function(){c.JSC$7474_setImpl(b)})}; g.notifyPath=function(){throw Error("notifyPath is not supported on immutable properties.")}; g.notifySplices=function(){throw Error("notifySplices is not supported on immutable properties.")}; g.getChangeRecordSignal=function(a,b){var c=this;if(a.length)throw Error("getChangeRecordSignal is not supported on immutable properties.");return function(){var d=c.getWithPath(a);return{path:b!=null?b:"",base:d,value:d}}}; g.getSplicesSignal=function(){throw Error("getSplicesSignal is not supported on immutable properties.")}; g.getPathMutationSignal=function(){throw Error("getPathMutationSignal is not supported on immutable properties.")}; g.pop=function(){throw Error("pop is not supported on immutable properties.")}; g.push=function(){throw Error("push is not supported on immutable properties.")}; g.splice=function(){throw Error("splice is not supported on immutable properties.")}; g.unshift=function(){throw Error("unshift is not supported on immutable properties.")};var ju=function(a){var b=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(a)||a instanceof Array?(this.JSC$7479_getImpl=a[0],this.JSC$7479_setImpl=a[1]):this.JSC$7479_getImpl=a;this.wasDefined=!1;So(function(){b.wasDefined=b.JSC$7479_getImpl()!==void 0})}; ju.prototype.getWithPath=function(a){return iu(this.JSC$7479_getImpl(),a)}; ju.prototype.setWithPath=function(a,b){var c=this;if(a[a.length-1]!=="*"&&a[a.length-1]!=="splices"){var d=So(function(){return c.getWithPath([])}); if(a.length===0){if(!this.JSC$7479_setImpl)throw Error("Attempted to set a non-settable Signal");if(d===b)return;this.wasDefined||(this.wasDefined=b!==void 0);hp(function(){c.JSC$7479_setImpl(b)})}else{for(var e=0;e1||b!==void 0)}ku(this,a,{pathComponents:a,value:b})}}; ju.prototype.notifyPath=function(a,b){a.length===0?b&&this.setWithPath(a,b.value):ku(this,a,{pathComponents:a,value:b==null?void 0:b.value,fallbackWhenUndefined:b==null?void 0:b.value})}; var ku=function(a,b,c,d){if(a.setMutationSignal){var e=++a.mutationIndex,f=[a.observedPath],h=a.observedPath,m;b.length===0&&(m=h);for(var p=0;pd){var h=f.mutation;d=f.index;e=void 0}f=So(function(){return c.getWithPath(a)}); if(h){var m=h.pathComponents[h.pathComponents.length-1],p=[].concat(ia(h.pathComponents));if(m==="splices"||m==="length")return{base:f,path:(b?[b].concat(ia(p)):p).join("."),value:h.value};var q=a.length>p.length?a:p,t;return{base:f!=null?f:h.fallbackWhenUndefined,path:(b?[b].concat(ia(q)):q).join("."),value:(t=So(function(){return c.getWithPath(q)}))!=null?t:h.fallbackWhenUndefined}}e||(e={base:f, path:(b?[b].concat(ia(a)):a).join("."),value:f});return e})}; ju.prototype.getSplicesSignal=function(a){var b=this.mutationIndex,c;return wEa(this,a,function(d){if(d&&d.index>b&&d.spliceMutationIndex!==b){var e=d.mutation;b=d.index;c=void 0}return e&&e.pathComponents[e.pathComponents.length-1]==="splices"?c=d=e.value:c})}; ju.prototype.getPathMutationSignal=function(a){var b=this;uEa(this,a);if(!this.getMutationSignal){var c=l(ip(this.mutationIndex,void 0,"ugyMh"));this.getMutationSignal=c.next().value;this.setMutationSignal=c.next().value}var d=this.getMutationSignal,e=this.mutationIndex,f;return Vo(function(){d();var h=vEa(b,a);if(h&&h.index>e&&h.mutation&&kEa(h.mutation.pathComponents,a)){var m=h.mutation;e=h.index}if(!f||e!==f.index){var p,q;h=(q=So(function(){return b.getWithPath(a)}))!=null?q:(p=m)==null?void 0: p.fallbackWhenUndefined; f={index:e,value:h}}return f},void 0,"RXYC9b")}; var vEa=function(a,b){a=a.observedPath;b=l(b);for(var c=b.next();!c.done;c=b.next())a=a.subPaths[c.value];return a.data}; ju.prototype.pop=function(a){var b=this,c=So(function(){return b.getWithPath(a)}); if(!(c instanceof Array))throw Error(".pop called on a value that is not an array");var d=c.length>0,e=c.pop();d&&lu(this,c,a,c.length,0,[e]);return e}; ju.prototype.push=function(a){var b=sa.apply(1,arguments),c=this,d=So(function(){return c.getWithPath(a)}); if(!(d instanceof Array))throw Error(".push called on a value that is not an array");var e=d.length,f=d.push.apply(d,ia(b));b.length&&lu(this,d,a,e,b.length,[]);return f}; ju.prototype.splice=function(a,b,c){var d=sa.apply(3,arguments),e=this,f=So(function(){return e.getWithPath(a)}); if(!(f instanceof Array))throw Error(".splice called on a value that is not an array");b<0?b=f.length-Math.floor(-b):b&&(b=Math.floor(b));var h=f.splice.apply(f,[b,c].concat(ia(d)));(d.length||h.length)&&lu(this,f,a,b,d.length,h);return h}; ju.prototype.unshift=function(a){var b=sa.apply(1,arguments),c=this,d=So(function(){return c.getWithPath(a)}); if(!(d instanceof Array))throw Error(".unshift called on a value that is not an array");var e=d.unshift.apply(d,ia(b));b.length&&lu(this,d,a,0,b.length,[]);return e};function xEa(){var a,b=Ap(function(c){a=c},!1); return[a,b]} var mu=function(a,b,c){this.model=a;this.unknownSignalResolver=b;this.options=c;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];b=l(xEa());a=b.next().value;b=b.next().value;this.owner=a;this.disposeImpl=b}; mu.prototype.dispose=function(){if(!this.isDisposed){for(var a=l(this.childSignalProxies),b=a.next();!b.done;b=a.next())b.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}}; var yEa=function(a,b){a=Ao(a.owner);try{b()}finally{Ao(a)}}; mu.prototype.effect=function(a){yEa(this,function(){yp(a,"f")})}; var zEa=function(a,b){a.options!=null||(a.options={});var c;(c=a.options).immutableProps!=null||(c.immutableProps=new Set);a.options.immutableProps.add(b)},BEa=function(a,b){b=""+b; AEa(a,b);var c,d;if((c=a.options)==null?0:(d=c.immutableProps)==null?0:d.has(b))return!0;var e;if((e=a.model.__signalCache)==null?0:e.has(b))c=a.model.__signalCache.get(b),Array.isArray(c)&&zEa(a,b);var f,h,m;return(m=(f=a.options)==null?void 0:(h=f.immutableProps)==null?void 0:h.has(b))!=null?m:!1},CEa=function(a,b){var c; a.unknownSignalResolver&&(c=a.unknownSignalResolver(b));var d,e;((d=a.options)==null?0:(e=d.immutableProps)==null?0:e.has(b))?c!=null||(c=new tEa(ip(a.model[b],void 0,"By5iP"))):c!=null||(c=new ju(ip(a.model[b],void 0,"CXghNc")));var f=a.model.hostElement;Object.defineProperty(a.model,b,{get:function(){Zt(f,b);return c.getWithPath([])}, set:function(h){$t(f,b);a.setWithPath([b],h)}, configurable:!0});return c},AEa=function(a,b){var c,d,e; ((c=a.model.__signalCache)==null||!c.has(b))&&((d=a.options)==null?0:(e=d.externalSignalProps)==null?0:e.has(b))&&a.model[b]},nu=function(a,b){b=""+b; var c=a.signalCache[b];if(c!==void 0)return c;c=!1;AEa(a,b);var d;if((d=a.model.__signalCache)==null?0:d.has(b))if(c=a.model.__signalCache.get(b),Array.isArray(c))c=!0,zEa(a,b);else return a.signalCache[b]=a.model.__signalCache.get(b).signal,a.signalCache[b];var e,f;d=(f=(e=a.options)==null?void 0:e.reactivityMode)!=null?f:0;var h,m;if(!((h=a.options)==null?0:(m=h.reactiveProps)==null?0:m.has(b))&&!c&&d===1)throw Error("Attempted to upgrade undecorated property "+b+".");e=c?DEa(a,b):CEa(a,b);return a.signalCache[b]= e},DEa=function(a,b){var c=Object.getOwnPropertyDescriptor(a.model.constructor.prototype,b),d=function(){return a.model[b]}; return new tEa(c&&c.get&&!c.set?d:[d,function(e){a.model[b]=e}])}; mu.prototype.getWithPath=function(a){var b=l(a);a=b.next().value;b=ha(b);Zt(this.model.hostElement,""+a);return nu(this,a).getWithPath(b)}; mu.prototype.setWithPath=function(a,b){if(a.length){$t(this.model.hostElement,a.join("."));var c=l(a);a=c.next().value;c=ha(c);nu(this,a).setWithPath(c,b)}}; mu.prototype.getPathMutationSignal=function(a){var b=l(a);a=b.next().value;b=ha(b);return nu(this,a).getPathMutationSignal(b)}; mu.prototype.notifyPath=function(a,b){var c=l(a);a=c.next().value;c=ha(c);nu(this,a).notifyPath(c,b)}; var EEa=function(a,b){if(b.type==="literal")return function(){return{rootWasDefined:!0,value:b.value}}; var c=hu(b.path),d=l(c),e=d.next().value;d=ha(d);var f,h;if(b.type==="path"&&(c.length===1||((f=a.options)==null?0:(h=f.immutableProps)==null?0:h.has(e))))return function(){var u=a.getWithPath(c.slice(0,1));u=iu(u,c.slice(1));return{rootWasDefined:nu(a,c[0]).wasDefined,value:u}}; var m=nu(a,e);if(b.type==="path"){var p=m.getPathMutationSignal(d);return function(){var u,v=(u=p())==null?void 0:u.value;return{rootWasDefined:m.wasDefined,value:v}}}if(b.type==="splices"){var q=m.getSplicesSignal(d); return function(){var u=q();return{rootWasDefined:m.wasDefined,value:u}}}var t=m.getChangeRecordSignal(d,""+e); return function(){var u=t();return{rootWasDefined:m.wasDefined,value:u}}},rEa=function(a,b,c){var d=c.map(function(m){return EEa(a,m)}),e=c.length===0,f=[],h=c.length!==1||c[0].type!=="path"?!1:!0; a.effect(function(){for(var m=d.length,p=[],q=!!f.length,t=0;t="0"&&b<="9")return{type:"literal",value:Number(a)};if(b==="'"||b==="\"")return{type:"literal",value:a.slice(1,-1)};if(b=a.match(LEa)){b=b[1];var c=QEa[b];if(c)return{type:c,path:a.slice(0,-(b.length+1))}}return{type:"path",path:a}} function SEa(a){var b=a.match(KEa);if(b)return a={methodName:b[1],args:PEa},b[2].trim()&&(b=b[2].replace(MEa,",").split(","),a.args=b.map(REa)),a} ;function TEa(a,b,c,d){d=d===void 0?!1:d;b=Rc(b);var e=wk;e&&(c=e(c,b,"attribute",a));ou(a,c,b,d)} function ou(a,b,c,d){b=UEa(b,d===void 0?!1:d);b===void 0?a.removeAttribute(c):a.setAttribute(c,b)} function UEa(a,b){switch(typeof a){case"object":case"function":if(a instanceof Date)return a.toString();if(a){if((b===void 0?0:b)&&!x("polymer_reflect_objects_as_boolean_killswitch"))return a?"":void 0;b=window.trustedTypes?window.trustedTypes.isHTML(a)||window.trustedTypes.isScript(a)||window.trustedTypes.isScriptURL(a):void 0;if(b)return a;try{return JSON.stringify(a)}catch(c){fo(Error("Couldn't stringify object: "+a))}}break;case"boolean":return a?"":void 0;default:return a!==null&&a!==void 0? a.toString():void 0;}} ;function VEa(a){if(a===void 0)throw Error("Expected NodeInfo; got undefined");return a} var WEa=RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?((?:[a-zA-Z_$][\\w.:$\\-*]*)\\s*(?:\\(\\s*(?:(?:(?:((?:[a-zA-Z_$][\\w.:$\\-*]*)|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)(?:,\\s*(?:((?:[a-zA-Z_$][\\w.:$\\-*]*)|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*))*)?)\\)\\s*)?)(?:]]|}})","g"),XEa=/[A-Z]/,YEa=["class","hidden","id","on-dom-change"],ZEa=new Set([].concat(ia(YEa),["if", "notify-dom-change","restamp"])),$Ea=new Set([].concat(ia(YEa),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),aFa=new Set(["restamp"]); function bFa(a,b,c,d){var e=cFa(d);if(e.length){d=c;var f="property";XEa.test(c)?f="attribute":c[c.length-1]==="$"&&(c=c.slice(0,-1),f="attribute");var h=dFa(e);h&&f==="attribute"&&(c==="class"&&a.hasAttribute("class")&&(h+=" "+a.getAttribute(c)),ou(a,h,c));f==="attribute"&&d==="disable-upgrade$"&&a.setAttribute("disable-upgrade","");a.localName==="input"&&d==="value"&&a.setAttribute("value","");a.removeAttribute(d);f==="property"&&(c=Qc(c));b=VEa(b);eFa(b,f,c,e);return!0}return c.slice(0,3)==="on-"?( a.removeAttribute(c),(f=b).events!=null||(f.events=[]),b.events.push({name:c.slice(3),value:d}),!0):c==="id"?(b.id=d,!0):!1} function cFa(a){for(var b=[],c=0,d;(d=WEa.exec(a))!==null;){d.index>c&&b.push({type:"literal",value:a.slice(c,d.index)});var e=d[1][0];c=!!d[2];d=d[3].trim();if(e==="{")throw Error("Two-way data bindings in templates are not supported.");(e=SEa(d))?b.push({type:"method",negate:c,signature:e}):b.push({type:"path",negate:c,path:d});c=WEa.lastIndex}c&&c1&&d){var f=a.getPathMutationSignal(e);d=function(){var h=Cp(a.owner,function(){return a.getWithPath([e[0]])}),m,p=(m=f())==null?void 0:m.value; return{rootWasDefined:h!==void 0,value:p}}}else d=function(){var h=a.getWithPath(e); return{rootWasDefined:h!==void 0,value:h}}; b.signalCache[c]=d}return d()} function mFa(a,b,c,d,e){b=b.parts.map(function(h,m){if(h.type==="literal"){c.partWasDefined!=null||(c.partWasDefined=[]);var p;(p=c.partWasDefined)[m]||(p[m]=h.value!==void 0);return h.value}var q;if(h.type==="method"){var t,u=(t=(q=c.partWasDefined)==null?void 0:q[m])!=null?t:!1;u||(u=h.signature.args.every(function(y){return y.type==="literal"})); var v=!1,w=!0;q=h.signature.args.map(function(y){if(y.type==="literal")return y.value;if(y.type!=="path")throw Error("Support for "+y.type+" args in template bindings not implemented.");var A=lFa(a,c,y.path);y=A.value;A=A.rootWasDefined;v||(v=A);w&&(w=A);return y}); u||(u=e===1?w:v);c.partWasDefined!=null||(c.partWasDefined={});c.partWasDefined[m]=u;if(!u)return;q=(m=lFa(a,c,h.signature.methodName).value)&&typeof m==="function"?m.apply(d,q):void 0}else t=lFa(a,c,h.path),q=t.value,c.partWasDefined!=null||(c.partWasDefined={}),(u=c.partWasDefined)[m]||(u[m]=q!==void 0||t.rootWasDefined);h.negate&&(q=!q);return q}); if(b.length===1){var f;return((f=c.partWasDefined)==null?0:f[0])?b[0]:jFa}return b.join("")} function pu(a){return typeof a==="object"&&!!a&&"notifyPath"in a&&"canNotifyPath"in a} function qu(a){return typeof a==="object"&&!!a&&"notifyPath"in a} function nFa(a){return"polymerController"in a} function oFa(a,b){b=""+hu(b)[0];if(pu(a))return a.canNotifyPath(b);if(nFa(a)&&pu(a.polymerController))return a.polymerController.canNotifyPath(b);if(qu(a)){var c;return!((c=a.properties)==null||!c[b])}if(nFa(a)&&qu(a.polymerController)){var d;return!((d=a.polymerController.properties)==null||!d[b])}return!1} function pFa(a,b,c){pu(a)||qu(a)?a.notifyPath(b,c):nFa(a)&&(pu(a.polymerController)||qu(a.polymerController))&&a.polymerController.notifyPath(b,c)} function qFa(a,b,c){if(c!==jFa){a.kind==="attribute"||a.target!=="textContent"&&(a.target!=="value"||b.localName!=="input"&&b.localName!=="textarea")||(c=c===void 0?"":c);var d,e=(d=kFa.Polymer)==null?void 0:d.sanitizeDOMValue;e&&(c=e(c,a.target,a.kind,b));if(a.kind==="attribute"){a=a.target;if(a==="class"||a==="name"||a==="slot")b=vt(b);ou(b,c,a)}else if(a=a.target,c!==b[a]||typeof c==="object")b.loggingStatus&&(b.loggingStatus.isDeclarativeExternal=!0,Xt(b.localName,a,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")), b[a]=c,b.loggingStatus&&(b.loggingStatus.isDeclarativeExternal=!1)}} function rFa(a,b,c,d){var e=b.parts[0];if(b.parts.length!==1||e.type!=="path"||!oFa(c,b.target))return!1;var f=l(e.path.split(".")),h=f.next().value,m=ha(f);if(BEa(a,h))return!1;d.signalCache!=null||(d.signalCache={});f=d.signalCache[e.path];var p;f=(p=f)==null?void 0:p().value;if((f==null?void 0:f.path)!==void 0){d=hu(f.path);var q=hu(e.path);d=[b.target].concat(ia(d.slice(q.length-1)));pFa(c,d,e.negate?!f.value:f.value);return!0}var t=nu(a,h);var u=t.getChangeRecordSignal(m),v=!1;f=function(){if(!v){var y= Cp(a.owner,function(){return t.getWithPath([])}); v||(v=y!==void 0)}return{value:u(),rootWasDefined:v}}; d.signalCache[e.path]=f;d.partWasDefined!=null||(d.partWasDefined={});f=f();(q=d.partWasDefined)[0]||(q[0]=f.rootWasDefined);var w=Cp(a.owner,function(){return t.getWithPath(m)}); d.partWasDefined[0]&&Cp(a.owner,function(){return void qFa(b,c,e.negate?!w:w)}); return!0} function sFa(a,b,c,d,e,f){if(!rFa(a,b,c,d)){var h=mFa(a,b,d,e,f);Cp(a.owner,function(){return void qFa(b,c,h)})}} function tFa(a,b,c,d,e,f){c=l(c);for(var h=c.next(),m={};!h.done;m={infoIndex:void 0},h=c.next()){h=h.value;var p=h.bindings;m.infoIndex=h.infoIndex;h=h.parentInfo;if(p){p=l(p);for(var q=p.next(),t={};!q.done;t={b$jscomp$86:void 0,bindingCtx$jscomp$4:void 0},q=p.next()){t.b$jscomp$86=q.value;if(m.infoIndex===void 0)throw Error("Invariant: missing infoIndex");t.bindingCtx$jscomp$4={};a.effect(function(u,v){return function(){e&&!e()||sFa(a,u.b$jscomp$86,b[v.infoIndex],u.bindingCtx$jscomp$4,d,f)}}(t, m))}}h&&tFa(a,b,[h],d,e,f)}} function uFa(a,b){a=(b.parentInfo?uFa(a,b.parentInfo):a).firstChild;for(var c=0;a;a=a.nextSibling)if(b.parentIndex===c++)return a;throw Error("Invariant: Node not found")} function vFa(a,b,c,d){a=document.importNode(a.content,!0);a.__noInsertionPoint=!(d==null?0:d.hasInsertionPoint);for(var e=Array(b.length),f={},h=0;h=0;c--){var d=b[c];Array.isArray(d)?WFa(a,d):a.indexOf(d)<0&&a.unshift(d)}} function XFa(a,b){a.reactiveSchemas=a.reactiveSchemas.filter(function(c){return c.type==="observe"&&b.includes(c.method.methodName)||SFa(c)&&b.includes(c.propertyKey)?!1:!0})} function YFa(a,b){var c=b.prototype,d,e,f={is:a.is,reactiveSchemas:[],observedAttributes:[],behaviors:[bEa.InjectBehavior,du.prototype],disableElementRegistration:a.disableElementRegistration,provide:(d=a.providers)!=null?d:[],reactivityMode:a.reactivityMode,signalProperties:(e=c.signalProperties)!=null?e:[]};"template"in b?f.templateGetter=function(){return b.template}:a.getTemplate&&(f.templateGetter=a.getTemplate); c.behaviors&&WFa(f.behaviors,c.behaviors);ZFa(f,b);return f} function ZFa(a,b){for(var c=b.prototype,d={properties:{},observers:[],disabledPolySiReactions:[]},e=l(a.behaviors),f=e.next();!f.done;f=e.next())VFa(d,f.value);VFa(d,c);if(a.signalProperties)for(c=l(a.signalProperties),e=c.next();!e.done;e=c.next())delete d.properties[e.value];c=l(Object.entries(d.properties));for(e=c.next();!e.done;e=c.next()){f=l(e.value);e=f.next().value;f=f.next().value;var h=void 0;if((h=a.signalProperties)==null||!h.includes(e)){h=void 0;var m=a,p=f.type;if(!p)if(window.Reflect!== void 0&&window.Reflect.getMetadata!==void 0)a:{p=Reflect.getMetadata("design:type",b,e);for(var q=l(TFa),t=q.next();!t.done;t=q.next())if(t=t.value,p===t){p=t;break a}p=Object}else p=String;f.computed||f.selector||(m.reactiveSchemas.push({type:"signal",propertyKey:e,value:f.value,attributeType:p,readOnly:f.readOnly}),m.observedAttributes.push(Rc(e)));f.reflectToAttribute&&m.reactiveSchemas.push({type:"reflect",propertyKey:e});if(f.computed){p=SEa(f.computed);if(!p)throw Error("Unable to parse computed in @property"); m.reactiveSchemas.push({type:"computeWithMethod",propertyKey:e,method:p,value:f.value})}f.observer&&m.reactiveSchemas.push({type:"observe",method:{methodName:f.observer,args:[{type:"path",path:e}]}});f.notify&&m.reactiveSchemas.push({type:"notify",propertyKey:e});f.selector&&m.reactiveSchemas.push({type:"redux",propertyKey:e,selector:f.selector,selectorArgs:(h=f.selectorArgs)!=null?h:[]})}}HEa&&UFa(a);b=l(d.observers);for(e=b.next();!e.done;e=b.next())c=a,e=e.value,(f=SEa(e))?c.reactiveSchemas.push({type:"observe", method:f}):console.log("Warning: unable to parse observe declaration: \""+e+"\"");XFa(a,d.disabledPolySiReactions)} ;function $Fa(a,b){for(var c=0;c=d;b--)c=a,e=b,kGa(c,e),l(c.instances.splice(e,1)).next().value.signalProxy.dispose()},kGa=function(a,b){a=a.instances[b]; b=vt(a.root);for(var c=0;c=0?b:void 0}; ba.Object.defineProperties(xu.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var a=this;return Cp(this.parentSignalProxy.owner,function(){return yu(a).getWithPath([])})}, set:function(a){jGa(this,a)}}, delay:{configurable:!0,enumerable:!0,set:function(){}}, filter:{configurable:!0,enumerable:!0,set:function(){}}, observe:{configurable:!0,enumerable:!0,set:function(){}}, sort:{configurable:!0,enumerable:!0,set:function(){}}, __instances:{configurable:!0,enumerable:!0,get:function(){return this.instances}}}); ba.Object.defineProperties(xu,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return"as index-as initial-count items-index-as notify-dom-change target-framerate".split(" ")}}}); customElements.define("ps-dom-repeat",xu);var zu=new Bn("STATE_STORE_TOKEN"),qGa=new Bn("SELECT_TOKEN"),rGa=new Bn("DISPATCH_TOKEN");function sGa(a,b){var c=Au().getState();return b?a.apply(null,[c].concat(ia(b))):a(c)} var tGa={getSelectFn:function(){var a;return(a=Fn().resolve(Cn(qGa)))!=null?a:sGa}, getDispatchFn:function(){var a;return(a=Fn().resolve(Cn(rGa)))!=null?a:Au().dispatch.bind(Au())}, getAppStore:function(){return Fn().resolve(zu)}},uGa; function vGa(){if(uGa)return uGa;var a=l(ip(0,void 0,"MB1Hb")),b=a.next().value;a.next();var c=a.next().value;Au().subscribe(function(){wGa(c)}); return uGa=b} var xGa=!1;function wGa(a){xGa||(xGa=!0,Promise.resolve().then(function(){a(function(b){return b+1}); xGa=!1}))} function Au(){return tGa.getAppStore()} function yGa(a,b){return tGa.getSelectFn()(a,b)} function Bu(a){tGa.getDispatchFn()(a)} ;var zGa=function(a,b,c){c=c===void 0?{}:c;this.name=a;this.id=Cu.nextSpanId++;this.sessionId=Cu.sessionId;this.attributes=b;this.status="SPAN_STATUS_UNSET";var d;this.startTime=(d=c.startTime)!=null?d:im();this.isActiveSpan=c.active;if(a=Cu.stack[Cu.stack.length-1])this.parentId=a.id,a.children||(a.children=[]),a.children.push(this);a=l(Cu.processors);for(b=a.next();!b.done;b=a.next()){b=b.value;try{var e=d=void 0;(e=(d=b).onSpanStart)==null||e.call(d,this)}catch(f){fo(f)}}c.endTime!=null&&(this.isActiveSpan= !1,this.end("SPAN_STATUS_OK",c.endTime))}; zGa.prototype.end=function(a,b){a=a===void 0?"SPAN_STATUS_OK":a;this.endTime=b=b===void 0?im():b;this.duration=this.endTime-this.startTime;this.status=a;this.isActiveSpan!==!1&&(Cu.stack[Cu.stack.length-1]===this?Cu.stack.pop():fo(Error("Tried to close an inactive span: "+String(this.name))));a=l(Cu.processors);for(b=a.next();!b.done;b=a.next()){b=b.value;try{var c=void 0,d=void 0;(d=(c=b).onSpanEnd)==null||d.call(c,this)}catch(e){fo(e)}}}; zGa.prototype.addAttributes=function(a){Object.assign(this.attributes,a)}; var AGa={end:function(){}, addAttributes:function(){}},Cu={initialized:!1, nextSpanId:0,stack:[],sessionId:"",enabledSpans:void 0,processors:[],shouldSampleFn:function(){return!0}}; function Du(a){return Cu.initialized?Cu.enabledSpans?Cu.enabledSpans[a]:!0:!1} function Eu(a,b,c){if(typeof c==="function"){var d=c;c=void 0}var e=Du(a)?new zGa(a,b,c):AGa,f;if(((f=c)==null?void 0:f.endTime)!=null)return d&&fo(Error("Retroactive spans must not provide a callback.")),e;var h;e!==AGa&&((h=c)==null?void 0:h.active)!==!1&&Cu.stack.push(e);if(!d)return e;if(e===AGa)return d(e);try{var m=d(e);if(m instanceof Promise)return m.then(function(p){e.end();return p},function(p){e.end("SPAN_STATUS_ERROR"); throw p}); e.end();return m}catch(p){throw e.end("SPAN_STATUS_ERROR"),p}} ;var Fu=function(){};function BGa(a,b,c,d){a instanceof Element&&(c.debugName||(c.debugName="<"+a.tagName.toLowerCase()+(a.tagName.includes("-")?">":"."+a.className+">")),x("ytwiz_enable_debug_component_props")&&(a.debugProps||(a.debugProps=tia(b,function(e){return function(){return e()}})),b.data===void 0||"data"in a&&!a.isWebComponentWrapper||Object.defineProperty(a.debugProps,"data",{get:function(){return Bp(b.data)}, set:function(e){var f;d==null||(f=d.data)==null||f.call(d,e)}, enumerable:!0,configurable:!0})))} ;var CGa=void 0;function Gu(a,b){if(a.length===0&&(b==null||!b.initial))return Eua(a,{debugName:b==null?void 0:b.debugName},"h");var c=l(Eua({source:function(){return a()}, computation:function(f,h){return(h==null?0:h.value)?a(h.value):(b==null?0:b.initial)?a(b.initial):f}},{debugName:b==null?void 0:b.debugName},"i")),d=c.next().value,e=c.next().value; c=c.next().value;return[d,e,c]} ;function O(a,b){var c=function(d){return Eu("ytComponent",{},function(e){var f=CGa={};var h;if(((h=c)==null?0:h.idomCompat)&&d.renderedFromIdom){var m;h=typeof c.idomCompat==="object"?(m=c)==null?void 0:m.idomCompat.callbacks:{};h=l(DGa(d,h));m=h.next().value;var p=h.next().value;h=h.next().value;var q=EGa(a,m);f.privateValue=q;CGa=void 0;BGa(q,m,c,p);e.addAttributes({debugName:c.debugName});e=Qva(q);e=Array.isArray(e)?e[0]:e;e[pq]||(e[pq]={});e[pq].updateSignalsFromIdomProps=h;Fu(m,q);return q}h= tia(d,FGa);m=EGa(a,h);BGa(m,h,c);f.privateValue=m;CGa=void 0;e.addAttributes({debugName:c.debugName});Fu(h,m);return m})}; c.debugName=b===void 0?"":b;return c} function EGa(a,b){a=a(b);return Dq(a)} function GGa(a,b){a[b]||(a=new Dl("IDOM interop setter undefined. Key:",b),co(a))} function FGa(a,b){return b==="children"||b==="ref"||typeof a==="function"||a===void 0?a:function(){return Bp(a)}} function HGa(a,b){return function(){var c;return(c=Bp(a))!=null?c:b}} function Hu(a,b){var c=Object.assign({},a),d;for(d in b)b.hasOwnProperty(d)&&(c[d]=HGa(a[d],b[d]));return c} function DGa(a,b){var c={},d={},e={},f={},h;for(h in a){f={key$jscomp$621:f.key$jscomp$621};f.key$jscomp$621=h;var m=a[f.key$jscomp$621];if(f.key$jscomp$621==="children"||f.key$jscomp$621==="ref")c[f.key$jscomp$621]=m;else if(typeof m==="function"){if(f.key$jscomp$621 in b||m.length>0)e[f.key$jscomp$621]=m,c[f.key$jscomp$621]=function(q){return function(){return e[q.key$jscomp$621].apply(e,ia(sa.apply(0,arguments)))}}(f);else if(f.key$jscomp$621==="data"){var p=l(Gu(m,{debugName:""+f.key$jscomp$621+":cwis"}));m=p.next().value;p=p.next().value;c[f.key$jscomp$621]=m;d[f.key$jscomp$621]=p}else c[f.key$jscomp$621]=m;}else a[f.key$jscomp$621]===void 0&&f.key$jscomp$621 in b||(p=l(ip(a[f.key$jscomp$621],{debugName:""+f.key$jscomp$621+":cwis"},"isWZ5")),m=p.next().value,p=p.next().value,c[f.key$jscomp$621]=m,d[f.key$jscomp$621]=p)}return[c,d,function(q){var t={},u;for(u in q)t={key$jscomp$620:t.key$jscomp$620,val$jscomp$73:void 0}, t.key$jscomp$620=u,t.val$jscomp$73=q[t.key$jscomp$620],t.key$jscomp$620!=="children"&&t.key$jscomp$620!=="ref"&&(typeof t.val$jscomp$73==="function"?t.key$jscomp$620 in b?e[t.key$jscomp$620]=t.val$jscomp$73:t.val$jscomp$73.length>0&&(e[t.key$jscomp$620]=t.val$jscomp$73,fo(new Dl("Callback detected that was not set in the idomCompat callbacks map. Key:",t.key$jscomp$620))):t.key$jscomp$620 in b&&t.val$jscomp$73===void 0||(GGa(d,t.key$jscomp$620),hp(function(v){return function(){d[v.key$jscomp$620](v.val$jscomp$73)}}(t))))}]} ;var Iu=function(){}; Iu.prototype.hasAttribute=function(a){if(a==="dir")return!1;if(a==="disable-upgrade"){var b,c;return(c=(b=this.hostElement)==null?void 0:b.hasAttribute("disable-upgrade"))!=null?c:!1}throw Error("Unexpected call to hasAttribute for attribute "+a)}; Iu.prototype.attributeChangedCallbackWrapper=function(a,b,c){if(a==="disable-upgrade"&&this.__isUpgradeDisabled&&c===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var d;((d=this.hostElement)!=null?d:this).isConnected&&this.connectedCallback()}else b===c||this.__isReflecting||this.attributeChangedCallback(a,b,c)}; Iu.prototype.getExtraMethodsToForward=function(){for(var a=this,b=[],c=l(IGa),d=c.next(),e={};!d.done;e={tagName$jscomp$44:void 0,name$jscomp$417:void 0},d=c.next())e.name$jscomp$417=d.value,d=void 0,e.name$jscomp$417==="_setPendingProperty"?(e.tagName$jscomp$44=this.hostElement.tagName.toLowerCase(),d=function(f){return function(h,m,p){Xt(f.tagName$jscomp$44,h,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return a._setPendingProperty(h,m,p)}}(e)):d=function(f){return function(){return a[f.name$jscomp$417].apply(a, ia(sa.apply(0,arguments)))}}(e),b.push([e.name$jscomp$417, d]);return b}; var JGa=DFa(zFa(ws(Iu)));function KGa(a,b,c){var d=xs(a.prototype,JGa,a.prototype.behaviors);d.prototype.is=b;d.prototype.localName=b;c&&LGa(d,c);return function(e){e&&(d.prototype.hostElement=e);var f=new d;f.root=f;f.hostElement=e;return f}} function LGa(a,b){var c;Object.defineProperty(a.prototype,"_template",{get:function(){c===void 0&&(c=b());return c}, set:function(d){c=d}, configurable:!0,enumerable:!0})} for(var MGa=["disabled","disable-upgrade"],NGa=ws(function(){}),OGa=new Set(Object.getOwnPropertyNames(NGa.prototype)),PGa=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(ia(OGa))),QGa=new Set(["__dataEnabled", "__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),IGa=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),RGa=new Set([].concat(ia(QGa),ia(IGa),ia(OGa))),SGa=l(RGa),TGa=SGa.next();!TGa.done;TGa=SGa.next())PDa.add(TGa.value); function UGa(a,b,c,d){function e(){if(!w){for(var y=new Set,A=l(t),C=A.next();!C.done;C=A.next()){C=C.value;for(var I=l(Object.getOwnPropertyNames(C)),K=I.next();!K.done;K=I.next()){K=K.value;var N=void 0,L=(N=Object.getOwnPropertyDescriptor(C,K))==null?void 0:N.value;L&&L instanceof Function&&!Ju(K)&&(!m[K]||x("polymer_forward_method_killswitch"))&&y.add(K)}}A=l(Object.entries(Object.getOwnPropertyDescriptors(a.prototype)));for(C=A.next();!C.done;C=A.next())I=l(C.value),C=I.next().value,I=I.next().value, I.value instanceof Function&&!Ju(C)&&y.add(C);w=y}return w} VGa(a,b,d==null?void 0:d.providers);RAa(a.prototype,a,!0);var f=KGa(a,b,c),h,m=(h=a.prototype.properties)!=null?h:{},p,q,t=(q=(p=a.prototype.behaviors)==null?void 0:p.flat(Infinity))!=null?q:[];c=l(t);for(h=c.next();!h.done;h=c.next())m=Object.assign({},h.value.properties,m);var u=[].concat(ia(MGa),ia(Object.keys(m).map(function(y){return Rc(y)}))),v=!1,w; return{ctor:function(y,A){var C=f(y),I,K;y=[].concat(ia((I=d==null?void 0:d.allowedProps)!=null?I:[]),ia((K=d==null?void 0:d.allowedPropsFromBehaviors)!=null?K:[]));C.allowedProps=y.length>0?y:void 0;I={};K=l(u);for(y=K.next();!y.done;y=K.next())y=y.value,I[y]=Qc(y);C.__dataAttributes=I;var N=C.ready.bind(C);C.ready=function(){A.beforeReady();N();if(Yt(b)&&!v){var L=C.__templateInfo;if(L==null?0:L.hostProps){L=l(Object.keys(L.hostProps));for(var R=L.next();!R.done;R=L.next())Xt(b,R.value,"PROPERTY_ACCESS_GET_INTERNAL")}v= !0}}; C._overrideLegacyUndefined=!0;return C}, props:m,observedAttributes:u,getInitialMethods:e,getPropsToForwardBeforeRegister:function(){for(var y=[],A=new Set,C=l(Object.keys(m)),I=C.next();!I.done;I=C.next())I=I.value,y.push([I,m[I].readOnly]),A.add(I);C=e();I=l(Object.keys(Object.getOwnPropertyDescriptors(a.prototype)));for(var K=I.next();!K.done;K=I.next())K=K.value,!WGa(K)||C.has(K)||A.has(K)||(y.push([K,!1]),A.add(K));A=l(QGa);for(C=A.next();!C.done;C=A.next())y.push([C.value,!0]);return y}, getPropsToForwardBeforeReady:function(y){for(var A=[],C=l(Object.entries(y)),I=C.next();!I.done;I=C.next()){var K=l(I.value);I=K.next().value;K=K.next().value;if(WGa(I)&&!(K instanceof Function)&&(A.push([I,!1]),Yt(b))){var N=K=void 0;(N=(K=y)._createPropertyAccessor)==null||N.call(K,I)}}return A}, shouldForwardProp:WGa,shouldLog:Yt}} var XGa={created:function(){EFa(this);this.initializeInjection()}}; function VGa(a,b,c){cEa(a,c);a.prototype.behaviors.unshift(XGa);if(RDa()){if(Yt(b)){var d;(d=a.prototype).behaviors!=null||(d.behaviors=[]);a.prototype.behaviors.unshift(TDa())}UDa(a)}F(du.prototype)(a.prototype,"__templateHelpers")} function Ju(a){return PGa.has(a)||a.startsWith("__compute__")} function WGa(a){return!Ju(a)&&!a.startsWith("_")&&!a.endsWith("_")} ;function YGa(a,b){function c(){var v=p();v=l(v);for(var w=v.next();!w.done;w=v.next()){var y=l(w.value);w=y.next().value;y=y.next().value;Ku(u.prototype,w,y)}d=!0} var d=!1,e=a.ctor,f=a.getInitialMethods,h=a.observedAttributes,m=a.getPropsToForwardBeforeReady,p=a.getPropsToForwardBeforeRegister,q=a.shouldForwardProp,t=a.shouldLog,u=function(){var v=HTMLElement.call(this)||this;v.didForwardDynamicProps=!1;v.loggingStatus={};d||c();v.inst=e(v,{beforeReady:function(){v.didForwardDynamicProps||(v.forwardDynamicProps(),v.didForwardDynamicProps=!0)}}); v.controllerProxy=SDa(v.inst,b);v.forwardMethods();return v}; k(u,HTMLElement);u.prototype.forwardMethods=function(){for(var v=this,w=l(this.inst.getExtraMethodsToForward()),y=w.next(),A={};!y.done;A={method$jscomp$36:void 0},y=w.next()){var C=l(y.value);y=C.next().value;C=C.next().value;A.method$jscomp$36=C;this[y]=function(I){return function(){return I.method$jscomp$36.call.apply(I.method$jscomp$36,[v.inst].concat(ia(sa.apply(0,arguments))))}}(A)}w=l(f()); for(A=w.next();!A.done;A=w.next())A=A.value,q(A)&&ZGa(this,A),t(b)&&!Ju(A)&&$Ga(this.inst,A)}; u.prototype.forwardDynamicProps=function(){var v=m(this.inst);v=l(v);for(var w=v.next();!w.done;w=v.next()){var y=l(w.value);w=y.next().value;y=y.next().value;Ku(this,w,y);t(b)&&!Ju(w)&&aHa(this.inst,w)}}; u.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0}; u.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1}; u.prototype.attributeChangedCallback=function(v,w,y){this.inst.attributeChangedCallbackWrapper(v,w,y)}; ba.Object.defineProperties(u.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return b}}, polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}}); ba.Object.defineProperties(u,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return h}}}); customElements.define(b,u)} function Ku(a,b,c){a.hasOwnProperty(b)||Object.defineProperty(a,b,{get:function(){var d,e=((d=a.is)!=null?d:a.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||Xt(e,b,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,d=this.polymerController[b],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,d}, set:function(d){if(!c){var e,f=((e=a.is)!=null?e:a.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||Xt(f,b,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=b,this.loggingStatus.bypassProxyController=!0,this.polymerController[b]!==d&&(e={},this.polymerController.setProperties((e[b]=d,e)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})} function ZGa(a,b,c){var d=a.polymerController;a[b]=function(){var e=sa.apply(0,arguments);a.loggingStatus.currentExternalCall=b;a.loggingStatus.bypassProxyController=!0;var f,h=((f=a.is)!=null?f:a.tagName).toLowerCase();Xt(h,b,"PROPERTY_ACCESS_CALL_EXTERNAL");var m;f=(m=c!=null?c:d[b])==null?void 0:m.call.apply(m,[d].concat(ia(e)));a.loggingStatus.currentExternalCall=void 0;a.loggingStatus.bypassProxyController=!1;return f}} function $Ga(a,b){var c=a.hostElement,d=a[b];a[b]=function(){var e=sa.apply(0,arguments);if(c.loggingStatus.currentExternalCall!==b){var f,h=((f=c.is)!=null?f:c.tagName).toLowerCase();Xt(h,b,"PROPERTY_ACCESS_CALL_INTERNAL")}return d==null?void 0:d.apply(a,e)}} function aHa(a,b){var c=Object.getOwnPropertyDescriptor(a,b);c&&!c.get&&Object.defineProperty(a,b,{get:function(){Zt(a.hostElement,b);return c.value}, set:function(d){$t(a.hostElement,b);c.value=d}})} ;var bHa=!1,Lu=window.ShadyDOM;function cHa(a){return a.tagName==="PS-DOM-REPEAT"||a.tagName==="DOM-REPEAT"} function dHa(a,b){var c=eHa(a);a instanceof Element&&c.unshift(a);a=l(c.filter(cHa));for(var d=a.next();!d.done;d=a.next()){var e=void 0;d=l((e=d.value.__instances)!=null?e:[]);for(e=d.next();!e.done;e=d.next())if(e=e.value,e.root){e=Array.from(e.root.children);e=l(e);for(var f=e.next();!f.done;f=e.next())c.push.apply(c,ia(dHa(f.value,b)))}}return c.filter(function(h){return h.usePatchedLifecycles&&h.lifecycleIsConnected===b})} function eHa(a){var b=null;a instanceof Element?b=Element.prototype.querySelectorAll:a instanceof DocumentFragment&&(b=DocumentFragment.prototype.querySelectorAll);return b?Array.from(b.call(a,"*")):[]} function Mu(a){So(function(){for(var b=l(dHa(a,!1)),c=b.next();!c.done;c=b.next()){c=c.value;c.lifecycleIsConnected=!0;try{var d=void 0,e=(d=c.polymerController)!=null?d:c;e.connectedCallback&&Eu("polymerComponent",{debugName:c.tagName.toLowerCase()},e.connectedCallback.bind(e))}catch(f){co(f)}}})} function Nu(a){So(function(){for(var b=l(dHa(a,!0)),c=b.next();!c.done;c=b.next()){c=c.value;c.lifecycleIsConnected=!1;try{var d=void 0,e=void 0,f=void 0,h=void 0;(d=(h=c.polymerController)!=null?h:c)==null||(f=(e=d).disconnectedCallback)==null||f.call(e)}catch(m){co(m)}}})} function fHa(){if(!bHa){bHa=!0;var a=[Node];Lu&&a.push(Lu.Wrapper);var b=Node.prototype.insertBefore,c=Node.prototype.removeChild;a=l(a);for(var d=a.next(),e={};!d.done;e={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},d=a.next())d=d.value,e.nativeInsertBefore=d.prototype.insertBefore,d.prototype.insertBefore=function(h){return function(m,p){if(m instanceof DocumentFragment){var q=Array.from(m.children);m=h.nativeInsertBefore.call(this,m,p); if(this.isConnected&&h.nativeInsertBefore===b)for(p=l(q),q=p.next();!q.done;q=p.next())Mu(q.value);return m}q=m instanceof Element&&m.isConnected;p=h.nativeInsertBefore.call(this,m,p);q&&Nu(m);this.isConnected&&Mu(m);return p}}(e),e.nativeAppendChild=d.prototype.appendChild,d.prototype.appendChild=function(h){return function(m){if(m instanceof DocumentFragment){var p=Array.from(m.children); m=h.nativeAppendChild.call(this,m);if(this.isConnected){p=l(p);for(var q=p.next();!q.done;q=p.next())Mu(q.value)}return m}p=m instanceof Element&&m.isConnected;q=h.nativeAppendChild.call(this,m);p&&Nu(m);this.isConnected&&Mu(m);return q}}(e),e.nativeRemoveChild=d.prototype.removeChild,d.prototype.removeChild=function(h){return function(m){var p=m instanceof Element&&m.isConnected,q=h.nativeRemoveChild.call(this,m); p&&c===h.nativeRemoveChild&&Nu(m);return q}}(e),e.nativeReplaceChild=d.prototype.replaceChild,d.prototype.replaceChild=function(h){return function(m,p){if(m instanceof DocumentFragment){var q=Array.from(m.children); m=h.nativeReplaceChild.call(this,m,p);if(this.isConnected)for(Nu(p),p=l(q),q=p.next();!q.done;q=p.next())Mu(q.value);return m}q=m instanceof Element&&m.isConnected;var t=this.isConnected,u=h.nativeReplaceChild.call(this,m,p);t&&Nu(p);q&&Nu(m);t&&Mu(m);return u}}(e); a=[Element];Lu&&a.push(Lu.Wrapper);a=l(a);d=a.next();for(e={};!d.done;e={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},d=a.next())d=d.value,d.prototype.before=Ou(d.prototype.before),d.prototype.after=Ou(d.prototype.after),e.nativeReplaceWith=d.prototype.replaceWith,d.prototype.replaceWith=function(h){return function(){var m=sa.apply(0,arguments),p=l(gHa(m)),q=p.next().value,t=p.next().value; p=this.isConnected;h.nativeReplaceWith.apply(this,m);m=l(t);for(t=m.next();!t.done;t=m.next())Nu(t.value);if(p)for(Nu(this),q=l(q),p=q.next();!p.done;p=q.next())p=p.value,p instanceof Element&&Mu(p)}}(e),e.nativeRemove=d.prototype.remove,d.prototype.remove=function(h){return function(){var m=this.isConnected; h.nativeRemove.call(this);m&&Nu(this)}}(e),e.nativeInsertAdjacentElement=d.prototype.insertAdjacentElement,d.prototype.insertAdjacentElement=function(h){return function(m,p){var q=p.isConnected; m=h.nativeInsertAdjacentElement.call(this,m,p);q&&Nu(p);m.isConnected&&Mu(m);return m}}(e),e.nativeSetAttribute=d.prototype.setAttribute,d.prototype.setAttribute=function(h){return function(m,p){var q=hHa(this); if(!q.usePatchedLifecycles)return h.nativeSetAttribute.call(this,m,p);var t=this.getAttribute(m);h.nativeSetAttribute.call(this,m,p);p=this.getAttribute(m);iHa(q,m,t,p)}}(e),e.nativeRemoveAttribute=d.prototype.removeAttribute,d.prototype.removeAttribute=function(h){return function(m){var p=hHa(this); if(!p.usePatchedLifecycles)return h.nativeRemoveAttribute.call(this,m);var q=this.getAttribute(m);h.nativeRemoveAttribute.call(this,m);q!==null&&iHa(p,m,q,null)}}(e),e.nativeToggleAttribute=d.prototype.toggleAttribute,d.prototype.toggleAttribute=function(h){return function(m,p){var q=hHa(this); if(!this.usePatchedLifecycles)return h.nativeToggleAttribute.call(this,m,p);var t=this.getAttribute(m),u=t!==null;p=h.nativeToggleAttribute.call(this,m,p);p!==u&&iHa(q,m,t,p?"":null);return p}}(e); a=[Document,DocumentFragment,Element,ShadowRoot];Lu&&a.push(Lu.Wrapper);a=l(a);for(e=a.next();!e.done;e=a.next())e=e.value,e.prototype.prepend=Ou(e.prototype.prepend),e.prototype.append=Ou(e.prototype.append);(Lu==null?void 0:Lu.noPatch)===!0&&jHa();document.readyState==="complete"?Mu(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&Mu(document.body)}); var f=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");f&&f.get&&f.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:f.enumerable,configurable:!0,get:f.get,set:function(h){h||Nu(this);f.set.call(this,h);return h}})}} function Ou(a){return function(){var b=sa.apply(0,arguments),c=l(gHa(b)),d=c.next().value;c=c.next().value;a.apply(this,b);b=l(c);for(c=b.next();!c.done;c=b.next())Nu(c.value);if(this.isConnected)for(d=l(d),b=d.next();!b.done;b=d.next())b=b.value,b instanceof Element&&Mu(b)}} var kHa=["appendChild","insertBefore","removeChild","replaceChild"],lHa=[Node];Lu&&lHa.push(Lu.Wrapper);function jHa(){for(var a=l(lHa),b=a.next();!b.done;b=a.next()){b=b.value.prototype;for(var c=l(kHa),d=c.next();!d.done;d=c.next()){d=d.value;var e=Object.getOwnPropertyDescriptor(b,d);e&&Object.defineProperty(b,"__shady_native_"+d,e)}}} function iHa(a,b,c,d){var e,f;if((e=a.polymerController)==null?0:(f=e.observedAttributes)==null?0:f.includes(b))if(a=a.polymerController,a.attributeChangedCallbackWrapper)a.attributeChangedCallbackWrapper.call(a,b,c,d);else{var h;(h=a.attributeChangedCallback)==null||h.call(a,b,c,d)}} function gHa(a){var b=[],c=[];a=l(a);for(var d=a.next();!d.done;d=a.next())d=d.value,d instanceof Element&&d.isConnected&&c.push(d),d instanceof DocumentFragment?b.push.apply(b,ia(Array.from(d.children))):b.push(d);return[b,c]} function hHa(a){return!(a instanceof Element)&&a.node instanceof Element?a.node:a} ;function mHa(a,b){var c=b?["children"].concat(ia(b)):["children"];b=[];c=l(c);for(var d=c.next();!d.done;d=c.next()){var e=d.value;if(a.hasOwnProperty(e)){e==="children"?d=D(mq,null,a[e]):(d=a[e],d=typeof d==="function"?d():d,d=Array.isArray(d)?d:[d]);d=Dq(d).flat();if(e!=="children"){var f=d;e=yFa(e);f=l(f);for(var h=f.next();!h.done;h=f.next())h=h.value,h instanceof Element&&h.setAttribute("slot",e)}b.push(d)}}b.length===0?a=[]:(a=Dq(D("div",null,b)),a=Array.from(a.childNodes));return a} function nHa(a,b,c){var d={};yp(function(){var e={},f;for(f in b)if(b.hasOwnProperty(f)){var h=void 0,m=void 0;if(!(((h=c.slotProps)==null?0:h.includes(f))||f==="children"||((m=c.callbackProps)==null?0:m.includes(f))||f==="ref")&&(h=Bp(b[f]),d[f]!==h)){d[f]=h;m=void 0;var p=(m=a.hostElement)!=null?m:a;!c.skipHostForwardedProps&&iFa.has(f)&&(p[f]=h);e[f]=h}}hp(function(){if(a.setProperties)a.setProperties(e);else for(var q=l(Object.entries(e)),t=q.next();!t.done;t=q.next()){var u=l(t.value);t=u.next().value; u=u.next().value;a[t]=u}})},"j")} function oHa(a,b,c,d){var e=mHa(c,d.slotProps),f=vt(a);e=l(e);for(var h=e.next();!h.done;h=e.next())f.appendChild(h.value);nHa(b,c,d);d=l(d.callbackProps||[]);e=d.next();for(f={};!e.done;f={kebabEventName:void 0,eventListener:void 0,callbackName:void 0},e=d.next())e=e.value,f.callbackName=e,c[f.callbackName]&&(String(e).substring(0,2)==="on"&&(f.kebabEventName=yFa(String(e).substring(2)),f.eventListener=c[f.callbackName],a.addEventListener(f.kebabEventName,f.eventListener),zp(function(t){return function(){a.removeEventListener(t.kebabEventName, t.eventListener)}}(f))),So(function(t){return function(){return b[t.callbackName]!==void 0}}(f))||(b[f.callbackName]=c[f.callbackName])); if(c.ref){c=l(pHa(c.ref));var m=c.next().value,p=c.next().value,q=b.attached.bind(b);b.attached=function(){m(a);q()}; zp(function(){p()})}} function pHa(a){if(typeof a==="function"){var b;return[function(c){b=a(c)}, function(){var c;(c=b)==null||c()}]}if(!a.onRender||!a.onUnmount)throw Error("Invalid ref prop passed to Polymer CoW Wrapper."); return[a.onRender,a.onUnmount]} ;var Pu,qHa,rHa={};function sHa(a,b,c,d,e){d=d===void 0?{}:d;var f=Pu,h=!1;f?(h=!0,Pu=void 0):(qHa=b,f=document.createElement(b),qHa=void 0);var m=f;m.usePatchedLifecycles=!0;m.lifecycleIsConnected=!1;f.loggingStatus={};var p=tHa(a,b,f,d,e);zp(function(){m.lifecycleIsConnected&&(m.lifecycleIsConnected=!1,p.disconnectedCallback())}); h||(f.__noInsertionPoint=!0,oHa(f,p,c,d));return f} function tHa(a,b,c,d,e){e=e===void 0?UGa:e;rHa[b]!=null||(rHa[b]=e(a,b,d==null?void 0:d.getTemplate,d));var f=rHa[b],h=f.ctor;e=f.getInitialMethods;var m=f.getPropsToForwardBeforeReady;a=f.getPropsToForwardBeforeRegister;d=f.shouldForwardProp;var p=f.observedAttributes,q=f.shouldLog,t=h(c,{beforeReady:function(){var u=t;u._takeAttributes?u._takeAttributes():u.setPropertiesFromInitialAttributeValues&&u.setPropertiesFromInitialAttributeValues();u=l(m(c.polymerController));for(var v=u.next();!v.done;v= u.next()){var w=l(v.value);v=w.next().value;w=w.next().value;Ku(c,v,w);q(b)&&!Ju(v)&&aHa(c.polymerController,v)}c.polymerController=SDa(t,b)}}); c.polymerController=t;c.polymerController.observedAttributes=p;f=l(t.getExtraMethodsToForward());for(h=f.next();!h.done;h=f.next())p=l(h.value),h=p.next().value,p=p.next().value,ZGa(c,h,p);e=l(e());for(f=e.next();!f.done;f=e.next())f=f.value,d(f)&&ZGa(c,f),q(b)&&!Ju(f)&&$Ga(t,f);a=l(a());for(d=a.next();!d.done;d=a.next())e=l(d.value),d=e.next().value,e=e.next().value,Ku(c,d,e);return t} ;var Qu;function uHa(a){var b=Qu;Qu=a;return b} var Ru=new WeakMap;function vHa(a){if(Su.has(a)&&Qu&&wHa(Qu)===a){var b;(b=Qu)._numRenders!=null||(b._numRenders=0);Qu._numRenders++;if(Qu._numRenders>1)throw Error("Attempted to render a component that contains itself.");return Qu}} function xHa(a){var b=wHa(a);Qu!==a&&b.includes("-")&&Ru.set(a,!0)} var Su=new Set;function wHa(a){var b;return(b=a==null?void 0:a.tagName.toLowerCase())!=null?b:""} ;function yHa(a,b){if(a.componentType===Wo)throw Error("Components must be marked reactive to be used from web component wrapper.");Su.add(b);var c=function(){var d=HTMLElement.call(this)||this;d.is=b;if(qHa===b)return d.isInert=!0,d;d.createElement();return d}; k(c,HTMLElement);c.prototype.createElement=function(){var d=this;if(!this.isInert)if(x("web_monomer_web_component_wrapper_handle_errors")){Pu=this;try{var e=l(Hq(function(){return D(a,null)})).next().value; hFa(this);return e}catch(f){e=function(h){h.args||(h.args=[]);h.args.push("Error in PolySi web component wrapper");h.args.push(d.tagName);return h},eo(f instanceof Error?e(f):new Dl("Failed to render web component ("+this.tagName+")",{name:"PolySiWebComponentWrapper", tagName:this.tagName}))}finally{Pu=void 0}}else return Pu=this,e=l(Hq(function(){return D(a,null)})).next().value,Pu=void 0,hFa(this),e}; customElements.define(b,c)} ;function zHa(a,b,c,d,e){a.prototype.is=b;(d==null?0:d.useSink)?AHa(a,b,c,d,e):(c=UGa(a,b,c,d),YGa(c,b));return a} function AHa(a,b,c,d,e){fHa();var f=O(function(h){h=sHa(a,b,h,Object.assign({},d,{getTemplate:c}),e);h.__owner=zo;return h},"k"); f.debugName=b;yHa(f,b);return f} ;var BHa=new Set("context didCallReady is info params signalProxy".split(" "));function CHa(a){return!BHa.has(a)} var DHa="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),EHa="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" "); function FHa(a,b,c,d){function e(){if(!u){for(var v=new Set(DHa),w=l(f.behaviors),y=w.next();!y.done;y=w.next()){y=y.value;for(var A=l(Object.getOwnPropertyNames(y)),C=A.next();!C.done;C=A.next()){C=C.value;var I=void 0,K=(I=Object.getOwnPropertyDescriptor(y,C))==null?void 0:I.value;K&&K instanceof Function&&(!q[C]||x("polymer_forward_method_killswitch"))&&v.add(C)}}w=l(Object.entries(Object.getOwnPropertyDescriptors(a.prototype)));for(y=w.next();!y.done;y=w.next())A=l(y.value),y=A.next().value,A= A.next().value,A.value instanceof Function&&v.add(y);u=v}return u} var f=YFa({is:b,disableElementRegistration:!1,getTemplate:c,providers:d==null?void 0:d.providers,reactivityMode:d==null?void 0:d.reactivityMode},a);if((d==null?0:d.allowedProps)||(d==null?0:d.allowedPropsFromBehaviors)){var h,m;f.allowedProps=[].concat(ia((h=d.allowedProps)!=null?h:[]),ia((m=d.allowedPropsFromBehaviors)!=null?m:[]))}var p=RFa(f,a);b=p.observedAttributes;var q={};c=l(f.reactiveSchemas);for(d=c.next();!d.done;d=c.next())if(d=d.value,d.type==="signal")q[d.propertyKey]={readOnly:d.readOnly}, d.readOnly&&(q[oEa(d.propertyKey)]={readOnly:!0});else if(d.type==="compute"||d.type==="computeWithMethod"||d.type==="redux")q[d.propertyKey]={readOnly:!0};var t=f.reactiveSchemas.length,u;return{ctor:function(v,w){v=new p(v);v.beforeReady=w.beforeReady;return v}, props:q,observedAttributes:b,getInitialMethods:e,getPropsToForwardBeforeRegister:function(){for(var v=[],w=new Set,y=l(EHa),A=y.next();!A.done;A=y.next())A=A.value,v.push([A,A!=="observers"&&A!=="properties"]),w.add(A);y=l(Object.keys(q));for(A=y.next();!A.done;A=y.next())A=A.value,v.push([A,q[A].readOnly]),w.add(A);y=e();A=l(Object.keys(Object.getOwnPropertyDescriptors(a.prototype)));for(var C=A.next();!C.done;C=A.next())C=C.value,!CHa(C)||y.has(C)||w.has(C)||(v.push([C,!1]),w.add(C));v.push(["allowedProps", !0]);return v}, getPropsToForwardBeforeReady:function(v){var w=[];v=l(Object.keys(v));for(var y=v.next();!y.done;y=v.next()){y=y.value;var A=e();CHa(y)&&!A.has(y)&&w.push([y,!1])}v=l(f.reactiveSchemas.slice(t));for(y=v.next();!y.done;y=v.next())y=y.value,y.type!=="compute"&&y.type!=="computeWithMethod"&&y.type!=="redux"&&y.type!=="signal"||w.push([y.propertyKey,y.type==="signal"?y.readOnly:!0]);return w}, shouldForwardProp:CHa,shouldLog:Yt}} function Tu(a,b,c,d){var e,f,h=(f=(e=d)==null?void 0:e.mode)!=null?f:0;d!=null||(d={});var m;(m=d).reactivityMode!=null||(m.reactivityMode=0);return h===1?zHa(a,b,c,Object.assign({},d,{useSink:!0}),FHa):zHa(a,b,c,Object.assign({},d,{useSink:h===2}))} function Uu(){return function(a,b,c,d){var e,f,h=(f=(e=d)==null?void 0:e.mode)!=null?f:2;d!=null||(d={});var m;(m=d).reactivityMode!=null||(m.reactivityMode=0);if(h===0)throw Error("registerWizNext does not support component mode '"+h+"'.");return AHa(a,b,c,d,h===1?FHa:void 0)}} ;function Vu(a,b,c){var d={};d[a]=b;try{window.top.postMessage(d,Vk("POST_TO_PARENT_DOMAIN","https://www.youtube.com"),c)}catch(e){co(e)}} ;var Wu=function(){var a=E.apply(this,arguments)||this;a.actionMap={"yt-open-payments-dialog":"onStartWalletBuyFlow_"};return a}; k(Wu,E);g=Wu.prototype;g.created=function(){this.messageChannel_=null}; g.onStartWalletBuyFlow_=function(a,b){var c=this;this.messageChannel_=new MessageChannel;this.messageChannel_.port1.onmessage=function(d){if(d.data.buyFlowResponse)c.onDialogSuccess_(b,d.data.buyFlowResponse);else if(d.data.error)c.onDialogError_(b,d.data.error);else c.onDialogClose_(b)}; Vu("yt-iframed-buyflow-launcher",{encryptedPurchaseParams:a.data.encryptedPurchaseParams,serializedTransactionFlowLoggingParams:a.data.serializedTransactionFlowLoggingParams,serializedPaymentsClientParams:a.data.serializedPaymentsClientParams},[this.messageChannel_.port2])}; g.onDialogSuccess_=function(a,b){a({success:!0,buyFlowResponse:b})}; g.onDialogClose_=function(a){a({success:!1,closed:!0})}; g.onDialogError_=function(a,b){a({success:!1,error:b})}; n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],Wu.prototype,"ytActionHandlerBehavior",void 0);n([fu({is:"yt-iframed-buyflow-launcher",disableElementRegistration:!0})],Wu);Tu(Wu,"yt-iframed-buyflow-launcher",void 0,{mode:2});function GHa(a){var b=a.nodeName;if(a.id)return b+="#"+a.id;if(a.classList)for(var c=l(a.classList),d=c.next();!d.done;d=c.next())b+="."+d.value;a.parentElement&&(b=GHa(a.parentElement)+" > "+b);return b} ;function Xu(a,b,c,d){d=d===void 0?!1:d;return Eu("ytAction",{name:b,nodepath:GHa(a)},function(){var e=new Rs(b,!!d,c);Gt(a,"yt-action",e);return e.returnValue})} function Yu(a,b,c){return Xu(a,b,c,!0)} function HHa(a){return Xu(a,"yt-share-panel-can-select-contact-action",void 0)[0]} function Zu(a,b,c,d){b&&b.length&&b.forEach(function(e){var f=Vs(e);f&&(x("handle_service_request_actions")&&e.commandMetadata&&e.commandMetadata.webCommandMetadata&&e.commandMetadata.webCommandMetadata.sendPost?$u(c?c:a,[e]):Yu(a,f,[e,c,d]))})} function $u(a,b){var c=[a];b&&c.push.apply(c,b);b=Xu(a,"yt-service-request",c);return b.length>0&&(b=b[0],Gt(a,"yt-service-request-sent",b),b&&b.ajaxPromise)?(b.ajaxPromise.then(function(d){Gt(a,"yt-service-request-completed",d)},function(d){Gt(a,"yt-service-request-error",{error:d, params:c})},a),b.ajaxPromise):vj()} ;var av=function(){return E.apply(this,arguments)||this}; k(av,E);g=av.prototype;g.attached=function(){window.addEventListener("message",It(this,this.handlePostMessage_))}; g.detached=function(){window.removeEventListener("message",It(this,this.handlePostMessage_))}; g.ready=function(){this.setupPlayerEventsRelay_()}; g.setupPlayerEventsRelay_=function(){Vu("yt-iframed-player-progress-relay",{})}; g.handlePostMessage_=function(a){if((x("web_allow_replay_bootstrap_url_params")||a.origin===window.location.protocol+"//"+window.location.host)&&a.data)if(a.data["yt-iframed-parent-ready"])this.setupPlayerEventsRelay_();else{var b=Object.keys(a.data);if(b.length&&b[0].indexOf("yt-player-")!=-1){b=b[0];var c="yt-live-player"+b.replace("yt-player","");Yu(this.hostElement,c,[a.data[b]])}}}; n([fu({is:"yt-iframed-player-events-relay",disableElementRegistration:!0})],av);Tu(av,"yt-iframed-player-events-relay",void 0,{mode:2});var IHa=function(a){this.servicePromise_=a;a.then(Ia(function(){},this),function(){},this)},JHa=function(a,b,c){a.servicePromise_.then(function(d){var e=d[b]; if(!e)throw Error("Method not found: "+b);return e.apply(d,c)})},MHa=function(a,b,c){for(var d=Array(arguments.length-2),e=2;e 0&&document.addEventListener("click",a.requestAccessForHelpPanel);b.jumpToEnd()})}); this.requestAccessForHelpPanel=function(){if(!(a.rsaForPromises.length>0)){for(var b=l(a.rsaForList),c=b.next();!c.done;c=b.next()){c=c.value;try{a.rsaForPromises.push(document.requestStorageAccessFor(c))}catch(d){}}Promise.all(a.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){a.reset()})}}}; QHa.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)}; var PHa=function(a){var b,c,d,e;return ra(function(f){switch(f.nextAddress){case 1:b=l(Object.values(OHa)),c=b.next();case 2:if(c.done){f.jumpTo(0);break}d=c.value;f.setCatchFinallyBlocks(5);return f.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:d}),7);case 7:e=f.yieldResult;e.state!=="granted"&&a.rsaForList.push(d);f.leaveTryBlock(3);break;case 5:f.enterCatchBlock();f.jumpTo(0);break;case 3:c=b.next(),f.jumpTo(2);}})};new QHa().initialize();var RHa=function(a){this.loader_=a}; RHa.prototype.startHelp=function(a){JHa(this.loader_,"startHelp",arguments)}; RHa.prototype.JSC$7669_loadChatSupport=function(a){JHa(this.loader_,"loadChatSupport",arguments)}; var THa=function(a,b){b=b||{};a=MHa(SHa,"help.service.Lazy.create",a,{apiKey:b.apiKey||b.apiKey,asxUiUri:b.asxUiUri||b.asxUiUri,environment:b.environment||b.environment,flow:b.flow||b.flow,frdProductData:b.frdProductData||b.frdProductData,frdProductDataSerializedJspb:b.frdProductDataSerializedJspb||b.frdProductDataSerializedJspb,helpCenterPath:b.helpCenterPath||b.helpCenterPath,locale:b.locale||b.locale||"en".replace(/-/g,"_"),nonce:b.nonce||b.nonce,productData:b.productData||b.productData,receiverUri:b.receiverUri|| b.receiverUri,renderApiUri:b.renderApiUri||b.renderApiUri,theme:b.theme||b.theme,window:b.window||b.window});return new RHa(a)},SHa=new ai($h,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js"); KHa(SHa,"help.service.Lazy.create").thenCatch(function(){});/* gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/ var bv=window,cv=document,UHa=bv.location,VHa=function(){},WHa=/\[native code\]/,dv=function(a,b,c){return a[b]=a[b]||c},XHa=function(a){a=a.sort(); for(var b=[],c=void 0,d=0;d0&&(b=bIa(b),c&&c.length>0&&(b+="___"+bIa(c)),b.length>28&&(b=b.substr(0,28)+(b.length-28)),c=b,b=dv(aIa,"_p",ev()),dv(b,c,ev())[a]=new Date().getTime(),b=jv.r,typeof b==="function"?b(a,"_p",c):b.push([a,"_p",c]))},bIa=function(a){return a.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var cIa=ev(),lv=[],mv=function(a){throw Error("Bad hint: "+a)}; lv.push(["jsl",function(a){for(var b in a)if(Object.prototype.hasOwnProperty.call(a,b)){var c=a[b];typeof c=="object"?iv[b]=dv(iv,b,[]).concat(c):dv(iv,b,c)}if(b=a.u)a=dv(iv,"us",[]),a.push(b),(b=/^https:(.*)$/.exec(b))&&a.push("http:"+b[1])}]); var dIa=/^(\/[a-zA-Z0-9_\-]+)+$/,eIa=[/\/amp\//,/\/amp$/,/^\/amp$/],fIa=/^[a-zA-Z0-9\-_\.,!]+$/,gIa=/^gapi\.loaded_[0-9]+$/,hIa=/^[a-zA-Z0-9,._-]+$/,lIa=function(a,b,c,d,e){var f=a.split(";"),h=f.shift(),m=cIa[h],p=null;m?p=m(f,b,c,d):mv("no hint processor for: "+h);p||mv("failed to generate load url");b=p;c=b.match(iIa);(d=b.match(jIa))&&d.length===1&&kIa.test(b)&&c&&c.length===1||mv("failed sanity: "+a);try{a="?";if(e&&e.length>0){c=b=0;for(d={};c";cv.write(tv?tv.createHTML(a):a)}},sIa=function(a){var b=cv.createElement(ov); b.setAttribute("src",tv?tv.createScriptURL(a):a);a=rIa();a!==null&&b.setAttribute("nonce",a);b.async="true";(a=cv.getElementsByTagName(ov)[0])?a.parentNode.insertBefore(b,a):(cv.head||cv.body||cv.documentElement).appendChild(b)},vIa=function(a,b,c){uIa(function(){var d=b===YHa()?dv(fv,"_",ev()):ev(); d=dv($Ha(b),"_",d);a(d)},c)},xIa=function(a,b){var c=b||{}; typeof b=="function"&&(c={},c.callback=b);var d=(b=c)&&b._c;if(d)for(var e=0;e0&&(q=bv.setTimeout(function(){t=!0;h()},f)); var A=qIa(a,u);if(A.length){A=qIa(a,m);var C=dv(iv,"CP",[]),I=C.length;C[I]=function(N){if(!N)return 0;kv("ml1",A,w);var L=function(W){C[I]=null;y(A,N)&&ZHa(function(){d&&d();W()})},R=function(){var W=C[I+1]; W&&W()}; I>0&&C[I-1]?C[I]=function(){L(R)}:L(R)}; if(A.length){var K="loaded_"+iv.I++;fv[K]=function(N){C[I](N);fv[K]=null}; a=lIa(c,A,"gapi."+K,m,v);m.push.apply(m,A);kv("ml0",A,w);b.sync||bv.___gapisync?tIa(a):sIa(a)}else C[I](VHa)}else y(A)&&d&&d()},yIa; var zIa=null,AIa=ua.trustedTypes;if(AIa&&AIa.createPolicy){try{zIa=AIa.createPolicy("goog#gapi",{createHTML:Saa,createScript:Saa,createScriptURL:Saa})}catch(a){ua.console&&ua.console.error(a.message)}yIa=zIa}else yIa=zIa;var tv=yIa,uIa=function(a,b){if(iv.hee&&iv.hel>0)try{return a()}catch(c){b&&b(c),iv.hel--,xIa("debug_error",function(){try{window.___jsl.hefn(c)}catch(d){throw c}})}else try{return a()}catch(c){throw b&&b(c),c; }},BIa=fv.load; BIa&&dv(iv,"ol",[]).push(BIa);fv.load=function(a,b){return uIa(function(){return xIa(a,b)})};var uv=function(a){var b="instance_";if(a.instance_&&a.hasOwnProperty(b))return a.instance_;b=new a;return a.instance_=b};var CIa=la(["data-"]);function DIa(a){a&&(a.dataset?a.dataset[EIa()]="true":nc([Ah(CIa)],a,"data-loaded","true".toString()))} function vv(a){return a?a.dataset?a.dataset[EIa()]:a.getAttribute("data-loaded"):null} var FIa={};function EIa(){return FIa.loaded||(FIa.loaded="loaded".replace(/\-([a-z])/g,function(a,b){return b.toUpperCase()}))} ;function GIa(a,b){b=b===void 0?{}:b;typeof b==="function"&&(b={callback:b});b._c&&b._c.jsl&&b._c.jsl.h||Zh(b,{_c:{jsl:{h:Vk("GAPI_HINT_PARAMS")}}});if(b.gapiHintOverride||Vk("GAPI_HINT_OVERRIDE")){var c=$k(document.location.href).gapi_jsh;c&&Zh(b,{_c:{jsl:{h:c}}})}xIa(a,b)} ;function wv(a,b,c){HIa(a,b,c===void 0?null:c)} function HIa(a,b,c){c=c===void 0?null:c;var d=IIa(typeof a==="string"?a:a.toString()),e=document.getElementById(d),f=e&&vv(e),h=e&&!f;f?b&&b():(b&&(f=Jqa(d,b),b=""+Ha(b),JIa[b]=f),h||(e=KIa(a,d,function(){vv(e)||(DIa(e),Lqa(d),dl(function(){Mqa(d)},0))},c)))} function KIa(a,b,c,d){d=d===void 0?null:d;var e=li("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);kc(e,typeof a==="string"?gv(a):a);a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e} function IIa(a){var b=document.createElement("a");Jb(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Pc(a)} var JIa={};function LIa(a,b){if(a===b)a=!0;else if(Array.isArray(a)&&Array.isArray(b))a=Ec(a,b,LIa);else if(Ga(a)&&Ga(b)){a:if(via(a).length!=via(b).length)a=!1;else{for(var c in a)if(!LIa(a[c],b[c])){a=!1;break a}a=!0}}else a=!1;return a} function MIa(a){var b=sa.apply(1,arguments);if(!xv(a)||b.some(function(d){return!xv(d)}))throw Error("Only objects may be merged."); b=l(b);for(var c=b.next();!c.done;c=b.next())NIa(a,c.value)} function NIa(a,b){for(var c in b)if(xv(b[c])){if(c in a&&!xv(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});NIa(a[c],b[c])}else if(OIa(b[c])){if(c in a&&!OIa(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);PIa(a[c],b[c])}else a[c]=b[c];return a} function PIa(a,b){b=l(b);for(var c=b.next();!c.done;c=b.next())c=c.value,xv(c)?a.push(NIa({},c)):OIa(c)?a.push(PIa([],c)):a.push(c);return a} function xv(a){return typeof a==="object"&&!Array.isArray(a)} function OIa(a){return typeof a==="object"&&Array.isArray(a)} ;var QIa=Date.now().toString();function RIa(a){if(window.crypto&&window.crypto.getRandomValues)try{var b=Array(a),c=new Uint8Array(a);window.crypto.getRandomValues(c);for(var d=0;daJa&&b.splice(0,b.length-aJa)} function dJa(a){a=a||"";var b=eJa();if(b[a])return b[a];var c={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};cJa(c);return b[a]=c} function fJa(a){a=a||"";var b=eJa();b[a]&&delete b[a];var c={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};cJa(c);b[a]=c} function eJa(){var a=xa("ytcsi.reference");if(a)return a;bJa();return xa("ytcsi.reference")} ;var Hv={},gJa=(Hv["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",Hv["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",Hv["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",Hv["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",Hv["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",Hv["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",Hv["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", Hv["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",Hv["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",Hv["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",Hv["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",Hv["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",Hv["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",Hv["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",Hv["asset.potential_embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POTENTIAL_EMBEDS", Hv["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY",Hv["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",Hv["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",Hv["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",Hv["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",Hv["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",Hv["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS", Hv["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA",Hv["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",Hv.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",Hv["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",Hv.channel_appeal="LATENCY_ACTION_CREATOR_CHANNEL_APPEAL",Hv["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",Hv["channel.content"]="LATENCY_ACTION_CREATOR_CONTENT",Hv["channel.content.posts"]="LATENCY_ACTION_CREATOR_POST_LIST", Hv["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",Hv["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",Hv["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",Hv["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",Hv["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",Hv["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",Hv["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",Hv["channel.translations"]= "LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",Hv["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",Hv["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",Hv["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",Hv["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",Hv["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",Hv.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",Hv["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST", Hv["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",Hv["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",Hv["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",Hv["owner.asset_groups"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",Hv["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",Hv["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",Hv["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",Hv["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",Hv["owner.claimed_videos"]= "LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",Hv["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",Hv["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",Hv["owner.delivery"]="LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",Hv["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",Hv["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",Hv["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",Hv["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC", Hv["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",Hv["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",Hv["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",Hv["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS",Hv["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",Hv["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",Hv["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",Hv["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",Hv["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS", Hv["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",Hv["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",Hv["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",Hv["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",Hv["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",Hv["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",Hv["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",Hv["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING", Hv["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",Hv["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",Hv["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",Hv["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",Hv),Iv={},hJa=(Iv.auto_search="LATENCY_ACTION_AUTO_SEARCH",Iv.ad_to_ad="LATENCY_ACTION_AD_TO_AD",Iv.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",Iv.app_startup="LATENCY_ACTION_APP_STARTUP",Iv.browse="LATENCY_ACTION_BROWSE",Iv.cast_splash= "LATENCY_ACTION_CAST_SPLASH",Iv.call_to_cast="LATENCY_ACTION_CALL_TO_CAST",Iv.channel_activity="LATENCY_ACTION_FAMILY_CENTER_CHANNEL_ACTIVITY",Iv.channels="LATENCY_ACTION_CHANNELS",Iv.chips="LATENCY_ACTION_CHIPS",Iv.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",Iv.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",Iv.editor="LATENCY_ACTION_EDITOR",Iv.embed="LATENCY_ACTION_EMBED",Iv.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",Iv.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF", Iv.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",Iv.explore="LATENCY_ACTION_EXPLORE",Iv.favorites="LATENCY_ACTION_FAVORITES",Iv.home="LATENCY_ACTION_HOME",Iv.inboarding="LATENCY_ACTION_INBOARDING",Iv.landing="LATENCY_ACTION_LANDING",Iv.learning="LATENCY_ACTION_LEARNING",Iv.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",Iv.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",Iv.library="LATENCY_ACTION_LIBRARY",Iv.live="LATENCY_ACTION_LIVE", Iv.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",Iv.management="LATENCY_ACTION_MANAGEMENT",Iv.mini_app="LATENCY_ACTION_MINI_APP_PLAY",Iv.notification_settings="LATENCY_ACTION_FAMILY_CENTER_NOTIFICATION_SETTINGS",Iv.onboarding="LATENCY_ACTION_ONBOARDING",Iv.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",Iv.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",Iv.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",Iv.player_att="LATENCY_ACTION_PLAYER_ATTESTATION", Iv.prebuffer="LATENCY_ACTION_PREBUFFER",Iv.prefetch="LATENCY_ACTION_PREFETCH",Iv.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",Iv.profile_switcher="LATENCY_ACTION_LOGIN",Iv.projects="LATENCY_ACTION_PROJECTS",Iv.reel_watch="LATENCY_ACTION_REEL_WATCH",Iv.results="LATENCY_ACTION_RESULTS",Iv.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",Iv.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",Iv.premium_lite_upsell="LATENCY_ACTION_PREMIUM_LITE_UPSELL",Iv.privacy_policy="LATENCY_ACTION_FAMILY_CENTER_PRIVACY_POLICY", Iv.review="LATENCY_ACTION_REVIEW",Iv.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",Iv.search_ui="LATENCY_ACTION_SEARCH_UI",Iv.search_suggest="LATENCY_ACTION_SUGGEST",Iv.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",Iv.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",Iv.switchplan="LATENCY_ACTION_UNPLUGGED_SWITCH_PLAN",Iv.seek="LATENCY_ACTION_PLAYER_SEEK",Iv.settings="LATENCY_ACTION_SETTINGS",Iv.store="LATENCY_ACTION_STORE",Iv.supervision_dashboard="LATENCY_ACTION_FAMILY_CENTER_SUPERVISION_DASHBOARD", Iv.bedtime_reminder_settings="LATENCY_ACTION_FAMILY_CENTER_BEDTIME_REMINDER_SETTINGS",Iv.break_reminder_settings="LATENCY_ACTION_FAMILY_CENTER_BREAK_REMINDER_SETTINGS",Iv.supervision_settings_dashboard="LATENCY_ACTION_FAMILY_CENTER_SUPERVISION_SETTINGS_DASHBOARD",Iv.time_management="LATENCY_ACTION_FAMILY_CENTER_TIME_MANAGEMENT",Iv.update_profile="LATENCY_ACTION_FAMILY_CENTER_UPDATE_PROFILE",Iv.viewing_permissions="LATENCY_ACTION_FAMILY_CENTER_VIEWING_PERMISSIONS",Iv.shorts_settings="LATENCY_ACTION_FAMILY_CENTER_SHORTS_SETTINGS", Iv.privacy_settings="LATENCY_ACTION_FAMILY_CENTER_PRIVACY_SETTINGS",Iv.tenx="LATENCY_ACTION_TENX",Iv.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",Iv.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",Iv.watch="LATENCY_ACTION_WATCH",Iv.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",Iv["watch,watch7"]="LATENCY_ACTION_WATCH",Iv["watch,watch7_html5"]="LATENCY_ACTION_WATCH",Iv["watch,watch7ad"]="LATENCY_ACTION_WATCH",Iv["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",Iv.wn_comments="LATENCY_ACTION_LOAD_COMMENTS", Iv.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",Iv.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",Iv.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",Iv.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",Iv.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",Iv.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",Iv.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",Iv);Object.assign(hJa,gJa);var iJa=function(a,b){Om.call(this,1,arguments);this.timer=b}; k(iJa,Om);var jJa=new Pm("aft-recorded",iJa);var kJa=ua.ytLoggingGelSequenceIdObj_||{};va("ytLoggingGelSequenceIdObj_",kJa);function lJa(a,b,c){c=c===void 0?{}:c;var d=!1;Vk("ytLoggingEventsDefaultDisabled",!1)&&(d=!0);d=d?null:gn;c=c===void 0?{}:c;var e=Math.round(c.timestamp||im());eg(b,1,e6E4&&delete Jv[e];a&&(a.cleanupJob=0)},5E3)); return c.count>5?(c.count===6&&Math.random()*1E5<1&&(c=new Dl("CSI data exceeded logging limit with key",b.split("_")),b.indexOf("plev")>=0||fo(c)),!0):!1};var Mv=window,nJa=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}},Nv=Mv.performance||Mv.mozPerformance||Mv.msPerformance||Mv.webkitPerformance||new nJa;var oJa,Ov=ua.ytLoggingDocDocumentNonce_;Ov||(Ov=yv(16),va("ytLoggingDocDocumentNonce_",Ov));oJa=Ov;var pJa={DEFAULT:0,CHAT:1,CONVERSATIONS:2,MINIPLAYER:3,DIALOG:4,VOZ:5,MUSIC_WATCH_TABS:6,SHARE:7,PUSH_NOTIFICATIONS:8,RICH_GRID_WATCH:9,PICTURE_IN_PICTURE:10,MEDIA_CLIENT:11,0:"DEFAULT",1:"CHAT",2:"CONVERSATIONS",3:"MINIPLAYER",4:"DIALOG",5:"VOZ",6:"MUSIC_WATCH_TABS",7:"SHARE",8:"PUSH_NOTIFICATIONS",9:"RICH_GRID_WATCH",10:"PICTURE_IN_PICTURE",11:"MEDIA_CLIENT"};var qJa=1,Pv=function(a){this.veData=a},Qv=function(a){return new Pv({trackingParams:a})},Rv=function(a,b,c,d,e,f){var h=qJa++; return new Pv({veType:a,veCounter:h,elementIndex:c,dataElement:b,youtubeData:d,jspbYoutubeData:e,loggingDirectives:f})}; g=Pv.prototype; g.getAsJson=function(){var a={};this.veData.trackingParams!==void 0?a.trackingParams=this.veData.trackingParams:(a.veType=this.veData.veType,this.veData.veCounter!==void 0&&(a.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(a.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(a.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(a.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(a.isCounterfactual=!0); return a}; g.getAsJspb=function(){var a=new nna;this.veData.trackingParams!==void 0?a.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&dg(a,2,this.veData.veType),this.veData.veCounter!==void 0&&dg(a,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&dg(a,3,this.veData.elementIndex),this.veData.isCounterfactual&&bg(a,5,!0));if(this.veData.dataElement!==void 0){var b=this.veData.dataElement.getAsJspb();Gf(a,7,b)}this.veData.youtubeData!==void 0&&Gf(a,8,this.veData.jspbYoutubeData); return a}; g.toString=function(){return JSON.stringify(this.getAsJson())}; g.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType}; g.getLoggingDirectives=function(){return this.veData.loggingDirectives};function rJa(a){return Vk("client-screen-nonce-store",{})[a===void 0?0:a]} function sJa(a,b){b=b===void 0?0:b;var c=Vk("client-screen-nonce-store");c||(c={},Uk("client-screen-nonce-store",c));c[b]=a} function tJa(a){a=a===void 0?0:a;return a===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+a} function uJa(a){return Vk(tJa(a===void 0?0:a))} va("yt_logging_screen.getRootVeType",uJa);function Sv(a){return(a=uJa(a===void 0?0:a))?new Pv({veType:a,youtubeData:void 0,jspbYoutubeData:void 0}):null} function vJa(){var a=Vk("csn-to-ctt-auth-info");a||(a={},Uk("csn-to-ctt-auth-info",a));return a} function wJa(){return Object.values(Vk("client-screen-nonce-store",{})).filter(function(a){return a!==void 0})} function Tv(a){a=rJa(a===void 0?0:a);if(!a&&!Vk("USE_CSN_FALLBACK",!0))return null;a||(a="UNDEFINED_CSN");return a?a:null} va("yt_logging_screen.getCurrentCsn",Tv);function xJa(a){for(var b=l(Object.values(pJa)),c=b.next();!c.done;c=b.next())if(Tv(c.value)===a)return!0;return!1} function yJa(a,b,c){var d=vJa();(c=Tv(c))&&delete d[c];b&&(d[a]=b)} function Uv(a){return vJa()[a]} va("yt_logging_screen.getCttAuthInfo",Uv);function Vv(a,b,c,d){c=c===void 0?0:c;if(a!==rJa(c)||b!==Vk(tJa(c)))if(yJa(a,d,c),sJa(a,c),Uk(tJa(c),b),b=function(){setTimeout(function(){a&&ao("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:oJa,clientScreenNonce:a})},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(b)}catch(e){b()}else b()} va("yt_logging_screen.setCurrentScreen",Vv);var zJa=!1,AJa=!1,BJa=Ia(Nv.clearResourceTimings||Nv.webkitClearResourceTimings||Nv.mozClearResourceTimings||Nv.msClearResourceTimings||Nv.oClearResourceTimings||xh,Nv);function CJa(a,b){DJa("_start",a,b)} function EJa(a,b){if(!x("web_csi_action_sampling_enabled")||!Fv(b).actionDisabled){var c=dJa(b||"");MIa(c.info,a);if(a.loadType){c=a.loadType;var d=Fv(b);d.metadata||(d.metadata={});d.metadata.loadType=c}c=$Ia(b);c.gelInfos||(c.gelInfos={});MIa(c.gelInfos,a);c=Gv(b);b=Fv(b).cttAuthInfo;mJa().info(a,c,b)}} function FJa(){var a,b,c,d;return((d=Fn().resolve(Cn(Lm))==null?void 0:(a=Mm())==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 DJa(a,b,c){if(!x("web_csi_action_sampling_enabled")||!Fv(c).actionDisabled){var d=Gv(c),e;if(e=x("web_csi_debug_sample_enabled")&&d){(Fn().resolve(Cn(Lm))==null?0:Mm())&&!AJa&&(AJa=!0,DJa("gcfl",im(),c));var f,h,m;e=(Fn().resolve(Cn(Lm))==null?void 0:(f=Mm())==null?void 0:(h=f.loggingHotConfig)==null?void 0:(m=h.csiConfig)==null?void 0:m.debugSampleWeight)||0;if(f=e!==0)b:{f=FJa();if(f.length>0)for(h=0;h0?d:void 0;try{Nv.mark(a,c)}catch(e){Nv.mark(a)}}} function IJa(){var a,b=(a=Nv.getEntriesByType)==null?void 0:a.call(Nv,"mark");b&&b.forEach(function(c){if(c.name.startsWith("mark_")){var d;(d=Nv.clearMarks)==null||d.call(Nv,c.name)}})} function JJa(a){var b={},c=function(f,h,m){h=h.match("_rid")?h.split("_rid")[0]:h;typeof m==="number"&&(m=JSON.stringify(m));f.requestIds?f.requestIds.push({endpoint:h,id:m}):f.requestIds=[{endpoint:h,id:m}]}; a=l(Object.entries(a));for(var d=a.next();!d.done;d=a.next()){var e=l(d.value);d=e.next().value;e=e.next().value;switch(d){case"GetBrowse_rid":c(b,d,e);break;case"GetGuide_rid":c(b,d,e);break;case"GetHome_rid":c(b,d,e);break;case"GetPlayer_rid":c(b,d,e);break;case"GetSearch_rid":c(b,d,e);break;case"GetSettings_rid":c(b,d,e);break;case"GetTrending_rid":c(b,d,e);break;case"GetWatchNext_rid":c(b,d,e);break;case"yt_red":b.isRedSubscriber=!!e;break;case"yt_ad":b.isMonetized=!!e;}}return b} function KJa(a,b){va("ytglobal.timing"+(b||"")+"ready_",a)} function HJa(a,b){if(a=ZIa(b)[a])return typeof a==="number"?a:a[a.length-1]} ;function LJa(a){YIa(a);BJa();IJa();a||(Vk("TIMING_ACTION")&&Uk("PREVIOUS_ACTION",Vk("TIMING_ACTION")),Uk("TIMING_ACTION",""))} function MJa(){var a=a===void 0?{}:a;Wk(function(){Wv();fJa();LJa();KJa(!1);a.cttAuthInfo&&(Fv().cttAuthInfo=a.cttAuthInfo);Uk("TIMING_AFT_KEYS",[]);a.isHot?Xv({loadType:"hot"}):Xv({loadType:"warm"});Uk("TIMING_ACTION","");delete Vk("TIMING_INFO",{}).yt_lt;Wk(CJa)(a.startTime,void 0)})()} function Yv(a){var b=b===void 0?{}:b;Wk(function(){Zv(a);var c=b.sampleRate;if(!x("web_csi_action_sampling_enabled")||c===void 0||c<=1)c=!1;else{var d=Gv(a);c=XIa(d)%c!==0}c&&(Fv(a).actionDisabled=!0);dJa(a||"").info.actionType=a;b.cttAuthInfo&&(Fv(a).cttAuthInfo=b.cttAuthInfo);Uk(a+"TIMING_ACTION",a);Wk(CJa)(b.startTime,a);c={actionType:hJa[a]||"LATENCY_ACTION_UNKNOWN"};b.logPreviousAction&&(c.previousAction=hJa[Vk("TIMING_ACTION")]||"LATENCY_ACTION_UNKNOWN");(d=Tv())&&d!=="UNDEFINED_CSN"&&(c.clientScreenNonce= d);Xv(c,a);KJa(!0,a)})()} function Zv(a){Wk(function(){Wv(a);fJa(a);LJa(a)})()} function NJa(){Wk(function(){var a=[],b;for(b in xa("ytcsi.".slice(0,-1)))b.endsWith("data_")&&a.push(b.slice(0,-5));a=l(a);for(b=a.next();!b.done;b=a.next())Zv(b.value);Wv()})()} function OJa(a){return Wk(function(){return $v("_start",a)})()} function Xv(a,b,c){Wk(EJa)(a,b,c===void 0?!1:c)} function aw(a,b,c){return Wk(DJa)(a,b,c)} function $v(a,b){return Wk(function(){var c=ZIa(b);return a in c})()} function PJa(a){if(!x("universal_csi_network_ticks"))return"";a=Uc(a)||"";for(var b=Object.keys(apa),c=0;c=0;y--)w.push(e[y],y);y=Array(v);for(var A=Array(v),C=Array(v),I=Array(v),K=Array(b?0:v),N={i$jscomp$612:0};N.i$jscomp$6120&&(e.pop()(),b.pop(),f=!1);for(var p=Array(m.length),q={i$jscomp$613:0};q.i$jscomp$613m.length;)b.pop(),e.pop()(),c.pop();m.length===0&&!f&&a.fallback&&(q=ow(function(){p[0]=Dq(a.fallback())}),e[0]=q,f=!0); return d=p},{debugName:(h=a.debugInstance)!=null?h:"nsTGHd", isControlFlowComponent:!0})} function sKa(a){a=a.each();return Array.isArray(a)?a:Array.from(a)} function ow(a){var b=Eo();return Ap(function(c){var d=Jo(gp);try{c.parent=b,a(c)}finally{Jo(d)}},!1)} ;function P(a){return tKa(a)} function tKa(a){if(a.cond===void 0){var b;return(b=a.else)==null?void 0:b.call(a)}if(typeof a.cond!=="function"){b=a.then;var c=a.else,d=a.cond;return d?b(d):c==null?void 0:c()}var e=a.cond,f=Vo(function(){return!!e()},void 0,"Ljylkc"),h=uKa(e); return yq(function(){var m=f(),p;Ap(function(){var q=Jo(gp);try{var t;p=Dq(m?a.then(h):(t=a.else)==null?void 0:t.call(a))}finally{Jo(q)}},!0); return p},{debugName:(c=a.debugInstance)!=null?c:"RlDudd", debugFn:a.then,isControlFlowComponent:!0})} function uKa(a){return function(){var b=a();if(!b){var c;(c=Uo.handleError)==null||c.call.apply(c,[Uo].concat(ia(Ep(Error("The component's narrowed signal unexpectedly became falsy.")))))}return b}} ;function pw(a){return vKa(a)} function vKa(a){var b=wKa(a),c=Vo(function(){return xKa(b)},void 0,"H4YdAf"),d; return yq(function(){var e=c(),f;Ap(function(){var h=Jo(gp);try{f=Dq(e())}finally{Jo(h)}}); return f},{debugName:(d=a.debugInstance)!=null?d:"vI1rtf", isControlFlowComponent:!0})} function wKa(a){a=a.children;return Array.isArray(a)?a:[a]} function yKa(a){var b=a.props;a=a.children[0];return b.when?{when:b.when,children:a}:{isDefault:!0,children:a}} function xKa(a){var b=function(){return null}; a=l(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c!=null&&c[Xo]&&(c=c.type===kw?{isDefault:!0,children:c.children[0]}:{when:c.props.when,children:c.children[0]}),c instanceof Yo&&(c=yKa(c)),c.isDefault)b=c.children;else if(Bp(c.when))return c.children;return b} ;function zKa(a){var b=null,c,d={get value(){var f,h;(h=(f=e).validateGetValue)==null||h.call(f);return e.__value},set value(f){var h,m;(m=(h=e).validateSetValue)==null||m.call(h,f);e.__value=f;e.__hasBeenSet=!0}},e=(d.__value=null,d.__hasBeenSet=!1,d.__hasErrored=!1,d.onRender=function(f){if(c&&f!==c){c._disposeRef=void 0;var h;(h=b)==null||h()}c=f;b=a(f)||null},d.onUnmount=function(){var f; (f=b)==null||f();b=e.value=null},d[Ota]=!0,d); return e} ;function AKa(a){var b=qwa();if(b==null)throw Error("A valid hook context was not found. Please ensure you are using components from TSX and not invoking the component function directly. See go/cow-dev-guide/idom/hooks#only-call-hooks-in-rendering-scope.");var c=b.hookCounter++;b.hooks||(b.hooks=[]);var d=b.hooks;d[c]||(d[c]={key:a,host:b});if(a!==d[c].key){if(b.__type){var e;a=(e=b.__type)==null?void 0:e.name}else a=b instanceof Gq?cp(b.functionComponent):"<"+b.el.tagName.toLowerCase()+">";throw Error("Hook called out of order in "+ a+". Hooks must be invoked unconditionally and in the same order every render. This could happen if you conditionally invoke a hook. See go/cow-dev-guide/idom/hooks#hooks-must-be-called-unconditionally.")}return d[c]} function BKa(a,b){return!a||a.length!==(b==null?void 0:b.length)||a.some(function(c,d){return c!==b[d]})} ;function CKa(a,b){var c=AKa("onChange"),d=qwa();BKa(c.deps,b)&&(c.deps=b,c.pendingEffect=a,d.__syncEffects||(d.__syncEffects=[]),d.__syncEffects.push(c))} ;Sva=twa;var DKa=Symbol("reactiveParentSymbol");function EKa(a,b,c){c!=null||(c={});var d=c;c=d.appContext;var e=!!Uo.legacyTriggerSoyRendererEvents;b=FKa(a,b,c,d.allowNestedRender);e&&dwa(a,c);kwa.log(a,!0);return b} function FKa(a,b,c,d){var e=ep(function(){var f=Jo(gp),h=function(){var p=dta(ci(a)),q;var t=mKa({rootElement:{value:a},appContext:c||(p==null?void 0:(q=p.getOptionalAppContext)==null?void 0:q.call(p)),dispatcher:p});t=Ao(t);p=oq(!0);jp++;try{Aq(b(),a),rp(!1)}catch(u){throw rp(!0),u}finally{oq(p),Ao(t)}}; try{if(d===oKa)var m=Ap(h,!1);else{if(zo)throw fp(Error("The rootOwner function was unnecessarily called within an ownership context. See go/cow-error/rootowner-called-with-a-parent for more information."));m=Ap(h,!1)}return m}catch(p){throw fp(p),p}finally{Jo(f)}}); a[DKa]=!0;return function(){a.textContent="";e();a[DKa]=!1}} function qw(a){if(Kta(Fo)){var b;(b=Uo.handleError)==null||b.call.apply(b,[Uo].concat(ia(Ep(Error("onInit cannot be called inside an effect. See go/cow-error/oninit-called-inside-an-effect for more information.")))))}var c=zo,d=bp;sua({onInitType:iua,run:function(){if(c&&!c.isDisposed){var e=Ao(c);try{ep(function(){var f=a();typeof f==="function"&&zp(f)},d)}catch(f){fp(f),sp(f)}finally{Ao(e)}}}})} ;function rw(a){dp()?qw(function(){return So(a)}):CKa(function(){return So(a)},[])} (function(a){var b={},c;for(c in a)b={prev$jscomp$24:void 0,next$jscomp$32:void 0},b.prev$jscomp$24=Eq[c],b.next$jscomp$32=a[c],Eq[c]=function(d){return function(){var e=sa.apply(0,arguments);d.prev$jscomp$24.apply(null,ia(e));d.next$jscomp$32.apply(null,ia(e))}}(b)})({beforeRender:function(a){var b=Ao(a.effectOwner); try{var c;((c=a.__syncEffects)==null?0:c.length)&&GKa(a.__syncEffects)}finally{Ao(b)}}, didPatch:function(a){var b=Ao(a.effectOwner);try{var c;((c=a.__syncEffects)==null?0:c.length)&&GKa(a.__syncEffects)}finally{Ao(b)}}, didUnmount:function(a){var b;((b=a.hooks)==null?0:b.length)&&a.hooks.forEach(HKa)}}); function GKa(a){var b=[].concat(ia(a));a.length=0;a=l(b);for(b=a.next();!b.done;b=a.next()){b=b.value;HKa(b);var c=b.pendingEffect;b.pendingEffect=null;if(c=c==null?void 0:c())b.pendingCleanup=c}} function HKa(a){var b=a.pendingCleanup;a.pendingCleanup=null;b==null||b()} ;var IKa=Symbol("unknown_html_element");function JKa(a,b){if(dp())return a();var c=AKa("useMemoInternal");BKa(c.deps,b)&&(c.deps=b,c.value=a());return c.value} ;function sw(a,b){return KKa(a,!1,b)} function tw(a,b){return KKa(a,!0,b)} function KKa(a,b,c){return dp()?LKa(a,b,c):MKa(a,b,c)} function MKa(a,b,c){return JKa(function(){return LKa(a,b,c)},[])} function LKa(a,b,c){var d=zo,e=zKa(function(f){e.value=f;var h=function(){var m=Jo(null);try{return c==null?void 0:c(f)}catch(p){sp(p,d)}finally{Jo(m)}}(); return function(){h==null||h()}}); e.__expectedTagName=a;e.__optional=b;e.isIdom=!dp();return e} ;function NKa(a){var b=Eo(),c=bp;return{getFn:function(){return function(d){if(!b.isDisposed){var e=function(){return a(d)}; try{var f;var h=(f=ep(function(){return So(e)},c))!=null?f:!1}catch(m){sp(m,b)}h!==!0&&d.stopPropagation()}}}}} ;var uw=new Bn("VISIBILITY_OBSERVER");function vw(a){var b=Eo();return function(c){var d,e=(d=a.observer)!=null?d:Fn().resolve(uw);d=OKa(c);var f=[];a.showOption&&f.push(e.observe(c,function(){Cp(b,function(){a.visibilityCallback(!0,c)})},a.showOption)); a.hideOption&&f.push(e.observe(c,function(){Cp(b,function(){a.visibilityCallback(!1,c)})},a.hideOption)); a.prescanOption&&a.prescanCallback&&f.push(e.observe(c,function(){Cp(b,function(){a.prescanCallback()})},a.prescanOption)); var h;d.visibilityMonitorKeys=((h=d.visibilityMonitorKeys)!=null?h:[]).concat(f)}} function OKa(a){var b;return(b=a.polymerController)!=null?b:a} ;var PKa=function(a){this.cellValue=a};var QKa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(QKa,Ig);var ww=[1,2,3];var RKa=[0,ww,jh,bha,fha];var SKa=[0,kh,[0,Wg,Yg]];var TKa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(TKa,Ig);var UKa=[1,2,3];var VKa=[0,UKa,$ga,Wga,mh,SKa];var WKa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(WKa,Ig);var XKa=[0,kh,RKa,VKa];var YKa=[0,hh];var ZKa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(ZKa,Ig);var $Ka=[0,hh,-1,fh];var aLa=[0,hh,-1,ah,fh];var bLa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(bLa,Ig);var cLa=[1,2,3];var dLa=[0,cLa,mh,$Ka,mh,aLa,mh,YKa];var eLa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(eLa,Ig);eLa.prototype.JSC$7862_serializeBinary=th([0,hh,dLa,gha,kh,XKa,dha,eha]);var fLa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(fLa,Ig);var iLa=function(a){var b=new eLa;b=fg(b,1,a.JSC$7872_metricName);var c=gLa(a);b=sfa(b,3,c,Cea);c=[];for(var d=[],e=l(a.cellMap.keys()),f=e.next();!f.done;f=e.next())d.push(f.value.split(","));for(e=0;e0&&a2147483647?-1:ua.setTimeout(a,b||0)};var Cw=function(a){Ji.call(this);this.streamzLogger=a;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$7886_flushTimer=new Aw(this.flushInterval);this.JSC$7886_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);Ki(this,this.JSC$7886_flushTimer)}; k(Cw,Ji);Cw.prototype.sendIsolatedPayload=function(a){this.shouldSendIsolatedPayload=a;this.invocationLimit=1}; var jLa=function(a){a.JSC$7886_flushTimer.enabled||a.JSC$7886_flushTimer.start();a.invocationCount++;a.invocationCount>=a.invocationLimit&&a.snapshotAndFlush()}; Cw.prototype.snapshotAndFlush=function(){var a=this.metricMap.values();a=[].concat(ia(a)).filter(function(b){return b.cellMap.size}); a.length&&this.streamzLogger.flush(a,this.shouldSendIsolatedPayload);kLa(a);this.invocationCount=0;this.JSC$7886_flushTimer.enabled&&this.JSC$7886_flushTimer.stop()}; Cw.prototype.addNewCounter=function(a){var b=sa.apply(1,arguments);this.metricMap.has(a)||this.metricMap.set(a,new yw(a,b))}; Cw.prototype.addNewEventMetric=function(a){var b=sa.apply(1,arguments);this.metricMap.has(a)||this.metricMap.set(a,new zw(a,b))}; var lLa=function(a,b){return a.disabledMetrics.has(b)?void 0:a.metricMap.get(b)}; Cw.prototype.JSC$7886_incrementCounter=function(a){this.JSC$7886_incrementCounterBy(a,1,sa.apply(1,arguments))}; Cw.prototype.JSC$7886_incrementCounterBy=function(a,b){var c=sa.apply(2,arguments),d=lLa(this,a);d&&d instanceof yw&&(d.JSC$7875_incrementCounterBy(b,c),jLa(this))}; Cw.prototype.JSC$7886_record=function(a,b){var c=sa.apply(2,arguments),d=lLa(this,a);d&&d instanceof zw&&(d.JSC$7878_record(b,c),jLa(this))}; var kLa=function(a){for(var b=0;b>16,a>>8&255,a&255]} function GLa(a,b,c){a=Number(a);b=Number(b);c=Number(c);if(a!=(a&255)||b!=(b&255)||c!=(c&255))throw Error("\"("+a+","+b+","+c+"\") is not a valid RGB color");b=a<<16|b<<8|c;return a<16?"#"+(16777216|b).toString(16).slice(1):"#"+b.toString(16)} var ELa=/^#(?:[0-9a-f]{3}){1,2}$/i,JLa=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i;function FLa(a){var b=a.match(JLa);if(b){a=Number(b[1]);var c=Number(b[2]);b=Number(b[3]);if(a>=0&&a<=255&&c>=0&&c<=255&&b>=0&&b<=255)return[a,c,b]}return[]} ;function Hw(a,b){this.JSC$7901_map_={};this.JSC$7901_keys_=[];this.version_=this.size=0;var c=arguments.length;if(c>1){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d2*this.size&&Iw(this),!0):!1}; var Iw=function(a){if(a.size!=a.JSC$7901_keys_.length){for(var b=0,c=0;b=d.JSC$7901_keys_.length)return hj;var f=d.JSC$7901_keys_[b++];return ij(a?f:d.JSC$7901_map_[f])}; return e}; var Jw=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};function LLa(){this.maxCount_=100;this.JSC$7904_map_=new Hw;this.JSC$7904_head_=new MLa("");this.JSC$7904_head_.next=this.JSC$7904_head_.prev=this.JSC$7904_head_} var NLa=function(a,b){if(b=a.JSC$7904_map_.get(b))b.remove(),a.insert_(b);return b}; g=LLa.prototype;g.get=function(a,b){return(a=NLa(this,a))?a.value:b}; g.set=function(a,b){var c=NLa(this,a);c?c.value=b:(c=new MLa(a,b),this.JSC$7904_map_.set(a,c),this.insert_(c))}; g.peek=function(){return this.JSC$7904_head_.next.value}; g.shift=function(){return OLa(this,this.JSC$7904_head_.next)}; g.pop=function(){return OLa(this,this.JSC$7904_head_.prev)}; g.remove=function(a){return(a=this.JSC$7904_map_.get(a))?(this.removeNode(a),!0):!1}; g.removeNode=function(a){a.remove();this.JSC$7904_map_.remove(a.key)}; g.isEmpty=function(){return this.JSC$7904_map_.isEmpty()}; g.getKeys=function(){return this.map(function(a,b){return b})}; g.getValues=function(){return this.map(function(a){return a})}; g.contains=function(a){return this.some(function(b){return b==a})}; g.clear=function(){for(;this.JSC$7904_map_.size>0;)this.removeNode(this.JSC$7904_head_.prev)}; g.forEach=function(a,b){for(var c=this.JSC$7904_head_.next;c!=this.JSC$7904_head_;c=c.next)a.call(b,c.value,c.key,this)}; g.map=function(a,b){for(var c=[],d=this.JSC$7904_head_.next;d!=this.JSC$7904_head_;d=d.next)c.push(a.call(b,d.value,d.key,this));return c}; g.some=function(a,b){for(var c=this.JSC$7904_head_.next;c!=this.JSC$7904_head_;c=c.next)if(a.call(b,c.value,c.key,this))return!0;return!1}; g.every=function(a,b){for(var c=this.JSC$7904_head_.next;c!=this.JSC$7904_head_;c=c.next)if(!a.call(b,c.value,c.key,this))return!1;return!0}; g.insert_=function(a){a.next=this.JSC$7904_head_.next;a.prev=this.JSC$7904_head_;this.JSC$7904_head_.next=a;a.next.prev=a;if(this.maxCount_!=null)for(a=this.maxCount_;this.JSC$7904_map_.size>a;)this.removeNode(this.JSC$7904_head_.prev)}; var OLa=function(a,b){a.JSC$7904_head_!=b&&a.removeNode(b);return b.value},MLa=function(a,b){this.key=a; this.value=b}; MLa.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};function PLa(){} Da(PLa);PLa.prototype.nextId_=0;var Kw=function(){return":"+(QLa.nextId_++).toString(36)};/* Copyright (c) 2015 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */ if(!window.polymerSkipLoadingFontRoboto)for(var RLa=l(["https://fonts.googleapis.com/css?family=Roboto:400,300,300italic,400italic,500,500italic,700,700italic","https://fonts.googleapis.com/css?family=Roboto+Mono:400,700"]),SLa=RLa.next();!SLa.done;SLa=RLa.next()){var TLa=SLa.value,ULa=document.createElement("link");ULa.rel="stylesheet";ULa.href=TLa;document.head.appendChild(ULa)};var VLa={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"},WLa={8:"backspace",9:"tab",13:"enter",27:"esc",33:"pageup",34:"pagedown",35:"end",36:"home",32:"space",37:"left",38:"up",39:"right",40:"down",46:"del",106:"*"},XLa={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"},YLa=/[a-z0-9*]/,ZLa=/U\+/,$La=/^arrow/,aMa=/^space(bar)?/,bMa=/^escape$/; function cMa(a,b){var c="";if(a)if(a=a.toLowerCase(),a===" "||aMa.test(a))c="space";else if(bMa.test(a))c="esc";else if(a.length==1){if(!b||YLa.test(a))c=a}else c=$La.test(a)?a.replace("arrow",""):a=="multiply"?"*":a;return c} function dMa(a,b){var c=a.hasModifiers;if(b.key)c=cMa(b.key,c);else if(b.detail&&b.detail.key)c=cMa(b.detail.key,c);else{c=b.keyIdentifier;var d="";c&&(c in VLa?d=VLa[c]:ZLa.test(c)?(c=parseInt(c.replace("U+","0x"),16),d=String.fromCharCode(c).toLowerCase()):d=c.toLowerCase());(c=d)||(c=b.keyCode,d="",Number(c)&&(c>=65&&c<=90?d=String.fromCharCode(32+c):c>=112&&c<=123?d="f"+(c-112+1):c>=48&&c<=57?d=String(c-48):c>=96&&c<=105?d=String(c-96):d=WLa[c]),c=d);c=c||""}return c===a.key&&(!a.hasModifiers|| !!b.shiftKey===!!a.shiftKey&&!!b.ctrlKey===!!a.ctrlKey&&!!b.altKey===!!a.altKey&&!!b.metaKey===!!a.metaKey)} function eMa(a){return a.length===1?{combo:a,key:a,event:"keydown"}:a.split("+").reduce(function(b,c){var d=c.split(":");c=d[0];d=d[1];c in XLa?(b[XLa[c]]=!0,b.hasModifiers=!0):(b.key=c,b.event=d||"keydown");return b},{combo:a.split(":").shift()})} function fMa(a){return a.trim().split(" ").map(function(b){return eMa(b)})} var Lw={properties:{keyEventTarget:{type:Object,value:function(){return this}}, stopKeyboardEventPropagation:{type:Boolean,value:!1},_boundKeyHandlers:{type:Array,value:function(){return[]}}, _imperativeKeyBindings:{type:Object,value:function(){return{}}}}, observers:["_resetKeyEventListeners(keyEventTarget, _boundKeyHandlers)"],keyBindings:{},registered:function(){this._prepKeyBindings()}, attached:function(){this._listenKeyEventListeners()}, detached:function(){this._unlistenKeyEventListeners()}, addOwnKeyBinding:function(a,b){this._imperativeKeyBindings[a]=b;this._prepKeyBindings();this._resetKeyEventListeners()}, removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()}, keyboardEventMatchesKeys:function(a,b){b=fMa(b);for(var c=0;c0&&(this.selectedValues=this.selectedItems.map(function(a){return this._indexToValue(this.indexOf(a))},this).filter(function(a){return a!=null},this)):Fs._updateAttrForSelected.apply(this)}, _updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)}, _selectMulti:function(a){a=a||[];a=(this._valuesToItems(a)||[]).filter(function(c){return c!==null&&c!==void 0}); this._selection.clear(a);for(var b=0;b>=4,a[d]=Tw[d==19?c&3|8:c]);return a.join("")} ;/* Copyright 2015-present Dan Abramov SPDX-License-Identifier: MIT */ function nMa(){var a=sa.apply(0,arguments);return a.length===0?function(b){return b}:a.length===1?a[0]:a.reduce(function(b,c){return function(){return b(c.apply(null,ia(sa.apply(0,arguments))))}})} ;function oMa(){var a=sa.apply(0,arguments);return function(b){return function(c,d){c=b(c,d);var e=function(){throw Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},f={getState:c.getState, dispatch:function(h){return e.apply(null,[h].concat(ia(sa.apply(1,arguments))))}}; d=a.map(function(h){return h(f)}); e=nMa.apply(null,ia(d))(c.dispatch);return Object.assign({},c,{dispatch:e})}}} ;var pMa=function(){return Math.random().toString(36).substring(7).split("").join(".")},qMa="@@redux/INIT"+pMa(),rMa="@@redux/REPLACE"+pMa();function sMa(a){Object.keys(a).forEach(function(b){var c=a[b];if(typeof c(void 0,{type:qMa})==="undefined")throw Error("The slice reducer for key \""+b+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(typeof c(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+pMa()})==="undefined")throw Error("The slice reducer for key \""+ b+"\" returned undefined when probed with a random type. Don't try to handle '"+(qMa+"' or other actions in \"redux/*\" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null."))})} function Vw(a){for(var b=Object.keys(a),c={},d=0;d0){try{var f=px(d.shift())}catch(m){e();return}var h=new Gx(c,void 0,$w,$w);c.add(f.subscribe(h));h.add(e)}else c.complete()}; e()})} ;function Vx(a){return Hx(function(b,c){var d=0;b.subscribe(new Gx(c,function(e){return a.call(void 0,e,d++)&&c.next(e)}))})} ;function vNa(){var a=sa.apply(0,arguments);a=tNa(a);return a.length===1?px(a[0]):new ix(wNa(a))} function wNa(a){return function(b){for(var c=[],d={i$jscomp$661:0};c&&!b.closed&&d.i$jscomp$6610)return Rx.prototype.schedule.call(this,a,b);this.delay=b;this.state=a;this.scheduler.flush(this);return this}; Wx.prototype.execute=function(a,b){return b>0||this.closed?Rx.prototype.execute.call(this,a,b):this._execute(a,b)}; Wx.prototype.requestAsyncId=function(a,b,c){c=c===void 0?0:c;return c!=null&&c>0||c==null&&this.delay>0?Rx.prototype.requestAsyncId.call(this,a,b,c):a.flush(this)};var yNa=function(){Sx.apply(this,arguments)}; k(yNa,Sx);var ZMa=new yNa(Wx);function Q(a,b){b=Rb(Pb(b));a.innerHTML=b} ;var zNa;var ANa,T=function(){return ANa!==void 0?ANa:ANa=document.createElement("template")}; document.head.appendChild(T().content);var BNa;/* Copyright (c) 2015 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt SPDX-License-Identifier: BSD-3-Clause */ ys({_template:function(){if(BNa!==void 0)return BNa;var a=document.createElement("template");Q(a,"\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;zNa===void 0&&(zNa=document.createElement("template"));var d=zNa;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return BNa=a}, is:"tp-yt-iron-overlay-backdrop",properties:{opened:{reflectToAttribute:!0,type:Boolean,value:!1,observer:"_openedChanged"}},listeners:{transitionend:"_onTransitionend"},created:function(){this.__openedRaf=null}, attached:function(){this.opened&&this._openedChanged(this.opened)}, prepare:function(){this.opened&&!this.parentNode&&es(document.body).appendChild(this)}, open:function(){this.opened=!0}, close:function(){this.opened=!1}, complete:function(){this.opened||this.parentNode!==document.body||es(this.parentNode).removeChild(this)}, _onTransitionend:function(a){a&&a.target===this&&this.complete()}, _openedChanged:function(a){a?this.prepare():(a=window.getComputedStyle(this),a.transitionDuration!=="0s"&&a.opacity!=0||this.complete());this.isAttached&&(this.__openedRaf&&(window.cancelAnimationFrame(this.__openedRaf),this.__openedRaf=null),this.scrollTop=this.scrollTop,this.__openedRaf=window.requestAnimationFrame(function(){this.__openedRaf=null;this.toggleClass("opened",this.opened)}.bind(this)))}});var Xx=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;Kr(document.documentElement,"tap",function(){}); document.addEventListener("tap",this._onCaptureClick.bind(this),!0);document.addEventListener("focus",this._onCaptureFocus.bind(this),!0);document.addEventListener("keydown",this._onCaptureKeyDown.bind(this),!0)}; Xx.prototype._bringOverlayAtIndexToFront=function(a){var b=this._overlays[a];if(b){var c=this._overlays.length-1,d=this._overlays[c];d&&this._shouldBeBehindOverlay(b,d)&&c--;if(!(a>=c)){d=Math.max(this._getZ(Yx(this)),this._minimumZ);for(this._getZ(b)<=d&&this._applyOverlayZ(b,d);a=0)this._bringOverlayAtIndexToFront(b);else{b=this._overlays.length;var c=this._overlays[b-1],d=Math.max(this._getZ(c),this._minimumZ),e=this._getZ(a);c&&this._shouldBeBehindOverlay(a,c)&&(this._applyOverlayZ(c,d),b--,d=Math.max(this._getZ(this._overlays[b-1]),this._minimumZ));e<=d&&this._applyOverlayZ(a,d);this._overlays.splice(b,0,a)}this.trackBackdrop()}; Xx.prototype.removeOverlay=function(a){a=this._overlays.indexOf(a);a!==-1&&(this._overlays.splice(a,1),this.trackBackdrop())}; var Yx=function(a){return a._overlays[a._overlays.length-1]}; g=Xx.prototype;g.trackBackdrop=function(){var a=this._overlayWithBackdrop();if(a||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(a)-1,this.backdropElement.opened=!!a,this.backdropElement.prepare()}; g._overlayWithBackdrop=function(){for(var a=this._overlays.length-1;a>=0;a--)if(this._overlays[a].withBackdrop)return this._overlays[a]}; g._getZ=function(a){var b=this._minimumZ;if(a){var c,d,e=Number(((c=a.hostElement)!=null?c:a).style.zIndex||window.getComputedStyle((d=a.hostElement)!=null?d:a).zIndex);e===e&&(b=e)}return b}; g._setZ=function(a,b){var c;((c=a.hostElement)!=null?c:a).style.zIndex=b}; g._applyOverlayZ=function(a,b){this._setZ(a,b+2)}; g._overlayInPath=function(a){a=a||[];for(var b=0;b=Math.min(this.maxRadius,300)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,300)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1, this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},draw:function(){this.wave.style.opacity=this.opacity;var a=this.radius/(this.containerMetrics.size/2);var b=this.xNow-this.containerMetrics.width/2;var c=this.yNow-this.containerMetrics.height/ 2;this.waveContainer.style.webkitTransform="translate("+b+"px, "+c+"px)";this.waveContainer.style.transform="translate3d("+b+"px, "+c+"px, 0)";this.wave.style.webkitTransform="scale("+a+","+a+")";this.wave.style.transform="scale3d("+a+","+a+",1)"}, downAction:function(a){var b=this.containerMetrics.width/2,c=this.containerMetrics.height/2;GNa(this);this.mouseDownStart=ay();this.center?(this.xStart=b,this.yStart=c):(this.xStart=a?a.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=a?a.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=b,this.yEnd=c);a=this.containerMetrics;b=this.xStart;c=this.yStart;this.maxRadius=Math.max($x(b,c,0,0),$x(b,c,a.width, 0),$x(b,c,0,a.height),$x(b,c,a.width,a.height));this.waveContainer.style.top=(this.containerMetrics.height-this.containerMetrics.size)/2+"px";this.waveContainer.style.left=(this.containerMetrics.width-this.containerMetrics.size)/2+"px";this.waveContainer.style.width=this.containerMetrics.size+"px";this.waveContainer.style.height=this.containerMetrics.size+"px"}, upAction:function(){this.isMouseDown&&(this.mouseUpStart=ay())}, remove:function(){es(es(this.waveContainer).parentNode).removeChild(this.waveContainer)}}; ys({_template:function(){if(DNa!==void 0)return DNa;var a=document.createElement("template");Q(a,"
\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;CNa===void 0&&(CNa=document.createElement("template"));var d=CNa;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return DNa=a}, is:"tp-yt-paper-ripple",behaviors:[Lw],properties:{initialOpacity:{type:Number,value:.25},opacityDecayVelocity:{type:Number,value:.8},recenters:{type:Boolean,value:!1},center:{type:Boolean,value:!1},ripples:{type:Array,value:function(){return[]}}, animating:{type:Boolean,readOnly:!0,reflectToAttribute:!0,value:!1},holdDown:{type:Boolean,value:!1,observer:"_holdDownChanged"},noink:{type:Boolean,value:!1},_animating:{type:Boolean},_boundAnimate:{type:Function,value:function(){return this.animate.bind(this)}}}, get target(){return this.keyEventTarget},keyBindings:{"enter:keydown":"_onEnterKeydown","space:keydown":"_onSpaceKeydown","space:keyup":"_onSpaceKeyup"},attached:function(){es(this).parentNode.nodeType==11?this.keyEventTarget=es(this).getOwnerRoot().host:this.keyEventTarget=es(this).parentNode;var a=this.keyEventTarget;this.listen(a,"up","uiUpAction");this.listen(a,"down","uiDownAction")}, detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(a){a.remove()}); this.ripples.length=0;this._setAnimating(!1)}, get shouldKeepAnimating(){for(var a=0;a0||(this.addRipple().downAction(a),this._animating||(this._animating=!0,this.animate()))}, uiUpAction:function(a){this.noink||this.upAction(a)}, upAction:function(a){this.holdDown||(this.ripples.forEach(function(b){b.upAction(a)}),this._animating=!0,this.animate())}, onAnimationComplete:function(){for(var a=0;a\n");a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content, c=b.insertBefore;KNa===void 0&&(KNa=document.createElement("template"));var d=KNa;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return LNa=a}, is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[cy]});var ONa;var PNa;var QNa=function(){}; g=QNa.prototype;g.indexOf=function(){}; g.selectPrevious=function(){}; g.selectNext=function(){}; g.selectIndex=function(){}; g.forceSynchronousItemUpdate=function(){}; g._checkFallback=function(){}; g._addListener=function(){}; g._removeListener=function(){}; g._activateEventChanged=function(){}; g._updateItems=function(){}; g._selectSelected=function(){}; g._filterItem=function(){}; g._valueToItem=function(){}; g._valueToIndex=function(){}; g._indexToValue=function(){}; g._valueForItem=function(){}; g._observeItems=function(){}; g._itemActivate=function(){}; g.multiChanged=function(){}; g._updateAttrForSelected=function(){}; g._updateSelected=function(){}; g._selectMulti=function(){}; g._selectionChange=function(){}; g._toggleSelected=function(){}; g._valuesToItems=function(){}; g.registered=function(){}; g.addOwnKeyBinding=function(){}; g.removeOwnKeyBindings=function(){}; g.keyboardEventMatchesKeys=function(){}; g._collectKeyBindings=function(){}; g._prepKeyBindings=function(){}; g._addKeyBinding=function(){}; g._resetKeyEventListeners=function(){}; g._listenKeyEventListeners=function(){}; g._unlistenKeyEventListeners=function(){}; g._onKeyBindingEvent=function(){}; g._triggerKeyHandler=function(){}; g.select=function(){}; g._resetTabindices=function(){}; g._updateMultiselectable=function(){}; g._focusWithKeyboardEvent=function(){}; g._clearSearchText=function(){}; g._focusPrevious=function(){}; g._focusNext=function(){}; g._applySelection=function(){}; g._focusedItemChanged=function(){}; g._onIronItemsChanged=function(){}; g._onShiftTabDown=function(){}; g._onFocus=function(){}; g._onUpKey=function(){}; g._onDownKey=function(){}; g._onEscKey=function(){}; g._onKeydown=function(){}; g._activateHandler=function(){}; g._disabledChanged=function(){}; g._setSelectedItem=function(){}; g._setItems=function(){}; g._setSelectedItems=function(){}; g._setFocusedItem=function(){}; QNa=ys({_template:function(){if(PNa!==void 0)return PNa;var a=document.createElement("template");Q(a,"\n");a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild); var b=a.content,c=b.insertBefore;ONa===void 0&&(ONa=document.createElement("template"));var d=ONa;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return PNa=a}, is:"tp-yt-paper-listbox",behaviors:[lMa],hostAttributes:{role:"listbox"}});var RNa;var SNa;/* Copyright (c) 2015 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt SPDX-License-Identifier: BSD-3-Clause */ var TNa=function(){}; g=TNa.prototype;g.addOwnKeyBinding=function(){}; g.removeOwnKeyBindings=function(){}; g.keyboardEventMatchesKeys=function(){}; g._collectKeyBindings=function(){}; g._prepKeyBindings=function(){}; g._addKeyBinding=function(){}; g._resetKeyEventListeners=function(){}; g._listenKeyEventListeners=function(){}; g._unlistenKeyEventListeners=function(){}; g._onKeyBindingEvent=function(){}; g._triggerKeyHandler=function(){}; g._tapHandler=function(){}; g._focusChanged=function(){}; g._detectKeyboardFocus=function(){}; g._userActivate=function(){}; g._upHandler=function(){}; g._spaceKeyDownHandler=function(){}; g._spaceKeyUpHandler=function(){}; g._asyncClick=function(){}; g._pressedChanged=function(){}; g._ariaActiveAttributeChanged=function(){}; g._activeChanged=function(){}; g._controlStateChanged=function(){}; g._changedButtonState=function(){}; g._focusBlurHandler=function(){}; g._disabledChanged=function(){}; g._changedControlState=function(){}; g._downHandler=function(){}; g.ensureRipple=function(){}; g.getRipple=function(){}; g.hasRipple=function(){}; g._noinkChanged=function(){}; g._focusedChanged=function(){}; g.registered=function(){}; g._invalidChanged=function(){}; g.hasValidator=function(){}; g.validate=function(){}; g._getValidity=function(){}; g._requiredChanged=function(){}; g._valueChanged=function(){}; g._checkedChanged=function(){}; g._buttonStateChanged=function(){}; g._setPressed=function(){}; g._setPointerDown=function(){}; g._setReceivedFocusFromKeyboard=function(){}; g._setFocused=function(){}; TNa=ys({is:"tp-yt-paper-toggle-button",_template:function(){if(SNa!==void 0)return SNa;var a=document.createElement("template");Q(a,"
\n
\n
\n
\n\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;RNa===void 0&&(RNa=document.createElement("template"));var d=RNa;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return SNa=a}, behaviors:[JNa],hostAttributes:{role:"button","aria-pressed":"false",tabindex:0},properties:{ironLabelTarget:{type:Boolean,reflectToAttribute:!0}},listeners:{track:"_ontrack"},__calculateIsRtl:function(){return window.getComputedStyle(this).direction==="rtl"}, attached:function(){this.__calculateIsRtl()&&this.setAttribute("dir","rtl");ms(this,function(){Mr(this,"pan-y")})}, _ontrack:function(a){a=a.detail;a.state==="start"?this._trackStart(a):a.state==="track"?this._trackMove(a):a.state==="end"&&this._trackEnd(a)}, _trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")}, _trackMove:function(a){a=a.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+a:a)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+a:a));this.translate3d(this._x+"px",0,0,this.$.toggleButton);this._isRtl?this._userActivate(this._x<-this._width/2):this._userActivate(this._x>this._width/2)}, _trackEnd:function(){this.$.toggleButton.classList.remove("dragging");this.transform("",this.$.toggleButton)}, _createRipple:function(){this._rippleContainer=this.$.toggleButton;var a=by._createRipple();a.id="ink";a.setAttribute("recenters","");a.classList.add("circle","toggle-ink");return a}});var UNa;var VNa;ys({_template:function(){if(VNa!==void 0)return VNa;var a=document.createElement("template");Q(a,"
\n \n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;UNa===void 0&&(UNa=document.createElement("template"));var d=UNa;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return VNa=a}, is:"tp-yt-paper-tooltip",hostAttributes:{role:"tooltip",tabindex:-1,"aria-label":"tooltip"},properties:{for:{type:String,observer:"_findTarget"},manualMode:{type:Boolean,value:!1,observer:"_manualModeChanged"},position:{type:String,value:"bottom"},fitToVisibleBounds:{type:Boolean,value:!1},offset:{type:Number,value:14},marginTop:{type:Number,value:14},alwaysDisplay:{type:Boolean,value:!1},animationDelay:{type:Number,value:500,observer:"_delayChange"},animationEntry:{type:String,value:""},animationExit:{type:String, value:""},animationConfig:{type:Object,value:function(){return{entry:[{name:"fade-in-animation",node:this,timing:{delay:0}}],exit:[{name:"fade-out-animation",node:this}]}}}, _showing:{type:Boolean,value:!1}},listeners:{webkitAnimationEnd:"_onAnimationEnd"},get target(){var a=es(this).parentNode,b=es(this).getOwnerRoot(),c;this.for?c=es(b).querySelector("#"+this.for):c=a.nodeType==Node.DOCUMENT_FRAGMENT_NODE?b.host:a;return c},attached:function(){this._findTarget()}, detached:function(){this.manualMode||this._removeListeners()}, playAnimation:function(a){a==="entry"?this.show():a==="exit"&&this.hide()}, cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")}, show:function(){if(!this._showing){if(!this.alwaysDisplay&&es(this).textContent.trim()===""){for(var a=!0,b=es(this).getEffectiveChildNodes(),c=0;cwindow.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,p)+"px",this.style.right="auto"),b.top+q+d.height>window.innerHeight?(this.style.bottom=b.height+"px",this.style.top="auto"):(this.style.top=Math.max(-b.top,q)+"px",this.style.bottom="auto")):(this.style.left=p+"px",this.style.top=q+"px")}}, _addListeners:function(){this._target&&(this.listen(this._target,"mouseenter","show"),this.listen(this._target,"focus","show"),this.listen(this._target,"mouseleave","hide"),this.listen(this._target,"blur","hide"),this.listen(this._target,"tap","hide"));this.listen(this.$.tooltip,"animationend","_onAnimationEnd");this.listen(this,"mouseenter","hide")}, _findTarget:function(){this.manualMode||this._removeListeners();this._target=this.target;this.manualMode||this._addListeners()}, _delayChange:function(a){a!==500&&this.updateStyles({"--paper-tooltip-delay-in":a+"ms"})}, _manualModeChanged:function(){this.manualMode?this._removeListeners():this._addListeners()}, _cancelAnimation:function(){this.$.tooltip.classList.remove(this._getAnimationType("entry"));this.$.tooltip.classList.remove(this._getAnimationType("exit"));this.$.tooltip.classList.remove("cancel-animation");this.$.tooltip.classList.add("hidden")}, _onAnimationFinish:function(){this._showing&&(this.$.tooltip.classList.remove(this._getAnimationType("entry")),this.$.tooltip.classList.remove("cancel-animation"),this.$.tooltip.classList.add(this._getAnimationType("exit")))}, _onAnimationEnd:function(){this._animationPlaying=!1;this._showing||(this.$.tooltip.classList.remove(this._getAnimationType("exit")),this.$.tooltip.classList.add("hidden"))}, _getAnimationType:function(a){if(a==="entry"&&this.animationEntry!=="")return this.animationEntry;if(a==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[a]&&typeof this.animationConfig[a][0].name==="string"){if(this.animationConfig[a][0].timing&&this.animationConfig[a][0].timing.delay&&this.animationConfig[a][0].timing.delay!==0){var b=this.animationConfig[a][0].timing.delay;a==="entry"?this.updateStyles({"--paper-tooltip-delay-in":b+"ms"}):a==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":b+ "ms"})}return this.animationConfig[a][0].name}}, _removeListeners:function(){this._target&&(this.unlisten(this._target,"mouseenter","show"),this.unlisten(this._target,"focus","show"),this.unlisten(this._target,"mouseleave","hide"),this.unlisten(this._target,"blur","hide"),this.unlisten(this._target,"tap","hide"));this.unlisten(this.$.tooltip,"animationend","_onAnimationEnd");this.unlisten(this,"mouseenter","hide")}});function WNa(a,b){var c={},d=Object.keys(a);d=l(d);for(var e=d.next();!e.done;e=d.next())e=e.value,c[e]=b(e,a[e]);return c} ;var dy=new Qk("accessibilityContext");var XNa=new Qk("getAccountSwitcherEndpoint");var YNa=new Qk("getAccountsListEndpoint");var ey=new Qk("browseEndpoint");var ZNa=new Qk("confirmDialogEndpoint");var fy=function(a){this.delegate=a},gy=function(){fy.apply(this,arguments)}; k(gy,fy);ba.Object.defineProperties(gy.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata}, set:function(a){this.delegate.entityMetadata=a}}});var $Na=function(){gy.apply(this,arguments)}; k($Na,gy);$Na.prototype.getAssociations=function(){return[]};var aOa=new Qk("webThumbnailDetailsExtensionData");var hy=new Qk("commandContext");var bOa=function(){gy.apply(this,arguments)}; k(bOa,gy);bOa.prototype.getAssociations=function(){return[]};var cOa=function(){gy.apply(this,arguments)}; k(cOa,gy);cOa.prototype.getAssociations=function(){return[]};var iy=new Qk("commandExecutorCommand");var jy=new Qk("emoji");var dOa=function(){gy.apply(this,arguments)}; k(dOa,gy);dOa.prototype.getAssociations=function(){return[]};var ky=new Qk("openPopupAction");var ly=new Qk("webCommandMetadata");var eOa=new Qk("webNavigationEndpointData");var fOa=new Qk("metadataBadgeRenderer");var my=new Qk("signalServiceEndpoint");var ny=new Qk("innertubeCommand");var gOa=new Qk("loggingDirectives");var hOa=function(){gy.apply(this,arguments)}; k(hOa,gy);hOa.prototype.getAssociations=function(){return[]};var iOa=function(){gy.apply(this,arguments)}; k(iOa,gy);iOa.prototype.getAssociations=function(){return[]};var jOa=function(){gy.apply(this,arguments)}; k(jOa,gy);jOa.prototype.getAssociations=function(){var a=[];this.delegate.alternateChannel&&a.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&a.push.apply(a,ia(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&a.push(this.delegate.oneofChannelEntity);return[].concat(ia(new Set(a)))};var kOa=function(){gy.apply(this,arguments)}; k(kOa,gy);kOa.prototype.getAssociations=function(){var a=[];this.delegate.entryCollection&&a.push(this.delegate.entryCollection);return[].concat(ia(new Set(a)))}; var lOa=function(){gy.apply(this,arguments)}; k(lOa,gy);lOa.prototype.getAssociations=function(){var a=[];this.delegate.parentPlaylist&&a.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var b=l(this.delegate.entries),c=b.next();!c.done;c=b.next())a.push.apply(a,ia(new mOa(c.value).getAssociations()));return[].concat(ia(new Set(a)))}; var mOa=function(){fy.apply(this,arguments)}; k(mOa,fy);mOa.prototype.getAssociations=function(){var a=[];this.delegate.video&&a.push(this.delegate.video);return[].concat(ia(new Set(a)))};var nOa=function(){gy.apply(this,arguments)}; k(nOa,gy);nOa.prototype.getAssociations=function(){var a=[];this.delegate.descriptionEntity&&a.push(this.delegate.descriptionEntity);this.delegate.creators&&a.push.apply(a,ia(this.delegate.creators));this.delegate.theBiggestFan&&a.push(this.delegate.theBiggestFan);return[].concat(ia(new Set(a)))}; var oOa=function(){gy.apply(this,arguments)}; k(oOa,gy);oOa.prototype.getAssociations=function(){return[]};var pOa=function(){gy.apply(this,arguments)}; k(pOa,gy);pOa.prototype.getAssociations=function(){return[]};var qOa=function(){gy.apply(this,arguments)}; k(qOa,gy);qOa.prototype.getAssociations=function(){return[]};var rOa=function(){gy.apply(this,arguments)}; k(rOa,gy);rOa.prototype.getAssociations=function(){return[]};var sOa=new Qk("youtubeIconSource");var tOa=function(){gy.apply(this,arguments)}; k(tOa,gy);tOa.prototype.getAssociations=function(){return[]};var uOa=function(){gy.apply(this,arguments)}; k(uOa,gy);uOa.prototype.getAssociations=function(){return[]};var vOa=new Qk("interactionLoggingCommandMetadata");var wOa={SLI_STATUS_UNKNOWN:"SLI_STATUS_UNKNOWN",SLI_STATUS_SUCCESS:"SLI_STATUS_SUCCESS",SLI_STATUS_FAILURE:"SLI_STATUS_FAILURE",SLI_STATUS_TIMEOUT:"SLI_STATUS_TIMEOUT",SLI_STATUS_ABORTED:"SLI_STATUS_ABORTED",SLI_STATUS_CANCELLED:"SLI_STATUS_CANCELLED",SLI_STATUS_REJECTED:"SLI_STATUS_REJECTED"};var xOa={MAIN_APP_WEB_PAGE_TYPE_UNKNOWN:"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN",MAIN_APP_WEB_PAGE_TYPE_BROWSE:"MAIN_APP_WEB_PAGE_TYPE_BROWSE",MAIN_APP_WEB_PAGE_TYPE_SEARCH:"MAIN_APP_WEB_PAGE_TYPE_SEARCH",MAIN_APP_WEB_PAGE_TYPE_WATCH:"MAIN_APP_WEB_PAGE_TYPE_WATCH",MAIN_APP_WEB_PAGE_TYPE_CHANNEL:"MAIN_APP_WEB_PAGE_TYPE_CHANNEL",MAIN_APP_WEB_PAGE_TYPE_PLAYLIST:"MAIN_APP_WEB_PAGE_TYPE_PLAYLIST",MAIN_APP_WEB_PAGE_TYPE_SETTING:"MAIN_APP_WEB_PAGE_TYPE_SETTING",MAIN_APP_WEB_PAGE_TYPE_SHORTS:"MAIN_APP_WEB_PAGE_TYPE_SHORTS"}, yOa={MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN:"MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN",MAIN_APP_WEB_REQUEST_TYPE_NAVIGATE:"MAIN_APP_WEB_REQUEST_TYPE_NAVIGATE",MAIN_APP_WEB_REQUEST_TYPE_LOAD:"MAIN_APP_WEB_REQUEST_TYPE_LOAD"};var oy=new Qk("loggingContext");var zOa=function(){gy.apply(this,arguments)}; k(zOa,gy);zOa.prototype.getAssociations=function(){return[]};var AOa=function(){gy.apply(this,arguments)}; k(AOa,gy);AOa.prototype.getAssociations=function(){return[]};var BOa=function(){gy.apply(this,arguments)}; k(BOa,gy);BOa.prototype.getAssociations=function(){return[]};var COa=function(){gy.apply(this,arguments)}; k(COa,gy);COa.prototype.getAssociations=function(){var a=[];this.delegate.downloadsList&&a.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&a.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&a.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&a.push(this.delegate.refresh);return[].concat(ia(new Set(a)))};var DOa=function(){gy.apply(this,arguments)}; k(DOa,gy);DOa.prototype.getAssociations=function(){var a=[];this.delegate.refresh&&a.push(this.delegate.refresh);if(this.delegate.downloads)for(var b=l(this.delegate.downloads),c=b.next();!c.done;c=b.next())a.push.apply(a,ia(new EOa(c.value).getAssociations()));return[].concat(ia(new Set(a)))}; var EOa=function(){fy.apply(this,arguments)}; k(EOa,fy);EOa.prototype.getAssociations=function(){var a=[];this.delegate.video&&a.push(this.delegate.video);this.delegate.playlist&&a.push(this.delegate.playlist);this.delegate.videoItem&&a.push(this.delegate.videoItem);this.delegate.playlistItem&&a.push(this.delegate.playlistItem);return[].concat(ia(new Set(a)))};var FOa=function(){gy.apply(this,arguments)}; k(FOa,gy);FOa.prototype.getAssociations=function(){var a=[];this.delegate.localImageEntities&&a.push.apply(a,ia(this.delegate.localImageEntities));return[].concat(ia(new Set(a)))};var GOa=function(){gy.apply(this,arguments)}; k(GOa,gy);GOa.prototype.getAssociations=function(){var a=[];this.delegate.playbackData&&a.push(this.delegate.playbackData);this.delegate.localImageEntities&&a.push.apply(a,ia(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&a.push(this.delegate.videoDownloadContextEntity);return[].concat(ia(new Set(a)))};var HOa=function(){gy.apply(this,arguments)}; k(HOa,gy);HOa.prototype.getAssociations=function(){return[]};var IOa=function(){gy.apply(this,arguments)}; k(IOa,gy);IOa.prototype.getAssociations=function(){var a=[];this.delegate.fakeChildren&&a.push.apply(a,ia(this.delegate.fakeChildren));return[].concat(ia(new Set(a)))};var JOa=function(){gy.apply(this,arguments)}; k(JOa,gy);JOa.prototype.getAssociations=function(){var a=[];this.delegate.video&&a.push(this.delegate.video);this.delegate.playbackData&&a.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&a.push(this.delegate.offlineVideoPolicy);return[].concat(ia(new Set(a)))};var KOa=function(){gy.apply(this,arguments)}; k(KOa,gy);KOa.prototype.getAssociations=function(){return[]};var LOa=function(){gy.apply(this,arguments)}; k(LOa,gy);LOa.prototype.getAssociations=function(){var a=[];this.delegate.channelOwner&&a.push(this.delegate.channelOwner);this.delegate.videos&&a.push.apply(a,ia(this.delegate.videos));this.delegate.collaboratorChannels&&a.push.apply(a,ia(this.delegate.collaboratorChannels));this.delegate.downloadState&&a.push(this.delegate.downloadState);this.delegate.refresh&&a.push(this.delegate.refresh);return[].concat(ia(new Set(a)))};var MOa=function(){gy.apply(this,arguments)}; k(MOa,gy);MOa.prototype.getAssociations=function(){var a=[];this.delegate.video&&a.push(this.delegate.video);this.delegate.channelContributor&&a.push(this.delegate.channelContributor);return[].concat(ia(new Set(a)))};var NOa=function(){fy.apply(this,arguments)}; k(NOa,fy);NOa.prototype.getAssociations=function(){var a=[];this.delegate.recommendedVideoMetadata&&a.push.apply(a,ia(new OOa(this.delegate.recommendedVideoMetadata).getAssociations()));return[].concat(ia(new Set(a)))}; var OOa=function(){fy.apply(this,arguments)}; k(OOa,fy);OOa.prototype.getAssociations=function(){var a=[];this.delegate.localImageEntities&&a.push.apply(a,ia(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&a.push(this.delegate.videoDownloadContextEntity);return[].concat(ia(new Set(a)))};var POa=function(){fy.apply(this,arguments)}; k(POa,fy);POa.prototype.getAssociations=function(){var a=[];this.delegate.playbackPosition&&a.push(this.delegate.playbackPosition);return[].concat(ia(new Set(a)))};var QOa=function(){gy.apply(this,arguments)}; k(QOa,gy);QOa.prototype.getAssociations=function(){var a=[];this.delegate.owner&&a.push(this.delegate.owner);this.delegate.downloadState&&a.push(this.delegate.downloadState);this.delegate.userState&&a.push.apply(a,ia(new POa(this.delegate.userState).getAssociations()));this.delegate.additionalMetadata&&a.push.apply(a,ia(new NOa(this.delegate.additionalMetadata).getAssociations()));return[].concat(ia(new Set(a)))};var ROa=function(){gy.apply(this,arguments)}; k(ROa,gy);ROa.prototype.getAssociations=function(){var a=[];this.delegate.userChannelDetails&&a.push(this.delegate.userChannelDetails);return[].concat(ia(new Set(a)))};var SOa=function(){gy.apply(this,arguments)}; k(SOa,gy);SOa.prototype.getAssociations=function(){var a=[];this.delegate.channelOwner&&a.push(this.delegate.channelOwner);this.delegate.playbackPosition&&a.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&a.push.apply(a,ia(this.delegate.localImageEntities));this.delegate.downloadStatus&&a.push(this.delegate.downloadStatus);return[].concat(ia(new Set(a)))};var TOa=new Qk("downloadsPageSmartDownloadsOptInBannerParams");var UOa=new Qk("downloadsPageUpsellBannerParams");var VOa=function(){gy.apply(this,arguments)}; k(VOa,gy);VOa.prototype.getAssociations=function(){return[]};var WOa=function(){gy.apply(this,arguments)}; k(WOa,gy);WOa.prototype.getAssociations=function(){return[]};var XOa=function(){gy.apply(this,arguments)}; k(XOa,gy);XOa.prototype.getAssociations=function(){return[]};var YOa=function(){gy.apply(this,arguments)}; k(YOa,gy);YOa.prototype.getAssociations=function(){return[]};var ZOa=function(){gy.apply(this,arguments)}; k(ZOa,gy);ZOa.prototype.getAssociations=function(){return[]};var $Oa=function(){gy.apply(this,arguments)}; k($Oa,gy);$Oa.prototype.getAssociations=function(){return[]};var aPa=function(){gy.apply(this,arguments)}; k(aPa,gy);aPa.prototype.getAssociations=function(){return[]};var bPa=function(){gy.apply(this,arguments)}; k(bPa,gy);bPa.prototype.getAssociations=function(){return[]};var cPa=function(){gy.apply(this,arguments)}; k(cPa,gy);cPa.prototype.getAssociations=function(){return[]};var dPa=function(){gy.apply(this,arguments)}; k(dPa,gy);dPa.prototype.getAssociations=function(){return[]};var ePa=function(){gy.apply(this,arguments)}; k(ePa,gy);ePa.prototype.getAssociations=function(){return[]};var fPa=function(){gy.apply(this,arguments)}; k(fPa,gy);fPa.prototype.getAssociations=function(){return[]};var gPa=function(){gy.apply(this,arguments)}; k(gPa,gy);gPa.prototype.getAssociations=function(){return[]};var hPa=function(){gy.apply(this,arguments)}; k(hPa,gy);hPa.prototype.getAssociations=function(){var a=[];this.delegate.compositeSourceKeys&&a.push.apply(a,ia(this.delegate.compositeSourceKeys));return[].concat(ia(new Set(a)))};var iPa=function(){gy.apply(this,arguments)}; k(iPa,gy);iPa.prototype.getAssociations=function(){var a=[];this.delegate.trackDownloadMetadatas&&a.push.apply(a,ia(this.delegate.trackDownloadMetadatas));return[].concat(ia(new Set(a)))};var jPa=function(){gy.apply(this,arguments)}; k(jPa,gy); jPa.prototype.getAssociations=function(){var a=[];this.delegate.downloadedTracks&&a.push.apply(a,ia(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&a.push.apply(a,ia(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&a.push.apply(a,ia(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&a.push.apply(a,ia(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&a.push.apply(a,ia(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&& a.push.apply(a,ia(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&a.push.apply(a,ia(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&a.push.apply(a,ia(this.delegate.metadataOnlyTracks));return[].concat(ia(new Set(a)))};var kPa=function(){gy.apply(this,arguments)}; k(kPa,gy);kPa.prototype.getAssociations=function(){var a=[];this.delegate.trackDownloadMetadatas&&a.push.apply(a,ia(this.delegate.trackDownloadMetadatas));return[].concat(ia(new Set(a)))};var lPa=function(){gy.apply(this,arguments)}; k(lPa,gy);lPa.prototype.getAssociations=function(){var a=[];this.delegate.playbackData&&a.push(this.delegate.playbackData);this.delegate.localImageEntities&&a.push.apply(a,ia(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&a.push(this.delegate.videoDownloadContextEntity);return[].concat(ia(new Set(a)))};var mPa=function(){gy.apply(this,arguments)}; k(mPa,gy); mPa.prototype.getAssociations=function(){var a=[];this.delegate.musicLibraryStatusEntity&&a.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&a.push.apply(a,ia(this.delegate.primaryArtists));this.delegate.details&&a.push(this.delegate.details);this.delegate.userDetails&&a.push(this.delegate.userDetails);this.delegate.tracks&&a.push.apply(a,ia(this.delegate.tracks));this.delegate.share&&a.push(this.delegate.share);this.delegate.downloadMetadata&&a.push(this.delegate.downloadMetadata);this.delegate.refresh&& a.push(this.delegate.refresh);return[].concat(ia(new Set(a)))}; var nPa=function(){gy.apply(this,arguments)}; k(nPa,gy);nPa.prototype.getAssociations=function(){var a=[];this.delegate.albumRelease&&a.push(this.delegate.albumRelease);this.delegate.tracks&&a.push.apply(a,ia(this.delegate.tracks));return[].concat(ia(new Set(a)))}; var oPa=function(){gy.apply(this,arguments)}; k(oPa,gy);oPa.prototype.getAssociations=function(){var a=[];this.delegate.albumRelease&&a.push(this.delegate.albumRelease);return[].concat(ia(new Set(a)))};var pPa=function(){gy.apply(this,arguments)}; k(pPa,gy);pPa.prototype.getAssociations=function(){var a=[];this.delegate.details&&a.push(this.delegate.details);this.delegate.userDetails&&a.push(this.delegate.userDetails);return[].concat(ia(new Set(a)))}; var qPa=function(){gy.apply(this,arguments)}; k(qPa,gy);qPa.prototype.getAssociations=function(){var a=[];this.delegate.parentArtist&&a.push(this.delegate.parentArtist);return[].concat(ia(new Set(a)))}; var rPa=function(){gy.apply(this,arguments)}; k(rPa,gy);rPa.prototype.getAssociations=function(){var a=[];this.delegate.parentArtist&&a.push(this.delegate.parentArtist);return[].concat(ia(new Set(a)))};var sPa=function(){gy.apply(this,arguments)}; k(sPa,gy);sPa.prototype.getAssociations=function(){return[]};var tPa=function(){gy.apply(this,arguments)}; k(tPa,gy);tPa.prototype.getAssociations=function(){return[]};var uPa=function(){gy.apply(this,arguments)}; k(uPa,gy); uPa.prototype.getAssociations=function(){var a=[];this.delegate.tracks&&a.push.apply(a,ia(this.delegate.tracks));this.delegate.refresh&&a.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&a.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&a.push(this.delegate.details);this.delegate.downloadMetadata&&a.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&a.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&a.push(this.delegate.userDetails);this.delegate.entryCollection&& a.push(this.delegate.entryCollection);this.delegate.share&&a.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&a.push.apply(a,ia(new vPa(this.delegate.podcastShowAdditionalMetadata).getAssociations()));return[].concat(ia(new Set(a)))}; var vPa=function(){fy.apply(this,arguments)}; k(vPa,fy);vPa.prototype.getAssociations=function(){var a=[];this.delegate.creatorEntity&&a.push(this.delegate.creatorEntity);return[].concat(ia(new Set(a)))};var wPa=function(){gy.apply(this,arguments)}; k(wPa,gy);wPa.prototype.getAssociations=function(){return[]};var xPa=function(){gy.apply(this,arguments)}; k(xPa,gy); xPa.prototype.getAssociations=function(){var a=[];this.delegate.musicLibraryStatusEntity&&a.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&a.push.apply(a,ia(this.delegate.artists));this.delegate.audioModeVersion&&a.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&a.push(this.delegate.videoModeVersion);this.delegate.userDetails&&a.push(this.delegate.userDetails);this.delegate.details&&a.push(this.delegate.details);this.delegate.albumRelease&&a.push(this.delegate.albumRelease);this.delegate.share&& a.push(this.delegate.share);this.delegate.libraryEdit&&a.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&a.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&a.push(this.delegate.playbackPosition);this.delegate.lyrics&&a.push(this.delegate.lyrics);return[].concat(ia(new Set(a)))}; var yPa=function(){gy.apply(this,arguments)}; k(yPa,gy);yPa.prototype.getAssociations=function(){var a=[];this.delegate.parentTrack&&a.push(this.delegate.parentTrack);return[].concat(ia(new Set(a)))}; var zPa=function(){gy.apply(this,arguments)}; k(zPa,gy);zPa.prototype.getAssociations=function(){var a=[];this.delegate.parentTrack&&a.push(this.delegate.parentTrack);return[].concat(ia(new Set(a)))};var APa=new Qk("modalEndpoint");var BPa=new Qk("shareEndpoint"),CPa=new Qk("shareEntityEndpoint"),DPa=new Qk("shareEntityServiceEndpoint");var EPa=new Qk("userFeedbackEndpoint");var py=new Qk("watchEndpoint");var FPa=new Qk("watchPlaylistEndpoint");var GPa=function(){gy.apply(this,arguments)}; k(GPa,gy);GPa.prototype.getAssociations=function(){return[]};var HPa=function(){gy.apply(this,arguments)}; k(HPa,gy);HPa.prototype.getAssociations=function(){return[]};var IPa=function(){gy.apply(this,arguments)}; k(IPa,gy);IPa.prototype.getAssociations=function(){return[]};var JPa=function(){gy.apply(this,arguments)}; k(JPa,gy);JPa.prototype.getAssociations=function(){return[]};var KPa=function(){gy.apply(this,arguments)}; k(KPa,gy);KPa.prototype.getAssociations=function(){var a=[];this.delegate.transfer&&a.push(this.delegate.transfer);this.delegate.adsPlaybackData&&a.push.apply(a,ia(this.delegate.adsPlaybackData));this.delegate.drmLicense&&a.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&a.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&a.push(this.delegate.videoDownloadContextEntity);return[].concat(ia(new Set(a)))};var LPa=function(){gy.apply(this,arguments)}; k(LPa,gy);LPa.prototype.getAssociations=function(){return[]};var MPa=function(){gy.apply(this,arguments)}; k(MPa,gy);MPa.prototype.getAssociations=function(){var a=[];this.delegate.offlineVideoStreams&&a.push.apply(a,ia(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&a.push.apply(a,ia(this.delegate.captionTrack));return[].concat(ia(new Set(a)))};var NPa=function(){gy.apply(this,arguments)}; k(NPa,gy);NPa.prototype.getAssociations=function(){return[]};var OPa=function(){gy.apply(this,arguments)}; k(OPa,gy);OPa.prototype.getAssociations=function(){return[]};var PPa=function(){gy.apply(this,arguments)}; k(PPa,gy);PPa.prototype.getAssociations=function(){return[]};var qy=new Qk("playlistEditEndpoint");var QPa=function(){gy.apply(this,arguments)}; k(QPa,gy);QPa.prototype.getAssociations=function(){return[]};var ry=new Qk("reelWatchEndpoint");var RPa=new Qk("switchButtonViewModel");var SPa=new Qk("menuRenderer"),TPa=new Qk("menuRenderer"),UPa=new Qk("menuFlexibleItemRenderer");var VPa=new Qk("resolveUrlCommandMetadata");var WPa=function(){gy.apply(this,arguments)}; k(WPa,gy);WPa.prototype.getAssociations=function(){return[]};var XPa=new Qk("webSerializedServiceEndpointExtension");var sy=new Qk("offlineVideoEndpoint"),YPa={ACTION_UNKNOWN:"ACTION_UNKNOWN",ACTION_ADD:"ACTION_ADD",ACTION_REMOVE:"ACTION_REMOVE",ACTION_REMOVE_WITH_PROMPT:"ACTION_REMOVE_WITH_PROMPT",ACTION_PAUSE:"ACTION_PAUSE",ACTION_RETRY:"ACTION_RETRY",ACTION_RESUME:"ACTION_RESUME",ACTION_DOWNLOAD_IMMEDIATELY:"ACTION_DOWNLOAD_IMMEDIATELY",ACTION_REDOWNLOAD:"ACTION_REDOWNLOAD",ACTION_RENEW:"ACTION_RENEW",ACTION_RENEW_WITH_PROMPT:"ACTION_RENEW_WITH_PROMPT",ACTION_INFER_AUTOMATICALLY:"ACTION_INFER_AUTOMATICALLY"};var ZPa=function(){gy.apply(this,arguments)}; k(ZPa,gy);ZPa.prototype.getAssociations=function(){return[]};var $Pa=function(){gy.apply(this,arguments)}; k($Pa,gy);$Pa.prototype.getAssociations=function(){return[]};var aQa=function(){gy.apply(this,arguments)}; k(aQa,gy);aQa.prototype.getAssociations=function(){return[]};var bQa=function(){gy.apply(this,arguments)}; k(bQa,gy);bQa.prototype.getAssociations=function(){return[]};var cQa=function(){gy.apply(this,arguments)}; k(cQa,gy);cQa.prototype.getAssociations=function(){return[]};var dQa=function(){gy.apply(this,arguments)}; k(dQa,gy);dQa.prototype.getAssociations=function(){return[]};var eQa=function(){gy.apply(this,arguments)}; k(eQa,gy);eQa.prototype.getAssociations=function(){return[]};var fQa=function(){gy.apply(this,arguments)}; k(fQa,gy);fQa.prototype.getAssociations=function(){return[]};var gQa=function(){gy.apply(this,arguments)}; k(gQa,gy);gQa.prototype.getAssociations=function(){return[]};var hQa=function(){gy.apply(this,arguments)}; k(hQa,gy);hQa.prototype.getAssociations=function(){return[]};var iQa=function(){gy.apply(this,arguments)}; k(iQa,gy);iQa.prototype.getAssociations=function(){return[]};var jQa=function(){gy.apply(this,arguments)}; k(jQa,gy);jQa.prototype.getAssociations=function(){return[]};var kQa=new Qk("unpluggedStringRunImage");var lQa=function(){gy.apply(this,arguments)}; k(lQa,gy);lQa.prototype.getAssociations=function(){return[]};var mQa=function(){gy.apply(this,arguments)}; k(mQa,gy);mQa.prototype.getAssociations=function(){return[]};var nQa=function(){gy.apply(this,arguments)}; k(nQa,gy);nQa.prototype.getAssociations=function(){return[]};var oQa=function(){gy.apply(this,arguments)}; k(oQa,gy);oQa.prototype.getAssociations=function(){return[]};var pQa=function(){gy.apply(this,arguments)}; k(pQa,gy);pQa.prototype.getAssociations=function(){return[]};var qQa=function(){gy.apply(this,arguments)}; k(qQa,gy);qQa.prototype.getAssociations=function(){return[]};var rQa=function(){gy.apply(this,arguments)}; k(rQa,gy);rQa.prototype.getAssociations=function(){return[]};function sQa(a){switch(a){case"canary":return"CLIENT_CANARY_STATE_CANARY";case"control":return"CLIENT_CANARY_STATE_CONTROL";case"none":return"CLIENT_CANARY_STATE_NONE";default:return"CLIENT_CANARY_STATE_UNKNOWN";}} ;var tQa=function(){this.register=new Map},uQa=function(a,b,c){a=a+"_"+b; ty.register.has(a)?c=ty.register.get(a):(c=c(),ty.register.set(a,c));return c},vQa=function(a){a=l(a.register.values()); for(var b=a.next();!b.done;b=a.next())uy(b.value,"ABORTED")}; tQa.prototype.clear=function(){vQa(this);this.register.clear()}; var ty=new tQa;function wQa(a,b){b=b===void 0?"":b;var c=[],d;for(d in a)if(a.hasOwnProperty(d)){var e=b!==""?b+"."+d:d;typeof a[d]==="object"?c.push.apply(c,ia(wQa(a[d],e))):c.push([e,a[d]])}c.sort();return c} var xQa=function(){this.events=new Map},yQa=function(a){var b=[]; a=l(a.events.values());for(var c=a.next();!c.done;c=a.next())b.push(c.value);return b}; xQa.prototype.clear=function(){this.events.clear()};var AQa=function(){this.logTransport=new zQa;this.loggedEventRegister=new xQa;this.unloggedEventRegister=new xQa;this.eventsCount=0;this.flushInterval=3E4;this.JSC$8375_flushTimer=new Aw(this.flushInterval);this.JSC$8375_flushTimer.listen("tick",this.flush,!1,this)}; AQa.prototype.flush=function(){if(this.eventsCount){var a={loggedEvents:yQa(this.loggedEventRegister),unloggedEvents:yQa(this.unloggedEventRegister)};if(x("export_player_version_to_ytconfig")){var b;(b=Vk("PLAYER_CLIENT_VERSION"))?(b=b.split("-")[0].replace(/\./g,""),b=isNaN(Number(b))?"0":b):b="";var c=Vk("PLAYER_CLIENT_VERSION");if(c){c=c.split("-");var d="";c.length>1&&(d=c[c.length-1]);c=sQa(d.startsWith("canary_experiment")?"canary":d.startsWith("canary_control")?"control":"none")}else c="CLIENT_CANARY_STATE_UNKNOWN"; a.dimensions={playerClientVersion:b,playerCanaryState:c}}this.logTransport.flush(a);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$8375_flushTimer.enabled&&this.JSC$8375_flushTimer.stop()}}; var BQa=function(a){vy==null&&(vy=new AQa);var b=vy;var c=b.loggedEventRegister;a.dimensions=a.dimensions||{};a.dimensions.csn=Tv()||"";var d=wQa(a.dimensions).join(";");if(a.records!=null)if(c.events.has(d)){var e;(e=c.events.get(d).records)==null||e.push.apply(e,ia(a.records))}else c.events.set(d,a);b.JSC$8375_flushTimer.enabled||b.JSC$8375_flushTimer.start();b.eventsCount++;b.eventsCount>=100&&b.flush()};var zQa=function(){}; zQa.prototype.flush=function(a,b){x("enable_client_sli_logging")&&ao("sliEventBatch",a,{sendIsolatedPayload:!!b})};var vy;var CQa=function(a,b){this.name=a;this.sliId=b;this.timeoutMs=12E4;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}}; CQa.prototype.getId=function(){return this.sliId}; var DQa=function(a,b){b=b===void 0?{}:b;a.ongoing||(a.ongoing=!0,a.dimensions=b,a.logSliId=mMa(8),BQa({dimensions:a.dimensions,records:[{name:a.name,state:"SLI_STATE_START",sliId:a.logSliId}]}),a.timeoutMs>0&&(a.timeoutHandle=setTimeout(function(){uy(a,"TIMEOUT")},a.timeoutMs)))},uy=function(a,b){if(a.ongoing){a.timeoutMs>0&&clearTimeout(a.timeoutHandle); a.ongoing=!1;var c=a.dimensions,d=a.name;a:{for(var e=l(Object.entries(wOa)),f=e.next();!f.done;f=e.next())if(f=l(f.value),f.next(),f=f.next().value,f==="SLI_STATUS_"+b){b=f;break a}b="SLI_STATUS_UNKNOWN"}c={dimensions:c,records:[{name:d,status:b,state:"SLI_STATE_END",sliId:a.logSliId}]};ty.register.delete(a.name+"_"+a.sliId);BQa(c)}}; function EQa(a,b){return uQa(a,b,function(){return new CQa(a,b)})} ;function wy(){return EQa("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST")} function xy(){return EQa("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION")} ;var FQa=function(){gy.apply(this,arguments)}; k(FQa,gy);FQa.prototype.getAssociations=function(){return[]};var GQa=new Qk("highlightTextDecoratorColorMapExtension");var HQa=new Qk("styleRunColorMapExtension");var yy=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};va("yt.msgs_",yy);function zy(a,b,c){b=b===void 0?{}:b;a=(a=a in yy?yy[a]:c)||"";c={};for(var d in b){c={key$jscomp$708:c.key$jscomp$708};c.key$jscomp$708=d;var e=function(f){return function(){return String(b[f.key$jscomp$708])}}(c); a=a.replace(new RegExp("\\$\\{"+c.key$jscomp$708+"\\}","gi"),e);a=a.replace(new RegExp("\\$"+c.key$jscomp$708,"gi"),e)}return a} function Ay(a,b){return IQa(a in yy?yy[a]:{},b)} function IQa(a,b){var c=Vk("I18N_PLURAL_RULES");c||(c=function(d){return d==1?"one":"other"}); return(a=a["case"+b]||a[c(b)])?a.replace("#",b.toString()):b+""} ;var JQa=new Ql("yt-menu"),KQa=function(){},MQa=function(a,b,c){a=b=="right-click"?c.rightClickMenuPopupHint:c.menuPopupHint; if(!(LQa(b)>10))return b=b||"default",JQa.set(""+b+"-impression",LQa(b)+1),a},LQa=function(a){return parseInt(JQa.get(""+(a||"default")+"-impression")||0,10)}; Da(KQa);var By=function(){if(this.constructor===By)throw new TypeError("VisibilityObserver cannot be instantiated directly.")}; By.prototype.dispose=function(){}; By.prototype.disconnect=function(){}; By.prototype.observe=function(a,b,c){return{element:a,option:c}}; By.prototype.unobserveByKey=function(){};var NQa=function(a,b){b=b===void 0?0:b;By.call(this);this.viewroot=a;this.defaultPrescanHeight=b;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),a?{root:a,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map}; k(NQa,By);g=NQa.prototype;g.dispose=function(){this.disconnect();this.handlers.clear()}; g.disconnect=function(a){this.isConnected=!1;this.pauseObservingUntilReconnect=a===void 0?!1:a;this.observer.disconnect();a=l(this.prescanObservers.values());for(var b=a.next();!b.done;b=a.next())b.value.disconnect()}; g.handleObserveEvent=function(a){a=l(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=this.handlers.get(b.target);if(c){var d=b.isIntersecting;c=l(c);for(var e=c.next();!e.done;e=c.next()){var f=l(e.value);e=f.next().value;f=f.next().value;e&&(e.state==="visible"&&d||e.state==="hidden"&&!d)&&(f(b.target,e.state),e.calledOnce&&this.unobserveByKey({element:b.target,option:e}))}}}}; g.handlePrescanEvent=function(a){a=l(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=this.handlers.get(b.target);if(c&&b.isIntersecting){c=l(c);for(var d=c.next();!d.done;d=c.next()){var e=l(d.value);d=e.next().value;e=e.next().value;d&&d.state==="prescan"&&(e(b.target,d.state),d.calledOnce&&this.unobserveByKey({element:b.target,option:d}))}}}}; g.observe=function(a,b,c){var d=(d=this.handlers.get(a))&&d.has(c)?{element:a,option:c}:void 0;if(d)return d;d={element:a,option:c};this.handlers.has(a)||this.handlers.set(a,new Map);var e=this.handlers.get(a);e&&!e.has(c)&&e.set(c,b);this.pauseObservingUntilReconnect||(c.state==="prescan"&&(b=this.defaultPrescanHeight,a.hasAttribute("prescan-height")&&(c=Number(a.getAttribute("prescan-height")),isNaN(c)||(b=c)),this.prescanObservers.has(b)?b=this.prescanObservers.get(b):(c="-0.1px -0.1px "+b+"px -0.1px", c=new IntersectionObserver(this.handlePrescanEvent.bind(this),this.viewroot?{root:this.viewroot,rootMargin:c}:{rootMargin:c}),this.prescanObservers.set(b,c),b=c),b.observe(a)),this.observer.observe(a));return d}; g.unobserveByKey=function(a){var b=this.handlers.get(a.element);if(b&&b.has(a.option)){b.delete(a.option);if(a&&a.option.state==="prescan")for(var c=l(this.prescanObservers.values()),d=c.next();!d.done;d=c.next())d.value.unobserve(a.element);b.size===0&&(this.handlers.delete(a.element),this.observer.unobserve(a.element))}};function OQa(a){if(window.IntersectionObserver)return new NQa(a,400);throw new TypeError("Non-IntersectionObserver version of VisibilityObserver is not yet implemented")} ;var PQa=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],Cy=function(){var a,b=this;this.JSC$8414_actionRouter=a=a===void 0?Ws.getInstance():a;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return b.visibilityObserver}, getVisibilityObservedElementHandlerKeys:function(){return b.visibilityObservedElementHandlerKeys}}},QQa; Cy.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&x("kevlar_use_vimio_behavior")&&Vk("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=OQa())}; Cy.prototype.dispose=function(){this.visibilityMonitor&&Wi(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()}; Cy.prototype.handleVisibilityRefreshed=function(){for(var a=l(this.targetMap.entries()),b=a.next();!b.done;b=a.next()){var c=l(b.value);b=c.next().value;c=c.next().value;RQa(this,b,c)}}; var SQa=function(a,b,c){Dy(a,c);var d=a.targetMap.get(b);d||(d={},a.targetMap.set(b,d));d.element=c;a.targetedElements.set(c,b);RQa(a,b,d)},Dy=function(a,b){var c=a.targetedElements.get(b); if(c){var d=a.targetMap.get(c);d&&(delete d.element,a.targetMap.set(c,d));a.targetedElements.delete(b);a.visibilityObserver&&a.visibilityObservedElementHandlerKeys&&(c=a.visibilityObservedElementHandlerKeys.get(b))&&(a.visibilityObserver.unobserveByKey(c),a.visibilityObservedElementHandlerKeys.delete(b))}},RQa=function(a,b,c){var d=c.action,e=c.element; e&&d&&(PQa.includes(b)||Vk("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||a.visibilityMonitor&&a.visibilityMonitor.isNodeVisible(e)?TQa(a,b,c):a.visibilityObserver&&(a.visibilityObservedElementHandlerKeys||(a.visibilityObservedElementHandlerKeys=new WeakMap),d=a.visibilityObserver.observe(e,function(){TQa(a,b,c);a.visibilityObservedElementHandlerKeys.delete(e)},{calledOnce:!0, state:"visible"}),a.visibilityObservedElementHandlerKeys.set(e,d)))},TQa=function(a,b,c){var d=c.action; (c=c.element)&&d&&(pCa(a.JSC$8414_actionRouter,[d],c),a.targetMap.delete(b),a.targetedElements.delete(c),a.triggeredTargets.add(b))},Ey=function(){QQa||(QQa=new Cy); return QQa};function UQa(a){var b=Vk("INNERTUBE_HOST_OVERRIDE");b&&(a=String(b)+String(Vc(a)));return a} function VQa(a){var b={};x("json_condensed_response")&&(b.prettyPrint="false");return a=al(a,b||{},!1)} function Fy(a,b,c){c=c===void 0?{}:c;a={method:b===void 0?"POST":b,mode:bl(a)?"same-origin":"cors",credentials:bl(a)?"same-origin":"include"};b={};for(var d=l(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,c[e]&&(b[e]=c[e]);Object.keys(b).length>0&&(a.headers=b);return a} function Gy(a,b){b=b===void 0?{}:b;return"service:"+a+"/"+Object.keys(b).sort().map(function(c){return c+":"+b[c]}).join("/")} ;var WQa="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" "); function Hy(a,b,c,d){d=d===void 0?!0:d;var e=Vk("VALID_SESSION_TEMPDATA_DOMAINS",[]),f=Tc(window.location.href);f&&e.push(f);f=Tc(a);if(yc(e,f)||!f&&a.lastIndexOf("/",0)==0)if(e=document.createElement("a"),Jb(e,a),a=e.href)if(a=Vc(a),a=Wc(a))d&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:Tv()},b)),c?(c=parseInt(c,10),isFinite(c)&&c>0&&XQa(a,b,c)):XQa(a,b)} function XQa(a,b,c){a=YQa(a);b=b?Zc(b):"";c=c||5;(jja()||Xl()||Nna()||!Vk("EOM_VISITOR_DATA"))&&xl(a,b,c)} function YQa(a){for(var b=l(WQa),c=b.next();!c.done;c=b.next())a=dd(a,c.value);return"ST-"+Pc(a).toString(36)} ;function Iy(a){a&=16777215;a=[(a&16711680)>>16,(a&65280)>>8,a&255];return GLa(a[0],a[1],a[2])} function Jy(a){a=[(a&16711680)>>>16,(a&65280)>>>8,a&255,(a&4278190080)>>>24];if(!Xba(a,function(b){return b===(b&255)}))throw Error("\"("+a.join(",")+"\") is not a valid RGBA color"); return"rgba("+a[0]+","+a[1]+","+a[2]+","+(a[3]/255).toFixed(3)+")"} function ZQa(a){return[(a&16711680)>>>16,(a&65280)>>>8,a&255]} function $Qa(a){a=a.map(function(b){b/=255;return b<=.03928?b/12.92:Math.pow((b+.05)/1.05,2.4)}); return a[0]*.2126+a[1]*.7152+a[2]*.0722} function aRa(a){return $Qa(ZQa(a&16777215))<.5} function Ky(a,b){a=ZQa(a);return"rgba("+a[0]+", "+a[1]+", "+a[2]+", "+b+")"} function Ly(a){return(a&4278190080)>>>24===0?Ky(a,"1"):Jy(a)} ;var bRa=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);function My(a){a=a===void 0?!1:a;Bl();var b="USER_INTERFACE_THEME_LIGHT";Cl(0,165)?b="USER_INTERFACE_THEME_DARK":Cl(0,174)?b="USER_INTERFACE_THEME_LIGHT":cRa()&&window.matchMedia("(prefers-color-scheme: dark)").matches&&(b="USER_INTERFACE_THEME_DARK");return a?b:dRa()||b} function cRa(){return!x("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches} function dRa(){var a=a===void 0?window.location.href:a;if(x("kevlar_disable_theme_param"))return null;Uc(a);try{var b=$k(a).theme;return bRa.get(b)||null}catch(c){}return null} ;var Ny=function(){this.tokenJars={};if(this.cookiesEnabled=wna()){var a=yl("CONSISTENCY");a&&eRa(this,{encryptedTokenJarContents:a})}},fRa=function(){Ny.instance||(Ny.instance=new Ny); return Ny.instance}; Ny.prototype.handleResponse=function(a,b){if(!b)throw Error("request needs to be passed into ConsistencyService");var c,d;b=((c=b.innerTubeRequest.context)==null?void 0:(d=c.request)==null?void 0:d.consistencyTokenJars)||[];var e;(a=(e=a.responseContext)==null?void 0:e.consistencyTokenJar)&&this.replace(b,a)}; Ny.prototype.replace=function(a,b){a=l(a);for(var c=a.next();!c.done;c=a.next())delete this.tokenJars[c.value.encryptedTokenJarContents];eRa(this,b)}; var eRa=function(a,b){if(b.encryptedTokenJarContents&&(a.tokenJars[b.encryptedTokenJarContents]=b,typeof b.expirationSeconds==="string")){var c=Number(b.expirationSeconds);setTimeout(function(){delete a.tokenJars[b.encryptedTokenJarContents]},c*1E3); a.cookiesEnabled&&xl("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}};var gRa=window.location.hostname.split(".").slice(-2).join("."),Oy=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var a=Vk("LOCATION_PLAYABILITY_TOKEN");Vk("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=hRa(this))&&(a=this.localStorage.get("yt-location-playability-token"));a&&(this.locationPlayabilityToken=a,this.positionForXGeoHeader=this.mostRecentPosition=void 0)},Py; Oy.getInstance=function(){Py=xa("yt.clientLocationService.instance");Py||(Py=new Oy,va("yt.clientLocationService.instance",Py));return Py}; Oy.prototype.setLocationOnInnerTubeContext=function(a){a.client||(a.client={});if(this.mostRecentPosition)a.client.locationInfo||(a.client.locationInfo={}),a.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),a.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),a.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),a.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken|| this.locationPlayabilityToken)a.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken}; Oy.prototype.getXGeoHeader=function(){if(this.positionForXGeoHeader){var a=this.positionForXGeoHeader;var b=Math.floor(a.coords.longitude*1E7);var c=Math.floor(a.coords.latitude*1E7);var d=new mLa;c=dg(d,1,c);b=dg(c,2,b);c=new Ew;c=hg(c,1,1);c=hg(c,2,12);c=hg(c,9,8);c=eg(c,3,a.timestamp*1E3);a=qf(c,7,Ee(a.coords.accuracy*1E3));a=hg(a,25,2);a=Gf(a,5,b);a="w "+Fd(xLa(a),4)}else a=null;return a}; Oy.prototype.handleResponse=function(a){var b;a=(b=a.responseContext)==null?void 0:b.locationPlayabilityToken;a!==void 0&&(this.locationPlayabilityToken=a,this.positionForXGeoHeader=this.mostRecentPosition=void 0,Vk("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=hRa(this))&&this.localStorage.set("yt-location-playability-token",a,15552E3):xl("YT_CL",JSON.stringify({loctok:a}),15552E3,gRa,!0))}; var hRa=function(a){return a.localStorage===void 0?new Ql("yt-client-location"):a.localStorage}; g=Oy.prototype;g.clearLocationPlayabilityToken=function(a){a==="TVHTML5"?(this.localStorage=hRa(this))&&this.localStorage.remove("yt-location-playability-token"):vna("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)}; g.clearCurrentPosition=function(){this.positionForXGeoHeader=this.mostRecentPosition=void 0}; g.getCurrentPositionFromGeolocation=function(a){var b=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var c=!1,d=1E4;Vk("INNERTUBE_CLIENT_NAME")==="MWEB"&&(c=!0,d=15E3);return new Promise(function(e,f){navigator.geolocation.getCurrentPosition(function(h){b.positionForXGeoHeader=(a==null?0:a.addToHeaders)?h:void 0;b.mostRecentPosition=h;e(h)},function(h){f(h)},{enableHighAccuracy:c, maximumAge:0,timeout:d})})}; g.createUnpluggedLocationInfo=function(a){var b={};a=a.coords;if(a==null?0:a.latitude)b.latitudeE7=Math.floor(a.latitude*1E7);if(a==null?0:a.longitude)b.longitudeE7=Math.floor(a.longitude*1E7);if(a==null?0:a.accuracy)b.locationRadiusMeters=Math.round(a.accuracy);return b}; g.createLocationInfo=function(a){var b={};a=a.coords;if(a==null?0:a.latitude)b.latitudeE7=Math.floor(a.latitude*1E7);if(a==null?0:a.longitude)b.longitudeE7=Math.floor(a.longitude*1E7);return b};function iRa(a,b,c,d,e){b=b===void 0?!1:b;c=c===void 0?!1:c;var f=Vk("INNERTUBE_CONTEXT");if(!f)return co(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};f=Yh(f);x("web_no_tracking_params_in_shell_killswitch")||delete f.clickTracking;f.client||(f.client={});var h=f.client;h.clientName==="MWEB"&&h.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(h.clientFormFactor=Vk("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");h.screenWidthPoints=window.innerWidth;h.screenHeightPoints=window.innerHeight; h.screenPixelDensity=Math.round(window.devicePixelRatio||1);h.screenDensityFloat=window.devicePixelRatio||1;h.utcOffsetMinutes=-Math.floor(new Date().getTimezoneOffset());h.userInterfaceTheme=My();if(!b){var m=Hna();m&&(h.connectionType=m);x("web_log_effective_connection_type")&&(m=Ina())&&(f.client.effectiveConnectionType=m)}var p;if(x("web_log_memory_total_kbytes")&&((p=ua.navigator)==null?0:p.deviceMemory)){var q;p=(q=ua.navigator)==null?void 0:q.deviceMemory;f.client.memoryTotalKbytes=""+p*1E6}b&& d&&!x("web_it_context_set_original_url_ks")&&(q=d,p=ua.location.href,p instanceof Gp||(p=Qp(p)),q instanceof Gp||(q=Qp(q)),q=p.resolve(q),h.originalUrl=q.toString());x("web_gcf_hashes_innertube")&&(m=Poa())&&(q=m.coldConfigData,p=m.coldHashData,m=m.hotHashData,f.client.configInfo=f.client.configInfo||{},q&&(f.client.configInfo.coldConfigData=q),p&&(f.client.configInfo.coldHashData=p),m&&(f.client.configInfo.hotHashData=m));q=$k(ua.location.href);!x("web_populate_internal_geo_killswitch")&&q.internalcountrycode&&( h.internalGeo=q.internalcountrycode);!x("web_populate_client_screen_killswitch")&&e&&(h.clientScreen=e);h.clientName==="MWEB"||h.clientName==="WEB"?(h.mainAppWebInfo||(h.mainAppWebInfo={}),h.mainAppWebInfo.graftUrl=d||ua.location.href,x("kevlar_woffle")&&qna.instance&&(d=qna.instance,h.mainAppWebInfo.pwaInstallabilityStatus=!d.appInstalledEventFired&&d.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),h.mainAppWebInfo.webDisplayMode=rna(),h.mainAppWebInfo.isWebNativeShareAvailable= navigator&&navigator.share!==void 0):h.clientName==="TVHTML5"&&(!x("web_lr_app_quality_killswitch")&&(d=Vk("LIVING_ROOM_APP_QUALITY"))&&(h.tvAppInfo=Object.assign(h.tvAppInfo||{},{appQuality:d})),d=Vk("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(h.tvAppInfo=Object.assign(h.tvAppInfo||{},{certificationScope:d}));if(!x("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!=="undefined")try{var t=new Intl.DateTimeFormat().resolvedOptions().timeZone;break a}catch(R){}t=void 0}t&&(h.timeZone=t)}(t=Fma())? h.experimentsToken=t:delete h.experimentsToken;t=Gma();h=fRa();f.request=Object.assign({},f.request,{internalExperimentFlags:t,consistencyTokenJars:uia(h.tokenJars)});!x("web_prequest_context_killswitch")&&(t=Vk("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(f.request.externalPrequestContext=t);h=Bl();t=Cl(0,58);h=h.get("gsml","");f.user=Object.assign({},f.user);t&&(f.user.enableSafetyMode=t);h&&(f.user.lockedSafetyMode=!0);x("warm_op_csn_cleanup")?c&&(b=Tv())&&(f.clientScreenNonce=b):!b&&(b=Tv())&&(f.clientScreenNonce= b);a&&(f.clickTracking={clickTrackingParams:a});if(a=xa("yt.mdx.remote.remoteClient_"))f.remoteClient=a;Oy.getInstance().setLocationOnInnerTubeContext(f);try{var u=xma(),v=u.bid;delete u.bid;f.adSignalsInfo={params:[],bid:v};for(var w=l(Object.entries(u)),y=w.next();!y.done;y=w.next()){var A=l(y.value),C=A.next().value,I=A.next().value;u=C;v=I;a=void 0;(a=f.adSignalsInfo.params)==null||a.push({key:u,value:""+v})}var K,N;if(((K=f.client)==null?void 0:K.clientName)==="TVHTML5"||((N=f.client)==null? void 0:N.clientName)==="TVHTML5_UNPLUGGED"){var L=Vk("INNERTUBE_CONTEXT");L.adSignalsInfo&&(f.adSignalsInfo.advertisingId=L.adSignalsInfo.advertisingId,f.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",f.adSignalsInfo.limitAdTracking=L.adSignalsInfo.limitAdTracking,L.adSignalsInfo.atTrackingManagerAuthorizationStatus!==void 0&&(f.adSignalsInfo.atTrackingManagerAuthorizationStatus=L.adSignalsInfo.atTrackingManagerAuthorizationStatus))}}catch(R){co(R)}return f} ;var jRa=function(a,b){var c=xy();a||(a="unknown");b||(b="unknown");a="MAIN_APP_WEB_PAGE_TYPE_"+a.toUpperCase();a in xOa||(a="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");b="MAIN_APP_WEB_REQUEST_TYPE_"+b.toUpperCase();b in yOa||(b="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");DQa(c,{mainAppWeb:{pageType:a,requestType:b,isShellLoad:!!Vk("IS_SHELL_LOAD",!1)}})},kRa={start:function(){DQa(wy(),{mainAppWeb:{isShellLoad:!!Vk("IS_SHELL_LOAD",!1)}})}, success:function(){uy(wy(),"SUCCESS")}, failure:function(){uy(wy(),"FAILURE")}, cancelled:function(){uy(wy(),"CANCELLED")}};function Qy(a){a.map(function(b){return b.source}).join("|")} Qy([/^https:\/\/([\w-]*\.)*youtube\.com.*/,/^https:\/\/([\w-]*\.)*gstatic\.com.*/]);Qy([/\.css$/,/\.js$/,/\.webm$/,/\.png$/]);Qy([/\.css$/,/\.js$/,/\.ico$/,/\/ytmweb\/_\/js\//,/\/ytmweb\/_\/ss\//,/\/kabuki\/_\/js\//,/\/kabuki\/_\/ss\//,/\/ytmainappweb\/_\/js\//,/\/ytmainappweb\/_\/ss\//,/\/ytmusicweb\/_\/js\//,/\/ytmusicweb\/_\/ss\//,/\/music_integrations\/_\/js\//,/\/music_integrations\/_\/ss\//]);Qy([/purge_shell=1/]);var Ry=void 0;Ry=Ry===void 0?[]:Ry; for(var lRa=[],mRa=l(Cma),nRa=mRa.next();!nRa.done;nRa=mRa.next())lRa.push({key:nRa.value});for(var oRa=l(Ry),pRa=oRa.next();!pRa.done;pRa=oRa.next())lRa.push(pRa.value);var qRa=la(["/sw.js"]),rRa=la(["/sw.js?0"]);Lh(qRa);var sRa=Lh(rRa);function tRa(){navigator.serviceWorker.getRegistrations().then(function(a){a.forEach(uRa)})} function uRa(a){a&&mca(navigator.serviceWorker,sRa,{scope:a.scope||ml("service_worker_scope")||"/"})} ;var Sy=Symbol("updateBaseFormField");function vRa(a,b,c,d){var e=Object.assign({},c);if(a.length===0)throw Error("Empty path");var f=a[0];if(typeof f==="string"){if(!c[f])throw Error("Path "+Ty.apply(null,ia(a))+" points to a non existing field");var h=c[f];c=a.slice(1);if(c.length===0){if(h.kind===1)throw Error("Accessor "+Ty(f)+" points to a nested field, which can't be updated");b=wRa(h,b)}else{if(h.kind!==1)throw Error("The path tried to recurse into "+Ty.apply(null,[f].concat(ia(c)))+", but the field isn't nested");b=vRa(c,b,h.value, d);b=wRa(h,{value:b})}e[f]=b}else{h=f.name;if(!c[h])throw Error("Path "+Ty.apply(null,ia(a))+" points to a non existing field "+String(h));c=c[h];if(c.kind!==2)throw Error("Path "+Ty.apply(null,ia(a))+" must point to a NestedArrayFormField");a=a.slice(1);var m=f.index;if(a.length===0)throw Error("Accessor "+Ty(f)+" can't do updates since it has an index");var p=c.value;if(m<0||m>=p.length)throw Error("Path "+Ty.apply(null,[f].concat(ia(a)))+" is out of bounds (length="+p.length+")");f=[].concat(ia(p.slice(0, m)),[vRa(a,b,p[m],d)],ia(p.slice(m+1)));f=c.updateExistingSubForms(f);e[h]=f}d==null||d(e);return e} function wRa(a,b){if(a[Sy]){var c,d=(c=b.fieldState)!=null?c:{value:b.value};return a[Sy](d)}if(a.update)return a.update(b.value);throw Error("Field "+a+" doesn't have an update method")} function xRa(a){return typeof a==="string"?a:a.name+"["+a.index+"]"} function Ty(){return sa.apply(0,arguments).map(xRa).join(".")} ;var yRa;var zRa,ARa=function(){return zRa!==void 0?zRa:zRa=document.createElement("template")}; document.head.appendChild(ARa().content);var BRa,CRa=function(){return BRa!==void 0?BRa:BRa=document.createElement("template")}; document.head.appendChild(CRa().content);var DRa;var ERa,FRa=function(){return ERa!==void 0?ERa:ERa=document.createElement("template")}; document.head.appendChild(FRa().content);var GRa;var HRa=document.head,IRa=HRa.appendChild,JRa;if(GRa===void 0){var Uy=document.createElement("template");Q(Uy,"");Uy.content.insertBefore(FRa().content.cloneNode(!0),Uy.content.firstChild);GRa=Uy}JRa=GRa;IRa.call(HRa,JRa.content);var KRa,LRa=function(){return KRa!==void 0?KRa:KRa=document.createElement("template")}; document.head.appendChild(LRa().content);var MRa;var NRa,ORa=function(){return NRa!==void 0?NRa:NRa=document.createElement("template")}; document.head.appendChild(ORa().content);var PRa;var QRa=document.head,RRa=QRa.appendChild,SRa;if(PRa===void 0){var Vy=document.createElement("template");Q(Vy,"");Vy.content.insertBefore(ORa().content.cloneNode(!0),Vy.content.firstChild);PRa=Vy}SRa=PRa;RRa.call(QRa,SRa.content);var TRa,URa=function(){return TRa!==void 0?TRa:TRa=document.createElement("template")}; document.head.appendChild(URa().content);var VRa;var WRa=document.head,XRa=WRa.appendChild,YRa;if(VRa===void 0){var Wy=document.createElement("template");Q(Wy,"");Wy.content.insertBefore(URa().content.cloneNode(!0),Wy.content.firstChild);VRa=Wy}YRa=VRa;XRa.call(WRa,YRa.content);var ZRa=document.head,$Ra=ZRa.appendChild,aSa;if(MRa===void 0){var Xy=document.createElement("template");Q(Xy,"");Xy.content.insertBefore(LRa().content.cloneNode(!0),Xy.content.firstChild);MRa=Xy}aSa=MRa;$Ra.call(ZRa,aSa.content);var bSa=document.head,cSa=bSa.appendChild,dSa;if(DRa===void 0){var Yy=document.createElement("template");Q(Yy,"");Yy.content.insertBefore(CRa().content.cloneNode(!0),Yy.content.firstChild);Yy.content.insertBefore(ARa().content.cloneNode(!0),Yy.content.firstChild);DRa=Yy}dSa=DRa;cSa.call(bSa,dSa.content);var fSa=function(a,b,c,d,e){this.prefix=b;this.prefixMapping=e;this.SHARED_RENDERERS_={aboutThisAdRenderer:!0,bubbleHintRenderer:!0,confirmDialogRenderer:!0,fancyDismissibleDialogRenderer:!0,mealbarPromoRenderer:!0,notificationActionRenderer:!0,reportDetailsFormRenderer:!0,reportFormModalRenderer:!0,sharingEmbedRenderer:!0,sharingRenderer:!0,showActionDialogRenderer:!0,sortFilterSubMenuPopupRenderer:!0,tooltipRenderer:!0,unifiedSharePanelRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0, unpluggedPauseMembershipDialogRenderer:!0,upsellDialogRenderer:!0,ypcOffersModalRenderer:!0,ypcUpgradeDialogRenderer:!0,loadingRenderer:!0,sheetViewModel:!0,miniAppGameInfoDialogViewModel:!0,profileCardViewModel:!0,genAiFeedbackFormViewModel:!0,dialogViewModel:!0,gulpTriggeringDialogViewModel:!0,imageEditorRenderer:!0,storiesViewerViewModel:!0,infoPanelDetailsViewModel:!0};this.popupConfig=c||eSa;this.forwardedEvents=a||[];this.forwardingEnabledPopups=new Set(d||[])},gSa=function(a,b){var c; return((c=a.prefixMapping)==null?0:c[b])?a.prefixMapping[b]:a.SHARED_RENDERERS_.hasOwnProperty(b)?"yt":a.prefix},Zy={DIALOG:{component:"tp-yt-paper-dialog", properties:{withBackdrop:!0,modern:!0,modal:!1},preventAutonav:!0},FULLSCREEN_OVERLAY:{component:null,properties:{withBackdrop:!0}},DROPDOWN:{component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,addSpacing:!0},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0},HINT:{component:"tp-yt-iron-dropdown",properties:{allowOutsideScroll:!0,dynamicAlign:!1,horizontalAlign:"center",noOverlap:!0,scrollAction:"refit",verticalAlign:"bottom", verticalOffset:15,withBackdrop:!1},positionalProperties:{OPEN_POPUP_POSITION_TOP:{horizontalAlign:"center",horizontalOffset:0,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_TOPLEFT:{horizontalAlign:"right",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_TOPRIGHT:{horizontalAlign:"left",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_LEFT:{horizontalAlign:"right", horizontalOffset:12,verticalAlign:"middle",verticalOffset:0},OPEN_POPUP_POSITION_RIGHT:{horizontalAlign:"left",horizontalOffset:12,verticalAlign:"middle",verticalOffset:0},OPEN_POPUP_POSITION_BOTTOM:{horizontalAlign:"center",horizontalOffset:0,verticalAlign:"top",verticalOffset:12},OPEN_POPUP_POSITION_BOTTOMLEFT:{horizontalAlign:"right",horizontalOffset:12,shiftedHorizontalOffset:24,verticalAlign:"top",verticalOffset:12},OPEN_POPUP_POSITION_BOTTOMRIGHT:{horizontalAlign:"left",horizontalOffset:-12, shiftedHorizontalOffset:24,verticalAlign:"top",verticalOffset:12}},forceCloseOnOutsideClick:!0,forceFocus:!0,slotName:"dropdown-content"},HINT_PERSISTENT:{component:"tp-yt-iron-dropdown",properties:{allowOutsideScroll:!0,dynamicAlign:!1,horizontalAlign:"center",noOverlap:!0,scrollAction:"refit",verticalAlign:"bottom",verticalOffset:15,withBackdrop:!1,noAutoFocus:!0},positionalProperties:{OPEN_POPUP_POSITION_TOP:{horizontalAlign:"center",horizontalOffset:0,verticalAlign:"bottom",verticalOffset:15}, OPEN_POPUP_POSITION_TOPLEFT:{horizontalAlign:"right",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_TOPRIGHT:{horizontalAlign:"left",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_LEFT:{horizontalAlign:"right",horizontalOffset:12,verticalAlign:"middle",verticalOffset:0},OPEN_POPUP_POSITION_RIGHT:{horizontalAlign:"left",horizontalOffset:12,verticalAlign:"middle",verticalOffset:0}, OPEN_POPUP_POSITION_BOTTOM:{horizontalAlign:"center",horizontalOffset:0,verticalAlign:"top",verticalOffset:12},OPEN_POPUP_POSITION_BOTTOMLEFT:{horizontalAlign:"right",horizontalOffset:12,shiftedHorizontalOffset:24,verticalAlign:"top",verticalOffset:12},OPEN_POPUP_POSITION_BOTTOMRIGHT:{horizontalAlign:"left",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"top",verticalOffset:12}},slotName:"dropdown-content"},LOCKED_OVERLAY_DIALOG:{component:"tp-yt-paper-dialog",properties:{restoreFocusOnClose:!0, scrollAction:"lock",withBackdrop:!0},preventAutonav:!0}};Zy.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!x("kevlar_mealbar_above_player"),modern:Vk("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX",noAutoFocus:!0,noCancelOnOutsideClick:!0,withBackdrop:!1,restoreFocusOnClose:!0},styles:{position:"fixed",top:"auto",left:"0",right:"auto",bottom:"0",margin:"16px"},rtlStyles:{position:"fixed",top:"auto",right:"0",left:"auto",bottom:"0",margin:"16px"}}; Zy.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};Zy.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};Zy.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0}; Zy.MOLE={component:null,styles:{position:"fixed",top:"auto",left:"auto",right:"0",bottom:"0",zIndex:"var(--ytd-z-index-miniplayer)"},rtlStyles:{position:"fixed",top:"auto",left:"0",right:"auto",bottom:"0",zIndex:"var(--ytd-z-index-miniplayer)"}}; Zy.NOTIFICATION={component:null,styles:{position:"fixed",top:"0",left:"auto",right:"0",bottom:"auto",marginTop:"60px",zIndex:"var(--ytd-z-index-notification)"},rtlStyles:{position:"fixed",top:"0",left:"0",right:"auto",bottom:"auto",marginTop:"60px",zIndex:"var(--ytd-z-index-notification)"},preventAutonav:!0}; Zy.OVERLAY_DROPDOWN={component:"tp-yt-iron-dropdown",properties:{noOverlap:!1,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0}; Zy.RESPONSIVE_DROPDOWN={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1},narrowProperties:{horizontalAlign:null,verticalAlign:null,dynamicAlign:!1,withBackdrop:!0},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0}; Zy.CONTEXTUAL_SHEET={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,avoidOuterEdge:!0,addSpacing:!0,forceVerticalOverlap:!1},positionalProperties:{OPEN_POPUP_POSITION_RIGHT:{horizontalAlign:"left",verticalAlign:"middle"},OPEN_POPUP_POSITION_BOTTOMLEFT:{horizontalAlign:"right",verticalAlign:"top"}},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0,styles:{"max-width":"400px"}}; Zy.SIDE_OPENING_CONTEXTUAL_SHEET={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,avoidOuterEdge:!0,addSpacing:!0,forceVerticalOverlap:!0},positionalProperties:{OPEN_POPUP_POSITION_BOTTOMRIGHT:{horizontalAlign:"left",verticalAlign:"top"}},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0,styles:{"max-width":"400px"}}; Zy.SURVEY={component:"tp-yt-paper-dialog",properties:{withBackdrop:!1,noCancelOnOutsideClick:!0,noAutoFocus:!0},styles:{position:"fixed",top:"auto",left:"auto",right:"0",bottom:"0"},rtlStyles:{position:"fixed",top:"auto",left:"0",right:"auto",bottom:"0"}};Zy.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};Zy.TOAST={component:null,properties:{}};var eSa=Zy;var hSa=new function(a,b,c){this.supportedPopups=a;this.navigationEndpointPopupMap=b;this.popupTypeMap=c;this.supportedPopups=a;this.navigationEndpointPopupMap=b;this.popupTypeMap=c}({aboutThisAdRenderer:!0, adFeedbackRenderer:!0,adInfoDialogRenderer:!0,addToPlaylistRenderer:!0,backstagePostDialogPopupRenderer:!0,bubbleHintRenderer:!0,channelCreationDialogRenderer:!0,channelWarmWelcomeRenderer:!0,channelWarmWelcomeContRenderer:!0,checkboxSurveyRenderer:!0,confirmDialogRenderer:!0,dismissalFollowUpRenderer:!0,enforcementMessageViewModel:!0,fancyDismissibleDialogRenderer:!0,formPopupRenderer:!0,gamingAccountLinkConfirmDialogRenderer:!0,gamingAccountLinkSettingRenderer:!0,hotkeyDialogRenderer:!0,sponsorshipConfirmCancelRenderer:!0, modalWithTitleAndButtonRenderer:!0,notificationActionRenderer:!0,reportFormModalRenderer:!0,searchSuggestionReportDialog:!0,sharingRenderer:!0,sharingEmbedRenderer:!0,menuPopupRenderer:!0,singleOptionSurveyRenderer:!0,surveyFollowUpRenderer:!0,unifiedSharePanelRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,ypcUpgradeDialogRenderer:!0,ypcOffersOverlayRenderer:!0,redCancelSurveyRenderer:!0,conversationSectionController:!0, conversationHighPriorityNotificationContentRenderer:!0},{adFeedbackEndpoint:"adFeedbackEndpoint.content",adInfoDialogEndpoint:"adInfoDialogEndpoint.dialog",createBackstagePostDialogEndpoint:"createBackstagePostDialogEndpoint.dialog",confirmDialogEndpoint:"confirmDialogEndpoint.content",managePurchaseEndpoint:"managePurchaseEndpoint.content",modalEndpoint:"modalEndpoint.modal",shareEndpoint:"shareEndpoint",shareEntityEndpoint:"shareEntityEndpoint",unlimitedFamilyFlowEndpoint:"unlimitedFamilyFlowEndpoint.unlimitedFamilyFlowEndpointSupportedRenderers", openPopupAction:"openPopupAction.popup",ypcCancelSurveyEndpoint:"ypcCancelSurveyEndpoint.surveySupportedRenderers"},{aboutThisAdRenderer:"DIALOG",adFeedbackRenderer:"DIALOG",adInfoDialogRenderer:"RESPONSIVE_DROPDOWN",addToPlaylistRenderer:x("desktop_add_to_playlist_renderer_dialog_popup")?"DIALOG":"RESPONSIVE_DROPDOWN",backstagePostDialogPopupRenderer:"DIALOG",bubbleHintRenderer:"HINT",checkboxSurveyRenderer:"SURVEY",confirmDialogRenderer:"DIALOG",dismissalFollowUpRenderer:"DIALOG",enforcementMessageViewModel:"LOCKED_MODAL", fancyDismissibleDialogRenderer:"DIALOG",gamingAccountLinkConfirmDialogRenderer:"DIALOG",gamingAccountLinkSettingRenderer:"DIALOG",hotkeyDialogRenderer:"DIALOG",sponsorshipConfirmCancelRenderer:"DIALOG",menuPopupRenderer:"RESPONSIVE_DROPDOWN",modalWithTitleAndButtonRenderer:"RESPONSIVE_DROPDOWN",notificationActionRenderer:"TOAST",reportFormModalRenderer:"DIALOG",searchSuggestionReportDialog:"DIALOG",sharingEmbedRenderer:"DIALOG",sharingRenderer:"RESPONSIVE_DROPDOWN",singleOptionSurveyRenderer:"SURVEY", surveyFollowUpRenderer:"SURVEY",unifiedSharePanelRenderer:"DIALOG",unlimitedFamilyMessageInterstitialRenderer:"DIALOG",unlimitedFamilyProfileInterstitialRenderer:"DIALOG",unpluggedPauseMembershipDialogRenderer:"DIALOG",ypcOffersOverlayRenderer:"DIALOG",ypcUpgradeDialogRenderer:"DIALOG",redCancelSurveyRenderer:"DIALOG",conversationSectionController:"MOLE",conversationHighPriorityNotificationContentRenderer:"NOTIFICATION"}),iSa=new fSa("yt-action yt-navigate yt-popup-canceled yt-popup-closed yt-popup-opened yt-service-request-completed yt-service-request-error yt-service-request-sent yt-lockup-requested".split(" "), "ytd");var jSa;var kSa;var $y=new Bn("ICON_MANAGER_TOKEN");var lSa=[48,20,18,16,15,13,12],mSa=new Map;function az(a){a=(a||"").split(":");a.length===1&&a.unshift("yt-icons");a[1]=a[1].toLowerCase();return a} var nSa=new Set,oSa=new Set,pSa=new Set,qSa=new Set,rSa=new Set,tSa=new Promise(function(a){var b=!1,c=!1,d=!1,e=[],f=function(h){if("detail"in h)if(h=h.detail,h.name==="yt-icons")sSa(h),b=!0;else if(h.name==="yt-sys-icons")sSa(h),c=!0;else{var m;((m=h.name)==null?0:m.includes("yt-sys-icons"))&&h.size!==24&&(sSa(h,!0),e.push(h.size),e.length===lSa.length&&(d=!0))}b&&c&&d&&(window.removeEventListener("iron-iconset-added",f),a())}; window.addEventListener("iron-iconset-added",f)}); function sSa(a,b){var c=(b=b===void 0?!1:b)?qSa:oSa,d=b?rSa:pSa;a.getIconNames().forEach(function(e){e=b?e:e.substring(e.indexOf(":")+1);a.name==="yt-icons"?nSa.add(e):e.includes("-filled")?c.add(e):d.add(e)})} function bz(a,b,c,d){c=c===void 0?!1:c;d=d===void 0?!1:d;var e,f,h;return ra(function(m){if(m.nextAddress==1)return m.yield(tSa,2);if(d)return m.return(nSa.has(a));e=c?qSa:oSa;f=c?rSa:pSa;return b?(h=a.includes("-filled")?a:a.concat("-filled"),m.return(e.has(h))):m.return(f.has(a))})} var uSa=new Map([["access_time","watch_later"],["add_friend","people"],["add_to_playlist","add"],["add_to_remote_queue","add_to_queue"],["answer_neither_satisfied_nor_dissatisfied","meh"],["answer_somewhat_dissatisfied","sad"],["answer_somewhat_satisfied","happy"],["answer_very_dissatisfied","very_sad"],["answer_very_satisfied","very_happy"],["arrow-back","arrow_back"],["arrow-drop-down","arrow_drop_down"],["arrow-forward","arrow_forward"],["arrow_solid_down","arrow_solid_down-filled"],["arrow_solid_up", "arrow_solid_up-filled"],["audiotrack","music"],["auto-awesome","auto_awesome"],["avatar_anonymous","account_circle"],["avatar_logged_out","account_circle"],["back","arrow_back"],["bar_horizontal","bar_horizontal"],["block","slash_circle_left"],["bookmark_border","bookmark"],["channel_notification_preference_off","notifications"],["channel_notification_preference_on","notifications_active"],["check_circle","check_circle_thick"],["check_circle_filled","check_circle_thick-filled"],["cloud_upload","cloud_arrow_up"], ["contact_support","help"],["content_cut","scissors"],["creation_live","live"],["creation_upload","my_videos"],["creation_upload_red","upload"],["delete_sweep","delete"],["dismissal","close"],["draft","paper_corner_folded"],["email","mail"],["emoji","very_happy"],["emoji_flags","flag"],["emoji_objects","course"],["emoji_people","very_happy"],["emoji_recent","watch_later"],["error_white","alert_circle"],["exit_app","exit_to_app"],["expand-less","collapse"],["expand-more","expand"],["expand_less","collapse"], ["expand_more","expand"],["external_link","open_in_new"],["face_filled_happy","face_happy_v2-filled"],["face_filled_meh","face_meh_v2-filled"],["face_filled_sad","face_sad_v2-filled"],["face_filled_unhappy","face_unhappy_v2-filled"],["face_filled_very_happy","face_very_happy_v2-filled"],["face_outlined_happy","face_happy_v2"],["face_outlined_meh","face_meh_v2"],["face_outlined_sad","face_sad_v2"],["face_outlined_unhappy","face_unhappy_v2"],["face_outlined_very_happy","face_very_happy_v2"],["guide_close", "chevron_left"],["help_outline","help"],["home","tab_home"],["info_outline","info"],["insert_chart","poll"],["insert_photo","image"],["launch","open_in_new"],["likes_playlist","like"],["live","radar_live"],["live_unlisted","link"],["local_offer","purchases"],["members_only_mode_off","message"],["money_fill_jpy","yen_sign_container"],["more_chevron","expand"],["more_horiz","more"],["music_note","music"],["music_repeat_all","loop"],["music_repeat_one","loop_one"],["music_shuffle","shuffle"],["my_channel", "account_circle"],["notifications_done_checkmark","check"],["notifications_none","notifications"],["official_artist_badge","music"],["outline_arrow_solid_down","arrow_solid_down"],["paid","creator_metadata_monetization"],["play_all","play_arrow"],["privacy_private","lock"],["privacy_unlisted","link"],["question_answer","forum"],["remove-circle-outline","remove_circle"],["report","error"],["report_problem","warning"],["schedule","watch_later"],["settings_application","settings"],["settings_material", "settings"],["share_arrow","share"],["slow_mode_off","message"],["sticker_emoticon","happy"],["subscription_manager","settings"],["supervisor_account","people"],["tab_account","person"],["tab_explore","explore"],["tab_subscriptions","subscriptions"],["tab_trending","fire"],["timer","stopwatch"],["trending","fire"],["unlimited","subscribe"],["vertical_align_bottom","offline_download"],["video_library_white","uploads"],["video_youtube","subscribe"],["wallpaper","image"],["watch_related_mix","mix"], ["what_to_watch","tab_home"]]); function cz(a){if(vSa(a))return a.toString();var b=mSa.get(a);if(b)return b;b=a.toLowerCase();var c="yt-icons",d=b.replace(/_/g,"-");switch(a){case"MY_CHANNEL":b="account_circle";break;case"ADD_TO_LIBRARY":b="add";break;case"ALERT_WARN_RED":b="warning";break;case"ARTIST":case"ARTIST_ANALYTICS":b="person_music";break;case"BLOCK_USER":b="block";break;case"CAPTIONS":b="closed_caption";break;case"CLOSED_CAPTION":c="av";b="closed-caption";break;case"COLLECTION":c="maps";b="layers";break;case"CONTACT":c= "icons";b="business";break;case"CREATOR_STUDIO_ERROR_ON_LOAD":case"CREATOR_STUDIO_ERROR_ON_LOAD_V2":case"CREATOR_STUDIO_NO_COMMENTS":case"CREATOR_STUDIO_NO_HELD_COMMENTS":case"CREATOR_STUDIO_NO_HELD_COMMENTS_V2":case"CREATOR_STUDIO_NO_SEARCH_MATCH":case"CREATOR_STUDIO_NO_SEARCH_MATCH_V2":c="yt-studio-system-icons";b=d.split("creator-studio-")[1];break;case"DISMISSAL":b="close";break;case"DO_NOT_DISTURB":b="block";break;case"DOGFOOD":c="icons";b="pets";break;case"DRAFT":b="paper_corner_folded"; break;case"EMPTY_LIKE":b="like_outline";break;case"EXIT_APP":b="exit_to_app";break;case"EXPAND_MORE":case"EXPAND_LESS":b=d;break;case"GAMES":c="ytg";b="my-games";break;case"GO_TO_PAGE":b="arrow-forward";break;case"GROUP":c="social";break;case"HIDE":b="not_interested";break;case"INPUT_COMPONENT":c="icons";b="settings-input-component";break;case"KIDS_BLOCK":b="block";break;case"MEMBERSHIP_LIMITED_PRE_PURCHASE":case"MEMBERSHIP_OFFER":c="ytg";b="membership-pre-purchase";break;case"MEMBERSHIP_LIMITED_POST_PURCHASE":c= "ytg";b="membership-post-purchase";break;case"MULTIVIEW":b="screen_multi_view";break;case"MY_LOCATION":c="maps";b=d;break;case"NOTIFICATIONS_INBOX":b="NOTIFICATIONS";break;case"NEXT":b="chevron_right";break;case"OFFLINE":b="power-settings-new";break;case"PAUSE":c="miniplayer";break;case"PAYMENT":c="icons";break;case"PHONE_DOWNLOAD":b="phone_download";break;case"PREMIUM_STANDALONE":c="yt-logos";b="premium_standalone";break;case"PREMIUM_STANDALONE_CAIRO":c="yt-logos";b="premium_standalone_cairo"; break;case"QUESTION_ANSWER":b="question_answer";break;case"REDEEM":c="icons";b="redeem";break;case"REMOVE":case"REMOVE_FROM_HISTORY":case"REMOVE_FROM_PLAYLIST":b="remove-circle-outline";break;case"SAVE_PLAYLIST":case"LIBRARY_ADD":b="library_add";break;case"SCHOOL":c="yt-sys-icons";b="creator_academy";break;case"SETTINGS_LIGHT":b="settings_applications";break;case"SETTINGS_MATERIAL":b="settings";break;case"SEARCH_HISTORY":b="watch_history";break;case"SHOPPING_BAG":b="bag";break;case"SOCIAL":case"PEOPLE":c= "yt-icons";b="people";break;case"STAFF_PICK":c="ytg";b="spotlight";break;case"START_DVR":b="add";break;case"STOP_DVR":c="av";b="stop";break;case"TAB_LIKED":b="like";break;case"TAB_INBOX":b="mail";break;case"TERMS_OF_SERVICE":c="icons";b="description";break;case"TRENDING":b="fire";break;case"UNBLOCK_USER":b="remove";break;case"UNPLUGGED_DARK_THEME":c="image";b="brightness-3";break;case"UNPLUGGED_LIVE_GUIDE":case"LIVE":b="live";break;case"UNPLUGGED_SPORTS":c="ytu";b="visibility-off";break; case"VIDEOS":c="av";b="play-circle-filled";break;case"YOUTUBE":c="yt-logos";b="lozenge";break;case"YOUTUBE_RED_LOGO":case"YOUTUBE_PREMIUM_LOGO":c="yt-logos-ext";b="yt-logo-red-updated";break;case"YOUTUBE_LOGO":c="yt-logos-ext";b="yt-logo-updated";break;case"OFFLINE_NO_CONTENT":c="offline-no-content";break;case"SHORTS_COMMENT":case"SHORTS_DISLIKE":case"SHORTS_LIKE":case"SHORTS_SHARE":c="shorts";b=d;break;case"OUTLINE_YOUTUBE_IMPROVE_TV":c="yt-sys-icons";b="youtube_improve_tv";break;case"OUTLINE_BAG":c= "yt-sys-icons";b="bag";break;case"QUEUE_PLAY_LAST":c="yt-sys-icons";b="list_queue_last";break;case"SLASH_CIRCLE_LEFT":b="slash_circle_left";break;case"SPEED_1_POINT_2X":b="1_point_2x";break;case"SPEED_1_POINT_5X":b="1_point_5x";break;case"SPEED_1_POINT_8X":b="1_point_8x";break;case"SPEED_POINT_2X":b="point_2x";break;case"SPEED_POINT_5X":b="point_5x";break;case"SPEED_POINT_8X":b="point_8x";break;case"SPEED_1X":b="1x";break;case"SPEED_2X":b="2x";break;case"TAB_BOOKMARK":b="bookmark";break; case"OUTLINE_CLOCK_HALF_CIRCLE":c="yt-sys-icons";b="clock_half_circle";break;case"YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case"YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":c="yt-sys-icons";b="youtube_shorts_no_triangle-filled";break;case"PLAYABLES_LOGO":c="yt-sys-icons",b="tic_tac_toe";}b=""+c+":"+b;mSa.set(a,b);return b} function vSa(a){var b;x("kevlar_use_wil_icons")?b=!!Fn().resolve($y).resolveIcon({iconName:a.toString()}):b=!1;return b} ;function dz(a,b){var c=Object.keys(a);a=new Dl("[Command Handler] "+b,{filteredCommandNames:c,originalCommand:a});co(a)} function wSa(a,b){dz(a,b+" was called but not set")} ;function ez(a){return function(){return Fn().resolve(a)}} function xSa(a,b){var c=z(a,Ps);if(c&&(c=b[c.signal]))return c();a=l(Object.keys(a));for(c=a.next();!c.done;c=a.next())if(c=c.value,b[c]&&(c=b[c]))return c()} ;var fz=function(a,b,c,d,e,f,h,m){h=h===void 0?[]:h;m=m===void 0?[]:m;this.buildCommandPayload=a;this.navigate=b;this.handleServiceRequest=c;this.sendAction=d;this.JSC$8481_screenManager=e;this.commandResolverMap=f;this.autoLogResolverAllowlist=h;this.metaCommandClickLoggingDenylist=m;this.pendingCommands=new Set;this.isTracingEnabled=!1;ySa(this)},CSa=function(a,b){var c=zSa,d=ASa,e=x("enable_command_handler_screen_manager")?gz():void 0,f=BSa; var h=h===void 0?[]:h;var m=m===void 0?[]:m;fz.instance=new fz(a,b,c,d,e,f,h,m)},ySa=function(a){if(!a.isTracingEnabled&&Du("command")){var b=a.resolveCommand; a.resolveCommand=function(c,d){a:{for(e in c)if(Object.prototype.hasOwnProperty.call(c,e)){var e={commandType:e};break a}e={}}return Eu("command",e,b.bind(this,c,d))}; a.isTracingEnabled=!0}},DSa=function(a,b,c){if(!a.commandResolverMap)return{handled:!1}; var d=xSa(b,a.commandResolverMap);return d?(a.autoLogResolverAllowlist.some(function(e){return!!z(b,e)}),hz(a,b,c),{handled:!0, completion:function(){var e,f;return ra(function(h){if(h.nextAddress==1)return d instanceof Promise?h.yield(d,3):(e=d,h.jumpTo(2));h.nextAddress!=2&&(e=h.yieldResult);f=e;return h.yield(f.resolve(b,c),0)})}()}):{handled:!1}}; fz.prototype.resolveCommand=function(a,b){return ESa(this,a,b).handled}; var ESa=function(a,b,c){var d=FSa(b);if(c==null||!c.skipCommandResolverMap){var e=DSa(a,b,c);if(e.handled)return e}if(d)return GSa(a,b,c);if(!a.buildCommandPayload)return dz(b,"Unhandled command by buildCommandPayload"),{handled:!1};var f=a.buildCommandPayload(b,c);if(c==null?0:c.commandController)f.commandController=c.commandController;if(f.type===0){if(!a.navigate)return wSa(b,"navigate"),{handled:!1};if(!HSa(f.command))return dz(b,"Page requests need to specify a url"),{handled:!1};if(ISa(a,f.command))return{handled:!1}; x("logging_avoid_blocking_during_navigation")&&ira().transition("application_navigating");b=a.navigate(f)||[];d=Promise.resolve(hka(b).then(function(){a.pendingCommands.delete(f.command)})); a.JSC$8481_screenManager&&JSa(a.JSC$8481_screenManager,f.command,{clickedVisualElement:c==null?void 0:c.clickedVisualElement,dataPromises:b,layer:f.layer,automatedLogEventSource:4});return{handled:!0,completion:d}}if(f.type===1){if(!a.handleServiceRequest)return wSa(b,"handleServiceRequest"),{handled:!1};if(ISa(a,f.command))return{handled:!1};hz(a,f.command,c);c=a.handleServiceRequest(f);return{handled:!0,completion:Promise.resolve(hka(c).then(function(){a.pendingCommands.delete(f.command)}))}}if(f.type=== 2){if(!a.sendAction)return wSa(b,"sendAction"),{handled:!1}; hz(a,f.command,c);a.sendAction(f);return{handled:!0,completion:Promise.resolve()}}return{handled:!1}},ISa=function(a,b){if(a.pendingCommands.has(b))return!0; a.pendingCommands.add(b);return!1},hz=function(a,b,c){if((c==null||!c.disableClickTracking)&&a.JSC$8481_screenManager)if(b.clickTrackingParams){var d; c=c==null?void 0:(d=c.form)==null?void 0:d.element;a.JSC$8481_screenManager.clickCommand(b,null,c&&c.getScreenLayer&&c.getScreenLayer())}else b.clickTrackingParams?a.JSC$8481_screenManager.clickCommand(b):!x("disable_clicked_visual_element_in_command_handler")&&(c==null?0:c.clickedVisualElement)&&iz(a.JSC$8481_screenManager,c.clickedVisualElement)},FSa=function(a){var b=!!z(a,iy),c; a=((c=z(a,my))==null?void 0:c.signal)==="CLIENT_SIGNAL";return b||a},GSa=function(a,b,c){var d=z(b,iy); if(d)var e=(d==null?void 0:d.commands)||[];else{var f;if(((f=z(b,my))==null?void 0:f.signal)==="CLIENT_SIGNAL"){var h;e=((h=z(b,my))==null?void 0:h.actions)||[]}}if(e){(d=KSa(a,e))&&hz(a,b,c);b=[];e=l(e);for(f=e.next();!f.done;f=e.next()){f=f.value;try{var m=Object.assign({},c);d&&(m.disableClickTracking=!0);var p=ESa(a,f,m);p.handled&&b.push(p.completion)}catch(q){q instanceof Error&&co(q)}}return{handled:!0,completion:Promise.allSettled(b).then(function(){})}}dz(b,"Could not handle the meta command"); return{handled:!1}},KSa=function(a,b){return b.every(function(c){return a.metaCommandClickLoggingDenylist.some(function(d){return!!z(c,d)})})},HSa=function(a){var b; return!((b=z(a==null?void 0:a.commandMetadata,ly))==null||!b.url)};function jz(a,b,c,d){c=c===void 0?{}:c;d=d===void 0?!1:d;c===null&&(c={});var e=Ema("kevlar_command_handler_command_banlist");e=l(e);for(var f=e.next();!f.done;f=e.next())if(f=a?a.hasOwnProperty(f.value):void 0,f)return!1;e=z(a.commandMetadata,ly);return d&&e!=null&&e.url?!1:!b.disableCommandHandlerOverride&&fz.instance?(d=fz.instance,c.form||(c.form={element:b}),c.form.element||(c.form.element=b),!c.clickedVisualElement&&b.visualElement&&(c.clickedVisualElement=b.visualElement),d.resolveCommand(a, c),!0):!1} ;function kz(a){return{runs:[{text:a}]}} function lz(a){if(a&&a.simpleText)return a.simpleText;var b="";if(a&&a.runs)for(var c=0;c1E3&&fo(new Dl("IL Attach cache exceeded limit"))}m= rz(c,b);oz.has(m)?USa(c,b):RSa.set(m,!0)}}d=d.filter(function(t){t.csn!==b?(t.csn=b,t=!0):t=!1;return t}); c={csn:b,parentVe:c.getAsJson(),childVes:vc(d,function(t){return t.getAsJson()})}; b==="UNDEFINED_CSN"?sz("visualElementAttached",f,c):a?$n("visualElementAttached",c,a,f):ao("visualElementAttached",c,f)} function VSa(a,b,c,d,e,f,h){WSa(a,b,c,e,h)} function WSa(a,b,c,d,e){XSa(c,b);e=pz({cttAuthInfo:Uv(b)||void 0,automatedLogEventSource:e},b);c={csn:b,ve:c.getAsJson(),eventType:1};d&&(c.clientData=d);b==="UNDEFINED_CSN"?sz("visualElementShown",e,c):a?$n("visualElementShown",c,a,e):ao("visualElementShown",c,e)} function YSa(a,b,c,d){XSa(c,b);var e=pz({cttAuthInfo:Uv(b)||void 0,automatedLogEventSource:void 0},b);c={csn:b,ve:c.getAsJson(),eventType:4};d&&(c.clientData=d);b==="UNDEFINED_CSN"?sz("visualElementShown",e,c):a?$n("visualElementShown",c,a,e):ao("visualElementShown",c,e)} function ZSa(a,b,c,d,e,f){var h=(d=d===void 0?!1:d)?16:8;d=pz({cttAuthInfo:Uv(b)||void 0,endOfSequence:d,automatedLogEventSource:f},b);c={csn:b,ve:c.getAsJson(),eventType:h};e&&(c.clientData=e);b==="UNDEFINED_CSN"?sz("visualElementHidden",d,c):a?$n("visualElementHidden",c,a,d):ao("visualElementHidden",c,d)} function $Sa(a,b,c,d,e,f){aTa(a,b,c,void 0,d,e,f)} function aTa(a,b,c,d,e,f,h){XSa(c,b);d=d||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";f=pz({cttAuthInfo:Uv(b)||void 0,automatedLogEventSource:h},b);c={csn:b,ve:c.getAsJson(),gestureType:d};e&&(c.clientData=e);b==="UNDEFINED_CSN"?sz("visualElementGestured",f,c):a?$n("visualElementGestured",c,a,f):ao("visualElementGestured",c,f)} function bTa(a,b,c,d){var e=pz({cttAuthInfo:Uv(b)||void 0},b);c={csn:b,ve:c.getAsJson(),clientData:d};b==="UNDEFINED_CSN"?sz("visualElementStateChanged",e,c):a?$n("visualElementStateChanged",c,a,e):ao("visualElementStateChanged",c,e)} function NSa(){var a=RIa(16);for(var b=[],c=0;ca.clientWidth;return(c==="scroll"||c==="auto")&&a.scrollHeight>a.clientHeight||b} ;function Az(a){if(a===window)return null;var b=a.parentElement;return b?b:typeof ShadowRoot!=="undefined"&&a.getRootNode!=null&&(a=a.getRootNode(),a instanceof ShadowRoot)?a.host:window} ;function iTa(a){return{track:gTa({scheduleFn:a.scheduleAfterRender,onSchedule:function(b){b.attnTracked=!0;return b}, onFlush:function(b){var c=[],d=[];b=l(b);for(var e=b.next();!e.done;e=b.next())e=e.value,e.attnData||jTa(e,c,d);c.length!==0&&(a.onDiscovered(c),a.emit({added:d}))}}), untrack:gTa({scheduleFn:a.scheduleAfterRender,onSchedule:function(b){return b}, onFlush:function(b){var c=[];b=l(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.attnData&&(c.push(d.attnData),d.attnData=void 0);a.emit({removed:c})}})}} var kTa=1; function jTa(a,b,c){if(a.attnData)return a.attnData;var d={parentID:-1,id:kTa++,attributes:zz(a),scrollContainerAncestry:[]};a.attnData=d;b.push(a);c.push(d);if(a===window)return d.scrollContainerAncestry=[d.id],d;for(var e=l(lTa(a)),f=e.next();!f.done;f=e.next())if(f=f.value,f===window||hTa(f)||f.attnTracked)return b=jTa(f,b,c),d.parentID=b.id,b=b.scrollContainerAncestry||[],hTa(a)&&(b=[d.id].concat(ia(b))),d.scrollContainerAncestry=b,d;throw Error("No parent found for attention node")} function lTa(a){return function c(){var d,e;return taa(c,function(f){switch(f.nextAddress){case 1:f.setFinallyBlock(2),d=Az(a);case 4:if(!d){f.jumpTo(2);break}e=xaa;return f.yield(d,7);case 7:e(f.yieldResult);d=Az(d);f.jumpTo(4);break;case 2:f.enterFinallyBlock(),f.leaveFinallyBlock(0);}})}()} ;function mTa(a){function b(p){p=l(p);for(var q=p.next(),t={};!q.done;t={node$jscomp$489:void 0},q=p.next())t.node$jscomp$489=q.value,t.node$jscomp$489===window||t.node$jscomp$489.attnHasListeners||typeof t.node$jscomp$489.addEventListener!=="function"||(t.node$jscomp$489.attnHasListeners=!0,t.node$jscomp$489.addEventListener("scroll",function(u){return function(){return h(u.node$jscomp$489)}}(t)),t.node$jscomp$489.addEventListener("lr-scroll-event",function(u){return function(v){var w=u.node$jscomp$489.attnData; if(w!=null&&w.attributes){v.stopImmediatePropagation();var y=v.detail.amount;if(Wda(y)){var A={id:w.id,attributes:{}},C=(v=v.detail.direction==="horizontal")?w.attributes.scrollLeft:w.attributes.scrollTop,I=C+y;y={value:I,prev:C,delta:y};v?(w.attributes.scrollLeft=I,A.attributes.scrollLeft=y):(w.attributes.scrollTop=I,A.attributes.scrollTop=y);f({mutated:A})}}}}(t)),t.node$jscomp$489.addEventListener("lr-maybe-resize",function(u){return function(v){var w=u.node$jscomp$489,y=w.attnData; if(y!=null&&y.attributes){v.stopImmediatePropagation();v={id:y.id,attributes:{}};var A=y.attributes.width,C=y.attributes.height,I=y.attributes.x,K=y.attributes.y,N=w.getBoundingClientRect();w=N.width;var L=N.height,R=N.x;N=N.y;if(A!==w||C!==L||I!==R||K!==N)C!==L&&(v.attributes.height={value:L,prev:C,delta:L-C},y.attributes.height=L),A!==w&&(v.attributes.width={value:w,prev:A,delta:w-A},y.attributes.width=w),I!==R&&(v.attributes.x={value:R,prev:I},y.attributes.x=R),K!==N&&(v.attributes.y={value:N, prev:K},y.attributes.y=N),f({mutated:v})}}}(t)))} var c=a.scrollThrottle,d=a.scheduleAfterRender,e=new jx,f=function(p){return void e.next(Object.assign({},{timestamp:im()},p))},h=nTa(c,function(p){d(function(){var q=p.attnData; if(q!=null&&q.attributes){var t=q.attributes.scrollTop,u=q.attributes.scrollLeft,v=q.attributes.scrollTop=p===window?window.scrollY:p.scrollTop,w=q.attributes.scrollLeft=p===window?window.scrollX:p.scrollLeft;if(t!==v||u!==w)q={id:q.id,attributes:{}},t!==v&&(q.attributes.scrollTop={value:v,prev:t,delta:v-t}),u!==w&&(q.attributes.scrollLeft={value:w,prev:u,delta:w-u}),f({mutated:q})}})}),m=nTa(c,function(){d(function(){var p=eTa(!0); p=l(p);for(var q=p.next();!q.done;q=p.next())f({mutated:q.value})})}); c=iTa({emit:f,scheduleAfterRender:d,onDiscovered:function(p){b(p)}}); a=c.track;c=c.untrack;window.addEventListener("scroll",function(){return h(window)}); window.addEventListener("resize",function(){return m(window)}); return{events$:e,track:a,untrack:c,snapshot:function(){d(function(){var p=eTa(!1);f({added:p})})}, onPositionChanged:h,measureViewData:function(p){if(!p.attnData){var q=[],t=[];jTa(p,q,t);q.length>0&&(b(q),f({added:t}))}q=zz(p);var u;p=((u=p.attnData)==null?void 0:u.scrollContainerAncestry)||[];u=[];for(t=0;t0?p[0]:void 0,scrollableContainerAncestry:u}}}} function nTa(a,b){var c=new Fw(b,a);return function(d){return void c.fire(d)}} ;function oTa(a){a.events$.subscribe(function(b){a:{if(b.mutated){var c=b.mutated.attributes;var d=c.scrollTop;c=c.scrollLeft;if(d!=null||c!=null){var e=Tv();b=b.mutated.id;if(d){d={scrollableContainerIndex:b,startContentOffsetPoints:Math.round(d.prev),clientScreenNonce:e,orientation:"SCROLL_ORIENTATION_VERTICAL",netDisplacementPoints:Math.round(d.delta)};break a}if(c){d={scrollableContainerIndex:b,startContentOffsetPoints:Math.round(c.prev),clientScreenNonce:e,orientation:"SCROLL_ORIENTATION_HORIZONTAL", netDisplacementPoints:Math.round(c.delta)};break a}}}d=void 0}d&&ao("scrollEvent",d)})} ;var pTa={events$:Cx(),track:function(){}, untrack:function(){}, snapshot:function(){}, onPositionChanged:function(){}, measureViewData:function(){}};var qTa;function rTa(){if(qTa)return qTa;if(!x("web_attention_logging_enabled")&&!x("web_attention_logging_export_to_gel")||!document.documentElement||typeof document.documentElement.getBoundingClientRect!=="function")return pTa;try{var a=mTa({scrollThrottle:ll("web_attention_logging_scroll_throttle",500),scheduleAfterRender:function(b){return Hl(0,b,8)}}); x("web_attention_logging_export_to_gel")?oTa(a):a.measureViewData=function(){}; return qTa=a}catch(b){return pTa}} ;var Bz=Symbol("trackingData"),Cz=new WeakMap;function sTa(a,b){Cz.set(a,b)} ;var Dz=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},Ez=function(){Dz.instance||(Dz.instance=new Dz); return Dz.instance}; g=Dz.prototype;g.setClient=function(a){this.client=a}; g.JSC$8560_newScreen=function(){this.clear();this.csn=Tv()}; g.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null}; g.reportShown=function(a,b,c,d){var e=this.JSC$8560_getTrackingParams(a),f=a.visualElement?a.visualElement:e;b=this.shownElements.has(f);var h=this.visibleState.get(f);this.shownElements.add(f);this.visibleState.set(f,!0);a.impressionLog&&!b&&a.impressionLog();if(e||a.visualElement)if(c=tTa(this,a,c))if(f=uTa(this,a),Fz(this,a)||f){e=a.visualElement?a.visualElement:Qv(e);a.interactionLoggingClientData||(a.interactionLoggingClientData={});var m=a.interactionLoggingClientData,p=rTa().measureViewData(a); p&&(m.viewData=p);f||b?Fz(this,a)&4?h||YSa(this.client,c,e,m):Fz(this,a)&1&&!b&&WSa(this.client,c,e,m,d):WSa(this.client,c,e,m,d)}}; g.reportHidden=function(a,b,c,d){var e=this.JSC$8560_getTrackingParams(a),f=a.visualElement?a.visualElement:e;b=this.hiddenElements.has(f);var h=this.visibleState.get(f);this.hiddenElements.add(f);this.visibleState.set(f,!1);if(h===!1)return!0;if(!e&&!a.visualElement)return!1;c=tTa(this,a,c);if(!c||!Fz(this,a)&&uTa(this,a))return!1;e=a.visualElement?a.visualElement:Qv(e);Fz(this,a)&8?ZSa(this.client,c,e,void 0,void 0,d):Fz(this,a)&2&&!b&&(a=this.client,d=pz({cttAuthInfo:Uv(c)||void 0,automatedLogEventSource:d}, c),b={csn:c,ve:e.getAsJson(),eventType:2},c==="UNDEFINED_CSN"?sz("visualElementHidden",d,b):a?$n("visualElementHidden",b,a,d):ao("visualElementHidden",b,d));return!0}; g.JSC$8560_getTrackingParams=function(a){var b=this.getData(a),c,d;if(x("il_use_view_model_logging_context")&&(b==null?0:(c=b.context)==null?0:(d=c.loggingContext)==null?0:d.loggingDirectives))return b.context.loggingContext.loggingDirectives.trackingParams||"";var e,f;if(b==null?0:(e=b.rendererContext)==null?0:(f=e.loggingContext)==null?0:f.loggingDirectives)return b.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(b==null?0:b.loggingDirectives)return b.loggingDirectives.trackingParams|| "";var h;return((h=a.veContainer)==null?0:h.trackingParams)?a.veContainer.trackingParams:(b==null?void 0:b.trackingParams)||""}; g.JSC$8560_elementShouldLogGesture=function(a,b){a=this.getData(a);return!!((Math.floor(Number(a&&a.loggingDirectives&&a.loggingDirectives.gestures&&a.loggingDirectives.gestures.types||""))||0)&b)}; g.JSC$8560_getNearestParentVe=function(a){if(x("wiz_next_client_ve_parent_fix")){var b=this.JSC$8560_getTrackingParams(a);return a.visualElement?a.visualElement:b?Qv(b):(a=Az(a))?this.JSC$8560_getNearestParentVe(a):null}b=this.JSC$8560_getTrackingParams(a);return a.visualElement?a.visualElement:b?Qv(b):a.parentElement?this.JSC$8560_getNearestParentVe(a.parentElement):null}; var tTa=function(a,b,c){var d=Tv(c);return a.csn===null||d===a.csn||c?d:(a=new Dl("VisibilityLogger called before newScreen",{caller:b.tagName,previous_csn:a.csn,current_csn:d}),fo(a),null)}; Dz.prototype.getData=function(a){var b,c=a.data||((b=a.props)==null?void 0:b.data);if(!c||a.isWebComponentWrapper){var d;c=(d=Cz.get(a))==null?void 0:d[Bz]}return c}; var uTa=function(a,b){var c;return!((c=a.getData(b))==null||!c.loggingDirectives)},Fz=function(a,b){a=a.getData(b); return Math.floor(Number(a&&a.loggingDirectives&&a.loggingDirectives.visibility&&a.loggingDirectives.visibility.types||""))||1};var Gz=function(){},Hz=function(){Gz.instance||(Gz.instance=new Gz); return Gz.instance}; Gz.prototype.setClient=function(a){Wk(Ez().setClient).bind(Ez())(a)}; var vTa=function(){Hz();Wk(Ez().JSC$8560_newScreen).bind(Ez())()}; Gz.prototype.clear=function(){Wk(Ez().clear).bind(Ez())()}; Gz.prototype.reportShown=function(a,b,c,d){Wk(Ez().reportShown).bind(Ez())(a,b,c,d)}; Gz.prototype.reportHidden=function(a,b,c,d){return Wk(Ez().reportHidden).bind(Ez())(a,b,c,d)}; var wTa=function(a,b){return Wk(Ez().JSC$8560_getTrackingParams).bind(Ez())(b)},xTa=function(a){Hz(); return Wk(Ez().JSC$8560_getNearestParentVe).bind(Ez())(a)};var Iz=function(){this.graftQueue=[];this.stateChangedQueue=[];this.backHistoryStack=[];this.forwardHistoryStack=[];this.backHistoryStackMap=new Map;this.forwardHistoryStackMap=new Map;this.afterNewScreenOneOffJobs=[];this.afterNewScreenRecurringJobs=[];this.cachedVisualElements=new Map;this.cachedRootVisualElements=new Map;this.pendingScreenCreation=new Set;this.recurringGrafts=new Map},gz=function(){Iz.instance||(Iz.instance=new Iz); return Iz.instance}; Iz.prototype.setClient=function(a){this.client=a}; var JSa=function(a,b,c){c=c===void 0?{}:c;Wk(function(){var d,e,f,h=((d=z(b==null?void 0:b.commandMetadata,ly))==null?void 0:d.rootVe)||((e=z(b==null?void 0:b.commandMetadata,vOa))==null?void 0:(f=e.screenVisualElement)==null?void 0:f.uiType);if(h){d=z(b==null?void 0:b.commandMetadata,VPa);if(d==null?0:d.parentTrackingParams){var m=Qv(d.parentTrackingParams);if(d.parentCsn)var p=d.parentCsn}else c.clickedVisualElement?m=c.clickedVisualElement:b.clickTrackingParams&&(m=Qv(b.clickTrackingParams));a:{d= z(b,py);e=z(b,FPa);if(d){if(e=LSa(d,"VIDEO")){d={token:e,videoId:d.videoId};break a}}else if(e&&(d=LSa(e,"PLAYLIST"))){d={token:d,playlistId:e.playlistId};break a}d=void 0}c=Object.assign({},{cttAuthInfo:d,parentCsn:p},c);if(x("expectation_logging")){var q;c.loggingExpectations=((q=z(b==null?void 0:b.commandMetadata,vOa))==null?void 0:q.loggingExpectations)||void 0}Jz(a,h,m,c)}else fo(new Dl("Error: Trying to create a new screen without a rootVeType",b))})()},Jz=function(a,b,c,d){d=d===void 0?{}: d; Wk(function(){dTa.includes(b)||(fo(new Dl("createClientScreen() called with a non-page VE",b)),b=83769);if(!d.isHistoryNavigation)if(x("enable_screen_manager_layer_separation")){var e=d.layer||0;a.forwardHistoryStackMap.set(e,[]);yTa(a,e).push({rootVe:b,key:d.key||""})}else a.forwardHistoryStack=[],a.backHistoryStack.push({rootVe:b,key:d.key||""});a.graftQueue=[];a.stateChangedQueue=[];d.dataPromises?zTa(a,b,c,d):ATa(a,b,c,d)})()},BTa=function(a,b,c){c=c===void 0?0:c; Wk(function(){b.then(function(d){a.pendingScreenCreation.has(c)&&a.pendingScreenFn&&a.pendingScreenFn();var e=Tv(c),f=Sv(c);if(e&&f){var h={automatedLogEventSource:3},m;(d==null?0:(m=d.response)==null?0:m.trackingParams)&&qz(a.client,e,f,Qv(d.response.trackingParams),!1,h);var p;(d==null?0:(p=d.playerResponse)==null?0:p.trackingParams)&&qz(a.client,e,f,Qv(d.playerResponse.trackingParams),!1,h)}})})()},Lz=function(a,b,c,d){return Wk(function(){var e=Qv(b); Kz(a,e,c,d);return e})()},CTa=function(a,b,c,d){return x("enable_client_ve_spec")&&b.clientVeSpec?(b=Rv(b.clientVeSpec.uiType,void 0,b.clientVeSpec.elementIndex,b.clientVeSpec.clientYoutubeData,void 0,b),Kz(a,b,c,d)?b:null):b.trackingParams?Lz(a,b.trackingParams,c,d):null},Mz=function(a,b,c,d){return Wk(function(){if(!b.veType)return eo(new Dl("Error: Trying to graft a client VE without a veType.")),null; if(b.visibilityTypes){var e=b.visibilityTypes.reduce(function(f,h){return f|h}); e={visibility:{types:String(e)}}}e=Rv(b.veType,b.visualElement,b.elementIndex,b.clientYouTubeData,void 0,e);return Kz(a,e,c,d)?e:null})()},Kz=function(a,b,c,d){d=d===void 0?0:d; return Wk(function(){if(a.pendingScreenCreation.has(d))return a.graftQueue.push([b,c]),!0;var e=Tv(d),f=c||Sv(d);if(e&&f){if(x("combine_ve_grafts")){var h=a.cachedVisualElements.get(f.toString());h?h.push(b):(a.cachedRootVisualElements.set(f.toString(),f),a.cachedVisualElements.set(f.toString(),[b]));a.attachTimeout||(a.attachTimeout=Il(0,function(){Nz(a,e)},1200))}else qz(a.client,e,f,b); return!0}return!1})()},iz=function(a,b,c,d){d=Tv(d===void 0?0:d); if(!d)return!1;$Sa(a.client,d,b,c);return!0},Oz=function(a,b,c,d){if(!b)return!1; d=Tv(d===void 0?0:d);if(!d)return!1;$Sa(a.client,d,Qv(b),c);return!0},Pz=function(a,b){var c=b.getScreenLayer&&b.getScreenLayer(); if(b.visualElement)return iz(a,b.visualElement,void 0,c);b=wTa(Hz(),b);return Oz(a,b,void 0,c)}; Iz.prototype.clickCommand=function(a,b,c){return Oz(this,a.clickTrackingParams,b,c===void 0?0:c)}; Iz.prototype.stateChanged=function(a,b,c){this.visualElementStateChanged(Qv(a),b,c===void 0?0:c)}; Iz.prototype.visualElementStateChanged=function(a,b,c){c=c===void 0?0:c;c===0&&this.pendingScreenCreation.has(c)?this.stateChangedQueue.push([a,b]):DTa(this,a,b,c)}; var DTa=function(a,b,c,d){d=d===void 0?0:d;var e=Tv(d);b=b||Sv(d);e&&b&&bTa(a.client,e,b,c)},zTa=function(a,b,c,d){d=d===void 0?{}:d; a.pendingScreenCreation.add(d.layer||0);a.pendingScreenFn=function(){ATa(a,b,c,d);var h=Sv(d.layer);if(h){for(var m=l(a.graftQueue),p=m.next();!p.done;p=m.next())p=p.value,Kz(a,p[0],p[1]||h,d.layer);h=l(a.stateChangedQueue);for(m=h.next();!m.done;m=h.next())m=m.value,DTa(a,m[0],m[1])}}; c||Tv(d.layer)||a.pendingScreenFn();if(d.dataPromises)for(var e=l(d.dataPromises),f=e.next();!f.done;f=e.next())BTa(a,f.value,d.layer);else co(Error("Delayed screen needs a data promise."))},ATa=function(a,b,c,d){d=d===void 0?{}:d; var e=void 0;d.layer||(d.layer=0);e=d.parentLayer!==void 0?d.parentLayer:d.layer;var f=Tv(e);e=Sv(e);var h=c||e,m;h&&(d.parentCsn!==void 0?m={clientScreenNonce:d.parentCsn,visualElement:h}:f&&f!=="UNDEFINED_CSN"&&(m={clientScreenNonce:f,visualElement:h}));var p,q=Vk("EVENT_ID");f==="UNDEFINED_CSN"&&q&&(p={servletData:{serializedServletEventId:q}});x("combine_ve_grafts")&&f&&Nz(a,f);x("no_client_ve_attach_unless_shown")&&h&&f&&USa(h,f);try{var t=SSa(a.client,b,m,d.csnToClone,d.cttAuthInfo,p,d.implicitGestureType, void 0,d.loggingExpectations,d.automatedLogEventSource)}catch(w){go(w,{rootVeType:b,rootVe:e,parentVisualElement:c,currentCsn:f,parentEl:m,csnToClone:d.csnToClone});co(w);return}Vv(t,b,d.layer,d.cttAuthInfo);f&&f!=="UNDEFINED_CSN"&&e&&!xJa(f)&&ZSa(a.client,f,e,!0);x("enable_screen_manager_layer_separation")?(b=yTa(a,d.layer||0),b.length>0&&!b[b.length-1].csn&&(b[b.length-1].csn=t||"")):a.backHistoryStack[a.backHistoryStack.length-1]&&!a.backHistoryStack[a.backHistoryStack.length-1].csn&&(a.backHistoryStack[a.backHistoryStack.length- 1].csn=t||"");Xv({clientScreenNonce:t});vTa();var u=Sv(d.layer);f&&f!=="UNDEFINED_CSN"&&u&&x("music_web_mark_root_visible")&&uz(t,u);a.pendingScreenCreation.delete(d.layer||0);a.pendingScreenFn=void 0;var v;(v=a.recurringGrafts.get(d.layer))==null||v.forEach(function(w,y){w?Kz(a,y,w,d.layer):u&&Kz(a,y,u,d.layer)}); ETa(a)},yTa=function(a,b){a.backHistoryStackMap.has(b)||a.backHistoryStackMap.set(b,[]); return a.backHistoryStackMap.get(b)},ETa=function(a){for(var b=0;bf||6E5<=f)){var h=a.getScreenLayer?a.getScreenLayer():void 0;h=Tv(h)||"";var m=wTa(Hz(),a);yz(h,a.visualElement?a.visualElement:Qv(m),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:f}})}MTa(a)},function(){Vz&&(Vz(),Vz=null); d&&(NTa(a),MTa(a))}); return e} function PTa(a){var b;return new uj(function(c,d){Vz=function(){d(Error("mouse did not stop"))}; b=bj.debounce(Wk(function(){Xi(e);c()}),1,100); var e=Ri(a,"mousemove",b)}).thenCatch(function(){var c=bj,d=c.cancelDebouncedJobMap.get(b); d&&c.cancelJob(d)})} function RTa(a){var b;return new uj(function(c,d){Vz=function(){d(Error("mouse did not leave"))}; b=Qi(a,"mouseleave",Wk(function(){c()}))}).thenCatch(function(){Xi(b)})} function QTa(a,b){return Qi(a,"mouseleave",Wk(b))} ;var Wz=function(a){this.layer=a},Xz=function(a){return a.layer!==void 0?a.layer:a.parent?Xz(a.parent):a.layer=0}; Wz.prototype.setParent=function(a){this.parent=a};var Yz={},Zz=0;function STa(a){Zz&&Pq.cancel(Zz);Zz=Pq.run(function(){Gt(a,"yt-visibility-refresh");Zz=0})} Yz.YtRendererBehavior=[mz.YtComponentBehavior,KTa.YtVisualElementBehavior,{_noAccessors:!0,properties:{data:Object},observers:["ytRendererBehaviorDataObserver_(data)","ytRendererBehaviorTargetIdObserver_(data.targetId)"],childCache_:null,parentComponent:null,wasVisible:!1,wasPrescan:!1,lastHandledScroll_:0,isRenderer_:!0,screenLayer:null,veFromLoggingDirective_:!1,useVimio_:x("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)}, detached:function(){if(this.monitorScroll){var a,b;(b=(a=this.monitorScrollElement)!=null?a:this.hostElement)==null||b.removeEventListener("scroll",It(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();NTa(this.hostElement);Dy(Ey(),this.hostElement);Cz.delete(this.hostElement)}, registerRenderer:function(a){var b;((b=a.polymerController)!=null?b:a).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(a),this.markDirty())}, unregisterRenderer_:function(a){this.useVimio_||(this.childCache_.delete(a),this.markDirty())}, attached:function(){var a=this,b=this.getParentRenderer();if(b){var c,d,e;(d=(c=(e=b.polymerController)!=null?e:b).registerRenderer)==null||d.call(c,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var f,h;(h=(f=this.monitorScrollElement)!=null?f:this.hostElement)==null||h.addEventListener("scroll",It(this,this.onScroll))}Hl(0,function(){MTa(a.hostElement)},8); c=new Wz(this.screenLayer||void 0);(b=Cz.get(b))&&b.layerNode&&c.setParent(b.layerNode);b={};sTa(this.hostElement,(b.isRenderer=!0,b.layerNode=c,b[Bz]=this.data,b))}, getParentRenderer:function(){for(var a=this.hostElement.parentNode,b,c;a&&((b=Cz.get(a))==null||!b.isRenderer)&&!((c=a.polymerController)!=null?c:a).isRenderer_;)a=a.parentNode||a.host;return a}, ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;x("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();Vk("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(x("debug_web_ve_data")&&this.data.trackingParams){var a=LTa(this.data.trackingParams);if(a==null?0:a.veIndex)this.hostElement.dataset.veIndex=String(a.veIndex);if(a==null?0:a.veType)this.hostElement.dataset.ve=String(a.veType)}this.veFromLoggingDirective_&&( this.dataElement=this.clientYouTubeData=this.veType=this.visualElement=void 0,this.veFromLoggingDirective_=!1);!this.visualElement&&this.data.loggingDirectives&&this.data.loggingDirectives.clientVeSpec&&this.data.loggingDirectives.clientVeSpec.uiType&&(this.veType=this.data.loggingDirectives.clientVeSpec.uiType,this.clientYouTubeData=this.data.loggingDirectives.clientVeSpec.clientYoutubeData,x("debug_web_ve_data")&&(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&( this.dataElement=Qv(this.data.loggingDirectives.trackingParams)),this.visualElement=Mz(gz(),this)||void 0,this.veFromLoggingDirective_=!0)}}, ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var a=this.data.targetId;SQa(Ey(),a,this.hostElement)}else Dy(Ey(),this.hostElement)}, onScroll:function(){var a=Date.now();a-this.lastHandledScroll_<50||(this.lastHandledScroll_=a,this.markDirty())}, markDirty:function(){x("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():STa(this.hostElement)}, getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var a=this.getParentRenderer();if(a&&(a=Cz.get(a))&&a.layerNode)return Xz(a.layerNode)}, invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1}, getNodes:function(){return this.childCache_?[].concat(ia(this.childCache_)):[]}, impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var a=0;a=e.length?(b.append(e),a-=e.length):a?(b.append(new Uint8Array(e.buffer,e.byteOffset,a)),c.append(new Uint8Array(e.buffer,e.byteOffset+a,e.length-a)),a=0):c.append(e);return{headView:b,tailView:c}}; fA.prototype.isFocused=function(a){return a>=this.arrayPos&&a>10;f=56320|f&1023}gA[e++]=f}}f=String.fromCharCode.apply(String,gA); e<1024&&(f=f.substring(0,e));c.push(f)}return c.join("")} function hA(a,b){var c;if((c=iA)==null?0:c.encodeInto)return b=iA.encodeInto(a,b),b.read>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)}return c} var WTa=window.TextDecoder?new TextDecoder:void 0,iA=window.TextEncoder?new TextEncoder:void 0;var XTa=function(a){this.arrayView=a;this.pos=0;this.pendingTagAndType=-1},jA=function(a){var b=UTa(a.arrayView,a.pos); ++a.pos;if(b<128)return b;for(var c=b&127,d=1;b>=128;)b=UTa(a.arrayView,a.pos),++a.pos,d*=128,c+=(b&127)*d;return c},YTa=function(a,b){var c=a.pendingTagAndType; for(a.pendingTagAndType=-1;a.pos+1<=a.arrayView.totalLength;){c<0&&(c=jA(a));var d=c>>3,e=c&7;if(d===b)return!0;if(d>b){a.pendingTagAndType=c;break}c=-1;switch(e){case 0:jA(a);break;case 1:a.pos+=8;break;case 2:d=jA(a);a.pos+=d;break;case 5:a.pos+=4;}}return!1};function ZTa(a,b){a=new Uint8Array(a);b&&a.set(b);return a} var $Ta=function(){this.pos=0;this.submessagePosStack=[];this.buf=ZTa(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},kA=function(a,b){b=a.pos+b; if(!(a.buf.length>=b)){for(var c=a.buf.length*2;c268435455){kA(a,4); for(var c=b&1073741823,d=0;d<4;d++)a.view.setUint8(a.pos,c&127|128),c>>=7,a.pos+=1;b=Math.floor(b/268435456)}for(kA(a,4);b>127;)a.view.setUint8(a.pos,b&127|128),b>>=7,a.pos+=1;a.view.setUint8(a.pos,b);a.pos+=1};function mA(a){a=new XTa(new fA([Gd(decodeURIComponent(a))]));if(YTa(a,2)){var b=jA(a);var c=a.pos;var d=a.arrayView;c=c===void 0?0:c;var e=b===void 0?-1:b;c=c===void 0?0:c;e=e===void 0?-1:e;if(d.totalLength&&e){e<0&&(e=d.totalLength-c);d.focus(c);if(!(c-d.arrayPos+e<=d.arrays[d.arrayIdx].length)){var f=d.arrayIdx,h=d.arrayPos;d.focus(c+e-1);h=new Uint8Array(d.arrayPos+d.arrays[d.arrayIdx].length-h);for(var m=0,p=f;p<=d.arrayIdx;p++)h.set(d.arrays[p],m),m+=d.arrays[p].length;d.arrays.splice(f,d.arrayIdx- f+1,h);d.arrayIdx=0;d.arrayPos=0;d.focus(c)}f=d.arrays[d.arrayIdx];d=new DataView(f.buffer,f.byteOffset+c-d.arrayPos,e)}else d=new DataView(new ArrayBuffer(0));d=new Uint8Array(d.buffer,d.byteOffset,d.byteLength);a.pos+=b;b=d}else b=void 0;b=b?VTa(b):void 0;a=YTa(a,4)?jA(a):void 0;d=aUa[a];if(typeof d==="undefined")throw a=new Dl("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:a}),co(a),a;return{entityTypeFieldNumber:a,entityType:d,entityId:b}} function nA(a,b){var c=c===void 0?0:c;var d=new $Ta;if(iA)a=iA.encode(a);else{var e=new Uint8Array(Math.ceil(a.length*1.2)),f=hA(a,e);e.lengthf&&(e=e.subarray(0,f));a=e}a!==void 0&&(lA(d,18),e=a.length,lA(d,e),kA(d,e),d.buf.set(a,d.pos),d.pos+=e);a=bUa[b];if(typeof a==="undefined")throw c=new Dl("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:b}),co(c),c;a!==void 0&&(lA(d,32),lA(d,a));lA(d,40);lA(d,1);b=new Uint8Array(d.buf.buffer, d.buf.byteOffset,d.pos);return encodeURIComponent(Fd(b,c))} for(var bUa={animationEntity:302,accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,chipEntity:498,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,compositeSourceEntity:594,contextNoteFeedEntityPayload:483,contextNoteUserRatingEntityPayload:576,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186, emojiFountainDataEntity:393,emojiCustomizationSetEntity:496,fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158, mainDownloadsListEntity:164,mainPlaylistDownloadStateEntity:373,mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318, musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,musicShare:100,musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,partyGamePanelEntity:618,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,playerStateEntity:323,playlistThumbnailEditsEntity:539,quantityIncrementerEntity:356, refresh:148,saveToPlaylistListEntity:231,selectedChipIndexEntityPayload:479,settingEntity:297,stringEntity:382,suggestedFeedbackChipStateEntity:485,transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},aUa={},cUa=l(Object.entries(bUa)),dUa=cUa.next();!dUa.done;dUa=cUa.next()){var eUa=l(dUa.value), fUa=eUa.next().value,gUa=eUa.next().value,hUa=fUa,iUa=gUa;iUa&&(aUa[iUa]=hUa)}function jUa(a){a=a.key||a.id;if(!a)throw Error("Entity key is missing");return a} ;function kUa(a,b){a=a===void 0?{}:a;return lUa(a,b)} function oA(a,b,c,d){if(d===void 0)return d=Object.assign({},a[b]||{}),c=(delete d[c],d),d={},Object.assign({},a,(d[b]=c,d));var e={},f={};return Object.assign({},a,(f[b]=Object.assign({},a[b],(e[c]=d,e)),f))} function mUa(a,b,c,d,e){var f=a[b]||{},h=f[c];if(!h&&!x("web_enable_entity_upsert_on_update"))return a;d=TTa(h||{},d,e==="REPEATED_FIELDS_MERGE_OPTION_APPEND");e={};h={};return Object.assign({},a,(h[b]=Object.assign({},f,(e[c]=d,e)),h))} var lUa=function(a,b){a=a===void 0?{}:a;switch(b.type){case"ENTITY_LOADED":return b.payload.reduce(function(d,e){var f,h=(f=e.options)==null?void 0:f.persistenceOption;if(h&&h!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&h!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return d;if(!e.entityKey)return co(Error("Missing entity key")),d;if(e.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!e.payload)return e=new Dl("REPLACE entity mutation is missing a payload",{entityKey:e.entityKey}),co(e),d;var m=Th(e.payload); return oA(d,m,e.entityKey,e.payload[m])}if(e.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{e=e.entityKey;try{var p=mA(e).entityType;m=oA(d,p,e);break a}catch(u){if(u instanceof Error){e=new Dl("Failed to deserialize entity key",{entityKey:e,originalMessage:u.message});co(e);m=d;break a}throw u}m=void 0}return m}if(e.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!e.payload)return e=new Dl("UPDATE entity mutation is missing a payload",{entityKey:e.entityKey}),co(e),d;m=Th(e.payload);var q,t;return mUa(d,m,e.entityKey, e.payload[m],(q=e.fieldMask)==null?void 0:(t=q.mergeOptions)==null?void 0:t.repeatedFieldsMergeOption)}return d},a); case"REPLACE_ENTITY":var c=b.payload;return oA(a,c.entityType,c.key,c.entityPayload);case"REPLACE_ENTITIES":return Object.keys(b.payload).reduce(function(d,e){var f=b.payload[e];return Object.keys(f).reduce(function(h,m){return oA(h,e,m,f[m])},d)},a); case"UPDATE_ENTITY":return c=b.payload,mUa(a,c.entityType,c.key,c.entityPayload,c.mergeOption);default:return a;}};function yA(a,b,c){return a[b]?a[b][c]||null:null} ;var zA;function nUa(){if(zA)return zA();var a={};zA=Fm("PersistentEntityStoreDb",{objectStores:(a.EntityStore={addedAtVersion:1},a.EntityAssociationStore={addedAtVersion:2},a),shared:!1,upgrade:function(b,c){c(1)&&pm(nm(b,"EntityStore",{keyPath:"key"}),"entityType","entityType");c(2)&&(b=nm(b,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),pm(b,"byParentEntityKey","parentEntityKey"),pm(b,"byChildEntityKey","childEntityKey"))}, version:3});return zA()} ;function oUa(a){return zm(nUa(),a)} ;function AA(a){return window.Int32Array?new Int32Array(a):Array(a)} var pUa=!1,BA,CA,DA,EA,FA,qUa=function(a){Ji.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!pUa){var b,c=new Uint8Array(256),d=new Uint8Array(256);var e=1;for(b=0;b<256;b++)c[e]=b,d[b]=e,e^=e<<1^(e>>7&&283);BA=new Uint8Array(256);CA=AA(256);DA=AA(256);EA=AA(256);FA=AA(256);for(var f=0;f<256;f++){e=f?d[255^c[f]]:0;e^=e<<1^e<<2^e<<3^e<<4;e=e&255^e>>>8^99;BA[f]=e;b=e<<1^(e>>7&&283);var h=b^e;CA[f]=b<<24|e<<16|e<<8|h;DA[f]=h<<24|CA[f]>>>8;EA[f]=e<<24|DA[f]>>> 8;FA[f]=e<<24|EA[f]>>>8}pUa=!0}e=AA(44);for(c=0;c<4;c++)e[c]=a[4*c]<<24|a[4*c+1]<<16|a[4*c+2]<<8|a[4*c+3];for(d=1;c<44;c++)a=e[c-1],c%4||(a=(BA[a>>16&255]^d)<<24|BA[a>>8&255]<<16|BA[a&255]<<8|BA[a>>>24],d=d<<1^(d>>7&&283)),e[c]=e[c-4]^a;this.key=e}; k(qUa,Ji); qUa.prototype.encrypt=function(a){var b=a.length;a=new Uint8Array(a.buffer.slice(a.byteOffset,a.byteOffset+b));for(var c=this.cipherBlock,d=0;d=0&&!(a.counter[h]=-~a.counter[h]);h--);for(var m,p,q=4;q<40;)h=CA[c>>>24]^DA[d>>16&255]^EA[e>>8&255]^FA[f&255]^b[q++],m=CA[d>>>24]^DA[e>>16&255]^EA[f>>8&255]^FA[c&255]^b[q++],p=CA[e>>>24]^DA[f>>16&255]^EA[c>>8&255]^FA[d&255]^b[q++],f=CA[f>>>24]^DA[c>>16&255]^EA[d>>8&255]^FA[e&255]^b[q++],c=h,d=m,e=p;a=a.cipherBlock;h=b[40];a[0]=BA[c>>>24]^h>>>24;a[1]=BA[d>>16&255]^h>>16&255;a[2]= BA[e>>8&255]^h>>8&255;a[3]=BA[f&255]^h&255;h=b[41];a[4]=BA[d>>>24]^h>>>24;a[5]=BA[e>>16&255]^h>>16&255;a[6]=BA[f>>8&255]^h>>8&255;a[7]=BA[c&255]^h&255;h=b[42];a[8]=BA[e>>>24]^h>>>24;a[9]=BA[f>>16&255]^h>>16&255;a[10]=BA[c>>8&255]^h>>8&255;a[11]=BA[d&255]^h&255;h=b[43];a[12]=BA[f>>>24]^h>>>24;a[13]=BA[c>>16&255]^h>>16&255;a[14]=BA[d>>8&255]^h>>8&255;a[15]=BA[e&255]^h&255};var sUa=!1;(function(){var a=function(d){return new Uint8Array(d)},b=function(d){for(var e=new Uint8Array(d.length),f=0;f0&&(a.channel.postMessage(h),WUa(a,h)));return m.return(f)})}; NA.prototype.observe=function(a){var b=this;this.observers.push(a);return function(){var c=b.observers.indexOf(a);c>=0&&b.observers.splice(c,1)}}; NA.prototype.JSC$8685_handleMessage=function(a){WUa(this,a.data)}; var WUa=function(a,b){a=l(a.observers);for(var c=a.next();!c.done;c=a.next())c=c.value,c(b)}; NA.prototype.disposeInternal=function(){this.channel.close()}; var YUa;function ZUa(){YUa||(YUa=$Ua());return YUa} function $Ua(){var a,b,c;return ra(function(d){if(d.nextAddress==1)return d.setCatchFinallyBlocks(2),d.yield(Dm(),4);if(d.nextAddress!=2){a=d.yieldResult;if(!a||!El()||typeof ua.BroadcastChannel==="undefined")return d.return();b=new VUa;return d.return(new NA(a,b))}c=d.enterCatchBlock();c instanceof Error&&co(c);return d.return()})} ;function OA(a,b){var c;return ra(function(d){if(d.nextAddress==1){c=a.mutations;if(!c||c.length<=0)return d.return();b&&b.dispatch(aA({type:"ENTITY_LOADED",payload:c}));return d.yield(aVa(c),2)}c.length=0;d.jumpToEnd()})} function aVa(a){var b;return ra(function(c){return c.nextAddress==1?c.yield(ZUa(),2):(b=c.yieldResult)?c.yield(XUa(b,"readwrite",function(d){for(var e={},f=l(a),h=f.next(),m={};!h.done;m={mutation$jscomp$10:void 0,mutationEntityType$jscomp$3:void 0},h=f.next())m.mutation$jscomp$10=h.value,m.mutation$jscomp$10.entityKey&&bVa(m.mutation$jscomp$10)&&(m.mutationEntityType$jscomp$3=Th(m.mutation$jscomp$10.payload),h=void 0,m.mutation$jscomp$10.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(h=function(p){return function(){return QUa(d, p.mutation$jscomp$10.payload[p.mutationEntityType$jscomp$3],p.mutationEntityType$jscomp$3)}}(m)),m.mutation$jscomp$10.type==="ENTITY_MUTATION_TYPE_DELETE"&&(h=function(p){return function(){return SUa(d,p.mutation$jscomp$10.entityKey)}}(m)),m.mutation$jscomp$10.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(h=function(p){return function(){return TUa(d,p.mutation$jscomp$10.entityKey,p.mutation$jscomp$10.payload[p.mutationEntityType$jscomp$3],p.mutationEntityType$jscomp$3)}}(m)),h&&(e[m.mutation$jscomp$10.entityKey]= e[m.mutation$jscomp$10.entityKey]?e[m.mutation$jscomp$10.entityKey].then(h):h())); return fm.all(Object.values(e))}),0):c.return()})} function bVa(a){var b;a=(b=a.options)==null?void 0:b.persistenceOption;return a==="ENTITY_PERSISTENCE_OPTION_PERSIST"||a==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"} ;function cVa(a,b){return yA(a.entities,"inlineExpansionEntity",b)} function dVa(a,b){return yA(a.entities,"markersEngagementPanelSyncEntity",b)} function PA(a,b){return yA(a.entities,"playerStateEntity",b)} function eVa(a,b){return yA(a.entities,"fantasyWinProbabilityEntity",b)} function fVa(a,b){return yA(a.entities,"fantasyTeamEntity",b)} function gVa(a,b){return yA(a.entities,"fantasyPlayerEntity",b)} function QA(a,b){return yA(a.entities,"booleanEntity",b)} function hVa(a,b){return yA(a.entities,"qrCodeEntity",b)} function iVa(a){return yA(a.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")} function jVa(a,b){return yA(a.entities,"continuationTokenEntity",b)} function kVa(a,b){return yA(a.entities,"chatLoadingStateEntity",b)} ;var RA;function lVa(){if(RA)return RA;if(window.lottie)return RA=Promise.resolve(window.lottie);var a=Lk(Vk("LOTTIE_URL"));return a?RA=new Promise(function(b,c){var d=document.createElement("script");d.addEventListener("load",function(){b(lottie)}); d.addEventListener("error",function(e){var f="Lottie library failed to load.";e?e.message&&(f+=" Original description: "+e.message,go(e,f)):e=Error(f);fo(e);c(e)}); d.setAttribute("async","");kc(d,a);document.head.appendChild(d)}):Promise.reject(Error("LOTTIE_URL not provided in ytConfig. Cannot load Lottie for LottieComponent."))} ;var SA=new Map;var mVa={ephemeralAction:null};var nVa=Vw({ephemeralAction:function(a,b){a=a===void 0?mVa.ephemeralAction:a;switch(b.type){case"SET_EPHEMERAL_ACTION":return b.payload;default:return a;}}});var oVa={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:"",persistentPanelVisible:!1,isSearchboxHidden:!1};var pVa={sharedUi:oVa,a11y:mVa,entities:{}},qVa={sharedUi:function(a,b){a=a===void 0?oVa:a;switch(b.type){case"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},a,{animatedThumbnailEnabled:b.payload});case"SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},a,{inlinePreviewEnabled:b.payload});case"SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},a,{currentPageType:b.payload});case"SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},a,{currentPageSubType:b.payload}); case"SET_SHARED_PERSISTENT_PANEL_VISIBLE":return Object.assign({},a,{persistentPanelVisible:b.payload});case"SET_SHARED_IS_SEARCHBOX_HIDDEN":return Object.assign({},a,{isSearchboxHidden:b.payload});default:return a;}}, a11y:nVa,entities:kUa};var rVa={playlistId:"",inviteLinkURL:""};var sVa={continuationCommand:{}};var tVa=Vw({continuationCommand:function(a,b){a=a===void 0?sVa.continuationCommand:a;switch(b.type){case"SET_CONTINUATION_COMMAND":return b.payload.continuationCommand;default:return a;}}});var uVa=function(a,b){return aA({type:"SET_COMMAND_FOR_GROUP_ID",payload:{groupId:a,command:b}})};var vVa={currentFormId:"",commandsMap:{}};var wVa={isLeaderTab:!0};var xVa=Vw({isLeaderTab:function(a,b){a=a===void 0?wVa.isLeaderTab:a;switch(b.type){case"SET_IS_LEADER_TAB":var c,d;return(d=b==null?void 0:(c=b.payload)==null?void 0:c.isLeaderTab)!=null?d:a;default:return a;}}});var yVa={currentMode:"canvas-hidden"};var zVa=new nj,AVa=new Bn("WATCH_PLAYER_PROMISE_TOKEN");new nj;var BVa=new Bn("SHORTS_PLAYER_PROMISE_TOKEN"),CVa=new Bn("GET_SHORTS_PLAYER_FUNCTION_TOKEN");var TA={additionalContext:"",impersonatedChannelUrl:"",selectedVideoIds:{}};var DVa=Vw({additionalContext:function(a,b){a=a===void 0?TA.additionalContext:a;switch(b.type){case"CHANNEL_REPORT_RESET":return"";case"ADDITIONAL_CONTEXT_UPDATED":var c;return(c=b.payload)!=null?c:"";default:return a;}}, impersonatedChannelUrl:function(a,b){a=a===void 0?TA.impersonatedChannelUrl:a;switch(b.type){case"CHANNEL_REPORT_RESET":return"";case"IMPERSONATED_CHANNEL_URL_UPDATED":var c;return(c=b.payload)!=null?c:"";default:return a;}}, selectedVideoIds:function(a,b){a=a===void 0?TA.selectedVideoIds:a;switch(b.type){case"CHANNEL_REPORT_RESET":return{};case"VIDEO_SELECTED":var c={};return Object.assign({},a,(c[b.payload]=!0,c));case"VIDEO_UNSELECTED":return b=b.payload,a=Object.assign({},a),delete a[b],a;default:return a;}}});var EVa={parentClickTrackingParams:""};var FVa=Vw({parentClickTrackingParams:function(a,b){a=a===void 0?EVa.parentClickTrackingParams:a;switch(b.type){case"SET_PARENT_CLICK_TRACKING_PARAMS":return b.payload.parentClickTrackingParams;case"CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return a;}}});var GVa={stepStates:{}};var HVa=Vw({stepStates:function(a,b){a=a===void 0?GVa.stepStates:a;switch(b.type){case"TALK_TO_RECS_RESET_STEP_STATE":var c=b.payload,d=Object.assign({},a);delete d[c.stepId];return d;case"TALK_TO_RECS_UPDATE_SELECTION":var e=a,f=b.payload,h;a={};b={selectionStates:Object.assign({},(h=(c=e[f.stepId])==null?void 0:c.selectionStates)!=null?h:{},(a[f.token]={isSelected:f.isSelected},a)),userQuery:(d=e[f.stepId])==null?void 0:d.userQuery};c={};return Object.assign({},e,(c[f.stepId]=b,c));case"TALK_TO_RECS_UPDATE_USER_QUERY":return c= a,d=b.payload,h={selectionStates:Object.assign({},(f=(e=c[d.stepId])==null?void 0:e.selectionStates)!=null?f:{}),userQuery:{userQuery:d.userQuery,token:d.userQueryToken}},e={},Object.assign({},c,(e[d.stepId]=h,e));default:return a;}}});var IVa=function(a){return aA({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:a})},JVa=function(a){return aA({type:"SET_INLINE_PREVIEW_IS_ENABLED", payload:a})},KVa=function(a){return aA({type:"SET_CHIP_BAR_IS_STICKY", payload:a})};var LVa={scrollAtTop:!0,guideIsExpanded:!1,guideIsVisibleButNotPersistent:!1,miniplayerIsActive:!1,singleOptionSurveyIsActive:!1,slimlineSurveyRatingSelectedIndex:-1,miniplayerPlaybackState:-1,richGridMiniMode:!1,richGridItemsPerRow:4,richGridSlimItemsPerRow:8,richGridContainerWidth:void 0,richGridStyle:"RICH_GRID_STYLE_UNKNOWN",currentPageType:"WEB_PAGE_TYPE_UNKNOWN",inlinePreviewIsActive:!1,inlinePreviewIsEnabled:!0,darkModeIsEnabled:!1,tabGesturesIsActive:!1,isOnline:!0,chipBarIsSticky:!1,frostedGlassMode:"none"};var UA={isWatchActive:!1,isLearningJourneyActive:!1,isSwatcherooActive:!1,isResponsiveSecondaryGridActive:!1,secondaryGridColumns:2,isTheaterMode:!!Vk("START_IN_THEATER_MODE"),isWatchFullscreen:!1,isWatchNarrowWidth:!1,isWatchRetroMode:!1,isLiveChatCollapsed:!1,openEngagementPanels:[],playerState:-1,watchScrollTop:0,watchWindowSize:{width:0,height:0},isSplitScroll:!1,hasLiveChat:!1,isNarrowWatchFeedBigThumbs:!1};var MVa=Vw({isTheaterMode:function(a,b){a=a===void 0?!!Vk("START_IN_THEATER_MODE"):a;switch(b.type){case"SET_IS_THEATER_MODE":return b.payload.isTheaterMode;default:return a;}}, isWatchActive:function(a,b){a=a===void 0?UA.isWatchActive:a;switch(b.type){case"SET_IS_WATCH_ACTIVE":return b.payload.isWatchActive;default:return a;}}, isLearningJourneyActive:function(a,b){a=a===void 0?UA.isLearningJourneyActive:a;switch(b.type){case"SET_IS_LEARNING_JOURNEY_ACTIVE":return b.payload.isLearningJourneyActive;default:return a;}}, isWatchFullscreen:function(a,b){a=a===void 0?UA.isWatchFullscreen:a;switch(b.type){case"SET_IS_WATCH_FULLSCREEN":return b.payload.isWatchFullscreen;default:return a;}}, isWatchNarrowWidth:function(a,b){a=a===void 0?UA.isWatchNarrowWidth:a;switch(b.type){case"SET_IS_WATCH_NARROW_WIDTH":return b.payload.isWatchNarrowWidth;default:return a;}}, isSwatcherooActive:function(a,b){a=a===void 0?UA.isSwatcherooActive:a;switch(b.type){case"SET_IS_SWATCHEROO_ACTIVE":return b.payload.isSwatcherooActive;default:return a;}}, isResponsiveSecondaryGridActive:function(a,b){a=a===void 0?UA.isResponsiveSecondaryGridActive:a;switch(b.type){case"SET_IS_RESPONSIVE_SECONDARY_GRID_ACTIVE":return b.payload.isResponsiveSecondaryGridActive;default:return a;}}, secondaryGridColumns:function(a,b){a=a===void 0?UA.secondaryGridColumns:a;switch(b.type){case"SET_SECONDARY_GRID_COLUMNS":return b.payload.secondaryGridColumns;default:return a;}}, isWatchRetroMode:function(a,b){a=a===void 0?UA.isWatchRetroMode:a;switch(b.type){case"SET_IS_WATCH_RETRO_MODE":return b.payload.isWatchRetroMode;default:return a;}}, isLiveChatCollapsed:function(a,b){a=a===void 0?UA.isLiveChatCollapsed:a;switch(b.type){case"SET_IS_LIVE_CHAT_COLLAPSED":return b.payload.isLiveChatCollapsed;default:return a;}}, openEngagementPanels:function(a,b){a=a===void 0?UA.openEngagementPanels:a;var c=[].concat(ia(a));switch(b.type){case"ADD_OPEN_ENGAGEMENT_PANEL":return c.push(b.payload.panelToAdd),c;case"REMOVE_OPEN_ENGAGEMENT_PANEL":return c.splice(c.indexOf(b.payload.panelToRemove),1),c;default:return a;}}, playerState:function(a,b){a=a===void 0?UA.playerState:a;switch(b.type){case"SET_PLAYER_STATE":return b.payload.playerState;default:return a;}}, watchScrollTop:function(a,b){a=a===void 0?UA.watchScrollTop:a;switch(b.type){case"SET_WATCH_SCROLL_TOP":return b.payload.watchScrollTop;default:return a;}}, watchWindowSize:function(a,b){a=a===void 0?UA.watchWindowSize:a;switch(b.type){case"SET_WATCH_WINDOW_SIZE":return b.payload.watchWindowSize;default:return a;}}, isSplitScroll:function(a,b){a=a===void 0?UA.isSplitScroll:a;switch(b.type){case"SET_IS_SPLIT_SCROLL":return b.payload.isSplitScroll;default:return a;}}, hasLiveChat:function(a,b){a=a===void 0?UA.hasLiveChat:a;switch(b.type){case"SET_HAS_LIVE_CHAT":return b.payload.hasLiveChat;default:return a;}}, isNarrowWatchFeedBigThumbs:function(a,b){a=a===void 0?UA.isNarrowWatchFeedBigThumbs:a;switch(b.type){case"SET_IS_NARROW_WATCH_FEED_BIG_THUMBS":return b.payload.isNarrowWatchFeedBigThumbs;default:return a;}}});var NVa={surveyFeedbackData:{feedbackTokens:[]}};var OVa=Vw({surveyFeedbackData:function(a,b){a=a===void 0?NVa.surveyFeedbackData:a;switch(b.type){case"YPC_UPDATE_SURVEY_FEEDBACK_DATA":return b.payload;case"YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},a,b.payload);default:return a;}}});var VA={isDesktopSmallWidth:!1,isShortsActive:!1,isWatchWhileMode:!1,playerState:-1,isFullscreen:!1,isSmallScreenSqueezeback:!1,isPlaybackStarted:!1,isShortsPipActive:!1,shortsLayout:0,metapanelStyle:0};var PVa=Vw({isDesktopSmallWidth:function(a,b){a=a===void 0?VA.isDesktopSmallWidth:a;switch(b.type){case"SET_IS_DESKTOP_SMALL_WIDTH":return b.payload.isDesktopSmallWidth;default:return a;}}, isShortsActive:function(a,b){a=a===void 0?VA.isShortsActive:a;switch(b.type){case"SET_IS_SHORTS_ACTIVE":return b.payload.isShortsActive;default:return a;}}, isWatchWhileMode:function(a,b){a=a===void 0?VA.isWatchWhileMode:a;switch(b.type){case"SET_IS_WATCH_WHILE_MODE":return b.payload.isWatchWhileMode;default:return a;}}, playerState:function(a,b){a=a===void 0?VA.playerState:a;switch(b.type){case"SET_PLAYER_STATE":return b.payload.playerState;default:return a;}}, isFullscreen:function(a,b){a=a===void 0?VA.isFullscreen:a;switch(b.type){case"SET_IS_FULLSCREEN":return b.payload.isFullscreen;default:return a;}}, isSmallScreenSqueezeback:function(a,b){a=a===void 0?VA.isSmallScreenSqueezeback:a;switch(b.type){case"SET_IS_SMALL_SCREEN_SQUEEZEBACK":return b.payload.isSmallScreenSqueezeback;default:return a;}}, isShortsPipActive:function(a,b){a=a===void 0?VA.isShortsPipActive:a;switch(b.type){case"SET_IS_SHORTS_PIP_ACTIVE":return b.payload.isShortsPipActive;default:return a;}}, isPlaybackStarted:function(a,b){a=a===void 0?VA.isPlaybackStarted:a;switch(b.type){case"SET_IS_PLAYBACK_STARTED":return b.payload.isPlaybackStarted;default:return a;}}, shortsLayout:function(a,b){a=a===void 0?VA.shortsLayout:a;switch(b.type){case"SET_SHORTS_LAYOUT":return b.payload.shortsLayout;default:return a;}}, metapanelStyle:function(a,b){a=a===void 0?VA.metapanelStyle:a;switch(b.type){case"SET_METAPANEL_STYLE":return b.payload.metapanelStyle;default:return a;}}});var QVa={};var RVa=function(a){return aA({type:"MAIN_APP_REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:a}})};var WA={isLiveChatCollapsed:!1,isPlaylistPanelCollapsed:!1,openEngagementPanels:[],hasPlaylist:!1};var SVa=Vw({isLiveChatCollapsed:function(a,b){a=a===void 0?WA.isLiveChatCollapsed:a;switch(b.type){case"MAIN_APP_SET_IS_LIVE_CHAT_COLLAPSED":return b.payload?b.payload.isLiveChatCollapsed:a;default:return a;}}, isPlaylistPanelCollapsed:function(a,b){a=a===void 0?WA.isPlaylistPanelCollapsed:a;switch(b.type){case"MAIN_APP_SET_IS_PLAYLIST_PANEL_COLLAPSED":return b.payload.isPlaylistPanelCollapsed;default:return a;}}, openEngagementPanels:function(a,b){a=a===void 0?WA.openEngagementPanels:a;switch(b.type){case"MAIN_APP_ADD_OPEN_ENGAGEMENT_PANEL":return[].concat(ia(a),[b.payload.panelToAdd]);case"MAIN_APP_REMOVE_OPEN_ENGAGEMENT_PANEL":return a.length===0?a:a.filter(function(c){return c!==b.payload.panelToRemove}); default:return a;}}, hasPlaylist:function(a,b){a=a===void 0?WA.hasPlaylist:a;switch(b.type){case"MAIN_APP_SET_HAS_PLAYLIST":return b.payload.hasPlaylist;default:return a;}}});var TVa={voiceSearch:QVa,shorts:VA,mainAppWatch:WA},UVa={voiceSearch:function(a,b){a=a===void 0?QVa:a;switch(b.type){case"SET_TRANSCRIPTION_STATE":return Object.assign({},a,{transcription:b.payload});case"SET_OVERLAY_STATE":return Object.assign({},a,{overlay:b.payload});case"RESET_VOICE_SEARCH_STATE":return{};default:return a;}}, shorts:PVa,mainAppWatch:SVa};var XA=new bA(Vw(Object.assign({},{continuation:tVa,download:xVa,canvas:function(a,b){a=a===void 0?yVa:a;switch(b.type){case"UPDATE_CANVAS_MODE":return Object.assign({},a,{currentMode:b.payload.currentMode});default:return a;}}, reportChannelAbuse:DVa,share:FVa,talkToRecs:HVa,ui:function(a,b){a=a===void 0?LVa:a;switch(b.type){case"SET_GUIDE_IS_EXPANDED":return Object.assign({},a,{guideIsExpanded:b.payload});case"SET_SCROLL_AT_TOP":return Object.assign({},a,{scrollAtTop:b.payload});case"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},a,{guideIsVisibleButNotPersistent:b.payload});case"SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},a,{miniplayerIsActive:b.payload});case"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({}, a,{singleOptionSurveyIsActive:b.payload});case"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},a,{slimlineSurveyRatingSelectedIndex:b.payload});case"SET_RICH_GRID_MINI_MODE":return Object.assign({},a,{richGridMiniMode:b.payload});case"SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},a,{richGridItemsPerRow:b.payload});case"SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},a,{richGridSlimItemsPerRow:b.payload});case"SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({}, a,{richGridContainerWidth:b.payload});case"SET_RICH_GRID_STYLE":return Object.assign({},a,{richGridStyle:b.payload});case"SET_CURRENT_PAGE_TYPE":return Object.assign({},a,{currentPageType:b.payload});case"SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},a,{inlinePreviewIsActive:b.payload});case"SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},a,{inlinePreviewIsEnabled:b.payload});case"SET_DARK_MODE_IS_ENABLED":return Object.assign({},a,{darkModeIsEnabled:b.payload});case"SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({}, a,{miniplayerPlaybackState:b.payload});case"SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},a,{tabGesturesIsActive:b.payload});case"SET_ONLINE_STATUS":return Object.assign({},a,{isOnline:b.payload});case"SET_CHIP_BAR_IS_STICKY":return Object.assign({},a,{chipBarIsSticky:b.payload});case"SET_FROSTED_GLASS_MODE":return Object.assign({},a,{frostedGlassMode:b.payload});default:return a;}}, watch:MVa,ypc:OVa,radioButtonGroup:function(a,b){a=a===void 0?vVa:a;switch(b.type){case"SET_CURRENT_FORM_ID":return b=b.payload.formId,a.currentFormId===b?a:{currentFormId:b,commandsMap:{}};case"SET_COMMAND_FOR_GROUP_ID":var c=b.payload;b=c.groupId;c=c.command;if(a.currentFormId){var d=Object.assign({},a.commandsMap);d[b]=c;a=Object.assign({},a,{commandsMap:d})}return a;case"RESET_COMMAND_MAP":return Object.assign({},a,{commandsMap:{}});default:return a;}}, collabInviteLink:function(a,b){a=a===void 0?rVa:a;switch(b.type){case"SET_COLLAB_INVITE_LINK":return{playlistId:b.payload.playlistId,inviteLinkURL:b.payload.inviteLinkUrl};default:return a;}}},qVa,UVa)),[function(){return function(a){return function(b){var c=a(b); Xu(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[b],!0);return c}}}, function(){return function(a){return function(b){if(b.type==="ENTITY_LOADED"){var c=Fn().resolve(Cn(AVa));c&&c.then(function(d){var e;(e=d.dispatchReduxAction)==null||e.call(d,b)})}return a(b)}}}]);var VVa=window.matchMedia("(forced-colors: active)").matches; function WVa(a){if(a)switch(a){case"yt-icons:like":case"LIKE":case"LIKE_SELECTED":if(x("kevlar_use_wil_icons"))return a=(a=iVa(XA.getState()))&&a.animationLightUrl&&a.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:a.animationLightUrl,pathDarkTheme:a.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,a?a:$z.get("LIKE");}} function XVa(a){var b=WVa(a);if(b)return b;switch(a){case"FACE_FILLED_HAPPY":case"FACE_OUTLINED_HAPPY":return $z.get("FACE_HAPPY");case"FACE_FILLED_MEH":case"FACE_OUTLINED_MEH":return $z.get("FACE_MEH");case"FACE_FILLED_SAD":case"FACE_OUTLINED_SAD":return $z.get("FACE_SAD");case"FACE_FILLED_UNHAPPY":case"FACE_OUTLINED_UNHAPPY":return $z.get("FACE_UNHAPPY");case"FACE_FILLED_VERY_HAPPY":case"FACE_OUTLINED_VERY_HAPPY":return $z.get("FACE_VERY_HAPPY");case"NOTIFICATIONS_NONE":return $z.get("NOTIFICATION_BELL");}} function YVa(a,b){if(!a.closest)return!1;b=!!WVa(b);return Vk("ID_TOKEN")&&b?!!a.closest("segmented-like-dislike-button-view-model")||!!a.closest("yt-player-quick-action-buttons"):!1} function ZVa(a,b){if(!a||VVa)b=!1;else{var c;if(!(c=YVa(a,b)))if(a.closest){if(a=a.closest("ytd-subscription-notification-toggle-button-renderer-next"),Vk("ID_TOKEN")&&a){var d;c=((d=a.data)==null?void 0:d.targetId)==="notification-bell"&&b!=="EXPAND_MORE"}else c=!1;}else c=!1;b=c}return b} function $Va(a){var b,c;return ra(function(d){switch(d.nextAddress){case 1:return d.setCatchFinallyBlocks(2),d.yield(fetch(a),4);case 4:return b=d.yieldResult,d.yield(b.json(),5);case 5:return d.return(d.yieldResult);case 2:c=d.enterCatchBlock(),fo(c),d.jumpToEnd();}})} function aWa(a,b){var c,d,e;return ra(function(f){if(f.nextAddress==1)return(c=b?a.pathDarkTheme:a.path)?f.yield(Promise.all([$Va(c),lVa()]),2):f.return();d=f.yieldResult;e=d[0];SA.set(c,e);f.jumpToEnd()})} ;var bWa;var cWa;var dWa=new Bn("LOTTIE_LOADER_TOKEN");function U(){for(var a=sa.apply(0,arguments),b=!0,c=l(a),d=c.next();!d.done;d=c.next())if(typeof d.value!=="string"){b=!1;break}return b?a.join(" ").trim()||void 0:function(){for(var e="",f=l(a),h=f.next();!h.done;h=f.next())if(h=h.value,typeof h==="function"&&(h=h()),h)if(typeof h==="string")e+=" "+h;else for(var m in h)if(h.hasOwnProperty(m)){var p=h[m];typeof p==="function"&&(p=p());p&&(e+=" "+m)}e=e.trim()||void 0;return Bp(e)}} ;var YA=O(function(a){var b=a.data;var c=a.className;var d=a.animationName;var e=a.animationRef;var f=a.elRefForInterop;var h=tw("lottie-component"),m;zp(function(){var q;return void((q=m)==null?void 0:q.destroy())}); var p;lw(function(){var q=Bp(d);if(q!==p){p=q;var t=Object.assign({},{animationName:q,animationRef:Bp(e)},Bp(b));try{Fn().resolve(dWa)().then(function(w){var y;(y=m)==null||y.destroy();var A,C;y=(C=f==null?void 0:(A=f())==null?void 0:A.value)!=null?C:h.value;A=t.animationRef;C=t.listeners;w=w.loadAnimation(Object.assign({},{container:y,rendererSettings:t.rendererSettings},t.animationConfig));A&&(A.lottieEl=w);if(C)for(y=l(Object.entries(C)),A=y.next();!A.done;A=y.next())C=l(A.value),A=C.next().value, (C=C.next().value)&&w.addEventListener(A,C);m=w})}catch(w){q=w; var u="LottieComponent error.";q.message&&(u+=" Original description: "+q.message);go(q,u);fo(q);var v;((v=t.listeners)==null?0:v.error)&&t.listeners.error(q)}}},"nrJISd"); return D(P,{cond:function(){return!(f==null?0:f())}, then:function(){return D("lottie-component",{class:U("ytLottieComponentHost",c),el:h})}})},"n");var eWa=new WeakMap;function fWa(a,b){if(a===void 0)b();else{a=Ao(a);try{b()}finally{Ao(a)}}} ;var ZA=function(a,b,c){b=b===void 0?"unknown":b;c=c===void 0?{}:c;Dl.call(this,a+" ("+b+")",Object.assign({},{name:"YtWcwError",tagName:b},c));Object.setPrototypeOf(this,this.constructor.prototype)}; k(ZA,Dl);var gWa=new WeakMap;var hWa=new WeakMap,iWa=!1;var $A=Symbol("signal"),aB=Symbol("static"),jWa=Symbol("slot"),kWa=new Set(Object.getOwnPropertyNames(Element.prototype));function lWa(a,b){a=new ZA(a,b);co(a);throw a} function mWa(a,b,c){var d=uHa(a);a._numRenders=0;var e=[[a],function(){}]; try{e=Hq(function(){return D(b,Object.assign({},c))},!!zo)}catch(h){var f=function(m){m.args||(m.args=[]); m.args.push("Error in web component wrapper");m.args.push(a.tagName.toLowerCase());return m}; eo(h instanceof Error?f(h):new ZA("Wiz rendering error",a.tagName.toLowerCase()));sp(h)}finally{uHa(d)}return e} function bB(a,b,c){function d(t){var u={};t=l(t);for(var v=t.next();!v.done;v=t.next()){v=v.value;var w=void 0,y=void 0,A=void 0,C=Qc((A=(y=(w=v).getAttribute)==null?void 0:y.call(w,"slot"))!=null?A:"children");if(w=u[C])w.push(v);else if(C in f||C==="children")u[C]=[v]}t=l(Object.keys(u));C=t.next();for(v={};!C.done;v={content$jscomp$55:void 0},C=t.next())C=C.value,C!=="children"&&(v.content$jscomp$55=u[C],u[C]=function(I){return function(){return I.content$jscomp$55}}(v)); return u} c=c===void 0?{}:c;a.debugName=b+" (CoW)";var e,f=(e=c.props)!=null?e:{};Su.add(b);var h=Dwa();e=function(){var t=h.apply(this,arguments)||this;t.rawProps={};t.queuingData=!1;t.owner=null;t.dispose=function(){}; t.isWebComponentWrapper=!0;t.isReparenting=!1;t.hasRendered=!1;t.isLazyComponentFn=!1;return t}; k(e,h);e.prototype.isQueuingForData=function(){return"data"in f&&!this.rawProps.data&&!this.getAttribute("data")}; e.prototype.render=function(){var t=this;x("lazy_cow_web_component_wrapper_ks")||this.hasRendered||(this.setUpProps(),this.hasRendered=!0);x("lazy_cow_web_component_wrapper_ks")&&(this.hasRendered=!0);for(var u=l([].concat(ia(this.attributes))),v=u.next();!v.done;v=u.next())v=v.value,v.name!=="slot"&&v.name!=="hidden"&&this.removeAttribute(v.name);var w=a,y=Object.assign({},this.componentProps,this.slotProps),A=gWa.get(this);if(A){var C=w;w=O(function(N){return D(hKa,{contexts:A.map(function(L){return iKa(L[0], L[1])})},D(C,Object.assign({},N)))},"o"); w.debugName=b+" (Context Provider)"}var I=[],K=function(){}; fWa(this.owner,function(){var N=l(mWa(t,w,y));I=N.next().value;K=N.next().value}); !(I[0]instanceof Element)||I.length>1?lWa("Wrapped Wiz components must return a single root element.",b):(u=I[0].tagName.toLowerCase(),u!==b&&lWa("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+(u+" !== '"+b),b),this.dispose=K)}; e.prototype.setUpProps=function(){var t=this;fWa(this.owner,function(){for(var u=t.rawProps,v=t.attributes,w=l(Object.keys(f)),y=w.next();!y.done;y=w.next()){y=y.value;var A=void 0;((A=t)==null?0:A[y])&&t[y]!==nWa&&u[y]===void 0&&(u[y]=t[y],(A=Object.getOwnPropertyDescriptor(t.constructor.prototype,y))&&Object.defineProperty(t,y,A))}w=l(v);for(y=w.next();!y.done;y=w.next()){A=y.value;y=Qc(A.name);var C=y==="class"&&!v.getNamedItem("class-name");if(y in f||C)A=A.value===""||A.value==="true"?!0:A.value=== "false"?!1:isNaN(Number(A.value))?A.value:Number(A.value),y!=="class"||u.className?u[y]=A:u.className=A}v={};for(var I in f)f[I]!==aB&&f[I]!==jWa&&(u[I]instanceof Function&&lWa("Function props must be configured as STATIC, not SIGNAL.",b),y=l(ip(u[I],void 0,"krzCTc")),w=y.next().value,y=y.next().value,v[I]=y,u[I]=w);u=l([u,v]);t.componentProps=u.next().value;t.setters=u.next().value}); this.slotProps=d(this.childNodes)}; e.prototype.setUpOwner=function(){for(var t=this;t&&!t.__owner;){var u=void 0,v=void 0;t=(v=t.parentElement)!=null?v:(u=t.parentNode)==null?void 0:u.host}var w,y;this.owner=(y=(w=t)==null?void 0:w.__owner)!=null?y:null}; e.prototype.connectedCallback=function(){var t=this;if(!Ru.has(this))if(this.isReparenting)this.isReparenting=!1;else{this.queuingData=this.isQueuingForData();this.isLazyComponentFn=!x("lazy_cow_web_component_wrapper_ks")&&eWa.has(a);this.owner||this.setUpOwner();var u;if((u=this.owner)==null?0:u.isDisposed)this.owner=null;!x("lazy_cow_web_component_wrapper_ks")||this.hasRendered||this.queuingData||this.setUpProps();this.queuingData||this.isLazyComponentFn||this.render();if(this.isLazyComponentFn){var v; (v=eWa.get(a))==null||v().then(function(w){w.debugName=b+" (CoW)";a=w;t.isLazyComponentFn=!1;!t.isQueuingForData()&&t.isConnected&&(t.queuingData=!1,t.render())}).catch(function(){var w=new ZA("Failed to load chunk",b); co(w)})}}}; e.prototype.disconnectedCallback=function(){if(!Ru.has(this)){var t;a:{if(iWa)for(t=this;t;){if(hWa.has(t)){t=!0;break a}t=t.parentElement}t=!1}if(t)this.isReparenting=!0;else{this.dispose();if(!this.queuingData&&!this.isLazyComponentFn){t=l([].concat(ia(this.attributes)));for(var u=t.next();!u.done;u=t.next()){u=u.value;var v=void 0;u.name==="slot"||u.name==="hidden"&&((v=c.unsafeExternallySettableAttributes)==null?0:v.has("hidden"))||this.removeAttribute(u.name)}}this.innerText="";hFa(this)}}}; e.prototype._setPendingPropertyOrPath=function(){}; e.prototype.notifyPath=function(){}; ba.Object.defineProperties(e.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}}, __dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}}); var m=Object.keys(f);m.includes("className")&&m.push("class");m=l(m);for(var p=m.next(),q={};!p.done;q={prop$jscomp$100:void 0},p=m.next())q.prop$jscomp$100=p.value,p=void 0,((p=c.legacyPolymer)==null?0:p.forwardHostProps)&&iFa.has(q.prop$jscomp$100)||Object.defineProperty(e.prototype,q.prop$jscomp$100,{set:function(t){return function(u){var v=this;Ru.has(this)||(t.prop$jscomp$100==="class"&&(t.prop$jscomp$100="className"),this.setters?hp(function(){var w,y;return void((y=(w=v.setters)[t.prop$jscomp$100])== null?void 0:y.call(w,u))}):(this.rawProps[t.prop$jscomp$100]=u,this.queuingData&&t.prop$jscomp$100==="data"&&u!=null&&(this.queuingData=!1,x("lazy_cow_web_component_wrapper_ks")&&this.setUpProps(),this.isLazyComponentFn||this.render())))}}(q), get:kWa.has(q.prop$jscomp$100)?void 0:function(){return nWa}}); customElements.define(b,e)} var nWa=Symbol("prop_value");bB(O(function(a){return D("ytd-lottie-player",{id:a.id,hidden:a.hidden,class:a.className,"aria-label":a.ariaLabel,style:"display: block;"},D(YA,{data:a.data,animationName:function(){var b;return((b=a.data().animationConfig)==null?void 0:b.name)||""}, animationRef:function(){return a.data().animationRef}}))},"p"),"ytd-lottie-player",{props:{data:$A, id:$A,hidden:$A,className:$A,ariaLabel:$A}});var cB=function(){var a=E.apply(this,arguments)||this;a.animationRef={};return a}; k(cB,E);g=cB.prototype; g.handlePropertyChange=function(){var a=this.animatedIcon,b=this.active,c=this.isDarkTheme;if(a){var d=this.previousActive!==b;this.previousActive=b;var e=this.animationRef.lottieEl;x("enable_web_animated_like_fix")?e&&d&&this.toggleAnimation(b,a.totalFrames):e?d?this.toggleAnimation(b,a.totalFrames):this.setAnimationState(b,a.totalFrames):b?this.initializeAnimationAsToggled(a.lottiePlayerProps,a.totalFrames):this.initializeAnimationAsUntoggled(a.lottiePlayerProps);a.lottiePlayerProps.animationRef=this.animationRef; this.animatedIconType=a.type;this.lottiePlayerProps=this.computeLottiePlayerProps(a,c)}}; g.computeLottiePlayerProps=function(a,b){var c=this,d=this.deepCloneLottiePlayerProps(a),e="",f="";b?(e=a.nameDarkTheme,f=a.pathDarkTheme):(e=a.name,f=a.path);d.animationConfig.name=e;(a=SA.get(f))?d.animationConfig.animationData=a:d.animationConfig.path=f;x("enable_web_animated_like_fix")&&(d.listeners=Object.assign({},d.listeners,{DOMLoaded:function(){c.animatedIcon&&c.setAnimationState(c.active,c.animatedIcon.totalFrames)}})); return d}; g.initializeAnimationAsToggled=function(a,b){a.animationConfig.initialSegment=[b-1,b]}; g.initializeAnimationAsUntoggled=function(a){a.animationConfig.initialSegment=void 0}; g.toggleAnimation=function(a,b){if(a){var c;(c=this.animationRef.lottieEl)==null||c.playSegments([0,b],!0)}else{var d;(d=this.animationRef.lottieEl)==null||d.playSegments([0,1],!0)}}; g.setAnimationState=function(a,b){this.animationRef.lottieEl&&this.animationRef.lottieEl.goToAndStop(a?b-1:0,!0)}; g.deepCloneLottiePlayerProps=function(a){var b=Object.assign({},a.lottiePlayerProps.animationConfig);a=Object.assign({},a.lottiePlayerProps);a.animationConfig=b;return a}; cB.prototype.handlePropertyChange=cB.prototype.handlePropertyChange;n([M(),r("design:type",Object)],cB.prototype,"animatedIcon",void 0);n([M({value:!1}),r("design:type",Boolean)],cB.prototype,"active",void 0);n([M(),r("design:type",Boolean)],cB.prototype,"isDarkTheme",void 0);n([M({reflectToAttribute:!0}),r("design:type",String)],cB.prototype,"animatedIconType",void 0);n([M(),r("design:type",Boolean)],cB.prototype,"previousActive",void 0); n([M(),r("design:type",Object)],cB.prototype,"lottiePlayerProps",void 0);n([M(),r("design:type",Object)],cB.prototype,"animationRef",void 0);n([Lt("animatedIcon","active","isDarkTheme"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],cB.prototype,"handlePropertyChange",null);n([fu({is:"yt-animated-icon",disableElementRegistration:!0})],cB); Tu(cB,"yt-animated-icon",function(){if(cWa===void 0){var a=document.createElement("template");Q(a,"");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;bWa===void 0&&(bWa=document.createElement("template"));var d=bWa;c.call(b,d.content.cloneNode(!0),a.content.firstChild);cWa=a}a=cWa;return a},{mode:2});var oWa;var pWa;function dB(){var a=sa.apply(0,arguments);return tw(IKa,function(b){var c=a.map(function(d){return d==null?void 0:d(b)}); return function(){return void c.forEach(function(d){return void(d==null?void 0:d())})}})} ;var eB=O(function(a){var b={value:null,cancelled:!1};zp(function(){b.cancelled=!0}); var c=Vo(a.data,{equals:function(d,e){return d.iconName===e.iconName&&d.iconStyle===e.iconStyle&&d.iconSize===e.iconSize&&d.iconSetName===e.iconSetName&&d.iconSelected===e.iconSelected}},"ck24jb"); return D("span",{class:"yt-icon-shape",el:dB(function(d){lw(function(){var e,f=(e=a.options)==null?void 0:e.call(a);e=c();qWa(d,b,e,f)},"v878Je")})})},"r"); eB.idomCompat=!0;function qWa(a,b,c,d){function e(h,m){if(b.value===m&&!b.cancelled){for(;a.firstChild;)a.removeChild(a.firstChild);a.classList.add("ytSpecIconShapeHost");h(a,d)}} var f=rWa(Fn().resolve($y),c);typeof f==="function"?(b.value=null,e(f,null)):(b.value=f,f.then(function(h){e(h,f)}))} ;var sWa=x("allow_nested_render_ks")?void 0:{allowNestedRender:oKa};function tWa(a,b){var c=document.createElement("div"),d=EKa(c,function(){return D(P,{cond:a,then:function(e){return D(eB,{data:e,options:b})}})},sWa); return[c,d]} ;var uWa={FILLED:"youtube_fill",OUTLINE:"youtube_outline"},fB=["youtube_fill","youtube_outline"];var vWa=new Set(["ci","cr","carml"]),gB=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$8793_parkedJobs=new Map;this.parkedProcessors=new Map},hB=function(){gB.instance||(gB.instance=new gB); return gB.instance}; gB.prototype.onAny=function(a){if(a.length>1){var b=[],c=Object.create(null);a=l(a);for(var d=a.next();!d.done;d=a.next())d=d.value,c[d]||(b.push(d),c[d]=!0);a=b}if(a.length===1)a=a[0];else{c=a;b="";c.sort();c=l(c);for(d=c.next();!d.done;d=c.next())b+=d.value+"|";if(!this.compoundSignals.get(b)){c=0;d=[];for(var e=l(a),f=e.next();!f.done;f=e.next())f=f.value,c++,iB(this,f)||d.push(f);c>d.length?this.signals.push(b):wWa(this,b,a,d)}a=b}return a}; gB.prototype.parkOrScheduleJob=function(a,b,c,d,e){iB(this,c)?Hl(Pl(),a,b,d):(e&&(a=xWa(a),yWa(this,a,b,c,e)),e=this.JSC$8793_parkedJobs.get(c),e||(this.JSC$8793_parkedJobs.set(c,[]),e=this.JSC$8793_parkedJobs.get(c)),e.push({job:a,priority:b,delay:d}))}; gB.prototype.addListener=function(a,b,c){c&&(b=xWa(b),yWa(this,b,0,a,c));c=this.parkedProcessors.get(a);c||(this.parkedProcessors.set(a,[]),c=this.parkedProcessors.get(a));c.push(b)}; gB.prototype.processSignal=function(a){if(!iB(this,a)){this.inProgressSignals.add(a);var b=this.JSC$8793_parkedJobs.get(a);if(b){b=l(b);for(var c=b.next();!c.done;c=b.next())c=c.value,Hl(Pl(),c.job,c.priority,c.delay);this.JSC$8793_parkedJobs.delete(a)}if(b=this.parkedProcessors.get(a)){b=l(b);for(c=b.next();!c.done;c=b.next())c=c.value,c();this.parkedProcessors.delete(a)}this.signals.push(a);this.inProgressSignals.delete(a)}}; var iB=function(a,b){return vWa.has(b)||Vk("IS_HOMEPAGE_COLD")||Vk("IS_RESULTS_PAGE_COLD")||Vk("IS_WATCH_PAGE_COLD")?a.signals.indexOf(b)>=0:!0},xWa=function(a){var b=!1; return function(){b||(b=!0,a())}},yWa=function(a,b,c,d,e){if(zWa.has(d))Hl(Pl(),b,c,e);else {var f=a.compoundSignals.get(d);f&&Hl(Pl(),function(){iB(a,d)||(f.isTimeoutConditionSatisfied?Hl(Pl(),b,c):f.timeoutConditionObservers.push(function(){Hl(Pl(),b,c)}))},c,e)}},wWa=function(a,b,c,d){var e=function(){a.processSignal(b)}; d=l(d);for(var f=d.next();!f.done;f=d.next())a.addListener(f.value,e);a.compoundSignals.set(b,{signals:c,isOnAny:!0,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});AWa(a,b)},AWa=function(a,b){if(!iB(a,b)){var c=a.compoundSignals.get(b); if(c&&!c.isTimeoutConditionSatisfied){for(var d=!1,e=0,f=0,h=l(c.signals),m=h.next();!m.done;m=h.next()){var p=m.value;m=!iB(a,p);zWa.has(p)?d=!0:(p=a.compoundSignals.get(p))?m&&!p.isTimeoutConditionSatisfied&&(f++,c.isInitialized||p.timeoutConditionObservers.push(function(){AWa(a,b)})):m&&e++}c.isInitialized=!0; c.isOnAny?d&&(c.isTimeoutConditionSatisfied=!0):e===0&&f===0&&(c.isTimeoutConditionSatisfied=!0);if(c.isTimeoutConditionSatisfied)for(c=l(c.timeoutConditionObservers),d=c.next();!d.done;d=c.next())d=d.value,d()}}}; gB.prototype.processSignal=gB.prototype.processSignal;gB.prototype.parkOrScheduleJob=gB.prototype.parkOrScheduleJob;gB.prototype.onAny=gB.prototype.onAny;va("ytsignals.getInstance",hB);gB.prototype.onAny=gB.prototype.onAny;gB.prototype.parkOrScheduleJob=gB.prototype.parkOrScheduleJob;gB.prototype.processSignal=gB.prototype.processSignal;var zWa=new Set(["eop","eocs","dl","pcl"]);var BWa=new Pw({type:"iconset",value:void 0}),jB=function(){var a=E.apply(this,arguments)||this;a.isDarkTheme=document.documentElement.hasAttribute("dark");a.iconName="";a.iconsetName="yt-icons";a.iconset=null;a.missingIconSet=!1;a.iconType=null;a.iconShapeDataSignal=ip(void 0,void 0,"Mf3JCc");a.renderingOptionsSignal=ip({iconWidth:"100%",iconHeight:"100%",iconFilter:a.iconFilter,iconColor:a.gradientColor},void 0,"goDozd");a.wizHasRendered=!1;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"}; return a}; k(jB,E);jB.prototype.updateIconSize=function(){x("web_yt_icon_update_styles_killswitch")||this.size===24||Ft(this.hostElement,{width:this.size+"px",height:this.size+"px"})}; jB.prototype.onDarkModeToggledAction=function(a){a!==this.isDarkTheme&&(this.isDarkTheme=a)}; jB.prototype.handlePropertyChange=function(){var a=this,b,c,d,e,f,h,m,p,q,t,u,v,w,y,A,C,I;return ra(function(K){switch(K.nextAddress){case 1:if(b=!a.icon&&!a.iconName||!a.isAttached)return K.return();c=a;d=c.icon;e=c.size;f=c.defaultToFilled;h=c.active;m=c.targetContainer;a.toggleContainerClass(m);x("kevlar_use_wil_icons")&&d&&(p=az(d),a.iconType=p.length?p[1]:null);if(d){K.jumpTo(2);break}a.iconsetName="";a.iconName="";return K.yield(a.renderIcon(m,d),3);case 3:return K.return();case 2:q=CWa(d); t=az(q);t.length&&(a.iconsetName=t[0],a.iconName=t[1]);if(!x("kevlar_use_wil_icons")){K.jumpTo(4);break}u=jB;v=DWa;w=a.iconType;y=a.active;A=a.defaultToFilled;C=a.size;I=a.iconsetName;return K.yield(EWa(),6);case 6:return K.yield(v.call(u,w,y,A,C,I,K.yieldResult),5);case 5:a.iconShapeData=K.yieldResult;case 4:if(a.shouldRenderIconShape(m)){K.jumpTo(7);break}return K.yield(a.determineIconSet(q,h,f,e,m),7);case 7:return K.yield(a.renderIcon(m,d),0);}})}; jB.prototype.toggleContainerClass=function(a){a?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")}; var CWa=function(a){return!x("default_to_innertube_icon")||a.indexOf(":")>0?a:cz(a)}; g=jB.prototype;g.determineIconSet=function(a,b,c,d){var e=this;return ra(function(f){return f.nextAddress==1?x("kevlar_system_icons")||Vk("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||Vk("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?f.yield(e.switchToYtSysIconset(a,b,c,d),3):f.jumpTo(2):f.nextAddress!=2?f.return():f.yield(e.useYtSysIconsetForMissingIcons(a,b,c,d),0)})}; g.switchToYtSysIconset=function(a,b,c,d){var e=this,f,h,m,p,q,t,u;return ra(function(v){switch(v.nextAddress){case 1:if(!a||e.iconsetName!=="yt-icons"&&e.iconsetName!=="yt-sys-icons"){v.jumpTo(0);break}f=az(a);h=f[1];var w=h;if(vSa(w))h=w;else{var y=w=w.toLowerCase();(w=uSa.get(w))&&(y=w);h=y}x("enable_polymer_icons_replace_underscores_dash")&&h.includes("_filled")&&(h=h.replace(/_filled/g,"-filled"));return v.yield(bz(h,!0),3);case 3:return m=v.yieldResult,v.yield(bz(h,!1),4);case 4:if((p=v.yieldResult)|| b&&m)e.iconsetName="yt-sys-icons";e.iconName=e.getIconName(h,b,c,p,m);if(d===24){v.jumpTo(0);break}q="yt-sys-icons"+d+":"+e.iconName;return v.yield(bz(q,!1,!0),6);case 6:return t=v.yieldResult,v.yield(bz(q,!0,!0),7);case 7:u=v.yieldResult;e.iconName=e.getIconName(h,b,c,t,u);if(!b&&t||b&&u)e.iconsetName="yt-sys-icons"+d;v.jumpToEnd();}})}; g.getIconName=function(a,b,c,d,e){a.includes("-filled")&&(a=a.replace("-filled",""));return e&&(b||c)?a+"-filled":a}; g.useYtSysIconsetForMissingIcons=function(a,b,c,d){var e=this,f,h;return ra(function(m){if(m.nextAddress==1)return e.iconsetName!=="yt-icons"?m.jumpTo(0):m.yield(bz(e.iconName,!1,!1,!0),3);if(m.nextAddress!=4)return f=m.yieldResult,m.yield(bz(e.iconName,!1),4);h=m.yieldResult;if(f||!h)return m.jumpTo(0);e.iconsetName="yt-sys-icons";return m.yield(e.switchToYtSysIconset(a,b,c,d),0)})}; g.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)}; var EWa=function(){return ra(function(a){try{return a.return(Fn().resolve($y))}catch(b){return a.return(new Promise(function(c){hB().parkOrScheduleJob(function(){c(Fn().resolve($y))},2,"ci")}))}})},DWa=function(a,b,c,d,e,f){d=d===void 0?24:d; if(a){a=a.toLowerCase();var h=a.endsWith("_filled")||a.endsWith("-filled");b={iconName:a,iconStyle:(b===void 0?0:b)||(c===void 0?0:c)||h?"youtube_fill":"youtube_outline",iconSize:d,iconSetName:e===void 0?"yt-icons":e};c=!!f.resolveIcon(b);c||(b.iconSize=void 0,c=!!f.resolveIcon(b));!c&&h&&(b.iconName=a.substring(0,a.length-7),b.iconSize=d,c=!!f.resolveIcon(b),c||(b.iconSize=void 0,c=!!f.resolveIcon(b)));c||(b.iconStyle=void 0,c=!!f.resolveIcon(b));c||fo(new Dl("Icon not supported",{iconName:b.iconName, iconStyle:b.iconStyle,iconSize:b.iconSize,iconType:a}));return c?b:void 0}}; g=jB.prototype;g.shouldRenderIconShape=function(a){if(!x("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;a=this.getContainer(a);return!ZVa(a,this.icon)}; g.renderIcon=function(a,b){var c=this,d,e,f,h,m,p,q,t;return ra(function(u){switch(u.nextAddress){case 1:if(b&&c.icon!==b)return u.return();d=c.getContainer(a);e=ZVa(d,c.icon);if(c.shouldRenderIconShape(a)&&c.iconType)return c.applyIconShape(e,d),u.return();c.removeIconShape();if(!d)return u.return();c.iconName===""&&c.iconset&&d&&(c.removeStaticIcon(c.iconset,d),e&&c.removeAnimatedIcon(d));if(c.iconName===""&&c.iconset||!c.iconsetName||!BWa)return u.return();c.iconset=BWa.byKey(c.iconsetName);if(!c.iconset)return c.missingIconSet= !0,window.addEventListener("iron-iconset-added",It(c,c.onIconsetAdded)),u.return();c.missingIconSet&&(c.missingIconSet=!1,window.removeEventListener("iron-iconset-added",It(c,c.onIconsetAdded)));h=(f=e||c.isAnimatedIcon?XVa(c.icon):void 0)&&!f.lazyLoad;p=f&&((m=f)==null?void 0:m.lazyLoad)&&(f.lottiePlayerProps.animationConfig.animationData?!0:SA.get(c.isDarkTheme?f.pathDarkTheme:f.path)?!0:!1);if(h||p)return c.applyAnimatedIcon(d,f,c.iconset),u.return();if(p||(q=f)==null||!q.lazyLoad){u.jumpTo(2); break}t=aWa(f,c.isDarkTheme);c.applyStaticIcon(c.iconset,d,c.iconName,a,e);return u.yield(t,3);case 3:return u.yield(c.renderIcon(c.targetContainer,c.icon),4);case 4:return u.return();case 2:c.applyStaticIcon(c.iconset,d,c.iconName,a,e),u.jumpToEnd();}})}; g.getContainer=function(a){var b,c=(b=jDa(this.hostElement))==null?void 0:b.host;b=!!c&&!!c.polymerController;if(!a||b)return a?this.getTargetContainer(a,c):this.hostElement}; g.getTargetContainer=function(a,b){var c=wt(b).querySelector("#"+a);c||(a=new Dl("yt-icon container missing",b.is,a),co(a));return c}; g.applyStaticIcon=function(a,b,c,d,e){e&&this.removeAnimatedIcon(b);this.removeIconShape();e=e&&!!this.iconType&&!!this.iconShapeData&&x("kevlar_use_wil_icons");try{e?this.applyIconShape(!1,b):a.applyIcon(b,c)}catch(f){this.handleError(f,d,b)}}; g.applyIconShape=function(a,b){this.iconset&&b&&(this.removeStaticIcon(this.iconset,b),a&&this.removeAnimatedIcon(b));a={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter,iconColor:this.gradientColor};var c=l(this.iconShapeDataSignal);b=c.next().value;c=c.next().value;var d=l(this.renderingOptionsSignal),e=d.next().value;d=d.next().value;c(this.iconShapeData);d(a);if(!this.wizHasRendered)for(this.wizHasRendered=!0,a=l(tWa(b,e)).next().value;a.firstChild;)wt(this.hostElement).appendChild(a.firstChild)}; g.removeIconShape=function(){if(x("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)}; g.removeStaticIcon=function(a,b){a.removeIcon(b)}; g.applyAnimatedIcon=function(a,b,c){this.removeStaticIcon(c,a);this.removeIconShape();var d;c=this.animatedIconElement&&((d=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:d.type)===b.type;if(this.animatedIconElement&&c){this.animatedIconElement.polymerController.animatedIcon=b;var e;((e=this.animatedIconElement)==null?void 0:e.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(a), this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=b,this.animatedIconElement.polymerController.active=this.active,x("delhi_modern_web_player_icons")?(b=YVa(a,this.icon)&&a.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=b?b.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,x("kevlar_use_wil_icons")? a.insertBefore(this.animatedIconElement,a.childNodes[0]):(a=wt(a),a.insertBefore(this.animatedIconElement,a.childNodes[0]))}; g.removeAnimatedIcon=function(a){x("kevlar_use_wil_icons")?this.animatedIconElement&&a.contains(this.animatedIconElement)&&a.removeChild(this.animatedIconElement):(a=wt(a),this.animatedIconElement&&a.contains(this.animatedIconElement)&&a.removeChild(this.animatedIconElement));this.animatedIconElement=void 0}; g.handleError=function(a,b,c){go(a,this.iconName,b,c);b=ZVa(c,this.icon);var d=!1;window.location.href.includes("JpymaW6Lh2w")?d=!0:c._svgIcon&&(c=(c=c._svgIcon.parentNode)?c.tagName:"unknown",go(a,c),c==="YT-ICON"&&a.name==="NotFoundError"?d=!0:a.name==="NotFoundError"&&b&&(d=!0));d?fo(a):co(a)}; ba.Object.defineProperties(jB,{template:{configurable:!0,enumerable:!0,get:function(){if(pWa===void 0){var a=document.createElement("template");Q(a,"");a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;oWa=== void 0&&(oWa=document.createElement("template"));var d=oWa;c.call(b,d.content.cloneNode(!0),a.content.firstChild);pWa=a}a=pWa;return a}}}); jB.prototype.handlePropertyChange=jB.prototype.handlePropertyChange;jB.prototype.updateIconSize=jB.prototype.updateIconSize;n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],jB.prototype,"actionHandlerBehavior",void 0);n([M(),r("design:type",String)],jB.prototype,"icon",void 0);n([M({value:!1}),r("design:type",Boolean)],jB.prototype,"active",void 0);n([M({value:!1}),r("design:type",Boolean)],jB.prototype,"defaultToFilled",void 0); n([M({value:!1}),r("design:type",Boolean)],jB.prototype,"isAnimatedIcon",void 0);n([M({value:24}),r("design:type",Number)],jB.prototype,"size",void 0);n([Lt("size"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],jB.prototype,"updateIconSize",null);n([M({value:""}),r("design:type",String)],jB.prototype,"targetContainer",void 0);n([M(),r("design:type",Object)],jB.prototype,"animatedIconElement",void 0);n([M(),r("design:type",Object)],jB.prototype,"isDarkTheme",void 0); n([M({reflectToAttribute:!0}),r("design:type",Boolean)],jB.prototype,"ariaHidden",void 0);n([M({reflectToAttribute:!0}),r("design:type",String)],jB.prototype,"ariaLabel",void 0);n([M({reflectToAttribute:!0}),r("design:type",String)],jB.prototype,"role",void 0);n([M({reflectToAttribute:!0}),r("design:type",String)],jB.prototype,"tabindex",void 0);n([M({reflectToAttribute:!0}),r("design:type",String)],jB.prototype,"title",void 0);n([M(),r("design:type",String)],jB.prototype,"style",void 0); n([M(),r("design:type",String)],jB.prototype,"iconFilter",void 0);n([M(),r("design:type",String)],jB.prototype,"gradientColor",void 0);n([Lt("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme","gradientColor","iconFilter"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",Promise)],jB.prototype,"handlePropertyChange",null);n([fu({is:"yt-icon",noInjection:!0})],jB);var FWa;var GWa=function(){var a=document.body,b=a.appendChild;if(FWa===void 0){var c=document.createElement("template");Q(c,"\n 5\n \n 4\n \n 3\n \n 2\n \n 1\n "); FWa=c}c=FWa;b.call(a,c.content)}; document.body?GWa():window.addEventListener("DOMContentLoaded",GWa);var HWa=new Ql("yt-live-chat"),IWa=new Map;IWa.set("timestamp_toggle","show-timestamps");IWa.set("reactions_toggle","allow-reactions");var kB=function(){return E.apply(this,arguments)||this}; k(kB,E);g=kB.prototype;g.menuItemIdentifierChanged=function(){var a;(a=this.data)!=null&&a.menuItemIdentifier&&(a=IWa.get(this.data.menuItemIdentifier))&&(x("enable_lwe_web_mute")?(a=HWa.get(a),this.isToggled=!(a===void 0?!this.data.isToggled:!a)):this.isToggled=HWa.get(a))}; g.onFocus=function(){this.toggleButton.focus()}; g.onTap=function(){var a=this.data.command;a&&this.componentBehavior.resolveCommand(a)}; g.computeText=function(a,b,c){return this.componentBehavior.getSimpleString(a?c:b)}; g.computeIcon=function(a,b,c){return(a=a?c:b)&&a.iconType?cz(a.iconType):""}; kB.prototype.onTap=kB.prototype.onTap;kB.prototype.onFocus=kB.prototype.onFocus;kB.prototype.menuItemIdentifierChanged=kB.prototype.menuItemIdentifierChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],kB.prototype,"ytRendererBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],kB.prototype,"componentBehavior",void 0);n([M(),r("design:type",Object)],kB.prototype,"data",void 0); n([M({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),r("design:type",String)],kB.prototype,"icon",void 0);n([M({value:!1}),r("design:type",Boolean)],kB.prototype,"isToggled",void 0);n([Tt("tp-yt-paper-toggle-button"),r("design:type",Object)],kB.prototype,"toggleButton",void 0);n([Lt("data.menuItemIdentifier"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],kB.prototype,"menuItemIdentifierChanged",null); n([Kt("focus"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],kB.prototype,"onFocus",null);n([Kt("tap"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],kB.prototype,"onTap",null);n([fu({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],kB); Tu(kB,"yt-live-chat-toggle-renderer",function(){if(kSa===void 0){var a=document.createElement("template");Q(a,"\n \n [[computeText(data.isToggled, data.defaultText, data.toggledText)]]\n \n \n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;jSa===void 0&&(jSa=document.createElement("template"));var d=jSa;c.call(b,d.content.cloneNode(!0),a.content.firstChild);kSa=a}a=kSa;return a},{mode:0});var lB=function(a,b){this.data=a;this.actions=b;this.data=a;this.actions=b},mB=function(){};function JWa(a,b,c){Xu(a,"yt-open-popup-action",[b,c||a])} function KWa(a,b){var c=Rk(a,"endpoint"),d=Rk(a,"action");return(c=d?d:c)&&b&&(c=b.navigationEndpointPopupMap[c])&&(a=xa(c,a),(c=Rk(a,"renderer"))&&b.supportedPopups.hasOwnProperty(c))?{openPopupAction:{popupType:b.popupTypeMap[c],popup:a}}:null} ;var nB={};nB.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null}, openPopup:function(a,b){JWa(this.hostElement,a,b)}, getNavigationEndpointPopupAction:function(a){return KWa(a,this.openPopupConfig)}, onOpenPopupServiceRequestCompleted_:function(a,b){var c=this.hostElement,d=this.openPopupConfig;if(d){var e;b=b==null?void 0:(e=b.data)==null?void 0:e.contents;(e=b instanceof Array&&b.length?b[0]:b)&&(b=Rk(e,"renderer"))&&d.supportedPopups.hasOwnProperty(b)&&(a.stopPropagation(),JWa(c,{openPopupAction:{popupType:d.popupTypeMap[b],popup:e}}))}}};var oB=function(){var a=kt.apply(this,arguments)||this;a._noAccessors=!0;return a}; k(oB,kt);oB.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=Vk("openPopupConfig")}; n([F(nB.YtOpenPopupBehavior),r("design:type",Object)],oB.prototype,"ytOpenPopupBehavior",void 0);n([Vt()],oB);var pB=[nB.YtOpenPopupBehavior,oB.prototype];var LWa;var MWa,NWa=function(){return MWa!==void 0?MWa:MWa=document.createElement("template")}; document.head.appendChild(NWa().content);var OWa;var PWa,QWa=function(){return PWa!==void 0?PWa:PWa=document.createElement("template")}; document.head.appendChild(QWa().content);var RWa;var SWa=document.head,TWa=SWa.appendChild,UWa;if(RWa===void 0){var qB=document.createElement("template");Q(qB,"");qB.content.insertBefore(QWa().content.cloneNode(!0),qB.content.firstChild);RWa=qB}UWa=RWa;TWa.call(SWa,UWa.content);var VWa=document.head,WWa=VWa.appendChild,XWa;if(OWa===void 0){var rB=document.createElement("template");Q(rB,"");rB.content.insertBefore(NWa().content.cloneNode(!0),rB.content.firstChild);OWa=rB}XWa=OWa;WWa.call(VWa,XWa.content);var YWa,ZWa=function(){return YWa!==void 0?YWa:YWa=document.createElement("template")}; document.head.appendChild(ZWa().content);var $Wa;var aXa=document.head,bXa=aXa.appendChild,cXa;if($Wa===void 0){var sB=document.createElement("template");Q(sB,"");sB.content.insertBefore(ZWa().content.cloneNode(!0),sB.content.firstChild);$Wa=sB}cXa=$Wa;bXa.call(aXa,cXa.content);var dXa;(dXa=document.body)==null||dXa.setAttribute("rounded-container","");var eXa=function(){}; eXa.prototype.flush=function(a,b){a=a===void 0?[]:a;b=b===void 0?!1:b;if(x("enable_client_streamz_web")){a=l(a);for(var c=a.next();!c.done;c=a.next())c=iLa(c.value),this.rootSpec&&Gf(c,2,this.rootSpec),c={serializedIncrementBatch:Fd(c.JSC$7862_serializeBinary())},ao("streamzIncremented",c,{sendIsolatedPayload:b})}}; var fXa=function(){}; k(fXa,eXa);var gXa=function(a){var b=new bLa;var c=new ZKa;c=fg(c,1,"botguard");a=fg(c,2,a);this.rootSpec=Jf(b,1,cLa,a)}; k(gXa,eXa);var tB;function iw(){if(!tB){tB=new Cw(new fXa());var a=ll("client_streamz_web_flush_count",-1);a!==-1&&(tB.invocationLimit=a)}return tB} var hXa=new Map;function iXa(){try{return!!self.localStorage}catch(a){return!1}} ;var uB=function(a){this.expiringStorage=new Ej(a)}; uB.prototype.set=function(a,b,c){c=c!==void 0?Date.now()+c:void 0;this.expiringStorage.set(a,b,c)}; uB.prototype.get=function(a){return this.expiringStorage.get(a)}; uB.prototype.remove=function(a){this.expiringStorage.remove(a)};function jXa(){var a=kXa;a||(a=document.querySelector("#persist_identity"));return a} function lXa(){var a=!1;try{a=!!window.sessionStorage.getItem("session_logininfo")}catch(b){a=!0}return(Vk("INNERTUBE_CLIENT_NAME")==="WEB"||Vk("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&a} function mXa(a){var b;if(!lXa())return!1;b||(b=Vk("LOGIN_INFO"));return b?(a.session_logininfo=b,!0):!1} function vB(){var a=a===void 0?!0:a;try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");Uk("LOGIN_INFO","");a&&window.sessionStorage.setItem("from_switch_account","1");a=!0;a=a===void 0?!1:a;var b=jXa();if(b){var c=b.src?new URL(b.src).origin:"*";if(a){var d;(d=b.contentWindow)==null||d.postMessage({action:"clear"},c)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=2)){var e=window.sessionStorage.getItem("session_logininfo"); if(e){var f;(f=b.contentWindow)==null||f.postMessage({loginInfo:e},c)}}}}catch(h){}} function nXa(a){a&&(a.startsWith("https://accounts.google.com/AddSession")?vB():a.startsWith("https://accounts.google.com/ServiceLogin")?vB():a.startsWith("https://myaccount.google.com")&&Qp(a).JSC$6953_path_.endsWith("/youtubeoptions")&&vB())} function wB(a){nXa(a);if(Vk("LOGGED_IN",!0)&&lXa()){var b=Vk("VALID_SESSION_TEMPDATA_DOMAINS",[]);var c=Tc(window.location.href);c&&b.push(c);c=Tc(a);yc(b,c)||!c&&a.lastIndexOf("/",0)==0?(b=Vc(a),(b=Wc(b))?(b=YQa(b),b=(b=yl(b)||null)?Zk(b):{}):b=null):b=null;b==null&&(b={});mXa(b)&&Hy(a,b)}} var kXa=null;var oXa=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"]; function pXa(a,b,c,d,e){e=e===void 0?!1:e;var f=ll("pbj_navigate_limit",-1)===0;qXa(b);Fn().resolve(Cn(Ss));var h=b.data;if(Object.keys(h).length!==0)if(!x("unplugged_web_disable_actions_for_cec_endpoint")&&z(h,iy))x("endpoint_behavior_command_executor_fix_killswitch")||(c.preventDefault(),c.stopPropagation()),Zu(a,[h],a);else if(d=KWa(h,d))h.loggingUrls&&h.loggingUrls.forEach(function(p){p.baseUrl&&$m(p.baseUrl)}),c.preventDefault(),c.stopPropagation(),JWa(a,d,b);else {var m=fCa(0,b.data,c);if(a=b.getForm)a=a(),m.tempData=m.tempData||{},m.tempData=Object.assign({},m.tempData,a);a=lt(c);if(d=a.find(function(p){return!!p.visualElement}))m.createScreenConfig=m.createScreenConfig||{},m.createScreenConfig.clickedVisualElement=d.visualElement; if(!f)if(c.preventDefault(),c.stopPropagation(),z(h,EPa)&&!e&&fz.instance)fz.instance.resolveCommand(h,m);else if(x("kevlar_command_handler_formatted_string")&&!e&&fz.instance&&rXa(h))e=a.find(function(p){return!!p.is})||c.target,c={form:Object.assign({},m,{event:c, element:e,originatingNode:b})},fz.instance.resolveCommand(h,c);else{h=lt(c);c=[];for(e=0;e1&&(b*=e);if(x("kevlar_tuner_min_thumbnail_quality"))return a[0].url|| null;e=a.length;if(x("kevlar_tuner_max_thumbnail_quality"))return a[e-1].url||null;if(c)for(var f=0;f=0)return a[f].url||null;for(c=0;c=b)return a[c].url||null;for(b=e-1;b>0;b--)if(a[b][d])return a[b].url||null;return a[0].url||null} function zXa(){CB.size?setTimeout(function(){Nl(AXa)},0):BB=0} function AXa(){var a=im(),b=null,c=!1;CB.forEach(function(e){e.loaded=!0;e.loadTime=a;e.pendingPaint=!1;var f=yXa.get(e);f&&f.resolve(a);b=e;c||!e.ftlEligible&&e.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(c=!0)}); var d;((d=b)==null?0:d.markDirty)&&b.markDirty();CB.clear();BB=0;c&&xXa(a)} function BXa(a){CB.add(a);a.pendingPaint=!0;BB||(BB=Ml(zXa))} ;var CXa;var DXa;function FB(a,b,c){c===void 0?delete a[b.name]:a[b.name]=c} ;function GB(a){var b={androidIncludeFontPadding:!1},c=0,d=[],e=[],f=[];if(a.simpleText)return b.content=a.simpleText,b;if(a.runs===void 0)return b.content="",b;a=l(a.runs);for(var h=a.next();!h.done;h=a.next()){h=h.value;var m=h.text,p=void 0,q=(p=m)==null?void 0:p.length;if(m&&q){d.push(m);if(h.bold||h.italics||h.strikethrough||h.underline||h.textColor!=null&&h.textColor!==0||h.deemphasize){m=e;p=m.push;var t={startIndex:c,length:q};h.bold&&(t.weightLabel="FONT_WEIGHT_MEDIUM");h.italics&&(t.italic= !0);h.strikethrough&&(t.strikethrough="LINE_STYLE_SINGLE");h.underline&&(t.underline="LINE_STYLE_SINGLE");h.textColor!=null&&h.textColor!==0?document.documentElement.hasAttribute("dark")?t.fontColor=h.darkModeTextColor||h.textColor:t.fontColor=h.textColor:h.deemphasize&&(document.documentElement.hasAttribute("dark")?t.fontColor=parseInt("ff"+Gw("#aaa").substring(1),16):t.fontColor=parseInt("ff"+Gw("#606060").substring(1),16));p.call(m,t)}h.navigationEndpoint&&(m=f,p=m.push,t={startIndex:c,length:q, onTap:{innertubeCommand:h.navigationEndpoint}},h.loggingDirectives&&FB(t,gOa,h.loggingDirectives),p.call(m,t));c+=q}}b.content=d.join("");b.styleRuns=e.length?e:void 0;b.commandRuns=f.length?f:void 0;return b} function EXa(a){if(a==null||!a.runs)return!0;a=l(a.runs);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.bracket||b.errorUnderline||b.deemphasize||z(b,jy)||z(b,kQa))return!1;return!0} ;var HB=new Bn("DARK_THEME_TOKEN");var FXa=new Qk("accessibilityProperties");var GXa=new Qk("layoutProperties");var HXa=new Qk("imageType");function IB(a){if(!((a==null?0:a.value)&&(a==null?0:a.unit)))return"";switch(a.unit){case"DIMENSION_UNIT_FRACTION":var b="%";break;default:b="px";}a=a.value;b==="%"&&(a*=100);return""+a+b} ;var IXa=function(a){var b=this;this.holdTime=a===void 0?500:a;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(c){var d=new CustomEvent("LONG_PRESS"),e;(e=c.changedTouches[0].target)==null||e.dispatchEvent(d)}; this.ontouchstart=function(c){b.longPressTimeout=Ll(function(){b.onlongpress(c);b.longPressOccurred=!0},b.holdTime)}; this.ontouchmove=function(){bj.cancelJob(b.longPressTimeout);b.longPressTimeout=NaN;b.longPressOccurred=!1;b.moveOccurred=!0}; this.ontouchend=function(c){if(b.longPressTimeout&&!b.longPressOccurred&&!b.moveOccurred){var d;(d=c.changedTouches[0].target)==null||d.dispatchEvent(new Event("click"))}bj.cancelJob(b.longPressTimeout);b.longPressTimeout=NaN;b.longPressOccurred=!1;b.moveOccurred=!1}};var JXa=function(a,b){IXa.call(this,b);var c=this;this.callback=a;this.onlongpress=function(d){var e;(e=c.callback)==null||e.call(c,d)}}; k(JXa,IXa);var KXa=function(a,b){var c=Object.assign({},b);a=l(new Map([["ontouchstart",a.ontouchstart],["ontouchend",a.ontouchend],["ontouchmove",a.ontouchmove]]));for(var d=a.next(),e={};!d.done;e={eventName$jscomp$72:void 0,eventHandler$jscomp$1:void 0},d=a.next()){var f=l(d.value);d=f.next().value;f=f.next().value;e.eventName$jscomp$72=d;e.eventHandler$jscomp$1=f;b[e.eventName$jscomp$72]=function(h){return function(m){var p;(p=c[h.eventName$jscomp$72])==null||p.call(c,m);(0,h.eventHandler$jscomp$1)(m)}}(e)}};function LXa(a){try{return a()}catch(b){fo(b)}} ;var JB=new Bn("COMMAND_HANDLER_TOKEN");var MXa=new Qk("parallelCommand");var NXa=new Qk("performOnceCommand");var OXa=new Qk("serialCommand");var KB=void 0;function LB(a){var b=z(a,ny);if(b)return b;if((b=z(a,MXa))&&b.commands)return PXa(b.commands);if((b=z(a,OXa))&&b.commands)return PXa(b.commands);if((a=z(a,NXa))&&a.identifier&&a.command&&(KB||(KB=[]),!KB.includes(a.identifier)))return KB.push(a.identifier),z(a.command,ny)} function PXa(a){if(a.length!==0){var b=[];a=l(a);for(var c=a.next();!c.done;c=a.next())(c=LB(c.value))&&b.push(c);return{commandExecutorCommand:{commands:b}}}} ;var QXa=function(){this.data=[];this.consumer=null}; QXa.prototype.push=function(a){this.consumer?this.consumer(a):this.data.push(a)};var MB={};ip(MB,void 0,"sgPmTd");ip(null,void 0,"jypsq");ip(null,void 0,"mWiOof");var RXa=new QXa;function SXa(a,b,c){RXa.push({command:a,sourceData:b,commandContext:c})} ;var TXa=[Db.DATA,Db.HTTP,Db.HTTPS,Db.MAILTO,Db.FTP,Db.RELATIVE,Db.INTENT,Db.VND_YOUTUBE]; function NB(a){var b=a.defaultTarget,c=a.elementConfig,d=a.elementsCommand,e=a.skipOnClick,f=a.forceNewState,h=a.additionalCommandArgs,m=a.innertubeCommand||LB(d);if(m){a={};var p=UXa(m);d=p.navigatingCommand;p=p.href;d&&p?(a.href$=p,VXa(a,d,p,b),x("web_atagconfig_pointerdown")&&WXa(a,d),f&&(a["force-new-state$"]=!0)):(a.role$="button",a.href$="javascript:void(0);");z(m,APa)&&(a["aria-haspopup$"]=!0);e||(a.onclick=function(q){var t={};if(XXa(q)){var u=(h==null?void 0:h.clickedVisualElement)||(h== null?void 0:h.getClickedVisualElement)&&h.getClickedVisualElement();u&&(t={clickedVisualElement:u});t=Object.assign({},{form:{element:q.target,event:q,createScreenConfig:t}},h);q.preventDefault();OB(m,t)}}); return Object.assign({},c,a)}} function YXa(a){if(a.length){if(a.length===1)return a[0];var b={};FB(b,iy,{commands:a});return b}} function PB(a){return a&&a.href$!=="javascript:void(0);"} function UXa(a){var b,c=((b=z(a,iy))==null?void 0:b.commands)||[a];a=l(c);for(b=a.next();!b.done;b=a.next()){b=b.value;var d=void 0,e=void 0;c=(e=z((d=b)==null?void 0:d.commandMetadata,ly))==null?void 0:e.url;x("web_remove_web_navigation_endpoint_data")||(d=void 0,c=c||((d=z(b,eOa))==null?void 0:d.url));if(c&&c!=="/service_ajax"){if(d=Eb(c,TXa))return a=xb(d),{navigatingCommand:b,href:a};fo(new Dl("AttributedString URL could not be sanitized",c))}}return{}} function XXa(a){return a.button!==void 0?a.button===0&&!(a.shiftKey||a.altKey||a.metaKey||a.ctrlKey):!(a.shiftKey||a.altKey||a.metaKey||a.ctrlKey)} function VXa(a,b,c,d){c=!bl(c);var e,f,h;if((e=z(b,ey))!=null&&e.nofollow||(f=z(b,py))!=null&&f.nofollow||(h=z(b,Qs))!=null&&h.nofollow||c)a.rel$="nofollow";var m;b=((m=z(b,Qs))==null?void 0:m.target)==="TARGET_NEW_WINDOW"?"_blank":d===void 0?"":d;a.target$=b} function WXa(a,b){b.clickTrackingParams&&(a.params={itct:b.clickTrackingParams});a.onpointerdown=function(c){ZXa(c,b)}; a._data=b} function ZXa(a,b){var c=a.currentTarget;a=LXa(function(){return c.href}); b=b.clickTrackingParams?{itct:b.clickTrackingParams}:{};a&&Hy(a,b,8,!0)} function QB(a,b){(a=LB(a))&&OB(a,b)} function OB(a,b){Gn(JB,function(c){b?c.resolveCommand(a,b):c.resolveCommand(a)})} ;function $Xa(a,b){var c=["ytAttributedStringLink"];b!=null&&b.noLinkColor||((b==null?0:b.isOverlay)?c.push("ytAttributedStringLinkOverlayCallToActionColor"):c.push("ytAttributedStringLinkCallToActionColor"),(b==null?0:b.linkInheritColor)&&c.push("ytAttributedStringLinkInheritColor"));c={className:c.join(" "),tabindex$:"0"};var d=a.onTap||a.onLongPress;if(!d)return c;var e=aYa(a);e&&(c["aria-label$"]=e);b=NB({elementsCommand:d,elementConfig:c,skipOnClick:!(b==null||!b.skipOnClick),forceNewState:!0}); a.onLongPress&&(d=new JXa(function(){var f=LB(a.onLongPress);f&&Fn().resolve(JB).resolveCommand(f)}),b&&KXa(d,b)); return b||c} function aYa(a){var b,c;return(b=a.onTapOptions)==null?void 0:(c=b.accessibilityInfo)==null?void 0:c.accessibilityLabel} ;var RB=new Qk("bracketTextDecorator");var SB=new Qk("highlightTextDecorator");function bYa(a){var b=a;a<=16777215&&(b+=parseInt("ff000000",16));return Jy(b)} function cYa(a){var b=a.isDarkTheme;var c=a.extension;a=a.runColor;var d=void 0;if(c=c==null?void 0:c.colorMap){b=b?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";c=l(c);for(var e=c.next();!e.done;e=c.next())if(e=e.value,b===e.key){d=e.value;break}}d==null&&a&&(d=a);if(d)return bYa(d)} ;function TB(a){var b=a.config;var c=a.image;var d=a.imageConfig;var e=a.imageWrapperConfig;var f=a.run;var h=a.tag;var m=a.textLength;var p=a.startIndex===void 0?0:a.startIndex;a=a.length;p===void 0&&(p=0);f={run:f,startIndex:p,endIndex:a!==void 0?p+a:m,tag:h};c&&(f.image=c);d&&(f.imageConfig=d);e&&(f.imageWrapperConfig=e);b&&(f.config=b);return f} ;function dYa(a,b){if(a.weight)return a.weight;switch(a.weightLabel){case"FONT_WEIGHT_THIN":return 100;case"FONT_WEIGHT_EXTRA_LIGHT":return 200;case"FONT_WEIGHT_LIGHT":return 300;case"FONT_WEIGHT_MEDIUM":return 500;case"FONT_WEIGHT_SEMI_BOLD":return 600;case"FONT_WEIGHT_BOLD":return b?900:700;case"FONT_WEIGHT_EXTRA_BOLD":return 800;case"FONT_WEIGHT_BLACK":return 900;default:return 400;}} ;function eYa(a){switch(a){case"LINE_STYLE_DOT":return"ytAttributedStringLineStyleDot";case"LINE_STYLE_NONE":return"ytAttributedStringLineStyleNone";default:return"ytAttributedStringLineStyleSingle";}} function fYa(a){switch(a){case"TEXT_ALIGNMENT_LEFT":return"ytAttributedStringTextAlignmentLeft";case"TEXT_ALIGNMENT_RIGHT":return"ytAttributedStringTextAlignmentRight";case"TEXT_ALIGNMENT_CENTER":return"ytAttributedStringTextAlignmentCenter";case"TEXT_ALIGNMENT_JUSTIFIED":return"ytAttributedStringTextAlignmentJustified";case"TEXT_ALIGNMENT_LAYOUT_START":return"ytAttributedStringTextAlignmentLayoutStart";default:return"ytAttributedStringTextAlignmentUnknown";}} ;function UB(a,b,c){var d=b;a.content&&c&&(c=a.content.indexOf("\n"),c!==-1&&(d=Math.min(b,c)));if(!a.content||a.content.length<=d)b=a;else if(a.attachmentRuns||a.commandRuns||a.decorationRuns||a.styleRuns||a.paragraphStyleRuns){b=VB(a.content,d);c=d;var e=a.attachmentRuns;if(e){var f=[];e=l(e);for(var h=e.next();!h.done;h=e.next())h=Object.assign({},h.value),h.startIndex===void 0||h.startIndex>=c||(h.length||(h.length=0),h.length+h.startIndex>c&&(h.length=c-h.startIndex),f.push(h));c=f}else c=void 0; f=gYa(d,a.commandRuns);e=d;var m=a.decorationRuns;if(m){h=[];m=l(m);for(var p=m.next();!p.done;p=m.next()){p=p.value;var q=z(p.textDecorator,SB);if(q&&q.startIndex!==void 0&&!(q.startIndex>=e)){p=Object.assign({},p,{textDecorator:{highlightTextDecorator:Object.assign({},q)}});q=z(p.textDecorator,SB);if(!q.length||q.length+q.startIndex>e)q.length=e-q.startIndex;h.push(p)}}e=h}else e=void 0;h=gYa(d,a.styleRuns);if(m=a.paragraphStyleRuns)for(a=[],m=l(m),p=m.next();!p.done;p=m.next()){var t=p.value;p= Object.assign({},t);if(!(p.startIndex===void 0||p.startIndex>=d)){if(!p.length||p.length+p.startIndex>d)p.length=d-p.startIndex;q=[];var u=void 0,v=void 0;if((u=t)==null?0:(v=u.listGroup)==null?0:v.listItems)for(t=l(t.listGroup.listItems),u=t.next();!u.done;u=t.next())if(u=Object.assign({},u.value),!(u.startIndex===void 0||u.startIndex>=d)){if(!u.length||u.length+u.startIndex>d)u.length=d-u.startIndex;q.push(u)}q.length>0&&(p.listGroup||(p.listGroup={}),p.listGroup=Object.assign({},p.listGroup,{listItems:q})); a.push(p)}}else a=void 0;b={content:b,attachmentRuns:c,commandRuns:f,decorationRuns:e,styleRuns:h,paragraphStyleRuns:a}}else b=Object.assign({},a,{content:VB(a.content,d)});return b} function gYa(a,b){if(b){var c=[];b=l(b);for(var d=b.next();!d.done;d=b.next())if(d=Object.assign({},d.value),!(d.startIndex===void 0||d.startIndex>=a)){if(!d.length||d.length+d.startIndex>a)d.length=a-d.startIndex;c.push(d)}return c}} function VB(a,b){var c=0+b,d;if(d=c>0)d=a.charCodeAt(c-1),d=d>=55296&&d<=56319;d&&(c=a.charCodeAt(c),d=c>=56320&&c<=57343);d&&--b;return a.substring(0,0+b)} ;var WB=new Bn("APP_DIRECTION_TOKEN");var XB={calledOnce:!1,state:"visible"},YB={calledOnce:!1,state:"hidden"};var hYa=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,ZB={},iYa=(ZB[1]={filterString:null,isUnwrappable:null,unwrap:null},ZB[2]={filterString:function(a,b,c){return Nc(c)}, isUnwrappable:function(a){return a instanceof Ob}, unwrap:function(a){return Rb(a)}},ZB[3]={filterString:function(a,b,c){return hYa.test(c)?c:ub.toString()}, isUnwrappable:function(a){return wb(a)}, unwrap:function(a){return xb(a)}},ZB[4]={filterString:function(){return ub.toString()}, isUnwrappable:function(a){return a instanceof gb}, unwrap:function(a){return nb(a).toString()}},ZB[5]={filterString:function(a,b,c){return c}, isUnwrappable:function(a){return typeof a==="string"}, unwrap:function(a){return a.toString()}},ZB[7]={filterString:function(){return" /*zClosurez*/ "}, isUnwrappable:function(a){return a instanceof ac}, unwrap:function(a){return hc(a)}},ZB[8]={filterString:function(a,b,c){c=String(c).toLowerCase(); return Bla(a,b,c)?c:"zClosurez"}, isUnwrappable:null,unwrap:null},ZB[10]={filterString:null,isUnwrappable:null,unwrap:null},ZB);function jYa(a,b,c){if(c===null||c===void 0)return c;var d=yla(a.tagName.toLowerCase(),b,function(){throw Error("Contingent attribute/property lookups are not supported.")}); if(d===null)return c;d=iYa[d];var e;if((e=d.isUnwrappable)==null?0:e.call(d,c)){if(d.unwrap)return d.unwrap(c);throw Error("Value Handler's unwrap function does not exist.")}return d.filterString?d.filterString(a.tagName,b,String(c)):c} ;jq[hq["default"]]=kYa;function kYa(a,b,c){var d=b[b.length-1]!=="$";c=jYa(a,b,c);d?a[b]=c:(d=c==null?null:String(c),iq(a,b.slice(0,-1),d))} ;function $B(a){return(a==null?void 0:a.content)!==void 0} function lYa(a,b){return!!b||!(a.commandRuns&&a.commandRuns.length!==0||a.paragraphStyleRuns&&a.paragraphStyleRuns.length!==0)} function mYa(a){return function(b){var c=a.run;(c.onTap!==void 0||c.onLongPress!==void 0)&&z(c,gOa)&&Sz(b,{data:{loggingDirectives:z(c,gOa)},observer:Fn().resolve(uw),hideOption:YB,showOption:XB,layer:b.layer})}} function nYa(a){return function(b){for(var c in a)(jq[c]||jq[hq["default"]])(b,c,a[c])}} ;function oYa(a,b,c,d){for(var e=l(a.parts),f=e.next();!f.done;f=e.next()){f=f.value;if(typeof f==="string")throw Error("Unexpected string part");if(f.start<=b&&c<=f.end){oYa(f,b,c,d);return}}a.parts.push({data:d,parts:[],start:b,end:c})} function pYa(a,b){for(var c=b.parts.length;c>=0;c--){var d=b.parts[c],e=b.parts[c-1],f=c===b.parts.length?b.end:d.start;e=c===0?b.start:e.end;f!==e&&b.parts.splice(c,0,a.slice(e,f));d&&pYa(a,d)}} function qYa(a){a.sort(function(b,c){if(b.startIndexc?-1:c>b?1:0})} ;var rYa=new Bn("ICON_WIZ_COMPONENT_TOKEN");var sYa=/^YTICON_(fill|outline)_([a-zA-Z0-9_]+)_s([0-9]+)$/i;function tYa(a){if(a=a.match(sYa))return{iconName:a[2],iconActive:a[1].toUpperCase()==="FILL",iconSize:Number(a[3])}} var aC=O(function(a){var b=a.icon;var c=a.active;var d=a.className;var e=a.style;var f=a.dataSelected;var h=a.dataDisabled;var m=a.role;var p=a.animateIcon;var q=a.themeOverride;var t=a.ariaHidden;var u=a.ariaExpanded;var v=a.ariaLabel;var w=a.tabindex;var y=a.id;var A=a.size;var C=a.iconFilter;var I=a.gradientColor;var K=a.onKeydown;var N=a.title;var L=Vo(function(){var Y=b==null?void 0:b();if(Y)return tYa(Y)},void 0,"lIqE8e"),R=function(){var Y,da; return(da=(Y=L())==null?void 0:Y.iconName)!=null?da:b==null?void 0:b()},W=function(){var Y,da; return(da=A==null?void 0:A())!=null?da:(Y=L())==null?void 0:Y.iconSize},S=function(){var Y,da; return(da=c==null?void 0:c())!=null?da:(Y=L())==null?void 0:Y.iconActive}; return D(P,{cond:b,then:function(){var Y=Fn().resolve(rYa);return D(Y,{icon:R,dataSelected:f,dataDisabled:h,animateIcon:p,themeOverride:q,ariaExpanded:u,tabindex:w,id:y,active:S,size:W,role:m,className:d,ariaHidden:t,ariaLabel:v,style:function(){if(x("web_icon_style_ks"))return(e==null?0:e())||!W()?e==null?void 0:e():"width: "+W()+"px;height: "+(W()+"px;");if(!W())return e==null?void 0:e();var da="width: "+W()+"px; height: "+W()+"px;";return(e==null?0:e())?da+" "+e():da}, title:N,iconFilter:C,gradientColor:I,onKeydown:K})}})},"t"); aC.idomCompat={callbacks:{onKeydown:!0}};function uYa(a){Hl(0,function(){try{a()}catch(b){xj(b)}},8)} ;var bC=function(a){var b=this;this.margin=.1;this.whenInViewportWithMargin=a;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){b.requestScan()}); window.addEventListener("touchend",function(){b.requestScan()}); window.addEventListener("updateui",function(){b.requestScan()}); var c=new Fw(Ia(this.requestScan,this),100);window.addEventListener("scroll",function(){c.fire()},!0); window.addEventListener("resize",Ia(this.requestScan,this));window.addEventListener("state-navigatestart",function(){b.observationTargets=[]}); window.addEventListener("state-navigateend",Ia(this.requestScan,this))}; bC.prototype.observe=function(a){this.observationTargets.includes(a)||this.observationTargets.push(a)}; bC.prototype.unobserve=function(a){this.observationTargets=this.observationTargets.filter(function(b){return b!==a})}; bC.prototype.requestScan=function(){var a=this;this.scanRequested||(uYa(function(){vYa(a)}),this.scanRequested=!0)}; var vYa=function(a){var b=(1+a.margin)*(document.documentElement.clientHeight||window.innerHeight);a.observationTargets=a.observationTargets.filter(function(c){var d=c.getBoundingClientRect();(d=b>d.top&&!!d.height)&&a.whenInViewportWithMargin(c);return!d&&c.parentNode}); a.scanRequested=!1}; bC.prototype.disconnect=function(){this.observationTargets=[]};function wYa(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches} var xYa=l(ip(wYa(),void 0,"O3X2wd")),yYa=xYa.next().value,zYa=xYa.next().value;window.addEventListener("resize",function(){zYa(wYa())});var AYa={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},cC=void 0,BYa=window.innerWidth,CYa=window.innerHeight;window.addEventListener("resize",function(){cC=void 0});var DYa;if("IntersectionObserver"in window)DYa=new IntersectionObserver(function(a,b){a.filter(function(c){return c.intersectionRect.height>0}).forEach(function(c){c=c.target; var d;(d=c.onViewportEntered)==null||d.call(c);b.unobserve(c)})},{rootMargin:"10%", threshold:.01});else{if(cC===void 0){var EYa;EYa="matchMedia"in window?window.matchMedia(AYa.landscape+","+AYa.portrait).matches:void 0;cC=EYa!==void 0?EYa:BYa>=930&&CYa>=550||BYa>=550&&CYa>=930}DYa=cC?{observe:function(a){Hl(0,function(){try{var b;(b=a.onViewportEntered)==null||b.call(a)}catch(c){xj(c)}},8)}, unobserve:function(){}}:new bC(function(a){Hl(0,function(){try{var b; (b=a.onViewportEntered)==null||b.call(a)}catch(c){xj(c)}},8)})}var FYa=DYa; function GYa(a,b){a.onViewportEntered=b;FYa.observe(a)} ;function HYa(a,b,c,d,e){function f(){if(d){var m=d.loadedClass,p=d.notifyOnUnloaded;m&&Sja(a,m);p&&a.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}} function h(){var m=c(b,a);m&&a.getAttribute("src")!==m&&(m!==a.src&&(a.src=m),f())} e=e===void 0?!0:e;a.removeAttribute("src");f();b&&(e?GYa(a,h):h())} function IYa(a,b,c){if(!b)return!1;b=c(b,a);c=a.getAttribute("src");return b&&b===c&&a.complete} ;function JYa(a,b){for(var c in b)c==="className"?a.className=b[c]:(jq[c]||jq[hq.default])(a,c,b[c])} ;var KYa=O(function(a){var b=!1,c=sw("img",function(d){zp(function(){b=!0;d.onload=null})}); lw(function(){var d,e=(d=a.data)==null?void 0:d.call(a),f,h=(f=a.getSrc)==null?void 0:f.call(a).cb,m;d=(m=a.config)==null?void 0:m.call(a);if(m=c.value)if(f=function(q,t){if(!b)return h?h(q,t):q},JYa(m,d),x("web_image_dont_reload_same_src")&&IYa(m,e,f))x("web_image_dont_reload_same_src_simulate_load")&&m.dispatchEvent(new CustomEvent("load",{bubbles:!1, cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var p;HYa(m,e||null,f,d,(p=a.lazy)==null?void 0:p.call(a))}},"HjBQYb"); return D("img",{el:c})},"v"); KYa.idomCompat=!0;var LYa=new Qk("borderImageProcessor");var MYa=window.devicePixelRatio||1;function NYa(a){var b=a.thumbnails;if(b){a={sources:[]};b=l(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d={};d.url=c.url;d.width=c.width;d.height=c.height;a.sources.push(d)}return a}} function dC(a,b,c,d){if(!b)return a.length>=1?a[a.length-1]:null;if(d)for(var e=l(a),f=e.next();!f.done;f=e.next()){f=f.value;var h=void 0,m=(h=f.url)==null?void 0:h.indexOf(d);if(m!==void 0&&m>=0)return f}d=l(a);for(e=d.next();!e.done;e=d.next())if(e=e.value,e.width&&e.height&&(c&&e.width>=b||!c&&e.height>=b))return e;for(b=a.length-1;b>=0;b--)if(c&&a[b].width||!c&&a[b].height)return a[b];return a[0]} function OYa(a){if(a.sources){a=l(a.sources);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=void 0;if((c=b.clientResource)==null?0:c.imageName)return b;if(b.customImageSource){var d=c=void 0;if((c=z(b.customImageSource,sOa))==null?0:(d=c.clientResource)==null?0:d.icon)return b}}}} function PYa(a){var b={};a=z(a.processor,LYa);var c=(a=a==null?void 0:(c=a.imageTint)==null?void 0:c.color)?Jy(a):void 0;c&&(b.color=c);return b} function QYa(a){var b;if((b=a.clientResource)!=null&&b.imageColor)return Jy(a.clientResource.imageColor)} ;function RYa(a,b,c,d,e,f,h){if(!b||b.length===0||b[0].clientResource)return null;if(c&&b[0].url)return b[0].url;d===void 0&&(d=!0);if(d){var m;a=MYa*(e||(a==null?void 0:(m=a.getBoundingClientRect())==null?void 0:m.width)||0)}else{var p;a=MYa*(f||(a==null?void 0:(p=a.getBoundingClientRect())==null?void 0:p.height)||0)}b=dC(b,a,d,h);return(b==null?0:b.url)?b.url:(b==null?0:b.imageData)?b.imageData:null} function SYa(a,b,c){c=c?[c]:[];a.opacity&&c.push("opacity: "+a.opacity+";");b&&a.placeholderColor?(a=Jy(a.placeholderColor),c.push("background-color: "+a+";")):c.push("background-color: transparent;");return c.join(" ")} function TYa(a,b,c,d,e){var f=["ytCoreImageHost"];b&&f.push(b);c||f.push("ytCoreImageFillParentHeight");d||f.push("ytCoreImageFillParentWidth");switch(a.contentMode){case"CONTENT_MODE_SCALE_ASPECT_FIT":f.push("ytCoreImageContentModeScaleAspectFit");break;case"CONTENT_MODE_SCALE_ASPECT_FILL":f.push("ytCoreImageContentModeScaleAspectFill");break;case"CONTENT_MODE_CENTER":f.push("ytCoreImageContentModeCenter");break;default:f.push("ytCoreImageContentModeScaleToFill");}a.flipForRtlLayout&&f.push("ytCoreImageFlipRtl"); switch(e){case"TOP_START":var h;f.push(((h=document.body)==null?void 0:h.getAttribute("dir"))==="rtl"?"ytCoreImageObjectPositionTopRight":"ytCoreImageObjectPositionTopLeft");}return f.join(" ")} function UYa(a){var b;if(a==null?0:(b=a.clientResource)==null?0:b.imageName){var c,d=(c=a.clientResource)==null?void 0:c.imageName;a:{switch(d){case"yt_premium_wordmark_header_light":case"yt_premium_wordmark_header_dark":c="yt-logos-ext:yt-logo-red-updated";break a;case"yt_wordmark_header_light":case"yt_wordmark_header_dark":c="yt-logos-ext:yt-logo-updated";break a;}c=void 0}return c||VYa.get(d)||d}if(a==null?0:a.customImageSource){var e;if(c=(d=z(a.customImageSource,sOa))==null?void 0:(e=d.clientResource)== null?void 0:e.icon)return c}} var VYa=new Map([["yt_outline_bag_black_24","bag"]]);function WYa(a,b,c){c=c===void 0?!1:c;var d=a.sources!==void 0?Object.assign({},a):NYa(a);if(d){var e;d.contentMode=(e=d.contentMode)!=null?e:b.contentMode;var f=b.onload;b.onload=function(q){var t=q.target;if(!c||t.naturalWidth!==120)if(t.classList)t.classList.add("ytCoreImageLoaded");else if(!Rja(t,"ytCoreImageLoaded")){var u=Pja(t);Qja(t,u+(u.length>0?" ytCoreImageLoaded":"ytCoreImageLoaded"))}b.notifyOnLoaded&&t.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));f==null||f(q)}; b.targetWidth&&b.preserveWidth&&(b.width=b.targetWidth);b.targetHeight&&b.preserveHeight&&(b.height=b.targetHeight);var h=OYa(d);e=h&&UYa(h);var m=PYa(d);if(e)return(a=QYa(h)||m.color)&&(b.color=a),{type:"icon",iconName:e,config:Object.assign({},b,b.alt?{}:{"aria-hidden$":"true"},{"aria-label$":b.alt,role:"img"})};if(a.sources===void 0){b.alt=a.accessibility&&a.accessibility.accessibilityData&&a.accessibility.accessibilityData.label||b.alt;b.style$=SYa(a,b.shouldShowPlaceholder,b.style$);var p;b.isPreloaded= !((p=z(a,aOa))==null||!p.isPreloaded)}b.className=TYa(d,b.className,b.preserveHeight,b.preserveWidth,b.objectPosition);b.loadedClass="ytCoreImageLoaded";return{type:"image",image:d,config:b}}} var eC=O(function(a){var b=function(){var c,d=a.data(),e,f,h,m,p,q,t,u,v,w,y,A,C,I,K,N,L,R,W,S,Y,da,Aa,Sa,Ua,qb,ab,La,ib;var sb={contentMode:(e=a.contentMode)==null?void 0:e.call(a),loadedClass:(f=a.loadedClass)==null?void 0:f.call(a),isPreloaded:(h=a.isPreloaded)==null?void 0:h.call(a),notifyOnLoaded:(m=a.notifyOnLoaded)==null?void 0:m.call(a),notifyOnUnloaded:(p=a.notifyOnUnloaded)==null?void 0:p.call(a),preferredThumbnail:(q=a.preferredThumbnail)==null?void 0:q.call(a),preserveHeight:(t=a.preserveHeight)== null?void 0:t.call(a),preserveWidth:(u=a.preserveWidth)==null?void 0:u.call(a),objectPosition:(v=a.objectPosition)==null?void 0:v.call(a),targetWidth:(w=a.targetWidth)==null?void 0:w.call(a),targetHeight:(y=a.targetHeight)==null?void 0:y.call(a),shouldShowPlaceholder:(A=a.shouldShowPlaceholder)==null?void 0:A.call(a),useWidth:(C=a.useWidth)==null?void 0:C.call(a),isToggled:(I=a.isToggled)==null?void 0:I.call(a),alt:(K=a.alt)==null?void 0:K.call(a),className:(N=a.className)==null?void 0:N.call(a), onerror:a.onerror,onload:a.onload,style$:((L=a.style$)==null?void 0:L.call(a))||((R=a.style)==null?void 0:R.call(a)),color:(W=a.color)==null?void 0:W.call(a),width:(S=a.width)==null?void 0:S.call(a),height:(Y=a.height)==null?void 0:Y.call(a),"aria-hidden$":(La=(da=a["aria-hidden$"])==null?void 0:da.call(a))!=null?La:(Aa=a.ariaHidden)==null?void 0:Aa.call(a),draggable:(Sa=a.draggable)==null?void 0:Sa.call(a),"data-disabled$":(ib=(Ua=a["data-disabled$"])==null?void 0:Ua.call(a))!=null?ib:(qb=a.dataDisabled)== null?void 0:qb.call(a),size:(ab=a.size)==null?void 0:ab.call(a)};return WYa(d,sb,(c=a.hideOn404)==null?void 0:c.call(a))}; return D(pw,null,D(jw,{when:function(){var c;return((c=b())==null?void 0:c.type)==="image"}},function(){return D(KYa,{data:function(){return b().image}, getSrc:{cb:function(c,d){var e=b().image.sources,f=b().config.isPreloaded,h=b().config.useWidth,m=b().config.targetWidth,p=b().config.targetHeight,q=b().config.preferredThumbnail;return RYa(d,e,f,h,m,p,q)||""}}, config:function(){var c=b().config,d;for(d in c)c[d]===void 0&&delete c[d];return c}, lazy:a.renderLazy})}),D(jw,{when:function(){var c; return((c=b())==null?void 0:c.type)==="icon"}},function(){return D(aC,{icon:function(){return b().iconName}, role:function(){return b().config.role}, className:function(){return b().config.className}, style:function(){return b().config.style$+";width: "+(b().config.width+"px;height: ")+(b().config.height+"px;color: ")+(b().config.color+";")}, ariaLabel:function(){return b().config["aria-label$"]}, ariaHidden:function(){return b().config["aria-hidden$"]}, dataDisabled:function(){return b().config["data-disabled$"]}, active:function(){return b().config.isToggled}, size:function(){return b().config.size}})}))},"w"); eC.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};function fC(a,b){var c=b==null?void 0:b.initial;return Vo(function(){Bp(!0);return c=a(c)},{equals:b==null?void 0:b.isEqual},"rSlKsc")} ;function XYa(a,b){if(a===b)return!0;if(a===void 0||b===void 0)return!1;if(x("web_attributed_string_deep_equal_bugfix"))return LIa(a,b);var c,d,e,f,h,m,p,q;return a.content===b.content&&((c=a.styleRuns)==null?void 0:c.length)===((d=b.styleRuns)==null?void 0:d.length)&&((e=a.commandRuns)==null?void 0:e.length)===((f=b.commandRuns)==null?void 0:f.length)&&((h=a.attachmentRuns)==null?void 0:h.length)===((m=b.attachmentRuns)==null?void 0:m.length)&&((p=a.decorationRuns)==null?void 0:p.length)===((q=b.decorationRuns)== null?void 0:q.length)} var gC=O(function(a){var b=YYa(a),c=function(e){var f,h,m=dB(function(u){f=e();h=Ap(function(){for(var v=l(q()),w=v.next();!w.done;w=v.next()){w=ZYa(w.value);w=typeof w==="string"?document.createTextNode(w):w;if(!(w instanceof Node)){v=new Dl("Part is not a node",w,typeof w);co(v);break}u.appendChild(w)}})}),p=fC(b,{isEqual:$Ya}),q=function(){var u=e(),v=p(),w=[],y=u.content.length,A,C=(A=Fn().resolve(Cn(HB)))==null?void 0:A(); if(u.paragraphStyleRuns)for(var I=l(u.paragraphStyleRuns),K=I.next();!K.done;K=I.next()){var N=w.push,L=N.apply;var R=void 0,W=K.value;if((R=W.listGroup)!=null&&R.listItems){var S=[];b:switch(W.listGroup.listType){case"LIST_TYPE_BULLET":var Y="ul";break b;default:Y="span";}S.push(TB({run:W,textLength:y,tag:Y,config:{className:"ytAttributedStringListGroup"},startIndex:W.startIndex,length:W.length}));for(var da=l(W.listGroup.listItems),Aa=da.next();!Aa.done;Aa=da.next()){var Sa=Aa.value;b:switch(W.listGroup.listType){case"LIST_TYPE_BULLET":var Ua= "li";break b;default:Ua="span";}S.push(TB({run:W,textLength:y,tag:Ua,startIndex:Sa.startIndex,length:Sa.length}))}var qb=S}else qb=[];L.call(N,w,ia(qb))}if(u.styleRuns&&(v==null||!v.noStyleRuns))for(var ab=l(u.styleRuns),La=ab.next();!La.done;La=ab.next()){var ib=La.value,sb=ib,Oa=C,Ca=v,eb=cYa({extension:z(sb.styleRunExtensions,HQa),isDarkTheme:Oa===void 0?!1:Oa,runColor:sb.fontColor}),Qa=void 0,Bb=sb,dc=[];eb&&dc.push("ytAttributedStringLinkInheritColor");Bb.italic&&dc.push("ytAttributedStringItalicized"); Bb.underline&&Bb.strikethrough?dc.push("ytAttributedStringUnderlineStrikethrough",eYa(Bb.underline)):Bb.underline?dc.push("ytAttributedStringUnderlined",eYa(Bb.underline)):Bb.strikethrough&&dc.push("ytAttributedStringStrikethrough",eYa(Bb.strikethrough));if(Bb.baselineOffset){a:switch(Bb.baselineOffset){case"BASELINE_OFFSET_SUBSCRIPT":Qa="ytAttributedStringBaselineOffsetSubscript";break a;case"BASELINE_OFFSET_SUPERSCRIPT":Qa="ytAttributedStringBaselineOffsetSuperscript";break a;default:Qa="ytAttributedStringBaselineOffsetUnknown";}dc.push(Qa)}var Nb= dc.join(" ");var Lc=sb,Fc=eb,wc={};if(Lc.weight||Lc.weightLabel)wc.fontWeight=dYa(Lc,Ca==null?void 0:Ca.isHeadline).toString();Fc&&(wc.color=Fc);w.push(TB({run:ib,textLength:y,tag:"span",config:{className:Nb,style:wc},startIndex:ib.startIndex,length:ib.length}))}if(u.decorationRuns)for(var kd=l(u.decorationRuns),zc=kd.next();!zc.done;zc=kd.next()){var ld=zc.value,Sd={};if(ld.textDecorator){var Jc=ld.textDecorator,ec=C===void 0?!1:C,Xa=[],Mb=z(Jc,SB),Na=z(Jc,RB);if(Mb){var Cb=Xa,fc=Cb.concat,Cc=[], We=cYa({extension:z(Mb.highlightTextDecoratorExtensions,GQa),isDarkTheme:ec,runColor:Mb.backgroundColor});We&&Cc.push("background-color: "+We+";");Mb.backgroundCornerRadius!==void 0&&Cc.push("border-radius: "+Mb.backgroundCornerRadius+"px;");Mb.leftPadding!==void 0&&Cc.push("padding-left: "+Mb.leftPadding+"px;");Mb.rightPadding!==void 0&&Cc.push("padding-right: "+Mb.rightPadding+"px;");Mb.topPadding!==void 0&&Cc.push("padding-top: "+Mb.topPadding+"px;");Mb.bottomPadding!==void 0&&Cc.push("padding-bottom: "+ Mb.bottomPadding+"px;");Xa=fc.call(Cb,Cc)}else if(Na){var bh=Xa,Uj=bh.concat,Hf=ec?"#2ba640":"#107516",bf=Na.color?bYa(Na.color):Hf;Xa=Uj.call(bh,["padding: 2px;","border-top: solid "+bf+" 2px;","border-bottom: solid "+bf+" 2px;","background: linear-gradient(135deg, "+bf+" 3px, rgba(0, 0, 0, 0) 3px),\n linear-gradient(315deg, "+bf+" 3px, rgba(0, 0, 0, 0) 3px);"])}var Ci=Xa.join(" ");Sd.style$=Ci;var pj=ld.textDecorator,el=[],fl=z(pj,RB);z(pj,SB)?el.push("ytAttributedStringHighlightTextDecorator"): fl&&el.push("ytAttributedStringBracketTextDecorator");var ch=el.join(" ");Sd.className=ch;Sd.dir="auto"}var qj=z(ld.textDecorator,SB),rj=z(ld.textDecorator,RB),zb=z(ld.textDecorator,SB),ad=z(ld.textDecorator,RB);w.push(TB({run:ld,textLength:y,tag:"span",config:Sd,startIndex:(qj==null?void 0:qj.startIndex)||(rj==null?void 0:rj.startIndex)||0,length:(zb==null?void 0:zb.length)||(ad==null?void 0:ad.length)||0}))}if(u.commandRuns&&(v==null||!v.noEndpoints))for(var rd=l(u.commandRuns),pd=rd.next();!pd.done;pd= rd.next()){var cf=pd.value,np=$Xa(cf,v);w.push(TB({run:cf,textLength:y,tag:"a",config:np,startIndex:cf.startIndex,length:cf.length}))}if(u.attachmentRuns)for(var jn=l(u.attachmentRuns),Rh=jn.next();!Rh.done;Rh=jn.next()){var If=Rh.value,gl=void 0,op=void 0,kn={className:"ytAttributedStringInlineBlockMod"};if((op=If.element)==null?0:op.properties){var hl=(gl=If.element)==null?void 0:gl.properties,sm=[],Vj=z(hl,GXa);if(Vj==null?0:Vj.margin){var Di=Vj.margin,Gh=Vk("HTML_DIR")==="rtl"||document.body.getAttribute("dir")=== "rtl",ho=Gh?Di.end||Di.right:Di.start||Di.left,Bk=Gh?Di.start||Di.left:Di.end||Di.right;ho&&sm.push("margin-left: "+IB(ho)+";");Bk&&sm.push("margin-right: "+IB(Bk)+";");Di.top&&sm.push("margin-top: "+IB(Di.top)+";");Di.bottom&&sm.push("margin-bottom: "+IB(Di.bottom)+";")}var Nq=sm.length!==0?sm.join(" "):void 0;kn.style$=Nq}var io=kn,is=void 0,Ei={alt:"",preserveHeight:!0,preserveWidth:!0},jo=["ytAttributedStringImageElement"];if(If.alignment){a:switch(If.alignment){case"ALIGNMENT_BASELINE":var Ui= "ytAttributedStringImageAlignmentBaseline";break a;case"ALIGNMENT_VERTICAL_CENTER":Ui="ytAttributedStringImageAlignmentVerticalCenter";break a;default:Ui="ytAttributedStringImageAlignmentBottom";}jo.push(Ui)}if((is=If.element)==null?0:is.properties){var tm=[],fi=z(If.element.properties,GXa);(fi==null?0:fi.height)&&tm.push("height: "+IB(fi.height)+";");(fi==null?0:fi.width)&&tm.push("width: "+IB(fi.width)+";");var sj=tm.length!==0?tm.join(" "):void 0;Ei.style$=sj;var Vi=void 0;var il=((Vi=z(If.element.properties, FXa))==null?void 0:Vi.label)||"";Ei.alt=il}Ei.className=jo.join(" ");var um=Ei,Oq=void 0;var Wj=void 0,ko=void 0;var gi=((ko=If.element)==null?0:ko.type)?(Wj=z(If.element.type,HXa))==null?void 0:Wj.image:void 0;w.push(TB({run:If,textLength:y,tag:"img",image:gi,imageConfig:um,imageWrapperConfig:io,startIndex:If.startIndex,length:(Oq=If.length)!=null?Oq:0}))}if(v==null?0:v.headerRuns)for(var lo=l(v.headerRuns),Tf=lo.next();!Tf.done;Tf=lo.next()){var hi=Tf.value;if(hi.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1", "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(hi.headerMapping)){a:{switch(hi.headerMapping){case"ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":var ii="ytAttributedStringHeading1";break a;case"ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":ii="ytAttributedStringHeading2";break a;case"ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":ii="ytAttributedStringHeading3";break a;}ii=void 0}w.push(TB({run:hi,textLength:y,tag:"span",config:ii?{className:ii}:void 0, startIndex:hi.startIndex,length:hi.length}))}}var Ma=p();if(Ma==null?0:Ma.userInput)for(var Sb=l(w),$b=Sb.next();!$b.done;$b=Sb.next()){var ic=$b.value;if(ic.tag!=="a"&&ic.tag!=="li"){var Xc=void 0;(Xc=ic).config||(Xc.config={});ic.config.dir=ic.tag==="ul"?Fn().resolve(WB):"auto"}}if(e().content){var ue=e().content;qYa(w);for(var je={data:null,start:0,end:ue.length,parts:[]},Dg=l(w),Jl=Dg.next();!Jl.done;Jl=Dg.next()){var bx=Jl.value;oYa(je,bx.startIndex,bx.endIndex,bx)}pYa(ue,je);var JD=je.parts}else JD= [];return JD},t=!0; lw(function(){e();p();if(t&&(t=!1,XYa(e(),f)))return;var u=q();Promise.resolve().then(function(){var v=m.value;if(v){v.innerText="";var w;(w=h)==null||w();h=EKa(v,function(){return D(aZa,{parts:u})},"x")}})},"JTCVP"); return D("span",{el:m,class:function(){var u;if(u=e()){u=e();var v=b(),w=[];w.push("ytAttributedStringHost");(v==null?0:v.className)&&w.push(v==null?void 0:v.className);(v==null?0:v.ellipsisTruncate)?w.push("ytAttributedStringEllipsisTruncate"):(v==null?0:v.noWrap)?w.push("ytAttributedStringWhiteSpaceNoWrap"):(v==null?0:v.noPreWrap)||w.push("ytAttributedStringWhiteSpacePreWrap");(v==null?0:v.linkInheritColor)&&w.push("ytAttributedStringLinkInheritColor");u.alignment&&w.push(fYa(u.alignment));u.lineBreakMode&& w.push("ytAttributedStringWordWrapping");u=w.join(" ")}return u}, style:a.style,dir:function(){return b().userInput?"auto":void 0}, "aria-label":function(){return lYa(e(),b().ariaLabel)?b().ariaLabel:void 0}, role:function(){return lYa(e(),b().ariaLabel)?"text":void 0}})},d=fC(function(){var e,f=(e=a.text)==null?void 0:e.call(a); if(f)return e=$B(f)?f:GB(f),(e==null?0:e.content)?e:void 0},{isEqual:XYa}); return a.contentAsserted?c(d):D(P,{cond:d,then:c})},"z"); gC.idomCompat=!0;function aZa(a){return a.parts.map(ZYa)} function ZYa(a){if(typeof a==="string")return a;var b=a.data;a=b.image!==void 0&&b.imageConfig!==void 0?D("span",{el:dB(nYa(a.data.imageWrapperConfig))},D(eC,Object.assign({},{data:a.data.image},a.data.imageConfig))):D(a.data.tag,{el:dB(mYa(a.data),nYa(a.data.config))},a.parts.map(ZYa));return Dq(a)} function $Ya(a,b){return a===b?!0:a===void 0||b===void 0?!1:a.noStyleRuns===b.noStyleRuns&&a.noLinkColor===b.noLinkColor&&a.noEndpoints===b.noEndpoints&&a.headerRuns===b.headerRuns&&a.isOverlay===b.isOverlay&&a.linkInheritColor===b.linkInheritColor&&a.userInput===b.userInput&&a.isHeadline===b.isHeadline} function YYa(a){return function(){var b,c,d,e,f,h,m,p,q,t,u,v,w,y;return{ariaLabel:(b=a.ariaLabel)==null?void 0:b.call(a),className:(c=a.className)==null?void 0:c.call(a),ellipsisTruncate:(d=a.ellipsisTruncate)==null?void 0:d.call(a),isOverlay:(e=a.isOverlay)==null?void 0:e.call(a),linkInheritColor:(f=a.linkInheritColor)==null?void 0:f.call(a),noEndpoints:(h=a.noEndpoints)==null?void 0:h.call(a),noStyleRuns:(m=a.noStyleRuns)==null?void 0:m.call(a),noLinkColor:(p=a.noLinkColor)==null?void 0:p.call(a), noPreWrap:(q=a.noPreWrap)==null?void 0:q.call(a),noWrap:(t=a.noWrap)==null?void 0:t.call(a),skipOnClick:(u=a.skipOnClick)==null?void 0:u.call(a),userInput:(v=a.userInput)==null?void 0:v.call(a),headerRuns:(w=a.headerRuns)==null?void 0:w.call(a),isHeadline:(y=a.isHeadline)==null?void 0:y.call(a)}}} ;bB(O(function(a){return D("yt-attributed-string",{"aria-label":a.ariaLabel,hidden:a.hidden,id:a.id,class:a.className,style:a.style},D(gC,{text:a.data,ariaHidden:a.ariaHidden,ariaLabel:a.ariaLabel,ellipsisTruncate:a.ellipsisTruncate,isOverlay:a.isOverlay,linkInheritColor:a.linkInheritColor,noStyleRuns:a.noStyleRuns,noLinkColor:a.noLinkColor,noPreWrap:a.noPreWrap,noWrap:a.noWrap,userInput:a.userInput,noEndpoints:a.noEndpoints,headerRuns:a.headerRuns,isHeadline:a.isHeadline}))},"A"),"yt-attributed-string", {props:{ariaHidden:$A, ariaLabel:$A,ellipsisTruncate:$A,isOverlay:$A,linkInheritColor:$A,noEndpoints:$A,noStyleRuns:$A,noLinkColor:$A,noPreWrap:$A,noWrap:$A,skipOnClick:$A,userInput:$A,headerRuns:$A,isHeadline:$A,data:$A,id:$A,className:$A,hidden:$A,style:$A,slot:aB}});var hC=function(){var a=E.apply(this,arguments)||this;a.ignoreShadyDom=!1;a.hasChange_=!1;a.hasSetTitle_=!1;a.useIOObserverForVisibilityLogging_=x("kevlar_use_vimio_behavior")&&Vk("INNERTUBE_CLIENT_NAME")==="WEB";a.ytFormattedStringObserverHandlerKeys_=void 0;return a}; k(hC,E);g=hC.prototype;g.created=function(){this.useIOObserverForVisibilityLogging_=x("kevlar_use_vimio_behavior")&&Vk("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0}; g.ready=function(){Vk("HTML_DIR")==="rtl"?this.useMixedDirectionFormattedStrings?this.hostElement.dir="rtl":this.respectHtmlDir||(this.hostElement.dir="auto"):this.respectLangDir&&(this.hostElement.dir="auto",this.hostElement.style.textAlign="left");this.enableContentEditableChanged_()}; g.attached=function(){this.hasChange_&&this.textChanged_(this.text)}; g.detached=function(){this.unobserveIOObservers_()}; g.clearContents_=function(){for(var a=this.getRoot(),b=a.lastChild;b&&b.tagName!=="STYLE";){try{a.removeChild(b)}catch(c){break}b=a.lastChild}}; g.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var a=l(this.ytFormattedStringObserverHandlerKeys_),b=a.next();!b.done;b=a.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(b.value);this.ytFormattedStringObserverHandlerKeys_.length=0}}; g.resetForAttributedString=function(){var a=this.getRoot();!a.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),a.appendChild(this.ytAttributedStringElementRef))}; g.resetForFormattedString=function(){var a=this.getRoot(),b=a.querySelector("yt-attributed-string");b&&(this.ytAttributedStringElementRef=a.removeChild(b))}; g.textChanged=function(){this.textChanged_(this.text)}; g.textChanged_=function(a){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!a||!a.runs&&!a.simpleText;if(x("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var b=this.hostElement.firstChild;b&&b.nodeName==="FONT";){var c=b;b=b.nextSibling;this.hostElement.removeChild(c)}b=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_(); c=a.simpleText;var d;!c&&((d=a.runs)==null?void 0:d.length)===1&&this.isSimpleString_(a.runs[0])&&(c=a.runs[0].text);c!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&Vk("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(c!==void 0){try{b.textContent=c}catch(e){}b.textContent||(this.isEmpty=!0)}else a=a.runs,c!==void 0&&(a=[{text:c}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),a&&this.updateText_(a), b.textContent||this.hasEmoji||(this.isEmpty=!0)}}}; g.ellipsisTruncateChanged_=function(){!this.ellipsisTruncate||this.hostElement.title&&!this.hasSetTitle_?this.hasSetTitle_&&(this.hostElement.removeAttribute("title"),this.hasSetTitle_=!1):(this.hostElement.title=this.getRawText(),this.hasSetTitle_=!0)}; g.computeAriaLabel_=function(a){return a}; g.computeEllipsisTruncateStyling=function(a,b){return a&&!b}; g.computeUseAttributedString=function(a){return x("web_replace_formatted_with_attributed_string")&&EXa(a)&&!this.disableAttributedString&&!this.enableContentEditable}; g.setNodeStyle_=function(a,b){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||x("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?b.removeAttribute("dir"):b.setAttribute("dir","auto");b.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");b.style.color="";var c=null;this.noStyles||(a.bold&&(b.classList.add("bold"),c="bold"),a.deemphasize&&(b.classList.add("deemphasize"),c="deemphasize"),a.italics&&b.classList.add("italic"), a.strikethrough&&b.classList.add("strikethrough"),a.errorUnderline&&(b.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),a.bracket&&b.classList.add("bracket"),a.textColor&&(b.style.color=Iy(a.textColor)));c!==b.getAttribute("style-target")&&(c?b.setAttribute("style-target",c):b.removeAttribute("style-target"))}; g.setUpVisibilityLogging_=function(a,b){var c=this;this.setNodeTrackingParams_(a,b);var d;((d=b.data)==null?0:d.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(a=this.ytRendererBehavior.visibilityObserver.observe(b,function(e){var f=c.ytRendererBehavior.getVisibilityLogger();f&&f.reportShown(e)},this.ytRendererBehavior.visibilityOptionVisible_),b=this.ytRendererBehavior.visibilityObserver.observe(b,function(e){var f=c.ytRendererBehavior.getVisibilityLogger(); f&&f.reportHidden(e)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(a),this.ytFormattedStringObserverHandlerKeys_.push(b))}; g.setNodeTrackingParams_=function(a,b){b.data||(b.data={});if((a=a.loggingDirectives?a.loggingDirectives.trackingParams:null)||b.data.trackingParams)b.data.trackingParams=a}; g.computeHasLinkOnly_=function(a){return!(!a||a.length!==1||this.noEndpoints||!a[0].navigationEndpoint)}; g.getRoot=function(){var a=this.buildScopeDomOptions();return this.enableContentEditable?wt(wt(this.hostElement,a).querySelector("[contenteditable]")):wt(this.hostElement,a)}; g.fixContenteditableScope=function(){var a=function(b){b&&(b.nodeType===1&&b.classList&&(b.classList.add("style-scope"),b.classList.add("yt-formatted-string")),b.childNodes&&b.childNodes.forEach(function(c){a(c)}))}; a(this.getRoot())}; g.updateText_=function(a){for(var b=a.length,c=this.getRoot(),d=c.firstChild;d&&d.nodeName==="STYLE";)d=d.nextSibling;for(var e=0;e0?m.alt=h.shortcuts[0]:h.emojiId&&(m.alt=h.emojiId);c.appendChild(m);this.hasEmoji=!0}}else!this.noEndpoints&&e.navigationEndpoint?(m=document.createElement("a"),m.classList.add("yt-simple-endpoint"),m.setAttribute("spellcheck","false"),this.setDataOnAnchor_(m,e.navigationEndpoint)):m=document.createElement("span"),this.setNodeStyle_(e,m),this.setUpVisibilityLogging_(e,m),m.appendChild(document.createTextNode(f)), c.appendChild(m)}}this.getRoot().appendChild(c)}; g.isSimpleString_=function(a){return(this.noEndpoints||!a.navigationEndpoint)&&!z(a,jy)&&(this.noStyles||!(a.bold||a.deemphasize||a.italics||a.strikethrough||a.errorUnderline||a.bracket||a.textColor))&&!a.loggingDirectives}; g.getRawText=function(){return lz(this.text)}; g.getFirstRunText=function(){var a;if(((a=this.text)==null?0:a.runs)&&this.text.runs[0])return this.text.runs[0].text}; g.setFirstRunText=function(a){var b;((b=this.text)==null?0:b.runs)&&this.text.runs[0]&&(this.text.runs[0].text=a,this.textChanged_(this.text))}; g.setDataOnAnchor_=function(a,b){var c=this;!x("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(b)||this.isSignalServiceEndpoint_(b)?(a.onclick=this.serviceEndpointHandler_(b),Jb(a,"#")):lsa({text:this.text,command:b},function(){nCa(a,b,c.target)})}; g.isServiceEndpoint_=function(a){var b;return!((b=z(a==null?void 0:a.commandMetadata,ly))==null||!b.sendPost)}; g.isSignalServiceEndpoint_=function(a){return!!z(a,my)}; g.serviceEndpointHandler_=function(a){var b=this;return function(c){$u(b.hostElement,[a]);c.preventDefault()}}; g.overrideAriaLabelChanged_=function(){var a=this.getRoot();this.enableContentEditable&&a&&a.setAttribute("aria-label",this.overrideAriaLabel)}; g.enableContentEditableChanged_=function(){var a=this,b=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),b=wt(this.hostElement,b),!b.lastChild||b.lastChild instanceof HTMLElement&&b.lastChild.id!=="contenteditable-root"){var c=document.createElement("div");c.id="contenteditable-root";c.setAttribute("contenteditable","true");c.setAttribute("dir","auto");c.onfocus=function(){a.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))}; b.appendChild(c);this.overrideAriaLabel&&c.setAttribute("aria-label",this.overrideAriaLabel)}}else c=At(this.hostElement).firstChild,c instanceof HTMLElement&&c.id==="contenteditable-root"&&wt(this.hostElement,b).removeChild(c)}; g.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}}; g.getNodesForVisibilityLogging_=function(){return Wba(this.getRoot().childNodes,function(a){var b;return!((b=a.data)==null||!b.trackingParams)})}; g.getNodes=function(){return this.getNodesForVisibilityLogging_()}; g.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var a=this.ytRendererBehavior.getVisibilityLogger();a&&this.getNodesForVisibilityLogging_().forEach(function(b){a.reportShown(b)})}}; g.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var a=this.ytRendererBehavior.getVisibilityLogger();a&&this.getNodesForVisibilityLogging_().forEach(function(b){a.reportHidden(b)})}}; ba.Object.defineProperties(hC.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:x("enable_mixed_direction_formatted_strings")}}}); hC.prototype.enableContentEditableChanged_=hC.prototype.enableContentEditableChanged_;hC.prototype.overrideAriaLabelChanged_=hC.prototype.overrideAriaLabelChanged_;hC.prototype.ellipsisTruncateChanged_=hC.prototype.ellipsisTruncateChanged_;hC.prototype.textChanged=hC.prototype.textChanged;n([F(uXa.YtPlaintextBehavior),r("design:type",Object)],hC.prototype,"ytPlaintextBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],hC.prototype,"ytComponentBehavior",void 0); n([F(Yz.YtRendererBehavior),r("design:type",Object)],hC.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],hC.prototype,"text",void 0);n([M(),r("design:type",Boolean)],hC.prototype,"noEndpoints",void 0);n([M(),r("design:type",Boolean)],hC.prototype,"noStyles",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],hC.prototype,"isDarkTheme",void 0);n([M({reflectToAttribute:!0,value:!1}),r("design:type",Boolean)],hC.prototype,"splitLines",void 0); n([M({reflectToAttribute:!0}),r("design:type",Boolean)],hC.prototype,"forceDefaultStyle",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],hC.prototype,"ellipsisTruncate",void 0);n([M(),r("design:type",Object)],hC.prototype,"ignoreShadyDom",void 0);n([M({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),r("design:type",Boolean)],hC.prototype,"ellipsisTruncateStyling",void 0); n([M({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),r("design:type",String)],hC.prototype,"ariaLabel",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],hC.prototype,"isEmpty",void 0);n([M({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),r("design:type",Boolean)],hC.prototype,"hasLinkOnly_",void 0);n([M(),r("design:type",Boolean)],hC.prototype,"hasEmoji",void 0); n([M(),r("design:type",Boolean)],hC.prototype,"disableAttributedString",void 0);n([M(),r("design:type",Boolean)],hC.prototype,"isOverlay",void 0);n([M(),r("design:type",Boolean)],hC.prototype,"linkInheritColor",void 0);n([M(),r("design:type",Boolean)],hC.prototype,"noPreWrap",void 0);n([M(),r("design:type",Boolean)],hC.prototype,"userInput",void 0);n([M({value:16}),r("design:type",Number)],hC.prototype,"emojiSize",void 0);n([M(),r("design:type",String)],hC.prototype,"target",void 0); n([M(),r("design:type",Boolean)],hC.prototype,"enableContentEditable",void 0);n([M(),r("design:type",String)],hC.prototype,"overrideAriaLabel",void 0);n([M(),r("design:type",Boolean)],hC.prototype,"respectHtmlDir",void 0);n([M(),r("design:type",Boolean)],hC.prototype,"respectLangDir",void 0);n([H("plaintextOnly"),r("design:type",Boolean),r("design:paramtypes",[])],hC.prototype,"useMixedDirectionFormattedStrings",null); n([M({computed:"computeUseAttributedString(text)"}),r("design:type",Boolean)],hC.prototype,"useYtAttributedString",void 0);n([Lt("text"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],hC.prototype,"textChanged",null);n([Lt("ellipsisTruncate"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],hC.prototype,"ellipsisTruncateChanged_",null); n([Lt("overrideAriaLabel"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],hC.prototype,"overrideAriaLabelChanged_",null);n([Lt("enableContentEditable"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],hC.prototype,"enableContentEditableChanged_",null);n([fu({is:"yt-formatted-string",disableElementRegistration:!0})],hC); Tu(hC,"yt-formatted-string",function(){if(DXa===void 0){var a=document.createElement("template");Q(a,"");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;CXa===void 0&&(CXa=document.createElement("template"));var d=CXa;c.call(b,d.content.cloneNode(!0),a.content.firstChild);DXa=a}a=DXa;return a});var iC=function(){var a=E.apply(this,arguments)||this;a.systemIcons=x("kevlar_system_icons");return a}; k(iC,E);g=iC.prototype;g.ready=function(){this.hostElement.addEventListener("tap",It(this,this.onEndpointTapExtra))}; g.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")}; g.onFocus=function(){var a;(a=wt(this.hostElement).querySelector("tp-yt-paper-item"))==null||a.focus()}; g.onEndpointTapExtra=function(a){Gt(this.hostElement,"iron-activate");var b=this.data.navigationEndpoint;b&&z(b,EPa)&&(a.stopPropagation(),Zu(this.hostElement,[b],this.hostElement))}; g.computeIcon=function(a){return a&&a.iconType?cz(a.iconType):""}; g.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)}; g.computeIconHidden=function(){return this.useIcons?!1:!this.icon}; g.forceUpdateStylesOnLegacyBrowsers=function(){x("kevlar_legacy_browsers")&&Ft(this.hostElement)}; iC.prototype.forceUpdateStylesOnLegacyBrowsers=iC.prototype.forceUpdateStylesOnLegacyBrowsers;iC.prototype.onFocus=iC.prototype.onFocus;n([F(pB),r("design:type",Object)],iC.prototype,"ytdOpenPopupBehavior",void 0);n([F(tXa.YtConditionalRendererBehavior),r("design:type",Object)],iC.prototype,"ytConditionalRendererBehavior",void 0);n([F(zB.YtEndpointBehavior),r("design:type",Object)],iC.prototype,"ytEndpointBehavior",void 0);n([M(),r("design:type",Object)],iC.prototype,"data",void 0); n([M({computed:"computeIcon(data.icon)",value:""}),r("design:type",String)],iC.prototype,"icon",void 0);n([M({reflectToAttribute:!0,value:!1}),r("design:type",Boolean)],iC.prototype,"useIcons",void 0);n([M({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),r("design:type",Boolean)],iC.prototype,"hasSeparator",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],iC.prototype,"systemIcons",void 0); n([Kt("focus"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],iC.prototype,"onFocus",null);n([Lt("useIcons","hasSeparator"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],iC.prototype,"forceUpdateStylesOnLegacyBrowsers",null); Tu(iC,"ytd-menu-navigation-item-renderer",function(){if(LWa===void 0){var a=document.createElement("template");Q(a,"\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);LWa=a}a=LWa;return a},{mode:1});var jC=function(){return kt.apply(this,arguments)||this}; k(jC,kt);ba.Object.defineProperties(jC.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return x("enable_entity_store_from_dependency_injection")?Au():XA}}}); n([Vt()],jC);var kC=[bu.prototype,jC.prototype];var bZa;var lC=nA("","downloadsPageViewConfigurationEntity"),cZa=nA("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity"),dZa=nA("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");nA("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");nA("SMART_DOWNLOADS_ENABLED","settingEntity");var eZa=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];function fZa(a){var b=a.filter(function(e){var f;return(e==null?void 0:(f=e.transferEntity)==null?void 0:f.transferState)==="TRANSFER_STATE_COMPLETE"}).length,c=a.filter(function(e){var f; return(e==null?void 0:(f=e.transferEntity)==null?void 0:f.transferState)==="TRANSFER_STATE_FAILED"}).length,d=a.filter(function(e){var f; return(e==null?void 0:(f=e.transferEntity)==null?void 0:f.transferState)&&eZa.includes(e.transferEntity.transferState)}); if(!(b||d!=null&&d.length))return 0;b=gZa(d)+b;a=a.length-c;return a===0?0:Math.round(b*100/a)/100} function gZa(a){var b=[];b=b.concat.apply(b,ia(a.filter(function(f){return f.streamEntity}).map(function(f){var h=Object.assign({},f.streamEntity),m,p=(m=f.transferEntity)==null?void 0:m.transferState; h.streamsProgress=h.streamsProgress||[];h.streamsProgress=h.streamsProgress.map(function(q){var t=Object.assign({},q);t.numBytesDownloaded=p==="TRANSFER_STATE_COMPLETE"?q.numTotalBytes:q.numBytesDownloaded;return t}); return h}).map(function(f){return f.streamsProgress}))); var c=a=0;b=l(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=Number(e.numBytesDownloaded);e=Number(e.numTotalBytes);c+=isNaN(d)?0:d;a+=isNaN(e)?0:e}return a===0?0:Math.round(c*100/a)/100} function hZa(a){if(!a||!a.expirationTimestamp||!a.action)return!1;var b=im()/1E3;return Number(a.expirationTimestamp)>=b} function iZa(a){return a&&a.expirationTimestamp&&a.action?hZa(a)&&a.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1} function jZa(a){return!!a&&!!a.playerResponseJson} function mC(a){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(a||"TRANSFER_STATE_UNKNOWN")} function kZa(a){var b=new $Ta;if(a!==void 0){var c=Math.ceil(Math.log2(a.length*4+2)/7);c=c===void 0?2:c;lA(b,10);b.submessagePosStack.push(b.pos);b.submessagePosStack.push(c);b.pos+=c;kA(b,a.length*1.2);c=hA(a,b.buf.subarray(b.pos));b.pos+c>b.buf.length&&(kA(b,c),c=hA(a,b.buf.subarray(b.pos)));b.pos+=c;a=b.submessagePosStack.pop();c=b.submessagePosStack.pop();for(var d=b.pos-c-a;a--;){var e=a?128:0;b.view.setUint8(c++,d&127|e);d>>=7}}b=new Uint8Array(b.buf.buffer,b.buf.byteOffset,b.pos);return new TextDecoder("utf-8").decode(b)} function lZa(a){var b=0;a=l(a);for(var c=a.next(),d={};!c.done;d={transferState$jscomp$3:void 0},c=a.next()){var e=c.value,f=void 0;c=(f=e.streamEntity)!=null?f:{};f=void 0;d.transferState$jscomp$3=(f=e.transferEntity)==null?void 0:f.transferState;f=e=void 0;((e=c)==null?0:(f=e.streamsProgress)==null?0:f.length)&&c.streamsProgress.forEach(function(h){return function(m){m=Number(h.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?m.numTotalBytes:m.numBytesDownloaded);isFinite(m)&&(b+=m)}}(d))}return b} function mZa(a){return a.some(function(b){var c;if(!(b==null?0:(c=b.transferEntity)==null?0:c.transferState)){var d;return!(b==null?0:(d=b.policyEntity)==null?0:d.action)||b.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return eZa.includes(b.transferEntity.transferState)})} ;var nZa=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];function oZa(a){var b=["TRANSFER_STATE_COMPLETE"];b=b===void 0?nZa:b;return a.filter(function(c){var d,e;return b.includes((e=(d=c.transferEntity)==null?void 0:d.transferState)!=null?e:"TRANSFER_STATE_UNKNOWN")})} function pZa(a,b){if(b){var c,d=(c=yA(a,"playbackData",nA(b,"playbackData")))!=null?c:null,e;c=(e=yA(a,"transfer",nA(b,"transfer")))!=null?e:null;var f;e=(f=yA(a,"offlineVideoStreams",nA(b,"offlineVideoStreams")))!=null?f:null;var h;a=(h=yA(a,"offlineVideoPolicy",nA(b,"offlineVideoPolicy")))!=null?h:null;if(d||c||e||a)return{playbackDataEntity:d,transferEntity:c,streamEntity:e,policyEntity:a}}} function qZa(a){var b=a.mainVideoDownloadStateEntity,c=a.playbackData;if(!c)return[];var d=Object.keys(c),e=!0;b&&Object.keys(b).length>d.length&&(e=!1,d=Object.keys(b));var f=[];d=l(d);for(var h=d.next();!h.done;h=d.next()){h=h.value;var m=mA(h).entityId;if(!nC(a,m)&&(m=pZa(a,m))){var p=void 0,q=void 0,t=e?(p=c[h])==null?void 0:p.streamDownloadTimestampSeconds:(q=b[h])==null?void 0:q.addedTimestampMillis;h=Number(t)||im();f.push({entity:m,streamDownloadTimestamp:h})}}return f.sort(function(u,v){var w= u.streamDownloadTimestamp,y=v.streamDownloadTimestamp;return y===w?u.entity.streamEntity&&!v.entity.streamEntity?1:-1:y-w}).map(function(u){return u.entity})} function nC(a,b){var c;return((c=yA(a,"downloadStatusEntity",nA(b,"downloadStatusEntity")))==null?void 0:c.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1} ;function rZa(a){var b=new Set,c;a=(c=a.mainDownloadsListEntity)==null?void 0:c[cZa];var d;if(!(a==null?0:(d=a.downloads)==null?0:d.length))return b;var e;a==null||(e=a.downloads)==null||e.forEach(function(f){(f==null?0:f.videoItem)&&b.add(f.videoItem)}); return b} function oC(a,b){if(b){var c=yA(a,"mainVideoEntity",nA(b,"mainVideoEntity")),d=yA(a,"downloadStatusEntity",nA(b,"downloadStatusEntity")),e=yA(a,"ytMainChannelEntity",nA(b,"ytMainChannelEntity")),f={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};a=pZa(a,b);d=(d==null?void 0:d.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!x("woffle_render_failed_download_state_ks")&&(d==null?void 0:d.downloadState)==="DOWNLOAD_STATE_FAILED";!a&&d&&(a=f);if(a&&c&&e)return Object.assign({}, {videoEntity:c,channelEntity:e},a)}} function sZa(a,b){if(!b)return"TRANSFER_STATE_UNKNOWN";var c=yA(a,"transfer",nA(b,"transfer"));if(c){var d;return(d=c.transferState)!=null?d:"TRANSFER_STATE_UNKNOWN"}c=yA(a,"offlineOrchestrationActionWrapperEntity",nA(b,"offlineOrchestrationActionWrapperEntity"));a=yA(a,"mainVideoEntity",nA(b,"mainVideoEntity"));return c||a?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"} function tZa(a,b){if(!b)return"DOWNLOAD_STATE_UNKNOWN";var c,d;return(d=(c=yA(a,"downloadStatusEntity",nA(b,"downloadStatusEntity")))==null?void 0:c.downloadState)!=null?d:"DOWNLOAD_STATE_UNKNOWN"} ;function uZa(a,b){return vZa(a).some(function(c){var d;return(c==null?void 0:(d=c.mainPlaylistEntity)==null?void 0:d.playlistId)===b})} function wZa(a,b,c){var d=xZa(a,b);if(!d.length)return[];b=[];d=l(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=oC(a,e);c&&sZa(a,e)!=="TRANSFER_STATE_COMPLETE"||f&&b.push(f)}return b} function xZa(a,b){if(!b)return[];var c=nA(b,"mainPlaylistEntity"),d;b=(d=a.mainPlaylistEntity)==null?void 0:d[c];d=[];if(b==null||!b.videos)return d;b=l(b.videos);for(c=b.next();!c.done;c=b.next()){c=c.value;var e=void 0,f=void 0,h=void 0,m=(e=a)==null?void 0:(f=e.mainPlaylistVideoEntity)==null?void 0:(h=f[c])==null?void 0:h.video;m&&(c=mA(m).entityId)&&d.push(c)}return d} function yZa(a,b){if(b){var c=yA(a,"mainPlaylistEntity",nA(b,"mainPlaylistEntity")),d=yA(a,"mainPlaylistDownloadStateEntity",nA(b,"mainPlaylistDownloadStateEntity"));a=yA(a,"ytMainChannelEntity",nA(b,"ytMainChannelEntity"));if(d&&c)return Object.assign({},{mainPlaylistEntity:c,mainPlaylistDownloadStateEntity:d},!!a&&{channelEntity:a})}} function vZa(a){return pC(a).sort(function(b,c){return c.addedTimestampMillis-b.addedTimestampMillis}).map(function(b){return b.downloadedPlaylistEntities})} function pC(a){var b=a.mainPlaylistDownloadStateEntity,c=[];if(!b)return c;for(var d=l(Object.keys(b)),e=d.next();!e.done;e=d.next()){var f=e.value;e=yZa(a,mA(f).entityId);var h=void 0;f=Number((h=b[f])==null?void 0:h.addedTimestampMillis);h=isNaN(f)?im():f;e!==void 0&&c.push({downloadedPlaylistEntities:e,addedTimestampMillis:h})}return c} function zZa(a){var b,c=(b=a.mainPlaylistVideoEntity)!=null?b:{};return new Set(vZa(a).reduce(function(d,e){d=d===void 0?[]:d;var f,h;e==null||(f=e.mainPlaylistEntity)==null||(h=f.videos)==null||h.forEach(function(m){var p;(m=(p=c[m])==null?void 0:p.video)&&d.push(m)}); return d},[]))} ;function AZa(a){return"downloadedMusicPlaylistEntities"in a} ;function BZa(a){var b=a.musicPlaylistDownloadMetadataEntity,c=[];if(!b)return c;for(var d=l(Object.keys(b)),e=d.next();!e.done;e=d.next()){e=e.value;a:{var f=a,h=mA(e).entityId;if(h){var m=yA(f,"musicPlaylist",nA(h,"musicPlaylist"));f=yA(f,"musicPlaylistDownloadMetadataEntity",nA(h,"musicPlaylistDownloadMetadataEntity"));if(m&&f){m={musicPlaylistEntity:m,musicPlaylistDownloadStateEntity:f};break a}}m=void 0}f=void 0;e=Number((f=b[e])==null?void 0:f.addedTimestampMillis);e=isNaN(e)?im():e;m!==void 0&& c.push({downloadedMusicPlaylistEntities:m,addedTimestampMillis:e})}return c} function CZa(a){var b=new Set;a=l(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,"musicPlaylistEntity"in c&&"musicPlaylistDownloadStateEntity"in c){c=l(c.musicPlaylistEntity.tracks);for(var d=c.next();!d.done;d=c.next())b.add(d.value)}return b} ;function DZa(a,b){if(b){var c=yA(a,"musicTrack",nA(b,"musicTrack")),d=yA(a,"musicArtist",nA(b,"musicArtist"))||{};if((a=pZa(a,b))&&c&&d)return Object.assign({},{musicTrackEntity:c,musicArtistEntity:d},a)}} function EZa(a){var b=a.musicTrackDownloadMetadataEntity,c=[];if(!b)return[];b=l(Object.keys(b));for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=DZa(a,mA(e).entityId);var f=void 0;e=Number((f=yA(a,"musicTrackDownloadMetadataEntity",e))==null?void 0:f.addedTimestampMillis);f=isNaN(e)?im():e;d!==void 0&&c.push({downloadedMusicEntities:d,addedTimestampMillis:f})}return c} ;var FZa={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};function GZa(a,b){if(!b)return[];if(Object.values(FZa).includes(b))return HZa(a,b);b=nA(b,"musicPlaylist");var c;a=(c=a.musicPlaylist)==null?void 0:c[b];c=[];if(a==null||!a.tracks)return c;a=l(a.tracks);for(b=a.next();!b.done;b=a.next())(b=mA(b.value).entityId)&&c.push(b);return c} function HZa(a,b){var c=new Set,d=BZa(a).map(function(f){return f.downloadedMusicPlaylistEntities}); d=CZa(d);d=l(d);for(var e=d.next();!e.done;e=d.next())(e=mA(e.value).entityId)&&c.add(e);return IZa(a).downloadedMusicEntities.filter(function(f){var h;if((h=f.musicTrackEntity)!=null&&h.videoId){f=f.musicTrackEntity;if(h=b==="PPOM"?!0:!c.has(f.videoId))b:switch(f=f.musicVideoType,b){case"PPSE":h=f==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:h=f!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";}f=h}else f=!1;return f}).map(function(f){var h; return(h=f.musicTrackEntity)==null?void 0:h.videoId})} function IZa(a){var b=EZa(a).sort(function(c,d){return d.addedTimestampMillis-c.addedTimestampMillis}).map(function(c){return"downloadedMusicEntities"in c?c.downloadedMusicEntities:AZa(c)?c.downloadedMusicPlaylistEntities:{}}); a=BZa(a).sort(function(c,d){return d.addedTimestampMillis-c.addedTimestampMillis}).map(function(c){return"downloadedMusicEntities"in c?c.downloadedMusicEntities:AZa(c)?c.downloadedMusicPlaylistEntities:{}}); return{downloadedMusicEntities:b,downloadedMusicPlaylistEntities:a}} ;function JZa(a,b){b=Vk("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?GZa(a,b):xZa(a,b);if(!b.length)return"TRANSFER_STATE_UNKNOWN";b=b.map(function(c){if(c){if(c=yA(a,"transfer",nA(c,"transfer"))){var d;c=(d=c.transferState)!=null?d:"TRANSFER_STATE_UNKNOWN"}else c="TRANSFER_STATE_UNKNOWN";}else c="TRANSFER_STATE_UNKNOWN";return c}); return KZa(b)} function KZa(a){var b=new Set(a);if(b.has("TRANSFER_STATE_FAILED")&&b.size===1)return"TRANSFER_STATE_FAILED";b.delete("TRANSFER_STATE_FAILED");if(b.has("TRANSFER_STATE_UNKNOWN")&&b.size===1)return"TRANSFER_STATE_PRE_TRANSFER";b.delete("TRANSFER_STATE_UNKNOWN");if(b.has("TRANSFER_STATE_PRE_TRANSFER")&&b.size===1||b.size===0)return"TRANSFER_STATE_PRE_TRANSFER";a=b.has("TRANSFER_STATE_TRANSFERRING");b=b.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return a||b?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"} ;function qC(a){var b=a.mainVideoDownloadStateEntity,c=[];if(!b)return[];b=l(Object.keys(b));for(var d=b.next();!d.done;d=b.next()){var e=d.value;if(!nC(a,mA(e).entityId)){d=oC(a,mA(e).entityId);var f=void 0,h=void 0;e=(h=Number((f=yA(a,"mainVideoDownloadStateEntity",e))==null?void 0:f.addedTimestampMillis))!=null?h:im();d!==void 0&&c.push({downloadedVideoEntities:d,addedTimestampMillis:e})}}return c} function LZa(a){return qC(a).sort(function(b,c){return c.addedTimestampMillis-b.addedTimestampMillis}).map(function(b){return b.downloadedVideoEntities})} function MZa(a){var b=zZa(a),c=rC(a),d=rZa(a),e=qC(a).filter(function(h){var m,p;if((h==null?void 0:(m=h.downloadedVideoEntities)==null?void 0:(p=m.transferEntity)==null?void 0:p.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var q,t;h=h==null?void 0:(q=h.downloadedVideoEntities)==null?void 0:(t=q.videoEntity)==null?void 0:t.key;return x("kevlar_use_library_entity")?h&&(d.has(h)||c[h]):h&&!b.has(h)}),f=pC(a).filter(function(h){return JZa(a,h.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)=== "TRANSFER_STATE_COMPLETE"}); return[].concat(ia(e),ia(f)).sort(function(h,m){return m.addedTimestampMillis-h.addedTimestampMillis}).map(function(h){return NZa(h)})} function rC(a){var b,c,d;a=(d=(c=((b=a.mainDownloadsListEntity)!=null?b:{})[dZa])==null?void 0:c.downloads)!=null?d:[];b={};c=l(a);for(d=c.next();!d.done;d=c.next())a=void 0,b[(a=d.value.videoItem)!=null?a:""]=!0;return b} function OZa(a){var b=rC(a);if(Object.keys(b).length===0)return!1;var c=a.mainVideoEntity;if(!c)return!0;c=l(Object.keys(c));for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=mA(d).entityId;if(b[d]&&!nC(a,e))return!1}return!0} function sC(a){var b=rC(a);return qC(a).sort(function(c,d){return c.addedTimestampMillis-d.addedTimestampMillis}).map(function(c){return c.downloadedVideoEntities}).filter(function(c){var d; return(c=c==null?void 0:(d=c.videoEntity)==null?void 0:d.key)&&!!b[c]})} function NZa(a){return"downloadedVideoEntities"in a?a.downloadedVideoEntities:"downloadedPlaylistEntities"in a?a.downloadedPlaylistEntities:{}} function PZa(a){var b=rC(a),c=zZa(a),d=qC(a).filter(function(e){var f,h;return(e=e==null?void 0:(f=e.downloadedVideoEntities)==null?void 0:(h=f.videoEntity)==null?void 0:h.key)&&!b[e]&&!c.has(e)}); a=pC(a);return[].concat(ia(d),ia(a)).sort(function(e,f){return f.addedTimestampMillis-e.addedTimestampMillis}).map(function(e){return NZa(e)})} function QZa(a){if(!x("kevlar_use_library_entity"))return PZa(a);var b=qC(a).filter(function(d){var e,f;if(e=d=d==null?void 0:(e=d.downloadedVideoEntities)==null?void 0:(f=e.videoEntity)==null?void 0:f.key){var h,m,p;e=((m=(h=a.mainDownloadsListEntity)==null?void 0:h[cZa])==null?0:(p=m.downloads)==null?0:p.length)?rZa(a).has(d):!1}return e}),c=pC(a); return[].concat(ia(b),ia(c)).sort(function(d,e){return e.addedTimestampMillis-d.addedTimestampMillis}).map(function(d){return NZa(d)})} function RZa(a){var b=rC(a),c=zZa(a);return LZa(a).filter(function(d){var e;return(d=d==null?void 0:(e=d.videoEntity)==null?void 0:e.key)&&!b[d]&&!c.has(d)})} function SZa(a){if(!x("kevlar_use_library_entity"))return RZa(a);var b=rC(a),c=rZa(a);return LZa(a).filter(function(d){var e;return(d=d==null?void 0:(e=d.videoEntity)==null?void 0:e.key)&&!b[d]&&c.has(d)})} function TZa(a){var b=nA("SMART_DOWNLOADS_ENABLED","settingEntity"),c,d,e;return!!((e=(d=((c=a.settingEntity)!=null?c:{})[b])==null?void 0:d.settingOptionValue)!=null?e:{}).boolValue} function UZa(a){var b,c,d,e=(d=(c=((b=a.mainDownloadsListEntity)!=null?b:{})[dZa])==null?void 0:c.refresh)!=null?d:"",f;a=(f=a.refresh)==null?void 0:f[e];e=a!=null?a:{};return(e==null?0:e.refreshTime)?Number(e==null?void 0:e.refreshTime):0} function VZa(a){var b=sC(a);if(mZa(b))return 0;var c=[];b=l(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=void 0,f=void 0;if((e=d)==null?0:(f=e.videoEntity)==null?0:f.key)e=mA(d.videoEntity.key).entityId,d=a,e=nA(e,"mainVideoDownloadStateEntity"),d=yA(d,"mainVideoDownloadStateEntity",e),(d=Number(d==null?void 0:d.addedTimestampMillis))&&c.push(d)}return Math.max.apply(Math,ia(c))} ;function tC(a){return a.ui.richGridMiniMode} function uC(a){return a.ui.richGridItemsPerRow} function WZa(a){return a.ui.guideIsExpanded} function XZa(a){return a.ui.miniplayerIsActive} function YZa(a){var b;return((b=a.ui)==null?void 0:b.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"} function ZZa(a){return YZa(a)==="WEB_PAGE_TYPE_WATCH"} function $Za(a){return a.ui.inlinePreviewIsActive} function a_a(a){return a.ui.inlinePreviewIsEnabled} function vC(a){return a.ui.isOnline} ;function wC(a,b){return sZa(a.entities,b)} function xC(a,b){return JZa(a.entities,b)} function b_a(a,b){return yZa(a.entities,b)} function yC(a,b){return(a=oC(a.entities,b))?gZa([a]):0} function c_a(a,b){var c=Vk("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(c){var d=a.entities;var e=GZa(d,b);if(e.length){var f=[];e=l(e);for(var h=e.next();!h.done;h=e.next())(h=DZa(d,h.value))&&f.push(h);d=f}else d=[]}else d=wZa(a.entities,b);var m;if(c){var p=a.entities;b?(b=nA(b,"musicPlaylist"),p=(m=p.musicPlaylist)==null?void 0:m[b],m=p!=null&&p.tracks?p.tracks.length:0):m=0}else m=a.entities,b?(b=nA(b,"mainPlaylistEntity"),m=(p=m.mainPlaylistEntity)==null?void 0:p[b],m=m!=null&&m.videos?m.videos.length: 0):m=0;return d.length!==m?0:d?fZa(d):0} function d_a(a,b,c){if(!b&&c){var d=a.entities;if(c){var e=kZa(c),f,h;b=(h=(f=yA(d,"offlineabilityEntity",nA(e,"offlineabilityEntity")))==null?void 0:f.addToOfflineButtonState)!=null?h:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else b="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else f=a.entities,b?(h=kZa(b),b=(e=(d=yA(f,"offlineabilityEntity",nA(h,"offlineabilityEntity")))==null?void 0:d.addToOfflineButtonState)!=null?e:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):b="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";return b} function e_a(a,b){a=a.entities;if(b){b=kZa(b);var c,d;b=(d=(c=yA(a,"offlineabilityEntity",nA(b,"offlineabilityEntity")))==null?void 0:c.addToOfflineButtonState)!=null?d:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else b="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return b} function f_a(a){var b,c,d,e=(d=(c=((b=a.entities.downloadsPageViewConfigurationEntity)!=null?b:{})[lC])==null?void 0:c.smartDownloadsOptInBannerVisibility)!=null?d:{};return vC(a)?!!e.visibleWithConnection:!!e.visibleWithoutConnection} function g_a(a){return TZa(a.entities)} function h_a(a){var b,c,d,e=(d=(c=((b=a.entities.downloadsPageViewConfigurationEntity)!=null?b:{})[lC])==null?void 0:c.downloadsUpsellBannerVisibility)!=null?d:{};return vC(a)?!!e.visibleWithConnection:!!e.visibleWithoutConnection} function zC(a,b){return nC(a.entities,b)} function AC(a,b){a:{if(b&&(a=yA(a.entities,"videoPlaybackPositionEntity",nA(b,"videoPlaybackPositionEntity")),a==null?0:a.lastPlaybackPositionSeconds)){a=Number(a.lastPlaybackPositionSeconds);break a}a=0}return a} ;var BC=kz(zy("DOWNLOAD",{},"Download")),i_a=kz(zy("DOWNLOAD_AGAIN",{},"Download again")),CC=kz(zy("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),j_a=kz(zy("RETRY",{},"Retry")),k_a=kz(zy("PAUSE_DOWNLOADING",{},"Pause downloading")),l_a=kz(zy("RESUME_DOWNLOAD",{},"Resume download")),DC=function(){var a=E.apply(this,arguments)||this;a.primaryText=BC;a.primaryIconType="OFFLINE_DOWNLOAD";a.hasSecondaryContent=!1;a.hasSeparator=!1;a.transferState="TRANSFER_STATE_UNKNOWN";a.isVideoDeletedByUser=!1; a.isOnline=!1;a.isVideoPlayable=!0;a.isHidden=!1;a.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return a}; k(DC,E);g=DC.prototype;g.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")}; g.onFocus=function(){this.primaryEntry.focus()}; g.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)}; g.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)}; g.getRemoveAction=function(){return"ACTION_REMOVE"}; g.sendOfflineAction=function(a){var b=this.data.serviceEndpoint;if(b){var c=z(b,sy);c&&a&&(c.action=a);this.ytComponentBehavior.resolveCommand(b)}}; g.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=BC,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else if(x("download_unplayable_error_handling")&&!this.isVideoPlayable)this.isOnline?(this.primaryText=i_a,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_RETRY",this.secondaryText=CC,this.secondaryIconType="DELETE",this.secondaryAction=this.getRemoveAction(), this.hasSecondaryContent=!0):(this.primaryText=CC,this.primaryIconType="DELETE",this.primaryAction=this.getRemoveAction());else switch(this.transferState){case"TRANSFER_STATE_UNKNOWN":this.primaryText=BC;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case"TRANSFER_STATE_FAILED":case"TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=j_a;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=CC;this.secondaryIconType= "DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case"TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=l_a;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=CC;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case"TRANSFER_STATE_TRANSFERRING":this.primaryText=k_a;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=CC; this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case"TRANSFER_STATE_COMPLETE":case"TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=CC;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=BC,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";}}; g.showHideButton=function(){var a;this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||((a=this.playerStateEntity)==null?void 0:a.adsState)==="ADS_STATE_PLAYING"}; g.isSecondaryEntryHidden=function(a,b){return a?!0:!b}; g.computeHasSeparator=function(){var a;return!((a=this.data)==null||!a.hasSeparator)}; g.computePlayerStateEntityKey=function(a){return a}; DC.prototype.showHideButton=DC.prototype.showHideButton;DC.prototype.onTransferStateChange=DC.prototype.onTransferStateChange;DC.prototype.onFocus=DC.prototype.onFocus;n([F(Yz.YtRendererBehavior),r("design:type",Object)],DC.prototype,"ytRendererBehavior",void 0);n([F(kC),r("design:type",Object)],DC.prototype,"ytdReduxBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],DC.prototype,"ytComponentBehavior",void 0);n([M(),r("design:type",Object)],DC.prototype,"data",void 0); n([M(),r("design:type",Object)],DC.prototype,"primaryText",void 0);n([M(),r("design:type",String)],DC.prototype,"primaryIconType",void 0);n([M(),r("design:type",String)],DC.prototype,"primaryAction",void 0);n([M(),r("design:type",Object)],DC.prototype,"secondaryText",void 0);n([M(),r("design:type",String)],DC.prototype,"secondaryIconType",void 0);n([M(),r("design:type",String)],DC.prototype,"secondaryAction",void 0);n([M(),r("design:type",Object)],DC.prototype,"hasSecondaryContent",void 0); n([M({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),r("design:type",Object)],DC.prototype,"hasSeparator",void 0);n([M({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),r("design:type",String)],DC.prototype,"playerStateEntityKey",void 0);n([M({selector:PA,selectorArgs:["playerStateEntityKey"]}),r("design:type",Object)],DC.prototype,"playerStateEntity",void 0); n([M({selector:wC,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),r("design:type",String)],DC.prototype,"transferState",void 0);n([M({selector:zC,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),r("design:type",Object)],DC.prototype,"isVideoDeletedByUser",void 0);n([M({selector:vC}),r("design:type",Object)],DC.prototype,"isOnline",void 0); n([M({selector:function(a,b){var c;b?(a=(c=yA(a.entities,"playbackData",nA(b,"playbackData")))!=null?c:void 0,c=!!a&&!!a.playerResponseJson):c=!1;return c}, selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),r("design:type",Object)],DC.prototype,"isVideoPlayable",void 0);n([M(),r("design:type",Object)],DC.prototype,"isHidden",void 0);n([M({selector:d_a,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),r("design:type",Object)],DC.prototype,"offlineabilityState",void 0);n([Tt("#primary-entry"),r("design:type",Object)],DC.prototype,"primaryEntry",void 0); n([Kt("focus"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],DC.prototype,"onFocus",null);n([cu("transferState","isVideoDeletedByUser","isOnline","isVideoPlayable"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],DC.prototype,"onTransferStateChange",null);n([cu("offlineabilityState","playerStateEntity"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],DC.prototype,"showHideButton",null); Tu(DC,"ytd-menu-service-item-download-renderer",function(){if(bZa===void 0){var a=document.createElement("template");Q(a,"\n\n\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);bZa=a}a=bZa;return a},{mode:1});var m_a;var n_a;var EC=function(a){var b=o_a.get(a);if(b&&(b=b.pop()))return p_a++,b;q_a++;try{var c=document.createElement(a)}catch(d){throw new Dl("ElementPool failed to create element",a,d.message)}return c},r_a=function(a){var b=a.is; if(b){var c=o_a.get(b);c||(c=[],o_a.set(b,c));var d=Vk("ELEMENT_POOL_CONFIG")||{};c.length>=(d[b]!==void 0?d[b]:Vk("ELEMENT_POOL_DEFAULT_CAP",0))||c.push(a)}else fo(new Dl("Element pool should only handle custom elements:",a.nodeName))},o_a=new Map,q_a=0,p_a=0;function s_a(a,b,c,d,e,f){var h,m,p=t_a(a.style),q=u_a(a.style),t=a.label,u=((h=a.accessibilityData)==null?void 0:h.label)||a.label;a:switch(a.style){case"BADGE_STYLE_TYPE_SHORTS_PLAYER":case"BADGE_STYLE_TYPE_BLACK":case"BADGE_STYLE_TYPE_OVERLAY":case"BADGE_STYLE_TYPE_WHITE_TEXT":h=!0;break a;default:h=!1;}var v=(m=a.icon)==null?void 0:m.iconType;if(d)d=!1;else a:switch(a.style){case"BADGE_STYLE_TYPE_AD":case"BADGE_STYLE_TYPE_AD_STARK":d=!0;break a;default:d=!1;}return{type:p,brNzRatingBadgeType:q, text:t,accessibilityText:u,isOverlay:h,icon:v!=="PREMIUM"?v:void 0,modern:c||x("web_modern_badge_view_model"),numBadgesInRow:b,adsIncludeDot:d,tooltipHoverText:a.tooltip,mediumFontAdBadge:e,largeFontAdBadge:f}} function t_a(a){switch(a){case"BADGE_STYLE_TYPE_MEMBERS_ONLY":return 9;case"BADGE_STYLE_TYPE_LIVE_NOW":return 12;case"BADGE_STYLE_TYPE_PREMIUM":return 7;case"BADGE_STYLE_TYPE_AD":case"BADGE_STYLE_TYPE_AD_STARK":return 3;case"BADGE_STYLE_TYPE_YPC":case"BADGE_STYLE_TYPE_YPC_GREEN":return 10;case"BADGE_STYLE_TYPE_FEATURED":return 6;case"BADGE_STYLE_TYPE_THUMBNAIL_OVERLAY_SPECIAL":return 20;case"BADGE_STYLE_TYPE_BLUE":return 13;case"BADGE_STYLE_TYPE_MEDIA":return 1;case"BADGE_STYLE_TYPE_MEDIA_OVERLAY":return 2; default:return 0;}} function u_a(a){switch(a){case"BADGE_STYLE_TYPE_BR_RATING_SMALL_GREEN_SQUARE":return 3;case"BADGE_STYLE_TYPE_BR_RATING_SMALL_BLUE_SQUARE":return 4;case"BADGE_STYLE_TYPE_BR_RATING_SMALL_YELLOW_SQUARE":return 6;case"BADGE_STYLE_TYPE_BR_RATING_SMALL_ORANGE_SQUARE":return 8;case"BADGE_STYLE_TYPE_BR_RATING_SMALL_RED_SQUARE":return 10;case"BADGE_STYLE_TYPE_BR_RATING_SMALL_BLACK_SQUARE":return 12;case"BADGE_STYLE_TYPE_BR_RATING_LARGE_RED_SQUARE":return 11;case"BADGE_STYLE_TYPE_BR_RATING_LARGE_BLUE_SQUARE":return 5; case"BADGE_STYLE_TYPE_BR_RATING_LARGE_YELLOW_SQUARE":return 7;case"BADGE_STYLE_TYPE_BR_RATING_LARGE_ORANGE_SQUARE":return 9;case"BADGE_STYLE_TYPE_BR_RATING_LARGE_BLACK_SQUARE":return 13;}} ;var v_a={click:"EVENT_SPAN_TYPE_CLICK",dblclick:"EVENT_SPAN_TYPE_DBLCLICK",mousedown:"EVENT_SPAN_TYPE_MOUSEDOWN",mouseup:"EVENT_SPAN_TYPE_MOUSEUP",mouseover:"EVENT_SPAN_TYPE_MOUSEOVER",mouseout:"EVENT_SPAN_TYPE_MOUSEOUT",mouseenter:"EVENT_SPAN_TYPE_MOUSEENTER",mouseleave:"EVENT_SPAN_TYPE_MOUSELEAVE",mousemove:"EVENT_SPAN_TYPE_MOUSEMOVE",contextmenu:"EVENT_SPAN_TYPE_CONTEXTMENU",keydown:"EVENT_SPAN_TYPE_KEYDOWN",keyup:"EVENT_SPAN_TYPE_KEYUP",keypress:"EVENT_SPAN_TYPE_KEYPRESS",touchstart:"EVENT_SPAN_TYPE_TOUCHSTART", touchend:"EVENT_SPAN_TYPE_TOUCHEND",touchmove:"EVENT_SPAN_TYPE_TOUCHMOVE",touchcancel:"EVENT_SPAN_TYPE_TOUCHCANCEL",pointerdown:"EVENT_SPAN_TYPE_POINTERDOWN",pointerup:"EVENT_SPAN_TYPE_POINTERUP",pointermove:"EVENT_SPAN_TYPE_POINTERMOVE",pointerover:"EVENT_SPAN_TYPE_POINTEROVER",pointerout:"EVENT_SPAN_TYPE_POINTEROUT",pointerenter:"EVENT_SPAN_TYPE_POINTERENTER",pointerleave:"EVENT_SPAN_TYPE_POINTERLEAVE",pointercancel:"EVENT_SPAN_TYPE_POINTERCANCEL",gotpointercapture:"EVENT_SPAN_TYPE_GOTPOINTERCAPTURE", lostpointercapture:"EVENT_SPAN_TYPE_LOSTPOINTERCAPTURE",submit:"EVENT_SPAN_TYPE_SUBMIT",change:"EVENT_SPAN_TYPE_CHANGE",input:"EVENT_SPAN_TYPE_INPUT",focus:"EVENT_SPAN_TYPE_FOCUS",blur:"EVENT_SPAN_TYPE_BLUR",reset:"EVENT_SPAN_TYPE_RESET",select:"EVENT_SPAN_TYPE_SELECT",invalid:"EVENT_SPAN_TYPE_INVALID",load:"EVENT_SPAN_TYPE_LOAD",unload:"EVENT_SPAN_TYPE_UNLOAD",beforeunload:"EVENT_SPAN_TYPE_BEFOREUNLOAD",domcontentloaded:"EVENT_SPAN_TYPE_DOMCONTENTLOADED",resize:"EVENT_SPAN_TYPE_RESIZE",scroll:"EVENT_SPAN_TYPE_SCROLL", pageshow:"EVENT_SPAN_TYPE_PAGESHOW",pagehide:"EVENT_SPAN_TYPE_PAGEHIDE",play:"EVENT_SPAN_TYPE_PLAY",pause:"EVENT_SPAN_TYPE_PAUSE",playing:"EVENT_SPAN_TYPE_PLAYING",waiting:"EVENT_SPAN_TYPE_WAITING",seeking:"EVENT_SPAN_TYPE_SEEKING",seeked:"EVENT_SPAN_TYPE_SEEKED",ended:"EVENT_SPAN_TYPE_ENDED",volumechange:"EVENT_SPAN_TYPE_VOLUMECHANGE",timeupdate:"EVENT_SPAN_TYPE_TIMEUPDATE",ratechange:"EVENT_SPAN_TYPE_RATECHANGE",dragstart:"EVENT_SPAN_TYPE_DRAGSTART",drag:"EVENT_SPAN_TYPE_DRAG",dragend:"EVENT_SPAN_TYPE_DRAGEND", dragenter:"EVENT_SPAN_TYPE_DRAGENTER",dragleave:"EVENT_SPAN_TYPE_DRAGLEAVE",dragover:"EVENT_SPAN_TYPE_DRAGOVER",drop:"EVENT_SPAN_TYPE_DROP",animationstart:"EVENT_SPAN_TYPE_ANIMATIONSTART",animationend:"EVENT_SPAN_TYPE_ANIMATIONEND",animationiteration:"EVENT_SPAN_TYPE_ANIMATIONITERATION",transitionrun:"EVENT_SPAN_TYPE_TRANSITIONRUN",transitionstart:"EVENT_SPAN_TYPE_TRANSITIONSTART",transitionend:"EVENT_SPAN_TYPE_TRANSITIONEND",transitioncancel:"EVENT_SPAN_TYPE_TRANSITIONCANCEL"}; function w_a(a){var b;return(b=v_a[a])!=null?b:"EVENT_SPAN_TYPE_UNKNOWN"} ;function x_a(a){return function(b){var c=w_a(b.type);return c==="EVENT_SPAN_TYPE_UNKNOWN"?a(b):Eu("event",{type:c,nodepath:b.target instanceof Element?GHa(b.target):void 0},function(){return a(b)})}} ;function FC(a){a&&Du("event")&&(a=x_a(a));return NKa(function(b){var c,d=(c=a)==null?void 0:c(b);return typeof d==="boolean"?d:!0})} ;function GC(a){return function(){var b="",c;for(c in a){for(var d=a[c];typeof d==="function";)d=d();d!==void 0&&d!==null&&(b+="; "+c+": "+d)}return b.length>0?Bp(b.slice(2)):Bp()}} ;function y_a(a){return a&&a.endsWith("px")?Number(a.slice(0,-2)):0} var HC={},z_a=(HC.TOOLTIP_VIEW_MODEL_STYLE_UNKNOWN=24,HC.TOOLTIP_VIEW_MODEL_STYLE_DEFAULT=24,HC.TOOLTIP_VIEW_MODEL_STYLE_PLAYER=28,HC);var A_a={left:"0px",right:"auto",top:"0px",bottom:"auto"},B_a={left:"0px",right:"auto",top:"-100px",bottom:"auto"},C_a=function(){var a=l(ip(void 0,void 0,"H7z5tb"));this.state=a.next().value;this.setState=a.next().value;a=l(ip(void 0,void 0,"Zw4wJc"));this.schedulerJobID=a.next().value;this.setSchedulerJobID=a.next().value},F_a=function(a,b){var c=D_a,d=Hl(0,function(){var e=x("web_tooltip_size_calculation_fix")?B_a:E_a(c,a,b); c.currentConfig=b;c.setState({text:b.text,location:e,anchor:a,offset:b.offset,style:b.style})},4,b.delay); c.setSchedulerJobID(d)},G_a=function(){var a=D_a,b=a.schedulerJobID(); b&&(bj.cancelJob(b),a.setSchedulerJobID(void 0));a.setState(void 0);a.currentConfig=void 0}; C_a.prototype.notify=function(a,b){var c;((c=this.state())==null?void 0:c.anchor)===a&&(c=x("web_tooltip_size_calculation_fix")?B_a:E_a(this,a,b),this.currentConfig=b,this.setState({text:b.text,location:c,anchor:a,offset:b.offset,style:b.style}))}; var E_a=function(a,b,c){var d=b.getBoundingClientRect();b=window.innerWidth;var e=window.innerHeight,f=c.location,h=c.offset,m=c.text;if(q!=null)m=q;else if(a=a.tooltipElement,c=c.style,a){var p=getComputedStyle(a);a=p.font;var q=y_a(p.paddingLeft);p=y_a(p.paddingRight);var t=document.createElement("canvas").getContext("2d");t.font=a;m={width:t.measureText(m).width+q+p,height:z_a[c!=null?c:"TOOLTIP_VIEW_MODEL_STYLE_UNKNOWN"]}}else m=void 0;q=m;if(!q)return A_a;c=q;m=c.width;c=c.height;q=h+c;t=h+m; a=d.top>=q;q=e-d.bottom>=q;p=d.left>=t;t=b-d.right>=t;var u=f;switch(f){case"top":!a&&q&&(u="bottom");break;case"bottom":!q&&a&&(u="top");break;case"left":!p&&t&&(u="right");break;case"right":!t&&p&&(u="left");}switch(u){case"top":f=d.left+d.width/2-m/2;d=d.top-c-h;break;case"bottom":f=d.left+d.width/2-m/2;d=d.bottom+h;break;case"left":f=d.left-m-h;d=d.top+d.height/2-c/2;break;case"right":f=d.right+h;d=d.top+d.height/2-c/2;break;default:f=d.left+d.width/2-m/2,d=d.bottom+h;}h=Object.assign({}, A_a);f+m>b?(h.right="0px",h.left="auto"):(h.left=Math.round(Math.max(0,f)+window.scrollX)+"px",h.right="auto");d+c>e?(h.bottom="0px",h.top="auto"):(h.top=Math.round(Math.max(0,d)+window.scrollY)+"px",h.bottom="auto");return h};var D_a=new C_a;function H_a(a,b){var c=l(Gu(function(){var e,f;return(f=a())!=null?f:b==null?void 0:(e=b())==null?void 0:e.text})),d=c.next().value; return[function(e){var f=Vo(function(){var p;return Object.assign({},{location:"bottom",offset:16,delay:1},b==null?void 0:b(),{text:(p=d())!=null?p:""})},void 0,"IJU38d"); lw(function(){var p=f();So(function(){Hl(0,function(){D_a.notify(e,p)},4)})},"WlsgZc"); var h=function(){F_a(e,f())},m=function(){G_a()}; e.addEventListener("mouseenter",h);e.addEventListener("focus",h);e.addEventListener("mouseleave",m);e.addEventListener("blur",m);e.addEventListener("tap",m);zp(function(){e.removeEventListener("mouseenter",h);e.removeEventListener("mouseleave",m);e.removeEventListener("focus",h);e.removeEventListener("blur",m);e.removeEventListener("tap",m);G_a()})}, c.next().value]} ;function I_a(a){switch(a){case 18:case 19:case 20:return!0;default:return!1;}} function J_a(a){switch(a){case 3:return"ytBadgeShapeAd";case 1:return"ytBadgeShapeMedia";case 2:return"ytBadgeShapeMediaOverlay";case 4:return"ytBadgeShapePromoted";case 5:return"ytBadgeShapePromotedInverted";case 6:return"ytBadgeShapeTimely";case 7:return"ytBadgeShapePremium";case 8:return"ytBadgeShapeSale";case 9:return"ytBadgeShapeMembership";case 10:return"ytBadgeShapeCommerce";case 12:return"ytBadgeShapeLive";case 13:return"ytBadgeShapeStatusNew";case 14:return"ytBadgeShapeStatusComplete";case 15:return"ytBadgeShapeStatusWarning"; case 16:return"ytBadgeShapeStatusError";case 17:return"ytBadgeShapeStatusDefault";case 18:return x("enable_lockup_redesign")?"ytBadgeShapeThumbnailDefaultRedesign":"ytBadgeShapeThumbnailDefault";case 19:return"ytBadgeShapeThumbnailLive";case 20:return"ytBadgeShapeThumbnailSpecial";default:return"ytBadgeShapeDefault";}} var IC=O(function(a){var b=a.data;var c=function(){var f=b().icon;if(f)a:{var h=Fn().resolve($y),m,p;f=(p=(m=tYa(f))==null?void 0:m.iconName)!=null?p:f;m=l([12,24]);for(p=m.next();!p.done;p=m.next()){var q=p.value;p={iconName:f,iconStyle:"youtube_fill",iconSize:q};q={iconName:f,iconStyle:"youtube_outline",iconSize:q};if(h.resolveIcon(p)){f=p;break a}if(h.resolveIcon(q)){f=q;break a}}f=void 0}else f=void 0;return f},d=l(H_a(function(){return b().tooltipHoverText})).next().value; a={};var e={};return D("badge-shape",{el:dB(function(f){d(f)}), class:U("ytBadgeShapeHost",function(){return J_a(b().type)},(a.ytBadgeShapeOverlay=function(){return b().isOverlay},a.ytBadgeShapeAdsIncludeDot=function(){return b().adsIncludeDot},a.ytBadgeShapeThumbnailBadge=function(){return I_a(b().type)},a.ytBadgeShapeThumbnailBadgeRedesign=function(){return x("enable_lockup_redesign")&&I_a(b().type)},a.ytBadgeShapeStatusBadge=function(){a:switch(b().type){case 13:case 14:case 15:case 16:case 17:var f=!0; break a;default:f=!1;}return f},a.ytBadgeShapeNoText=function(){return!b().text},a.ytBadgeShapeIsEmpty=function(){return!b().text&&!b().icon&&!b().animation},a.ytBadgeShapeModern=function(){return b().modern||x("web_modern_badge_shape")},a.ytBadgeShapeTypography=function(){a:{var f=b(); if(f.shouldInheritTypography)switch(f.type){case 0:case 1:case 10:f=!0;break a;default:f=!1;}else f=!1}return!f},a.ytBadgeShapeMediumFontAdBadge=function(){return b().mediumFontAdBadge},a.ytBadgeShapeLargeFontAdBadge=function(){return b().largeFontAdBadge},a)), style:GC({"background-color":function(){var f;return(f=b().customColors)==null?void 0:f.backgroundColor}}), role:function(){return b().accessibilityText?"img":void 0}, "aria-label":function(){return b().accessibilityText}},D(P,{cond:function(){return b().animation}, then:function(f){return D(YA,{className:"ytBadgeShapeIcon",data:f,animationName:function(){return f().animationConfig.name||""}})}}),D(P,{cond:function(){var f; return c()&&!((f=b())==null?0:f.animation)}, then:function(){return D("div",{class:"ytBadgeShapeIcon"},D(eB,{data:function(){return c()}}))}}),D("div",{class:U("ytBadgeShapeText",(e.ytBadgeShapeTextClipTextOverflow=function(){return b().clipTextOverflow},e.ytBadgeShapeTextHasMultipleBadgesInRow=function(){return(b().numBadgesInRow||0)>1},e))},function(){var f; return(f=b())==null?void 0:f.text}))},"G"); IC.idomCompat=!0;bB(IC,"badge-shape",{props:{data:$A}});var K_a=new Bn("RENDERER_LOGGER_TOKEN");var L_a=bta({defaultValue:void 0},"yDp5Oc");function M_a(a){a=a.cb;return D(mq,null,a())} function N_a(a,b){a=Object.assign({},a,{parent:JC()});return D(hKa,{contexts:[iKa(L_a,a)]},D(M_a,{cb:b}))} function JC(){return zo?jKa(L_a):void 0} ;var O_a=new Bn("RENDERER_STAMPER_OPTIONS_TOKEN");var P_a=new Bn("RENDERER_STAMPER_SUCCESS_SLI_TOKEN");var KC=function(){var a=this;this.liveSignals=new Map;this.invalidatorGetters=new Map;this.persistentCache=new LLa;this.testOnly={setPersistentMaxCount:function(b){a.persistentCache.maxCount_=b}, getMaxCount:function(){return a.persistentCache.maxCount_}}}; KC.prototype.get=function(a,b){var c=this.liveSignals.get(a);if(c)return c[0]();if(b.shouldPersist&&a!=null){var d;return(d=this.persistentCache.get(a))==null?void 0:d[0]}}; var Q_a=function(a,b,c,d){var e=LC;if(a==null||!c.shouldPersist)return b;e.persistentCache.get(a)===void 0&&e.persistentCache.set(a,[b,d!=null?d:[],!1]);c=e.persistentCache.get(a);if(!c)return b;var f=l(c);c=f.next().value;var h=f.next().value;f=f.next().value;if((h==null?0:h.length)&&(d==null?0:d.length)&&d.some(function(m,p){return m!==h[p]}))return e.persistentCache.remove(a),b; (d==null?0:d.length)&&e.persistentCache.set(a,[c,d,f]);return f?c:b}; KC.prototype.update=function(a,b,c){var d=this.liveSignals.get(a);if(d){var e=l(d);d=e.next().value;e=e.next().value;b=b(d());e(b);if(c.shouldPersist&&a!=null){c=this.invalidatorGetters.get(a);var f;this.persistentCache.set(a,[b,(f=c==null?void 0:c())!=null?f:[],!0])}return!0}return c.shouldPersist&&a!=null&&(f=this.persistentCache.get(a))?(c=l(f),f=c.next().value,c=c.next().value,b=b(f),this.persistentCache.set(a,[b,c,!0]),!0):!1}; KC.prototype.register=function(a,b,c){var d=this;if(a==null)return function(){}; this.liveSignals.set(a,b);c&&this.invalidatorGetters.set(a,c);return function(){d.liveSignals.get(a)===b&&(d.liveSignals.delete(a),d.invalidatorGetters.delete(a))}};var LC=new KC;function MC(a,b){b=b===void 0?{shouldPersist:!0}:b;return{useUpdatableData:function(c,d){var e=Vo(function(){return a(c())},void 0,"Gmrblb"),f=l(Gu(function(){var p=c(),q=e(),t,u=(t=d==null?void 0:d.map(function(v){return v()}))!=null?t:[]; return Q_a(q,p,b,u)})),h=f.next().value,m=f.next().value; lw(function(){var p=e();p!=null&&(p=LC.register(p,[h,m],function(){var q;return(q=d==null?void 0:d.map(function(t){return t()}))!=null?q:[]}),zp(p))},"Umac6c"); return[h,function(p){m(p);var q=e();q!=null&&LC.update(q,function(){return p},b)}]}, getData:function(c){c=a(c);return LC.get(c,b)}, updateData:function(c,d){c=a(c);return LC.update(c,d,b)}}} ;var R_a="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel gridShelfViewModel".split(" "),S_a=["notificationTextRenderer","notificationMultiActionRenderer"], T_a="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),U_a=MC(function(a){return Bp(a==null?void 0:a.targetId)}).useUpdatableData;var NC=null;function V_a(a){var b=l(ip(!0,void 0,"bKtO6d")),c=b.next().value;b=b.next().value;return W_a(b,function(){var d=Dq(a.children());return D(P,{cond:c,then:function(){return d}, else:a.fallback})})} function W_a(a,b){var c=NC,d=0;NC={addDep:function(){d++;hp(function(){a(!1)})}, removeDep:function(){--d===0&&hp(function(){a(!0)})}}; try{return b()}finally{NC=c}} ;var X_a=0;function OC(a){var b=Y_a(a),c=b.data,d=b.mapping,e=b.wrapper;b=b.pendingFallback;Z_a(c,d);var f=function(){return $_a(Bp(c))},h=function(){var m=f(),p=[]; m=l(m);for(var q=m.next();!q.done;q=m.next())(q=a0a(q.value))&&p.push(q);return p}; return a.data?D(V_a,{fallback:b},function(){return D(mw,{each:h},function(m,p){var q=e?function(u){return e(function(){return d[m](u,p)},t,p)}:function(u){return d[m](u,p)}; q.debugName||(q.debugName=String(m));if(!d[String(m)])return document.createComment("");q.componentType!==Wo&&b0a(String(m));var t=c0a(f,m,p);return D(q,{data:t})})}):D(mq,null)} OC.debugName="EjJbCe";function Y_a(a){var b=a.targetId||d0a(a.children);if(!a.data||!b)return Object.assign({},a,{mapping:a.children});var c="stamper-"+X_a++,d=function(){var m;return(m=typeof a.targetId==="function"?a.targetId(c):a.targetId)!=null?m:c}; b=l(U_a(function(){var m=[].concat(ia($_a(a.data())));m.targetId=d;return m})).next().value; var e=Object.assign({},(Fn().resolve(Cn(O_a))||{}).replaceableMapping,a.children);if(a.replacementWrapper){var f=e.notificationTextRenderer,h=e.notificationMultiActionRenderer;f&&(e.notificationTextRenderer=function(m,p){return a.replacementWrapper(f({data:m.data},p))}); h&&(e.notificationMultiActionRenderer=function(m,p){return a.replacementWrapper(h({data:m.data},p))})}return Object.assign({},a,{data:b, mapping:e,wrapper:function(m,p,q){return N_a({targetId:d,stamperIndex:q},a.wrapper?function(){return a.wrapper(m,p,q)}:m)}})} function c0a(a,b,c){var d;return Vo(function(){var e=a()[c()];if(e)d=e[b];else return fo(new Dl("Stamper failed to find "+String(b)+" at index "+c()+" of data array of length "+(a().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),d;return e[b]},void 0,"sErtjd")} function a0a(a){var b=void 0,c;for(c in a)if(!(!a).hasOwnProperty(c)){b=c;break}return b} function d0a(a){a=l(Object.keys(a));for(var b=a.next();!b.done;b=a.next())if(b=b.value,R_a.includes(b)||T_a.includes(b)||S_a.includes(b))return!0;return!1} function $_a(a){return a?Array.isArray(a)&&a instanceof Array?a:[a]:[]} function b0a(a){if(x("web_enable_renderer_logger")){var b;(b=Fn().resolve(Cn(K_a)))==null||b.logRenderer(a)}} function Z_a(a,b){var c=Fn().resolve(Cn(P_a));c&&lw(function(){var d=$_a(Bp(a)),e=0,f=!1;d=l(d);for(var h=d.next();!h.done;h=d.next()){h=a0a(h.value);if(!h||!b[String(h)]){f=!0;break}e++}d=c.sli;h=c.sliDimensions;e>0&&!f?d.incrementSuccess(h()):d.incrementFailure(h())},"DhOUxe")} ;var e0a=O(function(a){var b=a.data;var c=a.className;var d=a.numBadgesInRow;var e=a.noDotAdBadge;var f=a.mediumFontAdBadge;var h=a.largeFontAdBadge;a=FC(function(m){var p=b();p.onTapCommand&&SXa(p.onTapCommand,p,{event:m});return!1}); return D("yt-metadata-badge-renderer",{class:U("ytMetadataBadgeRendererHost",c),"on:click":a},D(IC,{data:function(){return s_a(b(),d==null?void 0:d(),b().style==="BADGE_STYLE_TYPE_VERIFIED"||b().style==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||b().style==="BADGE_STYLE_TYPE_WHITE_TEXT",e==null?void 0:e(),f==null?void 0:f(),h==null?void 0:h())}}))},"J"); e0a.idomCompat=!0;bB(O(function(a){var b=a.data;var c=a.numBadgesInRow;var d=a.noDotAdBadge;var e=a.wrapBadges;var f=a.mediumFontAdBadge;var h=a.largeFontAdBadge;a={};return D("yt-badge-supported-renderer",{class:U("ytBadgeSupportedRendererHost",(a.ytBadgeSupportedRendererHostWrapBadges=e,a))},D(OC,{data:b},{metadataBadgeRenderer:function(m){var p=m.data;return D("div",{class:U("badge-shape","ytBadgeSupportedRendererBadgeShape",function(){var q=p();return q.style==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||q.style==="BADGE_STYLE_TYPE_VERIFIED"? "ytBadgeSupportedRendererBadgeShapeStyleTypeVerifiedArtist":q.style==="BADGE_STYLE_TYPE_SIMPLE_STRIKETHROUGH"?"ytBadgeSupportedRendererBadgeShapeStyleTypeStrikethrough":""})},D(e0a,{data:p, numBadgesInRow:c,noDotAdBadge:d,mediumFontAdBadge:f,largeFontAdBadge:h}))}}))},"K"),"yt-badge-supported-renderer",{props:{data:$A, numBadgesInRow:$A,noDotAdBadge:$A,wrapBadges:$A,mediumFontAdBadge:$A,largeFontAdBadge:$A}});var PC=function(){var a=E.apply(this,arguments)||this;a.systemIcons=x("kevlar_system_icons");return a}; k(PC,E);g=PC.prototype;g.addTooltips=function(){for(var a=wt(this.hostElement).querySelectorAll(".badge"),b=0,c;c=a[b++];){var d=this.repeatElement.itemForElement(c);c=wt(c);c.lastChild&&c.lastChild.is==="tp-yt-paper-tooltip"&&c.removeChild(c.lastChild);if(d=d.metadataBadgeRenderer&&d.metadataBadgeRenderer.tooltip){var e=EC("tp-yt-paper-tooltip");vt(e).textContent=d;e.setAttribute("position","top");e.setAttribute("aria-hidden","true");c.appendChild(e)}}}; g.badgesChanged=function(){var a=this;hB().parkOrScheduleJob(function(){a.addTooltips()},0,"eocs",16); this.updateComputedBadges(this.badges,this.topStandaloneBadge)}; g.standaloneRoundedBadgeChanged=function(){var a=this.useRoundedBadge?this.useRoundedBadge:void 0;a&&(this.useRoundedBadge=a)}; g.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)}; g.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)}; g.computeBadgeShape=function(a){return a?s_a(a,this.numBadgesInRow,(a==null?void 0:a.style)==="BADGE_STYLE_TYPE_VERIFIED"||(a==null?void 0:a.style)==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||(a==null?void 0:a.style)==="BADGE_STYLE_TYPE_WHITE_TEXT",this.noDotAdBadge,this.mediumFontAdBadge,this.largeFontAdBadge):{}}; g.updateComputedBadges=function(a,b,c){var d=this,e;(b=b?[b]:c?[c]:void 0)?e=b:e=a==null?void 0:a.filter(function(f){var h;if((h=f.metadataBadgeRenderer)==null?0:h.groups){h=!1;f=l(f.metadataBadgeRenderer.groups);for(var m=f.next();!m.done;m=f.next()){m=m.value;var p=void 0;h=h||((p=d.hiddenBadgeGroups)==null?void 0:p.includes(m))}return!h}return!0}); x("yt_badge_supported_renderer_ks")?this.computedBadges=e:this.computedBadgesCoW=e}; g.computeBadgeShapeStyle=function(a){return a==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||a==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":a==="BADGE_STYLE_TYPE_SIMPLE_STRIKETHROUGH"?"badge-shape-style-type-strikethrough":""}; PC.prototype.hiddenBadgeGroupsChanged=PC.prototype.hiddenBadgeGroupsChanged;PC.prototype.standaloneBadgeChanged=PC.prototype.standaloneBadgeChanged;PC.prototype.standaloneRoundedBadgeChanged=PC.prototype.standaloneRoundedBadgeChanged;PC.prototype.badgesChanged=PC.prototype.badgesChanged;n([M({reflectToAttribute:!0}),r("design:type",Boolean)],PC.prototype,"hidden",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],PC.prototype,"componentBehavior",void 0); n([M(),r("design:type",Array)],PC.prototype,"badges",void 0);n([M(),r("design:type",Object)],PC.prototype,"topStandaloneBadge",void 0);n([M(),r("design:type",Object)],PC.prototype,"bottomStandaloneBadge",void 0);n([M(),r("design:type",Object)],PC.prototype,"computedBadges",void 0);n([M(),r("design:type",Object)],PC.prototype,"computedBadgesCoW",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],PC.prototype,"mediumFontAdBadge",void 0); n([M({reflectToAttribute:!0}),r("design:type",Boolean)],PC.prototype,"useRoundedBadge",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],PC.prototype,"largeFontAdBadge",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],PC.prototype,"overlayAd",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],PC.prototype,"overlayPremium",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],PC.prototype,"noDotAdBadge",void 0); n([M({reflectToAttribute:!0}),r("design:type",Boolean)],PC.prototype,"collectionTruncate",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],PC.prototype,"isThumbnailBadge",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],PC.prototype,"wrapBadges",void 0);n([M({reflectToAttribute:!0}),r("design:type",Number)],PC.prototype,"numBadgesInRow",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],PC.prototype,"systemIcons",void 0); n([M({value:[]}),r("design:type",Array)],PC.prototype,"hiddenBadgeGroups",void 0);n([Tt("#repeat"),r("design:type",Xr)],PC.prototype,"repeatElement",void 0);n([cu("badges"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],PC.prototype,"badgesChanged",null);n([cu("useRoundedBadge"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],PC.prototype,"standaloneRoundedBadgeChanged",null); n([cu("topStandaloneBadge","bottomStandaloneBadge"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],PC.prototype,"standaloneBadgeChanged",null);n([cu("hiddenBadgeGroups"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],PC.prototype,"hiddenBadgeGroupsChanged",null);n([gu({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],PC); Uu()(PC,"ytd-badge-supported-renderer",function(){if(n_a===void 0){var a=document.createElement("template");Q(a,""); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);n_a=a}a=n_a;return a},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups numBadgesInRow isThumbnailBadge largeFontAdBadge mediumFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "), mode:2});var QC=function(){var a=E.apply(this,arguments)||this;a.useIcons=!1;a.systemIcons=x("kevlar_system_icons");return a}; k(QC,E);g=QC.prototype;g.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")}; g.onFocus=function(){var a;(a=wt(this.hostElement).querySelector("tp-yt-paper-item"))==null||a.focus()}; g.onTap=function(){Yu(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var a=this.data.serviceEndpoint,b=this.data.command;if(a){var c,d=(c=this.data)==null?void 0:c.trackingParams;c=!!z(a,DPa);d&&c&&XA.dispatch(aA({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:d}}));this.ytComponentBehavior.resolveCommand(a)||Fn().resolve(JB).resolveCommand(a,{form:{element:this.hostElement}})}b&&(this.ytComponentBehavior.resolveCommand(b)||Zu(this.hostElement,[b], this.hostElement))}; g.computeIcon=function(a){return a&&a.iconType?cz(a.iconType):""}; g.computeIconHidden=function(){return this.useIcons?!1:!this.icon}; g.computeHasSeparator=function(){var a;return!((a=this.data)==null||!a.hasSeparator)}; g.forceUpdateStylesOnLegacyBrowsers=function(){x("kevlar_legacy_browsers")&&Ft(this.hostElement)}; g.computeIsSelected=function(){var a;return!((a=this.data)==null||!a.isSelected)}; QC.prototype.forceUpdateStylesOnLegacyBrowsers=QC.prototype.forceUpdateStylesOnLegacyBrowsers;QC.prototype.onTap=QC.prototype.onTap;QC.prototype.onFocus=QC.prototype.onFocus;n([F(Yz.YtRendererBehavior),r("design:type",Object)],QC.prototype,"ytRendererBehavior",void 0);n([F(pB),r("design:type",Object)],QC.prototype,"ytdOpenPopupBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],QC.prototype,"ytComponentBehavior",void 0); n([F(tXa.YtConditionalRendererBehavior),r("design:type",Object)],QC.prototype,"ytConditionalRendererBehavior",void 0);n([M(),r("design:type",Object)],QC.prototype,"data",void 0);n([M({computed:"computeIcon(data.icon)",value:""}),r("design:type",String)],QC.prototype,"icon",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],QC.prototype,"useIcons",void 0); n([M({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),r("design:type",Boolean)],QC.prototype,"hasSeparator",void 0);n([M({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),r("design:type",Boolean)],QC.prototype,"isSelected",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],QC.prototype,"systemIcons",void 0);n([Kt("focus"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],QC.prototype,"onFocus",null); n([Kt("tap"),r("design:type",Function),r("design:paramtypes",[Event]),r("design:returntype")],QC.prototype,"onTap",null);n([Lt("useIcons","hasSeparator"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],QC.prototype,"forceUpdateStylesOnLegacyBrowsers",null); Tu(QC,"ytd-menu-service-item-renderer",function(){if(m_a===void 0){var a=document.createElement("template");Q(a,"\n \n \n \n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);m_a=a}a=m_a;return a},{mode:2});var f0a;var g0a;var RC=function(){return E.apply(this,arguments)||this}; k(RC,E);RC.prototype.setTip=function(a){var b=this;this.data&&(this.tip=MQa(KQa.getInstance(),a,this.data),ms(this,function(){Gt(b.hostElement,"yt-refit")}))}; RC.prototype.clearTip=function(){this.tip=void 0}; RC.prototype.computeHidden=function(a){return!a}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],RC.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],RC.prototype,"data",void 0);n([M({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),r("design:type",Boolean)],RC.prototype,"hidden",void 0);n([M(),r("design:type",Object)],RC.prototype,"tip",void 0);n([gu({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],RC); Tu(RC,"ytd-menu-popup-tip-renderer",function(){if(g0a!==void 0)return g0a;var a=document.createElement("template");Q(a,"\n");a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return g0a= a},{mode:1});var h0a;function i0a(a,b){return typeof a!=="object"||a===null?!1:Object.keys(b).every(function(c){return c in a})} function j0a(a){return Object.fromEntries(Object.keys(a).map(function(b){return[b,b]}))} ;function k0a(a,b,c){return WNa(c,function(d,e){return function(f){var h=sa.apply(1,arguments);return i0a(f,a)?e.apply(null,[f[b]].concat(ia(h))):e.apply(null,[f].concat(ia(h)))}})} function l0a(a){return function(b,c){return k0a(a,b,c)}} ;var m0a=j0a({entities:{}});var SC=l0a(m0a)(m0a.entities,{selectSfvAudioItemPlaybackState:function(a,b){var c,d;a=(d=yA(a,"sfvAudioItemCurrentlyPlayingEntity",b))!=null?d:void 0;return(c=a==null?void 0:a.sfvAudioItemPlaybackState)!=null?c:void 0}, playlistLoopStateEntitySelector:n0a,toggleMenuServiceItemEntitySelector:o0a});function n0a(a,b){var c;return(c=yA(a,"playlistLoopStateEntity",b))!=null?c:void 0} function o0a(a,b){var c;return(c=yA(a,"toggleMenuServiceItemEntity",b))!=null?c:void 0} ;var TC=function(){var a=E.apply(this,arguments)||this;a.useIcons=!1;a.role="menuitem";a.systemIcons=x("kevlar_system_icons");return a}; k(TC,E);g=TC.prototype;g.onFocus=function(){var a;(a=wt(this.hostElement).querySelector("tp-yt-paper-item"))==null||a.focus()}; g.onTap=function(){var a=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(a&&z(a,iy))this.componentBehavior.resolveCommand(a),this.updateToggledStateInEntity();else if(a){this.componentBehavior.resolveCommand(a)||Fn().resolve(JB).resolveCommand(a,{form:{element:this.hostElement}});var b;((b=z(a,my))==null?void 0:b.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}}; g.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()}; g.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)}; g.updateToggledStateInEntity=function(){var a=this.data.toggleMenuServiceItemEntityKey,b=!this.data.isToggled;a&&this.ytdReduxBehavior.dispatch(dA("toggleMenuServiceItemEntity",a,{key:a,isToggled:b}))}; g.computeIcon=function(a,b,c){return(a=a?c:b)&&a.iconType?cz(a.iconType):""}; g.computeIconHidden=function(){return this.useIcons?!1:!this.icon}; ba.Object.defineProperties(TC.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return((a=this.data)==null?0:a.isToggled)?(b=this.data)==null?void 0:b.toggledText:(c=this.data)==null?void 0:c.defaultText}}}); TC.prototype.toggledStateEntityChanged=TC.prototype.toggledStateEntityChanged;TC.prototype.onYtServiceRequestCompleted=TC.prototype.onYtServiceRequestCompleted;TC.prototype.onTap=TC.prototype.onTap;TC.prototype.onFocus=TC.prototype.onFocus;n([F(Yz.YtRendererBehavior),r("design:type",Object)],TC.prototype,"ytRendererBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],TC.prototype,"componentBehavior",void 0);n([F(kC),r("design:type",Object)],TC.prototype,"ytdReduxBehavior",void 0); n([M(),r("design:type",Object)],TC.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],TC.prototype,"useIcons",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],TC.prototype,"role",void 0);n([M({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),r("design:type",String)],TC.prototype,"icon",void 0); n([M({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:SC.toggleMenuServiceItemEntitySelector}),r("design:type",Object)],TC.prototype,"toggleMenuServiceItemEntity",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],TC.prototype,"systemIcons",void 0);n([Kt("focus"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],TC.prototype,"onFocus",null); n([H("data.isToggled"),r("design:type",Object),r("design:paramtypes",[])],TC.prototype,"toggleButtonText",null);n([Kt("tap"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],TC.prototype,"onTap",null);n([Kt("yt-service-request-completed"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],TC.prototype,"onYtServiceRequestCompleted",null); n([Lt("toggleMenuServiceItemEntity.isToggled","data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],TC.prototype,"toggledStateEntityChanged",null);n([gu({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],TC); Tu(TC,"ytd-toggle-menu-service-item-renderer",function(){if(h0a!==void 0)return h0a;var a=document.createElement("template");Q(a,"\n \n \n \n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return h0a=a},{mode:1});var p0a;var UC=function(){return E.apply(this,arguments)||this}; k(UC,E);UC.prototype.onFocus=function(){var a;(a=wt(this.hostElement).querySelector("tp-yt-paper-item"))==null||a.focus()}; ba.Object.defineProperties(UC.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return Fb(this.data.iconUrl)}}}); UC.prototype.onFocus=UC.prototype.onFocus;n([F(Yz.YtRendererBehavior),r("design:type",Object)],UC.prototype,"rendererBehavior",void 0);n([F(zB.YtEndpointBehavior),r("design:type",Object)],UC.prototype,"ytEndpointBehavior",void 0);n([M(),r("design:type",Object)],UC.prototype,"data",void 0);n([Kt("focus"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],UC.prototype,"onFocus",null); n([H("data.iconUrl"),r("design:type",Object),r("design:paramtypes",[])],UC.prototype,"imageSource",null);n([gu({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],UC); Tu(UC,"ytd-menu-custom-icon-item-renderer",function(){if(p0a!==void 0)return p0a;var a=document.createElement("template");Q(a,"\n \n \"icon\"\n
\n [[getSimpleString(data.actionText)]]\n \n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return p0a=a},{mode:2});var VC=function(a){this.hostElement=a;this.eventSink=null;this.eventList=[]}; VC.prototype.shouldForward=function(){var a,b;return(b=(a=this.eventSink)==null?void 0:a.isConnected)!=null?b:document.body.contains(this.eventSink)}; VC.prototype.start=function(a,b){this.eventSink&&this.stop();for(var c=0;c1)return b[1];co(Error("Failed to parse binding: "+a));return null} function u0a(a){return a===void 0?!!Vk("REUSE_COMPONENTS",!1):a||!1} function v0a(a,b,c){c&&(b.is?(YC.has(b)&&(a=YC.get(b),c=a.listener,delete b[a.property],c.type==="element"&&b.removeEventListener(c.eventName,c.handler),YC.delete(b)),r_a(b)):b.__proto__==HTMLElement.prototype&&(b=new Dl("Rendererstamper removed a non custom element","Stamper: "+a+" element: "+(b&&b.nodeName)),fo(b)))} function w0a(a,b,c,d){var e=b.node?b.node:b;wt(c).parentNode===e&&(b.removeChild(c),v0a(a,c,d));if(a=XC.get(c))XC.delete(c),bj.cancelJob(a);c.hidden=!1} function x0a(a,b,c,d){var e,f=(e=b.polymerController)!=null?e:b;e=b.loggingStatus;try{e&&(e.isRendererStamper=!0);if(typeof c!=="string"){for(var h in c.attributes)c.attributes[h]===!0?b.setAttribute(h,""):c.attributes[h]===!1?b.removeAttribute(h):b.setAttribute(h,c.attributes[h]);for(var m in c.params)f[m]=c.params[m],b!==f&&Xt(b.localName,m,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(var p in c.properties){var q=c.properties[p];if(q){var t=t0a(q);f[p]=a.get(t);b!==f&&Xt(b.localName,p,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"); if(p==="on-tap"||p==="on-click"){var u=a.get(t);b.addEventListener("click",u);YC.set(b,{property:p,listener:{type:"element",eventName:"click",handler:u}})}}else eo(new Dl("Undefined property binding",p))}}c.classListBinding&&c.classListBinding.split(" ").forEach(function(v){v=v.trim();if(v.startsWith("[[")){if(v=t0a(v))v=a.get(v),(Array.isArray(v)?v:(v!=null?v:"").split(" ")).forEach(function(w){w&&Ct(b,w,!0)})}else v&&Ct(b,v,!0)}); f.data=d}finally{e&&(e.isRendererStamper=!1)}if(c=XC.get(b))b.hidden=!1,XC.delete(b),bj.cancelJob(c)} function y0a(a,b,c,d){if(b&&b.children&&(c=b.children[c]))if(Vk("DEFERRED_DETACH"))for(;c&&!XC.has(c);){var e=a,f=b,h=c,m=d;h.hidden=!0;e=Il(0,w0a.bind(null,e,f,h,m),0);XC.set(h,e);c=c.nextElementSibling}else for(;(h=b.lastElementChild)&&(b.removeChild(h),v0a(a,h,d),h!=c););} ;var ZC=function(a,b){var c=c===void 0?Pl():c;this.JSC$9101_defaultPriority=a;this.signal=b;this.scheduler=c;this.nextJobDescriptor=0;this.JSC$9101_parkedJobs=[];this.scheduledJobs=new Map},A0a=function(a,b){if(b){var c=hB(); a.signal&&!iB(c,a.signal)?(c.addListener(a.signal,function(){a.processSignal()}),a.JSC$9101_parkedJobs.push({job:b, priority:void 0})):z0a(a,b)}},B0a=function(a,b){if(b!==a.JSC$9101_defaultPriority){a.JSC$9101_defaultPriority=b; for(var c=l(a.scheduledJobs.values()),d=c.next();!d.done;d=c.next())d=d.value,a.scheduler.cancelJob(d.jobId),d.jobId=Hl(0,d.jobWrapper,b)}}; ZC.prototype.cancel=function(){for(var a=l(this.scheduledJobs),b=a.next();!b.done;b=a.next()){var c=l(b.value);b=c.next().value;c=c.next().value;this.scheduler.cancelJob(c.jobId);this.scheduledJobs.delete(b)}this.JSC$9101_parkedJobs=[]}; ZC.prototype.processSignal=function(){for(var a=l(this.JSC$9101_parkedJobs),b=a.next();!b.done;b=a.next())b=b.value,z0a(this,b.job,b.priority);this.JSC$9101_parkedJobs=[]}; var z0a=function(a,b,c){c=c||a.JSC$9101_defaultPriority;if(c===10)Nl(b);else{var d=a.nextJobDescriptor++,e=function(){b();a.scheduledJobs.delete(d)},f=Hl(0,e,c); a.scheduledJobs.set(d,{jobWrapper:e,jobId:f,priority:c})}};var $C={},C0a={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};$C.YtRendererstamperBehavior=[{mappings:null,stampDom:null,rendererStamperLogger_:null,beforeRegister:function(){this.configureRendererStamper&&typeof this.configureRendererStamper==="function"&&(this.stampDom?this.stampDom=Object.assign({},this.stampDom,this.configureRendererStamper()):this.stampDom=this.configureRendererStamper());this.stampDom&&this.addStampDomObservers_()}, created:function(){this.deferredBindingTasks_=[];this.renderJobsMap_=Object.create(null);this.hasDataPath_=Object.create(null);this.stampDom&&this.addStampDomObserverFns_();this.telemetry_={};this.resetTelemetry_();this.successRatioSliParams_=Fn().resolve(Cn(P_a));this.componentsWithPropertyObservers_={}}, updateSuccessRatioSli_:function(a){if(this.successRatioSliParams_){var b=this.successRatioSliParams_,c=b.sli;b=b.sliDimensions;a?c.incrementSuccess(b()):c.incrementFailure(b())}}, resetTelemetry_:function(){this.telemetry_.create=0;this.telemetry_.reuse=0}, getPropertyBindingsWithObservers_:function(){var a=[];if(!this.stampDom)return a;for(var b=l(Object.values(this.stampDom)),c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0,e=void 0;if(((d=c)==null?0:d.id)&&((e=c)==null?0:e.mapping))for(d=l(Object.values(c.mapping)),e=d.next();!e.done;e=d.next())if(e=e.value,e.enablePropertyObservers&&e.properties)for(var f in e.properties)if(e.properties.hasOwnProperty(f)){var h=t0a(e.properties[f]);h&&a.push({configId:c.id,component:e.component,propName:f,parentPropName:h})}}return a}, addStampDomObservers_:function(){if(this.useSignals){for(var a in this.stampDom){var b=this.stampDom[a];b&&b.id&&this.addReactiveSchema({type:"observe",method:{methodName:r0a(b.id),args:[{type:"wildcard",path:a}]}})}a=l(this.getPropertyBindingsWithObservers_());for(b=a.next();!b.done;b=a.next())b=b.value,this.addReactiveSchema({type:"observe",method:{methodName:s0a(b.configId,b.component,b.propName),args:[{type:"path",path:b.parentPropName}]}})}else{(a=(this.constructor.generatedFrom||this).observers)||( a=[]);for(b in this.stampDom){var c=this.stampDom[b];c&&c.id&&(c=r0a(c.id),a.push(c+"("+b+".*)"))}b=l(this.getPropertyBindingsWithObservers_());for(c=b.next();!c.done;c=b.next()){c=c.value;var d=s0a(c.configId,c.component,c.propName);a.push(d+"("+c.parentPropName+")")}this.constructor.generatedFrom.observers=a}}, addStampDomObserverFns_:function(){var a=this;for(c in this.stampDom){var b=this.stampDom[c];b.id?(this[r0a(b.id)]=this.rendererStamperObserver_.bind(this,c,b.id),this.hasDataPath_[c]=!1):eo(new Dl("Bad rendererstamper config",this.is+":"+c))}var c=l(this.getPropertyBindingsWithObservers_());b=c.next();for(var d={};!b.done;d={binding$jscomp$20:void 0},b=c.next())d.binding$jscomp$20=b.value,this[s0a(d.binding$jscomp$20.configId,d.binding$jscomp$20.component,d.binding$jscomp$20.propName)]=function(e){return function(f){var h= a.getStampContainer_(e.binding$jscomp$20.configId);if(h){var m,p=(m=a.componentsWithPropertyObservers_)==null?void 0:m[e.binding$jscomp$20.configId];if(p){m=l(p);for(var q=m.next();!q.done;q=m.next())if(q=q.value,q.parentElement!==h)p.delete(q);else if(q.tagName.toLowerCase()===e.binding$jscomp$20.component.toLowerCase()){var t=void 0,u=(t=q.polymerController)!=null?t:q;u&&typeof u==="object"&&e.binding$jscomp$20.propName in u&&(u[e.binding$jscomp$20.propName]=f)}}}}}(d)}, rendererStamperObserver_:function(a,b,c){if(c.path==a){if(c.value===void 0&&!this.hasDataPath_[a])return;this.hasDataPath_[a]=c.value!==void 0}this.rendererStamperApplyChangeRecord_(a,b,c)}, rendererStamperApplyChangeRecord_:function(a,b,c){var d=this.renderJobsMap_[b],e=null;a==c.path?(c=c.value,Fa(c)||(c=c===void 0||c===null?[]:[c]),a=this.stampDom[a],a.mapping&&(e=this.stampDomArray_.bind(this,c,b,a.mapping,a.reuseComponents,a.events,a.stamperStableList)),d&&d.cancel(),d||a.initialRenderPriority==void 0)?a.renderPriority==void 0||d||(d=new ZC(a.renderPriority,a.waitForSignal),this.renderJobsMap_[b]=d):(d=new ZC(a.initialRenderPriority,a.waitForSignal),this.renderJobsMap_[b]=d,e=function(f, h){f();B0a(h,10)}.bind(this,e,d)):e=a+".splices"==c.path?this.stampDomArraySplices_.bind(this,a,b,c.value):this.forwardRendererStamperChanges_.bind(this,a,b,c); d?A0a(d,e):e()}, forwardRendererStamperChanges_:function(a,b,c){var d=c.path.slice(a.length+1),e=this.getStampContainer_(b),f=d.indexOf("."),h=d.substring(0,f),m=!1,p=0,q=parseInt(h,0);if(h[0]=="#"){m=parseInt(h.substring(1),0);q=this.get(a);var t=this.get([a,h]);q[m]==t?p=m:p=q.indexOf(t);m=!0}else isNaN(q)||(p=q,m=!0);m&&(d=d.substring(h.length+1),f=d.indexOf("."));h=this.polymerDom(e).children[p];var u;if(e=(u=h==null?void 0:h.polymerController)!=null?u:h)d="data"+d.slice(f),typeof e.notifyPath!=="function"?fo(new Dl("notifyPath missing", this.is+": "+a+", "+b)):c.value?e.notifyPath(d,c.value):e.notifyPath(d)}, stampDomArraySplices_:function(a,b,c){if(c&&c.indexSplices){var d=this.getStampContainer_(b);if(d){for(var e=this.polymerDom(d),f=u0a(this.stampDom[a].reuseComponents),h=0,m=0,p=function(){h++},q=c.indexSplices.length,t=0;t0;w--)v&&v.parentElement&&(this.polymerDom(v.parentElement).removeChild(v),f&&r_a(v),v=e.children[u.index]); w=this.stampDom[a].mapping;for(var y=u.index+u.addedCount,A=document.createDocumentFragment(),C=f,I=u.index;I0)}else eo(new Dl("Container object not found",b,this.hostElement?this.hostElement.is:"")),this.updateSuccessRatioSli_(!1)}}, stampDomArray_:function(a,b,c,d,e,f){var h=this.getStampContainer_(b);if(h){var m=this.polymerDom(h);d=u0a(d);if(a){var p=0,q=0,t=function(){p++},u=0,v=0,w; if(f=f===void 0?!!Vk("STAMPER_STABLE_LIST",!1):f||!1)for(w=m.firstElementChild;w&&!XC.has(w)&&a.length>v;){f=a[v];var y=q0a(c,f);if(y){q++;if(this.getComponentName_(c[y],f[y])!=w.is){var A=this.createComponent_(c[y],f[y],d,t),C=this.polymerDom(w).nextElementSibling;C?m.insertBefore(A,C):m.appendChild(A);w0a(this.is,m,w,d);w=A}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(w,c[y],f[y],b);u++;v++;w=this.polymerDom(w).nextElementSibling}else v++,p++}y0a(this.is,m,u,d);u=w;if(a.length>v){f= document.createDocumentFragment();for(y=a.length;v0)}else y0a(this.is,m,0,d)}else eo(new Dl("Container object not found", b,this.hostElement?this.hostElement.is:"")),this.updateSuccessRatioSli_(!1)}, polymerDom:function(a){return this.minimizePipBreakages?a:es(a)}, getStampContainer_:function(a){return this.$&&this.$[a]||wt(this.hostElement).querySelector("#"+a)}, getComponentName_:function(a,b){return typeof a==="string"?a:a.matcher?a.matcher.call(this,b):a.component}, createComponent_:function(a,b,c,d){d=d===void 0?function(){}:d; a=this.getComponentName_(a,b);try{var e=Su.has(a);if(c&&!e){var f=EC(a);try{Ft(f)}catch(h){c="Failed to clear styles for "+a+".",h.message&&(c+=" Original error: "+h.message),fo(new Dl(c))}}else f=document.createElement(a)}catch(h){return f="YtRendererStamperBehavior failed to create "+a+".",h.message&&(f+=" Original description: "+h.message),h.message="YtRendererStamperBehavior failed to create element",go(h,f),C0a.hasOwnProperty(a)?fo(h):co(h),d(),document.createElement("SPAN")}this.telemetry_.create++; return f}, deferRenderStamperBinding_:function(a,b,c,d){this.deferredBindingTasks_.push({component:a,typeOrConfig:b,data:c,containerId:d})}, flushRenderStamperComponentBindings_:function(){for(var a=0,b=this.deferredBindingTasks_.length;a=this.value.length||b>=this.value.length)throw bD("Either the fromIndex "+a+" or toIndex "+b+" is out of bounds for field "+this.fieldId+" in form "+this.parentFormId+" with length "+this.value.length+".");var c=[].concat(ia(this.value));a=l(c.splice(a,1)).next().value;c.splice(b,0,a);return this.runFieldUpdateProcess(c,this.fieldId,this.parentFormId)}; var Q0a=function(a,b,c){if(b<0||b>=a.value.length)throw bD("Update index "+b+" is out of bounds for field "+a.fieldId+" in form "+a.parentFormId+" with length "+a.value.length+".");var d=[].concat(ia(a.value));d[b]=c;a.runFieldUpdateProcess(d,a.fieldId,a.parentFormId)}; iD.prototype[Sy]=function(a){var b,c,d;return new iD((b=a.value)!=null?b:this.value,this.originalValue,this.fieldId,this.parentFormId,(c=a.isTouched)!=null?c:this.isTouched,(d=a.errors)!=null?d:this.errors,this.validators,this.runFieldUpdateProcess)};var R0a=new Map;function jD(a){var b=R0a.get(a);if(b)return b;b=a.replace(/_([a-zA-Z0-9])/g,function(c,d){return d.toUpperCase()}); R0a.set(a,b);return b} ;var kD,S0a;function lD(){var a;(a=S0a)==null||a(function(b){return b+1})} ;var mD=new Map;function nD(a){if(kD)kD();else{var b=l(ip(0,void 0,"VxY0fb"));kD=b.next().value;b.next();S0a=b.next().value;kD()}return mD.get(a)} ;function oD(a,b){if(mD.has(a))throw bD("Form already registered for formId: "+a+".");var c=b.nestedFormAccessor?1:0;b={form:b.form,formState:L0a(),formType:b.formType,formRole:c,formMetadata:{latestFieldUpdateTimestamps:new Map,dependentValidationMap:b.dependentValidationMap},formDelegate:b.formDelegate,nestedFormAccessor:b.nestedFormAccessor,submitConfig:b.submitConfig,toFormData:b.toFormData};a&&mD.set(a,b);c===0&&lD()} function pD(a,b){if(a){var c=nD(a);if(c){if(b&&b!==c.formType)throw bD("Form type mismatch for formId "+a+": provided formType \""+b+"\" does not match stored formType \""+c.formType+"\".");return c.form}}} function T0a(a){var b=nD(a);if(!b)throw cD(a);if(b.formRole===0)return b.form;b=b.nestedFormAccessor;if(!b)throw H0a(a);a=pD(b.rootFormId);if(!a)throw G0a(b.rootFormId);return a} function U0a(a){if(!a.formId)throw aD("FormId is missing from form.");var b=nD(a.formId);if(!b)throw cD(a.formId);b.form=a;for(var c=b.formState,d=!0,e=!1,f=!1,h=l(Object.keys(a)),m=h.next();!m.done;m=h.next())m=m.value,m!=="formId"&&(m=a[m],m.isValid||(d=!1),m.isUpdated()&&(e=!0),m.isTouched&&(f=!0));a=Object.assign({},c,{isValid:d,isUpdated:e,isTouched:f});b.formState=a;lD()} function V0a(a){try{var b=T0a(a)}catch(c){return!1}(a=M0a(b,function(c){return mD.delete(c)}))&&lD(); return a} function qD(a,b){if(b==="formId")throw I0a();if(a=pD(a))return b=jD(b),a[b]} function W0a(a){if(a=nD(a))return a.formMetadata} function X0a(a){if(a=nD(a))return a.formDelegate} function Y0a(a){return a.map(function(b){return b.index!==void 0?{name:b.fieldId,index:b.index}:b.fieldId})} function Z0a(a,b){(a=qD(a,b))&&a.kind===2&&a.value.forEach(function(c,d){c=c.formId;var e=nD(c);if(!e)throw cD(c);e=e.nestedFormAccessor;if(!e)throw H0a(c);c=e.nestedFormPath;c[c.length-1].index=d})} ;function rD(a){var b=Vo(function(){var d;return(d=Bp(a))!=null?d:{}},{equals:D0a},"LDNLbd"),c=Vo(function(){var d=b(),e=d.formId; d=d.fieldId;if(e&&d){var f=qD(e,d);if(f){if(!(f instanceof gD))throw bD("Field "+d+" in form "+e+" is not a ScalarField.");e=f}else e=void 0;return e}},void 0,"o8o00d"); return function(){return c()}} ;var $0a=new Bn("SUBMIT_API_SERVICE_TOKEN");function a1a(a){var b,c,d,e,f,h,m,p,q,t,u,v,w,y,A;return ra(function(C){switch(C.nextAddress){case 1:b=T0a(a);c=X0a(a);var I=(I=nD(a))?I.submitConfig:void 0;d=I;e=Fn().resolve(Cn($0a));if(I=nD(a))I.formState=Object.assign({},I.formState,{isSubmitting:!0}),lD();C.setCatchFinallyBlocks(2,3);if(d&&e){I=(I=nD(a))?I.toFormData:void 0;p=I;if(!p)throw aD("Missing toFormData function for FormId "+a+".");q=p(b);t={submitAction:"SUBMIT_ACTION_SUBMISSION",allFields:!0};return C.yield(e.submitForm(d.submitId, q,t,d.params,d.clickTrackingParams),8)}return C.yield((f=c)==null?void 0:(m=(h=f).onSubmit)==null?void 0:m.call(h,b),3);case 8:u=C.yieldResult;if(u.submitError)throw K0a(u.submitError);return C.yield((v=c)==null?void 0:(y=(w=v).onSubmitResult)==null?void 0:y.call(w,u),3);case 3:C.enterFinallyBlock();if(I=nD(a))I.formState=Object.assign({},I.formState,{isSubmitting:!1,submitCount:I.formState.submitCount+1}),lD();C.leaveFinallyBlock(0);break;case 2:return A=C.enterCatchBlock(),A instanceof Error?C.return(Promise.reject(A)): C.return(Promise.reject(K0a(A)));}})} ;function sD(a,b){var c=Vo(function(){var f;return(f=Bp(a))!=null?f:""},void 0,"YrS5h"),d=Vo(function(){return pD(c(),b)},void 0,"CQIfm"),e=Vo(function(){var f=c(); return(f=nD(f))?f.formState:L0a()},void 0,"KYHmwb"); return{form:function(){return d()}, state:function(){return e()}, submit:function(){return ra(function(f){return f.yield(a1a(c()),0)})}, dispose:function(){return V0a(c())}}} ;function b1a(a){var b=Vo(function(){var d;return(d=Bp(a))!=null?d:{}},{equals:D0a},"zTUZQc"),c=Vo(function(){var d=b(),e=d.formId; d=d.fieldId;if(e&&d){a:{var f=pD(e);if(f){var h=jD(d);if(f=f[h]){if(!(f instanceof iD))throw bD("Field "+d+" in form "+e+" is not a ScalarListField.");e=f;break a}}e=void 0}return e}},void 0,"E0KSFd"); return function(){return c()}} ;var tD=new Bn("KEY_MANAGER_TOKEN");var vD=O(function(a){var b=sw("a",a.ref),c=a.aTagConfig?a.aTagConfig:Vo(function(){var p,q,t,u,v;var w=(v=LB((t=a.command)==null?void 0:t.call(a)))!=null?v:(u=a.command)==null?void 0:u.call(a);return NB({innertubeCommand:w,skipOnClick:(p=a.skipOnClick)==null?void 0:p.call(a),defaultTarget:(q=a.target)==null?void 0:q.call(a)})||{}},void 0,"gnrRge"),d=FC(function(p){var q,t; return void((t=(q=c()).onpointerdown)==null?void 0:t.call(q,p))}),e=FC(function(p){var q,t; (t=(q=c()).onclick)==null||t.call(q,p);var u;(u=a.onClick)==null||u.call(a,p)}),f=FC(function(p){var q; (q=a.onFocusin)==null||q.call(a,p)}),h=FC(function(p){var q; (q=a.onFocusout)==null||q.call(a,p)}),m=FC(function(p){var q; (q=a.onHover)==null||q.call(a,p)}); return D("a",{el:b,href:function(){return c().href$}, rel:function(){return c().rel$}, class:function(){var p,q;return(q=c().className)!=null?q:(p=a.className)==null?void 0:p.call(a)}, style:function(){var p;if((p=a.style)==null?0:p.call(a))return a.style();var q;return((q=a.disabled)==null?0:q.call(a))?"pointer-events:none":""}, "aria-haspopup":function(){return!!c()["aria-haspopup$"]}, "force-new-state":uD(function(){return c()["force-new-state$"]}), title:uD(function(){var p,q;return(q=c().title$)!=null?q:(p=a.title)==null?void 0:p.call(a)}), role:uD(function(){var p;return((p=a.role)==null?void 0:p.call(a))||c().role$}), target:uD(function(){return c().target$}), dir:uD(function(){var p;return((p=a.dir)==null?void 0:p.call(a))||c().dir}), tabindex:function(){var p;return c().tabindex$?Number(c().tabindex$):(p=a.tabIndex)==null?void 0:p.call(a)}, "aria-hidden":function(){var p,q;return(q=c()["aria-hidden$"])!=null?q:(p=a.ariaHidden)==null?void 0:p.call(a)}, "aria-label":function(){var p,q;return(q=c()["aria-label$"])!=null?q:(p=a.ariaLabel)==null?void 0:p.call(a)}, "aria-current":a.ariaCurrent,"aria-disabled":a.disabled,"aria-expanded":a.ariaExpanded,"aria-labelledby":a.ariaLabelledby,"aria-describedby":a.ariaDescribedby,"aria-selected":a.ariaSelected,"tab-identifier":a.tabIdentifier,"on:pointerdown":d,"on:click":e,"on:focusin":f,"on:focusout":h,"on:mouseenter":m},a.children)},"L"); function uD(a){return function(){return a()?a():void 0}} ;var c1a=O(function(a){function b(){var y,A;p((A=(y=e)==null?void 0:y.keyboardInUse)!=null?A:!1)} function c(){p(!1)} function d(){var y;return m()?(y=a.focusedClassName)==null?void 0:y.call(a):""} var e=Fn().resolve(Cn(tD)),f=l(ip(!1,void 0,"ATdOL")),h=f.next().value;f=f.next().value;var m=h,p=f,q=JC(),t=function(){var y,A;return((y=a.toggleable)==null?0:y.call(a))?(A=a.toggled)==null?void 0:A.call(a):void 0},u=FC(function(y){var A,C=(A=a.command)==null?void 0:A.call(a); C&&(A=y.target?{form:{element:y.target,sourceData:C,mutationContext:q}}:void 0,Fn().resolve(JB).resolveCommand(C,A));var I;(I=a.onClick)==null||I.call(a,y)}),v=FC(b),w=FC(c); return D(P,{cond:function(){var y;if(y=a.command){y=a.command();y=UXa(y);var A=y.href;y=!(!y.navigatingCommand||!A)}return y}, then:function(){return D(vD,Object.assign({},{command:a.command,style:a.style,ariaDescribedby:a.ariaDescribedby,ariaHidden:a.ariaHidden,ariaLabel:a.ariaLabel,ariaLabelledby:a.ariaLabelledby,ariaSelected:a.ariaSelected,disabled:a.disabled,dir:a.dir,tabIndex:a.tabIndex,target:a.target,title:a.title,onClick:a.onClick},{className:U("ytButtonOrAnchorHost","ytButtonOrAnchorAnchor",a.className,function(){return d()}), onFocusin:b,onFocusout:c,ariaCurrent:function(){var y,A;return(A=(y=a.ariaCurrent)==null?void 0:y.call(a))!=null?A:t()}}),a.children)}, else:function(){return D("button",{"on:click":u,"on:focusin":v,"on:focusout":w,class:U("ytButtonOrAnchorHost","ytButtonOrAnchorButton",a.className,function(){return d()}), style:a.style,"aria-describedby":a.ariaDescribedby,"aria-hidden":a.ariaHidden,"aria-label":a.ariaLabel,"aria-labelledby":a.ariaLabelledby,"aria-pressed":t,dir:a.dir,disabled:a.disabled,tabindex:a.tabIndex,title:a.title},a.children)}})},"M");function wD(a){if(a){var b,c=(b=Fn().resolve(Cn(HB)))==null?void 0:b(),d;b=(d=a.darkThemeImage)!=null?d:a.image;return c?b:a.image}} ;var xD=new Bn("CHUNK_REGISTRY_TOKEN");function yD(a,b){var c=l(ip(!1,void 0,"mNywzc")),d=c.next().value,e=c.next().value,f=!1,h;c=function(m){if(h)return D(h,Object.assign({},m));if(!f){f=!0;var p=NC;p==null||p.addDep();a().then(function(q){h=q;e(!0);p==null||p.removeDep()}).catch(function(q){p==null||p.removeDep(); if(b==null?0:b.debugName){var t,u=new Dl("failed to load chunk",b.debugName,q==null?void 0:(t=q.toString)==null?void 0:t.call(q));co(u)}else co(q);throw q})}return D(P,{cond:d, then:function(){return D(h,Object.assign({},m))}})}; eWa.set(c,a);return c} ;var e1a=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("Raq4cb"),2);a=d1a;return b.return(a)})},zD=yD(function(){return e1a()},{debugName:"avatarViewModel"}); Gn(xD,function(a){a.registerLoadFn("avatarViewModel","Raq4cb",e1a)});var f1a=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("DlvF1d"),2);a=AD;return b.return(a)})},BD=yD(function(){return f1a()},{debugName:"buttonViewModel"}); Gn(xD,function(a){a.registerLoadFn("buttonViewModel","DlvF1d",f1a)});var h1a=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("acFuVc"),2);a=g1a;return b.return(a)})},i1a=yD(function(){return h1a()},{debugName:"collectionThumbnailViewModel"}); Gn(xD,function(a){a.registerLoadFn("collectionThumbnailViewModel","acFuVc",h1a)});var k1a=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("f90tCb"),2);a=j1a;return b.return(a)})},CD=yD(function(){return k1a()},{debugName:"toggleButtonViewModel"}); Gn(xD,function(a){a.registerLoadFn("toggleButtonViewModel","f90tCb",k1a)});var l1a=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("PzUdZb"),2);a=DD;return b.return(a)})},ED=yD(function(){return l1a()},{debugName:"badgeViewModel"}); Gn(xD,function(a){a.registerLoadFn("badgeViewModel","PzUdZb",l1a)});var n1a=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("LViMM"),2);a=m1a;return b.return(a)})},FD=yD(function(){return n1a()},{debugName:"subscribeButtonViewModel"}); Gn(xD,function(a){a.registerLoadFn("subscribeButtonViewModel","LViMM",n1a)});var p1a=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("mm2N0c"),2);a=o1a;return b.return(a)})},q1a=yD(function(){return p1a()},{debugName:"switchButtonViewModel"}); Gn(xD,function(a){a.registerLoadFn("switchButtonViewModel","mm2N0c",p1a)});var r1a=new Bn("SEMANTIC_COLOR_RESOLVER_TOKEN");function GD(a){var b=Fn().resolve(Cn(r1a)),c=l(ip(b,void 0,"HfDdK")),d=c.next().value;c=c.next().value;b||Gn(r1a,c);return Vo(function(){var e=a(),f;return e?(f=d())==null?void 0:f(e):void 0},void 0,"v70E7b")} ;var t1a=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("hb0Wmf"),2);a=s1a;return b.return(a)})},u1a=yD(function(){return t1a()},{debugName:"accountLinkButtonViewModel"}); Gn(xD,function(a){a.registerLoadFn("accountLinkButtonViewModel","hb0Wmf",t1a)});var w1a=O(function(a){var b=a.data;var c=a.isLeading;var d=a.hideSelectionTextChevron;var e=a.isToggled;var f=a.shouldNotFillIcon;var h=function(){if(c())var v=b().leadingImage;else{var w;v=(w=b().trailingImage)!=null?w:wD(b().themedTrailingImage)}return v},m=function(){a:switch(b().listItemIconAfterSelectionText){case"LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var v="expand_more"; break a;default:v="chevron_right";}return v}; a={};var p=U("ytListItemViewModelImageContainer",(a.ytListItemViewModelLeading=c,a.ytListItemViewModelTrailing=function(){return!c()},a)),q=U("ytListItemViewModelAccessory","ytListItemViewModelImage"); a={};var t=U("ytListItemViewModelAccessory",(a.ytListItemViewModelLeading=c,a.ytListItemViewModelTrailing=function(){return!c()},a)),u=GD(function(){return c()?b().leadingIconColorToken:b().trailingIconColorToken}); return D(P,{cond:function(){var v=b(),w=c();return!!(w&&(v.leadingImage||v.leadingAccessory)||!w&&(v.trailingImage||v.trailingButton||v.trailingButtons||v.trailingAccessoriesList||v.selectionText||v.themedTrailingImage||v.trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR"||v.trailingLabel))}, then:function(){return D(mq,null,D(P,{cond:h,then:function(v){return D("div",{class:p,"aria-hidden":"true"},D(eC,{data:v,alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:function(){var w=(c()?b().leadingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON":b().trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON")?c()?v1a(b().leadingIconAccessorySize):v1a(b().trailingIconAccessorySize):void 0;return w}, className:q,isToggled:function(){return!(f==null?0:f())&&(e==null?void 0:e())}, style:GC({color:u})}))}}),D(P,{cond:function(){return c()&&b().leadingAccessory}, then:function(){return D("div",{class:p},D(OC,{data:function(){return b().leadingAccessory}},{avatarViewModel:function(v){return D(zD,{data:v.data, avatarButtonCustomClassName:q})}, collectionThumbnailViewModel:function(v){return D(i1a,{data:v.data,maxHeight:36,width:56,includeStackHeight:!0})}}))}}),D(P,{cond:function(){return!c()&&b().trailingButton}, then:function(){return D("div",{class:"ytListItemViewModelButtonContainer"},D(OC,{data:function(){return b().trailingButton}},{buttonViewModel:function(v){return D(BD,{data:v.data, className:t})}}))}}),D(P,{cond:function(){var v; return!c()&&((v=b().trailingButtons)==null?void 0:v.buttons)}, then:function(){return D("div",{class:"ytListItemViewModelButtonContainer"},D(OC,{data:function(){var v;return(v=b().trailingButtons)==null?void 0:v.buttons}},{buttonViewModel:function(v){return D(BD,{data:v.data, className:t})}, accountLinkButtonViewModel:function(v){return D(u1a,{data:v.data,className:t})}, switchButtonViewModel:function(v){return D(q1a,{data:v.data,className:t})}, subscribeButtonViewModel:function(v){return D(FD,{data:v.data,isOverlay:!1,animateWidth:!1,className:t})}, toggleButtonViewModel:function(v){return D(CD,{data:v.data,className:t})}}))}}),D(P,{cond:function(){var v; return!c()&&((v=b().trailingAccessoriesList)==null?void 0:v.trailingAccessories)}, then:function(){return D("div",{class:"ytListItemViewModelButtonContainer"},D(OC,{data:function(){var v;return(v=b().trailingAccessoriesList)==null?void 0:v.trailingAccessories}},{buttonViewModel:function(v){return D(BD,{data:v.data, className:t})}, accountLinkButtonViewModel:function(v){return D(u1a,{data:v.data,className:t})}, switchButtonViewModel:function(v){return D(q1a,{data:v.data,className:t})}, subscribeButtonViewModel:function(v){return D(FD,{data:v.data,isOverlay:!1,animateWidth:!1,className:t})}, toggleButtonViewModel:function(v){return D(CD,{data:v.data,className:t})}, badgeViewModel:function(v){return D(ED,{data:v.data,class:t})}}))}}),D(P,{cond:function(){return!c()&&!!b().selectionText}, then:function(){return D(mq,null,D(gC,{text:function(){return b().selectionText}, className:U("ytListItemViewModelSelectionText","ytListItemViewModelTrailingSelectionText")}),D(P,{cond:function(){return!(d==null?0:d())}, then:function(){return D(aC,{icon:m,className:"ytListItemViewModelChevronIcon",style:GC({color:u})})}}))}}),D(P,{cond:function(){return!c()&&b().trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR"}, then:function(){return D("div",{class:p},D("div",{class:"ytListItemViewModelNewContentIndicator"}))}}),D(P,{cond:function(){return!c()&&b().trailingLabel}, then:function(){return D(gC,{text:function(){return b().trailingLabel}, className:U("ytListItemViewModelTrailingLabel")})}}))}})},"N"); function v1a(a){if(a)switch(a){case"LIST_ITEM_ICON_ACCESSORY_SIZE_XSMALL":return 16;case"LIST_ITEM_ICON_ACCESSORY_SIZE_SMALL":return 18;case"LIST_ITEM_ICON_ACCESSORY_SIZE_STANDARD":return 24;case"LIST_ITEM_ICON_ACCESSORY_SIZE_LARGE":return 36;case"LIST_ITEM_ICON_ACCESSORY_SIZE_XLARGE":return 48;default:return 24;}} ;var x1a=new Bn("HORIZONTAL_BAR_VIEW_MODEL_TOKEN");var y1a=O(function(a){var b=a.data;a=Fn().resolve(Cn(x1a));return D("div",{class:"ytListItemViewModelBottomAccessory"},D(OC,{data:function(){return b().bottomAccessory}},Object.assign({},a&&{horizontalBarViewModel:a})))},"O");var A1a=O(function(a){var b=a.data,c=GD(function(){return b().isDisabled&&b().labelDisabledColorToken?b().labelDisabledColorToken:b().labelTextColorToken}),d=GD(function(){return b().superLabelColorToken}); return D(P,{cond:function(){return b().superlabel||b().title||b().subtitle||b().subtitleBadge}, then:function(){return D("div",{class:"ytListItemViewModelTextWrapper"},D(P,{cond:function(){return b().superlabel}, then:function(e){return D(gC,{text:e,className:"ytListItemViewModelSuperlabel",style:GC({color:d})})}}),D(P,{cond:function(){return b().title}, then:function(e){return D("div",{class:"ytListItemViewModelTitleWrapper"},D(gC,{text:e,className:"ytListItemViewModelTitle",style:GC({color:c})}))}}),D(P,{cond:function(){return b().subtitleBadge||b().subtitle}, then:function(){return D("div",{class:"ytListItemViewModelSubtitleContainer"},D("div",{class:"ytListItemViewModelSubtitleBadgeWrapper"},D(OC,{data:function(){return b().subtitleBadge}},{badgeViewModel:function(e){return D(ED,{data:e.data})}})),D(z1a,{data:b, hasBadge:function(){return!!b().subtitleBadge}}))}}))}})},"P"),z1a=O(function(a){var b=GD(function(){return a.data().subLabelColorToken}); return D(P,{cond:function(){return a.data().subtitle}, then:function(c){var d={};return D(gC,{text:c,className:U("ytListItemViewModelSubtitle",(d.ytListItemViewModelWithBadge=a.hasBadge,d)),style:GC({color:b})})}})},"Q");function HD(a){if(a.composedPath)return a.composedPath();if(!a.__composedPath){for(var b=[],c=a.target;c;)b.push(c),c=c.parentNode;b.push(window);a.__composedPath=b}return a.__composedPath} function ID(a,b,c){a=l(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;if(d===b)break;for(var e=l(c),f=e.next();!f.done;f=e.next())if(f=f.value,d.tagName===f||d.role==="button"&&f==="BUTTON")return!0}return!1} ;function B1a(a,b){var c,d=(c=b.observer)!=null?c:Fn().resolve(uw);if(a){c=C1a(a);var e=[];b.showOption&&e.push(d.observe(a,function(){b.visibilityCallback(!0,a)},b.showOption)); b.hideOption&&e.push(d.observe(a,function(){b.visibilityCallback(!1,a)},b.hideOption)); b.prescanOption&&b.prescanCallback&&e.push(d.observe(a,function(){b.prescanCallback()},b.prescanOption)); var f;c.visibilityMonitorKeys=((f=c.visibilityMonitorKeys)!=null?f:[]).concat(e)}} function C1a(a){var b;return(b=a.polymerController)!=null?b:a} ;function KD(a){return!!LD(a)} function MD(a,b,c,d,e){return function(f){var h=JC();lw(function(){if(f){D1a(f,a(),e);var m=E1a(f,a(),b,c,d,h);zp(m)}},"lrewVd")}} function D1a(a,b,c){var d=F1a(b),e=G1a(b),f=d&&XB,h=e&&YB;(d||e)&&B1a(a,{visibilityCallback:function(m){var p=Fn().resolve(JB);m&&d?(p.resolveCommand(d,{form:{element:c?a:void 0},disableClickTracking:!0}),d=F1a(b)):!m&&e&&(p.resolveCommand(e,{form:{element:c?a:void 0},disableClickTracking:!0}),e=G1a(b))}, showOption:f,hideOption:h})} function E1a(a,b,c,d,e,f){var h=new Map;if(b=LD(b)){var m;a=(d==null?void 0:(m=d.onTap)==null?void 0:m.value)||a;c=H1a(b,a,c==null?void 0:c.onTap,e,f);a.addEventListener("click",c);h.set("click",c)}return function(){for(var p=l(h),q=p.next();!q.done;q=p.next()){var t=l(q.value);q=t.next().value;t=t.next().value;a.removeEventListener(q,t)}}} function LD(a){var b;return(a=(b=z(a,hy))==null?void 0:b.onTap)&&LB(a)} function F1a(a){var b;return(a=(b=z(a,hy))==null?void 0:b.onVisible)&&LB(a)} function G1a(a){var b;return(a=(b=z(a,hy))==null?void 0:b.onHidden)&&LB(a)} function I1a(a){var b;return LB((b=z(a,hy))==null?void 0:b.onHoverEnd)} function H1a(a,b,c,d,e){var f=function(m){Fn().resolve(JB).resolveCommand(a,m)},h=function(m){d&&ID(HD(m),b,d)||f(m.target?{form:{element:m.target, sourceData:a,mutationContext:e}}:void 0)}; c&&(h=function(m){c(m,f)}); return h} ;var J1a=O(function(a){var b=a.data;var c=a.hideSelectionTextChevron;var d=a.TrailingAccessory;var e=a.isToggled;var f=a.disabled;var h=a.isSelectItem;var m=a.isCompact;var p=a.inPopup;var q=a.disableHorizontalPadding;var t=a.horizontalPadding;var u=a.isTappableWithoutSelect;var v=a.useButtonOrAnchor;var w=a.onTap;var y=a.shouldNotFillIcon;var A=function(){return D(A1a,{data:b})},C=GD(function(){return b().trailingIconColorToken}); a={};return D("div",{class:U("ytListItemViewModelLayoutWrapper",(a.ytListItemViewModelContainer=function(){return!(h==null?0:h())},a.ytListItemViewModelDisabled=function(){return!!b().isDisabled||!(f==null||!f())},a.ytListItemViewModelHasSubtitle=function(){return!!b().subtitle},a.ytListItemViewModelCompact=m,a.ytListItemViewModelTappable=u,a.ytListItemViewModelActionTypography=x("web_enable_list_item_action_typography"),a.ytListItemViewModelInPopup=p,a.ytListItemViewModelDisableHorizontalPadding= function(){return(q==null?void 0:q())&&!(h==null?0:h())},a)), style:GC({"padding-left":t,"padding-right":t})},D("div",{class:"ytListItemViewModelMainContainer"},D(w1a,{data:b,isLeading:!0,hideSelectionTextChevron:c,isToggled:e,shouldNotFillIcon:y}),D(P,{cond:v,then:function(){return D(c1a,{command:function(){return LD(b().rendererContext)}, onClick:w,className:"ytListItemViewModelButtonOrAnchor",toggleable:e!==void 0,toggled:e},D(A,null))}, else:function(){return D(A,null)}}),D(P,{cond:function(){return!!d}, then:function(){return D("div",{class:"ytListItemViewModelTrailing",style:GC({color:C})},d&&D(d,null))}, else:function(){return D(w1a,{data:b,isLeading:!1,hideSelectionTextChevron:c,isToggled:e,shouldNotFillIcon:y})}})),D(P,{cond:function(){return b().bottomAccessory}, then:function(){return D(y1a,{data:b})}}))},"S");var ND={getCurrentPlayerShared:function(){return ra(function(a){return a.nextAddress==1?a.yield(Fn().resolve(AVa),2):a.return(Fn().resolve(CVa)())})}, getPlayer:function(){return Fn().resolve(CVa)()}, getInjectedPlayerAsync:function(){return ra(function(a){return a.return(Fn().resolve(BVa))})}};function K1a(a){if(!((a==null?0:a.entitySelectorType)&&(a==null?0:a.entityKey)))return{};switch(a.entitySelectorType){case"LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":var b,c=(b=(0,ND.getPlayer)())==null?void 0:b.getOption("captions","track"),d,e=typeof(c==null?void 0:c.translationLanguage)==="object"&&((d=c.translationLanguage)==null?void 0:d.languageName)||(c==null?void 0:c.displayName)||"";return{data:Object.assign({},!!e&&{selectionText:{content:e}},!!e&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}}, {isDisabled:typeof c==="undefined"})};case"LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_AUDIO_TRACK_SELECTION_TEXT":var f;d=((f=(0,ND.getPlayer)())==null?void 0:f.getAudioTrack())||void 0;var h=d==null?void 0:(c=d.getLanguageInfo())==null?void 0:c.getName();return{data:Object.assign({},{selectionText:{content:h}},h&&!(d==null?0:(e=d.getLanguageInfo())==null?0:e.getIsDefault())&&{leadingImage:{sources:[{clientResource:{imageName:"PERSON_RADAR_FILLED"}}]}})};case"LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_PLAYBACK_SPEED_SELECTION_TEXT":if(x("web_shorts_playback_rate_picker")){var m; d=(m=(0,ND.getPlayer)())==null?void 0:m.getPlaybackRate();c=(h=(0,ND.getPlayer)())==null?void 0:h.getAvailablePlaybackRates();d={data:{selectionText:{content:d===1?zy("PLAYER_SPEED_NORMAL",void 0,"Normal"):zy("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+(d==null?void 0:d.toFixed(2))})},isDisabled:!(c==null?0:c.length)}}}else d={};return d;default:return{};}} ;var L1a=l(ip({},void 0,"pdraF")),M1a=L1a.next().value,N1a=L1a.next().value,O1a=new Map;function P1a(a){if(a&&(a=a.split(":"),a.length>1))return a[0].length>0?a[0]:void 0} function Q1a(a){if(a&&!O1a.has(a)){var b=P1a(a);b&&O1a.set(a,b)}} function R1a(a,b,c){var d=Object.assign({},M1a());if(b&&c==="LIST_ITEM_SELECTION_STYLE_RADIO"){var e=P1a(a);e&&O1a.forEach(function(f,h){f===e&&h!==a&&(d[h]=!1)})}d[a]=b; N1a(d)} ;var QLa=PLa.getInstance();var T1a=O(function(a){var b=Hu(a,{checked:!1,disabled:!1});a=b.name;var c=b.onChange,d=b.onClick,e=b.checked,f=b.labelRenderable,h=b.hasLeadingLabel,m=b.labelClass,p=b.isCompact,q=b.selectElementClass,t=b.disableHorizontalPadding,u=b.horizontalPadding;b=b.disabled;var v="checkbox"+Kw(),w=FC(function(C){d==null||d(C);return!1}),y=FC(function(C){c==null||c(C); return!1}),A={}; return D("checkbox-shape",null,D("label",{class:U("ytCheckboxShapeHost",m,(A.ytCheckboxShapeHostCompact=p,A.ytCheckboxShapeDisableHorizontalPadding=t,A)),style:GC({"padding-left":u,"padding-right":u})},D("input",{class:"ytCheckboxShapeInput",id:v,checked:e,name:a,type:"checkbox",disabled:b,"prop:checked":e,"on:change":y,"on:click":w}),D(P,{cond:function(){return!(h==null?0:h())}, then:function(){return D(S1a,{isLeading:!0,selectElementClass:q})}}),D(P,{cond:function(){return!!f}, then:function(){return D("div",{class:"ytCheckboxShapeLabel"},f==null?void 0:f())}}),D(P,{cond:h, then:function(){return D(S1a,{isLeading:!1,selectElementClass:q})}})))},"T"); T1a.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var S1a=O(function(a){var b=a.selectElementClass;a={};return D("div",{class:U("ytCheckboxShapeCheckbox",b,(a.ytCheckboxShapeCheckboxDefaultStyle=function(){return!(b==null?0:b())},a)), "aria-hidden":"true"},D(aC,{icon:x("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),D(aC,{icon:x("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"U");var U1a=new Bn("SEMANTIC_LAYOUT_RESOLVER_TOKEN");function OD(a){var b=PD();return V1a(a,b)} function PD(){var a=Fn().resolve(Cn(U1a)),b=l(ip(a,void 0,"zLIYRc")),c=b.next().value;b=b.next().value;a||Gn(U1a,b);return c} function V1a(a,b){return Vo(function(){var c=a(),d;return c?(d=b())==null?void 0:d(c):void 0},void 0,"eQxhmb")} ;var QD=O(function(a){var b=a.name;var c=a.onChange;var d=a.onClick;var e=a.checked;var f=a.labelRenderable;var h=a.useCheckIcon;var m=a.hasLeadingLabel;var p=a.labelClass;var q=a.isCompact;var t=a.selectElementClass;var u=a.ariaLabel;var v=a.className;var w=a.disabled;var y=a.horizontalPadding;var A=a.verticalPadding;a="radio"+Kw();var C=sw("input"),I=x("enable_ios_webview_radio_button_responsiveness"),K=FC(function(Aa){C.value.checked=!(e==null||!e());c==null||c(Aa);return!1}),N=FC(function(Aa){d== null||d(Aa); return!1}),L=l(ip(!1,void 0,"GelVVb")),R=L.next().value,W=L.next().value; L=FC(function(){var Aa;((Aa=Fn().resolve(Cn(tD)))==null?0:Aa.keyboardInUse)&&W(!0)}); var S=FC(function(){W(!1)}),Y={},da={}; return D("radio-shape",{class:U("ytRadioShapeHost",v)},D("input",{el:C,class:U("ytRadioShapeInput",(Y.ytRadioShapeTappable=function(){return(!!c||!!d)&&!(w==null?0:w())},Y)), id:a,"prop:checked":e,name:b,type:"radio",disabled:w,"on:change":K,"on:click":N,"aria-label":u,"on:focusin":L,"on:focusout":S}),D("label",{class:U("ytRadioShapeLabelContainer",p,(da.ytRadioShapeCompact=q,da.ytRadioShapeKeyboardFocused=R,da.ytRadioShapeTappable=function(){return(!!c||!!d)&&!(w==null?0:w())},da.ytRadioShapeDisabled=w,da)), for:a},D(P,{cond:function(){return!(m==null?0:m())}, then:function(){return D(W1a,{checked:e,useCheckIcon:h,isLeading:!0,selectElementClass:t,usePassthrough:I})}}),D(P,{cond:function(){return!!f}, then:function(){var Aa={};return D("div",{class:U("ytRadioShapeLabel",(Aa.ytRadioShapeEventPassthrough=I,Aa)),"aria-hidden":function(){return!(u==null||!u())}, style:GC({"padding-left":y,"padding-right":y,"padding-top":A,"padding-bottom":A})},f==null?void 0:f())}}),D(P,{cond:m, then:function(){return D(W1a,{checked:e,useCheckIcon:h,isLeading:!1,selectElementClass:t,usePassthrough:I})}})))},"V"); QD.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var W1a=O(function(a){var b=a.useCheckIcon;var c=a.selectElementClass;a=a.usePassthrough;var d=x("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE",e=x("enable_web_delhi_icons")?"CIRCLE_FULL":d,f={};return D("div",{class:U("ytRadioShapeRadio",c,(f.ytRadioShapeCheckIcon=b,f.ytRadioShapeRadioDefaultStyle=function(){return!(c==null?0:c())},f.ytRadioShapeEventPassthrough=a,f)), "aria-hidden":"true"},D(aC,{icon:function(){return(b==null?0:b())?"CHECK":d}}),D(aC,{icon:function(){return(b==null?0:b())?"CHECK":e}, active:function(){return!(b==null?0:b())}}))},"W");function X1a(a,b){return function(c){var d=function(e){ID(HD(e),c,b)||a(e)}; c.addEventListener("click",d);return function(){c.removeEventListener("click",d)}}} ;function Y1a(a){return function(){return z(a(),dy)}} ;function Z1a(a,b){return function(c){var d=Object.keys(b);lw(function(){if(a!=null&&a()){for(var e=l(d),f=e.next();!f.done;f=e.next())f=f.value,c.addEventListener(f,b[f]);zp(function(){for(var h=l(d),m=h.next();!m.done;m=h.next())m=m.value,c.removeEventListener(m,b[m])})}},"bXZGfe")}} ;var $1a=O(function(a){function b(Qa){Qa.stopPropagation();var Bb=c().entityKey,dc=W().isSelected;if(Bb&&da()){if(W().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"&&dc)return;R1a(Bb,!dc,W().selectionStyle)}f?f(Qa):(Qa=LD(W().rendererContext),Bb=Fn().resolve(JB),Qa&&Bb&&Bb.resolveCommand(Qa))} var c=a.data;var d=a.isMenuItem;var e=a.isCompact;var f=a.onTap;var h=a.trailingAccessory;var m=a.hideSelectionTextChevron;var p=a.disabled;var q=a.inPopup;var t=a.disableHorizontalPadding;var u=a.isOverlay;var v=a.isToggled;var w=a.ariaLabel;var y=a.ariaPressed;var A=a.shouldNotFillIcon;var C=a.clientStateOverrides;var I=!x("web_enable_killswitch_for_selectable_list_item_on_tap_fix"),K=!x("web_enable_killswitch_for_skip_child_tags"),N=OD(function(){return c().horizontalPaddingToken}),L=function(){return(t== null?void 0:t())||c().disableHorizontalPadding},R=function(){var Qa; return!((Qa=c())==null||!Qa.entitySelectorType)},W=Vo(function(){var Qa=c(),Bb=C(),dc=R()?Object.assign({},Qa,Bb.data):Qa; dc.selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"&&Q1a(dc.entityKey);var Nb=dc.entityKey;Qa=Nb?M1a()[Nb]:void 0;Bb=!!dc.isSelected;var Lc=Qa!==void 0?Qa:Bb;Nb&&dc.selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"&&Bb&&Qa===void 0&&queueMicrotask(function(){R1a(Nb,!0,dc.selectionStyle)}); return Object.assign({},dc,{isSelected:Lc})},void 0,"cEn0ec"),S=function(){return!!W().isDisabled||!(p==null||!p())},Y=Y1a(function(){return W().rendererContext}),da=function(){return!(!W().selectionStyle||W().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},Aa=function(){return(KD(W().rendererContext)||f)&&!da()},Sa=function(){return KD(W().rendererContext)||!!f||da()}; a={};var Ua=U("ytListItemViewModelContainer",(a.ytListItemViewModelTappable=Sa,a.ytListItemViewModelActionTypography=x("web_enable_list_item_action_typography"),a.ytListItemViewModelCompact=e,a.ytListItemViewModelInPopup=q,a.ytListItemViewModelDisableHorizontalPadding=function(){return(L==null?void 0:L())&&da()},a)),qb=function(){return W().leadingImage||W().leadingAccessory},ab=U("ytListItemViewModelImageContainer",function(){return qb()?"ytListItemViewModelTrailing":"ytListItemViewModelLeading"}); a=FC(function(Qa){if(!K||!["A".toString(),"BUTTON".toString()].includes(Qa.target.tagName))if(Qa.key==="Enter"||da()&&Qa.key===" ")Qa.preventDefault(),Qa.currentTarget.click()}); var La=l(ip(!1,void 0,"UDcZeb")),ib=La.next().value,sb=La.next().value,Oa=function(){var Qa;if(Qa=x("web_button_or_anchor_list_item")&&(Aa==null?void 0:Aa()))Qa=c(),Qa=!(Qa.trailingLabel||Qa.selectionText);return Qa},Ca=function(){return D(J1a,{data:W, hideSelectionTextChevron:m,TrailingAccessory:h,isToggled:v,disabled:p,isSelectItem:da,isCompact:e,inPopup:q,disableHorizontalPadding:L,horizontalPadding:N,isTappableWithoutSelect:Aa,useButtonOrAnchor:Oa,onTap:f,shouldNotFillIcon:A})},eb=function(){if(d==null?0:d()){var Qa=W().selectionStyle; return Qa==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"?"menuitemcheckbox":Qa==="LIST_ITEM_SELECTION_STYLE_RADIO"||Qa==="LIST_ITEM_SELECTION_STYLE_DEFAULT"?"menuitemradio":"menuitem"}return"listitem"}; La={};return D("yt-list-item-view-model",{el:dB(MD(function(){return S()?void 0:W().rendererContext},void 0,void 0,x("web_button_or_anchor_list_item")?["A".toString(), "BUTTON".toString()]:[]),X1a(function(Qa){var Bb;!(Bb=S())&&(Bb=I)&&(Bb=W().selectionStyle,Bb=Bb==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"||Bb==="LIST_ITEM_SELECTION_STYLE_RADIO"||Bb==="LIST_ITEM_SELECTION_STYLE_DEFAULT"||Bb==="LIST_ITEM_SELECTION_STYLE_TOGGLE");if(!Bb)if(da())b(Qa);else{var dc;(dc=f)==null||dc(Qa)}},K?["A".toString(), "BUTTON".toString()]:[]),Z1a(function(){return Aa==null?void 0:Aa()},{focusin:function(){var Qa; ((Qa=Fn().resolve(Cn(tD)))==null?0:Qa.keyboardInUse)&&sb(!0)}, focusout:function(){sb(!1)}})), class:U("ytListItemViewModelHost",(La.ytListItemViewModelIsOverlay=u,La.ytListItemViewModelKeyboardFocused=ib,La.ytListItemViewModelHidden=function(){return R()?C().isHidden:!1},La)), role:eb,tabindex:function(){var Qa=f;var Bb=Aa(),dc=Sa();Qa=Oa()?void 0:x("web_enable_killswitch_tabindex_fix")?Qa||Bb?0:void 0:dc?0:void 0;return Qa}, "on:keydown":a,"aria-label":function(){var Qa;return(w==null?void 0:w())||((Qa=Y())==null?void 0:Qa.label)}, "aria-checked":function(){var Qa=eb();return Qa==="menuitemcheckbox"||Qa==="menuitemradio"?W().isSelected:void 0}, "aria-pressed":function(){return(d==null?0:d())||da()?void 0:y==null?void 0:y()}},D(P,{cond:da, then:function(){return D(pw,null,D(jw,{when:function(){return W().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return D(T1a,{labelRenderable:Ca, isCompact:e,checked:function(){return!!W().isSelected}, hasLeadingLabel:function(){return!!qb()}, labelClass:Ua,selectElementClass:ab,disableHorizontalPadding:L,horizontalPadding:N,onClick:I?b:void 0,disabled:S})}),D(jw,{when:function(){return W().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return D(QD,{labelRenderable:Ca, isCompact:e,checked:function(){return!!W().isSelected}, hasLeadingLabel:function(){return!!qb()}, labelClass:Ua,selectElementClass:ab,onClick:I?b:void 0,disabled:S})}),D(jw,{when:function(){return W().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return D(QD,{labelRenderable:Ca, isCompact:e,checked:function(){return!!W().isSelected}, hasLeadingLabel:function(){return!!qb()}, labelClass:Ua,selectElementClass:ab,useCheckIcon:!0,onClick:I?b:void 0,disabled:S})}),D(kw,null,Ca))}, else:Ca}))},"Y"),a2a=O(function(a){var b=Vo(function(){return K1a(a.data())},void 0,"FWHYU"); return D($1a,Object.assign({},a,{clientStateOverrides:b}))},"Z"),RD=O(function(a){return D(P,{cond:function(){var b; return!((b=a.data())==null||!b.entitySelectorType)}, then:function(){return D(a2a,Object.assign({},a))}, else:function(){return D($1a,Object.assign({},a,{clientStateOverrides:function(){return{}}}))}})},"$"); RD.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};function b2a(a,b,c,d,e){a=b?a.switchOffCommand:a.switchOnCommand;if(d&&e)c2a(a,c,e);else{var f,h;(f=NB({elementsCommand:a}))==null||(h=f.onclick)==null||h.call(f,c)}} function c2a(a,b,c){a=NB({elementsCommand:a,additionalCommandArgs:{commandController:{onSuccess:function(){c(!1)}, onServerError:function(){c(!1)}}}}); if(a==null?0:a.onclick)a.onclick(b),c(!0)} function d2a(a){if(a)return z(a,RPa)} ;var SD=O(function(a){var b=a.data;var c=a.onTap;var d=a.onSwitch;var e=a.overrideDisabled;var f=a.disableHorizontalPadding;var h=a.disableFormsApiMode;var m=rD(function(){return b().formFieldMetadata}); a=l(Gu(function(){var A;return((A=d2a(w()))==null?void 0:A.switchedOnByDefault)||!1})); var p=a.next().value,q=a.next().value;a=l(ip(!1,void 0,"DAypA"));var t=a.next().value,u=a.next().value,v=function(){if((!b().formFieldMetadata||h!=null&&h()?1:3)===3){var A;return((A=m())==null?void 0:A.value)||!1}return p()},w=function(){var A; if(!(A=b().switchButton)){var C=b();A=e==null?void 0:e();C={switchOnCommand:C.switchOnCommand,switchOffCommand:C.switchOffCommand,switchedOnByDefault:C.switchedOnByDefault,isDisabled:C.isDisabled,a11yLabelSwitchedOn:C.a11yLabelSwitchedOn,a11yLabelSwitchedOff:C.a11yLabelSwitchedOff};A!==void 0&&(C.isDisabled=A);A={switchButtonViewModel:C}}return A},y=function(A){var C=d2a(w()); if(!(!C||C.isDisabled||b().ignoreTapUntilCommandCompletes&&t())){c==null||c(A);b2a(C,v(),A,b().ignoreTapUntilCommandCompletes,u);if((!b().formFieldMetadata||h!=null&&h()?1:3)===3){var I;(I=m())==null||I.updateValue(!v())}else q(!v());d==null||d(v())}}; return D("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},D(RD,{data:function(){return{title:b().title,subtitle:b().attributedSubtitle,leadingImage:b().leadingImage,leadingAccessory:b().leadingAccessory,isDisabled:b().isDisabled}}, onTap:y,isToggled:v,shouldNotFillIcon:!0,trailingAccessory:function(){return D(OC,{data:w},{switchButtonViewModel:function(A){return D(q1a,{data:A.data,parentActive:v,onTap:y})}})}, disableHorizontalPadding:f}))},"aa");bB(SD,"switch-list-item-view-model",{props:{data:$A,onTap:aB,onSwitch:aB,overrideDisabled:$A,disableHorizontalPadding:$A,disableFormsApiMode:$A}});bB(RD,"yt-list-item-view-model",{props:{data:$A,isMenuItem:$A,isCompact:$A,onTap:aB,trailingAccessory:aB,hideSelectionTextChevron:$A,disabled:$A,inPopup:$A,disableHorizontalPadding:$A,horizontalPadding:$A,isOverlay:$A,isToggled:$A,ariaLabel:$A,ariaPressed:$A,shouldNotFillIcon:$A}});var TD=function(){return E.apply(this,arguments)||this}; k(TD,E);g=TD.prototype; g.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{menuNavigationItemRenderer:{component:"ytd-menu-navigation-item-renderer",properties:{useIcons:"[[useIcons]]"}},menuServiceItemRenderer:{component:"ytd-menu-service-item-renderer",properties:{useIcons:"[[useIcons]]"}},menuConditionalNavigationItemRenderer:{component:"ytd-menu-navigation-item-renderer",properties:{useIcons:"[[useIcons]]"}},menuConditionalServiceItemRenderer:{component:"ytd-menu-service-item-renderer",properties:{useIcons:"[[useIcons]]"}}, toggleMenuServiceItemRenderer:{component:"ytd-toggle-menu-service-item-renderer",properties:{useIcons:"[[useIcons]]"}},listItemViewModel:{component:"yt-list-item-view-model",params:{isCompact:!0}},switchListItemViewModel:{component:"switch-list-item-view-model"},menuCustomIconItemRenderer:{component:"ytd-menu-custom-icon-item-renderer"},menuServiceItemDownloadRenderer:{component:"ytd-menu-service-item-download-renderer"},clientSideToggleMenuItemRenderer:{component:"yt-live-chat-toggle-renderer"}}}, "data.footer":{id:"footer",mapping:{menuPopupTipRenderer:"ytd-menu-popup-tip-renderer"}}}}; g.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")}; g.computeAriaLabel=function(a){return a}; g.onPopupOpened=function(){this.items.selected=0;for(var a=l(wt(this.items).children),b=a.next();!b.done;b=a.next())b.value.popupPositionTarget=this.positionTarget;if(a=this.popupTip||void 0)a.setTip(this.source||""),this.source=void 0;this.veData&&(a=Tv())&&vz(a,[this.veData])}; g.onPopupClosed=function(){var a=this.popupTip||void 0;a&&a.clearTip()}; g.onIronActivate=function(a){this.shouldPersist(a)||Xu(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(a=Tv())&&xz(a,this.veData)}; g.shouldPersist=function(a){var b,c;if(((b=a.detail)==null?void 0:b.selected)===void 0||(c=this.data)==null||!c.items)return!1;var d,e;return!((e=(d=this.data.items[a.detail.selected])==null?void 0:d.toggleMenuServiceItemRenderer)==null||!e.persistentOnMenuPopup)}; g.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(a){return a.menuNavigationItemRenderer?!!a.menuNavigationItemRenderer.icon:a.menuServiceItemRenderer?!!a.menuServiceItemRenderer.icon:a.menuConditionalServiceItemRenderer?!!a.menuConditionalServiceItemRenderer.icon:a.menuConditionalNavigationItemRenderer?!!a.menuConditionalNavigationItemRenderer.icon:a.toggleMenuServiceItemRenderer?!!a.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1}; TD.prototype.onPopupClosed=TD.prototype.onPopupClosed;TD.prototype.onPopupOpened=TD.prototype.onPopupOpened;n([F(WC.YtEventForwardingBehavior),r("design:type",Object)],TD.prototype,"ytEventForwardingBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],TD.prototype,"ytRendererstamperBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],TD.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],TD.prototype,"data",void 0); n([M(),r("design:type",Object)],TD.prototype,"veData",void 0);n([M({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),r("design:type",String)],TD.prototype,"ariaLabel",void 0);n([M({computed:"computeUseIcons(data)",reflectToAttribute:!0}),r("design:type",Boolean)],TD.prototype,"useIcons",void 0);n([Tt("#items"),r("design:type",Object)],TD.prototype,"items",void 0); n([Tt("ytd-menu-popup-tip-renderer"),r("design:type",Object)],TD.prototype,"popupTip",void 0);n([Kt("yt-popup-opened"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],TD.prototype,"onPopupOpened",null);n([Kt("yt-popup-closed"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],TD.prototype,"onPopupClosed",null);n([gu({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],TD); Tu(TD,"ytd-menu-popup-renderer",function(){if(f0a!==void 0)return f0a;var a=document.createElement("template");Q(a,"\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return f0a=a},{mode:1});function UD(a,b,c,d){return window.spf?e2a(a,b,c,d===void 0?!1:d):f2a(a,b)} function e2a(a,b,c,d){var e=null,f=new uj(function(m,p){var q={};if(b){q.method=b.method;var t=b.postParams||{};Pma(a,b)&&(t[Vk("XSRF_FIELD_NAME")]=Vk("XSRF_TOKEN"));q.postData=Zc(t);b.type&&(q.type=b.type);t=b.headers}q.headers=Mma(a,t);x("debug_forward_web_query_parameters")&&(a=Nma(a,window.location.search));q.experimental_headers=q.headers;q.onError=function(u){u.err&&u.xhr&&(u.err.params={url:u.xhr.responseURL,response:u.xhr.responseText.substr(0,64)});p(u.err)}; q.onPartDone=function(u){c&&c.call(null,u.part)}; q.onDone=function(u){var v=g2a(u.response,"xsrf_token");Yc(window.location.href,a)&&v&&Uk("XSRF_TOKEN",v);if(v=g2a(u.response,"service_worker_killswitch"))Uk("SERVICE_WORKER_KILLSWITCH",v),tRa();m(u.response)}; e=spf.request(a,q)}),h=f.then(h2a); h.thenCatch(function(m){var p=m instanceof Aj;d&&p&&f.cancel("canceled requestPromise");var q=m&&m.hasOwnProperty("params")&&m.params.response?m.params.response:"";m instanceof Error&&(q?p?mo(m):q===")]}'\n{\"reload\":\"now\"}"?mo(m):(i2a(m,a,q),j2a(m,q)?fo(m):co(m)):mo(m));e&&e.abort()}); return h} function h2a(a){if(a.type==="multipart"){var b=a.timing;a=a.parts.reduce(function(c,d){Object.assign(c,d);return c},{}); a.timing=a.timing||{};Object.assign(a.timing,b);a.type="reduced"}return a} function f2a(a,b){b=b===void 0?{}:b;var c=null,d=new uj(function(e,f){b.onFinish=function(h){if(h.readyState===XMLHttpRequest.DONE)if(h.status===200){if(h.responseType!=="json"){var m=h.response;m.substring(0,5)===")]}'\n"&&(m=m.substring(5));try{var p=JSON.parse(m)}catch(q){p=q}}else p=h.response;p instanceof Error?f(p):(m=g2a(p,"xsrf_token"),Yc(window.location.href,a)&&m&&Uk("XSRF_TOKEN",m),h=h.responseURL,window.performance&&window.performance.getEntriesByName?(m=window.performance.getEntriesByName(h).pop())? h={responseStart:im()-(m.responseEnd-m.responseStart)}:(Math.random()<.01&&(m=Error("No timing found"),m.params=h,fo(m)),h={responseStart:-1}):h={responseStart:0},p.timing=p.timing||{},Object.assign(p.timing,h),e(p))}else f(Error("HTTP error: "+h.status))}; (c=nl(a,b))||f(Error("HTTP error: "+c.status))}); d.thenCatch(function(e){e instanceof Error&&(i2a(e,a),j2a(e)&&(e.level="WARNING"))}); x("cancel_pending_navs")&&d.thenCatch(function(){c.abort()}); return d} function g2a(a,b){var c=a[b],d=a.parts;a.type==="multipart"&&d&&(c=(a=d.find(function(e){return b in e}))&&a[b]); return c} function i2a(a,b,c){var d=a.message||"";b={original:d,url:b};if(c)if(d=d.match(/position:?\s*(\d+)/)){d=d&&Number(d[1])?Number(d[1]):0;var e=Math.max(d-25,0);b.position=d;b.response=c.substring(e,d+25)}else b.response=c.substring(0,50);go(a,b);try{a.message="JSON parse error"}catch(f){}} function j2a(a,b){a=a.message||"";a=!!(a.indexOf("<")>=0||a.indexOf("end of ")>=0||a.indexOf("Unterminated string")>=0||a.indexOf("Unexpected EOF"));if(!a&&b)for(var c=b.length,d=!1,e=0;e");a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);yRa=a}a=yRa;return a},{mode:0});var m2a=function(a){if(a.altKey&&!a.ctrlKey||a.metaKey||a.keyCode>=112&&a.keyCode<=123)return!1;if(l2a(a.keyCode))return!0;switch(a.keyCode){case 18:case 20:case 93:case 17:case 40:case 35:case 27:case 36:case 45:case 37:case 224:case 91:case 144:case 12:case 34:case 33:case 19:case 255:case 44:case 39:case 145:case 16:case 38:case 252:case 224:case 92:return!1;case 0:return!zd;default:return a.keyCode<166||a.keyCode>183;}},l2a=function(a){if(a>=48&&a<=57||a>=96&&a<=106||a>=65&&a<=90||Ad&&a==0)return!0; switch(a){case 32:case 43:case 63:case 64:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:case 163:case 58:return!0;case 173:case 171:return zd;default:return!1;}},n2a=function(a){switch(a){case 61:return 187; case 59:return 186;case 173:return 189;case 224:return 91;case 0:return 224;default:return a;}},o2a=function(a){switch(a){case 93:return 91; default:return a;}};var p2a=Vw({entities:kUa}),q2a=new bA(p2a);var hE=function(){return kt.apply(this,arguments)||this}; k(hE,kt);ba.Object.defineProperties(hE.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return q2a}}}); n([Vt()],hE);var iE=[bu.prototype,hE.prototype];var r2a;var s2a;var t2a={}; t2a.YtTappableItemBehavior=[{properties:{tappableItemBehaviorTapEnabled:{type:Boolean,value:!1,observer:"tappableItemBehaviorOnTapEnabledChanged_"}},observers:["tappableItemBehaviorOnTapChanged_(data.onTap)"],listeners:{"yt-commerce-action-init-done":"tappableItemBehaviorOnServiceRequestFinished_","yt-service-request-error":"tappableItemBehaviorOnServiceRequestFinished_","yt-commerce-action-done":"tappableItemBehaviorOnServiceRequestFinished_"},created:function(){this.tappableItemBehaviorTargetId=""; this.tappableItemBehaviorBoundOnTappableItemKeyDown_=this.tappableItemBehaviorOnTappableItemKeyDown_.bind(this);this.tappableItemBehaviorBoundOnTappableItemTap_=this.tappableItemBehaviorOnTappableItemTap_.bind(this)}, attached:function(){this.tappableItemBehaviorGetTappableTarget_().addEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().addEventListener("click",It(this,this.tappableItemBehaviorBoundOnTappableItemTap_))}, detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",It(this,this.tappableItemBehaviorBoundOnTappableItemTap_))}, tappableItemBehaviorOnTappableItemKeyDown_:function(a){!this.tappableItemBehaviorTapEnabled||a.keyCode!==13&&a.keyCode!==32||a.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()}, tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()}, tappableItemBehaviorHandleTappableItemTap_:function(){var a=this.data.onTap;a.ypcGetCartEndpoint?($u(this.hostElement,[a]),this.tappableItemBehaviorTapEnabled=!1):a.ypcOffersEndpoint?$u(this.hostElement,[a]):Zu(this.hostElement,[a],this.hostElement)}, tappableItemBehaviorOnTapChanged_:function(a){this.tappableItemBehaviorTapEnabled=!!a}, tappableItemBehaviorOnTapEnabledChanged_:function(){var a=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(a.setAttribute("tabIndex",0),a.setAttribute("role","button")):(a.removeAttribute("tabIndex"),a.removeAttribute("role"))}, tappableItemBehaviorOnServiceRequestFinished_:function(a){a.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)}, tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var jE={};function kE(a,b,c){jE[a]||(jE[a]={});jE[a][b]=c} function u2a(){jE.sharingToggleButtonAndDefaultButton||(jE.sharingToggleButtonAndDefaultButton={});return jE.sharingToggleButtonAndDefaultButton} ;var v2a=la(["top-"]),w2a=la(["bottom-"]),x2a=la(["left-"]),y2a=la(["right-"]),lE={},z2a=function(a,b,c){a.removeAttribute("top-"+c);a.removeAttribute("bottom-"+c);a.removeAttribute("left-"+c);a.removeAttribute("right-"+c);b&&(b.top&&nc([Ah(v2a)],a,"top-"+c,b.top),b.bottom&&nc([Ah(w2a)],a,"bottom-"+c,b.bottom),b.left&&nc([Ah(x2a)],a,"left-"+c,b.left),b.right&&nc([Ah(y2a)],a,"right-"+c,b.right))}; lE.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""}, cardItemContainerMarginChanged_:function(a){var b,c=wt((b=this.hostElement)!=null?b:this),d;b=this.cardItemBoxBehaviorMarginTargetId&&c?c.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(d=this.hostElement)!=null?d:this;z2a(b,a,"margin")}, cardItemContainerPaddingChanged_:function(a){var b,c=wt((b=this.hostElement)!=null?b:this),d;b=this.cardItemBoxBehaviorPaddingTargetId&&c?c.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(d=this.hostElement)!=null?d:this;z2a(b,a,"padding")}}];var A2a={};function mE(a){return A2a[a.replace("YT_SYS_COLOR_BASELINE_REFERENCE_","")]} ;var nE={CARD_ITEM_COLOR_GENERAL_BACKGROUND_A:mE("YT_SYS_COLOR_BASELINE_REFERENCE_BASE_BACKGROUND")||"var(--yt-base-background)",CARD_ITEM_COLOR_GENERAL_BACKGROUND_B:mE("YT_SYS_COLOR_BASELINE_REFERENCE_BASE_BACKGROUND")||"var(--yt-base-background)",CARD_ITEM_COLOR_BRAND_BACKGROUND_SOLID:mE("YT_SYS_COLOR_BASELINE_REFERENCE_RAISED_BACKGROUND")||"var(--yt-sys-color-baseline--raised-background)",CARD_ITEM_COLOR_ERROR_BACKGROUND:mE("YT_SYS_COLOR_BASELINE_REFERENCE_INVERTED_BACKGROUND")||"var(--yt-sys-color-baseline--inverted-background)", CARD_ITEM_COLOR_TEXT_PRIMARY:mE("YT_SYS_COLOR_BASELINE_REFERENCE_TEXT_PRIMARY")||"var(--yt-sys-color-baseline--text-primary)",CARD_ITEM_COLOR_TEXT_SECONDARY:mE("YT_SYS_COLOR_BASELINE_REFERENCE_TEXT_SECONDARY")||"var(--yt-sys-color-baseline--text-secondary)",CARD_ITEM_COLOR_TEXT_DISABLED:mE("YT_SYS_COLOR_BASELINE_REFERENCE_TEXT_DISABLED")||"var(--yt-sys-color-baseline--text-disabled)",CARD_ITEM_COLOR_CALL_TO_ACTION:mE("YT_SYS_COLOR_BASELINE_REFERENCE_CALL_TO_ACTION")||"var(--yt-sys-color-baseline--call-to-action)", CARD_ITEM_COLOR_ICON_INACTIVE:mE("YT_SYS_COLOR_BASELINE_REFERENCE_TEXT_PRIMARY")||"var(--yt-sys-color-baseline--text-primary)",CARD_ITEM_COLOR_ICON_DISABLED:mE("YT_SYS_COLOR_BASELINE_REFERENCE_TEXT_DISABLED")||"var(--yt-sys-color-baseline--text-disabled)",CARD_ITEM_COLOR_BRAND_ICON_ACTIVE:mE("YT_SYS_COLOR_BASELINE_REFERENCE_TEXT_PRIMARY")||"var(--yt-sys-color-baseline--text-primary)",CARD_ITEM_COLOR_BRAND_ICON_INACTIVE:mE("YT_SYS_COLOR_BASELINE_REFERENCE_TEXT_PRIMARY")||"var(--yt-sys-color-baseline--text-primary)", CARD_ITEM_COLOR_10_PERCENT_LAYER:mE("YT_SYS_COLOR_BASELINE_REFERENCE_OUTLINE")||"var(--yt-sys-color-baseline--outline)",CARD_ITEM_COLOR_TEXT_PRIMARY_INVERSE:mE("YT_SYS_COLOR_BASELINE_REFERENCE_TEXT_PRIMARY_INVERSE")||"var(--yt-sys-color-baseline--text-primary-inverse)",CARD_ITEM_COLOR_ICON_ACTIVE_OTHER:mE("YT_SYS_COLOR_BASELINE_REFERENCE_TEXT_PRIMARY")||"var(--yt-sys-color-baseline--text-primary)",CARD_ITEM_COLOR_THEMED_GREEN:mE("YT_SYS_COLOR_BASELINE_REFERENCE_THEMED_GREEN")||"var(--yt-sys-color-baseline--themed-green)", CARD_ITEM_COLOR_ERROR_INDICATOR:mE("YT_SYS_COLOR_BASELINE_REFERENCE_ERROR_INDICATOR")||"var(--yt-sys-color-baseline--error-indicator)"};var B2a;var C2a;var oE={};oE.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var D2a;var E2a;var pE=ua.caches,qE,F2a,rE=function(){}; rE.prototype.open=function(a){return pE.open(G2a(a))}; rE.prototype.has=function(a){return pE.has(G2a(a))}; rE.prototype.delete=function(a){return pE.delete(G2a(a))}; rE.prototype.match=function(a,b){var c=this,d,e,f,h,m,p;return ra(function(q){switch(q.nextAddress){case 1:return q.yield(c.keys(),2);case 2:d=q.yieldResult,e=l(d),f=e.next();case 3:if(f.done){q.jumpTo(5);break}h=f.value;return q.yield(c.open(h),6);case 6:return m=q.yieldResult,q.yield(m.match(a,b),7);case 7:if(p=q.yieldResult)return q.return(p);f=e.next();q.jumpTo(3);break;case 5:return q.return();}})}; var H2a=function(){}; k(H2a,rE);var G2a=function(a){if(a.includes(":"))throw Error("Invalid user cache name: "+a);return a+":"+Fl("CacheStorage get")}; H2a.prototype.keys=function(){var a,b,c,d,e,f,h,m,p;return ra(function(q){if(q.nextAddress==1)return a=[],b=Fl("CacheStorage keys"),q.yield(pE.keys(),2);c=q.yieldResult;d=l(c);for(e=d.next();!e.done;e=d.next()){f=e.value;var t=f.indexOf(":");h=t===-1?{originalName:f}:{originalName:f.substring(0,t),datasyncId:f.substring(t+1)};m=h.originalName;p=h.datasyncId;p===b&&a.push(m)}return q.return(a)})}; function I2a(){return ra(function(a){if(qE!==void 0)return a.return(qE);qE=new Promise(function(b){var c;return ra(function(d){switch(d.nextAddress){case 1:return d.setCatchFinallyBlocks(2),d.yield(pE.open("test-only"),4);case 4:return d.yield(pE.delete("test-only"),5);case 5:d.leaveTryBlock(3);break;case 2:if(c=d.enterCatchBlock(),c instanceof Error&&c.name==="SecurityError")return b(!1),d.return();case 3:b("caches"in window),d.jumpToEnd();}})}); return a.return(qE)})} function J2a(){return ra(function(a){if(a.nextAddress==1)return a.yield(I2a(),2);if(!a.yieldResult)return a.return(void 0);F2a||(F2a=new H2a);return a.return(F2a)})} ;function sE(a){var b,c,d,e;return ra(function(f){switch(f.nextAddress){case 1:return f.yield(J2a(),2);case 2:b=f.yieldResult;if(!b)throw Error("Cache API not supported");return f.yield(b.open("yt-player-local-img"),3);case 3:return c=f.yieldResult,f.yield(c.match(a),4);case 4:d=f.yieldResult;if(!d)throw Error("Did not find image in cache");return f.yield(d.blob(),5);case 5:return e=f.yieldResult,f.return(e);}})} ;var tE=function(){var a=E.apply(this,arguments)||this;a.empty_=!0;a.loadTime=Infinity;a.pendingPaint=!1;a.hasChange_=!1;a.oldThumbnail_=null;a.oldDelayedSrc_="";a.objectURL_=null;return a}; k(tE,E);g=tE.prototype;g.attached=function(){this.hasChange_&&this.thumbnailChanged_()}; g.ready=function(){var a=this.shouldShowPlaceholder_();Ct(this.hostElement,"no-transition",!0);a&&this.hostElement.classList.add("with-placeholder")}; g.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)}; g.isThumbPreloaded_=function(a){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",a)}; g.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||K2a}; g.computeThumbnailSrc_=function(a){return a&&a.thumbnails?EB(a.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null}; g.computeAlt_=function(){var a=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&a||""}; g.thumbnailChanged_=function(){var a=l([this.thumbnail,this.oldThumbnail_]),b=a.next().value;a=a.next().value;this.oldThumbnail_=b;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(a=this.computeThumbnailSrc_(a),this.computeThumbnailSrc_(b)===a))return;x("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(b)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):b&&Vk("DISABLE_YT_IMG_DELAY_LOADING", !1)?this.loaded&&!this.empty_?ms(this,this.onReload_):ms(this,this.onShow_):this.resetImage_();b&&(this.hostElement.style.opacity=""+b.opacity)}}; g.delayedSrcChanged_=function(){var a=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===a||this.resetImage_()}; g.setSrc_=function(a){a?(wt(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),wt(this.hostElement).querySelector("#img").src=a):(wt(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))}; g.resetImage_=function(){var a=this.hostElement;a.loaded=!1;a.loadTime=Infinity;var b=yXa.get(a);b&&(b.reject(Error("resetImageLoad")),yXa.delete(a));a.pendingPaint&&(CB.delete(a),a.pendingPaint=!1);this.empty_=!0;this.setSrc_(K2a);this.ytRendererBehavior.invalidate(!1)}; g.observePlaceholderColor_=function(){var a=this.thumbnail&&this.thumbnail.placeholderColor;a?this.hostElement.style.backgroundColor=Iy(a):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")}; g.onLoad_=function(){wt(this.hostElement).querySelector("#img").src&&wt(this.hostElement).querySelector("#img").src!==K2a&&(BXa(this.hostElement),this.notifyOnLoaded&&Gt(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))}; g.onError_=function(){var a=this;if(x("web_use_cache_for_image_fallback"))sE(wt(this.hostElement).querySelector("#img").src).then(function(b){a.objectURL_=Gb(b).toString();a.setSrc_(a.objectURL_)}).catch(function(){x("kevlar_woffle_fallback_image")&&a.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});else this.onLoad_()}; g.onPrescanVisible=function(){this.onShow_()}; g.onVisible=function(){if(x("yt_img_shadow_trigger_show_on_visible"))this.onShow_()}; g.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var a=this.computeSrc_();a!==wt(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(a))}}; g.onReload_=function(){this.empty_=!1;var a=this.computeSrc_();a!==wt(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(a))}; g.shouldShowPlaceholder_=function(){return x("kevlar_thumbnail_bg")}; tE.prototype.observePlaceholderColor_=tE.prototype.observePlaceholderColor_;tE.prototype.delayedSrcChanged_=tE.prototype.delayedSrcChanged_;tE.prototype.thumbnailChanged_=tE.prototype.thumbnailChanged_;n([M({reflectToAttribute:!0}),r("design:type",String)],tE.prototype,"alt",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],tE.prototype,"ariaHidden",void 0);n([M({reflectToAttribute:!0}),r("design:type",String)],tE.prototype,"ariaLabel",void 0); n([M({reflectToAttribute:!0}),r("design:type",Boolean)],tE.prototype,"hidden",void 0);n([M({reflectToAttribute:!0}),r("design:type",String)],tE.prototype,"id",void 0);n([F(oE.YtVisibilityBehavior),r("design:type",Object)],tE.prototype,"ytVisibilityBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],tE.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",String)],tE.prototype,"delayedSrc",void 0);n([M(),r("design:type",Object)],tE.prototype,"thumbnail",void 0); n([M({value:!1,reflectToAttribute:!0}),r("design:type",Boolean)],tE.prototype,"loaded",void 0);n([M(),r("design:type",Boolean)],tE.prototype,"notifyOnLoaded",void 0);n([M(),r("design:type",Number)],tE.prototype,"height",void 0);n([M(),r("design:type",Number)],tE.prototype,"width",void 0);n([M({value:function(){return"width"}}), r("design:type",String)],tE.prototype,"dimension",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],tE.prototype,"fit",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],tE.prototype,"fitHeight",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],tE.prototype,"fitWidth",void 0);n([M({reflectToAttribute:!0}),r("design:type",String)],tE.prototype,"objectFit",void 0);n([M({reflectToAttribute:!0}),r("design:type",String)],tE.prototype,"objectPosition",void 0); n([M(),r("design:type",String)],tE.prototype,"preferredThumbnail",void 0);n([M({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),r("design:type",String)],tE.prototype,"alt_",void 0);n([M({reflectToAttribute:!0}),r("design:type",String)],tE.prototype,"sharedTooltipText",void 0);n([M(),r("design:type",Boolean)],tE.prototype,"ftlEligible",void 0);n([M({value:void 0}),r("design:type",String)],tE.prototype,"observeHiddenOption",void 0); n([M({value:"observe_once"}),r("design:type",String)],tE.prototype,"observePrescanOption",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],tE.prototype,"roundedContainer",void 0);n([cu("thumbnail"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],tE.prototype,"thumbnailChanged_",null);n([cu("delayedSrc"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],tE.prototype,"delayedSrcChanged_",null); n([Lt("thumbnail.placeholderColor"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],tE.prototype,"observePlaceholderColor_",null);n([fu({is:"yt-img-shadow",disableElementRegistration:!0})],tE);var K2a=Vk("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"; Uu()(tE,"yt-img-shadow",function(){if(E2a===void 0){var a=document.createElement("template");Q(a,"");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;D2a===void 0&&(D2a=document.createElement("template"));var d=D2a;c.call(b,d.content.cloneNode(!0),a.content.firstChild);E2a=a}a=E2a;return a},{callbackProps:["onTap"], allowedProps:"alt ariaHidden ariaLabel delayedSrc dimension fit fitHeight fitWidth height hidden id loaded notifyOnLoaded objectFit objectPosition preferredThumbnail roundedContainer sharedTooltipText thumbnail width".split(" "),mode:2});var uE=function(){var a=E.apply(this,arguments)||this;a.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return a}; k(uE,E);uE.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")}; uE.prototype.handleDarkModeToggledAction_=function(a){this.isDarkTheme_=a}; uE.prototype.computeThemeImage_=function(a,b){if(!a||!a.imageLight)return!1;this.isCircular_=a.isCircular;a.imageWidth&&(this.hostElement.style.width=a.imageWidth+"px");a.imageHeight&&(this.hostElement.style.height=a.imageHeight+"px");a.borderWidth&&(this.image.style.borderWidth=a.borderWidth+"px",this.image.style.borderStyle="solid");a.borderColor&&(this.image.style.borderColor=Jy(a.borderColor));return b&&a.imageDark?a.imageDark:a.imageLight}; uE.prototype.computeThemeIcon_=function(a){var b,c;if(!(a==null?0:(b=a.themedIcon)==null?0:(c=b.icon)==null?0:c.iconType))return!1;this.icon.style.color=nE[a.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(a.imageWidth||18)+"px";this.icon.style.height=(a.imageHeight||18)+"px";return cz(a.themedIcon.icon.iconType)}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],uE.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],uE.prototype,"ytRendererstamperBehavior",void 0);n([F(lE.YtCardItemBoxBehavior),r("design:type",Object)],uE.prototype,"ytCardItemBoxBehavior",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],uE.prototype,"ytActionHandlerBehavior",void 0);n([M(),r("design:type",Object)],uE.prototype,"data",void 0); n([M({value:!1}),r("design:type",Boolean)],uE.prototype,"fit",void 0);n([M(),r("design:type",Boolean)],uE.prototype,"isDarkTheme_",void 0);n([M({computed:"computeThemeImage_(data, isDarkTheme_)"}),r("design:type",Object)],uE.prototype,"themeImage_",void 0);n([M({computed:"computeThemeIcon_(data)"}),r("design:type",Object)],uE.prototype,"themeIcon_",void 0);n([M({reflectToAttribute:!0,value:!1}),r("design:type",Object)],uE.prototype,"isCircular_",void 0); n([Tt("#image"),r("design:type",Object)],uE.prototype,"image",void 0);n([Tt("#icon"),r("design:type",Object)],uE.prototype,"icon",void 0);n([fu({is:"yt-themed-image-renderer",disableElementRegistration:!0})],uE); Tu(uE,"yt-themed-image-renderer",function(){if(C2a===void 0){var a=document.createElement("template");Q(a,"\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;B2a===void 0&&(B2a=document.createElement("template"));var d=B2a;c.call(b,d.content.cloneNode(!0),a.content.firstChild);C2a=a}a=C2a;return a},{mode:2});var L2a;var M2a;var vE=function(){return E.apply(this,arguments)||this}; k(vE,E);vE.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}}; ba.Object.defineProperties(vE.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}}); n([F(Yz.YtRendererBehavior),r("design:type",Object)],vE.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],vE.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],vE.prototype,"data",void 0);n([M(),r("design:type",String)],vE.prototype,"formattedAmount",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],vE.prototype,"ariaLabel",void 0); n([M({reflectToAttribute:!0}),H("data.style"),r("design:type",String),r("design:paramtypes",[])],vE.prototype,"vcBalanceWidgetStyle",null);n([fu({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],vE); Tu(vE,"yt-vc-balance-renderer",function(){if(M2a===void 0){var a=document.createElement("template");Q(a,"
\n
\n

[[formattedAmount]]

\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;L2a===void 0&&(L2a=document.createElement("template"));var d=L2a;c.call(b,d.content.cloneNode(!0),a.content.firstChild);M2a=a}a=M2a;return a},{mode:2});kE("vcBalanceRenderer","vcBalanceRenderer","yt-live-chat-vc-balance-renderer");var wE=function(){return E.apply(this,arguments)||this}; k(wE,E);ba.Object.defineProperties(wE.prototype,{formattedAmount:{configurable:!0,enumerable:!0,get:function(){return this.vcBalanceEntity&&this.vcBalanceEntity.formattedAmount?this.vcBalanceEntity.formattedAmount:""}}, vcBalanceAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.vcBalanceEntity&&this.vcBalanceEntity.accessibilityFormattedAmount?this.vcBalanceEntity.accessibilityFormattedAmount:""}}}); n([F(Yz.YtRendererBehavior),r("design:type",Object)],wE.prototype,"ytRendererBehavior",void 0);n([F(iE),r("design:type",Object)],wE.prototype,"ytLiveChatReduxBehavior",void 0);n([F(t2a.YtTappableItemBehavior),r("design:type",Object)],wE.prototype,"ytTappableItemBehavior",void 0);n([M(),r("design:type",Object)],wE.prototype,"data",void 0);n([M({selectorArgs:["data.vcBalanceEntityKey"],selector:function(a,b){return yA(a.entities,"vcBalanceEntity",b)}}), r("design:type",Object)],wE.prototype,"vcBalanceEntity",void 0);n([H("vcBalanceEntity"),r("design:type",String),r("design:paramtypes",[])],wE.prototype,"formattedAmount",null);n([H("vcBalanceEntity"),r("design:type",String),r("design:paramtypes",[])],wE.prototype,"vcBalanceAriaLabel",null);n([fu({disableElementRegistration:!0,is:"yt-live-chat-vc-balance-renderer",noInjection:!0})],wE); Tu(wE,"yt-live-chat-vc-balance-renderer",function(){if(s2a===void 0){var a=document.createElement("template");Q(a,"\n\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;r2a===void 0&&(r2a=document.createElement("template"));var d=r2a;c.call(b,d.content.cloneNode(!0),a.content.firstChild);s2a=a}a=s2a;return a},{mode:0});var N2a="a[href] a[tabindex] area[href] iframe [tabindex] [contentEditable] summary input:not([disabled]) select:not([disabled]) textarea:not([disabled]) button:not([disabled]) object:not([disabled])".split(" ");function O2a(){var a,b;return typeof CSS!=="undefined"&&((b=(a=CSS).supports)==null?void 0:b.call(a,"selector(:has(*))"))} O2a()&&N2a.push("details:not(:has(summary))");var P2a=N2a.join(",");function Q2a(a){return a.visibility!=="hidden"&&a.display!=="none"} function R2a(a){if(O2a()||a.tagName!=="DETAILS"?!a.matches(P2a):a.querySelector("summary")!==null)return-1;a=a.getAttribute("tabindex")||"0";return Number(a)} function S2a(a){return a.some(function(b){return R2a(b)>0})} function T2a(a){if(a.textContent||a.ariaLabel)return!0;if(a instanceof HTMLInputElement){if(!a.labels)return!1;a=l(a.labels);for(var b=a.next();!b.done;b=a.next())if(b.value.textContent)return!0}return!1} ;function U2a(a){return a.sort(function(b,c){return R2a(c)-R2a(b)})} function V2a(a){a=Array.from(a.querySelectorAll(P2a)).filter(function(b){return(Q2a(b.style)?Q2a(window.getComputedStyle(b)):!1)&&T2a(b)}); return S2a(a)?U2a(a):a} function W2a(a){a=V2a(a);a.length>0&&a[0].focus()} ;var X2a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(X2a,Ig);var Y2a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(Y2a,Ig);var Z2a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(Z2a,Ig);var $2a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k($2a,Ig);var a3a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(a3a,Ig);var b3a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(b3a,Ig);var c3a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(c3a,Ig);c3a.prototype.getData=function(){return yf(this,2)};var d3a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(d3a,Ig);var xE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(xE,Ig);xE.prototype.getStyle=function(){return Ef(this,X2a,1)};var yE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(yE,Ig);yE.prototype.getPayloadCase=function(){return Df(this,zE)}; yE.prototype.getStyle=function(){return Yf(this,xE,6,zE)}; var e3a=function(){var a=new yE,b=new a3a;return Jf(a,7,zE,b)},f3a=function(){var a=new yE,b=new b3a; return Jf(a,8,zE,b)},zE=[1, 2,3,4,5,6,7,8];var g3a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(g3a,Ig);var h3a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(h3a,Ig);var i3a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(i3a,Ig);var j3a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(j3a,Ig);var k3a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(k3a,Ig);var l3a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(l3a,Ig);var m3a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(m3a,Ig);var n3a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(n3a,Ig);n3a.prototype.getData=function(){return yf(this,2)};var o3a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(o3a,Ig);var p3a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(p3a,Ig);p3a.prototype.getPayloadCase=function(){return Df(this,AE)}; var AE=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var BE=function(a,b){a=Error.call(this,a);this.message=a.message;"stack"in a&&(this.stack=a.stack);this.code=b===void 0?2:b}; k(BE,Error);var q3a=Promise;var r3a=function(a){this.channelPromise=a}; r3a.prototype.send=function(a,b,c){this.channelPromise.then(function(d){d.send(a,b,c)})};var CE=function(a,b){this.data=a;this.channel=b}; CE.prototype.reply=function(a,b,c){this.channel.send(a,b,c)};var s3a=function(a){this.JSC$9313_port_=a}; s3a.prototype.send=function(a,b,c){c=c===void 0?[]:c;var d=new MessageChannel;t3a(d.port1,b);this.JSC$9313_port_.postMessage(a,[d.port2].concat(c))}; var u3a=function(a,b){t3a(a,b);return new s3a(a)},t3a=function(a,b){b&&(a.onmessage=function(c){b(new CE(c.data,u3a(c.ports[0])))})};var v3a=function(a){this.verifier_=a},w3a=function(a){var b=Object.create(null); (typeof a==="string"?[a]:a).forEach(function(c){if(c==="null")throw Error("Receiving from null origin not allowed without token verification. Please use NullOriginConnector.");b[c]=!0}); return function(c){return b[c]===!0}};var y3a=function(a){var b=a.destination;var c=a.iframe;var d=a.origin;var e=a.channelName===void 0?"ZNWN1d":a.channelName;var f=a.onMessage===void 0?void 0:a.onMessage;a=a.onEstablished===void 0?void 0:a.onEstablished;return x3a({destination:b,getSource:function(){return c.contentWindow}, originVerifier:d instanceof v3a?d:typeof d==="function"?new v3a(d):new v3a(w3a(d)),channelName:e,onMessage:f,onEstablished:a})},x3a=function(a){var b=a.destination; var c=a.getSource;var d=a.originVerifier;var e=a.token===void 0?void 0:a.token;var f=a.channelName;var h=a.onMessage===void 0?void 0:a.onMessage;var m=a.onEstablished===void 0?void 0:a.onEstablished;return new r3a(new q3a(function(p,q){var t=function(u){u.source&&u.source===c()&&d.verifier_(u.origin)&&(u.data.n||u.data)===f&&(b.removeEventListener("message",t,!1),e&&u.data.t!==e?q(Error("Token mismatch while establishing channel \""+f+"\". Expected "+e+", but received "+u.data.t+".")):(p(u3a(u.ports[0], h)),m&&m(u)))}; b.addEventListener("message",t,!1)}))};var DE=function(a){try{a()}catch(b){gd(b)}};var A3a=function(a){var b=this;var c=a.getMessageType;var d=a.onUnregisteredMessage===void 0?function(){}:a.onUnregisteredMessage; var e=a.onBeforeRegisteredMessage===void 0?function(){}:a.onBeforeRegisteredMessage; a=a.onAfterRegisteredMessage===void 0?function(){}:a.onAfterRegisteredMessage; this.registry_=new Map;this.getMessageType_=c;this.onUnregisteredMessage_=d;this.onBeforeRegisteredMessage_=e;this.onAfterRegisteredMessage_=a;this.onMessage=function(f){return z3a(b,f)}}; A3a.prototype.register=function(a,b){this.registry_.set(a,b);return this}; var z3a=function(a,b){var c=a.getMessageType_(b.data),d=a.registry_.get(c);d?(DE(function(){return a.onBeforeRegisteredMessage_(b,c)}),DE(function(){return d(b)}),DE(function(){return a.onAfterRegisteredMessage_(b,c)})):DE(function(){return a.onUnregisteredMessage_(b,c)})};var EE=function(a){this.JSC$9325_channel_=a}; EE.prototype.send=function(a,b,c){this.JSC$9325_channel_.send(af(a),b,c)}; var B3a=function(a,b){return function(c){var d=new a(c.data);return b(new CE(d,c.channel))}},C3a=function(a){return function(b){return a(new CE(b.data,new EE(b.channel)))}},D3a=function(a,b){return C3a(B3a(a,b))};var FE=function(a,b,c,d){this.registry=a;this.delegate=b;this.receiveMessageConstructor=c;this.createInitMessage=d;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},E3a=function(a){var b=new A3a({getMessageType:a.getPayloadCase}); return new FE(b,new EE(y3a({iframe:a.child,destination:window,origin:a.origin,channelName:a.channelName,onMessage:D3a(a.receiveMessageConstructor,b.onMessage)})),a.receiveMessageConstructor,a.createInitMessage)},F3a=function(a,b){a.createInitMessage=b}; FE.prototype.send=function(a){if(!this.initialised)throw new BE("Attempted to send a message before initialisation.");this.delegate.send(a)}; var G3a=function(a,b){return ra(function(c){if(!a.initialised)throw new BE("Attempted to send a message before initialisation.");return c.return(new Promise(function(d){a.delegate.send(b,D3a(a.receiveMessageConstructor,d))}))})}; FE.prototype.init=function(){var a=this;return ra(function(b){if(a.initialised)throw new BE("Attempted to initialise twice. The SDK can only be initialised once.");if(a.createInitMessage!==void 0){var c=a.delegate,d=c.send,e=a.createInitMessage;var f=new Y2a;var h=[].concat(ia(a.features));f=sfa(f,1,h,qea);d.call(c,e.call(a,f))}a.initialised=!0;b.jumpToEnd()})}; var GE=function(a,b){if(a.initialised)throw new BE("Attempted to set up API \""+b+"\" after initialisation. All APIs must be set up before initialising the SDK.");a.features.add(b);return a.registry}; ba.Object.defineProperties(FE.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});function H3a(a,b){return E3a({child:a,origin:b||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:p3a,getPayloadCase:function(c){return c.getPayloadCase()}, createInitMessage:function(c){var d=new yE,e=new Z2a;c=Gf(e,1,c);return Jf(d,5,zE,c)}})} ;var HE=function(a){this.channel=a;this.registered=!1}; HE.prototype.update=function(a){if(this.channel.isInitialised){if(!this.registered)throw new BE("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var b=new yE;var c=new $2a;c=bg(c,1,a);b=Jf(b,2,zE,c);this.channel.send(b)}else this.register();this.audioEnabled=a}; HE.prototype.register=function(){GE(this.channel,1);this.registered=!0}; HE.prototype.isAudioEnabled=function(){return this.audioEnabled};var I3a=function(a){this.channel=a}; g=I3a.prototype;g.onFirstFrameReady=function(a){GE(this.channel,2).register(11,function(b){b=Yf(b.data,g3a,11,AE);if(!b)throw new BE("Unexpectedly nonexistent GameFirstFrameReadyEvent");a(Uf(b,1))})}; g.onReady=function(a){GE(this.channel,2).register(4,function(b){b=Yf(b.data,i3a,4,AE);if(!b)throw new BE("Unexpectedly nonexistent GameReadyEvent");a(Uf(b,1))})}; g.onLevelComplete=function(a){GE(this.channel,2).register(5,function(b){b=Yf(b.data,j3a,5,AE);if(!b)throw new BE("Unexpectedly nonexistent LevelCompleteEvent");a(Uf(b,1),Pf(b,2))})}; g.onGameOver=function(a){GE(this.channel,2).register(6,function(b){b=Yf(b.data,h3a,6,AE);if(!b)throw new BE("Unexpectedly nonexistent GameOverEvent");a(Uf(b,1))})}; g.pause=function(){var a=this;if(!this.channel.isInitialised)return GE(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new BE("Using unregistered Game Feature: pause.");var b=e3a();return new Promise(function(c){return ra(function(d){if(d.nextAddress==1)return d.yield(G3a(a.channel,b),2);c();d.jumpToEnd()})})}; g.resume=function(){var a=this;if(!this.channel.isInitialised)return GE(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new BE("Using unregistered Game Feature: resume.");var b=f3a();return new Promise(function(c){return ra(function(d){if(d.nextAddress==1)return d.yield(G3a(a.channel,b),2);c();d.jumpToEnd()})})};var J3a=function(a){this.channel=a}; J3a.prototype.onReady=function(a){GE(this.channel,5).register(8,function(b){if(!Yf(b.data,k3a,8,AE))throw new BE("Unexpectedly nonexistent PageReadyEvent");a()})};var K3a=function(a){this.channel=a}; K3a.prototype.onChange=function(a){GE(this.channel,3).register(7,function(b){b=Yf(b.data,l3a,7,AE);if(!b)throw new BE("Unexpectedly nonexistent ScoreEvent");a(Uf(b,1),Pf(b,2))})};var L3a={load:function(){throw new BE("Storage used, but storage.onLoad() listener not set!")}, save:function(){throw new BE("Storage used, but storage.onSave() listener not set!")}},M3a=function(a){this.channel=a; this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},N3a=function(a){GE(a.channel,4).register(2,L3a.load).register(3,L3a.save); a.initialSetupDone=!0}; M3a.prototype.onLoad=function(a){this.initialSetupDone||N3a(this);this.loadRegistered||(this.loadRegistered=!0,GE(this.channel,4).register(2,function(b){var c,d,e;return ra(function(f){if(f.nextAddress==1){c=Yf(b.data,m3a,2,AE);if(!c)throw new BE("Unexpectedly nonexistent StorageLoad");d=Uf(c,1);return f.yield(a(d),2)}e=f.yieldResult;var h=b.reply,m=new yE;var p=new c3a;p=fg(p,1,d);p=qf(p,2,ee(e,!1));m=Jf(m,3,zE,p);h.call(b,m);f.jumpToEnd()})}))}; M3a.prototype.onSave=function(a){this.initialSetupDone||N3a(this);this.saveRegistered||(this.saveRegistered=!0,GE(this.channel,4).register(3,function(b){var c,d,e;return ra(function(f){if(f.nextAddress==1){c=Yf(b.data,n3a,3,AE);if(!c)throw new BE("Unexpectedly nonexistent StorageSave");d=Uf(c,1);e=Ld(c.getData());return f.yield(a(d,e),2)}var h=b.reply,m=new yE;var p=new d3a;p=fg(p,1,d);m=Jf(m,4,zE,p);h.call(b,m);f.jumpToEnd()})}))};var O3a=function(a){this.channel=a}; O3a.prototype.update=function(a){if(!this.channel.features.has(6))throw new BE("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var b=new yE,c=new xE;a=Gf(c,1,a);b=Jf(b,6,zE,a);this.channel.send(b)}; O3a.prototype.register=function(){GE(this.channel,6)};var P3a=function(a){this.channel=a;this.userActivityLoggingIntervalMs=0}; P3a.prototype.onUserActivity=function(a,b){this.userActivityLoggingIntervalMs=b;GE(this.channel,7).register(9,function(c){if(!Yf(c.data,o3a,9,AE))throw new BE("Unexpectedly nonexistent ClickEvent");a()})};var Q3a=function(a){var b=this;this.channel=a;this.init=this.channel.init.bind(this.channel);this.page=new J3a(this.channel);this.game=new I3a(this.channel);this.audio=new HE(this.channel);this.score=new K3a(this.channel);this.storage=new M3a(this.channel);this.style=new O3a(this.channel);this.userActivity=new P3a(this.channel);F3a(this.channel,function(c){var d=new Z2a;c=Gf(d,1,c);c=dg(c,3,b.userActivity.userActivityLoggingIntervalMs);d=b.audio.isAudioEnabled();d!==void 0&&bg(c,2,d);d=new yE;return Jf(d, 5,zE,c)})};var R3a=function(){this.timedFunctionContext=0}; R3a.prototype.timeExecution=function(a,b){var c=this;return function(){var d=sa.apply(0,arguments);c.timedFunctionContext=a;return b.apply(null,ia(d))}};var S3a=function(){var a={};this.priorityTasks=(a[3]=[],a[2]=[],a[1]=[],a);this.isFlushing=!1},IE=function(a,b,c){var d=T3a(a,c); a.priorityTasks[c].push(b);d&&a.priorityTasks[c].length===1&&a.flush()},T3a=function(a,b){return Object.keys(a.priorityTasks).map(function(c){return Number(c)}).filter(function(c){return!isNaN(c)&&c>b}).every(function(c){return a.priorityTasks[c].length===0})}; S3a.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(a){return a.length>0});)U3a(this,3),U3a(this,2),U3a(this,1)}catch(a){throw Object.values(this.priorityTasks).forEach(function(b){return void b.splice(0,b.length)}),a; }finally{this.isFlushing=!1}}}; var U3a=function(a,b){for(;T3a(a,b)&&a.priorityTasks[b].length>0;)a.priorityTasks[b][0](),a.priorityTasks[b].shift()}; ba.Object.defineProperties(S3a.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(a){return a.length>0})}}});var V3a=function(){this.names=new Map}; V3a.prototype.getName=function(a){var b=this.names.get(a);if(b)return b;var c;b=(c=a.description)!=null?c:vca();this.names.set(a,b);return b};var JE=function(){this.performanceMonitor=new R3a;this.queue=new S3a;this.internalSymbol=Symbol();this.debugNames=new V3a}; JE.prototype.getOnBackgrounded=function(){return Ux}; ba.Object.defineProperties(JE.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var KE=function(a,b){b=Error.call(this,b?a+": "+b:String(a));this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=a;this.__proto__=KE.prototype;this.name=String(a)}; k(KE,Error);var LE=function(a){KE.call(this,1E3,"sfr:\""+a+"\"");this.measurementStrategyFailureReason=a;this.__proto__=LE.prototype}; k(LE,KE);var ME=function(){KE.call(this,1003);this.__proto__=ME.prototype}; k(ME,KE);var NE=function(){KE.call(this,1009);this.__proto__=NE.prototype}; k(NE,KE);var W3a=function(){KE.call(this,1011);this.__proto__=W3a.prototype}; k(W3a,KE);var X3a=function(){KE.call(this,1007);this.__proto__=ME.prototype}; k(X3a,KE);var OE=function(a){KE.call(this,1004,String(a));this.inputObservableIndex=a;this.__proto__=OE.prototype}; k(OE,KE);var Y3a=function(a){KE.call(this,1010,a);this.__proto__=PE.prototype}; k(Y3a,KE);var PE=function(a){KE.call(this,1005,a);this.__proto__=PE.prototype}; k(PE,KE);var Z3a=function(a){var b=sa.apply(1,arguments),c=this;this.orderedFactories=[];this.orderedFactories.push(a);b.forEach(function(d){c.orderedFactories.push(d)})}; Z3a.prototype.isSupported=function(a){return this.orderedFactories.some(function(b){return b.isSupported(a)})}; Z3a.prototype.makeBeacon=function(a,b){for(var c=0;c=a.value?this:a}; g.round=function(){return new QE(Math.round(this.value),this.timeline)}; g.add=function(a){return new QE(this.value+a,this.timeline)}; g.toString=function(){return String(this.value)};function c4a(a){function b(c){return typeof c==="boolean"||typeof c==="string"||typeof c==="number"||c===void 0||c===null} return b(a)?!0:Array.isArray(a)?a.every(b):typeof a==="object"?Object.keys(a).every(function(c){return typeof c==="string"})&&Object.values(a).every(function(c){return Array.isArray(c)?c.every(b):b(c)}):!1} function d4a(a){if(c4a(a))return a;if($3a(a))return{lastMeasurement:{value:d4a(a.lastMeasurement.value),timestamp:RE(a.lastMeasurement.timestamp,new QE(0,a.lastMeasurement.timestamp.timeline))},active:a.active};try{return JSON.parse(JSON.stringify(a))}catch(b){}return String(a)} ;function SE(a,b){return function(c){return new ix(function(d){return c.subscribe(function(e){a.timeExecution(b,function(){d.next(e)})()},function(e){a.timeExecution(b,function(){d.error(e)})()},function(){a.timeExecution(b,function(){d.complete()})()})})}} ;var TE=function(a,b){this.context=a;this.JSC$9419_pinger=b}; TE.prototype.isSupported=function(a){return this.JSC$9419_pinger.isSupported(a)}; TE.prototype.makeBeacon=function(a,b){if(!this.isSupported(b))throw new NE;return new UE(this.context,this.JSC$9419_pinger,b!=null?b:void 0,a)}; var UE=function(a,b,c,d){var e=this;this.JSC$9425_pinger=b;this.properties=c;this.url=d;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var f;this.method=(f=c==null?void 0:c.beaconMethod)!=null?f:"GET";this.backgroundedSubscription=a.getOnBackgrounded().subscribe(function(){e.sendNow()})}; UE.prototype.deactivate=function(){this.internalIsPending=!1}; UE.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9425_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var a,b;this.JSC$9425_pinger.pingWithHeadersAndBody((a=this.properties)!=null?a:{},this.customHeaders,(b=this.body)!=null?b:"",this.url)}else this.JSC$9425_pinger.ping(this.url);this.internalIsPending=!1}catch(c){}else this.internalIsPending=!1}; UE.prototype.setHeader=function(a){this.customHeaders.set(a,void 0)};var f4a=function(){for(var a=l(sa.apply(0,arguments)),b=a.next();!b.done;b=a.next())if(b=b.value,b.available()){this.timeProvider=b;return}this.timeProvider=new e4a}; g=f4a.prototype;g.available=function(){return this.timeProvider.available()}; g.now=function(){return this.timeProvider.now()}; g.setTimeout=function(a,b){return this.timeProvider.setTimeout(a,b)}; g.clearTimeout=function(a){this.timeProvider.clearTimeout(a)}; g.interval=function(a,b){var c=this.intervalObservable(a).subscribe(b);return function(){return void c.unsubscribe()}}; g.intervalObservable=function(a){return this.timeProvider.intervalObservable(a)}; ba.Object.defineProperties(f4a.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}}); var e4a=function(){this.timeline=Symbol()}; g=e4a.prototype;g.available=function(){return!1}; g.now=function(){return new QE(0,this.timeline)}; g.setTimeout=function(){return 0}; g.clearTimeout=function(){}; g.interval=function(){return function(){}}; g.intervalObservable=function(){return Ux};var VE=function(a,b){this.intrinsicFunctionNamespace=a;this.performanceMonitor=b}; g=VE.prototype;g.setTimeout=function(a,b){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,a),b)}; g.clearTimeout=function(a){this.intrinsicFunctionNamespace.clearTimeout(a)}; g.interval=function(a,b){var c=this.intervalObservable(a).subscribe(b);return function(){return void c.unsubscribe()}}; g.intervalObservable=function(a){var b=this;return new ix(function(c){var d=0,e=b.intrinsicFunctionNamespace.setInterval(function(){c.next(d++)},a); return function(){b.intrinsicFunctionNamespace.clearInterval(e)}})}; g.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var WE=function(a,b){VE.call(this,a,b);this.timeline=b4a}; k(WE,VE);WE.prototype.now=function(){return new QE(this.intrinsicFunctionNamespace.Date.now(),this.timeline)}; WE.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&VE.prototype.available.call(this)};var XE=function(a,b){VE.call(this,a,b);this.timeline=a4a}; k(XE,VE);XE.prototype.now=function(){return new QE(this.intrinsicFunctionNamespace.performance.now(),this.timeline)}; XE.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&VE.prototype.available.call(this)};function g4a(a,b){var c=!1;return new ix(function(d){var e=a.setTimeout(function(){c=!0;d.next(!0);d.complete()},b); return function(){c||a.clearTimeout(e)}})} ;function h4a(a){a=a.global;if(a.fetchLater)return a.fetchLater.bind(a)} var j4a=function(a){this.context=a;if(i4a===void 0)a:{var b,c,d=(b=a.global)==null?void 0:(c=b.document)==null?void 0:c.createElement("meta");if(d)try{d.httpEquiv="origin-trial";d.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";a.global.document.head.append(d);i4a=d;break a}catch(e){}i4a=void 0}}, i4a; j4a.prototype.isSupported=function(a){return h4a(this.context)!==void 0&&!(a==null||!a.endOfSession)&&!YE(this.context)&&!(a==null?0:a.attributionEnabled)&&!(a==null?0:a.customHeaders)&&!(a==null?0:a.customBody)}; j4a.prototype.makeBeacon=function(a,b){if(!this.isSupported(b))throw new NE;return new ZE(this.context,a,b)}; var ZE=function(a,b,c){this.context=a;this.properties=c;this.JSC$9449_urlWithoutToken=b;var d;this.beaconMethod=(d=c==null?void 0:c.beaconMethod)!=null?d:"GET";a=h4a(this.context);if(a===void 0)throw Error();this.fetchLater=a;k4a(this,l4a(this))},k4a=function(a,b){a.beaconResult&&a.beaconResult.activated||(a.beaconAbort=new AbortController,a.beaconResult=a.fetchLater(b,{method:a.beaconMethod, cache:"no-cache",mode:"no-cors",signal:a.beaconAbort.signal,activateAfter:96E4}))},l4a=function(a){a=a.JSC$9449_urlWithoutToken; return(a.slice(-1)[0]==="&"?a:a+"&")+"flapi=1"}; ZE.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)}; ZE.prototype.sendNow=function(){}; ZE.prototype.setHeader=function(){}; ba.Object.defineProperties(ZE.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9449_urlWithoutToken}, set:function(a){this.JSC$9449_urlWithoutToken=a;a=l4a(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);k4a(this,a)}}, method:{configurable:!0,enumerable:!0,get:function(){return this.beaconMethod}}});function $E(a){return Hx(function(b,c){var d=null,e=!1,f;d=b.subscribe(new Gx(c,void 0,function(h){f=px(a(h,$E(a)(b)));d?(d.unsubscribe(),d=null,f.subscribe(c)):e=!0})); e&&(d.unsubscribe(),d=null,f.subscribe(c))})} ;function m4a(a,b,c){return function(d,e){var f=c,h=b,m=0;d.subscribe(new Gx(e,function(p){var q=m++;h=f?a(h,p,q):(f=!0,p);e.next(h)},void 0,void 0))}} ;function n4a(){return o4a.apply(null,ia(sa.apply(0,arguments)))} function o4a(){var a=sa.apply(0,arguments),b=Bx(a);return Hx(function(c,d){kNa(1)(qx([c].concat(ia(a)),b)).subscribe(d)})} ;function p4a(a){return Hx(function(b,c){var d=!1,e=null,f=null,h=function(){var m;(m=f)==null||m.unsubscribe();f=null;d&&(d=!1,m=e,e=null,c.next(m))}; b.subscribe(new Gx(c,function(m){var p;(p=f)==null||p.unsubscribe();d=!0;e=m;f=new Gx(c,h,void 0,$w);px(a(m)).subscribe(f)},void 0,function(){h(); c.complete()},function(){e=f=null}))})} ;function q4a(a){a=a===void 0?null:a;return Hx(function(b,c){var d=!1;b.subscribe(new Gx(c,function(e){d=!0;c.next(e)},void 0,function(){d||c.next(a); c.complete()}))})} ;function aF(){return Hx(function(a,b){a.subscribe(new Gx(b,$w))})} ;function bF(a){return Hx(function(b,c){b.subscribe(new Gx(c,function(){return c.next(a)}))})} ;function cF(a){return a<=0?function(){return mx}:Hx(function(b,c){var d=0; b.subscribe(new Gx(c,function(e){++d<=a&&(c.next(e),a<=d&&c.complete())}))})} ;function dF(a){var b=b===void 0?gx:b;var c;a=(c=a)!=null?c:r4a;return Hx(function(d,e){var f,h=!0;d.subscribe(new Gx(e,function(m){var p=b(m);if(h||!a(f,p))h=!1,f=p,e.next(m)}))})} function r4a(a,b){return a===b} ;function s4a(a){a=a===void 0?t4a:a;return Hx(function(b,c){var d=!1;b.subscribe(new Gx(c,function(e){d=!0;c.next(e)},void 0,function(){return d?c.complete():c.error(a())}))})} function t4a(){return new Fx} ;function eF(){var a=sa.apply(0,arguments);return function(b){return lNa(b,Cx.apply(null,ia(a)))}} ;function u4a(a){return Hx(function(b,c){var d=0;b.subscribe(new Gx(c,function(e){a.call(void 0,e,d++,b)||(c.next(!1),c.complete())},void 0,function(){c.next(!0); c.complete()}))})} ;function v4a(a,b){var c=arguments.length>=2;return function(d){return d.pipe(a?Vx(function(e,f){return a(e,f,d)}):gx,cF(1),c?q4a(b):s4a(function(){return new Fx}))}} ;function w4a(){return Hx(function(a,b){var c=[];a.subscribe(new Gx(b,function(d){c.push(d);1=2;return function(d){return d.pipe(a?Vx(function(e,f){return a(e,f,d)}):gx,w4a(),c?q4a(b):s4a(function(){return new Fx}))}} ;function fF(a){var b=Yw(a)?a:function(){return a}; return Yw()?Hx(function(c,d){var e=b();(void 0)(e).subscribe(d).add(c.subscribe(e))}):function(c){var d=new Jx(c,b); Yw(c==null?void 0:c.lift)&&(d.lift=c.lift);d.source=c;d.subjectFactory=b;return d}} ;function gF(a){var b=new Ex(a,void 0,void 0);return function(c){return fF(function(){return b})(c)}} ;function y4a(){var a=sa.apply(0,arguments);return a.length?Hx(function(b,c){wNa([b].concat(ia(a)))(c)}):gx} ;function z4a(){var a=a===void 0?Infinity:a;return a<=0?function(){return mx}:Hx(function(b,c){var d=0,e,f=function(){var h=!1; e=b.subscribe(new Gx(c,void 0,void 0,function(){++d=2))} ;function iF(){var a=sa.apply(0,arguments),b=Bx(a);return Hx(function(c,d){(b?lNa(a,c,b):lNa(a,c)).subscribe(d)})} ;function jF(a){return Hx(function(b,c){var d=null,e=0,f=!1;b.subscribe(new Gx(c,function(h){var m;(m=d)==null||m.unsubscribe();m=e++;px(a(h,m)).subscribe(d=new Gx(c,function(p){return c.next(p)},void 0,function(){d=null; f&&!d&&c.complete()}))},void 0,function(){(f=!0,!d)&&c.complete()}))})} ;function kF(a,b){b=b===void 0?!1:b;return Hx(function(c,d){var e=0;c.subscribe(new Gx(d,function(f){var h=a(f,e++);(h||b)&&d.next(f);!h&&d.complete()}))})} ;function lF(a,b,c){var d=Yw(a)||b||c?{next:a,error:b,complete:c}:a;return d?Hx(function(e,f){e.subscribe(new Gx(f,function(h){var m;(m=d.next)==null||m.call(d,h);f.next(h)},function(h){var m; (m=d.error)==null||m.call(d,h);f.error(h)},function(){var h; (h=d.complete)==null||h.call(d);f.complete()}))}):gx} ;function A4a(){var a=sa.apply(0,arguments),b=RMa(a);return Hx(function(c,d){for(var e=a.length,f=Array(e),h=a.map(function(){return!1}),m=!1,p={i$jscomp$728:0};p.i$jscomp$728255&&(d[e++]=h&255,h>>=8);d[e++]=h}c=Fd(d)}return c}),cF(1),rF(a.queue))} ;function J4a(a){var b=b===void 0?{}:b;if(typeof Event==="function")return new Event(a,b);if(typeof document!=="undefined"){var c=document.createEvent("CustomEvent");c.initCustomEvent(a,b.bubbles||!1,b.cancelable||!1,b.detail);return c}throw Error()} ;var vF=function(a){this.value=a;this.releasedSubject=new jx}; vF.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0}; ba.Object.defineProperties(vF.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}}, JSC$9477_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var K4a=["FRAME","IMG","IFRAME"],L4a=/^[01](px)?$/,M4a=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},N4a=function(){var a=new M4a; a.crossDomainLoadedDefault=!0;a.pendingImagesBlockLoad=!0;return a}; function O4a(a){return Xda(a)?document.getElementById(a):a} function P4a(a){var b=!1;b=b===void 0?!1:b;if(a.tagName==="IMG"){if(a.complete&&(!a.naturalWidth||!a.naturalHeight))return!0;var c;if(b&&((c=a.style)==null?void 0:c.display)==="none")return!0}var d,e;return L4a.test((d=a.getAttribute("width"))!=null?d:"")&&L4a.test((e=a.getAttribute("height"))!=null?e:"")} function Q4a(a,b){if(a.tagName==="IMG")return a.naturalWidth&&a.naturalHeight?!0:!1;try{if(a.readyState)var c=a.readyState;else{var d,e;c=(d=a.contentWindow)==null?void 0:(e=d.document)==null?void 0:e.readyState}return c==="complete"}catch(f){return b===void 0?!1:b}} function R4a(a){a||(a=function(b,c,d){b.addEventListener(c,d)}); return a} function S4a(a,b){var c=N4a();c=c===void 0?new M4a:c;if(a=O4a(a)){var d=R4a(d);for(var e=!1,f=function(C){e||(e=!0,b(C))},h,m=2,p=0;p0)&&d();w=B5a(b.queue,u).pipe($E(function(C){if(C instanceof OE)throw new PE(String(v[C.inputObservableIndex]));throw C}),Kx(function(C){return Object.freeze(Object.assign.apply(Object,[{}, q].concat(ia(C))))})); return(u=u.length>0)&&a?Tx(Cx(Object.freeze(q)),w):u?w:Cx(Object.freeze(q))} ;function D5a(a,b,c,d,e){return a.performanceMonitor.timeExecution.bind(a.performanceMonitor)(733,function(){var f={};try{return b.pipe($E(function(h){d(Object.assign({},f,{error:h}));return mx}),Nx(function(h){try{var m=c(a,h)}catch(q){return d(Object.assign({},f,{error:q instanceof Error?q:String(q)})),mx}var p={}; return C5a(m,a,h.symbol).pipe(lF(function(q){p=q}),gF(1),Ix()).pipe(e,$E(function(q){d(Object.assign({},p,{error:q})); return mx}),eF(void 0),Kx(function(){return!0}))})).pipe(hF(function(h){return h+1},0),$E(function(h){d(Object.assign({},f,{error:h})); return mx}))}catch(h){return d(Object.assign({},f,{error:h})),mx}})()} ;var E5a=function(a){return a};var F5a=function(a){return a.pipe(Vx(function(b){var c=b.endOfSessionReason;var d;return((d=b.viewable)==null?void 0:d.extrapolateToNow().value)||c!=void 0}),cF(1),aF())};function BF(a){var b=new Map;if(typeof a!=="object"||a===null)return b;Object.values(a).forEach(function(c){c&&typeof c.extrapolateToNow==="function"&&(b.has(c.clock.timeline)||b.set(c.clock.timeline,c.clock.now()))}); return b} ;var G5a=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},H5a=function(a){var b=a.sequenceNumber.toString(10).padStart(2,"0"); b=""+a.startTime+b;a.sequenceNumber<99&&a.sequenceNumber++;return b};function I5a(a,b){return typeof a==="string"?encodeURIComponent(a):typeof a==="number"?String(a):Array.isArray(a)?a.map(function(c){return I5a(c,b)}).join(","):a instanceof QE?a.toString():a&&typeof a.extrapolateToNow==="function"?I5a(a.extrapolateUsingTimestampMap(b).value,b):a===!0?"1":a===!1?"0":a===void 0||a===null?null:a instanceof G5a?H5a(a):[a.top, a.left,a.top+a.height,a.left+a.width].join()} function CF(a,b){a=Object.entries(a).map(function(c){var d=l(c);c=d.next().value;d=d.next().value;d=I5a(d,b);return d===null?"":c+"="+d}).filter(function(c){return c!==""}); return a.length?a.join("&"):""} ;var J5a=hx(kF(function(a){return a.endOfSessionReason===void 0}),Kx(function(a){return Object.assign({},a,{timestamps:BF(a)})}),Vx(function(a){var b=a.viewable; a=a.timestamps;var c;return(c=b==null?void 0:b.extrapolateUsingTimestampMap(a).value)!=null?c:!1}),Kx(function(a){var b=a.beaconFactory; var c=a.timestampedExposureHistory;var d=a.timeOnScreen;var e=a.binaryContext;a=a.timestamps;if(b===void 0||c===void 0||d===void 0||e===void 0)return!1;if(d.extrapolateUsingTimestampMap(a).value.every(function(f){return f>=0}))return!0; c=c.map(function(f){return f.timestamp+":"+f.value}).join(","); d=CF({bin:e,tos:d},a);b.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+d+("&eh="+c)).sendNow();return!0}),kF(function(a){return!a}),aF());function K5a(a,b){var c=L5a,d=M5a;b=b===void 0?.01:b;return function(e){b>0&&Math.random()<=b&&(a.global.HTMLFencedFrameElement&&a.global.fence&&typeof a.global.fence.reportEvent==="function"&&a.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),e=Object.assign({},e,{errorMessage:e.error instanceof Error&&e.error.message?e.error.message:String(e.error),errorStack:e.error instanceof Error&&e.error.stack?String(e.error.stack):null,errorName:e.error instanceof Error&&e.error.name?String(e.error.name):null,errorContext:String(a.performanceMonitor.timedFunctionContext),errorEscapedQueryId:e.escapedQueryId}),c(Object.assign({},e,{payloadMapper:function(){return function(f){try{return d(Object.assign({},f))}catch(h){return{}}}}(), urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),BF(e)).forEach(function(f){a.beaconFactory.makeBeacon(f).sendNow()}))}} ;var M5a=function(a){return{id:a.pingId,mcvt:a.maxConsecutiveViewTime,p:a.creativePosition,asp:a.adSpeedPosition,tm:a.totalMeasurementTime,tu:a.totalUnviewedTime,mtos:a.maxTimeOnScreen,tos:a.timeOnScreen,v:a.binaryVersion,bin:a.binaryContext,avms:a.measurementStrategy,bs:a.browserSize,mc:a.maximumExposure,"if":a.crossDomainIframeState,vu:a.delayedImpressionJsState,app:a.inApp,mse:a.mraidError,mtop:a.mraidSituation,itpl:a.injectedTemplateId,adk:a.adKey,exk:a.awbidKey,rs:a.requestSource,la:a.isLargeAd, cr:a.isContentRecommendationAd,uach:a.userAgentClientHints,vs:a.viewState,r:a.reasonCode,pay:a.hasCpmavUrl,co:a.clientPingOrderCounter,rst:a.adRenderStartTime,rpt:a.adRenderPeriodTime,isd:a.initialScrollDepth,lsd:a.loadedScrollDepth,context:a.errorContext,msg:a.errorMessage,stack:a.errorStack,name:a.errorName,ec:a.hasElementChanged,sfr:a.strategyFailureReasons,met:a.creativeSearchResult,wmsd:a.webMeasurementStartDiagnostic,pv:a.pageVisible,epv:a.eosPageVisible,pbe:a.inStatefulBeaconExperiment,fle:a.inFetchLaterBeaconExperiment, vae:a.inViewableAttributionExperiment,spb:a.supportsPendingBeacon,sfl:a.supportsFetchLater,ffslot:a.isFencedFrameSlotTurtlex,reach:a.sharedStorageReachMode,io2:a.v2VisibilityBitVector,rxdbg:a.rxDebugger,omida:a.omidAppId,omidp:a.omidPartner,omidpv:a.omidPartnerVersion,omidor:a.omidOcclusionReasons,omidv:a.omidVersion,omids:a.omidSessionType,omidam:a.omidAccessMode,omidct:a.omidCreativeType,omidia:a.omidInApp,omiddc:a.omidDeviceCategory,omidlat:a.omidLastActivity,omiddit:a.omidDeviceIdleTime,qid:a.errorEscapedQueryId}};function N5a(){var a=sa.apply(0,arguments);return function(b){var c=b.pipe(gF(1),Ix());b=a.map(function(d){return c.pipe(d,eF(!0))}); return Lx(b).pipe(cF(1),aF())}} ;function O5a(){var a=sa.apply(0,arguments);return function(b){var c=b.pipe(gF(1),Ix());b=a.map(function(d){return c.pipe(d,eF(!0))}); return Tx.apply(null,ia(b)).pipe(cF(1),aF())}} ;function P5a(a,b){return function(c){var d=c.pipe(gF(1),Ix());c=d.pipe(a,eF(!0));d=d.pipe(hx(b,gF(),Ix()),eF(!0));c=Lx([c,d]);return vNa(c,d).pipe(cF(1),aF())}} ;var Q5a=function(a){var b=[];return a.pipe(Kx(function(c){var d=c.beaconFactory,e=c.fetchBeaconFactory,f=c.timeOnScreen,h=c.timeOnScreenUrlPrefixes,m=c.payloadMapper,p=c.timeOnScreenPingId,q=c.timeOnScreenReason,t=c.urlSerializer,u=c.viewable,v=c.hasImpressionFired,w=c.inStatefulBeaconExperiment,y=c.supportsPendingBeacon,A=c.supportsFetchLater,C=c.turtlexReportEventData;if(!c.geometryMeasurable||!v||c.maxTimeOnScreen===void 0||f===void 0||h===void 0||m===void 0||p===void 0||t===void 0||d===void 0)return!1; if(c.isTurtlex){if(q===void 0)return!1;h=c.reportFencedFrameEvent;if(!h)return!1;h({eventType:"active-view-time-on-screen",eventData:C!=null?C:"",destination:["buyer"]});return!0}if(!(w||A||q))return!1;C=BF(c);var I;u=(I=u==null?void 0:u.extrapolateUsingTimestampMap(C).value)!=null?I:!1;I=t(Object.assign({},c,{pingId:p,viewState:u?4:3,reasonCode:q!=null?q:"u",payloadMapper:m,urlPrefixes:h}),C);if(w){for(;b.length>h.length;)c=void 0,(c=b.shift())==null||c.deactivate();I.forEach(function(N,L){L>=b.length? b.push(d.makeBeacon(N)):b[L].url=N}); return y&&e&&q!==void 0?(I.forEach(function(N){e.makeBeacon(N).sendNow()}),!0):q!==void 0}if(y&&e&&q!==void 0)return I.forEach(function(N){e.makeBeacon(N).sendNow()}),!0; if(A&&e){for(;b.length>h.length;)y=void 0,(y=b.shift())==null||y.deactivate();var K=t(Object.assign({},c,{pingId:p,viewState:u?4:3,reasonCode:q!=null?q:"u",payloadMapper:m,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),C)[0];I.forEach(function(N,L){L>=b.length?b.push(d.makeBeacon(K,{endOfSession:!0})):b[L].url=K}); return q!==void 0?(I.forEach(function(N){e.makeBeacon(N).sendNow()}),!0):q!==void 0}return q!==void 0?(I.forEach(function(N){d.makeBeacon(N).sendNow()}),!0):!1}),kF(function(c){return!c}),aF())};function R5a(a,b,c){c(!0)} ;function S5a(a,b){return hx(jF(function(c){var d=a(c),e=b(c),f={};return d&&e&&f?new ix(function(h){e(d,f,function(m){h.next(Object.assign({},c,{canEmit:m}));h.complete()}); return function(){}}):Ux}),Vx(function(c){return c.canEmit}))} ;function T5a(a){var b={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(c){return c.pipe(jF(function(d){return new ix(function(e){function f(){m.disconnect();p.unsubscribe()} var h=a.MutationObserver;if(h&&d.ref!==void 0){var m=new h(function(q){e.next(q)}); m.observe(d.ref,b);var p=d.JSC$9477_released.subscribe(f);return f}})}))}} ;function U5a(a){if(a.measurementDeferralState===3)return null;if(a.timeOnScreenReason!==void 0){var b=a.creativeFound===!1?"n":null;if(b!==null)return b}return a.geometricMeasurementErrors instanceof LE?"msf":a.contextValidationErrors instanceof ME?"c":a.contextVisibilityKnown===!1?"pv":a.geometricMeasurementErrors||a.contextValidationErrors?"x":null} var V5a=hx(Vx(function(a){return a.immediateUrlPrefixes!==void 0&&a.payloadMapper!==void 0&&a.urlSerializer!==void 0&&a.inferredPingId!==void 0&&a.beaconFactory!==void 0}),Vx(function(a){return U5a(a)!==null}),S5a(function(a){return a.activeViewUnmeasurableEvent},function(a){return a.emit}),Kx(function(a){if(a.isTurtlex){var b=a.reportFencedFrameEvent; if(b){var c;b({eventType:"active-view-unmeasurable",eventData:(c=a.turtlexReportEventData)!=null?c:"",destination:["buyer"]})}}else{c=void 0;var d=U5a(a);if(d==="x"){var e,f=(e=a.geometricMeasurementErrors)!=null?e:a.contextValidationErrors;f&&(b=f.stack,c=f.message)}a.urlSerializer(Object.assign({},a,{urlPrefixes:a.immediateUrlPrefixes,payloadMapper:a.payloadMapper,pingId:a.inferredPingId,viewState:2,reasonCode:d,errorMessage:c,errorStack:b}),BF(a)).forEach(function(h){a.beaconFactory.makeBeacon(h).sendNow()})}}), cF(1),aF());var W5a=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;function DF(a,b){return a.replace(W5a,function(c,d){try{var e=yia(b,d);if(e==null||e.toString()==null)return c;e=e.toString();if(e==""||!Ya(e==null?"":String(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(f){}return c})} ;function X5a(a,b){var c=Object.assign({},a),d=a.userAgentClientHints;c=(delete c.userAgentClientHints,c);c=a.payloadMapper(c);var e=CF(c,b);return vc(a.urlPrefixes,function(f){var h="";typeof d==="string"&&(h="&"+CF({uach:d},b));var m={};return DF(f,(m.VIEWABILITY=e,m))+h})} ;function L5a(a,b){var c=a.payloadMapper(a),d=CF(c,b);return d?vc(a.urlPrefixes,function(e){e=e.indexOf("?")>=0?e:e+"?";e="?&".indexOf(e.slice(-1))>=0?e:e+"&";return e+d}):a.urlPrefixes} ;var Y5a=hx(Vx(function(a){return a.payloadMapper!==void 0&&a.immediateUrlPrefixes!==void 0&&a.urlSerializer!==void 0&&a.inferredPingId!==void 0&&a.beaconFactory!==void 0}),Kx(function(a){return Object.assign({},a,{timestamps:BF(a)})}),Vx(function(a){var b=a.viewable; var c=a.hasImpressionFired;a=a.timestamps;var d;return!!c&&((d=b==null?void 0:b.extrapolateUsingTimestampMap(a).value)!=null?d:!1)}),S5a(function(a){return a.activeViewViewableEvent},function(a){return a.emit}),Kx(function(a){var b=a.beaconFactory,c=a.turtlexReportEventData; if(a.isTurtlex){var d=a.reportFencedFrameEvent;if(!d)return!1;d({eventType:"active-view-viewable",eventData:c!=null?c:"",destination:["buyer"]});return!0}c=a.urlSerializer(Object.assign({},a,{urlPrefixes:a.immediateUrlPrefixes,payloadMapper:a.payloadMapper,pingId:a.inferredPingId,viewState:4,reasonCode:"v"}),a.timestamps);(d=a.cpmavUrls)&&d.length>0&&a.viewUrlSerializer&&a.viewUrlSerializer(d,a).forEach(function(e){b.makeBeacon(e).sendNow()}); (d=a.viewableRelayUrls)&&d.length>0&&a.viewUrlSerializer&&a.viewUrlSerializer(d,a).forEach(function(e){b.makeBeacon(e).sendNow()}); c.forEach(function(e){b.makeBeacon(e,{attributionEnabled:a.isViewableAttributionEnabled}).sendNow()}); return!0}),kF(function(a){return!a}),aF());function Z5a(){return hx(Vx(function(a){return a!==void 0}),Kx(function(a){return a}))} ;function $5a(a){return hx(Kx(function(){return!0}),iF(!1),rF(a))} ;function a6a(a){return a.length<=0?mx:Lx(a.map(function(b){var c=0;return b.pipe(Kx(function(d){return{index:c++,value:d}}))})).pipe(Vx(function(b){return b.every(function(c){return c.index===b[0].index})}),Kx(function(b){return b.map(function(c){return c.value})}))} ;function b6a(a,b){a.currentState&&(a.previousState=a.currentState);a.currentState=b;a.previousState&&a.previousState.value?(b=Math.max(0,RE(b.timestamp,a.previousState.timestamp)),a.totalTime+=b,a.consecutiveTime+=b):a.consecutiveTime=0;return a} function c6a(){return hx(hF(b6a,{totalTime:0,consecutiveTime:0}),Kx(function(a){return a.totalTime}))} function d6a(){return hx(hF(b6a,{totalTime:0,consecutiveTime:0}),Kx(function(a){return a.consecutiveTime}))} ;var e6a=Kx(function(a){return[a.value.topWindowViewportExternalGeometry.width,a.value.topWindowViewportExternalGeometry.height]});function f6a(a,b){return function(c){return a6a(b.map(function(d){return c.pipe(a(d))}))}} ;function g6a(){var a;return hx(lF(function(b){return void(a=b.timestamp)}),d6a(),Kx(function(b){return{timestamp:a, value:Math.round(b)}}))} ;var EF=function(a,b){this.callback=a;this.options=b;this.intersectionObserverV2=this.intersectionObserverV1=null},h6a=function(a,b){b?a.intersectionObserverV2||(b=Object.assign({},a.options,{delay:100, trackVisibility:!0}),a.intersectionObserverV2=new IntersectionObserver(a.callback,b)):a.intersectionObserverV1||(a.intersectionObserverV1=new IntersectionObserver(a.callback,a.options))},FF=function(a,b){a=b?a.intersectionObserverV2:a.intersectionObserverV1; if(!a)throw new W3a;return a}; EF.prototype.observe=function(a,b){FF(this,a).observe(b)}; EF.prototype.unobserve=function(a,b){FF(this,a).unobserve(b)}; EF.prototype.disconnect=function(a){FF(this,a).disconnect()};var GF={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:xF,topWindowViewportExternalGeometry:xF,measurementRequests:new jx,elementGeometrySourceName:"ns",elementGeometry:xF,intersectionGeometry:xF,viewportLocalAppOffset:{x:0,y:0}}; function i6a(a,b){return yF(a.topWindowViewportExternalGeometry,b.topWindowViewportExternalGeometry)&&yF(a.elementGeometry,b.elementGeometry)&&yF(a.exposedViewportLocalGeometry,b.exposedViewportLocalGeometry)&&yF(a.intersectionGeometry,b.intersectionGeometry)&&a.elementGeometrySourceName===b.elementGeometrySourceName&&a.measurementRequests===b.measurementRequests&&a.viewportGeometrySourceName===b.viewportGeometrySourceName&&a.viewportLocalAppOffset.x===b.viewportLocalAppOffset.x&&a.viewportLocalAppOffset.y=== b.viewportLocalAppOffset.y} ;function j6a(a,b){return function(c){return function(d){var e=d.pipe(fF(new jx),Ix());d=c.element.pipe(dF());e=e.pipe(Kx(function(f){return f.value})); return Lx([d,e,b]).pipe(Kx(function(f){var h=l(f);f=h.next().value;var m=h.next().value;h=h.next().value;if(f.ref===void 0)var p={top:0,left:0,width:0,height:0};else{p=f.ref.getBoundingClientRect();var q=f.ref,t=a.global,u=new Ph(0,0),v=ki(ci(q));if(wd(v,"parent")){do{if(v==t)var w=vi(q);else w=aja(q),w=new Ph(w.left,w.top);u.x+=w.x;u.y+=w.y}while(v&&v!=t&&v!=v.parent&&(q=v.frameElement)&&(v=v.parent))}p={top:u.y,left:u.x,width:p.width,height:p.height}}p=j5a(p,m.viewportLocalAppOffset);t=i5a(p,m.exposedViewportLocalGeometry); u=a.timeProvider.now();v=Object;q=v.assign;if(h!==2||a.inCrossDomainIframe||t.width<=0||t.height<=0)var y=!1;else try{var A=a.document.elementFromPoint(t.left+t.width/2,t.top+t.height/2);y=A?!k6a(A,f):!1}catch(C){y=!1}return{timestamp:u,value:q.call(v,{},m,{elementGeometrySourceName:"geo",intersectionGeometry:y?GF.intersectionGeometry:t,elementGeometry:p})}}),qF(a.queue))}}} function k6a(a,b,c){c=c===void 0?0:c;return a.ref===void 0||b.ref===void 0?!1:a.ref===b.ref||si(b.ref,function(d){return d===a.ref})?!0:b.ref.ownerDocument&&b.ref.ownerDocument.defaultView&&b.ref.ownerDocument.defaultView===b.ref.ownerDocument.defaultView.top?!1:c<10&&b.ref.ownerDocument&&b.ref.ownerDocument.defaultView&&b.ref.ownerDocument.defaultView.frameElement?k6a(a,new vF(b.ref.ownerDocument.defaultView.frameElement),c+1):!0} ;function l6a(a){return function(b){return b.pipe(a.ResizeObserver?m6a(a):n6a(a),gF(1),Ix())}} function m6a(a){return function(b){return b.pipe(jF(function(c){var d=a.ResizeObserver;if(!d||c.ref===void 0)return Cx(GF.elementGeometry);var e=new ix(function(f){function h(){c.ref!==void 0&&m.unobserve(c.ref);m.disconnect();p.unsubscribe()} if(c.ref===void 0)return f.complete(),function(){}; var m=new d(function(q){q.forEach(function(t){f.next(t)})}); m.observe(c.ref);var p=c.JSC$9477_released.subscribe(h);return h}).pipe(SE(a.performanceMonitor,736),Kx(function(f){return f.contentRect})); return Tx(Cx(c.ref.getBoundingClientRect()),e)}),dF(yF))}} function n6a(a){return function(b){var c=b.pipe(T5a(a)),d=a.onResize;c=Tx(b.pipe(Kx(function(){return J4a("resize")})),c,d); return Lx(b,c).pipe(SE(a.performanceMonitor,737),Kx(function(e){e=l(e).next().value;return e.ref===void 0?void 0:e.ref.getBoundingClientRect()}),Z5a(),dF(yF))}} ;function o6a(a,b){var c=p6a(a,b).pipe(gF(1),Ix());return function(d){return function(e){e=e.pipe(jF(function(f){return f.element}),dF()); return Lx([c,e]).pipe(jF(function(f){var h=l(f);f=h.next().value;h=h.next().value;return q6a(a,f.intersectionObserver,l6a(a),f.observations,d,f.flushRecords,h)}),qF(a.queue))}}} function r6a(a){return Kx(function(b){return b.value.viewportGeometrySourceName!=="nio"?b:Object.assign({},b,{value:Object.assign({},b.value,{exposedViewportLocalGeometry:AF(a,!0),topWindowViewportExternalGeometry:AF(a,!0)})})})} function s6a(a,b){return Cx(b).pipe(a,Kx(function(){return b}))} function p6a(a,b){return a.timeProvider.timeline!==a4a?Dx(new LE(2)):a.MutationObserver?typeof IntersectionObserver==="undefined"?Dx(new LE(0)):new ix(function(c){var d=new jx,e=new EF(d.next.bind(d),{threshold:[].concat(ia(b))});c.next({observations:d.pipe(SE(a.performanceMonitor,735)),intersectionObserver:e,flushRecords:function(f){f=FF(e,f).takeRecords();f.length>0&&d.next(f)}})}).pipe(cF(1),gF(1),Ix()):Dx(new LE(1))} function t6a(a){return KMa(a.sort(function(b,c){return b.time-c.time}),ZMa)} function q6a(a,b,c,d,e,f,h){return new ix(function(m){function p(){y||(y=!0,h.ref!==void 0&&b.unobserve(e,h.ref),t.unsubscribe(),w.unsubscribe(),v.unsubscribe(),A.unsubscribe())} if(h.ref!==void 0){h6a(b,e);b.observe(e,h.ref);var q=new lx({timestamp:a.timeProvider.now(),value:Object.assign({},GF,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),t=d.pipe(Nx(function(C){return t6a(C)}),Vx(function(C){return C.target===h.ref}),Kx(function(C){return{timestamp:new QE(C.time,a4a), value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:C.rootBounds||xF,topWindowViewportExternalGeometry:C.rootBounds||AF(a,!0),measurementRequests:u,elementGeometrySourceName:"nio",intersectionGeometry:C.intersectionRect,elementGeometry:C.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:C.isIntersecting,isV2Visible:C.isVisible}}}),fF(q),Ix()).subscribe(m),u=new jx,v=u.subscribe(function(){f(e); m.next({timestamp:a.timeProvider.now(),value:q.value.value});h.ref!==void 0&&(b.unobserve(e,h.ref),b.observe(e,h.ref))}),w=s6a(c,h).subscribe(function(){u.next()}),y=!1,A=h.JSC$9477_released.subscribe(function(){return p()}); return p}})} ;function u6a(a,b){var c=a.getOnBackgrounded().pipe(Kx(function(){return"b"})); return vNa(b,c).pipe(cF(1),rF(a.queue))} ;function HF(a){return function(b){var c;return b.pipe(lF(function(d){return void(c=d.timestamp)}),Kx(function(d){return d.value}),a,Kx(function(d){return{timestamp:c, value:d}}))}} ;function v6a(a){return a.intersectionGeometry.width*a.intersectionGeometry.height/(a.elementGeometry.width*a.elementGeometry.height)} var w6a=HF(hx(Kx(function(a){var b;return(b=a.exposureOverride)!=null?b:v6a(a)}),Kx(function(a){return isFinite(a)?a:0}))),x6a=HF(hx(Kx(function(a){var b; return(b=a.exposureOverride)!=null?b:v6a(a)}),Kx(function(a){return isFinite(a)?a:-1})));var IF=function(a,b){this.a=a;this.b=b;if(a.clock.timeline!==b.clock.timeline)throw Error()}; IF.prototype.equivalentTo=function(a){return a instanceof IF?this.a.equivalentTo(a.a)&&this.b.equivalentTo(a.b):!1}; IF.prototype.extrapolateToTime=function(a){var b=this.a.extrapolateToTime(a).value,c=this.b.extrapolateToTime(a).value;return{timestamp:a,value:[b,c]}}; ba.Object.defineProperties(IF.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.a.active||this.b.active}}, clock:{configurable:!0,enumerable:!0,get:function(){return this.a.clock}}, lastMeasurement:{configurable:!0,enumerable:!0,get:function(){var a=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),b=this.a.lastMeasurement.timestamp.equals(a)?this.a.lastMeasurement.value:this.a.extrapolateToTime(a).value,c=this.b.lastMeasurement.timestamp.equals(a)?this.b.lastMeasurement.value:this.b.extrapolateToTime(a).value;return{timestamp:a,value:[b,c]}}}});var JF=function(a,b){this.input=a;this.mapFunction=b;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}}; JF.prototype.equivalentTo=function(a){return a instanceof JF?this.input.equivalentTo(a.input)&&this.mapFunction===a.mapFunction:!1}; JF.prototype.extrapolateToTime=function(a){a=this.input.extrapolateToTime(a);return{timestamp:a.timestamp,value:this.mapFunction(a.value)}}; ba.Object.defineProperties(JF.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}}, clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});function KF(a,b,c){c=c===void 0?function(d,e){return d===e}:c; return a.timestamp.equals(b.timestamp)&&c(a.value,b.value)} ;var LF=function(){}; LF.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())}; LF.prototype.extrapolateUsingTimestampMap=function(a){var b=this.clock.timeline,c,d=(c=a.get(b))!=null?c:this.clock.now();a.set(b,d);return this.extrapolateToTime(d)}; LF.prototype.map=function(a){return new y6a(this,a)}; LF.prototype.joinWith=function(a){return new z6a(this,a)}; var z6a=function(){IF.apply(this,arguments);this.map=LF.prototype.map;this.joinWith=LF.prototype.joinWith;this.extrapolateToNow=LF.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=LF.prototype.extrapolateUsingTimestampMap}; k(z6a,IF);var y6a=function(){JF.apply(this,arguments);this.map=LF.prototype.map;this.joinWith=LF.prototype.joinWith;this.extrapolateToNow=LF.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=LF.prototype.extrapolateUsingTimestampMap}; k(y6a,JF);var MF=function(a,b){this.lastMeasurement=b;this.extrapolateToNow=LF.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=LF.prototype.extrapolateUsingTimestampMap;this.map=LF.prototype.map;this.joinWith=LF.prototype.joinWith;this.clock=a}; MF.prototype.equivalentTo=function(a){return a.active}; MF.prototype.extrapolateToTime=function(){return this.lastMeasurement}; ba.Object.defineProperties(MF.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});function NF(a,b){return b.pipe(Kx(function(c){return new MF(a.timeProvider,{timestamp:a.timeProvider.now(),value:c})}))} ;function A6a(a){return function(b){return b.pipe(A4a(a),Kx(function(c){var d=l(c);c=d.next().value;d=d.next().value;var e=c.value;return{timestamp:c.timestamp,value:e>=1?!0:e<=0?!1:e>=d}}))}} ;var B6a=Kx(function(a){if(a.value.viewportGeometrySourceName==="omid"){if(a.value.elementGeometrySourceName==="nio")return"omio";if(a.value.elementGeometrySourceName==="geo")return"omgeo"}return a.value.elementGeometrySourceName==="geo"||a.value.elementGeometrySourceName==="nio"?a.value.viewportGeometrySourceName:a.value.elementGeometrySourceName});function C6a(){return hx(Vx(function(a,b){return b>0}),D6a,iF(-1),dF())} var D6a=hx(Vx(function(a){return!isNaN(a)}),hF(function(a,b){return isNaN(a)?b:Math.min(a,b)},NaN),dF());var E6a=HF(hx(Kx(function(a){return a.intersectionGeometry.width*a.intersectionGeometry.height/(a.exposedViewportLocalGeometry.width*a.exposedViewportLocalGeometry.height)}),Kx(function(a){return isFinite(a)?Math.min(1,a):0})));function F6a(a,b,c){return a?Lx([b,c]).pipe(Vx(function(d){var e=l(d);d=e.next().value;e=e.next().value;return d.timestamp.equals(e.timestamp)}),Kx(function(d){var e=l(d); d=e.next().value;e=e.next().value;return d.value>e.value?d:e})):b} function G6a(a){return function(b){var c=b.pipe(w6a),d=b.pipe(E6a);return a instanceof ix?a.pipe(jF(function(e){return F6a(e,c,d)})):F6a(a.value,c,d)}} ;var H6a=hx(HF(Kx(function(a){a=a.exposureOverride?a.elementGeometry.width*a.elementGeometry.height*a.exposureOverride/(a.topWindowViewportExternalGeometry.width*a.topWindowViewportExternalGeometry.height):a.intersectionGeometry.width*a.intersectionGeometry.height/(a.topWindowViewportExternalGeometry.width*a.topWindowViewportExternalGeometry.height);return isFinite(a)?a:0})));function I6a(a,b,c,d){var e=d.geometryIsOccluded,f=d.exposureThreshold,h=d.wasLargeAdAtRender,m=d.allowLargeAdThreshold,p=d.largeAdExposureThreshold,q=d.mayUseViewportShareExposure,t=d.hasMeasurementStarted;d=d.useIntersectionObserverV2;b=J6a(a,c,b);c=K6a(a,c);d=L6a(b,d);var u=M6a(a,e,q,b),v=u.pipe(Kx(function(R){return R.value}),dF(),rF(a),hF(function(R,W){return Math.max(R,W)},0)),w=u.pipe(Kx(function(R){return R.value}),C6a(),rF(a)),y=b.pipe(x6a,Kx(function(R){return R.value}),cF(2),dF(),rF(a)); h=N6a(a,b,h,m);var A=h.pipe(iF(!1),dF(),Kx(function(R){return R?p:f})); m=u.pipe(A6a(A),dF(),rF(a));var C=Lx([m,b]).pipe(Vx(function(R){var W=l(R);R=W.next().value;W=W.next().value;return R.timestamp.equals(W.timestamp)}),Kx(function(R){var W=l(R); R=W.next().value;W=W.next().value;return{visible:R.value,geometry:W.value.elementGeometry}}),hF(function(R,W){return!W.visible&&R.visible?R:W},{visible:!1, geometry:xF}),Kx(function(R){return R.geometry}),iF(xF),rF(a),dF(yF)); q=q instanceof ix?q.pipe(dF(),bF()):Ux;A=Lx([q,A]).pipe(bF());var I=b.pipe(Vx(function(R){return R.value.viewportGeometrySourceName!=="ns"&&R.value.elementGeometrySourceName!=="ns"}),hF(function(R){return R+1},0),iF(0),rF(a)),K=c.pipe(bF(!0),iF(!1),rF(a)); K=Lx([t,K]).pipe(Kx(function(R){var W=l(R);R=W.next().value;W=W.next().value;return R&&!W}),rF(a)); var N=b.pipe(H6a,dF()),L=N.pipe(Kx(function(R){return R.value}),hF(function(R,W){return Math.max(R,W)},0),dF(),rF(a)); a=N.pipe(Kx(function(R){return R.value}),C6a(),rF(a)); return{shouldResetExposureSignals:q,shouldResetViewabilitySignals:A,geometrySignals:{readyGeometryWithDefault:b,measurementStrategy:b.pipe(B6a),creativePosition:C.pipe(dF(yF)),visible:m.pipe(dF(KF)),timestampedExposure:u.pipe(dF(KF)),maximumExposure:v,minimumExposure:w,browserSize:b.pipe(e6a,dF(Ec)),timestampedScreenShare:N,maxScreenShare:L,minScreenShare:a,geometricMeasurementErrors:c,measurementRequests:b.pipe(Kx(function(R){return R.value.measurementRequests})), isLargeAd:h,geometryIsOccluded:e,hasMeasurementStarted:t,geometryMeasurable:K,validMeasurementCount:I,loadTimeExposure:y,v2VisibilityBitVector:d}}} function K6a(a,b){return b.pipe(Vx(function(){return!1}),Kx(function(c){return c}),$E(function(c){return tF(new sF(c),a)}))} function J6a(a,b,c){return b.pipe(uNa(Ux),rF(a)).pipe(dF(function(d,e){return KF(d,e,i6a)}),iF({timestamp:c.now(), value:GF}),rF(a))} function M6a(a,b,c,d){c=d.pipe(G6a(c),HF(Kx(function(e){return Math.round(e*100)/100})),rF(a)); return b instanceof sF?c:Lx([c,b]).pipe(Kx(function(e){var f=l(e);e=f.next().value;f=f.next().value;return{timestamp:f.timestamp.maximum(e.timestamp),value:f.value?0:e.value}}),dF(KF),rF(a))} function N6a(a,b,c,d){b=[b.pipe(Kx(function(e){return e.value.elementGeometry.width*e.value.elementGeometry.height>=242500}))]; c instanceof ix&&b.push(c.pipe(Kx(function(e){return!!e}))); c=Lx(b);return d?c.pipe(Kx(function(e){return e.some(function(f){return f})}),iF(!1),dF(),rF(a)):tF(new sF(!1),a)} function L6a(a,b){a=Lx([a,b]).pipe(Kx(function(e){var f=l(e);e=f.next().value;if(f.next().value&&e.value.isIntersecting)return e.value.isV2Visible}),dF()); var c=a.pipe(Kx(function(e){return e===void 0?!0:e}),hF(function(e,f){return e||!f},!1)),d=a.pipe(hF(function(e,f){return f===void 0?e:f?!1:e!=null?e:!0},void 0),Kx(function(e){return!!e})); return Lx([b,xNa(a,c,d)]).pipe(Kx(function(e){var f=l(e);e=f.next().value;var h=l(f.next().value);f=h.next().value;var m=h.next().value;h=h.next().value;var p=0;if(!e)return 0;if(f===void 0)return 16;f&&(p|=1);f||(p|=2);m&&(p|=4);h&&(p|=8);return p}))} ;var O6a=function(a,b){var c=this;this.timeProvider=a;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=b.pipe(dF()).subscribe(function(d){OF(c);c.measurementRequestObserver=d})},P6a=function(a,b){OF(a); a.lastMeasurementRequest=a.timeProvider.setTimeout(function(){var c;return void((c=a.measurementRequestObserver)==null?void 0:c.next())},b)},OF=function(a){a.lastMeasurementRequest!==null&&a.timeProvider.clearTimeout(a.lastMeasurementRequest); a.lastMeasurementRequest=null}; O6a.prototype.dispose=function(){OF(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};function Q6a(a,b,c,d,e){var f=PF.timeThresholdMs;var h=h===void 0?new O6a(b,d):h;return new ix(function(m){var p=c.pipe(iF(void 0),jF(function(){return R6a(e)})).pipe(Kx(function(q){var t=q.value; q=q.timestamp;var u=t.visible;t=t.consecutiveViewTime;var v=t>=f;v||!u?OF(h):(q=Math.max(0,RE(b.now(),q)),P6a(h,Math.max(0,f-t-q)));return v}),hF(function(q,t){return t||q},!1),dF()).subscribe(m); return function(){h.dispose();p.unsubscribe()}}).pipe(kF(function(m){return!m},!0),rF(a))} function R6a(a){return a6a([a,a.pipe(g6a())]).pipe(Kx(function(b){var c=l(b);b=c.next().value;c=c.next().value;return{timestamp:b.timestamp,value:{visible:b.value,consecutiveViewTime:c.value}}}),dF(function(b,c){return KF(b,c,function(d,e){return d.consecutiveViewTime===e.consecutiveViewTime&&d.visible===e.visible})}))} ;function S6a(){return hx(d6a(),hF(function(a,b){return Math.max(a,b)},0),Kx(function(a){return Math.round(a)}))} ;function T6a(a){return hx(A6a(Cx(a)),S6a())} ;function U6a(a,b){return b instanceof ix?b.pipe(jF(function(c){return(c=c?15:null)?Dx(new LE(c)):a})):(b=b.value?15:null)?Dx(new LE(b)):a} ;function V6a(a){var b=new LE(13);if(a.length<1)return{chain:mx,capturedErrors:mx};var c=new jx,d=a[0];return{chain:a.slice(1).reduce(function(e,f){return e.pipe($E(function(h){c.next(h);return f}))},d).pipe($E(function(e){c.next(e); return Dx(b)}),fF(new jx),Ix()), capturedErrors:c}} ;var W6a=function(){};var X6a=function(a,b){this.context=a;this.strategies=b}; k(X6a,W6a);X6a.prototype.buildGeometrySource=function(a,b){var c=this.strategies.map(function(f){return f.buildGeometrySource(a,b)}),d=V6a(c.map(function(f){return f.geometrySource})),e=d.capturedErrors.pipe(Y6a()); return{geometrySource:d.chain.pipe(rF(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:e,strategyErrors:d.capturedErrors}].concat(ia(c.map(function(f){return f.additionalOutputs}))))}}; var Y6a=function(){return hF(function(a,b){b instanceof LE?a.push(b.measurementStrategyFailureReason):a.push(-1);return a},[])};function Z6a(a,b){var c=a.pipe(fF(new jx),Ix());return jF(function(d){return c.pipe(b(d))})} ;function $6a(a,b){if(a.inCrossDomainIframe)return Dx(new LE(6));var c=new jx;return Tx(Cx({}),b,c).pipe(Kx(function(){return{timestamp:a.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:a7a(a),topWindowViewportExternalGeometry:AF(a,!0),measurementRequests:c,viewportLocalAppOffset:{x:0,y:0}}}}),qF(a.queue))} function a7a(a){var b=AF(a,!1);if(!a.inIframe||!wh(a.global.parent)||a.global.parent===a.global)return b;var c=new zF(a.global.parent,a.debugChannel);c.beaconFactory=a.beaconFactory;c=a7a(c);a=a.global.frameElement.getBoundingClientRect();return i5a(j5a(i5a(c,a),{x:b.left-a.left,y:b.top-a.top}),b)} ;var b7a=function(a,b){this.context=a;this.poller=b}; k(b7a,W6a);b7a.prototype.buildGeometrySource=function(a,b){var c=Z6a($6a(this.context,this.poller),j6a(this.context,b.requestSource));return{geometrySource:U6a(a.measurableCreative.pipe(c),b.inApp),additionalOutputs:{}}};var c7a=function(a,b,c){c=c===void 0?o6a(a,b):c;this.context=a;this.intersectionObserverStrategy=c}; k(c7a,W6a);c7a.prototype.buildGeometrySource=function(a,b){var c=this.intersectionObserverStrategy(b.useV2);return{geometrySource:U6a(a.measurableCreative.pipe(c,r6a(this.context)),b.inApp),additionalOutputs:{}}};function d7a(a){return a.document.JSC$9485_onVisibilityChange.pipe(Kx(function(b){return b==="visible"}),dF(),rF(a.queue))} ;function e7a(a,b,c){var d;return b.pipe(dF(),jF(function(e){return c.pipe(Kx(function(){if(!d){d=!0;try{e.next()}finally{d=!1}}return!0}))}),iF(!1),rF(a.queue))} ;function f7a(a){return hx(HF(Kx(function(b){return b>=1?!0:b<=0?!1:b>=a})),c6a(),Kx(function(b){return Math.round(b)}))} ;function g7a(a,b,c,d,e){var f=h7a;if(f.length>1)for(var h=0;h0?p-m[q-1]:p})}))}),dF(Ec),rF(a)), maxConsecutiveViewTime:e,consecutiveViewTime:h.pipe(dF(KF),rF(a))}} ;function i7a(a){var b=!0;b=b===void 0?!1:b;return hx(jF(function(c){return a5a(a.document,c,b)}),rF(a.queue))} ;function j7a(a,b,c){var d=c.pipe(Kx(function(e){return{value:e,timestamp:a.timeProvider.now()}}),dF(KF)); return b instanceof ix?b.pipe(dF(),jF(function(e){return e?tF(new sF({value:!1,timestamp:a.timeProvider.now()}),a.queue):d})):b.value===!1?d:new sF(!1)} function k7a(a,b,c,d,e,f,h){var m=PF;b=b instanceof ix?b.pipe(iF(!1),dF()):b;var p=!a.isMobile();c=j7a(a,c,d);a=h.measurableCreative.pipe($5a(a.queue));return Object.assign({},m,{geometryIsOccluded:c,wasLargeAdAtRender:e,allowLargeAdThreshold:p,mayUseViewportShareExposure:b,hasMeasurementStarted:a,useIntersectionObserverV2:f})} ;var l7a=function(a,b,c){var d=d===void 0?Symbol():d;this.element=a;this.immediateUrls=b;this.timeOnScreenUrls=c;this.symbol=d};var PF=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),h7a=Object.freeze([1,.75,PF.exposureThreshold,PF.largeAdExposureThreshold,0]);function m7a(a,b,c,d,e,f){var h=1;f=f===void 0?!0:f;h=h===void 0?.01:h;var m=m===void 0?a.timeProvider.intervalObservable(100).pipe(rF(a.queue)):m;return a.performanceMonitor.timeExecution(916,function(){return n7a(a,b.pipe(qF(a.queue)),c.pipe(qF(a.queue)),d,e,f,h,m)})()} function n7a(a,b,c,d,e,f,h,m){var p=d7a(a).pipe(Kx(function(t){return!t})),q=new X6a(a,[new c7a(a,h7a), new b7a(a,m)]);m=N5a(Y5a,J5a);return D5a(a,b,function(t,u){var v=tF(new sF(u.element),t.queue).pipe(i7a(t),rF(t.queue)),w={loadedElement:v,shouldMeasure:v.pipe(bF(!0)),measurableCreative:v.pipe(Kx(function(R){var W=W===void 0?Symbol():W;return Object.freeze({symbol:W,element:tF(new sF(R),t.queue)})})), creativeSearchResult:tF(new sF("mue"),t.queue)},y=new sF(!1),A=new sF(!1),C=new sF(17),I=new sF(!1),K=new sF(!1),N=tF(uF,t.queue);y=q.buildGeometrySource(w,{inApp:y,useV2:!1,requestSource:tF(C,t.queue)}).geometrySource;w=k7a(t,I,A,p,K,N,w);A=I6a(t.queue,t.timeProvider,y,w);w=A.geometrySignals;I=A.shouldResetViewabilitySignals;A=g7a(t.queue,w.timestampedExposure,w.visible,A.shouldResetExposureSignals,I);I=Q6a(t.queue,t.timeProvider,I,w.measurementRequests,w.visible);K=c.pipe(Vx(function(R){return R=== u.element.ref}),Kx(function(){return"ur"})); N=g4a(t.timeProvider,e).pipe(bF("t"));K=u6a(t,Tx(K,N));N=e7a(t,w.measurementRequests,K.pipe(Vx(function(R){return R!==null}))); y=K.pipe(Vx(function(R){return R!==null}),Kx(function(){return Fja(t.global.document)===1})); var L=$4a(t.document);return Object.assign({},{beaconFactory:new sF(t.beaconFactory),context:new sF(t),inferredPingId:new sF("lidar2"),timeOnScreenPingId:new sF("lidartos"),binaryContext:new sF(17),binaryVersion:new sF(d),requestSource:C,contextValidationErrors:new sF(t.validate()?null:new ME),contextVisibilityKnown:new sF(L),payloadMapper:new sF(M5a),endOfSessionReason:K,timeOnScreenReason:K,requestMeasurementOnEndOfSession:N,hasImpressionFired:G4a,crossDomainIframeState:new sF(t.inCrossDomainIframe? 1:void 0),inStatefulBeaconExperiment:uF,inFetchLaterBeaconExperiment:uF,isTurtlex:uF,turtlexReportEventData:new sF(""),reportFencedFrameEvent:Ux,isViewableAttributionEnabled:uF,inViewableAttributionExperiment:new sF(0),fetchBeaconFactory:Ux,supportsPendingBeacon:uF,supportsFetchLater:uF,emit:new sF(R5a),beginToRenderEvent:new sF(Symbol()),activeViewUnmeasurableEvent:new sF(Symbol()),activeViewViewableEvent:new sF(Symbol()),creativeFound:G4a,immediateUrlPrefixes:new sF(u.immediateUrls),timeOnScreenUrlPrefixes:new sF(u.timeOnScreenUrls), cpmavUrls:Ux,viewableRelayUrls:Ux,measurementDeferralState:new sF(2),urlSerializer:new sF(X5a),viewUrlSerializer:new sF(E5a),isCreativeLoaded:v.pipe($5a(t.queue)),pageVisible:p.pipe(Kx(function(R){return!R})), eosPageVisible:y,timestampedExposureHistory:w.timestampedExposure.pipe(hF(function(R,W){R.push(W);return R},[]))},w,{viewable:NF(t,I), maxTimeOnScreen:NF(t,A.maxTimeOnScreen),timeOnScreen:NF(t,A.timeOnScreen),maxConsecutiveViewTime:NF(t,A.maxConsecutiveViewTime),consecutiveViewTime:A.consecutiveViewTime.pipe(Kx(function(R){return new MF(t.timeProvider,R)})), totalMeasurementTime:NF(t,A.totalMeasurementTime),totalUnviewedTime:NF(t,A.totalUnviewedTime),userAgentClientHints:H4a(t),clientOrderPingCounter:new sF(new G5a())})},K5a(a,h),O5a(f?P5a(m,Q5a):P5a(m,F5a),V5a))} ;var QF=function(a,b){b=b===void 0?36E5:b;var c=c===void 0?!0:c;this.creatives=new jx;this.elementsToUnregister=new jx;this.elementMap=new Map;var d=new zF(window,null);d.beaconFactory=new TE(d,new nF(d));m7a(d,this.creatives,this.elementsToUnregister,a,b,c).subscribe()},o7a=function(a,b,c,d){if(!a.elementMap.has(b)){var e=new vF(b); a.elementMap.set(b,e);a.creatives.next(new l7a(e,c,d))}},RF=function(a,b){a.elementsToUnregister.next(b); var c=a.elementMap.get(b);c!==void 0&&(c.release(),a.elementMap.delete(b))};function p7a(){try{var a,b;return!!((a=window)==null?0:(b=a.top)==null?0:b.location.href)&&!1}catch(c){return!0}} ;var SF=function(a,b,c){c=c===void 0?Error():c;var d=Error.call(this);this.message=d.message;"stack"in d&&(this.stack=d.stack);this.code=a;b+=":";c instanceof Error?(this.message=b+c.message,this.stack=c.stack||""):(this.message=b+String(c),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)}; k(SF,Error);function q7a(){var a=r7a();a=a===void 0?"bevasrsg":a;return new Promise(function(b){var c=window===window.top?window:p7a()?window:window.top,d=c[a],e;((e=d)==null?0:e.bevasrs)?b(new TF(d.bevasrs)):(d||(d={},d=(d.nqfbel=[],d),c[a]=d),d.nqfbel.push(function(f){b(new TF(f))}))})} var TF=function(a){Ji.call(this);var b=this;this.jc=a;this.tAb="keydown keypress keyup input focusin focusout select copy cut paste change click dblclick auxclick pointerover pointerdown pointerup pointermove pointerout dragenter dragleave drag dragend mouseover mousedown mouseup mousemove mouseout touchstart touchend touchmove wheel".split(" ");this.jKa=void 0;this.sV=this.jc.p;this.aOb=this.x6.bind(this);this.addOnDisposeCallback(function(){return void s7a(b)})}; k(TF,Ji);TF.prototype.snapshot=function(a){return this.jc.s(Object.assign({},a.ot&&{c:a.ot},a.gqa&&{s:a.gqa},a.ySa!==void 0&&{p:a.ySa}))}; TF.prototype.x6=function(a){this.jc.e(a)}; TF.prototype.xea=function(a,b){return this.jc.c(a,b,!1)}; var s7a=function(a){a.jKa!==void 0&&(a.tAb.forEach(function(b){var c;(c=a.jKa)==null||c.removeEventListener(b,a.aOb)}),a.jKa=void 0)}; TF.prototype.y8=function(){return this.jc.l()};function t7a(a){var b,c,d={ot:a.c,dCa:a.e,gec:(b=a.mc)!=null?b:!1,hec:(c=a.me)!=null?c:!1};a.co&&(d.hea={i6a:a.co.c,xMb:a.co.a,tqc:a.co.s});return d} function u7a(a){return function(){var b;return ra(function(c){if(c.nextAddress==1)return c.yield(a(),2);b=c.yieldResult;return c.return({f:function(){return b.gV.promise}, c:function(d){if(d>150)var e=!1;else try{b.cache=new v7a(d,b.logger),e=!0}catch(f){b.reportError(new SF(22,"GBJ:init",f)),e=!1}return e}, m:function(d){return b.nF(t7a(d))}, mws:function(d){return b.zla(t7a(d))}})})}} function w7a(a,b){var c=r7a();c=c===void 0?"bevasrsg":c;b={s:function(f){var h;return a.snapshot(Object.assign({},f.c&&{ot:f.c},f.s&&{gqa:f.s},{k2c:(h=f.p)!=null?h:!0}))}, e:function(f){var h;return void((h=a.x6)==null?void 0:h.call(a,f))}, c:function(f,h){return a.xea(f,h)}, p:a.sV,l:function(){return a.y8()}, wpc:b?u7a(b):void 0};var d=window===window.top?window:p7a()?window:window.top,e=d[c];if(e){e.bevasrs=b;if(e.nqfbel!==void 0)for(c=l(e.nqfbel),d=c.next();!d.done;d=c.next())d=d.value,d(b);e.nqfbel=void 0}else e={},e=(e.bevasrs=b,e.nqfbel=void 0,e),d[c]=e} ;function x7a(a){var b=b===void 0?53:b;var c=[];Ff(a,y7a,6).forEach(function(d){Pf(d,2)<=b&&c.push(Pf(d,1))}); return c} function z7a(a){var b=b===void 0?53:b;var c=[];Ff(a,y7a,6).forEach(function(d){Pf(d,2)>b&&c.push(Pf(d,1))}); return c} ;function A7a(a){a.then(function(){},function(){})} var UF=function(){Ji.apply(this,arguments);this.ssb=1}; k(UF,Ji);UF.prototype.share=function(){if(this.isDisposed())throw Error("E:AD");this.ssb++;return this}; UF.prototype.dispose=function(){--this.ssb||Ji.prototype.dispose.call(this)};var B7a=function(a){this.sFb=a;a.addNewEventMetric("/client_streamz/bg/frs",hw("mk"))},C7a=function(a){a.addNewEventMetric("/client_streamz/bg/wrl",hw("mn"),gw("ac"),gw("sc"),hw("rk"),hw("mk"))},D7a=function(a){this.tFb=a; a.addNewCounter("/client_streamz/bg/ec",hw("en"),hw("mk"))}; D7a.prototype.increment=function(a,b){this.tFb.JSC$7886_incrementCounter("/client_streamz/bg/ec",a,b)}; var E7a=function(a){this.uFb=a;a.addNewEventMetric("/client_streamz/bg/el",hw("en"),hw("mk"))},F7a=function(a){this.vFb=a; a.addNewCounter("/client_streamz/bg/cec",gw("ec"),hw("mk"))}; F7a.prototype.increment=function(a,b){this.vFb.JSC$7886_incrementCounter("/client_streamz/bg/cec",a,b)}; var G7a=function(a){this.wFb=a;a.addNewCounter("/client_streamz/bg/po/csc",gw("cs"),hw("mk"))}; G7a.prototype.increment=function(a,b){this.wFb.JSC$7886_incrementCounter("/client_streamz/bg/po/csc",a,b)}; var H7a=function(a){this.xFb=a;a.addNewCounter("/client_streamz/bg/po/ctav",hw("av"),hw("mk"))}; H7a.prototype.increment=function(a,b){this.xFb.JSC$7886_incrementCounter("/client_streamz/bg/po/ctav",a,b)}; var I7a=function(a){this.yFb=a;a.addNewCounter("/client_streamz/bg/po/cwsc",hw("su"),hw("mk"))}; I7a.prototype.increment=function(a,b){this.yFb.JSC$7886_incrementCounter("/client_streamz/bg/po/cwsc",a,b)}; var J7a=function(a){this.zFb=a;a.addNewEventMetric("/client_streamz/bg/od/p",hw("mk"))},K7a=function(a){this.aGb=a; a.addNewEventMetric("/client_streamz/bg/od/n",hw("et"),hw("mk"))};var L7a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(L7a,Ig);var M7a=function(a,b){return sfa(a,3,b,rea)};var N7a=function(){this.minSize=1024}; N7a.prototype.compress=function(a){var b,c,d,e;return ra(function(f){switch(f.nextAddress){case 1:return b=new CompressionStream("gzip"),c=new Response(b.readable).arrayBuffer(),d=b.writable.getWriter(),f.yield(d.write(new TextEncoder().encode(a)),2);case 2:return f.yield(d.close(),3);case 3:return e=Uint8Array,f.yield(c,4);case 4:return f.return(new e(f.yieldResult));}})}; N7a.prototype.isSupported=function(a){return a0?c:void 0);c=dg(c,4,e>0?e:void 0);c=dg(c,5,f>0?f:void 0);c=ifa(c);Gf(h,10,c)}h=this.logRequest.clone();c=Date.now().toString();h=qf(h,4,Pe(c));a=a.slice();a=Kf(h,3,a);d&&(h=new O7a,d=dg(h,13,d),h=new P7a,d=Gf(h,2,d),h=new Z7a,d=Gf(h,1,d),d=hg(d, 2,9),Gf(a,18,d));b&&eg(a,14,b);return a};function aG(a,b,c,d){this.initialValue_=a;this.maxValue_=b;this.currBaseValue_=this.currValue_=a;this.randomFactor_=c||0;this.backoffFactor_=d||2} aG.prototype.currBackoffCount_=0;aG.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0}; var e8a=function(a){a.currBaseValue_=Math.min(a.maxValue_,a.currBaseValue_*a.backoffFactor_);a.currValue_=Math.min(a.maxValue_,a.currBaseValue_+(a.randomFactor_?Math.round(a.randomFactor_*(Math.random()-.5)*2*a.currBaseValue_):0));a.currBackoffCount_++};var oha=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a,8)}; k(oha,Ig);var f8a=uh(oha);var pha=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(pha,Ig);var bG;bG=new qha;var cG=function(a){Ji.call(this);var b=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$9693_compressor=this.experimentIds=null;this.numRetriesSinceLastSuccessfulFlush=this.numLogsDroppedSinceLastFlush=0;this.metalogService=null;this.persistedLogExpiredCount=this.persistedLogRecoveredCount=0;this.sequencePosition=1;this.timeoutMillis=0;this.JSC$9693_sendBeaconApiEnabled=!1;this.logSource=a.logSource;this.getAuthHeaderValue= a.getAuthHeaderValue||function(){}; this.logRequestBuilder=new b8a(a.logSource,a.isServiceWorkerScope);this.network=a.network||null;this.productID=a.productID||null;this.clearcutUrl=a.urlOverride||null;this.sessionIndex=a.sessionIndex||null;this.disableAutomaticFlush=a.disableAutomaticFlush||!1;this.logger=null;this.withCredentials=!a.disableWithCredentials;this.isServiceWorkerScope=a.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!ki()&&!!ki().navigator&&ki().navigator.sendBeacon!==void 0;this.isBrowserSupported= typeof URLSearchParams!=="undefined"&&!!new URL(g8a()).searchParams&&!!new URL(g8a()).searchParams.set;var c=Y7a(new YF);a8a(this.logRequestBuilder,c);this.flushBackoff=new aG(1E4,3E5,.1);a=h8a(this,a.backgroundJobDeferrer);this.JSC$9693_flushTimer=new VF(this.flushBackoff.currValue_,a);this.backupTimer=new VF(6E5,a);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){i8a(b); var d;(d=b.metalogService)==null||d.flush()}}),document.addEventListener("pagehide",function(){i8a(b); var d;(d=b.metalogService)==null||d.flush()}))}; k(cG,Ji);var h8a=function(a,b){if(!a.isBrowserSupported)return function(){}; var c=function(){a.flush()}; return b?function(){b().then(c)}:c}; cG.prototype.disposeInternal=function(){i8a(this);this.JSC$9693_flushTimer.stop();this.backupTimer.stop();Ji.prototype.disposeInternal.call(this)}; var j8a=function(a){a.clearcutUrl||(a.clearcutUrl=g8a());try{return new URL(a.clearcutUrl).toString()}catch(b){return new URL(a.clearcutUrl,ki().location.origin).toString()}}; cG.prototype.dispatch=function(a){if(a instanceof ZF)this.log(a);else try{var b=new ZF,c=a.serialize();var d=fg(b,8,c);this.log(d)}catch(e){dG(this,4,1)}}; var dG=function(a,b,c){a.metalogService&&a.metalogService.increment(b,c)}; cG.prototype.log=function(a){dG(this,2,1);if(this.isBrowserSupported){a=a.clone();var b=this.sequencePosition++;a=eg(a,21,b);this.componentId&&fg(a,26,this.componentId);b=a;if(yea(of(b,1))==null){var c=Date.now();c=Number.isFinite(c)?c.toString():"0";qf(b,1,Pe(c))}c=of(b,15,void 0,void 0,zea);c!=null&&(typeof c==="bigint"?ne(c)?c=Number(c):(c=ye(64,c),c=ne(c)?Number(c):String(c)):c=Ie(c)?typeof c==="number"?Oe(c):Ne(c):void 0);c!=null||eg(b,15,new Date().getTimezoneOffset()*60);this.experimentIds&&( c=this.experimentIds.clone(),Gf(b,16,c));dG(this,1,1);b=this.pendingEvents.length-1E3+1;b>0&&(this.pendingEvents.splice(0,b),this.numLogsDroppedSinceLastFlush+=b,dG(this,3,b));this.pendingEvents.push(a);this.disableAutomaticFlush||this.JSC$9693_flushTimer.enabled||this.JSC$9693_flushTimer.start()}}; cG.prototype.flush=function(a,b){var c=this;if(this.pendingEvents.length===0)a&&a();else if(this.JSC$9693_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,k8a(this);else{var d=Date.now();if(this.noFlushUntilMs>d&&this.startWaitingMs0&&(c.startWaitingMs=Date.now(),c.noFlushUntilMs=c.startWaitingMs+v),Vea(w.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),Uea(w),w=bG.ctor?bG.getExtensionFn(w,bG.ctor,175237375,bG.JSC$6117_hasMessageId): bG.getExtensionFn(w,175237375,null,bG.JSC$6117_hasMessageId),w=w===null?void 0:w)&&(w=Pf(w,1,-1),w!==-1&&(c.flushBackoff=new aG(w<1?1:w,3E5,.1),c.JSC$9693_flushTimer.setInterval(c.flushBackoff.currValue_)))}a&&a();c.numRetriesSinceLastSuccessfulFlush=0},t=function(v,w){var y=Ff(f,ZF,3); var A=Number(Rf(f,14));e8a(c.flushBackoff);c.JSC$9693_flushTimer.setInterval(c.flushBackoff.currValue_);v===401&&h&&(c.lastFailedAuth=h);A&&(c.numLogsDroppedSinceLastFlush+=A);w===void 0&&(w=c.isRetryable(v));w&&(c.pendingEvents=y.concat(c.pendingEvents),c.disableAutomaticFlush||c.JSC$9693_flushTimer.enabled||c.JSC$9693_flushTimer.start());dG(c,7,1);b&&b("net-send-failed",v);++c.numRetriesSinceLastSuccessfulFlush},u=function(){c.network&&c.network.send(p,q,t)}; m?m.then(function(v){dG(c,5,e);p.requestHeaders["Content-Encoding"]="gzip";p.requestHeaders["Content-Type"]="application/binary";p.body=v;p.bodyType=2;u()},function(){dG(c,6,e); u()}):u()}}}}; var l8a=function(a,b,c){c=c===void 0?null:c;var d=d===void 0?a.withCredentials:d;var e={},f=new URL(j8a(a));c&&(e.Authorization=c);a.sessionIndex&&(e["X-Goog-AuthUser"]=a.sessionIndex,f.searchParams.set("authuser",a.sessionIndex));a.pageId&&(Object.defineProperty(e,"X-Goog-PageId",{value:a.pageId}),f.searchParams.set("pageId",a.pageId));return{url:f.toString(),body:b,bodyType:1,requestHeaders:e,requestType:"POST",withCredentials:d,timeoutMillis:a.timeoutMillis}},i8a=function(a){a.logRequestBuilder.isFinal= !0; a.flush();a.logRequestBuilder.isFinal=!1},k8a=function(a){m8a(a,function(b,c){b=new URL(b); b.searchParams.set("format","json");var d=!1;try{d=ki().navigator.sendBeacon(b.toString(),c.serialize())}catch(e){}d||(a.isSendBeaconSupported=!1);return d})},m8a=function(a,b){if(a.pendingEvents.length!==0){var c=new URL(j8a(a)); c.searchParams.delete("format");var d=a.getAuthHeaderValue();d&&c.searchParams.set("auth",d);c.searchParams.set("authuser",a.sessionIndex||"0");for(d=0;d<10&&a.pendingEvents.length;++d){var e=a.pendingEvents.slice(0,32),f=a.logRequestBuilder.build(e,a.numLogsDroppedSinceLastFlush,a.numRetriesSinceLastSuccessfulFlush,a.productID,a.persistedLogRecoveredCount,a.persistedLogExpiredCount);if(!b(c.toString(),f)){++a.numRetriesSinceLastSuccessfulFlush;break}a.numLogsDroppedSinceLastFlush=0;a.numRetriesSinceLastSuccessfulFlush= 0;a.persistedLogRecoveredCount=0;a.persistedLogExpiredCount=0;a.pendingEvents=a.pendingEvents.slice(e.length)}a.JSC$9693_flushTimer.enabled&&a.JSC$9693_flushTimer.stop()}}; cG.prototype.isRetryable=function(a){return 500<=a&&a<600||a===401||a===0}; var g8a=function(){return"https://play.google.com/log?format=json&hasfast=true"};var n8a=function(){this.abortSupported=typeof AbortController!=="undefined"}; n8a.prototype.send=function(a,b,c){var d=this,e,f,h,m,p,q,t,u,v,w;return ra(function(y){switch(y.nextAddress){case 1:return f=(e=d.abortSupported?new AbortController:void 0)?setTimeout(function(){e.abort()},a.timeoutMillis):void 0,y.setCatchFinallyBlocks(2,3),h=Object.assign({},{method:a.requestType, headers:Object.assign({},a.requestHeaders)},a.body&&{body:a.body},a.withCredentials&&{credentials:"include"},{signal:a.timeoutMillis&&e?e.signal:null}),y.yield(fetch(a.url,h),5);case 5:m=y.yieldResult;if(m.status!==200){(p=c)==null||p(m.status);y.jumpTo(3);break}if((q=b)==null){y.jumpTo(7);break}return y.yield(m.text(),8);case 8:q(y.yieldResult);case 7:case 3:y.enterFinallyBlock();clearTimeout(f);y.leaveFinallyBlock(0);break;case 2:t=y.enterCatchBlock();switch((u=t)==null?void 0:u.name){case"AbortError":(v= c)==null||v(408);break;default:(w=c)==null||w(400);}y.jumpTo(3);}})}; n8a.prototype.getTransmissionType=function(){return 4};var eG=function(a,b){b=b===void 0?"0":b;Ji.call(this);this.logSource=a;this.sessionIndex=b;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$9712_clearExperimentIds=this.productID=null;this.JSC$9712_sendBeaconApiEnabled=!1;this.logger=this.pageId=null}; k(eG,Ji);var o8a=function(a,b){a.buildLabel=b;return a},p8a=function(a,b){a.network=b; return a},q8a=function(a,b){a.JSC$9712_clearExperimentIds=b},r8a=function(a){a.JSC$9712_sendBeaconApiEnabled=!0; return a}; eG.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this}; eG.prototype.build=function(){this.network||(this.network=new n8a);var a=new cG({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:Gi,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});Ki(this,a);if(this.buildLabel){var b=this.buildLabel,c=$F(a.logRequestBuilder); fg(c,7,b)}a.JSC$9693_compressor=new N7a;this.componentId&&(a.componentId=this.componentId);this.productID&&(a.productID=this.productID);this.pageId&&(a.pageId=this.pageId);this.JSC$9712_clearExperimentIds&&((c=this.JSC$9712_clearExperimentIds)?(a.experimentIds||(a.experimentIds=new cja),b=a.experimentIds,c=c.serialize(),fg(b,4,c)):a.experimentIds&&qf(a.experimentIds,4));this.JSC$9712_sendBeaconApiEnabled&&(a.JSC$9693_sendBeaconApiEnabled=a.isSendBeaconSupported);d8a(a.logRequestBuilder);this.network.setLogSource&& this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(a);return a};var s8a=function(a,b,c,d,e,f,h){a=a===void 0?-1:a;b=b===void 0?"":b;c=c===void 0?"":c;d=d===void 0?!1:d;e=e===void 0?"":e;Ji.call(this);this.logSource=a;this.componentId=b;f?b=f:(a=new eG(a,"0"),a.componentId=b,Ki(this,a),c!==""&&(a.destinationUrl=c),d&&(a.serviceWorkerScopeEnabled=!0),e&&o8a(a,e),h&&p8a(a,h),b=a.build());this.JSC$9716_transport=b}; k(s8a,Ji);s8a.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new fLa,c=[],d=0;dthis.endTimeMs};function b9a(a,b){try{return globalThis.sessionStorage.setItem(a,b),!0}catch(c){return!1}} var c9a,d9a=(c9a=Math.imul)!=null?c9a:function(a,b){return a*b|0}; function e9a(a,b,c,d){b=b===void 0?0:b;c=c===void 0?a.length:c;var e=0;for(d&&(e=e9a(d));b>1,b),e9a(a,a.length>>1)]} var sG=[196,200,224,18];function g9a(a){var b=l(f9a(a,sG));a=b.next().value;b=b.next().value;return a.toString(16)+b.toString(16)} function h9a(a,b){var c=f9a(b);a=new Uint32Array(a.buffer);b=a[0];var d=l(c);c=d.next().value;d=d.next().value;for(var e=1;e>>8|h<<24,h+=f|0,h^=m+38293,f=f<<3|f>>>29,f^=h,p=p>>>8|p<<24,p+=m|0,p^=q+38293,m=m<<3|m>>>29,m^=p;f=[f,h];a[e]^=f[0];e+1=c?(globalThis.sessionStorage.removeItem(a),["e"]):["a",new Uint8Array(d.buffer,b+4)]} var tG=function(a,b,c){c=c===void 0?[]:c;this.maxItems=a;this.gA=b===void 0?0:b;this.eL=c},k9a=function(a){var b=globalThis.sessionStorage.getItem("iU5q-!O9@$"); if(!b)return new tG(a);var c=b.split(",");if(c.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new tG(a);b=c.slice(1);b.length===1&&b[0]===""&&(b=[]);c=Number(c[0]);return isNaN(c)||c<0||c>b.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new tG(a)):new tG(a,c,b)}; tG.prototype.serialize=function(){return String(this.gA)+","+this.eL.join()}; tG.prototype.insert=function(a,b){var c=void 0;if(this.eL[this.gA]!==a){var d=this.eL.indexOf(a);d!==-1?(this.eL.splice(d,1),d=this.jec&&this.nQa.resolve();var d=a();a=jG(this.logger,function(){return c.fec(d)},"C"); if(a===void 0)throw new SF(17,"YNJ:Undefined");if(!(a instanceof Uint8Array))throw new SF(18,"ODM:Invalid");b==null||b(a);return a}; var p9a=function(a,b,c){uG.call(this,a);this.fVb=b;this.fU="f";this.m1="z";n9a(this,c)}; k(p9a,uG);p9a.prototype.nF=function(){return this.fVb}; var wG=function(a,b,c){uG.call(this,a);this.wyb=b;this.fU="w";this.m1="z";n9a(this,c)}; k(wG,uG);wG.prototype.nF=function(){var a=this;return jG(this.logger,function(){return Gd(a.wyb)},"d")}; wG.prototype.zla=function(){return this.wyb}; var q9a=function(a,b){uG.call(this,a);this.error=b;this.fU="e";this.m1="y"}; k(q9a,uG);var s9a=function(a,b){var c=(b(a.error.message)+":"+b(a.error.stack)).substring(0,2048);b=c.length+1;c=r9a(c);var d=new Uint8Array(4+c.length);d.set([42,b&127|128,b>>7,a.error.code]);d.set(c,4);return d}; q9a.prototype.nF=function(){if(this.l6a)return this.l6a;this.l6a=s9a(this,function(a){return"_"+Osa(a)}); return s9a(this,function(a){return a})}; var t9a=function(a,b,c){uG.call(this,a);this.b1b=b;this.clientState=c;this.fU="S";this.m1="q"}; k(t9a,uG);t9a.prototype.nF=function(){var a=Math.floor(Date.now()/1E3),b=[Math.random()*255,Math.random()*255],c=b.concat([this.b1b&255,this.clientState],[a>>24&255,a>>16&255,a>>8&255,a&255]);a=new Uint8Array(2+c.length);a[0]=34;a[1]=c.length;a.set(c,2);c=a.subarray(2);for(var d=b=b.length;da.JSC$9899_maxDelayMs_&&(a.currentMaxDelayMs_=a.JSC$9899_maxDelayMs_)));a.inRetryMode_=!0;return b};var k$a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(k$a,Ig);var BG=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(BG,Ig);var m$a=function(){var a=new BG;return Bf(a,1,l$a,Ge(!0))},n$a=function(){var a=new BG; return Bf(a,2,l$a,Ge(!0))},l$a=[1, 2,3,15];var o$a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(o$a,Ig);var CG=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(CG,Ig);var Zf=[1,2,3,4,5,6,7,8,9,10,11,12,13];var p$a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(p$a,Ig);var q$a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(q$a,Ig);q$a.prototype.getName=function(){return Xf(this,1,r$a)}; var r$a=[1,2];var s$a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(s$a,Ig);s$a.prototype.getOwner=function(){return Ef(this,BG,2)};var t$a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(t$a,Ig);t$a.prototype.getOwner=function(){return Ef(this,BG,2)};var u$a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(u$a,Ig);var DG=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(DG,Ig);DG.prototype.setHeader=function(a){return Gf(this,4,a)}; DG.prototype.hasHeader=function(){return sf(this,k$a,4)}; var v$a=[2,3,6];var w$a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(w$a,Ig);var x$a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(x$a,Ig);var y$a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(y$a,Ig);var z$a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(z$a,Ig);var A$a=[2,3];var B$a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(B$a,Ig);var C$a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(C$a,Ig);var D$a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(D$a,Ig);D$a.prototype.getMessage=function(){return Uf(this,3)};var EG=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(EG,Ig);EG.prototype.getStatus=function(){return Ef(this,D$a,1)};var E$a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(E$a,Ig);var F$a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(F$a,Ig);var G$a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(G$a,Ig);var H$a=[1,2,3,5];var I$a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(I$a,Ig);var J$a=[2,3,4];var K$a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(K$a,Ig);var L$a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(L$a,Ig);L$a.prototype.getStatus=function(){return Ef(this,K$a,2)};var M$a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(M$a,Ig);var N$a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(N$a,Ig);function FG(a){Ji.call(this);this.handler_=a;this.JSC$9960_keys_={}} Ra(FG,Ji);var O$a=[];FG.prototype.listen=function(a,b,c,d){Array.isArray(b)||(b&&(O$a[0]=b.toString()),b=O$a);for(var e=0;e=b||(this.tokens=Math.min(b,this.max),this.lastAddedTimestampMs=a)};var $$a=function(){},aab=function(){},bab=function(a){this.httpStatusCode=a},cab=function(a){this.count=a},dab=function(){},eab=function(){},fab=function(){},gab=function(a,b){this.error=a; this.httpStatusCode=b},hab=function(a){this.status=a},iab=function(){this.forceLongPolling=!1};var jab=function(a,b,c,d,e){this.objectId=a;this.version=b;this.payload=c;this.isReplay=d===void 0?!1:d;this.isDirect=e===void 0?!1:e},kab=function(){},lab=function(a){this.timestampMicros=a};var mab={ERAS:["BC","AD"],ERANAMES:["Before Christ","Anno Domini"],NARROWMONTHS:"JFMAMJJASOND".split(""),STANDALONENARROWMONTHS:"JFMAMJJASOND".split(""),MONTHS:"January February March April May June July August September October November December".split(" "),STANDALONEMONTHS:"January February March April May June July August September October November December".split(" "),SHORTMONTHS:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),STANDALONESHORTMONTHS:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "), WEEKDAYS:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),STANDALONEWEEKDAYS:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),SHORTWEEKDAYS:"Sun Mon Tue Wed Thu Fri Sat".split(" "),STANDALONESHORTWEEKDAYS:"Sun Mon Tue Wed Thu Fri Sat".split(" "),NARROWWEEKDAYS:"SMTWTFS".split(""),STANDALONENARROWWEEKDAYS:"SMTWTFS".split(""),SHORTQUARTERS:["Q1","Q2","Q3","Q4"],QUARTERS:["1st quarter","2nd quarter","3rd quarter","4th quarter"],AMPMS:["AM","PM"],DATEFORMATS:["EEEE, MMMM d, y", "MMMM d, y","MMM d, y","M/d/yy"],TIMEFORMATS:["h:mm:ss\u202Fa zzzz","h:mm:ss\u202Fa z","h:mm:ss\u202Fa","h:mm\u202Fa"],DATETIMEFORMATS:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],FIRSTDAYOFWEEK:6,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:5},IG=mab;IG=mab;var nab=function(a,b){switch(b){case 1:return a%4!=0||a%100==0&&a%400!=0?28:29;case 5:case 8:case 10:case 3:return 30;}return 31},oab=function(a,b,c,d,e){a=new Date(a,b,c); e=e||0;return a.valueOf()+(((d!==void 0?d:3)-e+7)%7-((a.getDay()+6)%7-e+7)%7)*864E5},KG=function(a){typeof a==="number"?(this.date=pab(a,0,1),JG(this,1)):Ga(a)?(this.date=pab(a.getFullYear(),a.getMonth(),a.getDate()),JG(this,a.getDate())):(this.date=new Date(Ka()),a=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),JG(this,a))},pab=function(a,b,c){b=new Date(a,b,c); a>=0&&a<100&&b.setFullYear(b.getFullYear()-1900);return b}; g=KG.prototype;g.firstDayOfWeek_=IG.FIRSTDAYOFWEEK;g.firstWeekCutOffDay_=IG.FIRSTWEEKCUTOFFDAY;g.clone=function(){var a=new KG(this.date);a.firstDayOfWeek_=this.firstDayOfWeek_;a.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return a}; g.getFullYear=function(){return this.date.getFullYear()}; g.getYear=function(){return this.getFullYear()}; g.getMonth=function(){return this.date.getMonth()}; g.getDate=function(){return this.date.getDate()}; g.getTime=function(){return this.date.getTime()}; g.getDay=function(){return this.date.getDay()}; g.getUTCFullYear=function(){return this.date.getUTCFullYear()}; g.getUTCMonth=function(){return this.date.getUTCMonth()}; g.getUTCDate=function(){return this.date.getUTCDate()}; g.getUTCDay=function(){return this.date.getDay()}; g.getUTCHours=function(){return this.date.getUTCHours()}; g.getUTCMinutes=function(){return this.date.getUTCMinutes()}; g.getTimezoneOffset=function(){return this.date.getTimezoneOffset()}; g.set=function(a){this.date=new Date(a.getFullYear(),a.getMonth(),a.getDate())}; g.setFullYear=function(a){this.date.setFullYear(a)}; g.setYear=function(a){this.setFullYear(a)}; g.setMonth=function(a){this.date.setMonth(a)}; g.setDate=function(a){this.date.setDate(a)}; g.setTime=function(a){this.date.setTime(a)}; g.setUTCFullYear=function(a){this.date.setUTCFullYear(a)}; g.setUTCMonth=function(a){this.date.setUTCMonth(a)}; g.setUTCDate=function(a){this.date.setUTCDate(a)}; g.add=function(a){if(a.years||a.months){var b=this.getMonth()+a.months+a.years*12,c=this.getYear()+Math.floor(b/12);b%=12;b<0&&(b+=12);var d=Math.min(nab(c,b),this.getDate());this.setDate(1);this.setFullYear(c);this.setMonth(b);this.setDate(d)}a.days&&(c=this.getYear(),b=c>=0&&c<=99?-1900:0,a=new Date(new Date(c,this.getMonth(),this.getDate(),12).getTime()+a.days*864E5),this.setDate(1),this.setFullYear(a.getFullYear()+b),this.setMonth(a.getMonth()),this.setDate(a.getDate()),JG(this,a.getDate()))}; var qab=function(a){var b=a.getFullYear(),c=b<0?"-":b>=1E4?"+":"";return[c+Oc(Math.abs(b),c?6:4),Oc(a.getMonth()+1,2),Oc(a.getDate(),2)].join("")+""}; KG.prototype.equals=function(a){return!(!a||this.getYear()!=a.getYear()||this.getMonth()!=a.getMonth()||this.getDate()!=a.getDate())}; KG.prototype.toString=function(){return qab(this)}; var JG=function(a,b){a.getDate()!=b&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()>>0)}; g=MG.prototype;g.isSafeInteger=function(){var a=this.high_>>21;return a==0||a==-1&&!(this.low_==0&&this.high_==-2097152)}; g.toString=function(a){a=a||10;if(a<2||36>2);var c=Math.pow(a,b),d=OG(c,c/4294967296);c=this.div(d);d=Math.abs(NG(PG(this,c.multiply(d))));var e=a==10?""+d:d.toString(a);e.length>>0>a.low_>>>0?1:-1:this.high_>a.high_?1:-1}; g.negate=function(){var a=~this.low_+1|0;return OG(a,~this.high_+!a|0)}; g.add=function(a){var b=this.high_>>>16,c=this.high_&65535,d=this.low_>>>16,e=a.high_>>>16,f=a.high_&65535,h=a.low_>>>16;a=(this.low_&65535)+(a.low_&65535);h=(a>>>16)+(d+h);d=h>>>16;d+=c+f;return OG((h&65535)<<16|a&65535,((d>>>16)+(b+e)&65535)<<16|d&65535)}; var PG=function(a,b){return a.add(b.negate())}; g=MG.prototype;g.multiply=function(a){if(this.isZero())return this;if(a.isZero())return a;var b=this.high_>>>16,c=this.high_&65535,d=this.low_>>>16,e=this.low_&65535,f=a.high_>>>16,h=a.high_&65535,m=a.low_>>>16;a=a.low_&65535;var p=e*a;var q=(p>>>16)+d*a;var t=q>>>16;q=(q&65535)+e*m;t+=q>>>16;t+=c*a;var u=t>>>16;t=(t&65535)+d*m;u+=t>>>16;t=(t&65535)+e*h;u=u+(t>>>16)+(b*a+c*m+d*h+e*f)&65535;return OG((q&65535)<<16|p&65535,u<<16|t&65535)}; g.div=function(a){if(a.isZero())throw Error("division by zero");if(this.high_<0){if(this.equals(QG)){if(a.equals(RG)||a.equals(tab))return QG;if(a.equals(QG))return RG;var b=this.high_;b=OG(this.low_>>>1|b<<31,b>>1);b=b.div(a).shiftLeft(1);if(b.equals(SG))return a.high_<0?RG:tab;var c=PG(this,a.multiply(b));return b.add(c.div(a))}return a.high_<0?this.negate().div(a.negate()):this.negate().div(a).negate()}if(this.isZero())return SG;if(a.high_<0)return a.equals(QG)?SG:this.div(a.negate()).negate(); b=SG;for(c=this;c.compare(a)>=0;){var d=Math.max(1,Math.floor(NG(c)/NG(a))),e=Math.ceil(Math.log(d)/Math.LN2);e=e<=48?1:Math.pow(2,e-48);for(var f=TG(d),h=f.multiply(a);h.high_<0||h.compare(c)>0;)d-=e,f=TG(d),h=f.multiply(a);f.isZero()&&(f=RG);b=b.add(f);c=PG(c,h)}return b}; g.not=function(){return OG(~this.low_,~this.high_)}; g.and=function(a){return OG(this.low_&a.low_,this.high_&a.high_)}; g.or=function(a){return OG(this.low_|a.low_,this.high_|a.high_)}; g.xor=function(a){return OG(this.low_^a.low_,this.high_^a.high_)}; g.shiftLeft=function(a){a&=63;if(a==0)return this;var b=this.low_;return a<32?OG(b<>>32-a):OG(0,b<0?a>=0x7fffffffffffffff?wab:new MG(a,a/4294967296):a<0?a<=-0x7fffffffffffffff?QG:new MG(-a,-a/4294967296).negate():SG},OG=function(a,b){return new MG(a,b)},UG=function(a,b){if(a.charAt(0)=="-")return UG(a.substring(1),b).negate(); var c=parseInt(a,b||10);if(c<=9007199254740991)return new MG(c%4294967296|0,c/4294967296|0);if(a.length==0)throw Error("number format error: empty string");if(a.indexOf("-")>=0)throw Error("number format error: interior \"-\" character: "+a);b=b||10;if(b<2||36a.parts.length)b=!1;else{for(b=0;b1){var t=q[0];q=q[1];var u=t.split("_");h=u.length>=2&&u[1]=="type"?h+(t+"="+q+"&"):h+(t+"=redacted&")}}}else h=null;}else h=f;return"XMLHTTP REQ ("+d+") [attempt "+e+"]: "+b+"\n"+c+"\n"+h})},Qab=function(a,b,c,d,e,f,h){a.info(function(){return"XMLHTTP RESP ("+d+") [ attempt "+e+"]: "+b+"\n"+c+"\n"+f+" "+h})},hH=function(a,b,c,d){a.info(function(){return"XMLHTTP TEXT ("+ b+"): "+Rab(a,c)+(d?" "+d:"")})},Sab=function(a,b){a.info(function(){return"TIMEOUT: "+b})}; gH.prototype.debug=function(){}; gH.prototype.info=function(){}; gH.prototype.warning=function(){}; var Rab=function(a,b){if(!a.redactEnabled_)return b;if(!b)return null;try{var c=JSON.parse(b);if(c)for(var d=0;d0&&(a.readyStateChangeThrottle_=new Fw(Ia(a.xmlHttpHandler_,a,a.xmlHttp_),a.JSC$10067_readyStateChangeThrottleMs_));a.JSC$10067_eventHandler_.listen(a.xmlHttp_,"readystatechange", a.readyStateChangeHandler_);b=a.JSC$10067_extraHeaders_?Xh(a.JSC$10067_extraHeaders_):{};a.postData_?(a.verb_||(a.verb_="POST"),b["Content-Type"]="application/x-www-form-urlencoded",a.xmlHttp_.send(a.requestUri_,a.verb_,a.postData_,b)):(a.verb_="GET",a.xmlHttp_.send(a.requestUri_,a.verb_,null,b));dH(1);Pab(a.JSC$10067_channelDebug_,a.verb_,a.requestUri_,a.rid_,a.retryId_,a.postData_)}; iH.prototype.readyStateChangeHandler_=function(a){a=a.target;var b=this.readyStateChangeThrottle_;b&&xo(a)==3?(this.JSC$10067_channelDebug_.debug("Throttling readystatechange."),b.fire()):this.xmlHttpHandler_(a)}; iH.prototype.xmlHttpHandler_=function(a){try{a==this.xmlHttp_?bbb(this):this.JSC$10067_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(b){this.JSC$10067_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}}; var bbb=function(a){var b=xo(a.xmlHttp_),c=a.xmlHttp_.JSC$6832_lastErrorCode_,d=a.xmlHttp_.getStatus();if(!(b<3||b==3&&!cbb(a))){a.cancelled_||b!=4||c==7||(c==8||d<=0?dH(3):dH(2));dbb(a);var e=a.xmlHttp_.getStatus();a.lastStatusCode_=e;c=ebb(a);cbb(a)||a.JSC$10067_channelDebug_.debug(function(){return"No response text for uri "+a.requestUri_+" status "+e}); a.successful_=e==200;Qab(a.JSC$10067_channelDebug_,a.verb_,a.requestUri_,a.rid_,a.retryId_,b,e);if(a.successful_){if(a.decodeInitialResponse_&&!a.initialResponseDecoded_)if(d=fbb(a))hH(a.JSC$10067_channelDebug_,a.rid_,d,"Initial handshake response via X-HTTP-Initial-Response"),a.initialResponseDecoded_=!0,gbb(a,d);else{a.successful_=!1;a.JSC$10067_lastError_=3;eH(12);a.JSC$10067_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+a.rid_+")");jH(a);kH(a);return}a.decodeChunks_?hbb(a, b,c):(hH(a.JSC$10067_channelDebug_,a.rid_,c,null),gbb(a,c));b==4&&jH(a);a.successful_&&!a.cancelled_&&(b==4?ibb(a.JSC$10067_channel_,a):(a.successful_=!1,$ab(a)))}else Jsa(a.xmlHttp_),e==400&&c.indexOf("Unknown SID")>0?(a.JSC$10067_lastError_=3,eH(12),a.JSC$10067_channelDebug_.warning("XMLHTTP Unknown SID ("+a.rid_+")")):(a.JSC$10067_lastError_=0,eH(13),a.JSC$10067_channelDebug_.warning("XMLHTTP Bad status "+e+" ("+a.rid_+")")),jH(a),kH(a)}},fbb=function(a){return a.xmlHttp_&&(a=a.xmlHttp_,(a=a.xhr_? a.xhr_.getResponseHeader("X-HTTP-Initial-Response"):null)&&!Ya(a))?a:null},ebb=function(a){if(!jbb(a))return a.xmlHttp_.getResponseText(); var b=Isa(a.xmlHttp_);if(b==="")return"";var c="",d=b.length,e=xo(a.xmlHttp_)==4;if(!a.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return jH(a),kH(a),"";a.fetchResponseState_.textDecoder=new ua.TextDecoder}for(var f=0;f0&&!a.firstByteReceived_&&(a.firstByteReceived_=!0,b=a.JSC$10067_channel_,b.backChannelRequest_==a&&b.detectBufferingProxy_&&!b.bpDetectionDone_&&(b.JSC$10104_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+c.length),lbb(b),b.bpDetectionDone_=!0,eH(11))):(hH(a.JSC$10067_channelDebug_,a.rid_,c,"[Invalid Chunked Response]"),jH(a),kH(a))},kbb=function(a,b){var c=a.xmlHttpChunkStart_,d=b.indexOf("\n",c); if(d==-1)return Xab;c=Number(b.substring(c,d));if(isNaN(c))return Wab;d+=1;if(d+c>b.length)return Xab;b=b.slice(d,d+c);a.xmlHttpChunkStart_=d+c;return b}; iH.prototype.cancel=function(){this.cancelled_=!0;jH(this)}; var $ab=function(a){a.watchDogTimeoutTime_=Date.now()+a.timeout_;mbb(a,a.timeout_)},mbb=function(a,b){if(a.watchDogTimerId_!=null)throw Error("WatchDog timer not null"); a.watchDogTimerId_=fH(Ia(a.onWatchDogTimeout_,a),b)},dbb=function(a){a.watchDogTimerId_&&(ua.clearTimeout(a.watchDogTimerId_),a.watchDogTimerId_=null)}; iH.prototype.onWatchDogTimeout_=function(){this.watchDogTimerId_=null;var a=Date.now();a-this.watchDogTimeoutTime_>=0?(Sab(this.JSC$10067_channelDebug_,this.requestUri_),this.JSC$10067_type_!=2&&(dH(3),eH(17)),jH(this),this.JSC$10067_lastError_=2,kH(this)):(this.JSC$10067_channelDebug_.warning("WatchDog timer called too early"),mbb(this,this.watchDogTimeoutTime_-a))}; var kH=function(a){a.JSC$10067_channel_.state_==0||a.cancelled_||ibb(a.JSC$10067_channel_,a)},jH=function(a){dbb(a); Ii(a.readyStateChangeThrottle_);a.readyStateChangeThrottle_=null;a.JSC$10067_eventHandler_.removeAll();if(a.xmlHttp_){var b=a.xmlHttp_;a.xmlHttp_=null;b.abort();b.dispose()}}; iH.prototype.getLastError=function(){return this.JSC$10067_lastError_}; var gbb=function(a,b){try{var c=a.JSC$10067_channel_;if(c.state_!=0&&(c.backChannelRequest_==a||nbb(c.forwardChannelRequestPool_,a)))if(!a.initialResponseDecoded_&&nbb(c.forwardChannelRequestPool_,a)&&c.state_==3){try{var d=c.wireCodec_.parser_.parse(b)}catch(m){d=null}if(Array.isArray(d)&&d.length==3){b=d;if(b[0]==0){a:if(c.JSC$10104_channelDebug_.debug("Server claims our backchannel is missing."),c.backChannelTimerId_)c.JSC$10104_channelDebug_.debug("But we are currently starting the request.");else {if(c.backChannelRequest_){if(c.backChannelRequest_.requestStartTime_+3E30&&(a[0].nextHopProtocol=="hq"||a[0].nextHopProtocol=="h2")):a=!!(ua.chrome&&ua.chrome.loadTimes&&ua.chrome.loadTimes()&&ua.chrome.loadTimes().wasFetchedViaSpdy);this.maxSize_=a?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.maxSize_>1&&(this.requestPool_=new Set);this.JSC$10078_request_=null;this.JSC$10078_pendingMessages_=[]},ubb=function(a){return a.JSC$10078_request_? !0:a.requestPool_?a.requestPool_.size>=a.maxSize_:!1},rbb=function(a){return a.JSC$10078_request_?1:a.requestPool_?a.requestPool_.size:0},nbb=function(a,b){return a.JSC$10078_request_?a.JSC$10078_request_==b:a.requestPool_?a.requestPool_.has(b):!1},vbb=function(a,b){a.requestPool_?a.requestPool_.add(b):a.JSC$10078_request_=b},wbb=function(a,b){a.JSC$10078_request_&&a.JSC$10078_request_==b?a.JSC$10078_request_=null:a.requestPool_&&a.requestPool_.has(b)&&a.requestPool_.delete(b)}; tbb.prototype.cancel=function(){this.JSC$10078_pendingMessages_=xbb(this);if(this.JSC$10078_request_)this.JSC$10078_request_.cancel(),this.JSC$10078_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var a=l(this.requestPool_.values()),b=a.next();!b.done;b=a.next())b.value.cancel();this.requestPool_.clear()}}; var xbb=function(a){if(a.JSC$10078_request_!=null)return a.JSC$10078_pendingMessages_.concat(a.JSC$10078_request_.JSC$10067_pendingMessages_);if(a.requestPool_!=null&&a.requestPool_.size!==0){var b=a.JSC$10078_pendingMessages_;a=l(a.requestPool_.values());for(var c=a.next();!c.done;c=a.next())b=b.concat(c.value.JSC$10067_pendingMessages_);return b}return Dc(a.JSC$10078_pendingMessages_)},ybb=function(a,b){a.JSC$10078_pendingMessages_=a.JSC$10078_pendingMessages_.concat(b)};function zbb(a,b){var c=new gH;c.debug("TestLoadImage: loading "+a);if(ua.Image){var d=new Image;d.onload=Ja(mH,c,"TestLoadImage: loaded",!0,b,d);d.onerror=Ja(mH,c,"TestLoadImage: error",!1,b,d);d.onabort=Ja(mH,c,"TestLoadImage: abort",!1,b,d);d.ontimeout=Ja(mH,c,"TestLoadImage: timeout",!1,b,d);ua.setTimeout(function(){if(d.ontimeout)d.ontimeout()},1E4); d.src=a}else b(!1)} function Abb(a,b){var c=new gH,d=new AbortController,e=setTimeout(function(){d.abort();mH(c,"TestPingServer: timeout",!1,b)},1E4); fetch(a,{signal:d.signal}).then(function(f){clearTimeout(e);f.ok?mH(c,"TestPingServer: ok",!0,b):mH(c,"TestPingServer: server error",!1,b)}).catch(function(){clearTimeout(e); mH(c,"TestPingServer: error",!1,b)})} function mH(a,b,c,d,e){try{a.debug(b),e&&(e.onload=null,e.onerror=null,e.onabort=null,e.ontimeout=null),d(c)}catch(f){}} ;var Bbb=function(){}; Bbb.prototype.stringify=function(a){return ua.JSON.stringify(a,void 0)}; Bbb.prototype.parse=function(a){return ua.JSON.parse(a,void 0)};function Cbb(){this.parser_=new Bbb} ;var Dbb=function(a){this.JSC$10091_worker_=a.worker||null;this.JSC$10091_streamBinaryChunks_=a.streamBinaryChunks||!1;this.JSC$10091_credentialsMode_=void 0}; Ra(Dbb,ysa);Dbb.prototype.createInstance=function(){var a=new nH(this.JSC$10091_worker_,this.JSC$10091_streamBinaryChunks_);this.JSC$10091_credentialsMode_&&a.setCredentialsMode(this.JSC$10091_credentialsMode_);return a}; Dbb.prototype.setCredentialsMode=function(a){this.JSC$10091_credentialsMode_=a}; var nH=function(a,b){Yi.call(this);this.JSC$10095_worker_=a;this.JSC$10095_streamBinaryChunks_=b;this.JSC$10095_credentialsMode_=void 0;this.status=this.readyState=0;this.responseURL=this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=null;this.requestHeaders_=new Headers;this.JSC$10095_responseHeaders_=null;this.JSC$10095_method_="GET";this.JSC$10095_url_="";this.inProgress_=!1;this.textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_= new AbortController}; Ra(nH,Yi);nH.prototype.open=function(a,b){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.JSC$10095_method_=a;this.JSC$10095_url_=b;this.readyState=1;oH(this)}; nH.prototype.send=function(a){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");if(this.abortController_.signal.aborted)throw this.abort(),Error("Request was aborted.");this.inProgress_=!0;var b={headers:this.requestHeaders_,method:this.JSC$10095_method_,credentials:this.JSC$10095_credentialsMode_,cache:void 0,signal:this.abortController_.signal};a&&(b.body=a);(this.JSC$10095_worker_||ua).fetch(new Request(this.JSC$10095_url_,b)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))}; nH.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.abortController_.abort("Request was aborted.");this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null}); this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,pH(this));this.readyState=0}; nH.prototype.handleResponse_=function(a){if(this.inProgress_&&(this.fetchResponse_=a,this.JSC$10095_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$10095_responseHeaders_=a.headers,this.readyState=2,oH(this)),this.inProgress_&&(this.readyState=3,oH(this),this.inProgress_)))if(this.responseType==="arraybuffer")a.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof ua.ReadableStream!== "undefined"&&"body"in a){this.currentReader_=a.body.getReader();if(this.JSC$10095_streamBinaryChunks_){if(this.responseType)throw Error("responseType must be empty for \"streamBinaryChunks\" mode responses.");this.response=[]}else this.response=this.responseText="",this.textDecoder_=new TextDecoder;Ebb(this)}else a.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))}; var Ebb=function(a){a.currentReader_.read().then(a.handleDataFromStream_.bind(a)).catch(a.handleSendFailure_.bind(a))}; nH.prototype.handleDataFromStream_=function(a){if(this.inProgress_){if(this.JSC$10095_streamBinaryChunks_&&a.value)this.response.push(a.value);else if(!this.JSC$10095_streamBinaryChunks_){var b=a.value?a.value:new Uint8Array(0);if(b=this.textDecoder_.decode(b,{stream:!a.done}))this.response=this.responseText+=b}a.done?pH(this):oH(this);this.readyState==3&&Ebb(this)}}; nH.prototype.handleResponseText_=function(a){this.inProgress_&&(this.response=this.responseText=a,pH(this))}; nH.prototype.handleResponseArrayBuffer_=function(a){this.inProgress_&&(this.response=a,pH(this))}; nH.prototype.handleSendFailure_=function(){this.inProgress_&&pH(this)}; var pH=function(a){a.readyState=4;a.fetchResponse_=null;a.currentReader_=null;a.textDecoder_=null;oH(a)}; nH.prototype.setRequestHeader=function(a,b){this.requestHeaders_.append(a,b)}; nH.prototype.getResponseHeader=function(a){return this.JSC$10095_responseHeaders_?this.JSC$10095_responseHeaders_.get(a.toLowerCase())||"":""}; nH.prototype.getAllResponseHeaders=function(){if(!this.JSC$10095_responseHeaders_)return"";for(var a=[],b=this.JSC$10095_responseHeaders_.entries(),c=b.next();!c.done;)c=c.value,a.push(c[0]+": "+c[1]),c=b.next();return a.join("\r\n")}; nH.prototype.setCredentialsMode=function(a){this.JSC$10095_credentialsMode_=a}; var oH=function(a){a.onreadystatechange&&a.onreadystatechange.call(a)}; Object.defineProperty(nH.prototype,"withCredentials",{get:function(){return this.JSC$10095_credentialsMode_==="include"}, set:function(a){this.setCredentialsMode(a?"include":"same-origin")}});var Fbb=function(a){var b="";Sh(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"}); return b},Gbb=function(a,b,c){Wh(c)||(c=Fbb(c),typeof a==="string"?bd(a,Ic(b),c):Op(a,b,c))};function qH(a,b,c){return c&&c.internalChannelParams?c.internalChannelParams[a]||b:b} function rH(a){this.serverVersion_=0;this.outgoingMaps_=[];this.JSC$10104_channelDebug_=new gH;this.hostPrefix_=this.backChannelUri_=this.forwardChannelUri_=this.JSC$10104_path_=this.backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$10104_extraHeaders_=null;this.nextMapId_=this.nextRid_=0;this.failFast_=qH("failFast",!1,a);this.enableStreaming_=this.deadBackChannelTimerId_=this.backChannelTimerId_=this.forwardChannelTimerId_= this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.lastPostResponseArrayId_=this.lastArrayId_=-1;this.backChannelAttemptId_=this.backChannelRetryCount_=this.forwardChannelRetryCount_=0;this.baseRetryDelayMs_=qH("baseRetryDelayMs",5E3,a);this.retryDelaySeedMs_=qH("retryDelaySeedMs",1E4,a);this.forwardChannelMaxRetries_=qH("forwardChannelMaxRetries",2,a);this.forwardChannelRequestTimeoutMs_=qH("forwardChannelRequestTimeoutMs",2E4,a);this.JSC$10104_xmlHttpFactory_=a&&a.xmlHttpFactory|| void 0;this.networkTestUrl_=a&&a.networkTestUrl||void 0;this.usesFetchStreams_=a&&a.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.supportsCrossDomainXhrs_=a&&a.supportsCrossDomainXhr||!1;this.JSC$10104_sid_="";this.forwardChannelRequestPool_=new tbb(a&&a.concurrentRequestLimit);this.maxMapsPerRequest_=Math.min(a&&a.maxMessagesPerRequest||1E3,1E3);this.wireCodec_=new Cbb;this.fastHandshake_=a&&a.fastHandshake||!1;this.encodeInitMessageHeaders_=a&&a.encodeInitMessageHeaders||!1; this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$10104_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=a&&a.blockingHandshake||!1;a&&a.disableRedact&&this.JSC$10104_channelDebug_.disableRedact();a&&a.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&a&&a.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;a&&a.longPollingTimeout&& a.longPollingTimeout>0&&(this.longPollingTimeout_=a.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null} rH.prototype.channelVersion_=8;rH.prototype.state_=1;rH.prototype.connect=function(a,b,c,d){this.JSC$10104_channelDebug_.debug("connect()");eH(0);this.JSC$10104_path_=a;this.extraParams_=b||{};c&&d!==void 0&&(this.extraParams_.OSID=c,this.extraParams_.OAID=d);this.enableStreaming_=this.allowStreamingMode_;this.JSC$10104_channelDebug_.debug("connectChannel_()");a=Hbb(this,null,this.JSC$10104_path_);this.JSC$10104_channelDebug_.debug("GetForwardChannelUri: "+a);this.forwardChannelUri_=a;Ibb(this)}; rH.prototype.disconnect=function(){this.JSC$10104_channelDebug_.debug("disconnect()");Jbb(this);if(this.state_==3){var a=this.nextRid_++,b=this.forwardChannelUri_.clone();Op(b,"SID",this.JSC$10104_sid_);Op(b,"RID",a);Op(b,"TYPE","terminate");sH(this,b);a=new iH(this,this.JSC$10104_channelDebug_,a);a.JSC$10067_type_=2;a.baseUri_=Pp(b.clone());b=!1;if(ua.navigator&&ua.navigator.sendBeacon)try{b=ua.navigator.sendBeacon(a.baseUri_.toString(),"")}catch(c){}!b&&ua.Image&&(new Image().src=a.baseUri_,b=!0); b||(a.xmlHttp_=abb(a.JSC$10067_channel_,null),a.xmlHttp_.send(a.baseUri_));a.requestStartTime_=Date.now();$ab(a)}Kbb(this)}; var pbb=function(a){a.backChannelRequest_&&(lbb(a),a.backChannelRequest_.cancel(),a.backChannelRequest_=null)},Jbb=function(a){pbb(a); a.backChannelTimerId_&&(ua.clearTimeout(a.backChannelTimerId_),a.backChannelTimerId_=null);obb(a);a.forwardChannelRequestPool_.cancel();a.forwardChannelTimerId_&&(typeof a.forwardChannelTimerId_==="number"&&ua.clearTimeout(a.forwardChannelTimerId_),a.forwardChannelTimerId_=null)}; rH.prototype.getState=function(){return this.state_}; var Ibb=function(a){ubb(a.forwardChannelRequestPool_)||a.forwardChannelTimerId_||(a.forwardChannelTimerId_=!0,dj(a.onStartForwardChannelTimer_,a),a.forwardChannelRetryCount_=0)},Mbb=function(a,b){if(rbb(a.forwardChannelRequestPool_)>=a.forwardChannelRequestPool_.maxSize_-(a.forwardChannelTimerId_?1:0))return!1; if(a.forwardChannelTimerId_)return a.JSC$10104_channelDebug_.debug("Use the retry request that is already scheduled."),a.outgoingMaps_=b.JSC$10067_pendingMessages_.concat(a.outgoingMaps_),!0;if(a.state_==1||a.state_==2||a.forwardChannelRetryCount_>=(a.failFast_?0:a.forwardChannelMaxRetries_))return!1;a.JSC$10104_channelDebug_.debug("Going to retry POST");a.forwardChannelTimerId_=fH(Ia(a.onStartForwardChannelTimer_,a,b),Lbb(a,a.forwardChannelRetryCount_));a.forwardChannelRetryCount_++;return!0}; rH.prototype.onStartForwardChannelTimer_=function(a){if(this.forwardChannelTimerId_)if(this.forwardChannelTimerId_=null,this.JSC$10104_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!a){this.JSC$10104_channelDebug_.debug("open_()");this.nextRid_=Math.floor(Math.random()*1E5);a=this.nextRid_++;var b=new iH(this,this.JSC$10104_channelDebug_,a),c=this.JSC$10104_extraHeaders_;this.initHeaders_&&(c?(c=Xh(c),Zh(c,this.initHeaders_)):c=this.initHeaders_);this.httpHeadersOverwriteParam_!== null||this.encodeInitMessageHeaders_||(b.JSC$10067_extraHeaders_=c,c=null);var d;if(this.fastHandshake_)a:{for(var e=d=0;e4096){d=e;break a}if(d===4096||e===this.outgoingMaps_.length-1){d=e+1;break a}}d=this.maxMapsPerRequest_}else d=this.maxMapsPerRequest_;d=Nbb(this,b,d);e=this.forwardChannelUri_.clone();Op(e,"RID", a);Op(e,"CVER",22);this.httpSessionIdParam_&&Op(e,"X-HTTP-Session-Id",this.httpSessionIdParam_);sH(this,e);c&&(this.encodeInitMessageHeaders_?d="headers="+Ic(Fbb(c))+"&"+d:this.httpHeadersOverwriteParam_&&Gbb(e,this.httpHeadersOverwriteParam_,c));vbb(this.forwardChannelRequestPool_,b);this.blockingHandshake_&&Op(e,"TYPE","init");this.fastHandshake_?(Op(e,"$req",d),Op(e,"SID","null"),b.decodeInitialResponse_=!0,Zab(b,e,null)):Zab(b,e,d);this.state_=2}}else this.state_==3&&(a?Obb(this,a):this.outgoingMaps_.length== 0?this.JSC$10104_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):ubb(this.forwardChannelRequestPool_)||(Obb(this),this.JSC$10104_channelDebug_.debug("startForwardChannel_ finished, sent request")))}; var Obb=function(a,b){var c;b?c=b.rid_:c=a.nextRid_++;var d=a.forwardChannelUri_.clone();Op(d,"SID",a.JSC$10104_sid_);Op(d,"RID",c);Op(d,"AID",a.lastArrayId_);sH(a,d);a.httpHeadersOverwriteParam_&&a.JSC$10104_extraHeaders_&&Gbb(d,a.httpHeadersOverwriteParam_,a.JSC$10104_extraHeaders_);c=new iH(a,a.JSC$10104_channelDebug_,c,a.forwardChannelRetryCount_+1);a.httpHeadersOverwriteParam_===null&&(c.JSC$10067_extraHeaders_=a.JSC$10104_extraHeaders_);b&&(a.outgoingMaps_=b.JSC$10067_pendingMessages_.concat(a.outgoingMaps_)); b=Nbb(a,c,a.maxMapsPerRequest_);c.setTimeout(Math.round(a.forwardChannelRequestTimeoutMs_*.5)+Math.round(a.forwardChannelRequestTimeoutMs_*.5*Math.random()));vbb(a.forwardChannelRequestPool_,c);Zab(c,d,b)},sH=function(a,b){a.extraParams_&&Sh(a.extraParams_,function(c,d){Op(b,d,c)}); a.handler_&&Sh({},function(c,d){Op(b,d,c)})},Nbb=function(a,b,c){c=Math.min(a.outgoingMaps_.length,c); var d=a.handler_?Ia(a.handler_.badMapError,a.handler_,a):null;a:{for(var e=a.outgoingMaps_,f=-1;;){var h=["count="+c];f==-1?c>0?(f=e[0].mapId,h.push("ofs="+f)):f=0:h.push("ofs="+f);for(var m=!0,p=0;p=3)return!1; a.JSC$10104_channelDebug_.debug("Going to retry GET");a.backChannelAttemptId_++;a.backChannelTimerId_=fH(Ia(a.onStartBackChannelTimer_,a),Lbb(a,a.backChannelRetryCount_));a.backChannelRetryCount_++;return!0}; rH.prototype.onStartBackChannelTimer_=function(){this.backChannelTimerId_=null;Qbb(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$10104_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.backChannelRequest_+" "+this.handshakeRttMs_);else{var a=4*this.handshakeRttMs_;this.JSC$10104_channelDebug_.info("BP detection timer enabled: "+a);this.bpDetectionTimerId_=fH(Ia(this.onBpDetectionTimer_,this),a)}}; rH.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$10104_channelDebug_.info("BP detection timeout reached.");if(this.backChannelRequest_.xmlHttp_!=null){var a=this.backChannelRequest_.xmlHttp_.getResponseText();a&&this.JSC$10104_channelDebug_.warning("Timer should have been cancelled : "+a)}this.JSC$10104_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=!1;this.bpDetectionDone_=!0;eH(10);pbb(this); Qbb(this)}else this.JSC$10104_channelDebug_.warning("Invalid operation.")}; var lbb=function(a){a.bpDetectionTimerId_!=null&&(a.JSC$10104_channelDebug_.debug("Cancel the BP detection timer."),ua.clearTimeout(a.bpDetectionTimerId_),a.bpDetectionTimerId_=null)},Qbb=function(a){a.JSC$10104_channelDebug_.debug("Creating new HttpRequest"); a.backChannelRequest_=new iH(a,a.JSC$10104_channelDebug_,"rpc",a.backChannelAttemptId_);a.httpHeadersOverwriteParam_===null&&(a.backChannelRequest_.JSC$10067_extraHeaders_=a.JSC$10104_extraHeaders_);a.backChannelRequest_.JSC$10067_readyStateChangeThrottleMs_=0;var b=a.backChannelUri_.clone();Op(b,"RID","rpc");Op(b,"SID",a.JSC$10104_sid_);Op(b,"AID",a.lastArrayId_);Op(b,"CI",a.enableStreaming_?"0":"1");!a.enableStreaming_&&a.longPollingTimeout_&&Op(b,"TO",a.longPollingTimeout_);Op(b,"TYPE","xmlhttp"); sH(a,b);a.httpHeadersOverwriteParam_&&a.JSC$10104_extraHeaders_&&Gbb(b,a.httpHeadersOverwriteParam_,a.JSC$10104_extraHeaders_);a.backChannelRequestTimeoutMs_&&a.backChannelRequest_.setTimeout(a.backChannelRequestTimeoutMs_);var c=a.backChannelRequest_,d=a.hostPrefix_;c.JSC$10067_type_=1;c.baseUri_=Pp(b.clone());c.postData_=null;c.decodeChunks_=!0;Yab(c,d);a.JSC$10104_channelDebug_.debug("New Request created")}; rH.prototype.onBackChannelDead_=function(){this.deadBackChannelTimerId_!=null&&(this.deadBackChannelTimerId_=null,pbb(this),qbb(this),eH(19))}; var obb=function(a){a.deadBackChannelTimerId_!=null&&(ua.clearTimeout(a.deadBackChannelTimerId_),a.deadBackChannelTimerId_=null)},ibb=function(a,b){a.JSC$10104_channelDebug_.debug("Request complete"); var c=null;if(a.backChannelRequest_==b){obb(a);lbb(a);a.backChannelRequest_=null;var d=2}else if(nbb(a.forwardChannelRequestPool_,b))c=b.JSC$10067_pendingMessages_,wbb(a.forwardChannelRequestPool_,b),d=1;else return;if(a.state_!=0)if(b.successful_)d==1?(Oab(b.postData_?b.postData_.length:0,Date.now()-b.requestStartTime_,a.forwardChannelRetryCount_),Ibb(a)):Pbb(a);else{var e=b.lastStatusCode_,f=b.getLastError();if(f==3||f==0&&e>0)a.JSC$10104_channelDebug_.debug("Not retrying due to error type"),e> 200&&(a.errorResponseStatusCode_=b.lastStatusCode_);else{a.JSC$10104_channelDebug_.debug(function(){return"Maybe retrying, last error: "+Vab(f,a.errorResponseStatusCode_)}); if(d==1&&Mbb(a,b)||d==2&&qbb(a))return;a.JSC$10104_channelDebug_.debug("Exceeded max number of retries")}c&&c.length>0&&ybb(a.forwardChannelRequestPool_,c);a.JSC$10104_channelDebug_.debug("Error: HTTP request failed");switch(f){case 1:lH(a,5);break;case 4:lH(a,10);break;case 3:lH(a,6);break;default:lH(a,2);}}},Lbb=function(a,b){var c=a.baseRetryDelayMs_+Math.floor(Math.random()*a.retryDelaySeedMs_); a.isActive()||(a.JSC$10104_channelDebug_.debug("Inactive channel"),c*=2);return c*b}; rH.prototype.onInput_=function(a,b){for(var c=0;cthis.lastArrayId_+1&&this.lastArrayId_>-1&&this.JSC$10104_channelDebug_.warning("Received non-consecutive message with arrayId: "+e+", lastArrayId: "+this.lastArrayId_),this.lastArrayId_=e,d=d[1],this.state_==2){if(d[0]=="c"){this.JSC$10104_sid_=d[1]; this.hostPrefix_=d[2];e=d[3];e!=null&&(this.channelVersion_=e,this.JSC$10104_channelDebug_.info("VER="+this.channelVersion_));e=d[4];e!=null&&(this.serverVersion_=e,this.JSC$10104_channelDebug_.info("SVER="+this.serverVersion_));d=d[5];d!=null&&typeof d==="number"&&d>0&&(this.backChannelRequestTimeoutMs_=d*=1.5,this.JSC$10104_channelDebug_.info("backChannelRequestTimeoutMs_="+d));if(d=b.xmlHttp_){var f=d.xhr_?d.xhr_.getResponseHeader("X-Client-Wire-Protocol"):null;f&&(e=this.forwardChannelRequestPool_, !e.requestPool_&&($a(f,"spdy")||$a(f,"quic")||$a(f,"h2"))&&(e.maxSize_=e.maxPoolSizeConfigured_,e.requestPool_=new Set,e.JSC$10078_request_&&(vbb(e,e.JSC$10078_request_),e.JSC$10078_request_=null)));this.httpSessionIdParam_&&((d=d.xhr_?d.xhr_.getResponseHeader("X-HTTP-Session-Id"):null)?(this.httpSessionId_=d,Op(this.forwardChannelUri_,this.httpSessionIdParam_,d)):this.JSC$10104_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.channelOpened(); this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-b.requestStartTime_,this.JSC$10104_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));d=b;e=Hbb(this,this.supportsCrossDomainXhrs_?this.hostPrefix_:null,this.JSC$10104_path_);this.JSC$10104_channelDebug_.debug("GetBackChannelUri: "+e);this.backChannelUri_=e;d.initialResponseDecoded_?(this.JSC$10104_channelDebug_.debug("Upgrade the handshake request to a backchannel."),wbb(this.forwardChannelRequestPool_,d),e=d,(f=this.backChannelRequestTimeoutMs_)&& e.setTimeout(f),e.watchDogTimerId_&&(dbb(e),$ab(e)),this.backChannelRequest_=d):Pbb(this);this.outgoingMaps_.length>0&&Ibb(this)}else d[0]!="stop"&&d[0]!="close"||lH(this,7);}else this.state_==3&&(d[0]=="stop"||d[0]=="close"?d[0]=="stop"?lH(this,7):this.disconnect():d[0]!="noop"&&this.handler_&&this.handler_.channelHandleArray(d),this.backChannelRetryCount_=0)}}; var lH=function(a,b){a.JSC$10104_channelDebug_.info("Error code "+b);if(b==2){var c=Ia(a.testNetworkCallback_,a),d=a.networkTestUrl_,e=!d;d=new Gp(d||"//www.google.com/images/cleardot.gif");ua.location&&ua.location.protocol=="http"||Hp(d,"https");Pp(d);e?zbb(d.toString(),c):Abb(d.toString(),c)}else eH(2);a.onError_(b)}; rH.prototype.testNetworkCallback_=function(a){a?(this.JSC$10104_channelDebug_.info("Successfully pinged google.com"),eH(2)):(this.JSC$10104_channelDebug_.info("Failed to ping google.com"),eH(1))}; rH.prototype.onError_=function(a){this.JSC$10104_channelDebug_.debug("HttpChannel: error - "+a);this.state_=0;this.handler_&&this.handler_.channelError(a);Kbb(this);Jbb(this)}; var Kbb=function(a){a.state_=0;a.nonAckedMapsAtChannelClose_=[];if(a.handler_){var b=xbb(a.forwardChannelRequestPool_);if(b.length!=0||a.outgoingMaps_.length!=0)a.JSC$10104_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+b.length+", outgoing: "+a.outgoingMaps_.length}),Zba(a.nonAckedMapsAtChannelClose_,b),Zba(a.nonAckedMapsAtChannelClose_,a.outgoingMaps_),a.forwardChannelRequestPool_.JSC$10078_pendingMessages_.length=0,Dc(a.outgoingMaps_),a.outgoingMaps_.length=0; a.handler_.channelClosed()}},Hbb=function(a,b,c){var d=Qp(c); if(d.JSC$6953_domain_!="")b&&Ip(d,b+"."+d.JSC$6953_domain_),Jp(d,d.JSC$6953_port_);else{var e=ua.location;d=e.protocol;b=b?b+"."+e.hostname:e.hostname;e=+e.port;var f=new Gp(null);d&&Hp(f,d);b&&Ip(f,b);e&&Jp(f,e);c&&Kp(f,c);d=f}c=a.httpSessionIdParam_;b=a.httpSessionId_;c&&b&&Op(d,c,b);Op(d,"VER",a.channelVersion_);sH(a,d);return d},abb=function(a,b,c){if(b&&!a.supportsCrossDomainXhrs_)throw Error("Can't create secondary domain capable XhrIo object."); b=a.usesFetchStreams_&&!a.JSC$10104_xmlHttpFactory_?new so(new Dbb({streamBinaryChunks:c})):new so(a.JSC$10104_xmlHttpFactory_);b.JSC$6832_withCredentials_=a.supportsCrossDomainXhrs_;return b}; rH.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)}; var Rbb=function(){}; g=Rbb.prototype;g.channelOpened=function(){}; g.channelHandleArray=function(){}; g.channelError=function(){}; g.channelClosed=function(){}; g.isActive=function(){return!0}; g.badMapError=function(){};var uH=function(a,b){Yi.call(this);this.JSC$10113_channel_=new rH(b);this.JSC$10113_url_=a;this.messageUrlParams_=b&&b.messageUrlParams||null;a=b&&b.messageHeaders||null;b&&b.clientProtocolHeaderRequired&&(a?a["X-Client-Protocol"]="webchannel":a={"X-Client-Protocol":"webchannel"});this.JSC$10113_channel_.JSC$10104_extraHeaders_=a;a=b&&b.initMessageHeaders||null;b&&b.messageContentType&&(a?a["X-WebChannel-Content-Type"]=b.messageContentType:a={"X-WebChannel-Content-Type":b.messageContentType});b&& b.clientProfile&&(a?a["X-WebChannel-Client-Profile"]=b.clientProfile:a={"X-WebChannel-Client-Profile":b.clientProfile});this.JSC$10113_channel_.initHeaders_=a;(a=b&&b.httpHeadersOverwriteParam)&&!Ya(a)&&(this.JSC$10113_channel_.httpHeadersOverwriteParam_=a);this.supportsCrossDomainXhr_=b&&b.supportsCrossDomainXhr||!1;this.sendRawJson_=b&&b.sendRawJson||!1;(b=b&&b.httpSessionIdParam)&&!Ya(b)&&(this.JSC$10113_channel_.httpSessionIdParam_=b,a=this.messageUrlParams_,a!==null&&b in a&&(a=this.messageUrlParams_, b in a&&delete a[b]));this.channelHandler_=new tH(this)}; Ra(uH,Yi);uH.prototype.open=function(){this.JSC$10113_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$10113_channel_.supportsCrossDomainXhrs_=!0);this.JSC$10113_channel_.connect(this.JSC$10113_url_,this.messageUrlParams_||void 0)}; uH.prototype.close=function(){this.JSC$10113_channel_.disconnect()}; uH.prototype.send=function(a){var b=this.JSC$10113_channel_;if(typeof a==="string"){var c={};c.__data__=a;a=c}else this.sendRawJson_&&(c={},c.__data__=mj(a),a=c);b.outgoingMaps_.push(new sbb(b.nextMapId_++,a));b.state_==3&&Ibb(b)}; uH.prototype.disposeInternal=function(){this.JSC$10113_channel_.handler_=null;delete this.channelHandler_;this.JSC$10113_channel_.disconnect();delete this.JSC$10113_channel_;uH.superClass_.disposeInternal.call(this)}; var Sbb=function(a){Q$a.call(this);a.__headers__&&(this.headers=a.__headers__,this.statusCode=a.__status__,delete a.__headers__,delete a.__status__);var b=a.__sm__;b?this.data=(this.metadataKey=Th(b))?yia(b,this.metadataKey):b:this.data=a}; Ra(Sbb,Q$a);var Tbb=function(a){R$a.call(this);this.status=1;this.errorCode=a}; Ra(Tbb,R$a);var tH=function(a){this.JSC$10120_channel_=a}; Ra(tH,Rbb);tH.prototype.channelOpened=function(){this.JSC$10120_channel_.dispatchEvent("d")}; tH.prototype.channelHandleArray=function(a){this.JSC$10120_channel_.dispatchEvent(new Sbb(a))}; tH.prototype.channelError=function(a){this.JSC$10120_channel_.dispatchEvent(new Tbb(a))}; tH.prototype.channelClosed=function(){this.JSC$10120_channel_.dispatchEvent("e")}; var V$a=function(a){this.JSC$10123_channel_=a}; V$a.prototype.commit=function(a){this.JSC$10123_channel_.forwardChannelFlushedCallback_=a};var Ubb=function(){this.changeList=[]}; Ubb.prototype.add=function(a){this.changeList.push(a)}; function Vbb(a){return new ix(function(b){var c=Bw(function(){b.next({});b.complete()},a); return function(){ua.clearTimeout(c)}})} var Wbb=function(){var a=a===void 0?Date:a;var b=b===void 0?TG(a.now()*1E3):b;this.clock=a;this.clientStartMicros=b},Xbb=function(a,b,c){this.JSC$10141_authMethod=b; this.JSC$10141_jspbClient=new Hab(a,c)},Ybb=function(a,b,c,d,e){var f,h,m,p,q,t,u; return ra(function(v){if(v.nextAddress==1){f=new Wbb;var w=new w$a;w=Gf(w,1,b);w=dg(w,4,d);h=dg(w,5,c);if(e){w=e.rttMicros!=null?NG(e.rttMicros)/1E6:void 0;w=qf(h,2,Ee(w));var y=e.clockOffsetMicros!=null?TG(e.clock.now()*1E3).add(e.clockOffsetMicros):void 0;y=(m=y)==null?void 0:m.toString();eg(w,3,y)}return v.yield(a.JSC$10141_jspbClient.post("/v1/chooseServer",h,x$a,Cab(a.JSC$10141_authMethod)),2)}p=v.yieldResult;w=f;y=UG(Wf(p,4));var A=UG(Wf(p,5)),C=TG(w.clock.now()*1E3),I=PG(A,y);w.rttMicros=PG(PG(C, w.clientStartMicros),I);w.clockOffsetMicros=PG(PG(y,w.clientStartMicros).add(A),C).div(TG(2));q=Se(of(p,1));if(q==null)throw Error("ChooseServer response is missing gsessionid");w=v.return;y=Je(of(p,2));return w.call(v,{gsessionid:q,affinitization:(t=y)!=null?t:0,initialConnectionDelayMillis:(u=Le(of(p,3)))!=null?u:0,timeEstimator:f})})},Zbb=function(a,b,c){this.JSC$10147_authMethod=b; this.JSC$10147_jspbClient=new Hab(a,c)},$bb=function(a,b,c){var d,e; return ra(function(f){if(f.nextAddress==1){if(a.JSC$10147_authMethod instanceof aH)return f.return(Promise.resolve());var h=new M$a;d=fg(h,1,c);e=Cab(a.JSC$10147_authMethod);e.queryParams==null&&(e.queryParams={});e.queryParams.gsessionid=b;e.timeoutMs=1E4;f.setCatchFinallyBlocks(2);return f.yield(a.JSC$10147_jspbClient.post("/v1/refreshCreds",d,N$a,e),4)}if(f.nextAddress!=2)return f.leaveTryBlock(0);f.enterCatchBlock();f.jumpToEnd()})},acb=function(a,b,c){this.project=a; this.interestSet=b;this.JSC$23511_knowledgeTimestamp=c;this.hasRecurred=!1;this.resyncMillis=Date.now()},ccb=function(a,b){var c=this; this.channelDeps=a;this.options=b;this.refreshCredsTimerScheduled=!1;this.causalStreams=new Map;this.limboStreams=new Map;this.nonCausalStreams=new Map;this.newStreamSubject=new jx;this.streamNumber=0;this.rawStatus=new jx;this.status=new lx(new zG());this.skipBackoff=new Z$a;this.recentResyncs=[];this.hasConnected=!1;this.consecutiveThrottledConnections=0;this.channelTryOpenMillis=[];this.channelStatHandler=new FG;this.JSC$10158_channelEventCallback=function(h){Promise.resolve().then(function(){var m, p;(m=c.options.channelOptions)==null||(p=m.JSC$23477_channelEventCallback)==null||p.call(m,h)}).catch(function(){})}; var d;((d=this.options.channelOptions)==null?0:d.JSC$23477_channelEventCallback)&&this.channelStatHandler.listen(Kab(),"statevent",function(h){c.JSC$10158_channelEventCallback(h)}); this.rawStatus.pipe(p4a(function(h){return Pf(h,1)===0?Promise.resolve():new Promise(function(m){Bw(m,500)})})).subscribe(this.status); this.delayGenerator=new i$a;var e,f;this.reconnectHint=(f=(e=b.reconnectHint)==null?void 0:e.pipe($E(function(){return Ux}),n4a(Ux)))!=null?f:Ux; bcb(this)},dcb=function(a,b,c){b=b.then(function(d){var e=!1; switch(d.domainType()){case 2:case 0:var f=a.firstPartyUri;e=a.addDomainPrefix;break;case 1:f=a.thirdPartyUri;break;default:f=new Gp;}var h=Kp(f.clone(),Iab(f.JSC$6953_path_,"/multi-watch/channel"));return{serverChooser:new Xbb(f,d,Gab(c.xmlHttpFactory)),credentialRefresher:new Zbb(f,d,Gab(c.xmlHttpFactory)),channelCreator:function(m,p,q){var t,u,v=new S$a(h,d,c.xmlHttpFactory!==void 0,e,(u=(t=c.channelOptions)==null?void 0:t.forceLongPolling)!=null?u:!1);m=new GG(m,p,v,function(w,y){return new uH(w, y)},q); m.open();return m}}}); return new ccb(b,c)},ecb=function(a,b){return Math.max(Math.min(a,b!=null?b:a)+(24E4+4E4*Math.random())-a,0)},fcb=function(a){var b; Bw(function(){a.channelDeps.then(function(c){var d,e;((d=a.channelState)==null?void 0:d.channelId)!=null&&((e=a.channelState)==null?void 0:e.lastRefreshTime)!=null&&Date.now()>=a.channelState.lastRefreshTime+24E4?($bb(c.credentialRefresher,a.channelState.gsessionid,a.channelState.channelId).catch(function(){}),a.channelState.lastRefreshTime=Date.now(),fcb(a)):a.refreshCredsTimerScheduled=!1})},ecb(Date.now(),(b=a.channelState)==null?void 0:b.lastRefreshTime))},gcb=function(a,b){return a.recentResyncs.find(function(c){var d; if(d=c.project===b.project)c=c.interestSet,d=b.interestSet,d=c instanceof XG&&d instanceof XG?c.equals(d):c instanceof YG&&d instanceof YG?c.equals(d):!1;return d})}; g=ccb.prototype;g.onOpen=function(){this.JSC$10158_channelEventCallback(new eab);var a=AG(new zG,0);try{this.rawStatus.next(a)}catch(b){}}; g.onClose=function(){this.JSC$10158_channelEventCallback(new fab);this.channelState=void 0;bcb(this)}; g.onError=function(a,b){this.JSC$10158_channelEventCallback(new gab(a,b));a=AG(new zG,Fab(b));this.handleError(a)}; g.onServerError=function(a){Pf(a,1)!==0&&(this.JSC$10158_channelEventCallback(new hab(ifa(a))),this.handleError(a))}; g.handleError=function(a){this.channelState==null||this.channelState.hasReceivedMessage||Pf(a,1)!==14||this.consecutiveThrottledConnections++;try{this.rawStatus.next(a)}catch(c){}a=l(this.causalStreams.values());for(var b=a.next();!b.done;b=a.next())b.value.streamInitiationReason=2;a=l(this.nonCausalStreams.values());for(b=a.next();!b.done;b=a.next())b.value.streamInitiationReason=2}; var jcb=function(a,b,c){if(a.channelState){var d=hcb(c.project,c.interestSet);if(c instanceof icb){var e=qf(d,1,Pe(c.JSC$10188_knowledgeTimestamp.toString()));bg(e,8,c.knowledgeTimestampChosenByPunctual)}hg(d,9,c.streamInitiationReason);c.streamInitiationReason=0;c=new B$a;e=Lf(c,1,z$a);b=qf(e,1,Pe(b.toString()));d=Jf(b,2,A$a,d);hg(d,4,a.channelState.affinitization);a.channelState.channel.send(c)}},hcb=function(a,b){var c=new DG().setHeader(W$a); if(b instanceof XG){var d=new s$a;a!=null&&(a=kcb(a),Gf(d,1,a));a=b.isPrivate?n$a():m$a();a=Gf(d,2,a);b=lcb(b);Gf(a,3,b);Jf(c,2,v$a,d)}else d=new t$a,a!=null&&(a=kcb(a),Gf(d,1,a)),a=b.root.isPrivate?n$a():m$a(),a=Gf(d,2,a),b=lcb(b.root),Gf(a,3,b),Jf(c,6,v$a,d);return c},bcb=function(a){var b=j$a(a.delayGenerator); Vbb(b).pipe(y4a(a.reconnectHint.pipe(v4a(function(){var c=a.skipBackoff;c.update();c.tokens<1?c=!1:(c.tokens--,c=!0);return c})))).subscribe(function(){a.channelDeps.then(function(c){a.JSC$10158_channelEventCallback(new $$a); mcb(a,c.serverChooser).then(function(d){a.JSC$10158_channelEventCallback(new aab);a.serverTimeEstimator=d.timeEstimator;Bw(function(){a.hasConnected=!0;ncb(a,c.channelCreator,d)},a.hasConnected?0:d.initialConnectionDelayMillis)},function(d){var e=AG(new zG,2); if(d instanceof cH){gg(e,2,d.message);if(d.status){var f=d.status;AG(e,Fab(d.status))}d.status===503&&a.consecutiveThrottledConnections++}else gg(e,2,d.toString());a.JSC$10158_channelEventCallback(new bab(f));try{a.rawStatus.next(e)}catch(h){}bcb(a)})},function(c){var d=AG(new zG,13); c=gg(d,2,c.toString());a.rawStatus.next(c)})})},mcb=function(a,b){var c,d,e,f,h,m,p,q; return ra(function(t){if(t.nextAddress==1)return t.yield(ocb(a),2);c=t.yieldResult;d=l(c);e=d.next().value;f=d.next().value;h=e;m=f;for(p=Date.now();a.channelTryOpenMillis.length>0&&a.channelTryOpenMillis[a.channelTryOpenMillis.length-1]<=p-12E4;)a.channelTryOpenMillis.pop();q=a.channelTryOpenMillis.length;q>1&&a.JSC$10158_channelEventCallback(new cab(q));return t.return(Ybb(b,hcb(h,m),q,a.consecutiveThrottledConnections,a.serverTimeEstimator))})},ocb=function(a){var b,c,d,e,f,h,m,p,q,t,u,v,w,y; return ra(function(A){b=[a.causalStreams,a.limboStreams,a.nonCausalStreams];if(a.options.shouldPreferPrivateObjectsForChooseServer)for(c=l(b),d=c.next();!d.done;d=c.next())for(e=d.value,f=l(e.values()),h=f.next();!h.done;h=f.next())if(m=h.value,p=m.interestSet,p instanceof YG&&(p=p.root),p.isPrivate)return A.return([m.project,m.interestSet]);q=l(b);for(t=q.next();!t.done;t=q.next())for(u=t.value,v=l(u.values()),w=v.next();!w.done;w=v.next())return y=w.value,A.return([y.project,y.interestSet]);var C= new ix;C.source=a.newStreamSubject;return A.yield(WMa(C.pipe(v4a())),1)})},ncb=function(a,b,c){a.JSC$10158_channelEventCallback(new dab); a.channelTryOpenMillis.unshift(Date.now());a.channelState={channel:b(function(f){var h=Ff(f,I$a,1);h=l(h);for(var m=h.next();!m.done;m=h.next()){var p=a,q=m.value;p.channelState!=null&&(p.channelState.hasReceivedMessage=!0);p.consecutiveThrottledConnections=0;m=Nf(q,1);if(m!=null)if(m=Number(m),uf(q,EG,3,J$a)){a:{if(q=Yf(q,EG,3,J$a))if(q=q.getStatus())break a;q=void 0}if(q){var t=p.causalStreams.get(m)||p.limboStreams.get(m)||p.nonCausalStreams.get(m);t&&(Le(of(q,1))===0?t.observer.complete():t.observer.error(q), p.causalStreams.delete(m),p.limboStreams.delete(m),p.nonCausalStreams.delete(m))}}else if(q=Yf(q,G$a,2,J$a))switch(Df(q,H$a)){case 1:if(q=p.causalStreams.get(m)){try{q.observer.next(new kab)}catch(C){}p.causalStreams.delete(m);p.limboStreams.set(m,q.start())}break;case 3:a:{if(q=Yf(q,E$a,3,H$a))if(q=Nf(q,1),q!=null){t=new lab(UG(q));break a}t=void 0}if(t&&(q=m,m=t,(t=p.limboStreams.get(q))?(t=new icb(t.observer,t.project,t.interestSet,m.timestampMicros),p.limboStreams.delete(q),p.nonCausalStreams.set(q, t),p=t):p=p.nonCausalStreams.get(q),p)){q=p;t=m.timestampMicros;t>q.JSC$10188_knowledgeTimestamp&&(q.JSC$10188_knowledgeTimestamp=t,q.knowledgeTimestampChosenByPunctual=!0);try{p.observer.next(m)}catch(C){}}break;case 2:m=p.nonCausalStreams.get(m)||p.limboStreams.get(m);if(!m)break;p=m.interestSet;if(t=Yf(q,F$a,2,H$a)){q=new Ubb;t=l(Ff(t,u$a,1));for(var u=t.next();!u.done;u=t.next()){u=u.value;var v=Ef(u,p$a,6),w=Nf(u,3);if(v&&w!=null){var y=void 0,A=(y=vf(u,2))==null?void 0:Ld(y);y=A==null?void 0: A;(v=pcb(p,v))&&q.add(new jab(v,UG(w),y,!!He(of(u,7)),!!He(of(u,8))))}}p=q}else p=void 0;if(p)for(p=l(p.changeList),q=p.next();!q.done;q=p.next()){q=q.value;q=new jab(q.objectId,q.version,q.payload,q.isReplay,q.isDirect);try{m.observer.next(q)}catch(C){}}break;case 5:if(m=p.causalStreams.get(m)||p.limboStreams.get(m)||p.nonCausalStreams.get(m)){if(m instanceof icb){q=p;t=0;for(u=Date.now();t=q.recentResyncs[t].resyncMillis+6E4?q.recentResyncs.splice(t):++t;(q=gcb(p,m))?( q.hasRecurred=!0,q.JSC$23511_knowledgeTimestamp=m.JSC$10188_knowledgeTimestamp,q.resyncMillis=Date.now()):p.recentResyncs.push(new acb(m.project,m.interestSet,m.JSC$10188_knowledgeTimestamp))}try{m.observer.complete()}catch(C){}}}}if(sf(f,K$a,2))switch(h=f.getStatus(),Je(of(h,1))){case 1:h=l(a.causalStreams.values());for(m=h.next();!m.done;m=h.next())m.value.streamInitiationReason=3;h=l(a.nonCausalStreams.values());for(m=h.next();!m.done;m=h.next())m.value.streamInitiationReason=3;a.channelState&& a.channelState.channel.close();}sf(f,C$a,3)&&a.channelState&&(h=a.channelState,f=Ef(f,C$a,3),f=Uf(f,1),h.channelId=f,a.channelState.lastRefreshTime=Date.now(),a.refreshCredsTimerScheduled||(fcb(a),a.refreshCredsTimerScheduled=!0))},a,c.gsessionid), affinitization:c.affinitization,gsessionid:c.gsessionid,hasReceivedMessage:!1};b=[].concat(Array.from(a.causalStreams.entries())).concat(Array.from(a.nonCausalStreams.entries()));b.sort(function(f,h){return f[0]-h[0]}); b=l(b);for(c=b.next();!c.done;c=b.next()){var d=l(c.value);c=d.next().value;d=d.next().value;jcb(a,c,d)}b=l(a.limboStreams);for(c=b.next();!c.done;c=b.next())c=l(c.value),c.next(),c.next().value.observer.complete();a.limboStreams.clear();var e=a.channelState;Bw(function(){a.channelState===e&&a.delayGenerator.reset()},45E3)}; ccb.prototype.watch=function(a,b){var c=this;b=b===void 0?{}:b;return new ix(function(d){var e=++c.streamNumber,f,h=(f=b.projectOverride)!=null?f:c.options.defaultProject;d=new qcb(d,h,a);c.causalStreams.set(e,d);c.newStreamSubject.next({});jcb(c,e,d);return function(){var m=new B$a;var p=Lf(m,1,z$a);p=qf(p,1,Pe(e.toString()));var q=new y$a;Jf(p,3,A$a,q);c.channelState&&c.channelState.channel.send(m);c.causalStreams.delete(e);c.limboStreams.delete(e);c.nonCausalStreams.delete(e)}})}; var qcb=function(a,b,c){this.observer=a;this.project=b;this.interestSet=c;this.streamInitiationReason=1}; qcb.prototype.start=function(){return new rcb(this.observer,this.project,this.interestSet)}; var rcb=function(a,b,c){this.observer=a;this.project=b;this.interestSet=c},icb=function(a,b,c,d){this.observer=a; this.project=b;this.interestSet=c;this.JSC$10188_knowledgeTimestamp=d;this.knowledgeTimestampChosenByPunctual=!0;this.streamInitiationReason=1}; function kcb(a){var b=new q$a;return Bf(b,1,r$a,Re(a))} function lcb(a){var b=new p$a;a=l(a.parts);for(var c=a.next();!c.done;c=a.next()){var d=c.value;c=new CG;if(d.value===null){d=c;var e=new o$a;Jf(d,13,Zf,e)}else d.value instanceof MG?d.isDecreasing?Bf(c,4,Zf,Pe(d.value.toString())):Bf(c,2,Zf,Pe(d.value.toString())):typeof d.value==="string"?d.isDecreasing?Bf(c,3,Zf,Re(d.value)):Bf(c,1,Zf,Re(d.value)):d.value instanceof Uint8Array?d.isDecreasing?Bf(c,5,Zf,ee(d.value,!1)):Bf(c,7,Zf,ee(d.value,!1)):d.value instanceof LG?d.isDecreasing?(e=c,d=rab(d.value), Jf(e,11,Zf,d)):(e=c,d=rab(d.value),Jf(e,12,Zf,d)):c=d.value.rep;Mf(b,1,CG,c)}return b} function pcb(a,b){if(a instanceof XG)return Ff(b,CG,1).length>0?null:a.isPrivate?Bab.apply(XG,ia(a.parts)):Aab.apply(XG,ia(a.parts));var c=Array.of.apply(Array,ia(a.root.parts));b=l(Ff(b,CG,1));for(var d=b.next();!d.done;d=b.next())switch(d=d.value,Df(d,Zf)){case 4:c.push(WG(UG(zfa(d,4))));break;case 2:c.push(yab(UG(zfa(d,2))));break;case 8:case 10:case 6:case 9:c.push(new VG(new HG(d)));break;case 3:c.push(WG($f(d,3,Zf)));break;case 1:c.push(yab($f(d,1,Zf)));break;case 7:var e=void 0,f=c,h=f.push, m=d;d=tf(d,Zf,7);d=vf(m,d);h.call(f,yab((e=d)==null?void 0:Ld(e)));break;case 5:e=void 0;f=c;h=f.push;m=d;d=tf(d,Zf,5);d=vf(m,d);h.call(f,WG((e=d)==null?void 0:Ld(e)));break;case 12:d=sab(Yf(d,zi,12,Zf));if(d===null)return null;c.push(new VG(d));break;case 11:d=sab(Yf(d,zi,11,Zf));if(d===null)return null;c.push(WG(d));break;case 13:c.push(new VG(null));break;case 0:c.push(new VG(new HG(d)));break;default:return null;}return a.root.isPrivate?Bab.apply(XG,ia(c)):Aab.apply(XG,ia(c))} ;var scb={firstPartyUri:new Gp("https://signaler-pa.clients6.google.com/punctual"),thirdPartyUri:new Gp("https://signaler-pa.googleapis.com/punctual"),addDomainPrefix:!1},tcb={firstPartyUri:new Gp("https://punctual.corp.google.com/punctual"),thirdPartyUri:new Gp,addDomainPrefix:!1},ucb={firstPartyUri:new Gp("https://punctual-dev.corp.google.com/punctual"),thirdPartyUri:new Gp("https://signaler-staging.sandbox.google.com/punctual"),addDomainPrefix:!1},vcb=Map,wcb=["preprod-dynamite-alpha-us",vH("alpha-us")], xcb=["preprod-dynamite-alpha-eu",vH("alpha-eu")],ycb=["preprod-dynamite-beta-us",vH("beta-us")],zcb=["preprod-dynamite-beta-eu",vH("beta-eu")],Acb=["preprod-dynamite-gamma-us",vH("gamma-us")],Bcb=["preprod-dynamite-gamma-eu",vH("gamma-eu")],Ccb;Ccb={firstPartyUri:new Gp("https://preprod-qual-dynamite-perftest-signaler-pa.clients6.google.com/punctual"),thirdPartyUri:new Gp("https://preprod-qual-dynamite-perftest-signaler-pa.googleapis.com/punctual"),addDomainPrefix:!1}; var Dcb=new vcb([["corp",tcb],["prod",scb],["prod-up",tcb],wcb,xcb,ycb,zcb,Acb,Bcb,["preprod-qual-dynamite-perftest",Ccb],["prod-dynamite-prod-00-eu",vH("prod-00-eu")],["prod-dynamite-prod-01-eu",vH("prod-01-eu")],["prod-dynamite-prod-00-us",vH("prod-00-us")],["prod-dynamite-prod-01-us",vH("prod-01-us")],["prod-dynamite-prod-02-us",vH("prod-02-us")],["prod-dynamite-prod-03-us",vH("prod-03-us")],["prod-dynamite-prod-04-us",vH("prod-04-us")],["prod-dynamite-prod-05-us",vH("prod-05-us")],["prod-dynamite-prod-06-us", vH("prod-06-us")],["prod-dynamite-prod-07-us",vH("prod-07-us")],["prod-dynamite-prod-08-us",vH("prod-08-us")],["prod-dynamite-prod-09-us",vH("prod-09-us")],["dynamite-alpha-us",wH("preprod","alpha-us")],["dynamite-alpha-eu",wH("preprod","alpha-eu")],["dynamite-beta-us",wH("preprod","beta-us")],["dynamite-beta-eu",wH("preprod","beta-eu")],["dynamite-gamma-us",wH("preprod","gamma-us")],["dynamite-gamma-eu",wH("preprod","gamma-eu")],["dynamite-prod-00-us",wH("prod","prod-00-us")],["dynamite-prod-00-eu", wH("prod","prod-00-eu")],["dynamite-prod-01-us",wH("prod","prod-01-us")],["dynamite-prod-01-eu",wH("prod","prod-01-eu")],["dynamite-prod-02-us",wH("prod","prod-02-us")],["dynamite-prod-03-us",wH("prod","prod-03-us")],["dynamite-prod-04-us",wH("prod","prod-04-us")],["dynamite-prod-05-us",wH("prod","prod-05-us")],["dynamite-prod-06-us",wH("prod","prod-06-us")],["dynamite-prod-07-us",wH("prod","prod-07-us")],["dynamite-prod-08-us",wH("prod","prod-08-us")],["dynamite-prod-09-us",wH("prod","prod-09-us")], ["ytprod",{firstPartyUri:new Gp("https://signaler-pa.youtube.com/punctual"),thirdPartyUri:new Gp("https://signaler-pa.googleapis.com/punctual"),addDomainPrefix:!1}],["dev",ucb]]);function wH(a,b){return{firstPartyUri:new Gp("https://"+a+"-dynamite-"+b+"-signaler-pa.clients6.google.com/punctual"),thirdPartyUri:new Gp("https://"+a+"-dynamite-"+b+"-signaler-pa.googleapis.com/punctual"),addDomainPrefix:!0}} function vH(a){return{firstPartyUri:new Gp("https://chat.google.com/punctual/"+a),thirdPartyUri:new Gp("https://chat.google.com/punctual/"+a),addDomainPrefix:!1}} ;var Ecb=function(){this.authParams=new Dab;this.shouldPreferPrivateObjectsForChooseServer=!1;this.channelOptions=new iab}; Ecb.prototype.build=function(){var a=Eab(this.authParams);if(!"/punctual/ytprod/youtube_live_chat_web".startsWith("/punctual/"))throw Error("Invalid Punctual project path does not start with /punctual/: /punctual/ytprod/youtube_live_chat_web");var b=["ytprod","youtube_live_chat_web"];if(b.length!==2)throw Error("Invalid Punctual path has an incorrect number of parts: /punctual/ytprod/youtube_live_chat_web");b=l(b);var c=b.next().value;b=b.next().value;if(c.startsWith("custom:"))c=new Gp(decodeURIComponent(c.substring(7))), Kp(c,"/punctual"),c={firstPartyUri:c,thirdPartyUri:c,addDomainPrefix:!1};else{var d=Dcb.get(c);if(!d)throw Error("Invalid Punctual environment: '"+c+"'");c=d}return dcb(c,a,{reconnectHint:this.reconnectHint,defaultProject:b,xmlHttpFactory:void 0,shouldPreferPrivateObjectsForChooseServer:this.shouldPreferPrivateObjectsForChooseServer,channelOptions:this.channelOptions})};var Fcb=function(a){this.name=a};var Gcb=function(a){var b=b===void 0?{}:b;this.punctualClient=a;this.watchOpts=b;this.status=a.status}; Gcb.prototype.start=function(){return{stop:function(){return Promise.resolve()}}}; var Hcb=function(a,b){b=Aab(b.name);return a.punctualClient.watch(new YG(b),a.watchOpts).pipe(Vx(function(c){return!(c instanceof lab)}),Kx(function(c){if(c instanceof jab){var d=c.objectId.parts.length===1,e=c.payload&&Sca(c.payload); return{version:c.version,payload:e,payloadAsBytes:c.payload,isSynthetic:!1,isSuppressor:d}}return{isSynthetic:!0,isSuppressor:!0}}),z4a())};var Icb={get payments(){return window.payments}};function Jcb(a,b,c){b=b===void 0?5:b;if(b!==0){var d=typeof a==="function"?a():document.querySelector(a);d?(c==null?0:c.enableSmartFocus)?Kcb(d):d.focus():setTimeout(function(){Jcb(a,b-1,c)},500)}} function Lcb(a){if(a&&a.focus)if(a!==document.activeElement)a.focus();else return Mcb(function(){return ra(function(b){document.activeElement&&document.activeElement.blur();return b.return(Mcb(function(){a.focus()}))})})} function Kcb(a){var b=b===void 0?5:b;setTimeout(function(){var c;return ra(function(d){d.nextAddress==1&&(c=document.activeElement);if(d.nextAddress!=5)return(document.activeElement===c||document.activeElement===document.body)&&b>=0&&a?d.yield(Lcb(a),5):d.jumpTo(0);if(document.activeElement===a)return d.return();a=a.parentElement;--b;return d.jumpTo(2)})},15)} function Mcb(a){return new Promise(function(b){requestAnimationFrame(function(){b(a())})})} ;function Ncb(a){return ne(a)?Number(a):String(a)} ;function Ocb(a,b){a.name!==void 0?(this.name=a.name,this.code=Pcb[a.name]):(this.code=a=a.code,this.name=Qcb(a));Va.call(this,pca("%s %s",this.name,b))} Ra(Ocb,Va);var Qcb=function(a){var b=wia(Pcb,function(c){return a==c}); if(b===void 0)throw Error("Invalid code: "+a);return b},xH={},Pcb=(xH.AbortError=3,xH.EncodingError=5,xH.InvalidModificationError=9,xH.InvalidStateError=7,xH.NotFoundError=1,xH.NotReadableError=4,xH.NoModificationAllowedError=6,xH.PathExistsError=12,xH.QuotaExceededError=10,xH.SecurityError=2,xH.SyntaxError=8,xH.TypeMismatchError=11,xH);function Rcb(a,b){Li.call(this,a.type,b)} Ra(Rcb,Li);var Scb=function(a,b,c){c===void 0&&(c=a.size);return a.slice?a.slice(b,c):null};var Tcb=new WeakMap;function Ucb(a){var b=b===void 0?Vcb:b;var c=Ha(a),d=function(f){f=l(f);f.next();f=ha(f);return b(c,f)},e=function(f){var h=l(f); f=h.next().value;h=ha(h);return a.apply(f,h)}; return function(){var f=sa.apply(0,arguments),h=this||ua,m=Tcb.get(h);m||(m={},Tcb.set(h,m));return ada(m,[this].concat(ia(f)),e,d)}} var Vcb=function(a,b){a=[a];for(var c=b.length-1;c>=0;--c)a.push(typeof b[c],b[c]);return a.join("\x0B")};function yH(a){var b={};a=a.replace(/\r/g,"").split("\n");for(var c=0;c=0;d--)ni(c[d],b);oi(b)};var qdb=function(){},FH=function(a){for(var b=[],c=a.getTextRangeCount(),d=0;d=0&&tdb(c,a,1,0)<=0:tdb(c,a,0,0)>=0&&tdb(c,a,1,1)<=0}else c=!1;return c}; g.isCollapsed=function(){return KH(this).isCollapsed()}; g.JSC$10232_getText=function(){return KH(this).JSC$10242_range_.toString()}; g.__iterator__=function(){return new GH(this.JSC$10232_getStartNode(),this.JSC$10232_getStartOffset(),this.JSC$10232_getEndNode(),this.JSC$10232_getEndOffset())}; g.select=function(){KH(this).select(this.isReversed_)}; g.JSC$10232_removeContents=function(){var a=KH(this).JSC$10242_range_;a.extractContents();if(a.startContainer.hasChildNodes()&&(a=a.startContainer.childNodes[a.startOffset])){var b=a.previousSibling;Via(a)==""&&oi(a);b&&Via(b)==""&&oi(b)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null}; g.insertNode=function(a,b){a=KH(this).insertNode(a,b);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return a}; g.collapse=function(a){a=this.isReversed()?!a:a;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(a);a?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var wdb=function(){}; Ra(wdb,qdb);wdb.prototype.JSC$10232_containsRange=function(a,b){var c=FH(this);a=FH(a);return(b?xc:Xba)(a,function(d){return xc(c,function(e){return e.JSC$10232_containsRange(d,b)})})}; wdb.prototype.insertNode=function(a,b){b?(b=this.JSC$10232_getStartNode(),b.parentNode&&b.parentNode.insertBefore(a,b)):ni(a,this.JSC$10232_getEndNode());return a};var xdb,ydb=di().JSC$6229_document_.documentElement;xdb=ydb.requestFullscreen?"fullscreenchange":ydb.webkitRequestFullscreen?"webkitfullscreenchange":ydb.mozRequestFullScreen?"mozfullscreenchange":ydb.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";function zdb(){var a=di().JSC$6229_document_;return!!(a.webkitIsFullScreen||a.mozFullScreen||a.msFullscreenElement||a.fullscreenElement)} ;var LH=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null}; Ra(LH,wdb);g=LH.prototype;g.clone=function(){var a=new LH;a.browserRanges_=Dc(this.browserRanges_);return a}; g.JSC$10232_getType=function(){return"mutli"}; g.getBrowserRangeObject=function(){return this.browserRanges_[0]}; g.getTextRangeCount=function(){return this.browserRanges_.length}; g.getTextRange=function(a){this.ranges_[a]||(this.ranges_[a]=udb(new HH(this.browserRanges_[a])));return this.ranges_[a]}; g.getContainer=function(){if(!this.container_){for(var a=[],b=this.getTextRangeCount(),c=0;c1){c=new LH;b=a.rangeCount;for(var d=0;d0} ;function QH(){Yi.call(this);this.reader_=new FileReader;this.reader_.onloadstart=Ia(this.dispatchProgressEvent_,this);this.reader_.onprogress=Ia(this.dispatchProgressEvent_,this);this.reader_.onload=Ia(this.dispatchProgressEvent_,this);this.reader_.onabort=Ia(this.dispatchProgressEvent_,this);this.reader_.onerror=Ia(this.dispatchProgressEvent_,this);this.reader_.onloadend=Ia(this.dispatchProgressEvent_,this)} Ra(QH,Yi);QH.prototype.abort=function(){try{this.reader_.abort()}catch(a){throw new Ocb(a,"aborting read")}}; QH.prototype.getError=function(){return this.reader_.error&&new Ocb(this.reader_.error,"reading file")}; QH.prototype.dispatchProgressEvent_=function(a){this.dispatchEvent(new Rcb(a,this))}; QH.prototype.disposeInternal=function(){QH.superClass_.disposeInternal.call(this);delete this.reader_}; var Cdb=function(a){var b=new no;a.listen("loadend",Ja(function(c,d){var e=d.reader_.result,f=d.getError();e==null||f?oo(c,f):c.callback(e);d.dispose()},b,a)); return b};var Ddb={COMPACT_DECIMAL_SHORT_PATTERN:{1E3:{other:"0K"},1E4:{other:"00K"},1E5:{other:"000K"},1E6:{other:"0M"},1E7:{other:"00M"},1E8:{other:"000M"},1E9:{other:"0B"},1E10:{other:"00B"},1E11:{other:"000B"},1E12:{other:"0T"},1E13:{other:"00T"},1E14:{other:"000T"}},COMPACT_DECIMAL_LONG_PATTERN:{1E3:{other:"0 thousand"},1E4:{other:"00 thousand"},1E5:{other:"000 thousand"},1E6:{other:"0 million"},1E7:{other:"00 million"},1E8:{other:"000 million"},1E9:{other:"0 billion"},1E10:{other:"00 billion"},1E11:{other:"000 billion"}, 1E12:{other:"0 trillion"},1E13:{other:"00 trillion"},1E14:{other:"000 trillion"}}},RH=Ddb;RH=Ddb;var Edb=!1,Gdb=function(){if(!Edb){for(var a in Fdb)SH[a]=Fdb[a];Edb=!0}},SH={AED:[2, "dh","\u062F.\u0625."],ALL:[0,"Lek","Lek"],AUD:[2,"$","AU$"],BDT:[2,"\u09F3","Tk"],BGN:[2,"lev","lev"],BRL:[2,"R$","R$"],CAD:[2,"$","C$"],CDF:[2,"FrCD","CDF"],CHF:[2,"CHF","CHF"],CLP:[0,"$","CL$"],CNY:[2,"\xA5","RMB\xA5"],COP:[32,"$","COL$"],CRC:[0,"\u20A1","CR\u20A1"],CZK:[50,"K\u010D","K\u010D"],DKK:[50,"kr.","kr."],DOP:[2,"RD$","RD$"],EGP:[2,"\xA3","LE"],ETB:[2,"Birr","Birr"],EUR:[2,"\u20AC","\u20AC"],GBP:[2,"\xA3","GB\xA3"],HKD:[2,"$","HK$"],HRK:[2,"kn","kn"],HUF:[34,"Ft","Ft"],IDR:[0, "Rp","Rp"],ILS:[34,"\u20AA","IL\u20AA"],INR:[2,"\u20B9","Rs"],IRR:[0,"Rial","IRR"],ISK:[0,"kr","kr"],JMD:[2,"$","JA$"],JPY:[0,"\xA5","JP\xA5"],KRW:[0,"\u20A9","KR\u20A9"],LKR:[2,"Rs","SLRs"],LTL:[2,"Lt","Lt"],MNT:[0,"\u20AE","MN\u20AE"],MVR:[2,"Rf","MVR"],MXN:[2,"$","Mex$"],MYR:[2,"RM","RM"],NOK:[50,"kr","NOkr"],PAB:[2,"B/.","B/."],PEN:[2,"S/.","S/."],PHP:[2,"\u20B1","PHP"],PKR:[0,"Rs","PKRs."],PLN:[50,"z\u0142","z\u0142"],RON:[2,"RON","RON"],RSD:[0,"din","RSD"],RUB:[50,"\u20BD","RUB"],SAR:[2, "SAR","SAR"],SEK:[50,"kr","kr"],SGD:[2,"$","S$"],THB:[2,"\u0E3F","THB"],TRY:[2,"\u20BA","TRY"],TWD:[2,"$","NT$"],TZS:[0,"TSh","TSh"],UAH:[2,"\u0433\u0440\u043D.","UAH"],USD:[2,"$","US$"],UYU:[2,"$","$U"],VND:[48,"\u20AB","VN\u20AB"],YER:[0,"Rial","Rial"],ZAR:[2,"R","ZAR"]},Fdb={AFN:[48,"Af.","AFN"],AMD:[32,"Dram","dram"],ANG:[2,"NAf.","ANG"],AOA:[2,"Kz","Kz"],ARS:[34,"$","AR$"],AWG:[2,"Afl.","Afl."],AZN:[34,"\u20BC","AZN"],BAM:[2,"KM","KM"],BBD:[2,"$","Bds$"],BHD:[3,"din","din"],BIF:[0,"FBu","FBu"], BMD:[2,"$","BD$"],BND:[2,"$","B$"],BOB:[2,"Bs","Bs"],BSD:[2,"$","BS$"],BTN:[2,"Nu.","Nu."],BWP:[2,"P","pula"],BYN:[50,"\u0440.","BYN"],BYR:[48,"\u0440.","BYR"],BZD:[2,"$","BZ$"],CLF:[4,"UF","CLF"],CNH:[2,"\xA5","RMB\xA5"],CUC:[1,"$","CUC$"],CUP:[2,"$","CU$"],CVE:[2,"CVE","Esc"],DJF:[0,"Fdj","Fdj"],DZD:[2,"din","din"],ERN:[2,"Nfk","Nfk"],FJD:[2,"$","FJ$"],FKP:[2,"\xA3","FK\xA3"],GEL:[2,"GEL","GEL"],GHS:[2,"GHS","GHS"],GIP:[2,"\xA3","GI\xA3"],GMD:[2,"GMD","GMD"],GNF:[0,"FG","FG"],GTQ:[2, "Q","GTQ"],GYD:[0,"$","GY$"],HNL:[2,"L","HNL"],HTG:[2,"HTG","HTG"],IQD:[0,"din","IQD"],JOD:[3,"din","JOD"],KES:[2,"Ksh","Ksh"],KGS:[2,"KGS","KGS"],KHR:[2,"Riel","KHR"],KMF:[0,"CF","KMF"],KPW:[0,"\u20A9KP","KPW"],KWD:[3,"din","KWD"],KYD:[2,"$","KY$"],KZT:[2,"\u20B8","KZT"],LAK:[0,"\u20AD","\u20AD"],LBP:[0,"L\xA3","LBP"],LRD:[2,"$","L$"],LSL:[2,"LSL","LSL"],LYD:[3,"din","LD"],MAD:[2,"dh","MAD"],MDL:[2,"MDL","MDL"],MGA:[0,"Ar","MGA"],MKD:[2,"din","MKD"],MMK:[0,"K","MMK"],MOP:[2,"MOP","MOP$"],MRO:[0, "MRO","MRO"],MUR:[0,"MURs","MURs"],MWK:[2,"MWK","MWK"],MZN:[2,"MTn","MTn"],NAD:[2,"$","N$"],NGN:[2,"\u20A6","NG\u20A6"],NIO:[2,"C$","C$"],NPR:[2,"Rs","NPRs"],NZD:[2,"$","NZ$"],OMR:[3,"Rial","OMR"],PGK:[2,"PGK","PGK"],PYG:[16,"Gs.","PYG"],QAR:[2,"Rial","QR"],RWF:[0,"RF","RF"],SBD:[2,"$","SI$"],SCR:[2,"SCR","SCR"],SDG:[2,"SDG","SDG"],SHP:[2,"\xA3","SH\xA3"],SLE:[0,"SLE","SLE"],SLL:[0,"SLL","SLL"],SOS:[0,"SOS","SOS"],SRD:[2,"$","SR$"],SSP:[2,"\xA3","SSP"],STD:[0,"Db","Db"],SYP:[0,"\xA3","SY\xA3"], SZL:[2,"SZL","SZL"],TJS:[2,"Som","TJS"],TMT:[50,"m","TMT"],TND:[3,"din","DT"],TOP:[2,"T$","T$"],TTD:[2,"$","TT$"],UGX:[0,"UGX","UGX"],UZS:[0,"so\u02BCm","UZS"],VEF:[2,"Bs","Bs"],VES:[2,"Bs","Bs"],VUV:[0,"VUV","VUV"],WST:[2,"WST","WST"],XAF:[0,"FCFA","FCFA"],XCD:[2,"$","EC$"],XOF:[0,"CFA","CFA"],XPF:[48,"FCFP","FCFP"],ZMW:[0,"ZMW","ZMW"],ZWD:[0,"$","Z$"]};function Hdb(){} var TH=function(a){if(typeof a=="number"){var b=new Hdb;b.standardOffset_=a;var c=a;if(c==0)c="Etc/GMT";else{var d=["Etc/GMT",c<0?"-":"+"];c=Math.abs(c);d.push(Math.floor(c/60)%100);c%=60;c!=0&&d.push(":",Oc(c,2));c=d.join("")}b.timeZoneId_=c;c=a;c==0?c="UTC":(d=["UTC",c<0?"+":"-"],c=Math.abs(c),d.push(Math.floor(c/60)%100),c%=60,c!=0&&d.push(":",c),c=d.join(""));a=Idb(a);b.tzNames_=[c,c];b.tzNamesExt_={STD_LONG_NAME_GMT:a,STD_GENERIC_LOCATION:a};b.transitions_=[];return b}b=new Hdb;b.timeZoneId_= a.id;b.standardOffset_=-a.std_offset;b.tzNames_=a.names;b.tzNamesExt_=a.names_ext;b.transitions_=a.transitions;return b},Idb=function(a){var b=["GMT"]; b.push(a<=0?"+":"-");a=Math.abs(a);b.push(Oc(Math.floor(a/60)%100,2),":",Oc(a%60,2));return b.join("")},Jdb=function(a,b){b=Date.UTC(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate(),b.getUTCHours(),b.getUTCMinutes())/36E5; for(var c=0;c=a.transitions_[c];)c+=2;return c==0?0:a.transitions_[c-1]},Kdb=function(a,b){a=a.standardOffset_-Jdb(a,b); return a===-1440?0:a};var UH=function(a,b){this.patternParts_=[];this.JSC$10273_dateTimeSymbols_=b||IG;typeof a=="number"?Ldb(this,a):Mdb(this,a)},Ndb=[/^'(?:[^']|'')*('|$)/, /^(?:G+|y+|Y+|u+|M+|k+|S+|E+|a+|b+|B+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|V+|w+|z+|Z+)/,/^[^'GyYuMkSEabBhKHcLQdmsvVwzZ]+/],VH=function(a){return a.getHours?a.getHours():0},Mdb=function(a,b){for(Odb&&(b=b.replace(/\u200f/g,""));b;){for(var c=b,d=0;d0?-864E5:864E5))));c=[];for(var f=0;f=12&&b<24?1:0]},Pdb=function(a,b,c,d,e,f){var h=b.length; switch(b.charAt(0)){case"G":return c=d.getFullYear()>0?1:0,h>=4?a.JSC$10273_dateTimeSymbols_.ERANAMES[c]:a.JSC$10273_dateTimeSymbols_.ERAS[c];case"y":return Sdb(a,h,d,!0);case"Y":return c=new Date(oab(d.getFullYear(),d.getMonth(),d.getDate(),a.JSC$10273_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,a.JSC$10273_dateTimeSymbols_.FIRSTDAYOFWEEK)).getFullYear(),h==2&&(c%=100),WH(a,Rdb(c,h));case"u":return Sdb(a,h,d,!1);case"M":a:switch(c=d.getMonth(),h){case 5:h=a.JSC$10273_dateTimeSymbols_.NARROWMONTHS[c]; break a;case 4:h=a.JSC$10273_dateTimeSymbols_.MONTHS[c];break a;case 3:h=a.JSC$10273_dateTimeSymbols_.SHORTMONTHS[c];break a;default:h=WH(a,Oc(c+1,h));}return h;case"k":return XH(e),WH(a,Oc(VH(e)||24,h));case"S":return WH(a,(e.getMilliseconds()/1E3).toFixed(Math.min(3,h)).slice(2)+(h>3?Oc(0,h-3):""));case"E":return c=d.getDay(),h>=4?a.JSC$10273_dateTimeSymbols_.WEEKDAYS[c]:a.JSC$10273_dateTimeSymbols_.SHORTWEEKDAYS[c];case"a":return Tdb(a,e);case"b":return Tdb(a,e);case"B":return Tdb(a,e);case"h":return XH(e), WH(a,Oc(VH(e)%12||12,h));case"K":return XH(e),WH(a,Oc(VH(e)%12,h));case"H":return XH(e),WH(a,Oc(VH(e),h));case"c":a:switch(c=d.getDay(),h){case 5:h=a.JSC$10273_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[c];break a;case 4:h=a.JSC$10273_dateTimeSymbols_.STANDALONEWEEKDAYS[c];break a;case 3:h=a.JSC$10273_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[c];break a;default:h=WH(a,Oc(c,1));}return h;case"L":a:switch(c=d.getMonth(),h){case 5:h=a.JSC$10273_dateTimeSymbols_.STANDALONENARROWMONTHS[c];break a;case 4:h= a.JSC$10273_dateTimeSymbols_.STANDALONEMONTHS[c];break a;case 3:h=a.JSC$10273_dateTimeSymbols_.STANDALONESHORTMONTHS[c];break a;default:h=WH(a,Oc(c+1,h));}return h;case"Q":return c=Math.floor(d.getMonth()/3),h<4?a.JSC$10273_dateTimeSymbols_.SHORTQUARTERS[c]:a.JSC$10273_dateTimeSymbols_.QUARTERS[c];case"d":return WH(a,Oc(d.getDate(),h));case"m":return XH(e),WH(a,Oc(e.getMinutes?e.getMinutes():0,h));case"s":return XH(e),WH(a,Oc(e.getSeconds(),h));case"v":return(f||TH(c.getTimezoneOffset())).timeZoneId_; case"V":return a=f||TH(c.getTimezoneOffset()),h<=2?a.timeZoneId_:Jdb(a,c)>0?a.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?a.tzNamesExt_.DST_GENERIC_LOCATION:a.tzNamesExt_.DST_GENERIC_LOCATION:a.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?a.tzNamesExt_.STD_GENERIC_LOCATION:a.tzNamesExt_.STD_GENERIC_LOCATION;case"w":return c=oab(e.getFullYear(),e.getMonth(),e.getDate(),a.JSC$10273_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,a.JSC$10273_dateTimeSymbols_.FIRSTDAYOFWEEK),WH(a,Oc(Math.floor(Math.round((c-new Date(new Date(c).getFullYear(), 0,1).valueOf())/864E5)/7)+1,h));case"z":return a=f||TH(c.getTimezoneOffset()),h<4?a.tzNames_[Jdb(a,c)>0?2:0]:a.tzNames_[Jdb(a,c)>0?3:1];case"Z":return b=f||TH(c.getTimezoneOffset()),h<4?(h=-Kdb(b,c),a=[h<0?"-":"+"],h=Math.abs(h),a.push(Oc(Math.floor(h/60)%100,2),Oc(h%60,2)),h=a.join("")):h=WH(a,Idb(Kdb(b,c))),h;default:return"";}};var Udb=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,Vdb=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,Xdb=function(a){this.patternParts_=[];this.JSC$10283_dateTimeSymbols_=IG;if(typeof a=="number"){a>11&&(a=10);if(a<4)var b=this.JSC$10283_dateTimeSymbols_.DATEFORMATS[a];else a<8?b=this.JSC$10283_dateTimeSymbols_.TIMEFORMATS[a-4]:(b=this.JSC$10283_dateTimeSymbols_.DATETIMEFORMATS[a-8],b=b.replace("{1}",this.JSC$10283_dateTimeSymbols_.DATEFORMATS[a-8]),b=b.replace("{0}",this.JSC$10283_dateTimeSymbols_.TIMEFORMATS[a- 8]));Wdb(this,b)}else Wdb(this,a)},Wdb=function(a,b){for(var c=!1,d="",e=0;e0&&(a.patternParts_.push({text:d,count:0,abutStart:!1,numeric:!1}),d=""),a.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});e=0){d.length>0&&(a.patternParts_.push({text:d,count:0,abutStart:!1,numeric:!1}),d="");for(var h=b.charAt(e),m=e+1;m0||m==0&&h<3);a.patternParts_.push({text:f,count:h,abutStart:!1,numeric:m});e+=h-1}else f=="'"?e+10&&a.patternParts_.push({text:d,count:0,abutStart:!1,numeric:!1});b=!1;for(c=0;c0&&("abBhHkKm".indexOf(f.text.charAt(0))<0||f.count>2||f.abutStart))throw Error("'predictive' parsing is not supported for symbol '"+(f.text.charAt(0)+"'."))}f=new Ydb;c=[0];f.dayPeriodIndex=-1;for(var h=0;h=a.length);h++){if(this.patternParts_[h].count==0){a:{var m=a;var p=c,q=this.patternParts_[h], t=d;if(q.text.match(Udb)!=null){if(q=p[0],Zdb(m,p),p[0]>q){m=!0;break a}}else{if(m.indexOf(q.text,p[0])==p[0]){p[0]+=q.text.length;m=!0;break a}if(t&&q.text.indexOf(m.substring(p[0]))==0){p[0]+=m.length-p[0];m=!0;break a}}m=!1}if(m)continue;return 0}if(this.patternParts_[h].abutStart){a:{p=a;q=c;t=h;var u=q[0],v=0;for(m=t;mt&&w.numeric,C=q[0];if(!$db(this,p,q,w,y,f,!1)|| A&&q[0]-C0&&(f.year=-(f.year-1));f.year!=void 0&&b.setFullYear(f.year);d=b.getDate();b.setDate(1);f.month!=void 0&&b.setMonth(f.month);f.day!=void 0?b.setDate(f.day):(e=nab(b.getFullYear(),b.getMonth()),b.setDate(d>e?e:d));typeof b.setHours==="function"&&(f.hours==void 0&&(f.hours= b.getHours()),f.hours<12&&(f.ampm!=void 0&&f.ampm>0?f.hours+=12:f.dayPeriodName!==void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(f.dayPeriodName)||["night1","night2"].includes(f.dayPeriodName)&&f.hours>=6)&&(f.hours+=12)),b.setHours(f.hours));typeof b.setMinutes==="function"&&f.minutes!=void 0&&b.setMinutes(f.minutes);typeof b.setSeconds==="function"&&f.seconds!=void 0&&b.setSeconds(f.seconds);typeof b.setMilliseconds==="function"&&f.milliseconds!=void 0&&b.setMilliseconds(f.milliseconds); if(a&&(f.year&&f.year!=b.getFullYear()||f.month&&f.month!=b.getMonth()||f.day&&f.day!=b.getDate()||f.hours&&f.hours>=24||f.minutes&&f.minutes>=60||f.seconds&&f.seconds>=60||f.milliseconds&&f.milliseconds>=1E3))b=!1;else{f.tzOffset!=void 0&&b.setTime(b.getTime()+(f.tzOffset-b.getTimezoneOffset())*60*1E3);f.ambiguousYear&&(a=new Date,a.setFullYear(a.getFullYear()-80),b.getTime() 3&&(f-=7),a=b.getMonth(),b.setDate(b.getDate()+f),b.getMonth()!=a&&b.setDate(b.getDate()+(f>0?-7:7));else if(f.dayOfWeek!=b.getDay()){b=!1;break a}b=!0}}return b?c[0]:0}; var $db=function(a,b,c,d,e,f,h){Zdb(b,c);if(d.numeric&&e>0&&c[0]+e>b.length)return!1;switch(d.text.charAt(0)){case"G":return YH(b,c,[a.JSC$10283_dateTimeSymbols_.ERAS],function(m){return f.era=m}),!0; case"M":case"L":return aeb(a,b,c,e,d,f);case"E":return YH(b,c,[a.JSC$10283_dateTimeSymbols_.WEEKDAYS,a.JSC$10283_dateTimeSymbols_.SHORTWEEKDAYS],function(m){return f.dayOfWeek=m}); case"B":case"b":return e=[],a=[[].concat(a.JSC$10283_dateTimeSymbols_.AMPMS)],e.push("isAm"),e.push("isPm"),b=YH(b,c,a,function(m){return f.dayPeriodIndex=m},h),f.dayPeriodName=e[f.dayPeriodIndex],h?b:!0; case"a":return b=YH(b,c,[a.JSC$10283_dateTimeSymbols_.AMPMS],function(m){return f.ampm=m},h),h?b:!0; case"y":return beb(a,b,c,d,e,f);case"Q":return YH(b,c,[a.JSC$10283_dateTimeSymbols_.QUARTERS,a.JSC$10283_dateTimeSymbols_.SHORTQUARTERS],function(m){f.month=m*3;f.day=1}); case"d":return ZH(a,b,c,d,e,function(m){f.day=m}),!0; case"S":return ceb(a,b,c,e,f);case"h":case"K":case"H":case"k":return b=ZH(a,b,c,d,e,function(m){f.hours=d.text.charAt(0)==="h"&&m===12?0:m},h),h?b:!0; case"m":return b=ZH(a,b,c,d,e,function(m){f.minutes=m},h),h?b:!0; case"s":return ZH(a,b,c,d,e,function(m){f.seconds=m}),!0; case"z":case"Z":case"v":return deb(a,b,c,f);default:return!1;}},beb=function(a,b,c,d,e,f){var h=c[0]; e=$H(a,b,c,e);e===null&&(e=$H(a,b,c,0,!0));if(e===null)return!1;e>=0&&c[0]-h==2&&d.count==2?(a=e,b=new Date().getFullYear()-80,c=b%100,f.ambiguousYear=a==c,a+=Math.floor(b/100)*100+(a=b.length)return d.tzOffset=0,!0;var e=c[0],f=$H(a,b,c,0,!0);if(f===null)return!1;if(c[0]q&&u.indexOf(w)==0&&(q=m[v].length,t=v)}t!==null&&(f[0]+=q);f=t;if(f!==null)return d(f),!0}return!1},Zdb=function(a,b){(a=a.substring(b[0]).match(Vdb))&&(b[0]+=a[0].length)},$H=function(a,b,c,d,e){b=d>0?b.substring(0,c[0]+d):b; e=e||!1;if(a.JSC$10283_dateTimeSymbols_.ZERODIGIT){d=[];for(var f=c[0];f"Z"&&d<"a"||d>"z"){c=!1;break a}}c=!0}else c=!1;c=!c}if(c)throw new TypeError("Currency must be valid ISO code");this.intlCurrencyCode_=b?b.toUpperCase():null;this.maximumIntegerDigits_=40;this.minimumIntegerDigits_=1;this.significantDigits_=0;this.maximumFractionDigits_=3;this.minExponentDigits_=this.minimumFractionDigits_=0;this.useSignForPositiveExponent_=!1;this.positiveSuffix_=this.positivePrefix_= "";this.negativePrefix_=aI.MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof a==="number")switch(a){case 1:bI(this,aI.DECIMAL_PATTERN);break;case 2:bI(this,aI.SCIENTIFIC_PATTERN);break;case 3:bI(this,aI.PERCENT_PATTERN);break;case 4:a=aI.CURRENCY_PATTERN;b=["0"];if(c=SH[this.intlCurrencyCode_||aI.DEF_CURRENCY_CODE]){c=c[0]&7;if(c>0)for(b.push("."), d=0;d0?m++:f++;p>=0&&e<0&&p++;break;case"0":if(m>0)throw Error("Unexpected \"0\" in pattern \""+b+"\"");h++;p>=0&&e<0&&p++;break;case",":p>0&&a.groupingArray_.push(p);p=0;break;case".":if(e>=0)throw Error("Multiple decimal separators in pattern \""+b+"\"");e=f+h+m;break;case"E":if(a.useExponentialNotation_)throw Error("Multiple exponential symbols in pattern \""+b+ "\"");a.useExponentialNotation_=!0;a.minExponentDigits_=0;c[0]+10&&e>=0&&(h=e,h==0&&h++,m=f-h,f=h-1,h=1);if(e<0&&m>0||e>=0&&(ef+h)||p==0)throw Error("Malformed pattern \""+b+"\"");m=f+h+m;a.maximumFractionDigits_=e>=0?m-e:0;e>=0&&(a.minimumFractionDigits_= f+h-e,a.minimumFractionDigits_<0&&(a.minimumFractionDigits_=0));a.minimumIntegerDigits_=(e>=0?e:m)-f;a.useExponentialNotation_&&(a.maximumIntegerDigits_=f+a.minimumIntegerDigits_,a.maximumFractionDigits_==0&&a.minimumIntegerDigits_==0&&(a.minimumIntegerDigits_=1));a.groupingArray_.push(Math.max(0,p));a.decimalSeparatorAlwaysShown_=e==0||e==m;d=c[0]-d;a.positiveSuffix_=meb(a,b,c);c[0]0)throw Error("Can't combine significant digits and minimum fraction digits");a.significantDigits_=2}; cI.prototype.parse=function(a,b){b=b||[0];if(this.compactStyle_!==0)throw Error("Parsing of compact numbers is unimplemented");a=a.replace(/ |\u202f/g,"\xA0");var c=a.indexOf(this.positivePrefix_,b[0])==b[0],d=a.indexOf(this.negativePrefix_,b[0])==b[0];c&&d&&(this.positivePrefix_.length>this.negativePrefix_.length?d=!1:this.positivePrefix_.length=0&&A<=9)w+=A,m=!0;else if(y==t.charAt(0)){if(f||h)break;w+=".";f=!0}else if(y==u.charAt(0)&&("\xA0"!=u.charAt(0)||b[0]+1=0)){if(f||h)break}else if(y==v.charAt(0)){if(h)break; w+="E";h=!0;p=b[0]}else if(y=="+"||y=="-"){if(m&&p!=b[0]-1)break;w+=y}else if(this.multiplier_==1&&y==aI.PERCENT.charAt(0)){if(q!=1)break;q=100;if(m){b[0]++;break}}else if(this.multiplier_==1&&y==aI.PERMILL.charAt(0)){if(q!=1)break;q=1E3;if(m){b[0]++;break}}else break}this.multiplier_!=1&&(q=this.multiplier_);e=parseFloat(w)/q}if(c){if(a.indexOf(this.positiveSuffix_,b[0])!=b[0])return NaN;b[0]+=this.positiveSuffix_.length}else if(d){if(a.indexOf(this.negativeSuffix_,b[0])!=b[0])return NaN;b[0]+=this.negativeSuffix_.length}return d? -e:e}; cI.prototype.format=function(a){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("Min value must be less than max value");if(isNaN(a))return aI.NAN;var b=[];var c=a,d=a;if(this.compactStyle_==0)var e=dI;else c=Math.abs(c),d=Math.abs(d),e=oeb(this,c<=1?0:peb(c)).divisorBase,d=eI(d,-e),qeb(this,d),c=eI(c,-e),c=qeb(this,c),e=oeb(this,e+peb(c.intValue));a=eI(a,-e.divisorBase);(c=a<0||a==0&&1/a<0)?e.negative_prefix?b.push(e.negative_prefix):(b.push(e.prefix),b.push(this.negativePrefix_)):( b.push(e.prefix),b.push(this.positivePrefix_));if(isFinite(a)){if(a*=c?-1:1,a*=this.multiplier_,this.useExponentialNotation_){if(d=a,d==0)reb(this,d,this.minimumIntegerDigits_,b),seb(this,0,b);else{var f=Math.floor(Math.log(d)/Math.log(10)+2e-15);d=eI(d,-f);var h=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(h=f%this.maximumIntegerDigits_,h<0&&(h=this.maximumIntegerDigits_+h),d=eI(d,h),f-=h,h=1):this.minimumIntegerDigits_<1?(f++,d=eI(d, -1)):(f-=this.minimumIntegerDigits_-1,d=eI(d,this.minimumIntegerDigits_-1));reb(this,d,h,b);seb(this,f,b)}}else reb(this,a,this.minimumIntegerDigits_,b);}else b.push(aI.INFINITY);c?e.negative_suffix?b.push(e.negative_suffix):(isFinite(a)&&b.push(e.suffix),b.push(this.negativeSuffix_)):(isFinite(a)&&b.push(e.suffix),b.push(this.positiveSuffix_));return b.join("")}; var qeb=function(a,b){var c=eI(b,a.maximumFractionDigits_);a.significantDigits_>0&&(c=teb(c,a.significantDigits_,a.maximumFractionDigits_));c=Math.round(c);if(isFinite(c)){var d=Math.floor(eI(c,-a.maximumFractionDigits_));c=Math.floor(c-eI(d,a.maximumFractionDigits_));if(c<0||c>=eI(1,a.maximumFractionDigits_))d=Math.round(b),c=0}else d=b,c=0;return{intValue:d,fracValue:c}},reb=function(a,b,c,d){if(a.minimumFractionDigits_>a.maximumFractionDigits_)throw Error("Min value must be less than max value"); d||(d=[]);b=qeb(a,b);var e=b.intValue,f=b.fracValue,h=a.minimumFractionDigits_>0||f>0||!1;b=a.minimumFractionDigits_;h&&(b=a.minimumFractionDigits_);for(var m="",p=e;p>1E20;)m="0"+m,p=Math.round(eI(p,-1));m=p+m;var q=aI.DECIMAL_SEP;p=aI.ZERO_DIGIT.codePointAt(0);var t=m.length,u=0;if(e>0||c>0){for(e=t;e=2)for(c=1;c0){e=a.groupingArray_;u=t=0;for(var v,w=aI.GROUP_SEP,y=m.length, A=0;A1)if(v=e[u],A0&&C%v===1)&&d.push(w)}else u=0&&v>0;t--){u=m[t];for(y=0;y=0;y++)w.push(String.fromCodePoint(p+Number(c.charAt(v-y-1))*1));v-=u;v>0&&w.push(e)}d.push.apply(d,w.reverse())}}else h||d.push(String.fromCodePoint(p));(a.decimalSeparatorAlwaysShown_|| h)&&d.push(q);f=String(f);h=f.split("e+");h.length==2&&(f=String(teb(parseFloat(h[0]),a.significantDigits_,1)),f=f.replace(".",""),f+=uca("0",parseInt(h[1],10)-f.length+1));a.maximumFractionDigits_+1>f.length&&(f="1"+uca("0",a.maximumFractionDigits_-f.length)+f);for(a=f.length;f.charAt(a-1)=="0"&&a>b+1;)a--;for(b=1;b=3;)c=a[eI(1,b)],b--;if(!c)return dI;c=c.other;var d=a="",e=c.indexOf(";");e>=0&&(c=c.substring(0,e),e=c.substring(e+1))&&(d=/([^0]*)(0+)(.*)/.exec(e),a=d[1],d=d[3]);return c&&c!="0"?(c=/([^0]*)(0+)(.*)/.exec(c))?{divisorBase:b+ 1-(c[2].length-1),negative_prefix:a,negative_suffix:d,prefix:c[1],suffix:c[3]}:dI:dI},peb=function(a){if(!isFinite(a))return a>0?a:0; for(var b=0;(a/=10)>=1;)b++;return b},eI=function(a,b){if(!a||!isFinite(a)||b==0)return a; a=String(a).split("e");return parseFloat(a[0]+"e"+(parseInt(a[1]||0,10)+b))},veb=function(a,b){return a&&isFinite(a)?eI(Math.round(eI(a,b)),-b):a},teb=function(a,b,c){if(!a)return a; b=b-peb(a)-1;return b<-c?veb(a,-c):veb(a,b)};var web;function xeb(a){return a%10==1&&a%100!=11?"one":a%10==2&&a%100!=12?"two":a%10==3&&a%100!=13?"few":"other"} var yeb=web=web=xeb;var zeb;function Aeb(a,b){var c=a|0;if(void 0===b){b=Math;var d=b.min,e=a+"",f=e.indexOf(".");b=d.call(b,f===-1?0:e.length-f-1,3)}d=Math.pow(10,b);a={v:b,f:(a*d|0)%d};return c==1&&a.v==0?"one":"other"} var Beb=zeb=zeb=Aeb;var Feb=function(a){this.JSC$10324_pattern_=a;this.parsedPattern_=this.literals_=this.initialLiterals_=null;a=aI;var b=RH;if(Ceb!==a||Deb!==b)Ceb=a,Deb=b,Eeb=new cI(1);this.numberFormatter_=Eeb},Ceb=null,Deb=null,Eeb=null,Geb=RegExp("'([{}#].*?)'","g"),Heb=RegExp("''","g"); Feb.prototype.format=function(a){if(this.JSC$10324_pattern_){this.initialLiterals_=[];var b=Ieb(this,this.JSC$10324_pattern_);this.parsedPattern_=Jeb(this,b);this.JSC$10324_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=Dc(this.initialLiterals_),b=[],Keb(this,this.parsedPattern_,a,!1,b),a=b.join("");this.literals_.length>0;)a=a.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else a="";return a}; var Keb=function(a,b,c,d,e){for(var f=0;f0||a==0&&1/a==Infinity?b.F:b.P)+"}").format({N:c})}else a="";return a}; var Zeb=function(a,b){switch(b){default:case 0:return a.rdtfSymbols_.YEAR;case 1:return a.rdtfSymbols_.QUARTER;case 2:return a.rdtfSymbols_.MONTH;case 3:return a.rdtfSymbols_.WEEK;case 4:return a.rdtfSymbols_.DAY;case 5:return a.rdtfSymbols_.HOUR;case 6:return a.rdtfSymbols_.MINUTE;case 7:return a.rdtfSymbols_.SECOND;}};function $eb(a,b,c,d,e,f,h,m){this.x0=a;this.y0=b;this.x1=c;this.y1=d;this.x2=e;this.y2=f;this.x3=h;this.y3=m} $eb.prototype.clone=function(){return new $eb(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)}; $eb.prototype.equals=function(a){return this.x0==a.x0&&this.y0==a.y0&&this.x1==a.x1&&this.y1==a.y1&&this.x2==a.x2&&this.y2==a.y2&&this.x3==a.x3&&this.y3==a.y3}; var afb=function(a,b){if(b==0)return a.x0;if(b==1)return a.x3;var c=Oh(a.x0,a.x1,b),d=Oh(a.x1,a.x2,b);a=Oh(a.x2,a.x3,b);c=Oh(c,d,b);d=Oh(d,a,b);return Oh(c,d,b)},bfb=function(a,b){var c=(b-a.x0)/(a.x3-a.x0); if(c<=0)return 0;if(c>=1)return 1;for(var d=0,e=1,f=0,h=0;h<8;h++){f=afb(a,c);var m=(afb(a,c+1E-6)-f)/1E-6;if(Math.abs(f-b)<1E-6)return c;if(Math.abs(m)<1E-6)break;else f1E-6&&h<8;h++)f",{justification:"Short HTML snippet, input escaped, safe URL, for performance"})}else d=Nc(b),d=Pb("");ica(c,d);Ri(c.getElementById(b),"load",a.onIframeLoaded_,!1,a);d=ji("TEXTAREA",a.JSC$10346_form_);for(var e=0,f=d.length;e0&&(m=window.setTimeout(function(){kfb(e,!0);oo(h,new lfb(1,"Timeout reached for loading script "+d))},p),f.timeout_=m); e.onload=e.onreadystatechange=function(){e.readyState&&e.readyState!="loaded"&&e.readyState!="complete"||(kfb(e,c.cleanupWhenDone||!1,m),h.callback(null))}; e.onerror=function(){kfb(e,!0,m);oo(h,new lfb(0,"Error while loading script "+d))}; f=c.attributes||{};Zh(f,{type:"text/javascript",charset:"UTF-8"});Eia(e,f);kc(e,a);mfb(b).appendChild(e);return h},mfb=function(a){var b=ji("HEAD",a); return b&&b.length!==0?b[0]:a.documentElement},jfb=function(){if(this&&this.script_){var a=this.script_; a&&a.tagName=="SCRIPT"&&kfb(a,!0,this.timeout_)}},kfb=function(a,b,c){c!=null&&ua.clearTimeout(c); a.onload=function(){}; a.onerror=function(){}; a.onreadystatechange=function(){}; b&&window.setTimeout(function(){oi(a)},0)},lfb=function(a,b){var c="Jsloader error (code #"+a+")"; b&&(c+=": "+b);Va.call(this,c);this.code=a}; Ra(lfb,Va);var kI=function(a){return a=="\r"||a=="\n"||a==" "||a=="\t"};function lI(){this.JSC$10353_errorMessage_=null;this.result_=[];this.JSC$10353_buffer_="";this.stack_=[];this.pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0} lI.prototype.isInputValid=function(){return this.streamState_!=3}; lI.prototype.done=function(){return this.streamState_===2}; var mI=function(a,b,c){a.streamState_=3;a.JSC$10353_errorMessage_="The stream is broken @"+a.pos_+"/"+c+". With input:\n"+b;throw Error(a.JSC$10353_errorMessage_)}; lI.prototype.parse=function(a){function b(){for(;u0;)if(w=a[u++],f.unicodeCount_===4?f.unicodeCount_=0:f.unicodeCount_++,!w)break a;if(w==="\""&&!f.slashed_){f.state_=d();break}if(w==="\\"&&!f.slashed_&&(f.slashed_=!0,w=a[u++],!w))break;if(f.slashed_)if(f.slashed_=!1,w==="u"&&(f.unicodeCount_=1),w=a[u++])continue;else break;m.lastIndex=u;w=m.exec(a);if(!w){u=a.length+1;break}u=w.index+1;w=a[w.index];if(!w)break}f.pos_+=u-y;continue;case 9:if(!w)continue;w==="r"?f.state_=10:mI(f,a,u);continue;case 10:if(!w)continue; w==="u"?f.state_=11:mI(f,a,u);continue;case 11:if(!w)continue;w==="e"?f.state_=d():mI(f,a,u);continue;case 12:if(!w)continue;w==="a"?f.state_=13:mI(f,a,u);continue;case 13:if(!w)continue;w==="l"?f.state_=14:mI(f,a,u);continue;case 14:if(!w)continue;w==="s"?f.state_=15:mI(f,a,u);continue;case 15:if(!w)continue;w==="e"?f.state_=d():mI(f,a,u);continue;case 16:if(!w)continue;w==="u"?f.state_=17:mI(f,a,u);continue;case 17:if(!w)continue;w==="l"?f.state_=18:mI(f,a,u);continue;case 18:if(!w)continue;w=== "l"?f.state_=d():mI(f,a,u);continue;case 19:w==="."?f.state_=20:mI(f,a,u);continue;case 20:if("0123456789.eE+-".indexOf(w)!==-1)continue;else u--,f.pos_--,f.state_=d();continue;default:mI(f,a,u);}}} function d(){var w=h.pop();return w!=null?w:1} function e(w){f.depth_>1||(w||(w=t===-1?f.JSC$10353_buffer_+a.substring(q,u):a.substring(t,u)),f.result_.push(JSON.parse(w)),t=u)} for(var f=this,h=f.stack_,m=f.stringInputPattern_,p=a.length,q=0,t=-1,u=0;u0?(v=f.result_,f.result_=[], v):null;}return null};function ofb(a){this.mechanism=a} Ra(ofb,Ej);function pfb(){this.front_=[];this.back_=[]} var qfb=function(a){a.front_.length===0&&(a.front_=a.back_,a.front_.reverse(),a.back_=[])},rfb=function(a){qfb(a); return a.front_.pop()}; g=pfb.prototype;g.peek=function(){qfb(this);return tc(this.front_)}; g.isEmpty=function(){return this.front_.length===0&&this.back_.length===0}; g.clear=function(){this.front_=[];this.back_=[]}; g.contains=function(a){return yc(this.front_,a)||yc(this.back_,a)}; g.remove=function(a){var b=this.front_;var c=Array.prototype.lastIndexOf.call(b,a,b.length-1);c>=0?(Array.prototype.splice.call(b,c,1),b=!0):b=!1;return b||Bc(this.back_,a)}; g.getValues=function(){for(var a=[],b=this.front_.length-1;b>=0;--b)a.push(this.front_[b]);b=this.back_.length;for(var c=0;c0&&!t&&!p)return m.length===2&&(m=["noreferrer"]),Yb(c,d,a,m[0]),tfb();e=h.join(",");(ud()||od("iPad")||od("iPod"))&&c.navigator&&c.navigator.standalone&&a&&a!="_self"?(e=li("A"),Jb(e,d),e.target= a,f&&(e.rel="noreferrer"),((b=b.attributionsrc)||b==="")&&e.setAttribute("attributionsrc",b),b=document.createEvent("MouseEvent"),b.initMouseEvent("click",!0,!0,c,1),e.dispatchEvent(b),c=tfb()):f?(c=Yb(c,"",a,e),b=xb(d),c&&(c.opener=null,b===""&&(b="javascript:''"),b=oca("",{justification:"b/12014412, meta tag with sanitized URL"}),(d=c.document)&&d.write&&(ica(d,b),d.close()))):((c=Yb(c,d,a,e))&&b.noopener&&( c.opener=null),c&&b.noreferrer&&(c.opener=null));return c};var vfb={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376};/* Copyright (c) Felix B?hm All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ function wfb(a){if(a>=55296&&a<=57343||a>1114111)return"\uFFFD";a in vfb&&(a=vfb[a]);var b="";a>65535&&(a-=65536,b+=String.fromCharCode(a>>>10&1023|55296),a=56320|a&1023);return b+=String.fromCharCode(a)} ;var xfb={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\uD835\uDD04",afr:"\uD835\uDD1E",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A", ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\uD835\uDD38",aopf:"\uD835\uDD52",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A", Aring:"\xC5",aring:"\xE5",Ascr:"\uD835\uDC9C",ascr:"\uD835\uDCB6",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235", because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\uD835\uDD05",bfr:"\uD835\uDD1F",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4", blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\uD835\uDD39",bopf:"\uD835\uDD53",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564", boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8", Breve:"\u02D8",brvbar:"\xA6",bscr:"\uD835\uDCB7",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D", Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\uD835\uDD20",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A", circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102", cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\uD835\uDD54",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\uD835\uDC9E",cscr:"\uD835\uDCB8",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D", cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010", Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\uD835\uDD07",dfr:"\uD835\uDD21",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC", diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\uD835\uDD3B",dopf:"\uD835\uDD55",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306", DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA", downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\uD835\uDC9F",dscr:"\uD835\uDCB9",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5", duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\uD835\uDD08",efr:"\uD835\uDD22",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95", elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\uD835\uDD3C",eopf:"\uD835\uDD56",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95", Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03", fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\uD835\uDD09",ffr:"\uD835\uDD23",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\uD835\uDD3D",fopf:"\uD835\uDD57",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157", frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\uD835\uDCBB",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80", gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\uD835\uDD0A",gfr:"\uD835\uDD24",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\uD835\uDD3E",gopf:"\uD835\uDD58",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277", GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\uD835\uDCA2",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948", harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\uD835\uDD25",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\uD835\uDD59",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\uD835\uDCBD",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E", HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\uD835\uDD26",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131", Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105","in":"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA","int":"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\uD835\uDD40",iopf:"\uD835\uDD5A",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\uD835\uDCBE", Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\uD835\uDD0D",jfr:"\uD835\uDD27",jmath:"\u0237",Jopf:"\uD835\uDD41",jopf:"\uD835\uDD5B",Jscr:"\uD835\uDCA5",jscr:"\uD835\uDCBF",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0", Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\uD835\uDD0E",kfr:"\uD835\uDD28",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\uD835\uDD42",kopf:"\uD835\uDD5C",Kscr:"\uD835\uDCA6",kscr:"\uD835\uDCC0",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190", Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B", ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6", leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81", lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\uD835\uDD0F",lfr:"\uD835\uDD29",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7", ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6", LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\uD835\uDD43",lopf:"\uD835\uDD5D",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\uD835\uDCC1",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272", lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4", mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\uD835\uDD10",mfr:"\uD835\uDD2A",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\uD835\uDD44",mopf:"\uD835\uDD5E",mp:"\u2213",mscr:"\uD835\uDCC2", Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D", ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:"\n",nexist:"\u2204",nexists:"\u2204",Nfr:"\uD835\uDD11",nfr:"\uD835\uDD2B",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338", nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E", nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\uD835\uDD5F",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338", NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338", NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338", NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B", nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\uD835\uDCA9",nscr:"\uD835\uDCC3",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2", nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903", nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\uD835\uDD12",ofr:"\uD835\uDD2C",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E", olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\uD835\uDD46",oopf:"\uD835\uDD60",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B", oS:"\u24C8",Oscr:"\uD835\uDCAA",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031", Pfr:"\uD835\uDD13",pfr:"\uD835\uDD2D",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\uD835\uDD61",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7", Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D", Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\uD835\uDCAB",pscr:"\uD835\uDCC5",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\uD835\uDD14",qfr:"\uD835\uDD2E",qint:"\u2A0C",qopf:"\uD835\uDD62",Qopf:"\u211A",qprime:"\u2057",Qscr:"\uD835\uDCAC",qscr:"\uD835\uDCC6",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:"\"",QUOT:"\"",rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB", rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158", rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\uD835\uDD2F",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1", rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6", RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\uD835\uDD63", Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\uD835\uDCC7",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161", Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\uD835\uDD16",sfr:"\uD835\uDD30",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429", shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4", smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\uD835\uDD4A",sopf:"\uD835\uDD64",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293", SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\uD835\uDCAE",sscr:"\uD835\uDCC8",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A", subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A", sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9", swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:"\t",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\uD835\uDD17",tfr:"\uD835\uDD31",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248", thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\uD835\uDD4B",topf:"\uD835\uDD65",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9", trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\uD835\uDCAF",tscr:"\uD835\uDCC9",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D", Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\uD835\uDD18",ufr:"\uD835\uDD32",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172", uogon:"\u0173",Uopf:"\uD835\uDD4C",uopf:"\uD835\uDD66",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D", urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\uD835\uDCB0",uscr:"\uD835\uDCCA",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00", varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\uD835\uDD19",vfr:"\uD835\uDD33", vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\uD835\uDD4D",vopf:"\uD835\uDD67",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\uD835\uDCB1",vscr:"\uD835\uDCCB",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\uD835\uDD1A",wfr:"\uD835\uDD34",Wopf:"\uD835\uDD4E",wopf:"\uD835\uDD68",wp:"\u2118",wr:"\u2240",wreath:"\u2240", Wscr:"\uD835\uDCB2",wscr:"\uD835\uDCCC",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\uD835\uDD1B",xfr:"\uD835\uDD35",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\uD835\uDD4F",xopf:"\uD835\uDD69",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\uD835\uDCB3",xscr:"\uD835\uDCCD",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD", YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\uD835\uDD1C",yfr:"\uD835\uDD36",YIcy:"\u0407",yicy:"\u0457",Yopf:"\uD835\uDD50",yopf:"\uD835\uDD6A",Yscr:"\uD835\uDCB4",yscr:"\uD835\uDCCE",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\uD835\uDD37", Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\uD835\uDD6B",Zopf:"\u2124",Zscr:"\uD835\uDCB5",zscr:"\uD835\uDCCF",zwj:"\u200D",zwnj:"\u200C"};var yfb={Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",AElig:"\xC6",aelig:"\xE6",Agrave:"\xC0",agrave:"\xE0",amp:"&",AMP:"&",Aring:"\xC5",aring:"\xE5",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",brvbar:"\xA6",Ccedil:"\xC7",ccedil:"\xE7",cedil:"\xB8",cent:"\xA2",copy:"\xA9",COPY:"\xA9",curren:"\xA4",deg:"\xB0",divide:"\xF7",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Egrave:"\xC8",egrave:"\xE8",ETH:"\xD0", eth:"\xF0",Euml:"\xCB",euml:"\xEB",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE",gt:">",GT:">",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",iexcl:"\xA1",Igrave:"\xCC",igrave:"\xEC",iquest:"\xBF",Iuml:"\xCF",iuml:"\xEF",laquo:"\xAB",lt:"<",LT:"<",macr:"\xAF",micro:"\xB5",middot:"\xB7",nbsp:"\xA0",not:"\xAC",Ntilde:"\xD1",ntilde:"\xF1",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Ograve:"\xD2",ograve:"\xF2",ordf:"\xAA",ordm:"\xBA", Oslash:"\xD8",oslash:"\xF8",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",para:"\xB6",plusmn:"\xB1",pound:"\xA3",quot:"\"",QUOT:"\"",raquo:"\xBB",reg:"\xAE",REG:"\xAE",sect:"\xA7",shy:"\xAD",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",szlig:"\xDF",THORN:"\xDE",thorn:"\xFE",times:"\xD7",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Ugrave:"\xD9",ugrave:"\xF9",uml:"\xA8",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",yen:"\xA5", yuml:"\xFF"};Object.keys({amp:"&",apos:"'",gt:">",lt:"<",quot:"\""}).join("|");Object.keys(xfb).join("|");var Bfb=function(){function a(m){m.substr(-1)!==";"&&(m+=";");return h(m)} for(var b=Object.keys(yfb).sort(zfb),c=Object.keys(xfb).sort(zfb),d=0,e=0;d`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*/?>|]|||[<][?].*?[?][>]|]*>|)","i"),Efb=/[\\&]/,Ffb=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),Gfb=RegExp("[&<>\"]","g"),Hfb=RegExp("&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>\"]", "gi"),Ifb=function(a){return a.charCodeAt(0)===92?a.charAt(1):Bfb(a)},Jfb=function(a){return Efb.test(a)?a.replace(Ffb,Ifb):a},Kfb=function(a){try{var b,c=""; if(typeof e!=="string"){var d=e;var e=";/?:@&=+$,-_.!~*'()#"}typeof d==="undefined"&&(d=!0);var f,h=Cfb[e];if(h)var m=h;else{h=Cfb[e]=[];for(f=0;f<128;f++){var p=String.fromCharCode(f);/^[0-9a-z]$/i.test(p)?h.push(p):h.push("%"+("0"+f.toString(16).toUpperCase()).slice(-2))}for(f=0;f=55296&& t<=57343){if(t>=55296&&t<=56319&&q+1=56320&&u<=57343){c+=encodeURIComponent(a[q]+a[q+1]);q++;continue}}c+="%EF%BF%BD"}else c+=encodeURIComponent(a[q])}return c}catch(v){return a}},Lfb=function(a){switch(a){case"&":return"&"; case"<":return"<";case">":return">";case"\"":return""";default:return a;}},nI=function(a,b){return Gfb.test(a)?b?a.replace(Hfb,Lfb):a.replace(Gfb,Lfb):a};/* lib/from-code-point.js is derived from a polyfill Copyright Mathias Bynens 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. http://mths.be/fromcodepoint v0.2.1 by @mathias */ var oI;if(String.fromCodePoint)oI=function(a){try{return String.fromCodePoint(a)}catch(b){if(b instanceof RangeError)return String.fromCharCode(65533);throw b}};else {var Mfb=String.fromCharCode,Nfb=Math.floor;oI=function(){var a=[],b=-1,c=arguments.length;if(!c)return"";for(var d="";++b1114111||Nfb(e)!==e)return String.fromCharCode(65533);if(e<=65535)a.push(e);else{e-=65536;var f=(e>>10)+55296;e=e%1024+56320;a.push(f,e)}if(b+1===c||a.length>16384)d+=Mfb.apply(null,a),a.length=0}return d}};var Ofb=function(a){this.root=this.current=a;this.entering=!0}; Ofb.prototype.next=function(){var a=this.current,b=this.entering;if(a===null)return null;a:switch(a._type){case"document":case"block_quote":case"list":case"item":case"paragraph":case"heading":case"emph":case"strong":case"link":case"image":case"custom_inline":case"custom_block":case"table":case"row":case"th":case"td":var c=!0;break a;default:c=!1;}b&&c?a._firstChild?(this.current=a._firstChild,this.entering=!0):this.entering=!1:a===this.root?this.current=null:a._next===null?(this.current= a._parent,this.entering=!1):(this.current=a._next,this.entering=!0);return{entering:b,node:a}}; var pI=function(a,b){this._type=a;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=b;this._lastLineBlank=!1;this._open=!0;this._literal=this._string_content=null;this._listData={};this._title=this._destination=this._info=null;this._isFenced=!1;this._fenceChar=null;this._fenceLength=0;this._onExit=this._onEnter=this._level=this._fenceOffset=null}; pI.prototype.appendChild=function(a){qI(a);a._parent=this;this._lastChild?(this._lastChild._next=a,a._prev=this._lastChild):this._firstChild=a;this._lastChild=a}; var qI=function(a){a._prev?a._prev._next=a._next:a._parent&&(a._parent._firstChild=a._next);a._next?a._next._prev=a._prev:a._parent&&(a._parent._lastChild=a._prev);a._parent=null;a._next=null;a._prev=null},Pfb=function(a,b){qI(b); b._next=a._next;b._next&&(b._next._prev=b);b._prev=a;a._next=b;b._parent=a._parent;b._next||(b._parent._lastChild=b)}; pI.prototype.insertBefore=function(a){qI(a);a._prev=this._prev;a._prev&&(a._prev._next=a);a._next=this;this._prev=a;a._parent=this._parent;a._prev||(a._parent._firstChild=a)}; ba.Object.defineProperties(pI.prototype,{type:{configurable:!0,enumerable:!0,get:function(){return this._type}}, firstChild:{configurable:!0,enumerable:!0,get:function(){return this._firstChild}}, lastChild:{configurable:!0,enumerable:!0,get:function(){return this._lastChild}}, next:{configurable:!0,enumerable:!0,get:function(){return this._next}}, prev:{configurable:!0,enumerable:!0,get:function(){return this._prev}}, parent:{configurable:!0,enumerable:!0,get:function(){return this._parent}}, sourcepos:{configurable:!0,enumerable:!0,get:function(){return this._sourcepos}}, literal:{configurable:!0,enumerable:!0,get:function(){return this._literal}, set:function(a){this._literal=a}}, destination:{configurable:!0,enumerable:!0,get:function(){return this._destination}, set:function(a){this._destination=a}}, title:{configurable:!0,enumerable:!0,get:function(){return this._title}, set:function(a){this._title=a}}, info:{configurable:!0,enumerable:!0,get:function(){return this._info}, set:function(a){this._info=a}}, level:{configurable:!0,enumerable:!0,get:function(){return this._level}, set:function(a){this._level=a}}, listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type}, set:function(a){this._listData.type=a}}, listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight}, set:function(a){this._listData.tight=a}}, listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start}, set:function(a){this._listData.start=a}}, onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter}, set:function(a){this._onEnter=a}}, onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit}, set:function(a){this._onExit=a}}});/* The bulk of this code derives from https://github.com/dmoscrop/fold-case But in addition to case-folding, we also normalize whitespace. fold-case is Copyright Mathias Bynens 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. */ var Qfb=/[ \t\r\n]+|[A-Z\xB5\xC0-\xD6\xD8-\xDF\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u0149\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178\u0179\u017B\u017D\u017F\u0181\u0182\u0184\u0186\u0187\u0189-\u018B\u018E-\u0191\u0193\u0194\u0196-\u0198\u019C\u019D\u019F\u01A0\u01A2\u01A4\u01A6\u01A7\u01A9\u01AC\u01AE\u01AF\u01B1-\u01B3\u01B5\u01B7\u01B8\u01BC\u01C4\u01C5\u01C7\u01C8\u01CA\u01CB\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F0-\u01F2\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A\u023B\u023D\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0345\u0370\u0372\u0376\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03AB\u03B0\u03C2\u03CF-\u03D1\u03D5\u03D6\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F0\u03F1\u03F4\u03F5\u03F7\u03F9\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0528\u052A\u052C\u052E\u0531-\u0556\u0587\u10A0-\u10C5\u10C7\u10CD\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E96-\u1E9B\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F50\u1F52\u1F54\u1F56\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1F80-\u1FAF\u1FB2-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD2\u1FD3\u1FD6-\u1FDB\u1FE2-\u1FE4\u1FE6-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2126\u212A\u212B\u2132\u2160-\u216F\u2183\u24B6-\u24CF\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA698\uA69A\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA796\uA798\uA79A\uA79C\uA79E\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA-\uA7AD\uA7B0\uA7B1\uFB00-\uFB06\uFB13-\uFB17\uFF21-\uFF3A]|\uD801[\uDC00-\uDC27]|\uD806[\uDCA0-\uDCBF]/g, Rfb={A:"a",B:"b",C:"c",D:"d",E:"e",F:"f",G:"g",H:"h",I:"i",J:"j",K:"k",L:"l",M:"m",N:"n",O:"o",P:"p",Q:"q",R:"r",S:"s",T:"t",U:"u",V:"v",W:"w",X:"x",Y:"y",Z:"z","\xB5":"\u03BC","\xC0":"\xE0","\xC1":"\xE1","\xC2":"\xE2","\xC3":"\xE3","\xC4":"\xE4","\xC5":"\xE5","\xC6":"\xE6","\xC7":"\xE7","\xC8":"\xE8","\xC9":"\xE9","\xCA":"\xEA","\xCB":"\xEB","\xCC":"\xEC","\xCD":"\xED","\xCE":"\xEE","\xCF":"\xEF","\xD0":"\xF0","\xD1":"\xF1", "\xD2":"\xF2","\xD3":"\xF3","\xD4":"\xF4","\xD5":"\xF5","\xD6":"\xF6","\xD8":"\xF8","\xD9":"\xF9","\xDA":"\xFA","\xDB":"\xFB","\xDC":"\xFC","\xDD":"\xFD","\xDE":"\xFE","\u0100":"\u0101","\u0102":"\u0103","\u0104":"\u0105","\u0106":"\u0107","\u0108":"\u0109","\u010A":"\u010B","\u010C":"\u010D","\u010E":"\u010F","\u0110":"\u0111","\u0112":"\u0113","\u0114":"\u0115","\u0116":"\u0117","\u0118":"\u0119","\u011A":"\u011B","\u011C":"\u011D","\u011E":"\u011F", "\u0120":"\u0121","\u0122":"\u0123","\u0124":"\u0125","\u0126":"\u0127","\u0128":"\u0129","\u012A":"\u012B","\u012C":"\u012D","\u012E":"\u012F","\u0132":"\u0133","\u0134":"\u0135","\u0136":"\u0137","\u0139":"\u013A","\u013B":"\u013C","\u013D":"\u013E","\u013F":"\u0140","\u0141":"\u0142","\u0143":"\u0144","\u0145":"\u0146","\u0147":"\u0148","\u014A":"\u014B","\u014C":"\u014D","\u014E":"\u014F","\u0150":"\u0151","\u0152":"\u0153","\u0154":"\u0155","\u0156":"\u0157","\u0158":"\u0159","\u015A":"\u015B", "\u015C":"\u015D","\u015E":"\u015F","\u0160":"\u0161","\u0162":"\u0163","\u0164":"\u0165","\u0166":"\u0167","\u0168":"\u0169","\u016A":"\u016B","\u016C":"\u016D","\u016E":"\u016F","\u0170":"\u0171","\u0172":"\u0173","\u0174":"\u0175","\u0176":"\u0177","\u0178":"\xFF","\u0179":"\u017A","\u017B":"\u017C","\u017D":"\u017E","\u017F":"s","\u0181":"\u0253","\u0182":"\u0183","\u0184":"\u0185","\u0186":"\u0254","\u0187":"\u0188","\u0189":"\u0256","\u018A":"\u0257","\u018B":"\u018C","\u018E":"\u01DD","\u018F":"\u0259", "\u0190":"\u025B","\u0191":"\u0192","\u0193":"\u0260","\u0194":"\u0263","\u0196":"\u0269","\u0197":"\u0268","\u0198":"\u0199","\u019C":"\u026F","\u019D":"\u0272","\u019F":"\u0275","\u01A0":"\u01A1","\u01A2":"\u01A3","\u01A4":"\u01A5","\u01A6":"\u0280","\u01A7":"\u01A8","\u01A9":"\u0283","\u01AC":"\u01AD","\u01AE":"\u0288","\u01AF":"\u01B0","\u01B1":"\u028A","\u01B2":"\u028B","\u01B3":"\u01B4","\u01B5":"\u01B6","\u01B7":"\u0292","\u01B8":"\u01B9","\u01BC":"\u01BD","\u01C4":"\u01C6","\u01C5":"\u01C6", "\u01C7":"\u01C9","\u01C8":"\u01C9","\u01CA":"\u01CC","\u01CB":"\u01CC","\u01CD":"\u01CE","\u01CF":"\u01D0","\u01D1":"\u01D2","\u01D3":"\u01D4","\u01D5":"\u01D6","\u01D7":"\u01D8","\u01D9":"\u01DA","\u01DB":"\u01DC","\u01DE":"\u01DF","\u01E0":"\u01E1","\u01E2":"\u01E3","\u01E4":"\u01E5","\u01E6":"\u01E7","\u01E8":"\u01E9","\u01EA":"\u01EB","\u01EC":"\u01ED","\u01EE":"\u01EF","\u01F1":"\u01F3","\u01F2":"\u01F3","\u01F4":"\u01F5","\u01F6":"\u0195","\u01F7":"\u01BF","\u01F8":"\u01F9","\u01FA":"\u01FB", "\u01FC":"\u01FD","\u01FE":"\u01FF","\u0200":"\u0201","\u0202":"\u0203","\u0204":"\u0205","\u0206":"\u0207","\u0208":"\u0209","\u020A":"\u020B","\u020C":"\u020D","\u020E":"\u020F","\u0210":"\u0211","\u0212":"\u0213","\u0214":"\u0215","\u0216":"\u0217","\u0218":"\u0219","\u021A":"\u021B","\u021C":"\u021D","\u021E":"\u021F","\u0220":"\u019E","\u0222":"\u0223","\u0224":"\u0225","\u0226":"\u0227","\u0228":"\u0229","\u022A":"\u022B","\u022C":"\u022D","\u022E":"\u022F","\u0230":"\u0231","\u0232":"\u0233", "\u023A":"\u2C65","\u023B":"\u023C","\u023D":"\u019A","\u023E":"\u2C66","\u0241":"\u0242","\u0243":"\u0180","\u0244":"\u0289","\u0245":"\u028C","\u0246":"\u0247","\u0248":"\u0249","\u024A":"\u024B","\u024C":"\u024D","\u024E":"\u024F","\u0345":"\u03B9","\u0370":"\u0371","\u0372":"\u0373","\u0376":"\u0377","\u037F":"\u03F3","\u0386":"\u03AC","\u0388":"\u03AD","\u0389":"\u03AE","\u038A":"\u03AF","\u038C":"\u03CC","\u038E":"\u03CD","\u038F":"\u03CE","\u0391":"\u03B1","\u0392":"\u03B2","\u0393":"\u03B3", "\u0394":"\u03B4","\u0395":"\u03B5","\u0396":"\u03B6","\u0397":"\u03B7","\u0398":"\u03B8","\u0399":"\u03B9","\u039A":"\u03BA","\u039B":"\u03BB","\u039C":"\u03BC","\u039D":"\u03BD","\u039E":"\u03BE","\u039F":"\u03BF","\u03A0":"\u03C0","\u03A1":"\u03C1","\u03A3":"\u03C3","\u03A4":"\u03C4","\u03A5":"\u03C5","\u03A6":"\u03C6","\u03A7":"\u03C7","\u03A8":"\u03C8","\u03A9":"\u03C9","\u03AA":"\u03CA","\u03AB":"\u03CB","\u03C2":"\u03C3","\u03CF":"\u03D7","\u03D0":"\u03B2","\u03D1":"\u03B8","\u03D5":"\u03C6", "\u03D6":"\u03C0","\u03D8":"\u03D9","\u03DA":"\u03DB","\u03DC":"\u03DD","\u03DE":"\u03DF","\u03E0":"\u03E1","\u03E2":"\u03E3","\u03E4":"\u03E5","\u03E6":"\u03E7","\u03E8":"\u03E9","\u03EA":"\u03EB","\u03EC":"\u03ED","\u03EE":"\u03EF","\u03F0":"\u03BA","\u03F1":"\u03C1","\u03F4":"\u03B8","\u03F5":"\u03B5","\u03F7":"\u03F8","\u03F9":"\u03F2","\u03FA":"\u03FB","\u03FD":"\u037B","\u03FE":"\u037C","\u03FF":"\u037D","\u0400":"\u0450","\u0401":"\u0451","\u0402":"\u0452","\u0403":"\u0453","\u0404":"\u0454", "\u0405":"\u0455","\u0406":"\u0456","\u0407":"\u0457","\u0408":"\u0458","\u0409":"\u0459","\u040A":"\u045A","\u040B":"\u045B","\u040C":"\u045C","\u040D":"\u045D","\u040E":"\u045E","\u040F":"\u045F","\u0410":"\u0430","\u0411":"\u0431","\u0412":"\u0432","\u0413":"\u0433","\u0414":"\u0434","\u0415":"\u0435","\u0416":"\u0436","\u0417":"\u0437","\u0418":"\u0438","\u0419":"\u0439","\u041A":"\u043A","\u041B":"\u043B","\u041C":"\u043C","\u041D":"\u043D","\u041E":"\u043E","\u041F":"\u043F","\u0420":"\u0440", "\u0421":"\u0441","\u0422":"\u0442","\u0423":"\u0443","\u0424":"\u0444","\u0425":"\u0445","\u0426":"\u0446","\u0427":"\u0447","\u0428":"\u0448","\u0429":"\u0449","\u042A":"\u044A","\u042B":"\u044B","\u042C":"\u044C","\u042D":"\u044D","\u042E":"\u044E","\u042F":"\u044F","\u0460":"\u0461","\u0462":"\u0463","\u0464":"\u0465","\u0466":"\u0467","\u0468":"\u0469","\u046A":"\u046B","\u046C":"\u046D","\u046E":"\u046F","\u0470":"\u0471","\u0472":"\u0473","\u0474":"\u0475","\u0476":"\u0477","\u0478":"\u0479", "\u047A":"\u047B","\u047C":"\u047D","\u047E":"\u047F","\u0480":"\u0481","\u048A":"\u048B","\u048C":"\u048D","\u048E":"\u048F","\u0490":"\u0491","\u0492":"\u0493","\u0494":"\u0495","\u0496":"\u0497","\u0498":"\u0499","\u049A":"\u049B","\u049C":"\u049D","\u049E":"\u049F","\u04A0":"\u04A1","\u04A2":"\u04A3","\u04A4":"\u04A5","\u04A6":"\u04A7","\u04A8":"\u04A9","\u04AA":"\u04AB","\u04AC":"\u04AD","\u04AE":"\u04AF","\u04B0":"\u04B1","\u04B2":"\u04B3","\u04B4":"\u04B5","\u04B6":"\u04B7","\u04B8":"\u04B9", "\u04BA":"\u04BB","\u04BC":"\u04BD","\u04BE":"\u04BF","\u04C0":"\u04CF","\u04C1":"\u04C2","\u04C3":"\u04C4","\u04C5":"\u04C6","\u04C7":"\u04C8","\u04C9":"\u04CA","\u04CB":"\u04CC","\u04CD":"\u04CE","\u04D0":"\u04D1","\u04D2":"\u04D3","\u04D4":"\u04D5","\u04D6":"\u04D7","\u04D8":"\u04D9","\u04DA":"\u04DB","\u04DC":"\u04DD","\u04DE":"\u04DF","\u04E0":"\u04E1","\u04E2":"\u04E3","\u04E4":"\u04E5","\u04E6":"\u04E7","\u04E8":"\u04E9","\u04EA":"\u04EB","\u04EC":"\u04ED","\u04EE":"\u04EF","\u04F0":"\u04F1", "\u04F2":"\u04F3","\u04F4":"\u04F5","\u04F6":"\u04F7","\u04F8":"\u04F9","\u04FA":"\u04FB","\u04FC":"\u04FD","\u04FE":"\u04FF","\u0500":"\u0501","\u0502":"\u0503","\u0504":"\u0505","\u0506":"\u0507","\u0508":"\u0509","\u050A":"\u050B","\u050C":"\u050D","\u050E":"\u050F","\u0510":"\u0511","\u0512":"\u0513","\u0514":"\u0515","\u0516":"\u0517","\u0518":"\u0519","\u051A":"\u051B","\u051C":"\u051D","\u051E":"\u051F","\u0520":"\u0521","\u0522":"\u0523","\u0524":"\u0525","\u0526":"\u0527","\u0528":"\u0529", "\u052A":"\u052B","\u052C":"\u052D","\u052E":"\u052F","\u0531":"\u0561","\u0532":"\u0562","\u0533":"\u0563","\u0534":"\u0564","\u0535":"\u0565","\u0536":"\u0566","\u0537":"\u0567","\u0538":"\u0568","\u0539":"\u0569","\u053A":"\u056A","\u053B":"\u056B","\u053C":"\u056C","\u053D":"\u056D","\u053E":"\u056E","\u053F":"\u056F","\u0540":"\u0570","\u0541":"\u0571","\u0542":"\u0572","\u0543":"\u0573","\u0544":"\u0574","\u0545":"\u0575","\u0546":"\u0576","\u0547":"\u0577","\u0548":"\u0578","\u0549":"\u0579", "\u054A":"\u057A","\u054B":"\u057B","\u054C":"\u057C","\u054D":"\u057D","\u054E":"\u057E","\u054F":"\u057F","\u0550":"\u0580","\u0551":"\u0581","\u0552":"\u0582","\u0553":"\u0583","\u0554":"\u0584","\u0555":"\u0585","\u0556":"\u0586","\u10A0":"\u2D00","\u10A1":"\u2D01","\u10A2":"\u2D02","\u10A3":"\u2D03","\u10A4":"\u2D04","\u10A5":"\u2D05","\u10A6":"\u2D06","\u10A7":"\u2D07","\u10A8":"\u2D08","\u10A9":"\u2D09","\u10AA":"\u2D0A","\u10AB":"\u2D0B","\u10AC":"\u2D0C","\u10AD":"\u2D0D","\u10AE":"\u2D0E", "\u10AF":"\u2D0F","\u10B0":"\u2D10","\u10B1":"\u2D11","\u10B2":"\u2D12","\u10B3":"\u2D13","\u10B4":"\u2D14","\u10B5":"\u2D15","\u10B6":"\u2D16","\u10B7":"\u2D17","\u10B8":"\u2D18","\u10B9":"\u2D19","\u10BA":"\u2D1A","\u10BB":"\u2D1B","\u10BC":"\u2D1C","\u10BD":"\u2D1D","\u10BE":"\u2D1E","\u10BF":"\u2D1F","\u10C0":"\u2D20","\u10C1":"\u2D21","\u10C2":"\u2D22","\u10C3":"\u2D23","\u10C4":"\u2D24","\u10C5":"\u2D25","\u10C7":"\u2D27","\u10CD":"\u2D2D","\u1E00":"\u1E01","\u1E02":"\u1E03","\u1E04":"\u1E05", "\u1E06":"\u1E07","\u1E08":"\u1E09","\u1E0A":"\u1E0B","\u1E0C":"\u1E0D","\u1E0E":"\u1E0F","\u1E10":"\u1E11","\u1E12":"\u1E13","\u1E14":"\u1E15","\u1E16":"\u1E17","\u1E18":"\u1E19","\u1E1A":"\u1E1B","\u1E1C":"\u1E1D","\u1E1E":"\u1E1F","\u1E20":"\u1E21","\u1E22":"\u1E23","\u1E24":"\u1E25","\u1E26":"\u1E27","\u1E28":"\u1E29","\u1E2A":"\u1E2B","\u1E2C":"\u1E2D","\u1E2E":"\u1E2F","\u1E30":"\u1E31","\u1E32":"\u1E33","\u1E34":"\u1E35","\u1E36":"\u1E37","\u1E38":"\u1E39","\u1E3A":"\u1E3B","\u1E3C":"\u1E3D", "\u1E3E":"\u1E3F","\u1E40":"\u1E41","\u1E42":"\u1E43","\u1E44":"\u1E45","\u1E46":"\u1E47","\u1E48":"\u1E49","\u1E4A":"\u1E4B","\u1E4C":"\u1E4D","\u1E4E":"\u1E4F","\u1E50":"\u1E51","\u1E52":"\u1E53","\u1E54":"\u1E55","\u1E56":"\u1E57","\u1E58":"\u1E59","\u1E5A":"\u1E5B","\u1E5C":"\u1E5D","\u1E5E":"\u1E5F","\u1E60":"\u1E61","\u1E62":"\u1E63","\u1E64":"\u1E65","\u1E66":"\u1E67","\u1E68":"\u1E69","\u1E6A":"\u1E6B","\u1E6C":"\u1E6D","\u1E6E":"\u1E6F","\u1E70":"\u1E71","\u1E72":"\u1E73","\u1E74":"\u1E75", "\u1E76":"\u1E77","\u1E78":"\u1E79","\u1E7A":"\u1E7B","\u1E7C":"\u1E7D","\u1E7E":"\u1E7F","\u1E80":"\u1E81","\u1E82":"\u1E83","\u1E84":"\u1E85","\u1E86":"\u1E87","\u1E88":"\u1E89","\u1E8A":"\u1E8B","\u1E8C":"\u1E8D","\u1E8E":"\u1E8F","\u1E90":"\u1E91","\u1E92":"\u1E93","\u1E94":"\u1E95","\u1E9B":"\u1E61","\u1EA0":"\u1EA1","\u1EA2":"\u1EA3","\u1EA4":"\u1EA5","\u1EA6":"\u1EA7","\u1EA8":"\u1EA9","\u1EAA":"\u1EAB","\u1EAC":"\u1EAD","\u1EAE":"\u1EAF","\u1EB0":"\u1EB1","\u1EB2":"\u1EB3","\u1EB4":"\u1EB5", "\u1EB6":"\u1EB7","\u1EB8":"\u1EB9","\u1EBA":"\u1EBB","\u1EBC":"\u1EBD","\u1EBE":"\u1EBF","\u1EC0":"\u1EC1","\u1EC2":"\u1EC3","\u1EC4":"\u1EC5","\u1EC6":"\u1EC7","\u1EC8":"\u1EC9","\u1ECA":"\u1ECB","\u1ECC":"\u1ECD","\u1ECE":"\u1ECF","\u1ED0":"\u1ED1","\u1ED2":"\u1ED3","\u1ED4":"\u1ED5","\u1ED6":"\u1ED7","\u1ED8":"\u1ED9","\u1EDA":"\u1EDB","\u1EDC":"\u1EDD","\u1EDE":"\u1EDF","\u1EE0":"\u1EE1","\u1EE2":"\u1EE3","\u1EE4":"\u1EE5","\u1EE6":"\u1EE7","\u1EE8":"\u1EE9","\u1EEA":"\u1EEB","\u1EEC":"\u1EED", "\u1EEE":"\u1EEF","\u1EF0":"\u1EF1","\u1EF2":"\u1EF3","\u1EF4":"\u1EF5","\u1EF6":"\u1EF7","\u1EF8":"\u1EF9","\u1EFA":"\u1EFB","\u1EFC":"\u1EFD","\u1EFE":"\u1EFF","\u1F08":"\u1F00","\u1F09":"\u1F01","\u1F0A":"\u1F02","\u1F0B":"\u1F03","\u1F0C":"\u1F04","\u1F0D":"\u1F05","\u1F0E":"\u1F06","\u1F0F":"\u1F07","\u1F18":"\u1F10","\u1F19":"\u1F11","\u1F1A":"\u1F12","\u1F1B":"\u1F13","\u1F1C":"\u1F14","\u1F1D":"\u1F15","\u1F28":"\u1F20","\u1F29":"\u1F21","\u1F2A":"\u1F22","\u1F2B":"\u1F23","\u1F2C":"\u1F24", "\u1F2D":"\u1F25","\u1F2E":"\u1F26","\u1F2F":"\u1F27","\u1F38":"\u1F30","\u1F39":"\u1F31","\u1F3A":"\u1F32","\u1F3B":"\u1F33","\u1F3C":"\u1F34","\u1F3D":"\u1F35","\u1F3E":"\u1F36","\u1F3F":"\u1F37","\u1F48":"\u1F40","\u1F49":"\u1F41","\u1F4A":"\u1F42","\u1F4B":"\u1F43","\u1F4C":"\u1F44","\u1F4D":"\u1F45","\u1F59":"\u1F51","\u1F5B":"\u1F53","\u1F5D":"\u1F55","\u1F5F":"\u1F57","\u1F68":"\u1F60","\u1F69":"\u1F61","\u1F6A":"\u1F62","\u1F6B":"\u1F63","\u1F6C":"\u1F64","\u1F6D":"\u1F65","\u1F6E":"\u1F66", "\u1F6F":"\u1F67","\u1FB8":"\u1FB0","\u1FB9":"\u1FB1","\u1FBA":"\u1F70","\u1FBB":"\u1F71","\u1FBE":"\u03B9","\u1FC8":"\u1F72","\u1FC9":"\u1F73","\u1FCA":"\u1F74","\u1FCB":"\u1F75","\u1FD8":"\u1FD0","\u1FD9":"\u1FD1","\u1FDA":"\u1F76","\u1FDB":"\u1F77","\u1FE8":"\u1FE0","\u1FE9":"\u1FE1","\u1FEA":"\u1F7A","\u1FEB":"\u1F7B","\u1FEC":"\u1FE5","\u1FF8":"\u1F78","\u1FF9":"\u1F79","\u1FFA":"\u1F7C","\u1FFB":"\u1F7D","\u2126":"\u03C9","\u212A":"k","\u212B":"\xE5","\u2132":"\u214E","\u2160":"\u2170","\u2161":"\u2171", "\u2162":"\u2172","\u2163":"\u2173","\u2164":"\u2174","\u2165":"\u2175","\u2166":"\u2176","\u2167":"\u2177","\u2168":"\u2178","\u2169":"\u2179","\u216A":"\u217A","\u216B":"\u217B","\u216C":"\u217C","\u216D":"\u217D","\u216E":"\u217E","\u216F":"\u217F","\u2183":"\u2184","\u24B6":"\u24D0","\u24B7":"\u24D1","\u24B8":"\u24D2","\u24B9":"\u24D3","\u24BA":"\u24D4","\u24BB":"\u24D5","\u24BC":"\u24D6","\u24BD":"\u24D7","\u24BE":"\u24D8","\u24BF":"\u24D9","\u24C0":"\u24DA","\u24C1":"\u24DB","\u24C2":"\u24DC", "\u24C3":"\u24DD","\u24C4":"\u24DE","\u24C5":"\u24DF","\u24C6":"\u24E0","\u24C7":"\u24E1","\u24C8":"\u24E2","\u24C9":"\u24E3","\u24CA":"\u24E4","\u24CB":"\u24E5","\u24CC":"\u24E6","\u24CD":"\u24E7","\u24CE":"\u24E8","\u24CF":"\u24E9","\u2C00":"\u2C30","\u2C01":"\u2C31","\u2C02":"\u2C32","\u2C03":"\u2C33","\u2C04":"\u2C34","\u2C05":"\u2C35","\u2C06":"\u2C36","\u2C07":"\u2C37","\u2C08":"\u2C38","\u2C09":"\u2C39","\u2C0A":"\u2C3A","\u2C0B":"\u2C3B","\u2C0C":"\u2C3C","\u2C0D":"\u2C3D","\u2C0E":"\u2C3E", "\u2C0F":"\u2C3F","\u2C10":"\u2C40","\u2C11":"\u2C41","\u2C12":"\u2C42","\u2C13":"\u2C43","\u2C14":"\u2C44","\u2C15":"\u2C45","\u2C16":"\u2C46","\u2C17":"\u2C47","\u2C18":"\u2C48","\u2C19":"\u2C49","\u2C1A":"\u2C4A","\u2C1B":"\u2C4B","\u2C1C":"\u2C4C","\u2C1D":"\u2C4D","\u2C1E":"\u2C4E","\u2C1F":"\u2C4F","\u2C20":"\u2C50","\u2C21":"\u2C51","\u2C22":"\u2C52","\u2C23":"\u2C53","\u2C24":"\u2C54","\u2C25":"\u2C55","\u2C26":"\u2C56","\u2C27":"\u2C57","\u2C28":"\u2C58","\u2C29":"\u2C59","\u2C2A":"\u2C5A", "\u2C2B":"\u2C5B","\u2C2C":"\u2C5C","\u2C2D":"\u2C5D","\u2C2E":"\u2C5E","\u2C60":"\u2C61","\u2C62":"\u026B","\u2C63":"\u1D7D","\u2C64":"\u027D","\u2C67":"\u2C68","\u2C69":"\u2C6A","\u2C6B":"\u2C6C","\u2C6D":"\u0251","\u2C6E":"\u0271","\u2C6F":"\u0250","\u2C70":"\u0252","\u2C72":"\u2C73","\u2C75":"\u2C76","\u2C7E":"\u023F","\u2C7F":"\u0240","\u2C80":"\u2C81","\u2C82":"\u2C83","\u2C84":"\u2C85","\u2C86":"\u2C87","\u2C88":"\u2C89","\u2C8A":"\u2C8B","\u2C8C":"\u2C8D","\u2C8E":"\u2C8F","\u2C90":"\u2C91", "\u2C92":"\u2C93","\u2C94":"\u2C95","\u2C96":"\u2C97","\u2C98":"\u2C99","\u2C9A":"\u2C9B","\u2C9C":"\u2C9D","\u2C9E":"\u2C9F","\u2CA0":"\u2CA1","\u2CA2":"\u2CA3","\u2CA4":"\u2CA5","\u2CA6":"\u2CA7","\u2CA8":"\u2CA9","\u2CAA":"\u2CAB","\u2CAC":"\u2CAD","\u2CAE":"\u2CAF","\u2CB0":"\u2CB1","\u2CB2":"\u2CB3","\u2CB4":"\u2CB5","\u2CB6":"\u2CB7","\u2CB8":"\u2CB9","\u2CBA":"\u2CBB","\u2CBC":"\u2CBD","\u2CBE":"\u2CBF","\u2CC0":"\u2CC1","\u2CC2":"\u2CC3","\u2CC4":"\u2CC5","\u2CC6":"\u2CC7","\u2CC8":"\u2CC9", "\u2CCA":"\u2CCB","\u2CCC":"\u2CCD","\u2CCE":"\u2CCF","\u2CD0":"\u2CD1","\u2CD2":"\u2CD3","\u2CD4":"\u2CD5","\u2CD6":"\u2CD7","\u2CD8":"\u2CD9","\u2CDA":"\u2CDB","\u2CDC":"\u2CDD","\u2CDE":"\u2CDF","\u2CE0":"\u2CE1","\u2CE2":"\u2CE3","\u2CEB":"\u2CEC","\u2CED":"\u2CEE","\u2CF2":"\u2CF3","\uA640":"\uA641","\uA642":"\uA643","\uA644":"\uA645","\uA646":"\uA647","\uA648":"\uA649","\uA64A":"\uA64B","\uA64C":"\uA64D","\uA64E":"\uA64F","\uA650":"\uA651","\uA652":"\uA653","\uA654":"\uA655","\uA656":"\uA657", "\uA658":"\uA659","\uA65A":"\uA65B","\uA65C":"\uA65D","\uA65E":"\uA65F","\uA660":"\uA661","\uA662":"\uA663","\uA664":"\uA665","\uA666":"\uA667","\uA668":"\uA669","\uA66A":"\uA66B","\uA66C":"\uA66D","\uA680":"\uA681","\uA682":"\uA683","\uA684":"\uA685","\uA686":"\uA687","\uA688":"\uA689","\uA68A":"\uA68B","\uA68C":"\uA68D","\uA68E":"\uA68F","\uA690":"\uA691","\uA692":"\uA693","\uA694":"\uA695","\uA696":"\uA697","\uA698":"\uA699","\uA69A":"\uA69B","\uA722":"\uA723","\uA724":"\uA725","\uA726":"\uA727", "\uA728":"\uA729","\uA72A":"\uA72B","\uA72C":"\uA72D","\uA72E":"\uA72F","\uA732":"\uA733","\uA734":"\uA735","\uA736":"\uA737","\uA738":"\uA739","\uA73A":"\uA73B","\uA73C":"\uA73D","\uA73E":"\uA73F","\uA740":"\uA741","\uA742":"\uA743","\uA744":"\uA745","\uA746":"\uA747","\uA748":"\uA749","\uA74A":"\uA74B","\uA74C":"\uA74D","\uA74E":"\uA74F","\uA750":"\uA751","\uA752":"\uA753","\uA754":"\uA755","\uA756":"\uA757","\uA758":"\uA759","\uA75A":"\uA75B","\uA75C":"\uA75D","\uA75E":"\uA75F","\uA760":"\uA761", "\uA762":"\uA763","\uA764":"\uA765","\uA766":"\uA767","\uA768":"\uA769","\uA76A":"\uA76B","\uA76C":"\uA76D","\uA76E":"\uA76F","\uA779":"\uA77A","\uA77B":"\uA77C","\uA77D":"\u1D79","\uA77E":"\uA77F","\uA780":"\uA781","\uA782":"\uA783","\uA784":"\uA785","\uA786":"\uA787","\uA78B":"\uA78C","\uA78D":"\u0265","\uA790":"\uA791","\uA792":"\uA793","\uA796":"\uA797","\uA798":"\uA799","\uA79A":"\uA79B","\uA79C":"\uA79D","\uA79E":"\uA79F","\uA7A0":"\uA7A1","\uA7A2":"\uA7A3","\uA7A4":"\uA7A5","\uA7A6":"\uA7A7", "\uA7A8":"\uA7A9","\uA7AA":"\u0266","\uA7AB":"\u025C","\uA7AC":"\u0261","\uA7AD":"\u026C","\uA7B0":"\u029E","\uA7B1":"\u0287","\uFF21":"\uFF41","\uFF22":"\uFF42","\uFF23":"\uFF43","\uFF24":"\uFF44","\uFF25":"\uFF45","\uFF26":"\uFF46","\uFF27":"\uFF47","\uFF28":"\uFF48","\uFF29":"\uFF49","\uFF2A":"\uFF4A","\uFF2B":"\uFF4B","\uFF2C":"\uFF4C","\uFF2D":"\uFF4D","\uFF2E":"\uFF4E","\uFF2F":"\uFF4F","\uFF30":"\uFF50","\uFF31":"\uFF51","\uFF32":"\uFF52","\uFF33":"\uFF53","\uFF34":"\uFF54","\uFF35":"\uFF55", "\uFF36":"\uFF56","\uFF37":"\uFF57","\uFF38":"\uFF58","\uFF39":"\uFF59","\uFF3A":"\uFF5A","\uD801\uDC00":"\uD801\uDC28","\uD801\uDC01":"\uD801\uDC29","\uD801\uDC02":"\uD801\uDC2A","\uD801\uDC03":"\uD801\uDC2B","\uD801\uDC04":"\uD801\uDC2C","\uD801\uDC05":"\uD801\uDC2D","\uD801\uDC06":"\uD801\uDC2E","\uD801\uDC07":"\uD801\uDC2F","\uD801\uDC08":"\uD801\uDC30","\uD801\uDC09":"\uD801\uDC31","\uD801\uDC0A":"\uD801\uDC32","\uD801\uDC0B":"\uD801\uDC33","\uD801\uDC0C":"\uD801\uDC34","\uD801\uDC0D":"\uD801\uDC35", "\uD801\uDC0E":"\uD801\uDC36","\uD801\uDC0F":"\uD801\uDC37","\uD801\uDC10":"\uD801\uDC38","\uD801\uDC11":"\uD801\uDC39","\uD801\uDC12":"\uD801\uDC3A","\uD801\uDC13":"\uD801\uDC3B","\uD801\uDC14":"\uD801\uDC3C","\uD801\uDC15":"\uD801\uDC3D","\uD801\uDC16":"\uD801\uDC3E","\uD801\uDC17":"\uD801\uDC3F","\uD801\uDC18":"\uD801\uDC40","\uD801\uDC19":"\uD801\uDC41","\uD801\uDC1A":"\uD801\uDC42","\uD801\uDC1B":"\uD801\uDC43","\uD801\uDC1C":"\uD801\uDC44","\uD801\uDC1D":"\uD801\uDC45","\uD801\uDC1E":"\uD801\uDC46", "\uD801\uDC1F":"\uD801\uDC47","\uD801\uDC20":"\uD801\uDC48","\uD801\uDC21":"\uD801\uDC49","\uD801\uDC22":"\uD801\uDC4A","\uD801\uDC23":"\uD801\uDC4B","\uD801\uDC24":"\uD801\uDC4C","\uD801\uDC25":"\uD801\uDC4D","\uD801\uDC26":"\uD801\uDC4E","\uD801\uDC27":"\uD801\uDC4F","\uD806\uDCA0":"\uD806\uDCC0","\uD806\uDCA1":"\uD806\uDCC1","\uD806\uDCA2":"\uD806\uDCC2","\uD806\uDCA3":"\uD806\uDCC3","\uD806\uDCA4":"\uD806\uDCC4","\uD806\uDCA5":"\uD806\uDCC5","\uD806\uDCA6":"\uD806\uDCC6","\uD806\uDCA7":"\uD806\uDCC7", "\uD806\uDCA8":"\uD806\uDCC8","\uD806\uDCA9":"\uD806\uDCC9","\uD806\uDCAA":"\uD806\uDCCA","\uD806\uDCAB":"\uD806\uDCCB","\uD806\uDCAC":"\uD806\uDCCC","\uD806\uDCAD":"\uD806\uDCCD","\uD806\uDCAE":"\uD806\uDCCE","\uD806\uDCAF":"\uD806\uDCCF","\uD806\uDCB0":"\uD806\uDCD0","\uD806\uDCB1":"\uD806\uDCD1","\uD806\uDCB2":"\uD806\uDCD2","\uD806\uDCB3":"\uD806\uDCD3","\uD806\uDCB4":"\uD806\uDCD4","\uD806\uDCB5":"\uD806\uDCD5","\uD806\uDCB6":"\uD806\uDCD6","\uD806\uDCB7":"\uD806\uDCD7","\uD806\uDCB8":"\uD806\uDCD8", "\uD806\uDCB9":"\uD806\uDCD9","\uD806\uDCBA":"\uD806\uDCDA","\uD806\uDCBB":"\uD806\uDCDB","\uD806\uDCBC":"\uD806\uDCDC","\uD806\uDCBD":"\uD806\uDCDD","\uD806\uDCBE":"\uD806\uDCDE","\uD806\uDCBF":"\uD806\uDCDF","\xDF":"ss","\u0130":"i\u0307","\u0149":"\u02BCn","\u01F0":"j\u030C","\u0390":"\u03B9\u0308\u0301","\u03B0":"\u03C5\u0308\u0301","\u0587":"\u0565\u0582","\u1E96":"h\u0331","\u1E97":"t\u0308","\u1E98":"w\u030A","\u1E99":"y\u030A","\u1E9A":"a\u02BE","\u1E9E":"ss","\u1F50":"\u03C5\u0313","\u1F52":"\u03C5\u0313\u0300", "\u1F54":"\u03C5\u0313\u0301","\u1F56":"\u03C5\u0313\u0342","\u1F80":"\u1F00\u03B9","\u1F81":"\u1F01\u03B9","\u1F82":"\u1F02\u03B9","\u1F83":"\u1F03\u03B9","\u1F84":"\u1F04\u03B9","\u1F85":"\u1F05\u03B9","\u1F86":"\u1F06\u03B9","\u1F87":"\u1F07\u03B9","\u1F88":"\u1F00\u03B9","\u1F89":"\u1F01\u03B9","\u1F8A":"\u1F02\u03B9","\u1F8B":"\u1F03\u03B9","\u1F8C":"\u1F04\u03B9","\u1F8D":"\u1F05\u03B9","\u1F8E":"\u1F06\u03B9","\u1F8F":"\u1F07\u03B9","\u1F90":"\u1F20\u03B9","\u1F91":"\u1F21\u03B9","\u1F92":"\u1F22\u03B9", "\u1F93":"\u1F23\u03B9","\u1F94":"\u1F24\u03B9","\u1F95":"\u1F25\u03B9","\u1F96":"\u1F26\u03B9","\u1F97":"\u1F27\u03B9","\u1F98":"\u1F20\u03B9","\u1F99":"\u1F21\u03B9","\u1F9A":"\u1F22\u03B9","\u1F9B":"\u1F23\u03B9","\u1F9C":"\u1F24\u03B9","\u1F9D":"\u1F25\u03B9","\u1F9E":"\u1F26\u03B9","\u1F9F":"\u1F27\u03B9","\u1FA0":"\u1F60\u03B9","\u1FA1":"\u1F61\u03B9","\u1FA2":"\u1F62\u03B9","\u1FA3":"\u1F63\u03B9","\u1FA4":"\u1F64\u03B9","\u1FA5":"\u1F65\u03B9","\u1FA6":"\u1F66\u03B9","\u1FA7":"\u1F67\u03B9", "\u1FA8":"\u1F60\u03B9","\u1FA9":"\u1F61\u03B9","\u1FAA":"\u1F62\u03B9","\u1FAB":"\u1F63\u03B9","\u1FAC":"\u1F64\u03B9","\u1FAD":"\u1F65\u03B9","\u1FAE":"\u1F66\u03B9","\u1FAF":"\u1F67\u03B9","\u1FB2":"\u1F70\u03B9","\u1FB3":"\u03B1\u03B9","\u1FB4":"\u03AC\u03B9","\u1FB6":"\u03B1\u0342","\u1FB7":"\u03B1\u0342\u03B9","\u1FBC":"\u03B1\u03B9","\u1FC2":"\u1F74\u03B9","\u1FC3":"\u03B7\u03B9","\u1FC4":"\u03AE\u03B9","\u1FC6":"\u03B7\u0342","\u1FC7":"\u03B7\u0342\u03B9","\u1FCC":"\u03B7\u03B9","\u1FD2":"\u03B9\u0308\u0300", "\u1FD3":"\u03B9\u0308\u0301","\u1FD6":"\u03B9\u0342","\u1FD7":"\u03B9\u0308\u0342","\u1FE2":"\u03C5\u0308\u0300","\u1FE3":"\u03C5\u0308\u0301","\u1FE4":"\u03C1\u0313","\u1FE6":"\u03C5\u0342","\u1FE7":"\u03C5\u0308\u0342","\u1FF2":"\u1F7C\u03B9","\u1FF3":"\u03C9\u03B9","\u1FF4":"\u03CE\u03B9","\u1FF6":"\u03C9\u0342","\u1FF7":"\u03C9\u0342\u03B9","\u1FFC":"\u03C9\u03B9","\uFB00":"ff","\uFB01":"fi","\uFB02":"fl","\uFB03":"ffi","\uFB04":"ffl","\uFB05":"st","\uFB06":"st","\uFB13":"\u0574\u0576","\uFB14":"\u0574\u0565", "\uFB15":"\u0574\u056B","\uFB16":"\u057E\u0576","\uFB17":"\u0574\u056D"};function Sfb(a){return a.slice(1,a.length-1).trim().replace(Qfb,function(b){return Rfb[b]||" "})} ;var Tfb=new RegExp(/[!-#%-\*,-/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/), Ufb=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),Vfb=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),Wfb=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),Xfb=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),Yfb=/`+/,Zfb=/^`+/,$fb=/\.\.\./g,agb=/--+/g,bgb=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/, cgb=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,dgb=/^ *(?:\n *)?/,egb=/^[ \t\n\x0b\x0c\x0d]/,fgb=/[ \t\n\x0b\x0c\x0d]+/g,ggb=/^\s/,igb=/ *$/,jgb=/^ */,kgb=/^ *(?:\n|$)/,lgb=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),mgb=/^[^\n`\[\]\\!<&*_'"]+/m,rI=function(a){var b=new pI("text");b._literal=a;return b},sI=function(a){this.subject=""; this.brackets=this.JSC$10369_delimiters=null;this.pos=0;this.refmap={};this.options=a||{}}; sI.prototype.match=function(a){a=a.exec(this.subject.slice(this.pos));if(a===null)return null;this.pos+=a.index+a[0].length;return a[0]}; sI.prototype.peek=function(){return this.pos=2&&m.numdelims>=2?2:1;var t=m.node;var u=c.node;m.numdelims-=q;c.numdelims-=q;t._literal=t._literal.slice(0,t._literal.length-q);u._literal= u._literal.slice(0,u._literal.length-q);var v=new pI(q===1?"emph":"strong");for(q=t._next;q&&q!==u;){var w=q._next;qI(q);v.appendChild(q);q=w}Pfb(t,v);q=m;w=c;q.next!==w&&(q.next=w,w.previous=q);m.numdelims===0&&(qI(t),ogb(a,m));c.numdelims===0&&(qI(u),m=c.next,ogb(a,c),c=m)}else c=c.next;}else h===39?(c.node._literal="\u2019",d&&(m.node._literal="\u2018"),c=c.next):h===34&&(c.node._literal="\u201D",d&&(m.node.literal="\u201C"),c=c.next);d||f||(e[h]=p.previous,p.can_open||ogb(a,p))}else c=c.next}for(;a.JSC$10369_delimiters!== null&&a.JSC$10369_delimiters!==b;)ogb(a,a.JSC$10369_delimiters)},qgb=function(a){a=a.match(Ufb); return a===null?null:Jfb(a.substr(1,a.length-2))},rgb=function(a){var b=a.match(Vfb); if(b===null){b=a.pos;for(var c=0,d;(d=a.peek())!==-1;)if(d===92)a.pos+=1,a.peek()!==-1&&(a.pos+=1);else if(d===40)a.pos+=1,c+=1;else if(d===41){if(c<1)break;else a.pos+=1,--c;}else if(egb.exec(oI(d))!==null)break;else a.pos+=1;b=a.subject.substr(b,a.pos-b);return Kfb(Jfb(b))}return Kfb(Jfb(b.substr(1,b.length-2)))},sgb=function(a){a=a.match(lgb); return a===null||a.length>1001?0:a.length},tgb=function(a,b,c,d){a.brackets!==null&&(a.brackets.bracketAfter=!0); a.brackets={node:b,previous:a.brackets,previousDelimiter:a.JSC$10369_delimiters,index:c,image:d,active:!0}},ugb=function(a,b){var c; return(c=a.match(mgb))?(a.options.smart?b.appendChild(rI(c.replace($fb,"\u2026").replace(agb,function(d){var e=0,f=0;d.length%3===0?f=d.length/3:d.length%2===0?e=d.length/2:d.length%3===2?(e=1,f=(d.length-2)/3):(e=2,f=(d.length-4)/3);d="";var h;for(h=0;h2?p=a.subject.slice(u,u+v):e.bracketAfter||(p=a.subject.slice(e.index,q));v===0&&(a.pos=t);p&&(p=a.refmap[Sfb(p)])&&(f=p.destination,h= p.title,m=!0)}if(m){q=new pI(c?"image":"link");q._destination=f;q._title=h||"";for(f=e.node._next;f;)h=f._next,qI(f),q.appendChild(f),f=h;b.appendChild(q);pgb(a,e.previousDelimiter);a.brackets=a.brackets.previous;qI(e.node);if(!c)for(e=a.brackets;e!==null;)e.image||(e.active=!1),e=e.previous}else a.brackets=a.brackets.previous,a.pos=q,b.appendChild(rI("]"))}else b.appendChild(rI("]")),a.brackets=a.brackets.previous;c=!0;break;case 60:(c=a.match(bgb))?(c=c.slice(1,c.length-1),e=new pI("link"),e._destination= Kfb("mailto:"+c),e._title="",e.appendChild(rI(c)),b.appendChild(e),c=!0):(c=a.match(cgb))?(c=c.slice(1,c.length-1),e=new pI("link"),e._destination=Kfb(c),e._title="",e.appendChild(rI(c)),b.appendChild(e),c=!0):c=!1;c||(c=a.match(Dfb),c===null?c=!1:(e=new pI("html_inline"),e._literal=c,b.appendChild(e),c=!0));break;case 38:(c=a.match(Xfb))?(b.appendChild(rI(Bfb(c))),c=!0):c=!1;break;default:c=ugb(a,b);}c||(a.pos+=1,b.appendChild(rI(oI(d))));return!0}; sI.prototype.parseInlines=function(a){this.subject=a._string_content.trim();this.pos=0;for(this.brackets=this.JSC$10369_delimiters=null;wgb(this,a););a._string_content=null;pgb(this,null)}; sI.prototype.parse=sI.prototype.parseInlines;var xgb=[/./,/^<(?:script|pre|style)(?:\s|>|$)/i,/^\x3c!--/,/^<[?]/,/^]|$)/i,RegExp("^(?:<[A-Za-z][A-Za-z0-9-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*/?>|])\\s*$", "i")],ygb=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],zgb=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,Agb=/^[#`~*+_=<>0-9-\|]|\|/,Bgb=/[^ \t\f\v\r\n]/,Cgb=/^[*+-]/,Dgb=/^(\d{1,9})([.)])/,Egb=/^#{1,6}(?:[ \t]+|$)/,Fgb=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,Ggb=/^(?:`{3,}|~{3,})(?= *$)/,Hgb=/^(?:=+|-+)[ \t]*$/,Igb=/\r\n|\n|\r/,Jgb=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,Kgb=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/; function uI(a){return a===32||a===9} function vI(a,b){return b=b._listData.markerOffset+b._listData.padding)yI(a,b._listData.markerOffset+b._listData.padding,!0);else return 1;return 0}, finalize:function(){}, canContain:function(a){return a!=="item"&&!Mgb(a)}, acceptsLines:!1},heading:{continue:function(){return 1}, finalize:function(){}, canContain:function(){return!1}, acceptsLines:!1},thematic_break:{continue:function(){return 1}, finalize:function(){}, canContain:function(){return!1}, acceptsLines:!1},code_block:{continue:function(a,b){var c=a.currentLine,d=a.indent;if(b._isFenced){if((d=d<=3&&c.charAt(a.nextNonspace)===b._fenceChar&&c.slice(a.nextNonspace).match(Ggb))&&d[0].length>=b._fenceLength)return a.finalize(b,a.lineNumber),2;for(b=b._fenceOffset;b>0&&uI(vI(c,a.offset));)yI(a,1,!0),b--}else if(d>=4)yI(a,4,!0);else if(a.blank)xI(a);else return 1;return 0}, finalize:function(a,b){if(b._isFenced){var c=b._string_content,d=c.indexOf("\n");a=c.slice(0,d);c=c.slice(d+1);b.info=Jfb(a.trim());b._literal=c}else b._literal=b._string_content.replace(/(\n *)+$/,"\n");b._string_content=null}, canContain:function(){return!1}, acceptsLines:!0},html_block:{continue:function(a,b){return!a.blank||b._htmlBlockType!==6&&b._htmlBlockType!==7?0:1}, finalize:function(a,b){b._literal=b._string_content.replace(/(\n *)+$/,"");b._string_content=null}, canContain:function(){return!1}, acceptsLines:!0},paragraph:{continue:function(a){return a.blank?1:0}, finalize:function(a,b){for(var c,d=!1;vI(b._string_content,0)===91&&(c=vgb(a.inlineParser,b._string_content,a.refmap));)b._string_content=b._string_content.slice(c),d=!0;d&&!Bgb.test(b._string_content)&&qI(b)}, canContain:function(){return!1}, acceptsLines:!0},table:{continue:function(a){return wI(a.currentLine)!==0?0:1}, finalize:function(){}, canContain:function(a){return a=="row"}, acceptsLines:!1},row:{continue:function(){return 1}, finalize:function(a,b){if(!b._rowIsDelimiter){a=b._isHeader?"th":"td";for(var c=b._parent._tableColumns,d=b._string_content,e=0,f="",h,m=b._sourcepos[0][0];e=0&&(h._alignment=p[q]);b.appendChild(h)}f+=d[e];h._sourcepos[1][1]=e;}e++}h&&(h._string_content=f.trim());b._string_content= ""}}, canContain:function(a){return a!=="row"}, acceptsLines:!1}},Ogb=[function(a){if(a.indented||vI(a.currentLine,a.nextNonspace)!==62)return 0;xI(a);yI(a,1,!1);uI(vI(a.currentLine,a.offset))&&yI(a,1,!0);zI(a);AI(a,"block_quote",a.nextNonspace);return 1}, function(a){var b;if(!a.indented&&(b=a.currentLine.slice(a.nextNonspace).match(Egb))){xI(a);yI(a,b[0].length,!1);zI(a);var c=AI(a,"heading",a.nextNonspace);c.level=b[0].trim().length;c._string_content=a.currentLine.slice(a.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");yI(a,a.currentLine.length-a.offset);return 2}return 0}, function(a){var b;if(!a.indented&&(b=a.currentLine.slice(a.nextNonspace).match(Fgb))){var c=b[0].length;zI(a);var d=AI(a,"code_block",a.nextNonspace);d._isFenced=!0;d._fenceLength=c;d._fenceChar=b[0][0];d._fenceOffset=a.indent;xI(a);yI(a,c,!1);return 2}return 0}, function(a,b){if(!a.indented&&vI(a.currentLine,a.nextNonspace)===60){var c=a.currentLine.slice(a.nextNonspace),d;for(d=1;d<=7;d++)if(xgb[d].test(c)&&(d<7||b.type!=="paragraph"))return zI(a),AI(a,"html_block",a.offset)._htmlBlockType=d,2}return 0}, function(a,b){var c;if(!a.indented&&b.type==="paragraph"&&(c=a.currentLine.slice(a.nextNonspace).match(Hgb))){zI(a);var d=new pI("heading",b.sourcepos);d.level=c[0][0]==="="?1:2;d._string_content=b._string_content;Pfb(b,d);qI(b);a.tip=d;yI(a,a.currentLine.length-a.offset,!1);return 2}return 0}, function(a){return!a.indented&&zgb.test(a.currentLine.slice(a.nextNonspace))?(zI(a),AI(a,"thematic_break",a.nextNonspace),yI(a,a.currentLine.length-a.offset,!1),2):0}, function(a,b){var c,d;if(!(d=a.indented&&b.type!=="list")){a:{var e=b,f=a.currentLine.slice(a.nextNonspace);d={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:a.indent};if(c=f.match(Cgb))d.type="bullet",d.bulletChar=c[0][0];else{if(!(c=f.match(Dgb))||e.type==="paragraph"&&c[1]!=="1"){c=null;break a}d.type="ordered";d.start=parseInt(c[1],10);d.delimiter=c[2]}var h=vI(a.currentLine,a.nextNonspace+c[0].length);if(h!==-1&&h!==9&&h!==32||e.type==="paragraph"&&!a.currentLine.slice(a.nextNonspace+ c[0].length).match(Bgb))c=null;else{xI(a);yI(a,c[0].length,!0);e=a.column;f=a.offset;do yI(a,1,!0),h=vI(a.currentLine,a.offset);while(a.column-e<5&&uI(h));h=vI(a.currentLine,a.offset)===-1;var m=a.column-e;m>=5||m<1||h?(d.padding=c[0].length+1,a.column=e,a.offset=f,uI(vI(a.currentLine,a.offset))&&yI(a,1,!0)):d.padding=c[0].length+m;c=d}}d=!c}if(d)return 0;zI(a);(d=a.tip.type!=="list")||(b=b._listData,d=!(b.type===c.type&&b.delimiter===c.delimiter&&b.bulletChar===c.bulletChar));d&&(b=AI(a,"list",a.nextNonspace), b._listData=c);b=AI(a,"item",a.nextNonspace);b._listData=c;return 1}, function(a){var b;return((b=a.options.shouldParseIndentAsCodeBlock)!=null?b:1)&&a.indented&&a.tip.type!=="paragraph"&&!a.blank?(yI(a,4,!0),zI(a),AI(a,"code_block",a.offset),2):0}, function(a,b){var c=wI(a.currentLine),d=wI(a.lookahead);if(c!==0&&d<0&&Math.abs(c)==Math.abs(d)&&!Mgb(b.type)){zI(a);b=AI(a,"table",a.nextNonspace);b._tableRows=1;b._tableColumns=Math.abs(c);c=a.lookahead;if(Kgb.test(c)){d=[];for(var e=0,f=!1,h=0,m=void 0;e=3;switch(c[e]){case"-":h++;break;case"|":f&&(d.push(m),m=void 0,h=0);f=!0;break;case":":m||p||(m="left"),!m&&p&&(m="right"),m==="left"&&p&&(m="center");}e++}c=d}else c=void 0;b._columnAlignment=c;b=AI(a,"row",a.nextNonspace); b._isHeader=!0;yI(a,a.currentLine.length-a.offset,!1);b._string_content=a.currentLine;return 1}return 0}, function(a,b){if(b.type=="table"&&wI(a.currentLine)!==0){zI(a);var c=b;b=AI(a,"row",a.nextNonspace);wI(a.currentLine)<0?b._rowIsDelimiter=!0:c._tableRows+=1;yI(a,a.currentLine.length-a.offset,!1);b._string_content=a.currentLine;return 2}return 0}]; function Mgb(a){return a=="table"||a=="row"||a=="cell"} function Pgb(){return new pI("document",[[1,1],[0,0]])} var Qgb=function(){var a={shouldParseIndentAsCodeBlock:!1};a=a===void 0?{}:a;this.lastMatchedContainer=this.doc=Pgb();this.refmap={};this.lastLineLength=0;this.inlineParser=new sI(a);this.options=a;this.oldtip=this.tip=this.doc;this.lookahead=this.currentLine="";this.indent=this.nextNonspaceColumn=this.nextNonspace=this.column=this.offset=this.lineNumber=0;this.partiallyConsumedTab=this.blank=this.indented=!1;this.allClosed=!0;this.blocks=Ngb;this.blockStarts=Ogb},Rgb=function(a){a.partiallyConsumedTab&&( a.offset+=1,a.tip._string_content+=" ".repeat(4-a.column%4)); a.tip._string_content+=a.currentLine.slice(a.offset)+"\n"},AI=function(a,b,c){for(;!a.blocks[a.tip.type].canContain(b);)a.finalize(a.tip,a.lineNumber-1); b=new pI(b,[[a.lineNumber,c+1],[0,0]]);b._string_content="";a.tip.appendChild(b);return a.tip=b},zI=function(a){if(!a.allClosed){for(;a.oldtip!==a.lastMatchedContainer;){var b=a.oldtip._parent; a.finalize(a.oldtip,a.lineNumber-1);a.oldtip=b}a.allClosed=!0}},yI=function(a,b,c){for(var d=a.currentLine,e,f;b>0&&(f=d[a.offset]);)f==="\t"?(e=4-a.column%4,c?(a.partiallyConsumedTab=e>b,e=e>b?b:e,a.column+=e,a.offset+=a.partiallyConsumedTab?0:1,b-=e):(a.partiallyConsumedTab=!1,a.column+=e,a.offset+=1,--b)):(a.partiallyConsumedTab=!1,a.offset+=1,a.column+=1,--b)},xI=function(a){a.offset=a.nextNonspace; a.column=a.nextNonspaceColumn;a.partiallyConsumedTab=!1},Sgb=function(a){for(var b=a.currentLine,c=a.offset,d=a.column,e;(e=b.charAt(c))!=="";)if(e===" ")c++,d++;else if(e==="\t")c++,d+=4-d%4;else break;a.blank=e==="\n"||e==="\r"||e==="";a.nextNonspace=c;a.nextNonspaceColumn=d;a.indent=a.nextNonspaceColumn-a.column;a.indented=a.indent>=4}; Qgb.prototype.finalize=function(a,b){var c=a._parent;a._open=!1;a.sourcepos[1]=[b,this.lastLineLength];this.blocks[a.type].finalize(this,a);this.tip=c}; Qgb.prototype.parse=function(a){this.tip=this.doc=Pgb();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!a)return this.doc;this.options.time&&console.time("preparing input");var b=a.split(Igb),c=b.length;a.charCodeAt(a.length-1)===10&&--c;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(a=0;a=1&&m._htmlBlockType<=5&&ygb[m._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(m,this.lineNumber)):this.offset"):II(this,a.literal)}; g.html_block=function(a){this.cr();this.options.safe?II(this,""):II(this,a.literal);this.cr()}; g.softbreak=function(){II(this,this.options.softbreak)}; g.linebreak=function(){this.tag("br",[],!0);this.cr()}; g.link=function(a,b){var c=this.attrs(a);b?(this.options.safe&&Wgb(a.destination)||c.push(["href",nI(a.destination,!0)]),a.title&&c.push(["title",nI(a.title,!0)]),this.tag("a",c)):this.tag("/a")}; g.image=function(a,b){b?(this.disableTags===0&&(this.options.safe&&Wgb(a.destination)?II(this,"\""):II(this,"<img")))}; g.emph=function(a,b){this.tag(b?"em":"/em")}; g.strong=function(a,b){this.tag(b?"strong":"/strong")}; g.paragraph=function(a,b){var c=a.parent.parent;a=this.attrs(a);c!==null&&c.type==="list"&&c.listTight||(b?(this.cr(),this.tag("p",a)):(this.tag("/p"),this.cr()))}; g.heading=function(a,b){var c="h"+a.level;a=this.attrs(a);b?(this.cr(),this.tag(c,a)):(this.tag("/"+c),this.cr())}; g.code=function(a){this.tag("code");this.out(a.literal);this.tag("/code")}; g.code_block=function(a){var b=a.info?a.info.split(/\s+/):[],c=this.attrs(a);b.length>0&&b[0].length>0&&c.push(["class","language-"+nI(b[0],!0)]);this.cr();this.tag("pre");this.tag("code",c);this.out(a.literal);this.tag("/code");this.tag("/pre");this.cr()}; g.thematic_break=function(a){a=this.attrs(a);this.cr();this.tag("hr",a,!0);this.cr()}; g.block_quote=function(a,b){a=this.attrs(a);b?(this.cr(),this.tag("blockquote",a)):(this.cr(),this.tag("/blockquote"));this.cr()}; g.list=function(a,b){var c=a.listType==="bullet"?"ul":"ol",d=this.attrs(a);b?(a=a.listStart,a!==null&&a!==1&&d.push(["start",a.toString()]),this.cr(),this.tag(c,d)):(this.cr(),this.tag("/"+c));this.cr()}; g.item=function(a,b){a=this.attrs(a);b?this.tag("li",a):(this.tag("/li"),this.cr())}; g.custom_inline=function(a,b){b&&a.onEnter?II(this,a.onEnter):!b&&a.onExit&&II(this,a.onExit)}; g.custom_block=function(a,b){this.cr();b&&a.onEnter?II(this,a.onEnter):!b&&a.onExit&&II(this,a.onExit);this.cr()}; g.table=function(a,b){a=this.attrs(a);b?(this.cr(),this.tag("table",a)):(this.tag("/table"),this.cr())}; g.row=function(a,b){a._rowIsDelimiter||(a=this.attrs(a),b?this.tag("tr",a):this.tag("/tr"))}; g.td=function(a,b){var c=this.attrs(a);a._alignment&&c.push(["align",a._alignment]);b?this.tag("td",c):this.tag("/td")}; g.th=function(a,b){var c=this.attrs(a);a._alignment&&c.push(["align",a._alignment]);b?this.tag("th",c):this.tag("/th")}; g.out=function(a){II(this,nI(a,!1))}; g.tag=function(a,b,c){if(!(this.disableTags>0)){this.buffer+="<"+a;if(b&&b.length>0){a=0;for(var d;(d=b[a])!==void 0;)this.buffer+=" "+d[0]+"=\""+d[1]+"\"",a++}c&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}}; g.attrs=function(a){var b=[];this.options.sourcepos&&(a=a.sourcepos)&&b.push(["data-sourcepos",String(a[0][0])+":"+String(a[0][1])+"-"+String(a[1][0])+":"+String(a[1][1])]);return b}; JI.prototype.text=JI.prototype.text;JI.prototype.html_inline=JI.prototype.html_inline;JI.prototype.html_block=JI.prototype.html_block;JI.prototype.softbreak=JI.prototype.softbreak;JI.prototype.linebreak=JI.prototype.linebreak;JI.prototype.link=JI.prototype.link;JI.prototype.image=JI.prototype.image;JI.prototype.emph=JI.prototype.emph;JI.prototype.strong=JI.prototype.strong;JI.prototype.paragraph=JI.prototype.paragraph;JI.prototype.heading=JI.prototype.heading;JI.prototype.code=JI.prototype.code; JI.prototype.code_block=JI.prototype.code_block;JI.prototype.thematic_break=JI.prototype.thematic_break;JI.prototype.block_quote=JI.prototype.block_quote;JI.prototype.list=JI.prototype.list;JI.prototype.item=JI.prototype.item;JI.prototype.custom_inline=JI.prototype.custom_inline;JI.prototype.custom_block=JI.prototype.custom_block;JI.prototype.table=JI.prototype.table;JI.prototype.row=JI.prototype.row;JI.prototype.td=JI.prototype.td;JI.prototype.th=JI.prototype.th;JI.prototype.out=JI.prototype.out; JI.prototype.tag=JI.prototype.tag;JI.prototype.attrs=JI.prototype.attrs;/* Copyright 2010-2017 Mike Bostock All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of the author nor the names of contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ var Xgb,Ygb,Zgb;(function(){function a(G,B){return GB?1:G>=B?0:NaN} function b(G){return function(B,J){return a(G(B),J)}} function c(){for(var G=0,B=arguments.length,J={},X;G=0&&(X=J.slice(ja+1),J=J.slice(0,ja));if(J&&!B.hasOwnProperty(J))throw Error("unknown type: "+J);return{type:J,name:X}})} function f(G,B,J){for(var X=0,ja=G.length;X=0&&(B=G.slice(0,J))!=="xmlns"&&(G=G.slice(J+1));return Nt.hasOwnProperty(B)?{space:Nt[B],local:G}:G} function m(G){return function(){var B=this.ownerDocument,J=this.namespaceURI;return J==="http://www.w3.org/1999/xhtml"&&B.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?B.createElement(G):B.createElementNS(J,G)}} function p(G){return function(){return this.ownerDocument.createElementNS(G.space,G.local)}} function q(G){G=h(G);return(G.local?p:m)(G)} function t(){} function u(G){return G==null?t:function(){return this.querySelector(G)}} function v(G){return Array(G.length)} function w(G,B){this.ownerDocument=G.ownerDocument;this.namespaceURI=G.namespaceURI;this._next=null;this._parent=G;this.__data__=B} function y(G){return function(){return G}} function A(G,B,J,X,ja,qa){for(var wa=0,Ba,jb=B.length,mb=qa.length;waB?1:G>=B?0:NaN} function K(G){return function(){this.removeAttribute(G)}} function N(G){return function(){this.removeAttributeNS(G.space,G.local)}} function L(G,B){return function(){this.setAttribute(G,B)}} function R(G,B){return function(){this.setAttributeNS(G.space,G.local,B)}} function W(G,B){return function(){var J=B.apply(this,arguments);J==null?this.removeAttribute(G):this.setAttribute(G,J)}} function S(G,B){return function(){var J=B.apply(this,arguments);J==null?this.removeAttributeNS(G.space,G.local):this.setAttributeNS(G.space,G.local,J)}} function Y(G){return function(){this.style.removeProperty(G)}} function da(G,B,J){return function(){this.style.setProperty(G,B,J)}} function Aa(G,B,J){return function(){var X=B.apply(this,arguments);X==null?this.style.removeProperty(G):this.style.setProperty(G,X,J)}} function Sa(G,B){return G.style.getPropertyValue(B)||(G.ownerDocument&&G.ownerDocument.defaultView||G.document&&G||G.defaultView).getComputedStyle(G,null).getPropertyValue(B)} function Ua(G){return function(){delete this[G]}} function qb(G,B){return function(){this[G]=B}} function ab(G,B){return function(){var J=B.apply(this,arguments);J==null?delete this[G]:this[G]=J}} function La(){this.textContent=""} function ib(G){return function(){this.textContent=G}} function sb(G){return function(){var B=G.apply(this,arguments);this.textContent=B==null?"":B}} function Oa(){this.innerHTML=""} function Ca(G){return function(){this.innerHTML=G}} function eb(G){return function(){var B=G.apply(this,arguments);this.innerHTML=B==null?"":B}} function Qa(){return null} function Bb(){var G=this.parentNode;G&&G.removeChild(this)} function dc(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)} function Nb(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)} function Lc(G,B,J){G=Fc(G,B,J);return function(X){var ja=X.relatedTarget;ja&&(ja===this||ja.compareDocumentPosition(this)&8)||G.call(this,X)}} function Fc(G,B,J){return function(){G.call(this,this.__data__,B,J)}} function wc(G){return G.trim().split(/^|\s+/).map(function(B){var J="",X=B.indexOf(".");X>=0&&(J=B.slice(X+1),B=B.slice(0,X));return{type:B,name:J}})} function kd(G){return function(){var B=this.__on;if(B){for(var J=0,X=-1,ja=B.length,qa;J>8&15|B>>4&240,B>>4&15|B&240,(B&15)<<4|B&15,1)):(B=kcc.exec(G))?We(parseInt(B[1],16)):(B=lcc.exec(G))?new bf(B[1],B[2],B[3],1):(B=mcc.exec(G))?new bf(B[1]*255/100,B[2]*255/100,B[3]*255/100,1):(B=ncc.exec(G))?bh(B[1],B[2],B[3],B[4]):(B=occ.exec(G))?bh(B[1]*255/100,B[2]*255/100,B[3]*255/100,B[4]):(B=pcc.exec(G))?pj(B[1],B[2]/100,B[3]/100,1):(B=qcc.exec(G))?pj(B[1],B[2]/100,B[3]/100,B[4]):Gnb.hasOwnProperty(G)? We(Gnb[G]):G==="transparent"?new bf(NaN,NaN,NaN,0):null} function We(G){return new bf(G>>16&255,G>>8&255,G&255,1)} function bh(G,B,J,X){X<=0&&(G=B=J=NaN);return new bf(G,B,J,X)} function Uj(G){G instanceof fc||(G=Cc(G));if(!G)return new bf;G=G.rgb();return new bf(G.r,G.g,G.b,G.opacity)} function Hf(G,B,J,X){return arguments.length===1?Uj(G):new bf(G,B,J,X==null?1:X)} function bf(G,B,J,X){this.r=+G;this.g=+B;this.b=+J;this.opacity=+X} function Ci(G){G=Math.max(0,Math.min(255,Math.round(G)||0));return(G<16?"0":"")+G.toString(16)} function pj(G,B,J,X){X<=0?G=B=J=NaN:J<=0||J>=1?G=B=NaN:B<=0&&(G=NaN);return new ch(G,B,J,X)} function el(G){if(G instanceof ch)return new ch(G.h,G.s,G.l,G.opacity);G instanceof fc||(G=Cc(G));if(!G)return new ch;if(G instanceof ch)return G;G=G.rgb();var B=G.r/255,J=G.g/255,X=G.b/255,ja=Math.min(B,J,X),qa=Math.max(B,J,X),wa=NaN,Ba=qa-ja,jb=(qa+ja)/2;Ba?(wa=B===qa?(J-X)/Ba+(J0&&jb<1?0:wa;return new ch(wa,Ba,jb,G.opacity)} function fl(G,B,J,X){return arguments.length===1?el(G):new ch(G,B,J,X==null?1:X)} function ch(G,B,J,X){this.h=+G;this.s=+B;this.l=+J;this.opacity=+X} function qj(G,B,J){return(G<60?B+(J-B)*G/60:G<180?J:G<240?B+(J-B)*(240-G)/60:B)*255} function rj(G){if(G instanceof zb)return new zb(G.l,G.a,G.b,G.opacity);if(G instanceof Rh){if(isNaN(G.h))return new zb(G.l,0,0,G.opacity);var B=G.h*Hnb;return new zb(G.l,Math.cos(B)*G.c,Math.sin(B)*G.c,G.opacity)}G instanceof bf||(G=Uj(G));var J=cf(G.r),X=cf(G.g),ja=cf(G.b);B=ad(.2225045*J+.7168786*X+.0606169*ja);if(J===X&&X===ja)var qa=J=B;else qa=ad((.4360747*J+.3850649*X+.1430804*ja)/.96422),J=ad((.0139322*J+.0971045*X+.7141733*ja)/.82521);return new zb(116*B-16,500*(qa-B),200*(B-J),G.opacity)} function zb(G,B,J,X){this.l=+G;this.a=+B;this.b=+J;this.opacity=+X} function ad(G){return G>rcc?Math.pow(G,1/3):G/Inb+Jnb} function rd(G){return G>HO?G*G*G:Inb*(G-Jnb)} function pd(G){return 255*(G<=.0031308?12.92*G:1.055*Math.pow(G,1/2.4)-.055)} function cf(G){return(G/=255)<=.04045?G/12.92:Math.pow((G+.055)/1.055,2.4)} function np(G){if(G instanceof Rh)return new Rh(G.h,G.c,G.l,G.opacity);G instanceof zb||(G=rj(G));if(G.a===0&&G.b===0)return new Rh(NaN,0,G.l,G.opacity);var B=Math.atan2(G.b,G.a)*Knb;return new Rh(B<0?B+360:B,Math.sqrt(G.a*G.a+G.b*G.b),G.l,G.opacity)} function jn(G,B,J,X){return arguments.length===1?np(G):new Rh(G,B,J,X==null?1:X)} function Rh(G,B,J,X){this.h=+G;this.c=+B;this.l=+J;this.opacity=+X} function If(G,B,J,X){if(arguments.length===1){var ja=G;if(ja instanceof gl)ja=new gl(ja.h,ja.s,ja.l,ja.opacity);else{ja instanceof bf||(ja=Uj(ja));var qa=ja.g/255,wa=ja.b/255,Ba=(Lnb*wa+ja.r/255*-1.7884503806-3.5172982438*qa)/(Lnb+-1.7884503806-3.5172982438);wa-=Ba;var jb=(1.97294*(qa-Ba)- -.29227*wa)/-.90649;wa=(qa=Math.sqrt(jb*jb+wa*wa)/(1.97294*Ba*(1-Ba)))?Math.atan2(jb,wa)*Knb-120:NaN;ja=new gl(wa<0?wa+360:wa,qa,Ba,ja.opacity)}}else ja=new gl(G,B,J,X==null?1:X);return ja} function gl(G,B,J,X){this.h=+G;this.s=+B;this.l=+J;this.opacity=+X} function op(G,B,J,X,ja){var qa=G*G,wa=qa*G;return((1-3*G+3*qa-wa)*B+(4-6*qa+3*wa)*J+(1+3*G+3*qa-3*wa)*X+wa*ja)/6} function kn(G){return function(){return G}} function hl(G,B){return function(J){return G+J*B}} function sm(G,B,J){return G=Math.pow(G,J),B=Math.pow(B,J)-G,J=1/J,function(X){return Math.pow(G+X*B,J)}} function Vj(G,B){var J=B-G;return J?hl(G,J>180||J<-180?J-360*Math.round(J/360):J):kn(isNaN(G)?B:G)} function Di(G){return(G=+G)===1?Gh:function(B,J){return J-B?sm(B,J,G):kn(isNaN(B)?J:B)}} function Gh(G,B){var J=B-G;return J?hl(G,J):kn(isNaN(G)?B:G)} function ho(G){return function(B){var J=B.length,X=Array(J),ja=Array(J),qa=Array(J),wa;for(wa=0;waJ&&(qa=B.slice(J,qa),Ba[wa]?Ba[wa]+=qa:Ba[++wa]=qa),(X=X[0])===(ja=ja[0])?Ba[wa]?Ba[wa]+=ja:Ba[++wa]=ja:(Ba[++wa]=null,jb.push({i:wa,x:Bk(X,ja)})),J=zxa.lastIndex;J180?hb+=360:hb-mb>180&&(mb+=360),Wb.push({i:vb.push(ja(vb)+"rotate(",null,X)-2,x:Bk(mb,hb)})):hb&&vb.push(ja(vb)+"rotate("+hb+X)} function Ba(mb,hb,vb,Wb){mb!==hb?Wb.push({i:vb.push(ja(vb)+"skewX(",null,X)-2,x:Bk(mb,hb)}):hb&&vb.push(ja(vb)+"skewX("+hb+X)} function jb(mb,hb,vb,Wb,Ac,Cd){mb!==vb||hb!==Wb?(Ac=Ac.push(ja(Ac)+"scale(",null,",",null,")"),Cd.push({i:Ac-4,x:Bk(mb,vb)},{i:Ac-2,x:Bk(hb,Wb)})):vb===1&&Wb===1||Ac.push(ja(Ac)+"scale("+vb+","+Wb+")")} return function(mb,hb){var vb=[],Wb=[];mb=G(mb);hb=G(hb);qa(mb.translateX,mb.translateY,hb.translateX,hb.translateY,vb,Wb);wa(mb.rotate,hb.rotate,vb,Wb);Ba(mb.skewX,hb.skewX,vb,Wb);jb(mb.scaleX,mb.scaleY,hb.scaleX,hb.scaleY,vb,Wb);mb=hb=null;return function(Ac){for(var Cd=-1,gf=Wb.length,Me;++Cd=0&&G._call.call(null,B),G=G._next;--IO}finally{IO=0;G=Daa;for(var J=Infinity;G;)if(G._call){J>G._time&&(J=G._time);var X=G;G=G._next}else B=G._next,G._next=null,G=X?X._next=B:Daa=B;nY=X;ko(J);BI=0}} function Wj(){var G=lY.now(),B=G-Caa;B>1E3&&(Baa-=B,Caa=G)} function ko(G){IO||(mY&&(mY=clearTimeout(mY)),G-BI>24?(G0)throw Error("too late; already scheduled");return G} function hi(G,B){G=ii(G,B);if(G.state>2)throw Error("too late; already started");return G} function ii(G,B){G=G.__transition;if(!G||!(G=G[B]))throw Error("transition not found");return G} function Ma(G,B,J){function X(jb){var mb,hb;if(J.state!==1)return qa();for(Wb in wa){var vb=wa[Wb];if(vb.name===J.name){if(vb.state===3)return gi(X);vb.state===4?(vb.state=6,vb.timer.stop(),vb.on.call("interrupt",G,G.__data__,vb.index,vb.group),delete wa[Wb]):+Wb=0&&(B=B.slice(0,J));return!B||B==="start"})} function KO(G,B,J){var X,ja,qa=qY(B)?Tf:hi;return function(){var wa=qa(this,G),Ba=wa.on;if(Ba!==X)(ja=(X=Ba).copy()).on(B,J);wa.on=ja}} function qA(G){return function(){var B=this.parentNode,J;for(J in this.__transition)if(+J!==G)return;B&&B.removeChild(this)}} function rA(G,B){var J,X,ja;return function(){var qa=Sa(this,G),wa=(this.style.removeProperty(G),Sa(this,G));return qa===wa?null:qa===J&&wa===X?ja:ja=B(J=qa,X=wa)}} function rY(G){return function(){this.style.removeProperty(G)}} function LO(G,B,J){var X,ja;return function(){var qa=Sa(this,G);return qa===J?null:qa===X?ja:ja=B(X=qa,J)}} function sY(G,B,J){var X,ja,qa;return function(){var wa=Sa(this,G),Ba=J(this);Ba==null&&(Ba=(this.style.removeProperty(G),Sa(this,G)));return wa===Ba?null:wa===X&&Ba===ja?qa:qa=B(X=wa,ja=Ba)}} function rx(G,B,J){function X(){var ja=this,qa=B.apply(ja,arguments);return qa&&function(wa){ja.style.setProperty(G,qa(wa),J)}} X._value=B;return X} function XD(G){return function(){this.textContent=G}} function YD(G){return function(){var B=G(this);this.textContent=B==null?"":B}} function ns(G,B,J,X){this._groups=G;this._parents=B;this._name=J;this._id=X} function DI(G){return{type:G}} function ZD(){this._x0=this._y0=this._x1=this._y1=null;this._=""} function Tq(){} function sx(G,B){var J=new Tq;if(G instanceof Tq)G.each(function(wa,Ba){J.set(Ba,wa)});else if(Array.isArray(G)){var X=-1,ja=G.length,qa;if(B==null)for(;++X=hb?Cd=!0:(sA=wa.charCodeAt(vb++))===10?gf=!0:sA===13&&(gf=!0,wa.charCodeAt(vb)===10&&++vb);return wa.slice(Ck+1,to-1).replace(/""/g,"\"")}for(;vb=(hb=(wa+jb)/2))?wa=hb:jb=hb,(Ac=J>=(vb=(Ba+mb)/2))?Ba=vb:mb=vb,ja=qa,!(qa=qa[Cd=Ac<<1|Wb]))return ja[Cd]=X,G;var gf=+G._x.call(null,qa.data);var Me=+G._y.call(null,qa.data);if(B===gf&&J===Me)return X.next=qa,ja?ja[Cd]=X:G._root=X,G;do ja=ja?ja[Cd]=Array(4):G._root=Array(4),(Wb=B>=(hb=(wa+jb)/2))?wa=hb:jb=hb,(Ac= J>=(vb=(Ba+mb)/2))?Ba=vb:mb=vb;while((Cd=Ac<<1|Wb)===(Wb=(Me>=vb)<<1|gf>=hb));return ja[Wb]=qa,ja[Cd]=X,G} function sh(G,B,J,X,ja){this.node=G;this.x0=B;this.y0=J;this.x1=X;this.y1=ja} function MO(G){return G[0]} function NO(G){return G[1]} function Qt(G,B,J,X,ja,qa){this._x=G;this._y=B;this._x0=J;this._y0=X;this._x1=ja;this._y1=qa;this._root=void 0} function vx(G){for(var B={data:G.data},J=B;G=G.next;)J=J.next={data:G.data};return B} function wx(G,B){if((B=(G=B?G.toExponential(B-1):G.toExponential()).indexOf("e"))<0)return null;var J=G.slice(0,B);return[J.length>1?J[0]+J.slice(2):J,+G.slice(B+1)]} function OO(G){return G=wx(Math.abs(G)),G?G[1]:NaN} function $D(G,B){return function(J,X){for(var ja=J.length,qa=[],wa=0,Ba=G[0],jb=0;ja>0&&Ba>0;){jb+Ba+1>X&&(Ba=Math.max(1,X-jb));qa.push(J.substring(ja-=Ba,ja+Ba));if((jb+=Ba+1)>X)break;Ba=G[wa=(wa+1)%G.length]}return qa.reverse().join(B)}} function Rt(G){return function(B){return B.replace(/[0-9]/g,function(J){return G[+J]})}} function aE(G){return new FI(G)} function FI(G){if(!(B=ucc.exec(G)))throw Error("invalid format: "+G);var B;this.fill=B[1]||" ";this.align=B[2]||">";this.sign=B[3]||"-";this.symbol=B[4]||"";this.zero=!!B[5];this.width=B[6]&&+B[6];this.comma=!!B[7];this.precision=B[8]&&+B[8].slice(1);this.trim=!!B[9];this.type=B[10]||""} function xx(G,B){B=wx(G,B);if(!B)return G+"";G=B[0];B=B[1];return B<0?"0."+Array(-B).join("0")+G:G.length>B+1?G.slice(0,B+1)+"."+G.slice(B+1):G+Array(B-G.length+2).join("0")} function pn(G){return G} function tY(G){function B(Ba){function jb(Ae){var tA=sA,Kc=Bxa,nd,cd;if(Ck==="c")Kc=Eaa(Ae)+Kc,Ae="";else{Ae=+Ae;var oc=Ae<0;Ae=Eaa(Math.abs(Ae),Me);if(to){var wj=Ae.length,uo=1,rv=-1;a:for(;uo0&&(rv=0);}Ae=rv>0?Ae.slice(0,rv)+Ae.slice(nd+1):Ae}oc&&+Ae===0&&(oc=!1);tA=(oc?vb==="("?vb:"-":vb==="-"||vb==="("?"":vb)+tA;Kc=(Ck==="s"?Qnb[8+Rnb/3]:"")+Kc+(oc&&vb==="("?")":"");if(uA)for(oc= -1,nd=Ae.length;++occd||cd>57){Kc=(cd===46?ja+Ae.slice(oc+1):Ae.slice(oc))+Kc;Ae=Ae.slice(0,oc);break}}gf&&!Ac&&(Ae=J(Ae,Infinity));cd=tA.length+Ae.length+Kc.length;oc=cd>1)+tA+Ae+Kc+oc.slice(cd);break;default:Ae=oc+tA+Ae+Kc;}return qa(Ae)} Ba=aE(Ba);var mb=Ba.fill,hb=Ba.align,vb=Ba.sign,Wb=Ba.symbol,Ac=Ba.zero,Cd=Ba.width,gf=Ba.comma,Me=Ba.precision,to=Ba.trim,Ck=Ba.type;Ck==="n"?(gf=!0,Ck="g"):Snb[Ck]||(Me==null&&(Me=12),to=!0,Ck="g");if(Ac||mb==="0"&&hb==="=")Ac=!0,mb="0",hb="=";var sA=Wb==="$"?X[0]:Wb==="#"&&/[boxX]/.test(Ck)?"0"+Ck.toLowerCase():"",Bxa=Wb==="$"?X[1]:/[%p]/.test(Ck)?wa:"",Eaa=Snb[Ck],uA=/[defgprs%]/.test(Ck);Me=Me==null?6:/[gprs]/.test(Ck)?Math.max(1,Math.min(21,Me)):Math.max(0,Math.min(20,Me));jb.toString=function(){return Ba+ ""}; return jb} var J=G.grouping&&G.thousands?$D(G.grouping,G.thousands):pn,X=G.currency,ja=G.decimal,qa=G.numerals?Rt(G.numerals):pn,wa=G.percent||"%";return{format:B,formatPrefix:function(Ba,jb){var mb=B((Ba=aE(Ba),Ba.type="f",Ba));Ba=Math.max(-8,Math.min(8,Math.floor(OO(jb)/3)))*3;var hb=Math.pow(10,-Ba),vb=Qnb[8+Ba/3];return function(Wb){return mb(hb*Wb)+vb}}}} function vp(){this.reset()} function vA(G,B,J){var X=G.s=B+J,ja=X-B;G.t=B-(X-ja)+(J-ja)} function bE(G){return G>1?Tnb:G<-1?-Tnb:Math.asin(G)} function cE(G){return function(B,J){var X=Faa(B),ja=Faa(J);X=G(X*ja);return[X*ja*Gaa(B),X*Gaa(J)]}} function sv(G){return function(B,J){var X=Cxa(B*B+J*J),ja=G(X),qa=Gaa(ja);ja=Faa(ja);return[vcc(B*qa,X*ja),bE(X&&J*qa/X)]}} function wA(G){var B=0,J=G.children,X=J&&J.length;if(X)for(;--X>=0;)B+=J[X].value;else B=1;G.value=B} function St(G,B){var J=new yx(G);G=+G.value&&(J.value=G.value);var X,ja=[J],qa,wa,Ba,jb;for(B==null&&(B=PO);X=ja.pop();)if(G&&(X.value=+X.data.value),(wa=B(X.data))&&(jb=wa.length))for(X.children=Array(jb),Ba=jb-1;Ba>=0;--Ba)ja.push(qa=X.children[Ba]=new yx(wa[Ba])),qa.parent=X,qa.depth=X.depth+1;return J.eachBefore(GI)} function PO(G){return G.children} function Haa(G){G.data=G.data.data} function GI(G){var B=0;do G.height=B;while((G=G.parent)&&G.height<++B)} function yx(G){this.data=G;this.depth=this.height=0;this.parent=null} function Zj(G,B,J,X){function ja(qa){return G(qa=new Date(+qa)),qa} ja.floor=ja;ja.ceil=function(qa){return G(qa=new Date(qa-1)),B(qa,1),G(qa),qa}; ja.round=function(qa){var wa=ja(qa),Ba=ja.ceil(qa);return qa-wa0))return jb;do jb.push(mb=new Date(+qa)),B(qa,Ba),G(qa);while(mb=wa)for(;G(wa),!qa(wa);)wa.setTime(wa-1)},function(wa,Ba){if(wa>=wa)if(Ba<0)for(;++Ba<=0;)for(;B(wa,-1),!qa(wa););else for(;--Ba>=0;)for(;B(wa,1),!qa(wa););})}; J&&(ja.count=function(qa,wa){Dxa.setTime(+qa);Exa.setTime(+wa);G(Dxa);G(Exa);return Math.floor(J(Dxa,Exa))},ja.every=function(qa){qa=Math.floor(qa); return isFinite(qa)&&qa>0?qa>1?ja.filter(X?function(wa){return X(wa)%qa===0}:function(wa){return ja.count(0,wa)%qa===0}):ja:null}); return ja} function zx(G){return Zj(function(B){B.setDate(B.getDate()-(B.getDay()+7-G)%7);B.setHours(0,0,0,0)},function(B,J){B.setDate(B.getDate()+J*7)},function(B,J){return(J-B-(J.getTimezoneOffset()-B.getTimezoneOffset())*6E4)/6048E5})} function Ax(G){return Zj(function(B){B.setUTCDate(B.getUTCDate()-(B.getUTCDay()+7-G)%7);B.setUTCHours(0,0,0,0)},function(B,J){B.setUTCDate(B.getUTCDate()+J*7)},function(B,J){return(J-B)/6048E5})} function Iaa(G){if(0<=G.y&&G.y<100){var B=new Date(-1,G.m,G.d,G.H,G.M,G.S,G.L);B.setFullYear(G.y);return B}return new Date(G.y,G.m,G.d,G.H,G.M,G.S,G.L)} function xA(G){if(0<=G.y&&G.y<100){var B=new Date(Date.UTC(-1,G.m,G.d,G.H,G.M,G.S,G.L));B.setUTCFullYear(G.y);return B}return new Date(Date.UTC(G.y,G.m,G.d,G.H,G.M,G.S,G.L))} function dE(G){return{y:G,m:0,d:1,H:0,M:0,S:0,L:0}} function uY(G){function B(Kc,nd){return function(cd){var oc=[],wj=-1,uo=0,rv=Kc.length,vo,Unb;for(cd instanceof Date||(cd=new Date(+cd));++wj53)return null;"w"in oc||(oc.w=1);if("Z"in oc){cd=xA(dE(oc.y));var wj=cd.getUTCDay();cd=wj>4||wj===0?Fxa.ceil(cd):Fxa(cd);cd=Wnb.offset(cd,(oc.V-1)*7);oc.y=cd.getUTCFullYear();oc.m=cd.getUTCMonth();oc.d=cd.getUTCDate()+(oc.w+6)%7}else cd=nd(dE(oc.y)),wj=cd.getDay(),cd=wj>4||wj===0?Gxa.ceil(cd):Gxa(cd),cd=Xnb.offset(cd, (oc.V-1)*7),oc.y=cd.getFullYear(),oc.m=cd.getMonth(),oc.d=cd.getDate()+(oc.w+6)%7}else if("W"in oc||"U"in oc)"w"in oc||(oc.w="u"in oc?oc.u%7:"W"in oc?1:0),wj="Z"in oc?xA(dE(oc.y)).getUTCDay():nd(dE(oc.y)).getDay(),oc.m=0,oc.d="W"in oc?(oc.w+6)%7+oc.W*7-(wj+5)%7:oc.w+oc.U*7-(wj+6)%7;return"Z"in oc?(oc.H+=oc.Z/100|0,oc.M+=oc.Z%100,xA(oc)):nd(oc)}} function X(Kc,nd,cd,oc){for(var wj=0,uo=nd.length,rv=cd.length,vo;wj=rv)return-1;vo=nd.charCodeAt(wj++);if(vo===37){if(vo=nd.charAt(wj++),vo=tA[vo in Vnb?nd.charAt(wj++):vo],!vo||(oc=vo(Kc,cd,oc))<0)return-1}else if(vo!=cd.charCodeAt(oc++))return-1}return oc} var ja=G.dateTime,qa=G.date,wa=G.time,Ba=G.periods,jb=G.days,mb=G.shortDays,hb=G.months,vb=G.shortMonths,Wb=vY(Ba),Ac=wY(Ba),Cd=vY(jb),gf=wY(jb),Me=vY(mb),to=wY(mb),Ck=vY(hb),sA=wY(hb),Bxa=vY(vb),Eaa=wY(vb),uA={a:function(Kc){return mb[Kc.getDay()]}, A:function(Kc){return jb[Kc.getDay()]}, b:function(Kc){return vb[Kc.getMonth()]}, B:function(Kc){return hb[Kc.getMonth()]}, c:null,d:Ynb,e:Ynb,f:wcc,H:xcc,I:ycc,j:zcc,L:Znb,m:Acc,M:Bcc,p:function(Kc){return Ba[+(Kc.getHours()>=12)]}, Q:$nb,s:aob,S:Ccc,u:Dcc,U:Ecc,V:Fcc,w:Gcc,W:Hcc,x:null,X:null,y:Icc,Y:Jcc,Z:Kcc,"%":bob},Ae={a:function(Kc){return mb[Kc.getUTCDay()]}, A:function(Kc){return jb[Kc.getUTCDay()]}, b:function(Kc){return vb[Kc.getUTCMonth()]}, B:function(Kc){return hb[Kc.getUTCMonth()]}, c:null,d:cob,e:cob,f:Lcc,H:Mcc,I:Ncc,j:Occ,L:dob,m:Pcc,M:Qcc,p:function(Kc){return Ba[+(Kc.getUTCHours()>=12)]}, Q:$nb,s:aob,S:Rcc,u:Scc,U:Tcc,V:Ucc,w:Vcc,W:Wcc,x:null,X:null,y:Xcc,Y:Ycc,Z:Zcc,"%":bob},tA={a:function(Kc,nd,cd){return(nd=Me.exec(nd.slice(cd)))?(Kc.w=to[nd[0].toLowerCase()],cd+nd[0].length):-1}, A:function(Kc,nd,cd){return(nd=Cd.exec(nd.slice(cd)))?(Kc.w=gf[nd[0].toLowerCase()],cd+nd[0].length):-1}, b:function(Kc,nd,cd){return(nd=Bxa.exec(nd.slice(cd)))?(Kc.m=Eaa[nd[0].toLowerCase()],cd+nd[0].length):-1}, B:function(Kc,nd,cd){return(nd=Ck.exec(nd.slice(cd)))?(Kc.m=sA[nd[0].toLowerCase()],cd+nd[0].length):-1}, c:function(Kc,nd,cd){return X(Kc,ja,nd,cd)}, d:eob,e:eob,f:$cc,H:fob,I:fob,j:adc,L:bdc,m:cdc,M:ddc,p:function(Kc,nd,cd){return(nd=Wb.exec(nd.slice(cd)))?(Kc.p=Ac[nd[0].toLowerCase()],cd+nd[0].length):-1}, Q:edc,s:fdc,S:gdc,u:hdc,U:idc,V:jdc,w:kdc,W:ldc,x:function(Kc,nd,cd){return X(Kc,qa,nd,cd)}, X:function(Kc,nd,cd){return X(Kc,wa,nd,cd)}, y:mdc,Y:ndc,Z:odc,"%":pdc};uA.x=B(qa,uA);uA.X=B(wa,uA);uA.c=B(ja,uA);Ae.x=B(qa,Ae);Ae.X=B(wa,Ae);Ae.c=B(ja,Ae);return{format:function(Kc){var nd=B(Kc+="",uA);nd.toString=function(){return Kc}; return nd}, parse:function(Kc){var nd=J(Kc+="",Iaa);nd.toString=function(){return Kc}; return nd}, utcFormat:function(Kc){var nd=B(Kc+="",Ae);nd.toString=function(){return Kc}; return nd}, utcParse:function(Kc){var nd=J(Kc,xA);nd.toString=function(){return Kc}; return nd}}} function dh(G,B,J){var X=G<0?"-":"";G=(X?-G:G)+"";var ja=G.length;return X+(ja68?1900:2E3),J+B[0].length):-1} function odc(G,B,J){return(B=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(B.slice(J,J+6)))?(G.Z=B[1]?0:-(B[2]+(B[3]||"00")),J+B[0].length):-1} function cdc(G,B,J){return(B=qn.exec(B.slice(J,J+2)))?(G.m=B[0]-1,J+B[0].length):-1} function eob(G,B,J){return(B=qn.exec(B.slice(J,J+2)))?(G.d=+B[0],J+B[0].length):-1} function adc(G,B,J){return(B=qn.exec(B.slice(J,J+3)))?(G.m=0,G.d=+B[0],J+B[0].length):-1} function fob(G,B,J){return(B=qn.exec(B.slice(J,J+2)))?(G.H=+B[0],J+B[0].length):-1} function ddc(G,B,J){return(B=qn.exec(B.slice(J,J+2)))?(G.M=+B[0],J+B[0].length):-1} function gdc(G,B,J){return(B=qn.exec(B.slice(J,J+2)))?(G.S=+B[0],J+B[0].length):-1} function bdc(G,B,J){return(B=qn.exec(B.slice(J,J+3)))?(G.L=+B[0],J+B[0].length):-1} function $cc(G,B,J){return(B=qn.exec(B.slice(J,J+6)))?(G.L=Math.floor(B[0]/1E3),J+B[0].length):-1} function pdc(G,B,J){return(G=rdc.exec(B.slice(J,J+1)))?J+G[0].length:-1} function edc(G,B,J){return(B=qn.exec(B.slice(J)))?(G.Q=+B[0],J+B[0].length):-1} function fdc(G,B,J){return(B=qn.exec(B.slice(J)))?(G.Q=+B[0]*1E3,J+B[0].length):-1} function Ynb(G,B){return dh(G.getDate(),B,2)} function xcc(G,B){return dh(G.getHours(),B,2)} function ycc(G,B){return dh(G.getHours()%12||12,B,2)} function zcc(G,B){return dh(1+Xnb.count(QO(G),G),B,3)} function Znb(G,B){return dh(G.getMilliseconds(),B,3)} function wcc(G,B){return Znb(G,B)+"000"} function Acc(G,B){return dh(G.getMonth()+1,B,2)} function Bcc(G,B){return dh(G.getMinutes(),B,2)} function Ccc(G,B){return dh(G.getSeconds(),B,2)} function Dcc(G){G=G.getDay();return G===0?7:G} function Ecc(G,B){return dh(sdc.count(QO(G),G),B,2)} function Fcc(G,B){var J=G.getDay();G=J>=4||J===0?Ixa(G):Ixa.ceil(G);return dh(Ixa.count(QO(G),G)+(QO(G).getDay()===4),B,2)} function Gcc(G){return G.getDay()} function Hcc(G,B){return dh(Gxa.count(QO(G),G),B,2)} function Icc(G,B){return dh(G.getFullYear()%100,B,2)} function Jcc(G,B){return dh(G.getFullYear()%1E4,B,4)} function Kcc(G){G=G.getTimezoneOffset();return(G>0?"-":(G*=-1,"+"))+dh(G/60|0,"0",2)+dh(G%60,"0",2)} function cob(G,B){return dh(G.getUTCDate(),B,2)} function Mcc(G,B){return dh(G.getUTCHours(),B,2)} function Ncc(G,B){return dh(G.getUTCHours()%12||12,B,2)} function Occ(G,B){return dh(1+Wnb.count(RO(G),G),B,3)} function dob(G,B){return dh(G.getUTCMilliseconds(),B,3)} function Lcc(G,B){return dob(G,B)+"000"} function Pcc(G,B){return dh(G.getUTCMonth()+1,B,2)} function Qcc(G,B){return dh(G.getUTCMinutes(),B,2)} function Rcc(G,B){return dh(G.getUTCSeconds(),B,2)} function Scc(G){G=G.getUTCDay();return G===0?7:G} function Tcc(G,B){return dh(tdc.count(RO(G),G),B,2)} function Ucc(G,B){var J=G.getUTCDay();G=J>=4||J===0?Jxa(G):Jxa.ceil(G);return dh(Jxa.count(RO(G),G)+(RO(G).getUTCDay()===4),B,2)} function Vcc(G){return G.getUTCDay()} function Wcc(G,B){return dh(Fxa.count(RO(G),G),B,2)} function Xcc(G,B){return dh(G.getUTCFullYear()%100,B,2)} function Ycc(G,B){return dh(G.getUTCFullYear()%1E4,B,4)} function Zcc(){return"+0000"} function bob(){return"%"} function $nb(G){return+G} function aob(G){return Math.floor(+G/1E3)} function Be(G){for(var B=G.length/6|0,J=Array(B),X=0;X>>1;G(B[qa],J)<0?X=qa+1:ja=qa}return X}, right:function(B,J,X,ja){X==null&&(X=0);ja==null&&(ja=B.length);for(;X>>1;G(B[qa],J)>0?ja=qa:X=qa+1}return X}}})(a); var gcc={value:function(){}}; d.prototype=c.prototype={constructor:d,on:function(G,B){var J=this._,X=e(G+"",J),ja,qa=-1,wa=X.length;if(arguments.length<2)for(;++qa0)for(var J=Array(ja),X=0,ja,qa;X=vb&&(vb=hb+1);!(to=Me[vb])&&++vb=0;)if(wa=X[ja])qa&&qa!==wa.nextSibling&&qa.parentNode.insertBefore(wa,qa),qa=wa;return this}, sort:function(G){function B(vb,Wb){return vb&&Wb?G(vb.__data__,Wb.__data__):!vb-!Wb} G||(G=I);for(var J=this._groups,X=J.length,ja=Array(X),qa=0;qa1?this.each((B==null?Y:typeof B==="function"?Aa:da)(G,B,J==null?"":J)):Sa(this.node(),G)}, property:function(G,B){return arguments.length>1?this.each((B==null?Ua:typeof B==="function"?ab:qb)(G,B)):this.node()[G]}, text:function(G){return arguments.length?this.each(G==null?La:(typeof G==="function"?sb:ib)(G)):this.node().textContent}, html:function(G){return arguments.length?this.each(G==null?Oa:(typeof G==="function"?eb:Ca)(G)):this.node().innerHTML}, append:function(G){var B=typeof G==="function"?G:q(G);return this.select(function(){return this.appendChild(B.apply(this,arguments))})}, insert:function(G,B){var J=typeof G==="function"?G:q(G),X=B==null?Qa:typeof B==="function"?B:u(B);return this.select(function(){return this.insertBefore(J.apply(this,arguments),X.apply(this,arguments)||null)})}, remove:function(){return this.each(Bb)}, clone:function(G){return this.select(G?Nb:dc)}, datum:function(G){return arguments.length?this.property("__data__",G):this.node().__data__}, on:function(G,B,J){var X=wc(G+""),ja=X.length,qa;if(arguments.length<2){var wa=this.node().__on;if(wa)for(var Ba=0,jb=wa.length,mb;Ba=240?G-240:G+120,B,J),qj(G,B,J),qj(G<120?G+240:G-120,B,J),this.opacity)}, displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}})); var Hnb=Math.PI/180,Knb=180/Math.PI,Jnb=4/29,HO=6/29,Inb=3*HO*HO,rcc=HO*HO*HO;Na(zb,function(G,B,J,X){return arguments.length===1?rj(G):new zb(G,B,J,X==null?1:X)},Cb(fc,{brighter:function(G){return new zb(this.l+18*(G==null?1:G),this.a,this.b,this.opacity)}, darker:function(G){return new zb(this.l-18*(G==null?1:G),this.a,this.b,this.opacity)}, rgb:function(){var G=(this.l+16)/116,B=isNaN(this.a)?G:G+this.a/500,J=isNaN(this.b)?G:G-this.b/200;B=.96422*rd(B);G=1*rd(G);J=.82521*rd(J);return new bf(pd(3.1338561*B-1.6168667*G-.4906146*J),pd(-.9787684*B+1.9161415*G+.033454*J),pd(.0719453*B-.2289914*G+1.4052427*J),this.opacity)}})); Na(Rh,jn,Cb(fc,{brighter:function(G){return new Rh(this.h,this.c,this.l+18*(G==null?1:G),this.opacity)}, darker:function(G){return new Rh(this.h,this.c,this.l-18*(G==null?1:G),this.opacity)}, rgb:function(){return rj(this).rgb()}})); var Lnb=1.78277*-.29227-.1347134789;Na(gl,If,Cb(fc,{brighter:function(G){G=G==null?SO:Math.pow(SO,G);return new gl(this.h,this.s,this.l*G,this.opacity)}, darker:function(G){G=G==null?.7:Math.pow(.7,G);return new gl(this.h,this.s,this.l*G,this.opacity)}, rgb:function(){var G=isNaN(this.h)?0:(this.h+120)*Hnb,B=+this.l,J=isNaN(this.s)?0:this.s*B*(1-B),X=Math.cos(G);G=Math.sin(G);return new bf(255*(B+J*(-.14861*X+1.78277*G)),255*(B+J*(-.29227*X+-.90649*G)),255*(B+1.97294*X*J),this.opacity)}})); var Onb=function J(B){function X(qa,wa){var Ba=ja((qa=Hf(qa)).r,(wa=Hf(wa)).r),jb=ja(qa.g,wa.g),mb=ja(qa.b,wa.b),hb=Gh(qa.opacity,wa.opacity);return function(vb){qa.r=Ba(vb);qa.g=jb(vb);qa.b=mb(vb);qa.opacity=hb(vb);return qa+""}} var ja=Di(B);X.gamma=J;return X}(1),udc=ho(function(B){var J=B.length-1; return function(X){var ja=X<=0?X=0:X>=1?(X=1,J-1):Math.floor(X*J),qa=B[ja],wa=B[ja+1];return op((X-ja/J)*J,ja>0?B[ja-1]:2*qa-wa,qa,wa,javb&&(vb=qa),waWb&&(Wb=wa));vbB||B>qa||ja>J||J>wa){var Ba=qa-X,jb=this._root,mb;switch(mb=(J<(ja+wa)/2)<<1|B<(X+qa)/2){case 0:do{var hb=Array(4);hb[mb]=jb;jb=hb}while((Ba*=2,qa=X+Ba,wa=ja+Ba,B>qa||J>wa));break;case 1:do hb=Array(4),hb[mb]=jb,jb=hb;while((Ba*=2,X=qa-Ba,wa=ja+Ba,X>B||J>wa));break;case 2:do hb=Array(4),hb[mb]=jb,jb=hb;while((Ba*=2,qa=X+Ba, ja=wa-Ba,B>qa||ja>J));break;case 3:do hb=Array(4),hb[mb]=jb,jb=hb;while((Ba*=2,X=qa-Ba,ja=wa-Ba,X>B||ja>J));}this._root&&this._root.length&&(this._root=jb)}else return this;this._x0=X;this._y0=ja;this._x1=qa;this._y1=wa;return this}; wp.data=function(){var B=[];this.visit(function(J){if(!J.length){do B.push(J.data);while(J=J.next)}}); return B}; wp.extent=function(B){return arguments.length?this.cover(+B[0][0],+B[0][1]).cover(+B[1][0],+B[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}; wp.find=function(B,J,X){var ja=this._x0,qa=this._y0,wa,Ba,jb,mb,hb=this._x1,vb=this._y1,Wb=[],Ac=this._root,Cd;Ac&&Wb.push(new sh(Ac,ja,qa,hb,vb));X==null?X=Infinity:(ja=B-X,qa=J-X,hb=B+X,vb=J+X,X*=X);for(;Cd=Wb.pop();)if(!(!(Ac=Cd.node)||(wa=Cd.x0)>hb||(Ba=Cd.y0)>vb||(jb=Cd.x1)=gf)<<1|B>=Cd)Cd=Wb[Wb.length-1],Wb[Wb.length- 1]=Wb[Wb.length-1-Ac],Wb[Wb.length-1-Ac]=Cd}else if(Cd=B-+this._x.call(null,Ac.data),gf=J-+this._y.call(null,Ac.data),Cd=Cd*Cd+gf*gf,Cd=(vb=(qa+Ba)/2))?qa=vb:Ba=vb;(Cd=hb>=(Wb=(wa+jb)/2))?wa=Wb:jb=Wb;if(!(J=X,X=X[gf=Cd<<1|Ac]))return this;if(!X.length)break;if(J[gf+1&3]||J[gf+2&3]||J[gf+3&3]){var Me=J;var to=gf}}for(;X.data!==B;)if(!(ja=X,X=X.next))return this;(B=X.next)&&delete X.next;if(ja)return B? ja.next=B:delete ja.next,this;if(!J)return this._root=B,this;B?J[gf]=B:delete J[gf];(X=J[0]||J[1]||J[2]||J[3])&&X===(J[3]||J[2]||J[1]||J[0])&&!X.length&&(Me?Me[to]=X:this._root=X);return this}; wp.removeAll=function(B){for(var J=0,X=B.length;J=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;aE.prototype=FI.prototype;FI.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width==null?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision==null?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type}; var Rnb,Snb={"%":function(B,J){return(B*100).toFixed(J)}, b:function(B){return Math.round(B).toString(2)}, c:function(B){return B+""}, d:function(B){return Math.round(B).toString(10)}, e:function(B,J){return B.toExponential(J)}, f:function(B,J){return B.toFixed(J)}, g:function(B,J){return B.toPrecision(J)}, o:function(B){return Math.round(B).toString(8)}, p:function(B,J){return xx(B*100,J)}, r:xx,s:function(B,J){var X=wx(B,J);if(!X)return B+"";var ja=X[0];X=X[1];X=X-(Rnb=Math.max(-8,Math.min(8,Math.floor(X/3)))*3)+1;var qa=ja.length;return X===qa?ja:X>qa?ja+Array(X-qa+1).join("0"):X>0?ja.slice(0,X)+"."+ja.slice(X):"0."+Array(1-X).join("0")+wx(B,Math.max(0,J+X-1))[0]}, X:function(B){return Math.round(B).toString(16).toUpperCase()}, x:function(B){return Math.round(B).toString(16)}},Qnb="y z a f p n \xB5 m k M G T P E Z Y".split(" "),Bdc; (function(B){return Bdc=tY(B)})({decimal:".", thousands:",",grouping:[3],currency:["$",""]});vp.prototype={constructor:vp,reset:function(){this.s=this.t=0}, add:function(B){vA(Laa,B,this.t);vA(this,Laa.s,this.s);this.s?this.t+=Laa.t:this.s=Laa.t}, valueOf:function(){return this.s}}; var Laa=new vp,Pxa=Math.PI,Tnb=Pxa/2,Cdc=Pxa/180,nob=Math.atan,vcc=Math.atan2,Faa=Math.cos,Gaa=Math.sin,Cxa=Math.sqrt;new vp;new vp;new vp;new vp;new vp;new vp;new vp;new vp;Faa(30*Cdc);cE(function(B){return Cxa(2/(1+B))}).invert=sv(function(B){return 2*bE(B/2)}); cE(function(B){return(B=B>1?0:B<-1?Pxa:Math.acos(B))&&B/Gaa(B)}).invert=sv(function(B){return B}); Cxa(3);sv(nob);sv(bE);sv(function(B){return 2*nob(B)}); yx.prototype=St.prototype={constructor:yx,count:function(){return this.eachAfter(wA)}, each:function(B){var J,X=[this],ja;do{var qa=X.reverse();for(X=[];J=qa.pop();)if(B(J),J=J.children){var wa=0;for(ja=J.length;wa=0;--ja)X.push(J[ja]);return this}, sum:function(B){return this.eachAfter(function(J){for(var X=+B(J.data)||0,ja=J.children,qa=ja&&ja.length;--qa>=0;)X+=ja[qa].value;J.value=X})}, sort:function(B){return this.eachBefore(function(J){J.children&&J.children.sort(B)})}, path:function(B){var J=this;var X=J;var ja=B;if(X!==ja){var qa=X.ancestors(),wa=ja.ancestors(),Ba=null;X=qa.pop();for(ja=wa.pop();X===ja;)Ba=X,X=qa.pop(),ja=wa.pop();X=Ba}for(ja=[J];J!==X;)J=J.parent,ja.push(J);for(J=ja.length;B!==X;)ja.splice(J,0,B),B=B.parent;return ja}, ancestors:function(){for(var B=this,J=[B];B=B.parent;)J.push(B);return J}, links:function(){var B=this,J=[];B.each(function(X){X!==B&&J.push({source:X.parent,target:X})}); return J}, copy:function(){return St(this).eachBefore(Haa)}}; (function(B,J){this._=B;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=J}).prototype=Object.create(yx.prototype); var Dxa=new Date,Exa=new Date,oob=Zj(function(){},function(B,J){B.setTime(+B+J)},function(B,J){return J-B}); oob.every=function(B){B=Math.floor(B);return isFinite(B)&&B>0?B>1?Zj(function(J){J.setTime(Math.floor(J/B)*B)},function(J,X){J.setTime(+J+X*B)},function(J,X){return(X-J)/B}):oob:null}; Zj(function(B){B.setTime(Math.floor(B/1E3)*1E3)},function(B,J){B.setTime(+B+J*1E3)},function(B,J){return(J-B)/1E3},function(B){return B.getUTCSeconds()}); Zj(function(B){B.setTime(Math.floor(B/6E4)*6E4)},function(B,J){B.setTime(+B+J*6E4)},function(B,J){return(J-B)/6E4},function(B){return B.getMinutes()}); Zj(function(B){var J=B.getTimezoneOffset()*6E4%36E5;J<0&&(J+=36E5);B.setTime(Math.floor((+B-J)/36E5)*36E5+J)},function(B,J){B.setTime(+B+J*36E5)},function(B,J){return(J-B)/36E5},function(B){return B.getHours()}); var Xnb=Zj(function(B){B.setHours(0,0,0,0)},function(B,J){B.setDate(B.getDate()+J)},function(B,J){return(J-B-(J.getTimezoneOffset()-B.getTimezoneOffset())*6E4)/864E5},function(B){return B.getDate()-1}),sdc=zx(0),Gxa=zx(1); zx(2);zx(3);var Ixa=zx(4);zx(5);zx(6);Zj(function(B){B.setDate(1);B.setHours(0,0,0,0)},function(B,J){B.setMonth(B.getMonth()+J)},function(B,J){return J.getMonth()-B.getMonth()+(J.getFullYear()-B.getFullYear())*12},function(B){return B.getMonth()}); var QO=Zj(function(B){B.setMonth(0,1);B.setHours(0,0,0,0)},function(B,J){B.setFullYear(B.getFullYear()+J)},function(B,J){return J.getFullYear()-B.getFullYear()},function(B){return B.getFullYear()}); QO.every=function(B){return isFinite(B=Math.floor(B))&&B>0?Zj(function(J){J.setFullYear(Math.floor(J.getFullYear()/B)*B);J.setMonth(0,1);J.setHours(0,0,0,0)},function(J,X){J.setFullYear(J.getFullYear()+X*B)}):null}; Zj(function(B){B.setUTCSeconds(0,0)},function(B,J){B.setTime(+B+J*6E4)},function(B,J){return(J-B)/6E4},function(B){return B.getUTCMinutes()}); Zj(function(B){B.setUTCMinutes(0,0,0)},function(B,J){B.setTime(+B+J*36E5)},function(B,J){return(J-B)/36E5},function(B){return B.getUTCHours()}); var Wnb=Zj(function(B){B.setUTCHours(0,0,0,0)},function(B,J){B.setUTCDate(B.getUTCDate()+J)},function(B,J){return(J-B)/864E5},function(B){return B.getUTCDate()-1}),tdc=Ax(0),Fxa=Ax(1); Ax(2);Ax(3);var Jxa=Ax(4);Ax(5);Ax(6);Zj(function(B){B.setUTCDate(1);B.setUTCHours(0,0,0,0)},function(B,J){B.setUTCMonth(B.getUTCMonth()+J)},function(B,J){return J.getUTCMonth()-B.getUTCMonth()+(J.getUTCFullYear()-B.getUTCFullYear())*12},function(B){return B.getUTCMonth()}); var RO=Zj(function(B){B.setUTCMonth(0,1);B.setUTCHours(0,0,0,0)},function(B,J){B.setUTCFullYear(B.getUTCFullYear()+J)},function(B,J){return J.getUTCFullYear()-B.getUTCFullYear()},function(B){return B.getUTCFullYear()}); RO.every=function(B){return isFinite(B=Math.floor(B))&&B>0?Zj(function(J){J.setUTCFullYear(Math.floor(J.getUTCFullYear()/B)*B);J.setUTCMonth(0,1);J.setUTCHours(0,0,0,0)},function(J,X){J.setUTCFullYear(J.getUTCFullYear()+X*B)}):null}; var Vnb={"-":"",_:" ",0:"0"},qn=/^\s*\d+/,rdc=/^%/,qdc=/[\\^$*+?|[\]().{}]/g,Maa;(function(B){Maa=uY(B);Xgb=Maa.utcFormat;Ygb=Maa.utcParse;return Maa})({dateTime:"%x, %X", date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),shortDays:"Sun Mon Tue Wed Thu Fri Sat".split(" "),months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" ")});Date.prototype.toISOString||Xgb("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||Ygb("%Y-%m-%dT%H:%M:%S.%LZ");Be("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"); Be("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");Be("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");Be("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");Be("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");Be("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");Be("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"); Be("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");Be("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");Be("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");Be("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");Be("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var Ddc=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e", "8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Be);Uh(Ddc);var Edc=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837", "40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Be);Uh(Edc);var Fdc=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419", "8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Be);Uh(Fdc);var Gdc=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Be); Uh(Gdc);var Hdc=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Be);Uh(Hdc);var Idc=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040", "ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Be);Uh(Idc);var Jdc=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4", "d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Be);Uh(Jdc);var Kdc=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850", "d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Be);Uh(Kdc);var Ldc=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd", "9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Be);Uh(Ldc);var Mdc=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Be);Uh(Mdc);var Ndc=Array(3).concat("e0ecf49ebcda8856a7", "edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Be);Uh(Ndc);var Odc=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e", "f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Be);Uh(Odc);var Pdc=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Be);Uh(Pdc);var Qdc=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59", "f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Be);Uh(Qdc);var Rdc=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Be);Uh(Rdc);var Sdc=Array(3).concat("e7e1efc994c7dd1c77", "f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Be);Uh(Sdc);var Tdc=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177", "fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Be);Uh(Tdc);var Udc=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Be);Uh(Udc);var Vdc=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837", "ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Be);Uh(Vdc);var Wdc=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Be);Uh(Wdc);var Xdc=Array(3).concat("ffeda0feb24cf03b20", "ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Be);Uh(Xdc);var Ydc=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594", "f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Be);Uh(Ydc);var Zdc=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Be);Uh(Zdc);var $dc=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525", "f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Be);Uh($dc);var aec=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Be);Uh(aec);var bec=Array(3).concat("fee0d2fc9272de2d26", "fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Be);Uh(bec);var cec=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04", "fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Be);Uh(cec);Nxa(If(300,.5,0),If(-240,.5,1));Nxa(If(-100,.75,.35),If(80,1.5,.8));Nxa(If(260,.75,.35),If(80,1.5,.8));If();Hf();Jaa(Be("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")); Jaa(Be("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")); Jaa(Be("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")); Jaa(Be("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")); Kxa.prototype={point:function(B,J){var X=NaN;B=+B;J=+J;if(B!==this._x1||J!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(B,J):this._context.moveTo(B,J);break;case 1:this._point=2;break;case 2:this._point=3;var ja=X=gob(this,B,J),qa=this._x1-this._x0;hob(this,qa?(3*(this._y1-this._y0)/qa-ja)/2:ja,X);break;default:hob(this,this._t0,X=gob(this,B,J));}this._x0=this._x1;this._x1=B;this._y0=this._y1;this._y1=J;this._t0=X}}}; ((function(B){this._context=new iob(B)}).prototype=Object.create(Kxa.prototype)).point=function(B,J){Kxa.prototype.point.call(this,J,B)}; iob.prototype={moveTo:function(B,J){this._context.moveTo(J,B)}, closePath:function(){this._context.closePath()}, lineTo:function(B,J){this._context.lineTo(J,B)}, bezierCurveTo:function(B,J,X,ja,qa,wa){this._context.bezierCurveTo(J,B,ja,X,wa,qa)}}; xY.prototype={constructor:xY,scale:function(B){return B===1?this:new xY(this.k*B,this.x,this.y)}, translate:function(B,J){return B===0&J===0?this:new xY(this.k,this.x+this.k*B,this.y+this.k*J)}, apply:function(B){return[B[0]*this.k+this.x,B[1]*this.k+this.y]}, invert:function(B){return[(B[0]-this.x)/this.k,(B[1]-this.y)/this.k]}, toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}}; new xY(1,0,0);Zgb=Cc;Nt.svg=Nt.svg;Nt.xhtml=Nt.xhtml;Nt.xlink=Nt.xlink;Nt.xml=Nt.xml;Nt.xmlns=Nt.xmlns})();va("safevalues_raw.safeAttrPrefix",Ah);va("safevalues_raw.htmlFragment",function(a){return document.createRange().createContextualFragment(Rb(Pb(a[0])))}); va("safevalues_raw.svgFragment",function(a){var b=document.createElementNS("http://www.w3.org/2000/svg","svg"),c=document.createRange();c.selectNodeContents(b);return c.createContextualFragment(Rb(Pb(a[0])))}); va("safevalues_raw.concatHtmls",Bha);va("safevalues_raw.doctypeHtml",function(){return Pb("")}); va("safevalues_raw.htmlEscape",Bh);va("safevalues_raw.joinHtmls",Cha);va("safevalues_raw.scriptToHtml",function(a,b){a=hc(a).toString();var c=""+a+""))}); va("safevalues_raw.scriptUrlToHtml",function(a,b){a=nb(a).toString();a="")}); va("safevalues_raw.sanitizeHtml",function(a){return Hh(Jh,a)}); va("safevalues_raw.sanitizeHtmlAssertUnchanged",$ha); va("safevalues_raw.sanitizeHtmlToFragment",function(a){var b=document.implementation.createHTMLDocument("");if(Jh.styleElementSanitizer&&Jh.styleAttributeSanitizer){var c=document.createElement("safevalues-with-css");var d=c.attachShadow({mode:"closed"});a=Xha(Jh,a,b);var e=document.createElement("style");e.textContent=":host{display:inline-block;clip-path:inset(0);overflow:hidden;vertical-align:top;text-decoration:inherit}";e.id="safevalues-internal-style";d.appendChild(e);d.appendChild(a);b=b.createDocumentFragment(); b.appendChild(c);c=b}else c=Xha(Jh,a,b);return c}); va("safevalues_raw.HtmlSanitizerBuilder",Kh);va("safevalues_raw.appendParams",eia);va("safevalues_raw.replaceParams",function(a,b){a=dia(nb(a).toString());return fia(a.urlPath,"",a.fragment,b)}); va("safevalues_raw.appendPathSegment",function(a,b){a=dia(nb(a).toString());var c=a.urlPath.slice(-1)==="/"?"":"/";b=a.urlPath+c+encodeURIComponent(b);return kb(b+a.params+a.fragment)}); va("safevalues_raw.objectUrlFromScript",function(a){a=hc(a).toString();return kb(URL.createObjectURL(new Blob([a],{type:"text/javascript"})))}); va("safevalues_raw.replaceFragment",hia);va("safevalues_raw.toAbsoluteResourceUrl",function(a){a=nb(a).toString();a=new URL(a,window.document.baseURI);return kb(a.toString())}); va("safevalues_raw.trustedResourceUrl",Lh);va("safevalues_raw.concatScripts",function(a){return bc(a.map(hc).join(""))}); va("safevalues_raw.safeScript",function(a){return bc(a.join(""))}); va("safevalues_raw.safeScriptWithArgs",function(a){return function(){var b=sa.apply(0,arguments).map(function(c){return iia(c).toString()}); return bc("("+a.join("")+")("+b.join(",")+")")}}); va("safevalues_raw.valueAsScript",iia);va("safevalues_raw.concatStyleSheets",Aha);va("safevalues_raw.safeStyleSheet",function(a){return rc(a[0])}); va("safevalues_raw.addJavaScriptUrlSanitizationCallback",function(a){Ib.indexOf(a)===-1&&Ib.push(a);wba=function(b){Ib.forEach(function(c){c(b)})}}); va("safevalues_raw.objectUrlFromSafeSource",Gb);va("safevalues_raw.removeJavaScriptUrlSanitizationCallback",function(a){a=Ib.indexOf(a);a!==-1&&Ib.splice(a,1)}); va("safevalues_raw.safeUrl",xba);va("safevalues_raw.SanitizableUrlScheme",Db);va("safevalues_raw.sanitizeUrl",Fb);va("safevalues_raw.trySanitizeUrl",Eb);va("safevalues_raw.SafeAttributePrefix",lc);va("safevalues_raw.unwrapAttributePrefix",Oba);va("safevalues_raw.EMPTY_HTML",Hba);va("safevalues_raw.isHtml",Qb);va("safevalues_raw.SafeHtml",Ob);va("safevalues_raw.unwrapHtml",Rb);va("safevalues_raw.isResourceUrl",lb);va("safevalues_raw.TrustedResourceUrl",gb);va("safevalues_raw.unwrapResourceUrl",nb); va("safevalues_raw.EMPTY_SCRIPT",Mba);va("safevalues_raw.isScript",cc);va("safevalues_raw.SafeScript",ac);va("safevalues_raw.unwrapScript",hc);va("safevalues_raw.isStyleSheet",Tba);va("safevalues_raw.SafeStyleSheet",qc);va("safevalues_raw.unwrapStyleSheet",sc);va("safevalues_raw.ABOUT_BLANK",uba);va("safevalues_raw.INNOCUOUS_URL",ub);va("safevalues_raw.isUrl",wb);va("safevalues_raw.SafeUrl",rb);va("safevalues_raw.unwrapUrl",xb);va("safevalues_raw.reportOnlyHtmlPassthrough",lia); va("safevalues_raw.HtmlFormatter",Dh);va("safevalues_raw.createHtml",Iha);va("safevalues_raw.styleSheetToHtml",function(a,b){var c={};if(b)for(var d=Object.keys(b),e=0;e"+a+"")}); va("safevalues_raw.safeStyleRule",function(a){for(var b=sa.apply(1,arguments),c=a[0],d=0;d1?c[1]=1:c[1]<=0&&(c[1]=0),Yc(c[0],c[1],c[2])} function Zc(c,a){c=qc(255*c[0],255*c[1],255*c[2]);return c[2]+=a,c[2]>1?c[2]=1:c[2]<0&&(c[2]=0),Yc(c[0],c[1],c[2])} function $c(c,a){c=qc(255*c[0],255*c[1],255*c[2]);return c[0]+=a/360,c[0]>1?--c[0]:c[0]<0&&(c[0]+=1),Yc(c[0],c[1],c[2])} function X(c){return document.createElementNS("http://www.w3.org/2000/svg",c)} function W(c){return W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},W(c)} function Ic(){} function rc(c){return rc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},rc(c)} function vd(c,a){var b,d=this.offsetTime;"multidimensional"===this.propType&&(b=la("float32",this.pv.length));for(var e,f,k,n,h,g,q,r,v=a.lastIndex,p=v,l=this.keyframes.length-1,m=!0;m;){if(e=this.keyframes[p],f=this.keyframes[p+1],p===l-1&&c>=f.t-d){e.h&&(e=f);v=0;break}if(f.t-d>c){v=p;break}p=m||c=m?u.points.length- 1:0;h=u.points[w].point.length;for(n=0;n= w&&n=m)b[0]=t[0],b[1]=t[1],b[2]=t[2];else if(c<=d)b[0]=e.s[0],b[1]=e.s[1],b[2]=e.s[2];else{k=sc(e.s);g=sc(t);p=b;m=(c-d)/(m-d);d=[];e=k[0];r=k[1]; f=k[2];k=k[3];l=g[0];var K=g[1];var J=g[2];g=g[3];c=((w=e*l+r*K+f*J+k*g)<0&&(w=-w,l=-l,K=-K,J=-J,g=-g),1-w>1E-6?(u=Math.acos(w),q=Math.sin(u),n=Math.sin((1-m)*u)/q,h=Math.sin(m*u)/q):(n=1-m,h=m),d[0]=n*e+h*l,d[1]=n*r+h*K,d[2]=n*f+h*J,d[3]=n*k+h*g,d);u=c[0];w=c[1];q=c[2];c=c[3];n=Math.atan2(2*w*c-2*u*q,1-2*w*w-2*q*q);h=Math.asin(2*u*w+2*q*c);u=Math.atan2(2*u*c-2*w*q,1-2*u*u-2*q*q);p[0]=n/qa;p[1]=h/qa;p[2]=u/qa}}else for(p=0;p=m?g=1:c=b&&c>=b||this._caching.lastFrame=c&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0),this.pv=a=this.interpolateValue(c,this._caching));return this._caching.lastFrame=c,this.pv} function tc(c){if("unidimensional"===this.propType){var a=c*this.mult;pd(this.v-a)>1E-5&&(this.v=a,this._mdf=!0)}else for(var b=0,d=this.v.length;b1E-5&&(this.v[b]=a,this._mdf=!0),b+=1} function uc(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var c;this.lock=!0;this._mdf=this._isFirstFrame;var a=this.effectsSequence.length,b=this.kf?this.pv:this.data.k;for(c=0;cd){var e=d;d=b;b=e}e=3*c.a[a];var f=2*c.b[a],k=c.c[a];0===e?e=[]:(k=f*f-4*e*k,k<0?e=[]:(f=-f/(2*e),0===k?e=[f]:(e=Math.sqrt(k)/(2*e),e=[f-e,f+e])));for(f=0;f0&&e[f]<1&&(k=c.point(e[f])[a],kd&&(d=k));return{min:b,max:d}} function xc(c,a,b){var d=c.boundingBox();return{cx:d.cx,cy:d.cy,width:d.width,height:d.height,bez:c,t:(a+b)/2,t1:a,t2:b}} function wa(c){var a=c.bez.split(.5);return[xc(a[0],c.t1,c.t),xc(a[1],c.t,c.t2)]} function ec(c,a,b,d,e,f){2*Math.abs(c.cx-a.cx)=f||c.width<=d&&c.height<=d&&a.width<=d&&a.height<=d?e.push([c.t,a.t]):(c=wa(c),a=wa(a),ec(c[0],a[0],b+1,d,e,f),ec(c[0],a[1],b+1,d,e,f),ec(c[1],a[0],b+1,d,e,f),ec(c[1],a[1],b+1,d,e,f)))} function fc(c,a){return[c[1]*a[2]-c[2]*a[1],c[2]*a[0]-c[0]*a[2],c[0]*a[1]-c[1]*a[0]]} function yc(c,a,b,d){b=[b[0],b[1],1];d=[d[0],d[1],1];c=fc(fc([c[0],c[1],1],[a[0],a[1],1]),fc(b,d));return Math.abs(c[2])<=1E-5?null:[c[0]/c[2],c[1]/c[2]]} function gb(c,a,b){return[c[0]+Math.cos(a)*b,c[1]-Math.sin(a)*b]} function zc(c,a){return Math.hypot(c[0]-a[0],c[1]-a[1])} function mb(c,a){return vb(c[0],a[0])&&vb(c[1],a[1])} function hb(){} function Mc(c,a,b,d,e,f,k){var n=b-Math.PI/2,h=b+Math.PI/2,g=a[0]+Math.cos(b)*d*e;a=a[1]-Math.sin(b)*d*e;c.setTripleAt(g,a,g+Math.cos(n)*f,a-Math.sin(n)*f,g+Math.cos(h)*k,a-Math.sin(h)*k,c.length())} function Fb(c,a,b,d,e,f,k){var n,h,g=0===b?a.length()-1:b-1,q=(b+1)%a.length();g=a.v[g];q=a.v[q];q=(n=[q[0]-g[0],q[1]-g[1]],h=.5*-Math.PI,[Math.cos(h)*n[0]-Math.sin(h)*n[1],Math.sin(h)*n[0]+Math.cos(h)*n[1]]);n=Math.atan2(0,1)-Math.atan2(q[1],q[0]);h=a.v[b%a._length];g=a.v[0===b?a._length-1:b-1];q=a.v[(b+1)%a._length];g=2===f?Math.sqrt(Math.pow(h[0]-g[0],2)+Math.pow(h[1]-g[1],2)):0;f=2===f?Math.sqrt(Math.pow(h[0]-q[0],2)+Math.pow(h[1]-q[1],2)):0;Mc(c,a.v[b%a._length],n,k,d,f/(2*(e+1)),g/(2*(e+1)))} function Gb(c,a,b){var d=Math.atan2(a[0]-c[0],a[1]-c[1]);return[gb(c,d,b),gb(a,d,b)]} function Hb(c,a){var b;var d=(b=Gb(c.points[0],c.points[1],a))[0];var e=b[1];var f=(b=Gb(c.points[1],c.points[2],a))[0];var k=b[1];c=(b=Gb(c.points[2],c.points[3],a))[0];b=b[1];a=yc(d,e,f,k);null===a&&(a=e);e=yc(c,b,f,k);return null===e&&(e=c),new ma(d,a,e,b)} function ed(c,a,b,d,e){var f=a.points[3],k=b.points[0];return 3===d||mb(f,k)?f:2===d?(e=-a.tangentAngle(1),b=-b.tangentAngle(0)+Math.PI,a=(a=yc(f,gb(f,e+Math.PI/2,100),k,gb(k,e+Math.PI/2,100)))?zc(a,f):zc(f,k)/2,f=gb(f,e,2*a*Bb),c.setXYAt(f[0],f[1],"o",c.length()-1),f=gb(k,b,2*a*Bb),c.setTripleAt(k[0],k[1],k[0],k[1],f[0],f[1],c.length()),k):(k=yc(mb(f,a.points[2])?a.points[0]:a.points[2],f,k,mb(k,b.points[1])?b.points[3]:b.points[1]))&&zc(k,f)1&&a.length>1&&(e=Nc(c[0],a[a.length-1]))?[[c[0].split(e[0])[0]],[a[a.length-1].split(e[1])[1]]]:[b,d]} function fd(c,a){var b,d,e,f,k=c.inflectionPoints();if(0===k.length)return[Hb(c,a)];if(1===k.length||vb(k[1],1))return b=(e=c.split(k[0]))[0],d=e[1],[Hb(b,a),Hb(d,a)];b=(e=c.split(k[0]))[0];c=(k[1]-k[0])/(1-k[0]);return f=(e=e[1].split(c))[0],d=e[1],[Hb(b,a),Hb(f,a),Hb(d,a)]} function hc(){} function gd(c){for(var a=c.fStyle?c.fStyle.split(" "):[],b="normal",d="normal",e=a.length,f=0;f0&&(this.maskElement.setAttribute("id",v),this.element.maskedElement.setAttribute(l,"url("+Ma+"#"+v+")"),b.appendChild(this.maskElement));this.viewData.length&&this.element.addRenderableComponent(this)} function La(c){var a,b="SourceGraphic",d=c.data.ef?c.data.ef.length:0,e=Ca(),f=bc.createFilter(e,!0),k=0;this.filters=[];for(a=0;a=0;--G)if("sh"===F[G].ty){if(F[G].ks.k.i)l(F[G].ks.k);else{var z=F[G].ks.k.length;for(B=0;BG[0]||!(G[0]>F[0])&&(F[1]>G[1]||!(G[1]>F[1])&&(F[2]>G[2]||!(G[2]>F[2])&&null))} var t,u=function(){function F(B){var z,y,C,N=B.length;for(z=0;z=0;--y)if("sh"===z[y].ty){if(z[y].ks.k.i)z[y].ks.k.c=z[y].closed;else{var N=z[y].ks.k.length;for(C=0;C500)&&(this._imageLoaded(),clearInterval(g));h+=1}.bind(this),50)} function e(n){var h={assetData:n};n=b(n,this.assetsPath,this.path);return ra.loadData(n,function(g){h.img=g;this._footageLoaded()}.bind(this),function(){h.img={}; this._footageLoaded()}.bind(this)),h} function f(){this._imageLoaded=c.bind(this);this._footageLoaded=a.bind(this);this.testImageLoaded=d.bind(this);this.createFootageData=e.bind(this);this.path=this.assetsPath="";this.loadedFootagesCount=this.loadedAssets=this.totalFootages=this.totalImages=0;this.imagesLoadedCb=null;this.images=[]} var k=function(){var n=document.createElement("canvas");n.width=1;n.height=1;var h=n.getContext("2d");return h.fillStyle="rgba(0,0,0,0)",h.fillRect(0,0,1,1),n}(); return f.prototype={loadAssets:function(n,h){this.imagesLoadedCb=h;var g=n.length;for(h=0;hthis.animationData.op&&(this.animationData.op=c.op,this.totalFrames=Math.floor(c.op-this.animationData.ip));var a,b,d=this.animationData.layers,e=d.length,f=c.layers,k=f.length;for(b=0;bthis.timeCompleted&&(this.currentFrame=this.timeCompleted);this.trigger("enterFrame");this.renderFrame();this.trigger("drawnFrame")}; U.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(c){this.triggerRenderFrameError(c)}}; U.prototype.play=function(c){c&&this.name!==c||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))}; U.prototype.pause=function(c){c&&this.name!==c||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())}; U.prototype.togglePause=function(c){c&&this.name!==c||(!0===this.isPaused?this.play():this.pause())}; U.prototype.stop=function(c){c&&this.name!==c||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))}; U.prototype.getMarkerData=function(c){for(var a,b=0;b=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?c>=this.totalFrames?(this.playCount+=1,this.checkSegments(c%this.totalFrames)||(this.setCurrentRawFrameValue(c%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(c):this.checkSegments(c>this.totalFrames?c%this.totalFrames:0)||(a=!0,c=this.totalFrames- 1):c<0?this.checkSegments(c%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(a=!0,c=0):(this.setCurrentRawFrameValue(this.totalFrames+c%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(c);a&&(this.setCurrentRawFrameValue(c),this.pause(),this.trigger("complete"))}}; U.prototype.adjustSegment=function(c,a){this.playCount=0;c[1]0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=c[0]-c[1],this.timeCompleted=this.totalFrames,this.firstFrame=c[1],this.setCurrentRawFrameValue(this.totalFrames-.001-a)):c[1]>c[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=c[1]-c[0],this.timeCompleted=this.totalFrames,this.firstFrame=c[0],this.setCurrentRawFrameValue(.001+ a));this.trigger("segmentStart")}; U.prototype.setSegment=function(c,a){var b=-1;this.isPaused&&(this.currentRawFrame+this.firstFramea&&(b=a-c));this.firstFrame=c;this.timeCompleted=this.totalFrames=a-c;-1!==b&&this.goToAndStop(b,!0)}; U.prototype.playSegments=function(c,a){if(a&&(this.segments.length=0),"object"===rc(c[0])){var b,d=c.length;for(b=0;b=0;--t)g[t].animation.destroy(m)},h.freeze=function(){l=!0},h.unfreeze=function(){l=!1; n()},h.setVolume=function(m,t){var u; for(u=0;u=.001?function(q,r,v,p){for(var l=0;l<4;++l){var m=3*(1-3*p+3*v)*r*r+2*(3*p-6*v)*r+3*v;if(0===m)break;r-=(c(r,v,p)-q)/m}return r}(e,n,f,k):0===g?n:function(q,r,v,p,l){var m,t,u=0; do(m=c(t=r+(v-r)/2,p,l)-q)>0?v=t:r=t;while(Math.abs(m)>1e-7&&++u<10);return t}(e,h,h+.1,f,k)}},{getBezierEasing:function(e,f,k,n,h){h=h||("bez_"+e+"_"+f+"_"+k+"_"+n).replace(/\./g,"p"); if(b[h])return b[h];e=new a([e,f,k,n]);return b[h]=e,e}}}(),T={double:function(c){return c.concat(ta(c.length))}},va=function(c,a,b){var d=0,e=c,f=ta(e); return{newElement:function(){return d?f[--d]:a()}, release:function(k){d===e&&(f=T.double(f),e*=2);b&&b(k);f[d]=k;d+=1}}},cc=va(8,function(){return{addedLength:0, percents:la("float32",sb),lengths:la("float32",sb)}}),od=va(8,function(){return{lengths:[], totalLength:0}},function(c){var a,b=c.lengths.length; for(a=0;a-.001&&g<.001} function a(g){this.segmentLength=0;this.points=Array(g)} function b(g,q){this.partialLength=g;this.point=q} function d(g,q){var r=q.percents,v=q.lengths,p=r.length,l=Ab((p-1)*g);g*=q.addedLength;q=0;if(l===p-1||0===l||g===v[l])return r[l];for(var m=v[l]>g?-1:1,t=!0;t;)if(v[l]<=g&&v[l+1]>g?(q=(g-v[l])/(v[l+1]-v[l]),t=!1):l+=m,l<0||l>=p-1){if(l===p-1)return r[l];t=!1}return r[l]+(r[l+1]-r[l])*q} var e=Math,f=function(g,q,r,v){var p,l,m,t=sb,u=0,w=[],x=[],D=cc.newElement();var K=r.length;for(p=0;p1&&(p=1);var t=d(p,m);var u=d(l>1?1:l,m);l=g.length;var w=1-t,x=1-u;m=w*w*w;p=t*w*w*3;var D=t*t*w*3,K=t*t*t,J=w*w*x,F=t*w*x+w*t*x+w*w*u,G=t*t*x+w*t*u+t*w*u,B=t*t*u,z=w*x*x,y=t*x*x+w*u*x+w*x*u;w=t*u*x+w*u*u+t*x*u;t=t*u*u;var C=x*x*x,N=u*x*x+x*u*x+x*x*u;x=u*u*x+x*u*u+u*x*u;var P=u*u*u;for(u=0;ug?x>v?x-g-v:v-g-x:v>g?v-g-x:g-x-v)>-1E-4&&w<1E-4}}}(),Mb=Rc,pd=Math.abs,Q={getProp:function(c,a,b,d,e){if(a.sid&&(a=c.globalData.slotManager.getProp(a)),a.k.length){if("number"==typeof a.k[0])var f=new Lc(c,a,d,e);else switch(b){case 0:f=new Fd(c,a,d,e);break;case 1:f=new Gd(c,a,d,e);}}else f=new Kc(c,a,d,e);return f.effectsSequence.length&&e.addDynamicProperty(f),f}}; Pa.prototype={addDynamicProperty:function(c){-1===this.dynamicProperties.indexOf(c)&&(this.dynamicProperties.push(c),this.container.addDynamicProperty(this),this._isAnimated=!0)}, iterateDynamicProperties:function(){var c;this._mdf=!1;var a=this.dynamicProperties.length;for(c=0;c=this._maxLength&&this.doubleArrayLength(),b){case"v":b=this.v;break;case"i":b=this.i;break;case"o":b=this.o;break;default:b=[];}(!b[d]||b[d]&&!e)&&(b[d]=Ya.newElement());b[d][0]=c;b[d][1]=a}; lb.prototype.setTripleAt=function(c,a,b,d,e,f,k,n){this.setXYAt(c,a,"v",k,n);this.setXYAt(b,d,"o",k,n);this.setXYAt(e,f,"i",k,n)}; lb.prototype.reverse=function(){var c=new lb;c.setPathData(this.c,this._length);var a=this.v,b=this.o,d=this.i,e=0;this.c&&(c.setTripleAt(a[0][0],a[0][1],d[0][0],d[0][1],b[0][0],b[0][1],0,!1),e=1);for(var f=this._length-1,k=this._length;e=w[w.length-1].t-this.offsetTime)v=w[w.length-1].s?w[w.length-1].s[0]:w[w.length-2].e[0],w=!0;else{var x;var D=u;u=w.length-1;for(x=!0;x&&(m=w[D],!((t=w[D+1]).t-this.offsetTime>v));)D=t.t-this.offsetTime)var K=1;else if(vl&&v>l)||(this._caching.lastIndex=m0||H>-1E-6&&H<0?S(1E4*H)/1E4:H} function N(){var H=this.props;return"matrix("+C(H[0])+","+C(H[1])+","+C(H[4])+","+C(H[5])+","+C(H[12])+","+C(H[13])+")"} var P=Math.cos,ea=Math.sin,ia=Math.tan,S=Math.round;return function(){this.reset=c;this.rotate=a;this.rotateX=b;this.rotateY=d;this.rotateZ=e;this.skew=k;this.skewFromAxis=n;this.shear=f;this.scale=h;this.setTransform=g;this.translate=q;this.transform=r;this.multiply=v;this.applyToPoint=u;this.applyToX=w;this.applyToY=x;this.applyToZ=D;this.applyToPointArray=B;this.applyToTriplePoints=G;this.applyToPointStringified=z;this.toCSS=y;this.to2dCSS=N;this.clone=m;this.cloneFromProps=t;this.equals=l;this.inversePoints= F;this.inversePoint=J;this.getInverseMatrix=K;this._t=this.transform;this.isIdentity=p;this._identity=!0;this._identityCalculated=!1;this.props=la("float32",16);this.reset()}}(),ka={}; ka.play=Na.play;ka.pause=Na.pause;ka.setLocationHref=function(c){Ma=c}; ka.togglePause=Na.togglePause;ka.setSpeed=Na.setSpeed;ka.setDirection=Na.setDirection;ka.stop=Na.stop;ka.searchAnimations=fb;ka.registerAnimation=Na.registerAnimation;ka.loadAnimation=function(c){return Na.loadAnimation(c)}; ka.setSubframeRendering=function(c){nd=!!c}; ka.resize=Na.resize;ka.goToAndStop=Na.goToAndStop;ka.destroy=Na.destroy;ka.setQuality=function(c){if("string"==typeof c)switch(c){case"high":sb=200;break;default:case"medium":sb=50;break;case"low":sb=10;}else!isNaN(c)&&c>1&&(sb=c)}; ka.inBrowser=function(){return"undefined"!=typeof navigator}; ka.installPlugin=function(c,a){"expressions"===c&&(Lb=a)}; ka.freeze=Na.freeze;ka.unfreeze=Na.unfreeze;ka.setVolume=Na.setVolume;ka.mute=Na.mute;ka.unmute=Na.unmute;ka.getRegisteredAnimations=Na.getRegisteredAnimations;ka.useWebWorker=function(c){Qc=!!c}; ka.setIDPrefix=function(c){Ad=c}; ka.__getFactory=function(c){switch(c){case"propertyFactory":return Q;case"shapePropertyFactory":return ja;case"matrix":return Ja;default:return null;}}; ka.version="5.12.2";var bd="",cd=document.getElementsByTagName("script"),qd=cd[cd.length-1]||{src:""};bd=qd.src?qd.src.replace(/^[^\?]+\??/,""):"";(function(c){for(var a=bd.split("&"),b=0;b=1?f.push({s:c-1,e:a-1}):(f.push({s:c,e:1}),f.push({s:0,e:a-1}));var k;a=[];var n=f.length;for(c=0;cd+b)){var h=k.s*e<=d?0:(k.s*e-d)/b;var g=k.e*e>=d+b?1:(k.e*e-d)/b;a.push([h,g])}return a.length||a.push([0,0]),a}; Za.prototype.releasePathsData=function(c){var a,b=c.length;for(a=0;a1?1+e:this.s.v<0?0+e:this.s.v+e)>(b=this.e.v>1?1+e:this.e.v<0?0+e:this.e.v+e))e=a,a=b,b=e;a=1E-4*Math.round(1E4*a);b=1E-4*Math.round(1E4*b);this.sValue=a;this.eValue=b}else a=this.sValue,b=this.eValue;var f,k,n,h=this.shapes.length,g=0;if(b===a)for(e=0;e=0;--e)if((q=this.shapes[e]).shape._mdf){(c=q.localShapeCollection).releaseShapes();2===this.m&&h>1?(l=this.calculateShapeEdges(a,b,q.totalShapeLength,p,g),p+=q.totalShapeLength):l=[[d,v]];k=l.length;for(f=0;f=1?r.push({s:q.totalShapeLength*(d-1),e:q.totalShapeLength*(v-1)}):(r.push({s:q.totalShapeLength* d,e:q.totalShapeLength}),r.push({s:0,e:q.totalShapeLength*(v-1)})),n=this.addShapes(q,r[0]),r[0].s!==r[0].e){if(r.length>1)if(q.shape.paths.shapes[q.shape.paths._length-1].c){var m=n.pop();this.addPaths(n,c);n=this.addShapes(q,r[1],m)}else this.addPaths(n,c),n=this.addShapes(q,r[1]);this.addPaths(n,c)}q.shape.paths=c}}}; Za.prototype.addPaths=function(c,a){var b,d=c.length;for(b=0;ba.e){b.c=!1;break}a.s<=r&&a.e>=r+e.addedLength?(this.addSegment(g[c].v[d-1],g[c].o[d-1],g[c].i[d],g[c].v[d],b,f,p),p=!1):(k=Xa.getNewSegment(g[c].v[d- 1],g[c].v[d],g[c].o[d-1],g[c].i[d],(a.s-r)/e.addedLength,(a.e-r)/e.addedLength,l[d-1]),this.addSegmentFromArray(k,b,f,p),p=!1,b.c=!1);r+=e.addedLength;f+=1}g[c].c&&l.length&&((e=l[d-1],r<=a.e)?(m=l[d-1].addedLength,a.s<=r&&a.e>=r+m?(this.addSegment(g[c].v[d-1],g[c].o[d-1],g[c].i[0],g[c].v[0],b,f,p),p=!1):(k=Xa.getNewSegment(g[c].v[d-1],g[c].v[0],g[c].o[d-1],g[c].i[0],(a.s-r)/m,(a.e-r)/m,l[d-1]),this.addSegmentFromArray(k,b,f,p),p=!1,b.c=!1)):b.c=!1,r+=e.addedLength,f+=1);if(b._length&&(b.setXYAt(b.v[n][0], b.v[n][1],"i",n),b.setXYAt(b.v[b._length-1][0],b.v[b._length-1][1],"o",b._length-1)),r>a.e)break;c=this.p.keyframes[this.p.keyframes.length-1].t?(d=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/b,0),e=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/b,0)):(d=this.p.pv,e=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/b,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){d=[];e=[];var f=this.px,k=this.py;f._caching.lastFrame+f.offsetTime<= f.keyframes[0].t?(d[0]=f.getValueAtTime((f.keyframes[0].t+.01)/b,0),d[1]=k.getValueAtTime((k.keyframes[0].t+.01)/b,0),e[0]=f.getValueAtTime(f.keyframes[0].t/b,0),e[1]=k.getValueAtTime(k.keyframes[0].t/b,0)):f._caching.lastFrame+f.offsetTime>=f.keyframes[f.keyframes.length-1].t?(d[0]=f.getValueAtTime(f.keyframes[f.keyframes.length-1].t/b,0),d[1]=k.getValueAtTime(k.keyframes[k.keyframes.length-1].t/b,0),e[0]=f.getValueAtTime((f.keyframes[f.keyframes.length-1].t-.01)/b,0),e[1]=k.getValueAtTime((k.keyframes[k.keyframes.length- 1].t-.01)/b,0)):(d=[f.pv,k.pv],e[0]=f.getValueAtTime((f._caching.lastFrame+f.offsetTime-.01)/b,f.offsetTime),e[1]=k.getValueAtTime((k._caching.lastFrame+k.offsetTime-.01)/b,k.offsetTime))}else d=e=a;this.v.rotate(-Math.atan2(d[1]-e[1],d[0]-e[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}, precalculateMatrix:function(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v);this.appliedTransformations=3}this.r?this.r.effectsSequence.length||( this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}}, autoOrient:function(){}},R([Pa],c),c.prototype.addDynamicProperty=function(b){this._addDynamicProperty(b); this.elem.addDynamicProperty(b);this._isDirty=!0},c.prototype._addDynamicProperty=Pa.prototype.addDynamicProperty,{getTransformProperty:function(b,d,e){return new c(b,d,e)}}}(); R([Ta],za);za.prototype.initModifierProperties=function(c,a){this.getValue=this.processKeys;this.c=Q.getProp(c,a.c,0,null,this);this.o=Q.getProp(c,a.o,0,null,this);this.tr=rd.getTransformProperty(c,a.tr,this);this.so=Q.getProp(c,a.tr.so,0,.01,this);this.eo=Q.getProp(c,a.tr.eo,0,.01,this);this.data=a;this.dynamicProperties.length||this.getValue(!0);this._isAnimated=!!this.dynamicProperties.length;this.pMatrix=new Ja;this.rMatrix=new Ja;this.sMatrix=new Ja;this.tMatrix=new Ja;this.matrix=new Ja}; za.prototype.applyTransforms=function(c,a,b,d,e,f){var k=f?-1:1,n=d.s.v[0]+(1-d.s.v[0])*(1-e),h=d.s.v[1]+(1-d.s.v[1])*(1-e);c.translate(d.p.v[0]*k*e,d.p.v[1]*k*e,d.p.v[2]);a.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]);a.rotate(-d.r.v*k*e);a.translate(d.a.v[0],d.a.v[1],d.a.v[2]);b.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]);b.scale(f?1/n:n,f?1/h:h);b.translate(d.a.v[0],d.a.v[1],d.a.v[2])}; za.prototype.init=function(c,a,b,d){this.elem=c;this.arr=a;this.pos=b;this.elemsData=d;this._currentCopies=0;this._elements=[];this._groups=[];this.frameId=-1;this.initDynamicPropertyContainer(c);for(this.initModifierProperties(c,a[b]);b>0;)--b,this._elements.unshift(a[b]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)}; za.prototype.resetElements=function(c){var a,b=c.length;for(a=0;a0?Math.floor(c):Math.ceil(c);e=this.pMatrix.props;f=this.rMatrix.props;k=this.sMatrix.props;this.pMatrix.reset();this.rMatrix.reset();this.sMatrix.reset();this.tMatrix.reset();this.matrix.reset(); var h,g,q=0;if(c>0){for(;qn;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),--q;b&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-b,!0),q-=b)}c=1===this.data.m?0:this._currentCopies-1;var r=1===this.data.m?1:-1;for(b=this._currentCopies;b;){if(g=(n=(a=this.elemsData[c].it)[a.length- 1].transform.mProps.v.props).length,a[a.length-1].transform.mProps._mdf=!0,a[a.length-1].transform.op._mdf=!0,a[a.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(c/(this._currentCopies-1)),0!==q){(0!==c&&1===r||c!==this._currentCopies-1&&-1===r)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1);this.matrix.transform(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8],f[9],f[10],f[11],f[12],f[13],f[14],f[15]);this.matrix.transform(k[0], k[1],k[2],k[3],k[4],k[5],k[6],k[7],k[8],k[9],k[10],k[11],k[12],k[13],k[14],k[15]);this.matrix.transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]);for(h=0;h0&&c<1?[a]:[]:[a-c,a+c].filter(function(b){return b>0&&b<1})}; ma.prototype.split=function(c){if(c<=0)return[wc(this.points[0]),this];if(c>=1)return[this,wc(this.points[this.points.length-1])];var a=Qa(this.points[0],this.points[1],c),b=Qa(this.points[1],this.points[2],c),d=Qa(this.points[2],this.points[3],c),e=Qa(a,b,c);b=Qa(b,d,c);c=Qa(e,b,c);return[new ma(this.points[0],a,e,c,!0),new ma(c,b,d,this.points[3],!0)]}; ma.prototype.bounds=function(){return{x:dd(this,0),y:dd(this,1)}}; ma.prototype.boundingBox=function(){var c=this.bounds();return{left:c.x.min,right:c.x.max,top:c.y.min,bottom:c.y.max,width:c.x.max-c.x.min,height:c.y.max-c.y.min,cx:(c.x.max+c.x.min)/2,cy:(c.y.max+c.y.min)/2}}; ma.prototype.intersections=function(c,a,b){void 0===a&&(a=2);void 0===b&&(b=7);var d=[];return ec(xc(this,0,1),xc(c,0,1),0,a,d,b),d}; ma.shapeSegment=function(c,a){var b=(a+1)%c.length();return new ma(c.v[a],c.o[a],c.i[b],c.v[b],!0)}; ma.shapeSegmentInverted=function(c,a){var b=(a+1)%c.length();return new ma(c.v[b],c.i[b],c.o[a],c.v[a],!0)}; R([Ta],hb);hb.prototype.initModifierProperties=function(c,a){this.getValue=this.processKeys;this.amplitude=Q.getProp(c,a.s,0,null,this);this.frequency=Q.getProp(c,a.r,0,null,this);this.pointsType=Q.getProp(c,a.pt,0,null,this);this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length}; hb.prototype.processPath=function(c,a,b,d){var e=c._length,f=O.newElement();if(f.c=c.c,c.c||--e,0===e)return f;var k=-1,n=ma.shapeSegment(c,0);Fb(f,c,0,a,b,d,k);for(var h=0;h=0;--f)h=ma.shapeSegmentInverted(c,f),n.push(fd(h,a));f=n;for(n=1;n1&&(g=Ib(f[f.length-1],f[0]),f[f.length-1]=g[0],f[0]=g[1]),f);a=c=null;for(f=0;f=55296&&q<=56319&&(h=h.charCodeAt(1),h>=56320&&h<=57343&&(g=1024*(q-55296)+h-56320+65536));return g} function d(h){h=b(h);return h>=127462&&h<=127487} var e={w:0,size:0,shapes:[],data:{shapes:[]}},f=[];f=f.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var k=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],n=function(){this.fonts=[];this.chars=null;this.typekitLoaded=0;this._warned=this.isLoaded=!1;this.initTime=Date.now();this.setIsLoadedBinded=this.setIsLoaded.bind(this);this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)}; n.isModifier=function(h,g){h=h.toString(16)+g.toString(16);return-1!==k.indexOf(h)}; n.isZeroWidthJoiner=function(h){return 8205===h}; n.isFlagEmoji=function(h){return d(h.substr(0,2))&&d(h.substr(2,2))}; n.isRegionalCode=d;n.isCombinedCharacter=function(h){return-1!==f.indexOf(h)}; n.isRegionalFlag=function(h,g){var q=b(h.substr(g,2));if(q!==127988)return!1;var r=0;for(g+=2;r<5;){if((q=b(h.substr(g,2)))<917601||q>917626)return!1;r+=1;g+=2}return 917631===b(h.substr(g,2))}; n.isVariationSelector=function(h){return 65039===h}; n.BLACK_FLAG_CODE_POINT=127988;return n.prototype={addChars:function(h){if(h){var g;this.chars||(this.chars=[]);var q,r=h.length,v=this.chars.length;for(g=0;g0&&(m=!1),m)p=document.createElement("style"),p.setAttribute("f-forigin",q[h].fOrigin),p.setAttribute("f-origin",q[h].origin),p.setAttribute("f-family", q[h].fFamily),p.type="text/css",p.innerText="@font-face {font-family: "+q[h].fFamily+"; font-style: normal; src: url('"+q[h].fPath+"');}",g.appendChild(p)}else if("g"===q[h].fOrigin||1===q[h].origin){p=document.querySelectorAll("link[f-forigin=\"g\"], link[f-origin=\"1\"]");for(l=0;lc?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())}, renderRenderable:function(){var c,a=this.renderableComponents.length;for(c=0;c.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))}; Aa.prototype.show=function(){}; Aa.prototype.hide=function(){this.audio.pause();this._isPlaying=!1}; Aa.prototype.pause=function(){this.audio.pause();this._canPlay=this._isPlaying=!1}; Aa.prototype.resume=function(){this._canPlay=!0}; Aa.prototype.setRate=function(c){this.audio.rate(c)}; Aa.prototype.volume=function(c){this._volumeMultiplier=c;this._previousVolume=c*this._volume;this.audio.volume(this._previousVolume)}; Aa.prototype.getBaseElement=function(){return null}; Aa.prototype.destroy=function(){}; Aa.prototype.sourceRectAtTime=function(){}; Aa.prototype.initExpressions=function(){}; ua.prototype.checkLayers=function(c){var a;var b=this.layers.length;this.completeLayers=!0;for(--b;b>=0;--b)this.elements[b]||(a=this.layers[b]).ip-a.st<=c-this.layers[b].st&&a.op-a.st>c-this.layers[b].st&&this.buildItem(b),this.completeLayers=!!this.elements[b]&&this.completeLayers;this.checkPendingElements()}; ua.prototype.createItem=function(c){switch(c.ty){case 2:return this.createImage(c);case 0:return this.createComp(c);case 1:return this.createSolid(c);default:return this.createNull(c);case 4:return this.createShape(c);case 5:return this.createText(c);case 6:return this.createAudio(c);case 13:return this.createCamera(c);case 15:return this.createFootage(c);}}; ua.prototype.createCamera=function(){throw Error("You're using a 3d camera. Try the html renderer.")}; ua.prototype.createAudio=function(c){return new Aa(c,this.globalData,this)}; ua.prototype.createFootage=function(c){return new $a(c,this.globalData,this)}; ua.prototype.buildAllItems=function(){var c,a=this.layers.length;for(c=0;c1&&(e+=" C"+a.o[d-1][0]+","+a.o[d-1][1]+" "+a.i[0][0]+","+a.i[0][1]+" "+a.v[0][0]+","+a.v[0][1]),b.lastPath!==e)d="",b.elem&&(a.c&&(d=c.inv?this.solidPath+e:e),b.elem.setAttribute("d",d)),b.lastPath=e}; Fa.prototype.destroy=function(){this.masksProperties=this.data=this.maskElement=this.globalData=this.element=null}; var bc=function(){var c={};return c.createFilter=function(a,b){var d=X("filter");d.setAttribute("id",a);!0!==b&&(d.setAttribute("filterUnits","objectBoundingBox"),d.setAttribute("x","0%"),d.setAttribute("y","0%"),d.setAttribute("width","100%"),d.setAttribute("height","100%"));return d},c.createAlphaToLuminanceFilter=function(){var a=X("feColorMatrix"); return a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),a},c}(),ic=function(){var c={maskType:!0, svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(c.maskType=!1),/firefox/i.test(navigator.userAgent)&&(c.svgLumaHidden=!1),c}(),Uc={},Pc="filter_result_"; La.prototype.renderFrame=function(c){var a,b=this.filters.length;for(a=0;a=0&&!this.shapeModifiers[c].processShapes(this._isFirstFrame);--c);}}, searchProcessedElement:function(c){for(var a=this.processedElements,b=0,d=a.length;b.01)return!1;b+=1}return!0}; mc.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var c=0,a=this.data.k.k.length;c0;)p=q.transformers[v].mProps._mdf||p,--D,--v;if(p)for(D=w-q.styles[m].lvl,v=q.transformers.length-1;D>0;)x.multiply(q.transformers[v].mProps.v),--D,--v}else x=n;if(v=(t=q.sh.paths)._length,p){var K="";for(D=0;D=1?r=.99:r<=-1&&(r=-.99),r*=p,p=Math.cos(g+q.a.v)*r+t[0],t=Math.sin(g+q.a.v)*r+t[1],l.setAttribute("fx",p),l.setAttribute("fy",t),m&&!q.g._collapsable&&(q.of.setAttribute("fx",p),q.of.setAttribute("fy",t))} function k(g,q,r){g=q.style;var v=q.d;v&&(v._mdf||r)&&v.dashStr&&(g.pElem.setAttribute("stroke-dasharray",v.dashStr),g.pElem.setAttribute("stroke-dashoffset",v.dashoffset[0]));q.c&&(q.c._mdf||r)&&g.pElem.setAttribute("stroke","rgb("+Ab(q.c.v[0])+","+Ab(q.c.v[1])+","+Ab(q.c.v[2])+")");(q.o._mdf||r)&&g.pElem.setAttribute("stroke-opacity",q.o.v);(q.w._mdf||r)&&(g.pElem.setAttribute("stroke-width",q.w.v),g.msElem&&g.msElem.setAttribute("stroke-width",q.w.v))} var n=new Ja,h=new Ja;return{createRenderFunction:function(g){switch(g.ty){case"fl":return d;case"gf":return f;case"gs":return e;case"st":return k;case"sh":case"el":case"rc":case"sr":return b;case"tr":return c;case"no":return a;default:return null;}}}}(); R([yb,Wa,ib,kc,ab,nb,Jb],Ba);Ba.prototype.initSecondaryElement=function(){}; Ba.prototype.identityMatrix=new Ja;Ba.prototype.buildExpressionInterface=function(){}; Ba.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0);this.filterUniqueShapes()}; Ba.prototype.filterUniqueShapes=function(){var c,a,b,d=this.shapes.length,e=this.stylesList.length,f=[];for(b=0;b1&&n&&this.setShapesAsAnimated(f)}}; Ba.prototype.setShapesAsAnimated=function(c){var a,b=c.length;for(a=0;a=0;--f){if((g=this.searchProcessedElement(c[f]))?a[f]=b[g-1]:c[f]._render=k,"fl"===c[f].ty||"st"===c[f].ty||"gf"===c[f].ty||"gs"===c[f].ty||"no"===c[f].ty)g?a[f].style.closed=!1:a[f]=this.createStyleElement(c[f],e),c[f]._render&&a[f].style.pElem.parentNode!==d&&d.appendChild(a[f].style.pElem),v.push(a[f].style);else if("gr"===c[f].ty){if(g){var l=a[f].it.length;for(r=0;r1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf}; Sa.prototype.addEffect=function(c){this.effectsSequence.push(c);this.elem.addDynamicProperty(this)}; Sa.prototype.getValue=function(c){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||c){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var a=this.currentData,b=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{this.lock=!0;this._mdf=!1;var d=this.effectsSequence.length,e=c||this.data.d.k[this.keysIndex].s;for(c=0;ca);)b+=1;return this.keysIndex!==b&&(this.keysIndex=b),this.data.d.k[this.keysIndex].s}; Sa.prototype.buildFinalText=function(c){for(var a,b,d=[],e=0,f=c.length,k,n=!1,h;e=55296&&a<=56319?Va.isRegionalFlag(c,e)?h=c.substr(e,14):(b=c.charCodeAt(e+1))>=56320&&b<=57343&&(Va.isModifier(a,b)?(h=c.substr(e,2),k=!0):h=Va.isFlagEmoji(c.substr(e,4))?c.substr(e,4):c.substr(e,2)):a>56319?(b=c.charCodeAt(e+1),Va.isVariationSelector(a)&&(k=!0)):Va.isZeroWidthJoiner(a)&&(k=!0,n=!0),k?d[d.length-1]+=h:d.push(h),e+=h.length; return d}; Sa.prototype.completeTextData=function(c){c.__complete=!0;var a,b,d=this.elem.globalData.fontManager,e=this.data,f=[],k=0,n=e.m.g,h=0,g=0,q=0,r=[],v=0,p=d.getFontByName(c.f),l=0;var m=gd(p);c.fWeight=m.weight;c.fStyle=m.style;c.finalSize=c.s;c.finalText=this.buildFinalText(c.t);var t=c.finalText.length;c.finalLineHeight=c.lh;var u=c.tr/1E3*c.finalSize;if(c.sz)for(var w,x,D=!0,K=c.sz[0],J=c.sz[1];D;){var F=w=0;t=(x=this.buildFinalText(c.t)).length;u=c.tr/1E3*c.finalSize;var G=-1;for(m=0;mK&&" "!==x[m]?(-1===G?t+=1:m=G,w+=c.finalLineHeight||1.2*c.finalSize,x.splice(m,G===m?1:0,"\r"),G=-1,F=0):(F+=l,F+=u)}w+=p.ascent*c.finalSize/100;this.canResize&&c.finalSize>this.minimumFontSize&&Jv?F:v,F=-2*u,a="",z=!0,q+=1):a=y,d.chars?(b=d.getCharData(y,p.fStyle,d.getFontByName(c.f).fFamily),l=z?0:b.w*c.finalSize/100):l=d.measureText(a,c.f,c.finalSize)," "===y?w+=l+u:(F+=l+u+w,w=0),f.push({l:l,an:l,add:h,n:z,anIndexes:[],val:a,line:q,animatorJustifyOffset:0}),2==n){if(h+=l,""===a||" "===a||m===t-1){for(""!==a&&" "!==a||(h-=l);g<=m;)f[g].an=h,f[g].ind=k,f[g].extra=l,g+=1;k+= 1;h=0}}else if(3==n){if(h+=l,""===a||m===t-1){for(""===a&&(h-=l);g<=m;)f[g].an=h,f[g].ind=k,f[g].extra=l,g+=1;h=0;k+=1}}else f[k].ind=k,f[k].extra=0,k+=1;if(c.l=f,v=F>v?F:v,r.push(F),c.sz)c.boxWidth=c.sz[0],c.justifyOffset=0;else switch(c.boxWidth=v,c.j){case 1:c.justifyOffset=-c.boxWidth;break;case 2:c.justifyOffset=-c.boxWidth/2;break;default:c.justifyOffset=0;}c.lineWidths=r;var C;d=e.a;a=d.length;k=[];for(z=0;z0?f=this.ne.v/100:k=-this.ne.v/100;this.xe.v>0?n=1-this.xe.v/100:h=1+this.xe.v/100;f=kb.getBezierEasing(f,k,n,h).get;k=0;n=this.finalS;h=this.finalE;var g=this.data.sh;2===g?k=f(k=h===n?e>=h?1:0:a(0,b(.5/(h-n)+(e-n)/(h-n),1))):3===g?k=f(k=h===n?e>=h?0:1:1-a(0,b(.5/(h-n)+(e-n)/(h-n),1))):4===g?(h===n?k=0: (k=a(0,b(.5/(h-n)+(e-n)/(h-n),1)))<.5?k*=2:k=1-2*(k-.5),k=f(k)):5===g?(h===n?k=0:(k=h-n,e=-k/2+b(a(0,e+.5-n),h-n),k/=2,k=Math.sqrt(1-e*e/(k*k))),k=f(k)):6===g?(h===n?k=0:(e=b(a(0,e+.5-n),h-n),k=(1+Math.cos(Math.PI+2*Math.PI*e/(h-n)))/2),k=f(k)):(e>=d(n)&&(k=a(0,b(e-n<0?b(h,1)-(n-e):h-e,1))),k=f(k));100!==this.sm.v&&(e=.01*this.sm.v,0===e&&(e=1e-8),f=.5-.5*e,k1&&(k=1));return k*this.a.v}, getValue:function(e){this.iterateDynamicProperties();this._mdf=e||this._mdf;this._currentTextLength=this.elem.textProperty.currentData.l.length||0;e&&2===this.data.r&&(this.e.v=this._currentTextLength);var f=2===this.data.r?1:100/this.data.totalChars,k=this.o.v/f;e=this.s.v/f+k;f=this.e.v/f+k;e>f&&(k=e,e=f,f=k);this.finalS=e;this.finalE=f}},R([Pa],c),{getTextSelectorProp:function(e,f,k){return new c(e,f,k)}}}(); pb.prototype.searchProperties=function(){var c,a=this._textData.a.length,b=Q.getProp;for(c=0;c=b+I||!n?(q=(b+I-d)/x.partialLength,ea=F.point[0]+(x.point[0]-F.point[0])*q,ia=F.point[1]+(x.point[1]-F.point[1])*q,m.translate(-v[0]*w[a].an*.005,-v[1]*C*.01),e=!1):n&&(d+=x.partialLength,(f+=1)>=n.length&&(f=0,h[k+=1]?n=h[k].points:r.v.c?(f=0,n=h[k=0].points):(d-=x.partialLength,n=null)),n&&(F=x,G=(x=n[f]).partialLength));I=w[a].an/2-w[a].add;m.translate(-I,0,0)}else I=w[a].an/2-w[a].add,m.translate(-I,0,0), m.translate(-v[0]*w[a].an*.005,-v[1]*C*.01,0);for(e=0;eb?this.textSpans[b].span: X(k?"g":"text"),p<=b){if(e.setAttribute("stroke-linecap","butt"),e.setAttribute("stroke-linejoin","round"),e.setAttribute("stroke-miterlimit","4"),this.textSpans[b].span=e,k){var l=X("g");e.appendChild(l);this.textSpans[b].childSpan=l}this.textSpans[b].span=e;this.layerElement.appendChild(e)}e.style.display="inherit"}if(n.reset(),h&&(f[b].n&&(g=-v,q+=c.yOffset,q+=r?1:0,r=!1),this.applyTextPropertiesToMatrix(c,n,f[b].line,g,q),g+=f[b].l||0,g+=v),k){if(1===(l=this.globalData.fontManager.getCharData(c.finalText[b], a.fStyle,this.globalData.fontManager.getFontByName(c.f).fFamily)).t)var m=new bb(l.data,this.globalData,this);else m=Md,l.data&&l.data.shapes&&(m=this.buildShapeData(l.data,c.finalSize)),m=new Ba(m,this.globalData,this);if(this.textSpans[b].glyph){var t=this.textSpans[b].glyph;this.textSpans[b].childSpan.removeChild(t.layerElement);t.destroy()}this.textSpans[b].glyph=m;m._debug=!0;m.prepareFrame(0);m.renderFrame();this.textSpans[b].childSpan.appendChild(m.layerElement);1===l.t&&this.textSpans[b].childSpan.setAttribute("transform", "scale("+c.finalSize/100+","+c.finalSize/100+")")}else h&&e.setAttribute("transform","translate("+n.props[12]+","+n.props[13]+")"),e.textContent=f[b].val,e.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}h&&e&&e.setAttribute("d","")}else{a=this.textContainer;switch(c.j){case 1:e="end";break;case 2:e="middle";break;default:e="start";}a.setAttribute("text-anchor",e);a.setAttribute("letter-spacing",v);v=this.buildTextContents(c.finalText);d=v.length;q=c.ps?c.ps[1]+c.ascent: 0;for(b=0;b=0;--a)(this.completeLayers||this.elements[a])&&this.elements[a].prepareFrame(c-this.layers[a].st);if(this.globalData._mdf)for(a=0;a=0;--c)(this.completeLayers||this.elements[c])&&(this.elements[c].prepareFrame(this.renderedFrame-this.layers[c].st),this.elements[c]._mdf&&(this._mdf=!0))},db.prototype.renderInnerContent=function(){var c,a=this.layers.length; for(c=0;c0)for(var d,e=0;d=a[e];e++){var f=document.createElement(d.name);if(f.isNeonAnimation){var h=null;f.configure||(f.configure=function(){return null}); h=f.configure(d);c.push({result:h,config:d})}else console.warn(this.is+":",d.name,"not found!")}for(a=0;a>>0)+"_",W=0;return N}); c("Symbol.iterator",function(K){if(K)return K;K=Symbol("Symbol.iterator");u(Array.prototype,K,{configurable:!0,writable:!0,value:function(){return e(a(this))}}); return K}); c("Array.prototype.keys",function(K){return K?K:function(){return f(this,function(N){return N})}}); var y=this||self,A={g:"@@redux/INIT"+p(),REPLACE:"@@redux/REPLACE"+p(),h:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+p()}},C=typeof Symbol==="function"&&Symbol.observable||"@@observable",I={}; I.createStore=t;I.combineReducers=function(K){for(var N=Object.keys(K),L={},R=0;R0}); a.forEach(function(b){return phb(b)}); return a.length>0},qhb=function(a){if(ghb&&!a.connected_){document.addEventListener("transitionend",a.onTransitionEnd_); window.addEventListener("resize",a.refresh);if(jhb){a.mutationsObserver_=new MutationObserver(a.refresh);var b={attributes:!0,childList:!0,characterData:!0,subtree:!0};a.mutationsObserver_.observe(document,b);khb&&(function e(d){var f=d.shadowRoot;f&&(a.mutationsObserver_.observe(f,b),e(f));for(d=d.firstElementChild;d;)e(d),d=d.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var d=khb.apply(this,sa.apply(0,arguments)); a.mutationsObserver_.observe(d,b);return d})}else document.addEventListener("DOMSubtreeModified",a.refresh),a.mutationEventsAdded_=!0; a.connected_=!0}}; lhb.prototype.onTransitionEnd_=function(a){var b=a.propertyName===void 0?"":a.propertyName;ihb.some(function(c){return!!~b.indexOf(c)})&&this.refresh()}; var rhb=null;var shb=function(a,b){for(var c=l(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,Object.defineProperty(a,d,{value:b[d],enumerable:!1,writable:!1,configurable:!0})};var MI=function(a){var b;return(a==null?void 0:(b=a.ownerDocument)==null?void 0:b.defaultView)||globalThis};var thb={x:0,y:0,width:0,height:0};function NI(a){return typeof a==="number"?a:parseFloat(a)||0} function uhb(a){return sa.apply(1,arguments).reduce(function(b,c){return b+NI(a["border-"+c+"-width"])},0)} var vhb=typeof SVGGraphicsElement!=="undefined"?function(a){return a instanceof MI(a).SVGGraphicsElement}:function(a){return a instanceof MI(a).SVGElement&&typeof a.getBBox==="function"};var whb=function(a){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=a}; whb.prototype.isActive=function(){var a=this.target;if(ghb){if(vhb(a)){var b=a.getBBox();b={x:0,y:0,width:b.width,height:b.height}}else{var c=a.clientWidth,d=a.clientHeight;if(c||d){var e=MI(a).getComputedStyle(a);b=NI(e["padding-top"]);var f=NI(e["padding-left"]),h=f+NI(e["padding-right"]),m=b+NI(e["padding-bottom"]),p=NI(e.width),q=NI(e.height);e.boxSizing==="border-box"&&(Math.round(p+h)!==c&&(p-=uhb(e,"left","right")+h),Math.round(q+m)!==d&&(q-=uhb(e,"top","bottom")+m));a!==MI(a).document.documentElement&&( a=Math.round(p+h)-c,d=Math.round(q+m)-d,Math.abs(a)!==1&&(p-=a),Math.abs(d)!==1&&(q-=d));b={x:f,y:b,width:p,height:q}}else b=thb}}else b=thb;this.contentRect_=b;return b.width!==this.broadcastWidth||b.height!==this.broadcastHeight};var xhb=function(a,b){var c=b.x;var d=b.y;var e=b.width;b=b.height;var f=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);shb(f,{x:c,y:d,width:e,height:b,top:d,right:c+e,bottom:b+d,left:c});shb(this,{target:a,contentRect:f})};var yhb=function(a,b){var c=rhb;this.activeObservations_=[];this.observations_=new Map;if(typeof a!=="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.JSC$10519_callback_=a;this.controller_=c;this.callbackCtx_=b}; yhb.prototype.observe=function(a){if(a===void 0)throw new TypeError("1 argument required, but only 0 present.");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(a instanceof MI(a).Element))throw new TypeError("parameter 1 is not of type \"Element\".");var b=this.observations_;b.has(a)||(b.set(a,new whb(a)),a=this.controller_,~a.observers_.indexOf(this)||a.observers_.push(this),a.connected_||qhb(a),this.controller_.refresh())}}; yhb.prototype.unobserve=function(a){if(a===void 0)throw new TypeError("1 argument required, but only 0 present.");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(a instanceof MI(a).Element))throw new TypeError("parameter 1 is not of type \"Element\".");var b=this.observations_;b.has(a)&&(b.delete(a),b.size||mhb(this.controller_,this))}}; yhb.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();mhb(this.controller_,this)}; var ohb=function(a){a.activeObservations_.splice(0);a.observations_.forEach(function(b){b.isActive()&&a.activeObservations_.push(b)})},phb=function(a){if(a.activeObservations_.length>0){var b=a.callbackCtx_,c=a.activeObservations_.map(function(d){var e=d.target,f=d.contentRect_; d.broadcastWidth=f.width;d.broadcastHeight=f.height;return new xhb(e,f)}); a.JSC$10519_callback_.call(b,c,b);a.activeObservations_.splice(0)}};var OI=function(a){if(!(this instanceof OI))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");rhb||(rhb=new lhb);this.observer_=new yhb(a,this)}; OI.prototype.observe=function(a){this.observer_.observe(a)}; OI.prototype.unobserve=function(a){this.observer_.unobserve(a)}; OI.prototype.disconnect=function(){this.observer_.disconnect()};var zhb=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:OI;var Ahb;var Bhb;ys({_template:function(){if(Bhb!==void 0)return Bhb;var a=document.createElement("template");Q(a,"\n");a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild); var b=a.content,c=b.insertBefore;Ahb===void 0&&(Ahb=document.createElement("template"));var d=Ahb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Bhb=a}, is:"tp-yt-app-toolbar"});var Chb;var Dhb;var PI=function(){}; PI=ys({_template:function(){if(Dhb!==void 0)return Dhb;var a=document.createElement("template");Q(a,"
[[_text]]
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;Chb===void 0&&(Chb=document.createElement("template"));var d=Chb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Dhb=a}, is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},clearTimeout:{type:Number,value:5E3},_text:{type:String,value:""}},hostAttributes:{tabindex:"-1"},created:function(){PI.instance||(PI.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))}, announce:function(a){this._text===a&&(a+="\xA0");this._text="";this.async(function(){var b=this;this._text=a;x("tp_yt_iron_a11y_announcer_clear_timeout_killswitch")||this.debounce("clear-announcement",function(){b._text=""},this.clearTimeout)},this.timeout)}, _onIronAnnounce:function(a){a.detail&&a.detail.text&&this.announce(a.detail.text)}}); PI.instance=null;PI.requestAvailability=function(){PI.instance||(PI.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(PI.instance):document.addEventListener("load",function(){document.body.appendChild(PI.instance)})};var Ehb;var Fhb;ys({_template:function(){if(Fhb!==void 0)return Fhb;var a=document.createElement("template");Q(a,"\n\n
 
\n\n\n
\n \n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Ehb===void 0&&(Ehb=document.createElement("template"));var d=Ehb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Fhb=a}, is:"tp-yt-iron-autogrow-textarea",behaviors:[Rw,Cs],properties:{value:{observer:"_valueChanged",type:String,notify:!0},bindValue:{observer:"_bindValueChanged",type:String,notify:!0},rows:{type:Number,value:1,observer:"_updateCached"},maxRows:{type:Number,value:0,observer:"_updateCached"},autocomplete:{type:String,value:"off"},autofocus:{type:Boolean,value:!1},autocapitalize:{type:String,value:"none"},inputmode:{type:String},placeholder:{type:String},readonly:{type:String},required:{type:Boolean}, minlength:{type:Number},maxlength:{type:Number},label:{type:String}},listeners:{input:"_onInput"},get textarea(){return this.$.textarea},get selectionStart(){return this.$.textarea.selectionStart},get selectionEnd(){return this.$.textarea.selectionEnd},set selectionStart(a){this.$.textarea.selectionStart=a},set selectionEnd(a){this.$.textarea.selectionEnd=a},attached:function(){navigator.userAgent.match(/iP(?:[oa]d|hone)/)&&!navigator.userAgent.match(/OS 1[3456789]/)&&(this.$.textarea.style.marginLeft= "-3px")}, validate:function(){var a=this.$.textarea.validity.valid;a&&(this.required&&this.value===""?a=!1:this.hasValidator()&&(a=Rw.validate.call(this,this.value)));this.invalid=!a;this.fire("iron-input-validate");return a}, _bindValueChanged:function(a){this.value=a}, _valueChanged:function(a){var b=this.textarea;b&&(b.value!==a&&(b.value=a||a===0?a:""),this.bindValue=a,this.$.mirror.textContent=this._valueForMirror(),this.fire("bind-value-changed",{value:this.bindValue}))}, _onInput:function(a){var b=es(a).path;this.value=b?b[0].value:a.target.value}, _constrain:function(a){var b;a=a||[""];for(b=this.maxRows>0&&a.length>this.maxRows?a.slice(0,this.maxRows):a.slice(0);this.rows>0&&b.length\n");a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild); var b=a.content,c=b.insertBefore;Ghb===void 0&&(Ghb=document.createElement("template"));var d=Ghb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Hhb=a}, is:"tp-yt-iron-collapse",behaviors:[Es.IronResizableBehavior],properties:{horizontal:{type:Boolean,value:!1,observer:"_horizontalChanged"},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},transitioning:{type:Boolean,notify:!0,readOnly:!0},noAnimation:{type:Boolean},_desiredSize:{type:String,value:""}},get dimension(){return this.horizontal?"width":"height"},get _dimensionMax(){return this.horizontal?"maxWidth":"maxHeight"},get _dimensionMaxCss(){return this.horizontal?"max-width": "max-height"},hostAttributes:{role:"group","aria-hidden":"true"},listeners:{transitionend:"_onTransitionEnd"},toggle:function(){this.opened=!this.opened}, show:function(){this.opened=!0}, hide:function(){this.opened=!1}, updateSize:function(a,b){a=a==="auto"?"":a;b=b&&!this.noAnimation&&this.isAttached&&this._desiredSize!==a;this._desiredSize=a;this._updateTransition(!1);b&&(b=this._calcSize(),a===""&&(this.style[this._dimensionMax]="",a=this._calcSize()),this.style[this._dimensionMax]=b,this.scrollTop=this.scrollTop,this._updateTransition(!0),b=a!==b);this.style[this._dimensionMax]=a;b||this._transitionEnd()}, enableTransition:function(a){zs._warn("`enableTransition()` is deprecated, use `noAnimation` instead.");this.noAnimation=!a}, _updateTransition:function(a){this.style.transitionDuration=a&&!this.noAnimation?"":"0s"}, _horizontalChanged:function(){this.style.transitionProperty=this._dimensionMaxCss;this.style[this._dimensionMax==="maxWidth"?"maxHeight":"maxWidth"]="";this.updateSize(this.opened?"auto":"0px",!1)}, _openedChanged:function(){this.setAttribute("aria-hidden",!this.opened);this._setTransitioning(!0);this.toggleClass("iron-collapse-closed",!1);this.toggleClass("iron-collapse-opened",!1);this.updateSize(this.opened?"auto":"0px",!0);this.opened&&this.focus()}, _transitionEnd:function(){this.style[this._dimensionMax]=this._desiredSize;this.toggleClass("iron-collapse-closed",!this.opened);this.toggleClass("iron-collapse-opened",this.opened);this._updateTransition(!1);this.notifyResize();this._setTransitioning(!1)}, _onTransitionEnd:function(a){es(a).rootTarget===this&&this._transitionEnd()}, _calcSize:function(){return this.getBoundingClientRect()[this.dimension]+"px"}});var Ihb;var Jhb;var Khb=void 0,Lhb={properties:{sizingTarget:{type:Object,value:function(){var a;return(a=this.hostElement)!=null?a:this}}, fitInto:{type:Object,value:window},noOverlap:{type:Boolean},positionTarget:{type:Element},horizontalAlign:{type:String},verticalAlign:{type:String},dynamicAlign:{type:Boolean},horizontalOffset:{type:Number,value:0,notify:!0},verticalOffset:{type:Number,value:0,notify:!0},autoFitOnAttach:{type:Boolean,value:!1},expandSizingTargetForScrollbars:{type:Boolean,value:!1},_fitInfo:{type:Object},avoidOuterEdge:{type:Boolean,value:!1},addSpacing:{type:Boolean,value:!1},forceVerticalOverlap:{type:Boolean,value:!1}}, get _defaultPositionTarget(){var a,b=es((a=this.hostElement)!=null?a:this).parentNode;b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(b=b.host);return b},get _localeHorizontalAlign(){if(this._isRTL){if(this.horizontalAlign==="right")return"left";if(this.horizontalAlign==="left")return"right"}return this.horizontalAlign},get __shouldPosition(){return(this.horizontalAlign||this.verticalAlign)&&this.positionTarget},get _isRTL(){if(typeof this._memoizedIsRTL==="undefined"){var a;this._memoizedIsRTL=window.getComputedStyle((a= this.hostElement)!=null?a:this).direction=="rtl"}return this._memoizedIsRTL},attached:function(){this.positionTarget=this.positionTarget||this._defaultPositionTarget;if(this.autoFitOnAttach){var a;window.getComputedStyle((a=this.hostElement)!=null?a:this).display==="none"?setTimeout(function(){this.fit()}.bind(this)):(window.ShadyDOM&&ShadyDOM.flush(),this.fit())}}, detached:function(){}, fit:function(){this.position();this.constrain();this.center()}, _discoverInfo:function(){if(!this._fitInfo){var a,b=window.getComputedStyle((a=this.hostElement)!=null?a:this);a=window.getComputedStyle(this.sizingTarget);var c,d,e;this._fitInfo={inlineStyle:{top:((c=this.hostElement)!=null?c:this).style.top||"",left:((d=this.hostElement)!=null?d:this).style.left||"",position:((e=this.hostElement)!=null?e:this).style.position||""},sizerInlineStyle:{maxWidth:this.sizingTarget.style.maxWidth||"",maxHeight:this.sizingTarget.style.maxHeight||"",boxSizing:this.sizingTarget.style.boxSizing|| ""},positionedBy:{vertically:b.top!=="auto"?"top":b.bottom!=="auto"?"bottom":null,horizontally:b.left!=="auto"?"left":b.right!=="auto"?"right":null},sizedBy:{height:a.maxHeight!=="none",width:a.maxWidth!=="none",minWidth:parseInt(a.minWidth,10)||0,minHeight:parseInt(a.minHeight,10)||0},margin:{top:parseInt(b.marginTop,10)||0,right:parseInt(b.marginRight,10)||0,bottom:parseInt(b.marginBottom,10)||0,left:parseInt(b.marginLeft,10)||0}}}}, resetFit:function(){var a=this._fitInfo||{},b;for(b in a.sizerInlineStyle)this.sizingTarget.style[b]=a.sizerInlineStyle[b];for(b in a.inlineStyle){var c=void 0;((c=this.hostElement)!=null?c:this).style[b]=a.inlineStyle[b]}this._fitInfo=null}, refit:function(){var a=this.sizingTarget.scrollLeft,b=this.sizingTarget.scrollTop;this.resetFit();this.fit();this.sizingTarget.scrollLeft=a;this.sizingTarget.scrollTop=b}, position:function(){if(this.__shouldPosition){this._discoverInfo();window.ShadyDOM&&window.ShadyDOM.flush();var a;((a=this.hostElement)!=null?a:this).style.position="fixed";this.sizingTarget.style.boxSizing="border-box";var b;((b=this.hostElement)!=null?b:this).style.left="0px";var c;((c=this.hostElement)!=null?c:this).style.top="0px";var d,e=((d=this.hostElement)!=null?d:this).getBoundingClientRect();c=this.__getNormalizedRect(this.positionTarget);d=this.__getNormalizedRect(this.fitInto);this.avoidOuterEdge&&( d={left:d.left+24,right:d.right-24,top:d.top+24,bottom:d.bottom-24});if(this.expandSizingTargetForScrollbars){var f=this.sizingTarget.offsetWidth;var h=this.sizingTarget.offsetHeight;var m=this.sizingTarget.clientWidth;var p=this.sizingTarget.clientHeight}a=this._fitInfo.margin;var q={width:e.width+a.left+a.right,height:e.height+a.top+a.bottom};b=this.__getPosition(this._localeHorizontalAlign,this.verticalAlign,q,e,c,d);this.addSpacing&&(c.left-q.width===b.left?b.left-=8:c.top-q.height===b.top?b.top-= 8:c.right===b.left?b.left+=8:c.bottom===b.top&&(b.top+=8));q=b.left+a.left;var t=b.top+a.top;c=Math.min(d.right-a.right,q+e.width);var u=Math.min(d.bottom-a.bottom,t+e.height);q=Math.max(d.left+a.left,Math.min(q,c-this._fitInfo.sizedBy.minWidth));t=Math.max(d.top+a.top,Math.min(t,u-this._fitInfo.sizedBy.minHeight));c=Math.max(c-q,this._fitInfo.sizedBy.minWidth);u=Math.max(u-t,this._fitInfo.sizedBy.minHeight);this.sizingTarget.style.maxWidth=c+"px";this.sizingTarget.style.maxHeight=u+"px";q-=e.left; e=t-e.top;var v;((v=this.hostElement)!=null?v:this).style.left=q+"px";var w;((w=this.hostElement)!=null?w:this).style.top=e+"px";if(this.expandSizingTargetForScrollbars){v=this.sizingTarget.offsetHeight;h=v-this.sizingTarget.clientHeight-(h-p);if(h>0){this.sizingTarget.style.maxHeight=Math.min(d.height-a.top-a.bottom,u+h)+"px";h=this.sizingTarget.offsetHeight;p=h-v;var y;b.verticalAlign==="top"?y=e:b.verticalAlign==="middle"?y=e-p/2:b.verticalAlign==="bottom"&&(y=e-p);y=Math.max(d.top+a.top,Math.min(y, d.bottom-a.bottom-h));var A;((A=this.hostElement)!=null?A:this).style.top=y+"px"}y=this.sizingTarget.offsetWidth;f=y-this.sizingTarget.clientWidth-(f-m);if(f>0){Khb!==void 0?m=Khb:(m=document.createElement("div"),Object.assign(m.style,{overflow:"auto",position:"fixed",left:"0px",top:"0px",maxWidth:"100px",maxHeight:"100px"}),A=document.createElement("div"),A.style.width="200px",A.style.height="200px",m.appendChild(A),document.body.appendChild(m),Khb=Math.abs(m.offsetWidth-100)>1?m.offsetWidth-m.clientWidth: 0,document.body.removeChild(m),m=Khb);this.sizingTarget.style.maxWidth=Math.min(d.width-a.left-a.right,c+f-m)+"px";f=this.sizingTarget.offsetWidth+m;m=f-y;var C;b.horizontalAlign==="left"?C=q:b.horizontalAlign==="center"?C=q-m/2:b.horizontalAlign==="right"&&(C=q-m);C=Math.max(d.left+a.left,Math.min(C,d.right-a.right-f));var I;((I=this.hostElement)!=null?I:this).style.left=C+"px"}}}}, constrain:function(){if(!this.__shouldPosition){this._discoverInfo();var a=this._fitInfo;if(!a.positionedBy.vertically){var b;((b=this.hostElement)!=null?b:this).style.position="fixed";var c;((c=this.hostElement)!=null?c:this).style.top="0px"}if(!a.positionedBy.horizontally){var d;((d=this.hostElement)!=null?d:this).style.position="fixed";var e;((e=this.hostElement)!=null?e:this).style.left="0px"}this.sizingTarget.style.boxSizing="border-box";var f;b=((f=this.hostElement)!=null?f:this).getBoundingClientRect(); a.sizedBy.height||this.__sizeDimension(b,a.positionedBy.vertically,"top","bottom","Height");a.sizedBy.width||this.__sizeDimension(b,a.positionedBy.horizontally,"left","right","Width")}}, _sizeDimension:function(a,b,c,d,e){this.__sizeDimension(a,b,c,d,e)}, __sizeDimension:function(a,b,c,d,e){var f=this._fitInfo,h=this.__getNormalizedRect(this.fitInto);h=e==="Width"?h.width:h.height;a=(b=b===d)?h-a[d]:a[c];c=f.margin[b?c:d];d="offset"+e;var m;f=((m=this.hostElement)!=null?m:this)[d]-this.sizingTarget[d];this.sizingTarget.style["max"+e]=h-c-a-f+"px"}, center:function(){if(!this.__shouldPosition){this._discoverInfo();var a=this._fitInfo.positionedBy;if(!a.vertically||!a.horizontally){var b;((b=this.hostElement)!=null?b:this).style.position="fixed";if(!a.vertically){var c;((c=this.hostElement)!=null?c:this).style.top="0px"}if(!a.horizontally){var d;((d=this.hostElement)!=null?d:this).style.left="0px"}var e;b=((e=this.hostElement)!=null?e:this).getBoundingClientRect();e=this.__getNormalizedRect(this.fitInto);if(!a.vertically){c=e.top-b.top+(e.height- b.height)/2;var f;((f=this.hostElement)!=null?f:this).style.top=c+"px"}if(!a.horizontally){a=e.left-b.left+(e.width-b.width)/2;var h;((h=this.hostElement)!=null?h:this).style.left=a+"px"}}}}, __getNormalizedRect:function(a){return a===document.documentElement||a===window?{top:0,left:0,width:window.innerWidth,height:window.innerHeight,right:window.innerWidth,bottom:window.innerHeight}:a.getBoundingClientRect()}, __getOffscreenArea:function(a,b,c){return Math.abs(Math.min(0,a.top)+Math.min(0,c.bottom-(a.top+b.height)))*b.width+Math.abs(Math.min(0,a.left)+Math.min(0,c.right-(a.left+b.width)))*b.height}, __getPosition:function(a,b,c,d,e,f){var h=[{verticalAlign:"top",horizontalAlign:"left",top:e.top+this.verticalOffset,left:e.left+this.horizontalOffset},{verticalAlign:"top",horizontalAlign:"right",top:e.top+this.verticalOffset,left:e.right-c.width-this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"left",top:e.bottom-c.height-this.verticalOffset,left:e.left+this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"right",top:e.bottom-c.height-this.verticalOffset,left:e.right-c.width- this.horizontalOffset}];if(this.noOverlap){for(var m=0,p=h.length;mt.alignsOk)t=e}}return t}};/* Copyright (c) 2016 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt SPDX-License-Identifier: BSD-3-Clause */ var QI=Element.prototype,Mhb=QI.matches||QI.matchesSelector||QI.mozMatchesSelector||QI.msMatchesSelector||QI.oMatchesSelector||QI.webkitMatchesSelector,Nhb=function(){},Phb=function(a){var b=Ohb,c=[]; return b._collectTabbableNodes(a,c)?b._sortByTabIndex(c):c}; g=Nhb.prototype;g.isFocusable=function(a){return Mhb.call(a,"input, select, textarea, button, object")?Mhb.call(a,":not([disabled])"):Mhb.call(a,"a[href], area[href], iframe, [tabindex], [contentEditable]")}; g._normalizedTabIndex=function(a){return this.isFocusable(a)?(a=a.getAttribute("tabindex")||0,Number(a)):-1}; g._collectTabbableNodes=function(a,b){if(a.nodeType!==Node.ELEMENT_NODE||!this._isVisible(a))return!1;var c=this._normalizedTabIndex(a),d=c>0;c>=0&&b.push(a);if(a.localName==="content"||a.localName==="slot")c=es(a).getDistributedNodes();else{var e;c=((e=es(a).shadowRoot)!=null?e:es(a.root||a)).children}for(a=0;a0&&b.length>0;)this._hasLowerTabOrder(a[0],b[0])?c.push(b.shift()):c.push(a.shift());return c.concat(a,b)}; g._hasLowerTabOrder=function(a,b){a=Math.max(a.tabIndex,0);b=Math.max(b.tabIndex,0);return a===0||b===0?b>a:a>b}; var Ohb=new Nhb;/* Copyright (c) 2017 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt SPDX-License-Identifier: BSD-3-Clause */ var Qhb=0,Rhb=0,Shb=null,Thb=[],RI=["wheel","mousewheel","DOMMouseScroll"];x("web_no_lock_on_touchstart_killswitch")&&(RI.push("touchstart"),RI.push("touchmove")); var _boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager,Uhb,_lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=[],_lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=null,_unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager= null;function _hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(a){return _lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(a)>-1} function _hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(a){return _unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(a)>-1} function _composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(a,b){var c,d;if(a.contains(b))return!0;a=es(a).querySelectorAll("content,slot");for(c=0;c=Math.abs(b),e=0;e0:f.scrollTop0:f.scrollLeft=0||(_lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.length===0&&_lockScrollInteractions$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(), _lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.push(this),Uhb=_lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager[_lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.length-1],_lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager= [],_unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=[])),this.__addScrollListeners()):(a=_lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),a!==-1&&(_lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(a,1),Uhb=_lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager[_lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.length- 1],_lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=[],_unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=[],_lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.length===0&&_unlockScrollInteractions$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager()), this.__removeScrollListeners())}, __addScrollListeners:function(){if(!this.__rootNodes){this.__rootNodes=[];if(tk)for(var a=this;a;)a.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&a.host&&this.__rootNodes.push(a),a=a.host||a.assignedSlot||a.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(b){b.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)}, __removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(a){a.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this); this.isAttached||(this.__rootNodes=null)}, __isValidScrollAction:function(a){return a==="lock"||a==="refit"||a==="cancel"}, __onCaptureScroll:function(a){if(!(this.__isAnimating||es(a).path.indexOf(this)>=0))switch(this.scrollAction){case"lock":this.__restoreScrollPosition();break;case"refit":this.__deraf("refit",this.refit);break;case"cancel":this.cancel(a);}}, __saveScrollPosition:function(){document.scrollingElement?(this.__scrollTop=document.scrollingElement.scrollTop,this.__scrollLeft=document.scrollingElement.scrollLeft):(this.__scrollTop=Math.max(document.documentElement.scrollTop,document.body.scrollTop),this.__scrollLeft=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft))}, __restoreScrollPosition:function(){document.scrollingElement?(document.scrollingElement.scrollTop=this.__scrollTop,document.scrollingElement.scrollLeft=this.__scrollLeft):(document.documentElement.scrollTop=document.body.scrollTop=this.__scrollTop,document.documentElement.scrollLeft=document.body.scrollLeft=this.__scrollLeft)}},TI=[Lhb, fBa,SI];ys({_template:function(){if(Jhb!==void 0)return Jhb;var a=document.createElement("template");Q(a,"
\n \n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Ihb===void 0&&(Ihb=document.createElement("template"));var d=Ihb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Jhb=a}, is:"tp-yt-iron-dropdown",behaviors:[Cs,Lw,TI,ehb],properties:{horizontalAlign:{type:String,value:"left",reflectToAttribute:!0},verticalAlign:{type:String,value:"top",reflectToAttribute:!0},openAnimationConfig:{type:Object},closeAnimationConfig:{type:Object},focusTarget:{type:Object},noAnimations:{type:Boolean,value:!1},allowOutsideScroll:{type:Boolean,value:!1,observer:"_allowOutsideScrollChanged"}},listeners:{"neon-animation-finish":"_onNeonAnimationFinish"},observers:["_updateOverlayPosition(positionTarget, verticalAlign, horizontalAlign, verticalOffset, horizontalOffset)"], get containedElement(){for(var a=es(this.$.content).getDistributedNodes(),b=0,c=a.length;b\n");a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Vhb===void 0&&(Vhb=document.createElement("template")); var d=Vhb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Whb=a}, is:"tp-yt-iron-icon",properties:{icon:{type:String},theme:{type:String},src:{type:String}},observers:["_updateIcon(isAttached)","_updateIcon(theme, isAttached)","_srcChanged(src, isAttached)","_iconChanged(icon, isAttached)"],_DEFAULT_ICONSET:"icons",_iconChanged:function(a){a=(a||"").split(":");this._iconName=a.pop();this._iconsetName=a.pop()||this._DEFAULT_ICONSET;this._updateIcon()}, _srcChanged:function(){this._updateIcon()}, _usesIconset:function(){return this.icon||!this.src}, _updateIcon:function(){if(this._usesIconset()){if(this._img&&this._img.parentNode&&es(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=Xhb.byKey(this._iconsetName)){var a=this._iconset.applyIcon(this,this._iconName,this.theme);a&&a.setAttribute("aria-hidden","true");this.unlisten(window,"iron-iconset-added","_updateIcon")}else this.listen(window,"iron-iconset-added","_updateIcon")}}else this._iconset&&this._iconset.removeIcon(this), this._img||(this._img=document.createElement("img"),this._img.style.width="100%",this._img.style.height="100%",this._img.draggable=!1),this._img.src=this.src,es(this.root).appendChild(this._img)}});/* Copyright (c) 2014 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */ var Yhb=la(["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"]), Zhb=nr(Yhb);Zhb.setAttribute("style","display: none;");document.head.appendChild(Zhb.content);var $hb;var aib;ys({_template:function(){if(aib!==void 0)return aib;var a=document.createElement("template");Q(a,"\n");a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild); var b=a.content,c=b.insertBefore;$hb===void 0&&($hb=document.createElement("template"));var d=$hb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return aib=a}, is:"tp-yt-iron-input",behaviors:[Rw],properties:{bindValue:{type:String,value:""},value:{type:String,computed:"_computeValue(bindValue)"},allowedPattern:{type:String},autoValidate:{type:Boolean,value:!1},_inputElement:Object},observers:["_bindValueChanged(bindValue, _inputElement)"],listeners:{input:"_onInput",keypress:"_onKeypress"},created:function(){PI.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1}, attached:function(){this._observer=es(this).observeNodes(function(){this._initSlottedInput()}.bind(this))}, detached:function(){this._observer&&(es(this).unobserveNodes(this._observer),this._observer=null)}, get inputElement(){return this._inputElement},_initSlottedInput:function(){this._inputElement=this.getEffectiveChildren()[0];this.inputElement&&this.inputElement.value&&(this.bindValue=this.inputElement.value);this.fire("iron-input-ready")}, get _patternRegExp(){if(this.allowedPattern)var a=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case"number":a=/[0-9.,e-]/;}return a},_bindValueChanged:function(a,b){b&&(a===void 0?b.value=null:a!==b.value&&(this.inputElement.value=a),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:a}))}, _onInput:function(){!this.allowedPattern||this._patternAlreadyChecked||this._checkPatternValidity()||(this._announceInvalidCharacter("Invalid string of characters not entered."),this.inputElement.value=this._previousValidInput);this.bindValue=this._previousValidInput=this.inputElement.value;this._patternAlreadyChecked=!1}, _isPrintable:function(a){var b=a.keyCode==19||a.keyCode==20||a.keyCode==45||a.keyCode==46||a.keyCode==144||a.keyCode==145||a.keyCode>32&&a.keyCode<41||a.keyCode>111&&a.keyCode<124;return!(a.keyCode==8||a.keyCode==9||a.keyCode==13||a.keyCode==27)&&!(a.charCode==0&&b)}, _onKeypress:function(a){if(this.allowedPattern||this.inputElement.type==="number"){var b=this._patternRegExp;if(b&&!(a.metaKey||a.ctrlKey||a.altKey)){this._patternAlreadyChecked=!0;var c=String.fromCharCode(a.charCode);this._isPrintable(a)&&!b.test(c)&&(a.preventDefault(),this._announceInvalidCharacter("Invalid character "+c+" not entered."))}}}, _checkPatternValidity:function(){var a=this._patternRegExp;if(!a)return!0;for(var b=0;b=8; ys({_template:function(){if(cib!==void 0)return cib;var a=document.createElement("template");Q(a,"\n\n
\n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;bib===void 0&&(bib=document.createElement("template"));var d=bib;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return cib=a}, is:"tp-yt-iron-list",properties:{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},selectedAs:{type:String,value:"selected"},grid:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_gridChanged"},selectionEnabled:{type:Boolean,value:!1},selectedItem:{type:Object,notify:!0},selectedItems:{type:Object,notify:!0},multiSelection:{type:Boolean,value:!1},scrollOffset:{type:Number,value:0},listAriaLabel:{type:String}},observers:["_itemsChanged(items.*)","_selectionEnabledChanged(selectionEnabled)", "_multiSelectionChanged(multiSelection)","_setOverflow(scrollTarget, scrollOffset)"],behaviors:[NAa,dib,dhb,DAa],_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_focusedItem:null,_focusedVirtualIndex:-1,_focusedPhysicalIndex:-1,_offscreenFocusedItem:null, _focusBackfillItem:null,_itemsPerRow:1,_itemWidth:0,_rowHeight:0,_templateCost:0,_parentModel:!0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return(this.grid?this._physicalRows*this._rowHeight:this._physicalSize)-this._viewportHeight},get _itemsParent(){return es(es(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight- this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var a=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,a-this._physicalCount)},set _virtualStart(a){a=this._clamp(a,0,this._maxVirtualStart);this.grid&&(a-=a%this._itemsPerRow);this._virtualStartVal=a},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(a){a%=this._physicalCount;a<0&&(a=this._physicalCount+a);this.grid&&(a-=a%this._itemsPerRow);this._physicalStartVal=a},get _physicalStart(){return this._physicalStartVal|| 0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(a){this._physicalCountVal=a},get _physicalCount(){return this._physicalCountVal||0},get _optPhysicalSize(){return this._viewportHeight===0?Infinity:this._viewportHeight*this._maxPages},get _isVisible(){return!(!this.offsetWidth&&!this.offsetHeight)},get firstVisibleIndex(){var a=this._firstVisibleIndexVal;if(a==null){var b=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal= a=this._iterateItems(function(c,d){b+=this._getPhysicalSizeIncrement(c);if(b>this._scrollPosition)return this.grid?d-d%this._itemsPerRow:d;if(this.grid&&this._virtualCount-1===d)return d-d%this._itemsPerRow})||0}return a}, get lastVisibleIndex(){var a=this._lastVisibleIndexVal;if(a==null){if(this.grid)a=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var b=this._physicalTop+this._scrollOffset;this._iterateItems(function(c,d){b=0;this._scrollPosition=a;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(b)>this._physicalSize&&this._physicalSize>0?(b-=this._scrollOffset,c=Math.round(b/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=c,this._physicalStart+=c,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()): this._physicalCount>0&&(a=this._getReusables(c),c?(this._physicalTop=a.physicalTop,this._virtualStart+=a.indexes.length,this._physicalStart+=a.indexes.length):(this._virtualStart=this._virtualStart-a.indexes.length,this._physicalStart=this._physicalStart-a.indexes.length),this._update(a.indexes,c?null:a.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),Qq))}, _getReusables:function(a){var b=[],c=this._hiddenContentSize*this._ratio,d=this._virtualStart,e=this._virtualEnd,f=this._physicalCount,h=this._physicalTop+this._scrollOffset;var m=this._physicalBottom+this._scrollOffset;var p=this._scrollPosition,q=this._scrollBottom;if(a){var t=this._physicalStart;m=p-h}else t=this._physicalEnd,m-=q;for(;;){var u=this._getPhysicalSizeIncrement(t);m-=u;if(b.length>=f||m<=c)break;if(a){if(e+b.length+1>=this._virtualCount)break;if(h+u>=p-this._scrollOffset)break;b.push(t); h+=u;t=(t+1)%f}else{if(d-b.length<=0)break;if(h+this._physicalSize-u<=q)break;b.push(t);h-=u;t=t===0?f-1:t-1}}return{indexes:b,physicalTop:h-this._scrollOffset}}, _update:function(a,b){if(!(a&&a.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(a);this._updateMetrics(a);if(b)for(;b.length;)a=b.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(a);this._positionItems();this._updateScrollerSize()}}, _createPool:function(a){this._ensureTemplatized();var b,c=Array(a);for(b=0;b=this._scrollBottom&&this._physicalTop<=this._scrollPosition}, _increasePoolIfNeeded:function(a){a=this._clamp(this._physicalCount+a,3,this._virtualCount-this._virtualStart);a=this._convertIndexToCompleteRow(a);if(this.grid){var b=a%this._itemsPerRow;b&&a-b<=this._physicalCount&&(a+=this._itemsPerRow);a-=b}a-=this._physicalCount;b=Math.round(this._physicalCount*.5);if(!(a<0)){if(a>0){b=window.performance.now();[].push.apply(this._physicalItems,this._createPool(a));for(var c=0;cthis._physicalEnd&& this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)=this._virtualCount-1||b===0||(this._isClientFull()?this._physicalSize0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(3))}, _ensureTemplatized:function(){if(!this.ctor){(this._userTemplate=this.queryEffectiveChildren("template"))||console.warn("iron-list requires a template to be provided in light-dom");var a={__key__:!0};a[this.as]=!0;a[this.indexAs]=!0;a[this.selectedAs]=!0;a.tabIndex=!0;this._instanceProps=a;this.templatize(this._userTemplate,this.mutableData)}}, _gridChanged:function(a,b){typeof b!=="undefined"&&(this.notifyResize(),Rr(),a&&this._updateGridMetrics())}, _itemsChanged:function(a){if(a.path==="items")this._physicalTop=this._virtualStart=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._lastVisibleIndexVal=this._firstVisibleIndexVal=null,this._physicalCount=this._physicalCount||0,this._physicalItems=this._physicalItems||[],this._physicalSizes=this._physicalSizes||[],this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._removeFocusedItem(),this._debounce("_render",this._render, Pq);else if(a.path==="items.splices"){this._adjustVirtualIndex(a.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(a.value.indexSplices.some(function(c){return c.addedCount>0||c.removed.length>0})){var b=this._getActiveElement(); this.contains(b)&&b.blur()}a=a.value.indexSplices.some(function(c){return c.index+c.addedCount>=this._virtualStart&&c.index<=this._virtualEnd},this); this._isClientFull()&&!a||this._debounce("_render",this._render,Pq)}else a.path!=="items.length"&&this._forwardItemPath(a.path,a.value)}, _forwardItemPath:function(a,b){a=a.slice(6);var c=a.indexOf(".");c===-1&&(c=a.length);var d,e=this.modelForElement(this._offscreenFocusedItem),f=parseInt(a.substring(0,c),10);if(d=this._isIndexRendered(f)){var h=this._getPhysicalIndex(f);var m=this.modelForElement(this._physicalItems[h])}else e&&(m=e);m&&m[this.indexAs]===f&&(a=a.substring(c+1),a=this.as+(a?"."+a:""),m._setPendingPropertyOrPath(a,b,!1,!0),m._flushProperties&&m._flushProperties(),d&&(this._updateMetrics([h]),this._positionItems(), this._updateScrollerSize()))}, _adjustVirtualIndex:function(a){a.forEach(function(b){b.removed.forEach(this._removeItem,this);b.index=0&&(this._focusedVirtualIndex+=b))},this)}, _removeItem:function(a){this.$.selector.deselect(a);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===a&&this._removeFocusedItem()}, _iterateItems:function(a,b){var c,d;if(arguments.length===2&&b)for(d=0;d=this._physicalStart?this._virtualStart+(a-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+a}, _assignModels:function(a){this._iterateItems(function(b,c){var d=this._physicalItems[b],e=this.items&&this.items[c];if(e!=null){var f=this.modelForElement(d);f.__key__=null;this._forwardProperty(f,this.as,e);this._forwardProperty(f,this.selectedAs,this.$.selector.isSelected(e));this._forwardProperty(f,this.indexAs,c);this._forwardProperty(f,"tabIndex",this._focusedVirtualIndex===c?0:-1);this._physicalIndexForKey[f.__key__]=b;f._flushProperties&&f._flushProperties(!0);d.removeAttribute("hidden")}else d.setAttribute("hidden", "")},a)}, _updateMetrics:function(a){Rr();var b=0,c=0,d=this._physicalAverageCount,e=this._physicalAverage;this._iterateItems(function(f){c+=this._physicalSizes[f];this._physicalSizes[f]=this._physicalItems[f].offsetHeight;b+=this._physicalSizes[f];this._physicalAverageCount+=this._physicalSizes[f]?1:0},a); this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(c=this._itemsPerRow===1?c:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+b-c,this._itemsPerRow=1);this._physicalAverageCount!==d&&(this._physicalAverage=Math.round((e*d+b)/this._physicalAverageCount))}, _updateGridMetrics:function(){this._itemWidth=this._physicalCount>0?this._physicalItems[0].getBoundingClientRect().width:200;this._rowHeight=this._physicalCount>0?this._physicalItems[0].offsetHeight:200;this._itemsPerRow=this._itemWidth?Math.floor(this._viewportWidth/this._itemWidth):this._itemsPerRow}, _positionItems:function(){this._adjustScrollPosition();var a=this._physicalTop;if(this.grid){var b=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(c,d){var e=Math.floor(d%this._itemsPerRow*this._itemWidth+b);this._isRTL&&(e*=-1);this.translate3d(e+"px",a+"px",0,this._physicalItems[c]);this._shouldRenderNextRow(d)&&(a+=this._rowHeight)})}else this._iterateItems(function(c){this.translate3d(0,a+"px",0,this._physicalItems[c]); a+=this._physicalSizes[c]})}, _getPhysicalSizeIncrement:function(a){return this.grid?this._computeVidx(a)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[a]}, _shouldRenderNextRow:function(a){return a%this._itemsPerRow===this._itemsPerRow-1}, _adjustScrollPosition:function(){var a=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(a!==0){this._physicalTop=this._physicalTop-a;var b=this._scrollPosition;!fib&&b>0&&this._resetScrollPosition(b-a)}}, _resetScrollPosition:function(a){this.scrollTarget&&a>=0&&(this._scrollPosition=this._scrollTop=a)}, _updateScrollerSize:function(a){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((a=(a=(a=a||this._scrollHeight===0)||this._scrollPosition>=this._estScrollHeight-this._physicalSize)||this.grid&&this.$.items.style.height=this._viewportHeight)this.$.items.style.height= this._estScrollHeight+"px",this._scrollHeight=this._estScrollHeight}, scrollToItem:function(a){return this.scrollToIndex(this.items.indexOf(a))}, scrollToIndex:function(a){if(!(typeof a!=="number"||a<0||a>this.items.length-1)&&(Rr(),this._physicalCount!==0)){a=this._clamp(a,0,this._virtualCount-1);if(!this._isIndexRendered(a)||a>=this._maxVirtualStart)this._virtualStart=this.grid?a-this._itemsPerRow*2:a-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var b=this._physicalStart,c=this._virtualStart,d=0,e=this._hiddenContentSize;c=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(a)){var b=this.modelForElement(this._physicalItems[this._getPhysicalIndex(a)]);b&&(b[this.selectedAs]=!0);this.updateSizeForIndex(a)}this.$.selector.selectIndex(a)}}, deselectItem:function(a){return this.deselectIndex(this.items.indexOf(a))}, deselectIndex:function(a){a<0||a>=this._virtualCount||(this._isIndexRendered(a)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(a)])[this.selectedAs]=!1,this.updateSizeForIndex(a)),this.$.selector.deselectIndex(a))}, toggleSelectionForItem:function(a){return this.toggleSelectionForIndex(this.items.indexOf(a))}, toggleSelectionForIndex:function(a){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(a):this.$.selector.isSelected(this.items[a]))?this.deselectIndex(a):this.selectIndex(a)}, clearSelection:function(){this._iterateItems(function(a){this.modelForElement(this._physicalItems[a])[this.selectedAs]=!1}); this.$.selector.clearSelection()}, _selectionEnabledChanged:function(a){(a?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")}, _selectionHandler:function(a){var b=this.modelForElement(a.target);if(b){var c=es(a).path[0];a=this._getActiveElement();var d=this._physicalItems[this._getPhysicalIndex(b[this.indexAs])];if(c.localName!=="input"&&c.localName!=="button"&&c.localName!=="select"){c=b.tabIndex;b.tabIndex=-100;var e=a?a.tabIndex:-1;b.tabIndex=c;a&&d!==a&&d.contains(a)&&e!==-100||this.toggleSelectionForItem(b[this.as])}}}, _multiSelectionChanged:function(a){this.clearSelection();this.$.selector.multi=a}, updateSizeForItem:function(a){return this.updateSizeForIndex(this.items.indexOf(a))}, updateSizeForIndex:function(a){if(!this._isIndexRendered(a))return null;this._updateMetrics([this._getPhysicalIndex(a)]);this._positionItems();return null}, _manageFocus:function(){var a=this._focusedVirtualIndex;a>=0&&a0&&this._physicalCount>0&&(this._focusedPhysicalIndex=this._physicalStart,this._focusedVirtualIndex=this._virtualStart,this._focusedItem=this._physicalItems[this._physicalStart])}, _convertIndexToCompleteRow:function(a){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(a/this._itemsPerRow)*this._itemsPerRow:a}, _isIndexRendered:function(a){return a>=this._virtualStart&&a<=this._virtualEnd}, _isIndexVisible:function(a){return a>=this.firstVisibleIndex&&a<=this.lastVisibleIndex}, _getPhysicalIndex:function(a){return(this._physicalStart+(a-this._virtualStart))%this._physicalCount}, focusItem:function(a){this._focusPhysicalItem(a)}, _focusPhysicalItem:function(a){if(!(a<0||a>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(a)||this.scrollToIndex(a);var b=this._physicalItems[this._getPhysicalIndex(a)],c=this.modelForElement(b),d;c.tabIndex=-100;b.tabIndex===-100&&(d=b);d||(d=es(b).querySelector("[tabindex=\"-100\"]"));c.tabIndex=0;this._focusedVirtualIndex=a;d&&d.focus()}}, _removeFocusedItem:function(){this._offscreenFocusedItem&&this._itemsParent.removeChild(this._offscreenFocusedItem);this._focusedItem=this._focusBackfillItem=this._offscreenFocusedItem=null;this._focusedPhysicalIndex=this._focusedVirtualIndex=-1}, _createFocusBackfillItem:function(){var a=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var b=this.stamp(null);this._focusBackfillItem=b.root.querySelector("*");this._itemsParent.appendChild(b.root)}this._offscreenFocusedItem=this._physicalItems[a];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[a]=this._focusBackfillItem;this._focusedPhysicalIndex=a;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}}, _restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var a=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),b=this._physicalItems[a];if(b){var c=this.modelForElement(b),d=this.modelForElement(this._offscreenFocusedItem);c[this.as]===d[this.as]?(this._focusBackfillItem=b,c.tabIndex=-1,this._physicalItems[a]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(), this._focusBackfillItem=null);this._offscreenFocusedItem=null}}}, _didFocus:function(a){a=this.modelForElement(a.target);var b=this.modelForElement(this._focusedItem),c=this._offscreenFocusedItem!==null,d=this._focusedVirtualIndex;a&&(b===a?this._isIndexVisible(d)||this.scrollToIndex(d):(this._restoreFocusedItem(),b&&(b.tabIndex=-1),a.tabIndex=0,this._focusedVirtualIndex=d=a[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(d),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],c&&!this._offscreenFocusedItem&&this._update()))}, _keydownHandler:function(a){switch(a.keyCode){case 40:this._focusedVirtualIndex0&&a.preventDefault();this._focusPhysicalItem(this._focusedVirtualIndex-(this.grid?this._itemsPerRow:1));break;case 37:this.grid&&this._focusPhysicalItem(this._focusedVirtualIndex+( this._isRTL?1:-1));break;case 13:this._focusPhysicalItem(this._focusedVirtualIndex),this.selectionEnabled&&this._selectionHandler(a);}}, _clamp:function(a,b,c){return Math.min(c,Math.max(b,a))}, _debounce:function(a,b,c){this._debouncers=this._debouncers||{};this._debouncers[a]=Ar(this._debouncers[a],c,b.bind(this));Br(this._debouncers[a])}, _forwardProperty:function(a,b,c){a._setPendingProperty(b,c)}, _forwardHostPropV2:function(a,b){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(c){c&&this.modelForElement(c).forwardHostProp(a,b)},this)}, _notifyInstancePropV2:function(a,b,c){gxa(this.as,b)&&(a=a[this.indexAs],b==this.as&&(this.items[a]=c),this.notifyPath(ar(this.as,"items."+a,b),c))}, _getStampedChildren:function(){return this._physicalItems}, _forwardInstancePath:function(a,b,c){b.indexOf(this.as+".")===0&&this.notifyPath("items."+a.__key__+"."+b.slice(this.as.length+1),c)}, _forwardParentPath:function(a,b){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(c){c&&this.modelForElement(c).notifyPath(a,b)},this)}, _forwardParentProp:function(a,b){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(c){c&&(this.modelForElement(c)[a]=b)},this)}, _getActiveElement:function(){var a=this._itemsParent.node.domHost;return es(a?a.root:document).activeElement}, _scrollTargetChanged:function(a,b){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(b)if(a==="document")this.scrollTarget=this._doc;else if(typeof a==="string"){var c,d;this.scrollTarget=(b=(d=(c=this.domHost)==null?void 0:c.polymerController)!=null?d:this.domHost)&&b.$?b.$[a]:es(this.ownerDocument).querySelector("#"+a)}else this._isValidScrollTarget()&&(this._oldScrollTarget=a,this._toggleScrollListener(this._shouldHaveListener,a))}});var gib;var hib;ys({_template:function(){if(hib!==void 0)return hib;var a=document.createElement("template");Q(a,"\n");a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content, c=b.insertBefore;gib===void 0&&(gib=document.createElement("template"));var d=gib;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return hib=a}, is:"tp-yt-iron-pages",behaviors:[Es.IronResizableBehavior,Fs],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});var iib={properties:{elevation:{type:Number,reflectToAttribute:!0,readOnly:!0}},observers:["_calculateElevation(focused, disabled, active, pressed, receivedFocusFromKeyboard)","_computeKeyboardClass(receivedFocusFromKeyboard)"],hostAttributes:{role:"button",tabindex:"0",animated:!0},_calculateElevation:function(){var a=1;this.disabled?a=0:this.active||this.pressed?a=4:this.receivedFocusFromKeyboard&&(a=3);this._setElevation(a)}, _computeKeyboardClass:function(a){this.toggleClass("keyboard-focus",a)}, _spaceKeyDownHandler:function(a){Mw._spaceKeyDownHandler.call(this,a);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()}, _spaceKeyUpHandler:function(a){Mw._spaceKeyUpHandler.call(this,a);this.hasRipple()&&this._ripple.uiUpAction()}},jib=[Nw, Cs,by,iib];var kib;var lib;var mib=function(){}; g=mib.prototype;g.registered=function(){}; g.addOwnKeyBinding=function(){}; g.removeOwnKeyBindings=function(){}; g.keyboardEventMatchesKeys=function(){}; g._collectKeyBindings=function(){}; g._prepKeyBindings=function(){}; g._addKeyBinding=function(){}; g._resetKeyEventListeners=function(){}; g._listenKeyEventListeners=function(){}; g._unlistenKeyEventListeners=function(){}; g._onKeyBindingEvent=function(){}; g._triggerKeyHandler=function(){}; g._tapHandler=function(){}; g._focusChanged=function(){}; g._detectKeyboardFocus=function(){}; g._userActivate=function(){}; g._upHandler=function(){}; g._asyncClick=function(){}; g._pressedChanged=function(){}; g._ariaActiveAttributeChanged=function(){}; g._activeChanged=function(){}; g._controlStateChanged=function(){}; g._changedButtonState=function(){}; g._focusBlurHandler=function(){}; g._disabledChanged=function(){}; g._changedControlState=function(){}; g._buttonStateChanged=function(){}; g._downHandler=function(){}; g.ensureRipple=function(){}; g.getRipple=function(){}; g.hasRipple=function(){}; g._createRipple=function(){}; g._noinkChanged=function(){}; g._computeKeyboardClass=function(){}; g._spaceKeyDownHandler=function(){}; g._spaceKeyUpHandler=function(){}; g._setPressed=function(){}; g._setPointerDown=function(){}; g._setReceivedFocusFromKeyboard=function(){}; g._setFocused=function(){}; g._setElevation=function(){}; mib=ys({_template:function(){if(lib!==void 0)return lib;var a=document.createElement("template");Q(a,"\n");a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild); var b=a.content,c=b.insertBefore;kib===void 0&&(kib=document.createElement("template"));var d=kib;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return lib=a}, is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[jib],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?iib._calculateElevation.apply(this):this._setElevation(0)}});var nib;var oib;/* Copyright (c) 2016 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */ ys({_template:function(){if(oib!==void 0)return oib;var a=document.createElement("template");Q(a,"
\n
\n
\n
\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;nib===void 0&&(nib=document.createElement("template"));var d=nib;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return oib=a}, is:"tp-yt-paper-checkbox",behaviors:[JNa],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){ms(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var a=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),b="px",c=a.match(/[A-Za-z]+$/);c!==null&&(b=c[0]);a=parseFloat(a);c=8/3*a;b==="px"&&(c=Math.floor(c),c%2!==a%2&&c++);this.updateStyles({"--paper-checkbox-ink-size":c+ b})}})}, _computeCheckboxClass:function(a,b){var c="";a&&(c+="checked ");b&&(c+="invalid");return c}, _computeCheckmarkClass:function(a){return a?"":"hidden"}, _createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return HNa._createRipple.call(this)}});var pib;var qib;var rib={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},modern:{type:Boolean,value:!1,reflectToAttribute:!0},isAriaModal:{type:Boolean,value:!1},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)","isAriaModalChanged(isAriaModal)"],listeners:{tap:"_onDialogTap",click:"_onDialogClickWrapped"},_onDialogTap:function(a){x("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(a)}, _onDialogClickWrapped:function(a){x("dialog_behavior_no_tap_killswitch")||this._onDialogClick(a)}, ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0}, _modalChanged:function(a,b){b&&(a?(this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick,this.__prevNoCancelOnEscKey=this.noCancelOnEscKey,this.__prevWithBackdrop=this.withBackdrop,this.withBackdrop=this.noCancelOnEscKey=this.noCancelOnOutsideClick=!0,this.setAttribute("aria-modal","true")):(this.noCancelOnOutsideClick=this.noCancelOnOutsideClick&&this.__prevNoCancelOnOutsideClick,this.noCancelOnEscKey=this.noCancelOnEscKey&&this.__prevNoCancelOnEscKey,this.withBackdrop=this.withBackdrop&& this.__prevWithBackdrop))}, isAriaModalChanged:function(a){if(a){var b;((b=this.hostElement)!=null?b:this).setAttribute("aria-modal","true")}else{var c;((c=this.hostElement)!=null?c:this).removeAttribute("aria-modal")}}, _updateClosingReasonConfirmed:function(a){this.closingReason=this.closingReason||{};this.closingReason.confirmed=a}, _onDialogClick:function(a){for(var b=es(a).path,c=0,d,e=b.indexOf((d=this.hostElement)!=null?d:this);c\n");a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild); var b=a.content,c=b.insertBefore;pib===void 0&&(pib=document.createElement("template"));var d=pib;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return qib=a}, is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[[TI,rib],ehb],listeners:{"neon-animation-finish":"_onNeonAnimationFinish"},_renderOpened:function(){this.cancelAnimation();this.playAnimation("entry")}, _renderClosed:function(){this.cancelAnimation();this.playAnimation("exit")}, _onNeonAnimationFinish:function(){this.opened?this._finishRenderOpened():this._finishRenderClosed()}});var sib;var tib;ys({_template:function(){if(tib!==void 0)return tib;var a=document.createElement("template");Q(a,"
\n \n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;sib===void 0&&(sib=document.createElement("template"));var d=sib;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return tib=a}, is:"tp-yt-paper-dialog-scrollable",properties:{dialogElement:{type:Object}},get scrollTarget(){return this.$.scrollable},ready:function(){this._ensureTarget();this.classList.add("no-padding")}, attached:function(){this._ensureTarget();requestAnimationFrame(this.updateScrollState.bind(this))}, updateScrollState:function(){this.toggleClass("is-scrolled",this.scrollTarget.scrollTop>0);this.toggleClass("can-scroll",this.scrollTarget.offsetHeight=this.scrollTarget.scrollHeight)}, _ensureTarget:function(){var a,b,c;if(((a=window.ShadyDOM)==null?void 0:a.noPatch)!==!0&&((b=window.ShadyDOM)==null?void 0:b.noPatch)!=="on-demand"||((c=this.__shady_parentNode)==null?void 0:c.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(rib)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var uib;var vib;var wib=la(["\n\n\n\n"]),xib=nr(wib);xib.setAttribute("style","display: none;");document.head.appendChild(xib.content);var yib;var zib;var Aib=1,Bib=1,Cib=1,Dib=[Cs,Lw,{properties:{label:{type:String},value:{notify:!0,type:String},disabled:{type:Boolean,value:!1},invalid:{type:Boolean,value:!1,notify:!0},allowedPattern:{type:String},type:{type:String},list:{type:String},pattern:{type:String},required:{type:Boolean,value:!1},errorMessage:{type:String},charCounter:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1},alwaysFloatLabel:{type:Boolean,value:!1},autoValidate:{type:Boolean,value:!1},validator:{type:String},autocomplete:{type:String, value:"off"},autofocus:{type:Boolean,observer:"_autofocusChanged"},inputmode:{type:String},minlength:{type:Number},maxlength:{type:Number},min:{type:String},max:{type:String},step:{type:String},name:{type:String},placeholder:{type:String,value:""},readonly:{type:Boolean,value:!1},size:{type:Number},autocapitalize:{type:String,value:"none"},autocorrect:{type:String,value:"off"},autosave:{type:String},results:{type:Number},accept:{type:String},multiple:{type:Boolean},inputDir:{type:String},_typesThatHaveText:{type:Array}, _ariaDescribedBy:{type:String,value:""},_ariaLabelledBy:{type:String,value:""},_inputId:{type:String,value:""}},listeners:{"addon-attached":"_onAddonAttached"},keyBindings:{"shift+tab:keydown":"_onShiftTabDown"},hostAttributes:{tabindex:0},get inputElement(){this.$||(this.$={});this.$.input||(this._generateInputId(),this.$.input=this.$$("#"+this._inputId));return this.$.input},get _focusableElement(){return this.inputElement},created:function(){this._typesThatHaveText="date datetime datetime-local month time week file".split(" ")}, attached:function(){this._updateAriaLabelledBy();!or&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)}, _appendStringWithSpace:function(a,b){a?a=a+" "+b:a=b;return a}, _onAddonAttached:function(a){a=es(a).rootTarget;if(a.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,a.id);else{var b="paper-input-add-on-"+Bib++;a.id=b;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,b)}}, validate:function(){return this.inputElement.validate()}, _focusBlurHandler:function(a){Cs._focusBlurHandler.call(this,a);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()}, _onShiftTabDown:function(){var a=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",a);this._shiftTabPressed=!1},1)}, _handleAutoValidate:function(){this.autoValidate&&this.validate()}, updateValueAndPreserveCaret:function(a){try{var b=this.inputElement.selectionStart;this.value=a;this.inputElement.selectionStart=b;this.inputElement.selectionEnd=b}catch(c){this.value=a}}, _computeAlwaysFloatLabel:function(a,b){return b||a}, _updateAriaLabelledBy:function(){var a=es(this.root).querySelector("label");if(a){if(a.id)var b=a.id;else b="paper-input-label-"+Aib++,a.id=b;this._ariaLabelledBy=b}else this._ariaLabelledBy=""}, _generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+Cib++)}, _onChange:function(a){this.shadowRoot&&this.fire(a.type,{sourceEvent:a},{node:this,bubbles:a.bubbles,cancelable:a.cancelable})}, _autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var a=document.activeElement;a instanceof HTMLElement&&a!==document.body&&a!==document.documentElement||this._focusableElement.focus()}}}];var Eib={attached:function(){this.fire("addon-attached")}, update:function(){}};var Fib;var Gib;ys({_template:function(){if(Gib!==void 0)return Gib;var a=document.createElement("template");Q(a,"[[_charCounterStr]]\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;Fib===void 0&&(Fib=document.createElement("template"));var d=Fib;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Gib=a}, is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[Eib],properties:{_charCounterStr:{type:String,value:"0"}},update:function(a){if(a.inputElement){a.value=a.value||"";var b=a.value.toString().length.toString();a.inputElement.hasAttribute("maxlength")&&(b+="/"+a.inputElement.getAttribute("maxlength"));this._charCounterStr=b}}});var Hib;var Iib;ys({_template:function(){if(Iib!==void 0)return Iib;var a=document.createElement("template");Q(a,"\n\n
\n \n\n
\n \n \n
\n\n \n
\n\n
\n
\n
\n
\n\n
\n \n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Hib===void 0&&(Hib=document.createElement("template"));var d=Hib;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Iib=a}, is:"tp-yt-paper-input-container",hostAttributes:{"style-target":"host"},properties:{noLabelFloat:{type:Boolean,value:!1},alwaysFloatLabel:{type:Boolean,value:!1},attrForValue:{type:String,value:"bind-value"},autoValidate:{type:Boolean,value:!1},invalid:{observer:"_invalidChanged",type:Boolean,value:!1},focused:{readOnly:!0,type:Boolean,value:!1,notify:!0},noUnfloatedLabelError:{type:Boolean,value:!1},_addons:{type:Array},_inputHasContent:{type:Boolean,value:!1},_inputSelector:{type:String,value:"input,tp-yt-iron-input,textarea,.paper-input-input"}, _boundOnFocus:{type:Function,value:function(){return this._onFocus.bind(this)}}, _boundOnBlur:{type:Function,value:function(){return this._onBlur.bind(this)}}, _boundOnInput:{type:Function,value:function(){return this._onInput.bind(this)}}, _boundValueChanged:{type:Function,value:function(){return this._onValueChanged.bind(this)}}}, listeners:{"addon-attached":"_onAddonAttached","iron-input-validate":"_onIronInputValidate"},get _valueChangedEvent(){return this.attrForValue+"-changed"},get _propertyForValue(){return Vq(this.attrForValue)},get _inputElement(){return es(this).querySelector(this._inputSelector)},get _inputElementValue(){return this._inputElement[this._propertyForValue]||this._inputElement.value},ready:function(){this.__isFirstValueUpdate=!0;this._addons||(this._addons=[]);this.addEventListener("focus",this._boundOnFocus, !0);this.addEventListener("blur",this._boundOnBlur,!0)}, attached:function(){this.attrForValue||this.addEventListener("input",this._onInput);this.initializeInput()}, onInputSlotChanged:function(){this._addons||(this._addons=[]);this.attrForValue&&this._inputElement.addEventListener(this._valueChangedEvent,this._boundValueChanged);this.initializeInput()}, initializeInput:function(){this._inputElement&&(this._inputElementValue&&this._inputElementValue!=""?this._handleValueAndAutoValidate(this._inputElement):this._handleValue(this._inputElement))}, _onAddonAttached:function(a){this._addons||(this._addons=[]);a=a.target;this._addons.indexOf(a)===-1&&(this._addons.push(a),this.isAttached&&this._handleValue(this._inputElement))}, _onFocus:function(){this._setFocused(!0)}, _onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)}, _onInput:function(a){this._handleValueAndAutoValidate(a.target)}, _onValueChanged:function(a){var b=a.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,b.value===void 0||b.value===""))return;this._handleValueAndAutoValidate(a.target)}, _handleValue:function(a){var b=this._inputElementValue;b||b===0||a.type==="number"&&!a.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:a,value:b,invalid:this.invalid})}, _handleValueAndAutoValidate:function(a){this.autoValidate&&a&&(this.invalid=!(a.validate?a.validate(this._inputElementValue):a.checkValidity()));this._handleValue(a)}, _onIronInputValidate:function(){this.invalid=this._inputElement.invalid}, _invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})}, updateAddons:function(a){if(this._addons)for(var b,c=0;b=this._addons[c];c++)b.update(a)}, _computeInputContentClass:function(a,b,c,d,e){var f="input-content";a?(e&&(f+=" label-is-hidden"),d&&!this.noUnfloatedLabelError&&(f+=" is-invalid")):(a=this.querySelector("label"),b||e?(f+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",d?f+=" is-invalid":c&&(f+=" label-is-highlighted")):(a&&(this.$.labelAndInputContainer.style.position="relative"),d&&!this.noUnfloatedLabelError&&(f+=" is-invalid")));c&&(f+=" focused");return f}, _computeUnderlineClass:function(a,b){var c="underline";b?c+=" is-invalid":a&&(c+=" is-highlighted");return c}, _computeAddOnContentClass:function(a,b){var c="add-on-content";b?c+=" is-invalid":a&&(c+=" is-highlighted");return c}});var Jib;var Kib;ys({_template:function(){if(Kib!==void 0)return Kib;var a=document.createElement("template");Q(a,"\n
\n \n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Jib===void 0&&(Jib=document.createElement("template"));var d=Jib;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Kib=a}, is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[Eib],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(a){this._setInvalid(a.invalid)}});ys({is:"tp-yt-paper-input",_template:function(){if(zib!==void 0)return zib;var a=document.createElement("template");Q(a,"\n \n\n \n\n \n \n \n \n\n \n\n \n\n \n\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;yib===void 0&&(yib=document.createElement("template"));var d=yib;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return zib=a}, behaviors:[Dib,Ow],properties:{value:{type:String},noUnfloatedLabelError:{type:Boolean,value:!1},inputRole:{type:String,value:void 0},inputAriaHaspopup:{type:String,value:void 0}},get _focusableElement(){return this.inputElement._inputElement},listeners:{"iron-input-ready":"_onIronInputReady"},_onIronInputReady:function(){this.$.nativeInput||(this.$.nativeInput=this.$$("input"));this.inputElement&&this._typesThatHaveText.indexOf(this.$.nativeInput.type)!==-1&&(this.alwaysFloatLabel=!0);this.inputElement.bindValue&& this.$.container._handleValueAndAutoValidate(this.inputElement)}});var Lib;var Mib;ys({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[LI],configure:function(a){var b=a.node,c=b.getBoundingClientRect().height;return this._effect=new KeyframeEffect(b,[{height:c/2+"px"},{height:c+"px"}],this.timingFromConfig(a))}}); ys({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[LI],configure:function(a){var b=a.node,c=b.getBoundingClientRect().width;return this._effect=new KeyframeEffect(b,[{width:c/2+"px"},{width:c+"px"}],this.timingFromConfig(a))}}); ys({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[LI],configure:function(a){var b=a.node,c=b.getBoundingClientRect().width;return this._effect=new KeyframeEffect(b,[{width:c+"px"},{width:c-c/20+"px"}],this.timingFromConfig(a))}}); ys({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[LI],configure:function(a){var b=a.node,c=b.getBoundingClientRect().height;this.setPrefixedProperty(b,"transformOrigin","0 0");return this._effect=new KeyframeEffect(b,[{height:c+"px",transform:"translateY(0)"},{height:c/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(a))}});var UI={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},Nib=function(){}; g=Nib.prototype;g.registered=function(){}; g.addOwnKeyBinding=function(){}; g.removeOwnKeyBindings=function(){}; g.keyboardEventMatchesKeys=function(){}; g._collectKeyBindings=function(){}; g._prepKeyBindings=function(){}; g._addKeyBinding=function(){}; g._resetKeyEventListeners=function(){}; g._listenKeyEventListeners=function(){}; g._unlistenKeyEventListeners=function(){}; g._onKeyBindingEvent=function(){}; g._triggerKeyHandler=function(){}; g._focusBlurHandler=function(){}; g._changedControlState=function(){}; g._setFocused=function(){}; Nib=ys({_template:function(){if(Mib!==void 0)return Mib;var a=document.createElement("template");Q(a,"
\n \n
\n\n\n
\n \n
\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Lib===void 0&&(Lib=document.createElement("template"));var d=Lib;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Mib=a}, is:"tp-yt-paper-menu-button",behaviors:[Lw,Cs],properties:{opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},horizontalAlign:{type:String,value:"left",reflectToAttribute:!0},verticalAlign:{type:String,value:"top",reflectToAttribute:!0},dynamicAlign:{type:Boolean},horizontalOffset:{type:Number,value:0,notify:!0},verticalOffset:{type:Number,value:0,notify:!0},noOverlap:{type:Boolean},noAnimations:{type:Boolean,value:!1},ignoreSelect:{type:Boolean,value:!1},closeOnActivate:{type:Boolean, value:!1},openAnimationConfig:{type:Object,value:function(){return[{name:"fade-in-animation",timing:{delay:100,duration:200}},{name:"tp-yt-paper-menu-grow-width-animation",timing:{delay:100,duration:150,easing:UI.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:UI.ANIMATION_CUBIC_BEZIER}}]}}, closeAnimationConfig:{type:Object,value:function(){return[{name:"fade-out-animation",timing:{duration:150}},{name:"tp-yt-paper-menu-shrink-width-animation",timing:{delay:100,duration:50,easing:UI.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-shrink-height-animation",timing:{duration:200,easing:"ease-in"}}]}}, allowOutsideScroll:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!0},expandSizingTargetForScrollbars:{type:Boolean,value:!1},_dropdownContent:{type:Object},fitInto:{type:Object}},hostAttributes:{role:"group","aria-haspopup":"true"},listeners:{"iron-activate":"_onIronActivate","iron-select":"_onIronSelect"},get contentElement(){for(var a=es(this.$.content).getDistributedNodes(),b=0,c=a.length;b-1&&a.preventDefault()}}); Object.keys(UI).forEach(function(a){Nib[a]=UI[a]});var Oib=KI.IronButtonState,Pib=ws(HTMLElement); ys({_template:function(){if(vib!==void 0)return vib;var a=document.createElement("template");Q(a,"\n \n
\n \n \n \n \n \n \n \n \n \n
\n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;uib===void 0&&(uib=document.createElement("template"));var d=uib;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return vib=a}, is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[Oib,Cs,Ow,Rw],properties:{selectedItemLabel:{type:String,notify:!0,readOnly:!0},selectedItem:{type:Object,notify:!0,readOnly:!0},value:{type:String,notify:!0},label:{type:String},placeholder:{type:String},errorMessage:{type:String},opened:{type:Boolean,notify:!0,value:!1,observer:"_openedChanged"},allowOutsideScroll:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1,reflectToAttribute:!0},alwaysFloatLabel:{type:Boolean, value:!1},noAnimations:{type:Boolean,value:!1},horizontalAlign:{type:String,value:"right"},verticalAlign:{type:String,value:"top"},verticalOffset:Number,dynamicAlign:{type:Boolean},restoreFocusOnClose:{type:Boolean,value:!0},expandSizingTargetForScrollbars:{type:Boolean,value:!1},fitInto:{type:Object}},listeners:{tap:"_onTap"},keyBindings:{"up down":"open",esc:"close"},observers:["_selectedItemChanged(selectedItem)"],_attachDom:function(a){var b=Sq(this);b.attachShadow({mode:"open",delegatesFocus:!0, shadyUpgradeFragment:a});b.shadowRoot.appendChild(a);return Pib.prototype._attachDom.call(this,a)}, focus:function(){this.$.input._focusableElement.focus()}, attached:function(){var a=this.contentElement;a&&a.selectedItem&&this._setSelectedItem(a.selectedItem)}, get contentElement(){for(var a=es(this.$.content).getDistributedNodes(),b=0,c=a.length;b\n \n
\n \n
 
\n \n [[errorMessage]]\n
\n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;Qib===void 0&&(Qib=document.createElement("template"));var d=Qib;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Rib=a}, is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[Sib,Cs,by,Ow,Rw],properties:{selectedItemLabel:{type:String,notify:!0,readOnly:!0},selectedItem:{type:Object,notify:!0,readOnly:!0},value:{type:String,notify:!0,observer:"_valueChanged"},label:{type:String},placeholder:{type:String},opened:{type:Boolean,notify:!0,value:!1,observer:"_openedChanged"},allowOutsideScroll:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1,reflectToAttribute:!0},alwaysFloatLabel:{type:Boolean, value:!1},noAnimations:{type:Boolean,value:!1},horizontalAlign:{type:String,value:"right"},verticalAlign:{type:String,value:"top"},verticalOffset:Number,hasContent:{type:Boolean,readOnly:!0}},listeners:{tap:"_onTap"},keyBindings:{"up down":"open",esc:"close"},observers:["_selectedItemChanged(selectedItem)"],_attachDom:function(a){var b=Sq(this);b.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:a});b.shadowRoot.appendChild(a);return Tib.prototype._attachDom.call(this,a)}, focus:function(){this.$["dropdown-trigger"].focus()}, attached:function(){var a=this.contentElement;a&&a.selectedItem&&this._setSelectedItem(a.selectedItem)}, get contentElement(){for(var a=es(this.$.content).getDistributedNodes(),b=0,c=a.length;b\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Uib===void 0&&(Uib=document.createElement("template"));var d=Uib;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Vib=a}, hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[INa],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(a,b){var c=this.getAttribute("aria-label");c&&b!=c||this.setAttribute("aria-label",a)}});var Wib;var Xib;ys({_template:function(){if(Xib!==void 0)return Xib;var a=document.createElement("template");Q(a,"
\n \n
\n\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Wib===void 0&&(Wib=document.createElement("template"));var d=Wib;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Xib=a}, is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[cy]});var Yib;var Zib;ys({_template:function(){if(Zib!==void 0)return Zib;var a=document.createElement("template");Q(a,"\n");a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild); var b=a.content,c=b.insertBefore;Yib===void 0&&(Yib=document.createElement("template"));var d=Yib;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Zib=a}, is:"tp-yt-paper-item-body"});var $ib;var ajb;ys({_template:function(){if(ajb!==void 0)return ajb;var a=document.createElement("template");Q(a,"
\n
\n
\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;$ib===void 0&&($ib=document.createElement("template"));var d=$ib;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return ajb=a}, is:"tp-yt-paper-progress",behaviors:[chb],properties:{secondaryProgress:{type:Number,value:0},secondaryRatio:{type:Number,value:0,readOnly:!0},indeterminate:{type:Boolean,value:!1,observer:"_toggleIndeterminate"},disabled:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_disabledChanged"}},observers:["_progressChanged(secondaryProgress, value, min, max, indeterminate)"],hostAttributes:{role:"progressbar"},_toggleIndeterminate:function(a){this.toggleClass("indeterminate",a,this.$.primaryProgress)}, _transformProgress:function(a,b){a.style.transform=a.style.webkitTransform="scaleX("+b/100+")"}, _mainRatioChanged:function(a){this._transformProgress(this.$.primaryProgress,a)}, _progressChanged:function(a,b,c,d,e){a=this._clampValue(a);b=this._clampValue(b);var f=this._calcRatio(a)*100,h=this._calcRatio(b)*100;this._setSecondaryRatio(f);this._transformProgress(this.$.secondaryProgress,f);this._transformProgress(this.$.primaryProgress,h);this.secondaryProgress=a;e?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",b);this.setAttribute("aria-valuemin",c);this.setAttribute("aria-valuemax",d)}, _disabledChanged:function(a){this.setAttribute("aria-disabled",a?"true":"false")}, _hideSecondaryProgress:function(a){return a===0}});var bjb;var cjb;var djb=function(){}; g=djb.prototype;g.addOwnKeyBinding=function(){}; g.removeOwnKeyBindings=function(){}; g.keyboardEventMatchesKeys=function(){}; g._collectKeyBindings=function(){}; g._prepKeyBindings=function(){}; g._addKeyBinding=function(){}; g._resetKeyEventListeners=function(){}; g._listenKeyEventListeners=function(){}; g._unlistenKeyEventListeners=function(){}; g._onKeyBindingEvent=function(){}; g._triggerKeyHandler=function(){}; g._tapHandler=function(){}; g._focusChanged=function(){}; g._detectKeyboardFocus=function(){}; g._userActivate=function(){}; g._upHandler=function(){}; g._spaceKeyDownHandler=function(){}; g._spaceKeyUpHandler=function(){}; g._asyncClick=function(){}; g._pressedChanged=function(){}; g._ariaActiveAttributeChanged=function(){}; g._activeChanged=function(){}; g._controlStateChanged=function(){}; g._changedButtonState=function(){}; g._focusBlurHandler=function(){}; g._disabledChanged=function(){}; g._changedControlState=function(){}; g._downHandler=function(){}; g.ensureRipple=function(){}; g.getRipple=function(){}; g.hasRipple=function(){}; g._noinkChanged=function(){}; g._focusedChanged=function(){}; g._createRipple=function(){}; g.registered=function(){}; g._invalidChanged=function(){}; g.hasValidator=function(){}; g.validate=function(){}; g._getValidity=function(){}; g._requiredChanged=function(){}; g._valueChanged=function(){}; g._checkedChanged=function(){}; g._buttonStateChanged=function(){}; g._setPressed=function(){}; g._setPointerDown=function(){}; g._setReceivedFocusFromKeyboard=function(){}; g._setFocused=function(){}; djb=ys({is:"tp-yt-paper-radio-button",_template:function(){if(cjb!==void 0)return cjb;var a=document.createElement("template");Q(a,"
\n
\n
\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;bjb===void 0&&(bjb=document.createElement("template"));var d=bjb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return cjb=a}, behaviors:[JNa],hostAttributes:{role:"radio","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"},name:{type:String,reflectToAttribute:!0}},ready:function(){this._rippleContainer=this.$.radioContainer}, attached:function(){ms(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var a=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),b=Math.floor(3*a);b%2!==a%2&&b++;this.updateStyles({"--paper-radio-button-ink-size":b+"px"})}})}});var ejb;var fjb;ys({_template:function(){if(fjb!==void 0)return fjb;var a=document.createElement("template");Q(a,"\n");a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild); var b=a.content,c=b.insertBefore;ejb===void 0&&(ejb=document.createElement("template"));var d=ejb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return fjb=a}, is:"tp-yt-paper-radio-group",behaviors:[bhb],hostAttributes:{role:"radiogroup"},properties:{attrForSelected:{type:String,value:"name"},selectedAttribute:{type:String,value:"checked"},selectable:{type:String,value:"tp-yt-paper-radio-button"},allowEmptySelection:{type:Boolean,value:!1}},select:function(a){var b=this._valueToItem(a);if(!b||!b.hasAttribute("disabled")){if(this.selected){b=this._valueToItem(this.selected);if(this.selected==a)if(this.allowEmptySelection)a="";else{b&&(b.checked=!0);return}b&&( b.checked=!1)}Fs.select.apply(this,[a]);this.fire("paper-radio-group-changed")}}, _activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)}, _onUpKey:function(a){this._focusPrevious();a.preventDefault();this._activateFocusedItem()}, _onDownKey:function(a){this._focusNext();a.preventDefault();this._activateFocusedItem()}, _onLeftKey:function(a){ahb._onLeftKey.apply(this,arguments);this._activateFocusedItem()}, _onRightKey:function(a){ahb._onRightKey.apply(this,arguments);this._activateFocusedItem()}, _applySelection:function(){Fs._applySelection.apply(this,arguments)}, _resetTabindices:function(){Sw._resetTabindices.apply(this,arguments);this.items.forEach(function(a){a.removeAttribute("aria-selected")},this)}});var gjb;var hjb;var ijb=function(){}; g=ijb.prototype;g.registered=function(){}; g.addOwnKeyBinding=function(){}; g.removeOwnKeyBindings=function(){}; g.keyboardEventMatchesKeys=function(){}; g._collectKeyBindings=function(){}; g._prepKeyBindings=function(){}; g._addKeyBinding=function(){}; g._resetKeyEventListeners=function(){}; g._listenKeyEventListeners=function(){}; g._unlistenKeyEventListeners=function(){}; g._onKeyBindingEvent=function(){}; g._triggerKeyHandler=function(){}; g._tapHandler=function(){}; g._focusChanged=function(){}; g._detectKeyboardFocus=function(){}; g._userActivate=function(){}; g._upHandler=function(){}; g._spaceKeyDownHandler=function(){}; g._spaceKeyUpHandler=function(){}; g._asyncClick=function(){}; g._pressedChanged=function(){}; g._ariaActiveAttributeChanged=function(){}; g._activeChanged=function(){}; g._controlStateChanged=function(){}; g._changedButtonState=function(){}; g._focusBlurHandler=function(){}; g._disabledChanged=function(){}; g._changedControlState=function(){}; g._buttonStateChanged=function(){}; g._downHandler=function(){}; g.ensureRipple=function(){}; g.getRipple=function(){}; g.hasRipple=function(){}; g._noinkChanged=function(){}; g._calcRatio=function(){}; g._clampValue=function(){}; g._calcStep=function(){}; g._validateValue=function(){}; g._update=function(){}; g._setImmediateValue=function(){}; g._setExpand=function(){}; g._setDragging=function(){}; g._setTransiting=function(){}; g._setMarkers=function(){}; g._setPressed=function(){}; g._setPointerDown=function(){}; g._setReceivedFocusFromKeyboard=function(){}; g._setFocused=function(){}; g._setRatio=function(){}; ijb=ys({_template:function(){if(hjb!==void 0)return hjb;var a=document.createElement("template");Q(a,"
\n
\n \n \n
\n\n \n\n
\n
\n
\n
\n
\n
\n\n\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;gjb===void 0&&(gjb=document.createElement("template"));var d=gjb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return hjb=a}, is:"tp-yt-paper-slider",behaviors:[Lw,Ow,INa,chb],properties:{value:{type:Number,value:0},snaps:{type:Boolean,value:!1,notify:!0},pin:{type:Boolean,value:!1,notify:!0},secondaryProgress:{type:Number,value:0,notify:!0,observer:"_secondaryProgressChanged"},editable:{type:Boolean,value:!1},immediateValue:{type:Number,value:0,readOnly:!0,notify:!0},maxMarkers:{type:Number,value:0,notify:!0},expand:{type:Boolean,value:!1,readOnly:!0},ignoreBarTouch:{type:Boolean,value:!1},dragging:{type:Boolean,value:!1, readOnly:!0,notify:!0},transiting:{type:Boolean,value:!1,readOnly:!0},markers:{type:Array,readOnly:!0,value:function(){return[]}}, light:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["_updateKnob(value, min, max, snaps, step)","_valueChanged(value)","_immediateValueChanged(immediateValue)","_updateMarkers(maxMarkers, min, max, snaps)"],hostAttributes:{role:"slider",tabindex:0},keyBindings:{left:"_leftKey",right:"_rightKey","down pagedown home":"_decrementKey","up pageup end":"_incrementKey"},ready:function(){this.ignoreBarTouch&&Mr(this.$.sliderBar,"auto")}, increment:function(){this.value=this._clampValue(this.value+this.step)}, decrement:function(){this.value=this._clampValue(this.value-this.step)}, _updateKnob:function(a,b,c){this.setAttribute("aria-valuemin",b);this.setAttribute("aria-valuemax",c);this.setAttribute("aria-valuenow",a);this._positionKnob(this._calcRatio(a)*100)}, _valueChanged:function(){this.fire("value-change",{composed:!0})}, _immediateValueChanged:function(){this.dragging?this.fire("immediate-value-change",{composed:!0}):this.value=this.immediateValue}, _secondaryProgressChanged:function(){this.secondaryProgress=this._clampValue(this.secondaryProgress)}, _expandKnob:function(){this._setExpand(!0)}, _resetKnob:function(){this.cancelDebouncer("expandKnob");this._setExpand(!1)}, _positionKnob:function(a){this._setImmediateValue(this._calcStep(this._calcKnobPosition(a)));this._setRatio(this._calcRatio(this.immediateValue)*100);this.$.sliderKnob.style.left=this.ratio+"%";this.dragging&&(this._knobstartx=this.ratio*this._w/100,this.translate3d(0,0,0,this.$.sliderKnob))}, _calcKnobPosition:function(a){return(this.max-this.min)*a/100+this.min}, _onTrack:function(a){a.stopPropagation();switch(a.detail.state){case"start":this._trackStart(a);break;case"track":this._trackX(a);break;case"end":this._trackEnd();}}, _trackStart:function(){this._setTransiting(!1);this._w=this.$.sliderBar.offsetWidth;this._knobstartx=this._startx=this._x=this.ratio*this._w/100;this._minx=-this._startx;this._maxx=this._w-this._startx;this.$.sliderKnob.classList.add("dragging");this._setDragging(!0)}, _trackX:function(a){this.dragging||this._trackStart(a);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,a.detail.dx*(this._isRTL?-1:1)));a=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(a);a=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(a+"px",0,0,this.$.sliderKnob)}, _trackEnd:function(){var a=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;a.transform=a.webkitTransform="";this.fire("change",{composed:!0})}, _knobdown:function(a){this._expandKnob();a.preventDefault();this.focus()}, _bartrack:function(a){this._allowBarEvent(a)&&this._onTrack(a)}, _barclick:function(a){this._w=this.$.sliderBar.offsetWidth;var b=this.$.sliderBar.getBoundingClientRect();b=(a.detail.x-b.left)/this._w*100;this._isRTL&&(b=100-b);var c=this.ratio;this._setTransiting(!0);this._positionKnob(b);c===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})}); a.preventDefault();this.focus()}, _bardown:function(a){this._allowBarEvent(a)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(a))}, _knobTransitionEnd:function(a){a.target===this.$.sliderKnob&&this._setTransiting(!1)}, _updateMarkers:function(a,b,c,d){d||this._setMarkers([]);b=Math.round((c-b)/this.step);b>a&&(b=a);if(b<0||!isFinite(b))b=0;this._setMarkers(Array(b))}, _mergeClasses:function(a){return Object.keys(a).filter(function(b){return a[b]}).join(" ")}, _getClassNames:function(){return this._mergeClasses({disabled:this.disabled,pin:this.pin,snaps:this.snaps,ring:this.immediateValue<=this.min,expand:this.expand,dragging:this.dragging,transiting:this.transiting,editable:this.editable})}, _allowBarEvent:function(a){return!this.ignoreBarTouch||a.detail.sourceEvent instanceof MouseEvent}, get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(a){this._isRTL?this._incrementKey(a):this._decrementKey(a)}, _rightKey:function(a){this._isRTL?this._decrementKey(a):this._incrementKey(a)}, _incrementKey:function(a){this.disabled||(a.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),a.preventDefault())}, _decrementKey:function(a){this.disabled||(a.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),a.preventDefault())}, _changeValue:function(a){this.value=a.target.value;this.fire("change",{composed:!0})}, _inputKeyDown:function(a){a.stopPropagation()}, _createRipple:function(){this._rippleContainer=this.$.sliderKnob;return HNa._createRipple.call(this)}, _focusedChanged:function(a){a&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=a?"":"none",this._ripple.holdDown=a)}});var jjb;var kjb;var ljb={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(a,b){return[a||b?"active":"",b?"cooldown":""].join(" ")}, __activeChanged:function(a,b){this.__setAriaHidden(!a);this.__coolingDown=!a&&b}, __altChanged:function(a){this.setAttribute("aria-label",a||"loading")}, __setAriaHidden:function(a){a?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")}, __reset:function(){this.__coolingDown=this.active=!1}};ys({_template:function(){if(kjb!==void 0)return kjb;var a=document.createElement("template");Q(a,"
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
\n
\n
\n
\n
\n
\n
\n
\n\n
\n
\n
\n
\n
\n
\n
\n
\n\n
\n
\n
\n
\n
\n
\n
\n
\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;jjb===void 0&&(jjb=document.createElement("template"));var d=jjb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return kjb=a}, is:"tp-yt-paper-spinner",behaviors:[ljb]});var mjb;var njb;ys({_template:function(){if(njb!==void 0)return njb;var a=document.createElement("template");Q(a,"
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;mjb===void 0&&(mjb=document.createElement("template"));var d=mjb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return njb=a}, is:"tp-yt-paper-spinner-lite",behaviors:[ljb]});var ojb;var pjb;ys({_template:function(){if(pjb!==void 0)return pjb;var a=document.createElement("template");Q(a,"
\n \n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;ojb===void 0&&(ojb=document.createElement("template"));var d=ojb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return pjb=a}, is:"tp-yt-paper-tab",behaviors:[Cs,KI.IronButtonState,by],properties:{link:{type:Boolean,value:!1,reflectToAttribute:!0},noBoldOnFocus:{type:Boolean,value:!1,reflectToAttribute:!0}},hostAttributes:{role:"tab","style-target":"host"},listeners:{down:"_updateNoink",tap:"_onTap"},attached:function(){this._updateNoink()}, get _parentNoink(){var a=es(this).parentNode;return!!a&&!!a.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink}, _onTap:function(a){if(this.link){var b=this.queryEffectiveChildren("a");b&&a.target!==b&&b.click()}}});var qjb;var rjb;var sjb=la(["\n\n\n\n\n"]),tjb=nr(sjb);document.head.appendChild(tjb.content);ys({_template:function(){if(rjb!==void 0)return rjb;var a=document.createElement("template");Q(a,"\n\n\n
\n
\n
\n \n
\n
\n\n\n\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;qjb===void 0&&(qjb=document.createElement("template"));var d=qjb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return rjb=a}, is:"tp-yt-paper-tabs",behaviors:[Es.IronResizableBehavior,bhb],properties:{noink:{type:Boolean,value:!1,observer:"_noinkChanged"},noBar:{type:Boolean,value:!1},noSlide:{type:Boolean,value:!1},scrollable:{type:Boolean,value:!1},fitContainer:{type:Boolean,value:!1},disableDrag:{type:Boolean,value:!1},hideScrollButtons:{type:Boolean,value:!1},removeIdleScrollButtons:{type:Boolean,value:!1},alignBottom:{type:Boolean,value:!1},selectable:{type:String,value:"tp-yt-paper-tab"},autoselect:{type:Boolean,value:!1}, autoselectDelay:{type:Number,value:0},altNext:{type:String,value:""},altPrevious:{type:String,value:""},_step:{type:Number,value:10},_holdDelay:{type:Number,value:1},_leftHidden:{type:Boolean,value:!1},_rightHidden:{type:Boolean,value:!1},_previousTab:{type:Object},slottedScrollButtons:{type:Boolean,value:!1}},hostAttributes:{role:"tablist"},listeners:{"iron-resize":"_onTabSizingChanged","iron-items-changed":"_onTabSizingChanged","iron-select":"_onIronSelect","iron-deselect":"_onIronDeselect"},keyBindings:{"left:keyup right:keyup":"_onArrowKeyup"}, created:function(){this._holdJob=null;this._pendingActivationTimeout=this._pendingActivationItem=void 0;this._bindDelayedActivationHandler=this._delayedActivationHandler.bind(this);this.addEventListener("blur",this._onBlurCapture.bind(this),!0);this._rightHidden=this._leftHidden=this.hideScrollButtons}, ready:function(){this.setScrollDirection("y",this.$.tabsContainer)}, detached:function(){this._cancelPendingActivation()}, _noinkChanged:function(a){es(this).querySelectorAll("tp-yt-paper-tab").forEach(a?this._setNoinkAttribute:this._removeNoinkAttribute)}, _setNoinkAttribute:function(a){a.setAttribute("noink","")}, _removeNoinkAttribute:function(a){a.removeAttribute("noink")}, _computeScrollButtonClass:function(a,b,c,d){return!b||c?"hidden":a?d?"hidden":"not-visible":""}, _computeTabsContentClass:function(a,b){var c="tabs-content";a&&(c+=" scrollable");if(!a||b)c+=" fit-container";return c}, _computeSelectionBarClass:function(a,b){var c="selection-bar";a?c+=" hidden":b&&(c+=" align-bottom");return c}, _onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)}, _makeString:function(a){return""+a}, _onIronSelect:function(a){this._tabChanged(a.detail.item,this._previousTab);this._previousTab=a.detail.item;this.cancelDebouncer("tab-changed")}, _onIronDeselect:function(){this.debounce("tab-changed",function(){this._tabChanged(null,this._previousTab);this._previousTab=null},1)}, _activateHandler:function(){this._cancelPendingActivation();Sw._activateHandler.apply(this,arguments)}, _scheduleActivation:function(a,b){this._pendingActivationItem=a;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,b)}, _delayedActivationHandler:function(){var a=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;a.fire(this.activateEvent,null,{bubbles:!0,cancelable:!0})}, _cancelPendingActivation:function(){this._pendingActivationTimeout!==void 0&&(this.cancelAsync(this._pendingActivationTimeout),this._pendingActivationTimeout=this._pendingActivationItem=void 0)}, _onArrowKeyup:function(){this.autoselect&&this._scheduleActivation(this.focusedItem,this.autoselectDelay)}, _onBlurCapture:function(a){a.target===this._pendingActivationItem&&this._cancelPendingActivation()}, get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(a,b){this.scrollable&&this._affectScroll(b&&-b.ddx||0)}, _down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)}, _affectScroll:function(a){this.$.tabsContainer.scrollLeft+=a;a=this.$.tabsContainer.scrollLeft;this._leftHidden=a===0||this.hideScrollButtons;this._rightHidden=a===this._tabContainerScrollSize||this.hideScrollButtons}, _onLeftScrollButtonDown:function(){this._scrollToLeft();this._holdJob=setInterval(this._scrollToLeft.bind(this),this._holdDelay)}, _onRightScrollButtonDown:function(){this._scrollToRight();this._holdJob=setInterval(this._scrollToRight.bind(this),this._holdDelay)}, _onScrollButtonUp:function(){clearInterval(this._holdJob);this._holdJob=null}, _scrollToLeft:function(){this._affectScroll(-this._step)}, _scrollToRight:function(){this._affectScroll(this._step)}, _tabChanged:function(a,b){if(a){var c=this.$.tabsContent.getBoundingClientRect(),d=c.width,e=a.getBoundingClientRect();c=e.left-c.left;this._pos={width:this._calcPercent(e.width,d),left:this._calcPercent(c,d)};if(this.noSlide||b==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var f=b.getBoundingClientRect();b=this.items.indexOf(b);a=this.items.indexOf(a);this.$.selectionBar.classList.add("expand"); a=b0&&(this.$.tabsContainer.scrollLeft+=b))}, _calcPercent:function(a,b){return 100*a/b}, _positionBar:function(a,b){a=a||0;b=b||0;this._width=a;this._left=b;this.transform("translateX("+b+"%) scaleX("+a/100+")",this.$.selectionBar)}, _onBarTransitionEnd:function(){var a=this.$.selectionBar.classList;a.contains("expand")?(a.remove("expand"),a.add("contract"),this._positionBar(this._pos.width,this._pos.left)):a.contains("contract")&&a.remove("contract")}});var ujb;var vjb;ys({_template:function(){if(vjb!==void 0)return vjb;var a=document.createElement("template");Q(a,"\n \n\n \n\n \n\n \n\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;ujb===void 0&&(ujb=document.createElement("template"));var d=ujb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return vjb=a}, is:"tp-yt-paper-textarea",behaviors:[Dib,Ow],properties:{_ariaLabelledBy:{observer:"_ariaLabelledByChanged",type:String},_ariaDescribedBy:{observer:"_ariaDescribedByChanged",type:String},value:{type:String},rows:{type:Number,value:1},maxRows:{type:Number,value:0},noUnfloatedLabelError:{type:Boolean,value:!1}},get selectionStart(){return this.$.input.textarea.selectionStart},set selectionStart(a){this.$.input.textarea.selectionStart=a},get selectionEnd(){return this.$.input.textarea.selectionEnd}, set selectionEnd(a){this.$.input.textarea.selectionEnd=a},_ariaLabelledByChanged:function(a){this._focusableElement.setAttribute("aria-labelledby",a)}, _ariaDescribedByChanged:function(a){this._focusableElement.setAttribute("aria-describedby",a)}, get _focusableElement(){return this.inputElement.textarea}});var wjb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(wjb,Ig);var xjb=qh(wjb,[0,oh]);var VI=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(VI,Ig);var yjb=[3,4],zjb=[5,6];var Ajb=[0,yjb,zjb,yi,-1,mh,Ai,-1,jha,kha];var Bjb=qh(VI,Ajb),Cjb=rh(Ajb);var Djb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(Djb,Ig);var Ejb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(Ejb,Ig);var Fjb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(Fjb,Ig);var Gjb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(Gjb,Ig);var Hjb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(Hjb,Ig);var Ijb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(Ijb,Ig);var WI=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(WI,Ig);WI.prototype.getSource=function(){return Vf(this,1)}; WI.prototype.getMessage=function(){return Uf(this,4)}; WI.prototype.getData=function(){return Ef(this,Ijb,8)};var Jjb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(Jjb,Ig);var XI=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(XI,Ig);var YI=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(YI,Ig);var ZI=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(ZI,Ig);ZI.prototype.getUrl=function(){return Uf(this,1)}; ZI.prototype.setUrl=function(a){return fg(this,1,a)}; ZI.prototype.hasUrl=function(){return Se(of(this,1))!=null};var Kjb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(Kjb,Ig);var Ljb=[3];var Mjb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(Mjb,Ig);var Njb=function(a){var b=new Mjb;return fg(b,1,a)}; Mjb.prototype.getPrice=function(){return Uf(this,2)}; var Ojb=function(a,b){return fg(a,2,b)}; Mjb.prototype.hasPrice=function(){return Se(of(this,2))!=null};var Pjb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(Pjb,Ig);var Qjb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(Qjb,Ig);var Rjb=function(a){var b=new Qjb;return fg(b,1,a)}; Qjb.prototype.getStatus=function(){return Vf(this,2)}; var Sjb=function(a,b){return hg(a,2,b)};var Tjb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(Tjb,Ig);var Ujb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(Ujb,Ig);var $I=function(a){var b=new Ujb;return hg(b,2,a)}; Ujb.prototype.getLanguage=function(){return Xf(this,4,aJ)}; var Vjb=function(a){var b=$I(1);return Jf(b,6,aJ,a)},aJ=[3, 4,5,6,7,8];var Wjb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(Wjb,Ig);var Xjb=[0,hh];var Yjb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(Yjb,Ig);var bJ=function(a){var b=new Yjb;return hg(b,1,a)},dJ=function(a,b){return Jf(a,2,cJ,b)},cJ=[2, 3,4,5,6,7,8];var eJ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(eJ,Ig);var Zjb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(Zjb,Ig);var $jb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k($jb,Ig);var akb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(akb,Ig);var bkb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(bkb,Ig);var ckb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(ckb,Ig);var dkb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(dkb,Ig);var ekb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(ekb,Ig);var fJ=function(a){return Ef(a,YI,5)};var fkb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(fkb,Ig);var gkb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(gkb,Ig);var gJ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(gJ,Ig);gJ.prototype.getMetadata=function(){return Yf(this,ckb,7,hJ)}; gJ.prototype.hasMetadata=function(){return uf(this,ckb,7,hJ)}; var hkb=rha(gJ),hJ=[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18];var ikb=qh(Wjb,Xjb);var jkb=function(a,b){this.JSC$10712_name_=a;this.inputElement_=b}; jkb.prototype.getName=function(){return this.JSC$10712_name_}; jkb.prototype.getInputElement=function(){return this.inputElement_};var kkb=function(a){this.uploadUrl_=a};var lkb=function(){Yi.call(this)}; Ra(lkb,Yi);var iJ=function(a){Li.call(this,a)}; Ra(iJ,Li);var jJ=function(a){Li.call(this,a)}; Ra(jJ,Li);var mkb=function(a,b,c,d,e){Yi.call(this);c=document.createElement("form");c.setAttribute("method",b);c.setAttribute("enctype","multipart/form-data");c.setAttribute("encoding","multipart/form-data");b=document.createElement("input");b.setAttribute("type","hidden");b.setAttribute("name","metadata");b.setAttribute("value",e);c.appendChild(b);c.appendChild(d);this.JSC$10724_form_=c;a=new Gp(a);Op(a,"upload_protocol","multipart");this.JSC$10724_url_=a.toString();this.JSC$10724_request_=new gI;this.state_= "Ready";this.JSC$10724_eventHandler_=new FG(this);Ki(this,this.JSC$10724_eventHandler_);this.JSC$10724_eventHandler_.listen(this.JSC$10724_request_,"success",this.onTransferSuccess_);this.JSC$10724_eventHandler_.listen(this.JSC$10724_request_,"error",this.onTransferError_)}; k(mkb,lkb);g=mkb.prototype;g.run=function(){this.state_="Transferring";var a=this.JSC$10724_request_,b=this.JSC$10724_form_;if(a.JSC$10346_active_)throw Error("[goog.net.IframeIo] Unable to send, already active.");var c=new Gp(this.JSC$10724_url_||b.action);a.JSC$10346_form_=b;Kb(a.JSC$10346_form_,c.toString());ffb(a)}; g.getResponseText=function(){return this.JSC$10724_request_&&this.JSC$10724_request_.getResponseText()||null}; g.cancel=function(){this.JSC$10724_request_&&this.JSC$10724_request_.abort();this.state_="Cancelled";this.dispatchEvent(new iJ("l"))}; g.pause=function(){}; g.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new iJ("i"))}; g.onTransferError_=function(){this.state_="Error";this.dispatchEvent(new iJ("k"))};var kJ=function(){so.call(this)}; k(kJ,so);kJ.prototype.createXhr=function(){var a=so.prototype.createXhr.call(this);a.upload&&(a.upload.onprogress=Ia(this.onProgress_,this));return a}; kJ.prototype.onProgress_=function(a){this.dispatchEvent(a)};var nkb=function(){this.attempt_=-1;this.delayCallId_=null;this.JSC$10731_maxDelayMs_=6E4;this.maxAttempts_=-1},pkb=function(a,b){var c=a.attempt_+1; if(a.maxAttempts_>0&&c>a.maxAttempts_)return!1;c==0?b():a.delayCallId_=Bw(function(){a.delayCallId_=null;b()},okb(a),a); a.attempt_=c;return!0}; nkb.prototype.reset=function(){this.delayCallId_&&ua.clearTimeout(this.delayCallId_);this.attempt_=-1}; var okb=function(a){var b=250*Math.pow(2,a.attempt_);a.JSC$10731_maxDelayMs_>=0&&(b=Math.min(b,a.JSC$10731_maxDelayMs_));return b};var qkb=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];function lJ(a,b){for(var c in a)if(c.toLowerCase()===b.toLowerCase())return a[c]} function rkb(a,b){for(var c in a)if(c.toLowerCase()===b.toLowerCase()){delete a[c];break}} function skb(a){a=Xh(a);for(var b=0;b=d;d=Scb(a.blob_,a.offset_,f?d:a.offset_+e)}else a.offset_=0,d=a.blob_,f=!0;a.JSC$10734_request_=new kJ;a.JSC$10734_request_.JSC$6832_withCredentials_=a.JSC$10734_withCredentials_; a.JSC$10734_eventHandler_.removeAll();a.JSC$10734_eventHandler_.listen(a.JSC$10734_request_,"progress",a.onUploadProgress_);e=Ia(a.onUploadComplete_,a,a.offset_+d.size,f);a.JSC$10734_eventHandler_.listen(a.JSC$10734_request_,"complete",e);a.lastCommandResponseCode_=null;a.dispatchEvent(new jJ("n"));f=Object.assign({},a.JSC$10734_headers_||{},{"X-Goog-Upload-Command":"upload"+(f?", finalize":""),"X-Goog-Upload-Offset":a.offset_});a.JSC$10734_request_.send(c,"POST",d,f);break;case"Query":a.JSC$10734_request_= new kJ;a.JSC$10734_eventHandler_.removeAll();a.JSC$10734_eventHandler_.listen(a.JSC$10734_request_,"complete",a.onQueryComplete_);c=Object.assign({},a.JSC$10734_headers_||{},{"X-Goog-Upload-Command":"query"});a.JSC$10734_request_.send(a.transferHandle_.uploadUrl_,"POST","",c);a.lastCommandResponseCode_=null;a.dispatchEvent(new jJ("n"));break;default:throw Error("Invalid upload state!");}})||oJ(a)},oJ=function(a){a.state_="Error"; a.dispatchEvent(new iJ("k"))}; mJ.prototype.onStartComplete_=function(a){var b=a.target;this.lastCommandResponseCode_=b.getStatus();this.dispatchEvent(new jJ("o"));if(ukb(b))vkb(this,b);else if(wkb(b)){a=yH(a.target.getAllResponseHeaders());for(var c in a)c.toLowerCase().lastIndexOf("x-goog-upload-header-",0);this.dispatchEvent(new iJ("j"));c=lJ(a,"X-Goog-Upload-URL");a=(a=lJ(a,"X-Goog-Upload-Chunk-Granularity"))?parseInt(a,10):1;c===void 0||isNaN(a)||a<=0?oJ(this):(this.chunkSize_=Math.floor(1073741824/a)*a,this.transferHandle_= new kkb(c),this.dispatchEvent(new iJ("m")),this.state_="Upload",this.retryIterator_.reset(),nJ(this))}else nJ(this)}; mJ.prototype.onUploadProgress_=function(a){this.JSC$10734_bytesTransferred_=this.offset_+a.loaded;this.dispatchEvent(new iJ("h"))}; mJ.prototype.onUploadComplete_=function(a,b,c){var d=this,e,f;return ra(function(h){switch(h.nextAddress){case 1:e=c.target;d.lastCommandResponseCode_=e.getStatus();d.dispatchEvent(new jJ("o"));if(xkb(e)||e.getStatus()==404)return d.JSC$10734_bytesTransferred_=a,vkb(d,e),h.return();if(wkb(e)){h.jumpTo(2);break}if(!(f=d.detectCorruptedBlobEnabled_)){h.jumpTo(3);break}return h.yield(ykb(d),4);case 4:f=h.yieldResult;case 3:if(f)return oJ(d),h.return();d.requireUploadRequestModification_=e.getStatus()== 400;d.state_="Query";nJ(d);return h.return();case 2:if(b)return oJ(d),h.return();d.JSC$10734_bytesTransferred_=a;d.offset_=a;d.retryIterator_.reset();nJ(d);return h.return();}})}; mJ.prototype.onQueryComplete_=function(a){var b=a.target;this.lastCommandResponseCode_=b.getStatus();this.dispatchEvent(new jJ("o"));ukb(b)?(b.getStatus()===200&&(this.JSC$10734_bytesTransferred_=this.blob_.size),vkb(this,b)):wkb(b)?(a=yH(a.target.getAllResponseHeaders()),a=parseInt(lJ(a,"X-Goog-Upload-Size-Received"),10),isNaN(a)?oJ(this):a=400&&a<500},ykb=function(a){var b; return ra(function(c){if(c.nextAddress==1){if(!a.blob_||a.originalBlobSize_<=0)return c.return(!1);if(a.blob_.size!==a.originalBlobSize_)return c.return(!0);c.setCatchFinallyBlocks(2);if(b=Scb(a.blob_,0,1)){var d=c.yield,e=new QH,f=Cdb(e);e.reader_.readAsBinaryString(b);c=d.call(c,f,4)}else c=c.return(!0);return c}if(c.nextAddress!=2)return c.return(a.blob_.size!==a.originalBlobSize_);c.enterCatchBlock();return c.return(!0)})};var zkb=function(a,b,c,d,e,f){Yi.call(this);this.payload_=d;this.JSC$10737_url_=a;this.JSC$10737_method_=b;this.JSC$10737_headers_=c;this.JSC$10737_metadata_=e;this.encoding_=f||"binary";a=new KG;this.boundary_="uploader-"+vca()+"-"+qab(a);this.JSC$10737_responseText_=this.transferRequest_=null;this.state_="Ready";this.JSC$10737_eventHandler_=new FG(this);Ki(this,this.JSC$10737_eventHandler_)}; k(zkb,lkb);g=zkb.prototype; g.run=function(){var a=Xh(this.JSC$10737_headers_);this.payload_.length!=null&&(a["Content-Length"]=this.payload_.length);a=skb(a);a["X-Goog-Upload-Protocol"]="multipart";a["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new kJ;this.JSC$10737_eventHandler_.removeAll();this.JSC$10737_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$10737_eventHandler_.listen(this.transferRequest_,"complete",this.onTransferComplete_); this.transferRequest_.send(this.JSC$10737_url_,this.JSC$10737_method_,"--"+this.boundary_+"\r\nContent-Disposition: form-data; name=\"metadata\"\r\n\r\n"+(this.JSC$10737_metadata_+"\r\n--")+this.boundary_+"\r\nContent-Disposition: form-data; name=\"Filedata\"\r\nContent-Transfer-Encoding: "+(this.encoding_+"\r\n\r\n")+this.payload_+"\r\n--"+this.boundary_+"--\r\n",a)}; g.getResponseText=function(){return this.JSC$10737_responseText_}; g.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$10737_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new iJ("l")))}; g.pause=function(){}; g.onTransferProgress_=function(){this.dispatchEvent(new iJ("h"))}; g.onTransferComplete_=function(a){var b=a.target.getStatus();b===void 0||b===-1?(this.state_="Error",this.dispatchEvent(new iJ("k"))):(a=a.target,b=yH(a.getAllResponseHeaders()),tkb(b),this.JSC$10737_responseText_=a.getResponseText(),this.state_="Complete",this.dispatchEvent(new iJ("i")))};var pJ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(pJ,Ig);g=pJ.prototype;g.getEnableSsEngine=function(){return Of(this,2)}; g.getEnableAwr=function(){return Of(this,3)}; g.getAlohaAutoGaRollout=function(){return Of(this,5)}; g.getEnableConfigurator=function(){return Of(this,6)}; g.getEnableMweb=function(){return Of(this,7)}; g.getEnableCtlConsentCheckbox=function(){return Of(this,8)}; g.getEnableIframe=function(){return Of(this,9)}; var Akb=function(){var a=new pJ;a=cg(a,5,!0);a=cg(a,2,!0);a=cg(a,4,!1);a=cg(a,8,!0);return cg(a,9,!0)}; g=pJ.prototype;g.getEnableScreenshotNudge=function(){return Of(this,10)}; g.getEnableWebStartupConfigEndpoint=function(){return Of(this,11)}; g.getEnableJunkNudge=function(){return Of(this,12)}; g.getEnableConfiguratorLocale=function(){return Of(this,13)}; g.getEnableTinyNoPointer=function(){return Of(this,14)}; g.getEnableSupportSessionLogging=function(){return Of(this,15)}; g.getEnableFileUploadForScreenshot=function(){return Of(this,16)}; g.getEnableDirectDeflectionForSingleCategory=function(){return Of(this,17)}; g.getEnableImageSanitization=function(){return Of(this,18)}; g.getEnableAlohaBinarySplit=function(){return Of(this,19)}; g.getEnableDbFeedbackIntents=function(){return Of(this,20)}; g.getEnableMarkMandatoryFieldsWithRequired=function(){return Of(this,21)}; g.getEnableFeedbackCategoryCustomUi=function(){return Of(this,22)}; g.getEnableRealtimeCtl=function(){return Of(this,23)};var Bkb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(Bkb,Ig);function Ckb(a){return Dkb.some(function(b){return b.test(a)})} var Dkb=[/https:\/\/sandbox\.google\.com\/tools\/feedback/,/https:\/\/feedback-frontend-qual[a-z0-9.]*\.google\.com\/inapp/,/https:\/\/feedback-frontend-qual[a-z0-9.]*\.google\.com\/tools\/feedback/,/https:\/\/.*\.googleusercontent\.com\/inapp/];var Ekb="af am ar-EG ar-JO ar-MA ar-SA ar-XB ar az be bg bn bs ca cs cy da de-AT de-CH de el en en-GB en-AU en-CA en-IE en-IN en-NZ en-SG en-XA en-XC en-ZA es es-419 es-AR es-BO es-CL es-CO es-CR es-DO es-EC es-GT es-HN es-MX es-NI es-PA es-PE es-PR es-PY es-SV es-US es-UY es-VE et eu fa fi fil fr-CA fr-CH fr gl gsw gu he hi hr hu hy id in is it iw ja ka kk km kn ko ky ln lo lt lv mk ml mn mo mr ms my nb ne nl no pa pl pt pt-BR pt-PT ro ru si sk sl sq sr-Latn sr sv sw ta te th tl tr uk ur uz vi zh zh-CN zh-HK zh-TW zu".split(" ");var Fkb=la(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),Gkb=la(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]); function Hkb(a,b){var c;var d=(c=a.formContent)==null?void 0:c.locale;c=d==null?void 0:d.split("-")[0];d=d&&Ekb.includes(d)?d:c&&Ekb.includes(c)?c:void 0;d=(d!=null?d:"en").replaceAll("-","_").toLowerCase();var e;a=((e=a.initializationData)==null?0:e.useNightlyRelease)?"nightly":"live";var f;return(b==null?0:(f=b.getEnableAlohaBinarySplit)==null?0:f.call(b))?Lh(Fkb,a):Lh(Gkb,a,d)} ;var qJ=function(){var a=Error.call(this,"Form is either loading or already opened");this.message=a.message;"stack"in a&&(this.stack=a.stack);this.name="DuplicateFormError"}; k(qJ,Error);var Ikb,Jkb,Kkb,Lkb;function Mkb(a,b,c,d){if(Ikb&&Kkb===b)return Ikb;Kkb=b;var e=Hkb(a,d);return Ikb=b.feedbackV2GlobalObject?Promise.resolve(b.feedbackV2GlobalObject):new Promise(function(f,h){var m=li("SCRIPT");kc(m,e);m.onload=function(){b.feedbackV2GlobalObject?f(b.feedbackV2GlobalObject):h(Error("feedbackV2GlobalObject not found on window."))}; m.onerror=function(){h(Error("Feedback binary script tag failed to load: "+e.toString()))}; c.body.appendChild(m)})} function Nkb(a,b,c,d){if(Jkb&&Lkb===b)return Jkb;Lkb=b;var e=Hkb(a,d);return Jkb=b.feedbackV2GlobalObject?Promise.resolve(b.feedbackV2GlobalObject):new Promise(function(f,h){var m=li("SCRIPT");kc(m,e);m.onload=function(){b.feedbackV2GlobalObject?f(b.feedbackV2GlobalObject):h(Error("feedbackV2GlobalObject not found on window."))}; m.onerror=function(){h(Error("Feedback binary script tag failed to load: "+e.toString()))}; c.body.appendChild(m)})} function Okb(a,b,c,d,e){e=e===void 0?!0:e;var f,h,m,p,q;return ra(function(t){switch(t.nextAddress){case 1:return f=Date.now(),t.yield(Mkb(a,c,d,b),2);case 2:h=t.yieldResult;if(!(e||((p=a.initializationData)==null?0:p.useNightlyRelease)||((q=a.initializationData)==null?0:q.isLocalServer))){m=h.initializeFeedbackClient(a,f,b);t.jumpTo(3);break}return t.yield(h.initializeFeedbackClientAsync(a,f,b),4);case 4:m=t.yieldResult;case 3:return m.initiateAloha(),t.return(m);}})} function Pkb(a,b,c,d){var e,f,h;return ra(function(m){if(m.nextAddress==1)return e=Date.now(),m.yield(Nkb(a,c,d.document,b),2);if(m.nextAddress!=3)return f=m.yieldResult,m.yield(f.initializeFeedbackClientAsync(a,e,b,d),3);h=m.yieldResult;h.initiateAloha();return m.return(h)})} function Qkb(a,b,c){var d=!0;d=d===void 0?!0:d;var e,f,h,m,p,q,t,u;return ra(function(v){e=c||ua;if((f=b)==null?0:(m=(h=f).getEnableAlohaBinarySplit)==null?0:m.call(h)){p=e;if(p.isFormOpened)throw new qJ;p.isFormOpened=!0;a.callbacks=a.callbacks||{};q=a.callbacks.onClose||function(){}; a.callbacks.onClose=function(w){p.isFormOpened=!1;q(w)}; try{return v.return(Pkb(a,b,p,e))}catch(w){throw p.isFormOpened=!1,w}}else{t=e;if(t.isFormOpened)throw new qJ;t.isFormOpened=!0;a.callbacks=a.callbacks||{};u=a.callbacks.onClose||function(){}; a.callbacks.onClose=function(w){t.isFormOpened=!1;u(w)}; try{return v.return(Okb(a,b,t,e.document,d))}catch(w){throw t.isFormOpened=!1,w}}v.jumpToEnd()})} ;function Rkb(a,b){return ra(function(c){return c.return(new Promise(function(d,e){Number.isInteger(Number(a))&&Number(a)>0?(e=Skb(b!=null?b:"")+"/aloha_form_properties?productId="+a,Esa(e,function(f){var h=f.target;f=null;try{var m=JSON,p=m.stringify;if(h.xhr_){var q=h.xhr_.responseText;q.indexOf(")]}'\n")==0&&(q=q.substring(5));b:{if(ua.JSON)try{var t=ua.JSON.parse(q);break b}catch(u){}t=Vja(q)}}else t=void 0;f=Jg(Bkb,p.call(m,t))}catch(u){p=new Bkb,t=Akb(),t=cg(t,7,!0),t=cg(t,10,!0),t=cg(t,12,!0), t=cg(t,13,!1),t=cg(t,14,!0),t=cg(t,15,!0),t=cg(t,20,!1),f=Gf(p,1,t)}d(f)},"GET","",{},2E3,!0)):e(Error("Invalid product id: "+a))}))})} function Skb(a){return Ckb(a)?a:"https://www.google.com/tools/feedback"} ;var rJ=function(a,b,c){a.timeOfStartCall=new Date().getTime();var d=c||ua,e=d.document,f=a.nonce||Zb(d.document);f&&!a.nonce&&(a.nonce=f);if(a.flow=="help"){var h=xa("document.location.href",d);!a.helpCenterContext&&h&&(a.helpCenterContext=h.substring(0,1200));h=!0;if(b&&JSON&&JSON.stringify){var m=JSON.stringify(b);(h=m.length<=1200)&&(a.psdJson=m)}h||(b={invalidPsd:!0})}b=[a,b,c];d.GOOGLE_FEEDBACK_START_ARGUMENTS=b;c=a.feedbackServerUri||"//www.google.com/tools/feedback";if(h=d.GOOGLE_FEEDBACK_START)h.apply(d, b);else{d=c+"/load.js?";for(var p in a)b=a[p],b==null||Ga(b)||(d+=encodeURIComponent(p)+"="+encodeURIComponent(b)+"&");a=di(e).createElement("SCRIPT");f&&a.setAttribute("nonce",f);kc(a,kb(d));e.body.appendChild(a)}},Tkb=function(a,b,c,d){var e,f; return ra(function(h){e=c||ua;var m=a.serverEnvironment==="DEV",p=c||ua;p=a.nonce||Zb(p.document);m={integrationKeys:{productId:a.productId,feedbackBucket:a.bucket,triggerId:a.triggerId,microfeedbackScore:a.microfeedbackScore},callbacks:{onClose:a.callback,onLoad:a.onLoadCallback},formContent:{locale:a.locale,disableScreenshot:a.disableScreenshotting,productDisplayName:void 0,announcement:void 0,issueCategories:void 0,includeSeveritySelection:void 0,customImageSrc:void 0,thankYouMessage:void 0,userEmail:void 0, defaultFormInputValues:void 0,defaultFormInputValuesString:void 0,abuseLink:a.abuseLink,additionalDataConsent:a.additionalDataConsent},initializationData:{isLocalServer:m,nonce:p,useNightlyRelease:m,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:a.feedbackServerUri,colorScheme:a.colorScheme},extraData:{productVersion:a.productVersion,authUser:a.authuser,configuratorId:a.configuratorId,customZIndex:a.customZIndex,tinyNoPointer:a.tinyNoPointer, allowNonLoggedInFeedback:a.allowNonLoggedInFeedback,enableAnonymousFeedback:a.enableAnonymousFeedback}};b&&(p=new Map(Object.entries(b)),m.extraData.productSpecificData=p);f=m;return h.yield(Qkb(f,d,e),0)})},Ukb=function(a,b,c){try{if(a.flow==="help"){var d=a.helpCenterPath.replace(/^\//,""); Yb(c||window,"https://support.google.com/"+d)}else a.flow==="submit"?rJ(a,b,c):Rkb(a.productId,a.feedbackServerUri).then(function(e){e=Ef(e,pJ,1);var f=!dda||(e==null?void 0:e.getEnableMweb()),h=!a.tinyNoPointer||(e==null?void 0:e.getEnableTinyNoPointer());!e||e.getAlohaAutoGaRollout()&&f&&h?Tkb(a,b,c,e).catch(function(m){!m||m instanceof qJ||rJ(a,b,c)}):rJ(a,b,c)},function(e){!e||e instanceof qJ||rJ(a,b,c)})}catch(e){Tkb(a,b,c,null).catch(function(f){!f||f instanceof qJ||rJ(a,b,c)})}}; va("userfeedback.api.startFeedback",Ukb);var Vkb=/https?:\/\/\S+\.\S+/,Wkb=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],Xkb=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i]; function Ykb(a){a=a.match(new RegExp(Vkb,"gi"))||[];a=l(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;a:{var c=l(Wkb);for(var d=c.next();!d.done;d=c.next())if(d.value.test(b)){c=!1;break a}c=!0}if(!c)a:{c=l(Xkb);for(d=c.next();!d.done;d=c.next())if(d.value.test(b)){c=!0;break a}c=!1}if(c)return!0}return!1} ;var Zkb=new Qk("runAttestationCommand");var $kb=new Qk("verifyCommand");var alb=new Qk("accessibilityData");var blb=new Qk("signInEndpoint");var clb=new Qk("signOutEndpoint");var dlb=new Qk("accountItemRenderer");var elb=new Qk("crossAccountChannelTransferEndpoint");var flb=new Qk("getAccountMenuEndpoint");var glb=new Qk("getAccountsListInnertubeEndpoint");var hlb=new Qk("addToToastAction");var ilb=new Qk("hideEnclosingAction");var sJ=new Qk("replaceEnclosingAction");var jlb=new Qk("buttonRefreshAction");var klb=new Qk("imageTileRenderer");var llb=new Qk("videoMastheadAdPrimaryVideoRenderer");var mlb=new Qk("displayAdRenderer");var nlb=new Qk("inFeedAdLayoutRenderer");var olb=new Qk("adButtonViewModel");var plb=new Qk("adImageViewModel");var qlb=new Qk("adGridCardCollectionViewModel");var rlb=new Qk("reelsAdCardButtonedViewModel");var slb=new Qk("showSchedulingPanelCommand");var tlb=new Qk("backstageCommentsRenderer");var ulb=new Qk("backstageImageRenderer");var vlb=new Qk("backstagePostRenderer");var wlb=new Qk("backstageZeroStateRenderer");var xlb=new Qk("postRenderer");var ylb=new Qk("sharedPostRenderer");var zlb=new Qk("createBackstagePostEndpoint");var Alb=new Qk("getPostVideoPreviewEndpoint");var Blb=new Qk("updateBackstagePostEndpoint");var Clb=new Qk("filterChipTransformCommand");var Dlb=new Qk("talkToRecsUpdateTextCommand");var Elb=new Qk("expandOnHoverCardRenderer");var Flb=new Qk("lumiereShelfDetailsRenderer");var Glb=new Qk("browseTalk2RecsFormData");var Hlb=new Qk("revealBusinessEmailCommand");var Ilb=new Qk("validateChannelHandleCommand");var Jlb=new Qk("channelCreationFormEndpoint");var Klb=new Qk("aboutChannelViewModel");var Llb=new Qk("channelThumbnailWithLinkRenderer");var Mlb=new Qk("channelCreationServiceEndpoint");var Nlb=new Qk("updateChannelPageSettingsEndpoint");var Olb=new Qk("addVideoLinkAction");var Plb=new Qk("banAuthorAction");var Qlb=new Qk("createCommentAction");var Rlb=new Qk("createCommentReplyAction");var Slb=new Qk("createPollAction");var Tlb=new Qk("hideIdentityChipAction");var Ulb=new Qk("openUpdateCommentDialogAction");var Vlb=new Qk("pinCommentAction");var Wlb=new Qk("removeCommentAction");var Xlb=new Qk("unpinCommentAction");var tJ=new Qk("updateBackstagePollAction");var Ylb=new Qk("updateCommentVoteAction");var Zlb=new Qk("commentThreadRenderer");var $lb=new Qk("reloadCommentsCommand");var amb=new Qk("updateCommentsSettingsEndpoint");var bmb=new Qk("commentViewModel");var cmb=new Qk("triStateButtonViewModel");var dmb=new Qk("voiceReplyContainerViewModel");var emb=new Qk("updateCreatorChannelInnertubeCommand");var fmb=new Qk("crowdsourcedContextUserRatingFormFlowState");var gmb=new Qk("noteViewModel");var hmb=new Qk("appendContinuationItemsAction");var imb=new Qk("changeEngagementPanelVisibilityAction");var uJ=new Qk("continuationCommand");var jmb=new Qk("engagementPanelHeaderShowNavigationButtonCommand");var kmb=new Qk("hideEngagementPanelScrimAction");var lmb=new Qk("hideReportedCommentAction");var mmb=new Qk("playlistRemoveVideosAction"),nmb=new Qk("refreshFormCommand");var omb=new Qk("reloadContinuationItemsCommand");var pmb=new Qk("restoreCachedContinuableDataCommand");var qmb=new Qk("scrollToEngagementPanelCommand");var rmb=new Qk("sendFeedbackAction");var smb=new Qk("setActivePanelItemAction");var tmb=new Qk("showEngagementPanelScrimAction");var umb=new Qk("showReloadUiCommand");var vmb=new Qk("undoFeedbackAction");var wmb=new Qk("updateButtonAction");var xmb=new Qk("updateEngagementPanelAction");var ymb=new Qk("updateSearchInVideoResultsAction");var zmb=new Qk("updateSubscribeButtonAction");var Amb=new Qk("updateToggleAction");var Bmb=new Qk("webHandleServiceEndpointExtension");var Cmb=new Qk("selectChipCommand");var Dmb=new Qk("settingsUpdateSwitchCommand");var Emb=new Qk("updateTextInputFormFieldRendererCommand");var Fmb=new Qk("updateToggleButtonStateCommand");var Gmb=new Qk("channelSwitcherPageRenderer"),Hmb=new Qk("updateChannelSwitcherPageAction");var vJ=new Qk("continuationItemRenderer");var Imb=new Qk("formRenderer");var wJ=new Qk("richItemRenderer");var Jmb=new Qk("richSectionRenderer");var Kmb=new Qk("richShelfRenderer");var Lmb=new Qk("transcriptCueGroupRenderer");var Mmb=new Qk("transcriptCueRenderer");var Nmb=new Qk("transcriptFooterRenderer");var Omb=new Qk("playlistLoopButtonStateRenderer");var Pmb=new Qk("claimLegacyYoutubeChannelEndpoint");var Qmb=new Qk("getNotificationMenuEndpoint");var Rmb=new Qk("getSearchInVideoCommand");var Smb=new Qk("getTranscriptEndpoint");var Tmb=new Qk("verifyAgeEndpoint");var Umb=new Qk("dismissalEndpoint");var Vmb=new Qk("elementsCommand");var Wmb=new Qk("multipleInlinePlaybackCommand");var Xmb=new Qk("acknowledgeChannelTouStrikeCommand");var Ymb=new Qk("engagementPanelAdSubtitleRenderer");var xJ=new Qk("entityBatchUpdate");var Zmb=new Qk("entityUpdateCommand");var $mb=new Qk("fantasyRosterViewModel");var anb=new Qk("addFollowUpSurveyCommand");var bnb=new Qk("getSurveyCommand");var cnb=new Qk("ratingSurveyOptionRenderer");var dnb=new Qk("radioButtonSurveyOptionRenderer"),enb=new Qk("checkboxSurveyOptionRenderer");var yJ=new Qk("feedbackEndpoint");var zJ=new Qk("abuseReportFlowState");var fnb=new Qk("modifyReportFormCommand");var gnb=new Qk("feedbackFormFlowState");var hnb=new Qk("reportHistoryTableCellRenderer"),inb=new Qk("reportHistoryTableTextCellRenderer"),jnb=new Qk("reportHistoryTableReasonCellRenderer");var knb=new Qk("flagEndpoint");var lnb=new Qk("inputBoxViewModel");var mnb=new Qk("flowNextStepCommand");var nnb=new Qk("flowPrevStepCommand");var onb=new Qk("getFlowCommand");var pnb=new Qk("updateFlowCommand");var qnb=new Qk("flowRootRenderer");var AJ=new Qk("flowStepRenderer");var rnb=new Qk("lengthValidationRule");var snb=new Qk("regexValidationRule");var tnb=new Qk("selectedValidationRule");var unb=new Qk("gameCardRenderer");var vnb=new Qk("accountLinkingStateChangedCommand");var wnb=new Qk("deleteClipEngagementPanelCommand");var xnb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(xnb,Ig);var BJ=[1,2,3];var ynb=[0,BJ,fha,jh,Yga];var znb=qh(xnb,ynb),Anb=rh(ynb);var Bnb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(Bnb,Ig);var Cnb=[0,Yg,hh];var Dnb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(Dnb,Ig);var Enb=[0,hh,Yg,-1,oh,ah];var pob=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(pob,Ig);var qob=[0,hh,oh];var CJ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(CJ,Ig);var DJ=rh([0,1,Cnb,oh,Enb,hh,-1,qob]);var rob=new Qk("miniGameCardViewModel");var sob=new Qk("teaserCardViewModel");var tob=new Qk("watchPartyPlaySyncAction");var uob=new Qk("feedbackItemRenderer");var vob=new Qk("getKidsBlocklistPickerCommand");var wob=new Qk("updateKidsBlacklistEndpoint");var xob=new Qk("likeEndpoint");var yob=new Qk("addBannerToLiveChatCommand");var zob=new Qk("addInteractivityWidgetAction"),Aob=new Qk("updateOrAddInteractivityWidgetAction");var EJ=new Qk("replayChatItemAction"),FJ=new Qk("addChatItemAction"),GJ=new Qk("removeChatItemAction"),HJ=new Qk("addLiveChatTickerItemAction"),Bob=new Qk("markChatItemsByAuthorAsDeletedAction"),IJ=new Qk("markChatItemAsDeletedAction"),Cob=new Qk("showLiveChatDialogAction"),Dob=new Qk("forceLiveChatContinuationCommand"),Eob=new Qk("showLiveChatActionPanelAction"),Fob=new Qk("closeLiveChatActionPanelAction"),Gob=new Qk("updateLiveChatPollAction"),Hob=new Qk("showLiveChatChannelGuidelinesDialogAction"), Iob=new Qk("replaceLiveChatRendererAction"),Job=new Qk("showLiveChatSurveyCommand"),Kob=new Qk("showLiveChatTooltipCommand");var Lob=new Qk("liveChatAddToToastAction");var Mob=new Qk("removeChatItemByAuthorAction");var Nob=new Qk("liveChatReportModerationStateCommand");var Oob=new Qk("liveChatReportPresenceCommand");var Pob=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(Pob,Ig);Pob.prototype.getPayloadCase=function(){return Df(this,Qob)}; var Qob=[3,4];var Rob=[0,kh,[0,[1,2],jh,mh,[0,ih,1,ih]]];var Sob=[0,hh,-1];var Tob=[0,[1],jh];var JJ=[0,[1,2],jh,mh,[0,oh]];var KJ=[0,hh];var Uob=[0,[0,fh,ah,[0,ih,ph,ih]],1,[0,fh]];var Vob=[0,Zg];var Wob=[0,Zg];var Xob=[0,Wob,Vob];var Yob=[0,kh,[0,[1,2],jh,-1],fh];var Zob=[0,[2],1,mh,[0,ih,-1,Yob]];var $ob=[0,[1],mh,[0,ih,hh,ph,1,Yob]];var apb=[0,ah,-1,Xga,oh];var bpb=[0,[0,Wg,-3],-4];var LJ=[0,fh,-3,hh,fh,yi,fh,Rob,fh,-3];var MJ=[0,kh,[0,[1,2],jh,-1],fh,hh];var cpb=[0,[3],JJ,[0,[2,3,4],nha,jh,-2],mh,[0,hh],Yg];var dpb=[0,[3,5],hh,$g,mh,[0,1,Yg,oh],oh,mh,[0,oh,Yg]];var epb=[0,2,$g,hh,-1];var fpb=[0,dha];var gpb=[0,[3,4],2,$ga,jh,hh];var hpb=[0,oh,-2,1,hh];var ipb=[0,hh,-1,oh];var jpb=[0,KJ,function(){return NJ}, KJ,hh],kpb=[0,oh,KJ,JJ,function(){return NJ}, hh],NJ=[-162,{},[101,103,104,105,106,107,108,109,114,115,116,117,118,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,141,142,144,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161],KJ,$g,[0,fh,1,fh,1,fh,1,oh,-1,KJ],[0,1,fh,2,fh,oh,fh],1,$g,-1,hh,$g,2,Wg,[0,Wg,$g],hh,1,Uob,1,JJ,yi,1,[0,[0,kh,[0,hh,fh,oh]]],[0,fh,[0,Yg,[0,ph]],Yg,1,[0,eh,-1]],hh,[0,1,hh],76,mh,[0,JJ,MJ,Uob,1,[0,kh,MJ]],1,mh,[0,JJ,hh,fh],mh,[0,JJ,Tob],mh,[0,JJ,Tob,$g],mh,[0,JJ,Tob],mh,[0, JJ,kh,KJ,JJ,gha],mh,[0,JJ,KJ,hh],mh,[0,JJ,fh,LJ,-1,fh],4,mh,[0,JJ,fh,$g,LJ,fh],mh,[0,[4,9],JJ,oh,$g,jh,MJ,1,Uob,hh,jh,hpb],mh,[0,JJ,KJ,JJ,oh,hh],mh,[0,fh,JJ,LJ,fh,hh],mh,[0,JJ,KJ,JJ,oh,hh],1,mh,[0,JJ,oh,hh,LJ],mh,[0,JJ,oh,[0,hh,$g],hh,$g,hh,nh,-2,3,ipb,kh,ipb,ipb,hpb],mh,[0,JJ,oh,$ob,kh,[0,Wob,Zob],KJ,kh,Xob,hh,1,oh,apb,bpb,Xg,-1],mh,[0,JJ,[0,ph,-1,$ob,kh,[0,Wob,Zob,Vob],[0,Ai],1,ih],KJ,hh],mh,[0,JJ,MJ,hh,[0,ah]],mh,function(){return kpb}, mh,[0,JJ,$g,hh,-1,fh],mh,[0,[6,7],JJ,kh,epb,oh,MJ,1,mh,gpb,mh,fpb],mh,[0,kh,epb,oh,fh],mh,[0,hh,h$a,-1],mh,[0,KJ,kh,Xob,hh],mh,[0,JJ,KJ,hh],mh,[0,nh,hh],mh,[0,Sob],mh,[0,Sob],mh,[0,MJ],mh,[0,KJ,MJ],mh,function(){return jpb}, mh,[0,KJ,hh],mh,[0,KJ,hh],1,mh,[0,fh,JJ,LJ,fh,LJ],mh,[0,Ai],1,mh,[0],1,mh,[0,KJ,oh,JJ,oh],mh,[0,[1,2],mh,gpb,mh,fpb,$g],mh,[0,Ai,MJ,dpb,hh],mh,[0,dpb,hh,$g],mh,[0,apb,MJ,fh,bpb,oh,hh],mh,cpb,mh,[0],mh,[0,hh,-1,Yg],mh,[0,KJ,hh],mh,[0,cpb,Yg,hh],mh,[0,JJ,LJ,fh],mh,[0,JJ,LJ,fh],mh,[0,apb,bpb,MJ,yi,fh,Xg,-1],mh,[0,JJ,LJ,fh],mh,[0,$g],mh,[0,JJ,LJ,fh]];var lpb=[0,kh,NJ];var mpb=qh(Pob,[0,Qob,1,Yg,mh,[0,[18,22,24],lpb,3,[0,lpb],1,Yg,[0,kh,[0,$g,Wg],$g],1,NJ,-1,[0,gh,-2,yi,gh,-1,yi,gh,Rob,gh,-2,ph,gh],Iga,[!0,hh,[0,Tob,2,hh,$g,fh,2,hh,nh]],[0,[1,2,3],[5,6],mh,[0,ih],mh,[0,ih,-1],mh,[0,ih],1,mh,Sob,mh,[0,hh]],[0,NJ,-1],Ai,NJ,mh,NJ,[0,lpb],Yg,NJ,mh,NJ,hh,mh,NJ,NJ],mh,ldb,Yg]);var npb=new Qk("liveChatDialogEndpoint");var opb=new Qk("liveChatEndpoint");var ppb=new Qk("liveChatItemContextMenuEndpoint");var qpb=new Qk("liveChatReplayEndpoint");var OJ=new Qk("interactivityWidgetRenderer");var rpb=new Qk("liveChatActionPanelRenderer");var spb=new Qk("liveChatAuthorBadgeViewModel");var PJ=new Qk("liveChatBannerRenderer");var tpb=new Qk("liveChatCallForQuestionsRenderer");var upb=new Qk("liveChatContinuation");var vpb=new Qk("deleteLiveChatMessageCommand");var wpb=new Qk("liveChatActionEndpoint");var xpb=new Qk("createLiveChatPollEndpoint");var ypb=new Qk("manageLiveChatUserEndpoint");var zpb=new Qk("moderateLiveChatEndpoint");var Apb=new Qk("popoutLiveChatEndpoint");var Bpb=new Qk("sendLiveChatMessageEndpoint");var Cpb=new Qk("sendLiveChatVoteEndpoint");var Dpb=new Qk("showLiveChatParticipantsEndpoint");var Epb=new Qk("showLiveChatSettingsEndpoint");var Fpb=new Qk("toggleLiveChatModerationActivityCommand");var Gpb=new Qk("toggleLiveChatTimestampsEndpoint");var Hpb=new Qk("toggleLiveReactionsMuteCommand");var Ipb=new Qk("resolveLocationCommand");var Jpb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(Jpb,Ig);var Kpb=function(a,b){return bg(a,1,b)};var Lpb=[0,fh];var Mpb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(Mpb,Ig);var Npb=function(a,b){return Mf(a,1,Jpb,b)};Mpb.prototype.JSC$10775_serializeBinary=th([0,kh,Lpb]);var $da={GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE", GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT", GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION", GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY", GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET", GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI", GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED", GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED", GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION", GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION", GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED", GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD", GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED", GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED", GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO", GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM", GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_CONTROL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_CONTROL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_TREATMENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_TREATMENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DISABLE_PLAYER_OPEN_ON_FULLSCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DISABLE_PLAYER_OPEN_ON_FULLSCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_MDX_RECONNECT_WITH_RETRY:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_MDX_RECONNECT_WITH_RETRY", GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SINGLE_COLUMN_GRID_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SINGLE_COLUMN_GRID_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_MDX_CONNECTION_TIMEOUT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_MDX_CONNECTION_TIMEOUT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_GHOST_LOADING_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_GHOST_LOADING_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_STREAMED_GET_WATCH_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_STREAMED_GET_WATCH_SUPPORTED", GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WEBVIEW_CONTAINER:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WEBVIEW_CONTAINER",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_PIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_PIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PREMIUM_LITE_UPSELL_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PREMIUM_LITE_UPSELL_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_OFFLINE_RECOVERY_BROAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_OFFLINE_RECOVERY_BROAD",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_OFFLINE_RECOVERY_UNPLAYABLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_OFFLINE_RECOVERY_UNPLAYABLE", GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_OFFLINE_RECOVERY_STRICT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_OFFLINE_RECOVERY_STRICT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IOS_SHORT_ORIENTATION_CHANGE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IOS_SHORT_ORIENTATION_CHANGE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_PLAYER_ERROR_OVERLAY_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_PLAYER_ERROR_OVERLAY_TRIGGERED"};var QJ=new Qk("logFlowLoggingEventCommand");var Opb=new Qk("dismissDialogEndpoint");var Ppb=new Qk("hideItemSectionVideosByIdCommand");var Qpb=new Qk("chipsShelfViewModel");var Rpb=new Qk("cinematicContainerViewModel");var Spb=new Qk("dislikeButtonViewModel");var Tpb=new Qk("likeButtonViewModel");var Upb=new Qk("videoSummaryContentViewModel");var Vpb=new Qk("videoSummaryParagraphViewModel");var Wpb=new Qk("hideEngagementPanelEndpoint");var Xpb=new Qk("refreshPanelEndpoint");var Ypb=new Qk("showEngagementPanelEndpoint");var Zpb=new Qk("horizontalSliderViewModel");var $pb=new Qk("talkToRecsViewModel");var aqb=new Qk("createBroadcastCommand");var bqb=new Qk("metadataUpdateCommand");var cqb=new Qk("merchandiseShelfRenderer");var dqb=new Qk("shoppingDescriptionItemViewModel");var eqb=new Qk("gridMovieRenderer");var fqb=new Qk("movieRenderer");var gqb=new Qk("addToPlaylistEndpoint");var hqb=new Qk("suggestStats");var iqb=new Qk("backstageImageUploadEndpoint");var jqb=new Qk("createBackstagePostDialogEndpoint");var kqb=new Qk("createCommentReplyDialogEndpoint");var lqb=new Qk("updateCommentDialogEndpoint");var mqb=new Qk("updateCommentReplyDialogEndpoint");var nqb=new Qk("menuEndpoint");var oqb=new Qk("playlistEditorEndpoint");var pqb=new Qk("notificationActionRenderer");var qqb=new Qk("addUpcomingEventReminderEndpoint");var rqb=new Qk("getCommentsFromInboxCommand");var sqb=new Qk("notificationOptOutEndpoint");var tqb=new Qk("recordNotificationInteractionsEndpoint");var uqb=new Qk("removeUpcomingEventReminderEndpoint");var vqb=new Qk("getDownloadActionCommand");var wqb=new Qk("showMoreDrawerCommand");var xqb=new Qk("updateEngagementPanelContentCommand");var yqb=new Qk("getPdgBuyFlowCommand");var zqb=new Qk("liveChatPurchaseMessageEndpoint");var Aqb=new Qk("openSuperStickerBuyFlowCommand");var Bqb=new Qk("previewSuperStickerCommand");var Cqb=new Qk("removeCreatorGoalTickerChipCommand");var Dqb=new Qk("showCreatorGoalTickerChipCommand");var Eqb=new Qk("updatePdgFeatureEnablementCommand");var Fqb=new Qk("pdgCommentChipRenderer");var Gqb=new Qk("superStickerPackRenderer"),Hqb=new Qk("superStickerPackItemButtonRenderer");var Iqb=new Qk("superStickerPreviewRenderer");var Jqb=new Qk("creatorGoalSetUpFlowDropdownItemViewModel");var Kqb=new Qk("creatorGoalSetUpFlowDropdownViewModel");var Lqb=new Qk("giftAttributionItemViewModel");var Mqb=new Qk("giftOverlayItemViewModel");var Nqb=new Qk("liveChatTickerCreatorGoalViewModel");var Oqb=new Qk("prefetchWatchCommand");var Pqb=new Qk("toggleCaptionsVisibilityCommand");var Qqb=new Qk("playerDisclosureViewModel");var Rqb=new Qk("playlistRenderer");var Sqb=new Qk("createImagePollCommand");var Tqb=new Qk("createQuizCommand");var Uqb=new Qk("getUploadFeedbackCommand");function Vqb(a,b,c){var d=T0a(a);if(d){var e=nD(a);if(!e)throw cD(a);if(e.formRole===0)e=[b];else{e=e.nestedFormAccessor;if(!e)throw H0a(a);e=[].concat(ia(Y0a(e.nestedFormPath)),[b])}c={path:e,value:c.value,fieldState:c};vRa(c.path,c,d,U0a);Z0a(a,b)}} ;function Wqb(a,b){var c,d,e,f,h;return ra(function(m){switch(m.nextAddress){case 1:c=[],d=l(a.asyncValidators),e=d.next();case 2:if(e.done){m.jumpTo(4);break}f=e.value;return m.yield(f.validate(b),5);case 5:h=m.yieldResult;h!=null&&c.push(h);e=d.next();m.jumpTo(2);break;case 4:return m.return(c);}})} ;function Xqb(a,b,c,d){return ra(function(e){return e.return(Yqb(a,b,c,d,function(f){Vqb(c,a.fieldId,{value:b,errors:f,isTouched:!0})}))})} function Zqb(a,b,c){return ra(function(d){return d.return(Yqb(a,a.value,b,c,function(e){Vqb(b,a.fieldId,{errors:e})}))})} function Yqb(a,b,c,d,e){var f,h,m,p,q,t;return ra(function(u){if(u.nextAddress==1){f=a;h=f.fieldId;m=f.validators;for(var v=[],w=l(m.syncValidators),y=w.next();!y.done;y=w.next())y=y.value.validate(b),y!=null&&v.push(y);p=v;e(p);q=Date.now();d.set(h,q);t=qD(c,h);if(!t)throw F0a(h);return t.errors.length!==0?u.jumpTo(2):u.yield($qb(t,b,c,q,d),2)}return u.return()})} function arb(a,b,c){return c.get(a)!==b} function $qb(a,b,c,d,e){var f,h,m,p;return ra(function(q){if(q.nextAddress==1)return f=a,h=f.validators,m=f.fieldId,h.asyncValidators.length===0?q.return():h.asyncDebounceDelayMs===void 0?q.jumpTo(2):q.yield(new Promise(function(t){setTimeout(t,h.asyncDebounceDelayMs)}),2); if(q.nextAddress!=4)return arb(m,d,e)?q.return():q.yield(Wqb(h,b),4);p=q.yieldResult;if(arb(m,d,e))return q.return();Vqb(c,m,{errors:p});return q.return()})} ;var O0a=function(a,b,c){var d=W0a(c);if(!d)throw G0a(c);var e=d.latestFieldUpdateTimestamps;d=d.dependentValidationMap;var f=qD(c,b);if(!f)throw F0a(b);a=Xqb(f,a,c,e);e=brb(b,c,d,e);return Promise.all([a].concat(ia(e))).then(function(){return crb(c,b)})}; function brb(a,b,c,d){var e;return((e=c.get(a))!=null?e:[]).map(function(f){f=qD(b,f);return Zqb(f,b,d)})} function crb(a,b){var c=X0a(a);if(c==null||!c.onFieldChanged)return Promise.resolve();var d=pD(a);if(!d)throw G0a(a);if(b==="formId")throw I0a();if(b in d)return c.onFieldChanged(b,d,function(e,f){var h=jD(e);if(!qD(a,h))throw F0a(e);return O0a(f,e,a)}); throw bD("FieldId "+b+" does not match any field in the form "+JSON.stringify(d)+".")} ;function RJ(a){var b,c,d,e,f,h,m,p,q,t;return ra(function(u){b=W0a(a.formId);if(!b)return u.return();c=b;d=c.latestFieldUpdateTimestamps;e=[];f=l(Object.keys(a));h=f.next();for(m={};!h.done;m={nestedArrayField:void 0},h=f.next())p=h.value,p!=="formId"&&(q=a[p],q.kind===1?e.push(RJ(q.value)):q.kind===2?(m.nestedArrayField=q,t=m.nestedArrayField.value.map(function(v){return RJ(v)}),e.push(Promise.all(t).then(function(v){return function(){return Zqb(v.nestedArrayField,a.formId,d)}}(m)))):e.push(Zqb(q, a.formId,d))); return u.yield(Promise.all(e),0)})} ;var drb=function(a){this.rule=a}; drb.prototype.validate=function(a){var b;a=(b=a==null?void 0:a.length)!=null?b:0;if(this.rule.allowEmpty&&a===0)return null;if(this.rule.minLength!==void 0&&athis.rule.maxLength){var e,f;return{message:(f=(e=this.rule.translations)==null?void 0:e.maxLengthErrorMessage)!=null?f:""}}return null};var erb=function(a){this.rule=a}; erb.prototype.validate=function(a){var b,c=new RegExp((b=this.rule.regex)!=null?b:""),d,e;b=(e=(d=this.rule.translations)==null?void 0:d.regexErrorMessage)!=null?e:"";return c.test(a)?null:{message:b}};var frb=function(a){this.rule=a}; frb.prototype.validate=function(a){if(!a){var b,c;return{message:(c=(b=this.rule.translations)==null?void 0:b.selectedErrorMessage)!=null?c:""}}return null};var grb=[[rnb,drb],[snb,erb],[tnb,frb]];function SJ(a,b,c){if(c==null||!c.validationSchema)return{syncValidators:[],asyncValidators:[]};var d=b.syncValidators,e=b.asyncValidators;c=c.validationSchema;b=c.syncStep;var f=c.asyncStep;c=[];var h=[],m=void 0;(b==null?0:b.rules)&&d&&(c=b.rules.map(function(p){for(var q=l(d),t=q.next();!t.done;t=q.next()){var u=l(t.value);t=u.next().value;u=u.next().value;if(t=z(p,t))return new u(t,a)}throw J0a("sync",p)})); (f==null?0:f.rules)&&e&&(h=f.rules.map(function(p){for(var q=l(e),t=q.next();!t.done;t=q.next()){var u=l(t.value);t=u.next().value;u=u.next().value;if(t=z(p,t))return new u(t,a)}throw J0a("async",p)}),b=hrb(f.debounceDelay),b>0&&(m=b)); return{syncValidators:c,asyncValidators:h,asyncDebounceDelayMs:m}} function irb(a){var b=grb===void 0?[]:grb,c,d=(c=a==null?void 0:a.syncValidators)!=null?c:[],e,f=(e=a==null?void 0:a.asyncValidators)!=null?e:[];b=b.filter(function(h){var m=l(h).next().value;return d.every(function(p){p=l(p).next().value;return m.name!==p.name})}); a=[].filter(function(h){var m=l(h).next().value;return f.every(function(p){p=l(p).next().value;return m.name!==p.name})}); b=new(Function.prototype.bind.apply(Array,[null].concat(ia(b),ia(d))));a=new(Function.prototype.bind.apply(Array,[null].concat(ia(a),ia(f))));return{syncValidators:b,asyncValidators:a}} function hrb(a){if(!a)return 0;var b=0,c=Number(a.seconds);isNaN(c)||(b+=c*1E3);a=Number(a.nanos);isNaN(a)||(b+=a/1E6);return b} function jrb(a){var b=new Map;if(!a)return b;for(var c=l(Object.keys(a)),d=c.next(),e={};!d.done;e={fieldName$jscomp$5:void 0},d=c.next()){e.fieldName$jscomp$5=d.value;d=a[e.fieldName$jscomp$5];var f=void 0,h=void 0;((f=d)==null?0:(h=f.validationSchema)==null?0:h.dependencies)&&d.validationSchema.dependencies.forEach(function(m){return function(p){p=jD(p);if(!(p in a))throw bD("Dependent fieldId \""+p+"\" does not match any field in the FormSchema. \n Known fields: "+E0a(Object.keys(a))+".\n Please check that ValidationSchema.dependencies is filled correctly.\n "); var q,t=(q=b.get(p))!=null?q:[];t.push(m.fieldName$jscomp$5);b.set(p,t)}}(e))}return b} ;function krb(a,b,c,d,e,f){function h(q){return qD(a,q)} var m,p={formId:a,options:P0a((m=e==null?void 0:e.options)!=null?m:[],"options",a,SJ(h,b,d==null?void 0:d.options)),explanationText:hD(e==null?void 0:e.explanationText,"explanationText",a,SJ(h,b,d==null?void 0:d.explanationText)),correctAnswerIndex:hD(e==null?void 0:e.correctAnswerIndex,"correctAnswerIndex",a,SJ(h,b,d==null?void 0:d.correctAnswerIndex)),isImageType:hD(e==null?void 0:e.isImageType,"isImageType",a,SJ(h,b,d==null?void 0:d.isImageType))};oD(a,{form:p,formType:"PostsCreationOptionsEditorForm", dependentValidationMap:jrb({options:d==null?void 0:d.options,explanationText:d==null?void 0:d.explanationText,correctAnswerIndex:d==null?void 0:d.correctAnswerIndex,isImageType:d==null?void 0:d.isImageType}),formDelegate:c,nestedFormAccessor:void 0,submitConfig:f,toFormData:lrb});return p} function lrb(a){return{options:a.options.value,explanationText:a.explanationText.value,correctAnswerIndex:a.correctAnswerIndex.value,isImageType:a.isImageType.value}} ;function mrb(a,b){if(a==null||!a.id)throw eD(a);var c=a.id,d=a.fieldSchemas,e=a.initialValues;a=a.submitConfig;var f=irb(b==null?void 0:b.customValidationRegistry);b=krb(c,f,b,d,e,a);RJ(b).catch(function(h){throw dD(c,h)})} function nrb(a){return sD(a,"PostsCreationOptionsEditorForm")} ;var orb=new Qk("quizRenderer");var prb=new Qk("uploadedVideoRenderer");var qrb=new Qk("decorateMessageEndpoint");var rrb=new Qk("lpOfferCardOptionViewModel");var srb=new Qk("lpOfferTableRowViewModel");var trb=new Qk("tooltipRenderer");var urb=new Qk("reelItemRenderer");var vrb=new Qk("shortsLockupViewModel");var TJ=new Qk("buttonRenderer"),UJ=new Qk("toggleButtonRenderer");var wrb=new Qk("switchButtonRenderer");var xrb=new Qk("responsiveContainerConfiguration");var yrb=new Qk("pollRenderer");var zrb=new Qk("backgroundPromoRenderer");var Arb=new Qk("chipCloudRenderer"),Brb=new Qk("chipCloudChipRenderer");var Crb=new Qk("itemSectionRenderer");var Drb=new Qk("messageRenderer");var Erb=new Qk("sortFilterHeaderRenderer");var Frb=new Qk("sortFilterSubMenuRenderer");var Grb=new Qk("videoRenderer");var Hrb=new Qk("upsellDialogRenderer");var Irb=new Qk("getAnswerCommand");var VJ=new Qk("searchEndpoint");var Jrb=new Qk("overviewAnswerViewModel");var Krb=new Qk("videoOverviewViewModel");var Lrb=new Qk("addToPlaylistServiceEndpoint");var Mrb=new Qk("clearSearchHistoryEndpoint");var Nrb=new Qk("clearWatchHistoryEndpoint");var Orb=new Qk("createCommentEndpoint");var Prb=new Qk("createCommentReplyEndpoint");var WJ=new Qk("performCommentActionEndpoint");var Qrb=new Qk("updateCommentEndpoint");var Rrb=new Qk("updateCommentReplyEndpoint");var Srb=new Qk("createPlaylistServiceEndpoint");var Trb=new Qk("deletePlaylistEndpoint");var Urb=new Qk("deleteVideoEndpoint");var Vrb=new Qk("getReportFormEndpoint");var Wrb=new Qk("modifyChannelNotificationPreferenceEndpoint");var Xrb=new Qk("offlinePlaylistEndpoint"),Yrb={ACTION_UNKNOWN:"ACTION_UNKNOWN",ACTION_ADD:"ACTION_ADD",ACTION_REMOVE:"ACTION_REMOVE",ACTION_REMOVE_WITH_PROMPT:"ACTION_REMOVE_WITH_PROMPT",ACTION_PAUSE:"ACTION_PAUSE",ACTION_RETRY:"ACTION_RETRY",ACTION_RESUME:"ACTION_RESUME",ACTION_SYNC:"ACTION_SYNC",ACTION_APPROVE:"ACTION_APPROVE",ACTION_INFER_AUTOMATICALLY:"ACTION_INFER_AUTOMATICALLY",ACTION_TOGGLE_AUTO_DOWNLOAD:"ACTION_TOGGLE_AUTO_DOWNLOAD"};var Zrb=new Qk("selectActiveIdentityEndpoint");var $rb=new Qk("setSettingEndpoint");var asb=new Qk("undoFeedbackEndpoint");var bsb=new Qk("unsubscribeEndpoint");var csb=new Qk("updatedMetadataEndpoint");var dsb=new Qk("sharingProviderDataCommand");var esb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(esb,Ig);var fsb=[0,hh,-1];esb.prototype.JSC$10817_serializeBinary=th(fsb);var gsb=rh(fsb);var hsb=new Qk("userMentionSuggestionRenderer");var isb=new Qk("liveChatTunnelCommand");var jsb=new Qk("removeFanzoneTickerChipCommand");var ksb=new Qk("showFanzoneTickerChipCommand");var lsb=new Qk("showSponsorshipsGiftOfferDialogCommand");var msb=new Qk("sponsorshipsScrollableShelfViewModel");var nsb=new Qk("subscribeEndpoint");var XJ=new Qk("showDialogCommand");var osb=new Qk("showSheetCommand");var YJ=new Qk("avatarViewModel");var psb=new Qk("badgeViewModel");var ZJ=new Qk("buttonViewModel");var $J=new Qk("chipViewModel");var qsb=new Qk("contentPreviewImageViewModel");var rsb=new Qk("decoratedAvatarViewModel");var ssb=new Qk("imageBannerViewModel");var tsb=new Qk("lockupContentMetadataRowExtension");var usb=new Qk("lockupMetadataViewModel");var vsb=new Qk("lockupViewModel");var wsb=new Qk("avatarStackViewModel");var xsb=new Qk("contentMetadataViewModel");var ysb=new Qk("pageHeaderViewModel");function zsb(a,b,c,d,e){function f(p){return qD(a,p)} var h,m={formId:a,query:hD(d==null?void 0:d.query,"query",a,SJ(f,b,c==null?void 0:c.query)),searchInputType:hD(d==null?void 0:d.searchInputType,"searchInputType",a,SJ(f,b,c==null?void 0:c.searchInputType)),browseFormData:P0a((h=d==null?void 0:d.browseFormData)!=null?h:[],"browseFormData",a,SJ(f,b,c==null?void 0:c.browseFormData)),formData:hD(d==null?void 0:d.formData,"formData",a,SJ(f,b,c==null?void 0:c.formData))};oD(a,{form:m,formType:"SearchInputForm",dependentValidationMap:jrb({query:c==null? void 0:c.query,searchInputType:c==null?void 0:c.searchInputType,browseFormData:c==null?void 0:c.browseFormData,formData:c==null?void 0:c.formData}),formDelegate:void 0,nestedFormAccessor:void 0,submitConfig:e,toFormData:Asb});return m} function Asb(a){return{query:a.query.value,searchInputType:a.searchInputType.value,browseFormData:a.browseFormData.value,formData:a.formData.value}} ;function Bsb(a){if(a==null||!a.id)throw eD(a);var b=a.id,c=a.fieldSchemas,d=a.initialValues;a=a.submitConfig;var e=irb();c=zsb(b,e,c,d,a);RJ(c).catch(function(f){throw dD(b,f)})} ;var Csb=new Qk("thumbnailBadgeViewModel");var Dsb=new Qk("thumbnailHoverOverlayToggleActionsViewModel");var Esb=new Qk("thumbnailViewModel");var aK=new Qk("toggleButtonViewModel");var Fsb=new Qk("sectionHeaderViewModel");var Gsb=new Qk("checkboxGroupViewModel");var Hsb=new Qk("checkboxItemViewModel");var bK=new Qk("radioButtonGroupViewModel");var Isb=new Qk("radioButtonItemViewModel");var Jsb=new Qk("switchListItemViewModel");var Ksb=new Qk("textFieldViewModel");var Lsb=new Qk("inputComposerViewModel");var Msb=new Qk("notifyDropdownOptionSelectedCommand");var cK=new Qk("listItemViewModel");var Nsb=new Qk("panelFooterViewModel");var Osb=new Qk("tooltipViewModel");var Psb=new Qk("saveLiveReactionsEmojiSetCommand");var Qsb=new Qk("transcriptEditSegmentCommand");var Rsb=new Qk("transcriptSubmitCaptionCorrectionCommand");var Ssb=new Qk("transcriptUpdateSegmentTextCommand");var Tsb=new Qk("transcriptSearchBoxRenderer");var Usb=new Qk("transcriptSegmentListRenderer");var Vsb=new Qk("transcriptSegmentRenderer");var Wsb=new Qk("unpluggedHomeLocationCommand");var Xsb=new Qk("tabViewModel");var Ysb=new Qk("tabbedViewModel");var Zsb=new Qk("uploadFeedbackItemContinuation");var $sb=new Qk("updateDescriptionAction");var atb=new Qk("updateToggleButtonTextAction");var btb=new Qk("relatedChipCommand");var ctb=new Qk("carouselLockupRenderer");var dtb=new Qk("multiMarkersPlayerBarRenderer"),dK=new Qk("chapterRenderer");var etb=new Qk("expandableVideoDescriptionBodyRenderer");var ftb=new Qk("heatMarkerRenderer");var gtb=new Qk("heatmapRenderer");var htb=new Qk("timedMarkerDecorationRenderer");var itb=new Qk("postWebToNativeMessageCommand");var jtb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(jtb,Ig);var ktb=[0,hh,-2];jtb.prototype.JSC$10825_serializeBinary=th(ktb);var ltb=qh(jtb,ktb);var mtb=new Qk("whitelistEditEndpoint");var ntb=new Qk("completeTransactionAction");var otb=new Qk("commerceActionCommand");var ptb=new Qk("getPaymentInstrumentsParamsCommand");var qtb=new Qk("getPaymentsClientTokenCommand");var rtb=new Qk("googlePaymentBillingCommand");var stb=new Qk("logGtmCommand");var ttb=new Qk("ypcCancelRecurrenceCommand");var utb=new Qk("ypcPauseSubscriptionCommand");var vtb=new Qk("ypcResumeSubscriptionCommand");var wtb=new Qk("cancellationFlowState");var xtb=new Qk("premiumPurchaseFlowState");var ytb=new Qk("ypcOffersEndpoint");var ztb=new Qk("surveyAnswerCardRenderer");var Atb=new Qk("linkCardRenderer");var Btb=new Qk("showMoreButtonRenderer");var eK=new Qk("themedImageViewModel");var Ctb=new Qk("ypcCancelRecurrenceEndpoint");var Dtb=new Qk("ypcCompleteTransactionEndpoint");var fK=new Qk("ypcGetCartEndpoint");var gK=new Qk("ypcGetOffersEndpoint");var hK=new Qk("ypcHandleTransactionEndpoint");var Etb=new Qk("ypcLogWalletAnalyticDataEndpoint");var Ftb=new Qk("ypcRedeemCodeEndpoint");var Gtb=new Qk("ypcUpdateFopEndpoint");var Htb=new Qk("creatorGoalSetUpFlowState");var Ktb=function(a,b){a=a===void 0?"":a;this.currencyUnitMicros=b=b===void 0?1E4:b;this.currencySymbol="";a?(this.currencyFormatter=new Itb(a),this.currencySymbol=SH[a][1]):this.currencyFormatter=new Jtb;this.currencyUnitMicros=b||1E4},iK=function(a,b){return(b-b%a.currencyUnitMicros)/1E6},Ltb=function(){},Jtb=function(){}; k(Jtb,Ltb);Jtb.prototype.parse=function(a){a=Number(a);return Number.isInteger(a)?a:NaN}; Jtb.prototype.format=function(a){return a.toString()}; var Itb=function(a){Gdb();this.formatter=new cI(4,a)}; k(Itb,Ltb);Itb.prototype.parse=function(a){var b=[0];var c=this.formatter.parse(a,b);return b[0]!==a.length?NaN:c}; Itb.prototype.format=function(a){return this.formatter.format(a)};dJ(bJ(1),$I(4));u3a(new MessageChannel().port2);var Mtb=new Qk("postsCreationOptionImageUriValidationRule");var Ntb=new Qk("postsCreationOptionSubformValidationRule");var Otb=new Qk("postsCreationOptionsCorrectAnswerValidationRule");var Ptb=new Qk("postsCreationOptionsLengthValidationRule");var Qtb=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"],jK=function(){this.state=1;this.jc=null;this.wya=void 0}; jK.prototype.initialize=function(a,b,c,d){this.wya=d;if(a.program){var e;d=(e=a.interpreterUrl)!=null?e:null;if(a.interpreterSafeScript)e=xla(a.interpreterSafeScript);else{var f;e=(f=a.interpreterScript)!=null?f:null}a.interpreterSafeUrl&&(d=Lk(a.interpreterSafeUrl).toString());Rtb(this,e,d,a.program,b,c)}else fo(Error("BL:CIP"))}; var Rtb=function(a,b,c,d,e,f){var h=h===void 0?"trayride":h;c?(a.setState(2),wv(gv(c),function(){if(window[h])Stb(a,d,h,e);else{a.setState(3);var m=IIa(c),p=document.getElementById(m);p&&(Mqa(m),p.parentNode.removeChild(p));fo(new Dl("BL:ULB",""+c))}},f)):b?(f=li("SCRIPT"),b instanceof ac?jc(f,b):f.textContent=b,f.nonce=Zb(document),document.head.appendChild(f),document.head.removeChild(f),window[h]?Stb(a,d,h,e):(a.setState(4),fo(new Dl("BL:ULBJ")))):fo(new Dl("BL:ULV"))}; jK.prototype.isInitialized=function(){return!!this.jc}; jK.prototype.getState=function(){return this.state}; jK.prototype.isLoading=function(){return this.state===2}; var Stb=function(a,b,c,d){a.setState(5);var e=!!a.wya&&Qtb.includes(Tc(a.wya)||"");try{var f=new mG({program:b,globalName:c,eU:{disable:!x("att_web_record_metrics")||!x("att_skip_metrics_for_cookieless_domains_ks")&&e,tk:"aGIf"}});f.sV.then(function(){a.setState(6);d&&d(b)}); Ttb(a,f)}catch(h){a.setState(7),h instanceof Error&&fo(h)}}; jK.prototype.invoke=function(a){a=a===void 0?{}:a;var b;this.jc?b=G8a(this.jc,{ot:a}):b=null;return b}; var Vtb=function(a,b){var c=ll("botguard_async_snapshot_timeout_ms",3E3);b=b===void 0?{}:b;c=c===void 0?3E3:c;return a.jc?new Promise(function(d,e){var f=!1,h=Hl(0,function(){f=!0;e(Error("Timed out waiting for snapshot"))},1,c); a.jc?Utb(a,{ot:b}).then(function(m){bj.cancelJob(h);f||d(m)}).catch(function(m){bj.cancelJob(h); f||e(m)}):(bj.cancelJob(h),d(null))}):Promise.resolve(null)}; jK.prototype.dispose=function(){Ttb(this,null);this.setState(8)}; var Utb=function(a,b){return a.jc.snapshot(b)},Ttb=function(a,b){Ii(a.jc); a.jc=b}; jK.prototype.setState=function(a){this.state=a};var Wtb=function(a){this.wrappedPromise_=a===void 0?null:a;this.state_=0;this.JSC$10844_value_=null}; Wtb.prototype.then=function(a,b,c){return this.wrappedPromise_?this.wrappedPromise_.then(a,b,c):this.state_===1&&a?((b=a.call(c,this.JSC$10844_value_))&&typeof b.then==="function"?a=b:(a=new Wtb,b=b===void 0?null:b,a.state_=1,a.JSC$10844_value_=b===void 0?null:b),a):this.state_===2&&b?((b=b.call(c,this.JSC$10844_value_))&&typeof b.then==="function"?a=b:(a=new Wtb,b=b===void 0?null:b,a.state_=2,a.JSC$10844_value_=b===void 0?null:b),a):this}; oj(Wtb);function Xtb(a){var b=a.docid||a.video_id||a.videoId||a.id;if(b)return b;b=a.raw_player_response;b||(a=a.player_response)&&(b=JSON.parse(a));return b&&b.videoDetails&&b.videoDetails.videoId||null} ;function Ytb(a){var b=a.deltaY,c=a.target,d=null;if(window.Polymer&&window.Polymer.Element){if(c=a.path||a.composedPath&&a.composedPath()){c=l(c);for(var e=c.next();!e.done&&(e=e.value,!Ztb(e,b));e=c.next())if(e.overscrollConfig){d=e;break}}}else for(;c&&!Ztb(c,b);){if(c.overscrollConfig){d=c;break}c=c.parentElement}d&&(b=d.overscrollConfig,b.cooldown?(d=a.deltaY,c=b.lastDeltaY||0,b.lastDeltaY=d,e=b.lastStopped||0,c&&e&&c>0==d>0?Math.abs(c)>=Math.abs(d)?(d=e+1200,c=!1):(d=e+600,c=!0):(d=Date.now()+ 600,c=!0),d>Date.now()&&(a.preventDefault(),c&&(b.lastStopped=Date.now()))):a.preventDefault())} function Ztb(a,b){return b<0&&a.scrollTop>0||b>0&&a.scrollTop600?0:e<60||c<=0||d/c>.9)?0:b)} function dwb(a,b,c){var d="/watch?v="+a;a={videoId:a};b&&(a.playlistId=b,d+="&list="+b);c&&(a.startTimeSeconds=c,d+="&t="+c+"s");return{watchEndpoint:a,commandMetadata:{webCommandMetadata:{url:d,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}}} function ewb(a){return{browseEndpoint:{browseId:"VL"+a},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+a,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}} function fwb(a){if(a){var b;if(a){var c=(b=z(a.commandMetadata,ly))==null?void 0:b.url;b=!(!c||c==="/service_ajax")}else b=!1;if(b)return a;var d;if(a=(d=z(a,iy))==null?void 0:d.commands)for(d=l(a),a=d.next();!a.done;a=d.next())if(a=fwb(a.value))return a}} ;function sK(a){return{runs:[{text:a}]}} function tK(a){return a?sK(a):void 0} function gwb(a){if(a)return{runs:[{text:a,textColor:4288218130,darkModeTextColor:4294950845}]}} ;var uK=window,vK=uK.YT_I18N_FORMATTING_GOOG_LOCALE||"en",hwb=uK.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||Beb,iwb=uK.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||IG,Xeb=uK.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||Web,Teb=uK.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||eeb;function jwb(a){a=kwb(a);var b=a.hours===void 0?0:a.hours,c=a.minutes===void 0?0:a.minutes,d=a.seconds===void 0?0:a.seconds,e=b>0;a=[];e&&(b=lwb(b),a.push(b));b=e;b=b===void 0?!1:b;c=(["af","be","lt"].includes(vK)||b)&&c<10?mwb().format(c):new Intl.NumberFormat("en-u-nu-latn").format(c);a.push(c);c=mwb().format(d);a.push(c);c=":";"da fi id si sr sr-Latn".split(" ").includes(vK)&&(c=".");return a.join(c)} function kwb(a){var b=a.hours||0,c=a.minutes||0,d=a.seconds||0;b=d+c*60+b*3600+(a.days||0)*86400+(a.weeks||0)*604800+(a.months||0)*2629800+(a.years||0)*31557600;if(b<=0)return{hours:0,minutes:0,seconds:0};a=b;b=Math.floor(a/3600);a%=3600;c=Math.floor(a/60);d=Math.floor(a%60);return{hours:b,minutes:c,seconds:d}} function lwb(a){a=new Intl.NumberFormat("en-u-nu-latn").format(a);var b=["fr"],c="az bs ca da de el es eu gl hr id is it km lo mk nl pt-BR ro sl sr sr-Latn tr vi".split(" ");return"af be bg cs et fi fr-CA hu hy ka kk ky lt lv no pl pt-PT ru sk sq sv uk uz".split(" ").includes(vK)?a.replace(",","\xA0"):b.includes(vK)?a.replace(",","\u202F"):c.includes(vK)?a.replace(",","."):a} function mwb(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})} function nwb(){owb||(Beb=hwb,owb=new Ueb);return owb} var owb;function pwb(a){try{return new cI(5).format(a)}catch(b){}} function wK(a){return{thumbnailOverlayDownloadingRenderer:{state:a}}} function qwb(){var a=zy("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:sK(a),icon:{iconType:"PLAY_ALL"}}}} ;TH({id:"America/Los_Angeles",names:["PST","PST","PDT","PDT"],std_offset:-480,transitions:[2770,60,7137,0,11506,60,16041,0,20410,60,24777,0,29146,60,33513,0,35194,60,42249,0,45106,60,50985,0,55354,60,59889,0,64090,60,68625,0,72994,60,77361,0,81730,60,86097,0,90466,60,94833,0,99202,60,103569,0,107938,60,112473,0,116674,60,121209,0,125578,60,129945,0,134314,60,138681,0,143050,60,147417,0,151282,60,156153,0,160018,60,165057,0,168754,60,173793,0,177490,60,182529,0,186394,60,191265,0,195130,60,200001,0, 203866,60,208905,0,212602,60,217641,0,221338,60,226377,0,230242,60,235113,0,238978,60,243849,0,247714,60,252585,0,256450,60,261489,0,265186,60,270225,0,273922,60,278961,0,282826,60,287697,0,291562,60,296433,0,300298,60,305337,0,309034,60,314073,0,317770,60,322809,0,326002,60,331713,0,334738,60,340449,0,343474,60,349185,0,352378,60,358089,0,361114,60,366825,0,369850,60,375561,0,378586,60,384297,0,387322,60,393033,0,396058,60,401769,0,404962,60,410673,0,413698,60,419409,0,422434,60,428145,0,431170, 60,436881,0,439906,60,445617,0,448810,60,454521,0,457546,60,463257,0,466282,60,471993,0,475018,60,480729,0,483754,60,489465,0,492490,60,498201,0,501394,60,507105,0,510130,60,515841,0,518866,60,524577,0,527602,60,533313,0,536338,60,542049,0,545242,60,550953,0,553978,60,559689,0,562714,60,568425,0,571450,60,577161,0,580186,60,585897,0,588922,60,594633,0]}); function rwb(a){a=swb(a,2);return vK!=="ru"&&vK!=="es_419"&&vK!=="es-419"&&vK!=="es"&&vK!=="es_US"&&vK!=="es-US"&&vK!=="fr"&&vK!=="pl"&&vK!=="it"&&vK!=="nl"&&vK!=="uk"&&vK!=="fr_CA"&&vK!=="fr-CA"||a===""?a:a[0].toLocaleUpperCase()+a.substring(1)} var uwb=twb(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(a){return a}}}),vwb=twb(function(){return{dateFormat:3, timeFormat:7,joinerStyle:3,capitalize:function(a){return a}}}); function twb(a){return function(b){var c=a(),d=swb(b,c.dateFormat);b=swb(b,c.timeFormat);var e=c.capitalize,f=iwb.DATETIMEFORMATS[c.joinerStyle];f=f.replace(/'(?!')/g,"");f=f.replace("{0}",b);f=f.replace("{1}",d);return e.call(c,f)}} function wwb(a){return a?typeof a.seconds==="string"&&(a.nanos===void 0||typeof a.nanos==="number"):!1} function xwb(a){return new Date(Number(a.seconds)*1E3+(a.nanos||0)*1E-6)} function swb(a,b){if(typeof a.getTime==="function")a={date:a};else if(wwb(a))a={date:xwb(a)};else if(typeof wwb(a.timestamp)&&typeof a.i18nInternalSecondsEastOfUtc==="number")a={date:xwb(a.timestamp),timeZone:TH(-a.i18nInternalSecondsEastOfUtc/60)};else throw Error("Ill-formed LocalTime or Timestamp "+JSON.stringify(a));var c=a;a=c.date;c=c.timeZone;b=ywb(b).format(a,c);vK==="zh-TW"&&(a=c?Number(ywb("H").format(a,c)):a.getHours(),b=a<5?b.replace("\u4E0A\u5348","\u51CC\u6668"):a<8?b.replace("\u4E0A\u5348", "\u65E9\u4E0A"):a<12?b.replace("\u4E0A\u5348","\u4E0A\u5348"):a<13?b.replace("\u4E0B\u5348","\u4E2D\u5348"):a<19?b.replace("\u4E0B\u5348","\u4E0B\u5348"):b.replace("\u4E0B\u5348","\u665A\u4E0A"));return b} var zwb=new Map;function ywb(a){if(zwb.has(a))return zwb.get(a);var b=Awb(a);b=Bwb(b);Qdb!==!0&&(Qdb=!0);Odb=!0;Odb=!1;b=new UH(b,iwb);zwb.set(a,b);return b} function Awb(a){return new UH(a,iwb).patternParts_.map(function(b){return b.type===0?"'"+b.text+"'":b.text}).join("")} function Bwb(a){return vK==="en"||vK==="es_US"||vK==="es-US"?a:a.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(b,c,d){return"H".repeat(c.length)+d})} ;function Cwb(a){var b=new Date;Dwb||(Beb=hwb,Dwb=new Yeb);var c=Dwb;a:if(a=Ewb(a),b=Ewb(b||new Date),a>b)c=a.getTime()-b.getTime()>6048E5?swb(a,1):uwb(a);else{for(var d=0;Fwb(a,12*(d+1))0)c=c.format(-d,0);else{for(d=0;Fwb(a,d+1)0)c=c.format(-d,2);else{a=b.getTime()-a.getTime();b=l(Gwb);for(d=b.next();!d.done;d=b.next()){d=d.value;var e=d.unit,f=Math.floor(a/d.unitDuration);if(f>=(d.threshold===void 0?1:d.threshold)){c=c.format(-f,e);break a}}c=c.format(-0,7)}}}return c} var Gwb=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}];function Ewb(a){if(typeof a.getTime==="function")return a;if(wwb(a))return xwb(a);throw Error("Ill-formed Timestamp "+JSON.stringify(a))} function Fwb(a,b){for(var c=0,d;;++c)if(d=new Date(a.getFullYear(),a.getMonth()+b,a.getDate()-c,a.getHours(),a.getMinutes(),a.getSeconds()),d.getMonth()===(a.getMonth()+b)%12)return d} var Dwb;function Hwb(a,b){var c=[{thumbnailOverlayTimeStatusRenderer:{text:sK(jwb({seconds:a})),style:"DEFAULT"}}];b&&(a=b<=0||a<=0?0:b>=a?100:Math.ceil(b*100/a),a>0&&c.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:a}}));return c} function Iwb(a,b,c,d,e){if(b==="TRANSFER_STATE_UNKNOWN"||!a)return{};if(mC(b)||b==="TRANSFER_STATE_PRE_TRANSFER")var f=[wK("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var h,m;if(b==="TRANSFER_STATE_COMPLETE"&&((h=a.mainPlaylistEntity)==null?0:(m=h.videos)==null?0:m.length)){var p;a=(f=a.mainPlaylistEntity)==null?void 0:(p=f.videos)==null?void 0:p.length;f=(f=pwb(a))?{thumbnailOverlayBottomPanelRenderer:{text:sK(f),icon:{iconType:"PLAYLISTS"}}}:void 0;f=[qwb(),Object.assign({}, f!=null?f:{})]}else f=[]}a:if(b==="TRANSFER_STATE_PRE_TRANSFER")d=tK(zy("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(b==="TRANSFER_STATE_TRANSFER_IN_QUEUE")d=tK(zy("WAITING_TO_DOWNLOAD"));else if(mC(b))d=Math.floor(c*100).toString(),d=tK(zy("DOWNLOADING_PERCENT",{percent:d},"Downloading... "+d+"%"));else{if(d&&(x("playlist_is_offline_selector_killswitch")&&(e=Fn().resolve(en).isNetworkAvailable()),e)){b=zy("VIEW_FULL_PLAYLIST",void 0,"View full playlist");d=ewb(d);d=b&&d?{runs:[{text:b, navigationEndpoint:d}]}:void 0;break a}d=void 0}return Object.assign({},f.length?{thumbnailOverlays:f}:{},d?{viewPlaylistText:d}:{viewPlaylistText:kz("")})} function Jwb(a,b,c,d,e,f,h){h=h===void 0?!1:h;if(b==="TRANSFER_STATE_UNKNOWN"||!a)return{};if(d==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};f=f===void 0?!0:f;f=f===void 0?!0:f;f=a.videoEntity&&!a.policyEntity&&d!=="DOWNLOAD_STATE_FAILED"?[wK("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:iZa(a.policyEntity)&&b!=="TRANSFER_STATE_FAILED"&&b!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?b==="TRANSFER_STATE_PAUSED_BY_USER"? [wK("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:mC(b)?[wK("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:!x("download_unplayable_error_handling")||f||jZa(a.playbackDataEntity)?a.videoEntity.lengthSeconds?Hwb(a.videoEntity.lengthSeconds):[]:[wK("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]:[wK("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")];if(a.videoEntity&&!a.policyEntity&&d!=="DOWNLOAD_STATE_FAILED"){var m=zy("WAITING_TO_DOWNLOAD");if(m)return{shortViewCountText:kz(m), publishedTimeText:void 0,thumbnailOverlays:f}}if(!iZa(a.policyEntity)){e=a.policyEntity&&!hZa(a.policyEntity)?zy("DOWNLOAD_EXPIRED",{},"Download expired"):zy("TRANSFER_FAILED",{},"Download failed");var p;if((p=a.policyEntity)==null?0:p.shortMessageForDisabledAction)e=a.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:gwb(e),publishedTimeText:void 0,thumbnailOverlays:f}}if(b==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:kz(zy("DOWNLOAD_PAUSED",{},"Download paused")), publishedTimeText:void 0,thumbnailOverlays:f};if(b==="TRANSFER_STATE_FAILED"||b==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:gwb(zy("TRANSFER_FAILED",{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:f};if(b==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(p=zy("WAITING_TO_DOWNLOAD"),d==="DOWNLOAD_STATE_PAUSED"&&(p=zy("DOWNLOAD_PAUSED",{},"Download paused")),p))return{shortViewCountText:kz(p),publishedTimeText:void 0,thumbnailOverlays:f};if(mC(b))return a= Math.floor(c*100).toString(),{shortViewCountText:kz(zy("DOWNLOADING_PERCENT",{percent:a},"Downloading... "+a+"%")),publishedTimeText:void 0,thumbnailOverlays:f};if(x("download_unplayable_error_handling")&&!jZa(a.playbackDataEntity))return{shortViewCountText:gwb(zy("DOWNLOAD_UNPLAYABLE",{},"Video unavailable offline")),publishedTimeText:void 0,thumbnailOverlays:f};b=void 0;a.videoEntity.publishedTimestampMillis&&(b=tK(Cwb(new Date(Number(a.videoEntity.publishedTimestampMillis)))));c=[];h&&(c=[{metadataBadgeRenderer:{label:zy("DOWNLOADED", void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var q;a=tK((q=a.videoEntity.localizedStrings)==null?void 0:q.viewCount);return Object.assign({},e?{shortViewCountText:void 0}:{shortViewCountText:a},e?{}:{publishedTimeText:b},{badges:c,thumbnailOverlays:f})} ;function Kwb(a,b,c){if(a.length)return{titleText:sK(b!=null?b:zy("DOWNLOADS",void 0,"Downloads")),contents:a.map(function(d){var e=d.videoEntity;d={videoId:e.videoId,title:tK(e.title),shortBylineText:tK(d.channelEntity.title),thumbnail:e.thumbnail};var f=e.videoId?AC(XA.getState(),e.videoId):0;e.videoId&&c?d.navigationEndpoint=dwb(e.videoId,c,f):e.videoId&&(d.navigationEndpoint=cwb(e.videoId,f,e.lengthSeconds));e.lengthSeconds&&(d.thumbnailOverlays=Hwb(e.lengthSeconds,f));return{playlistPanelVideoRenderer:d}}), totalVideos:a.length}} ;var Lwb=function(a,b,c){var d=this;this.listId=a;this.JSC$10928_updateCallback=b;this.isOfflineVideoCallback=c;XA.subscribe(function(){d.handleUpdate()})},Mwb=function(a){var b=XA.getState().entities; if(a.listId&&a.listId!=="PPSV"){var c=wZa(b,a.listId,!0),d=nA(a.listId,"mainPlaylistEntity"),e,f;b=b==null?void 0:(e=b.mainPlaylistEntity)==null?void 0:(f=e[d])==null?void 0:f.title;return Kwb(c,b,a.listId)}a=oZa(SZa(b));b=oZa(sC(b));return Kwb(a.concat(b))}; Lwb.prototype.getPlaylistId=function(){return this.listId}; Lwb.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$10928_updateCallback(this.listId,Mwb(this),{})};var xK=function(a,b,c,d){d=d===void 0?[]:d;this.JSC$10931_playlistNetworkManager=a;this.listId=b;this.JSC$10931_updateCallback=c;this.videoIds=d;this.pendingUpdates=[];this.currentIndex=0}; xK.prototype.JSC$10931_setCurrentIndex=function(a){this.currentIndex=a}; xK.prototype.setListId=function(a){this.listId=a}; var Nwb=function(a,b){a.currentCreateRequest&&a.currentCreateRequest.cancel(b);a.currentUpdateRequest&&a.currentUpdateRequest.cancel(b);a.currentRefreshRequest&&a.currentRefreshRequest.cancel(b)}; xK.prototype.delete=function(){Nwb(this,"PROXY DELETED")}; var Qwb=function(a,b,c){var d={};c!==void 0?a.videoIds.splice.apply(a.videoIds,[c,0].concat(ia(b))):a.videoIds.push.apply(a.videoIds,ia(b));a.listId||a.currentCreateRequest?(b.forEach(function(e,f){e={addedVideoId:e,action:"ACTION_ADD_VIDEO"};c&&(e.addedVideoPosition=c+f);a.pendingUpdates.push(e)}),Owb(a)):Pwb(a,d.onCreateListCommand)},Pwb=function(a,b){Nwb(a,"OBSOLETE"); a.currentCreateRequest=Rwb(a.JSC$10931_playlistNetworkManager,b,a.videoIds);zj(a.currentCreateRequest,function(){a.currentCreateRequest=void 0}).then(function(c){a.setListId(c.playlistId); a.pendingUpdates.length>0?Owb(a):Swb(a)})},Owb=function(a){if(a.pendingUpdates.length!==0&&(a.currentRefreshRequest&&a.currentRefreshRequest.cancel("OBSOLETE"),!a.currentUpdateRequest&&!a.currentCreateRequest)){var b=a.pendingUpdates.splice(0,a.pendingUpdates.length); a.currentUpdateRequest=a.JSC$10931_playlistNetworkManager.updatePlaylist(a.listId,b);zj(a.currentUpdateRequest,function(){a.currentUpdateRequest=void 0}).then(function(){a.pendingUpdates.length>0?Owb(a):Swb(a)}).thenCatch(function(){a.pendingUpdates.unshift.apply(a.pendingUpdates,ia(b))})}},Swb=function(a){a.currentRefreshRequest=Twb(a.JSC$10931_playlistNetworkManager,a.listId,a.currentIndex,a.videoIds[a.currentIndex]); zj(a.currentRefreshRequest,function(){a.currentRefreshRequest=void 0}).then(function(b){a.JSC$10931_updateCallback(b.playlistId,b.playlistPanelRenderer,b.autoplayRenderer)})}; xK.prototype.size=function(){return this.videoIds.length};var Uwb=function(a,b,c,d,e,f,h){e=e===void 0?[]:e;h=h===void 0?Bi:h;xK.call(this,a,b,c,e);this.JSC$10931_playlistNetworkManager=a;this.listId=b;this.JSC$10931_updateCallback=c;this.onAuthChange=d;this.videoIds=e;this.storage=f;this.cookieReader=h;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=new this.cookieReader(window.document).get("SAPISID","");this.queueSapisIdJob=Ml(this.checkLoggedInStatusChange.bind(this),1E3)}; k(Uwb,xK);g=Uwb.prototype;g.checkLoggedInStatusChange=function(){new this.cookieReader(window.document).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=Ml(this.checkLoggedInStatusChange.bind(this),1E3)}; g.JSC$10931_setCurrentIndex=function(a){xK.prototype.JSC$10931_setCurrentIndex.call(this,a);this.store()}; g.delete=function(){bj.cancelJob(this.queueSapisIdJob);xK.prototype.delete.call(this)}; g.setListId=function(a){xK.prototype.setListId.call(this,a);this.store()}; g.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};function Vwb(a){return(a=Vh(a,"playlistId"))?{playlistId:a}:null} function Wwb(){return{}} ;function Xwb(a,b){return new uj(function(c,d){a.then(function(e){if(e){if(e=b(e))return c(e);d()}},d)})} ;var Ywb=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],Zwb=["playerResponse","videoDetails"],$wb=["response","currentVideoEndpoint","watchEndpoint","videoId"],axb=["response","currentVideoEndpoint","watchEndpoint","playlistId"],bxb=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],cxb=["response","contents","twoColumnWatchNextResults","playlist","playlist"],dxb=["response","webWatchNextResponseExtensionData","relatedVideoArgs"], exb=["response","contents","twoColumnWatchNextResults"];function fxb(a){var b,c,d,e=(b=a.contents)==null?void 0:(c=b.twoColumnWatchNextResults)==null?void 0:(d=c.autoplay)==null?void 0:d.autoplay,f,h,m;b=(f=a.contents)==null?void 0:(h=f.twoColumnWatchNextResults)==null?void 0:(m=h.playlist)==null?void 0:m.playlist;return e&&b&&b.playlistId?{rawResponse:a,autoplayRenderer:e,playlistPanelRenderer:b,playlistId:b.playlistId}:null} ;var yK={},gxb=(yK.WEB_UNPLUGGED="^unplugged/",yK.WEB_UNPLUGGED_ONBOARDING="^unplugged/",yK.WEB_UNPLUGGED_OPS="^unplugged/",yK.WEB_UNPLUGGED_PUBLIC="^unplugged/",yK.WEB_CREATOR="^creator/",yK.WEB_KIDS="^kids/",yK.WEB_EXPERIMENTS="^experiments/",yK.WEB_MUSIC="^music/",yK.WEB_REMIX="^music/",yK.WEB_MUSIC_EMBEDDED_PLAYER="^music/",yK.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",yK); function hxb(a){var b=b===void 0?"UNKNOWN_INTERFACE":b;if(a.length===1)return a[0];var c=gxb[b];if(c){c=new RegExp(c);for(var d=l(a),e=d.next();!e.done;e=d.next())if(e=e.value,c.exec(e))return e}var f=[];Object.entries(gxb).forEach(function(h){var m=l(h);h=m.next().value;m=m.next().value;b!==h&&f.push(m)}); c=new RegExp(f.join("|"));a.sort(function(h,m){return h.length-m.length}); d=l(a);for(e=d.next();!e.done;e=d.next())if(e=e.value,!c.exec(e))return e;return a[0]} function zK(a){return"/youtubei/v1/"+hxb(a)} ;var ixb=function(a,b){this.networkManager=a;this.JSC$10954_innertubeTransportService=b},Rwb=function(a,b,c){if(!z(b,Srb))return xj(Error("Endpoint supplied is invalid")); z(b,Srb).videoIds=c;c={create_playlist_title:zy("QUEUE",void 0,"Queue")};return Xwb(AK(a.JSC$10954_innertubeTransportService,b,c),Vwb)},Twb=function(a,b,c,d){b={videoId:d, playlistId:b,playlistIndex:c};c=zK(Jvb);return Xwb(BK(a.JSC$10954_innertubeTransportService,b,c),fxb)}; ixb.prototype.updatePlaylist=function(a,b){return Xwb(AK(this.JSC$10954_innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:a,actions:b}}),Wwb)};var jxb=function(a){this.storage=a},kxb; jxb.prototype.store=function(a,b){b=b===void 0?0:b;if(this.storage&&a.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",a),this.storage.set("TLPQindex",String(b)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(c){}}; jxb.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))}; jxb.prototype.getPlaylistId=function(){if(!this.storage)return null;var a=null;try{a=this.storage.get("TLPQplaylist")}catch(b){}return a};function lxb(a){return{openPopupAction:Object.assign({},{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:a}}},{})}} ;var mxb=["navigationEndpoint","watchEndpoint","videoId"],nxb=["nextButtonVideo","watchEndpoint","videoId"];function oxb(a,b){var c={mode:"NORMAL"};a&&(c.autoplayVideo=a.navigationEndpoint,c.nextButtonVideo=a.navigationEndpoint);b&&(c.previousButtonVideo=b.navigationEndpoint);return c} function pxb(a,b,c){if(!c||!c.sets)return{sets:[oxb(a,b)]};var d=c.sets.find(function(h){return h.mode==="NORMAL"}),e=Yh(c); if(!d)return e.sets.push(oxb(a,b)),e;if(!a)return c;d=Vh.apply(null,[d].concat(ia(nxb)));var f=Vh.apply(null,[a].concat(ia(mxb)));if(d===f)return c;e.sets=e.sets.filter(function(h){return h.mode!=="NORMAL"}); e.sets.push(oxb(a,b));return e} function qxb(a){return!!a.playlistPanelVideoRenderer&&!a.playlistPanelVideoRenderer.unplayableText} function rxb(a){return!!a.playlistPanelVideoRenderer&&!!a.playlistPanelVideoRenderer.title} function sxb(a,b){if(b.contents&&!(a>=b.contents.length)&&(a=b.contents.slice(a).find(qxb)))return a.playlistPanelVideoRenderer} function txb(a,b){if(b.contents)return(b=b.contents.find(function(c){return!!c.playlistPanelVideoRenderer&&c.playlistPanelVideoRenderer.videoId===a}))?b.playlistPanelVideoRenderer:void 0} function uxb(a,b){return b.contents?b.contents.findIndex(function(c){return!!c.playlistPanelVideoRenderer&&c.playlistPanelVideoRenderer.videoId===a}):-1} function vxb(a,b){return b.contents?b.contents.findIndex(function(c){return!!c.playlistPanelVideoRenderer&&c.playlistPanelVideoRenderer.playlistSetVideoId===a}):-1} function wxb(a,b){a.contents&&b!==-1&&a.contents.splice(b,1).length===1&&a.totalVideos!==void 0&&(--a.totalVideos,delete a.videoCountText)} function xxb(a){var b=[];if(!a||!a.contents)return b;a=l(a.contents);for(var c=a.next();!c.done;c=a.next())c=c.value,c.playlistPanelVideoRenderer&&c.playlistPanelVideoRenderer.videoId&&b.push(c.playlistPanelVideoRenderer.videoId);return b} function yxb(a,b,c,d,e,f,h){e=e===void 0?!1:e;f=f===void 0?!1:f;h=h===void 0?!1:h;if(a.contents&&a.contents.length!==0){d&&(a.contents=a.contents.filter(d));d=a.contents.length;for(var m=0;m-1&&a.temporaryItems.splice(c,1);HK(a,Bxb(a,a.response?a.response.autoplayRenderer:void 0))}; FK.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&HK(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})}; FK.prototype.setPlaylistData=function(a,b,c){var d=xxb(this.responsePlaylistData),e=xxb(b);this.listId===a&&d.length===e.length&&d.every(function(f,h){return f===e[h]})||(this.temporaryItems=[],this.listId=a,this.responsePlaylistData=b,HK(this,Bxb(this,c)))}; var Dxb=function(a){return(a==null?0:a.playlistId)?a.playlistId:"PPSV"},Exb=function(a){return a&&a.playlistId?a.playlistId==="PPSV"?!0:uZa(XA.getState().entities,a.playlistId):!1}; FK.prototype.isPlayingOfflineVideo=function(){return this.response?Exb(this.response):!1}; FK.prototype.closeMiniplayer=function(a){var b=this.queueProxy&&this.queueProxy.size()<=1,c=Fn().resolve(EK);if(!this.queueProxy||b)this.queueProxy&&this.clearQueue(),c.close(!0);else{c.hasPictureInPictureWindow()&&window.focus();b=this.responsePlaylistData;var d=this.temporaryItems.length+(b&&b.contents?b.contents.length:0);b=zy("QUEUE_CLEARED_UNPLURALIZED")||Ay("QUEUE_CLEARED",d);b=lxb(kz(b));c=zy("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");d=zy("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")|| Ay("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",d);var e=zy("MINIPLAYER_CLOSE",void 0,"Close"),f=zy("CANCEL",void 0,"Cancel");pCa(this.JSC$10974_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:kz(c),dialogMessages:[kz(d)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:kz(e),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},b]}}}}, cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:kz(f)}}}}}}],a)}}; var Bxb=function(a,b){var c={},d=a.response;c.autoplayRenderer=b;if(!a.responsePlaylistData&&!a.temporaryItems.length)return!d||!d.hasRelatedVideoData&&x("kevlar_prefetch_data_augments_network_data")||(c.playerData={rvs:d.relatedVideoArgs,endScreenRenderer:d.endScreenRenderer}),c;c.playerData={};if(a.index===void 0)return co(Error("Rendering a list without a current index")),c;c.panel=a.responsePlaylistData?Yh(a.responsePlaylistData):{titleText:kz(zy("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1, contents:[]};b=c.panel;if(b.contents)for(var e=l(a.temporaryItems),f=e.next();!f.done;f=e.next())b.contents.push({playlistPanelVideoRenderer:f.value});a.queueProxy&&d&&d.playingVideo&&d.playingVideoId&&!txb(d.playingVideoId,c.panel)&&(b=d.playingVideo,e=c.panel,f=a.index,e.contents&&e.contents.splice(f===void 0?0:f,0,{playlistPanelVideoRenderer:b}));d&&d.playingVideoId&&(b=a.index,e=c.panel,b=!e.contents||b>=e.contents.length?void 0:e.contents[b].playlistPanelVideoRenderer,b&&b.videoId===d.playingVideoId||( b=uxb(d.playingVideoId,c.panel),a.index=b!==-1?b:a.index?a.index-1:0));b=sxb(a.index+1,c.panel);e=void 0;a.index>0&&(e=sxb(a.index-1,c.panel));if(e||b)c.autoplayRenderer=pxb(b,e,c.autoplayRenderer);!b&&(d==null?0:d.relatedVideoArgs)&&(c.playerData.rvs=d.relatedVideoArgs);d=d?d.playlistIndexOffset:0;a.queueProxy?yxb(c.panel,a.index,d,rxb,!0,!0,!0):yxb(c.panel,a.index,d);c.playerData.playlistPanelRenderer=c.panel;return c}; FK.prototype.isMiniplayerActive=function(){return Fn().resolve(EK).isMiniplayerActive()}; var HK=function(a,b){a.playlistManager.setAutoplayRenderer(b.autoplayRenderer||null);a.playlistManager.setPlaylistData(b.panel||null);b.playerData&&a.playlistManager.setPlayerPlaybackControlData(b.playerData)};var IK=function(a){this.methodCodeName=a}; [new IK("b.f_"),new IK("j.s_"),new IK("r.s_"),new IK("e.h_"),new IK("i.s_"),new IK("s.t_"),new IK("p.h_"),new IK("s.i_"),new IK("f.i_"),new IK("a.b_"),new IK("a.o_"),new IK("g.o_"),new IK("p.i_"),new IK("p.m_"),new IK("n.k_"),new IK("i.f_"),new IK("a.s_"),new IK("m.c_"),new IK("n.h_"),new IK("o.p_"),new IK("m.p_"),new IK("o.a_"),new IK("d.p_"),new IK("e.i_")].reduce(function(a,b){a[b.methodCodeName]=b;return a},{});var Fxb;new bKa;new aKa;var JK=function(a,b,c,d,e,f,h){c=c===void 0?!1:c;d=d===void 0?!1:d;f=f===void 0?GK():f;this.JSC$23702_hasRun=!1;this.JSC$10991_playerPromiseResolver=a;this.JSC$10991_playerProvider=b;this.miniplayerActive=c;this.fromHistory=d;this.previousVideoId=e;this.JSC$10991_playlistController=f;this.tempData=h;this.enforcementCounter=new cKa}; k(JK,nK);JK.prototype.validate=function(a){return!(!a.data.playerResponse||a.data.page!=="watch"&&a.data.page!=="learning_journey_watch"&&a.data.page!=="shorts"||this.JSC$23702_hasRun)}; JK.prototype.handle=function(a){var b=this,c=z(a.endpoint,py),d=z(a.endpoint,ry);if(x("kevlar_continue_playback_without_player_response")&&(c==null?0:c.videoId)&&this.previousVideoId&&(c==null?void 0:c.videoId)===this.previousVideoId&&(c==null?0:c.continuePlayback)&&!this.fromHistory)this.JSC$10991_playerPromiseResolver.resolve();else{var e={};c?e.watch_endpoint=c:d&&(e.watch_endpoint=d,d.endTimeSeconds&&(e.end=d.endTimeSeconds));a.data.page==="watch"?(a.data.filler||this.miniplayerActive||Ws.getInstance().triggerAction("yt-start-loading-watch"), Object.assign(e,Gxb(this,a.endpoint)),x("enable_masthead_quartile_ping_fix")&&Object.assign(e,Hxb(this)),Object.assign(e,void 0),a.data.forceExternalPlaylist&&(e.external_list=!0)):a.data.page==="shorts"?Ws.getInstance().triggerAction("yt-start-loading-shorts"):a.data.page==="learning_journey_watch"&&Ws.getInstance().triggerAction("yt-start-loading-learning-journey");if(c=this.JSC$10991_playerProvider()){try{bw("cfg"),c.loadVideoWithPlayerResponse(a.data.playerResponse,e),c.getPlayerPromise().then(this.JSC$10991_playerPromiseResolver.resolve)}catch(f){co(f), this.JSC$10991_playerPromiseResolver.resolve()}this.JSC$23702_hasRun=!0;c.getPlayerPromise().then(function(f){f.addEventListener("onAbnormalityDetected",function(){var h=a.data.playerResponse;Fxb=f.getVideoData().cpn;var m;var p,q=(m=h.auxiliaryUi)==null?void 0:(p=m.messageRenderers)==null?void 0:p.bkaEnforcementMessageViewModel;m=q&&q.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?q:void 0;m&&(b.enforcementCounter.increment("IN_PLAYER"),p=Av("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT", 5),zv().logFlowEvent(p,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"),x("ab_st_vid_ks")?f.pauseVideo(!0):f.stopVideo(),h.playabilityStatus=Object.assign({},h.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:m}}),h.videoDetails=void 0,Ws.getInstance().triggerOptionalAction("yt-updated-playability-status",h.playabilityStatus))})})}else fo(Error("No player to update with PlayerResponse."))}}; var Gxb=function(a,b){var c=z(b,py);if(b&&c&&c.playlistId&&c.videoId&&(a=a.JSC$10991_playlistController,a.queueProxy?(a=a.queueProxy,c=a.listId===c.playlistId?a.attributionData.get(c.videoId):void 0):c=void 0,c))return{queue_info:c}},Hxb=function(a){var b; if((b=a.tempData)==null?0:b.adpings)return{adpings:a.tempData.adpings}};var KK=function(a,b,c){this.JSC$23702_hasRun=!1;this.JSC$11001_playerPromiseResolver=a;this.pageRequest=b;this.JSC$11001_playlistController=c}; k(KK,nK);KK.prototype.validate=function(a){return!!Vh.apply(null,[a.data].concat(ia(exb)))}; KK.prototype.handle=function(a){var b=this;this.JSC$11001_playerPromiseResolver.promise.then(function(){var c=a.data;var d=Vh.apply(null,[c].concat(ia(Ywb))),e=Vh.apply(null,[c].concat(ia(cxb))),f=Vh.apply(null,[c].concat(ia($wb)));var h=(h=Vh.apply(null,[c].concat(ia(Zwb))))?{videoId:h.videoId,thumbnail:h.thumbnail,title:h.title?kz(h.title):void 0,shortBylineText:h.author?kz(h.author):void 0}:void 0;var m=void 0;x("web_get_playlist_id_from_current_endpoint_ks")||(m=Vh.apply(null,[c].concat(ia(axb)))); var p=Vh.apply(null,[c].concat(ia(dxb))),q=Vh.apply(null,[c].concat(ia(bxb))),t=!!p||!!q&&!!q.results&&q.results.length>0,u=0;e&&e.currentIndex&&e.localCurrentIndex&&(u=e.currentIndex-e.localCurrentIndex);e&&e.playlistId&&(m=e.playlistId);c={rawResponse:c,autoplayRenderer:d,hasRelatedVideoData:t,playingVideo:h,playingVideoId:f,playlistPanelRenderer:e,playlistId:m,playlistIndex:e&&e.currentIndex,relatedVideoArgs:p,endScreenRenderer:q,playlistIndexOffset:u};a:{d=b.JSC$11001_playlistController;e=b.pageRequest; d.response=c;if(Exb(c))d.downloadPlaylistProxy&&d.downloadPlaylistProxy.getPlaylistId()===Dxb(c)||(d.downloadPlaylistProxy=new Lwb(Dxb(c),d.setPlaylistData.bind(d),d.isPlayingOfflineVideo.bind(d))),d.responsePlaylistData=Mwb(d.downloadPlaylistProxy),d.listId=Dxb(c),d.index=0;else if(c.playlistPanelRenderer&&c.playlistId&&c.autoplayRenderer)c.playlistId.startsWith("TLPQ")?d.queueProxy?d.listId===c.playlistId?(d.index=c.playlistIndex,d.responsePlaylistData=c.playlistPanelRenderer,d.queueProxy.JSC$10931_setCurrentIndex(d.index)): c.playingVideoId&&d.index!==void 0&&e.clientParams.autoSaveToQueue&&(d.index+=1,d.queueProxy.JSC$10931_setCurrentIndex(d.index),Qwb(d.queueProxy,[c.playingVideoId],d.index)):(d.queueProxy=new Uwb(d.JSC$10974_playlistNetworkManager,c.playlistId,d.setPlaylistData.bind(d),d.clearQueue.bind(d),xxb(c.playlistPanelRenderer),d.storage),d.responsePlaylistData=c.playlistPanelRenderer,d.listId=c.playlistId,d.index=c.playlistIndex):(d.index=c.playlistIndex,d.listId!==c.playlistId&&d.clearQueue(),d.responsePlaylistData= c.playlistPanelRenderer,d.listId=c.playlistId,d.setPlaylistData.bind(d),xxb(c.playlistPanelRenderer));else if(!d.queueProxy)d.responsePlaylistData=void 0;else if(c.playingVideoId&&e.clientParams.autoSaveToQueue){if(d.index===void 0){co(Error("A queue is playing but index is not available"));d.clearQueue();break a}d.queueProxy.videoIds.includes(c.playingVideoId)||(d.index+=1,d.queueProxy.JSC$10931_setCurrentIndex(d.index),Qwb(d.queueProxy,[c.playingVideoId],d.index))}HK(d,Bxb(d,d.response.autoplayRenderer))}})};var Ixb=function(a,b){b=b===void 0?GK():b;pK.call(this);this.chunkProcessors.push(new KK(this.JSC$10876_playerPromiseResolver,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},b));this.chunkProcessors.push(new JK(this.JSC$10876_playerPromiseResolver,a,!1,!1));x("web_response_commands_chunk_processor")&&this.chunkProcessors.push(new qK)}; k(Ixb,pK);Ixb.prototype.processChunk=function(a){a&&a.data.player===void 0&&this.JSC$10876_playerPromiseResolver.resolve();pK.prototype.processChunk.call(this,a)};var LK=function(a,b){a=a===void 0?{layer:0}:a;this.JSC$23702_hasRun=!1;this.createScreenConfig=a;this.parentOverride=b;this.createScreenConfig.automatedLogEventSource=9}; k(LK,nK);LK.prototype.validate=function(a){return!(this.JSC$23702_hasRun||!a.endpoint)}; LK.prototype.handle=function(a){var b=gz(),c,d,e=(d=z((c=a.endpoint)==null?void 0:c.commandMetadata,ly))==null?void 0:d.rootVe;this.parentOverride&&e?Jz(b,e,this.parentOverride,this.createScreenConfig):JSa(b,a.endpoint,this.createScreenConfig);this.JSC$23702_hasRun=!0};var MK=function(a,b){this.JSC$23702_hasRun=!1;this.JSC$11012_chunkHandler=a;this.previousVideoId=b}; k(MK,nK);MK.prototype.validate=function(a){return x("kevlar_continue_playback_without_player_response")&&(a=z(a.endpoint,py),(a==null?0:a.videoId)&&this.previousVideoId&&(a==null?void 0:a.videoId)===this.previousVideoId&&(a==null?0:a.continuePlayback))?!1:this.JSC$11012_chunkHandler.chunksProcessed===0}; MK.prototype.handle=function(a){Ws.getInstance().triggerAction("yt-stop-old-player",a.data,!0)};var Jxb=function(a){a=a===void 0?{layer:0}:a;pK.call(this);this.chunkProcessors.push(new MK(this));this.chunkProcessors.push(new LK(a));this.chunkProcessors.push(new oK(a))}; k(Jxb,pK);var Kxb=function(){this.JSC$23702_hasRun=this.JSC$23702_hasRun=!1}; k(Kxb,nK);Kxb.prototype.validate=function(a){return!this.JSC$23702_hasRun&&!(!a.data.csn||!a.data.rootVe)}; Kxb.prototype.handle=function(a){this.JSC$23702_hasRun=!0;Vv(a.data.csn,a.data.rootVe,3)};var Lxb=function(){nK.apply(this,arguments)}; k(Lxb,nK);Lxb.prototype.validate=function(a){return!!a.data.preconnect}; Lxb.prototype.handle=function(a){aw("bc");a=l(a.data.preconnect);for(var b=a.next();!b.done;b=a.next())b=b.value,new Image().src=b};var Mxb=function(a,b,c){c=c===void 0?{layer:0}:c;pK.call(this);this.chunkProcessors.push(new JK(this.JSC$10876_playerPromiseResolver,a));this.chunkProcessors.push(new LK(c));this.chunkProcessors.push(new oK(c))}; k(Mxb,pK);var Nxb=function(a,b,c,d,e){c=c===void 0?{layer:0}:c;d=d===void 0?GK():d;pK.call(this);var f=!!b&&!!b.clientParams&&!!b.clientParams.miniplayer;f&&this.chunkProcessors.push(new Kxb);this.chunkProcessors.push(new KK(this.JSC$10876_playerPromiseResolver,b,d));this.chunkProcessors.push(new Lxb);var h,m;this.chunkProcessors.push(new JK(this.JSC$10876_playerPromiseResolver,a,f,!((h=b.clientParams)==null||!h.fromHistory),(m=b.clientParams)==null?void 0:m.previousVideoId,d,b.tempData));var p;this.chunkProcessors.push(new MK(this, (p=b.clientParams)==null?void 0:p.previousVideoId));var q;(q=b.clientParams)!=null&&q.fromHistory||(c.layer||(c=Object.assign({},c,{layer:f?3:0})),this.chunkProcessors.push(new LK(c,e)),this.chunkProcessors.push(new oK(c)));x("web_response_commands_chunk_processor")&&this.chunkProcessors.push(new qK)}; k(Nxb,pK);function Oxb(){var a=location.pathname,b=a?Uc(a):"";if(b){if(b.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(b.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(b.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(b.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(b.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return x("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(b.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")=== 0)return"music";b=b.toLowerCase();if(b==="/")return"home";if(b==="/channel_memberships")return"channel-memberships-shopfront";if(b.indexOf("/feed/trending")===0)return"trending";if(b.indexOf("/feed/explore")===0)return"explore";if(b.indexOf("/live")===0)return"live";var c=a?Uc(a):"";if(c&&(c.indexOf("/ai_search")===0||c.indexOf("/results")===0&&$k(a).page==="ai_search"))return"ai-search";if(b.indexOf("/results")===0)return"search";if(b.indexOf("/sports")===0)return"sports";if(b.indexOf("/fashion")=== 0||b.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(b))return"news";if(/^\/(learning)|(@learning)(\/.*)?$/.test(b))return x("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(b.indexOf("/channel/")===0||b.indexOf("/user/")===0||b.indexOf("/gaming")===0||b.indexOf("/post/")===0)return"channel";if(Pxb(a))return"show";if(b==="/playlist"||b.indexOf("/playlist/")===0||b==="/view_play_list"||b.indexOf("/view_play_list/")=== 0||b.indexOf("/show/")===0)return"playlist";if(b==="/companion_canvas")return"companion-canvas";if(b==="/feed/history"||b.indexOf("/feed/history/")===0)return"history";if(b==="/new")return"labs";if(b==="/feed/subscriptions")return"subscriptions";if(b.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(b==="/history_controls")return"standalone";if(b.indexOf("/account")===0||b==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(b.indexOf("/paid_memberships")===0||b.indexOf("/refund")=== 0||b.indexOf("/purchases")===0||b.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(b.indexOf("/product")===0)return"yts-products";if(b.indexOf("/premium")===0||b.indexOf("/musicpremium")===0)return b.indexOf("/premium/offers")===0||b.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(b==="/cart/checkout"||b==="/cart")return"ypc-checkout";if(b.indexOf("/reporthistory")===0)return x("enable_new_page_subtypes_for_ai_companion")?"report-history":"browse";if(b.indexOf("/feed/downloads")=== 0||b.indexOf("/redeem")===0)return"browse";if(b.indexOf("/hashtag")===0)return"hashtag-landing-page";if(b.indexOf("/handle")===0)return"handle";if(b.indexOf("/source")===0)return"audio-pivot";if(b.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(b.indexOf("/playables")===0)return"playables";if(b.indexOf("/create/live/join")===0)return"open-in-app";if(b.indexOf("/shorts")===0)return"shorts";if(b.indexOf("/feed/channels")===0)return"subscriptions-channels";(c=a?Uc(a):"")&&c.indexOf("/watch")=== 0&&x("web_watch_enable_learning_journey")?(a=$k(a),a=!!a.list&&a.list.indexOf("LJPP")===0):a=!1;if(a)return"learning_journey_watch";if(x("enable_new_page_subtypes_for_ai_companion")&&b==="/feed/courses")return"your-courses"}} function Pxb(a){var b=a?Uc(a):"";if(!b)return!1;b=b.toLowerCase();return b.indexOf("/show/")===0||b.indexOf("/playlist")===0&&(a=$k(a),a.list&&(a.list.indexOf("EL")===0||a.list.indexOf("TVSH")===0))?!0:!1} ;for(var Qxb="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),Rxb=[],NK=6;NK>=1;NK--)Rxb.push({columnCount:NK,query:NK==1?0:NK*2*107-4+32,className:"grid-"+NK+"-columns",width:NK*2*107+"px"});var Txb=function(a){this.actionRouter_=a=a===void 0?Ws.getInstance():a;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=Sxb(this)},Sxb=function(a){var b=a.documentWidth_-0; return Rxb.find(function(c){return b>c.query})}; Da(Txb);var Uxb=function(){var a=this;this.keyboardInUse=!1;document.addEventListener("keydown",function(){a.onKeydown()}); document.addEventListener("mousedown",function(){a.keyboardInUse=!1})},Vxb,Wxb=function(){Vxb||(Vxb=new Uxb); return Vxb}; Uxb.prototype.onKeydown=function(){this.keyboardInUse=!0};var Xxb=new Ql("yt-mentions"),OK=function(){},PK=function(a,b,c,d,e,f){c=c===void 0?"OPEN_POPUP_POSITION_TOP":c; if(b){if(Xxb.get(b))return;Xxb.set(b,!0,d)}if(e&&f!==void 0){b=Number(Xxb.get(e)||0);if(b>=f)return;Xxb.set(e,b+1)}return[{openPopupAction:{popupType:"HINT",position:c,popup:{bubbleHintRenderer:{detailsText:a,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]}; Da(OK);var Yxb=function(a,b,c){this.onFulfilled_=typeof a==="function"?a:null;this.onRejected_=typeof b==="function"?b:null;this.JSC$11036_context_=c},Zxb=function(a,b){a.onFulfilled_&&Kl(0,function(){a.onFulfilled_.call(a.JSC$11036_context_,b)})},$xb=function(a,b){a.onRejected_&&Kl(0,function(){a.onRejected_.call(a.JSC$11036_context_,b)})},QK=function(){this.JSC$11040_callbacks_=[]}; QK.prototype.then=function(a,b,c){this.JSC$11040_callbacks_.push(new Yxb(a,b,c));return this}; QK.prototype.onSuccess=function(a){this.JSC$11040_callbacks_.forEach(function(b){Zxb(b,a)})}; QK.prototype.onFailure=function(a){this.JSC$11040_callbacks_.forEach(function(b){$xb(b,a)})}; QK.prototype.cancel=function(){this.JSC$11040_callbacks_.length=0}; oj(QK);var ayb=null;var byb=function(){this.prefetchCache_=new Map},cyb=function(a,b,c){if(z(b,py)||z(b,ry)&&x("kevlar_enable_shorts_prefetch"))return b=z(b,py)||z(b,ry),a.prefetchCache_.get("v"+b.videoId+(b.playlistId?"-pl"+b.playlistId:"")+(c?"-an1":"")+(b.params?"-pr"+b.params:""))};var dyb=Ucb(function(a){var b=li("DIV");a&&(b.className=a);b.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";a=li("DIV");var c="200px";if(c instanceof Qh){var d=c.height;c=c.width}else d="200px";a.style.width=wi(c,!0);a.style.height=wi(d,!0);b.appendChild(a);document.body.appendChild(b);a=b.offsetWidth-b.clientWidth;oi(b);return a});var eyb=ll("kevlar_watch_two_column_width_threshold",1E3);var fyb=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var gyb={getLocalStorage:yh(function(){try{var a=new yka;var b=a.isAvailable()?a:null}catch(c){return null}return b?new ofb(b):null}), getSessionStorage:yh(function(){var a=new zka;return a.isAvailable()?new ofb(a):null})}; function RK(a,b,c){var d=c&&c>0?c:0;c=d?Date.now()+d*1E3:0;if((d=d?gyb.getLocalStorage():gyb.getSessionStorage())&&window.JSON){typeof b!=="string"&&(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}} function SK(a){var b=gyb.getSessionStorage(),c=gyb.getLocalStorage();if(!b&&!c||!window.JSON)return null;try{var d=b.get(a)}catch(e){}if(typeof d!=="string")try{d=c.get(a)}catch(e){}if(typeof d!=="string")return null;try{d=JSON.parse(d,void 0)}catch(e){}return d} ;function hyb(a,b){var c=void 0,d=void 0,e=window.top;c=c===void 0?{}:c;d=d===void 0?"":d;e=e===void 0?window:e;a=$c(a,c);wB(a);b=Fb(a+d,b);kca(e.location,b)} ;var iyb=la(["https://www.youtube.com/iframe_api"]),TK=function(){this.playerResolver_=yj();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=xh;this.playbackDurationSeconds_=0},jyb=function(a){var b=function(){return window.YT&&typeof window.YT.ready==="function"}; if(b())return vj(window.YT);var c=yj(),d=li("SCRIPT");d.onload=d.onreadystatechange=function(){d.readyState&&d.readyState!="loaded"&&d.readyState!="complete"||(d.onload=xh,d.onreadystatechange=xh,d.onerror=xh,b()?c.resolve(window.YT):c.reject(new Dl("Failed to load the iframe player library","script.onload",d.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))}; d.onerror=function(e){d.onload=xh;d.onreadystatechange=xh;d.onerror=xh;c.reject(new Dl("Failed to load the iframe player library","script.onerror",e&&e.target&&e.target.src))}; kc(d,Lh(iyb));a.insertBefore(d,a.firstChild);return c.promise},kyb=function(a,b,c){var d,e; ra(function(f){switch(f.nextAddress){case 1:return a.playbackEndedCallback_=c,f.setCatchFinallyBlocks(2),f.yield(jyb(b.parentElement||null),4);case 4:d=f.yieldResult;f.leaveTryBlock(3);break;case 2:return e=f.enterCatchBlock(),e instanceof Dl&&e.args&&e.args[0]=="script.onerror"?fo(e):co(e),f.return();case 3:d.ready(function(){return new d.Player(b,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:a.onPlayerReady_.bind(a),onStateChange:a.onPlayerStateChange_.bind(a), onCueRangeExit:a.onCueRangeExit_.bind(a)}})}),f.jumpToEnd();}})}; g=TK.prototype;g.getPlayerPromise=function(){return this.playerPromise_}; g.onPlayerReady_=function(a){this.playerResolver_.resolve(a.target)}; g.onPlayerStateChange_=function(a){if(a.data==YT.PlayerState.PLAYING){a=a.target;var b=a.getCurrentTime();a.addCueRange("playback",b,b+this.playbackDurationSeconds_)}}; g.onCueRangeExit_=function(a){a.data=="playback"&&(a.target.stopVideo(),this.playbackEndedCallback_())}; g.stopVideo=function(){this.playerPromise_.then(function(a){a.stopVideo()})}; var lyb=function(a){a.playerVars_&&a.playerPromise_.then(function(b){typeof b.cueVideoByPlayerVars!="function"?fo(new Dl("vmh: player API not ready","cueVideoByPlayerVars",typeof b.cueVideoByPlayerVars)):b.cueVideoByPlayerVars(a.playerVars_)})}; TK.prototype.playVideo=function(){var a=this;this.playerVars_&&this.playerPromise_.then(function(b){typeof b.loadVideoByPlayerVars!="function"?(b=new Dl("vmh: player API not ready","loadVideoByPlayerVars",typeof b.loadVideoByPlayerVars),co(b)):b.loadVideoByPlayerVars(a.playerVars_)})}; var myb=function(a,b,c,d,e){b&&(c===void 0&&(c=0),d===void 0&&(d=0),a.playbackDurationSeconds_=d/1E3,a.playerVars_={adformat:"17_8",videoId:b,suggestedQuality:"hd720",startSeconds:c/1E3,player_params:e})}; TK.prototype.mute=function(){this.playerPromise_.then(function(a){a.mute()})}; TK.prototype.unMute=function(){this.playerPromise_.then(function(a){a.unMute()})}; function nyb(a){if(a.urlEndpoint){if(a=$k(a.urlEndpoint.url),a.adurl)return Mc(a.adurl)}else if(a.watchEndpoint)return"//www.youtube.com/watch?v="+a.watchEndpoint.videoId;return null} function oyb(a){if(!a||!a.reportingPings)return null;var b={};a.reportingPings.forEach(function(c){c.pingType in b?b[c.pingType].push(c.url):b[c.pingType]=[c.url]}); return{adpings:sma(b)}} ;var pyb=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//,qyb=function(){var a=Vk("YPC_MB_URL");var b=b===void 0?!1:b;a=pyb.test(a)?kb(a):null;!b&&window.payments||!a?(a=yj(),b=a.promise,a.resolve()):b=nfb(a,{attributes:{"data-payments-main":"",id:"payment-lib"}});return b};function ryb(a){return a.filter(function(b){return"ypcGetCartEndpoint"in b||"ypcFixInstrumentEndpoint"in b})} function syb(a){return a.filter(function(b){return!z(b,fK)})} ;var tyb=la(["//www.googletagmanager.com/gtm.js?id=",""]),uyb=function(a,b){ei(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:b}),window.dataLayer.push({"gtm.start":new Date().getTime(),event:"gtm.js",geo:Vk("GL")}),b=li("SCRIPT"),b.async=!0,kc(b,Lh(tyb,a)),b.id="gtm",a=document.getElementsByTagName("script"),a.length==0?document.head.appendChild(b):(a=a[0],a.parentNode.insertBefore(b,a)))},UK=function(a){if(a=JSON.parse(a))window.dataLayer= window.dataLayer||[],window.dataLayer.push(a)};var VK=function(a,b,c){this.payloadName="transactionFlowFailed";this.payload={errorType:a,serializedTransactionFlowLoggingParams:b,isUserDismiss:c===void 0?!1:c}}; va("yt.ypc.shared.YpcTransactionFlowError",VK);var vyb=la(["https://clients2.google.com/gr/gr_sync.js"]),wyb=function(){}; wyb.prototype.init=function(){if(xyb()){var a=yj();a.resolve();return a.promise}return nfb(Lh(vyb)).then(function(){if(!xyb())throw Error("RiskService loaded but risk object does not exists")},function(){throw Error("RiskService loading is rejected, reason:"); })}; var yyb=function(){if(!xyb())return"";var a=window.google.gr;a.init({async:{schedule:"sync"},merchantId:"youtube"});a.start();a=a.finish();return a==null?"":a},xyb=function(){return window.google!=null&&window.google.gr!=null};var Ayb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("nO5dTd"),2);a=zyb;return b.return(a)})},Byb=yD(function(){return Ayb()},{debugName:"animatedAssetViewModel"}); Gn(xD,function(a){a.registerLoadFn("animatedAssetViewModel","nO5dTd",Ayb)});var Cyb=["rem","px","ms","%","s"];function WK(a){if(a){for(var b="",c=l(Cyb),d=c.next();!d.done;d=c.next())if(d=d.value,a.endsWith(d)){b=a.slice(0,-d.length);break}if(b&&(a=Number(b),!isNaN(a)))return a}} ;var Dyb={duration:1E3,easing:"ease",fill:"forwards"},Iyb=O(function(a){var b=sw("animated-rolling-character"),c=void 0,d=Vo(function(){var m,p;return su((m=a.character)==null?void 0:m.call(a))||su((p=a.previousCharacter)==null?void 0:p.call(a))},void 0,"qSDD9d"),e=l(ip(0,void 0,"SIgKDd")),f=e.next().value,h=e.next().value; qw(function(){if(window.ResizeObserver&&x("web_fix_rolling_numbers_zoom_safari")){var m=new Fw(function(){var q,t,u=Math.round(((t=(q=b.value.querySelector("div"))==null?void 0:q.getBoundingClientRect().height)!=null?t:0)*100)/100;u&&h(u)},500),p=new ResizeObserver(function(){m.fire()}); p.observe(b.value);zp(function(){p.disconnect();m.dispose()})}}); lw(function(){var m=x("web_fix_rolling_numbers_zoom_safari")?f:a.marginMultiplier;if(m()){var p;(p=c)==null||p.cancel();if(d()){var q;p=((q=a.previousCharacter)==null?0:q.call(a))?Number(a.previousCharacter())+10:a.rollUp()?0:30;var t;if((t=a.shouldAnimate)==null||!t.call(a)){var u,v;p-=Eyb((u=a.character)==null?void 0:u.call(a),(v=a.previousCharacter)==null?void 0:v.call(a),a.rollUp(),p)}}else{p=a.rollUp()?0:2;var w;(w=a.shouldAnimate)!=null&&w.call(a)||(q=p,t=a.rollUp()?-1:1,p=q-t)}b.value.style.marginTop= "-"+p*m()+"px";var y;if((y=a.shouldAnimate)==null?0:y.call(a)){var A,C;c=Fyb(b.value,(A=a.character)==null?void 0:A.call(a),(C=a.previousCharacter)==null?void 0:C.call(a),a.rollUp(),p,d(),m())}else{var I;b.value.style.display=((I=a.character)==null?0:I.call(a))?"":"none"}}},"NJ4gA"); return D("animated-rolling-character",{el:b,class:"animatedRollingCharacterHost"},D(P,{cond:d,then:function(){return D(Gyb,null)}, else:function(){return D(Hyb,{character:a.character})}}))},"fa"); Iyb.idomCompat=!0;var Gyb=O(function(){for(var a=[],b=1;b<30;b++)a.push(D("div",null,b%10));return D(mq,null,D("div",null,"\xA0"),a,D("div",null,"\xA0"))},"ga"),Hyb=O(function(a){var b=a.character; return D(mq,null,D("div",null,"\xA0"),D(P,{cond:function(){return!(b==null?0:b())||Ya(b==null?void 0:b())}, then:function(){return D("div",null,"\xA0")}, else:function(){return D("div",null,b)}}),D("div",null,"\xA0"))},"ha"); function Fyb(a,b,c,d,e,f,h){c=new Animation(new KeyframeEffect(a,[{transform:"translateY(0px)"},{transform:"translateY("+(f?Eyb(b,c,d,e):d?-1:1)*h+"px)"}],Dyb),document.timeline);b?(a.style.display="",c.onfinish=null):c.onfinish=function(){a.style.display="none"}; c.play();return c} function Eyb(a,b,c,d){var e=Number(a)+10;b?a?(a=Number(a),b=Number(b),c=c?b=Y.scrollWidth-Y.clientWidth;S!==u()&&v(S);Y!==w()&&y(Y)} function d(){b(-320)} function e(){b(320)} var f=Hu(a,{}),h=f.data,m=f.disableDeselection,p=fL(xzb,function(){return h().chipBarStateEntityKey}),q=dB(function(){requestAnimationFrame(function(){c(); if(!u()||!w()){var S=q.value,Y=W();if(S&&Y!==void 0&&Y>=0&&Yqb()},La=function(){var Nb,Lc; return((Nb=A())==null?void 0:Nb.errorMessage)||Ua()||ab()&&((Lc=K())==null?void 0:Lc.errorMessage)},ib=function(){return!!La()||C()}; R=FC(function(Nb){if(!Nb.currentTarget)return!1;Nb=Nb.currentTarget;S(Nb.value);m()==="expand-vertically"&&Kzb(Nb);v==null||v(Nb.value);return!0}); var sb=FC(function(Nb){u()&&Nb.key==="Enter"&&(Nb.preventDefault(),N==null||N());return!1}),Oa=FC(function(){L.value.focus()}),Ca=function(){return f()||c()},eb={},Qa={},Bb={},dc={}; return D("textarea-shape",{class:U("ytStandardsTextareaShapeHost",b,(eb.ytStandardsTextareaShapeTimePicker=function(){var Nb;return(Nb=y())==null?void 0:Nb.useTimePickerStyles},eb))},D("div",{class:U("ytStandardsTextareaShapeTextareaContainer",(Qa.ytStandardsTextareaShapeTextareaContainerOutline=p,Qa.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=q,Qa.ytStandardsTextareaShapeTextareaContainerOutlineError=ib,Qa.ytStandardsTextareaShapeTextareaContainerLabelHidden=d,Qa)), "on:click":Oa},D("label",{class:U("ytStandardsTextareaShapeLabel",(Bb.ytStandardsTextareaShapeLabelFocused=Y,Bb.ytStandardsTextareaShapeLabelDisabled=q,Bb.ytStandardsTextareaShapeLabelError=function(){return ib()&&!q()},Bb.ytStandardsTextareaShapeLabelHidden=function(){return d()||!Y()&&!W()&&!!Ca()},Bb))},c),D("div",{class:U("ytStandardsTextareaShapePlaceholder",(dc.ytStandardsTextareaShapePlaceholderVisible=function(){return!Y()&&!W()},dc)), "aria-hidden":"true"},Ca),D("textarea",{el:L,"aria-label":w,class:"ytStandardsTextareaShapeTextarea",rows:a,disabled:q,readonly:t,placeholder:Ca,"prop:value":W,"on:input":R,"on:keydown":sb})),D(P,{cond:function(){return h()&&!ib()}, then:function(){var Nb={};return D("div",{class:U("ytStandardsTextareaShapeHint",(Nb.ytStandardsTextareaShapeHintDisabled=q,Nb))},D("div",{class:"ytStandardsTextareaShapeHintHintMessage"},h))}}),D(P,{cond:La, then:function(){return D(Lzb,{disabled:q},D("div",{class:"ytStandardsTextareaShapeErrorMessage"},La),D(P,{cond:ab,then:function(){return D("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return W().length+"/"+qb()})}}))}}))},"Ca"); Mzb.idomCompat={callbacks:{onInput:!0}};var Lzb=O(function(a){var b={};return D("div",{class:U("ytStandardsTextareaShapeError",(b.ytStandardsTextareaShapeErrorDisabled=a.disabled,b)),role:"alert"},D(aC,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),a.children)},"Da"); function Kzb(a){a.style.height="auto";a.style.height=a.scrollHeight+"px"} ;var Nzb=O(function(a){var b=function(){var t;return(t=a.data().formSchema)==null?void 0:t.id},c=rD(function(){return{formId:b(), fieldId:"query"}}),d=l(ip("",void 0,"Vt2Mhe")),e=d.next().value,f=d.next().value,h=function(){var t,u; return(u=(t=c())==null?void 0:t.value)!=null?u:e()},m=function(t){if(c()){var u; (u=c())==null||u.updateValue(t)}else f(t)}; rw(function(){var t=a.data().formSchema;t&&Bsb(t);var u,v,w,y,A=(y=t==null?void 0:(u=t.initialValues)==null?void 0:u.query)!=null?y:t==null?void 0:(v=t.formData)==null?void 0:(w=v.searchInputFormData)==null?void 0:w.query,C;if(A&&((C=c())==null||!C.value))if(c()){var I;(I=c())==null||I.updateValue(A)}else f(A)}); zp(function(){var t=b();if(t){var u;(u=sD(t,"SearchInputForm"))==null||u.dispose()}}); var p=function(){var t,u=LB((t=a.data().onInputAction)==null?void 0:t.command);u&&Fn().resolve(JB).resolveCommand(u,{form:{formData:{searchInputFormData:{query:h()}},genericFormData:{searchInputFormData:{query:h()}}}})},q=function(){return!!a.data().inputChip}; d={};return D("yt-search-input-view-model",{class:U("ytSearchInputViewModelHost",(d.ytSearchInputViewModelHostContentResearch=function(){return a.data().backgroundStyle==="SEARCH_INPUT_BACKGROUND_STYLE_OUTLINE"},d))},D(P,{cond:function(){return a.data().leadingImage}, then:function(t){return D(eC,{data:t,className:"ytSearchInputViewModelLeadingIcon",ariaHidden:!0,alt:""})}}),D(OC,{data:function(){return a.data().inputChip}},{chipViewModel:zzb}),D("form",{class:"ytSearchInputViewModelForm"},D(Mzb,{placeholder:function(){return a.data().placeholderText}, ariaLabel:function(){return a.data().placeholderText}, text:h,onInput:m,overflowStyle:"expand-vertically",disableNewLines:!0,hideLabel:!0,submitOnEnter:function(){q()||p()}, className:a.textareaShapeClassName,isReadOnly:q})),D(P,{cond:h,then:function(){return D(AD,{data:{iconName:"X",accessibilityText:zy("CLEAR",void 0,"Clear")},onClick:function(){m("");p()}, className:"ytSearchInputViewModelClearButton"})}}))},"Ea");var Ozb=O(function(a){return D("ytcr-content-research-autocomplete-view-model",{class:U("ytcrContentResearchAutocompleteViewModelHost",a.className)},D(OC,{data:function(){return a.data().searchInputViewModel}},{searchInputViewModel:function(b){return D(Nzb,{data:b.data, textareaShapeClassName:"ytcrContentResearchAutocompleteViewModelCustomTextareaShape"})}}))},"Fa");var Pzb=new Bn("ASK_STUDIO_CHAT_CONTROLLER_TOKEN");new G9a;new H9a;new I9a;new J9a;new K9a;new L9a;new R9a;new S9a;new Z9a;new a$a;new M9a;new N9a;new O9a;new P9a;new Q9a;new T9a;new U9a;new $9a;new b$a;new c$a;new X9a;new Y9a;new W9a;new V9a;new d$a;new e$a;bB(O(function(a){function b(){var c,d,e;return ra(function(f){if(f.nextAddress==1){c={userPrompt:a.data().exploreButtonPrompt,origin:"CREATOR_CHAT_PROMPT_ORIGIN_YTA_ENTRY_POINT_CHIP"};if(!x("WebFEAllStudioByChannel__enable_creator_chat_renderer"))return f.jumpTo(2);d=Fn().resolve(Pzb);return f.yield(d.openPanel(),3)}if(f.nextAddress!=2)return d.submitPrompt(c),f.return();e=Fn().resolve(rGa);e({type:"CREATOR_CHAT_OPEN",payload:{}});e({type:"CREATOR_CHAT_CONVERSATION_PENDING_PROMPT_UPDATE",payload:{prompt:c, attachments:[]}});f.jumpToEnd()})} return D("ytcr-content-research-header-view-model",{class:U("ytcrContentResearchHeaderViewModelHost",a.className)},D("div",{class:"ytcrContentResearchHeaderViewModelHeaderRow"},D("div",{class:"ytcrContentResearchHeaderViewModelTitle"},"Explore what's working across YouTube, for audiences like yours"),D(OC,{data:function(){return a.data().exploreButtonViewModel}},{buttonViewModel:function(c){return D(AD,Object.assign({},c,{onClick:b}))}})),D(OC,{data:function(){return a.data().contentResearchAutocompleteViewModel}}, {contentResearchAutocompleteViewModel:Ozb}),D(OC,{data:function(){return a.data().chipBarViewModel}},{chipBarViewModel:function(c){return D(Dzb,{data:c.data, className:"ytcrContentResearchHeaderViewModelChipBar"})}}))},"Ga"),"ytcr-content-research-header-view-model",{props:{data:$A, className:$A}});var Rzb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("FkxZbc"),2);a=Qzb;return b.return(a)})},Szb=yD(function(){return Rzb()},{debugName:"contentHubShelvesEditorViewModel"}); Gn(xD,function(a){a.registerLoadFn("contentHubShelvesEditorViewModel","FkxZbc",Rzb)});var Uzb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("VbXrUe"),2);a=Tzb;return b.return(a)})},Vzb=yD(function(){return Uzb()},{debugName:"conversationVideoIdeaCardViewModel"}); Gn(xD,function(a){a.registerLoadFn("conversationVideoIdeaCardViewModel","VbXrUe",Uzb)});var gL=function(){return kt.apply(this,arguments)||this}; k(gL,kt);gL.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}}; gL.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)}; gL.prototype.onErrorMessageDismiss=gL.prototype.onErrorMessageDismiss;n([M({readOnly:!0,observer:"errorRendererChanged"}),r("design:type",Object)],gL.prototype,"errorRenderer",void 0);n([Kt("yt-live-chat-error-message-dismiss"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],gL.prototype,"onErrorMessageDismiss",null);n([Vt()],gL);var Wzb=[gL.prototype];var hL={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null}, ready:function(){var a=this,b={};setTimeout(function(){var c;return Gt((c=a.hostElement)!=null?c:a,"yt-live-chat-add-tooltip-target",b)},0); this.handler_=b.handler}, detached:function(){if(this.handler_){var a;this.handler_.removeElementFromSupportingTooltips((a=this.hostElement)!=null?a:this)}this.handler_=null}}};var jL=function(){this.JSC$11186_estimatedUpdateInterval=null;this.JSC$11186_messageQueue=[];this.JSC$11186_nextUpdateId=null;this.pollInfoQueue=[];this.JSC$11186_estimatedUpdateInterval=this.callback=null;this.JSC$11186_messageQueue=[];this.JSC$11186_nextUpdateId=null;this.pollInfoQueue=[];Xzb=0;switch(ll("live_chat_chunk_rendering")){case 2:iL=1E3;break;case 3:iL=2E3;break;case 4:iL=1E3;break;case 5:iL=2E3;break;case 6:iL=2500;break;case 7:iL=3E3;break;default:iL=1E3;}Yzb=ll("live_chat_chunking_qps_threshold"); var a=Dma("live_chat_dynamic_chunking_interval_range");a.length===2&&(Zzb=a[0],$zb=a[1]);a=Dma("live_chat_dynamic_chunking_traffic_range");a.length===2&&(aAb=a[0],bAb=a[1])},Xzb,iL,Yzb; jL.prototype.clear=function(){this.JSC$11186_nextUpdateId!==null&&(clearTimeout(this.JSC$11186_nextUpdateId),this.JSC$11186_nextUpdateId=null);this.JSC$11186_messageQueue=[]}; jL.prototype.enqueueActionGroup=function(a){var b=Date.now();this.pollInfoQueue.push({timestamp:b,numberOfMessages:a.length});this.pollInfoQueue.length>6&&this.pollInfoQueue.shift();if(this.pollInfoQueue.length>1){this.JSC$11186_estimatedUpdateInterval=-Infinity;b=this.pollInfoQueue[0].timestamp;for(var c=1;c3){var e=l([1,1]);d=e.next().value;e=e.next().value;switch(ll("live_chat_chunk_rendering")){case 4:e=l([.7,1.2]);d=e.next().value;e=e.next().value;break;case 5:e=l([1.5,2.2]);d=e.next().value; e=e.next().value;break;case 6:e=l([2,2.7]);d=e.next().value;e=e.next().value;break;case 7:e=l([2.5,3.2]),d=e.next().value,e=e.next().value;}d=b*(Math.random()*(e-d)+d)}Xzb?(b=Xzb,d=Math.ceil(a/(this.JSC$11186_messageQueue.length/b))):b=Math.ceil(this.JSC$11186_messageQueue.length/c);a=this.JSC$11186_messageQueue.splice(0,b).flat();this.callback&&this.callback(a);if(this.JSC$11186_messageQueue.length||x("live_chat_chunk_across_update_interval"))this.JSC$11186_nextUpdateId=window.setTimeout(this.emitMessages.bind(this), d)}}; jL.prototype.lastUpdateTime=function(){return this.pollInfoQueue.length===0?null:this.pollInfoQueue[this.pollInfoQueue.length-1].timestamp}; var cAb=function(a){var b;if(a.pollInfoQueue.length<2)var c=null;else{c=(a.lastUpdateTime()-a.pollInfoQueue[0].timestamp)/1E3;var d=0;a=l(a.pollInfoQueue);for(var e=a.next();!e.done;e=a.next())d+=e.value.numberOfMessages;c=d/c}c=(b=c)!=null?b:0;return c0)){w.jumpTo(3);break}f=[];h=l(a.asyncContextProcessors);for(m=h.next();!m.done;m=h.next())p=m.value,q=p.processContext(b),q.wrappedPromise_&&f.push(q.wrappedPromise_);if(!(f.length>0)){w.jumpTo(3);break}return w.yield(Promise.all(f),3);case 3:t=l(a.contextProcessors||[]),u=t.next(); case 6:if(u.done){w.jumpTo(0);break}v=u.value;return w.yield(v.processContext(e),7);case 7:u=t.next(),w.jumpTo(6);}})},pL=function(a,b,c){var d; if(b&&!(b==null?0:(d=b.sequenceMetaData)==null?0:d.skipProcessing)&&a.responseProcessorMap){d=l(lAb);for(var e=d.next();!e.done;e=d.next())e=e.value,a.responseProcessorMap[e]&&a.responseProcessorMap[e].handleResponse(b,c)}},xAb=function(a,b,c){var d={}; b.playerResponse&&(pL(a,b.playerResponse,c),d.player=b.playerResponse);b.watchNextResponse&&(pL(a,b.watchNextResponse,c),d.content=b.watchNextResponse);return d},tAb=function(a,b,c,d){d=d===void 0?function(){}:d; var e,f,h,m,p,q,t,u,v,w,y,A,C,I,K,N,L,R,W,S,Y,da,Aa,Sa,Ua,qb,ab,La,ib,sb;return ra(function(Oa){switch(Oa.nextAddress){case 1:h=(e=b.config)==null?void 0:(f=e.storeStrategy)==null?void 0:f.storeKey;if(!(h&&a.innertubeResponseStore&&a.innertubeResponseStore.has(h))||((m=b.config)==null?0:(p=m.storeStrategy)==null?0:p.disableCache)){Oa.jumpTo(2);break}return Oa.yield(a.innertubeResponseStore.get(h),3);case 3:q=Oa.yieldResult;if(!q||q.isExpired()){Oa.jumpTo(2);break}t=yAb(q);if(q.isProcessed()){Oa.jumpTo(5); break}pL(a,t,b);return Oa.yield(a.innertubeResponseStore.markAsProcessed(h),5);case 5:return Oa.return(Promise.resolve(t));case 2:if((u=a.localInnertubeRouter)==null||!u.shouldPreferLocalResponse(b.input,b.innerTubeRequest)){Oa.jumpTo(7);break}return Oa.yield(a.localInnertubeRouter.localInnertubeResponse(b.input,b.innerTubeRequest),8);case 8:return v=Oa.yieldResult,pL(a,v,b),Oa.return(v);case 7:return Oa.yield(wAb(a,b),9);case 9:return(A=(y=b.config)==null?void 0:y.requestKey)&&a.inflightRequests.has(A)? w=a.inflightRequests.get(A):(C=JSON.stringify(b.innerTubeRequest),N=(K=(I=b.requestShell)==null?void 0:I.headers)!=null?K:{},b.requestShell=Object.assign({},b.requestShell,{headers:Object.assign({},N,c)}),L=Object.assign({},b.requestShell),b.requestShell.method==="POST"&&(L=Object.assign({},L,{body:C})),((R=b.config)==null?0:R.requestTick)&&aw(b.config.requestTick),W=function(){return a.networkManager.fetch(b.input,L,b.config)},w=a.requestSequencer?a.requestSequencer.sequenceRequest(b,W):W(),A&&a.inflightRequests.set(A, w)),Oa.yield(w,10); case 10:if((S=Oa.yieldResult)&&"error"in S&&((Y=S)==null?0:(da=Y.error)==null?0:da.details))for(Aa=S.error.details,Sa=l(Aa),Ua=Sa.next();!Ua.done;Ua=Sa.next())qb=Ua.value,(ab=qb["@type"])&&mAb.indexOf(ab)>-1&&(delete qb["@type"],S=qb);A&&a.inflightRequests.has(A)&&a.inflightRequests.delete(A);((La=b.config)==null?0:La.responseTick)&&aw(b.config.responseTick);if(S||(ib=a.localInnertubeRouter)==null||!ib.canProvideFallbackResponse(b.input,b.innerTubeRequest)){Oa.jumpTo(11);break}return Oa.yield(a.localInnertubeRouter.localFallbackInnertubeResponse(b.input, b.innerTubeRequest),12);case 12:S=Oa.yieldResult;case 11:return pL(a,S,b),((sb=b.config)==null?0:sb.processorTick)&&aw(b.config.processorTick),d(),Oa.return(S||void 0);}})},uAb=function(a,b){var c,d,e,f,h,m,p,q,t,u,v,w,y,A,C,I,K,N; return ra(function(L){switch(L.nextAddress){case 1:c={};if((d=a.localInnertubeRouter)==null||!d.shouldPreferLocalResponse(b.input,b.innerTubeRequest)){L.jumpTo(2);break}return L.yield(a.localInnertubeRouter.localInnertubeResponse(b.input,b.innerTubeRequest),3);case 3:return e=L.yieldResult,f=xAb(a,e,b),L.return(f);case 2:return L.yield(wAb(a,b),4);case 4:h=void 0;p=((m=b.requestShell)==null?void 0:m.mode)==="cors"?"cors":void 0;if(a.authService.syncHeaders){h=rAb(b.config,p);L.jumpTo(5);break}return L.yield(sAb(b.config, p),7);case 7:h=L.yieldResult;case 5:return u=(t=(q=b.requestShell)==null?void 0:q.headers)!=null?t:{},b.requestShell=Object.assign({},b.requestShell,{headers:Object.assign({},u,h)}),v=Object.assign({},b.requestShell),w=JSON.stringify(b.innerTubeRequest),b.requestShell.method==="POST"&&(v=Object.assign({},v,{body:w})),L.setCatchFinallyBlocks(8),x("web_unified_fetch")?L.yield(a.networkManager.fetch(b.input,v,b.config,function(R){pL(a,R.playerResponse||R.watchNextResponse||R.reelItemWatchResponse||R.reelWatchSequenceResponse|| R,b);gAb(c,R);R.playerResponse&&(Pl(),Jna())}),13):L.yield(zAb(a.networkManager,b.input,v,function(R){pL(a,R.playerResponse||R.watchNextResponse||R.reelItemWatchResponse||R.reelWatchSequenceResponse||R,b); gAb(c,R);R.playerResponse&&(Pl(),Jna())}),11); case 13:if(y=L.yieldResult,!y)throw Error("Failed to fetch streaming response");case 11:((A=b.config)==null?0:A.responseTick)&&aw(b.config.responseTick);L.leaveTryBlock(9);break;case 8:C=L.enterCatchBlock();if((I=a.localInnertubeRouter)==null||!I.canProvideFallbackResponse(b.input,b.innerTubeRequest))throw C;return L.yield(a.localInnertubeRouter.localFallbackInnertubeResponse(b.input,b.innerTubeRequest),15);case 15:K=L.yieldResult,N=xAb(a,K,b),Object.assign(c,N);case 9:return L.return(c);}})},qL=function(a, b){return dAb(b,a.endpointMap)},qAb=function(a,b){a:{a=a.endpointMap; var c,d=(c=z(b,my))==null?void 0:c.signal;if(d&&a.signalEndpointMap&&(c=a.signalEndpointMap[d])){var e=c();break a}var f;if((c=(f=z(b,uJ))==null?void 0:f.request)&&a.continuationEndpointMap&&(f=a.continuationEndpointMap[c])){e=f();break a}for(e in b)if(a.commandEndpointMap[e]&&(b=a.commandEndpointMap[e])){e=b();break a}e=void 0}if(e!==void 0)return Promise.resolve(e)},sAb=function(a,b){var c,d,e,f; return ra(function(h){if(h.nextAddress==1){e=(c=a)==null?void 0:(d=c.authStrategy)==null?void 0:d.sessionIndex;var m=h.yield;var p=vj(tna(0,{sessionIndex:e}));return m.call(h,p,2)}f=h.yieldResult;return h.return(Promise.resolve(Object.assign({},fAb(b),f)))})},rAb=function(a,b){var c; a=a==null?void 0:(c=a.authStrategy)==null?void 0:c.sessionIndex;c=tna(0,{sessionIndex:a});return Object.assign({},fAb(b),c)};function rL(){var a=oL.instance;return!a||!qL(a,{liveChatEndpoint:{}})} ;var sL=function(){}; sL.prototype.resolve=function(a,b){var c=this;return ra(function(d){return d.yield(c.resolveCommand(a,b),0)})};var tL=new Bn("SCREEN_MANAGER_TOKEN");var uL=function(a,b,c){this.networkManager=a;this.JSC$11240_screenManager=b;this.JSC$11240_innertubeTransportService=c}; k(uL,sL); uL.prototype.resolveCommand=function(a,b){var c=this,d,e,f,h,m,p;return ra(function(q){if(!x("enable_live_chat_web_context_menu_resolver")&&((d=b)==null?0:d.form)&&((e=b.form.element)==null||!e.classList.contains("ytd-engagement-panel-title-header-renderer")))return q.return();f=z(a,ppb);if(!f)return q.return();(h=c.JSC$11240_innertubeTransportService)&&qL(h,a)?(p=VD(c.networkManager,a),m=BK(h,{},p)):m=WD(c.networkManager,a);return q.return(m.then(c.handleGetContextMenuResponse.bind(c,a,b),c.handleGetContextMenuError, c))})}; uL.prototype.showContextMenu=function(a,b){Xu(a,"yt-open-popup-action",[{openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:b}}},a])}; uL.prototype.handleGetContextMenuResponse=function(a,b,c){rL()&&(c=c.response);b!=null&&b.form&&(a=b.form.element.hostElement,c.liveChatItemContextMenuSupportedRenderers&&c.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu(a,c.liveChatItemContextMenuSupportedRenderers.menuRenderer),c.actions&&Xu(a,"yt-live-chat-actions",[c.actions]),Lz(this.JSC$11240_screenManager,c.trackingParams))}; uL.prototype.handleGetContextMenuError=function(a){if(a instanceof Error||a instanceof Object||a instanceof String)var b=a;co(new Dl("Error encountered calling GetLiveChatItemContextMenu",b))}; uL[An]=[fE,tL,Cn(DK)];var vL=function(a){this.JSC$11247_commandHandler=a}; k(vL,sL);vL.prototype.resolveCommand=function(a,b){var c=this,d;return ra(function(e){d=z(a,isb);if(!d.tunneledCommand)return e.jumpTo(0);Vu("yt-tunnel-out-live-service-request",d.tunneledCommand);return e.yield(c.JSC$11247_commandHandler.resolveCommand(d.tunneledCommand,b),0)})}; vL[An]=[JB];var wL=new Bn("ENTITY_STATE_TOKEN");function AAb(a,b){return yA(a.entities,"liveChatPollStateEntity",b)} function BAb(a,b){return yA(a.entities,"liveReactionsDataEntity",b)} function CAb(a,b){a=yA(a.entities,"booleanEntity",b);return!(!a||!a.value)} function DAb(a,b){return yA(a.entities,"engagementToolbarStateEntityPayload",b)} function EAb(a,b){return yA(a.entities,"replyCountEntity",b)} function FAb(a,b){return yA(a.entities,"emojiCustomizationSetEntity",b)} function GAb(a,b){return yA(a.entities,"creatorGoalEntity",b)} function HAb(a,b){return yA(a.entities,"liveViewerLeaderboardPointsEntity",b)} function IAb(a,b){return yA(a.entities,"liveViewerLeaderboardChatEntryPointStateEntity",b)} ;var JAb=/UC.{22}\/.*/,xL=function(a,b){this.JSC$11251_innertubeTransportService=a;this.store=b}; k(xL,sL);xL.prototype.resolveCommand=function(a){var b=this,c,d,e,f,h;return ra(function(m){if(m.nextAddress==1){c=z(a,Psb);if(!(c&&c.emojiCustomizationSetEntityKey&&c.metadataUpdateCommand&&c.updateCreatorChannelCommand))return m.return();d=b.store.getState();e=FAb(d,c.emojiCustomizationSetEntityKey);if(!e||!e.emojiId)return m.return();f={reactionOptions:[]};e.emojiId.forEach(function(p){JAb.test(p)?f.reactionOptions.push({customEmojiId:p}):f.reactionOptions.push({standardEmojiId:p})}); h={emojiReactionSet:f};return m.yield(AK(b.JSC$11251_innertubeTransportService,c.metadataUpdateCommand,{liveChat:{liveChatSettings:h}}),2)}return m.yield(AK(b.JSC$11251_innertubeTransportService,c.updateCreatorChannelCommand,{uploadDefaults:{emojiReactionSet:f}}),0)})}; xL[An]=[DK,wL];function yL(a,b){return yA(a.entities,"flowStateEntity",b)} ;var zL=new Bn("FLOW_STATE_MANAGER_TOKEN"),KAb=function(){this.flowStates=new Map},MAb=function(a,b){var c=b.flowStateEntityKey,d=a.flowStates.get(c); if(d)return d;b=new LAb(b);a.flowStates.set(c,b);return b},NAb=function(a,b){a=l(a.flowStates.values()); for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.flowRenderer.targetId===b)return c},OAb=function(a,b){for(var c=l(a.flowStates.entries()),d=c.next();!d.done;d=c.next()){var e=l(d.value); d=e.next().value;e=e.next().value;if(e.flowRenderer.targetId===b){a.flowStates.delete(d);break}}},LAb=function(a){this.onStepChangeCallback=function(){}; this.flowRenderer=a},PAb=function(a,b){a.onStepChangeCallback=b; a.onStepChangeCallback(a.getCurrentStep())}; LAb.prototype.getCurrentStep=function(){var a=this,b;return((b=this.flowRenderer.steps)!=null?b:[]).map(function(c){return z(c,AJ)}).find(function(c){return c&&c.stepId===a.currentStepId})}; var QAb=function(a,b){var c;return((c=a.flowRenderer.steps)!=null?c:[]).map(function(d){return z(d,AJ)}).find(function(d){return d&&d.stepId===b})?(a.currentStepId=b,a.onStepChangeCallback(a.getCurrentStep()),!0):!1};var RAb=function(a,b){this.JSC$11267_reduxStore=a;this.JSC$11267_flowStateManager=b}; k(RAb,sL); RAb.prototype.resolveCommand=function(a){var b=this,c,d,e,f,h,m,p,q,t,u,v,w,y;return ra(function(A){c=z(a,mnb);d=c.stepId;e=c.targetId;f=NAb(b.JSC$11267_flowStateManager,e);m=(h=f)==null?void 0:h.flowRenderer;p=m.flowStateEntityKey;q=yL(b.JSC$11267_reduxStore.getState(),p);if(!q)return A.return();t=q.currentStepId;w=(v=(u=q)==null?void 0:u.stepIdStack)!=null?v:[];y=t===w[w.length-1]?d:t;b.JSC$11267_reduxStore.dispatch(eA("flowStateEntity",p,{currentStepId:d,stepIdStack:[y]},"REPEATED_FIELDS_MERGE_OPTION_APPEND"));A.jumpToEnd()})}; var AL=function(){RAb.apply(this,arguments)}; k(AL,RAb);AL[An]=[zu,zL];var SAb=function(a,b,c){this.JSC$11274_reduxStore=a;this.JSC$11274_flowStateManager=b;this.JSC$11274_commandHandler=c}; k(SAb,sL); SAb.prototype.resolveCommand=function(a,b){var c=this,d,e,f,h,m,p,q,t,u,v,w,y,A;return ra(function(C){d=z(a,nnb);e=d.targetId;f=NAb(c.JSC$11274_flowStateManager,e);m=(h=f)==null?void 0:h.flowRenderer;p=m.flowStateEntityKey;q=yL(c.JSC$11274_reduxStore.getState(),p);v=[].concat(ia((u=(t=q)==null?void 0:t.stepIdStack)!=null?u:[]));w=v.pop();((y=q)==null?void 0:y.currentStepId)===w&&(w=v[v.length-1]);if(!w)return(A=d.onFirstStepCommand)&&c.JSC$11274_commandHandler.resolveCommand(A,b),C.return();c.JSC$11274_reduxStore.dispatch(eA("flowStateEntity", p,{currentStepId:w,stepIdStack:v}));C.jumpToEnd()})}; var BL=function(){SAb.apply(this,arguments)}; k(BL,SAb);BL[An]=[zu,zL,JB];var TAb=function(a,b,c){this.JSC$11279_innertubeTransportService=a;this.JSC$11279_commandHandler=b;this.JSC$11279_screenManager=c}; k(TAb,sL); TAb.prototype.resolveCommand=function(a,b){var c=this,d,e,f,h,m,p,q,t;return ra(function(u){if(u.nextAddress==1){d=z(a,onb);if(!d)return u.return();u.setCatchFinallyBlocks(2);return u.yield(AK(c.JSC$11279_innertubeTransportService,a),4)}if(u.nextAddress!=2){e=u.yieldResult;if(!e)return u.return();f=e;(m=(h=f.loggingDirectives)==null?void 0:h.trackingParams)&&Lz(c.JSC$11279_screenManager,m);(p=f.updateFlowCommand)&&c.JSC$11279_commandHandler.resolveCommand(p,b);return u.leaveTryBlock(0)}u.enterCatchBlock();(t= (q=d)==null?void 0:q.onFailureCommand)&&c.JSC$11279_commandHandler.resolveCommand(t,b);u.jumpToEnd()})}; var CL=function(){TAb.apply(this,arguments)}; k(CL,TAb);CL[An]=[DK,JB,tL];var UAb=function(a,b){this.JSC$11285_flowStateManager=a;this.JSC$11285_commandHandler=b}; k(UAb,sL); UAb.prototype.resolveCommand=function(a,b){var c=this,d,e,f,h;return ra(function(m){d=z(a,pnb);e=d.targetId;f=NAb(c.JSC$11285_flowStateManager,e);if(!f)return m.return(Promise.resolve());var p=f,q=(h=d.steps)!=null?h:[],t=[],u=new Map;q=l(q);for(var v=q.next();!v.done;v=q.next())v=v.value,u.set(z(v,AJ).stepId,v);var w;q=(w=p.flowRenderer.steps)!=null?w:[];w=l(q);for(q=w.next();!q.done;q=w.next())q=q.value,v=z(q,AJ).stepId,u.has(v)?(t.push(u.get(v)),u.delete(v)):t.push(q);t.push.apply(t,ia(u.values())); p.flowRenderer.steps=t;d.flowContinuationCommand&&(f.flowRenderer.flowContinuationCommand=d.flowContinuationCommand);d.entityUpdateCommand&&c.JSC$11285_commandHandler.resolveCommand(d.entityUpdateCommand,b);return m.return(Promise.resolve())})}; var DL=function(){UAb.apply(this,arguments)}; k(DL,UAb);DL[An]=[zL,JB];var EL=function(a){this.store=a}; k(EL,sL);EL.prototype.resolveCommand=function(a){var b=this,c,d,e;return ra(function(f){d=(c=z(a,Zmb))==null?void 0:c.entityBatchUpdate;if(!d)return f.jumpTo(0);e=Object.assign({},d,{mutations:[].concat(ia(d.mutations||[]))});return f.yield(OA(e,b.store),0)})}; EL[An]=[wL];var VAb=new Bn("DROPDOWN_CONTROLLER_TOKEN");var FL=function(a){this.controller=a}; k(FL,sL);FL.prototype.resolveCommand=function(a){var b=this,c,d,e,f;return ra(function(h){c=z(a,Msb);if(!c)return h.return();d=c;e=d.dropdownId;f=d.selectedOptionIndex;if(e===void 0||f===void 0)return h.return();var m=b.controller.dropdownMap.get(e);m&&m(f);h.jumpToEnd()})}; FL[An]=[VAb];var GL=new Bn("PANEL_CONTROLLER_TOKEN"),HL=new Bn("SHEET_CONTROLLER_TOKEN"),WAb=new Bn("DIALOG_CONTROLLER_TOKEN"),XAb=new Bn("DIALOG_CONTAINER_TOKEN"),YAb=new Bn("PERSISTENT_PANEL_CONTROLLER_TOKEN");var IL=function(a){this.controller=a}; k(IL,sL);IL.prototype.resolveCommand=function(a){var b=this,c;return ra(function(d){return(c=z(a,Opb))?d.yield(b.controller.closeDialog(),0):d.return()})}; IL[An]=[WAb];var JL=function(a){this.controller=a}; k(JL,sL);JL.prototype.resolveCommand=function(a){var b=this,c,d;return ra(function(e){c=z(a,Wpb);if(!c)return e.return();var f,h=c.panelIdentifier||((f=c.identifier)==null?void 0:f.tag);if(!h)throw Error("Identifier not present.");return(d=h)?e.yield(b.controller.hidePanel({identifier:d}),0):e.jumpTo(0)})}; JL[An]=[GL];var ZAb=new Bn("PANEL_LOADING_STRATEGY_TOKEN");var KL=function(a,b){this.controller=a;this.panelLoadingStrategy=b}; k(KL,sL);KL.prototype.resolveCommand=function(a,b){var c=this,d,e,f;return ra(function(h){d=z(a,XJ);if((e=d)==null||!e.panelLoadingStrategy)return h.return();f=function(m){var p,q,t,u,v;return ra(function(w){p={viewModel:m.dialogViewModel};q={};d.dismissOnBackgroundTap===!1&&(q.isModal=!0);return m.dialogViewModel?w.yield(c.controller.openDialog(p,(v=(t=b)==null?void 0:(u=t.form)==null?void 0:u.element)!=null?v:document.body,q),0):w.return()})}; return h.yield(c.panelLoadingStrategy.execute({command:a,data:d.panelLoadingStrategy,renderFn:f,createScreenConfig:{layer:4}}),0)})}; KL[An]=[WAb,ZAb];var $Ab=new Set(["/youtubei/v1/streaming_panel"]);var LL=function(a,b,c){this.JSC$11325_innertubeTransportService=a;this.controller=b;this.JSC$11325_screenManager=c}; k(LL,sL); LL.prototype.resolveCommand=function(a,b){var c=this,d,e,f,h,m,p,q,t,u,v,w,y,A,C,I,K,N,L,R,W;return ra(function(S){switch(S.nextAddress){case 1:d=z(a,Ypb);if(!d)return S.return();var Y,da=d.panelIdentifier||((Y=d.identifier)==null?void 0:Y.tag);if(!da)throw Error("Identifier not present.");e=da;return S.yield(c.controller.isVisible(e,!0),2);case 2:if((f=S.yieldResult)&&d.blockIfPanelOpen)return S.return();p=(m=(h=c.controller).getPanelContent)==null?void 0:m.call(h,e);if(!(Y=p))if(d){var Aa;Y=((Aa= d.globalConfiguration)==null?void 0:Aa.initialState)||d.engagementPanel;if(Aa=!Y)Aa=!!(d==null?0:(da=d.engagementPanelPresentationConfigs)==null?0:da.engagementPanelPopupPresentationConfig);Aa&&(Y={engagementPanelSectionListRenderer:{panelIdentifier:d.panelIdentifier,identifier:d.identifier,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}})}else Y=void 0;q=Y;t=d.engagementPanelPresentationConfigs;u=d.engagementPanelExtras;v=x("enable_child_panels")? d.sourcePanelIdentifier:void 0;return S.yield(c.controller.showPanel({identifier:e,panelContents:q,config:t,extras:u,target:(w=b)==null?void 0:(y=w.form)==null?void 0:y.element,shouldFocusHeader:!!v,sourcePanelIdentifier:v}),3);case 3:if(!d.globalConfiguration){S.jumpTo(0);break}if(d.globalConfiguration.reuseModelAndState&&(x("enable_ai_companion")||x("WebFEAllStudioByChannel__enable_creator_chat_renderer"))&&(I=(C=(A=c.controller).getPanelContent)==null?void 0:C.call(A,e)))return S.return();Jz(c.JSC$11325_screenManager, 32633);return(R=(L=z((N=a)==null?void 0:N.commandMetadata,ly))==null?void 0:L.apiUrl)&&$Ab.has(R)?S.yield(vAb(c.JSC$11325_innertubeTransportService,a),8):S.yield(AK(c.JSC$11325_innertubeTransportService,a),7);case 7:K=S.yieldResult;S.jumpTo(6);break;case 8:W=S.yieldResult,K=W.content;case 6:return Lz(c.JSC$11325_screenManager,K.trackingParams),S.yield(c.controller.updatePanel({identifier:e,panelContents:K.content,shouldFocus:!0,extras:u,updatePanelContinuationData:K.updatePanelContinuationData}), 0);}})}; LL[An]=[DK,GL,tL];function ML(a){x("enable_ypc_spinners")&&Xu(a,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},a])} function NL(a){x("enable_ypc_spinners")&&Xu(a,"yt-close-popup-action",["yt-loading-renderer"])} ;function aBb(a,b,c,d,e,f,h){var m=yj();c=c.replace(/-/g,"+").replace(/_/g,"/");var p=Bl().get("hl"),q=uv(dw),t=b==null?void 0:b.element;t&&ML(t);bBb(b,!0);WJa(q,c,m.resolve,function(){t&&NL(t)},function(u){t&&NL(t); m.reject(u)},p,d?function(u){d&&AK(a,d,{backend_analytics:u})}:void 0,m.resolve,e,f,h); return m.promise} function bBb(a,b){!(a=a==null?void 0:a.element)||a.tagName!=="YT-BUTTON-RENDERER"&&a.tagName!=="YTD-BUTTON-RENDERER"||(a.disabled=b)} var OL=function(a,b,c){this.store=a;this.JSC$11342_commandHandler=b;this.JSC$11342_innertubeTransportService=c}; k(OL,sL); OL.prototype.resolveCommand=function(a,b){var c=this,d,e,f,h,m,p,q,t,u;return ra(function(v){d=z(a,rtb);e=d.googlePaymentPayload;d.onStartCommand&&c.JSC$11342_commandHandler.resolveCommand(d.onStartCommand);f=e.encryptedPurchaseParams;h=e.ypcLogWalletAnalyticDataEndpoint;m=d.serializedTransactionFlowLoggingParams;p=e.serializedPaymentsClientParams;q=d.ypcCujContext;u=aBb(c.JSC$11342_innertubeTransportService,(t=b)==null?void 0:t.form,f,h,m,p,q);return v.return(u.then(function(w){bBb(b==null?void 0: b.form,!1);var y=c.store,A=c.JSC$11342_commandHandler,C=w.integratorData;C==null||C===""||w.error!=null?(String(w.error)==="-1"&&d.onDismissCommand?A.resolveCommand(d.onDismissCommand):String(w.error)!=="-1"&&d.onFailureCommand&&A.resolveCommand(d.onFailureCommand),String(w.error)!=="-1"&&String(w.error)!=="132"&&co(Error("Error in buyflowResponse"),"ERROR")):(d.googlePaymentEntityKey&&y.dispatch(dA("commerceAcquisitionClientPayloadEntity",d.googlePaymentEntityKey,{key:d.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:C, fundsGuaranteeCallbackClientData:w.integratorClientCallbackData}}})),d.onSuccessCommand&&A.resolveCommand(d.onSuccessCommand));vj()},function(w){bBb(b==null?void 0:b.form,!1); co(w,"ERROR");d.onFailureCommand&&c.JSC$11342_commandHandler.resolveCommand(d.onFailureCommand)}))})}; OL[An]=[wL,JB,DK];var PL={showDialogCommand:ez(KL),dismissDialogEndpoint:ez(IL),showEngagementPanelEndpoint:ez(LL),liveChatItemContextMenuEndpoint:ez(uL),liveChatTunnelCommand:ez(vL),googlePaymentBillingCommand:ez(OL),saveLiveReactionsEmojiSetCommand:ez(xL),hideEngagementPanelEndpoint:ez(JL),entityUpdateCommand:ez(EL),notifyDropdownOptionSelectedCommand:ez(FL)};x("web_use_flow_state_manager")&&(PL.updateFlowCommand=ez(DL),PL.getFlowCommand=ez(CL),PL.flowPrevStepCommand=ez(BL),PL.flowNextStepCommand=ez(AL)); var BSa=Object.assign({},PL);function cBb(){try{var a,b;return!!((a=window)==null?0:(b=a.top)==null?0:b.location.href)&&!1}catch(c){return!0}} function dBb(){return window!==window.top&&!cBb()} ;function QL(a){return a?a.icon?a.icon.iconType.toLowerCase():a.customThumbnail?"member":"":""} function eBb(a){if(!a)return"";a=l(a);for(var b=a.next();!b.done;b=a.next())if((b=b.value)&&b.liveChatAuthorBadgeRenderer&&(b=QL(b.liveChatAuthorBadgeRenderer))&&b!=="verified")return b;return""} function fBb(a,b){if(!a)return null;var c;return((c=a.find(function(d){return d&&d.liveChatAuthorBadgeRenderer?QL(d.liveChatAuthorBadgeRenderer)===b:!1}))==null?void 0:c.liveChatAuthorBadgeRenderer)||null} ;function gBb(a){var b=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;a=CLa(a);b=CLa(b);var c=ILa(a.hex);b=ILa(b.hex);var d=b[0]/255;var e=b[1]/255,f=b[2]/255,h=Math.max(d,e,f),m=Math.min(d,e,f),p=0,q=0,t=.5*(h+m);h!=m&&(h==d?p=60*(e-f)/(h-m):h==e?p=60*(f-d)/(h-m)+120:h==f&&(p=60*(d-e)/(h-m)+240),q=0=.5?a.darker((4.5-c)/2):a.brighter((4.5-c)/2);c=a.toString(); e=FLa(c);if(!e.length)throw Error(c+" is not a valid RGB color");c=e;c=hBb(c,b)}return a.hex()} function hBb(a,b){a=$Qa(a);b=$Qa(b);return(Math.max(a,b)+.05)/(Math.min(a,b)+.05)} function RL(a){return"#"+("000000"+(a&16777215).toString(16)).slice(-6)} function iBb(a){for(var b=0,c=0;c>c*8&255).toString(16)).slice(-2);return a} ;var SL={},TL=function(){return kt.apply(this,arguments)||this}; k(TL,kt);TL.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)}; TL.prototype.onPdgItemBehaviorClick=TL.prototype.onPdgItemBehaviorClick;n([F(Yz.YtRendererBehavior),r("design:type",Object)],TL.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],TL.prototype,"data",void 0);n([Kt("click"),r("design:type",Function),r("design:paramtypes",[Event]),r("design:returntype")],TL.prototype,"onPdgItemBehaviorClick",null);n([Vt()],TL);SL.YtPdgLiveChatItemBehavior=[TL.prototype,Yz.YtRendererBehavior];function jBb(a){a=Number(a);return"rgba("+[a>>16&255,a>>8&255,a&255,(a>>24&255)/255].join()+")"} ;function kBb(a){if(!a)return!1;if(z(a,QJ))return!0;var b;if(a=(b=z(a,iy))==null?void 0:b.commands)for(b=l(a),a=b.next();!a.done;a=b.next())if(z(a.value,QJ))return!0;return!1} ;var lBb;var mBb;bB(O(function(a){function b(S){var Y=S.target;x("web_use_cache_for_image_fallback")?Y&&sE(Y.src).then(function(da){if(N=Gb(da).toString())Y.src=N}).catch(function(){var da=Rv(197497); Kz(gz(),da);var Aa=Tv();Aa&&da&&vz(Aa,[da]);x("kevlar_woffle_fallback_image")&&(Y.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")}):L()} a=Hu(a,{alt:"",ftlEligible:void 0,height:void 0,notifyOnLoaded:!1,notifyOnUnloaded:!1,objectFit:void 0,objectPosition:void 0,preferredThumbnail:void 0,preserveHeight:!1,preserveWidth:!1,shouldRenderLazy:!Vk("DISABLE_YT_IMG_DELAY_LOADING",!1),width:void 0});var c=a.data,d=a.id,e=a.className,f=a.alt,h=a.ariaHidden,m=a.hidden,p=a.ftlEligible,q=a.height,t=a.notifyOnLoaded,u=a.notifyOnUnloaded,v=a.objectFit,w=a.objectPosition,y=a.preferredThumbnail,A=a.preserveHeight,C=a.preserveWidth,I=a.shouldRenderLazy, K=a.width,N=null;qw(function(){}); zp(function(){L()}); var L=function(){N&&(URL.revokeObjectURL(N),N=null)},R=dB(),W=function(S){var Y=S.target; (Y==null?0:Y.src)&&sE(Y.src).then(function(da){if(N=Gb(da).toString())Y.src=N}).catch(function(){})}; return D("yt-image",{el:R,id:d,class:e,hidden:m,"aria-hidden":h,"prop:ftlEligible":p,"prop:loadTime":Infinity},D(P,{cond:c,then:function(S){return D(eC,{data:S,renderLazy:I,alt:f,contentMode:function(){a:switch(v()){case"CONTAIN":var Y="CONTENT_MODE_SCALE_ASPECT_FIT";break a;case"FILL":Y="CONTENT_MODE_SCALE_TO_FILL";break a;default:Y="CONTENT_MODE_SCALE_ASPECT_FILL";}return Y}, notifyOnLoaded:t,notifyOnUnloaded:u,preferredThumbnail:y,preserveHeight:A,preserveWidth:C,objectPosition:w,onload:function(Y){W(Y);L();R.value&&BXa(R.value)}, onerror:function(Y){b(Y)}, targetHeight:q,targetWidth:K,shouldShowPlaceholder:x("kevlar_thumbnail_bg"),useWidth:!0})}}))},"Ia"),"yt-image",{props:{data:$A, alt:$A,ftlEligible:$A,height:$A,notifyOnLoaded:$A,notifyOnUnloaded:$A,objectFit:$A,objectPosition:$A,preferredThumbnail:$A,preserveHeight:$A,preserveWidth:$A,shouldRenderLazy:$A,width:$A,ariaHidden:$A,className:$A,id:$A,hidden:$A}});var UL=function(){return E.apply(this,arguments)||this}; k(UL,E);UL.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var a=LB(this.data.onVisibleCommand);a&&this.ytComponentBehavior.resolveCommand(a)}}; n([F(mz.YtComponentBehavior),r("design:type",Object)],UL.prototype,"ytComponentBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],UL.prototype,"ytRendererBehavior",void 0);n([F(oE.YtVisibilityBehavior),r("design:type",Object)],UL.prototype,"ytVisibilityBehavior",void 0);n([M(),r("design:type",Object)],UL.prototype,"data",void 0);n([fu({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],UL); Tu(UL,"yt-bumper-user-edu-content-view-model",function(){if(mBb===void 0){var a=document.createElement("template");Q(a,"
\n \n
\n \n
\n
"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;lBb===void 0&&(lBb=document.createElement("template"));var d=lBb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);mBb=a}a=mBb;return a},{mode:0});var nBb;var oBb,pBb=function(){if(oBb!==void 0)return oBb;var a=document.createElement("template");Q(a,"
\n
\n \n \n
\n
\n \n \n
\n \n \n \n
\n
\n \n \n
\n \n
\n
[[creatorGoalState.currentGoalCount]]
\n
/
\n
[[creatorGoalState.totalGoalCount]]
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;nBb===void 0&&(nBb=document.createElement("template"));var d=nBb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return oBb=a};var qBb=O(function(a){function b(){c().seconds&&f(jwb({seconds:Number(c().seconds)-Date.now()/1E3}))} var c=a.targetTimestamp;a=a.className;var d=l(ip("",void 0,"U1Q8Ae")),e=d.next().value,f=d.next().value;qw(function(){b();var h=setInterval(function(){b()},1E3); zp(function(){clearInterval(h)})}); return D("yt-countdown",{class:U("ytCountDownHost",a)},D("div",null,e))},"Ka");bB(qBb,"yt-countdown",{props:{targetTimestamp:$A,className:aB}});bB(O(function(a){return D("yt-button-view-model",{id:a.id,class:U(a.scopingClassName,a.classes),icon:function(){var b;return(b=a.icon)==null?void 0:b.call(a)}, "dialog-dismiss":function(){var b;return((b=a.dialogDismiss)==null?0:b.call(a))?"":void 0}, hidden:a.hidden},D(AD,{data:function(){var b;return(b=a.data)==null?void 0:b.call(a)}, className:function(){var b;return(b=a.className)==null?void 0:b.call(a)}, style:function(){var b;return(b=a.style)==null?void 0:b.call(a)}, useOutlinedIcon:function(){var b;return(b=a.useOutlinedIcon)==null?void 0:b.call(a)}, buttonOverrides:function(){var b;return(b=a.buttonOverrides)==null?void 0:b.call(a)}, animatedTextProps:function(){var b;return(b=a.animatedTextProps)==null?void 0:b.call(a)}, onClick:function(b){var c;return(c=a.onClick)==null?void 0:c.call(a,b)}}))},"La"),"yt-button-view-model",{props:{data:$A, className:$A,style:$A,useOutlinedIcon:$A,buttonOverrides:$A,animatedTextProps:$A,onClick:aB,scopingClassName:$A,id:$A,icon:$A,dialogDismiss:$A,classes:$A,target:aB,hidden:$A}});bB(O(function(a){var b=a.data;var c=a.id;var d=a.className;var e=a.iconName;var f=a.animateIcon;var h=a.secondaryIconName;a=l(ip(!1,void 0,"xPqod"));var m=a.next().value,p=a.next().value,q=function(){var u=Fn().resolve(Cn(tD));u&&p(u.keyboardInUse)},t=function(){p(!1)}; a=sw("yt-button-shape",function(u){if(Fn().resolve(Cn(tD)))return u.addEventListener("focusin",q),u.addEventListener("focusout",t),function(){u.removeEventListener("focusin",q);u.removeEventListener("focusout",t)}}); return D("yt-button-shape",{el:a,id:c,class:d},D(P,{cond:b,then:function(){return D(bL,{data:b,iconName:e,secondaryIconName:h,focusedOverride:m,animateIcon:f})}}))},"Ma"),"yt-button-shape",{props:{data:$A, id:$A,className:$A,iconName:$A,animateIcon:$A,secondaryIconName:$A,clientOnlyWizTooltipsEnabled:$A},unsafeExternallySettableAttributes:new Set(["hidden"])});var VL=function(){var a=E.apply(this,arguments)||this;a.isGoalActive=!0;return a}; k(VL,E);VL.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")}; VL.prototype.progressBarChanged=function(){var a=wt(this.hostElement).querySelector("#progress-bar-progress"),b,c,d,e=(d=Number((b=this.creatorGoalState)==null?void 0:b.currentGoalCount)/Number((c=this.creatorGoalState)==null?void 0:c.totalGoalCount)*100)!=null?d:0,f;a.style.width=((f=Math.min(e,100))!=null?f:0)+"%"}; VL.prototype.goalStateChanged=function(){var a;this.isGoalActive=((a=this.creatorGoalState)==null?void 0:a.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var b;a={"--yt-progress-bar-color":jBb((b=this.creatorGoalState)==null?void 0:b.progressBarColor)};Ft(this.hostElement,a)}; VL.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}}; ba.Object.defineProperties(VL.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var a;return this.isGoalActive&&!((a=this.creatorGoalState)==null||!a.shouldShowCountdown)}}, endTimestamp:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.creatorGoalState)==null?0:a.endTimestampMs){var b;a=Number((b=this.creatorGoalState)==null?void 0:b.endTimestampMs)/1E3;return{seconds:String(a)}}}}, targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.creatorGoalState)==null?0:a.themedTargetImage){var b;a=z((b=this.creatorGoalState)==null?void 0:b.themedTargetImage,eK);return this.isAppDarkTheme()?a==null?void 0:a.imageDark:a==null?void 0:a.imageLight}}}}); ba.Object.defineProperties(VL,{template:{configurable:!0,enumerable:!0,get:function(){return pBb()}}}); VL.prototype.goalStateChanged=VL.prototype.goalStateChanged;VL.prototype.progressBarChanged=VL.prototype.progressBarChanged;n([F($C.YtRendererstamperBehavior),r("design:type",Object)],VL.prototype,"ytRendererstamperBehavior",void 0);n([F(iE),r("design:type",Object)],VL.prototype,"ytLiveChatReduxBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],VL.prototype,"ytRendererBehavior",void 0); n([M({selectorArgs:["data.creatorGoalEntityKey"],selector:GAb}),r("design:type",Object)],VL.prototype,"creatorGoalState",void 0);n([M(),r("design:type",Object)],VL.prototype,"data",void 0);n([M(),r("design:type",Object)],VL.prototype,"isGoalActive",void 0);n([H("creatorGoalState","isGoalActive"),r("design:type",Boolean),r("design:paramtypes",[])],VL.prototype,"shouldShowCountdown",null);n([H("creatorGoalState"),r("design:type",Object),r("design:paramtypes",[])],VL.prototype,"endTimestamp",null); n([H("creatorGoalState"),r("design:type",Object),r("design:paramtypes",[])],VL.prototype,"targetIconThemedImage",null);n([Lt("creatorGoalState.currentGoalCount"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],VL.prototype,"progressBarChanged",null);n([Lt("creatorGoalState.creatorGoalState"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],VL.prototype,"goalStateChanged",null); n([fu({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],VL);Tu(VL,"yt-creator-goal-progress-flow-view-model",function(){return pBb()},{mode:0});var rBb;var sBb,tBb=function(){if(sBb!==void 0)return sBb;var a=document.createElement("template");Q(a,"
\n
\n
\n \n \n \n \n \n \n
\n
\n \n \n \n \n \n \n \n
\n
\n \n \n \n \n \n \n
\n
\n \n \n \n \n \n \n
\n
\n
\n \n \n
\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;rBb===void 0&&(rBb=document.createElement("template"));var d=rBb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return sBb=a};var WL=function(){var a=E.apply(this,arguments)||this;a.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";a.goalDescription="";a.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";a.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";a.startButtonId="start-button";a.exampleButtonId="example-button";return a}; k(WL,E);g=WL.prototype;g.getGoalDropdownItems=function(){var a,b;return(b=z((a=this.data)==null?void 0:a.purchaseTargetDropdown,Kqb))==null?void 0:b.dropdownItems}; g.getTimerDropdownItems=function(){var a,b;return(b=z((a=this.data)==null?void 0:a.timerDropdown,Kqb))==null?void 0:b.dropdownItems}; g.getColorDropdownItems=function(){var a,b;return(b=z((a=this.data)==null?void 0:a.colorDropdown,Kqb))==null?void 0:b.dropdownItems}; g.getDropdownItemText=function(a){var b;return(b=z(a,Jqb))==null?void 0:b.itemLabel}; g.getDropdownItemValue=function(a){a=z(a,Jqb);return(a==null?void 0:a.timeLimit)||(a==null?void 0:a.purchaseTarget)||(a==null?void 0:a.eligiblePurchaseType)}; g.updateFlowState=function(a){Xu(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:a}])}; g.attached=function(){var a=z(this.flowStateEntity,Htb);this.tier=(a==null?void 0:a.eligiblePurchaseType)||"CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";this.goal=(a==null?void 0:a.targetPurchases)||"CREATOR_GOALS_PURCHASE_TARGET_10_SC";this.goalDescription=(a==null?void 0:a.goalDescription)||"";this.timer=(a==null?void 0:a.goalDuration)||"CREATOR_GOAL_TIME_LIMIT_30_MINUTES";this.updateFlowState({targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier,goalDescription:this.goalDescription})}; g.updateGoalValue=function(a){this.goal=a.detail.value;this.updateFlowState({targetPurchases:this.goal})}; g.onTextValueChanged=function(a){this.goalDescription=a.detail.value;this.updateFlowState({goalDescription:this.goalDescription})}; g.updateTimerValue=function(a){this.timer=a.detail.value;this.updateFlowState({goalDuration:this.timer})}; g.updateTierValue=function(a){this.tier=a.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})}; g.getButtonViewModel=function(a){a=(a==null?void 0:a.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var b,c=z((b=this.data)==null?void 0:b.startGoalButton,ZJ);return Object.assign({},c,{state:a})}; ba.Object.defineProperties(WL,{template:{configurable:!0,enumerable:!0,get:function(){return tBb()}}}); n([F(Yz.YtRendererBehavior),r("design:type",Object)],WL.prototype,"ytRendererBehavior",void 0);n([F(iE),r("design:type",Object)],WL.prototype,"ytLiveChatReduxBehavior",void 0);n([M(),r("design:type",Object)],WL.prototype,"data",void 0);n([M({selectorArgs:["data.creatorGoalSetUpFlowStateEntityKey"],selector:function(a,b){return yA(a.entities,"flowStateEntity",b)}}), r("design:type",Object)],WL.prototype,"flowStateEntity",void 0);n([M(),r("design:type",Object)],WL.prototype,"goal",void 0);n([M(),r("design:type",Object)],WL.prototype,"goalDescription",void 0);n([M(),r("design:type",Object)],WL.prototype,"timer",void 0);n([M(),r("design:type",Object)],WL.prototype,"tier",void 0);n([M(),r("design:type",Object)],WL.prototype,"startButtonId",void 0);n([M(),r("design:type",Object)],WL.prototype,"exampleButtonId",void 0); n([fu({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],WL);Tu(WL,"yt-creator-goal-set-up-flow-view-model",function(){return tBb()},{mode:0});var uBb;var vBb;function XL(a,b){var c=Tv();c&&a&&tz(c,Qv(a),b)} function wBb(a){if(a=Qv(a)){var b=Tv();b&&xz(b,a)}} function YL(a){(a=Qv(a))&&xBb(a)} function xBb(a){var b=Tv();b&&uz(b,a)} ;var ZL=function(){return E.apply(this,arguments)||this}; k(ZL,E);ZL.prototype.dataChanged=function(){var a,b=(a=this.data)==null?void 0:a.rendererContext;if(b){var c,d;(a=(c=z(b,oy))==null?void 0:(d=c.loggingDirectives)==null?void 0:d.trackingParams)&&YL(a)}}; ba.Object.defineProperties(ZL.prototype,{isV2:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.authorAvatar)}}, authorAvatarModel:{configurable:!0,enumerable:!0,get:function(){var a;return z((a=this.data)==null?void 0:a.authorAvatar,YJ)}}, authorAvatarThumbnail:{configurable:!0,enumerable:!0,get:function(){var a=this.authorAvatarModel,b;if(a==null?0:(b=a.image)==null?0:b.sources)return{thumbnails:a.image.sources}}}}); ZL.prototype.dataChanged=ZL.prototype.dataChanged;n([F(mz.YtComponentBehavior),r("design:type",Object)],ZL.prototype,"ytComponentBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],ZL.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],ZL.prototype,"data",void 0);n([H("data"),r("design:type",Boolean),r("design:paramtypes",[])],ZL.prototype,"isV2",null);n([H("data"),r("design:type",Object),r("design:paramtypes",[])],ZL.prototype,"authorAvatarModel",null); n([H("authorAvatarModel"),r("design:type",Object),r("design:paramtypes",[])],ZL.prototype,"authorAvatarThumbnail",null);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],ZL.prototype,"dataChanged",null);n([fu({is:"yt-gift-message-view-model",disableElementRegistration:!0})],ZL); Tu(ZL,"yt-gift-message-view-model",function(){if(vBb===void 0){var a=document.createElement("template");Q(a,"\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;uBb===void 0&&(uBb=document.createElement("template"));var d=uBb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);vBb=a}a=vBb;return a},{mode:0});var yBb;var zBb;var $L=function(){return E.apply(this,arguments)||this}; k($L,E);$L.prototype.attached=function(){var a,b,c;if(this==null?0:(a=this.data)==null?0:(b=a.pdgPurchasedBumperLoggingDirectives)==null?0:(c=b.loggingDirectives)==null?0:c.trackingParams){var d,e,f;YL(this==null?void 0:(d=this.data)==null?void 0:(e=d.pdgPurchasedBumperLoggingDirectives)==null?void 0:(f=e.loggingDirectives)==null?void 0:f.trackingParams)}}; $L.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}}; n([F(mz.YtComponentBehavior),r("design:type",Object)],$L.prototype,"ytComponentBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],$L.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],$L.prototype,"data",void 0);n([fu({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],$L); Tu($L,"yt-live-chat-item-bumper-view-model",function(){if(zBb===void 0){var a=document.createElement("template");Q(a,"
\n
\n
");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;yBb===void 0&&(yBb=document.createElement("template"));var d=yBb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);zBb=a}a=zBb;return a},{mode:0});var ABb;var BBb;var CBb="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),DBb=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];function aM(a,b){if(b){var c={};CBb.forEach(function(d){d=EBb(b,d,"--yt-lightsource-");Object.assign(c,d)}); DBb.forEach(function(d){d=EBb(b,d,"--yt-basic-");Object.assign(c,d)}); Ft(a,c)}} function EBb(a,b,c){c+=Rc(b);var d={};d[c]=a&&a[b]?Jy(a[b]):"";return d} ;var FBb;var GBb;var HBb;var IBb;function JBb(a){return new KeyframeEffect(a,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})} function KBb(a){return new KeyframeEffect(a,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})} var LBb=function(a,b){this.fillAnimation=new Animation(JBb(a),document.timeline);this.strokeAnimation=new Animation(KBb(b),document.timeline)}; LBb.prototype.play=function(){var a,b;(b=(a=this.fillAnimation).play)==null||b.call(a);var c,d;(d=(c=this.strokeAnimation).play)==null||d.call(c)}; LBb.prototype.cancel=function(){var a,b;(b=(a=this.fillAnimation).cancel)==null||b.call(a);var c,d;(d=(c=this.strokeAnimation).cancel)==null||d.call(c)};var bM=function(){var a=E.apply(this,arguments)||this;a.focused=!1;a.disabled=!1;a.isOverlay=!1;return a}; k(bM,E);bM.prototype.triggerDown=function(){if(!this.disabled){Ct(this.hostElement,"down",!0);var a;(a=this.currentAnimation)==null||a.cancel()}}; bM.prototype.triggerUp=function(){if(!this.disabled){Ct(this.hostElement,"down",!1);var a=this.fillElement;var b=this.strokeElement;typeof GroupEffect==="function"?(a=new GroupEffect([JBb(a),KBb(b)]),a=new Animation(a,document.timeline)):a=new LBb(a,b);this.currentAnimation=a;var c;(c=this.currentAnimation)==null||c.play()}}; n([Tt(".stroke"),r("design:type",HTMLElement)],bM.prototype,"strokeElement",void 0);n([Tt(".fill"),r("design:type",HTMLElement)],bM.prototype,"fillElement",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],bM.prototype,"focused",void 0);n([M(),r("design:type",Object)],bM.prototype,"disabled",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],bM.prototype,"isOverlay",void 0);n([fu({is:"yt-interaction",disableElementRegistration:!0})],bM); Tu(bM,"yt-interaction",function(){if(IBb===void 0){var a=document.createElement("template");Q(a,"
");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;HBb===void 0&&(HBb=document.createElement("template"));var d=HBb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);IBb=a}a=IBb;return a},{mode:2});var cM=function(){return E.apply(this,arguments)||this}; k(cM,E);g=cM.prototype;g.ready=function(){var a=this,b=wt(this.hostElement).querySelector("#button");b.addEventListener("focus",function(){a.keyboardFocused=Wxb().keyboardInUse}); b.addEventListener("blur",function(){a.keyboardFocused=!1;a.rippleUp_()})}; g.computeTabIndex_=function(a){return a?-1:0}; g.computeButtonAriaPressed_=function(a){if(this.toggleable)return a?"true":"false"}; g.rippleDown_=function(){wt(this.hostElement).querySelector("#interaction").triggerDown()}; g.rippleUp_=function(){wt(this.hostElement).querySelector("#interaction").triggerUp()}; g.onPressedChanged_=function(){var a=At(wt(this.hostElement).querySelector("#button")).querySelector("yt-icon")||At(wt(this.hostElement).querySelector("#button")).children[0];a&&(a.active=this.pressed)}; cM.prototype.onPressedChanged_=cM.prototype.onPressedChanged_;cM.prototype.rippleUp_=cM.prototype.rippleUp_;cM.prototype.rippleDown_=cM.prototype.rippleDown_;n([M(),r("design:type",String)],cM.prototype,"label",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],cM.prototype,"disabled",void 0);n([M(),r("design:type",Boolean)],cM.prototype,"pressed",void 0);n([M(),r("design:type",Object)],cM.prototype,"toggleable",void 0);n([M(),r("design:type",Boolean)],cM.prototype,"untabbable",void 0); n([M(),r("design:type",Boolean)],cM.prototype,"keyboardFocused",void 0);n([Kt("down"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],cM.prototype,"rippleDown_",null);n([Kt("up"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],cM.prototype,"rippleUp_",null);n([Lt("pressed"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],cM.prototype,"onPressedChanged_",null); n([fu({is:"yt-icon-button",disableElementRegistration:!0})],cM); Tu(cM,"yt-icon-button",function(){if(GBb===void 0){var a=document.createElement("template");Q(a,"");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;FBb===void 0&&(FBb=document.createElement("template"));var d=FBb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);GBb=a}a=GBb;return a},{mode:2});var MBb=la(["aria-"]),dM={};dM.YtRenderButtonBehavior=[Yz.YtRendererBehavior,zB.YtEndpointBehavior,{properties:{alignByText:{type:Boolean,value:!1,reflectToAttribute:!0},iconAlignByText:{type:Boolean,value:!1,reflectToAttribute:!0},disableTextTransform:{type:Boolean,reflectToAttribute:!0},useKeyboardFocused:{type:Boolean,value:function(){return!!Fn().resolve(Cn(tD))&&x("kevlar_keyboard_button_focus")}, reflectToAttribute:!0},keyboardFocused:{type:Boolean,value:!1,reflectToAttribute:!0},startJustified:{type:Boolean,value:!1,reflectToAttribute:!0},forceIconButton:{type:Boolean,value:!1},forceIconOnly:{type:Boolean,value:!1},styleActionButton:{type:Boolean,reflectToAttribute:!0},verticallyAligned:{type:Boolean,value:!1,reflectToAttribute:!0},noink:{type:Boolean,value:!1},showTooltips:{type:Boolean,value:!1},buttonRaised:{type:Boolean,value:!1},disabled:{type:Boolean,observer:"disabledChanged_",reflectToAttribute:!0}, sendServiceEndpointWhenDisabled:{type:Boolean,value:!1},sendCommandWhenDisabled:{type:Boolean,value:!1},ellipsisTruncate:Boolean,buttonTooltipPosition:{type:String,value:"bottom"},buttonSize:{type:String,reflectToAttribute:!0},endpoint:{type:Object,readOnly:!0},serviceEndpoint:{type:Object,readOnly:!0},command:{type:Object,readOnly:!0},buttonIcon:{type:String,readOnly:!0,observer:"buttonIconChanged_"},buttonText:{type:Object,readOnly:!0},buttonAccessibility:{type:Object,readOnly:!0},buttonTooltip:{type:String, readOnly:!0},buttonClass:{type:String,readOnly:!0,observer:"buttonClassChanged_"},iconPositionType:{type:String,readOnly:!0,observer:"iconPositionTypeChanged_"},iconSize:{type:Number},stampType_:{type:String,computed:"computeStampType_(forceIconButton, buttonText, buttonIcon, endpoint)",observer:"stampTypeChanged_"},componentReady_:Boolean},listeners:{focusin:"onFocus_",focusout:"onBlur_",mouseenter:"addTooltips_",tap:"onYtButtonTap_"},observers:["isDisabledChanged_(data.isDisabled)","observeBasicPalette_(data.colorData.basicColorPaletteData)", "dataChanged_(data, componentReady_)","isSelectedChanged_(data)"],created:function(){this.elements_={};this.hasChange_=!1}, attached:function(){this.hasChange_&&this.stampTypeChanged_(this.stampType_);this.keyboardFocused=!1}, get container(){return this.root},onYtButtonTapHandler:function(){}, ytButtonServiceEndpointHandler:function(){}, updateRenderedElements:function(){if(this.elements_.endpoint){this.elements_.endpoint.data=this.endpoint;var a=this.computeHref_(this.endpoint,!0);a?Jb(this.elements_.endpoint,a):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){a=this.buttonClass.split(" ");a=l(a);for(var b=a.next();!b.done;b=a.next())b=b.value,Ct(this.hostElement,b,!0),this.elements_.button&&Ct(this.elements_.button,b,!0),this.elements_.text&&Ct(this.elements_.text,b,!0)}this.elements_.icon&&(this.elements_.icon.icon= this.buttonIcon,this.setIconActive_(this.elements_.icon),this.iconSize&&(this.elements_.icon.size=this.iconSize));this.elements_.text&&(this.elements_.text.text=this.buttonText);this.elements_.button&&(a=null,this.buttonAccessibility&&(a=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=a:a?nc([Ah(MBb)],this.elements_.button,"aria-label",a):this.elements_.button.removeAttribute("aria-label"))}, dataChanged_:function(){this.updateRenderedElements()}, onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var a=Fn().resolve(Cn(tD));a&&(this.keyboardFocused=a.keyboardInUse)}}, onBlur_:function(){this.keyboardFocused=!1}, addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?EC("tp-yt-paper-tooltip"):document.createElement("tp-yt-paper-tooltip"),this.elements_.tooltip.position=this.buttonTooltipPosition,this.elements_.tooltip.offset=8,this.elements_.tooltip.fitToVisibleBounds=!0,es(this.elements_.endpoint).appendChild(this.elements_.tooltip)),es(this.elements_.tooltip).textContent=this.buttonTooltip)}, buttonClassChanged_:function(a,b){if(b)for(a=b.split(" "),a=l(a),b=a.next();!b.done;b=a.next())b=b.value,Ct(this.hostElement,b,!1),this.elements_.button&&Ct(this.elements_.button,b,!1),this.elements_.text&&Ct(this.elements_.text,b,!1)}, buttonIconChanged_:function(a){this.elements_.icon?a?(this.elements_.icon.icon=a,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&es(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,Dt(this.hostElement,"is-paper-button-with-icon",!1)):a&&this.stampType_&&this.stampType_=="paper_button"&&this.addIconElementToPaperButton_()}, addIconElementToPaperButton_:function(){this.elements_.icon=this.getIcon_();this.setIconActive_(this.elements_.icon);this.elements_.button&&(this.iconPositionType&&this.iconPositionType!="BUTTON_ICON_POSITION_TYPE_LEFT_OF_TEXT"?this.iconPositionType=="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"&&es(this.elements_.button).appendChild(this.elements_.icon):es(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),Dt(this.hostElement,"is-paper-button-with-icon",!0))}, stampTypeChanged_:function(a){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,a){var b=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(a){case"yt_icon_button_with_label":b=!0;Ct(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();a=es(this.elements_.button).firstElementChild; this.elements_.icon=a;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;es(this.elements_.endpoint).appendChild(this.elements_.button);es(this.elements_.endpoint).appendChild(this.elements_.text);break;case"paper_button":this.elements_.button=this.reuseEnabled_()?EC("tp-yt-paper-button"):document.createElement("tp-yt-paper-button");this.elements_.text=this.getFormattedString_(); this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;this.elements_.button.raised=this.buttonRaised;es(this.elements_.button).appendChild(this.elements_.text);es(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case"yt-icon-button":b=!0,this.elements_.button=this.getYtIconButton_(),a=es(this.elements_.button).firstElementChild,this.elements_.icon=a,this.setIconActive_(this.elements_.icon),es(this.elements_.endpoint).appendChild(this.elements_.button);}Dt(this.hostElement, "is-icon-button",b);Dt(this.hostElement,"is-paper-button",!b);Dt(this.hostElement,"has-no-text",!this.elements_.text);this.elements_.button.id="button";this.elements_.button.noink=this.noink;this.elements_.button.disabled=this.disabled;var c;wt((c=this.container.hostElement)!=null?c:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}}, iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&es(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)}, isDisabledChanged_:function(a){if(a!=void 0||this.disabled)this.disabled=a,this.elements_.button&&(this.elements_.button.disabled=a)}, isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)}, setIconActive_:function(a){x("kevlar_system_icons")&&a&&this.data&&(this.data.isSelected!==void 0?a.active=this.data.isSelected:this.data.isToggled!==void 0&&(a.active=this.data.isToggled))}, observeBasicPalette_:function(a){aM(this.hostElement,a)}, disabledChanged_:function(a){this.data&&this.set("data.isDisabled",a)}, onYtButtonTap_:function(a){if(this.disabled)a.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&$u(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(a=this.disableCommandHandlerOverride,!this.data||!this.data.command||a||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)x("handle_service_request_actions")||$u(this.hostElement,[this.serviceEndpoint]), Gt(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();x("handle_service_request_actions")?(a=[],this.serviceEndpoint&&a.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&a.push(this.data.command),a.length&&Zu(this.hostElement,a,this.hostElement)):this.data&&this.data.command&&(a=this.data.command,a.accountUnlinkCommand||a.accountLinkCommand||a.insertAdCommand||a.insertHighlightMarkerCommand|| a.createLivestreamHighlightClipCommand||a.getVideoUploadFeedbackCommand||a.musicDeletePrivatelyOwnedEntityCommand||a.ypcCancelRecurrenceEndpoint||a.getMultiSelectCommandEndpoint?$u(this.hostElement,[a]):Zu(this.hostElement,[a],this.hostElement))}}, computeStampType_:function(){return this.forceIconButton&&this.buttonText&&this.buttonIcon?"yt_icon_button_with_label":this.buttonText?"paper_button":this.buttonIcon?"yt-icon-button":null}, emptyContainer_:function(){for(var a,b=wt((a=this.container.hostElement)!=null?a:this.container);b.lastChild&&b.lastChild.tagName!="STYLE";)try{b.removeChild(b.lastChild)}catch(c){break}}, getYtIconButton_:function(){var a=this.reuseEnabled_()?EC("yt-icon-button"):document.createElement("yt-icon-button"),b=es(a).firstElementChild;if(b&&b.is!="yt-icon"){for(b=es(a);b.lastChild;)b.removeChild(b.lastChild);b=null}b||(b=this.getIcon_(),this.setIconActive_(b),es(a).appendChild(b));return a}, reuseEnabled_:function(){return x("enable_button_behavior_reuse")}, getIcon_:function(){return this.reuseEnabled_()?EC("yt-icon"):document.createElement("yt-icon")}, getFormattedString_:function(){return this.reuseEnabled_()?EC("yt-formatted-string"):document.createElement("yt-formatted-string")}}];var NBb={}; NBb.YtButtonBehavior=[dM.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var a=this.data;a&&(this._setEndpoint(this.computeEndpoint_(a)),this._setServiceEndpoint(this.computeServiceEndpoint_(a)),this._setCommand(this.computeCommand_(a)),this._setButtonIcon(this.computeButtonIcon_(a)),this._setButtonText(this.computeButtonText_(a,this.forceIconOnly)), this._setButtonAccessibility(this.computeAccessibility_(a)),this._setButtonTooltip(this.computeTooltip_(a)),this._setButtonClass(this.computeButtonClass_(a)),this._setIconPositionType(this.computeIconPositionType_(a)),this.updateRenderedElements())}, setPressedState:function(a){var b;if((b=this.elements_)==null?0:b.button)this.elements_.button.pressed=!!a}, computeIconPositionType_:function(a){return a&&a.iconPosition||null}, computeEndpoint_:function(a){var b=a&&a.navigationEndpoint,c=this.get("data.command.commandMetadata.webCommandMetadata.url"),d=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return b?b:a&&a.command&&a.command.modalEndpoint?a.command:c&&!d&&a.command?a.command:null}, computeServiceEndpoint_:function(a){var b=a&&a.serviceEndpoint,c=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return b?b:c&&a.command?a.command:null}, computeCommand_:function(a){return a&&a.command||null}, computeButtonIcon_:function(a){return a&&a.icon&&a.icon.iconType?cz(a.icon.iconType):null}, computeButtonText_:function(a,b){return!b&&a&&a.text||null}, computeAccessibility_:function(a){return this.get("accessibilityData.accessibilityData",a)||a&&a.accessibility||(a&&a.text?{label:this.getSimpleString(a.text)}:null)}, computeTooltip_:function(a){return a?a.isDisabled&&a.disabledTooltip||a.tooltip||null:null}, computeButtonClass_:function(a){var b=a&&a.style?a.style.toLowerCase().replace(/_/g,"-")+" ":"";b+=a&&a.size?a.size.toLowerCase().replace(/_/g,"-")+" ":"";a.colorData&&a.colorData.basicColorPaletteData&&a.colorData.basicColorPaletteData.borderColor&&(b+="palette-with-border");return b.trim()}}];var OBb;var PBb;var QBb;function RBb(a){if(!a)return{};var b=a.foregroundTitleColor,c=a.backgroundColor;a=a.borderColor;var d="text";a?d="outline":c&&(d="filled");return{type:d,customColors:{color:b?Jy(b):void 0,backgroundColor:c?Jy(c):void 0,borderColor:a?Jy(a):void 0}}} ;function SBb(a){var b=a.renderer;var c=a.element;var d=a.commandController;var e=a.onTapCallback;var f=a.skipCommandHandling;var h=a.overrides;var m=a.forceIcon;var p=a.forceModernIconButton;var q=a.forceDisabled;var t=a.isSubscribe===void 0?!1:a.isSubscribe;var u=a.isPressed===void 0?!1:a.isPressed;var v=a.useButtonSize===void 0?!1:a.useButtonSize;a=TBb(b);t&&(a.style="mono",a.type="filled");m=!b.icon||!m&&b.text?b.icon?b.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading": void 0:p?"icon-only":"icon-only-40";m==="icon-only-40"&&(a.type="text");var w;p=Object;t=p.assign;v=UBb(b,v);u=!!b.isSelected||!x("web_propagate_is_pressed_killswitch")&&!!u;var y=b.isSelected!==void 0;q=q===void 0?b.isDisabled:q;var A=b.text?GB(b.text):void 0;var C,I,K,N=((C=b.accessibilityData)==null?void 0:(I=C.accessibilityData)==null?void 0:I.label)||((K=b.accessibility)==null?void 0:K.label);C=N?N:lz(b.text);c=VBb(b,c,d,e,f);d=WBb(b);d!=null&&d.length?(d=NB({innertubeCommand:YXa(d),forceNewState:!0}), d=PB(d)?d:void 0):d=void 0;return t.call(p,{},a,v,{iconPosition:m},h,{focused:!1,toggled:u,toggleable:y,disabled:q,formattedButtonText:A,accessibilityLabel:C,onTap:c,aTagConfig:d},RBb((w=b.colorData)==null?void 0:w.basicColorPaletteData),{oneOffCustomTextWrap:b.oneOffCustomTextWrap})} function VBb(a,b,c,d,e){return function(f){var h=WBb(a);d(h,f);if(!e){h=l(h);for(var m=h.next();!m.done;m=h.next())cL(m.value,{form:{element:b,event:f},commandController:c})}}} function WBb(a){var b=[];a.command&&b.push(a.command);a.serviceEndpoint&&b.push(a.serviceEndpoint);a.navigationEndpoint&&b.push(a.navigationEndpoint);return b} function UBb(a,b){if(b)switch(a.size){case"SIZE_SMALL":return{size:"S"};case"SIZE_LARGE":return{size:"L"};case"SIZE_XLARGE":return{size:"XL"};case"SIZE_XSMALL":return{size:"XS"};default:return{size:"M"};}switch(a.style){case"STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"};}} function TBb(a){switch(a.style){case"STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case"STYLE_PRIMARY":case"STYLE_PAYMENT":case"STYLE_CALL_TO_ACTION_FILLED":return{style:"call-to-action",type:"filled",state:"active"};case"STYLE_CALL_TO_ACTION_TONAL":return{style:"call-to-action",type:"tonal",state:"active"};case"STYLE_OUTLINE":case"STYLE_SUGGESTIVE":case"STYLE_SUGGESTED_ACTION":return{style:"call-to-action",type:"outline",state:"active"};case"STYLE_BLUE_TEXT":case"STYLE_ALERT_INFO":return{style:"call-to-action", type:"text",state:"active"};case"STYLE_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case"STYLE_WHITE_WITH_BORDER":return{style:"overlay",type:"outline",state:"active"};case"STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case"STYLE_MONO_FILLED_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case"STYLE_MONO_TONAL_OVERLAY":case"STYLE_DARK_ON_BLACK":return{style:"overlay",type:"tonal",state:"active"};case"STYLE_OVERLAY_PROTECTED":return{style:"overlay-dark", type:"tonal",state:"active"};case"STYLE_MONO_FILLED":case"STYLE_DESTRUCTIVE":return{style:"mono",type:"filled",state:"active"};case"STYLE_DEFAULT":case"STYLE_COMPACT_GRAY":case"STYLE_MONO_TONAL":return{style:"mono",type:"tonal",state:"active"};case"STYLE_INACTIVE_OUTLINE":case"STYLE_MONO_OUTLINE":return{style:"mono",type:"outline",state:"active"};case"STYLE_BLUE_TEXT_WITH_INVERSE_THEME":return{style:"call-to-action-inverse",type:"text",state:"active"};case"STYLE_BRAND_GRADIENT":return{style:"brand-gradient", type:"filled",state:"active"};case"STYLE_GENERATIVE_GRADIENT":return{style:"gen-ai-gradient",type:"filled",state:"active"};default:return{style:"mono",type:"text",state:"active"};}} ;var XBb=x("web_button_rework")&&!!Vk("BUTTON_REWORK")||x("web_button_rework_with_live"),eM=function(){var a=E.apply(this,arguments)||this;a.isPressed=!1;a.forceIconButton=!1;a.forceIconOnly=!1;a.forceModernIconButton=!1;a.skipCommandHandling=!1;a.alignByText=!1;a.fitToVisibleBounds=!0;a.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};a.onTap=function(b){Gt(a.hostElement,"yt-service-request-sent-button-renderer",b)}; return a}; k(eM,E);g=eM.prototype;g.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")}; g.onClick=function(a){var b,c=this.disabled||((b=this.data)==null?void 0:b.isDisabled);b=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");c&&b&&a.stopPropagation();var d;(d=this.handleButtonClickCallback)==null||d.call(this)}; g.computeIcon=function(){var a,b,c=(a=this.data)==null?void 0:(b=a.icon)==null?void 0:b.iconType;if(c)return cz(c)}; g.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null}; g.handleUpdateButtonAction=function(a){a=z(a,wmb);var b=z(a==null?void 0:a.updatedButton,TJ);if(this.data&&a&&b){var c=this.data;c.targetId&&a.targetId&&c.targetId===a.targetId&&(this.data=b)}}; ba.Object.defineProperties(eM.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var a=this;if(this.data){var b=SBb({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return Gt(a.hostElement,"yt-service-request-completed-button-renderer")}, onServerError:function(){return Gt(a.hostElement,"yt-service-request-completed-button-renderer")}}, onTapCallback:this.onTap,skipCommandHandling:this.skipCommandHandling,overrides:this.overrides,forceIcon:this.forceIconButton||this.forceIconOnly,forceDisabled:this.disabled,forceModernIconButton:this.forceModernIconButton,nextVersion:!0,isPressed:this.isPressed});b.alignByText=this.alignByText;return b}}}}); ba.Object.defineProperties(eM,{template:{configurable:!0,enumerable:!0,get:function(){if(QBb===void 0){var a=document.createElement("template");Q(a,"[[tooltip]]");QBb=a}a=QBb;return a}}}); eM.prototype.onClick=eM.prototype.onClick;n([F(mz.YtComponentBehavior),r("design:type",Object)],eM.prototype,"ytComponentBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],eM.prototype,"ytRendererBehavior",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],eM.prototype,"ytActionHandlerBehavior",void 0);n([M(),r("design:type",Object)],eM.prototype,"data",void 0);n([M(),r("design:type",Object)],eM.prototype,"isPressed",void 0); n([M(),r("design:type",Object)],eM.prototype,"forceIconButton",void 0);n([M(),r("design:type",Object)],eM.prototype,"forceIconOnly",void 0);n([M(),r("design:type",Object)],eM.prototype,"forceModernIconButton",void 0);n([M(),r("design:type",Object)],eM.prototype,"skipCommandHandling",void 0);n([M(),r("design:type",Object)],eM.prototype,"alignByText",void 0);n([M(),r("design:type",Object)],eM.prototype,"buttonTooltipPosition",void 0); n([M(),r("design:type",Object)],eM.prototype,"fitToVisibleBounds",void 0);n([M({computed:"computeTooltip(data)"}),r("design:type",Object)],eM.prototype,"tooltip",void 0);n([M(),r("design:type",Object)],eM.prototype,"overrides",void 0);n([M(),r("design:type",Boolean)],eM.prototype,"disabled",void 0);n([M(),r("design:type",Function)],eM.prototype,"handleButtonClickCallback",void 0); n([Kt("click"),r("design:type",Function),r("design:paramtypes",[Event]),r("design:returntype")],eM.prototype,"onClick",null);n([H("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),r("design:type",Object),r("design:paramtypes",[])],eM.prototype,"computedButtonShape",null); n([fu({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!XBb,cssBuildOptOut:!0}),fu({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!XBb,cssBuildOptOut:!0})],eM);var YBb,ZBb=function(){return YBb!==void 0?YBb:YBb=document.createElement("template")}; document.head.appendChild(ZBb().content);var $Bb;var aCb=document.head,bCb=aCb.appendChild,cCb;if($Bb===void 0){var dCb=document.createElement("template");Q(dCb,"");dCb.content.insertBefore(ZBb().content.cloneNode(!0),dCb.content.firstChild);$Bb=dCb}cCb=$Bb;bCb.call(aCb,cCb.content);kE("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");var eCb=x("web_button_rework")&&!!Vk("BUTTON_REWORK")||x("web_button_rework_with_live"),fM=function(){return E.apply(this,arguments)||this}; k(fM,E);fM.prototype.created=function(){this.openPopupConfig=Vk("openPopupConfig");this.ytButtonBehavior.showTooltips=!0}; fM.prototype.onYtNavigate_=function(a){var b=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(a.detail.endpoint);b&&(this.ytOpenPopupBehavior.openPopup(b),a.stopPropagation(),a.preventDefault())}; ba.Object.defineProperties(fM,{template:{configurable:!0,enumerable:!0,get:function(){if(PBb===void 0){var a=document.createElement("template");Q(a,"");a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild); var b=a.content,c=b.insertBefore;OBb===void 0&&(OBb=document.createElement("template"));var d=OBb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);PBb=a}a=PBb;return a}}}); fM.prototype.onYtNavigate_=fM.prototype.onYtNavigate_;n([F(nB.YtOpenPopupBehavior),r("design:type",Object)],fM.prototype,"ytOpenPopupBehavior",void 0);n([F(NBb.YtButtonBehavior),r("design:type",Object)],fM.prototype,"ytButtonBehavior",void 0);n([Kt("yt-navigate"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],fM.prototype,"onYtNavigate_",null);n([fu({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:eCb})],fM);bB(O(function(a){return D("yt-toggle-button-view-model",{class:function(){var b;return(b=a.scopingClassName)==null?void 0:b.call(a)}},D(CD,{data:function(){var b; return(b=a.data)==null?void 0:b.call(a)}, buttonShapeOverrides:function(){var b;return(b=a.overrides)==null?void 0:b.call(a)}, animatedTextPropsDefault:function(){var b;return(b=a.animatedTextPropsDefault)==null?void 0:b.call(a)}, animatedTextPropsToggled:function(){var b;return(b=a.animatedTextPropsToggled)==null?void 0:b.call(a)}, disableExplicitClickLogging:function(){var b;return(b=a.disableExplicitClickLogging)==null?void 0:b.call(a)}, onToggle:function(b){var c;return(c=a.onToggle)==null?void 0:c.call(a,b)}, style:function(){var b;return(b=a.style)==null?void 0:b.call(a)}, useOutlinedIcon:function(){var b;return(b=a.useOutlinedIcon)==null?void 0:b.call(a)}, className:function(){var b;return(b=a.className)==null?void 0:b.call(a)}}))},"Na"),"yt-toggle-button-view-model",{props:{data:$A, buttonShapeOverrides:$A,overrides:$A,animatedTextPropsDefault:$A,animatedTextPropsToggled:$A,disableExplicitClickLogging:$A,onToggle:aB,style:$A,useOutlinedIcon:$A,className:$A,scopingClassName:$A}});function fCb(a,b){return yA(a.entities,"likeStatusEntity",b)} function gCb(a,b){return yA(a.entities,"likeCountEntity",b)} function hCb(a,b){return yA(a.entities,"flowStateEntity",b)} function iCb(a,b){return yA(a.entities,"stringEntity",b)} function jCb(a,b){return yA(a.entities,"dataFreshnessEntity",b)} function kCb(a,b){return yA(a.entities,"animationEntity",b)} ;var gM=function(){return E.apply(this,arguments)||this}; k(gM,E);gM.prototype.onTap=function(a){a.stopPropagation();a=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(eA("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:a})):this.ytLiveChatReduxBehavior.dispatch(dA("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:a}))}; ba.Object.defineProperties(gM.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.engagementState)==null?void 0:a.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}}, toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var a=z(this.data.toggleButton,aK),b;if(Number(((b=this.likeCountState)==null?void 0:b.likeCountIfIndifferentNumber)||"0")===0){var c;b=((c=this.data.likeCountPlaceholder)==null?void 0:c.content)||""}else{var d,e,f;b=((d=this.likeCountState)==null?void 0:(e=d.likeCountIfIndifferent)==null?void 0:e.content)||((f=this.data.likeCountPlaceholder)==null?void 0:f.content)||""}var h,m;c=((h=this.likeCountState)==null?void 0:(m=h.likeCountIfLiked)== null?void 0:m.content)||"1";h=z(a.toggledButtonViewModel,ZJ);return Object.assign({},a,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},z(a.defaultButtonViewModel,ZJ),{title:b})},toggledButtonViewModel:{buttonViewModel:Object.assign({},h,{title:c})}})}}}}); gM.prototype.onTap=gM.prototype.onTap;n([F(mz.YtComponentBehavior),r("design:type",Object)],gM.prototype,"ytComponentBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],gM.prototype,"ytRendererBehavior",void 0);n([F(iE),r("design:type",Object)],gM.prototype,"ytLiveChatReduxBehavior",void 0);n([M(),r("design:type",Object)],gM.prototype,"data",void 0);n([M({selectorArgs:["data.likeCountEntityKey"],selector:gCb}),r("design:type",Object)],gM.prototype,"likeCountState",void 0); n([M({selectorArgs:["data.engagementStateKey"],selector:DAb}),r("design:type",Object)],gM.prototype,"engagementState",void 0);n([H("data","engagementState"),r("design:type",Boolean),r("design:paramtypes",[])],gM.prototype,"isLiked",null);n([H("data","likeCountState","isLiked"),r("design:type",Object),r("design:paramtypes",[])],gM.prototype,"toggleButton",null);n([Kt("tap"),r("design:type",Function),r("design:paramtypes",[Event]),r("design:returntype")],gM.prototype,"onTap",null); n([fu({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],gM); Tu(gM,"yt-live-chat-like-button-view-model",function(){if(BBb===void 0){var a=document.createElement("template");Q(a,"\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;ABb===void 0&&(ABb=document.createElement("template"));var d=ABb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);BBb=a}a=BBb;return a},{mode:0});var lCb;var mCb;var hM=function(){return E.apply(this,arguments)||this}; k(hM,E);n([F(Yz.YtRendererBehavior),r("design:type",Object)],hM.prototype,"ytRendererBehavior",void 0);n([M({}),r("design:type",Object)],hM.prototype,"data",void 0);n([fu({disableElementRegistration:!0,is:"yt-live-chat-message-buy-flow-heading-renderer",isInjectionRoot:!0})],hM); Tu(hM,"yt-live-chat-message-buy-flow-heading-renderer",function(){if(mCb===void 0){var a=document.createElement("template");Q(a,"\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;lCb===void 0&&(lCb=document.createElement("template"));var d=lCb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);mCb=a}a=mCb;return a},{mode:0});var nCb;var oCb;var pCb=function(a){this.messageTiers=a;if(!a.length||!a)throw Error("No message tiers were provided.")},qCb=function(a,b){if(!(b>a.messageTiers.length))return a.messageTiers[b]},sCb=function(a,b){if(b===Number(rCb(a).maxPriceMicros))return a.messageTiers.length; a=a.messageTiers.findIndex(function(c){return b>=Number(c.minPriceMicros)&&b<=Number(c.maxPriceMicros)}); return a!==-1?a:0},rCb=function(a){return a.messageTiers[a.messageTiers.length-1]},tCb=function(a,b,c,d){this.minPrice=a; this.maxPrice=b;this.numberFormatter=c;this.messageTiers=d},vCb=function(a,b,c){b=a.numberFormatter.currencyFormatter.parse(b); if(isNaN(b)||ba.maxPrice||Math.round(b*1E6)%a.numberFormatter.currencyUnitMicros!==0)return Object.assign({},c,{isInvalidPrice:!0});c=Math.round(b*1E6);c-=c%a.numberFormatter.currencyUnitMicros;b=sCb(a.messageTiers,c);return uCb(a,c,b)},uCb=function(a,b,c){var d=a.numberFormatter; d=d.currencyFormatter.format(iK(d,b)).replace(d.currencySymbol,"").trim();var e=a.numberFormatter;e=e.currencyFormatter.format(iK(e,b));var f=c;f>=a.messageTiers.messageTiers.length&&(f=a.messageTiers.messageTiers.length-1);var h=qCb(a.messageTiers,f)||qCb(a.messageTiers,0);var m=a.messageTiers;f=f>=m.messageTiers.length?void 0:m.messageTiers[f].durationLabel;h={shouldShowPickers:!(!h.messageTemplate.liveChatPaidMessageRenderer||!h.messageTemplate.liveChatPaidMessageRenderer.inputField)||!(!h.messageTemplate.liveChatMembershipItemRenderer|| !h.messageTemplate.liveChatMembershipItemRenderer.inputField),messageRenderer:h.messageTemplate,maxNumCharacters:Number(h.maxNumCharacters)||0,durationLabel:f,shouldHideDurationLabel:!f};f=a.numberFormatter;f={valueNow:f.currencyFormatter.format(iK(f,b)),valueMin:a.numberFormatter.currencyFormatter.format(a.minPrice),valueMax:a.numberFormatter.currencyFormatter.format(a.maxPrice)};return{sliderIndex:c,priceMicros:b,isInvalidPrice:!1,formattedPrice:d,formattedPriceWithCurrency:e,messagePreviewState:h, sliderAriaState:f,isPriceAdjustable:a.messageTiers.messageTiers.length>1}};var wCb;var xCb;var iM=function(){return E.apply(this,arguments)||this}; k(iM,E);n([F(Yz.YtRendererBehavior),r("design:type",Object)],iM.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],iM.prototype,"data",void 0);n([fu({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],iM); Tu(iM,"yt-live-chat-paid-message-footer-renderer",function(){if(xCb===void 0){var a=document.createElement("template");Q(a,"
\n
\n \n
\n
\n \n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;wCb===void 0&&(wCb=document.createElement("template"));var d=wCb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);xCb=a}a=xCb;return a},{mode:0});var yCb;var zCb;var ACb;var BCb,CCb=function(){if(BCb!==void 0)return BCb;var a=document.createElement("template");Q(a,"\n\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;ACb===void 0&&(ACb=document.createElement("template"));var d=ACb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return BCb=a};var jM=function(){return E.apply(this,arguments)||this}; k(jM,E);jM.prototype.onTap=function(a){a.stopPropagation()}; ba.Object.defineProperties(jM.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var a=z(this.data.replyButton,ZJ),b,c,d,e,f,h,m,p=Number(((b=this.replyCountState)==null?void 0:b.replyCountNumber)||"0")===0?(c=this.data)==null?void 0:(d=c.replyCountPlaceholder)==null?void 0:d.content:((e=this.replyCountState)==null?void 0:(f=e.replyCount)==null?void 0:f.content)||((h=this.data)==null?void 0:(m=h.replyCountPlaceholder)==null?void 0:m.content)||"",q;return Object.assign({}, a,{title:p,accessibilityText:(q=this.replyCountState)==null?void 0:q.replyButtonAccessibilityText})}}}}); ba.Object.defineProperties(jM,{template:{configurable:!0,enumerable:!0,get:function(){return CCb()}}}); jM.prototype.onTap=jM.prototype.onTap;n([F(mz.YtComponentBehavior),r("design:type",Object)],jM.prototype,"ytComponentBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],jM.prototype,"ytRendererBehavior",void 0);n([F(iE),r("design:type",Object)],jM.prototype,"ytLiveChatReduxBehavior",void 0);n([M(),r("design:type",Object)],jM.prototype,"data",void 0);n([M({selectorArgs:["data.replyCountEntityKey"],selector:EAb}),r("design:type",Object)],jM.prototype,"replyCountState",void 0); n([H("data","replyCountState"),r("design:type",Object),r("design:paramtypes",[])],jM.prototype,"buttonViewModel",null);n([Kt("tap"),r("design:type",Function),r("design:paramtypes",[Event]),r("design:returntype")],jM.prototype,"onTap",null);n([fu({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],jM);Tu(jM,"yt-live-chat-reply-button-view-model",function(){return CCb()},{mode:0});var DCb;var ECb;var kM=function(){var a=E.apply(this,arguments)||this;a.ariaLabel="";return a}; k(kM,E); kM.prototype.dataChanged=function(){for(var a=vt(wt(this.hostElement).querySelector("#image"));a.firstChild;)a.removeChild(a.firstChild);if(this.data)if(this.data.icon){var b=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(b.polymerController.icon="yt-sys-icons:shield_empty",b.polymerController.defaultToFilled=!0):b.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();a.appendChild(b)}else if(this.data.customThumbnail){b=document.createElement("img"); var c;(c=(c=EB(this.data.customThumbnail.thumbnails,16))?xb(Fb(c)):null)?(b.src=c,a.appendChild(b),b.setAttribute("alt",this.hostElement.ariaLabel||"")):fo(new Dl("Could not compute URL for thumbnail",this.data.customThumbnail))}}; kM.prototype.identity=function(a){return a}; kM.prototype.computeType=function(a){return QL(a||void 0)}; kM.prototype.dataChanged=kM.prototype.dataChanged;n([M(),r("design:type",Object)],kM.prototype,"data",void 0);n([M({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),r("design:type",Object)],kM.prototype,"ariaLabel",void 0);n([M({computed:"computeType(data)",reflectToAttribute:!0}),r("design:type",String)],kM.prototype,"type",void 0);n([M({computed:"identity(data.tooltip)",reflectToAttribute:!0}),r("design:type",String)],kM.prototype,"sharedTooltipText",void 0); n([M({reflectToAttribute:!0,value:function(){return x("enable_new_shield_moderator_badge")}}), r("design:type",Boolean)],kM.prototype,"enableNewModeratorBadge",void 0);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],kM.prototype,"dataChanged",null);n([fu({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],kM); Tu(kM,"yt-live-chat-author-badge-renderer",function(){if(ECb===void 0){var a=document.createElement("template");Q(a,"
");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;DCb===void 0&&(DCb=document.createElement("template"));var d=DCb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);ECb=a}a=ECb;return a},{mode:0});var FCb;var GCb;var lM=function(){return E.apply(this,arguments)||this}; k(lM,E);g=lM.prototype;g.configureRendererStamper=function(){return{badgesBeforeChip:{id:"prepend-chat-badges",mapping:{liveChatAuthorBadgeRenderer:{component:"yt-live-chat-author-badge-renderer"}}},badgesOutsideChip:{id:"chat-badges",mapping:{liveChatAuthorBadgeRenderer:{component:"yt-live-chat-author-badge-renderer"}}},badgesInsideChip:{id:"chip-badges",mapping:{liveChatAuthorBadgeRenderer:{component:"yt-live-chat-author-badge-renderer"}}}}}; g.computeBadgesInsideChip=function(a){return a?a.filter(function(b){return QL(b.liveChatAuthorBadgeRenderer)==="verified"}):[]}; g.computeBadgesOutsideChip=function(a){return this.prependChatBadges||!a?[]:a.filter(function(b){b=QL(b.liveChatAuthorBadgeRenderer);return b!=="verified"&&b!=="owner"})}; g.computeBadgesBeforeChip=function(a){return this.prependChatBadges&&a?a.filter(function(b){b=QL(b.liveChatAuthorBadgeRenderer);return b!=="verified"&&b!=="owner"}):[]}; g.computeIsHighlighted=function(a,b){var c=!!fBb(a,"owner"),d=!!fBb(a,"verified");a=!!fBb(a,"moderator");return(c||d&&!a)&&!b}; g.computeAuthorType=function(a){return eBb(a)}; g.computeAuthorClass=function(a,b){return b?(a?a+" ":"")+"single-line":a}; g.onSeedColorChanged=function(){x("live_chat_author_name_color_usernames")||x("live_chat_seed_color_usernames")||x("live_chat_colored_usernames")?!this.authorNameColor||this.authorType||this.isHighlighted||this.hostElement.classList.contains("yt-live-chat-paid-message-renderer")||this.hostElement.classList.contains("yt-live-chat-paid-sticker-renderer")||(this.username.style.color=this.authorNameColor):x("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=this.authorNameColor)}; lM.prototype.onSeedColorChanged=lM.prototype.onSeedColorChanged;n([F(mz.YtComponentBehavior),r("design:type",Object)],lM.prototype,"ytComponentBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],lM.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],lM.prototype,"authorName",void 0);n([M(),r("design:type",Array)],lM.prototype,"authorBadges",void 0); n([M({computed:"computeAuthorType(authorBadges)"}),r("design:type",String)],lM.prototype,"authorType",void 0);n([M({computed:"computeAuthorClass(authorType, singleLine)"}),r("design:type",String)],lM.prototype,"authorClass",void 0);n([M({computed:"computeBadgesInsideChip(authorBadges)"}),r("design:type",Array)],lM.prototype,"badgesInsideChip",void 0);n([M({computed:"computeBadgesOutsideChip(authorBadges)"}),r("design:type",Array)],lM.prototype,"badgesOutsideChip",void 0); n([M({computed:"computeBadgesBeforeChip(authorBadges)"}),r("design:type",Array)],lM.prototype,"badgesBeforeChip",void 0);n([M({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),r("design:type",Boolean)],lM.prototype,"isHighlighted",void 0);n([M({reflectToAttribute:!0,value:function(){return x("enable_new_shield_moderator_badge")}}), r("design:type",Boolean)],lM.prototype,"enableNewModeratorTextColor",void 0);n([M({value:!1}),r("design:type",Boolean)],lM.prototype,"singleLine",void 0);n([M({value:!1}),r("design:type",Boolean)],lM.prototype,"disableHighlighting",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],lM.prototype,"dashboardMoneyFeed",void 0);n([M({value:x("live_chat_prepend_badges"),reflectToAttribute:!0}),r("design:type",Boolean)],lM.prototype,"prependChatBadges",void 0); n([M(),r("design:type",String)],lM.prototype,"authorNameColor",void 0);n([Tt("#author-name"),r("design:type",HTMLDivElement)],lM.prototype,"username",void 0);n([Lt("authorNameColor"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],lM.prototype,"onSeedColorChanged",null);n([fu({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],lM); Tu(lM,"yt-live-chat-author-chip",function(){if(GCb===void 0){var a=document.createElement("template");Q(a,"[[getSimpleString(authorName)]]");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;FCb===void 0&&(FCb=document.createElement("template"));var d=FCb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);GCb=a}a=GCb;return a},{mode:0});var HCb;var ICb;var mM=function(){var a=E.apply(this,arguments)||this;a.debounceCommand=zh(function(b){a.ytComponentBehavior.resolveCommand(b)},1500); return a}; k(mM,E);mM.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var a=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",b,c,d=this.isHearted?(b=this.data)==null?void 0:b.unheartCommand:(c=this.data)==null?void 0:c.heartCommand;this.ytLiveChatReduxBehavior.dispatch(eA("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:a}));(a=LB(d))&&this.debounceCommand(a)}}; ba.Object.defineProperties(mM.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var a,b;if(!((a=this.data)==null?0:(b=a.creatorThumbnail)==null?0:b.sources))return{};a={thumbnails:[]};b={};b.url=this.data.creatorThumbnail.sources[0].url;a.thumbnails.push(b);return a}}, isHearted:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.engagementState)==null?void 0:a.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((b=this.engagementState)==null?void 0:b.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}}, isEditable:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.engagementState)==null?void 0:a.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((b=this.engagementState)==null?void 0:b.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}}, showCreatorView:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.engagementState)==null?void 0:a.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}}, showButton:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return((a=this.engagementState)==null?void 0:a.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((b=this.engagementState)==null?void 0:b.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((c=this.engagementState)==null?void 0:c.heartState)==="TOOLBAR_HEART_STATE_HEARTED"}}, label:{configurable:!0,enumerable:!0,get:function(){return this.data?(this.isHearted?this.data.heartedAccessibilityLabel:this.data.unheartedAccessibilityLabel)||"":""}}, heartHoverText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.isHearted?this.data.heartedHoverText:this.data.unheartedHoverText}}}); mM.prototype.onTap=mM.prototype.onTap;n([F(mz.YtComponentBehavior),r("design:type",Object)],mM.prototype,"ytComponentBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],mM.prototype,"ytRendererBehavior",void 0);n([F(iE),r("design:type",Object)],mM.prototype,"ytLiveChatReduxBehavior",void 0);n([M(),r("design:type",Object)],mM.prototype,"data",void 0);n([M({selectorArgs:["data.engagementStateKey"],selector:DAb}),r("design:type",Object)],mM.prototype,"engagementState",void 0); n([H("data"),r("design:type",Object),r("design:paramtypes",[])],mM.prototype,"thumbnailDetails",null);n([H("data","engagementState"),r("design:type",Boolean),r("design:paramtypes",[])],mM.prototype,"isHearted",null);n([H("data","engagementState"),r("design:type",Boolean),r("design:paramtypes",[])],mM.prototype,"isEditable",null);n([H("data","engagementState"),r("design:type",Boolean),r("design:paramtypes",[])],mM.prototype,"showCreatorView",null); n([H("data","engagementState"),r("design:type",Boolean),r("design:paramtypes",[])],mM.prototype,"showButton",null);n([H("data","isHearted"),r("design:type",String),r("design:paramtypes",[])],mM.prototype,"label",null);n([H("data","isHearted"),r("design:type",Object),r("design:paramtypes",[])],mM.prototype,"heartHoverText",null);n([Kt("tap"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],mM.prototype,"onTap",null); n([fu({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],mM); Tu(mM,"yt-live-chat-creator-heart-view-model",function(){if(ICb===void 0){var a=document.createElement("template");Q(a,"\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;HCb===void 0&&(HCb=document.createElement("template"));var d=HCb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);ICb=a}a=ICb;return a},{mode:0});var JCb=0,KCb=/tone[1-5]/,LCb=" \uD83C\uDFFB \uD83C\uDFFC \uD83C\uDFFD \uD83C\uDFFE \uD83C\uDFFF".split(" "),MCb="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" "),NCb=Number.MAX_SAFE_INTEGER, OCb=RegExp("\uFE0F","g"),nM=function(a){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;a&&PCb(this,a)},PCb=function(a,b){try{nl(b,{context:a, onSuccess:function(d,e){Array.isArray(e)?a.load(e):(d=new Dl("Emoji manager JSON response was not an array!",{response:e}),co(d))}, onError:function(d){d=new Dl("Failed to retrieve emoji manager initial JSON data!",{url:b,statusCode:cl(d).toString()});fo(d)}})}catch(d){var c=new Dl("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:b}); fo(c)}}; nM.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1}; nM.prototype.load=function(a,b){if(b)if(a.length)a=a.concat(b.emojis);else{this.emojis=b.emojis;this.emojiMap=b.emojiMap;this.emojiShortcutMap=b.emojiShortcutMap;this.emojiShortcutCharMap=QCb(b);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=b.emojiRegex;return}this.emojis=[].concat(ia(new Set(this.emojis.concat(a))));this.hasInitializedShortcutCharMap=!1;a=Array(this.emojis.length);for(b=0;b0){var f=":"+e[0]+":";if((oM(qM,f)||UCb(qM,f))&&a.indexOf(f)===e.index-1)continue}c.appendChild(b(a.substring(d,e.index)));d=document.createElement("span");d.appendChild(b(e[0]));d.classList.add("mention");c.appendChild(d);d=e.index+ e[0].length}c.appendChild(b(a.substring(d)));return c}, createDocumentFragment:function(a){var b=document.createDocumentFragment();if(a.simpleText)return b.appendChild(this.createDocumentFragmentFromString(a.simpleText)),b;if(!a.runs)return b;for(var c=0;c\n \"[[data.alt]]\"\n [[data.text]]\n\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;$Cb===void 0&&($Cb=document.createElement("template"));var d=$Cb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);aDb=a}a=aDb;return a},{mode:0});var uM=function(a,b,c){return CustomEvent.call(this,a,{detail:{value:b,path:c}})||this}; k(uM,CustomEvent);var vM=function(){var a=E.apply(this,arguments)||this;a.viewerName=null;a.actionMap={"yt-live-chat-actions":"onChatMessage_"};a.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];a.PARTICIPANT_TIME_USEC_=3E8;a.MAX_PARTICIPANTS=100;a.shouldPruneCharMap=x("live_chat_prune_all_participants_char_map");return a}; k(vM,E);g=vM.prototype;g.created=function(){this.allParticipantsCharMap_={};this.JSC$11509_asyncHandle_=null}; g.addParticipant=function(a){var b=aca(this.participants,a,function(d,e){d=d[Object.keys(d)[0]];e=e[Object.keys(e)[0]];d=String(lz(d.authorName)).toLowerCase();e=String(lz(e.authorName)).toLowerCase();return d=0){var c=this.participants[b];c[Object.keys(c)[0]].timestampUsec&&this.splice("participants",b,1,a)}else this.splice("participants",-b-1,0,a);a=a[Object.keys(a)[0]];b=lz(a.authorName).toLocaleLowerCase();c=b.substring(0,2);this.allParticipantsCharMap_.hasOwnProperty(c)||(this.allParticipantsCharMap_[c]={});this.allParticipantsCharMap_[c][b]=a;this.shouldPruneCharMap&&this.capParticipants()}; g.getAuthorsFromPrefix=function(a){return this.allParticipantsCharMap_.hasOwnProperty(a)?this.allParticipantsCharMap_[a]:null}; g.computeViewerRegex_=function(a){if(!a)return null;a=a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var b=a.indexOf("@")===0?"([#]":"([@#]";return new RegExp(b+a.replace(/ /g,"\\s*")+"|^"+a.replace(/ /g,"\\s*")+"$|^"+a.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+a.replace(/ /g,"\\s*")+"$|(?<=\\s)"+a.replace(/ /g,"\\s*")+"(?=\\s))","ig")}; g.checkForStaleParticipants_=function(){var a=this;this.trimOldParticipants_();this.JSC$11509_asyncHandle_&&ct(this.JSC$11509_asyncHandle_);this.participants.length>0&&(this.JSC$11509_asyncHandle_=bt(function(){a.checkForStaleParticipants_()},3E4))}; g.onChatMessage_=function(a){var b=this,c=Date.now()*1E3;a.forEach(function(d){if(d=z(d,FJ)){d=d.item;var e=Object.keys(d)[0];b.SUPPORTED_ITEM_TYPES_.indexOf(e)!=-1&&d[e].timestampUsec>=c-b.PARTICIPANT_TIME_USEC_&&b.addParticipant(d)}},this); this.checkForStaleParticipants_()}; g.trimOldParticipants_=function(){for(var a=Date.now()*1E3,b=this.participants.length-1;b>=0;b--){var c=this.participants[b];c=c[Object.keys(c)[0]];c.timestampUsec&&c.timestampUsec>16&255,a>>8&255,a&255,(a>>24&255)/255].join()+")"}; g.preventDrag=function(a){a.dataTransfer&&(a.dataTransfer.dropEffect="none");a.preventDefault()}; g.preventResize=function(a){a.returnValue=!1}; g.onInputChange=function(){var a=this.characterCount,b=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&b&&b.remove();if(!b&&this.characterCount>this.maxCharacterLimit){var c=window.getSelection();if(c){var d=c.getRangeAt(0);c.removeAllRanges();c.addRange(d)}}if(c=this.getCurrentRange())d=this.calculateTextBeforeRange(c),this.completeEmojisInRange(c,d,!0)||this.updateSuggestions(c,d);d=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(d); Gt(this.hostElement,"yt-live-chat-message-input-change",d);b&&this.characterCount===0&&b.remove();c&&c.commonAncestorContainer.parentElement.id==="input"&&c.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>a):c&&!c.collapsed&&c.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(a=this.input.childNodes.length-1;a>=0;a--)this.input.childNodes[a].nodeName==="BR"&&this.input.childNodes[a].remove()}; g.onCompositionStart=function(){this.inputMethodEditorActive=!0}; g.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var a=this.getCurrentRange();a&&a.commonAncestorContainer.parentElement.id==="input"&&a.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)}; g.mergeOverflowText=function(a){if(a){var b=document.createRange();b.selectNodeContents(a);b=b.extractContents();this.input.insertBefore(b,a)}}; g.checkRangeAtEndOfInput=function(){var a=this.getCurrentRange();if(a){var b=wt(this.hostElement).querySelector("#overflow-text"),c=document.createRange();b&&b.previousSibling?b.previousSibling instanceof HTMLImageElement?c.selectNode(b.previousSibling):c.selectNodeContents(b.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?c.selectNode(this.input.lastChild):c.selectNodeContents(this.input.lastChild));c.collapse(!1);return c.isPointInRange(a.startContainer, a.startOffset)}return!1}; g.handleOverflowText=function(a){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var b=wt(this.hostElement).querySelector("#overflow-text"),c=this.getCurrentRange();this.input.normalize();a=this.checkRangeAtEndOfInput()&&a;this.mergeOverflowText(b);for(var d,e=0,f=0,h,m=this.input.childNodes,p=0;pthis.maxCharacterLimit&&(d=q,e=this.maxCharacterLimit+q.textContent.length-f)):q instanceof HTMLImageElement&&( d=void 0,f=q.dataset.emojiId&&((d=this.data)==null?0:d.emojiCharacterCount)?f+this.data.emojiCharacterCount:f+q.alt.length,d=this.input,e=p);if(f>this.maxCharacterLimit&&d){h=document.createRange();h.collapse(!1);b?(f=this.input.lastChild.previousSibling,f instanceof Text?h.setEnd(this.input.lastChild.previousSibling,f.textContent.length):f instanceof HTMLImageElement&&h.setEnd(this.input,this.input.childNodes.length-1)):h.selectNodeContents(this.input);h.setStart(d,e);break}}h&&(d=!1,c&&(a=h.isPointInRange(c.startContainer, c.startOffset-1)),b||(b=document.createElement("span"),b.id="overflow-text",b.textContent="",b.setAttribute("contenteditable","true"),wt(wt(this.hostElement).querySelector("#input")).appendChild(b),d=!0),b&&(c=h.extractContents(),b.insertBefore(c,b.firstChild),a&&b.firstChild&&(c=document.createRange(),d?c.setStartAfter(b.lastChild):c.setStartAfter(b.firstChild),c.collapse(!0),b=window.getSelection(),b.removeAllRanges(),b.addRange(c))))}}; g.checkForDuplicateSpans=function(){for(var a=0;a=64)break}}; g.getSuggestions=function(a){var b=[],c=a.substring(0,3),d=VCb(qM,c,!0);if(d)for(var e in d)if(e.toLocaleLowerCase().indexOf(a)===0){var f=d[e];if(f&&f.emojiId){if(f=TCb(qM,f.emojiId)){var h=void 0,m=void 0,p=void 0,q=void 0,t=((h=f.image)==null?0:(m=h.accessibility)==null?0:(p=m.accessibilityData)==null?0:p.label)||f.isCustomEmoji?(q=f.shortcuts)==null?void 0:q[0]:f.emojiId;b.push({suggestion:{emoji:!0,image:f.image,alt:t,text:e,textToInsertWhenSelected:f.isCustomEmoji?e:t}})}if(b.length>=64)break}}if(!this.participantsManager)return null; if(c.indexOf("@")===0||c.indexOf("#")===0)d=c.substring(0,1),a=a.substring(1),c.indexOf("@")===0&&(e=this.participantsManager.getAuthorsFromPrefix(c.substring(0,2)),this.getChatParticipantSuggestions(a,e,d,b)),c=c.substring(1),c=this.participantsManager.getAuthorsFromPrefix(c),this.getChatParticipantSuggestions(a,c,d,b);return b?b.sort(function(u,v){return v.suggestion.text0;)if(a.startOffset-b>=0){a.setStart(a.startContainer,a.startOffset-b);break}else{b=a.startContainer instanceof HTMLImageElement?b-a.startContainer.alt.length:b-a.startOffset;var c=a.startContainer.previousSibling;if(!c){a.setStart(a.startContainer,0);break}if(x("live_chat_require_space_for_autocomplete_emoji")){var d=void 0,e=void 0;a.setStart(c,((d=c)==null?void 0:(e=d.textContent)==null?void 0:e.length)||0)}else a.setStart(c,c.childNodes.length||0)}}; g.updateSuggestions=function(a,b){var c=this;this.JSC$11518_lastSuggestionRange&&(this.JSC$11518_lastSuggestionRange.detach(),this.JSC$11518_lastSuggestionRange=null);if((b=bDb.exec(b))&&b.length&&(b=b[b.length-1].toLocaleLowerCase(),b.length>2&&(this.offsetStartOfRangeBy(a,b.length),this.JSC$11518_lastSuggestionRange=a,(a=this.getSuggestions(b))&&a.length))){this.suggestions=a;ms(this,function(){wt(c.hostElement).querySelector("#dropdown-content").scrollTop=16777216}); this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(a.length-1);return}this.dropdown.opened=!1}; g.completeEmojisInRange=function(a,b,c){var d=b.replace(/[\s\xa0]+$/,"");b=b.length-d.length;d=d.split(" ");d=d[d.length-1].trim().toLocaleLowerCase();var e=d.lastIndexOf(":");if(c&&!b&&e!==d.length-1)return!1;e!==-1&&(c=d.lastIndexOf(":",e-1),c!==-1&&(d=d.substring(c)));if((c=UCb(qM,d))&&c.emojiId){c=TCb(qM,c.emojiId)||null;this.offsetStartOfRangeBy(a,d.length+b);var f,h,m,p;d=(((f=c)==null?0:f.isCustomEmoji)?(h=c)==null?void 0:(m=h.shortcuts)==null?void 0:m[0]:(p=c)==null?void 0:p.emojiId)||""; b&&(d+=cDb);this.insertTextAtRange(a,d);this.dropdown.opened=!1;return!0}return!1}; g.onSuggestion=function(a){this.insertSuggestion(a.detail);this.dropdown.opened=!1}; g.onKeyPress=function(a){a.keyCode===13&&(a.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):Gt(this.hostElement,"yt-live-chat-send-message"))}; g.completeEmojis=function(){var a=document.createRange(),b=wt(this.hostElement).querySelector("#input").lastChild;b?a.setStart(b,b.childNodes.length):(a.selectNodeContents(wt(this.hostElement).querySelector("#input")),a.collapse(!1));this.completeEmojisInRange(a,this.calculateTextBeforeRange(a),x("live_chat_require_space_for_autocomplete_emoji"))}; g.maybePreventTextFormatting=function(a){!rda||!a.ctrlKey&&!a.metaKey||a.keyCode!==66&&a.keyCode!==73||(a.stopImmediatePropagation(),a.preventDefault())}; g.onKeyDown=function(a){this.maybePreventTextFormatting(a);if(this.dropdown.opened)switch(a.keyCode){case 27:this.dropdown.opened=!1;a.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;a.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);a.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),a.preventDefault();}}; g.onKeyUp=function(a){switch(a.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret();}if(xd)this.onInputChange()}; g.changeSuggestionIndex=function(a){if(this.dropdown.opened){var b=wt(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)}; ba.Object.defineProperties(xM.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}}, maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.maxCharacterLimit)||0}}, characterCount:{configurable:!0,enumerable:!0,get:function(){return this.computeCharacterCount(this.liveChatRichMessageInput)}}, remainingCharacterCount:{configurable:!0,enumerable:!0,get:function(){return this.maxCharacterLimit-this.characterCount}}, hasText:{configurable:!0,enumerable:!0,get:function(){return this.characterCount>0}}, isInputValid:{configurable:!0,enumerable:!0,get:function(){return this.characterCount===0?this.isValidWithNoInputText:this.characterCount<=this.maxCharacterLimit}}}); xM.prototype.focusedChanged=xM.prototype.focusedChanged;xM.prototype.characterCountChanged=xM.prototype.characterCountChanged;xM.prototype.onSuggestion=xM.prototype.onSuggestion;xM.prototype.onMessageSet=xM.prototype.onMessageSet;xM.prototype.dataChanged=xM.prototype.dataChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],xM.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],xM.prototype,"ytRendererstamperBehavior",void 0); n([M(),r("design:type",Object)],xM.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],xM.prototype,"disabled",void 0);n([H("disabled"),r("design:type",Number),r("design:paramtypes",[])],xM.prototype,"inputTabIndex",null);n([H("data.maxCharacterLimit"),M({readOnly:!0,notify:!0}),r("design:type",Number),r("design:paramtypes",[])],xM.prototype,"maxCharacterLimit",null); n([H("liveChatRichMessageInput"),M({readOnly:!0,notify:!0}),r("design:type",Number),r("design:paramtypes",[])],xM.prototype,"characterCount",null);n([H("maxCharacterLimit, characterCount"),M({readOnly:!0,notify:!0}),r("design:type",Number),r("design:paramtypes",[])],xM.prototype,"remainingCharacterCount",null);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],xM.prototype,"isChatMessageInput",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],xM.prototype,"inputExpanded",void 0); n([M({readOnly:!0,notify:!0}),r("design:type",Object)],xM.prototype,"liveChatRichMessageInput",void 0);n([M(),r("design:type",Object)],xM.prototype,"messageInput",void 0);n([M(),r("design:type",Boolean)],xM.prototype,"ignoreColorMapping",void 0);n([H("characterCount"),M({reflectToAttribute:!0}),r("design:type",Boolean),r("design:paramtypes",[])],xM.prototype,"hasText",null);n([M(),r("design:type",Object)],xM.prototype,"isValidWithNoInputText",void 0); n([H("characterCount","maxCharacterLimit","isValidWithNoInputText"),M(),r("design:type",Boolean),r("design:paramtypes",[])],xM.prototype,"isInputValid",null);n([M({readOnly:!0,value:!1,reflectToAttribute:!0}),r("design:type",Boolean)],xM.prototype,"focused",void 0);n([M(),r("design:type",Array)],xM.prototype,"suggestions",void 0);n([M(),r("design:type",nM)],xM.prototype,"emojiManager",void 0);n([M(),r("design:type",vM)],xM.prototype,"participantsManager",void 0); n([M(),r("design:type",Boolean)],xM.prototype,"noUnderline",void 0);n([M(),r("design:type",Object)],xM.prototype,"inputMethodEditorActive",void 0);n([Tt("#dropdown"),r("design:type",Object)],xM.prototype,"dropdown",void 0);n([Tt("#input"),r("design:type",HTMLElement)],xM.prototype,"input",void 0);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],xM.prototype,"dataChanged",null); n([Lt("messageInput"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],xM.prototype,"onMessageSet",null);n([Kt("yt-live-chat-select-suggestion"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],xM.prototype,"onSuggestion",null);n([Lt("characterCount"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],xM.prototype,"characterCountChanged",null); n([Lt("focused"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],xM.prototype,"focusedChanged",null);n([fu({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],xM); var eDb=Tu(xM,"yt-live-chat-text-input-field-renderer",function(){if(ZCb===void 0){var a=document.createElement("template");Q(a,"\n
\n
\n
\n
\n
\n\n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;YCb===void 0&&(YCb=document.createElement("template"));var d=YCb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);ZCb=a}a=ZCb;return a},{mode:0});function yM(a){if(!a)return null;for(var b=[],c=0;c
\n
\n \n \n \n
\n
\n
\n
\n \n \n
\n
\n
\n \n \n
\n \n
\n
\n
\n
\n [[timestampString]]\n
\n
\n
\n
\n \n \n \n
\n
\n
\n
\n
\n
\n
\n \n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;yCb===void 0&&(yCb=document.createElement("template"));var d=yCb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);zCb=a}a=zCb;return a},{mode:0});var gDb={};gDb.YtLiveChatDialogBehavior={properties:{hidden:{type:Boolean,reflectToAttribute:!0,observer:"hiddenChanged_"}},observers:["isAttachedChanged_(isAttached)"],created:function(){this.restoreFocusNode_=null}, attached:function(){document.addEventListener("focus",this.onFocus_.bind(this),!0)}, detached:function(){this.restoreFocusNode_=null;document.removeEventListener("focus",this.onFocus_.bind(this),!0)}, focusChild_:function(){var a=this;window.requestAnimationFrame(function(){a.restoreFocusNode_||(a.restoreFocusNode_=document.activeElement);var b=Phb(a.hostElement);b.length&&b[b.length-1].focus()})}, isAttachedChanged_:function(a,b){a?this.focusChild_():b&&this.restoreFocus_()}, hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()}, restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)}, onFocus_:function(a){this.hidden||lt(a).indexOf(this.hostElement)!==-1||(a.stopPropagation(),this.focusChild_())}};var hDb;var iDb;var AM=function(){return E.apply(this,arguments)||this}; k(AM,E);AM.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}}; AM.prototype.onClick=function(a){a.target!==this.confirmButton&&a.target!==this.cancelButton&&(this.hidden=!0)}; n([Tt("#confirm_button"),r("design:type",Object)],AM.prototype,"confirmButton",void 0);n([Tt("#cancel_button"),r("design:type",Object)],AM.prototype,"cancelButton",void 0);n([M(),r("design:type",jDb)],AM.prototype,"data",void 0);n([M({value:!0,reflectToAttribute:!0}),r("design:type",Boolean)],AM.prototype,"hidden",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],AM.prototype,"ytRendererstamperBehavior",void 0); n([F(gDb.YtLiveChatDialogBehavior),r("design:type",Object)],AM.prototype,"ytLiveChatDialogBehavior",void 0);n([fu({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],AM); var jDb=Tu(AM,"yt-live-chat-dialog-renderer",function(){if(iDb===void 0){var a=document.createElement("template");Q(a,"
\n \n \n \n
\n \n \n
\n
\n
\n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;hDb===void 0&&(hDb=document.createElement("template"));var d=hDb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);iDb=a}a=iDb;return a},{mode:0});var kDb;var lDb;var BM=function(){var a=E.apply(this,arguments)||this;a.icon=null;return a}; k(BM,E);BM.prototype.dismiss=function(){Gt(this.hostElement,"yt-live-chat-error-message-dismiss")}; BM.prototype.computeIcon=function(a){return a&&a.iconType?"yt-icons:"+a.iconType.toLowerCase():"yt-icons:close"}; n([M(),r("design:type",Object)],BM.prototype,"data",void 0);n([M({computed:"computeIcon(data.icon)"}),r("design:type",Object)],BM.prototype,"icon",void 0);n([fu({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],BM); Tu(BM,"yt-live-chat-error-message-renderer",function(){if(lDb===void 0){var a=document.createElement("template");Q(a,"\n \n\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;kDb===void 0&&(kDb=document.createElement("template"));var d=kDb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);lDb=a}a=lDb;return a},{mode:0});var mDb;var nDb;var CM=function(){var a=E.apply(this,arguments)||this;a.tooltip=null;a.data=null;a.id="";a.active=!1;a.icon="";a.disabled=!1;a.showTooltip=!1;a.useToggledActiveState=!0;a.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return a}; k(CM,E);g=CM.prototype; g.dataChanged=function(){var a;((a=this.data)==null?0:a.tooltip)?(this.tooltip||(this.tooltip=document.createElement("tp-yt-paper-tooltip"),this.tooltip.position="top",this.tooltip.offset=8,this.tooltip.fitToVisibleBounds=!0,this.tooltip.style.right="0",this.hostElement.appendChild(this.tooltip)),vt(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var b;if((b=this.data)==null?0:b.disabled)this.disabled=!0}; g.computeId=function(a){return a}; g.computeIcon=function(a,b){if(!a)return"";if(this.useToggledActiveState)return"yt-icons:"+a.toLowerCase();var c,d;return b&&((c=this.data)==null?0:(d=c.toggledIcon)==null?0:d.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+a.toLowerCase()}; g.logPDGEntryPoint=function(){var a=Av("FLOW_EVENT_NAMESPACE_PDG_BUY_FLOW",1,{pdgBuyFlowContext:{entryPointClickedContext:{sharedPdgBuyFlowEntryPoint:"SHARED_PDG_BUY_FLOW_ENTRY_POINT_LIVE_CHAT_MONEY_BUTTON"}}}),b=zv(),c=UIa(b,"FLOW_TYPE_PDG_BUY_FLOW",!0);b.logFlowEvent(a,"FLOW_TYPE_PDG_BUY_FLOW",c,void 0)}; g.immediatelyShowTooltip=function(){var a=wt(this.hostElement).querySelector("#tooltip");a.animationDelay=0;a.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};a.show()}; g.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")}; g.onClick=function(a){var b;((b=this.data)==null?0:b.disabled)?this.showTooltip&&this.immediatelyShowTooltip():(this.active=!this.active,this.tooltip&&(this.tooltip.hide(),this.maybeUpdateTooltipText()),this.active&&this.data&&(this.ytRendererBehavior.logExplicitClick(this.data),this.id==="product-picker"&&(this.logPDGEntryPoint(),a.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),Gt(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))}; g.computeShowTooltip=function(a,b){return!!(a&&a.tooltip&&b)}; g.maybeUpdateTooltipText=function(){var a=this,b;if((b=this.data)==null?0:b.tooltip){var c=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){vt(a.tooltip).textContent=c},250)}}; g.handleLiveChatActions=function(a){var b=this;a.length&&(this.id!=="creator"&&this.id!=="product-picker"||a.forEach(function(c){(c=b.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",c))&&c.durationSec===c.fullDurationSec&&b.startBubble(b.colorFromDecimal(c.startBackgroundColor))}))}; g.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")}; g.startBubble=function(a){Ft(this.hostElement,{"--yt-live-chat-monetization-button-glow":a});this.hostElement.setAttribute("bubble","")}; g.removeBubble=function(){this.hostElement.removeAttribute("bubble")}; g.colorFromDecimal=function(a){typeof a==="string"&&(a=Number(a));return"rgba("+[a>>16&255,a>>8&255,a&255,(a>>24&255)/255].join()+")"}; CM.prototype.onAnimationEnd=CM.prototype.onAnimationEnd;CM.prototype.disabledChanged=CM.prototype.disabledChanged;CM.prototype.dataChanged=CM.prototype.dataChanged;n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],CM.prototype,"ytActionHandlerBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],CM.prototype,"ytRendererBehavior",void 0);n([F(hL.YtLiveChatTooltipTargetingBehavior),r("design:type",Object)],CM.prototype,"ytLiveChatTooltipTargetingBehavior",void 0); n([M(),r("design:type",Object)],CM.prototype,"data",void 0);n([M({computed:"computeId(data.targetId)",reflectToAttribute:!0}),r("design:type",Object)],CM.prototype,"id",void 0);n([M({notify:!0,reflectToAttribute:!0}),r("design:type",Object)],CM.prototype,"active",void 0);n([M({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),r("design:type",Object)],CM.prototype,"icon",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],CM.prototype,"disabled",void 0); n([M({computed:"computeShowTooltip(data, disabled)"}),r("design:type",Object)],CM.prototype,"showTooltip",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],CM.prototype,"useToggledActiveState",void 0);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],CM.prototype,"dataChanged",null);n([Lt("disabled"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],CM.prototype,"disabledChanged",null); n([Kt("animationend"),r("design:type",Function),r("design:paramtypes",[Event]),r("design:returntype")],CM.prototype,"onAnimationEnd",null);n([fu({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],CM); Tu(CM,"yt-live-chat-icon-toggle-button-renderer",function(){if(nDb===void 0){var a=document.createElement("template");Q(a,"\n \n
\n \n \n
\n
\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;mDb===void 0&&(mDb=document.createElement("template"));var d=mDb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);nDb=a}a=nDb;return a},{mode:0});var oDb;var pDb;var qDb={},DM=function(){return kt.apply(this,arguments)||this}; k(DM,kt);DM.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)}; DM.prototype.onLiveChatMembershipItemBehaviorClick=DM.prototype.onLiveChatMembershipItemBehaviorClick;n([F(Yz.YtRendererBehavior),r("design:type",Object)],DM.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],DM.prototype,"data",void 0);n([Kt("click"),r("design:type",Function),r("design:paramtypes",[Event]),r("design:returntype")],DM.prototype,"onLiveChatMembershipItemBehaviorClick",null);n([Vt()],DM);qDb.YtLiveChatMembershipItemBehavior=[DM.prototype,Yz.YtRendererBehavior];var EM=function(){var a=E.apply(this,arguments)||this;a.supportsInlineActionButtons=!0;a.hasPrimaryHeaderText=!1;a.showOnlyHeader=!1;a.authorBadges=[];a.modern=x("web_button_rework_with_live");a.buttonOverrides={style:"overlay",type:"filled"};return a}; k(EM,E);g=EM.prototype;g.shouldSupportInlineActionButtons=function(){return!0}; g.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}}; g.ready=function(){var a=document.querySelector("yt-live-chat-app");a&&a.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")}; g.messageChanged=function(){var a=this.data.message,b=vt(wt(this.hostElement).querySelector("#message"));b.textContent="";a&&b.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(a))}; g.computeHasPrimaryHeaderText=function(a){return!(!a||!a.headerPrimaryText)}; g.computeShowOnlyHeader=function(a,b){return this.isMessageEmpty(a,b)}; g.computeAuthorBadges=function(a){return a.authorBadges||[]}; g.isMessageEmpty=function(a,b){return!a||a.empty?!0:!a.message&&!a.inputField&&!b}; g.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))}; g.getInputElement=function(){return wt(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")}; g.inputFocus=function(){var a=this.getInputElement();a&&a.focus()}; g.inputInsertEmoji=function(a){var b=this.getInputElement();b&&b.insertEmoji(a)}; g.inputMessage=function(){var a=this.getInputElement();return a&&this.data.inputField?(a.completeEmojis(),yM(a.liveChatRichMessageInput)):null}; g.onFooterButtonClick=function(){this.data.footerButton&&Gt(this.hostElement,"yt-live-chat-clear-pinned-message")}; g.shouldSupportWholeItemClick=function(){return!0}; EM.prototype.isDeletedChanged=EM.prototype.isDeletedChanged;EM.prototype.messageChanged=EM.prototype.messageChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],EM.prototype,"ytRendererBehavior",void 0);n([F(rM.YtLiveChatItemBehavior),r("design:type",sM)],EM.prototype,"ytLiveChatItemBehavior",void 0);n([F(qDb.YtLiveChatMembershipItemBehavior),r("design:type",Object)],EM.prototype,"ytLiveChatMembershipItemBehavior",void 0); n([F($C.YtRendererstamperBehavior),r("design:type",Object)],EM.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],EM.prototype,"data",void 0);n([M({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),r("design:type",Object)],EM.prototype,"hasPrimaryHeaderText",void 0);n([M({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),r("design:type",Object)],EM.prototype,"showOnlyHeader",void 0); n([M({computed:"computeAuthorBadges(data)"}),r("design:type",Array)],EM.prototype,"authorBadges",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],EM.prototype,"modern",void 0);n([Lt("data.message"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],EM.prototype,"messageChanged",null);n([Lt("isDeleted"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],EM.prototype,"isDeletedChanged",null); n([fu({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],EM); Tu(EM,"yt-live-chat-membership-item-renderer",function(){if(pDb===void 0){var a=document.createElement("template");Q(a,"
\n
\n \n \n
\n
\n
\n \n
[[getSimpleString(data.headerPrimaryText)]]
\n
\n
[[getSimpleString(data.headerSubtext)]]
\n
\n
[[timestampString]]
\n
\n
\n \n \n \n
\n
\n
\n
\n
\n \n
\n \n
\n
\n
\n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;oDb===void 0&&(oDb=document.createElement("template"));var d=oDb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);pDb=a}a=pDb;return a},{mode:0});var rDb;var sDb;var tDb;var FM=function(){var a=E.apply(this,arguments)||this;a.checked=!1;a.disabled=!1;a.indeterminate=!1;a.icon="";a.hideLabel=!1;return a}; k(FM,E);g=FM.prototype;g.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"space:keydown":"onClick"}}; g.attached=function(){this.hostElement.setAttribute("role","checkbox");this.hostElement.setAttribute("tabindex","0")}; g.onClick=function(){if(!this.disabled){this.checked=!this.checked;this.hostElement.dispatchEvent(new CustomEvent("yt-checkbox-renderer-changed",{detail:{checked:this.checked},bubbles:!0,composed:!0}));var a;if((a=this.data)==null?0:a.onSelectionChangeCommand)this.isMusicWeb?this.ytComponentBehavior.resolveCommand(this.data.onSelectionChangeCommand):$u(this.hostElement,[this.data.onSelectionChangeCommand])}}; g.dataChanged=function(){this.data&&(this.disabled=this.data.isDisabled||!1,this.checked=this.data.checkedState==="CHECKBOX_CHECKED_STATE_CHECKED",this.indeterminate=this.data.checkedState==="CHECKBOX_CHECKED_STATE_INDETERMINATE",this.hideLabel=!this.data.label)}; g.stateChanged=function(){this.checked?(this.icon=this.getIcon("check_box"),this.hostElement.ariaChecked="true"):this.indeterminate?(this.icon=this.getIcon("check_box_bar"),this.hostElement.ariaChecked="mixed"):(this.icon=this.getIcon("check_box_outline_blank"),this.hostElement.ariaChecked="false");this.hostElement.setAttribute("aria-checked",this.hostElement.ariaChecked||"")}; g.getIcon=function(a){return(this.isMusicWeb?"":"yt-sys-icons:")+a}; FM.prototype.stateChanged=FM.prototype.stateChanged;FM.prototype.dataChanged=FM.prototype.dataChanged;FM.prototype.onClick=FM.prototype.onClick;n([F(Lw),r("design:type",Object)],FM.prototype,"ironA11yKeysBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],FM.prototype,"ytComponentBehavior",void 0);n([M(),r("design:type",Object)],FM.prototype,"data",void 0);n([M(),r("design:type",Object)],FM.prototype,"checked",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],FM.prototype,"disabled",void 0);n([M(),r("design:type",Object)],FM.prototype,"indeterminate",void 0);n([M({value:Vk("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"}),r("design:type",Boolean)],FM.prototype,"isMusicWeb",void 0);n([Kt("click"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],FM.prototype,"onClick",null); n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],FM.prototype,"dataChanged",null);n([Lt("checked","disabled","indeterminate"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],FM.prototype,"stateChanged",null);n([fu({is:"yt-checkbox-renderer",disableElementRegistration:!0})],FM); Tu(FM,"yt-checkbox-renderer",function(){if(tDb===void 0){var a=document.createElement("template");Q(a,"\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;sDb===void 0&&(sDb=document.createElement("template"));var d=sDb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);tDb=a}a=tDb;return a},{mode:2});var GM=function(){var a=E.apply(this,arguments)||this;a.hasCheckbox=!1;return a}; k(GM,E);GM.prototype.configureRendererStamper=function(){return{"data.checkboxRenderer":{id:"checkbox",mapping:{checkboxRenderer:"yt-checkbox-renderer"}}}}; GM.prototype.dataChanged=function(){var a;this.hasCheckbox=!((a=this.data)==null||!a.checkboxRenderer)}; GM.prototype.dataChanged=GM.prototype.dataChanged;n([F($C.YtRendererstamperBehavior),r("design:type",Object)],GM.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],GM.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],GM.prototype,"hasCheckbox",void 0);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],GM.prototype,"dataChanged",null); n([gu({disableElementRegistration:!0,is:"ytd-pdg-banner-renderer"})],GM); Tu(GM,"ytd-pdg-banner-renderer",function(){if(rDb!==void 0)return rDb;var a=document.createElement("template");Q(a,"
\n
\n \n
\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return rDb=a},{mode:1});var uDb={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(a){var b=this.$.pickers.selected;if(b){wt(this.hostElement).removeAttribute(b+"-open");var c="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(c="#picker-buttons",b==="emoji"&&wt(this.hostElement).querySelector("#emoji-picker-button")&&(c="#emoji-picker-button"));if(c=wt(this.hostElement).querySelector(c).querySelector("#"+b))c.active=!1}c=a;b==a&&(c=null);b!=a&&wt(this.hostElement).setAttribute(a+ "-open","");this.$.pickers.selected=c;Xu(this.hostElement,"yt-live-chat-picker-changed",[c])}, onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var HM=function(){var a=kt.apply(this,arguments)||this;a.focusedIndex=0;a.verticalOffset=0;a.verticalAlign="top";a.dynamicAlign=!0;return a}; k(HM,kt);HM.prototype.emojiUrl=function(a){a=oM(this.emojiManager,a);if(!a)return"";var b;a=(b=a.image)==null?void 0:b.thumbnails;return EB(a,24)||""}; var vDb=function(a){var b;a.emojiVariants&&(b=a.data)!=null&&b.target&&ms(a,function(){a.set("verticalOffset",-1*a.hostElement.clientHeight);var c=wt(a.hostElement).querySelector("img");c&&c.focus()})}; g=HM.prototype;g.onKeyboardEnter=function(){}; g.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()}; g.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())}; g.onKeyDown=function(a){switch(a.keyCode){case 13:this.onKeyboardEnter();a.preventDefault();break;case 40:this.changeFocus(1);a.preventDefault();break;case 38:this.changeFocus(-1);a.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close();}}; g.onYtEmojiSelect=function(a){var b=this,c,d,e,f,h,m,p,q;return ra(function(t){if(t.nextAddress==1)return d=(c=b.data)==null?void 0:c.emoji,h=((e=d)==null?void 0:e.stickyPrefId)||((f=d)==null?void 0:f.emojiId),p=(m=a.detail)==null?void 0:m.emojiId,h&&p&&h!==p?t.yield((q=b.emojiManager)==null?void 0:WCb(q,d,p),2):t.return();Xu(b.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[d,p]);t.jumpToEnd()})}; g.changeFocus=function(a){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+a+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex
\n \n
\n
\n\n \"[[data.emoji.emojiId]]\"\n \"[[getEmojiAltTextForDraftEmoji(composedEmojiSelection)]]\"\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;xDb===void 0&&(xDb=document.createElement("template"));var d=xDb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);yDb=a}a=yDb;return a},{mode:2});var CDb;var DDb;var JM=function(){var a=E.apply(this,arguments)||this;a.tooltip_=null;return a}; k(JM,E);g=JM.prototype;g.dataChanged_=function(){var a;if((a=this.data)==null?0:a.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),wt(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),vt(this.tooltip_).textContent=this.data.tooltip}; g.computeTargetId=function(){var a;return((a=this.data)==null?void 0:a.targetId)||""}; g.computeId_=function(a){return a}; g.computeIcon_=function(a){return cz(a)}; g.onTap_=function(){this.active=!this.active;Gt(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})}; g.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new uM("active-changed",this.active))}; ba.Object.defineProperties(JM.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var a,b;if((a=this.data)==null?0:(b=a.icon)==null?0:b.iconType)return this.data.icon.iconType==="SUPER_STICKER";var c,d;return((c=this.data)==null?void 0:(d=c.icon)==null?void 0:d.iconType)==="VIDEO_YOUTUBE"?!0:!1}}}); JM.prototype.activeChangedForBinding=JM.prototype.activeChangedForBinding;JM.prototype.dataChanged_=JM.prototype.dataChanged_;n([F(hL.YtLiveChatTooltipTargetingBehavior),r("design:type",Object)],JM.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);n([M(),r("design:type",Object)],JM.prototype,"data",void 0);n([M({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),r("design:type",String)],JM.prototype,"id",void 0); n([M({computed:"computeTargetId(data.targetId)"}),r("design:type",String)],JM.prototype,"targetId",void 0);n([M({value:!1,reflectToAttribute:!0}),r("design:type",Boolean)],JM.prototype,"active",void 0);n([M({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),r("design:type",String)],JM.prototype,"icon",void 0);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],JM.prototype,"dataChanged_",null); n([H("data"),r("design:type",Boolean),r("design:paramtypes",[])],JM.prototype,"iconFilled",null);n([Lt("active"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],JM.prototype,"activeChangedForBinding",null);n([fu({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],JM); Tu(JM,"yt-emoji-picker-category-button-renderer",function(){if(DDb===void 0){var a=document.createElement("template");Q(a,"\n \n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;CDb===void 0&&(CDb=document.createElement("template"));var d=CDb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);DDb=a}a=DDb;return a},{mode:2});var EDb;var FDb;var KM=function(){var a=E.apply(this,arguments)||this;a.ariaLabel=null;a.ariaActivedescendant=null;a.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};a.JSC$11596_ignoreNextFocus_=!1;a.longPressTimeoutId=-1;return a}; k(KM,E);g=KM.prototype;g.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")}; g.detached=function(){clearTimeout(this.longPressTimeoutId)}; g.emojiChanged_=function(){this.changeFocus_(0,!1);for(var a=gz(),b=0;b
"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;EDb===void 0&&(EDb=document.createElement("template"));var d=EDb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);FDb=a}a=FDb;return a},{mode:2});var HDb;var IDb;var JDb;var KDb;var LM=function(){var a=E.apply(this,arguments)||this;a.ariaLabel=null;a.ariaActivedescendant=null;a.getFormattedStringRawText=lz;a.JSC$11602_ignoreNextFocus_=!1;return a}; k(LM,E);g=LM.prototype;g.attached=function(){this.hostElement.hasAttribute("aria-live")||this.hostElement.setAttribute("aria-live","polite");this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")}; g.emojiUrl=function(a){var b,c;a=(b=pM(this.emojiManager,a,!0))==null?void 0:(c=b.image)==null?void 0:c.thumbnails;return EB(a,24)||""}; g.emojiAlt=function(a){var b=this.get("image.accessibility.accessibilityData.label",a);return b?b:a.isCustomEmoji?a.shortcuts[0]:a.emojiId}; g.emojiId=function(a){return"emoji"+a}; g.computeId_=function(a){return a.categoryId||""}; g.computeAriaActivedescendant_=function(a){return this.emoji&&a
"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;JDb===void 0&&(JDb=document.createElement("template"));var d=JDb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);KDb=a}a=KDb;return a},{mode:2});var MDb;var NDb;var MM=function(){var a=E.apply(this,arguments)||this;a.scrollAction="lock";a.verticalAlign="top";return a}; k(MM,E);g=MM.prototype;g.onClick=function(a){a=mt(a);a instanceof HTMLImageElement&&Gt(this.hostElement,"yt-emoji-select",oM(this.emojiManager,a.id))}; g.openSelector=function(){this.ironOverlayBehavior.open()}; g.onDomChange=function(){vDb(this.ytEmojiSelectorBehavior)}; g.computeIsFamilySelector=function(a){var b;return(a==null?void 0:(b=a.emoji)==null?void 0:b.emojiId)==="\uD83D\uDC6A"}; g.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex
\n \n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;MDb===void 0&&(MDb=document.createElement("template"));var d=MDb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);NDb=a}a=NDb;return a},{mode:2});var ODb=/:/g,PDb=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],NM=function(){var a=E.apply(this,arguments)||this;a.emojiVariantSelector=null;a.emojiMultiPersonSelector=null;a.identity=sha;a.lastAnimationTime_=0;a.animationStart_=null;a.animationEnd_=null;return a}; k(NM,E);g=NM.prototype; g.configureRendererStamper=function(){return{categories:{id:"categories",mapping:{emojiPickerCategoryRenderer:{component:"yt-emoji-picker-category-renderer",properties:{disableIncrementalLoading:"[[disableIncrementalLoading]]",emojiManager:"[[emojiManager]]",shouldUseStickyPreferences:"[[shouldUseStickyPreferences]]"}},emojiPickerUpsellCategoryRenderer:{component:"yt-emoji-picker-upsell-category-renderer",properties:{emojiManager:"[[emojiManager]]"}}}},categoryButtons:{id:"category-buttons",mapping:{emojiPickerCategoryButtonRenderer:"yt-emoji-picker-category-button-renderer"}}, emojiVariantSelector:{id:"emoji-variant-selector",mapping:{ytEmojiVariantSelector:{component:"yt-emoji-variant-selector",properties:{emojiManager:"[[emojiManager]]"}}},reuseComponents:!1},emojiMultiPersonSelector:{id:"emoji-multi-person-selector",mapping:{ytEmojiMultiPersonSelector:{component:"yt-emoji-multi-person-selector",properties:{emojiManager:"[[emojiManager]]"}}},reuseComponents:!1}}}; g.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=qM)}; g.attached=function(){xd&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&SCb(this.emojiManager)}; g.dataChanged=function(){var a;if((a=this.data)==null?0:a.categories){a=this.emojiManager;var b=this.getCustomEmojiIds();a.pickerCustomEmojiIds=[].concat(ia(MCb),ia(b))}}; g.getCustomEmojiIds=function(){var a,b=(a=this.data.categories)==null?void 0:a.find(function(f){var h;return((h=f.emojiPickerCategoryRenderer)==null?void 0:h.categoryId)&&PDb.includes(f.emojiPickerCategoryRenderer.categoryId)}),c; a=(c=this.data.categories)==null?void 0:c.find(function(f){return f.emojiPickerUpsellCategoryRenderer}); var d,e;return[b==null?void 0:(d=b.emojiPickerCategoryRenderer)==null?void 0:d.emojiIds,a==null?void 0:(e=a.emojiPickerUpsellCategoryRenderer)==null?void 0:e.emojiIds].flat().filter(function(f){return!!f})}; g.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)}; g.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)}; g.updateCategoriesAndPlaceholderInternal=function(a,b){var c=this;a&&b&&(this.categories=a.categories||[],this.categoryButtons=a.categoryButtons||[],this.resetPlaceholder(),this.search="",bt(function(){c.updateButtons_()}))}; g.computeId_=function(a){return a.id||""}; g.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(a){return a.emojiPickerCategoryRenderer&&a.emojiPickerCategoryRenderer.emojiData}):!1}; g.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))}; g.onShowEmojiVariantSelector=function(a){var b=a.detail.emojiData;b.variantIds&&b.variantIds.length&&(b.multiSelectorThumbnailRow&&b.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:b,target:a.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:b,target:a.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))}; g.onIronOverlayClosed=function(a){var b=TCb(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");b&&a.composedPath&&(a.composedPath().includes(wt(this.hostElement).querySelector("#emoji-variant-selector"))||a.composedPath().includes(wt(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(Xu(this.hostElement,"yt-close-emoji-variant-selector",[b.emojiId]), this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))}; g.onEmojiVariantSelectorMouseup=function(a){var b=a.target.firstChild;this.variantSelectorOpened&&b&&bt(function(){b.noCancelOnOutsideClick=!1},100)}; g.onEmojiVariantSelectorMousedown=function(a){a=a.target.firstChild;this.variantSelectorOpened&&a&&(a.noCancelOnOutsideClick=!1)}; g.onSelectCategory_=function(a){var b=this.search!="";this.search="";for(var c=wt(this.hostElement).querySelector("#categories").children,d=0;d1}; g.computeSkinToneHidden=function(){var a;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((a=this.data)==null||!a.hideSkinTonePicker)}; g.computeDisableScroll=function(){return!!this.emojiVariantSelector}; g.openSkinToneSelector=function(){this.skinToneOpened=!0}; g.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)}; g.clearSearch=function(){this.resetPlaceholder();this.search=""}; g.selectSkinTone_=function(a){a=Number(a.target.getAttribute("tone"));this.set("emojiManager.skinTone",a);Xu(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[a]);this.skinToneOpened=!1;this.resetPlaceholder()}; g.skinToneChanged_=function(){wt(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var a=wt(this.hostElement).querySelector("#dropdown-content").children,b=0;b
");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;HDb===void 0&&(HDb=document.createElement("template"));var d=HDb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);IDb=a}a=IDb;return a},{mode:2});Polymer({is:"yt-live-chat-message-buy-flow-renderer",_template:function(){if(oCb===void 0){var a=document.createElement("template");Q(a,"\n
\n
\n \n \n \n
[[getSimpleString(data.headerText)]]
\n
\n
\n
\n \n
\n
\n \n
\n
\n
\n \n
\n \n
\n
\n
\n
\n \n \n\n \n
\n
\n \n \n \n \n
\n
\n \n
\n
\n \n
\n
\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;nCb===void 0&&(nCb=document.createElement("template"));var d=nCb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);oCb=a}a=oCb;return a}, hostAttributes:{tabindex:0},properties:{data:{type:Object,observer:"dataChanged_"},emojiManager:Object,superChatEmojiManager:{type:Object,value:function(){return new nM}}, participantsManager:Object,messageInput:{type:Object,value:null,readOnly:!0},selectedPage:{type:Number,value:0},currencySymbol:{type:String,computed:"computeCurrencySymbol_(data.currency)"},hideCurrencySymbol:{type:Boolean,computed:"computeHideCurrencySymbol_(currencySymbol, data.currency)"},priceMaxDigits:{type:Number,readOnly:!0},messageTooLong:{type:Boolean,computed:"computeMessageTooLong_(characterCountDisplay, maxCharacterCount)",reflectToAttribute:!0},isInvalidPrice:{type:Boolean,value:!1,readOnly:!0, reflectToAttribute:!0},buyButtonDisabled:{type:Boolean,computed:"computeBuyButtonDisabled_(messageTooLong, isInvalidPrice)"},priceMicros:{type:Number,value:0},messageTiers:{type:Object},disclaimerHeader:{type:Object,computed:"computeDisclaimerHeader(sliderIndex, messageTiers)"},disclaimerText:{type:Object,computed:"computeDisclaimerText(sliderIndex, messageTiers)"},durationLabel:{type:Object,readOnly:!0,value:null},hideDurationLabel:{type:Boolean,readOnly:!0,reflectToAttribute:!0},messagePreviewRenderer:Object, messageCharacterCount:{type:Number,value:0},characterCountDisplay:{type:Number,computed:"computeCharacterCountDisplay_(messageCharacterCount, maxCharacterCount)"},maxCharacterCount:{type:Number,value:0},priceInputValue:{type:String,observer:"adjustInputWidth_"},priceMin:{type:Number,readOnly:!0},priceMax:{type:Number,readOnly:!0},sliderIndex:Number,sliderMax:{type:Number},sliderMaxMarkers:{type:Number,computed:"computeSliderMaxMarkers_(sliderMax)"},messageTemplate:{type:Object,readOnly:!0},shouldShowPickers:{type:Boolean, value:!0,readOnly:!0},isPriceAdjustable:{type:Boolean,value:!0,readOnly:!0},arePriceControlsHidden:{type:Boolean,computed:"computeArePriceControlsHidden(isPriceAdjustable, messageTemplate)"},buyButtonText:{type:String,value:"",readOnly:!0},modern:{type:Boolean,value:x("web_button_rework_with_live")},hasLoggedSliderUsage:{type:Boolean,value:!1},isBuyFlowRevamped:{type:Boolean,computed:"computeShouldShowRevampedBuyFlow(data.highlightedText)"},shouldShowZeroCharacterInfo:{type:Boolean,computed:"computeShouldShowZeroCharacterInfo(maxCharacterCount, isInvalidPrice)"}, shouldShowCharacterCount:{type:Boolean,computed:"computeShouldShowCharacterCount(characterCountDisplay, maxCharacterCount)"},shouldShowCharacterLimit:{type:Boolean,computed:"computeShouldShowCharacterLimit(maxCharacterCount)"},shouldShowDurationLabel:{type:Boolean,computed:"computeShouldShowDurationLabel(durationLabel)"},shouldShowHighlightedSection:{type:Boolean,computed:"computeShouldShowHighlightedSection(durationLabel, maxCharacterCount)"}},actionMap:{"yt-wallet-dialog-closed":"onWalletDialogClose_", "yt-wallet-dialog-completed":"onWalletDialogComplete_","yt-open-payments-dialog":"onWalletDialogOpen_","yt-live-chat-buy-flow-callback":"buyFlowCallback"},behaviors:[VDa.YtHostElementBehavior,Wzb,uDb.YtPickerBehavior,ft.YtActionHandlerBehavior,Yz.YtRendererBehavior,$C.YtRendererstamperBehavior],listeners:{"immediate-value-change":"onSliderImmediateChange_","yt-emoji-select":"onEmojiSelect_","yt-live-chat-text-input-field-renderer-character-count-changed":"onCharacterCountChanged_","yt-live-chat-message-input-change":"handleMessageInputChanged", "yt-checkbox-renderer-changed":"handleBuyflowModeChanged"},stampDom:{"data.heading":{id:"info-heading",mapping:{liveChatMessageBuyFlowHeadingRenderer:"yt-live-chat-message-buy-flow-heading-renderer"}},"data.helpButton":{id:"help",mapping:{buttonRenderer:"yt-button-renderer"}},"data.helpDialog":{id:"dialog",mapping:{liveChatDialogRenderer:"yt-live-chat-dialog-renderer"}},"data.pickers":{id:"pickers",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[superChatEmojiManager]]"}}, liveChatCreatorSupportRenderer:{component:"yt-live-chat-creator-support-renderer"}}},"data.pickerButtons":{id:"picker-buttons",mapping:{liveChatIconToggleButtonRenderer:"yt-live-chat-icon-toggle-button-renderer"}},messageTemplate:{id:"message-renderer",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",properties:{emojiManager:"[[superChatEmojiManager]]",participantsManager:"[[participantsManager]]",messageInput:"[[messageInput]]"}},liveChatMembershipItemRenderer:{component:"yt-live-chat-membership-item-renderer", properties:{emojiManager:"[[superChatEmojiManager]]",participantsManager:"[[participantsManager]]"}}}},"data.banner":{id:"banner",mapping:{pdgBannerRenderer:"ytd-pdg-banner-renderer"}}},ready:function(){var a=this;this.data&&this.data.emojis&&this.superChatEmojiManager.load(this.data.emojis,x("live_chat_web_use_emoji_manager_singleton")?qM:this.emojiManager);bt(function(){a.adjustInputWidth_()},1)}, dataChanged_:function(a){a&&(this.setupBuyFlowState(this.data.messageTiers,this.data.buyButton.buttonRenderer),this.logUserInputPriceChange(),this.superChatEmojiManager&&this.superChatEmojiManager.load(a.emojis||[],x("live_chat_web_use_emoji_manager_singleton")?qM:this.emojiManager),this.data.onVisibleCommand&&Xu(this,"yt-live-chat-actions",[[this.data.onVisibleCommand]]),a.buyButton.buttonRenderer.trackingParams&&YL(a.buyButton.buttonRenderer.trackingParams),Vk("HTML_DIR")==="rtl"&&wt(this.hostElement).querySelector("#price-slider").setAttribute("dir", "rtl"))}, setupBuyFlowState:function(a,b){if(this.data){this.buyButton_=b;b=this.data;var c=new Ktb(this.data.currency,this.data.currencyUnitMicros);this.messageTiers=new pCb(a);this._setPriceMin(iK(c,Number(this.messageTiers.messageTiers[0].minPriceMicros)||0));this._setPriceMax(iK(c,Number(rCb(this.messageTiers).maxPriceMicros)||0));this._setPriceMaxDigits(c.currencyFormatter.format(this.priceMax).length);this._setBuyButtonText(this.getSimpleString(this.buyButton_.text));a=rCb(this.messageTiers);this.sliderMax= a.minPriceMicros==a.maxPriceMicros?this.messageTiers.messageTiers.length-1:this.messageTiers.messageTiers.length;a=this.buyFlowStateManager_=new tCb(this.priceMin,this.priceMax,c,this.messageTiers);b=Number(b.defaultPurchasePriceMicros)||0;c=sCb(a.messageTiers,b);this.buyFlowState_=uCb(a,b,c);this._setIsPriceAdjustable(this.buyFlowState_.isPriceAdjustable);this.updateMessagePreviewRendererFromState_(this.buyFlowState_)}}, onFocusOut_:function(a){this.buyFlowState_=vCb(this.buyFlowStateManager_,a.currentTarget.value);this.updateMessagePreviewRendererFromState_(this.buyFlowState_);this.logUserInputPriceChange()}, handleMessageInputChanged:function(a){this._setMessageInput(a.detail)}, onInputChange_:function(a){this.buyFlowState_=vCb(this.buyFlowStateManager_,a.currentTarget.value,this.buyFlowState_);this.updateMessagePreviewRendererFromStateWithoutPriceInput_(this.buyFlowState_);this.adjustInputWidth_()}, adjustInputWidth_:function(){var a=document.createElement("div");a.innerText=wt(this.hostElement).querySelector("#price-input").value;var b=window.getComputedStyle(wt(this.hostElement).querySelector("#price-input"));a.style.fontFamily=b.fontFamily;a.style.fontSize=b.fontSize;a.style.fontWeight=b.fontWeight;a.style.display="inline-block";a.style.visibility="hidden";document.querySelector("body").appendChild(a);this.updateStyles({"--price-input-width":a.clientWidth+16+"px"});document.querySelector("body").removeChild(a)}, onSliderImmediateChange_:function(){var a=wt(this.hostElement).querySelector("#price-slider");a.dragging&&this.handleSliderChange_(a.immediateValue)}, onSliderChange_:function(){this.handleSliderChange_(wt(this.hostElement).querySelector("#price-slider").value);this.logUserInputPriceChange()}, onSliderFocus_:function(){this.updateSliderAria_(this.buyFlowState_);if(!this.hasLoggedSliderUsage){this.hasLoggedSliderUsage=!0;var a=Rv(169803);XL(this.data.trackingParams,a);var b=Tv();b&&xz(b,a)}}, handleSliderChange_:function(a){var b=this.buyFlowStateManager_,c=b.messageTiers;a=uCb(b,a===c.messageTiers.length?Number(rCb(c).maxPriceMicros):Number(c.messageTiers[a].minPriceMicros),a);this.updateMessagePreviewRendererFromState_(a)}, updateSliderAria_:function(a){var b=wt(this.hostElement).querySelector("#price-slider");b.setAttribute("aria-valuenow",a.sliderAriaState.valueNow);b.setAttribute("aria-valuemax",a.sliderAriaState.valueMax);b.setAttribute("aria-valuemin",a.sliderAriaState.valueMin);this.isBuyFlowRevamped&&b.setAttribute("aria-valuetext",a.sliderAriaState.valueNow)}, computeSliderMaxMarkers_:function(a){return a}, computeDisclaimerHeader:function(a,b){var c,d;return b==null?void 0:(c=qCb(b,a))==null?void 0:(d=c.disclaimerData)==null?void 0:d.disclaimerTextHeader}, computeDisclaimerText:function(a,b){var c,d;return b==null?void 0:(c=qCb(b,a))==null?void 0:(d=c.disclaimerData)==null?void 0:d.disclaimerText}, onCharacterCountChanged_:function(a){this.messageCharacterCount=a.detail.characterCount}, startBuyFlowWithTransactionParamAndProductData:function(a,b){z(a,fK)&&(z(a,fK).productData={pdgData:{purchasePriceMicros:String(this.priceMicros),currencyCode:this.data.currency,richChatMessage:b}},Xu(this,"yt-live-chat-start-buy-flow",[a,void 0,this.buyFlowCallback.bind(this)]))}, sendLoyaltyMessage:function(a,b){var c=this,d,e=((d=z(a,Bpb))==null?void 0:d.clientIdPrefix)||"";$u(this,[a,{client_message_id:e,rich_message:b}]).then(function(f){c.handleSendLoyaltyMessageResponse(f)},function(){c.selectedPage=0; c.closeBuyFlow()})}, onBuyButtonClick_:function(){var a=this,b,c,d;return ra(function(e){if(e.nextAddress==1){c=(b=a.getMessageRendererElement_())?b.inputMessage():null;kBb(a.buyButton_.command)||a.logExplicitClick(a.buyButton_);a.buyButton_.command&&Xu(a,"yt-live-chat-actions",[[a.buyButton_.command]]);d=a.buyButton_.serviceEndpoint;if(!d.ypcHandleTransactionEndpoint)return e.jumpTo(2);wt(a.hostElement).querySelector("#loading").style.height=wt(a.hostElement).querySelector("#preview").clientHeight+"px";wt(a.hostElement).querySelector("#blank").style.height= wt(a.hostElement).querySelector("#preview").clientHeight+"px";a.selectedPage=1;return e.yield($u(a,[d,{rich_chat_message:fDb(c),purchase_price_micros:String(a.priceMicros),currency_code:a.data.currency}]).then(a.handleSuccessBuyFlowCallBack.bind(a)),3)}if(e.nextAddress!=2)return e.return();d.ypcGetCartEndpoint?d.ypcGetCartEndpoint.transactionParams&&a.startBuyFlowWithTransactionParamAndProductData(d,fDb(c)):d.sendLiveChatMessageEndpoint&&a.sendLoyaltyMessage(d,c);wt(a.hostElement).querySelector("#loading").style.height= wt(a.hostElement).querySelector("#preview").clientHeight+"px";wt(a.hostElement).querySelector("#blank").style.height=wt(a.hostElement).querySelector("#preview").clientHeight+"px";a.selectedPage=1;e.jumpToEnd()})}, computeButtonShape:function(){var a=this;return{onTap:function(){a.onBuyButtonClick_()}, style:"call-to-action",type:"filled",size:"M",state:this.buyButtonDisabled?"disabled":"active",disabled:this.buyButtonDisabled&&x("disable_super_chat_buy_button"),buttonText:this.buyButtonText}}, handleSendLoyaltyMessageResponse:function(a){this.selectedPage=0;a&&a.data&&(a=a.data,a.errorMessage?this.handleMessageRenderer_(a.errorMessage):this.closeBuyFlow())}, getMessageRendererElement_:function(){return wt(this.hostElement).querySelector("#message-renderer").firstChild}, onWalletDialogClose_:function(){this.selectedPage=0}, onWalletDialogComplete_:function(){this.selectedPage=1}, onWalletDialogOpen_:function(){this.selectedPage=2}, handleSuccessBuyFlowCallBack:function(a){(a==null?0:a.data)&&(a=a.data.command)&&Xu(this,"yt-live-chat-actions",[[a]]);this.closeBuyFlow()}, handleFailBuyFlowCallBack:function(a){this.selectedPage=0;a.errorMessageRenderer?this.handleMessageRenderer_(a.errorMessageRenderer):a.errorCommand&&Xu(this,"yt-live-chat-actions",[[a.errorCommand]])}, buyFlowCallback:function(a){a.success?this.handleSuccessBuyFlowCallBack(a.response):this.handleFailBuyFlowCallBack(a)}, handleMessageRenderer_:function(a){var b=Rk(a,"renderer");if(b==="confirmDialogRenderer"){var c=Vk("openPopupConfig");c&&Xu(this,"yt-open-popup-action",[{openPopupAction:{popupType:c.popupTypeMap[b],popup:a}},this])}else this._setErrorRenderer(a)}, onCloseButtonClick_:function(){this.closeBuyFlow()}, closeBuyFlow:function(){Xu(this,"yt-live-chat-close-buy-flow");this._setErrorRenderer(null)}, updateMessagePreviewRendererFromStateWithoutPriceInput_:function(a){this._setMessageTemplate(a.messagePreviewState.messageRenderer);this._setShouldShowPickers(a.messagePreviewState.shouldShowPickers);this._setDurationLabel(a.messagePreviewState.durationLabel);this._setIsInvalidPrice(a.isInvalidPrice);this._setHideDurationLabel(a.shouldHideDurationLabel);this.maxCharacterCount=a.messagePreviewState.maxNumCharacters;this.priceMicros=a.priceMicros;this.sliderIndex=a.sliderIndex;a.isPriceAdjustable&& this.getMessageRendererElement_().polymerController.set("data.purchaseAmountText",kz(a.formattedPriceWithCurrency));this.updateSliderAria_(a)}, logUserInputPriceChange:function(){var a=Rv(126975);XL(this.data.trackingParams,a);xBb(a)}, updateMessagePreviewRendererFromState_:function(a){this.updateMessagePreviewRendererFromStateWithoutPriceInput_(a);this.priceInputValue=a.formattedPrice}, computeMessageTooLong_:function(a,b){return a>b}, computeBuyButtonDisabled_:function(a,b){return a||b}, computeCurrencySymbol_:function(a){if(!a)return"";Gdb();return SH[a][1]}, computeCharacterCountDisplay_:function(a,b){return b==0?0:a}, computeShouldShowCharacterCount:function(a,b){return a>0&&b>0}, onHelpClick_:function(){var a=wt(this.hostElement).querySelector("#dialog").querySelector("yt-live-chat-dialog-renderer");a&&(a.hidden=!1)}, handlePickerButtonToggle_:function(a){a=a.detail.targetId;this.togglePicker_(a);a=="emoji"&&this.getMessageRendererElement_().inputFocus()}, onEmojiSelect_:function(a){var b=this.getMessageRendererElement_();b.inputFocus();b.inputInsertEmoji(a.detail)}, computeHideCurrencySymbol_:function(a,b){return b?a==b:!0}, computeArePriceControlsHidden:function(a,b){b=b&&!!b.liveChatPaidMessageRenderer;return!(a&&b)}, computeShouldShowZeroCharacterInfo:function(a,b){return a===0&&!b}, computeShouldShowRevampedBuyFlow:function(a){return!!a}, computeShouldShowCharacterLimit:function(a){return a!==0}, computeShouldShowDurationLabel:function(a){return!!a}, computeShouldShowHighlightedSection:function(a,b){return!a||b===0}, handleBuyflowModeChanged:function(a){a.detail.checked?this.setupBuyFlowState(this.data.messageTiers,this.data.buyButton.buttonRenderer):this.data.alternateProductGroup&&this.setupBuyFlowState(this.data.alternateProductGroup.messageTier,this.data.alternateProductGroup.buyButton.buttonRenderer)}});var QDb;var RDb;var SDb;var TDb;var OM=function(){return E.apply(this,arguments)||this}; k(OM,E);OM.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")}; OM.prototype.onIconLoaded=function(a){a=a.path?a.path[0]:a.target;a.parentNode&&a.parentNode.classList.add("icon-loaded")}; OM.prototype.onIconLoaded=OM.prototype.onIconLoaded;n([F(Yz.YtRendererBehavior),r("design:type",Object)],OM.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],OM.prototype,"data",void 0);n([Kt("yt-img-shadow-loaded"),r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype")],OM.prototype,"onIconLoaded",null);n([fu({disableElementRegistration:!0,is:"yt-live-chat-super-sticker-pack-button-renderer",isInjectionRoot:!0})],OM); Tu(OM,"yt-live-chat-super-sticker-pack-button-renderer",function(){if(TDb===void 0){var a=document.createElement("template");Q(a,"
\n \n \n
\n
\n \n \n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;SDb===void 0&&(SDb=document.createElement("template"));var d=SDb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);TDb=a}a=TDb;return a},{mode:0});var UDb;var VDb;var PM=function(){var a=E.apply(this,arguments)||this;a.actionMap={"yt-live-chat-set-dark-theme":"onDarkModeToggledAction"};return a}; k(PM,E);g=PM.prototype;g.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")}; g.preloadImage=function(){if(this.data){var a=this.data.stickerImage;if(a&&a.thumbnails){var b=EB(a.thumbnails,this.sticker.width,this.sticker.preferredThumbnail);b&&(new Image().src=b);FB(a,aOa,{isPreloaded:!0})}}}; g.stringAsRawText=function(a){return lz(a)}; g.onDarkModeToggledAction=function(a){this.isDarkTheme=a}; g.updateBackground=function(){var a=this.backgroundThumbnailUrl;a&&(wt(this.hostElement).querySelector("#container").style.backgroundImage="url("+a+")")}; ba.Object.defineProperties(PM.prototype,{backgroundThumbnailUrl:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var a=this.data.backgroundImage;this.isDarkTheme&&this.data.darkModeBackgroundImage&&(a=this.data.darkModeBackgroundImage);var b;a=EB((b=a)==null?void 0:b.thumbnails,this.sticker.width,this.sticker.preferredThumbnail);var c;((c=a)==null?void 0:c.indexOf("//"))===0&&(a="https:"+a);return a}}}); PM.prototype.updateBackground=PM.prototype.updateBackground;PM.prototype.preloadImage=PM.prototype.preloadImage;n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],PM.prototype,"ytActionHandlerBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],PM.prototype,"ytRendererBehavior",void 0);n([M({}),r("design:type",Object)],PM.prototype,"data",void 0);n([M(),r("design:type",Boolean)],PM.prototype,"isDarkTheme",void 0); n([Tt("#sticker"),r("design:type",Object)],PM.prototype,"sticker",void 0);n([H("data","isDarkTheme"),r("design:type",Object),r("design:paramtypes",[])],PM.prototype,"backgroundThumbnailUrl",null);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],PM.prototype,"preloadImage",null);n([Lt("backgroundThumbnailUrl"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],PM.prototype,"updateBackground",null); n([fu({disableElementRegistration:!0,is:"yt-live-chat-super-sticker-pack-backstory-renderer",isInjectionRoot:!0})],PM); Tu(PM,"yt-live-chat-super-sticker-pack-backstory-renderer",function(){if(VDb===void 0){var a=document.createElement("template");Q(a,"
\n \n \n
\n
[[stringAsRawText(data.packTitle)]]
\n
[[stringAsRawText(data.packDescription)]]
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;UDb===void 0&&(UDb=document.createElement("template"));var d=UDb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);VDb=a}a=VDb;return a},{mode:0});var WDb;var XDb;function YDb(a){var b=new Image;return new uj(function(c,d){b.addEventListener("load",function(){c()}); b.addEventListener("error",function(){d()}); b.src=a})} ;var QM=function(){return E.apply(this,arguments)||this}; k(QM,E);g=QM.prototype;g.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onClick"}}; g.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")}; g.stringAsRawText=function(a){return lz(a)}; g.onClick=function(){this.ytRendererBehavior.logExplicitClick(this.data);Gt(this.hostElement,"yt-super-sticker-open-preview",z(this.data.command,Bqb))}; g.onStickerLoaded=function(){wt(this.hostElement).querySelector("#unselected").classList.add("sticker-loaded")}; g.preloadImage=function(){var a=this.data.stickerSneakPeekImage,b=wt(this.hostElement).querySelector("#selected");a&&a.thumbnails&&(a=EB(a.thumbnails,b.width))&&a&&(new Image().src=a)}; g.onFocus=function(){this.isStatic||(this.hostElement.classList.add("focus"),this.ytRendererBehavior.markDirty())}; g.onBlur=function(){this.isStatic||this.hostElement.classList.remove("focus")}; g.updateChipStyles=function(){var a=this.data;a&&(a={"--yt-live-chat-paid-sticker-chip-background-color":this.colorFromDecimal(a.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.colorFromDecimal(a.moneyChipTextColor)},Ft(this.hostElement,a))}; g.colorFromDecimal=function(a){return Jy(a)}; ba.Object.defineProperties(QM.prototype,{isStatic:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.stickerImage&&this.data.stickerSneakPeekImage?this.data.stickerImage.thumbnails[0].url===this.data.stickerSneakPeekImage.thumbnails[0].url:!1}}}); QM.prototype.updateChipStyles=QM.prototype.updateChipStyles;QM.prototype.onBlur=QM.prototype.onBlur;QM.prototype.onFocus=QM.prototype.onFocus;QM.prototype.preloadImage=QM.prototype.preloadImage;QM.prototype.onStickerLoaded=QM.prototype.onStickerLoaded;QM.prototype.onClick=QM.prototype.onClick;n([F(Lw),r("design:type",Object)],QM.prototype,"ironA11yKeysBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],QM.prototype,"ytRendererBehavior",void 0); n([M(),r("design:type",Object)],QM.prototype,"data",void 0);n([Kt("click"),r("design:type",Function),r("design:paramtypes",[Event]),r("design:returntype")],QM.prototype,"onClick",null);n([Kt("yt-img-shadow-loaded"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],QM.prototype,"onStickerLoaded",null);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],QM.prototype,"preloadImage",null); n([Kt("focus"),Kt("mouseover"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],QM.prototype,"onFocus",null);n([Kt("blur"),Kt("mouseout"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],QM.prototype,"onBlur",null);n([H("data"),r("design:type",Boolean),r("design:paramtypes",[])],QM.prototype,"isStatic",null);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],QM.prototype,"updateChipStyles",null); n([fu({disableElementRegistration:!0,is:"yt-live-chat-super-sticker-pack-item-button-renderer",isInjectionRoot:!0})],QM); Tu(QM,"yt-live-chat-super-sticker-pack-item-button-renderer",function(){if(XDb===void 0){var a=document.createElement("template");Q(a,"
\n
\n \n \n
\n \n \n [[stringAsRawText(data.basePriceText)]]\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;WDb===void 0&&(WDb=document.createElement("template"));var d=WDb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);XDb=a}a=XDb;return a},{mode:0});var ZDb;var $Db;var RM=function(){var a=E.apply(this,arguments)||this;a.monitorScroll=!0;return a}; k(RM,E);RM.prototype.configureRendererStamper=function(){return{"data.superStickerPackItemButtons":{id:"pack-stickers",mapping:{superStickerPackItemButtonRenderer:"yt-live-chat-super-sticker-pack-item-button-renderer"}},"data.packBackstory":{id:"backstory",mapping:{superStickerPackBackstoryRenderer:"yt-live-chat-super-sticker-pack-backstory-renderer"}}}}; RM.prototype.attached=function(){this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")}; n([F($C.YtRendererstamperBehavior),r("design:type",Object)],RM.prototype,"ytRendererstamperBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],RM.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],RM.prototype,"data",void 0);n([fu({disableElementRegistration:!0,is:"yt-live-chat-super-sticker-pack-renderer",isInjectionRoot:!0})],RM); Tu(RM,"yt-live-chat-super-sticker-pack-renderer",function(){if($Db===void 0){var a=document.createElement("template");Q(a,"
\n
\n
\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;ZDb===void 0&&(ZDb=document.createElement("template"));var d=ZDb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);$Db=a}a=$Db;return a},{mode:0});var aEb;var bEb;var cEb;var dEb=[ey,Jlb,yJ,Irb,vqb,Smb,qy,ry,VJ,csb,py];x("web_show_ep_endpoint_response_received")&&dEb.push(Ypb);var eEb=new Bn("RESPONSE_RECEIVED_COMMANDS");var fEb="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),gEb=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],hEb=["GET_UNSEEN_NOTIFICATION_COUNT"]; function iEb(a,b,c,d,e,f,h){f=f===void 0?[]:f;var m=new mB;m.endpoint=c;if(!c)return eo(new Dl("handle undefined endpoint",b.tagName)),m;var p=kCa(c);p.length&&(Zu(a,p,b,d),m.actions=p);c.loggingUrls&&c.loggingUrls.forEach(function(t){t.baseUrl&&an(t.baseUrl,t.attributionSrcMode)}); p=!x("web_skip_impression_click_killswitch")&&d&&d.impression;if(c.clickTrackingParams&&!jEb(c)&&!kEb(b)&&!p&&(p=gz(),!Pz(p,b))){var q=b.getScreenLayer&&b.getScreenLayer();q?p.clickCommand(c,null,q):p.clickCommand(c,null)}p=!1;for(q=0;q=0)return!0;for(var c in a)if(gEb.indexOf(c)>=0)return!0;return!1} function lEb(a){var b;if(((b=z(a,my))==null?void 0:b.signal)==="CLIENT_SIGNAL")return!1;for(var c in a)if(fEb.indexOf(c)>=0)return!1;a=Object.keys(a);return a.length===1&&a[0]==="loggingUrls"?!1:!0} function nEb(a,b,c,d,e,f,h){var m=oL.instance;if(m&&qL(m,d))var p=AK(m,d,e).then(function(t){return(t==null?0:t.data)?t:{data:t}});else p=eE(a,d,e),z(d,YNa)||z(d,flb)||z(d,XNa)||z(d,Pqb)||fo(new Dl("No RequestBuilder for endpoint",d));var q=yj();q.promise.thenCatch(function(){var t=Rk(d,"action")||Rk(d,"command")||Rk(d,"endpoint");t&&(t=d[t],t.hasOwnProperty("onFailureAction")?Zu(b,[t.onFailureAction],c):t.hasOwnProperty("onFailureCommand")&&Zu(b,t.onFailureCommand,c));p.cancel("Resolver promise rejected")}); p.then(function(t){if(t){var u=t.error;if(u){if(f&&f.onServerError)f.onServerError(d,t);q.reject(new Dl("Response error",d,u))}else if(t=t.data)if(u=t.error){if(f&&f.onServerError)f.onServerError(d,t);q.reject(new Dl("Returned error",d,u))}else{oEb(b,c,t,d);pEb(t);if(u=lCa(t))for(var v=l(u),w=v.next();!w.done;w=v.next()){w=w.value;var y=Fn().resolve(Cn(eEb))||dEb;if(!oL.instance||!y.some(function(C){return!!z(d,C)})||x("kevlar_response_processor_allowlist_killswitch")){var A=y=void 0; ((A=z((y=w)==null?void 0:y.commandMetadata,ly))==null?0:A.sendPost)?$u(b,[w]):Zu(b,[w],c)}}(v=z(t==null?void 0:t.frameworkUpdates,xJ))&&h&&h(v);if(f&&f.onSuccess)f.onSuccess(d,t);q.resolve(new lB(t,u))}}else q.reject(new Dl("Invalid service endpoint provided",d))},function(t){q.reject(t)}); return q.promise} function pEb(a){var b;(a=(b=z(a==null?void 0:a.onResponseReceivedCommand,omb))==null?void 0:b.continuationItems)&&(a==null?void 0:a.length)===1&&z(a[0],Jrb)&&aw("so_r",void 0,"search_overview_answer")} function mEb(a,b,c,d,e,f){var h;return(h=b.getNetworkManager&&b.getNetworkManager()?b.getNetworkManager():Fn().resolve(Cn(fE)))?nEb(h,a,b,c,d,e,f):xj("No network manager.")} function oEb(a,b,c,d){if(c=c.trackingParams||c.loggingDirectives&&c.loggingDirectives.trackingParams){var e;(z(d,vqb)||z(d,Vrb)||z(d,gqb))&&d.clickTrackingParams&&(e=Qv(d.clickTrackingParams));var f;d=(f=b.getScreenLayer)==null?void 0:f.call(b);b=Lz(gz(),c,e,d);Yu(a,"yt-store-grafted-ve-action",[b])}} ;var SM=function(){var a=kt.apply(this,arguments)||this;a._noAccessors=!0;a.serviceEndpointHandlers=[];return a}; k(SM,kt);SM.prototype.created=function(){var a=this;this.endpointHandlerActionMap={"yt-service-request":function(b,c,d,e){var f;return iEb(a.hostElement,b,c,d,e,a.serviceEndpointHandlers,(f=a.onEntitiesUpdated)==null?void 0:f.bind(a))}}}; SM.prototype.attached=function(){Xs(Ws.getInstance(),this.endpointHandlerActionMap,this.hostElement)}; SM.prototype.detached=function(){Ys(Ws.getInstance(),this.endpointHandlerActionMap,this.hostElement)}; var qEb=function(a,b){a.serviceEndpointHandlers.push(b)}; n([Vt()],SM);var rEb=[SM.prototype];kE("itemSectionRenderer","buttonRenderer","ytd-button-renderer");kE("sharingRendererButtons","buttonRenderer","ytd-button-renderer");var sEb=x("web_button_rework")&&!!Vk("BUTTON_REWORK")||x("web_button_rework_with_live"),TM=function(){var a=E.apply(this,arguments)||this;a.isPressed=!1;a.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return a}; k(TM,E);g=TM.prototype;g.created=function(){this.showTooltips=!0}; g.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")}; g.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)}; g.onYtNavigate=function(a){var b=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(a.detail.endpoint);b&&(a.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(b))}; g.onYtServiceRequestSent=function(a,b){this.handleServiceRequestActions(b);Gt(this.hostElement,"yt-service-request-sent-button-renderer")}; g.onServiceRequestCompleted=function(a,b){this.handleServiceRequestActions(b);Gt(this.hostElement,"yt-service-request-completed-button-renderer")}; g.updateButton=function(a){var b;if(a=(b=z(a,wmb))==null?void 0:b.updatedButton)this.ytButtonBehavior.data=z(a,TJ)}; g.handleUpdateButtonAction=function(a){var b=this.ytButtonBehavior.data;b.targetId&&a.updateButtonAction.targetId&&b.targetId===a.updateButtonAction.targetId&&this.updateButton(a)}; g.handleServiceRequestActions=function(a){if(a=a.actions)for(var b=0;b");a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);cEb=a}a=cEb;return a}}}); TM.prototype.onServiceRequestCompleted=TM.prototype.onServiceRequestCompleted;TM.prototype.onYtServiceRequestSent=TM.prototype.onYtServiceRequestSent;TM.prototype.onYtNavigate=TM.prototype.onYtNavigate;TM.prototype.onPressedStateChanged=TM.prototype.onPressedStateChanged;n([M(),r("design:type",Object)],TM.prototype,"data",void 0);n([M(),r("design:type",Object)],TM.prototype,"isPressed",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],TM.prototype,"ytActionHandlerBehavior",void 0); n([F(NBb.YtButtonBehavior),r("design:type",Object)],TM.prototype,"ytButtonBehavior",void 0);n([F(pB),r("design:type",Object)],TM.prototype,"ytdOpenPopupBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],TM.prototype,"ytComponentBehavior",void 0);n([F(dM.YtRenderButtonBehavior),r("design:type",Object)],TM.prototype,"ytRenderButtonBehavior",void 0); n([Lt("isPressed"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],TM.prototype,"onPressedStateChanged",null);n([Kt("yt-navigate"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],TM.prototype,"onYtNavigate",null);n([Kt("yt-service-request-sent"),r("design:type",Function),r("design:paramtypes",[CustomEvent,mB]),r("design:returntype")],TM.prototype,"onYtServiceRequestSent",null); n([Kt("yt-service-request-completed"),r("design:type",Function),r("design:paramtypes",[CustomEvent,lB]),r("design:returntype")],TM.prototype,"onServiceRequestCompleted",null);n([gu({is:"ytd-button-renderer",disableElementRegistration:sEb})],TM);var UM=function(){var a=E.apply(this,arguments)||this;a.modern=x("web_button_rework_with_live");a.buttonOverrides={style:"overlay",type:"filled"};return a}; k(UM,E);g=UM.prototype;g.configureRendererStamper=function(){return{"data.buyButton":{id:"buy-flow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.lowerBumper":{id:"lower-bumper",mapping:{liveChatItemBumperViewModel:{component:"yt-live-chat-item-bumper-view-model"}}},"data.creatorHeartButton":{id:"creator-heart-button",mapping:{creatorHeartViewModel:{component:"yt-live-chat-creator-heart-view-model"}}}}}; g.ready=function(){var a=document.querySelector("yt-live-chat-app");a&&a.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)}; g.dataChanged=function(){if(this.data&&this.data.sticker){var a=EB(this.data.sticker.thumbnails,this.stickerWidth);a||YDb(a).thenCatch(function(){fo(new Dl("Failed to load Super Sticker with url",a))})}}; g.computeAuthorPhotoSize=function(a){return(a==null?0:a.isV2Style)?32:40}; g.computeIsV2Style=function(a){return(a==null?0:a.isV2Style)?!0:!1}; g.onStickerLoaded=function(a){var b,c,d;(b=mt(a))==null||(c=b.parentNode)==null||(d=c.classList)==null||d.add("sticker-loaded")}; g.computeNoveltyImageWidth=function(a){var b,c;if(a==null?0:(b=a.headerOverlayImage)==null?0:(c=b.thumbnails)==null?0:c.length){b=a.headerOverlayImage.thumbnails[0];var d,e;if((d=a.pdgPurchasedNoveltyLoggingDirectives)==null?0:(e=d.loggingDirectives)==null?0:e.trackingParams){var f,h;YL((f=a.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(h=f.loggingDirectives)==null?void 0:h.trackingParams)}return b.width||0}return 0}; g.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))}; g.updateStickerStyles=function(){var a=this.data;if(a){var b=this.ytLiveChatItemBehavior.colorFromDecimal,c=!!a.backgroundGradient;this.hostElement.classList.toggle("has-fixed-gradient",c);var d={"--yt-live-chat-paid-sticker-chip-background-color":b(a.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":b(a.moneyChipTextColor),"--yt-live-chat-disable-highlight-message-author-name-color":b(a.authorNameTextColor)};d["--yt-live-chat-paid-sticker-background-color"]=c?"transparent": b(a.backgroundColor);Ft(this.hostElement,d)}}; g.onBuyButtonClick=function(){var a,b=z((a=this.data)==null?void 0:a.buyButton,TJ);b&&!kBb(b.command)&&this.ytRendererBehavior.logExplicitClick(b)}; g.shouldSupportWholeItemClick=function(){return!0}; ba.Object.defineProperties(UM.prototype,{stickerWidth:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.stickerDisplayWidth||96}}, stickerHeight:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.stickerDisplayWidth||96}}, hasHeartButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.creatorHeartButton}}, hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?0:a.buyButton)||this.dashboardMoneyFeed?!0:!1}}}); UM.prototype.updateStickerStyles=UM.prototype.updateStickerStyles;UM.prototype.isDeletedChanged=UM.prototype.isDeletedChanged;UM.prototype.onStickerLoaded=UM.prototype.onStickerLoaded;UM.prototype.dataChanged=UM.prototype.dataChanged;n([F(SL.YtPdgLiveChatItemBehavior),r("design:type",Object)],UM.prototype,"ytPdgLiveChatItemBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],UM.prototype,"ytRendererBehavior",void 0); n([F(mz.YtComponentBehavior),r("design:type",Object)],UM.prototype,"ytComponentBehavior",void 0);n([F(rM.YtLiveChatItemBehavior),r("design:type",sM)],UM.prototype,"ytLiveChatItemBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],UM.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],UM.prototype,"data",void 0);n([M({computed:"computeAuthorPhotoSize(data)"}),r("design:type",Number)],UM.prototype,"authorPhotoSize",void 0); n([M(),r("design:type",Boolean)],UM.prototype,"isDeleted",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],UM.prototype,"dashboardMoneyFeed",void 0);n([M({computed:"computeNoveltyImageWidth(data)"}),r("design:type",Number)],UM.prototype,"noveltyWidth",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],UM.prototype,"modern",void 0);n([M({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),r("design:type",Boolean)],UM.prototype,"isV2Style",void 0); n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],UM.prototype,"dataChanged",null);n([Kt("yt-img-shadow-loaded"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],UM.prototype,"onStickerLoaded",null);n([H("data"),r("design:type",Number),r("design:paramtypes",[])],UM.prototype,"stickerWidth",null);n([H("data"),r("design:type",Number),r("design:paramtypes",[])],UM.prototype,"stickerHeight",null); n([M({reflectToAttribute:!0}),H("data"),r("design:type",Boolean),r("design:paramtypes",[])],UM.prototype,"hasHeartButton",null);n([H("data","dashboardMoneyFeed"),r("design:type",Boolean),r("design:paramtypes",[])],UM.prototype,"hideLowerBumper",null);n([Lt("isDeleted"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],UM.prototype,"isDeletedChanged",null); n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],UM.prototype,"updateStickerStyles",null);n([fu({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],UM); Tu(UM,"yt-live-chat-paid-sticker-renderer",function(){if(bEb===void 0){var a=document.createElement("template");Q(a,"
[[timestampString]]
");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;aEb===void 0&&(aEb=document.createElement("template"));var d=aEb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);bEb=a}a=bEb;return a},{mode:0});var tEb;var uEb;var VM=function(){var a=E.apply(this,arguments)||this;a.modern=x("web_button_rework_with_live");a.selectedPage=0;a.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-wallet-dialog-closed":"onWalletDialogClosed","yt-wallet-dialog-completed":"onWalletDialogCompleted","yt-open-payments-dialog":"onOpenPaymentsDialog"};return a}; k(VM,E);g=VM.prototype;g.configureRendererStamper=function(){return{"data.buyButton":{id:"buy-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.banner":{id:"banner",mapping:{pdgBannerRenderer:{component:"ytd-pdg-banner-renderer"}}}}}; g.attached=function(){this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")}; g.stringAsRawText=function(a){return lz(a)}; g.getCommands=function(a){var b=z(a,iy);return b?(b==null?void 0:b.commands)||[]:[a]}; g.handleSignalActionSubmitForm=function(){var a=this.data.submitEndpoint;if(a){var b=this.getCommands(a);a=!1;b=l(b);for(var c=b.next();!c.done;c=b.next())c=c.value,z(c,fK)?(a=!0,Xu(this.hostElement,"yt-live-chat-start-buy-flow",[c,void 0,this.buyFlowCallback.bind(this)])):z(c,QJ)?(c.clickTrackingParams="",Xu(this.hostElement,"yt-live-chat-actions",[[c]])):co(new Dl("Unsupported command for buy button"));a||co(new Dl("submitEndpoint does not have ypcGetCartEndpoint"))}else co(new Dl("data does not have submitEndpoint"))}; g.onBackClick=function(){Gt(this.hostElement,"yt-super-sticker-close-preview")}; g.onBuyButtonClick=function(){var a=wt(this.hostElement).querySelector("#preview").clientHeight;wt(this.hostElement).querySelector("#loading").style.height=a+"px";wt(this.hostElement).querySelector("#blank").style.height=a+"px";this.selectedPage=1;this.logBuyButtonClick()}; g.onCloseClick=function(){Xu(this.hostElement,"yt-live-chat-close-buy-flow")}; g.onWalletDialogClosed=function(){this.selectedPage=0}; g.onWalletDialogCompleted=function(){this.selectedPage=1}; g.onOpenPaymentsDialog=function(){this.selectedPage=2}; g.closeBuyFlow=function(){Xu(this.hostElement,"yt-live-chat-close-buy-flow")}; g.handleSuccessBuyFlowCallBack=function(a){if(a==null?0:a.data){var b=a.data.actions;a=a.data.command;b?Xu(this.hostElement,"yt-live-chat-actions",[b]):a&&Xu(this.hostElement,"yt-live-chat-actions",[[a]])}this.closeBuyFlow()}; g.handleFailBuyFlowCallBack=function(a){this.selectedPage=0;a.errorMessageRenderer?this.handleMessageRenderer(a.errorMessageRenderer):a.errorCommand&&Xu(this.hostElement,"yt-live-chat-actions",[[a.errorCommand]])}; g.buyFlowCallback=function(a){a.success?this.handleSuccessBuyFlowCallBack(a.response):this.handleFailBuyFlowCallBack(a)}; g.handleMessageRenderer=function(a){var b=Rk(a,"renderer");if(b==="confirmDialogRenderer"){var c=Vk("openPopupConfig");c&&Xu(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:c.popupTypeMap[b],popup:a}},this])}else this.ytLiveChatErrorMessageBehavior._setErrorRenderer(a)}; g.resetState=function(){this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null)}; g.logBuyButtonClick=function(){var a,b=(a=wt(this.hostElement).querySelector("#buy-button"))==null?void 0:a.firstElementChild,c,d,e;((d=z((c=this.data)==null?void 0:c.buyButton,TJ))==null?0:(e=d.command)==null?0:e.clickTrackingParams)&&b&&Pz(gz(),b.hostElement)}; n([F(Wzb),r("design:type",Object)],VM.prototype,"ytLiveChatErrorMessageBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],VM.prototype,"ytRendererstamperBehavior",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],VM.prototype,"ytActionHandlerBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],VM.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],VM.prototype,"data",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],VM.prototype,"modern",void 0);n([gu({disableElementRegistration:!0,is:"yt-live-chat-super-sticker-preview-renderer"})],VM); Tu(VM,"yt-live-chat-super-sticker-preview-renderer",function(){if(uEb===void 0){var a=document.createElement("template");Q(a,"\n
\n
\n
\n \n \n \n

[[stringAsRawText(data.headerText)]]

\n
\n
\n \n [[stringAsRawText(data.durationLabel)]]\n
\n
\n
\n \n \n \n
\n
\n
\n
\n
\n
\n
\n \n
\n
\n \n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;tEb===void 0&&(tEb=document.createElement("template"));var d=tEb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);uEb=a}a=uEb;return a},{mode:0});var WM=function(){var a=E.apply(this,arguments)||this;a.scrollHandler=null;a.hasScrollToPack=!1;a.isPreviewHidden=!0;a.firstPackIndexInView=0;a.tabindex=0;a.actionMap={"yt-live-chat-close-buy-flow":"resetState"};return a}; k(WM,E);g=WM.prototype;g.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}},"data.backButton":{id:"close-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}},"data.superStickerPacks":{id:"stickers-container",mapping:{superStickerPackRenderer:{component:"yt-live-chat-super-sticker-pack-renderer"}}},"data.banner":{id:"banner",mapping:{pdgBannerRenderer:{component:"ytd-pdg-banner-renderer"}}}}}; g.attached=function(){var a=this,b=wt(this.hostElement).querySelector("#sticker-tabs");wt(b).querySelector("#tabsContent").addEventListener("track",function(c){a.onTrack(c)})}; g.detached=function(){this.scrollHandler&&window.cancelAnimationFrame(this.scrollHandler);this.hasScrollToPack=!1}; g.stringAsRawText=function(a){return lz(a)}; g.dataChanged=function(){this.isPreviewHidden=!0;var a=this.data.defaultStickerPackId;a?this.setSelectTab(this.computeSelectedIndex(this.data,a)):this.setSelectTab(0);(a=this.data.defaultStickerId)&&(a=this.computeSelectedPreviewCommand(this.data,a))&&this.showStickerPreview(a);this.scrollHandler=null;this.numberOfStickerPacks=this.data.superStickerPackButtons.length}; g.onShow_=function(){this.data.onVisibleCommand&&Xu(this.hostElement,"yt-live-chat-actions",[[this.data.onVisibleCommand]])}; g.onDomChange=function(){if(!(this.hasScrollToPack||(this.hasScrollToPack=!0,wt(this.hostElement).querySelector("#template").render(),this.updateTabsProperties(),this.isAtFront&&this.isAtBack||!this.selectedIndex))){var a=Math.floor(this.selectedIndex/this.numOfPacksToShift);if(a===0)this.isAtFront=!0,this.isAtBack=!1;else for(var b=0;b0?this.firstPackIndexInView-=this.numOfPacksToShift:(this.firstPackIndexInView=0,this.isAtFront=!0),this.animateScroll())}; g.recalculateScrollForwardPositions=function(){this.firstPackIndexInView+=this.numOfPacksToShift;this.isAtFront=!1;this.firstPackIndexInView+this.numOfPacksToShift>=this.numberOfStickerPacks&&(this.firstPackIndexInView=this.numberOfStickerPacks-this.numOfPacksToShift,this.isAtBack=!0)}; g.onScrollForwardWithAnimation=function(){wt(this.hostElement).querySelector("#scroll-forward-button").disabled||(this.recalculateScrollForwardPositions(),this.animateScroll())}; g.onScrollForwardWithoutAnimation=function(){this.recalculateScrollForwardPositions();var a=wt(this.hostElement).querySelector("#sticker-tabs");wt(a).querySelector("#tabsContainer").scrollLeft=wt(this.hostElement).querySelector("#header").querySelectorAll("tp-yt-paper-tab")[this.firstPackIndexInView].offsetLeft}; g.animateScroll=function(){var a=wt(this.hostElement).querySelector("#sticker-tabs");a=wt(a).querySelector("#tabsContainer").scrollLeft;var b=wt(this.hostElement).querySelector("#header").querySelectorAll("tp-yt-paper-tab")[this.firstPackIndexInView].offsetLeft-a,c=b>0?1:-1,d=wt(this.hostElement).querySelector("#scroll-back-button"),e=wt(this.hostElement).querySelector("#scroll-forward-button");d.disabled=!0;e.disabled=!0;this.scrollHorizontal(0,12,c,b,a)}; g.scrollHorizontal=function(a,b,c,d,e){var f=this,h=wt(this.hostElement).querySelector("#sticker-tabs");a+=b;wt(h).querySelector("#tabsContainer").scrollLeft+=c*b;if(a+b>=c*d){var m=wt(this.hostElement).querySelector("#scroll-back-button"),p=wt(this.hostElement).querySelector("#scroll-forward-button");wt(h).querySelector("#tabsContainer").scrollLeft=e+d;m.disabled=!1;p.disabled=!1}else this.scrollHandler=window.requestAnimationFrame(function(){f.scrollHorizontal(a,b,c,d,e)})}; g.onIronResize=function(){this.hasScrollToPack&&et(this,"resize",this.updateTabsProperties.bind(this))}; g.onTrack=function(a){a.preventDefault();a.stopPropagation()}; g.updateTabsProperties=function(){var a=wt(this.hostElement).querySelector("#sticker-tabs"),b=a.clientWidth;if(b!==0)if(a=wt(a).querySelector("#tabsContent").clientWidth,a\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;QDb===void 0&&(QDb=document.createElement("template"));var d=QDb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);RDb=a}a=RDb;return a},{mode:0});var vEb;var wEb;bB(Jyb,"yt-animated-rolling-number",{props:{numberText:$A,numberValue:$A,heightPx:$A,fontSizeMultiplier:$A,shouldAnimate:$A,forceRollUp:$A}});var xEb={numberText:"0",heightPx:16.5,shouldAnimate:!1},XM=function(){var a=E.apply(this,arguments)||this;a.displayState=0;a.viewCountProps=xEb;return a}; k(XM,E);g=XM.prototype;g.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={enter:"onEnter"}}; g.onEnter=function(){this.onClick()}; g.resolveCommand=function(a){jz(a,this.hostElement)}; g.updateGoalTickerState=function(){var a=this;this.creatorGoalState&&this.creatorGoalState.creatorGoalState!=="CREATOR_GOAL_STATE_INITIAL"&&this.creatorGoalState.creatorGoalState!=="CREATOR_GOAL_STATE_CANCELED"?(this.previousGoalState=this.creatorGoalState.creatorGoalState,this.creatorGoalState.creatorGoalState==="CREATOR_GOAL_STATE_COMPLETE"||this.creatorGoalState.creatorGoalState==="CREATOR_GOAL_STATE_NOT_ACHIEVED"?(this.displayState=2,this.refreshIntervalTimerId&&clearInterval(this.refreshIntervalTimerId)):( this.calculateActiveGoalDisplayState(),this.refreshIntervalTimerId=setInterval(function(){a.calculateActiveGoalDisplayState()},1E3))):this.displayState=0}; g.calculateActiveGoalDisplayState=function(){var a,b=Number((a=this.creatorGoalState)==null?void 0:a.endTimestampMs);a=im();b-=a;var c;((c=this.creatorGoalState)==null?0:c.shouldShowCountdown)&&b<=301E3&&b>0?this.displayState=1:this.displayState=2}; g.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data);var a,b=LB((a=this.data)==null?void 0:a.onClickCommand);b&&this.resolveCommand(b)}; g.goalEntityChanged=function(){this.creatorGoalState&&(this.creatorGoalState.creatorGoalState!==this.previousGoalState&&this.updateGoalTickerState(),Number(this.creatorGoalState.currentGoalCount)!==this.previousGoalCount&&this.updateGoalCount())}; g.updateGoalCount=function(){var a;this.creatorGoalState&&this.creatorGoalState.currentGoalCount&&((a=this.data)==null?0:a.shouldShowCountIncrementAnimation)&&(this.previousGoalCount=Number(this.creatorGoalState.currentGoalCount),this.setGoalCountForRollingNumber({numberText:this.creatorGoalState.currentGoalCount,numberValue:Number(this.creatorGoalState.currentGoalCount),heightPx:xEb.heightPx,shouldAnimate:this.creatorGoalState.creatorGoalState==="CREATOR_GOAL_STATE_ACTIVE"&&!!this.viewCountProps.numberText}))}; g.setGoalCountForRollingNumber=function(a){this.viewCountProps.numberText!==(a==null?void 0:a.numberText)&&(this.viewCountProps=a||xEb)}; ba.Object.defineProperties(XM.prototype,{goalIcon:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.creatorGoalState)==null?0:a.goalIcon){var b;return(b=this.creatorGoalState)==null?void 0:b.goalIcon}var c;return(c=this.data)==null?void 0:c.tickerIcon}}, endTimestamp:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.creatorGoalState)==null?0:a.endTimestampMs){var b;a=Number((b=this.creatorGoalState)==null?void 0:b.endTimestampMs)/1E3;return{seconds:String(a)}}}}, shouldDisplayText:{configurable:!0,enumerable:!0,get:function(){return this.displayState===0}}, shouldDisplayTimer:{configurable:!0,enumerable:!0,get:function(){return this.displayState===1}}, shouldDisplayCount:{configurable:!0,enumerable:!0,get:function(){return this.displayState===2}}}); ba.Object.defineProperties(XM,{template:{configurable:!0,enumerable:!0,get:function(){if(wEb===void 0){var a=document.createElement("template");Q(a,"
\n \n \n \n \n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;vEb===void 0&&(vEb=document.createElement("template"));var d=vEb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);wEb=a}a=wEb;return a}}}); XM.prototype.goalEntityChanged=XM.prototype.goalEntityChanged;XM.prototype.onClick=XM.prototype.onClick;n([F(SL.YtPdgLiveChatItemBehavior),r("design:type",Object)],XM.prototype,"ytPdgLiveChatItemBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],XM.prototype,"ytRendererBehavior",void 0);n([F(iE),r("design:type",Object)],XM.prototype,"ytLiveChatReduxBehavior",void 0);n([F(Lw),r("design:type",Object)],XM.prototype,"ironA11yKeysBehavior",void 0); n([M(),r("design:type",Object)],XM.prototype,"data",void 0);n([M(),r("design:type",Object)],XM.prototype,"displayState",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],XM.prototype,"viewCountProps",void 0);n([M({selectorArgs:["data.creatorGoalEntityKey"],selector:GAb}),r("design:type",Object)],XM.prototype,"creatorGoalState",void 0);n([Kt("click"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],XM.prototype,"onClick",null); n([Lt("creatorGoalState"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],XM.prototype,"goalEntityChanged",null);n([H("creatorGoalState","data"),r("design:type",Object),r("design:paramtypes",[])],XM.prototype,"goalIcon",null);n([H("creatorGoalState"),r("design:type",Object),r("design:paramtypes",[])],XM.prototype,"endTimestamp",null);n([H("displayState"),r("design:type",Boolean),r("design:paramtypes",[])],XM.prototype,"shouldDisplayText",null); n([H("displayState"),r("design:type",Boolean),r("design:paramtypes",[])],XM.prototype,"shouldDisplayTimer",null);n([H("displayState"),r("design:type",Boolean),r("design:paramtypes",[])],XM.prototype,"shouldDisplayCount",null);n([fu({is:"yt-live-chat-ticker-creator-goal-view-model",noInjection:!0})],XM);var yEb;var zEb;var YM=function(){var a=kt.apply(this,arguments)||this;a.countdownDurationMs=0;a.countdownMs=0;a.lastCountdownTimeMs=0;a.rafId=0;a.playerProgressSec=0;a.detlaSincePausedSecs=0;a.behaviorActionMap={"yt-live-chat-pause-replay":"handlePauseReplay","yt-live-chat-resume-replay":"handleResumeReplay","yt-live-chat-replay-progress":"handleReplayProgress"};a.dimmed=!1;a.isDeleted=!1;a.selected=!1;a.ratio=0;a.ariaLabel="";a.shouldAnimateIn=!1;a.isAnimationPaused=!1;return a}; k(YM,kt);g=YM.prototype;g.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0");this.actionHandlerBehavior.registerActionMap(this.behaviorActionMap)}; g.detached=function(){x("live_chat_fix_ticker_item_memory_leak")&&(this.rafId&&(window.cancelAnimationFrame(this.rafId),this.rafId=0),this.actionHandlerBehavior.unregisterActionMap(this.behaviorActionMap))}; g.updateWidthOnDataChanged=function(){this.hostElement.style.width="auto";this.hostElement.style.overflow="visible"}; g.startCountdown=function(a,b){b=b===void 0?0:b;a!==void 0&&(this.countdownMs=a*1E3,this.countdownDurationMs=b?b*1E3:this.countdownMs,this.ratio=1,this.lastCountdownTimeMs||this.isAnimationPaused||(this.lastCountdownTimeMs=performance.now(),this.rafId=window.requestAnimationFrame(this.updateTimeout.bind(this))))}; g.updateTimeout=function(a){this.countdownMs=Math.max(0,this.countdownMs-(a-(this.lastCountdownTimeMs||0)));this.ratio=this.countdownMs/this.countdownDurationMs;this.isAttached&&this.countdownMs?(this.lastCountdownTimeMs=a,this.rafId=window.requestAnimationFrame(this.updateTimeout.bind(this))):(this.lastCountdownTimeMs=null,this.isAttached&&(this.hostElement.style.width==="auto"&&this.setContainerWidth(),this.slideDown()))}; g.setContainerWidth=function(){var a=this,b=wt(this.hostElement).querySelector("#container").clientWidth||0;b===0?(this.hostElement.style.overflow="visible",this.hostElement.style.width="auto"):(this.hostElement.style.overflow="hidden",this.shouldAnimateIn?(this.hostElement.style.width="0",bt(function(){a.hostElement.style.width=b+"px"},1)):this.hostElement.style.width=b+"px")}; g.slideDown=function(){var a=this;this.hostElement.classList.add("sliding-down");bt(function(){a.collapse()},200)}; g.collapse=function(){var a=this;this.hostElement.classList.add("collapsing");this.hostElement.style.width="0";bt(function(){a.requestRemoval()},200)}; g.requestRemoval=function(){Gt(this.hostElement,"yt-live-chat-ticker-remove-ticker-item",this.data.id);this.hostElement.classList.remove("sliding-down");this.hostElement.classList.remove("collapsing");this.hostElement.style.overflow="visible";this.hostElement.style.width="auto"}; g.computeContainerStyle=function(a,b){if(!a)return"";var c=this.colorFromDecimal(a.startBackgroundColor);a=this.colorFromDecimal(a.endBackgroundColor);b=b*100+"%";return"background:linear-gradient(90deg, "+c+","+c+" "+b+","+a+" "+b+","+a+");"}; g.onClick=function(){this.data.openEngagementPanelCommand?jz(this.data.openEngagementPanelCommand,this.hostElement):YM.activeInstance===this?(Gt(this.hostElement,"yt-live-chat-clear-pinned-message"),YM.activeInstance=null):this.data.showItemEndpoint&&(Gt(this.hostElement,"yt-navigate",{endpoint:this.data.showItemEndpoint}),YM.activeInstance=this)}; g.onKeyPress=function(a){if(a.code==="Enter")this.onClick()}; g.deletedChanged=function(){var a=this;this.ytLiveChatItemBehavior.isDeleted&&(this.hostElement.style.overflow="visible",this.hostElement.style.width="auto",bt(function(){a.setContainerWidth()})); var b=this.get("data.showItemEndpoint.showLiveChatItemEndpoint.renderer");b&&(b=Object.keys(b)[0],this.set("data.showItemEndpoint.showLiveChatItemEndpoint.renderer."+b+".deletedStateMessage",this.data.deletedStateMessage),this.selected&&Gt(this.hostElement,"yt-live-chat-pinned-message-update"))}; g.handlePauseReplay=function(){this.isAnimationPaused=!0;this.detlaSincePausedSecs=0}; g.handleResumeReplay=function(){this.isAnimationPaused=!1}; g.isAnimationPausedChanged=function(a,b){a?window.cancelAnimationFrame(this.rafId):!a&&b&&(a=this.lastCountdownTimeMs||0,this.detlaSincePausedSecs&&(a=(this.lastCountdownTimeMs||0)+this.detlaSincePausedSecs*1E3,this.detlaSincePausedSecs=0),this.updateTimeout(a),this.lastCountdownTimeMs=window.performance.now())}; g.handleReplayProgress=function(a){this.isAnimationPaused?this.detlaSincePausedSecs=Math.floor(a-this.playerProgressSec):this.playerProgressSec=a}; YM.prototype.handleReplayProgress=YM.prototype.handleReplayProgress;YM.prototype.isAnimationPausedChanged=YM.prototype.isAnimationPausedChanged;YM.prototype.handleResumeReplay=YM.prototype.handleResumeReplay;YM.prototype.handlePauseReplay=YM.prototype.handlePauseReplay;YM.prototype.deletedChanged=YM.prototype.deletedChanged;YM.prototype.onKeyPress=YM.prototype.onKeyPress;YM.prototype.onClick=YM.prototype.onClick;YM.prototype.computeContainerStyle=YM.prototype.computeContainerStyle; YM.prototype.requestRemoval=YM.prototype.requestRemoval;YM.prototype.collapse=YM.prototype.collapse;YM.prototype.slideDown=YM.prototype.slideDown;YM.prototype.setContainerWidth=YM.prototype.setContainerWidth;YM.prototype.updateTimeout=YM.prototype.updateTimeout;YM.prototype.startCountdown=YM.prototype.startCountdown;YM.prototype.updateWidthOnDataChanged=YM.prototype.updateWidthOnDataChanged;YM.activeInstance=null; n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],YM.prototype,"actionHandlerBehavior",void 0);n([M(),r("design:type",Object)],YM.prototype,"data",void 0);n([F(rM.YtLiveChatItemBehavior),r("design:type",sM)],YM.prototype,"ytLiveChatItemBehavior",void 0);n([M({computed:"computeContainerStyle(data, ratio)"}),r("design:type",String)],YM.prototype,"containerStyle",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],YM.prototype,"dimmed",void 0); n([M(),r("design:type",Object)],YM.prototype,"isDeleted",void 0);n([M(),r("design:type",Object)],YM.prototype,"selected",void 0);n([M(),r("design:type",Object)],YM.prototype,"ratio",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],YM.prototype,"ariaLabel",void 0);n([M(),r("design:type",Object)],YM.prototype,"shouldAnimateIn",void 0);n([M({observer:"isAnimationPausedChanged"}),r("design:type",Object)],YM.prototype,"isAnimationPaused",void 0); n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],YM.prototype,"updateWidthOnDataChanged",null);n([Kt("click"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],YM.prototype,"onClick",null);n([Kt("keypress"),r("design:type",Function),r("design:paramtypes",[KeyboardEvent]),r("design:returntype")],YM.prototype,"onKeyPress",null); n([Lt("isDeleted"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],YM.prototype,"deletedChanged",null);n([Vt()],YM);var AEb=[ft.YtActionHandlerBehavior,rM.YtLiveChatItemBehavior,YM.prototype];var ZM=function(){var a=E.apply(this,arguments)||this;a.maxLikeCount=0;a.maxReplyCount=0;a.hasLikeStats=!1;a.hasReplyStats=!1;a.isMouseOver=!1;return a}; k(ZM,E);g=ZM.prototype;g.onMouseEnter=function(){var a;(a=this.data)!=null&&a.dynamicStateData&&(this.animation=this.animateShowStats(),this.isMouseOver=!0)}; g.onMouseLeave=function(){var a;if((a=this.data)!=null&&a.dynamicStateData){this.isMouseOver=!1;var b;this.animateHideStats(((b=this.data)==null?void 0:b.dynamicStateData.stateSlideDurationMs)||0,0)}}; g.setRevampContainerWidth=function(){var a=this;(wt(this.hostElement).querySelector("#container").clientWidth||0)===0?(this.hostElement.style.overflow="visible",this.hostElement.style.width="auto"):(this.hostElement.style.overflow="hidden",this.ytLiveChatTickerItemBehavior.shouldAnimateIn?(this.hostElement.style.width="0",bt(function(){a.hostElement.style.width="auto"},1)):this.hostElement.style.width="auto")}; g.dataChanged=function(a){var b=this;if(a){wt(this.hostElement).querySelector("#content").style.color=this.ytLiveChatTickerItemBehavior.colorFromDecimal(a.amountTextColor);this.ytLiveChatTickerItemBehavior.startCountdown(a.durationSec,a.fullDurationSec);a.amount?(this.ytLiveChatTickerItemBehavior.ariaLabel=this.ytRendererBehavior.getSimpleString(a.amount),bt(function(){b.ytLiveChatTickerItemBehavior.setContainerWidth()})):a.authorUsername&&(this.ytLiveChatTickerItemBehavior.ariaLabel=this.ytRendererBehavior.getSimpleString(a.authorUsername), bt(function(){b.setRevampContainerWidth()})); var c,d;this.currentLikeCountText=(c=this.data)==null?void 0:(d=c.dynamicStateData)==null?void 0:d.emptyStateText;var e,f;this.currentReplyCountText=(e=this.data)==null?void 0:(f=e.dynamicStateData)==null?void 0:f.emptyStateText}}; g.stringsAreDifferent=function(a,b){return((a==null?void 0:a.content)||"")!==((b==null?void 0:b.content)||"")}; g.updateStatsBarAndMaybeShowAnimation=function(a,b,c){var d=this;a||c();a&&this.statsBar&&this.username&&this.textContent&&(this.isMouseOver?(b(),c()):(a=this.animateShowStats(),this.data.animationOrigin&&this.data.trackingParams&&gz().stateChanged(this.data.trackingParams,{animationEventData:{origin:this.data.animationOrigin}}),a.finished.then(function(){var e;setTimeout(function(){b();c();if(!d.isMouseOver){var f,h;d.animateHideStats(((f=d.data)==null?void 0:f.dynamicStateData.stateSlideDurationMs)|| 0,((h=d.data)==null?void 0:h.dynamicStateData.stateUpdateDelayAfterMs)||0)}},((e=d.data)==null?void 0:e.dynamicStateData.stateUpdateDelayBeforeMs)||0)})))}; g.likeCountEntityChanged=function(){var a=this,b=0;if(this.isLiked){var c;b=Number(((c=this.likeCountEntity)==null?void 0:c.likeCountIfLikedNumber)||"1")}else{var d;b=Number(((d=this.likeCountEntity)==null?void 0:d.likeCountIfIndifferentNumber)||"0")}if(this.isLiked){var e;var f=((e=this.likeCountEntity)==null?void 0:e.likeCountIfLiked)||{content:"1"}}else{var h;f=((h=this.likeCountEntity)==null?void 0:h.likeCountIfIndifferent)||{content:"0"}}c=b>this.maxLikeCount&&this.stringsAreDifferent(this.currentLikeCountText, f);this.updateStatsBarAndMaybeShowAnimation(c,function(){a.maxLikeCount=b},function(){a.currentLikeCountText=f})}; g.replyCountEntityChanged=function(){var a=this,b,c=Number(((b=this.replyCountEntity)==null?void 0:b.replyCountNumber)||"0"),d,e=((d=this.replyCountEntity)==null?void 0:d.replyCount)||{content:"0"};b=c>this.maxReplyCount&&this.stringsAreDifferent(this.currentReplyCountText,e);this.updateStatsBarAndMaybeShowAnimation(b,function(){a.maxReplyCount=c},function(){a.currentReplyCountText=e})}; g.animateShowStats=function(){var a=this.textContent.animate({transform:"translateY(-30px)"},{duration:this.data.dynamicStateData.stateSlideDurationMs,fill:"forwards"});this.username.animate({opacity:0},{duration:500,fill:"forwards"});this.statsBar.animate({opacity:1},{duration:500,fill:"forwards"});return a}; g.animateHideStats=function(a,b){this.textContent.animate({transform:"translateY(0)"},{duration:a,fill:"forwards",delay:b});this.username.animate({opacity:1},{duration:300,fill:"forwards",delay:b});this.statsBar.animate({opacity:0},{duration:300,fill:"forwards",delay:b})}; g.computeHasLikeStats=function(a){var b;return!!(a==null?0:(b=a.dynamicStateData)==null?0:b.likeCountEntityKey)}; g.computeHasReplyStats=function(a){var b;return!!(a==null?0:(b=a.dynamicStateData)==null?0:b.replyCountEntityKey)}; ba.Object.defineProperties(ZM.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){return this.engagementState&&this.engagementState.likeState==="TOOLBAR_LIKE_STATE_LIKED"}}, likeIcon:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d;if(((a=this.data)==null?0:(b=a.dynamicStateData)==null?0:b.likedIcon)&&((c=this.data)==null?0:(d=c.dynamicStateData)==null?0:d.likeIcon)){if(this.isLiked){var e,f;a=(e=this.data.dynamicStateData)==null?void 0:(f=e.likedIcon)==null?void 0:f.iconType}else{var h,m;a=(h=this.data.dynamicStateData)==null?void 0:(m=h.likeIcon)==null?void 0:m.iconType}return a==="LIKE_SELECTED"?"yt-sys-icons:like-filled":a}}}, replyIcon:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return(a=this.data)==null?void 0:(b=a.dynamicStateData)==null?void 0:(c=b.replyIcon)==null?void 0:c.iconType}}}); ZM.prototype.replyCountEntityChanged=ZM.prototype.replyCountEntityChanged;ZM.prototype.likeCountEntityChanged=ZM.prototype.likeCountEntityChanged;ZM.prototype.onMouseLeave=ZM.prototype.onMouseLeave;ZM.prototype.onMouseEnter=ZM.prototype.onMouseEnter;n([F(SL.YtPdgLiveChatItemBehavior),r("design:type",Object)],ZM.prototype,"ytPdgLiveChatItemBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],ZM.prototype,"ytRendererBehavior",void 0); n([F(AEb),r("design:type",Object)],ZM.prototype,"ytLiveChatTickerItemBehavior",void 0);n([F(iE),r("design:type",Object)],ZM.prototype,"ytLiveChatReduxBehavior",void 0);n([M({selectorArgs:["data.dynamicStateData.likeCountEntityKey"],selector:gCb}),r("design:type",Object)],ZM.prototype,"likeCountEntity",void 0);n([M({selectorArgs:["data.dynamicStateData.replyCountEntityKey"],selector:EAb}),r("design:type",Object)],ZM.prototype,"replyCountEntity",void 0); n([M({selectorArgs:["data.dynamicStateData.engagementStateEntityKey"],selector:DAb}),r("design:type",Object)],ZM.prototype,"engagementState",void 0);n([M(),r("design:type",Object)],ZM.prototype,"maxLikeCount",void 0);n([M(),r("design:type",Object)],ZM.prototype,"maxReplyCount",void 0);n([M(),r("design:type",Object)],ZM.prototype,"currentLikeCountText",void 0);n([M(),r("design:type",Object)],ZM.prototype,"currentReplyCountText",void 0); n([Tt("#text"),r("design:type",Element)],ZM.prototype,"username",void 0);n([Tt("#stats-bar"),r("design:type",Element)],ZM.prototype,"statsBar",void 0);n([Tt("#animation-container"),r("design:type",Element)],ZM.prototype,"textContent",void 0);n([M({reflectToAttribute:!0,computed:"computeHasLikeStats(data)"}),r("design:type",Object)],ZM.prototype,"hasLikeStats",void 0);n([M({reflectToAttribute:!0,computed:"computeHasReplyStats(data)"}),r("design:type",Object)],ZM.prototype,"hasReplyStats",void 0); n([M({observer:"dataChanged"}),r("design:type",Object)],ZM.prototype,"data",void 0);n([Kt("mouseenter"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],ZM.prototype,"onMouseEnter",null);n([Kt("mouseleave"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],ZM.prototype,"onMouseLeave",null);n([H("data.dynamicStateData","engagementState"),r("design:type",Object),r("design:paramtypes",[])],ZM.prototype,"isLiked",null); n([H("data.dynamicStateData","isLiked"),r("design:type",Object),r("design:paramtypes",[])],ZM.prototype,"likeIcon",null);n([H("data.dynamicStateData"),r("design:type",Object),r("design:paramtypes",[])],ZM.prototype,"replyIcon",null);n([Lt("likeCountEntity","isLiked"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],ZM.prototype,"likeCountEntityChanged",null); n([Lt("replyCountEntity"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],ZM.prototype,"replyCountEntityChanged",null);n([fu({disableElementRegistration:!0,is:"yt-live-chat-ticker-paid-message-item-renderer",noInjection:!0})],ZM); Tu(ZM,"yt-live-chat-ticker-paid-message-item-renderer",function(){if(zEb===void 0){var a=document.createElement("template");Q(a,"
\n
\n \n
\n
\n \n \n
\n
\n
\n \n \n
\n
\n \n \n
\n
\n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;yEb===void 0&&(yEb=document.createElement("template"));var d=yEb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);zEb=a}a=zEb;return a},{mode:0});var BEb;var CEb;var $M=function(){return E.apply(this,arguments)||this}; k($M,E);$M.prototype.dataChanged=function(a){var b=this;a&&(a.tickerThumbnails.length>1&&wt(this.hostElement).querySelector("#content").classList.add("multiple-thumbnails"),this.ytLiveChatTickerItemBehavior.startCountdown(a.durationSec,a.fullDurationSec),bt(function(){b.ytLiveChatTickerItemBehavior.setContainerWidth()}))}; n([F(SL.YtPdgLiveChatItemBehavior),r("design:type",Object)],$M.prototype,"ytPdgLiveChatItemBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],$M.prototype,"ytRendererBehavior",void 0);n([F(AEb),r("design:type",Object)],$M.prototype,"ytLiveChatTickerItemBehavior",void 0);n([M({observer:"dataChanged"}),r("design:type",Object)],$M.prototype,"data",void 0);n([fu({disableElementRegistration:!0,is:"yt-live-chat-ticker-paid-sticker-item-renderer",noInjection:!0})],$M); Tu($M,"yt-live-chat-ticker-paid-sticker-item-renderer",function(){if(CEb===void 0){var a=document.createElement("template");Q(a,"
\n
\n \n \n
\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;BEb===void 0&&(BEb=document.createElement("template"));var d=BEb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);CEb=a}a=CEb;return a},{mode:0});var DEb=function(){this.lastVideoOffsetTimeMsec=0;this.replayQueue=new pfb}; DEb.prototype.addReplayChatItemAction=function(a){this.replayQueue.back_.push(a);this.lastVideoOffsetTimeMsec=Number(a.videoOffsetTimeMsec)}; var EEb=function(a,b){for(var c=a.replayQueue.peek(),d=[];c&&b>=Number(c.videoOffsetTimeMsec);)c=rfb(a.replayQueue),d=d.concat(c.actions||[]),c=a.replayQueue.peek();return d}; DEb.prototype.clear=function(){this.replayQueue.clear();this.lastVideoOffsetTimeMsec=0};var FEb=function(){this.lastUpdateTime=this.JSC$11710_estimatedUpdateInterval=this.callback=null;this.JSC$11710_messageQueue=[];this.JSC$11710_nextUpdateId=null;this.pollResponseDelayQueue=new pfb}; FEb.prototype.clear=function(){this.JSC$11710_nextUpdateId!==null&&(clearTimeout(this.JSC$11710_nextUpdateId),this.JSC$11710_nextUpdateId=null);this.JSC$11710_messageQueue=[]}; FEb.prototype.enqueueActionGroup=function(a){if(this.lastUpdateTime!==null){var b=Date.now()-this.lastUpdateTime;this.pollResponseDelayQueue.back_.push(b);b=this.pollResponseDelayQueue;b.front_.length+b.back_.length>5&&rfb(this.pollResponseDelayQueue);this.JSC$11710_estimatedUpdateInterval=Math.max.apply(null,this.pollResponseDelayQueue.getValues())}this.lastUpdateTime=Date.now();b=[];for(var c=0;c
"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;GEb===void 0&&(GEb=document.createElement("template"));var d=GEb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);HEb=a}a=HEb;return a}}}); n([F(iE),r("design:type",Object)],aN.prototype,"ytLiveChatReduxBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],aN.prototype,"ytRendererstamperBehavior",void 0);n([M({selectorArgs:["data.enabledEntityKey"],selector:CAb,observer:"onEnabledChange"}),r("design:type",Boolean)],aN.prototype,"enabled",void 0);n([M(),r("design:type",Object)],aN.prototype,"data",void 0);n([fu({is:"yt-disableable-button-view-model",noInjection:!0})],aN);var IEb;var JEb;var bN=function(){var a=E.apply(this,arguments)||this;a.emojiManager=qM;a.isDarkTheme=document.documentElement.hasAttribute("dark");a.selectedIndex=1;a.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return a}; k(bN,E);g=bN.prototype;g.handleEmojiCustomizationVisible=function(a){this.emojiPickerRenderer.selected=a;this.selectedIndex=1;a?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0}; g.emojiCustomizationSetChanged=function(){var a;(a=this.data)!=null&&a.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!Ec(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))}; g.updateSaveButtonState=function(a){var b;(b=this.data)!=null&&b.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(dA("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:a}))}; g.emojiUrl=function(a){a=oM(this.emojiManager,a);if(!a)return"";var b;a=(b=a.image)==null?void 0:b.thumbnails;return EB(a,24)||""}; g.emojiAlt=function(a){var b=oM(this.emojiManager,a);if(!b)return a;var c,d,e,f=(b==null?void 0:(c=b.image)==null?void 0:(d=c.accessibility)==null?void 0:(e=d.accessibilityData)==null?void 0:e.label)||"";return f?f:b.isCustomEmoji?b.shortcuts[0]:b.emojiId||a}; g.emojiAriaLabel=function(a){var b,c;return((b=oM(this.emojiManager,a))==null?void 0:(c=b.shortcuts)==null?void 0:c[0])||a}; g.onEmojiClick=function(a){a.model.index!==0&&(this.selectedIndex=a.model.index)}; g.onEmojiSelect=function(a){a=a.detail;var b,c;((b=this.data)==null?0:b.emojiCustomizationSetEntityKey)&&((c=this.emojiCustomizationSet)==null?0:c.emojiId)&&a.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,a.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(dA("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,a.emojiId,this.selectedIndex)}))}; g.canEditEmoji=function(a,b,c){a=a.indexOf(b);return a===c||a===0||c===0?!1:!0}; g.getUpdatedEmojiIdList=function(a,b,c){var d=a.indexOf(b);a=[].concat(ia(a));d>=0&&(a[d]=a[c]);a[c]=b;return a}; ba.Object.defineProperties(bN,{template:{configurable:!0,enumerable:!0,get:function(){if(JEb===void 0){var a=document.createElement("template");Q(a,"\n
\n
\n \n
\n
\n\n\n\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;IEb===void 0&&(IEb=document.createElement("template"));var d=IEb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);JEb=a}a=JEb;return a}}}); bN.prototype.onEmojiSelect=bN.prototype.onEmojiSelect;n([F(iE),r("design:type",Object)],bN.prototype,"ytLiveChatReduxBehavior",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],bN.prototype,"ytActionHandlerBehavior",void 0);n([Tt("yt-emoji-picker-renderer"),r("design:type",Object)],bN.prototype,"emojiPickerRenderer",void 0); n([M({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:FAb,observer:"emojiCustomizationSetChanged"}),r("design:type",Object)],bN.prototype,"emojiCustomizationSet",void 0);n([M(),r("design:type",Object)],bN.prototype,"originalEmojiSet",void 0);n([M(),r("design:type",nM)],bN.prototype,"emojiManager",void 0);n([M(),r("design:type",Object)],bN.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],bN.prototype,"isDarkTheme",void 0); n([M(),r("design:type",Object)],bN.prototype,"selectedIndex",void 0);n([Kt("yt-emoji-select"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],bN.prototype,"onEmojiSelect",null);n([fu({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],bN);var KEb;var LEb;var MEb=["transVert01","transVert02","transVert03"],NEb="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),cN=function(){var a=E.apply(this,arguments)||this;a.emojiManager=qM;a.isDarkTheme=document.documentElement.hasAttribute("dark");a.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};a.reactionBuckets=[];a.noEmojiIdentifier="NO_EMOJI";return a}; k(cN,E);g=cN.prototype;g.isActiveChanged=function(){this.isActive||this.cleanupFountain()}; g.desktopFountainEmojiSizePxChanged=function(){Ft(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})}; g.createUserReactionAnimation=function(a){this.createEmojiAnimation(a,!0)}; g.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var a;((a=this.data)==null?0:a.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(dA("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(ia(this.emojiContainer.children)).forEach(function(b){b.remove()})}; g.detached=function(){this.cleanupFountain()}; g.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var a;this.reactionBuckets=Yh((a=this.emojiFountainData)==null?void 0:a.reactionBuckets)||[];this.processEmojiBucket(0)}}; g.processEmojiBucket=function(a){var b=this;if(this.reactionBuckets&&!(a>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var c=this.reactionBuckets[a];this.generateEmojiAnimations(c);if(a0&&b===0)if(c===1){e=0;for(var f=l(a.reactionsData),h=f.next();!h.done;h=f.next())h=h.value, h.reactionCount&&h.reactionCount>0&&e++;e=1/e;f=l(a.reactionsData);for(h=f.next();!h.done;h=f.next())h.value.reactionWeightOverride=e}else for(e=1/(1-c),f=l(a.reactionsData),h=f.next();!h.done;h=f.next())h=h.value,h.reactionWeightOverride&&(h.reactionWeightOverride*=e);e=Math.random();f=0;h=l(a.reactionsData);for(var m=h.next();!m.done;m=h.next())if(m=m.value,m.reactionCount&&(f=(m.reactionWeightOverride||m.reactionWeightOverride===0)&&d?f+m.reactionWeightOverride:f+c*m.reactionCount/b,f>e&&(m.reactionCount--, a.totalReactions--,m=this.reactionItemToEmojiString(m),m!==this.noEmojiIdentifier)))return m;return this.noEmojiIdentifier}; g.reactionItemToEmojiString=function(a){if(a.unicodeEmojiId)return a.unicodeEmojiId;if(a.emoteId)return a.emoteId;if(a.videoReactionType)switch(a.videoReactionType){case"VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled";}return this.noEmojiIdentifier}; g.createEmojiAnimation=function(a,b,c,d){b=b===void 0?!1:b;this.lastEmojiRequestedForTesting=a;var e=a.startsWith("yt-icons:"),f=oM(this.emojiManager,a);if(f||e){var h=document.createElement("emoji");h.classList.add("yt-emoji-fountain-view-model");h.classList.add(MEb[Math.floor(Math.random()*MEb.length)]);var m=document.createElement("div");m.classList.add("yt-emoji-fountain-view-model");m.classList.add("horizontal-container");m.classList.add(NEb[Math.floor(Math.random()*NEb.length)]);b?(c=document.createElement("div"), c.classList.add("user-reaction-bubble"),c.classList.add("yt-emoji-fountain-view-model"),m.appendChild(c)):(c&&(h.style.animationDuration=c+"ms",m.style.animationDuration=c+"ms"),d&&(h.style.width=d+"px",h.style.height=d+"px"));e?(e=document.createElement("yt-icon"),e.polymerController.icon=a,d&&(e.style.width=d+"px",e.style.height=d+"px"),a=e):a=this.emojiManager.createEmoji(f,!1);a.classList.add("yt-emoji-fountain-view-model");m.appendChild(a);h.appendChild(m);this.emojiContainer.appendChild(h); h.addEventListener("animationend",function(){h.remove()}); var p,q;if((p=this.data)==null?0:(q=p.loggingDirectives)==null?0:q.trackingParams)b=b?Rv(183501):Rv(183500),XL(this.data.loggingDirectives.trackingParams,b),xBb(b);setTimeout(function(){h&&h.remove()},2E3)}}; g.getEmojiDelayMsFromDistribution=function(a){return Math.random()*(a||1)*1E3}; g.getEmojiDelayMsFromTargetEps=function(a){return Math.random()*2*(1/a)*1E3}; g.linearInterpolateBounded=function(a,b,c,d,e){e=Math.min(Math.max(e,a),c);return(b*(c-e)+d*(e-a))/(c-a)}; cN.prototype.onEmojiFountainDataEntityUpdate=cN.prototype.onEmojiFountainDataEntityUpdate;cN.prototype.desktopFountainEmojiSizePxChanged=cN.prototype.desktopFountainEmojiSizePxChanged;cN.prototype.isActiveChanged=cN.prototype.isActiveChanged;n([M(),r("design:type",nM)],cN.prototype,"emojiManager",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],cN.prototype,"ytRendererBehavior",void 0);n([F(iE),r("design:type",Object)],cN.prototype,"ytLiveChatReduxBehavior",void 0); n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],cN.prototype,"ytActionHandlerBehavior",void 0);n([M(),r("design:type",Object)],cN.prototype,"data",void 0);n([M({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(a,b){return yA(a.entities,"emojiFountainDataEntity",b)}}), r("design:type",Object)],cN.prototype,"emojiFountainData",void 0);n([M(),r("design:type",Boolean)],cN.prototype,"isActive",void 0);n([Lt("isActive"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],cN.prototype,"isActiveChanged",null);n([M({reflectToAttribute:!0}),r("design:type",Object)],cN.prototype,"isDarkTheme",void 0);n([M(),r("design:type",String)],cN.prototype,"lastEmojiRequestedForTesting",void 0); n([M({value:function(){return ll("desktop_fountain_emoji_size_px",20)}}), r("design:type",Number)],cN.prototype,"desktopFountainEmojiSizePx",void 0);n([Lt("desktopFountainEmojiSizePx"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],cN.prototype,"desktopFountainEmojiSizePxChanged",null);n([Tt("#emoji-container"),r("design:type",HTMLElement)],cN.prototype,"emojiContainer",void 0);n([Lt("emojiFountainData"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],cN.prototype,"onEmojiFountainDataEntityUpdate",null); n([fu({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],cN); Tu(cN,"yt-emoji-fountain-view-model",function(){if(LEb===void 0){var a=document.createElement("template");Q(a,"
\n
\n
");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;KEb===void 0&&(KEb=document.createElement("template"));var d=KEb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);LEb=a}a=LEb;return a},{mode:0});var OEb;var PEb;var QEb;var REb;var dN=function(){var a=E.apply(this,arguments)||this;a.actionMap={"yt-cancel-vote-action":"handleVoteRequestError"};return a}; k(dN,E);g=dN.prototype;g.detached=function(){clearTimeout(this.spinnerTimerId)}; g.updateVoteBarStyles=function(){var a=this.hasVoted,b=this.data;b&&b.voteRatio&&a&&Ft(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*b.voteRatio-100+"%)")})}; g.onClick=function(){!this.hasVoted&&this.get("command.sendLiveChatVoteEndpoint")&&(this.set("data.selected",!0),$u(this.hostElement,[this.command]))}; g.handleVoteRequestError=function(){this.set("data.selected",!1)}; g.voteRequestInFlightChanged=function(){var a=this;this.voteRequestInFlight?this.spinnerTimerId=setTimeout(function(){a.showSpinner=!0},2E3):(clearTimeout(this.spinnerTimerId),this.showSpinner=!1)}; ba.Object.defineProperties(dN.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){var a=this.data.selected;return a===void 0?!!this.selected:!!a}}, command:{configurable:!0,enumerable:!0,get:function(){return this.data.selectServiceEndpoint}}, signInEndpoint:{configurable:!0,enumerable:!0,get:function(){return this.data.signinEndpoint}}, hasVotes:{configurable:!0,enumerable:!0,get:function(){return this.data.voteRatio>0}}}); dN.prototype.voteRequestInFlightChanged=dN.prototype.voteRequestInFlightChanged;dN.prototype.handleVoteRequestError=dN.prototype.handleVoteRequestError;dN.prototype.updateVoteBarStyles=dN.prototype.updateVoteBarStyles;n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],dN.prototype,"ytActionHandlerBehavior",void 0);n([M(),r("design:type",Object)],dN.prototype,"data",void 0); n([M({reflectToAttribute:!0}),H("data.selected"),r("design:type",Boolean),r("design:paramtypes",[])],dN.prototype,"selected",null);n([M(),r("design:type",Number)],dN.prototype,"spinnerTimerId",void 0);n([M({value:!1,reflectToAttribute:!0}),r("design:type",Boolean)],dN.prototype,"voteRequestInFlight",void 0);n([M({value:!1,reflectToAttribute:!0}),r("design:type",Boolean)],dN.prototype,"hasVoted",void 0);n([M({value:!1,reflectToAttribute:!0}),r("design:type",Boolean)],dN.prototype,"showSpinner",void 0); n([M({value:!1,reflectToAttribute:!0}),r("design:type",Boolean)],dN.prototype,"enableBannerUpdate",void 0);n([M(),H("data.selectServiceEndpoint"),r("design:type",Object),r("design:paramtypes",[])],dN.prototype,"command",null);n([M(),H("data.signinEndpoint"),r("design:type",Object),r("design:paramtypes",[])],dN.prototype,"signInEndpoint",null);n([M({value:!1,reflectToAttribute:!0}),r("design:type",Boolean)],dN.prototype,"isWinning",void 0); n([M({reflectToAttribute:!0}),H("data.voteRatio"),r("design:type",Boolean),r("design:paramtypes",[])],dN.prototype,"hasVotes",null);n([Lt("data","hasVoted"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],dN.prototype,"updateVoteBarStyles",null);n([Kt("yt-service-request-error"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],dN.prototype,"handleVoteRequestError",null); n([Lt("voteRequestInFlight"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],dN.prototype,"voteRequestInFlightChanged",null);n([fu({disableElementRegistration:!0,is:"yt-live-chat-poll-choice",noInjection:!0})],dN); Tu(dN,"yt-live-chat-poll-choice",function(){if(REb===void 0){var a=document.createElement("template");Q(a,"\n \n
\n
\n
\n
\n \n \n
\n
\n \n \n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;QEb===void 0&&(QEb=document.createElement("template"));var d=QEb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);REb=a}a=REb;return a},{mode:0});var SEb;var TEb;var eN=function(){var a=E.apply(this,arguments)||this;a.modern=x("web_button_rework_with_live");a.small=!1;return a}; k(eN,E);eN.prototype.computeIsSmall=function(){var a;return((a=this.buttonOverrides)==null?void 0:a.size)==="S"}; eN.prototype.computeId=function(){return this.data&&this.data.targetId}; n([F(hL.YtLiveChatTooltipTargetingBehavior),r("design:type",Object)],eN.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);n([M({computed:"computeId(data.targetId)",reflectToAttribute:!0}),r("design:type",String)],eN.prototype,"id",void 0);n([M(),r("design:type",Object)],eN.prototype,"buttonOverrides",void 0);n([M(),r("design:type",Object)],eN.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],eN.prototype,"modern",void 0); n([M({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),r("design:type",Object)],eN.prototype,"small",void 0);n([gu({disableElementRegistration:!0,is:"yt-live-chat-button"})],eN); Tu(eN,"yt-live-chat-button",function(){if(TEb===void 0){var a=document.createElement("template");Q(a,"\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;SEb===void 0&&(SEb=document.createElement("template"));var d=SEb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);TEb=a}a=TEb;return a},{mode:0});var UEb;var VEb;var fN=function(){return E.apply(this,arguments)||this}; k(fN,E);g=fN.prototype;g.computeButtonOverrides=function(a){return{size:"S",style:a?"mono":"mono-inverse",iconPosition:"icon-only",customColors:a?{iconColor:"var(--yt-live-chat-primary-text-color)"}:void 0}}; g.configureRendererStamper=function(){return{"cachedData.contextMenuButton":{id:"menu",events:!0,mapping:{buttonRenderer:{component:"yt-live-chat-button",properties:{buttonOverrides:"[[buttonOverrides]]"}}}}}}; g.dataChanged=function(){this.data&&this.data.contextMenuButton&&(this.data.contextMenuEndpoint=this.get("contextMenuButton.buttonRenderer.command",this.data))}; g.computeCachedData=function(){return this.cachedData?this.cachedData:this.data}; g.computeCreatorPhoto=function(){return this.cachedData?this.cachedData.liveChatPollType==="LIVE_CHAT_POLL_TYPE_STADIA"&&this.cachedData.questionThumbnail||this.cachedData.liveChatPollType==="LIVE_CHAT_POLL_TYPE_CREATOR"?this.cachedData.thumbnail||null:null:null}; g.computeGamePhoto=function(){return this.cachedData?this.cachedData.questionThumbnail?this.cachedData.questionThumbnail:this.cachedData.liveChatPollType==="LIVE_CHAT_POLL_TYPE_STADIA"?this.cachedData.thumbnail||null:null:null}; g.onContextMenuButtonClick=function(a){this.ytLiveChatItemBehavior.showContextMenu(a)}; g.onRenderStamperFinished=function(){var a=this.get("cachedData.contextMenuButton.buttonRenderer.targetId");a&&(this.ytLiveChatItemBehavior.menuButton=wt(this.hostElement).querySelector("#"+a))}; fN.prototype.onRenderStamperFinished=fN.prototype.onRenderStamperFinished;fN.prototype.dataChanged=fN.prototype.dataChanged;n([F($C.YtRendererstamperBehavior),r("design:type",Object)],fN.prototype,"ytRendererstamperBehavior",void 0);n([F(rM.YtLiveChatItemBehavior),r("design:type",sM)],fN.prototype,"ytLiveChatItemBehavior",void 0);n([M(),r("design:type",Object)],fN.prototype,"data",void 0);n([M({computed:"computeCachedData(data)"}),r("design:type",Object)],fN.prototype,"cachedData",void 0); n([M({computed:"computeCreatorPhoto(cachedData.thumbnail, cachedData.liveChatPollType)"}),r("design:type",Object)],fN.prototype,"creatorPhoto",void 0);n([M({computed:"computeGamePhoto(cachedData.thumbnail, cachedData.liveChatPollType)"}),r("design:type",Object)],fN.prototype,"gamePhoto",void 0);n([M({value:!1,reflectToAttribute:!0}),r("design:type",Boolean)],fN.prototype,"inCollapsedBanner",void 0); n([M({value:!1,reflectToAttribute:!0}),r("design:type",Boolean)],fN.prototype,"enableBannerUpdate",void 0);n([M({computed:"computeButtonOverrides(enableBannerUpdate)"}),r("design:type",Object)],fN.prototype,"buttonOverrides",void 0);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],fN.prototype,"dataChanged",null); n([Kt("yt-rendererstamper-finished"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],fN.prototype,"onRenderStamperFinished",null);n([fu({disableElementRegistration:!0,is:"yt-live-chat-poll-header-renderer",noInjection:!0})],fN); Tu(fN,"yt-live-chat-poll-header-renderer",function(){if(VEb===void 0){var a=document.createElement("template");Q(a,"
\n \n \n \n
\n
\n
\n \n \n
\n \n \n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;UEb===void 0&&(UEb=document.createElement("template"));var d=UEb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);VEb=a}a=VEb;return a},{mode:0});var WEb;var XEb;var gN=function(){var a=E.apply(this,arguments)||this;a.buttonOverrides={style:"mono",type:"filled"};a.actionMap={"yt-live-chat-actions":"handleLiveChatActions","yt-cancel-vote-action":"handleVoteRequestError","yt-update-live-chat-poll-action":"handleUpdateLiveChatPollAction"};return a}; k(gN,E);g=gN.prototype; g.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{pollHeaderRenderer:{component:"yt-live-chat-poll-header-renderer",properties:{inCollapsedBanner:"[[inCollapsedBanner]]",enableBannerUpdate:"[[enableBannerUpdate]]"}}},stamperStableList:!0},pollChoices:{id:"poll-choice-container",mapping:{pollChoice:{component:"yt-live-chat-poll-choice",properties:{enableBannerUpdate:"[[enableBannerUpdate]]"}}},stamperStableList:!0},"data.button":{id:"button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}}; g.created=function(){this.collapseTimerId=void 0}; g.enableBannerUpdateChanged=function(){this.enableBannerUpdate&&this.isAttached&&(this.inCollapsedBanner&&this.inCollapsedBannerChanged(),this.updatePollChoiceElements())}; g.attached=function(){var a=this;this.enableBannerUpdate&&ms(this,function(){a.isAttached&&(a.updatePollChoiceElements(),a.inCollapsedBanner&&a.inCollapsedBannerChanged())})}; g.detached=function(){clearTimeout(this.collapseTimerId)}; g.pollChoicesChanged=function(){var a,b=(a=this.data)==null?void 0:a.choices;b&&(this.set("pollChoices",b.map(function(c){return{pollChoice:c}})),this.updatePollChoiceElements())}; g.updatePollChoiceElements=function(){var a=this;if(!this.enableBannerUpdate||this.isAttached){var b=this.voteRequestInFlight,c,d=(c=this.data)==null?void 0:c.choices;if(d){var e=this.displayVoteResults||b,f=0;if(this.highlightWinningOption){c=1;for(var h=d.length;cd[f].voteRatio&&(f=c)}d=wt(this.hostElement).querySelector("#poll-choice-container").children;Array.prototype.forEach.call(d,function(m,p){m.hasVoted=e;m.voteRequestInFlight=b;a.highlightWinningOption&&(m.isWinning= p===f,(a.enableBannerUpdate?a.inCollapsedBanner&&a.isAttached:a.inCollapsedBanner)&&requestAnimationFrame(function(){a.slidePollChoice(m)}))})}}}; g.handleLiveChatActions=function(a){var b=this;a.forEach(function(c){z(c,Gob)&&b.handleUpdateLiveChatPollAction(c)})}; g.handleUpdateLiveChatPollAction=function(a){if(a=this.get("updateLiveChatPollAction.pollToUpdate.pollRenderer",a))this.set("data.displayVoteResults",a.displayVoteResults),this.displayVoteResults&&this.set("data.choices",a.choices),a.header&&this.set("data.header",a.header)}; g.computeDisplayVoteResults=function(a){return this.displayVoteResults?!0:!!a}; g.inCollapsedBannerChanged=function(){if(!this.enableBannerUpdate||this.isAttached){var a=this.inCollapsedBanner,b=vt(wt(this.hostElement).querySelector("#header")).firstElementChild;b&&(b.inCollapsedBanner=a,this.slidePollContents())}}; g.slidePollContents=function(){var a=this;if(this.highlightWinningOption){clearTimeout(this.collapseTimerId);this.isTransitioningCollapse=!0;var b=wt(this.hostElement).querySelector("yt-live-chat-poll-choice[is-winning]");if(this.inCollapsedBanner){var c=wt(this.hostElement).querySelector("#collapse-container").clientHeight;wt(this.hostElement).querySelector("#collapse-container").style.height=c+"px";b&&this.slidePollChoice(b);wt(this.hostElement).querySelector("#collapse-container").style.height= "0"}else wt(this.hostElement).querySelector("#collapse-container").style.height="auto",b.style.transform="translateY(0)";this.collapseTimerId=setTimeout(function(){a.isTransitioningCollapse=!1;a.collapseTimerId=void 0},350)}}; g.slidePollChoice=function(a){if(a)if(a.isWinning){var b=wt(wt(this.hostElement).querySelector("#header")).firstElementChild;b=wt(b).querySelector("#content-top").clientHeight;var c=wt(this.hostElement).querySelector("#poll-choice-container");a.style.transform="";c=Math.max(0,a.getBoundingClientRect().top-c.getBoundingClientRect().top);a.style.transform="translateY(-"+(b+c)+"px)"}else a.style.transform=""}; g.handleServiceRequestSent=function(a){(a=this.get("detail.endpoint",a))&&a.sendLiveChatVoteEndpoint&&(this.voteRequestInFlight=!0)}; g.handleServiceRequestCompleted=function(a,b){this.voteRequestInFlight=!1;var c;this.endPollRequestInFlight&&((c=b.data)==null?0:c.success)&&(this.hasClosed=!0);this.endPollRequestInFlight=!1}; g.handleServiceRequestError=function(){this.endPollRequestInFlight=!1;this.handleVoteRequestError()}; g.handleVoteRequestError=function(){this.voteRequestInFlight=!1}; g.onRenderStamperFinished=function(){var a=this;this.enableBannerUpdate&&this.inCollapsedBanner&&ms(this,function(){a.isAttached&&(a.updatePollChoiceElements(),a.inCollapsedBannerChanged())})}; g.onClickButton=function(a){a.stopPropagation()}; g.handleEndButtonAction=function(a){a.detail.actionName==="yt-service-request"&&(this.endPollRequestInFlight||this.hasClosed?a.stopPropagation():this.endPollRequestInFlight=!0)}; g.pollStateEntityChanged=function(){var a=this,b=this.pollStateEntity;if(b){this.set("data.header.pollHeaderRenderer.metadataText",b.metadataText);var c;this.set("data.choices",b==null?void 0:(c=b.pollChoiceStates)==null?void 0:c.map(function(d){var e={};Object.assign(e,a.get("data.choices."+d.key));var f;e.votePercentage=(f=d.value)==null?void 0:f.votePercentage;var h;e.voteRatio=(h=d.value)==null?void 0:h.voteRatio;return e}))}}; gN.prototype.pollStateEntityChanged=gN.prototype.pollStateEntityChanged;gN.prototype.onRenderStamperFinished=gN.prototype.onRenderStamperFinished;gN.prototype.handleServiceRequestError=gN.prototype.handleServiceRequestError;gN.prototype.handleServiceRequestCompleted=gN.prototype.handleServiceRequestCompleted;gN.prototype.handleServiceRequestSent=gN.prototype.handleServiceRequestSent;gN.prototype.inCollapsedBannerChanged=gN.prototype.inCollapsedBannerChanged;gN.prototype.pollChoicesChanged=gN.prototype.pollChoicesChanged; gN.prototype.enableBannerUpdateChanged=gN.prototype.enableBannerUpdateChanged;n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],gN.prototype,"ytActionHandlerBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],gN.prototype,"ytRendererstamperBehavior",void 0);n([F(iE),r("design:type",Object)],gN.prototype,"ytLiveChatReduxBehavior",void 0);n([M(),r("design:type",Object)],gN.prototype,"data",void 0); n([M({selector:AAb,selectorArgs:["data.pollStateEntityKey"]}),r("design:type",Object)],gN.prototype,"pollStateEntity",void 0);n([M({value:!1}),r("design:type",Boolean)],gN.prototype,"voteRequestInFlight",void 0);n([M({value:!1}),r("design:type",Boolean)],gN.prototype,"endPollRequestInFlight",void 0);n([M({value:!1}),r("design:type",Boolean)],gN.prototype,"hasClosed",void 0); n([M({value:!1,computed:"computeDisplayVoteResults(data.displayVoteResults)"}),r("design:type",Boolean)],gN.prototype,"displayVoteResults",void 0);n([M({value:!1,reflectToAttribute:!0}),r("design:type",Boolean)],gN.prototype,"highlightWinningOption",void 0);n([M(),r("design:type",Array)],gN.prototype,"pollChoices",void 0);n([M({value:!1,reflectToAttribute:!0}),r("design:type",Boolean)],gN.prototype,"inCollapsedBanner",void 0); n([M({value:!1,reflectToAttribute:!0}),r("design:type",Boolean)],gN.prototype,"enableBannerUpdate",void 0);n([M({value:!1,reflectToAttribute:!0}),r("design:type",Boolean)],gN.prototype,"isTransitioningCollapse",void 0);n([M(),r("design:type",Object)],gN.prototype,"collapseTimerId",void 0);n([M(),r("design:type",Object)],gN.prototype,"buttonOverrides",void 0); n([Lt("enableBannerUpdate"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],gN.prototype,"enableBannerUpdateChanged",null);n([Lt("data.choices","voteRequestInFlight"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],gN.prototype,"pollChoicesChanged",null);n([Lt("inCollapsedBanner"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],gN.prototype,"inCollapsedBannerChanged",null); n([Kt("yt-service-request-sent"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],gN.prototype,"handleServiceRequestSent",null);n([Kt("yt-service-request-completed"),r("design:type",Function),r("design:paramtypes",[CustomEvent,lB]),r("design:returntype")],gN.prototype,"handleServiceRequestCompleted",null);n([Kt("yt-service-request-error"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],gN.prototype,"handleServiceRequestError",null); n([Kt("yt-rendererstamper-finished"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],gN.prototype,"onRenderStamperFinished",null);n([Lt("pollStateEntity"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],gN.prototype,"pollStateEntityChanged",null);n([fu({disableElementRegistration:!0,is:"yt-live-chat-poll-renderer",noInjection:!0})],gN); Tu(gN,"yt-live-chat-poll-renderer",function(){if(XEb===void 0){var a=document.createElement("template");Q(a,"
\n
\n
\n
\n
\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;WEb===void 0&&(WEb=document.createElement("template"));var d=WEb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);XEb=a}a=XEb;return a},{mode:0});var YEb;var ZEb;var hN=function(){return E.apply(this,arguments)||this}; k(hN,E);hN.prototype.maybeLoadAnimationBackground=function(){this.useAnimationBackground?this.lottieAnimation||(this.lottieAnimation=lottie.loadAnimation({container:this.animationBackground,loop:!0,renderer:"svg",path:"https://www.gstatic.com/youtube/img/livestream/live_chat/lottie_animation/shimmer_background.json",autoplay:!0})):this.lottieAnimation&&this.lottieAnimation.destroy()}; hN.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground}; hN.prototype.created=function(){this.ids={background:Uw(),maskOne:Uw(),maskTwo:Uw(),gradient:Uw(),largeBackground:Uw(),largeGradientOne:Uw(),largeGradientTwo:Uw(),largeGradientPath:Uw()}}; hN.prototype.maybeLoadAnimationBackground=hN.prototype.maybeLoadAnimationBackground;n([M({value:!1}),r("design:type",Boolean)],hN.prototype,"useLargeBackground",void 0);n([M({value:!1}),r("design:type",Boolean)],hN.prototype,"useAnimationBackground",void 0);n([M({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),r("design:type",Boolean)],hN.prototype,"useRegularBackground",void 0);n([M(),r("design:type",Object)],hN.prototype,"ids",void 0); n([M(),r("design:type",Object)],hN.prototype,"lottieAnimation",void 0);n([Tt("#animation-background"),r("design:type",HTMLDivElement)],hN.prototype,"animationBackground",void 0);n([Lt("useAnimationBackground"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],hN.prototype,"maybeLoadAnimationBackground",null);n([fu({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],hN); Tu(hN,"yt-live-interactivity-component-background",function(){if(ZEb===void 0){var a=document.createElement("template");Q(a,"\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;YEb===void 0&&(YEb=document.createElement("template"));var d=YEb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);ZEb=a}a=ZEb;return a},{mode:0});var iN=function(){var a=E.apply(this,arguments)||this;a.enableBannerUpdate=!1;a.actionMap={"yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleRemoveChatItemAction","yt-mark-chat-item-as-deleted-action":"handleMarkChatItemAsDeletedAction"};return a}; k(iN,E);g=iN.prototype;g.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{pollRenderer:{component:"yt-live-chat-poll-renderer",properties:{enableBannerUpdate:"[[enableBannerUpdate]]"}}}}}}; g.computeId=function(){return this.data&&this.data.id||""}; g.handleLiveChatActions=function(a){a=l(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=rCa(b);if(!c)break;c==="removeChatItemAction"?this.handleRemoveChatItemAction(b):c==="markChatItemAsDeletedAction"&&this.handleMarkChatItemAsDeletedAction(b)}}; g.handleRemoveChatItemAction=function(a){this.handleRemoveAction(z(a,GJ))}; g.handleMarkChatItemAsDeletedAction=function(a){this.handleRemoveAction(z(a,IJ))}; g.handleRemoveAction=function(a){this.hostElement.id===a.targetItemId&&Xu(this.hostElement,"yt-close-live-chat-action-panel-action",[{closeLiveChatActionPanelAction:{targetPanelId:this.hostElement.id}}])}; n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],iN.prototype,"ytActionHandlerBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],iN.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],iN.prototype,"data",void 0);n([M({computed:"computeId(data.id)"}),r("design:type",String)],iN.prototype,"id",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],iN.prototype,"enableBannerUpdate",void 0); n([gu({disableElementRegistration:!0,is:"yt-live-chat-action-panel-renderer"})],iN); Tu(iN,"yt-live-chat-action-panel-renderer",function(){if(PEb===void 0){var a=document.createElement("template");Q(a,"
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;OEb===void 0&&(OEb=document.createElement("template"));var d=OEb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);PEb=a}a=PEb;return a},{mode:0});var $Eb;var aFb,bFb=function(){if(aFb!==void 0)return aFb;var a=document.createElement("template");Q(a,""); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;$Eb===void 0&&($Eb=document.createElement("template"));var d=$Eb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return aFb=a};var jN=function(){var a=E.apply(this,arguments)||this;a.animationRef={};a.creatorGoalCelebrationLottieProps=void 0;a.animationPlaying=!1;a.currentCreatorGoalState="CREATOR_GOAL_STATE_UNKNOWN";a.creatorGoalEntityKey="";return a}; k(jN,E);jN.prototype.onCreatorGoalCelebrationComplete=function(){this.creatorGoalCelebrationLottieProps=void 0;this.animationPlaying=!1}; jN.prototype.playAnimation=function(){this.animationPlaying=!0;this.creatorGoalCelebrationLottieProps={animationRef:this.animationRef,animationConfig:{name:"yt-live-chat-overlay-animation",path:"https://www.gstatic.com/youtube/img/pdg/super_chat/creator_goal_confetti_v1.json",autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{complete:this.onCreatorGoalCelebrationComplete.bind(this)}}}; jN.prototype.handleCreatorGoalStateChange=function(){if(this.creatorGoalEntity&&this.creatorGoalEntity.creatorGoalState){var a=this.creatorGoalEntity.creatorGoalState;this.currentCreatorGoalState==="CREATOR_GOAL_STATE_ACTIVE"&&a==="CREATOR_GOAL_STATE_COMPLETE"&&this.playAnimation();this.currentCreatorGoalState=a}}; ba.Object.defineProperties(jN,{template:{configurable:!0,enumerable:!0,get:function(){return bFb()}}}); jN.prototype.handleCreatorGoalStateChange=jN.prototype.handleCreatorGoalStateChange;n([F(iE),r("design:type",Object)],jN.prototype,"ytLiveChatReduxBehavior",void 0);n([M(),r("design:type",Object)],jN.prototype,"animationRef",void 0);n([M(),r("design:type",Object)],jN.prototype,"creatorGoalCelebrationLottieProps",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],jN.prototype,"animationPlaying",void 0);n([M(),r("design:type",Object)],jN.prototype,"currentCreatorGoalState",void 0); n([M(),r("design:type",Object)],jN.prototype,"creatorGoalEntityKey",void 0);n([M({selectorArgs:["creatorGoalEntityKey"],selector:GAb}),r("design:type",Object)],jN.prototype,"creatorGoalEntity",void 0);n([Lt("creatorGoalEntity.creatorGoalState"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],jN.prototype,"handleCreatorGoalStateChange",null);n([fu({is:"yt-live-chat-animation-overlay-renderer",disableElementRegistration:!0,noInjection:!0})],jN); Tu(jN,"yt-live-chat-animation-overlay-renderer",function(){return bFb()},{mode:0});var cFb;var dFb;var eFb;var fFb;var gFb;var hFb;var iFb=function(){return E.apply(this,arguments)||this}; k(iFb,E);n([M(),r("design:type",Object)],iFb.prototype,"data",void 0);n([fu({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],iFb); Tu(iFb,"yt-live-chat-message-subtext-renderer",function(){if(hFb===void 0){var a=document.createElement("template");Q(a,"\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;gFb===void 0&&(gFb=document.createElement("template"));var d=gFb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);hFb=a}a=hFb;return a},{mode:0});var kN=function(){var a=E.apply(this,arguments)||this;a.subtextOnBottom=!1;a.buttonOverrides={style:"mono",type:"tonal"};return a}; k(kN,E);kN.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.subtext":{id:"subtext",mapping:{messageSubtextRenderer:"yt-live-chat-message-subtext-renderer"}}}}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],kN.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],kN.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],kN.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],kN.prototype,"subtextOnBottom",void 0);n([M(),r("design:type",Object)],kN.prototype,"buttonOverrides",void 0); n([fu({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],kN); Tu(kN,"yt-live-chat-message-renderer",function(){if(fFb===void 0){var a=document.createElement("template");Q(a,"\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;eFb===void 0&&(eFb=document.createElement("template"));var d=eFb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);fFb=a}a=fFb;return a},{mode:0});var jFb;var kFb;var lFb;var mFb;var lN=function(){var a=E.apply(this,arguments)||this;a.inCollapsedBanner=!1;a.enableBannerUpdate=!1;a.onLikeButtonClick=a.onFeedbackButtonClick.bind(a,!0);a.onDislikeButtonClick=a.onFeedbackButtonClick.bind(a,!1);return a}; k(lN,E);g=lN.prototype; g.configureRendererStamper=function(){return{"data.icon":{id:"icon",mapping:{iconType:{component:"yt-icon",properties:{icon:"[[data.icon.iconType]]"},attributes:{"default-to-filled":!0}}}},"data.contextMenuButton":{id:"menu",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"menu-button"},properties:{overrides:"[[buttonOverrides]]"}}}},"data.likeFeedbackButton":{id:"like-feedback-button",events:!0,mapping:{toggleButtonViewModel:{component:"yt-toggle-button-view-model",properties:{overrides:"[[buttonOverrides]]", scopingClassName:"[[is]]",onToggle:"[[onLikeButtonClick]]"}}}},"data.dislikeFeedbackButton":{id:"dislike-feedback-button",events:!0,mapping:{toggleButtonViewModel:{component:"yt-toggle-button-view-model",properties:{overrides:"[[buttonOverrides]]",scopingClassName:"[[is]]",onToggle:"[[onDislikeButtonClick]]"}}}}}}; g.dataChanged=function(){var a=this.data,b;if(z(this==null?void 0:(b=this.data)==null?void 0:b.contextMenuButton,TJ)){var c;a.contextMenuEndpoint=z((c=this.data)==null?void 0:c.contextMenuButton,TJ).command}else a.contextMenuEndpoint=void 0}; g.onContextMenuButtonClick=function(a){this.ytLiveChatItemBehavior.showContextMenu(a)}; g.onFeedbackButtonClick=function(a,b){if(this.likeButtonEl&&this.dislikeButtonEl){var c=z(this.data.likeFeedbackButton,aK),d=z(this.data.dislikeFeedbackButton,aK);a?c.isToggled=b:d.isToggled=b;a&&b?this.maybeUntoggleFeedbackButton(d):!a&&b&&this.maybeUntoggleFeedbackButton(c)}}; g.onRenderStamperFinished=function(){this.ytLiveChatItemBehavior.menuButton=wt(this.hostElement).querySelector("#menu-button")}; g.maybeUntoggleFeedbackButton=function(a){a.isToggled&&(a.isToggled=!1,this.data=Object.assign({},this.data))}; ba.Object.defineProperties(lN.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{size:"S",style:this.enableBannerUpdate?"mono":"mono-inverse",iconPosition:"icon-only"}}}, hasFeedbackButtons:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!(((a=this.data)==null?0:a.likeFeedbackButton)&&((b=this.data)==null?0:b.dislikeFeedbackButton))}}}); lN.prototype.onRenderStamperFinished=lN.prototype.onRenderStamperFinished;n([F(Yz.YtRendererBehavior),r("design:type",Object)],lN.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],lN.prototype,"ytRendererstamperBehavior",void 0);n([F(rM.YtLiveChatItemBehavior),r("design:type",sM)],lN.prototype,"ytLiveChatItemBehavior",void 0);n([M({observer:"dataChanged"}),r("design:type",Object)],lN.prototype,"data",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],lN.prototype,"inCollapsedBanner",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],lN.prototype,"enableBannerUpdate",void 0);n([H("enableBannerUpdate"),r("design:type",Object),r("design:paramtypes",[])],lN.prototype,"buttonOverrides",null);n([H("data"),r("design:type",Boolean),r("design:paramtypes",[])],lN.prototype,"hasFeedbackButtons",null); n([Tt("#like-feedback-button > yt-toggle-button-view-model"),r("design:type",HTMLElement)],lN.prototype,"likeButtonEl",void 0);n([Tt("#dislike-feedback-button > yt-toggle-button-view-model"),r("design:type",HTMLElement)],lN.prototype,"dislikeButtonEl",void 0);n([M(),r("design:type",Object)],lN.prototype,"onLikeButtonClick",void 0);n([M(),r("design:type",Object)],lN.prototype,"onDislikeButtonClick",void 0); n([Kt("yt-rendererstamper-finished"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],lN.prototype,"onRenderStamperFinished",null);n([fu({disableElementRegistration:!0,is:"yt-live-chat-banner-chat-summary-renderer",noInjection:!0})],lN); Tu(lN,"yt-live-chat-banner-chat-summary-renderer",function(){if(mFb===void 0){var a=document.createElement("template");Q(a,"
\n
\n
\n \n \n
\n
\n
\n
\n
\n
\n
");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;lFb===void 0&&(lFb=document.createElement("template"));var d=lFb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);mFb=a}a=mFb;return a},{mode:0});var nFb;var oFb;var mN=function(){var a=E.apply(this,arguments)||this;a.enableBannerUpdate=!1;return a}; k(mN,E);g=mN.prototype;g.computeButtonOverrides=function(a){return{style:a?"mono":"mono-inverse",size:"S"}}; g.configureRendererStamper=function(){return{"data.contextMenuButton":{id:"menu",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"},params:{forceModernIconButton:!0},attributes:{id:"menu-button"}}}}}}; g.onContextMenuButtonClick=function(a){this.ytLiveChatItemBehavior.showContextMenu(a)}; g.dataChanged=function(){this.data&&this.data.contextMenuButton&&(this.data.contextMenuEndpoint=this.get("contextMenuButton.buttonRenderer.command",this.data))}; g.onRenderStamperFinished=function(){this.ytLiveChatItemBehavior.menuButton=wt(this.hostElement).querySelector("#menu-button")}; mN.prototype.onRenderStamperFinished=mN.prototype.onRenderStamperFinished;mN.prototype.dataChanged=mN.prototype.dataChanged;n([F(rM.YtLiveChatItemBehavior),r("design:type",sM)],mN.prototype,"ytLiveChatItemBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],mN.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],mN.prototype,"data",void 0);n([M({reflectToAttribute:!0,value:function(){return x("web_button_rework_with_live")}}), r("design:type",Boolean)],mN.prototype,"modern",void 0);n([M({value:!1,reflectToAttribute:!0}),r("design:type",Boolean)],mN.prototype,"inCollapsedBanner",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],mN.prototype,"enableBannerUpdate",void 0);n([M({computed:"computeButtonOverrides(enableBannerUpdate)"}),r("design:type",Object)],mN.prototype,"buttonOverrides",void 0); n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],mN.prototype,"dataChanged",null);n([Kt("yt-rendererstamper-finished"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],mN.prototype,"onRenderStamperFinished",null);n([fu({disableElementRegistration:!0,is:"yt-live-chat-banner-header-renderer",noInjection:!0})],mN); var pFb=Tu(mN,"yt-live-chat-banner-header-renderer",function(){if(oFb===void 0){var a=document.createElement("template");Q(a,"
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;nFb===void 0&&(nFb=document.createElement("template"));var d=nFb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);oFb=a}a=oFb;return a},{mode:0});var qFb;var rFb;var nN=function(){var a=E.apply(this,arguments)||this;a.enableBannerUpdate=!1;return a}; k(nN,E);nN.prototype.onChoiceChanged=function(){this.data&&Ft(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})}; nN.prototype.onChoiceChanged=nN.prototype.onChoiceChanged;n([M(),r("design:type",Object)],nN.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],nN.prototype,"enableBannerUpdate",void 0);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],nN.prototype,"onChoiceChanged",null);n([gu({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],nN); Tu(nN,"yt-live-chat-banner-poll-choice",function(){if(rFb===void 0){var a=document.createElement("template");Q(a,"
\n
\n
\n
\n
\n \n \n
\n
\n\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;qFb===void 0&&(qFb=document.createElement("template"));var d=qFb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);rFb=a}a=rFb;return a},{mode:0});var sFb;var tFb;var oN=function(){var a=E.apply(this,arguments)||this;a.enableBannerUpdate=!1;a.enableButtonUpdate=!1;return a}; k(oN,E);oN.prototype.configureRendererStamper=function(){return{choices:{id:"poll-choices-container",mapping:{choiceData:{component:"yt-live-chat-banner-poll-choice",properties:{enableBannerUpdate:"[[enableBannerUpdate]]"}}},stamperStableList:!0},"data.contextMenuButton":{id:"menu",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"menu-button"},properties:{overrides:"[[buttonOverrides]]"}}}}}}; oN.prototype.onContextMenuButtonClick=function(a){this.ytLiveChatItemBehavior.showContextMenu(a)}; oN.prototype.dataChanged=function(){var a=this.data,b;if(z(this==null?void 0:(b=this.data)==null?void 0:b.contextMenuButton,TJ)){var c;a.contextMenuEndpoint=z((c=this.data)==null?void 0:c.contextMenuButton,TJ).command}else a.contextMenuEndpoint=void 0}; oN.prototype.onRenderStamperFinished=function(){this.ytLiveChatItemBehavior.menuButton=wt(this.hostElement).querySelector("#menu-button")}; ba.Object.defineProperties(oN.prototype,{metadataText:{configurable:!0,enumerable:!0,get:function(){var a,b;return(b=(a=this.liveChatPollStateEntity)==null?void 0:a.metadataText)!=null?b:{}}}, collapsedMetadataText:{configurable:!0,enumerable:!0,get:function(){var a,b;return(b=(a=this.liveChatPollStateEntity)==null?void 0:a.collapsedMetadataText)!=null?b:{}}}, showPollQuestion:{configurable:!0,enumerable:!0,get:function(){var a;return!this.inCollapsedBanner&&!((a=this.data)==null||!a.pollQuestion)}}, choices:{configurable:!0,enumerable:!0,get:function(){var a,b=((a=this.liveChatPollStateEntity)==null?void 0:a.pollChoiceStates)||[],c={};a=l(b);for(b=a.next();!b.done;b=a.next())b=b.value,b.key!==void 0&&b.value&&(c[b.key]=b.value);var d,e,f;return(f=(d=this.data)==null?void 0:(e=d.pollChoices)==null?void 0:e.map(function(h){return{choiceData:Object.assign({},c[h.pollOptionId]||{},h)}}))!=null?f:[]}}, buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{size:"S",style:this.enableBannerUpdate||this.enableButtonUpdate?"mono":"mono-inverse",iconPosition:"icon-only",customColors:this.enableBannerUpdate||this.enableButtonUpdate?{iconColor:"var(--yt-live-chat-primary-text-color)"}:void 0}}}}); oN.prototype.onRenderStamperFinished=oN.prototype.onRenderStamperFinished;n([F($C.YtRendererstamperBehavior),r("design:type",Object)],oN.prototype,"ytRendererstamperBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],oN.prototype,"ytRendererBehavior",void 0);n([F(iE),r("design:type",Object)],oN.prototype,"ytLiveChatReduxBehavior",void 0);n([F(rM.YtLiveChatItemBehavior),r("design:type",sM)],oN.prototype,"ytLiveChatItemBehavior",void 0); n([M({observer:"dataChanged"}),r("design:type",Object)],oN.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],oN.prototype,"inCollapsedBanner",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],oN.prototype,"enableBannerUpdate",void 0);n([M({selectorArgs:["data.liveChatPollStateEntityKey"],selector:AAb}),r("design:type",Object)],oN.prototype,"liveChatPollStateEntity",void 0); n([H("liveChatPollStateEntity"),r("design:type",Object),r("design:paramtypes",[])],oN.prototype,"metadataText",null);n([H("liveChatPollStateEntity"),r("design:type",Object),r("design:paramtypes",[])],oN.prototype,"collapsedMetadataText",null);n([H("inCollapsedBanner","data"),r("design:type",Boolean),r("design:paramtypes",[])],oN.prototype,"showPollQuestion",null);n([H("liveChatPollStateEntity"),r("design:type",Array),r("design:paramtypes",[])],oN.prototype,"choices",null); n([M(),r("design:type",Object)],oN.prototype,"enableButtonUpdate",void 0);n([H("enableBannerUpdate","enableButtonUpdate"),r("design:type",Object),r("design:paramtypes",[])],oN.prototype,"buttonOverrides",null);n([Kt("yt-rendererstamper-finished"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],oN.prototype,"onRenderStamperFinished",null);n([gu({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-renderer"})],oN); Tu(oN,"yt-live-chat-banner-poll-renderer",function(){if(tFb===void 0){var a=document.createElement("template");Q(a,"
\n \n \n \n \n
\n
\n
\n \n
\n
\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;sFb===void 0&&(sFb=document.createElement("template"));var d=sFb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);tFb=a}a=tFb;return a},{mode:0});var uFb;var vFb;var pN=function(){var a=E.apply(this,arguments)||this;a.enableBannerUpdate=!1;return a}; k(pN,E);g=pN.prototype;g.computeMenuButtonOverrides=function(a){return{size:"S",style:a?"mono":"mono-inverse",iconPosition:"icon-only"}}; g.computeInlineButtonOverrides=function(a){return{style:a?"mono-inverse":"mono",type:"filled"}}; g.configureRendererStamper=function(){return{"data.inlineActionButton":{id:"inline-button",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"inline-action-button"},properties:{overrides:"[[inlineButtonOverrides]]"}}}},"data.contextMenuButton":{id:"menu",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"menu-button"},properties:{overrides:"[[menuButtonOverrides]]"}}}}}}; g.onContextMenuButtonClick=function(a){this.ytLiveChatItemBehavior.showContextMenu(a)}; g.onRenderStamperFinished=function(){this.ytLiveChatItemBehavior.menuButton=wt(this.hostElement).querySelector("#menu-button")}; g.dataChanged=function(){var a=this.data,b;if(z(this==null?void 0:(b=this.data)==null?void 0:b.contextMenuButton,TJ)){var c;a.contextMenuEndpoint=z((c=this.data)==null?void 0:c.contextMenuButton,TJ).command}else a.contextMenuEndpoint=void 0}; pN.prototype.onRenderStamperFinished=pN.prototype.onRenderStamperFinished;n([F(rM.YtLiveChatItemBehavior),r("design:type",sM)],pN.prototype,"ytLiveChatItemBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],pN.prototype,"ytRendererstamperBehavior",void 0);n([M({observer:"dataChanged"}),r("design:type",Object)],pN.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],pN.prototype,"inCollapsedBanner",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],pN.prototype,"enableBannerUpdate",void 0);n([M({computed:"computeMenuButtonOverrides(enableBannerUpdate)"}),r("design:type",Object)],pN.prototype,"menuButtonOverrides",void 0);n([M({computed:"computeInlineButtonOverrides(enableBannerUpdate)"}),r("design:type",Object)],pN.prototype,"inlineButtonOverrides",void 0); n([Kt("yt-rendererstamper-finished"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],pN.prototype,"onRenderStamperFinished",null);n([gu({disableElementRegistration:!0,is:"yt-live-chat-banner-redirect-renderer"})],pN); Tu(pN,"yt-live-chat-banner-redirect-renderer",function(){if(vFb===void 0){var a=document.createElement("template");Q(a,"
\n \n \n \n \n
\n
\n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;uFb===void 0&&(uFb=document.createElement("template"));var d=uFb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);vFb=a}a=vFb;return a},{mode:0});var wFb;var xFb;var yFb;var zFb;var qN=function(){var a=E.apply(this,arguments)||this;a.inCollapsedBanner=!1;a.enableBannerUpdate=!1;a.questionButtonOverrides={style:"mono",type:"filled"};return a}; k(qN,E);g=qN.prototype;g.computeButtonOverrides=function(a){return{size:"S",style:a?"mono":"mono-inverse",iconPosition:"icon-only"}}; g.configureRendererStamper=function(){return{"data.overflowMenuButton":{id:"menu",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"menu-button"},properties:{overrides:"[[buttonOverrides]]"}}}},"data.askQuestionButton":{id:"ask-question",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"ask-question-button"},properties:{overrides:"[[questionButtonOverrides]]"}}}}}}; g.onContextMenuButtonClick=function(a){this.ytLiveChatItemBehavior.showContextMenu(a)}; g.onYtRendererstamperFinished=function(){this.menuButton=wt(this.hostElement).querySelector("#menu-button")}; g.dataChanged=function(){var a,b;if((b=z((a=this.data)==null?void 0:a.overflowMenuButton,TJ))==null?0:b.command)this.data.contextMenuEndpoint=z(this.data.overflowMenuButton,TJ).command}; g.onButtonClick=function(){var a,b=z((a=this.data)==null?void 0:a.askQuestionButton,TJ);b&&(b.trackingParams&&wBb(b.trackingParams),Gt(this.hostElement,"innertube-command",b.command))}; qN.prototype.onYtRendererstamperFinished=qN.prototype.onYtRendererstamperFinished;n([F($C.YtRendererstamperBehavior),r("design:type",Object)],qN.prototype,"ytRendererstamperBehavior",void 0);n([F(iE),r("design:type",Object)],qN.prototype,"ytLiveChatReduxBehavior",void 0);n([F(rM.YtLiveChatItemBehavior),r("design:type",sM)],qN.prototype,"ytLiveChatItemBehavior",void 0);n([M({observer:"dataChanged"}),r("design:type",Object)],qN.prototype,"data",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],qN.prototype,"inCollapsedBanner",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],qN.prototype,"enableBannerUpdate",void 0);n([M(),r("design:type",Object)],qN.prototype,"questionButtonOverrides",void 0);n([M({computed:"computeButtonOverrides(enableBannerUpdate)"}),r("design:type",Object)],qN.prototype,"buttonOverrides",void 0); n([Kt("yt-rendererstamper-finished"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],qN.prototype,"onYtRendererstamperFinished",null);n([gu({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],qN); Tu(qN,"yt-live-chat-call-for-questions-renderer",function(){if(zFb===void 0){var a=document.createElement("template");Q(a,"
\n \n \n\n
\n \n \n\n \n \n\n \n \n\n \n \n\n \n \n
\n\n
\n
\n\n
\n \n \n\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;yFb===void 0&&(yFb=document.createElement("template"));var d=yFb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);zFb=a}a=zFb;return a},{mode:0});var AFb;var BFb;var rN=function(){var a=E.apply(this,arguments)||this;a.enableBannerUpdate=!1;return a}; k(rN,E);g=rN.prototype;g.computeButtonOverrides=function(a){return{size:"S",style:a?"mono":"mono-inverse",iconPosition:"icon-only"}}; g.computeQuestionButtonOverrides=function(a){return{style:a?"mono":"mono-inverse",type:"filled"}}; g.configureRendererStamper=function(){return{"data.overflowMenuButton":{id:"menu",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"menu-button"},properties:{overrides:"[[buttonOverrides]]"}}}},"data.askQuestionButton":{id:"ask-question",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"ask-question-button"},properties:{overrides:"[[questionButtonOverrides]]"}}}}}}; g.onContextMenuButtonClick=function(a){this.ytLiveChatItemBehavior.showContextMenu(a)}; g.onYtRendererstamperFinished=function(){this.menuButton=wt(this.hostElement).querySelector("#menu-button")}; g.dataChanged=function(){var a,b;if((b=z((a=this.data)==null?void 0:a.overflowMenuButton,TJ))==null?0:b.command)this.data.contextMenuEndpoint=z(this.data.overflowMenuButton,TJ).command}; g.onButtonClick=function(){var a,b=z((a=this.data)==null?void 0:a.askQuestionButton,TJ);b&&(b.trackingParams&&wBb(b.trackingParams),Gt(this.hostElement,"innertube-command",b.command))}; rN.prototype.onYtRendererstamperFinished=rN.prototype.onYtRendererstamperFinished;n([F($C.YtRendererstamperBehavior),r("design:type",Object)],rN.prototype,"ytRendererstamperBehavior",void 0);n([F(iE),r("design:type",Object)],rN.prototype,"ytLiveChatReduxBehavior",void 0);n([F(rM.YtLiveChatItemBehavior),r("design:type",sM)],rN.prototype,"ytLiveChatItemBehavior",void 0);n([M({observer:"dataChanged"}),r("design:type",Object)],rN.prototype,"data",void 0); n([M({reflectToAttribute:!0,value:!1}),r("design:type",Boolean)],rN.prototype,"inCollapsedBanner",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],rN.prototype,"enableBannerUpdate",void 0);n([M({computed:"computeButtonOverrides(enableBannerUpdate)"}),r("design:type",Object)],rN.prototype,"buttonOverrides",void 0);n([M({computed:"computeQuestionButtonOverrides(enableBannerUpdate)"}),r("design:type",Object)],rN.prototype,"questionButtonOverrides",void 0); n([Kt("yt-rendererstamper-finished"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],rN.prototype,"onYtRendererstamperFinished",null);n([gu({disableElementRegistration:!0,is:"yt-live-chat-creator-answers-questions-banner-renderer"})],rN); Tu(rN,"yt-live-chat-creator-answers-questions-banner-renderer",function(){if(BFb===void 0){var a=document.createElement("template");Q(a,"
\n \n \n \n \n \n
\n
\n\n
\n \n \n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;AFb===void 0&&(AFb=document.createElement("template"));var d=AFb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);BFb=a}a=BFb;return a},{mode:0});var CFb;var DFb;var sN=function(){var a=E.apply(this,arguments)||this;a.enableBannerUpdate=!1;return a}; k(sN,E);sN.prototype.onProgressChanged=function(){var a,b=((a=this.progress)!=null?a:0)*100;Ft(this.hostElement,{"--progress-bar-completion":b+"%"})}; sN.prototype.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}}; sN.prototype.onTapDonate=function(){this.data&&this.data.liveChatDonationsEndpoint&&(Gt(this.hostElement,"yt-live-chat-toggle-banner"),Gt(this.hostElement,"yt-navigate",{endpoint:this.data.liveChatDonationsEndpoint}))}; ba.Object.defineProperties(sN.prototype,{noGoal:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null?0:a.goal)}}, buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono",type:"filled"}}}, targetAmount:{configurable:!0,enumerable:!0,get:function(){var a,b=(a=this.data)==null?void 0:a.goal;if(b){var c,d;return EFb(b,(d=(c=this.fundraiserStatsEntity)==null?void 0:c.targetAmount)!=null?d:"")}}}, amountRaised:{configurable:!0,enumerable:!0,get:function(){var a,b=(a=this.data)==null?void 0:a.raised;if(b){var c,d;return EFb(b,(d=(c=this.fundraiserStatsEntity)==null?void 0:c.amountRaised)!=null?d:"")}}}, progress:{configurable:!0,enumerable:!0,get:function(){var a,b;return(b=(a=this.fundraiserStatsEntity)==null?void 0:a.progress)!=null?b:0}}, hasGoalBeenReached:{configurable:!0,enumerable:!0,get:function(){return this.progress>=1}}}); sN.prototype.onProgressChanged=sN.prototype.onProgressChanged;n([F($C.YtRendererstamperBehavior),r("design:type",Object)],sN.prototype,"ytRendererstamperBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],sN.prototype,"ytRendererBehavior",void 0);n([F(iE),r("design:type",Object)],sN.prototype,"ytLiveChatReduxBehavior",void 0);n([M(),r("design:type",Object)],sN.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],sN.prototype,"inCollapsedBanner",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],sN.prototype,"enableBannerUpdate",void 0);n([M({reflectToAttribute:!0}),H("data.goal"),r("design:type",Boolean),r("design:paramtypes",[])],sN.prototype,"noGoal",null);n([Lt("progress"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],sN.prototype,"onProgressChanged",null);n([M({selectorArgs:["data.fundraiserStatsEntityKey"],selector:function(a,b){return yA(a.entities,"updatableFundraiserStatsEntity",b)}}), r("design:type",Object)],sN.prototype,"fundraiserStatsEntity",void 0);n([H("data.goal","fundraiserStatsEntity"),r("design:type",Object),r("design:paramtypes",[])],sN.prototype,"targetAmount",null);n([H("data.raised","fundraiserStatsEntity"),r("design:type",Object),r("design:paramtypes",[])],sN.prototype,"amountRaised",null);n([H("fundraiserStatsEntity"),r("design:type",Number),r("design:paramtypes",[])],sN.prototype,"progress",null); n([H("progress"),r("design:type",Boolean),r("design:paramtypes",[])],sN.prototype,"hasGoalBeenReached",null);n([gu({disableElementRegistration:!0,is:"yt-live-chat-donations-progress-bar-renderer"})],sN);function EFb(a,b){var c;return Object.assign({},a,{runs:(c=a.runs)==null?void 0:c.map(function(d){var e;return Object.assign({},d,{text:(e=d.text)==null?void 0:e.replace("$0",b)})})})} Tu(sN,"yt-live-chat-donations-progress-bar-renderer",function(){if(DFb===void 0){var a=document.createElement("template");Q(a,"
\n
\n
\n \n \n \n
\n
\n\n \n\n \n\n
\n
\n \n
\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;CFb===void 0&&(CFb=document.createElement("template"));var d=CFb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);DFb=a}a=DFb;return a},{mode:0});var FFb;var GFb;var tN=function(){var a=E.apply(this,arguments)||this;a.authorBadges=[];return a}; k(tN,E);g=tN.prototype;g.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0}; g.configureRendererStamper=function(){return{"data.inlineActionButtons":{id:"inline-action-buttons",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[filledButtonOverrides]]"}}}},"data.beforeContentButtons":{id:"before-content-buttons",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}}}}; g.dataChanged=function(){var a=eBb(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",a)}; g.updateMessage=function(){var a;this.updateMessageElem("#message",(a=this.data)==null?void 0:a.message)}; g.updateMessagePrefixIcon=function(){var a=wt(wt(this.hostElement).querySelector("#message-prefix-icon-container"));a.textContent="";var b;if((b=this.data)==null?0:b.messagePrefixIcon)b=document.createElement("yt-icon"),b.id="message-prefix-icon",this.data.messagePrefixIcon.iconType!=null&&(b.polymerController.icon=cz(this.data.messagePrefixIcon.iconType)),a.appendChild(b)}; g.updateHoverMessage=function(){var a;this.updateMessageElem("#hover-message",(a=this.data)==null?void 0:a.hoverMessage)}; g.updateMessageElem=function(a,b){a=wt(wt(this.hostElement).querySelector(a));a.textContent="";b&&a.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(b))}; g.shouldSupportWholeItemClick=function(){return!0}; g.onShowOriginalClick=function(a){a.preventDefault();this.showOriginal=!0}; g.computeShowBar=function(a,b,c){return a&&b||c}; g.computeAuthorBadges=function(a){return a.authorBadges||[]}; g.computeAuthorIsOwner=function(a){return!!fBb(a.authorBadges,"owner")}; g.computeAuthorNameColor=function(a){var b;if(x("live_chat_author_name_color_usernames")&&(a==null?0:(b=a.authorName)==null?0:b.simpleText))return gBb(iBb(a.authorName.simpleText));if(x("live_chat_seed_color_usernames")&&(a==null?0:a.authorSeedColorArgb))return gBb(RL(a.authorSeedColorArgb));if(x("live_chat_colored_usernames"))return"#cc0000";var c;return x("live_chat_simple_color_usernames")&&(a==null?0:(c=a.authorName)==null?0:c.simpleText)&&(a==null?0:a.authorUsernameColorLight)&&(a==null?0:a.authorUsernameColorDark)&& !this.inBanner?document.documentElement.hasAttribute("dark")?RL(a.authorUsernameColorDark):RL(a.authorUsernameColorLight):""}; tN.prototype.updateHoverMessage=tN.prototype.updateHoverMessage;tN.prototype.updateMessagePrefixIcon=tN.prototype.updateMessagePrefixIcon;tN.prototype.updateMessage=tN.prototype.updateMessage;tN.prototype.dataChanged=tN.prototype.dataChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],tN.prototype,"ytRendererBehavior",void 0);n([F(rM.YtLiveChatItemBehavior),r("design:type",sM)],tN.prototype,"ytLiveChatItemBehavior",void 0); n([F($C.YtRendererstamperBehavior),r("design:type",Object)],tN.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],tN.prototype,"data",void 0);n([M({value:!1,reflectToAttribute:!0}),r("design:type",Boolean)],tN.prototype,"showOriginal",void 0);n([M({value:!1,reflectToAttribute:!0,computed:"truthy(data.hoverMessage)"}),r("design:type",Boolean)],tN.prototype,"hasHoverMessage",void 0); n([M({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),r("design:type",Boolean)],tN.prototype,"isDimmed",void 0);n([M({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),r("design:type",Boolean)],tN.prototype,"showBar",void 0);n([M({computed:"computeAuthorBadges(data)"}),r("design:type",Array)],tN.prototype,"authorBadges",void 0); n([M({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),r("design:type",Boolean)],tN.prototype,"authorIsOwner",void 0);n([M({value:!1,reflectToAttribute:!0}),r("design:type",Boolean)],tN.prototype,"inCollapsedBanner",void 0);n([M({value:!1,reflectToAttribute:!0}),r("design:type",Boolean)],tN.prototype,"inBanner",void 0);n([M({value:!1,reflectToAttribute:!0}),r("design:type",Boolean)],tN.prototype,"enableBannerUpdate",void 0); n([M({value:x("live_chat_hide_avatars"),reflectToAttribute:!0}),r("design:type",Boolean)],tN.prototype,"avatarHidden",void 0);n([M({computed:"computeAuthorNameColor(data)"}),r("design:type",String)],tN.prototype,"authorNameColor",void 0);n([M(),r("design:type",vM)],tN.prototype,"participantsManager",void 0);n([M({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),r("design:type",Object)],tN.prototype,"filledButtonOverrides",void 0); n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],tN.prototype,"dataChanged",null);n([Lt("data.message"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],tN.prototype,"updateMessage",null);n([Lt("data.messagePrefixIcon"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],tN.prototype,"updateMessagePrefixIcon",null); n([Lt("data.hoverMessage"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],tN.prototype,"updateHoverMessage",null);n([fu({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],tN); var HFb=Tu(tN,"yt-live-chat-text-message-renderer",function(){if(GFb===void 0){var a=document.createElement("template");Q(a,"
[[timestampString]]\u200B
\u200B[[getSimpleString(data.deletedStateMessage)]][[getSimpleString(data.showOriginalContentMessage)]]
");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;FFb===void 0&&(FFb=document.createElement("template"));var d=FFb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);GFb=a}a=GFb;return a},{mode:0});var IFb;var uN=function(){var a=E.apply(this,arguments)||this;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-live-chat-set-dark-theme":"onDarkModeToggledAction"};return a}; k(uN,E);g=uN.prototype;g.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")}; g.onDarkModeToggledAction=function(a){this.isDarkTheme!==a&&(this.isDarkTheme=a)}; g.computeBackgroundStyle=function(a){if(a&&a.containerWidth&&a.containerHeight)return"background-color:"+(a.backgroundColor?Jy(a.backgroundColor):"transparent")+";width:"+(a.containerWidth.toString()+"px;height:")+(a.containerHeight.toString()+"px;")}; g.computeBackgroundImage=function(a,b){if(a)return b?a.imageOverlayDarkMode:a.imageOverlay}; g.computeChannelImageStyle=function(a){if(a&&a.containerWidth&&a.containerHeight&&a.avatarSize)return"left:"+(((a.containerWidth-a.avatarSize)/2).toString()+"px;top:")+(((a.containerHeight-a.avatarSize)/2).toString()+"px;")}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],uN.prototype,"ytRendererBehavior",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],uN.prototype,"ytActionHandlerBehavior",void 0);n([M(),r("design:type",Object)],uN.prototype,"data",void 0);n([M({reflectToAttribute:!0,value:!1}),r("design:type",Boolean)],uN.prototype,"isDarkTheme",void 0);n([M({computed:"computeBackgroundStyle(data)"}),r("design:type",String)],uN.prototype,"backgroundStyle",void 0); n([M({computed:"computeBackgroundImage(data,isDarkTheme)"}),r("design:type",Object)],uN.prototype,"backgroundImage",void 0);n([M({computed:"computeChannelImageStyle(data)"}),r("design:type",String)],uN.prototype,"channelImageStyle",void 0);n([gu({disableElementRegistration:!0,is:"ytd-sponsorships-avatar-renderer"})],uN); Tu(uN,"ytd-sponsorships-avatar-renderer",function(){if(IFb!==void 0)return IFb;var a=document.createElement("template");Q(a,"
\n\n \n \n\n \n \n\n \n\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return IFb=a},{mode:1});var JFb;var vN=function(){var a=E.apply(this,arguments)||this;a.buttonOverrides={size:"S",style:"mono-inverse",type:"text"};return a}; k(vN,E);vN.prototype.onContextMenuClick=function(a){this.ytLiveChatItemBehavior.showContextMenu(a)}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],vN.prototype,"ytRendererBehavior",void 0);n([F(rM.YtLiveChatItemBehavior),r("design:type",sM)],vN.prototype,"ytLiveChatItemBehavior",void 0);n([M(),r("design:type",Object)],vN.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],vN.prototype,"inCollapsedBanner",void 0);n([M(),r("design:type",Object)],vN.prototype,"buttonOverrides",void 0); n([gu({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-banner-renderer"})],vN); Tu(vN,"ytd-sponsorships-live-chat-gift-redemption-banner-renderer",function(){if(JFb!==void 0)return JFb;var a=document.createElement("template");Q(a,"
\n \n \n
\n \n \n \n
\n
\n
\n \n
\n
\n \n
\n \n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return JFb=a},{mode:1});var wN=function(){var a=E.apply(this,arguments)||this;a.boundOnWindowClick=a.onWindowClick.bind(a);a.collapseTimeout=0;a.collapsed=!1;a.tabindex=0;a.enableBannerUpdate=!1;a.shouldUseLargeBackground=!1;a.shouldUseAnimationBackground=!1;a.isPollBanner=!1;a.isRedirectBanner=!1;a.isGiftRedemptionBanner=!1;a.isCallForQuestions=!1;a.isCreatorAnswersQuestionsBanner=!1;a.isDonationsBanner=!1;a.hasCustomCollapsedState=!1;a.isIndeterminate=!1;return a}; k(wN,E);g=wN.prototype; g.configureRendererStamper=function(){return{"data.contents":{id:"contents",events:!0,mapping:{liveChatTextMessageRenderer:{component:"yt-live-chat-text-message-renderer",properties:{inCollapsedBanner:"[[collapsed]]",enableBannerUpdate:"[[enableBannerUpdate]]"},attributes:{"in-banner":!0}},donationsProgressBarRenderer:{component:"yt-live-chat-donations-progress-bar-renderer",properties:{inCollapsedBanner:"[[collapsed]]",enableBannerUpdate:"[[enableBannerUpdate]]"}},pollRenderer:{component:"yt-live-chat-poll-renderer",properties:{inCollapsedBanner:"[[collapsed]]", enableBannerUpdate:"[[enableBannerUpdate]]"},attributes:{"highlight-winning-option":!0,"in-banner":!0}},liveChatBannerPollRenderer:{component:"yt-live-chat-banner-poll-renderer",properties:{inCollapsedBanner:"[[collapsed]]",enableBannerUpdate:"[[enableBannerUpdate]]"}},liveChatBannerRedirectRenderer:{component:"yt-live-chat-banner-redirect-renderer",properties:{inCollapsedBanner:"[[collapsed]]",enableBannerUpdate:"[[enableBannerUpdate]]"}},liveChatSponsorshipsGiftRedemptionBannerRenderer:{component:"ytd-sponsorships-live-chat-gift-redemption-banner-renderer", properties:{inCollapsedBanner:"[[collapsed]]"}},liveChatCallForQuestionsRenderer:{component:"yt-live-chat-call-for-questions-renderer",properties:{inCollapsedBanner:"[[collapsed]]",enableBannerUpdate:"[[enableBannerUpdate]]"},attributes:{"in-banner":!0}},liveChatCreatorAnswersQuestionsRenderer:{component:"yt-live-chat-creator-answers-questions-banner-renderer",properties:{inCollapsedBanner:"[[collapsed]]",enableBannerUpdate:"[[enableBannerUpdate]]"},attributes:{"in-banner":!0}},liveChatBannerChatSummaryRenderer:{component:"yt-live-chat-banner-chat-summary-renderer", properties:{inCollapsedBanner:"[[collapsed]]",enableBannerUpdate:"[[enableBannerUpdate]]"}}}},"data.header":{id:"header",mapping:{liveChatBannerHeaderRenderer:{component:"yt-live-chat-banner-header-renderer",properties:{enableBannerUpdate:"[[enableBannerUpdate]]"}}}}}}; g.attached=function(){this.collapsed||this.startCollapseTimeout();window.addEventListener("click",this.boundOnWindowClick)}; g.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyPress","space:keydown":"onKeyPress"}}; g.detached=function(){this.stopCollapseTimeout();window.removeEventListener("click",this.boundOnWindowClick)}; g.computeId=function(a){return a}; g.computeShouldUseLargeBackground=function(){return this.isPollBanner&&!this.shouldUseAnimationBackground}; g.computeShouldUseAnimationBackground=function(){return this.data.backgroundType==="LIVE_CHAT_BANNER_BACKGROUND_TYPE_SHIMMER_ANIMATION"}; g.computeIsPollBanner=function(){var a,b;return!!this.data.contents&&(!((a=this.getContentsRenderer())==null||!a.pollRenderer)||!((b=this.getContentsRenderer())==null||!b.liveChatBannerPollRenderer))}; g.computeIsRedirectBanner=function(){var a;return!((a=this.getContentsRenderer())==null||!a.liveChatBannerRedirectRenderer)}; g.computeIsGiftRedemptionBanner=function(){var a;return!((a=this.getContentsRenderer())==null||!a.liveChatSponsorshipsGiftRedemptionBannerRenderer)}; g.computeIsCallForQuestions=function(){var a;return!!this.data.contents&&!((a=this.getContentsRenderer())==null||!a.liveChatCallForQuestionsRenderer)}; g.computeIsCreatorAnswersQuestionsBanner=function(){var a;return!((a=this.getContentsRenderer())==null||!a.liveChatCreatorAnswersQuestionsRenderer)}; g.computeIsDonationsBanner=function(){var a;return!((a=this.getContentsRenderer())==null||!a.donationsProgressBarRenderer)}; g.computeHasCustomCollapsedState=function(){return this.isPollBanner||this.isGiftRedemptionBanner||this.isCallForQuestions||this.isCreatorAnswersQuestionsBanner||this.isRedirectBanner}; g.computeIsIndeterminate=function(){var a;return!((a=this.getContentsRenderer())==null||!a.pollRenderer)}; g.shouldDisableStateChange=function(){var a;return!this.hostElement.offsetParent||!((a=this.getContentsRenderer())==null||!a.liveChatBannerChatSummaryRenderer)}; g.startCollapseTimeout=function(){var a=this;this.collapseTimeout=setTimeout(function(){a.shouldDisableStateChange()||(a.collapsed=!0)},7E3)}; g.stopCollapseTimeout=function(){this.collapseTimeout&&(clearTimeout(this.collapseTimeout),this.collapseTimeout=0)}; g.collapsedChanged=function(){var a=this.collapsed,b=this.contents.firstElementChild;[b,this.header.firstElementChild].forEach(function(c){c&&(c.inCollapsedBanner=a)}); a&&this.stopCollapseTimeout();this.slideBannerContents(b)}; g.slideBannerContents=function(){}; g.toggleBanner=function(){this.shouldDisableStateChange()||(this.collapsed=!this.collapsed)}; g.onClick=function(a){var b=this;(a=si(a.target,function(c){return c.tagName==="A"||c===b.contents},!0))&&a!==this.contents||this.toggleBanner()}; g.onKeyPress=function(){document.activeElement===this.hostElement&&this.toggleBanner()}; g.onWindowClick=function(a){if(!this.collapsed&&!this.shouldDisableStateChange()){a=a.target;var b=document.querySelector("yt-live-chat-app");b&&b.contains(a)&&!Wia(a,"yt-live-chat-dialog-renderer")&&!this.hostElement.contains(a)&&(this.collapsed=!0)}}; g.getContentsRenderer=function(){var a;return(a=this.data)==null?void 0:a.contents}; wN.prototype.onClick=wN.prototype.onClick;wN.prototype.toggleBanner=wN.prototype.toggleBanner;wN.prototype.collapsedChanged=wN.prototype.collapsedChanged;n([F($C.YtRendererstamperBehavior),r("design:type",Object)],wN.prototype,"ytRendererstamperBehavior",void 0);n([F(Lw),r("design:type",Object)],wN.prototype,"ironA11yKeysBehavior",void 0);n([M(),r("design:type",Object)],wN.prototype,"data",void 0);n([M({computed:"computeId(data.actionId)"}),r("design:type",String)],wN.prototype,"id",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],wN.prototype,"collapsed",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],wN.prototype,"tabindex",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],wN.prototype,"enableBannerUpdate",void 0);n([M({computed:"computeShouldUseLargeBackground(isPollBanner, shouldUseAnimationBackground)"}),r("design:type",Object)],wN.prototype,"shouldUseLargeBackground",void 0); n([M({computed:"computeShouldUseAnimationBackground(data.backgroundType)"}),r("design:type",Object)],wN.prototype,"shouldUseAnimationBackground",void 0);n([M({computed:"computeIsPollBanner(data.contents)",reflectToAttribute:!0}),r("design:type",Object)],wN.prototype,"isPollBanner",void 0);n([M({computed:"computeIsRedirectBanner(data.contents)",reflectToAttribute:!0}),r("design:type",Object)],wN.prototype,"isRedirectBanner",void 0); n([M({computed:"computeIsGiftRedemptionBanner(data.contents)",reflectToAttribute:!0}),r("design:type",Object)],wN.prototype,"isGiftRedemptionBanner",void 0);n([M({computed:"computeIsCallForQuestions(data.contents)",reflectToAttribute:!0}),r("design:type",Object)],wN.prototype,"isCallForQuestions",void 0);n([M({computed:"computeIsCreatorAnswersQuestionsBanner(data.contents)",reflectToAttribute:!0}),r("design:type",Object)],wN.prototype,"isCreatorAnswersQuestionsBanner",void 0); n([M({computed:"computeIsDonationsBanner(data.contents)",reflectToAttribute:!0}),r("design:type",Object)],wN.prototype,"isDonationsBanner",void 0);n([M({computed:"computeHasCustomCollapsedState(data.contents)",reflectToAttribute:!0}),r("design:type",Object)],wN.prototype,"hasCustomCollapsedState",void 0);n([M({computed:"computeIsIndeterminate(data.contents)"}),r("design:type",Object)],wN.prototype,"isIndeterminate",void 0);n([Tt("#contents"),r("design:type",HFb)],wN.prototype,"contents",void 0); n([Tt("#header"),r("design:type",pFb)],wN.prototype,"header",void 0);n([Lt("collapsed"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],wN.prototype,"collapsedChanged",null);n([Kt("yt-live-chat-toggle-banner"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],wN.prototype,"toggleBanner",null);n([Kt("click"),r("design:type",Function),r("design:paramtypes",[Event]),r("design:returntype")],wN.prototype,"onClick",null); n([fu({disableElementRegistration:!0,is:"yt-live-chat-banner-renderer",noInjection:!0})],wN); Tu(wN,"yt-live-chat-banner-renderer",function(){if(xFb===void 0){var a=document.createElement("template");Q(a,"
\n
\n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;wFb===void 0&&(wFb=document.createElement("template"));var d=wFb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);xFb=a}a=xFb;return a},{mode:0});var xN=["liveChatTextMessageRenderer","donationsProgressBarRenderer"];x("live_chat_enable_qna_replay")&&xN.push("liveChatCreatorAnswersQuestionsRenderer"); var KFb=["pollRenderer"],yN=function(){var a=E.apply(this,arguments)||this;a.isTransitioningBanner=!1;a.liveChatActionMap={addBannerToLiveChatCommand:"handleAddBannerToLiveChatCommand",removeBannerForLiveChatCommand:"handleRemoveBannerForLiveChatCommand",removeChatItemAction:"handleRemoveChatItemAction",removeChatItemByAuthorAction:"handleRemoveChatItemByAuthorAction",markChatItemAsDeletedAction:"handleMarkChatItemAsDeletedAction",markChatItemsByAuthorAsDeletedAction:"handleMarkChatItemsByAuthorAsDeletedAction"}; a.activeBanners=[];a.enableBannerUpdate=!1;a.bannerQueue=[];a.ephemeralBannerTimeoutIds=[];a.actionMap={"yt-live-chat-actions":"handleLiveChatActions","yt-remove-banner-for-live-chat-command":"handleRemoveBannerForLiveChatCommand","yt-remove-chat-item-action":"handleRemoveChatItemAction","yt-mark-chat-item-as-deleted-action":"handleMarkChatItemAsDeletedAction","yt-mark-chat-items-by-author-as-deleted-action":"handleMarkChatItemsByAuthorAsDeletedAction"};return a}; k(yN,E);g=yN.prototype;g.configureRendererStamper=function(){return{visibleBanners:{id:"visible-banners",mapping:{liveChatBannerRenderer:{component:"yt-live-chat-banner-renderer",properties:{enableBannerUpdate:"[[enableBannerUpdate]]",collapsed:"[[enableBannerUpdate]]"}}},reuseComponents:!1,stamperStableList:!1}}}; g.created=function(){this.boundIsPinnedBanner=this.isPinnedBanner.bind(this);this.boundIsIndeterminateBanner=this.isIndeterminateBanner.bind(this);if(new Gp(window.location.href,!0).queryData_.get("hide_pinned_chat")!==void 0){var a=xN.indexOf("liveChatTextMessageRenderer");a!==-1&&xN.splice(a,1)}}; g.reset=function(){this.activeBanners=[];this.bannerQueue=[];this.isTransitioningBanner=!1;this.ephemeralBannerTimeoutIds.forEach(function(a){clearTimeout(a)})}; g.onActiveBannersOrBannerQueueChanged=function(){if(this.bannerQueue.length&&!this.isTransitioningBanner){this.isTransitioningBanner=!0;var a=this.bannerQueue.shift();if(this.activePinnedBanner&&this.isPinnedBanner(a)){var b=this.activeBanners.findIndex(this.boundIsPinnedBanner);this.splice("activeBanners",b,1)}else this.activeIndeterminateBanner&&this.isIndeterminateBanner(a)?(b=this.activeBanners.findIndex(this.boundIsIndeterminateBanner),this.splice("activeBanners",b,1)):b=this.activeBanners.length; this.splice("activeBanners",b,0,a);this.isTransitioningBanner=!1}}; g.onActivePinnedBannerChange=function(){Yu(this.hostElement,"yt-visible-banner-change",[this.activePinnedBanner])}; g.computeId=function(){return this.activeBanners.length===0?"live-chat-banner":z(this.activeBanners[0],PJ).targetId}; g.computeHasActiveBanner=function(){return this.activeBanners.length>0}; g.computeActivePinnedBanner=function(){return this.activeBanners.find(this.boundIsPinnedBanner)}; g.computeActiveIndeterminateBanner=function(){return this.activeBanners.find(this.boundIsIndeterminateBanner)}; g.handleLiveChatActions=function(a){var b=this;a.forEach(function(c){var d=rCa(c);d&&(d=b.liveChatActionMap[d])&&b.get(d).call(b,c)})}; g.handleAddBannerToLiveChatCommand=function(a){var b=this;a=z(a,yob);var c=a.bannerRenderer;if(c){var d=z(c,PJ),e;if((e=d.contents)==null||!e.hasOwnProperty("liveChatTextMessageRenderer")||xN.includes("liveChatTextMessageRenderer")){var f=d.actionId,h=this.getBannerContentsInfo(c).id;e=function(p){var q=z(p,PJ);if(f&&(q==null?void 0:q.actionId)===f)return!0;p=b.getBannerContentsInfo(p);return h&&p.id===h?!0:!1}; if(!this.activeBanners.some(e)&&!this.bannerQueue.some(e)){this.push("bannerQueue",c);var m;if((m=a.bannerProperties)==null?0:m.isEphemeral)m=setTimeout(function(){b.activeBanners=b.activeBanners.filter(function(p){return z(p,PJ).actionId!==d.actionId})},Number(a.bannerProperties.bannerTimeoutMs)),this.push("ephemeralBannerTimeoutIds",m)}}}}; g.handleRemoveBannerForLiveChatCommand=function(a){var b=this.get("removeBannerForLiveChatCommand.targetActionId",a);this.activeBanners=this.activeBanners.filter(function(c){return z(c,PJ).actionId!==b}); Xu(this.hostElement,"yt-live-chat-banner-removed")}; g.handleRemoveChatItemAction=function(a){var b=this,c=z(a,GJ).targetItemId;this.bannerQueue=this.bannerQueue.filter(function(d){return b.getBannerContentsInfo(d).id!==c}); a=this.activeBanners.filter(function(d){return b.getBannerContentsInfo(d).id!==c}); a.length!==this.activeBanners.length&&(this.activeBanners=a)}; g.handleRemoveChatItemByAuthorAction=function(a){var b=this,c=this.get("removeChatItemByAuthorAction.externalChannelId",a);c&&(this.bannerQueue=this.bannerQueue.filter(function(d){return b.getBannerContentsInfo(d).authorExternalChannelId!==c}),a=this.activeBanners.filter(function(d){return b.getBannerContentsInfo(d).authorExternalChannelId!==c}),a.length!==this.activeBanners.length&&(this.activeBanners=a))}; g.handleMarkChatItemAsDeletedAction=function(a){var b=this,c=z(a,IJ),d=c.targetItemId;this.forEachBanner(function(e,f,h){var m=b.getBannerContentsInfo(e),p=m.contentType;m.id===d&&b.markBannerContentsAsDeleted(e,p,c,f,h)})}; g.handleMarkChatItemsByAuthorAsDeletedAction=function(a){var b=this,c=z(a,Bob);this.forEachBanner(function(d,e,f){var h=b.getBannerContentsInfo(d),m=h.contentType;h.authorExternalChannelId===c.externalChannelId&&b.markBannerContentsAsDeleted(d,m,c,e,f)})}; g.markBannerContentsAsDeleted=function(a,b,c,d,e){if(a){if(d!==null)a="activeBanners."+d+".liveChatBannerRenderer.contents."+b;else if(e!==null)a="bannerQueue."+e+".liveChatBannerRenderer.contents."+b;else return;this.set(a+".deletedStateMessage",c.deletedStateMessage);this.set(a+".showOriginalContentMessage",c.showOriginalContentMessage)}}; g.getBannerContentsInfo=function(a){var b;return(a=(b=z(a,PJ))==null?void 0:b.contents)?(b=Object.keys(a)[0],{authorExternalChannelId:this.get(b+".authorExternalChannelId",a),id:this.get(b+".id",a),contentType:b}):{}}; g.isPinnedBanner=function(a){return a?(a=this.getBannerContentsInfo(a).contentType)?xN.includes(a):!1:!1}; g.isIndeterminateBanner=function(a){return a?(a=this.getBannerContentsInfo(a).contentType)?KFb.includes(a):!1:!1}; g.forEachBanner=function(a){this.bannerQueue.forEach(function(b,c){a(b,null,c)}); this.activeBanners.forEach(function(b,c){a(b,c,null)})}; g.computeVisibleBanners=function(){if(!this.activeBanners.length)return[];var a=this.activeBanners[this.activeBanners.length-1];return z(a,PJ).viewerIsCreator?[].concat(ia(this.activeBanners)):[a]}; yN.prototype.onActivePinnedBannerChange=yN.prototype.onActivePinnedBannerChange;yN.prototype.onActiveBannersOrBannerQueueChanged=yN.prototype.onActiveBannersOrBannerQueueChanged;n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],yN.prototype,"ytActionHandlerBehavior",void 0);n([F(hL.YtLiveChatTooltipTargetingBehavior),r("design:type",Object)],yN.prototype,"ytLiveChatTooltipTargetingBehavior",void 0); n([F($C.YtRendererstamperBehavior),r("design:type",Object)],yN.prototype,"ytRendererstamperBehavior",void 0);n([M({computed:"computeId(activeBanners.*)",reflectToAttribute:!0}),r("design:type",String)],yN.prototype,"id",void 0);n([M({computed:"computeActivePinnedBanner(activeBanners.*)"}),r("design:type",Object)],yN.prototype,"activePinnedBanner",void 0);n([M({computed:"computeActiveIndeterminateBanner(activeBanners.*)"}),r("design:type",Object)],yN.prototype,"activeIndeterminateBanner",void 0); n([M(),r("design:type",Array)],yN.prototype,"activeBanners",void 0);n([M({computed:"computeVisibleBanners(activeBanners.*)"}),r("design:type",Array)],yN.prototype,"visibleBanners",void 0);n([M({computed:"computeHasActiveBanner(activeBanners.*)",reflectToAttribute:!0}),r("design:type",Boolean)],yN.prototype,"hasActiveBanner",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],yN.prototype,"enableBannerUpdate",void 0);n([M(),r("design:type",Array)],yN.prototype,"bannerQueue",void 0); n([M(),r("design:type",Array)],yN.prototype,"ephemeralBannerTimeoutIds",void 0);n([Lt("activeBanners.*","bannerQueue.splices"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],yN.prototype,"onActiveBannersOrBannerQueueChanged",null);n([Lt("activePinnedBanner"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],yN.prototype,"onActivePinnedBannerChange",null);n([fu({disableElementRegistration:!0,is:"yt-live-chat-banner-manager",noInjection:!0})],yN); var LFb=Tu(yN,"yt-live-chat-banner-manager",function(){if(kFb===void 0){var a=document.createElement("template");Q(a,"
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;jFb===void 0&&(jFb=document.createElement("template"));var d=jFb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);kFb=a}a=kFb;return a},{mode:0});var MFb;var NFb;var zN=function(){return E.apply(this,arguments)||this}; k(zN,E);g=zN.prototype;g.configureRendererStamper=function(){return{"data.ackButton":{id:"ack-button-container",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}}; g.ready=function(){this.popupPositionTarget=this.ytIconButton}; g.onMenuClick=function(){var a;z((a=this.data)==null?void 0:a.contextMenu,TPa)&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:z(this.data.contextMenu,TPa)}}})}; g.onButtonClick=function(){Xu(this.hostElement,"yt-live-chat-disable-before-focus-action");Gt(this.hostElement,"yt-live-chat-close-channel-guidelines-dialog")}; g.computeDisplayIndex=function(a){return a+1}; n([F(nB.YtOpenPopupBehavior),r("design:type",Object)],zN.prototype,"ytOpenPopupBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],zN.prototype,"ytRendererstamperBehavior",void 0);n([F(gDb.YtLiveChatDialogBehavior),r("design:type",Object)],zN.prototype,"ytLiveChatDialogBehavior",void 0);n([M(),r("design:type",Object)],zN.prototype,"data",void 0);n([M(),r("design:type",HTMLElement)],zN.prototype,"popupPositionTarget",void 0); n([Tt("#context-menu-button"),r("design:type",HTMLElement)],zN.prototype,"ytIconButton",void 0);n([gu({disableElementRegistration:!0,is:"yt-live-chat-channel-guidelines-dialog-renderer"})],zN); Tu(zN,"yt-live-chat-channel-guidelines-dialog-renderer",function(){if(NFb===void 0){var a=document.createElement("template");Q(a,"
\n
\n
\n
\n \n \n \n
\n
\n \n \n \n
\n
\n
\n \n
\n
\n
\n
\n
\n \n
\n \n
\n
\n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;MFb===void 0&&(MFb=document.createElement("template"));var d=MFb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);NFb=a}a=NFb;return a},{mode:0});function OFb(a){var b=a.querySelector("yt-supported-renderers");if(b&&(b=b.rendererElement)&&b.is=="yt-reload-continuation"){b.trigger();return}(a=a.querySelector("yt-reload-continuation"))&&a.trigger()} ;var PFb={ContinuableBehavior:{_noAccessors:!0,triggerReloadContinuation:function(){var a=wt(this.hostElement).querySelector("#continuations");a&&OFb(wt(a))}}};var QFb={},RFb={1:!0,2:!0,5:!0,6:!0,7:!0,8:!0,9:!0,11:!0,12:!0,17:!0,18:!0,19:!0},AN=function(){var a=kt.apply(this,arguments)||this;a.isResumedLoad=!1;a.lastSuccessPollTime=0;a.invalidationTimeout=null;a.isResumedSettingInRequestEnabled=x("live_chat_enable_is_resumed_setting_in_request");a.activeRequest=null;a.hasShownReconnectMessage=!1;a.prevContinuationToken=null;a.continuationBehaviorActionMap={"yt-live-chat-force-chat-poll":"forceChatPoll","yt-force-live-chat-continuation-command":"forceChatPoll"}; return a}; k(AN,kt);g=AN.prototype; g.beforeRegister=function(){this.stampDom||(this.stampDom={});"data.continuations"in this.stampDom||(this.stampDom["data.continuations"]={id:"continuations",mapping:{}});var a={liveChatReplayContinuationData:"yt-live-chat-replay-continuation",reloadContinuationData:"yt-reload-continuation",timedContinuationData:"yt-timed-continuation",invalidationContinuationData:"yt-invalidation-continuation",playerSeekContinuationData:{component:"yt-player-seek-continuation",properties:{playerProgressSec:"[[playerProgressSec]]"}}};Zh(a, this.stampDom["data.continuations"].mapping);this.stampDom["data.continuations"].mapping=a}; g.created=function(){this.activeRequest=null;this.smoothedQueue=ll("live_chat_chunk_rendering")>=2||x("live_chat_dynamic_chunking")?new jL:new FEb;this.prevContinuationToken=null;this.hasShownReconnectMessage=!1}; g.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.continuationBehaviorActionMap);this.smoothedQueue.callback=this.immediatelyApplyLiveChatActions.bind(this);this.prevContinuationToken=null}; g.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.continuationBehaviorActionMap);this.isResumedSettingInRequestEnabled&&(this.lastSuccessPollTime=0,this.invalidationTimeout=null);this.smoothedQueue.callback=null;this.hasShownReconnectMessage=!1;this.activeRequest&&(this.activeRequest.promise.cancel(),this.activeRequest=null)}; g.dataChangedInBehavior=function(){this.activeRequest&&this.activeRequest.promise.cancel()}; g.continuationsChanged=function(){var a=this;bt(function(){a.ytContinuableBehavior.triggerReloadContinuation()})}; g.forceChatPoll=function(a){var b=this,c={};a=z(a,Dob);(a==null?0:a.continuation)?(this.push("data.continuations",a.continuation),this.notifyPath("data.continuations")):(a&&(c.reloadActionPanel=a.reloadActionPanel,c.fullReload=a.fullReload),["yt-timed-continuation","yt-invalidation-continuation"].forEach(function(d){(d=wt(b.hostElement).querySelector(d))&&d.forceTrigger&&d.forceTrigger(c)},this))}; var SFb=function(a,b,c){var d=b("").substr(1),e={},f=a.currentPlayerState?Yh(a.currentPlayerState):{},h={liveChatEndpoint:e},m="";a.data.isReplay?(e={},m=dCa(e),h={liveChatReplayEndpoint:e}):(m=cCa(e),a.isResumedLoad&&a.isResumedSettingInRequestEnabled&&(e.isResumedLoad=!0,a.isResumedLoad=!1,a.lastSuccessPollTime=0));e.commandMetadata={webCommandMetadata:{url:m}};Dca(d,function(p,q){switch(p){case"itct":h.clickTrackingParams=q;break;case"ctoken":e.continuation=q;break;case"currentPlayerTimeMsec":f.playerOffsetMs= Math.floor(q).toString();break;case"isInvalidationTimeoutRequest":e.isInvalidationTimeoutRequest=q;break;case"reloadActionPanel":e.reloadActionPanel=q;break;case"fullReload":e.fullReload=q;break;case"invalidationPayload":e.invalidationPayload=q;}}); Object.keys(f).length&&(e.currentPlayerState=f);return{endpoint:h,params:{hidden:document.visibilityState==="hidden"},type:c,retries:0,continuationUrl:b(""),createdTime:Date.now()}},TFb=function(a){a=Yh(a); a.retries+=1;return a}; AN.prototype.onLoadReloadContinuation=function(a,b){this.smoothedQueue.clear();this.activeRequest&&(this.activeRequest.promise.cancel(),this.activeRequest=null);this.nextRequest&&(this.nextRequest=null);a.stopPropagation();a=SFb(this,b,"reload");this.JSC$11852_requestData(a)}; AN.prototype.handleYtAction=function(a){var b=a.detail;if(b.actionName==="yt-reload-live-chat-command"){a.stopPropagation();var c;UFb(this,(c=b.args[0])==null?void 0:c.reloadLiveChatCommand)}else b.actionName==="yt-service-request"&&(b==null?0:b.args)&&b.args.length>1&&(b=b.args[1],b.reloadLiveChatCommand?(a.stopPropagation(),UFb(this,b.reloadLiveChatCommand)):b.forceLiveChatContinuationCommand&&(a.stopPropagation(),this.forceChatPoll(b)))}; var UFb=function(a,b){if(b=b==null?void 0:b.continuation)a.push("data.continuations",b),a.notifyPath("data.continuations")}; AN.prototype.onLoadIncrementalContinuation=function(a,b){this.isResumedSettingInRequestEnabled&&(this.lastSuccessPollTime&&this.invalidationTimeout&&Date.now()-this.lastSuccessPollTime>this.invalidationTimeout+2E3?this.isResumedLoad=!0:this.isResumedLoad=!1);a.stopPropagation();a=SFb(this,b,"incremental");this.JSC$11852_requestData(a)}; AN.prototype.onLoadSeekContinuation=function(a,b){a.stopPropagation();a=SFb(this,b,"seek");this.activeRequest?et(this,"loadSeekContinuation",this.JSC$11852_requestData.bind(this,a),500):this.JSC$11852_requestData(a)}; AN.prototype.onNavigate=function(a){if(a.detail.endpoint.liveChatEndpoint){a.stopPropagation();a=a.detail.endpoint;if(Ga(a.liveChatEndpoint.continuation)){a.liveChatEndpoint.continuation.reloadContinuationData&&Gt(this.hostElement,"yt-load-reload-continuation");var b=Object.keys(a.liveChatEndpoint.continuation)[0];a.liveChatEndpoint.continuation=a.liveChatEndpoint.continuation[b].continuation}this.data.isReplay&&(a={liveChatReplayEndpoint:a.liveChatEndpoint,clickTrackingParams:a.clickTrackingParams}); a={endpoint:a,params:{},type:"reload",retries:0,continuationUrl:"navigateEvent",createdTime:Date.now()};this.JSC$11852_requestData(a)}}; var WFb=function(a,b){VFb(a,b,function(c){a.preprocessSeekResponseActions(c)}); Yu(a.hostElement,"yt-live-chat-seek-success")},YFb=function(a,b){Yu(a.hostElement,"yt-live-chat-seek-fail"); XFb(a,b)}; AN.prototype.onLoadReplayContinuation=function(a,b){a.stopPropagation();a=SFb(this,b,"incremental");this.JSC$11852_requestData(a)}; AN.prototype.retry=function(a,b){var c=this,d=TFb(a);ZFb(this,a,b).then(function(){$Fb(c,d)},function(){Gt(c.hostElement,"yt-live-chat-continuation-behavior-incremental-failure"); a.type==="seek"&&Yu(c.hostElement,"yt-live-chat-seek-fail",[])},this)}; AN.prototype.JSC$11852_requestData=function(a){if(this.activeRequest)if(a.type==="seek"){if(this.activeRequest.metadata.type==="seek")this.activeRequest.promise.cancel();else{if(this.activeRequest.metadata.type==="reload"){this.nextRequest=a;return}}}else if(a.type==="reload")this.activeRequest.promise.cancel();else if(a.type==="incremental"){if(this.activeRequest.metadata.type==="reload")return;this.activeRequest.metadata.type==="incremental"&&this.activeRequest.promise.cancel()}else if(a.type==="reload"&& this.activeRequest.metadata.type==="seek")co(Error("A reload request was triggered during a seek."));else{var b=new Dl("Unhandled request state",{activeRequest:this.activeRequest.metadata.type,newRequest:a.type});co(b)}$Fb(this,a)}; var $Fb=function(a,b){var c=Fn().resolve(fE),d;(d=oL.instance)&&qL(d,b.endpoint)?(c={},Object.assign(c,b.endpoint,b.params),z(b.endpoint,opb)?Object.assign(c,z(b.endpoint,opb)):z(b.endpoint,qpb)&&Object.assign(c,z(b.endpoint,qpb)),d=AK(d,b.endpoint,c)):d=WD(c,b.endpoint,b.params);a.activeRequest={metadata:b,promise:d};d&&(d.then(function(e){b.type==="reload"&&aGb(a,e);var f=oL.instance;if(e===void 0&&f&&qL(f,b.endpoint))a.retry(b,e);else if(rL()?e&&e.response:e){var h,m,p;(e==null?void 0:(h=e.error)== null?void 0:h.httpError)instanceof Aj||(e==null?void 0:(m=e.response)==null?void 0:(p=m.error)==null?void 0:p.httpError)instanceof Aj||((rL()?e.response.error:e.error)?a.retry(b,e):b.type==="seek"?WFb(a,e):VFb(a,e,function(q){(q=a.preprocessActions(q))&&q.length&&a.smoothedQueue.enqueueActionGroup(q)}))}else b.type==="seek"?YFb(a,e):b.type&&XFb(a,e)},function(e){e instanceof Aj||a.retry(b,e)},a),d.then(function(){a.activeRequest=null; if(a.nextRequest&&a.nextRequest.type==="seek"){var e=wt(a.hostElement).querySelector("yt-player-seek-continuation");e&&e.fireSeekContinuationAtCurrentProgress();a.nextRequest=null}},function(e){e instanceof Aj||(a.activeRequest=null)},a),b.type==="seek"?Yu(a.hostElement,"yt-live-chat-seek-start",[]):b.type==="reload"&&Yu(a.hostElement,"yt-live-chat-reload-start",[]))},aGb=function(a,b){rL()&&(b=b.response); var c=z(b.continuationContents,upb);if(b&&b.continuationContents&&c&&!b.error){a.data=c;if(b.trackingParams){var d=b.trackingParams,e=a.hostElement;b=Sv();c=Tv();b&&c?(d=Qv(d),tz(c,b,d),Yu(e,"yt-store-grafted-ve-action",[d])):(e="",b||c?b?c||(e="Missing currentCsn for live chat ve logging."):e="Missing rootVe for live chat ve logging.":e="Missing rootVe and currentCsn for live chat ve logging.",fo(Error(e)))}Yu(a.hostElement,"yt-live-chat-reload-success",[])}else b instanceof Aj||Yu(a.hostElement, "yt-live-chat-reload-fail",[])},XFb=function(a,b){BN(a,CN(a,"fatalError")); a=new Dl("Unexpected live chat incremental continuation response",b);co(a)},VFb=function(a,b,c){a.isResumedSettingInRequestEnabled&&(a.lastSuccessPollTime=Date.now()); a.hasShownReconnectMessage&&(a.hasShownReconnectMessage=!1,BN(a,CN(a,"reconnectedMessage"),"reconnect"));rL()&&(b=b.response);var d=z(b.continuationContents,upb);if(d){if(a.isResumedSettingInRequestEnabled){a:{var e=l(d.continuations||[]);for(var f=e.next();!f.done;f=e.next())if(f=f.value,f.invalidationContinuationData){e=f.invalidationContinuationData.timeoutMs||null;break a}e=null}a.invalidationTimeout=e}if(e=z(b.frameworkUpdates,xJ))try{OA(e,a.ytLiveChatReduxBehavior.store)}catch(h){co(h)}d.actions&&( (b=b.trackingParams)&&Vu("yt-attach-live-chat-response-tracking-params",{trackingParams:b}),c(d.actions));(c=x("live_chat_web_use_emoji_manager_singleton")?qM:a.emojiManager)&&d.emojis&&c.load(d.emojis);d.actionPanel&&a.set("data.actionPanel",d.actionPanel);d.header&&a.set("data.header",d.header);a.set("data.continuations",d.continuations||[]);Gt(a.hostElement,"yt-live-chat-continuation-behavior-incremental-success")}},ZFb=function(a,b,c){if(c){switch(c.status){case 404:return b=new Dl("404 while requesting live chat incremental continuation", b.continuationUrl),co(b),BN(a,CN(a,"fatalError")),xj("404 while requesting live chat incremental continuation");}if(c.error&&(c=c.error.code,RFb[c.toString()]))return BN(a,CN(a,"fatalError")),xj("Unrecoverable error; code: "+c)}if(b.retries>3)return BN(a,CN(a,"unableToReconnectMessage")),xj("Reached retry limit for incremental continuation requests"); b.retries===1&&(a.hasShownReconnectMessage=!0,BN(a,CN(a,"reconnectMessage")));return bGb(b)},bGb=function(a){var b=Math.pow(2,a.retries)*2E3; b+=Math.random()*1E3;return new uj(function(c){bt(c,b)})},BN=function(a,b,c){b&&a.smoothedQueue.enqueueActionGroup([{serverErrorMessage:{message:b, "class":c}}])},CN=function(a,b){b=a.get("data.clientMessages."+b); return a.ytComponentBehavior.getSimpleString(b)}; ba.Object.defineProperties(AN,{observers:{configurable:!0,enumerable:!0,get:function(){return["dataChangedInBehavior(data)","continuationsChanged(data.continuations)"]}}}); AN.prototype.onLoadReplayContinuation=AN.prototype.onLoadReplayContinuation;AN.prototype.onNavigate=AN.prototype.onNavigate;AN.prototype.onLoadSeekContinuation=AN.prototype.onLoadSeekContinuation;AN.prototype.onLoadIncrementalContinuation=AN.prototype.onLoadIncrementalContinuation;AN.prototype.handleYtAction=AN.prototype.handleYtAction;AN.prototype.onLoadReloadContinuation=AN.prototype.onLoadReloadContinuation;AN.prototype.forceChatPoll=AN.prototype.forceChatPoll; AN.prototype.continuationsChanged=AN.prototype.continuationsChanged;AN.prototype.dataChangedInBehavior=AN.prototype.dataChangedInBehavior;n([M(),r("design:type",Object)],AN.prototype,"data",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],AN.prototype,"ytComponentBehavior",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],AN.prototype,"ytActionHandlerBehavior",void 0);n([F(PFb.ContinuableBehavior),r("design:type",Object)],AN.prototype,"ytContinuableBehavior",void 0); n([F(iE),r("design:type",Object)],AN.prototype,"ytLiveChatReduxBehavior",void 0);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],AN.prototype,"dataChangedInBehavior",null);n([Lt("data.continuations"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],AN.prototype,"continuationsChanged",null); n([Kt("yt-load-reload-continuation"),r("design:type",Function),r("design:paramtypes",[CustomEvent,Function]),r("design:returntype")],AN.prototype,"onLoadReloadContinuation",null);n([Kt("yt-action"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],AN.prototype,"handleYtAction",null); n([Kt("yt-load-timed-continuation"),Kt("yt-load-invalidation-continuation"),r("design:type",Function),r("design:paramtypes",[CustomEvent,Function]),r("design:returntype")],AN.prototype,"onLoadIncrementalContinuation",null);n([Kt("yt-load-seek-continuation"),r("design:type",Function),r("design:paramtypes",[CustomEvent,Function]),r("design:returntype")],AN.prototype,"onLoadSeekContinuation",null); n([Kt("yt-navigate"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],AN.prototype,"onNavigate",null);n([Kt("yt-load-replay-continuation"),r("design:type",Function),r("design:paramtypes",[CustomEvent,Function]),r("design:returntype")],AN.prototype,"onLoadReplayContinuation",null);n([Vt()],AN);QFb.YtLiveChatContinuationBehavior=[PFb.ContinuableBehavior,ft.YtActionHandlerBehavior,mz.YtComponentBehavior,AN.prototype,iE];var cGb;var dGb;var eGb;var fGb;var DN=function(){return As.apply(this,arguments)||this}; k(DN,As);DN.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))}; DN.prototype.getContinuationUrl=function(a){var b={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(b.itct=this.data.clickTrackingParams);return $c(a,b)}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],DN.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],DN.prototype,"data",void 0);n([fu({is:"yt-reload-continuation",noInjection:!0})],DN);var gGb;var hGb;var EN=function(){var a=E.apply(this,arguments)||this;a.notificationData={};return a}; k(EN,E);g=EN.prototype;g.isMenuExpanded=function(a){return a&&a.length<=1?"undefined":"false"}; g.dataChanged_=function(){this.selected=void 0;var a=this.computeSelectedIndex_(this.data);a>=0&&(this.selected=a);a=this.data&&this.data.length>1;Ct(this.hostElement,"has-items",a);wt(this.hostElement).querySelector("#label").tabIndex=a?0:-1}; g.onDropdownOpen=function(){var a=Tv();if(this.parentTrackingParams&&this.data){var b=Qv(this.parentTrackingParams);this.data.forEach(function(c){a&&b&&c.trackingParams&&(c=Qv(c.trackingParams),tz(a,b,c),vz(a,[c]))})}else this.parentTrackingParams||fo(new Dl("No parent tracking params passed in for yt-dropdown-menu."))}; g.hasNotification=function(a){var b;if(a.targetId&&((b=this.notificationData)==null?0:b.targetId)){var c;return a.targetId===((c=this.notificationData)==null?void 0:c.targetId)}}; g.computeSelectedIndex_=function(a){if(a)for(var b=0,c=a.length;b\n \n \n \n \n \n \n \n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;gGb===void 0&&(gGb=document.createElement("template"));var d=gGb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);hGb=a}a=hGb;return a},{mode:2});var FN=function(){var a=E.apply(this,arguments)||this;a.hasNotification=!1;return a}; k(FN,E);FN.prototype.computeId=function(a){return a}; FN.prototype.computeHorizontalAlign=function(a){return a?"right":"left"}; FN.prototype.computeAccessibilityLabel=function(a){var b,c;return((b=a.accessibility)==null?void 0:(c=b.accessibilityData)==null?void 0:c.label)||null}; FN.prototype.notificationDataChanged=function(){var a;this.hasNotification=!!this.notificationData&&!((a=this.data)==null?0:a.icon)}; FN.prototype.notificationDataChanged=FN.prototype.notificationDataChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],FN.prototype,"ytRendererBehavior",void 0);n([F(hL.YtLiveChatTooltipTargetingBehavior),r("design:type",Object)],FN.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);n([M(),r("design:type",Object)],FN.prototype,"data",void 0);n([M({computed:"computeId(data.targetId)",reflectToAttribute:!0}),r("design:type",String)],FN.prototype,"id",void 0); n([M({value:!1}),r("design:type",Boolean)],FN.prototype,"isRightAligned",void 0);n([M({value:!1,reflectToAttribute:!0}),r("design:type",Boolean)],FN.prototype,"disabled",void 0);n([M({value:!1}),r("design:type",Boolean)],FN.prototype,"closeOnActivate",void 0);n([M(),r("design:type",Object)],FN.prototype,"notificationData",void 0);n([M(),r("design:type",Object)],FN.prototype,"hasNotification",void 0);n([M({value:!1}),r("design:type",Boolean)],FN.prototype,"useComputedAriaLabel",void 0); n([Lt("notificationData"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],FN.prototype,"notificationDataChanged",null);n([fu({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],FN); Tu(FN,"yt-sort-filter-sub-menu-renderer",function(){if(fGb===void 0){var a=document.createElement("template");Q(a,"[[data.tooltip]]\n\n\n
");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;eGb===void 0&&(eGb=document.createElement("template"));var d=eGb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);fGb=a}a=fGb;return a},{mode:2});function iGb(a,b){return a.numberValue===b.numberValue&&a.numberText===b.numberText} function jGb(a,b){return(a==null?void 0:a.accessibilityText)===(b==null?void 0:b.accessibilityText)} var kGb={customColors:{iconColor:"#7b3edb"}};bB(O(function(a){var b=a.data;var c=fL(HAb,function(){var h;return((h=b())==null?void 0:h.pointsEntityKey)||""}),d=Vo(function(){var h,m; return{numberValue:((h=c())==null?void 0:h.pointsValue)||0,numberText:((m=c())==null?void 0:m.pointsCompactText)||"",heightPx:16,shouldAnimate:!0}},{equals:iGb},"ZxLKbd"),e=Vo(function(){var h=z(b().pointsButton,ZJ); if(h){var m;h.accessibilityText=((m=c())==null?void 0:m.pointsCompactText)||"";return h}},{equals:jGb},"apjZvc"),f=Vo(function(){var h; return((h=fL(IAb,function(){var m;return((m=b())==null?void 0:m.entryPointStateEntityKey)||""})())==null?void 0:h.state)==="LIVE_VIEWER_LEADERBOARD_CHAT_ENTRY_POINT_STATE_DEFAULT"},void 0,"u5LOod"); a=Vo(function(){var h;return((h=fL(IAb,function(){var m;return((m=b())==null?void 0:m.entryPointStateEntityKey)||""})())==null?void 0:h.state)==="LIVE_VIEWER_LEADERBOARD_CHAT_ENTRY_POINT_STATE_DISABLED"},void 0,"ieFi1d"); return D("ytvl-live-viewer-leaderboard-chat-entry-point-view-model",{class:"ytvlLiveViewerLeaderboardChatEntryPointViewModelHost"},D(P,{cond:a,then:function(){return null}, else:function(){return D(P,{cond:f,then:function(){return D(OC,{data:function(){return b().defaultButton}},{buttonViewModel:function(h){return D(AD,{data:h.data, buttonOverrides:kGb})}})}, else:function(){return D(OC,{data:function(){var h=(h=e())?{buttonViewModel:h}:void 0;return h}},{buttonViewModel:function(h){return D(AD,{data:h.data, animatedTextProps:d,buttonOverrides:kGb})}})}})}}))},"Oa"),"ytvl-live-viewer-leaderboard-chat-entry-point-view-model",{props:{data:$A}});var GN=function(){var a=E.apply(this,arguments)||this;a.showOverflowButton=!1;a.isViewSelectorDisabled=!1;a.hasNewPaidMessage=!1;a.useComputedAriaLabel=!0;a.preventChatHeaderOverflow=x("web_chat_prevent_chat_header_overflow");a.actionMap={"yt-live-chat-seek-start":"disableViewSelector","yt-live-chat-reload-start":"disableViewSelector","yt-live-chat-reload-success":"enableViewSelector","yt-live-chat-reload-fail":"enableViewSelector","yt-live-chat-seek-success":"enableViewSelector","yt-live-chat-seek-fail":"enableViewSelector"}; return a}; k(GN,E);g=GN.prototype; g.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.viewerLeaderboardEntryPoint":{id:"viewer-leaderboard-entry-point",mapping:{liveViewerLeaderboardChatEntryPointViewModel:"ytvl-live-viewer-leaderboard-chat-entry-point-view-model"}},"data.viewSelector":{id:"view-selector",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{useComputedAriaLabel:"[[useComputedAriaLabel]]"}}}},"data.collapseButton":{id:"close-button", mapping:{buttonRenderer:"yt-button-renderer"}}}}; g.ready=function(){this.popupPositionTarget=this.ytButtonRenderer}; g.hasNewPaidMessageChanged=function(){var a=wt(this.hostElement).querySelector("yt-sort-filter-sub-menu-renderer");if(a){var b=null,c;this.hasNewPaidMessage&&((c=this.data)==null?0:c.paidMessageSortFilterSubMenuItemTargetId)&&(b={targetId:this.data.paidMessageSortFilterSubMenuItemTargetId});a.set("notificationData",b)}}; g.onMenuClick=function(){var a,b;((a=this.data)==null?0:(b=a.overflowMenu)==null?0:b.menuRenderer)&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:this.data.overflowMenu.menuRenderer}}})}; g.computeShowOverflowButton=function(){var a;return!((a=this.data)==null||!a.overflowMenu)}; g.disableViewSelector=function(){this.isViewSelectorDisabled=!0}; g.enableViewSelector=function(){this.isViewSelectorDisabled=!1}; g.viewSelectorDisabledChanged=function(){var a=wt(this.hostElement).querySelector("yt-sort-filter-sub-menu-renderer");a&&(a.disabled=this.isViewSelectorDisabled)}; g.computeButtonRendererData=function(){var a,b,c,d,e,f,h,m,p;return{icon:{iconType:"MORE_VERT"},accessibility:{label:(a=this.data)==null?void 0:(b=a.overflowMenu)==null?void 0:(c=b.menuRenderer)==null?void 0:(d=c.accessibility)==null?void 0:(e=d.accessibilityData)==null?void 0:e.label},accessibilityData:(f=this.data)==null?void 0:(h=f.overflowMenu)==null?void 0:(m=h.menuRenderer)==null?void 0:(p=m.accessibility)==null?void 0:p.accessibilityData,targetId:"live-chat-header-context-menu"}}; GN.prototype.hasNewPaidMessageChanged=GN.prototype.hasNewPaidMessageChanged;n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],GN.prototype,"ytActionHandlerBehavior",void 0);n([F(nB.YtOpenPopupBehavior),r("design:type",Object)],GN.prototype,"ytOpenPopupBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],GN.prototype,"ytRendererstamperBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],GN.prototype,"ytRendererBehavior",void 0); n([M(),r("design:type",Object)],GN.prototype,"data",void 0);n([M({computed:"computeShowOverflowButton(data)"}),r("design:type",Object)],GN.prototype,"showOverflowButton",void 0);n([M({observer:"viewSelectorDisabledChanged"}),r("design:type",Object)],GN.prototype,"isViewSelectorDisabled",void 0);n([M(),r("design:type",HTMLElement)],GN.prototype,"popupPositionTarget",void 0);n([M({computed:"computeButtonRendererData(data)"}),r("design:type",Object)],GN.prototype,"buttonRendererData",void 0); n([M(),r("design:type",Object)],GN.prototype,"hasNewPaidMessage",void 0);n([M(),r("design:type",Object)],GN.prototype,"useComputedAriaLabel",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],GN.prototype,"preventChatHeaderOverflow",void 0);n([Tt("#live-chat-header-context-menu"),r("design:type",HTMLElement)],GN.prototype,"ytButtonRenderer",void 0); n([Lt("hasNewPaidMessage"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],GN.prototype,"hasNewPaidMessageChanged",null);n([gu({disableElementRegistration:!0,is:"yt-live-chat-header-renderer"})],GN); Tu(GN,"yt-live-chat-header-renderer",function(){if(dGb===void 0){var a=document.createElement("template");Q(a,"
\n [[getSimpleString(data.titleText)]]\n \n
\n
\n
\n\n\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;cGb===void 0&&(cGb=document.createElement("template"));var d=cGb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);dGb=a}a=dGb;return a},{mode:0});var lGb;var mGb;var HN=function(){var a=E.apply(this,arguments)||this;a.enableBannerUpdate=!1;a.tonalButtonOverrides={type:"tonal",style:"overlay"};return a}; k(HN,E); HN.prototype.configureRendererStamper=function(){return{"data.infoDialogButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.autoModeratedItem":{id:"auto-moderated-item",mapping:{liveChatTextMessageRenderer:{component:"yt-live-chat-text-message-renderer",properties:{participantsManager:"[[participantsManager]]",enableBannerUpdate:"[[enableBannerUpdate]]"},attributes:{"hide-inline-action-buttons":!0,"no-hover-effect":!0}}}},"data.moderationButtons":{id:"moderation-buttons",mapping:{buttonRenderer:"yt-button-renderer"}}, "data.additionalInlineActionButtons":{id:"additional-inline-action-buttons",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[tonalButtonOverrides]]"}}}}}}; HN.prototype.shouldSupportInlineActionButtons=function(){return!0}; HN.prototype.shouldSupportWholeItemClick=function(){return!0}; ba.Object.defineProperties(HN.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}}); n([F(Yz.YtRendererBehavior),r("design:type",Object)],HN.prototype,"ytRendererBehavior",void 0);n([F(rM.YtLiveChatItemBehavior),r("design:type",sM)],HN.prototype,"ytLiveChatItemBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],HN.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],HN.prototype,"data",void 0);n([M(),r("design:type",vM)],HN.prototype,"participantsManager",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],HN.prototype,"enableBannerUpdate",void 0);n([M(),r("design:type",Object)],HN.prototype,"tonalButtonOverrides",void 0);n([M({reflectToAttribute:!0}),H("data.infoDialogButton"),r("design:type",Object),r("design:paramtypes",[])],HN.prototype,"hasInfoDialogButton",null);n([fu({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],HN); Tu(HN,"yt-live-chat-auto-mod-message-renderer",function(){if(mGb===void 0){var a=document.createElement("template");Q(a,"
\n \n
\n \n
\n
\n
\n
\n
\n
\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;lGb===void 0&&(lGb=document.createElement("template"));var d=lGb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);mGb=a}a=mGb;return a},{mode:0});var nGb;var oGb;var IN=function(){var a=E.apply(this,arguments)||this;a.boundCheckIntersections=a.checkIntersections.bind(a);a.intersectRAF=0;a.dockTimer=0;a.isUndocking=!1;a.dockableMessages=[];a.isScrolledToBottomOfItemList=!1;return a}; k(IN,E);g=IN.prototype;g.configureRendererStamper=function(){return{dockedItem:{id:"docked-item",mapping:{liveChatTextMessageRenderer:{component:"yt-live-chat-text-message-renderer",properties:{participantsManager:"[[participantsManager]]"}}}},undockingItem:{id:"undocking-item",mapping:{liveChatTextMessageRenderer:{component:"yt-live-chat-text-message-renderer",properties:{participantsManager:"[[participantsManager]]"}}}}}}; g.detached=function(){this.intersectRAF&&window.cancelAnimationFrame(this.intersectRAF)}; g.clear=function(){this.undock()}; g.dock=function(a){this.dockedItem&&this.undock();this.dockedItem={liveChatTextMessageRenderer:a==null?void 0:a.data};this.dockTimer=window.setTimeout(this.undock.bind(this),1E4)}; g.undock=function(){var a=this;!this.isUndocking&&this.dockedItem&&(window.clearTimeout(this.dockTimer),this.isUndocking=!0,this.undockingItem=this.dockedItem,this.dockedItem=void 0,window.setTimeout(function(){a.undockingItem=void 0;a.isUndocking=!1},250))}; g.checkIntersections=function(){if(this.dockableMessages.length){this.intersectRAF=window.requestAnimationFrame(this.boundCheckIntersections);var a=this.dockableMessages[0],b=this.hostElement.getBoundingClientRect();a=a.getBoundingClientRect();var c=a.top-b.top,d=c<=8;c=c-this.hostElement.clientHeight<=8;if(d){for(var e;d;){e=this.dockableMessages.shift();d=this.dockableMessages[0];if(!d)break;d=d.getBoundingClientRect();c=d.top-b.top;var f=c<=8;if(c-a.height<=8)if(f)a=d;else return;d=f}this.dock(e)}else c&& this.dockedItem&&this.clear()}else this.intersectRAF=0}; g.trimInvisibleDockableMessages=function(){if(this.hostElement.parentElement)for(var a=this.hostElement.parentElement.scrollTop;this.dockableMessages&&this.dockableMessages.length&&(this.dockableMessages[0].offsetTop
\n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;nGb===void 0&&(nGb=document.createElement("template"));var d=nGb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);oGb=a}a=oGb;return a},{mode:0});var pGb;var qGb;var JN=function(){return E.apply(this,arguments)||this}; k(JN,E);JN.prototype.ready=function(){var a=document.querySelector("yt-live-chat-app");a&&a.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],JN.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Boolean)],JN.prototype,"menuFocused",void 0);n([M(),r("design:type",Object)],JN.prototype,"data",void 0);n([F(rM.YtLiveChatItemBehavior),r("design:type",sM)],JN.prototype,"ytLiveChatItemBehavior",void 0);n([fu({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],JN); Tu(JN,"yt-live-chat-donation-announcement-renderer",function(){if(qGb===void 0){var a=document.createElement("template");Q(a,"
[[getSimpleString(data.authorName)]]
[[getSimpleString(data.text)]]
[[timestampString]]
"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;pGb===void 0&&(pGb=document.createElement("template"));var d=pGb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);qGb=a}a=qGb;return a},{mode:0});var rGb;var sGb;var tGb;var uGb;var KN=function(){var a=E.apply(this,arguments)||this;a.hidden=!1;a.supportsInlineActionButtons=!0;return a}; k(KN,E);KN.prototype.ready=function(){var a;((a=document.querySelector("yt-live-chat-app"))==null?0:a.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")}; KN.prototype.dataChanged=function(a){var b=vt(wt(this.hostElement).querySelector("#detail-text"));b.textContent="";(a==null?0:a.detailText)&&b.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(a.detailText))}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],KN.prototype,"ytRendererBehavior",void 0);n([F(rM.YtLiveChatItemBehavior),r("design:type",sM)],KN.prototype,"ytLiveChatItemBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],KN.prototype,"ytRendererstamperBehavior",void 0);n([M({observer:"dataChanged"}),r("design:type",Object)],KN.prototype,"data",void 0);n([M({computed:"truthy(isDeleted)",reflectToAttribute:!0}),r("design:type",Object)],KN.prototype,"hidden",void 0); n([gu({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],KN); Tu(KN,"yt-live-chat-legacy-paid-message-renderer",function(){if(uGb===void 0){var a=document.createElement("template");Q(a,"
\n \n
\n
\n
[[getSimpleString(data.authorName)]]
\n
[[getSimpleString(data.eventText)]]
\n
\n
\n
[[timestampString]]
\n
\n
\n \n \n \n
\n
\n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;tGb===void 0&&(tGb=document.createElement("template"));var d=tGb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);uGb=a}a=uGb;return a},{mode:0});var vGb;var wGb;var LN=function(){return E.apply(this,arguments)||this}; k(LN,E);LN.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}}; n([F($C.YtRendererstamperBehavior),r("design:type",Object)],LN.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],LN.prototype,"data",void 0);n([fu({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],LN); Tu(LN,"yt-live-chat-mode-change-message-renderer",function(){if(wGb===void 0){var a=document.createElement("template");Q(a,"
\n \n
\n \n \n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;vGb===void 0&&(vGb=document.createElement("template"));var d=vGb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);wGb=a}a=wGb;return a},{mode:0});var xGb;var yGb;var MN=function(){return E.apply(this,arguments)||this}; k(MN,E);n([F(Yz.YtRendererBehavior),r("design:type",Object)],MN.prototype,"ytRendererBehavior",void 0);n([F(rM.YtLiveChatItemBehavior),r("design:type",sM)],MN.prototype,"ytLiveChatItemBehavior",void 0);n([M(),r("design:type",Object)],MN.prototype,"data",void 0);n([fu({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],MN); Tu(MN,"yt-live-chat-moderation-message-renderer",function(){if(yGb===void 0){var a=document.createElement("template");Q(a,"
\n [[timestampString]]\n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;xGb===void 0&&(xGb=document.createElement("template"));var d=xGb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);yGb=a}a=yGb;return a},{mode:0});var zGb;var AGb;var NN=function(){return E.apply(this,arguments)||this}; k(NN,E);NN.prototype.onClick=function(){var a;if((a=this.data)!=null&&a.onClickCommand){var b;fz.instance.resolveCommand((b=this.data)==null?void 0:b.onClickCommand)}}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],NN.prototype,"ytRendererBehavior",void 0);n([F(iE),r("design:type",Object)],NN.prototype,"ytLiveChatReduxBehavior",void 0);n([F(rM.YtLiveChatItemBehavior),r("design:type",sM)],NN.prototype,"ytLiveChatItemBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],NN.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],NN.prototype,"data",void 0); n([fu({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],NN); Tu(NN,"yt-live-chat-offer-click-count-message-renderer",function(){if(AGb===void 0){var a=document.createElement("template");Q(a,"
\n
\n
\n \n
\n
\n
\n
\n \n
\n
[[data.productTitle]]
\n \n
\n
");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;zGb===void 0&&(zGb=document.createElement("template"));var d=zGb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);AGb=a}a=AGb;return a},{mode:0});var BGb;var CGb=function(){return E.apply(this,arguments)||this}; k(CGb,E);n([M(),r("design:type",Object)],CGb.prototype,"data",void 0);n([fu({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],CGb); Tu(CGb,"yt-live-chat-placeholder-item-renderer",function(){if(BGb===void 0){var a=document.createElement("template");Q(a,"");a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);BGb=a}a=BGb;return a},{mode:0});var DGb;var EGb;var FGb=new UH(7),ON=function(){var a=E.apply(this,arguments)||this;a.data={};return a}; k(ON,E);ON.prototype.dataChanged=function(){var a;((a=this.data)==null?0:a.class)&&Ct(this.hostElement,this.data.class,!0);var b;((b=this.oldData)==null?0:b.class)&&Ct(this.hostElement,this.oldData.class,!1);this.oldData=this.data}; ON.prototype.computeTimestampString=function(a){return FGb.format(new Date(a/1E3))}; ON.prototype.dataChanged=ON.prototype.dataChanged;n([M(),r("design:type",Object)],ON.prototype,"data",void 0);n([M({computed:"computeTimestampString(data.timestampUsec)"}),r("design:type",String)],ON.prototype,"timestampString",void 0);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],ON.prototype,"dataChanged",null);n([fu({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],ON); Tu(ON,"yt-live-chat-server-error-message",function(){if(EGb===void 0){var a=document.createElement("template");Q(a,"[[timestampString]]\n[[data.message]]\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;DGb===void 0&&(DGb=document.createElement("template"));var d=DGb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);EGb=a}a=EGb;return a},{mode:0});var GGb;var HGb;var PN=function(){var a=E.apply(this,arguments)||this;a.queuedMessages=[];a.toastTimeout=null;a.clearTimeout=null;a.message=null;a.isShowingMessage=!1;a.isMessageVisible=!1;a.actionMap={"yt-live-chat-actions":"handleLiveChatActions","yt-live-chat-add-to-toast-action":"handleAction","yt-live-chat-add-message-to-toast":"handleAddMessage"};return a}; k(PN,E);g=PN.prototype;g.configureRendererStamper=function(){return{actionButton:{id:"button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}}; g.created=function(){this.hostElement.setAttribute("role","alert")}; g.handleAddMessage=function(a){a&&(this.queuedMessages.push(a),this.maybeShowMessage())}; g.maybeShowMessage=function(){var a=this;this.clearTimeout||this.toastTimeout||!this.queuedMessages.length||(this.message=this.queuedMessages.shift(),this.isShowingMessage=this.isMessageVisible=!0,this.toastTimeout=bt(function(){a.toastTimeout=null;a.dismissMessage()},this.actionButton?5E3:3E3))}; g.dismissMessage=function(){var a=this;this.toastTimeout&&(ct(this.toastTimeout),this.toastTimeout=null);this.isShowingMessage=!1;this.clearTimeout=bt(function(){a.message=null;a.clearTimeout=null;a.isMessageVisible=!1;a.maybeShowMessage()},500)}; g.handleLiveChatActions=function(a){var b=this;a.forEach(function(c){b.handleAction(c)})}; g.handleAction=function(a){z(a,Lob)&&this.handleAddMessage(z(a,Lob).item)}; g.handleTextChanged=function(){this.text?this.hostElement.setAttribute("aria-label",lz(this.text)):this.hostElement.removeAttribute("aria-label")}; ba.Object.defineProperties(PN.prototype,{text:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d;return((a=this.message)==null?void 0:(b=a.notificationTextRenderer)==null?void 0:b.successResponseText)||((c=this.message)==null?void 0:(d=c.notificationActionRenderer)==null?void 0:d.responseText)||null}}, hasTimeout:{configurable:!0,enumerable:!0,get:function(){return!!this.toastTimeout}}, actionButton:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.message)==null?void 0:(b=a.notificationActionRenderer)==null?void 0:b.actionButton)||null}}}); PN.prototype.handleTextChanged=PN.prototype.handleTextChanged;n([F($C.YtRendererstamperBehavior),r("design:type",Object)],PN.prototype,"ytRendererstamperBehavior",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],PN.prototype,"ytActionHandlerBehavior",void 0);n([M(),r("design:type",Object)],PN.prototype,"message",void 0);n([H("message"),r("design:type",Object),r("design:paramtypes",[])],PN.prototype,"text",null); n([H("toastTimeout"),r("design:type",Boolean),r("design:paramtypes",[])],PN.prototype,"hasTimeout",null);n([H("message"),r("design:type",Object),r("design:paramtypes",[])],PN.prototype,"actionButton",null);n([M({reflectToAttribute:!0}),r("design:type",Object)],PN.prototype,"isShowingMessage",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],PN.prototype,"isMessageVisible",void 0);n([M({value:function(){return{style:"call-to-action-inverse"}}}), r("design:type",Object)],PN.prototype,"buttonOverrides",void 0);n([Lt("text"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],PN.prototype,"handleTextChanged",null);n([fu({disableElementRegistration:!0,is:"yt-live-chat-toast-renderer",noInjection:!0})],PN); Tu(PN,"yt-live-chat-toast-renderer",function(){if(HGb===void 0){var a=document.createElement("template");Q(a,"\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;GGb===void 0&&(GGb=document.createElement("template"));var d=GGb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);HGb=a}a=HGb;return a},{mode:0});var IGb;var JGb;var QN=function(){var a=E.apply(this,arguments)||this;a.defaultToFilledIcon=!1;return a}; k(QN,E);QN.prototype.computeHasPrimaryColorIcon=function(a){return a==="SPARK"||a==="SPONSORSHIP_STAR"}; QN.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],QN.prototype,"ytRendererBehavior",void 0);n([F(rM.YtLiveChatItemBehavior),r("design:type",sM)],QN.prototype,"ytLiveChatItemBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],QN.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],QN.prototype,"defaultToFilledIcon",void 0);n([M(),r("design:type",Object)],QN.prototype,"data",void 0); n([M({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),r("design:type",Boolean)],QN.prototype,"hasPrimaryColorIcon",void 0);n([fu({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],QN); Tu(QN,"yt-live-chat-viewer-engagement-message-renderer",function(){if(JGb===void 0){var a=document.createElement("template");Q(a,"
");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;IGb===void 0&&(IGb=document.createElement("template"));var d=IGb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);JGb=a}a=JGb;return a},{mode:0});var KGb;var RN=function(){var a=E.apply(this,arguments)||this;a.modernUpdate=!1;a.buttonStyle="overlay";a.buttonType="filled";return a}; k(RN,E);RN.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"}; RN.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],RN.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],RN.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],RN.prototype,"modernUpdate",void 0);n([M({reflectToAttribute:!0}),r("design:type",String)],RN.prototype,"buttonStyle",void 0);n([M({reflectToAttribute:!0}),r("design:type",String)],RN.prototype,"buttonType",void 0); n([gu({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],RN); Tu(RN,"ytd-ad-hover-text-button-renderer",function(){if(KGb!==void 0)return KGb;var a=document.createElement("template");Q(a,"\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return KGb=a},{mode:1});var LGb;var SN=function(){var a=E.apply(this,arguments)||this;a.buttonOverrides={size:"XS"};return a}; k(SN,E);SN.prototype.onHelpTap=function(a){this.data&&this.data.informationDialog&&(Gt(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),a.preventDefault(),a.stopPropagation())}; n([M(),r("design:type",Object)],SN.prototype,"buttonOverrides",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],SN.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],SN.prototype,"data",void 0);n([gu({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],SN); Tu(SN,"ytd-live-chat-purchased-product-message-renderer",function(){if(LGb!==void 0)return LGb;var a=document.createElement("template");Q(a,"\n\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return LGb=a},{mode:1});var MGb;var NGb;var TN=function(){var a=E.apply(this,arguments)||this;a.isContainerDeleted=!1;return a}; k(TN,E);TN.prototype.onContextMenuClick=function(a){this.ytLiveChatItemBehavior.showContextMenu(a)}; TN.prototype.isContainerDeletedChanged=function(){this.isContainerDeleted&&(this.set("data.authorName",null),this.set("data.authorBadges",null),this.set("data.authorPhoto",null),this.set("data.primaryText",null),this.set("data.secondaryText",null),this.set("data.image",null))}; TN.prototype.isContainerDeletedChanged=TN.prototype.isContainerDeletedChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],TN.prototype,"ytRendererBehavior",void 0);n([F(rM.YtLiveChatItemBehavior),r("design:type",sM)],TN.prototype,"ytLiveChatItemBehavior",void 0);n([M(),r("design:type",Object)],TN.prototype,"data",void 0);n([M(),r("design:type",Object)],TN.prototype,"isContainerDeleted",void 0);n([M(),r("design:type",String)],TN.prototype,"deletedStateMessage",void 0); n([Lt("isContainerDeleted"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],TN.prototype,"isContainerDeletedChanged",null);n([gu({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],TN); Tu(TN,"ytd-sponsorships-live-chat-header-renderer",function(){if(NGb!==void 0)return NGb;var a=document.createElement("template");Q(a,"
\n
\n \n \n
\n
\n
\n \n
[[getSimpleString(data.primaryText)]]
\n
\n
[[getSimpleString(data.secondaryText)]]
\n
\n
\n
[[deletedStateMessage]]
\n
\n
\n
\n \n
\n \n \n \n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return NGb=a},{mode:1});var UN=function(){var a=E.apply(this,arguments)||this;a.modern=x("web_button_rework_with_live");a.buttonOverrides={style:"overlay",type:"filled"};return a}; k(UN,E);UN.prototype.configureRendererStamper=function(){return{"data.optInPrompt":{id:"opt-in-prompt",mapping:{liveChatViewerEngagementMessageRenderer:{component:"yt-live-chat-viewer-engagement-message-renderer",params:{defaultToFilledIcon:!0}},buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}}; UN.prototype.onCtaButtonClick=function(){var a,b=z((a=this.data)==null?void 0:a.optInPrompt,TJ);if(a=this.maybeGetButtonCommand(b)){var c;(c=gz())==null||c.clickCommand(a)}}; UN.prototype.maybeGetButtonCommand=function(a){return!a||!a.command||z(a.command,lsb)===void 0&&z(a.command,isb)===void 0?null:a.command}; UN.prototype.shouldHideOptinPrompt=function(a,b){return!a||b}; n([F($C.YtRendererstamperBehavior),r("design:type",Object)],UN.prototype,"ytRendererstamperBehavior",void 0);n([F(rM.YtLiveChatItemBehavior),r("design:type",sM)],UN.prototype,"ytLiveChatItemBehavior",void 0);n([M(),r("design:type",Object)],UN.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],UN.prototype,"modern",void 0);n([gu({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],UN); Tu(UN,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(MGb!==void 0)return MGb;var a=document.createElement("template");Q(a,"\n\n\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return MGb=a},{mode:1});var OGb;var VN=function(){return E.apply(this,arguments)||this}; k(VN,E);VN.prototype.onContextMenuClick=function(a){this.ytLiveChatItemBehavior.showContextMenu(a)}; VN.prototype.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorBadges",null),this.set("data.authorPhoto",null),this.set("data.message",null))}; VN.prototype.isDeletedChanged=VN.prototype.isDeletedChanged;n([F(rM.YtLiveChatItemBehavior),r("design:type",sM)],VN.prototype,"ytLiveChatItemBehavior",void 0);n([M(),r("design:type",Object)],VN.prototype,"data",void 0);n([Lt("isDeleted"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],VN.prototype,"isDeletedChanged",null);n([gu({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],VN); Tu(VN,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(OGb!==void 0)return OGb;var a=document.createElement("template");Q(a,"\n\n
\n \n [[timestampString]]\n \n \n \n \n
\n [[getSimpleString(data.deletedStateMessage)]]\n
\n
\n
\n \n \n \n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return OGb=a},{mode:1});var PGb=cda||x("live_chat_disable_chat_feed_animation")?0:84,WN=function(){var a=E.apply(this,arguments)||this;a.resizeObserver=null;a.enableBannerUpdate=!1;a.hasInitialLayout=!1;a.actionMap={"yt-live-chat-actions":"handleLiveChatActions_","yt-add-chat-item-action":"handleLiveChatAction_","yt-dim-chat-item-action":"handleLiveChatAction_","yt-remove-chat-item-action":"handleLiveChatAction_","yt-replace-chat-item-action":"handleLiveChatAction_","yt-mark-chat-item-as-deleted-action":"handleLiveChatAction_", "yt-mark-chat-items-by-author-as-deleted-action":"handleLiveChatAction_","yt-clear-chat-window-action":"handleLiveChatAction_","yt-add-live-chat-text-message-from-template-action":"handleAddTextMessageFromTemplateAction_","yt-live-chat-picker-changed":"handlePickerChanged_","yt-live-chat-maybe-scroll-to-bottom":"maybeScrollToBottom_","yt-live-chat-scroll-to-bottom":"scrollToBottom_","yt-live-chat-keyboard-event":"onKeyboardEventAction_","yt-live-chat-seek-success":"handleChatSeekSuccess_","yt-live-chat-banner-removed":"handleBannerRemoval_", "yt-toggle-live-chat-moderation-activity-command":"maybeScrollToBottom_","yt-live-chat-feed-visible":"handleChatFeedVisible"};return a}; k(WN,E);g=WN.prototype; g.configureRendererStamper=function(){return{"data.emptyStateMessage":{id:"empty-state-message",mapping:{messageRenderer:"yt-live-chat-message-renderer"}},visibleItems:{id:"items",mapping:{liveChatAutoModMessageRenderer:{component:"yt-live-chat-auto-mod-message-renderer",properties:{participantsManager:"[[participantsManager]]",enableBannerUpdate:"[[enableBannerUpdate]]"}},liveChatTextMessageRenderer:{component:"yt-live-chat-text-message-renderer",properties:{participantsManager:"[[participantsManager]]",enableBannerUpdate:"[[enableBannerUpdate]]"}}, liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",properties:{participantsManager:"[[participantsManager]]"}},liveChatLegacyPaidMessageRenderer:{component:"yt-live-chat-legacy-paid-message-renderer",properties:{participantsManager:"[[participantsManager]]"}},liveChatMembershipItemRenderer:{component:"yt-live-chat-membership-item-renderer",properties:{participantsManager:"[[participantsManager]]"}},liveChatPaidStickerRenderer:"yt-live-chat-paid-sticker-renderer",giftMessageViewModel:"yt-gift-message-view-model", liveChatDonationAnnouncementRenderer:"yt-live-chat-donation-announcement-renderer",liveChatModeChangeMessageRenderer:"yt-live-chat-mode-change-message-renderer",liveChatModerationMessageRenderer:"yt-live-chat-moderation-message-renderer",liveChatOfferClickCountMessageRenderer:"yt-live-chat-offer-click-count-message-renderer",liveChatPlaceholderItemRenderer:"yt-live-chat-placeholder-item-renderer",liveChatPurchasedProductMessageRenderer:"ytd-live-chat-purchased-product-message-renderer",liveChatSponsorshipsGiftPurchaseAnnouncementRenderer:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer", liveChatSponsorshipsGiftRedemptionAnnouncementRenderer:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",liveChatViewerEngagementMessageRenderer:"yt-live-chat-viewer-engagement-message-renderer",serverErrorMessage:"yt-live-chat-server-error-message"},events:!0,reuseComponents:!0}}}; g.created=function(){this.activeItems_=[];this.isSmoothed_=!0;this.lastSmoothChatMessageAddMs_=null;this.chatRateMs_=1E3;this.lastSmoothScrollClockTime_=this.lastSmoothScrollUpdate_=null;this.scrollTimeRemainingMs_=this.scrollPixelsRemaining_=0;this.smoothScrollRafHandle_=null;this.preinsertHeight_=0}; g.attached=function(){window.addEventListener("resize",It(this,this.maybeScrollToBottom_));window.addEventListener("keydown",It(this,this.onWindowKeyEvent_));window.addEventListener("keyup",It(this,this.onWindowKeyEvent_));if(!cBb()){var a;(a=window.top)==null||a.addEventListener("blur",It(this,this.onTopWindowBlurEvent_));window!==window.top&&window.addEventListener("blur",It(this,this.onFramedWindowBlurEvent_))}this.initMessageVerticalAlignment_()}; g.detached=function(){this.resetSmoothScroll_();window.removeEventListener("resize",It(this,this.maybeScrollToBottom_));window.removeEventListener("keydown",It(this,this.onWindowKeyEvent_));window.removeEventListener("keyup",It(this,this.onWindowKeyEvent_));if(!cBb()){var a;(a=window.top)==null||a.removeEventListener("blur",It(this,this.onTopWindowBlurEvent_));window!==window.top&&window.removeEventListener("blur",It(this,this.onFramedWindowBlurEvent_))}this.resizeObserver&&(this.resizeObserver.disconnect(), this.resizeObserver=null)}; g.onIronResize_=function(){this.resizeOffsetContainer()}; g.resizeOffsetContainer=function(){var a=this;et(this,"resize",function(){var b=a.itemOffset.clientHeight;a.items.clientHeight!==0&&(a.refreshOffsetContainerHeight_(),(b===0&&a.hasInitialLayout||a.atBottom)&&a.scrollToBottom_(),a.hasInitialLayout=!0)})}; g.isAttachedOrDataChanged_=function(){var a=this.data,b=dBb();if(!this.isAttached){if(b){var c;(c=window.top)==null||c.removeEventListener("mousemove",It(this,this.onModerationMouseMoveEvent_))}window.removeEventListener("mousemove",It(this,this.onModerationMouseMoveEvent_))}else if(a&&a.enablePauseChatKeyboardShortcuts){if(b){var d;(d=window.top)==null||d.addEventListener("mousemove",It(this,this.onModerationMouseMoveEvent_))}window.addEventListener("mousemove",It(this,this.onModerationMouseMoveEvent_))}}; g.clearList=function(){this.activeItems_=[];this.visibleItems=[];this.dockableMessages=[];this.isSmoothed_=!0;this.lastSmoothChatMessageAddMs_=null;this.chatRateMs_=1E3;this.lastSmoothScrollClockTime_=this.lastSmoothScrollUpdate_=null;this.scrollTimeRemainingMs_=this.scrollPixelsRemaining_=0;this.smoothScrollRafHandle_=null;this.preinsertHeight_=0;this.itemIdToDockDurationMap={};wt(this.hostElement).querySelector("#docked-messages").clear();if(!this.enableBannerUpdate){var a;(a=this.bannerManager)== null||a.reset()}this.maybeResizeScrollContainer_([]);this.items.style.transform="";this.atBottom||this.scrollToBottom_()}; g.computeId_=function(a){return a}; g.dataChanged_=function(){this.clearList()}; g.enableBannerUpdateChanged=function(){var a=this;this.enableBannerUpdate&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=new ResizeObserver(function(){a.onIronResize_()}),this.resizeObserver.observe(this.hostElement))}; g.handleLiveChatActions_=function(a){var b=this;a.length&&(a.forEach(this.handleLiveChatAction_,this),this.maybeResizeScrollContainer_(a),this.flushActiveItems_(),bt(function(){b.maybeScrollToBottom_()}))}; g.handleLiveChatAction_=function(a){a.addChatItemAction?this.handleAddChatItemAction_(a.addChatItemAction):a.clearChatWindowAction?this.handleClearChatWindowAction_():a.markChatItemAsDeletedAction?this.handleMarkChatItemAsDeletedAction_(a.markChatItemAsDeletedAction):a.markChatItemsByAuthorAsDeletedAction?this.handleMarkChatItemsByAuthorAsDeletedAction_(a.markChatItemsByAuthorAsDeletedAction):a.dimChatItemAction?this.handleDimChatItemAction_(a.dimChatItemAction):a.replaceChatItemAction?this.handleReplaceChatItemAction_(a.replaceChatItemAction): a.removeChatItemAction?this.handleRemoveChatItemAction_(a.removeChatItemAction):a.removeChatItemByAuthorAction?this.handleRemoveChatItemByAuthorAction(a.removeChatItemByAuthorAction):a.serverErrorMessage&&this.activeItems_.push({serverErrorMessage:{timestampUsec:this.currentTimestampUsec_(),message:a.serverErrorMessage.message,class:a.serverErrorMessage.class}})}; g.handleAddChatItemAction_=function(a){var b=this,c=a.item,d=Object.keys(c)[0],e=c[d],f=!1;this.forEachItem_(function(m,p,q){var t=Object.keys(c)[0];!(p=p[t])||p.id!==a.clientId&&p.id!==e.id||(m==="visibleItems"?(b.visibleItems[q]=c,wt(b.hostElement).querySelector("#items").children[q].polymerController.set("data",e)):b.activeItems_[q]=c,f=!0)}); if(d=this.get("stickinessParams.dockAtTopDurationMs",a)||0){var h=Array.prototype.find.call(this.items.children,function(m){return m.id===e.id}); h?this.maybeAddDockableMessage_(h):this.itemIdToDockDurationMap[e.id]=d}f||this.activeItems_.push(c)}; g.handleClearChatWindowAction_=function(){this.clearList()}; g.handleReplaceChatItemAction_=function(a){var b=this,c=a.replacementItem;this.forEachItem_(function(d,e,f){var h=Object.keys(e)[0];(e=e[h])&&e.id===a.targetItemId&&(d==="visibleItems"?(b.splice(d,f,1,c),b.resetSmoothScroll_()):b.activeItems_[f]=c)})}; g.markAsDeleted_=function(a,b,c,d,e){b=[a,b,c].join(".");this.set(b+".deletedStateMessage",d);this.set(b+".showOriginalContentMessage",e);a==="visibleItems"&&this.resetSmoothScroll_()}; g.markAutoModRendererAsDeleted_=function(a,b,c,d,e){b=b.liveChatAutoModMessageRenderer.autoModeratedItem;b.liveChatTextMessageRenderer.deletedStateMessage=d;b.liveChatTextMessageRenderer.showOriginalContentMessage=e;this.splice(a,c,1,b);a==="visibleItems"&&this.resetSmoothScroll_()}; g.handleMarkChatItemAsDeletedAction_=function(a){var b=this;this.forEachItem_(function(c,d,e){var f=Object.keys(d)[0],h=d[f];h&&h.id===a.targetItemId&&(f==="liveChatAutoModMessageRenderer"?b.markAutoModRendererAsDeleted_(c,d,e,a.deletedStateMessage,a.showOriginalContentMessage):b.markAsDeleted_(c,e,f,a.deletedStateMessage,a.showOriginalContentMessage))})}; g.handleDimChatItemAction_=function(a){var b=this,c=a.clientAssignedId;c&&this.forEachItem_(function(d,e,f){var h=Object.keys(e)[0];(e=e[h])&&e.id===c&&(d=[d,f,h].join("."),b.set(d+".isDimmed",!0))})}; g.handleMarkChatItemsByAuthorAsDeletedAction_=function(a){var b=this;this.forEachItem_(function(c,d,e){var f=Object.keys(d)[0],h=d[f];h&&h.authorExternalChannelId===a.externalChannelId&&(f==="liveChatAutoModMessageRenderer"?b.markAutoModRendererAsDeleted_(c,d,e,a.deletedStateMessage,a.showOriginalContentMessage):b.markAsDeleted_(c,e,f,a.deletedStateMessage,a.showOriginalContentMessage))})}; g.handleRemoveChatItemAction_=function(a){var b=this;this.forEachItem_(function(c,d,e){var f=Object.keys(d)[0];(d=d[f])&&d.id===a.targetItemId&&(b.splice(c,e,1),c==="visibleItems"&&b.resetSmoothScroll_())})}; g.handleRemoveChatItemByAuthorAction=function(a){var b=function(d){var e=Object.keys(d)[0];return(d=d[e])&&d.authorExternalChannelId?d.authorExternalChannelId!==a.externalChannelId:!0},c=this.visibleItems.filter(b); this.activeItems_=this.activeItems_.filter(b);this.visibleItems=c;this.resetSmoothScroll_();this.setAtBottom();this.maybeScrollToBottom_()}; g.onYtRendererstamperFinished_=function(){var a=this;Array.prototype.forEach.call(this.items.children,function(b){var c=b.id;a.itemIdToDockDurationMap[c]&&(a.maybeAddDockableMessage_(b),delete a.itemIdToDockDurationMap[c])})}; g.forEachItem_=function(a){this.visibleItems.forEach(a.bind(this,"visibleItems"));this.activeItems_.forEach(a.bind(this,"activeItems_"))}; g.handleAddTextMessageFromTemplateAction_=function(a,b,c){a=Yh(a.addLiveChatTextMessageFromTemplateAction.template.liveChatTextMessageRenderer);b=c.client_message_id;a.id=b;a.timestampUsec=String(this.currentTimestampUsec_());c.message?a.message=kz(c.message):c.rich_message&&(a.message=this.formattedStringFromLiveChatRichMessageInput_(c.rich_message));this.handleLiveChatActions_([{addChatItemAction:{clientMessageId:b,item:{liveChatTextMessageRenderer:a}}}])}; g.formattedStringFromLiveChatRichMessageInput_=function(a){var b={runs:[]};a=a.text_segments;for(var c=0;c0)if(this.canScrollToBottom_()){var b=Math.max(this.visibleItems.length+this.activeItems_.length-this.data.maxItemsToDisplay,0);b&&this.splice("visibleItems",0,b);if(this.isSmoothScrollEnabled_()||this.dockableMessages.length)this.preinsertHeight_=this.items.clientHeight;this.activeItems_.unshift("visibleItems");try{this.push.apply(this,this.activeItems_)}catch(c){Xk(c)}this.activeItems_=[];this.isSmoothScrollEnabled_()?this.canScrollToBottom_()&& bt(function(){a.showNewItems_()}):bt(function(){a.refreshOffsetContainerHeight_(); a.maybeScrollToBottom_()})}else this.activeItems_.length>this.data.maxItemsToDisplay&&this.activeItems_.splice(0,this.activeItems_.length-this.data.maxItemsToDisplay)}; g.initMessageVerticalAlignment_=function(){var a=document.querySelector("yt-live-chat-app");this.bottomAlignMessages=!(a&&a.hasAttribute("dashboard-money-feed"))}; g.refreshOffsetContainerHeight_=function(){var a=this.itemScroller.clientHeight;this.itemOffset.style.height=this.items.clientHeight+"px";this.bottomAlignMessages&&(this.itemOffset.style.minHeight=a+"px")}; g.showNewItems_=function(){var a=this.items.clientHeight>this.itemScroller.clientHeight;this.refreshOffsetContainerHeight_();this.canScrollToBottom_()&&a&&(this.scrollPixelsRemaining_+=this.items.clientHeight-this.preinsertHeight_,this.scrollToBottom_(),this.items.style.transform="translateY("+Math.floor(this.scrollPixelsRemaining_)+"px)",this.lastSmoothChatMessageAddMs_||(this.lastSmoothChatMessageAddMs_=performance.now()),a=performance.now()-this.lastSmoothChatMessageAddMs_,this.chatRateMs_=.9* this.chatRateMs_+.1*a,this.isSmoothed_&&this.chatRateMs_<400&&(this.isSmoothed_=!1),!this.isSmoothed_&&this.chatRateMs_>450&&(this.isSmoothed_=!0),this.scrollTimeRemainingMs_+=this.isSmoothed_?PGb:0,this.smoothScrollRafHandle_||(this.smoothScrollRafHandle_=window.requestAnimationFrame(this.smoothScroll_.bind(this))),this.lastSmoothChatMessageAddMs_=performance.now())}; g.maybeAddDockableMessage_=function(a){var b=this;x("enable_docked_chat_messages")&&(this.dockableMessages.find(function(c){return a===c})||window.setTimeout(function(){a.offsetTop-wt(b.hostElement).querySelector("#item-scroller").scrollTop>0&&b.push("dockableMessages",a)},0))}; g.computeIsEmpty_=function(){return!this.visibleItems.length}; g.canScrollToBottom_=function(){return this.atBottom&&this.allowScroll}; g.smoothScroll_=function(a){if(this.lastSmoothScrollUpdate_){var b=this.scrollPixelsRemaining_<400&&this.scrollPixelsRemaining_>0,c=a-this.lastSmoothScrollUpdate_<1E3&&performance.now()-this.lastSmoothScrollClockTime_<1E3&&this.scrollTimeRemainingMs_>0;b&&c?(c=a-this.lastSmoothScrollUpdate_,b=c/this.scrollTimeRemainingMs_*this.scrollPixelsRemaining_,this.scrollPixelsRemaining_-=b,this.scrollPixelsRemaining_=Math.max(this.scrollPixelsRemaining_,0),this.scrollTimeRemainingMs_-=c,this.scrollTimeRemainingMs_= Math.max(this.scrollTimeRemainingMs_,0),this.lastSmoothScrollUpdate_=a,this.lastSmoothScrollClockTime_=performance.now(),this.smoothScrollRafHandle_=window.requestAnimationFrame(this.smoothScroll_.bind(this))):this.resetSmoothScroll_();this.items.style.transform="translateY("+Math.floor(this.scrollPixelsRemaining_)+"px)"}else this.lastSmoothScrollUpdate_=a,this.lastSmoothScrollClockTime_=performance.now(),this.smoothScrollRafHandle_=window.requestAnimationFrame(this.smoothScroll_.bind(this))}; g.resetSmoothScroll_=function(){var a=this;this.isSmoothScrollEnabled_()&&(this.scrollTimeRemainingMs_=this.scrollPixelsRemaining_=0,this.lastSmoothScrollUpdate_=null,this.smoothScrollRafHandle_&&window.cancelAnimationFrame(this.smoothScrollRafHandle_),this.smoothScrollRafHandle_=null,et(this,"resize",function(){a.refreshOffsetContainerHeight_()}))}; g.onScrollItems_=function(a){this.ytRendererBehavior.onScroll(a);this.setAtBottom();this.flushActiveItems_()}; g.setAtBottom=function(){var a=this.itemScroller;this.atBottom=a.scrollTop>=a.scrollHeight-a.clientHeight-15}; g.onContextMenuOpened_=function(){this.contextMenuOpen=!0}; g.onContextMenuClosed_=function(){this.contextMenuOpen=!1}; g.handleBannerRemoval_=function(){this.contextMenuOpen=!1}; g.onShow_=function(){this.maybeScrollToBottom_()}; g.maybeResizeScrollContainer_=function(a){this.isSmoothScrollEnabled_()&&Xba(a,function(b){return!!b.replaceChatItemAction})&&(this.refreshOffsetContainerHeight_(),this.maybeScrollToBottom_())}; g.computeAllowScroll_=function(a,b){return!(a||b)}; g.maybeScrollToBottom_=function(){this.canScrollToBottom_()&&this.scrollToBottom_()}; g.scrollToBottom_=function(){this.smoothScrollRafHandle_||(this.itemScroller.scrollTop=16777216,this.atBottom=!0)}; g.atBottomChanged_=function(){var a=this;this.atBottom?this.hideShowMoreAsync_||(this.hideShowMoreAsync_=bt(function(){wt(a.hostElement).querySelector("#show-more").style.visibility="hidden"},200)):(this.hideShowMoreAsync_&&ct(this.hideShowMoreAsync_),this.hideShowMoreAsync_=null,wt(this.hostElement).querySelector("#show-more").style.visibility="visible")}; g.onWindowKeyEvent_=function(a){this.handleKeyboardEvent_(a.type,a.keyCode)}; g.onKeyboardEventAction_=function(a){this.handleKeyboardEvent_(a.eventType,a.keyCode)}; g.handleKeyboardEvent_=function(a,b){b=zd?n2a(b):eda&&Ad?o2a(b):b;this.data.enablePauseChatKeyboardShortcuts&&b===18&&(this.moderationModeEnabled=a==="keydown")}; g.onTopWindowBlurEvent_=function(){!window||window!==window.top&&document.hasFocus()||(this.moderationModeEnabled=!1)}; g.onFramedWindowBlurEvent_=function(){window===window.top||window.top.document.hasFocus()||(this.moderationModeEnabled=!1)}; g.onModerationMouseMoveEvent_=function(a){this.moderationModeEnabled=a.altKey}; g.moderationModeEnabledChanged_=function(){hya()}; g.isSmoothScrollEnabled_=function(){return PGb!==0}; g.handleChatSeekSuccess_=function(){this.clearList()}; g.handleChatFeedVisible=function(a){a&&this.resizeOffsetContainer()}; WN.prototype.handleChatFeedVisible=WN.prototype.handleChatFeedVisible;WN.prototype.moderationModeEnabledChanged_=WN.prototype.moderationModeEnabledChanged_;WN.prototype.atBottomChanged_=WN.prototype.atBottomChanged_;WN.prototype.maybeScrollToBottom_=WN.prototype.maybeScrollToBottom_;WN.prototype.onContextMenuClosed_=WN.prototype.onContextMenuClosed_;WN.prototype.onContextMenuOpened_=WN.prototype.onContextMenuOpened_;WN.prototype.onYtRendererstamperFinished_=WN.prototype.onYtRendererstamperFinished_; WN.prototype.enableBannerUpdateChanged=WN.prototype.enableBannerUpdateChanged;WN.prototype.dataChanged_=WN.prototype.dataChanged_;WN.prototype.isAttachedOrDataChanged_=WN.prototype.isAttachedOrDataChanged_;WN.prototype.onIronResize_=WN.prototype.onIronResize_;n([F(Es),r("design:type",Object)],WN.prototype,"ironResizableBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],WN.prototype,"ytRendererBehavior",void 0); n([F(oE.YtVisibilityBehavior),r("design:type",Object)],WN.prototype,"ytVisibilityBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],WN.prototype,"ytRendererstamperBehavior",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],WN.prototype,"ytActionHandlerBehavior",void 0);n([F(hL.YtLiveChatTooltipTargetingBehavior),r("design:type",Object)],WN.prototype,"ytLiveChatTooltipTargetingBehavior",void 0); n([Tt("#items"),r("design:type",HTMLDivElement)],WN.prototype,"items",void 0);n([Tt("#item-scroller"),r("design:type",HTMLDivElement)],WN.prototype,"itemScroller",void 0);n([Tt("#item-offset"),r("design:type",HTMLDivElement)],WN.prototype,"itemOffset",void 0);n([Tt("yt-live-chat-banner-manager"),r("design:type",LFb)],WN.prototype,"bannerManager",void 0);n([M(),r("design:type",Object)],WN.prototype,"data",void 0); n([M({computed:"computeId_(data.targetId)",reflectToAttribute:!0}),r("design:type",String)],WN.prototype,"id",void 0);n([M({value:!0}),r("design:type",Object)],WN.prototype,"atBottom",void 0);n([M({value:function(){return[]}}), r("design:type",Object)],WN.prototype,"visibleItems",void 0);n([M(),r("design:type",Object)],WN.prototype,"activeItems_",void 0);n([M(),r("design:type",Object)],WN.prototype,"isSmoothed_",void 0);n([M(),r("design:type",Object)],WN.prototype,"lastSmoothChatMessageAddMs_",void 0);n([M(),r("design:type",Object)],WN.prototype,"chatRateMs_",void 0);n([M(),r("design:type",Object)],WN.prototype,"lastSmoothScrollUpdate_",void 0);n([M(),r("design:type",Object)],WN.prototype,"lastSmoothScrollClockTime_",void 0); n([M(),r("design:type",Object)],WN.prototype,"scrollPixelsRemaining_",void 0);n([M(),r("design:type",Object)],WN.prototype,"scrollTimeRemainingMs_",void 0);n([M(),r("design:type",Object)],WN.prototype,"smoothScrollRafHandle_",void 0);n([M(),r("design:type",Object)],WN.prototype,"preinsertHeight_",void 0);n([M(),r("design:type",Object)],WN.prototype,"hideShowMoreAsync_",void 0);n([M({value:function(){return{}}}), r("design:type",Object)],WN.prototype,"itemIdToDockDurationMap",void 0);n([M({value:function(){return[]}}), r("design:type",Object)],WN.prototype,"dockableMessages",void 0);n([M({reflectToAttribute:!0,computed:"computeAllowScroll_(contextMenuOpen, moderationModeEnabled)"}),r("design:type",Object)],WN.prototype,"allowScroll",void 0);n([M(),r("design:type",Object)],WN.prototype,"participantsManager",void 0);n([M({value:!1}),r("design:type",Object)],WN.prototype,"contextMenuOpen",void 0);n([M({value:!1}),r("design:type",Object)],WN.prototype,"bottomAlignMessages",void 0); n([M({value:!1,reflectToAttribute:!0}),r("design:type",Object)],WN.prototype,"moderationModeEnabled",void 0);n([M({computed:"computeIsEmpty_(visibleItems.splices)"}),r("design:type",Object)],WN.prototype,"isEmpty",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],WN.prototype,"enableBannerUpdate",void 0);n([Kt("iron-resize"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],WN.prototype,"onIronResize_",null); n([Lt("isAttached","data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],WN.prototype,"isAttachedOrDataChanged_",null);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],WN.prototype,"dataChanged_",null);n([Lt("enableBannerUpdate"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],WN.prototype,"enableBannerUpdateChanged",null); n([Kt("yt-rendererstamper-finished"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],WN.prototype,"onYtRendererstamperFinished_",null);n([Kt("yt-live-chat-context-menu-opened"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],WN.prototype,"onContextMenuOpened_",null);n([Kt("yt-live-chat-context-menu-closed"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],WN.prototype,"onContextMenuClosed_",null); n([Kt("yt-popup-closed"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],WN.prototype,"maybeScrollToBottom_",null);n([Lt("atBottom"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],WN.prototype,"atBottomChanged_",null);n([Lt("moderationModeEnabled"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],WN.prototype,"moderationModeEnabledChanged_",null); n([fu({disableElementRegistration:!0,is:"yt-live-chat-item-list-renderer",noInjection:!0})],WN); Tu(WN,"yt-live-chat-item-list-renderer",function(){if(sGb===void 0){var a=document.createElement("template");Q(a,"
\n
\n \n \n \n
\n
\n
\n
\n
\n \n \n \n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;rGb===void 0&&(rGb=document.createElement("template"));var d=rGb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);sGb=a}a=sGb;return a},{mode:0});var QGb;var RGb;var XN=function(){return E.apply(this,arguments)||this}; k(XN,E);n([F(mz.YtComponentBehavior),r("design:type",Object)],XN.prototype,"ytComponentBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],XN.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],XN.prototype,"data",void 0);n([fu({is:"yt-live-chat-jewels-overlay-attribution-card-renderer",disableElementRegistration:!0})],XN); Tu(XN,"yt-live-chat-jewels-overlay-attribution-card-renderer",function(){if(RGb===void 0){var a=document.createElement("template");Q(a,"
\n
\n
\n \n
\n
\n \n \n
\n
\n
\n \n
\n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;QGb===void 0&&(QGb=document.createElement("template"));var d=QGb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);RGb=a}a=RGb;return a},{mode:2});var SGb;var TGb;var YN=function(){var a=E.apply(this,arguments)||this;a.bellySlot=null;a.attributionSlots=[null,null];a.attributionSlotTimers=[void 0,void 0];a.jewelQueue=[];a.testOnly={getAttributionCard:function(b){return a.getAttributionCard(b)}}; return a}; k(YN,E);g=YN.prototype;g.detached=function(){for(var a=l(this.attributionSlotTimers),b=a.next();!b.done;b=a.next())clearTimeout(b.value);clearTimeout(this.bellySlotTimer)}; g.onReceiveAddInteractivityWidgetAction=function(a){var b=z(a.widgetRenderer,OJ);a=z(a.companionWidgetRenderer,OJ);b?(this.addWidgetActionToPriorityQueue(b,a),this.tryToRenderNextJewel()):co(new Dl("Cannot find widgetRenderer in AddInteractivityWidgetAction"))}; g.onReceiveUpdateOrAddInteractivityWidgetAction=function(a){(a=z(a.widgetRenderer,OJ))?(this.addWidgetActionToPriorityQueue(a),this.tryToRenderNextJewel()):co(new Dl("Cannot find widgetRenderer in UpdateOrAddInteractivityWidgetAction"))}; g.addWidgetActionToPriorityQueue=function(a,b){if(!a||a.type!=="INTERACTIVITY_WIDGET_TYPE_GIFT"||b&&b.type!=="INTERACTIVITY_WIDGET_TYPE_GIFT")return!1;this.jewelQueue.push({widgetRenderer:a,companionWidgetRenderer:b,arrivalTime:Date.now()});return!0}; g.tryToRenderNextJewel=function(){for(var a=this.getFilteredAndPrioritizedWidget();a;)this.removeJewelFromQueue(a),this.renderJewel(a),a=this.getFilteredAndPrioritizedWidget()}; g.renderJewel=function(a){var b=this,c=this.getFirstAvailableAttributionSlotIndex(),d=a.widgetRenderer;if(this.isAttributionOnlyJewel(d)){this.splice("attributionSlots",c,1,d);var e;(e=this.getAttributionCard(c))==null||e.classList.add("slide-in");this.attributionSlotTimers[c]=setTimeout(function(){b.triggerAttributionCardSlideOutAnimation(c)},d.timeoutMs)}else if(a.companionWidgetRenderer){this.bellySlot=d; this.adjustOverlayImageSize();this.bellySlotWrapper.classList.add("slide-in");this.bellySlotTimer=setTimeout(function(){b.triggerBellySlotSlideOutAnimation()},d.timeoutMs); this.splice("attributionSlots",c,1,a.companionWidgetRenderer);var f;(f=this.getAttributionCard(c))==null||f.classList.add("slide-in");this.attributionSlotTimers[c]=setTimeout(function(){b.triggerAttributionCardSlideOutAnimation(c)},a.companionWidgetRenderer.timeoutMs)}else co(new Dl("Belly jewel does not have a companion attribution jewel"))}; g.getAttributionCard=function(a){return wt(this.hostElement).querySelectorAll(".attribution-card-container")[a]}; g.triggerAttributionCardSlideOutAnimation=function(a){var b=this,c=this.getAttributionCard(a);c?(c.classList.remove("slide-in"),c.classList.add("slide-out"),c.addEventListener("animationend",function(){b.splice("attributionSlots",a,1,null);c.classList.remove("slide-out");b.tryToRenderNextJewel()},{once:!0})):co(new Dl("Cannot find attribution card for index: "+a))}; g.triggerBellySlotSlideOutAnimation=function(){var a=this;this.bellySlotWrapper.classList.remove("slide-in");this.bellySlotWrapper.classList.add("slide-out");this.bellySlotWrapper.addEventListener("animationend",function(){a.bellySlot=null;a.bellySlotWrapper.classList.remove("slide-out");a.adjustOverlayImageSize();a.tryToRenderNextJewel()},{once:!0})}; g.getFilteredAndPrioritizedWidget=function(){var a=this.getFilteredWidgets();return this.getHighestPriorityWidget(a)}; g.removeJewelFromQueue=function(a){a=this.jewelQueue.indexOf(a);a>-1&&this.jewelQueue.splice(a,1)}; g.isAttributionOnlyJewel=function(a){return!a.queueId}; g.getFirstAvailableAttributionSlotIndex=function(){return this.attributionSlots.findIndex(function(a){return a===null})}; g.getFilteredWidgets=function(){var a=this;return this.jewelQueue.filter(function(b){return a.isAttributionOnlyJewel(b.widgetRenderer)?a.getFirstAvailableAttributionSlotIndex()>-1:a.bellySlot===null&&a.getFirstAvailableAttributionSlotIndex()>-1})}; g.getHighestPriorityWidget=function(a){return a.length===0?null:a.reduce(function(b,c){var d=c.widgetRenderer.priority||0,e=b.widgetRenderer.priority||0;return d>e?c:d===e?c.arrivalTime
\n \n
\n
\n
\n \n
\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;SGb===void 0&&(SGb=document.createElement("template"));var d=SGb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);TGb=a}a=TGb;return a},{mode:2});var UGb;var VGb;var ZN=function(){return E.apply(this,arguments)||this}; k(ZN,E);ZN.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}}; n([M(),r("design:type",Object)],ZN.prototype,"data",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],ZN.prototype,"ytRendererstamperBehavior",void 0);n([gu({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],ZN); Tu(ZN,"yt-live-chat-message-input-prompt-header-renderer",function(){if(VGb===void 0){var a=document.createElement("template");Q(a,"
\n
\n \n
\n
\n
");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;UGb===void 0&&(UGb=document.createElement("template"));var d=UGb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);VGb=a}a=VGb;return a},{mode:0});var WGb;var XGb;var YGb;var ZGb;var $N=function(){var a=E.apply(this,arguments)||this;a.isRemovable=!1;a.hasPrefilledText=!1;a.isInputDirty=!1;a.overCharacterLimit=!1;a.underCharacterLimit=!1;a.showErrorMessage=!1;return a}; k($N,E);g=$N.prototype;g.computeId=function(){return this.data.id}; g.computeInputData=function(){return this.data.inputData}; g.computeHasPrefilledText=function(){return this.data.hasPrefilledText}; g.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable}; g.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1}; g.getLiveChatRichMessageInput=function(){return wt(this.hostElement).querySelector("#input").liveChatRichMessageInput}; g.clearInput=function(){wt(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)}; g.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount}; g.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0}; g.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount}; g.handleTextInputCharCountChanged=function(a){a=a.detail&&a.detail.characterCount;a!==void 0&&(this.characterCount=a,a!==0&&(this.isInputDirty=!0))}; g.onInputFocusOut=function(){this.isInputDirty=!0}; g.onClickCloseButton=function(){Gt(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})}; $N.prototype.handleTextInputCharCountChanged=$N.prototype.handleTextInputCharCountChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],$N.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],$N.prototype,"data",void 0);n([M({computed:"computeId(data.id)"}),r("design:type",String)],$N.prototype,"id",void 0);n([M({computed:"computeInputData(data.inputData)"}),r("design:type",Object)],$N.prototype,"inputData",void 0); n([M({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),r("design:type",Object)],$N.prototype,"isRemovable",void 0);n([M({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),r("design:type",Object)],$N.prototype,"hasPrefilledText",void 0);n([M({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),r("design:type",Number)],$N.prototype,"charactersRemaining",void 0); n([M(),r("design:type",Number)],$N.prototype,"characterCount",void 0);n([M(),r("design:type",Object)],$N.prototype,"isInputDirty",void 0);n([M({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),r("design:type",Object)],$N.prototype,"overCharacterLimit",void 0);n([M({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),r("design:type",Object)],$N.prototype,"underCharacterLimit",void 0); n([M({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),r("design:type",Object)],$N.prototype,"showErrorMessage",void 0);n([Kt("yt-live-chat-text-input-field-renderer-character-count-changed"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],$N.prototype,"handleTextInputCharCountChanged",null); n([fu({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],$N); Tu($N,"yt-live-chat-poll-editor-input",function(){if(ZGb===void 0){var a=document.createElement("template");Q(a,"
\n \n \n
\n \n \n \n [[charactersRemaining]]\n
\n
\n
\n [[getSimpleString(data.charCountErrorText)]]\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;YGb===void 0&&(YGb=document.createElement("template"));var d=YGb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);ZGb=a}a=ZGb;return a},{mode:0});var $Gb;var aHb;var bHb={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},aO=function(){var a=E.apply(this,arguments)||this;a.modern=x("web_button_rework_with_live");a.closeButtonOverrides={iconPosition:"icon-only"};a.startButtonOverrides={style:"mono",type:"filled"};a.addOptionButtonOverrides={style:"mono",type:"text"};return a}; k(aO,E);g=aO.prototype; g.configureRendererStamper=function(){return{"data.pollEditorInfo.addOptionButton":{id:"add-option-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[addOptionButtonOverrides]]"}}}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[closeButtonOverrides]]"}}}},"data.startButton":{id:"start-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[startButtonOverrides]]"}}}},pollQuestionData:{id:"poll-question", mapping:{liveChatTextInputFieldRenderer:{component:"yt-live-chat-text-input-field-renderer",attributes:{id:"poll-question-input","is-valid-with-no-input-text":!0}}}},pollOptionsData:{id:"poll-options",mapping:{liveChatPollOptionInput:{component:"yt-live-chat-poll-editor-input"}}}}}; g.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var a;z((a=this.data)==null?void 0:a.startButton,TJ)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)}; g.computeId=function(){return this.data&&this.data.id||""}; g.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1}; g.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length}; g.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions}; g.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText}; g.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var a=0;ab.maxPollQuestionChars)return!1;b=wt(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(b).every(function(f,h){f=f.characterCount;!f&&e[h]&&(f=a.ytRendererBehavior.getSimpleString(e[h]).length);return f!==void 0&&f>=c&&f<=d})}; g.isValidPollChanged=function(){var a;z((a=this.data)==null?void 0:a.startButton,TJ)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)}; g.addPollOptionData=function(){var a=this.pollEditorInfoWithDefaults,b=a.maxPollOptionChars,c=a.optionPlaceholderText,d=a.customOptionPlaceholderText,e=a.pollOptionData;this.currentNumPollOptions>=a.maxPollOptions||(a={liveChatPollOptionInput:{inputData:{placeholder:d[this.currentNumPollOptions]||c,maxCharacterLimit:b},maxCharacterLimit:b,minCharacterLimit:a.minPollOptionChars,hasPrefilledText:!!d[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=a.minPollOptions}},e.charCountErrorText&&( a.liveChatPollOptionInput.charCountErrorText=e.charCountErrorText),e.charsRemainingAltLabel&&(a.liveChatPollOptionInput.charsRemainingAltLabel=e.charsRemainingAltLabel),e.removeOptionAltText&&(a.liveChatPollOptionInput.removeOptionAltText=e.removeOptionAltText),this.push("pollOptionsData",a),e=Array.from(wt(wt(this.hostElement).querySelector("#poll-options")).children),e.forEach(function(f,h){f.polymerController.set("data.id",h)}),wt(e[e.length-1]).querySelector("#input").focus())}; g.getPollOptionInputValues=function(){var a=this,b=[],c=wt(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),d=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(c).forEach(function(e,f){var h=null;e=e.getLiveChatRichMessageInput();var m;(e==null?0:(m=e.textSegments)==null?0:m.length)?h=yM(e):d[f]&&(h=a.formattedStringToLiveChatRichMessageInput(d[f]));b.push(h)}); return b}; g.requestCreateAndStartPoll=function(a){var b=this.getPollOptionInputValues();if(!b.some(function(d){return!d})){b={optionText:b}; var c=wt(wt(this.hostElement).querySelector("#poll-question")).firstChild;c&&c.liveChatRichMessageInput&&(b.questionText=yM(c.liveChatRichMessageInput));$u(this.hostElement,[a,b])}}; g.selectedChanged=function(){if(this.selected){var a=wt(wt(this.hostElement).querySelector("#start-button")).firstElementChild;if(a){var b;(b=wt(a).querySelector("#button")||At(a).querySelector("button"))==null||b.focus()}}}; g.handleTextInputChanged=function(a){var b;((b=a.target)==null?void 0:b.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=a.detail.characterCount);this.isValidPoll=this.getIsValidPoll()}; g.handleStartButtonAction=function(a){a.detail.actionName==="yt-service-request"&&(a.stopPropagation(),(a=a.detail.args[1])&&this.requestCreateAndStartPoll(a))}; g.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0}; g.handleServiceRequestCompleted=function(a){this.createPollRequestInFlight=!1;(a=a.detail&&a.detail.data)&&a.success&&(Gt(this.hostElement,"picker-cancelled"),Xu(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))}; g.onCloseClick=function(){Gt(this.hostElement,"picker-cancelled");Xu(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")}; g.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()}; g.handlePollEditorInputClosed=function(a){var b=this.pollOptionsData.findIndex(function(c){return c.liveChatPollOptionInput.id===a.detail.id}); this.splice("pollOptionsData",b,1);this.isValidPoll=this.getIsValidPoll()}; g.onPickerCancelled=function(){this.reset()}; g.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var a=wt(wt(this.hostElement).querySelector("#poll-question")).firstChild;a&&a.setLiveChatRichMessageInput(null);if(a=wt(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){a=l(Array.from(a));for(var b=a.next();!b.done;b=a.next())b.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}}; g.formattedStringToLiveChatRichMessageInput=function(a){return a.simpleText?{text_segments:[a.simpleText]}:{text_segments:a.runs}}; ba.Object.defineProperties(aO.prototype,{pollQuestionData:{configurable:!0,enumerable:!0,get:function(){if(this.pollEditorInfoWithDefaults)return{liveChatTextInputFieldRenderer:{placeholder:this.pollEditorInfoWithDefaults.questionPlaceholderText,maxCharacterLimit:this.pollEditorInfoWithDefaults.maxPollQuestionChars}}}}, pollQuestionCharactersRemaining:{configurable:!0,enumerable:!0,get:function(){if(this.pollEditorInfoWithDefaults)return this.pollEditorInfoWithDefaults.maxPollQuestionChars-this.pollQuestionCharacterCount}}, pollEditorInfoWithDefaults:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.pollEditorInfo)return Object.assign(bHb,this.data.pollEditorInfo)}}, shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}}); aO.prototype.onPickerCancelled=aO.prototype.onPickerCancelled;aO.prototype.handlePollEditorInputClosed=aO.prototype.handlePollEditorInputClosed;aO.prototype.handleServiceRequestCompleted=aO.prototype.handleServiceRequestCompleted;aO.prototype.handleServiceRequestSent=aO.prototype.handleServiceRequestSent;aO.prototype.handleTextInputChanged=aO.prototype.handleTextInputChanged;aO.prototype.selectedChanged=aO.prototype.selectedChanged;aO.prototype.isValidPollChanged=aO.prototype.isValidPollChanged; aO.prototype.shouldInitializePollChanged=aO.prototype.shouldInitializePollChanged;aO.prototype.dataChanged=aO.prototype.dataChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],aO.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],aO.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],aO.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],aO.prototype,"modern",void 0); n([M(),r("design:type",Object)],aO.prototype,"closeButtonOverrides",void 0);n([M(),r("design:type",Object)],aO.prototype,"startButtonOverrides",void 0);n([M(),r("design:type",Object)],aO.prototype,"addOptionButtonOverrides",void 0);n([M({computed:"computeId(data.id)",reflectToAttribute:!0}),r("design:type",String)],aO.prototype,"id",void 0);n([M({value:function(){return[]}}), r("design:type",Array)],aO.prototype,"pollOptionsData",void 0);n([H("pollEditorInfoWithDefaults"),r("design:type",Object),r("design:paramtypes",[])],aO.prototype,"pollQuestionData",null);n([M({value:0}),r("design:type",Number)],aO.prototype,"pollQuestionCharacterCount",void 0);n([H("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),r("design:type",Object),r("design:paramtypes",[])],aO.prototype,"pollQuestionCharactersRemaining",null); n([M({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),r("design:type",Boolean)],aO.prototype,"overQuestionCharacterLimit",void 0);n([H("data.pollEditorInfo"),r("design:type",Object),r("design:paramtypes",[])],aO.prototype,"pollEditorInfoWithDefaults",null);n([M({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),r("design:type",Number)],aO.prototype,"currentNumPollOptions",void 0); n([M({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),r("design:type",Boolean)],aO.prototype,"hasMaxNumPollOptions",void 0);n([H("pollEditorInfoWithDefaults","pollOptionsData"),r("design:type",Boolean),r("design:paramtypes",[])],aO.prototype,"shouldInitializePoll",null);n([M(),r("design:type",Object)],aO.prototype,"isValidPoll",void 0); n([M({value:!1,reflectToAttribute:!0}),r("design:type",Boolean)],aO.prototype,"createPollRequestInFlight",void 0);n([M(),r("design:type",Object)],aO.prototype,"selected",void 0);n([M({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),r("design:type",Boolean)],aO.prototype,"showQuestionErrorMessage",void 0); n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],aO.prototype,"dataChanged",null);n([Lt("shouldInitializePoll"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],aO.prototype,"shouldInitializePollChanged",null);n([Lt("isValidPoll"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],aO.prototype,"isValidPollChanged",null); n([Lt("selected"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],aO.prototype,"selectedChanged",null);n([Kt("yt-live-chat-text-input-field-renderer-character-count-changed"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],aO.prototype,"handleTextInputChanged",null);n([Kt("yt-service-request-sent"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],aO.prototype,"handleServiceRequestSent",null); n([Kt("yt-service-request-completed"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],aO.prototype,"handleServiceRequestCompleted",null);n([Kt("yt-live-chat-poll-editor-input-closed"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],aO.prototype,"handlePollEditorInputClosed",null);n([Kt("picker-cancelled"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],aO.prototype,"onPickerCancelled",null); n([fu({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],aO); Tu(aO,"yt-live-chat-poll-editor-panel-renderer",function(){if(aHb===void 0){var a=document.createElement("template");Q(a,"
\n \n \n
\n
\n
\n
\n
\n
\n
\n [[getSimpleString(pollEditorInfoWithDefaults.pollQuestionCharCountErrorText)]]\n
\n
\n [[pollQuestionCharacterCount]]/[[pollEditorInfoWithDefaults.maxPollQuestionChars]]\n
\n
\n [[pollQuestionCharactersRemaining]]\n
\n
\n
\n
\n
\n
\n
\n
\n
\n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;$Gb===void 0&&($Gb=document.createElement("template"));var d=$Gb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);aHb=a}a=aHb;return a},{mode:0});var cHb;var dHb;var bO=function(){return E.apply(this,arguments)||this}; k(bO,E);bO.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")}; bO.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)}; ba.Object.defineProperties(bO.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var a,b;return(a=this.data)==null?void 0:(b=a.title)==null?void 0:b.content}}, hasPromotion:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.hasBlueDot)}}, innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var a;return LB((a=this.data)==null?void 0:a.onTapCommand)}}}); n([F(zB.YtEndpointBehavior),r("design:type",Object)],bO.prototype,"ytEndpointBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],bO.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],bO.prototype,"data",void 0);n([M({reflectToAttribute:!0}),H("data"),r("design:type",Object),r("design:paramtypes",[])],bO.prototype,"itemId",null);n([M({reflectToAttribute:!0}),H("data"),r("design:type",Boolean),r("design:paramtypes",[])],bO.prototype,"hasPromotion",null); n([H("data"),r("design:type",Object),r("design:paramtypes",[])],bO.prototype,"innertubeCommand",null);n([fu({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],bO); Tu(bO,"yt-live-chat-product-picker-panel-item-view-model",function(){if(dHb===void 0){var a=document.createElement("template");Q(a,"\n \n \n
\n \n \n
\n
\n \n \n
\n \n
\n
");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;cHb===void 0&&(cHb=document.createElement("template"));var d=cHb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);dHb=a}a=dHb;return a},{mode:0});var eHb;var fHb;var cO=function(){var a=E.apply(this,arguments)||this;a.id="product-picker";a.selected=!1;a.closeButtonId="close-button";a.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return a}; k(cO,E);g=cO.prototype;g.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}}; g.observeSelected=function(){if(this.selected){var a=wt(this.hostElement).querySelector("#"+this.closeButtonId);a&&a.focus()}}; g.onCloseBuyFlow=function(){Gt(this.hostElement,"picker-cancelled")}; g.onCloseClick=function(){Gt(this.hostElement,"picker-cancelled");var a;((a=this.data)==null?0:a.closeButton)&&this.ytRendererBehavior.logExplicitClick(z(this.data.closeButton,ZJ))}; g.onCloseEngageWithAudienceEditorPanels=function(){Gt(this.hostElement,"picker-cancelled")}; cO.prototype.observeSelected=cO.prototype.observeSelected;n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],cO.prototype,"ytActionHandlerBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],cO.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],cO.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],cO.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],cO.prototype,"id",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],cO.prototype,"selected",void 0);n([M(),r("design:type",Object)],cO.prototype,"closeButtonId",void 0);n([Lt("selected"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],cO.prototype,"observeSelected",null);n([fu({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],cO); Tu(cO,"yt-live-chat-product-picker-panel-view-model",function(){if(fHb===void 0){var a=document.createElement("template");Q(a,"
\n \n \n \n
\n
"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;eHb===void 0&&(eHb=document.createElement("template"));var d=eHb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);fHb=a}a=fHb;return a},{mode:0});var gHb;var hHb;var dO=function(){var a=E.apply(this,arguments)||this;a.iconId="";a.icon="";a.disabled=!1;a.systemIcons=x("kevlar_system_icons");return a}; k(dO,E);g=dO.prototype;g.computeIconId=function(a){return a&&a.icon&&a.icon.iconType?a.icon.iconType.toLowerCase():""}; g.computeIcon=function(a){return a&&a.icon&&a.icon.iconType?(a=a.icon.iconType.toLowerCase(),(a.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+a):""}; g.computeDisabled=function(a){return!!a}; g.computeCommand=function(a,b){return b?void 0:a}; g.computeTooltip=function(a,b){return b&&a?a:""}; g.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)}; ba.Object.defineProperties(dO.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var a="",b,c,d;if((b=this.data)==null?0:(c=b.text)==null?0:(d=c.runs)==null?0:d.length)a=this.data.text.runs[0].text||"";else{var e,f;if((e=this.data)==null?0:(f=e.text)==null?0:f.simpleText)a=this.data.text.simpleText}var h,m,p;if((h=this.data)==null?0:(m=h.subtext)==null?0:(p=m.runs)==null?0:p.length)a&&(a+=". "),a+=this.data.subtext.runs[0].text||"";else{var q,t;if((q=this.data)==null?0:(t=q.subtext)== null?0:t.simpleText)a&&(a+=". "),a+=this.data.subtext.simpleText}return a}}}); n([F(zB.YtEndpointBehavior),r("design:type",Object)],dO.prototype,"ytEndpointBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],dO.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],dO.prototype,"data",void 0);n([M({computed:"computeIconId(data)",reflectToAttribute:!0}),r("design:type",Object)],dO.prototype,"iconId",void 0);n([M({computed:"computeIcon(data)",reflectToAttribute:!0}),r("design:type",Object)],dO.prototype,"icon",void 0); n([M({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),r("design:type",Object)],dO.prototype,"disabled",void 0);n([M({computed:"computeCommand(data.command, disabled)"}),r("design:type",Object)],dO.prototype,"command",void 0);n([M({computed:"computeTooltip(data.disabledTooltip, disabled)"}),r("design:type",String)],dO.prototype,"tooltip",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],dO.prototype,"systemIcons",void 0); n([H("data.text","data.subtext"),M(),r("design:type",String),r("design:paramtypes",[])],dO.prototype,"ariaLabel",null);n([fu({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],dO); Tu(dO,"yt-live-chat-product-button-renderer",function(){if(hHb===void 0){var a=document.createElement("template");Q(a,"\n \n
\n \n \n
\n
\n \n
\n \n
\n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;gHb===void 0&&(gHb=document.createElement("template"));var d=gHb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);hHb=a}a=hHb;return a},{mode:0});var iHb;var jHb;var eO=function(){var a=E.apply(this,arguments)||this;a.selected=!1;a.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels","yt-signal-action-close-engage-with-audience-editor-panel":"onCloseEngageWithAudienceEditorPanels"};return a}; k(eO,E);g=eO.prototype;g.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{liveChatProductButtonRenderer:"yt-live-chat-product-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{liveChatProductButtonRenderer:"yt-live-chat-product-button-renderer"}}}}; g.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")}; g.computeId=function(a){return a.id||""}; g.onCloseClick=function(){Gt(this.hostElement,"picker-cancelled")}; g.observeSelected=function(){this.selected&&this.hostElement.focus();var a=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");a.length&&a[0].focus()}; g.onCloseBuyFlow=function(){Gt(this.hostElement,"picker-cancelled")}; g.onCloseEngageWithAudienceEditorPanels=function(){Gt(this.hostElement,"picker-cancelled")}; eO.prototype.observeSelected=eO.prototype.observeSelected;n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],eO.prototype,"ytActionHandlerBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],eO.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],eO.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],eO.prototype,"data",void 0); n([M({computed:"computeId(data)",reflectToAttribute:!0}),r("design:type",String)],eO.prototype,"id",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],eO.prototype,"selected",void 0);n([Lt("selected"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],eO.prototype,"observeSelected",null);n([fu({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],eO); Tu(eO,"yt-live-chat-product-picker-renderer",function(){if(jHb===void 0){var a=document.createElement("template");Q(a," \n
\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;iHb===void 0&&(iHb=document.createElement("template"));var d=iHb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);jHb=a}a=jHb;return a},{mode:0});var kHb;var lHb;var fO=function(){var a=E.apply(this,arguments)||this;a.characterCount=0;a.showInputErrorMessage=!1;a.startQnaRequestInFlight=!1;a.modern=x("web_button_rework_with_live");a.buttonOverrides={style:"mono",type:"filled"};a.closeButtonOverrides={iconPosition:"icon-only"};a.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return a}; k(fO,E);g=fO.prototype; g.configureRendererStamper=function(){return{"data.creatorCallForQuestions.liveChatCreatorCallForQuestionsRenderer.overflowMenuButton":{id:"menu",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"menu-button"}}}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[closeButtonOverrides]]"}}}},"data.startButton":{id:"start-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}}; g.onCharacterCountChanged=function(a){var b,c,d,e,f=(c=z(this==null?void 0:(b=this.data)==null?void 0:b.creatorCallForQuestions,tpb))==null?void 0:(d=c.inputField)==null?void 0:(e=d.liveChatTextInputFieldRenderer)==null?void 0:e.maxCharacterLimit,h,m;f!=null&&(a==null?void 0:(h=a.detail)==null?void 0:h.characterCount)!=null&&z(this==null?void 0:(m=this.data)==null?void 0:m.startButton,TJ)&&(b=a.detail.characterCount>f,this.set("data.startButton.buttonRenderer.isDisabled",a.detail.characterCount=== 0||b),this.showInputErrorMessage=b)}; g.onCloseClick=function(){Gt(this.hostElement,"picker-cancelled");Xu(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")}; g.onPickerCancelled=function(){var a=wt(this.hostElement).querySelector("#qna-creator-text-input-field");a&&a.setLiveChatRichMessageInput(null)}; g.handleOpenQnaStartPanel=function(){var a=wt(this.hostElement).querySelector("#qna-creator-text-input-field");a&&a.focus()}; g.handleStartButtonAction=function(a){var b=this;if(a.detail.actionName==="yt-service-request"&&(a.stopPropagation(),a=a.detail.args[1])){var c=wt(this.hostElement).querySelector("#qna-creator-text-input-field"),d;(c==null?0:(d=c.liveChatRichMessageInput)==null?0:d.textSegments)&&c.liveChatRichMessageInput.textSegments.length!==0&&(d={rich_message:yM(c.liveChatRichMessageInput)},$u(this.hostElement,[a,d]).then(function(){Gt(b.hostElement,"picker-cancelled")}))}}; g.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0}; g.handleServiceRequestCompleted=function(a){var b;a=a==null?void 0:(b=a.detail)==null?void 0:b.data;(a==null?0:a.actions)&&a.actions.length>0?this.startQnaRequestInFlight=!1:Xu(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")}; g.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1}; fO.prototype.handleServiceRequestError=fO.prototype.handleServiceRequestError;fO.prototype.handleServiceRequestCompleted=fO.prototype.handleServiceRequestCompleted;fO.prototype.handleServiceRequestSent=fO.prototype.handleServiceRequestSent;fO.prototype.onPickerCancelled=fO.prototype.onPickerCancelled;fO.prototype.onCharacterCountChanged=fO.prototype.onCharacterCountChanged;n([M(),r("design:type",Object)],fO.prototype,"characterCount",void 0);n([M(),r("design:type",Object)],fO.prototype,"data",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],fO.prototype,"showInputErrorMessage",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],fO.prototype,"startQnaRequestInFlight",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],fO.prototype,"modern",void 0);n([M(),r("design:type",Object)],fO.prototype,"buttonOverrides",void 0);n([M(),r("design:type",Object)],fO.prototype,"closeButtonOverrides",void 0); n([F($C.YtRendererstamperBehavior),r("design:type",Object)],fO.prototype,"ytRendererstamperBehavior",void 0);n([F(iE),r("design:type",Object)],fO.prototype,"ytLiveChatReduxBehavior",void 0);n([F(rM.YtLiveChatItemBehavior),r("design:type",sM)],fO.prototype,"ytLiveChatItemBehavior",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],fO.prototype,"ytActionHandlerBehavior",void 0); n([Kt("yt-live-chat-text-input-field-renderer-character-count-changed"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],fO.prototype,"onCharacterCountChanged",null);n([Kt("picker-cancelled"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],fO.prototype,"onPickerCancelled",null);n([Kt("yt-service-request-sent"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],fO.prototype,"handleServiceRequestSent",null); n([Kt("yt-service-request-completed"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],fO.prototype,"handleServiceRequestCompleted",null);n([Kt("yt-service-request-error"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],fO.prototype,"handleServiceRequestError",null);n([gu({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],fO); Tu(fO,"yt-live-chat-qna-start-panel-renderer",function(){if(lHb===void 0){var a=document.createElement("template");Q(a,"
\n \n \n
\n
\n
\n
\n
\n
\n \n \n\n
\n \n \n\n \n \n\n \n \n
\n
\n
\n\n
\n
\n \n
\n
\n
[[getSimpleString(data.characterLimitErrorMessage)]]
\n
[[characterCount]]/[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField.liveChatTextInputFieldRenderer.maxCharacterLimit]]
\n
\n
\n
\n
\n
\n
\n
\n \n
"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;kHb===void 0&&(kHb=document.createElement("template"));var d=kHb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);lHb=a}a=lHb;return a},{mode:0});var mHb;var nHb;var gO=function(){return E.apply(this,arguments)||this}; k(gO,E);gO.prototype.dismiss=function(){Gt(this.hostElement,"yt-live-chat-error-message-dismiss")}; gO.prototype.edit=function(){Gt(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)}; n([M(),r("design:type",Object)],gO.prototype,"data",void 0);n([fu({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],gO); Tu(gO,"yt-live-chat-text-actions-error-message-renderer",function(){if(nHb===void 0){var a=document.createElement("template");Q(a,"\n \n\n
\n \n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;mHb===void 0&&(mHb=document.createElement("template"));var d=mHb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);nHb=a}a=nHb;return a},{mode:0});var oHb;var pHb;var qHb;var rHb;var hO=function(){var a=E.apply(this,arguments)||this;a.isDarkTheme=document.documentElement.hasAttribute("dark");a.newnessDotEligible=!1;return a}; k(hO,E);hO.prototype.sendReaction=function(){var a,b,c=((a=this.data)==null?void 0:a.emojiId)||((b=this.data)==null?void 0:b.emoteId),d;c&&((d=this.data)==null?0:d.shouldTriggerAnimation)&&Xu(this.hostElement,"yt-create-user-reaction-animation",[c]);var e;(a=LB((e=this.data)==null?void 0:e.onTap))&&jz(a,this.hostElement);this.showNewnessDot&&Xu(this.hostElement,"yt-hide-newness-dot")}; hO.prototype.onClick=function(a){(!a||a.clientX||a.clientY)&&this.sendReaction()}; hO.prototype.onKeyDown=function(a){a.key!=="Enter"&&a.key!==" "||a.repeat||this.sendReaction()}; ba.Object.defineProperties(hO.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.maybeShowNewnessDot)&&this.newnessDotEligible}}, useYtImage:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!(((a=this.data)==null?0:a.emojiId)||((b=this.data)==null?0:b.emoteId))}}}); n([M(),r("design:type",Object)],hO.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],hO.prototype,"isDarkTheme",void 0);n([M(),r("design:type",Object)],hO.prototype,"newnessDotEligible",void 0);n([H("data.maybeShowNewnessDot"),r("design:type",Boolean),r("design:paramtypes",[])],hO.prototype,"showNewnessDot",null);n([H("data.emojiId","data.emoteId"),r("design:type",Boolean),r("design:paramtypes",[])],hO.prototype,"useYtImage",null); n([fu({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],hO); Tu(hO,"yt-reaction-control-panel-button-view-model",function(){if(rHb===void 0){var a=document.createElement("template");Q(a,"\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;qHb===void 0&&(qHb=document.createElement("template"));var d=qHb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);rHb=a}a=rHb;return a},{mode:0});var sHb;var tHb;var iO=function(){var a=E.apply(this,arguments)||this;a.reactionControlPanelExpanded=!1;a.isDarkTheme=document.documentElement.hasAttribute("dark");a.newnessDotEligible=!1;return a}; k(iO,E);g=iO.prototype;g.expandedButtonsChanged=function(){var a,b;Ft(this.hostElement,{"--expanded-buttons-height":((b=(a=this.expandedButtonsData)==null?void 0:a.length)!=null?b:0)*36+"px"})}; g.configureRendererStamper=function(){return{expandedButtonsData:{id:"expanded-buttons",mapping:{reactionControlPanelButtonViewModel:{component:"yt-reaction-control-panel-button-view-model",properties:{newnessDotEligible:"[[newnessDotEligible]]"}}},reuseComponents:!0},"data.collapsedButton":{id:"collapsed-button",mapping:{reactionControlPanelButtonViewModel:{component:"yt-reaction-control-panel-button-view-model",properties:{newnessDotEligible:"[[newnessDotEligible]]"}}},reuseComponents:!0}}}; g.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0}; g.onMouseLeave=function(){var a=this;this.collapseTimer=setTimeout(function(){a.reactionControlPanelExpanded=!1},500)}; g.onFocusIn=function(){this.onMouseEnter()}; g.onFocusOut=function(){this.onMouseLeave()}; g.onCollapsedButtonFocusIn=function(){var a=this;setTimeout(function(){var b;(b=a.expandedButtons.querySelector("button"))==null||b.focus()},100)}; g.onCollapsedButtonFocusOut=function(a){a.stopPropagation()}; ba.Object.defineProperties(iO.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var a,b;return Yh((a=this.liveReactionsData)==null?void 0:a.emojiButtonData)||((b=this.data)==null?void 0:b.expandedButtons)}}, showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var a;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((a=this.data)==null||!a.maybeShowNewnessDot)}}}); iO.prototype.expandedButtonsChanged=iO.prototype.expandedButtonsChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],iO.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],iO.prototype,"ytRendererstamperBehavior",void 0);n([F(iE),r("design:type",Object)],iO.prototype,"ytLiveChatReduxBehavior",void 0);n([M(),r("design:type",Object)],iO.prototype,"data",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],iO.prototype,"reactionControlPanelExpanded",void 0);n([M({selectorArgs:["data.liveReactionsDataEntityKey"],selector:BAb}),r("design:type",Object)],iO.prototype,"liveReactionsData",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],iO.prototype,"isDarkTheme",void 0);n([M(),r("design:type",Object)],iO.prototype,"newnessDotEligible",void 0); n([H("liveReactionsData","data.expandedButtons"),r("design:type",Object),r("design:paramtypes",[])],iO.prototype,"expandedButtonsData",null);n([H("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),M({reflectToAttribute:!0}),r("design:type",Object),r("design:paramtypes",[])],iO.prototype,"showNewnessDot",null);n([Tt("#expanded-buttons"),r("design:type",HTMLElement)],iO.prototype,"expandedButtons",void 0); n([Lt("expandedButtonsData"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],iO.prototype,"expandedButtonsChanged",null);n([fu({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],iO); Tu(iO,"yt-reaction-control-panel-view-model",function(){if(tHb===void 0){var a=document.createElement("template");Q(a,"
\n
\n
\n
\n
\n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;sHb===void 0&&(sHb=document.createElement("template"));var d=sHb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);tHb=a}a=tHb;return a},{mode:0});var jO=new Ql("yt-live-chat"),uHb=Date.parse("2024-7-24"),kO=function(){var a=E.apply(this,arguments)||this;a.emojiManager=qM;a.newnessDotEligible=!1;a.newnessDotImpressionCounted=!1;a.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return a}; k(kO,E);g=kO.prototype; g.emojiCustomizationEnabledChanged=function(){var a;if(((a=this.data)==null?0:a.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted){a:{if(jO.hasLocalStorage()&&(a=(jO.expiringStorage_.getWrapper("emoji-customization-count")||{}).creation,typeof a==="number"))break a;a=null}a&&a
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;oHb===void 0&&(oHb=document.createElement("template"));var d=oHb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);pHb=a}a=pHb;return a},{mode:0});var lO=function(){var a=E.apply(this,arguments)||this;a.numSentMessages=0;a.timeoutDurationMs=0;a.timeoutMs=0;a.lastTimeoutTimeMs=0;a.pendingMessageId="";a.hasFiredInitialFocusActions=!1;a.isBeforeFocusEnabled=!0;a.id="";a.characterCount=0;a.maxCharacterLimit=0;a.remainingCharacterCount=0;a.inputExpanded=!1;a.buttonOverrides={iconPosition:"icon-only"};a.inReplyPanel=!1;a.countdownRatio=0;a.isTooltipVisible=!1;a.tooltipTimeout=1E4;a.systemIcons=x("kevlar_system_icons");a.tallerEmojiPicker=x("live_chat_taller_emoji_picker"); a.sendReplyMessageInFlight=!1;a.actionMap={"yt-open-popup-action":"onOpenPopupAction","yt-close-popup-action":"onClosePopupAction","yt-live-chat-disable-before-focus-action":"onDisableBeforeFocus","yt-live-chat-component-replaced":"onComponentReplaced"};a.onResize=function(){a.maybeToggleCharacterCount()}; return a}; k(lO,E);g=lO.prototype; g.configureRendererStamper=function(){return{"data.sendButton":{id:"send-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.pickers":{id:"pickers",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{disableIncrementalLoading:"[[disableEmojiPickerIncrementalLoading]]"}},liveChatProductPickerRenderer:"yt-live-chat-product-picker-renderer",liveChatProductPickerPanelViewModel:"yt-live-chat-product-picker-panel-view-model",liveChatPollEditorPanelRenderer:"yt-live-chat-poll-editor-panel-renderer", liveChatQnaStartPanelRenderer:"yt-live-chat-qna-start-panel-renderer"}},"data.emojiPickerButton":{id:"emoji-picker-button",mapping:{liveChatIconToggleButtonRenderer:{component:"yt-live-chat-icon-toggle-button-renderer",properties:{disabled:"[[hasInteractionMessage]]"}},buttonRenderer:{component:"yt-button-renderer",params:{buttonTooltipPosition:"top",sendServiceEndpointWhenDisabled:!0}}}},"data.pickerButtons":{id:"picker-buttons",mapping:{liveChatIconToggleButtonRenderer:{component:"yt-live-chat-icon-toggle-button-renderer", properties:{disabled:"[[hasInteractionMessage]]"}},buttonRenderer:{component:"yt-button-renderer",params:{buttonTooltipPosition:"top",sendServiceEndpointWhenDisabled:!0},properties:{overrides:"[[buttonOverrides]]"}},reactionControlPanelOverlayViewModel:{component:"yt-reaction-control-panel-overlay-view-model"}}},"data.interactionMessage":{id:"interaction-message",mapping:{messageRenderer:{component:"yt-live-chat-message-renderer",params:{subtextOnBottom:!0}}}},errorMessage:{id:"error-message",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer", liveChatTextActionsErrorMessageRenderer:"yt-live-chat-text-actions-error-message-renderer"}}}}; g.attached=function(){window.addEventListener("resize",this.onResize)}; g.detached=function(){window.removeEventListener("resize",this.onResize)}; g.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)}; g.sendMessage=function(){var a=this,b,c,d,e;return ra(function(f){if(a.sendDisabled)return f.return();a.isTooltipVisible&&Xu(a.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(a.data.sendButton&&a.data.sendButton.buttonRenderer){a.input.completeEmojis();b=a.data.sendButton.buttonRenderer.serviceEndpoint;if(!b)return f.return();d=((c=z(b,Bpb))==null?void 0:c.clientIdPrefix)||"";e={client_message_id:d+String(a.numSentMessages++),rich_message:yM(a.input.liveChatRichMessageInput)};a.pendingMessageId= e.client_message_id;a.inReplyPanel&&(a.sendReplyMessageInFlight=!0);$u(a.hostElement,[b,e]);a.input.setLiveChatRichMessageInput(null)}f.jumpToEnd()})}; g.handleSendButtonAction=function(a){a.detail.actionName==="yt-service-request"&&(a.stopPropagation(),this.sendMessage())}; g.onSendCompleted=function(a,b){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(a=this.get("timeoutDurationUsec",b.data))&&this.handleTimeout(Number(a)/1E3);this.errorMessage=this.get("errorMessage",b.data);this.pendingMessageId=""}; g.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&Xu(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})}; g.handlePickerButtonToggle=function(a){a=a.detail.targetId;this.ytPickerBehavior.togglePicker_(a);if(a==="emoji")this.input.focus();else if(a==="qna-start-panel"){var b,c;(b=wt(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(c=b.querySelector("#qna-creator-text-input-field"))==null||c.focus()}}; g.onComponentReplaced=function(a){var b,c;a.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((b=a.replacement.liveChatMessageInputRenderer)==null?0:(c=b.headerRenderer)==null?0:c.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()}; g.onEmojiSelect=function(a){this.input.focus();this.input.insertEmoji(a.detail)}; g.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1}; g.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?Xu(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(Xu(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))}; g.onOpenPopupAction=function(a,b){var c=this;b===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){Xu(c.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)}; g.onClosePopupAction=function(){this.isTooltipVisible=!1}; g.characterCountChanged=function(){this.maybeToggleCharacterCount()}; g.focusChanged=function(){this.maybeToggleCharacterCount()}; g.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var a=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",a>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36}; g.computeId=function(){return this.data&&this.data.targetId||""}; g.computeSendDisabled=function(a,b,c,d){a=!!(!a||b&&a>b||d);(b=wt(this.hostElement).querySelector("#send-button"))&&b.children.length&&(b.children[0].disabled=a);return a}; g.handleTimeout=function(a){this.timeoutDurationMs=this.timeoutMs=a;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))}; g.updateTimeout=function(a){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(a-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=a,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0}; g.onErrorMessageDismiss=function(){this.errorMessage=void 0}; g.onErrorMessageEdit=function(a){this.input.setLiveChatRichMessageInput(a.detail);this.input.focusAtEnd();this.errorMessage=void 0}; g.errorMessageChanged=function(){var a=this;bt(function(){Xu(a.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})}; g.computeAuthorNameColor=function(a){var b;if(x("live_chat_author_name_color_usernames")&&(a==null?0:(b=a.authorName)==null?0:b.simpleText))return gBb(iBb(a.authorName.simpleText));if(x("live_chat_seed_color_usernames")&&(a==null?0:a.authorSeedColorArgb))return gBb(RL(a.authorSeedColorArgb));if(x("live_chat_colored_usernames"))return"#cc0000";var c;return x("live_chat_simple_color_usernames")&&(a==null?0:(c=a.authorName)==null?0:c.simpleText)&&(a==null?0:a.authorUsernameColorLight)&&(a==null?0:a.authorUsernameColorDark)? document.documentElement.hasAttribute("dark")?RL(a.authorUsernameColorDark):RL(a.authorUsernameColorLight):""}; g.onIsTooltipVisibleChanged=function(){var a=wt(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){a.hidden=!1;a.setAttribute("role","alert")},0):(a.hidden=!0,a.removeAttribute("role"))}; g.onFocusedChanged=function(a){this.inputFocused=a.detail.value}; ba.Object.defineProperties(lO.prototype,{sendDisabled:{configurable:!0,enumerable:!0,get:function(){return this.computeSendDisabled(this.characterCount,this.maxCharacterLimit,this.countdownActive,this.sendReplyMessageInFlight)}}, countdownStrokeDashOffset:{configurable:!0,enumerable:!0,get:function(){return this.countdownRatio*10*2*Math.PI}}, countdownActive:{configurable:!0,enumerable:!0,get:function(){return!!this.countdownRatio}}, hasInteractionMessage:{configurable:!0,enumerable:!0,get:function(){return!!this.data.interactionMessage}}, hasEmojiPickerButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.emojiPickerButton}}, showAvatar:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.authorPhoto)&&this.characterCount>0}}, hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.data)==null?void 0:(b=a.pickers)==null?void 0:b.find(function(c){return c.liveChatProductPickerPanelViewModel}))!==void 0}}, tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var a=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return a?this.ytRendererBehavior.getSimpleString(a):""}}, authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}}); lO.prototype.onIsTooltipVisibleChanged=lO.prototype.onIsTooltipVisibleChanged;lO.prototype.errorMessageChanged=lO.prototype.errorMessageChanged;lO.prototype.onErrorMessageEdit=lO.prototype.onErrorMessageEdit;lO.prototype.onErrorMessageDismiss=lO.prototype.onErrorMessageDismiss;lO.prototype.focusChanged=lO.prototype.focusChanged;lO.prototype.characterCountChanged=lO.prototype.characterCountChanged;lO.prototype.onEmojiSelect=lO.prototype.onEmojiSelect;lO.prototype.handlePickerButtonToggle=lO.prototype.handlePickerButtonToggle; lO.prototype.onSendError=lO.prototype.onSendError;lO.prototype.onSendCompleted=lO.prototype.onSendCompleted;lO.prototype.sendMessage=lO.prototype.sendMessage;lO.prototype.dataChanged=lO.prototype.dataChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],lO.prototype,"ytRendererBehavior",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],lO.prototype,"ytActionHandlerBehavior",void 0);n([F(uDb.YtPickerBehavior),r("design:type",Object)],lO.prototype,"ytPickerBehavior",void 0); n([F($C.YtRendererstamperBehavior),r("design:type",Object)],lO.prototype,"ytRendererstamperBehavior",void 0);n([F(hL.YtLiveChatTooltipTargetingBehavior),r("design:type",Object)],lO.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);n([M(),r("design:type",Object)],lO.prototype,"hasFiredInitialFocusActions",void 0);n([M(),r("design:type",Object)],lO.prototype,"isBeforeFocusEnabled",void 0);n([M(),r("design:type",Object)],lO.prototype,"data",void 0); n([M({computed:"computeId(data.targetId)",reflectToAttribute:!0}),r("design:type",Object)],lO.prototype,"id",void 0);n([M(),r("design:type",Object)],lO.prototype,"characterCount",void 0);n([M(),r("design:type",Object)],lO.prototype,"maxCharacterLimit",void 0);n([M(),r("design:type",Object)],lO.prototype,"remainingCharacterCount",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],lO.prototype,"inputExpanded",void 0); n([M({reflectToAttribute:!0}),r("design:type",Boolean)],lO.prototype,"inputFocused",void 0);n([M({value:!1}),r("design:type",Boolean)],lO.prototype,"disableEmojiPickerIncrementalLoading",void 0);n([M(),r("design:type",vM)],lO.prototype,"participantsManager",void 0);n([M(),r("design:type",Object)],lO.prototype,"buttonOverrides",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],lO.prototype,"inReplyPanel",void 0); n([H("characterCount, maxCharacterLimit, countdownActive"),r("design:type",Boolean),r("design:paramtypes",[])],lO.prototype,"sendDisabled",null);n([M(),r("design:type",Object)],lO.prototype,"countdownRatio",void 0);n([H("countdownRatio"),r("design:type",Number),r("design:paramtypes",[])],lO.prototype,"countdownStrokeDashOffset",null);n([H("countdownRatio"),r("design:type",Boolean),r("design:paramtypes",[])],lO.prototype,"countdownActive",null); n([H("data.interactionMessage"),M({reflectToAttribute:!0}),r("design:type",Boolean),r("design:paramtypes",[])],lO.prototype,"hasInteractionMessage",null);n([H("data.emojiPickerButton"),M({reflectToAttribute:!0}),r("design:type",Boolean),r("design:paramtypes",[])],lO.prototype,"hasEmojiPickerButton",null);n([H("data, characterCount"),r("design:type",Boolean),r("design:paramtypes",[])],lO.prototype,"showAvatar",null); n([H("data.pickers"),M({reflectToAttribute:!0}),r("design:type",Boolean),r("design:paramtypes",[])],lO.prototype,"hasProductPickerPanelViewModel",null);n([M(),r("design:type",Object)],lO.prototype,"errorMessage",void 0);n([M(),r("design:type",Object)],lO.prototype,"genericErrorMessage",void 0);n([M(),r("design:type",Object)],lO.prototype,"isTooltipVisible",void 0);n([M(),r("design:type",Object)],lO.prototype,"tooltipTimeout",void 0); n([H("data.onInitialFocusCommand"),r("design:type",String),r("design:paramtypes",[])],lO.prototype,"tooltipMessage",null);n([M({reflectToAttribute:!0}),r("design:type",Object)],lO.prototype,"systemIcons",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],lO.prototype,"tallerEmojiPicker",void 0);n([H("data"),r("design:type",String),r("design:paramtypes",[])],lO.prototype,"authorNameColor",null);n([M(),r("design:type",Object)],lO.prototype,"sendReplyMessageInFlight",void 0); n([Tt("#input"),r("design:type",eDb)],lO.prototype,"input",void 0);n([Tt("#count"),r("design:type",HTMLElement)],lO.prototype,"count",void 0);n([Tt("#input-container"),r("design:type",HTMLElement)],lO.prototype,"inputContainer",void 0);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],lO.prototype,"dataChanged",null); n([Kt("yt-live-chat-send-message"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",Promise)],lO.prototype,"sendMessage",null);n([Kt("yt-service-request-completed"),r("design:type",Function),r("design:paramtypes",[Event,lB]),r("design:returntype")],lO.prototype,"onSendCompleted",null);n([Kt("yt-service-request-error"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],lO.prototype,"onSendError",null); n([Kt("yt-live-chat-icon-toggle-button-renderer-toggle"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],lO.prototype,"handlePickerButtonToggle",null);n([Kt("yt-emoji-select"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],lO.prototype,"onEmojiSelect",null);n([Lt("characterCount"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],lO.prototype,"characterCountChanged",null); n([Lt("inputFocused"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],lO.prototype,"focusChanged",null);n([Kt("yt-live-chat-error-message-dismiss"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],lO.prototype,"onErrorMessageDismiss",null);n([Kt("yt-live-chat-error-message-edit"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],lO.prototype,"onErrorMessageEdit",null); n([Lt("errorMessage"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],lO.prototype,"errorMessageChanged",null);n([Lt("isTooltipVisible"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],lO.prototype,"onIsTooltipVisibleChanged",null);n([fu({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],lO); Tu(lO,"yt-live-chat-message-input-renderer",function(){if(XGb===void 0){var a=document.createElement("template");Q(a,"
[[remainingCharacterCount]]
[[tooltipMessage]]
"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;WGb===void 0&&(WGb=document.createElement("template"));var d=WGb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);XGb=a}a=XGb;return a},{mode:0});var vHb;var wHb;var mO=function(){return E.apply(this,arguments)||this}; k(mO,E);mO.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}}; n([F($C.YtRendererstamperBehavior),r("design:type",Object)],mO.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],mO.prototype,"data",void 0);n([gu({disableElementRegistration:!0,is:"yt-live-chat-ninja-message-renderer"})],mO); Tu(mO,"yt-live-chat-ninja-message-renderer",function(){if(wHb===void 0){var a=document.createElement("template");Q(a,"\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;vHb===void 0&&(vHb=document.createElement("template"));var d=vHb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);wHb=a}a=wHb;return a},{mode:0});var xHb;var yHb;var zHb;var AHb;var nO=function(){return E.apply(this,arguments)||this}; k(nO,E);n([M(),r("design:type",Object)],nO.prototype,"data",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],nO.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],nO.prototype,"ytRendererstamperBehavior",void 0);n([gu({disableElementRegistration:!0,is:"yt-live-chat-participant-renderer"})],nO); Tu(nO,"yt-live-chat-participant-renderer",function(){if(AHb===void 0){var a=document.createElement("template");Q(a,"
\n \n \n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;zHb===void 0&&(zHb=document.createElement("template"));var d=zHb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);AHb=a}a=AHb;return a},{mode:0});var oO=function(){var a=E.apply(this,arguments)||this;a.activeParticipantsManager=null;return a}; k(oO,E);g=oO.prototype;g.configureRendererStamper=function(){return{"data.backButton":{id:"back-button",mapping:{buttonRenderer:"yt-button-renderer"}},"participantsManager.participants":{id:"participants",mapping:{liveChatParticipantRenderer:"yt-live-chat-participant-renderer",liveChatTextMessageRenderer:"yt-live-chat-participant-renderer",liveChatLegacyPaidMessageRenderer:"yt-live-chat-participant-renderer",liveChatPaidMessageRenderer:"yt-live-chat-participant-renderer"},reuseComponents:!0}}}; g.created=function(){this.ytRendererBehavior.monitorScroll=!0}; g.updateParticipantManagerListeners=function(){var a=this.participantsManager;this.isAttached?(this.activeParticipantsManager&&(this.activeParticipantsManager.removeEventListener("participants-changed",It(this,this.onParticipantsChanged)),this.activeParticipantsManager=null),a&&(a.addEventListener("participants-changed",It(this,this.onParticipantsChanged)),this.activeParticipantsManager=a,this.onParticipantsChanged())):this.activeParticipantsManager&&(this.activeParticipantsManager.removeEventListener("participants-changed", It(this,this.onParticipantsChanged)),this.activeParticipantsManager=null)}; g.onParticipantsChanged=function(){this.notifyPath("participantsManager.participants")}; g.onBackButtonClick=function(){Gt(this.hostElement,"yt-participants-back-button")}; g.focus=function(){var a=this;this.ytRendererBehavior.invalidate(!0);bt(function(){var b=nqa(a.hostElement);b&&b.focus()})}; oO.prototype.updateParticipantManagerListeners=oO.prototype.updateParticipantManagerListeners;n([F($C.YtRendererstamperBehavior),r("design:type",Object)],oO.prototype,"ytRendererstamperBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],oO.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],oO.prototype,"data",void 0);n([M(),r("design:type",vM)],oO.prototype,"participantsManager",void 0); n([Lt("isAttached","participantsManager"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],oO.prototype,"updateParticipantManagerListeners",null);n([fu({disableElementRegistration:!0,is:"yt-live-chat-participant-list-renderer",noInjection:!0})],oO); Tu(oO,"yt-live-chat-participant-list-renderer",function(){if(yHb===void 0){var a=document.createElement("template");Q(a,"
\n
\n [[getSimpleString(data.title)]]\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;xHb===void 0&&(xHb=document.createElement("template"));var d=xHb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);yHb=a}a=yHb;return a},{mode:0});var BHb;var CHb;var pO=function(){var a=E.apply(this,arguments)||this;a.data=null;return a}; k(pO,E); pO.prototype.configureRendererStamper=function(){return{"data.renderer":{id:"message",mapping:{liveChatLegacyPaidMessageRenderer:{component:"yt-live-chat-legacy-paid-message-renderer",properties:{emojiManager:"[[emojiManager]]",participantsManager:"[[participantsManager]]"}},liveChatMembershipItemRenderer:{component:"yt-live-chat-membership-item-renderer",properties:{emojiManager:"[[emojiManager]]",participantsManager:"[[participantsManager]]"}},liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",properties:{emojiManager:"[[emojiManager]]", participantsManager:"[[participantsManager]]"}},liveChatPaidStickerRenderer:{component:"yt-live-chat-paid-sticker-renderer",params:{authorPhotoSize:40}},liveChatSponsorshipsGiftPurchaseAnnouncementRenderer:{component:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"}},reuseComponents:!0}}}; pO.prototype.dataChanged=function(){this.hostElement.hidden=!this.data;if(this.data){var a=this.data.renderer;if(a){var b=Object.keys(a)[0];(a=a[b])&&a.authorPhoto&&FB(a.authorPhoto,aOa,{isPreloaded:!0})}}}; pO.prototype.onFadeClick=function(){Gt(this.hostElement,"yt-live-chat-clear-pinned-message")}; pO.prototype.onServiceRequestCompleted=function(a,b){var c=this;b.actions&&b.actions.forEach(function(d){z(d,IJ)&&Gt(c.hostElement,"yt-live-chat-clear-pinned-message")})}; pO.prototype.onServiceRequestCompleted=pO.prototype.onServiceRequestCompleted;pO.prototype.dataChanged=pO.prototype.dataChanged;n([F($C.YtRendererstamperBehavior),r("design:type",Object)],pO.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],pO.prototype,"data",void 0);n([M(),r("design:type",nM)],pO.prototype,"emojiManager",void 0);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],pO.prototype,"dataChanged",null); n([Kt("yt-service-request-completed"),r("design:type",Function),r("design:paramtypes",[CustomEvent,lB]),r("design:returntype")],pO.prototype,"onServiceRequestCompleted",null);n([fu({disableElementRegistration:!0,is:"yt-live-chat-pinned-message-renderer",noInjection:!0})],pO); var DHb=Tu(pO,"yt-live-chat-pinned-message-renderer",function(){if(CHb===void 0){var a=document.createElement("template");Q(a,"
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;BHb===void 0&&(BHb=document.createElement("template"));var d=BHb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);CHb=a}a=CHb;return a},{mode:0});var EHb;var FHb;var qO=function(){var a=E.apply(this,arguments)||this;a.JSC$12066_hasFired=!1;a.data=void 0;a.timeRemainingMsecs=0;return a}; k(qO,E);qO.prototype.dataChanged=function(){this.JSC$12066_hasFired=!1}; qO.prototype.timeRemainingChanged=function(){this.data&&!this.JSC$12066_hasFired&&this.data.timeUntilLastMessageMsec!==void 0&&this.timeRemainingMsecs<=this.data.timeUntilLastMessageMsec&&(this.JSC$12066_hasFired=!0,Gt(this.hostElement,"yt-load-replay-continuation",this.getContinuationUrl.bind(this)))}; qO.prototype.getContinuationUrl=function(a){var b,c={ctoken:(b=this.data)==null?void 0:b.continuation},d;if((d=this.data)==null?0:d.clickTrackingParams)c.itct=this.data.clickTrackingParams;return $c(a,c)}; qO.prototype.timeRemainingChanged=qO.prototype.timeRemainingChanged;qO.prototype.dataChanged=qO.prototype.dataChanged;n([M(),r("design:type",Object)],qO.prototype,"data",void 0);n([M(),r("design:type",Object)],qO.prototype,"timeRemainingMsecs",void 0);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],qO.prototype,"dataChanged",null); n([Lt("timeRemainingMsecs"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],qO.prototype,"timeRemainingChanged",null);n([fu({disableElementRegistration:!0,is:"yt-live-chat-replay-continuation",noInjection:!0})],qO);Tu(qO,"yt-live-chat-replay-continuation",void 0,{mode:0});var rO=function(){var a=E.apply(this,arguments)||this;a.previousProgressSec=0;return a}; k(rO,E);g=rO.prototype;g.playerProgressSecChanged_=function(){this.previousProgressSec=this.playerProgressSec}; g.maybeFireSeekContinuation=function(a,b){if(!this.previousProgressSec)return this.previousProgressSec=a,!1;var c=a-this.previousProgressSec;(b=c<=-1||c>1&&a*1E3>b)&&this.fireSeekContinuation_(a);this.previousProgressSec=a;return b}; g.fireSeekContinuationAtCurrentProgress=function(){this.fireSeekContinuation_(this.previousProgressSec)}; g.fireSeekContinuation_=function(a){this.previousProgressSec=a;Gt(this.hostElement,"yt-load-seek-continuation",this.getContinuationUrl_.bind(this,a*1E3))}; g.getContinuationUrl_=function(a,b){a={ctoken:this.data.continuation,currentPlayerTimeMsec:Math.floor(a)};this.data.clickTrackingParams&&(a.itct=this.data.clickTrackingParams);return $c(b,a)}; rO.prototype.playerProgressSecChanged_=rO.prototype.playerProgressSecChanged_;n([M(),r("design:type",Object)],rO.prototype,"data",void 0);n([M(),r("design:type",Number)],rO.prototype,"playerProgressSec",void 0);n([Lt("playerProgressSec"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],rO.prototype,"playerProgressSecChanged_",null);n([fu({is:"yt-player-seek-continuation",disableElementRegistration:!0})],rO);Tu(rO,"yt-player-seek-continuation",void 0,{mode:2});var GHb={}; GHb.YtLiveChatReplayBehavior=[ft.YtActionHandlerBehavior,{properties:{playerProgressSec:{type:Number,readOnly:!0},data:{type:Object,observer:"handleParentDataChange_"},isSeeking:{type:Boolean,value:!1,readOnly:!0},playerState:{type:Number,readOnly:!0},isAdPlaying:{type:Boolean,value:!1,readOnly:!0}},observers:["observeReplayState_(isAdPlaying, isSeeking, playerState)"],behaviorActionMap_:{"yt-live-player-video-progress":"handlePlayerVideoProgress_","yt-live-player-ad-start":"handlePlayerAdStart_","yt-live-player-ad-end":"handlePlayerAdEnd_", "yt-live-player-state-change":"handlePlayerStateChange_","yt-live-chat-seek-success":"handleChatSeekSuccess_","yt-live-chat-seek-fail":"handleChatSeekFail_","ytg-player-video-progress":"handleGamingPlayerVideoProgress_"},attached:function(){this.replayBuffer_=new DEb;this.currentPlayerState={};this.registerActionMap(this.behaviorActionMap_)}, detached:function(){this.unregisterActionMap(this.behaviorActionMap_);this.replayBuffer_=null}, addReplayChatItemAction:function(a){this.replayBuffer_&&this.replayBuffer_.addReplayChatItemAction(a)}, handlePlayerVideoProgress_:function(a){this.playerProgressChanged_(a)}, handleGamingPlayerVideoProgress_:function(a,b,c){this.playerProgressChanged_(a,b,c)}, handlePlayerAdStart_:function(){this._setIsAdPlaying(!0)}, handlePlayerAdEnd_:function(){this._setIsAdPlaying(!1)}, handlePlayerStateChange_:function(a){this._setPlayerState(a)}, observeReplayState_:function(a,b,c){this.data&&this.data.isReplay&&(a||b||c===2||c===3?Yu(this.hostElement,"yt-live-chat-pause-replay"):c===1&&Yu(this.hostElement,"yt-live-chat-resume-replay"))}, preprocessSeekResponseActions:function(a){var b=this;this.replayBuffer_.clear();a.forEach(function(c){c.replayChatItemAction&&(b.addReplayChatItemAction(c.replayChatItemAction),c.replayChatItemAction.actions&&b.preprocessActions(c.replayChatItemAction.actions))},this)}, playerProgressChanged_:function(a,b,c){if((this.data.isReplay||c)&&!this.isAdPlaying){Yu(this.hostElement,"yt-live-chat-replay-progress",[a]);this.currentPlayerState={};b&&(this.currentPlayerState.videoId=b);c&&(this.currentPlayerState.watchPartyId=c);b=a*1E3;this.currentPlayerState.playerOffsetMs=Math.floor(b).toString();c=wt(this.hostElement).querySelector("yt-live-chat-replay-continuation");var d=wt(this.hostElement).querySelector("yt-player-seek-continuation");this._setPlayerProgressSec(a);d&& d.polymerController.maybeFireSeekContinuation(a,this.replayBuffer_.lastVideoOffsetTimeMsec)?(this._setIsSeeking(!0),this.replayBuffer_.clear(),wt(this.hostElement).setAttribute("loading","")):this.isSeeking_||(c&&this.replayBuffer_.lastVideoOffsetTimeMsec&&(c.polymerController.timeRemainingMsecs=this.replayBuffer_.lastVideoOffsetTimeMsec-b),this.immediatelyApplyLiveChatActions(EEb(this.replayBuffer_,b)))}}, handleChatSeekSuccess_:function(){this._setIsSeeking(!1);this.immediatelyApplyLiveChatActions(EEb(this.replayBuffer_,this.playerProgressSec*1E3));wt(this.hostElement).removeAttribute("loading")}, handleChatSeekFail_:function(){this._setIsSeeking(!1);wt(this.hostElement).removeAttribute("loading")}, handleParentDataChange_:function(a,b){b&&b.isReplay&&this.replayBuffer_.clear()}}];var HHb;var IHb;var sO=function(){var a=E.apply(this,arguments)||this;a.systemIcons=x("kevlar_system_icons");a.firedOnClickCommand=!1;a.inReplyPanel=!1;return a}; k(sO,E); sO.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"picker-buttons",mapping:{buttonRenderer:"yt-button-renderer",liveChatIconToggleButtonRenderer:"yt-live-chat-icon-toggle-button-renderer",reactionControlPanelOverlayViewModel:{component:"yt-reaction-control-panel-overlay-view-model"}}},"data.inlineAfterMessageButton":{id:"message-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.panels":{id:"pickers",mapping:{liveChatProductPickerRenderer:"yt-live-chat-product-picker-renderer",liveChatProductPickerPanelViewModel:"yt-live-chat-product-picker-panel-view-model"}}}}; sO.prototype.onButtonToggle=function(a){a.target.disabled||this.ytPickerBehavior.togglePicker_(a.detail.targetId)}; sO.prototype.onClick=function(){var a=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(Xu(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return a.firedOnClickCommand=!1},5E3))}; ba.Object.defineProperties(sO.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.data)==null?void 0:(b=a.panels)==null?void 0:b.find(function(c){return c.liveChatProductPickerPanelViewModel}))!==void 0}}}); sO.prototype.onButtonToggle=sO.prototype.onButtonToggle;n([F(uDb.YtPickerBehavior),r("design:type",Object)],sO.prototype,"ytPickerBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],sO.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],sO.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],sO.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],sO.prototype,"systemIcons",void 0); n([M({reflectToAttribute:!1}),r("design:type",Object)],sO.prototype,"firedOnClickCommand",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],sO.prototype,"inReplyPanel",void 0);n([H("data.pickers"),M({reflectToAttribute:!0}),r("design:type",Boolean),r("design:paramtypes",[])],sO.prototype,"hasProductPickerPanelViewModel",null); n([Kt("yt-live-chat-icon-toggle-button-renderer-toggle"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],sO.prototype,"onButtonToggle",null);n([fu({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],sO); Tu(sO,"yt-live-chat-restricted-participation-renderer",function(){if(IHb===void 0){var a=document.createElement("template");Q(a,"
\n \n
\n \n \n
\n
[[getSimpleString(data.message)]]
\n
\n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;HHb===void 0&&(HHb=document.createElement("template"));var d=HHb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);IHb=a}a=IHb;return a},{mode:0});var JHb;var KHb;var LHb;var MHb;var tO=function(){return E.apply(this,arguments)||this}; k(tO,E);tO.prototype.computeAriaLabel=function(a){var b,c,d,e;return(e=a==null?void 0:(b=a.detailText)==null?void 0:(c=b.accessibility)==null?void 0:(d=c.accessibilityData)==null?void 0:d.label)!=null?e:this.ytRendererBehavior.getSimpleString(a.detailText)}; tO.prototype.dataChanged=function(){var a=this;this.data&&(wt(this.hostElement).querySelector("#content").style.color=this.ytLiveChatTickerItemBehavior.colorFromDecimal(this.data.detailTextColor),this.hostElement.ariaLabel=this.computeAriaLabel(this.data),this.ytLiveChatTickerItemBehavior.startCountdown(this.data.durationSec,this.data.fullDurationSec),bt(function(){a.ytLiveChatTickerItemBehavior.setContainerWidth()}))}; tO.prototype.dataChanged=tO.prototype.dataChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],tO.prototype,"ytRendererBehavior",void 0);n([F(AEb),r("design:type",Object)],tO.prototype,"ytLiveChatTickerItemBehavior",void 0);n([F(qDb.YtLiveChatMembershipItemBehavior),r("design:type",Object)],tO.prototype,"ytLiveChatMembershipItemBehavior",void 0);n([M(),r("design:type",Object)],tO.prototype,"data",void 0); n([M({value:!1,computed:"truthy(isDeleted)",reflectToAttribute:!0}),r("design:type",Boolean)],tO.prototype,"hidden",void 0);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],tO.prototype,"dataChanged",null);n([fu({disableElementRegistration:!0,is:"yt-live-chat-ticker-sponsor-item-renderer",noInjection:!0})],tO); Tu(tO,"yt-live-chat-ticker-sponsor-item-renderer",function(){if(MHb===void 0){var a=document.createElement("template");Q(a,"
\n
\n \n \n [[getSimpleString(data.detailText)]]\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;LHb===void 0&&(LHb=document.createElement("template"));var d=LHb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);MHb=a}a=MHb;return a},{mode:0});function NHb(a,b,c){var d=a.map(function(e){return e.toString()}); return FC(function(e){if(d.includes(e.key)){c&&e.preventDefault();var f;(f=e.currentTarget)==null||f.click();b==null||b(e)}})} function OHb(a){return NHb(["Enter"," "],a,!0)} ;bB(O(function(a){var b=a.data;return D("ytfz-live-chat-ticker-fanzone-view-model",{el:dB(MD(function(){var c;return(c=b())==null?void 0:c.rendererContext})), class:"ytfzLiveChatTickerFanzoneViewModelHost","on:keydown":NHb(["Enter"]),dir:"ltr",tabindex:0,role:"button","aria-label":function(){var c;return(c=z(b().rendererContext,dy))==null?void 0:c.label}},D(P,{cond:function(){return b().tickerIcon}, then:function(c){return D(eC,{className:"ytfzLiveChatTickerFanzoneViewModelIcon",data:c,alt:""})}}),D(P,{cond:function(){return b().endTimestampMs}, then:function(c){return D(qBb,{className:"ytfzLiveChatTickerFanzoneViewModelText",targetTimestamp:function(){return{seconds:(Number(c())/1E3).toString()}}})}}))},"Pa"),"ytfz-live-chat-ticker-fanzone-view-model",{props:{data:$A}});var uO=function(){var a=E.apply(this,arguments)||this;a.isScrolledLeft=!0;a.tickerItems=[];a.isReplayPaused=!1;a.tickerBarQuery="#ticker-bar";a.tickerItemsQuery="#ticker-items";a.actionMap={"yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction","yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-mark-chat-items-by-author-as-deleted-action":"handleLiveChatAction","yt-live-chat-seek-success":"handleChatSeekSuccess","yt-live-chat-pause-replay":"handlePauseReplay", "yt-live-chat-resume-replay":"handleResumeReplay"};return a}; k(uO,E);g=uO.prototype; g.configureRendererStamper=function(){return{tickerItems:{id:"ticker-items",mapping:{liveChatTickerPaidMessageItemRenderer:{component:"yt-live-chat-ticker-paid-message-item-renderer",properties:{shouldAnimateIn:"[[shouldAnimateIn]]",isAnimationPaused:"[[isReplayPaused]]"}},liveChatTickerPaidStickerItemRenderer:{component:"yt-live-chat-ticker-paid-sticker-item-renderer",properties:{shouldAnimateIn:"[[shouldAnimateIn]]",isAnimationPaused:"[[isReplayPaused]]"}},liveChatTickerSponsorItemRenderer:{component:"yt-live-chat-ticker-sponsor-item-renderer",properties:{shouldAnimateIn:"[[shouldAnimateIn]]", isAnimationPaused:"[[isReplayPaused]]"}}},reuseComponents:!0},creatorGoalTickerChip:{id:"goal-ticker",mapping:{liveChatTickerCreatorGoalViewModel:{component:"yt-live-chat-ticker-creator-goal-view-model"}}},fanzoneTickerChip:{id:"fanzone-ticker",mapping:{liveChatTickerFanzoneViewModel:{component:"ytfz-live-chat-ticker-fanzone-view-model"}}}}}; g.created=function(){this.asyncHandle=null;this.shouldAnimateIn=!1;this.scrollClampRaf=this.lastFrameTimestamp=null;this.scrollStartTime=this.scrollRatePixelsPerSecond=0;this.scrollStopHandle=null}; g.attached=function(){this.keepScrollClamped()}; g.detached=function(){this.scrollClampRaf&&window.cancelAnimationFrame(this.scrollClampRaf);this.stopScrolling();this.shouldAnimateIn=!1}; g.dataChanged=function(){this.clearList()}; g.markDirty=function(){}; g.markAsDeleted=function(){}; g.clearList=function(){window.cancelAnimationFrame(this.scrollClampRaf||0);ct(this.scrollStopHandle||0);window.cancelAnimationFrame(this.asyncHandle||0);this.tickerItems=[];this.asyncHandle=null;this.shouldAnimateIn=!1;this.scrollClampRaf=this.lastFrameTimestamp=null;this.scrollStartTime=this.scrollRatePixelsPerSecond=0;this.scrollStopHandle=null}; g.handleLiveChatActions=function(a){a.length&&(a.forEach(this.handleLiveChatAction,this),this.updateHighlightedItem(),this.shouldAnimateIn=!0)}; g.handleLiveChatAction=function(a){var b=z(a,HJ),c=z(a,IJ),d=z(a,GJ),e=z(a,Bob),f=z(a,Mob),h=z(a,Dqb),m=z(a,Cqb),p=z(a,jsb);a=z(a,ksb);b?this.unshift("tickerItems",b.item):c?this.handleMarkChatItemAsDeletedAction(c):d?this.removeTickerItemById(d.targetItemId):e?this.handleMarkChatItemsByAuthorAsDeletedAction(e):f?this.handleRemoveChatItemByAuthorAction(f):h?this.showCreatorGoalTickerChip(h):m?this.removeCreatorGoalTickerChip(m):p?this.removeFanzoneTickerChip(p):a&&this.showFanzoneTickerChip(a)}; g.maybeClampScroll=function(){if(this.highlightId){var a=wt(this.hostElement).querySelector("#"+this.highlightId);if(a){var b=a.offsetLeft,c=b+a.offsetWidth;a=wt(this.hostElement).querySelector(this.tickerBarQuery);var d=a.scrollLeft,e=d+a.offsetWidth-24;b=d+24-b;b>0&&(a.scrollLeft-=b);b=c-e;b>0&&(a.scrollLeft+=b)}}}; g.keepScrollClamped=function(){this.scrollClampRaf=window.requestAnimationFrame(this.keepScrollClamped.bind(this));this.maybeClampScroll()}; g.onMouseEnter=function(){this.stopScrolling()}; g.onMouseLeave=function(){var a=this;this.scrollRatePixelsPerSecond=0;this.highlightId||bt(function(){a.startScrollBack()},400)}; g.onRemoveTickerItem=function(a,b){this.removeTickerItemById(b)}; g.startScrollBack=function(){this.startScrolling(-1200)}; g.startScrollingLeft=function(){this.startScrolling(-480)}; g.startScrollingRight=function(){this.startScrolling(480)}; g.startScrolling=function(a){this.scrollStopHandle&&ct(this.scrollStopHandle);this.asyncHandle&&window.cancelAnimationFrame(this.asyncHandle);this.scrollStartTime=performance.now();this.lastFrameTimestamp=performance.now();this.scrollRatePixelsPerSecond=a;this.asyncHandle=window.requestAnimationFrame(this.scrollIncrementally.bind(this))}; g.scrollIncrementally=function(a){var b=a-(this.lastFrameTimestamp||0);wt(this.hostElement).querySelector(this.tickerBarQuery).scrollLeft+=b/1E3*(this.scrollRatePixelsPerSecond||0);this.maybeClampScroll();this.updateArrows();this.lastFrameTimestamp=a;wt(this.hostElement).querySelector(this.tickerBarQuery).scrollLeft>0||this.scrollRatePixelsPerSecond&&this.scrollRatePixelsPerSecond>0?this.asyncHandle=window.requestAnimationFrame(this.scrollIncrementally.bind(this)):this.stopScrolling()}; g.maybeStopScrolling=function(){var a=performance.now()-(this.scrollStartTime||0);a>400?this.stopScrolling():this.scrollStopHandle=bt(this.stopScrolling,400-a)}; g.stopScrolling=function(){this.updateArrows();this.lastFrameTimestamp=null;this.asyncHandle&&window.cancelAnimationFrame(this.asyncHandle)}; g.removeTickerItemById=function(a){if(a){var b=wt(this.hostElement).querySelector("[id=\""+a+"\"]");if(b){for(var c=wt(this.hostElement).querySelector(this.tickerItemsQuery).children,d=0;d=0;d--){var e=c[d],f=Object.keys(e)[0];(e=e[f])&&e.authorExternalChannelId===a.externalChannelId&&(b.children[d].markAsDeleted(a.deletedStateMessage,a.showOriginalContentMessage),this.removeTickerItemById(e.id))}}; g.handleRemoveChatItemByAuthorAction=function(a){this.tickerItems=this.tickerItems.filter(function(b){var c=Object.keys(b)[0];b=b[c];return!b||b.authorExternalChannelId!==a.externalChannelId})}; g.onNavigate=function(a){var b;this.highlightId=(b=mt(a))==null?void 0:b.id}; g.highlightIdChanged=function(){var a=this;this.updateHighlightedItem();this.highlightId||bt(function(){a.startScrollBack()},400)}; g.updateHighlightedItem=function(){uc(wt(this.hostElement).querySelector(this.tickerItemsQuery).children,function(a){a.dimmed=!!this.highlightId&&a.id!==this.highlightId;a.selected=!!this.highlightId&&a.id===this.highlightId},this)}; g.tickerItemsChanged=function(){var a=this.tickerItems.length;this.updateArrows();this.hostElement.hidden=!a&&!this.creatorGoalTickerChip&&!this.fanzoneTickerChip}; g.updateArrows=function(){this.isScrolledLeft=wt(this.hostElement).querySelector(this.tickerBarQuery).scrollLeft===0;this.isScrolledRight=wt(this.hostElement).querySelector(this.tickerBarQuery).scrollLeft>=wt(this.hostElement).querySelector(this.tickerBarQuery).scrollWidth-wt(this.hostElement).querySelector("#container").clientWidth}; g.handleChatSeekSuccess=function(){this.clearList()}; g.handlePauseReplay=function(){this.isReplayPaused=!0}; g.handleResumeReplay=function(){this.isReplayPaused=!1}; uO.prototype.tickerItemsChanged=uO.prototype.tickerItemsChanged;uO.prototype.highlightIdChanged=uO.prototype.highlightIdChanged;uO.prototype.onNavigate=uO.prototype.onNavigate;uO.prototype.onRemoveTickerItem=uO.prototype.onRemoveTickerItem;uO.prototype.onMouseLeave=uO.prototype.onMouseLeave;uO.prototype.onMouseEnter=uO.prototype.onMouseEnter;uO.prototype.dataChanged=uO.prototype.dataChanged;n([F($C.YtRendererstamperBehavior),r("design:type",Object)],uO.prototype,"ytRendererstamperBehavior",void 0); n([F(Yz.YtRendererBehavior),r("design:type",Object)],uO.prototype,"ytRendererBehavior",void 0);n([F(iE),r("design:type",Object)],uO.prototype,"ytLiveChatReduxBehavior",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],uO.prototype,"ytActionHandlerBehavior",void 0);n([M(),r("design:type",Object)],uO.prototype,"data",void 0);n([M(),r("design:type",Object)],uO.prototype,"highlightId",void 0);n([M(),r("design:type",Object)],uO.prototype,"isScrolledLeft",void 0); n([M(),r("design:type",Boolean)],uO.prototype,"isScrolledRight",void 0);n([M(),r("design:type",Array)],uO.prototype,"tickerItems",void 0);n([M({readOnly:!0}),r("design:type",Object)],uO.prototype,"isReplayPaused",void 0);n([M(),r("design:type",Boolean)],uO.prototype,"shouldAnimateIn",void 0);n([M(),r("design:type",Object)],uO.prototype,"creatorGoalTickerChip",void 0);n([M(),r("design:type",Object)],uO.prototype,"fanzoneTickerChip",void 0); n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],uO.prototype,"dataChanged",null);n([Kt("mouseenter"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],uO.prototype,"onMouseEnter",null);n([Kt("mouseleave"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],uO.prototype,"onMouseLeave",null); n([Kt("yt-live-chat-ticker-remove-ticker-item"),r("design:type",Function),r("design:paramtypes",[CustomEvent,String]),r("design:returntype")],uO.prototype,"onRemoveTickerItem",null);n([Kt("yt-navigate"),r("design:type",Function),r("design:paramtypes",[Event]),r("design:returntype")],uO.prototype,"onNavigate",null);n([Lt("highlightId"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],uO.prototype,"highlightIdChanged",null); n([Lt("tickerItems.length","creatorGoalTickerChip","fanzoneTickerChip"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],uO.prototype,"tickerItemsChanged",null);n([gu({disableElementRegistration:!0,is:"yt-live-chat-ticker-renderer"})],uO); Tu(uO,"yt-live-chat-ticker-renderer",function(){if(KHb===void 0){var a=document.createElement("template");Q(a,"
\n \n
\n
\n
\n
\n
\n \n
\n
\n \n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;JHb===void 0&&(JHb=document.createElement("template"));var d=JHb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);KHb=a}a=KHb;return a},{mode:0});var PHb;var QHb;var vO=function(){return E.apply(this,arguments)||this}; k(vO,E);vO.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}}; vO.prototype.dataChanged=function(){this.hostElement.hidden=!this.data.isVisible;this.data.isVisible||this.ytRendererBehavior.impressionLog()}; vO.prototype.onButtonClick=function(){Gt(this.hostElement,"yt-close-upsell-dialog")}; ba.Object.defineProperties(vO.prototype,{hasHeader:{configurable:!0,enumerable:!0,get:function(){return!!this.data.headerBackgroundImage}}}); vO.prototype.dataChanged=vO.prototype.dataChanged;n([F($C.YtRendererstamperBehavior),r("design:type",Object)],vO.prototype,"ytRendererstamperBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],vO.prototype,"ytRendererBehavior",void 0);n([F(gDb.YtLiveChatDialogBehavior),r("design:type",Object)],vO.prototype,"ytLiveChatDialogBehavior",void 0);n([M(),r("design:type",Object)],vO.prototype,"data",void 0); n([M(),H("data.headerBackgroundImage"),r("design:type",Boolean),r("design:paramtypes",[])],vO.prototype,"hasHeader",null);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],vO.prototype,"dataChanged",null);n([fu({disableElementRegistration:!0,is:"yt-live-chat-upsell-dialog-renderer",noInjection:!0})],vO); Tu(vO,"yt-live-chat-upsell-dialog-renderer",function(){if(QHb===void 0){var a=document.createElement("template");Q(a,"
\n \n
\n \n \n \n \n
\n
\n
\n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;PHb===void 0&&(PHb=document.createElement("template"));var d=PHb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);QHb=a}a=QHb;return a},{mode:0});var RHb;var SHb;var wO=function(){var a=E.apply(this,arguments)||this;a.alignAuto=!1;a.collapsed=!0;a.isToggled=!1;a.alwaysCollapsed=!1;a.canToggle=!0;a.collapsedHeight=80;a.disableToggle=!1;a.alwaysToggleable=!1;a.reversed=!1;a.shouldUseNumberOfLines=!1;a.recomputeOnResize=!1;a.canToggleJobId=0;a.lastReversed=!1;return a}; k(wO,E);g=wO.prototype;g.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)}; g.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled}; g.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){var a=wt(this.hostElement),b=a.childNodes,c=document.createDocumentFragment();for(a=a.childNodes.length-1;a>=0;a--)wt(c).appendChild(b[a]);At(this.hostElement).appendChild(c)}}; g.ready=function(){var a=this;bt(function(){a.initChildrenObserver()},1)}; g.attached=function(){var a;(a=this.resizeObserver)==null||a.observe(this.content)}; g.detached=function(){this.detachObserver()}; g.toggle=function(a,b){this.canToggle&&(this.isToggled=b,Gt(this.hostElement,"yt-refit"),a&&a.stopPropagation())}; g.reset=function(){this.childrenChanged()}; g.computeIsMoreVisible=function(a,b){return a&&!b}; g.computeShouldUseNumberOfLines=function(a){try{return!!a&&window.CSS.supports("-webkit-line-clamp","1")}catch(b){}return!1}; g.computeIsLessVisible=function(a,b){return a&&b}; g.observeCollapsedHeightAndMaxLines=function(){var a=this.collapsedHeight,b=this.maxNumberOfLines;this.shouldUseNumberOfLines?Ft(this.hostElement,{"--ytd-expander-max-lines":""+b,"--ytd-expander-collapsed-height":""}):Ft(this.hostElement,{"--ytd-expander-collapsed-height":a+"px","--ytd-expander-max-lines":""})}; g.handleMoreTap=function(a){this.disableToggle||(Gt(this.hostElement,"yt-expander-more-tapped"),this.toggle(a,!0))}; g.handleLessTap=function(a){Gt(this.hostElement,"yt-expander-less-tapped");this.toggle(a,!1)}; g.initChildrenObserver=function(){var a=this;this.observer=new MutationObserver(function(){a.childrenChanged()}); this.recomputeOnResize&&window.ResizeObserver&&(this.JSC$12101_resizeThrottle=new Fw(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var b;(b=a.JSC$12101_resizeThrottle)==null||b.fire()}),this.resizeObserver.observe(this.content)); this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()}; g.onIronResize=function(){this.recomputeOnResize&&!window.ResizeObserver&&this.childrenChanged()}; g.childrenChanged=function(){var a=this,b=So(function(){return a.alwaysToggleable}),c=So(function(){return a.canToggleJobId}); b?this.canToggle=b:c||(this.canToggleJobId=window.requestAnimationFrame(function(){Nl(function(){a.canToggleJobId=0;a.calculateCanCollapse()})}))}; g.calculateCanCollapse=function(){this.canToggle=this.shouldUseNumberOfLines?this.alwaysToggleable||this.isToggled||this.content&&this.content.offsetHeightthis.collapsedHeight}; g.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()}; g.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new uM("collapsed-changed",this.collapsed))}; g.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new uM("is-toggled-changed",this.isToggled))}; g.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new uM("can-toggle-changed",this.canToggle))}; ba.Object.defineProperties(wO.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}}); wO.prototype.canToggleChangedForBinding=wO.prototype.canToggleChangedForBinding;wO.prototype.isToggledChangedForBinding=wO.prototype.isToggledChangedForBinding;wO.prototype.collapsedChangedForBinding=wO.prototype.collapsedChangedForBinding;wO.prototype.onIronResize=wO.prototype.onIronResize;wO.prototype.observeCollapsedHeightAndMaxLines=wO.prototype.observeCollapsedHeightAndMaxLines;wO.prototype.reversedChanged=wO.prototype.reversedChanged;wO.prototype.toggledChanged=wO.prototype.toggledChanged; wO.prototype.alwaysToggleableChanged=wO.prototype.alwaysToggleableChanged;n([M({reflectToAttribute:!0}),r("design:type",Object)],wO.prototype,"alignAuto",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],wO.prototype,"collapsed",void 0);n([M(),r("design:type",Object)],wO.prototype,"isToggled",void 0);n([M(),r("design:type",Object)],wO.prototype,"alwaysCollapsed",void 0);n([M(),r("design:type",Object)],wO.prototype,"canToggle",void 0); n([M(),r("design:type",Object)],wO.prototype,"collapsedHeight",void 0);n([M(),r("design:type",Object)],wO.prototype,"disableToggle",void 0);n([M(),r("design:type",Object)],wO.prototype,"alwaysToggleable",void 0);n([M(),r("design:type",Object)],wO.prototype,"reversed",void 0);n([M(),r("design:type",Number)],wO.prototype,"maxNumberOfLines",void 0);n([M({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),r("design:type",Object)],wO.prototype,"shouldUseNumberOfLines",void 0); n([M(),r("design:type",Object)],wO.prototype,"recomputeOnResize",void 0);n([Tt("#content"),r("design:type",HTMLDivElement)],wO.prototype,"content",void 0);n([cu("alwaysToggleable"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],wO.prototype,"alwaysToggleableChanged",null);n([cu("isToggled"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],wO.prototype,"toggledChanged",null); n([H("canToggleJobId"),r("design:type",Object),r("design:paramtypes",[])],wO.prototype,"isResetting",null);n([Lt("reversed"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],wO.prototype,"reversedChanged",null);n([Lt("maxNumberOfLines","collapsedHeight"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],wO.prototype,"observeCollapsedHeightAndMaxLines",null); n([Kt("iron-resize"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],wO.prototype,"onIronResize",null);n([Lt("collapsed"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],wO.prototype,"collapsedChangedForBinding",null);n([Lt("isToggled"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],wO.prototype,"isToggledChangedForBinding",null); n([Lt("canToggle"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],wO.prototype,"canToggleChangedForBinding",null);n([gu({disableElementRegistration:!0,is:"ytd-expander"})],wO); Tu(wO,"ytd-expander",function(){if(SHb!==void 0)return SHb;var a=document.createElement("template");Q(a,"
\n \n \n
\n\n\n\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return SHb=a},{mode:1});function xO(){var a=Fn().resolve(Cn(CK));return a?(a=a.getCurrentPage())?a&&a.getPlayer?a.getPlayer():null:null:null} function yO(){var a=xO();if(!a){var b=Fn().resolve(Cn(CK)),c=b?typeof b:"no page manager";b=b?b.getCurrentPage():null;c=new Dl("Player is missing when requested.",c,b?b.tagName:"no page");co(c)}return a} function THb(a,b){a={args:{raw_player_response:a}};b&&(a.args=Object.assign({},a.args,b));return a} function UHb(a){if(a.args){if(a.args.raw_player_response)return a.args.raw_player_response;if(a.args.player_response)return JSON.parse(a.args.player_response)}} ;var VHb=x("web_button_rework")&&!!Vk("BUTTON_REWORK")||x("web_button_rework_with_live"),zO=function(){var a=E.apply(this,arguments)||this;a.closeLabel=zy("CLOSE");a.selectedAmountIndex=1;a.privacyCheckboxValue=!1;a.useAmsterdamStyle=VHb;a.amountPlaceholderIndex=-1;return a}; k(zO,E);g=zO.prototype;g.onAmountClick=function(a){this.selectedAmountIndex=wt(this.hostElement).querySelector("#amounts").indexForElement(a.currentTarget)}; g.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(Xu(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))}; g.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&Xu(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{Xu(this.hostElement,"yt-close-popup-action",[this.is]);var a;(a=xO())==null||a.getPlayerPromise().then(function(b){b.pauseVideo()})}}; g.donationCallback=function(a){a.success?(this.hostElement.hasAttribute("live-chat")&&a.response&&a.response.data&&a.response.data.actions&&Xu(this.hostElement,"yt-live-chat-open-popup",[a.response.data.actions[0]]),Xu(this.hostElement,"yt-close-popup-action",[this.is]),Xu(this.hostElement,"yt-live-chat-close-buy-flow")):a.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(a.errorMessageRenderer)}; g.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&wt(this.hostElement).querySelector("#custom-amount-input").focus()}; g.updateConfirmationDialogTextWithAmount=function(a){var b=this.getConfirmDialogRuns();b&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(b),"text"],this.getFormattedAmount(a))}; g.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)}; g.getAmountPlaceholderIndex=function(a){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=a.findIndex(function(b){return b.text==="${amount}"})); return this.amountPlaceholderIndex}; g.getFormattedAmount=function(a){var b;return new cI(4,((b=this.data)==null?void 0:b.currencyCode)||"").format(a)}; g.isAmountValid=function(a){if(a==="")return!1;a=Number(a)*1E6;var b=this.get("minAmountMicros",this.data),c=this.get("maxAmountMicros",this.data);return b&&ac?!1:!0}; g.setInputError=function(){this.shouldShowValidationError?wt(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):wt(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")}; g.setInitialCheckboxValue=function(){var a;this.privacyCheckboxValue=!((a=this.data)==null||!a.privacyCheckboxInitialState)}; g.updateCustomAmountInputFromBinding=function(a){this.customAmountInput=a.detail.value}; g.updatePrivacyCheckboxValueFromBinding=function(a){this.privacyCheckboxValue=a.detail.value}; ba.Object.defineProperties(zO.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var a=this,b,c;return((b=this.data)==null?void 0:(c=b.suggestedAmounts)==null?void 0:c.map(function(d,e){return{buttonRenderer:{style:a.selectedAmountIndex===e?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:d.label}}}))||[]}}, isCustomAmountSelected:{configurable:!0,enumerable:!0,get:function(){return!this.get("suggestedAmounts."+this.selectedAmountIndex+".amountMicros",this.data)}}, showPrivacyCheckbox:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.privacyCheckboxText)}}, amountMicros:{configurable:!0,enumerable:!0,get:function(){return this.customAmount?this.isAmountValid(this.customAmount)?Number(this.customAmount)*1E6:null:Number(this.get("suggestedAmounts."+this.selectedAmountIndex+".amountMicros",this.data))}}, customAmount:{configurable:!0,enumerable:!0,get:function(){return this.isCustomAmountSelected?this.customAmountInput||"":null}}, shouldShowValidationError:{configurable:!0,enumerable:!0,get:function(){return this.customAmount===null||this.customAmount===""?!1:!this.isAmountValid(this.customAmount)}}, isDonateButtonEnabled:{configurable:!0,enumerable:!0,get:function(){return this.customAmount===null?!0:this.isAmountValid(this.customAmount)}}, donateCommand:{configurable:!0,enumerable:!0,get:function(){var a=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(a&&this.amountMicros!==null)return Object.assign({},a,{ypcGetCartEndpoint:Object.assign({},a.ypcGetCartEndpoint,{donationAmountMicros:this.amountMicros,productData:{donationData:{isAnonymousDonation:!this.privacyCheckboxValue}}})})}}, donateCommandWithConfirmation:{configurable:!0,enumerable:!0,get:function(){return this.isCustomAmountSelected&&this.confirmLargeAmountCommand&&this.amountMicros&&this.amountMicros>=this.largeDonationThreshold?this.confirmLargeAmountCommand:this.donateCommand}}, largeDonationThreshold:{configurable:!0,enumerable:!0,get:function(){return 100*this.get("minAmountMicros",this.data)}}, confirmLargeAmountCommand:{configurable:!0,enumerable:!0,get:function(){var a=this.get("confirmLargeAmount",this.data);if(a&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),a}}, donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var a=this.get("donateButton.buttonRenderer",this.data);if(a)return Object.assign({},a,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}}); zO.prototype.setInitialCheckboxValue=zO.prototype.setInitialCheckboxValue;zO.prototype.setInputError=zO.prototype.setInputError;zO.prototype.setFocusOnCustomAmountInput=zO.prototype.setFocusOnCustomAmountInput;n([F(Wzb),r("design:type",Object)],zO.prototype,"ytLiveChatErrorMessageBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],zO.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],zO.prototype,"ytRendererstamperBehavior",void 0); n([M(),r("design:type",Object)],zO.prototype,"data",void 0);n([M(),r("design:type",Object)],zO.prototype,"closeLabel",void 0);n([M(),r("design:type",Object)],zO.prototype,"selectedAmountIndex",void 0);n([M(),r("design:type",String)],zO.prototype,"customAmountInput",void 0);n([M(),r("design:type",Object)],zO.prototype,"privacyCheckboxValue",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],zO.prototype,"useAmsterdamStyle",void 0); n([Lt("customAmount"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],zO.prototype,"setFocusOnCustomAmountInput",null);n([H("data","selectedAmountIndex"),r("design:type",Array),r("design:paramtypes",[])],zO.prototype,"suggestedAmountButtons",null);n([H("data","selectedAmountIndex"),r("design:type",Boolean),r("design:paramtypes",[])],zO.prototype,"isCustomAmountSelected",null); n([H("data"),r("design:type",Boolean),r("design:paramtypes",[])],zO.prototype,"showPrivacyCheckbox",null);n([H("data","selectedAmountIndex","customAmount"),r("design:type",Object),r("design:paramtypes",[])],zO.prototype,"amountMicros",null);n([H("isCustomAmountSelected","customAmountInput"),r("design:type",Object),r("design:paramtypes",[])],zO.prototype,"customAmount",null);n([H("customAmount"),r("design:type",Boolean),r("design:paramtypes",[])],zO.prototype,"shouldShowValidationError",null); n([H("customAmount"),r("design:type",Boolean),r("design:paramtypes",[])],zO.prototype,"isDonateButtonEnabled",null);n([H("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),r("design:type",Object),r("design:paramtypes",[])],zO.prototype,"donateCommand",null);n([H("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),r("design:type",Object),r("design:paramtypes",[])],zO.prototype,"donateCommandWithConfirmation",null); n([H("data"),r("design:type",Object),r("design:paramtypes",[])],zO.prototype,"largeDonationThreshold",null);n([H("customAmount","donateCommand","amountMicros"),r("design:type",Object),r("design:paramtypes",[])],zO.prototype,"confirmLargeAmountCommand",null);n([H("data","isDonateButtonEnabled","donateCommandWithConfirmation"),r("design:type",Object),r("design:paramtypes",[])],zO.prototype,"donateButtonRenderer",null); n([Lt("shouldShowValidationError"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],zO.prototype,"setInputError",null);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],zO.prototype,"setInitialCheckboxValue",null);n([gu({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],zO); Tu(zO,"ytd-donation-amount-picker-renderer",function(){if(RHb!==void 0)return RHb;var a=document.createElement("template");Q(a,"
\n
\n
\n
\n
[[getSimpleString(data.pickerTitle)]]
\n \n \n \n
\n
\n
\n \n
\n
[[getSimpleString(data.campaignTitle)]]
\n
[[getSimpleString(data.campaignSubtitle)]]
\n
\n
\n
[[getSimpleString(data.campaignDescription)]]
\n
\n
\n
\n
\n
[[getSimpleString(data.campaignDescription)]]
\n
\n
\n
\n
\n
\n
\n
\n [[getSimpleString(data.nonprofitTitle)]]\n \n \n
\n \n \n
\n
\n
\n
\n \n
\n
\n \n
\n
\n\n \n\n
\n \n \n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return RHb=a},{mode:1});var WHb;function AO(a,b,c){a=l(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;if(d===b)break;for(var e=l(c),f=e.next();!f.done;f=e.next())if(f=f.value,d.tagName===f||d.role==="button"&&f==="BUTTON")return!0}return!1} function BO(a,b,c){a=l(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;if(d===b)break;for(var e=l(c),f=e.next();!f.done;f=e.next())if(d.id===f.value)return!0}return!1} ;var XHb;var CO=function(){var a=E.apply(this,arguments)||this;a.smallSize=!1;return a}; k(CO,E);n([F(mz.YtComponentBehavior),r("design:type",Object)],CO.prototype,"ytComponentBehaviorType",void 0);n([M(),r("design:type",Object)],CO.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],CO.prototype,"smallSize",void 0);n([gu({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],CO); Tu(CO,"ytd-bullet-formatted-string",function(){if(XHb!==void 0)return XHb;var a=document.createElement("template");Q(a,"\n\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return XHb=a},{mode:1});var YHb;var DO=function(){var a=E.apply(this,arguments)||this;a.thumbnailObjectFit="CONTAIN";a.thumbnailObjectPosition="LEFT";a.isExpanded=!1;return a}; k(DO,E);g=DO.prototype;g.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}}; g.dataChanged=function(){this.resetStates()}; g.computeisTapOnOfferInfoContainerEnabled=function(){var a;return((a=this.data)==null?void 0:a.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"}; g.onExpandBtnClick=function(){var a,b=z((a=this.data)==null?void 0:a.showMoreButtonRenderer,Btb);b&&Oz(gz(),b.trackingParams);this.isExpanded=!this.isExpanded}; g.onOfferInfoClick=function(a){this.isTapOnOfferInfoContainerEnabled&&(AO(lt(a)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||BO(lt(a)||[],this.hostElement,["expand-button"])||this.executeTapCommand())}; g.onBottomBarClick=function(){this.executeTapCommand()}; g.executeTapCommand=function(){var a,b=(a=this.data)==null?void 0:a.tapCommand;b&&this.ytComponentBehavior.resolveCommand(b)}; g.resetStates=function(){this.isExpanded=!1}; ba.Object.defineProperties(DO.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.thumbnail)}}, enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var a=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),b,c,d;return((b=this.data)==null?void 0:b.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&a&&!!((c=this.data)==null?0:(d=c.benefits)==null?0:d.length)}}, enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}}, showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return((b=z((a=this.data)==null?void 0:a.showMoreButtonRenderer,Btb))==null?void 0:b.showMoreButtonTitle)||((c=this.data)==null?void 0:c.showMoreButtonTitle)}}, showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return((b=z((a=this.data)==null?void 0:a.showMoreButtonRenderer,Btb))==null?void 0:b.showLessButtonTitle)||((c=this.data)==null?void 0:c.showLessButtonTitle)}}, expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var a;return(a=this.showLessButtonTitle)!=null?a:""}var b;return(b=this.showMoreButtonTitle)!=null?b:""}}, enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return((a=this.data)==null?void 0:a.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((b=this.data)==null?0:b.footerTitle)||((c=this.data)==null?0:c.footerSubtitle))}}}); DO.prototype.dataChanged=DO.prototype.dataChanged;n([F(mz.YtComponentBehavior),r("design:type",Object)],DO.prototype,"ytComponentBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],DO.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],DO.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",String)],DO.prototype,"thumbnailObjectFit",void 0);n([M(),r("design:type",String)],DO.prototype,"thumbnailObjectPosition",void 0); n([M({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),r("design:type",Boolean)],DO.prototype,"isTapOnOfferInfoContainerEnabled",void 0);n([M(),r("design:type",Object)],DO.prototype,"isExpanded",void 0);n([M(),r("design:type",Object)],DO.prototype,"data",void 0);n([M({computed:"computeIcon_(data.footerIcon)"}),r("design:type",String)],DO.prototype,"icon",void 0); n([cu("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],DO.prototype,"dataChanged",null);n([H("data.thumbnail"),r("design:type",Boolean),r("design:paramtypes",[])],DO.prototype,"hasThumbnail",null);n([H("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),r("design:type",Boolean),r("design:paramtypes",[])],DO.prototype,"enableExpandButton",null); n([H("data"),r("design:type",Boolean),r("design:paramtypes",[])],DO.prototype,"enableOfferContentIcon",null);n([H("data.showMoreButtonRenderer","data.showMoreButtonTitle"),r("design:type",Object),r("design:paramtypes",[])],DO.prototype,"showMoreButtonTitle",null);n([H("data.showMoreButtonRenderer","data.showLessButtonTitle"),r("design:type",Object),r("design:paramtypes",[])],DO.prototype,"showLessButtonTitle",null); n([H("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),r("design:type",String),r("design:paramtypes",[])],DO.prototype,"expandedBtnText",null);n([H("data"),r("design:type",Boolean),r("design:paramtypes",[])],DO.prototype,"enableBottomBar",null);n([gu({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],DO); Tu(DO,"ytd-offer-card-renderer",function(){if(YHb!==void 0)return YHb;var a=document.createElement("template");Q(a,"
\n \n \n
\n \n \n
\n
\n \n \n \n \n
\n \n \n
\n \n \n
\n \n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return YHb=a},{mode:1});var ZHb;var EO=function(){return E.apply(this,arguments)||this}; k(EO,E);EO.prototype.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]"}}}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}}; EO.prototype.onClick=function(a){if(!AO(a.composedPath()||[],this.hostElement,["A".toString()])){var b,c;if((a=(c=z((b=this.data)==null?void 0:b.actionButton,TJ))==null?void 0:c.command)&&!this.ytComponentBehavior.resolveCommand(a)){var d;(d=gz())==null||d.clickCommand(a);Fn().resolve(JB).resolveCommand(a,{form:{element:this.hostElement}})}}}; n([F(mz.YtComponentBehavior),r("design:type",Object)],EO.prototype,"ytComponentBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],EO.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],EO.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],EO.prototype,"data",void 0);n([gu({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],EO); Tu(EO,"ytd-offer-content-renderer",function(){if(ZHb!==void 0)return ZHb;var a=document.createElement("template");Q(a,"
\n
\n
\n
\n \n \n \n \n
\n
\n
\n
\n
\n \n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return ZHb=a},{mode:1});var $Hb;var FO=function(){return E.apply(this,arguments)||this}; k(FO,E);FO.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}}; ba.Object.defineProperties(FO.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var a,b;return!((a=this.data)==null||!a.title)||!((b=this.data)==null||!b.description)}}}); n([F(Yz.YtRendererBehavior),r("design:type",Object)],FO.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],FO.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],FO.prototype,"data",void 0);n([H("data"),r("design:type",Object),r("design:paramtypes",[])],FO.prototype,"hasHeaderData",null);n([gu({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],FO); Tu(FO,"ytd-offer-section-renderer",function(){if($Hb!==void 0)return $Hb;var a=document.createElement("template");Q(a,"\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return $Hb=a},{mode:1});var GO=function(){var a=E.apply(this,arguments)||this;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-live-chat-set-dark-theme":"onDarkModeToggledAction"};return a}; k(GO,E);GO.prototype.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")}; GO.prototype.onDarkModeToggledAction=function(a){this.isDarkTheme!==a&&(this.isDarkTheme=a)}; GO.prototype.computeBackgroundStyle=function(a,b){return"background:"+(b?"rgba(15, 157, 88, 0.6)":"#0F9D58")+";"}; GO.prototype.computeBackgroundImageClass=function(){return Vk("HTML_DIR")==="rtl"?"flip":""}; n([F(mz.YtComponentBehavior),r("design:type",Object)],GO.prototype,"ytComponentBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],GO.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],GO.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],GO.prototype,"data",void 0);n([M({computed:"computeBackgroundStyle(data, isDarkTheme)"}),r("design:type",String)],GO.prototype,"backgroundStyle",void 0); n([M({computed:"computeBackgroundImageClass()"}),r("design:type",String)],GO.prototype,"backgroundImageClass",void 0);n([M({reflectToAttribute:!0,value:!1}),r("design:type",Boolean)],GO.prototype,"isDarkTheme",void 0);n([gu({disableElementRegistration:!0,is:"ytd-sponsorships-gift-free-creator-offer-renderer"})],GO); Tu(GO,"ytd-sponsorships-gift-free-creator-offer-renderer",function(){if(WHb!==void 0)return WHb;var a=document.createElement("template");Q(a,"
\n
\n
\n
\n \n \n
\n
\n \n \n
\n
\n
\n \n
\n
\n \n
\n \n
\n
\n \n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return WHb=a},{mode:2});var aIb;var UO=function(){return E.apply(this,arguments)||this}; k(UO,E);UO.prototype.configureRendererStamper=function(){return{"data.offerSection":{id:"offer-section",mapping:{offerSectionRenderer:"ytd-offer-section-renderer"}},"data.creatorOffer":{id:"creator-offer",mapping:{sponsorshipsGiftFreeCreatorOfferRenderer:"ytd-sponsorships-gift-free-creator-offer-renderer"}},"data.avatar":{id:"avatar",mapping:{sponsorshipsAvatarRenderer:"ytd-sponsorships-avatar-renderer"}}}}; UO.prototype.computeOfferSectionStyle=function(a){return"display:"+((a==null?0:a.offerSection)?"block":"none")+";"}; UO.prototype.computeCreatorOfferStyle=function(a){return"display:"+((a==null?0:a.creatorOffer)?"block":"none")+";"}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],UO.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],UO.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],UO.prototype,"data",void 0);n([M({computed:"computeOfferSectionStyle(data)"}),r("design:type",String)],UO.prototype,"offerSectionStyle",void 0);n([M({computed:"computeCreatorOfferStyle(data)"}),r("design:type",String)],UO.prototype,"creatorOfferStyle",void 0); n([gu({disableElementRegistration:!0,is:"ytd-sponsorships-gift-offer-body-renderer"})],UO); Tu(UO,"ytd-sponsorships-gift-offer-body-renderer",function(){if(aIb!==void 0)return aIb;var a=document.createElement("template");Q(a,"
\n
\n
\n
\n
\n \n
\n
\n \n \n
\n
\n
\n
\n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return aIb=a},{mode:1});var bIb;var VO=function(){return E.apply(this,arguments)||this}; k(VO,E);VO.prototype.onCloseButtonClick=function(){this.closeBuyFlow()}; VO.prototype.closeBuyFlow=function(){Xu(this.hostElement,"yt-live-chat-close-buy-flow")}; ba.Object.defineProperties(VO.prototype,{closeButtonAriaLabel:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d;return(b=z((a=this.data)==null?void 0:a.closeButton,TJ))==null?void 0:(c=b.accessibilityData)==null?void 0:(d=c.accessibilityData)==null?void 0:d.label}}}); n([F(Yz.YtRendererBehavior),r("design:type",Object)],VO.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],VO.prototype,"data",void 0);n([H("data"),r("design:type",Object),r("design:paramtypes",[])],VO.prototype,"closeButtonAriaLabel",null);n([gu({disableElementRegistration:!0,is:"ytd-sponsorships-gift-offer-header-renderer"})],VO); Tu(VO,"ytd-sponsorships-gift-offer-header-renderer",function(){if(bIb!==void 0)return bIb;var a=document.createElement("template");Q(a,"
\n \n \n \n\n
\n
\n \n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return bIb=a},{mode:1});var cIb;var WO=function(){return E.apply(this,arguments)||this}; k(WO,E);WO.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{sponsorshipsGiftOfferHeaderRenderer:"ytd-sponsorships-gift-offer-header-renderer"}},"data.body":{id:"body",mapping:{sponsorshipsGiftOfferBodyRenderer:"ytd-sponsorships-gift-offer-body-renderer"}}}}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],WO.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],WO.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],WO.prototype,"data",void 0);n([gu({disableElementRegistration:!0,is:"ytd-sponsorships-gift-offer-renderer"})],WO); Tu(WO,"ytd-sponsorships-gift-offer-renderer",function(){if(cIb!==void 0)return cIb;var a=document.createElement("template");Q(a,"
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return cIb=a},{mode:1});var XO=function(){return kt.apply(this,arguments)||this}; k(XO,kt);g=XO.prototype;g.bindIf=function(a,b,c){return a?b:c}; g.bindIfDefined=function(a,b){return a!==void 0?a:b}; g.booleanString=function(a){return(!!a).toString()}; g.equals=function(){for(var a=sa.apply(0,arguments),b=a[0],c=1;cb}; g.isLessThan=function(a,b){return a
\n \n \n \n \n
\n\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;jIb===void 0&&(jIb=document.createElement("template"));var d=jIb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);kIb=a}a=kIb;return a},{mode:2});function lIb(a){var b,c;return ra(function(d){if((b=a)==null||!b.preloadImages)return d.return();c=a.preloadImages.map(function(e){var f,h;if(!((f=e.image)==null?0:(h=f.thumbnails)==null?0:h.length))return Promise.reject(Error("No thumbnails found for preload image."));f=l(e.image.thumbnails);for(h=f.next();!h.done;h=f.next())if(h=h.value,h.width===e.imageDisplayWidth&&h.height===e.imageDisplayHeight&&h.url)return YDb(h.url);return Promise.reject(Error("No thumbnails found for specified dimensions."))}); return d.yield(Promise.allSettled(c),0)})} function cP(a){var b;return!!(a==null?0:(b=a.position)==null?0:b.matrix)} function mIb(a){var b;return!!(a==null?0:(b=a.position)==null?0:b.specialPlacement)} function nIb(a){var b;return a==null?void 0:(b=a.position)==null?void 0:b.specialPlacement} function oIb(a,b,c){var d;if(a&&a.rows===3&&a.columns===3&&((d=a.packedData)==null?void 0:d.length)===9){switch(a.layout){case"INTERACTIVITY_WIDGET_MATRIX_LAYOUT_ROW_MAJOR":d=a.packedData[0];var e=a.packedData[3];var f=a.packedData[1];var h=a.packedData[4];var m=a.packedData[2];a=a.packedData[5];break;default:d=a.packedData[0],e=a.packedData[1],f=a.packedData[3],h=a.packedData[4],m=a.packedData[6],a=a.packedData[7];}return{scaleX:d,scaleY:h,skewX:f,skewY:e,translateX:m*b,translateY:a*c}}} ;var pIb=function(){this.queue=[]},qIb=function(a,b){z(b.widgetRenderer,OJ)&&a.queue.push({action:b, arrivalTime:Date.now()})},rIb=function(a,b){var c=z(b.widgetRenderer,OJ); c&&c.id&&(a.queue.findIndex(function(d){return(d=z(d.action.widgetRenderer,OJ))&&d.id===c.id})>-1||qIb(a,{widgetRenderer:b.widgetRenderer, displayImmediately:b.displayImmediately}))},tIb=function(a,b){var c=a.queue.filter(function(d){var e=z(d.action.widgetRenderer,OJ); d=z(d.action.companionWidgetRenderer,OJ);return(cP(e)||cP(d))&&!b.hasIdleMatrixSlot||(mIb(e)||mIb(d))&&!b.hasIdleSpecialPlacementSlot?!1:!0}); (c=a.getHighestPriorityWidget(c))&&sIb(a,c);return c},sIb=function(a,b){b=a.queue.indexOf(b); b>-1&&a.queue.splice(b,1)}; pIb.prototype.getHighestPriorityWidget=function(a){return a.length===0?null:a.reduce(function(b,c){var d=z(c.action.widgetRenderer,OJ),e=z(b.action.widgetRenderer,OJ);d=(d==null?void 0:d.priority)||0;e=(e==null?void 0:e.priority)||0;return d>e?c:d===e?c.arrivalTime1},v=function(){if(d())return""; var y=t(),A=b().giftComboData;if(!A||!u())return"";var C=A.tierOneThreshold,I=A.tierTwoThreshold;A=A.tierThreeThreshold;return C!==void 0&&y===C?"https://www.gstatic.com/youtube/img/pdg/gift/assets/combo/assets/tier_2_flame.webp":C!==void 0&&I!==void 0&&y>C&&yI&&yA?"https://www.gstatic.com/youtube/img/pdg/gift/assets/combo/assets/tier_4_loop.webp":""},w=function(){var y=v(); if(y)return y;y=b().comboDecorationImage;var A,C;return(y==null?0:(A=y.sources)==null?0:A.length)?(C=y.sources[0])==null?void 0:C.url:""}; return D("ytls-gift-attribution-item-view-model",{class:U("ytlsGiftAttributionItemViewModelHost",c),style:a.styles,el:dB(e)},D("div",{class:"ytlsGiftAttributionItemViewModelContentContainer"},D("div",{class:"ytlsGiftAttributionItemViewModelBackground"}),D("div",{class:"ytlsGiftAttributionItemViewModelInfoSection"},D("div",{class:"ytlsGiftAttributionItemViewModelAvatarWrapper"},D(OC,{data:f},{avatarViewModel:function(y){return D(d1a,{data:y.data,avatarButtonCustomClassName:"ytlsGiftAttributionItemViewModelAvatar"})}})), D("div",{class:"ytlsGiftAttributionItemViewModelTextContainer"},D(P,{cond:function(){return b().authorName}, then:function(y){return D(gC,{text:y,className:"ytlsGiftAttributionItemViewModelAuthorName"})}}),D(P,{cond:function(){return b().detailText}, then:function(y){return D(gC,{text:y,className:"ytlsGiftAttributionItemViewModelDetailText"})}}))),D("div",{class:"ytlsGiftAttributionItemViewModelGiftImageContainer"},D(P,{cond:h, then:function(y){return D(eC,{data:y,alt:m,className:"ytlsGiftAttributionItemViewModelGiftImage"})}}),D(P,{cond:u, then:function(){return D("div",{class:"ytlsGiftAttributionItemViewModelComboContainer"},D(P,{cond:w,then:function(y){return D("div",{class:"ytlsGiftAttributionItemViewModelComboDecoration"},D("img",{class:"ytlsGiftAttributionItemViewModelComboDecorationImage",src:y,alt:""}))}}),D("div",{class:"ytlsGiftAttributionItemViewModelComboCountContainer", "aria-live":"polite","aria-atomic":"true"},D("div",{class:"ytlsGiftAttributionItemViewModelComboCountBackground"}),D("div",{class:"ytlsGiftAttributionItemViewModelComboCountText","aria-label":function(){return t()+" gift combo"}},function(){return"x"+t()})))}}))))},"Sa");var IIb=O(function(a){var b=a.data,c=a.overlayHeight,d=function(){return b().overlayImageHeightPercentageOfWindow===1},e={}; return D("ytls-gift-overlay-item-view-model",{class:U("ytlsGiftOverlayItemViewModelHost",a.className,(e.ytlsGiftOverlayItemViewModelLimitWidth=function(){return!d()},e)), "aria-live":"polite","aria-atomic":"true",role:"status"},D(P,{cond:function(){return b().overlayImage}, then:function(f){var h={};return D("div",{style:function(){return GC({height:function(){var m=b().overlayImageHeightPercentageOfWindow;return m?m*c()+"px":b().overlayImageDisplayHeight+"px"}, width:function(){var m=b().overlayImageHeightPercentageOfWindow;return d()?"100%":m?"auto":b().overlayImageDisplayWidth+"px"}, maxWidth:function(){return d()?void 0:"500px"}})()}},D(eC,{className:U("ytlsGiftOverlayItemViewModelImage",(h.ytlsGiftOverlayItemViewModelImageObjectCover=function(){return d()},h)), data:f,alt:function(){return b().giftA11yLabel||""}, targetHeight:function(){return d()?void 0:b().overlayImageDisplayHeight}, targetWidth:function(){return d()?void 0:b().overlayImageDisplayWidth}}))}}))},"Ta");function JIb(a){var b=l(ip(0,void 0,"LSyeWe")),c=b.next().value,d=b.next().value;b=l(ip(0,void 0,"TOslpd"));var e=b.next().value,f=b.next().value;rw(function(){var h=a.value,m=function(q,t){d(q);f(t)}; if(h){if(m(h.offsetWidth,h.offsetHeight),"ResizeObserver"in window){var p=new ResizeObserver(function(q){q=l(q);for(var t=q.next();!t.done;t=q.next())if(t=t.value,t.target===h){q=t.contentRect;m(q.width,q.height);break}}); p.observe(h);zp(function(){p.unobserve(h);p.disconnect()})}else co("ResizeObserver is not supported in this browser.");}else co("Host element is not defined.")}); return{width:c,height:e}} ;function KIb(a,b,c){var d=l(ip("init",void 0,"vO8q5d")),e=d.next().value,f=d.next().value;lw(function(){a()?e()!=="visible"&&e()!=="entering"&&f("entering"):e()==="init"?f("hidden"):e()!=="hidden"&&e()!=="exiting"&&f("exiting")},"tWb0L"); d=NKa(function(h){h.target===h.currentTarget&&(h=e(),h==="entering"?(f("visible"),b()):h==="exiting"&&(f("hidden"),c()))}); return{animationState:e,handleAnimationEnd:d}} ;function LIb(a,b,c){return(c==null?0:c.matrix)?(c=oIb(c.matrix,a,b))?GC({top:c.translateY+"px",left:c.translateX+"px",height:b*c.scaleY+"px",width:a*c.scaleX+"px"}):function(){}:function(){}} var MIb=O(function(a){var b=a.data,c=a.isActive,d=a.onEntryComplete,e=a.onExitComplete;a=a.className;var f=sw("ytls-interactivity-widget"),h=JIb(f),m=h.width,p=h.height;c=KIb(c,function(){d==null||d()},function(){e==null||e()}); var q=c.animationState;c=c.handleAnimationEnd;var t=function(){var v;return z((v=b())==null?void 0:v.content,Mqb)},u=function(){var v; return z((v=b())==null?void 0:v.content,Lqb)}; return D("ytls-interactivity-widget",{el:f,id:function(){var v;return(v=b())==null?void 0:v.id}, class:U("ytlsInteractivityWidgetHost",a,function(){a:{switch(q()){case"entering":case"init":var v="ytlsInteractivityWidgetAniSlideDownFadeIn";break a;case"exiting":v="ytlsInteractivityWidgetAniSlideUpFadeOut";break a;}v=void 0}return v}), "on:animationend":c},D(P,{cond:function(){return q()!=="hidden"&&t()}, then:function(){return D("div",{class:"ytlsInteractivityWidgetPositionContainer",style:function(){var v;return LIb(m(),p(),(v=b())==null?void 0:v.position)()}},D(IIb,{data:function(){return t()}, overlayHeight:function(){return p()}}))}}),D(P,{cond:function(){return q()!=="hidden"&&u()}, then:function(){return D(HIb,{data:function(){return u()}})}}))},"Va");bB(O(function(a){var b=l(ip(void 0,void 0,"XH7N6c")),c=b.next().value,d=b.next().value;b=l(ip([void 0,void 0],void 0,"VpTWm"));var e=b.next().value,f=b.next().value,h=JKa(function(){return new pIb},[null]),m=function(q){q=q.action; q=[z(q.widgetRenderer,OJ),z(q.companionWidgetRenderer,OJ)].filter(Boolean);q.sort(function(y,A){return cP(y)&&!cP(A)?-1:!cP(y)&&cP(A)?1:0}); q=l(q);for(var t=q.next(),u={};!t.done;u={index$jscomp$2399:void 0},t=q.next())if(t=t.value,cP(t))u=void 0,t.timeoutMs&&(u=setTimeout(function(){var y=c();y&&d(Object.assign({},y,{isVisible:!1}))},t.timeoutMs)),d({widgetData:t, isVisible:!0,timeoutId:u});else if(mIb(t)){if(nIb(t)!=="SPECIAL_PLACEMENT_BELOW_ANCHOR_START_ALIGNED")break;var v=e();u.index$jscomp$2399=v.findIndex(function(y){return!y}); if(u.index$jscomp$2399!==-1){var w=void 0;t.timeoutMs&&(w=setTimeout(function(y){return function(){var A=e(),C=A[y.index$jscomp$2399];C&&(A=[].concat(ia(A)),A[y.index$jscomp$2399]=Object.assign({},C,{isVisible:!1}),f(A))}}(u),t.timeoutMs)); v=[].concat(ia(v));v[u.index$jscomp$2399]={widgetData:t,isVisible:!0,timeoutId:w};f(v)}}},p=function(){for(var q={hasIdleMatrixSlot:!c(), hasIdleSpecialPlacementSlot:e().some(function(u){return!u})},t=tIb(h,q);t;)m(t),q.hasIdleMatrixSlot=!c(),q.hasIdleSpecialPlacementSlot=e().some(function(u){return!u}),t=tIb(h,q)}; CH("yt-live-chat-interactivity-widget-action",function(q){if(q){var t=z(q,zob);if(t){q=z(t.widgetRenderer,OJ);var u=z(t.companionWidgetRenderer,OJ);q&&Promise.all([lIb(q),lIb(u)]).then(function(){qIb(h,t);p()})}else{var v=z(q,Aob); if(v){var w=z(v.widgetRenderer,OJ);w&&w.id&&lIb(w).then(function(){var y=e(),A=y.findIndex(function(K){var N;return(K==null?void 0:(N=K.widgetData)==null?void 0:N.id)===w.id}); if(A!==-1){y=y[A];y.timeoutId&&clearTimeout(y.timeoutId);var C;w.timeoutMs&&(C=setTimeout(function(){var K=[].concat(ia(e())),N=K[A];N&&(K[A]=Object.assign({},N,{isVisible:!1}),f(K))},w.timeoutMs)); var I=[].concat(ia(e()));I[A]=Object.assign({},y,{widgetData:w,timeoutId:C});f(I)}else rIb(h,v),p()})}}}}); zp(function(){var q;clearTimeout((q=c())==null?void 0:q.timeoutId);q=l(e());for(var t=q.next();!t.done;t=q.next()){var u=void 0;clearTimeout((u=t.value)==null?void 0:u.timeoutId)}}); return D("ytls-widget-overlay-manager",{class:U("ytlsWidgetOverlayManagerHost",a.className)},D("div",{class:"ytlsWidgetOverlayManagerAttributionContainer"},D(mw,{each:e,keyBy:"INDEX",children:function(q,t){return D(P,{cond:function(){var u;return(u=q())==null?void 0:u.widgetData}, then:function(u){return D(MIb,{data:u,isActive:function(){var v;return!((v=q())==null||!v.isVisible)}, onExitComplete:function(){var v=[].concat(ia(e()));v[t]=void 0;f(v);p()}, className:U("ytlsWidgetOverlayManagerInteractivityWidget","ytlsWidgetOverlayManagerAttributionItem")})}, else:function(){return D("div",{class:"ytlsWidgetOverlayManagerAttributionItem","aria-hidden":"true"})}})}})),D(P,{cond:function(){var q; return(q=c())==null?void 0:q.widgetData}, then:function(q){return D(MIb,{data:q,isActive:function(){var t;return!((t=c())==null||!t.isVisible)}, onExitComplete:function(){d(void 0);p()}, className:"ytlsWidgetOverlayManagerInteractivityWidget"})}}))},"Wa"),"ytls-widget-overlay-manager",{props:{className:aB}});var NIb=function(){this.dropdownMap=new Map};var eP=function(a,b){this.controller=a;this.panelLoadingStrategy=b}; k(eP,sL); eP.prototype.resolveCommand=function(a,b){var c=this,d,e,f,h,m,p,q,t,u,v,w,y,A,C;return ra(function(I){d=z(a,osb);if((e=d)==null||!e.panelLoadingStrategy)return I.return();m=OIb(c.controller,(f=b)==null?void 0:(h=f.form)==null?void 0:h.element);q=(p=d.contextualSheetPresentationConfig)==null?void 0:p.position;u=(t=d.contextualSheetPresentationConfig)==null?void 0:t.hoverConfig;w=(v=d.contextualSheetPresentationConfig)==null?void 0:v.expandToFullWidth;A=(y=d.contextualSheetPresentationConfig)==null? void 0:y.openToSide;C=function(K){var N,L;return ra(function(R){if(!K.sheetViewModel)return R.return();if(u){var W=c.controller;W.shouldPreventClosingWhileHovered=!!u.preventCloseWhileHovered;var S;W.hideDelayMs=(S=u.hideDelayMs)!=null?S:0;var Y;W.showDelayMs=(Y=u.showDelayMs)!=null?Y:0}return R.yield(c.controller.openSheet({viewModel:K.sheetViewModel,sheetPosition:q,expandToFullWidth:w,openToSide:A},m,(N=b)==null?void 0:(L=N.form)==null?void 0:L.element),0)})}; return I.yield(c.panelLoadingStrategy.execute({command:a,data:d.panelLoadingStrategy,renderFn:C,createScreenConfig:{layer:0}}),0)})}; eP[An]=[HL,ZAb];var fP=function(a){this.JSC$12208_storeWithEntities=a}; k(fP,mL);fP.prototype.getApiPaths=function(){return Aub}; fP.prototype.getExtension=function(a){return z(a,onb)}; fP.prototype.JSC$11204_buildRequest=function(a,b){b.flowId&&(a.flowId=b.flowId);b.targetId&&(a.targetId=b.targetId);b.continuation&&(a.continuation=b.continuation);var c=b.flowStateEntityKey;if(b.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&c&&this.JSC$12208_storeWithEntities){var d;if(b=(d=this.JSC$12208_storeWithEntities.getState())==null?void 0:d.entities)if(d=mA(c).entityType,d=yA(b,d,c))a.flowState=d,a.flowStateEntityKey=c}}; ba.Object.defineProperties(fP.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}}); fP[An]=[wL];var gP=function(a){a?(this.container=a,this.containerWasInjected=!0):this.containerWasInjected=!1}; gP.prototype.openDialog=function(a,b,c){var d=this,e;return ra(function(f){(e=d.container)==null||e.openDialog(a,b,c);f.jumpToEnd()})}; gP.prototype.closeDialog=function(){var a=this,b;return ra(function(c){(b=a.container)==null||b.closeDialog();c.jumpToEnd()})}; gP.prototype.isDialogOpen=function(){var a=this,b,c;return ra(function(d){return d.return((c=(b=a.container)==null?void 0:b.isDialogOpen())!=null?c:!1)})}; gP[An]=[Cn(XAb)];var PIb=new Bn("POPUP_CONTROLLER_TOKEN");var QIb=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map},RIb=function(a,b,c){if(b){a.panelMap.set(b,c); var d=a.pendingPanelResolvers.get(b);d&&(d.resolve(c),a.pendingPanelResolvers.delete(b))}},hP=function(a,b){var c; return ra(function(d){return(c=a.panelMap.get(b))?d.return(c):d.return(SIb(a,b))})},SIb=function(a,b){var c,d; return ra(function(e){if(c=a.pendingPanelResolvers.get(b))return e.return(c.promise);d=new nj;a.pendingPanelResolvers.set(b,d);return e.return(d.promise)})},TIb=function(a,b){QIb.call(this); var c=this;this.popupController=a;this.persistentPanelController=b;this.panelContentMap=new Map;this.sourcePanelMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return c.panelMap.size}}}; k(TIb,QIb);g=TIb.prototype;g.getReloadContinuation=function(a){var b=this,c;return ra(function(d){if(d.nextAddress==1)return d.yield(hP(b,a),2);c=d.yieldResult;return d.return(c.getReloadContinuation())})}; g.showPanel=function(a){var b=this,c,d,e,f,h,m,p,q,t,u,v,w,y,A;return ra(function(C){if(C.nextAddress==1){c=a;d=c.identifier;e=c.panelContents;f=c.config;h=c.extras;m=c.panelUpdatableFields;p=c.updatePanelContinuationData;q=c.sourcePanelIdentifier;t=c.shouldFocusHeader;u=a.target;p&&b.updatePanelContinuationDatas.set(d,p);if(!q&&((v=f)==null?0:(w=v.engagementPanelPopupPresentationConfig)==null?0:w.popupType))if(y=f.engagementPanelPopupPresentationConfig.popupType,u===void 0&&(u=document.body),y=== "PANEL_POPUP_TYPE_PERSISTENT_SIDE_PANEL"){if(!b.persistentPanelController)return fo(new Dl("Persistent panel controller is not available.")),C.return();b.persistentPanelController.showPersistentPanel(d)}else{if(y==="PANEL_POPUP_TYPE_DIALOG"||y==="PANEL_POPUP_TYPE_DROPDOWN"||y==="PANEL_POPUP_TYPE_PERSISTENT_DRAGGABLE_PANEL"){var I=C.return,K=b.popupController,N=K.openPopup;a:switch(y){case"PANEL_POPUP_TYPE_DIALOG":var L="DIALOG";break a;case"PANEL_POPUP_TYPE_DROPDOWN":L="DROPDOWN";break a;case"PANEL_POPUP_TYPE_PERSISTENT_DRAGGABLE_PANEL":L= "PERSISTENT_DRAGGABLE_PANEL";break a;default:throw Error("Popup type not found or supported: "+y);}return I.call(C,N.call(K,d,e,L,u))}fo(new Dl("Popup type "+y+" not supported in PanelController."))}return q?C.yield(UIb(b,d,q),2):C.jumpTo(2)}if(C.nextAddress!=4)return C.yield(hP(b,d),4);A=C.yieldResult;(e||m)&&A.updatePanel(e,!!t,h,m);A.showPanel(h);C.jumpToEnd()})}; g.hidePanel=function(a){var b=this,c,d,e,f,h,m;return ra(function(p){if(p.nextAddress==1)return c=a,d=c.identifier,(e=b.sourcePanelMap.get(d))?p.return(VIb(b,d,e)):p.yield(hP(b,d),2);f=p.yieldResult;f.hidePanel();b.popupController.closePopup(d);(h=b.persistentPanelController)==null||h.hidePersistentPanel(d);(m=WIb(b,d))&&XIb(b,m);p.jumpToEnd()})}; g.isVisible=function(a,b){var c=this,d;return ra(function(e){if(e.nextAddress==1)return b&&!c.panelMap.has(a)?e.return(!1):e.yield(hP(c,a),2);d=e.yieldResult;return e.return(d.isVisible())})}; g.updatePanel=function(a){var b=this,c,d,e,f,h,m,p,q;return ra(function(t){if(t.nextAddress==1){c=a;d=c.identifier;e=c.panelContents;f=c.shouldFocus===void 0?!1:c.shouldFocus;h=c.extras;m=c.panelUpdatableFields;p=c.updatePanelContinuationData;if(!e&&!m)return t.return();p&&b.updatePanelContinuationDatas.set(d,p);x("enable_ai_companion")&&d==="PAai_companion"&&LC.persistentCache.remove("youchat_messages_section");return t.yield(hP(b,d),2)}q=t.yieldResult;q.updatePanel(e,f,h,m);e&&(x("enable_ai_companion")|| x("WebFEAllStudioByChannel__enable_creator_chat_renderer"))&&d&&b.panelContentMap.set(d,e);t.jumpToEnd()})}; g.getPanelContent=function(a){return this.panelContentMap.get(a)}; var UIb=function(a,b,c){var d;return ra(function(e){if(e.nextAddress==1)return a.sourcePanelMap.set(b,c),e.yield(hP(a,c),2);d=e.yieldResult;if(d.getPanelContent){var f=structuredClone(d.getPanelContent());c&&a.panelContentMap.set(c,f)}RIb(a,b,d);e.jumpToEnd()})},VIb=function(a,b,c){var d,e; return ra(function(f){if(f.nextAddress==1)return f.yield(hP(a,b),2);d=f.yieldResult;e=a.getPanelContent(c);d.updatePanel(e,!0);XIb(a,b);f.jumpToEnd()})},XIb=function(a,b){var c=WIb(a,b); c&&XIb(a,c);a.sourcePanelMap.delete(b);a.panelMap.delete(b)},WIb=function(a,b){a=l(a.sourcePanelMap); for(var c=a.next();!c.done;c=a.next()){var d=l(c.value);c=d.next().value;d=d.next().value;if(d===b)return c}}; TIb[An]=[PIb,Cn(YAb)];var YIb=function(a,b){this.JSC$12229_innertubeTransportService=a;this.JSC$12229_screenManager=b},ZIb=function(a){var b; return!((b=a.panelLoadingStrategy)==null||!b.requestTemplate)},$Ib=function(a,b){var c,d; return ra(function(e){switch(e.nextAddress){case 1:if(!ZIb(a)){e.jumpTo(2);break}e.setCatchFinallyBlocks(3);return e.yield(AK(a.JSC$12229_innertubeTransportService,b),5);case 5:return c=e.yieldResult,c?e.return(c.content):(co(Error("Error in response")),e.return(void 0));case 3:d=e.enterCatchBlock(),co(d);case 2:return e.return(void 0);}})}; YIb.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent}; YIb.prototype.execute=function(a){var b=this,c,d,e,f,h,m,p,q,t,u;return ra(function(v){if(v.nextAddress==1){c=a;d=c.data;e=c.fallbackVe;f=c.parentVe;h=c.createScreenConfig;m=c.renderFn;p=c.command;b.panelLoadingStrategy=d;var w,y,A=((w=b.panelLoadingStrategy)==null?0:w.screenVe)?(y=b.panelLoadingStrategy)==null?void 0:y.screenVe:e;A&&Jz(b.JSC$12229_screenManager,A,f,h);return(q=b.getContent())?v.yield(m(q),2):v.jumpTo(2)}return v.nextAddress!=4?ZIb(b)?v.yield($Ib(b,p),4):v.return():(u=t=v.yieldResult)? v.yield(m(u),0):v.return()})}; YIb[An]=[DK,tL];var iP=function(){var a=this;this.isHovered=this.shouldPreventClosingWhileHovered=!1;this.showDelayMs=this.hideDelayMs=0;this.hasRegisteredHoverCallbacks=!1;this.onTargetHoverEntered=function(){a.isHovered=!0}; this.onTargetHoverLeft=function(){a.isHovered=!1}; this.onSheetHoverEntered=function(){a.isHovered=!0;var b;(b=a.hoverEnterCallback)==null||b.call(a)}; this.onSheetHoverLeft=function(){a.isHovered=!1;var b;(b=a.hoverLeaveCallback)==null||b.call(a)}}; iP.prototype.getContainer=function(){var a=a===void 0?!1:a;var b=mqa();if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b&&b&&this.fullScreenContainer?this.fullScreenContainer:this.container}; iP.prototype.openSheet=function(a,b,c){c=c===void 0?b:c;var d=this;return ra(function(e){d.clearTimeouts();return d.showDelayMs?(d.openTimeoutId=setTimeout(function(){return ra(function(f){return f.yield(aJb(d,a,b,c),0)})},d.showDelayMs),e.return()):e.yield(aJb(d,a,b,c),0)})}; var aJb=function(a,b,c,d){d=d===void 0?c:d;var e,f,h,m,p,q,t;return ra(function(u){switch(u.nextAddress){case 1:return e={stack:[],error:void 0,hasError:!1},u.setCatchFinallyBlocks(2,3),f=zo,u.yield(a.isSheetOpen(),5);case 5:h=u.yieldResult;Waa(e,nta(f));if(!h){u.jumpTo(6);break}if(!a.shouldPreventClosingWhileHovered){if(!x("delay_sheet_open_killswitch")){if(x("web_close_sheet_if_same_target_killswitch")&&c&&a.currentTarget===c)return(m=a.getContainer())==null||m.closeSheet(),u.return();a.pendingData= {data:b,target:OIb(a,c)};return u.return()}u.jumpTo(6);break}if(a.currentTarget===c)return u.return();bJb(a);cJb(a);return u.yield((p=a.getContainer())==null?void 0:p.closeSheet(),6);case 6:if(b.viewModel&&(b={viewModel:b.viewModel,sheetPosition:b.sheetPosition,expandToFullWidth:b.expandToFullWidth,openToSide:b.openToSide}),(q=a.getContainer())==null||q.openSheet(b,c,d),a.currentTarget=c,a.shouldPreventClosingWhileHovered){a.onTargetHoverEntered();var v;(v=a.currentTarget)==null||v.addEventListener("mouseenter", a.onTargetHoverEntered);var w;(w=a.currentTarget)==null||w.addEventListener("mouseleave",a.onTargetHoverLeft);dJb(a)}else a.hasRegisteredHoverCallbacks&&dJb(a);case 3:u.enterFinallyBlock();Xaa(e);u.leaveFinallyBlock(0);break;case 2:t=u.enterCatchBlock(),e.error=t,e.hasError=!0,u.jumpTo(3);}})}; iP.prototype.closeSheet=function(){var a=this;return ra(function(b){a.clearTimeouts();return a.hideDelayMs?(a.closeTimeoutId=setTimeout(function(){return ra(function(c){return c.yield(eJb(a),0)})},a.hideDelayMs),b.return()):b.yield(eJb(a),0)})}; var eJb=function(a){var b;return ra(function(c){if(c.nextAddress==1){if(a.shouldPreventClosingWhileHovered){if(a.isHovered)return c.return();bJb(a);cJb(a)}else a.hasRegisteredHoverCallbacks&&(cJb(a),a.onSheetHoverLeft());return c.yield((b=a.getContainer())==null?void 0:b.closeSheet(),2)}if(c.nextAddress!=4)return a.resetState(),!a.pendingData||x("delay_sheet_open_killswitch")?c.jumpTo(0):c.yield(a.openSheet(a.pendingData.data,a.pendingData.target),4);a.pendingData=void 0;c.jumpToEnd()})}; iP.prototype.isSheetOpen=function(){var a=this,b,c;return ra(function(d){return d.return((c=(b=a.getContainer())==null?void 0:b.isSheetOpen())!=null?c:!1)})}; iP.prototype.resetState=function(){this.currentTarget=void 0;this.shouldPreventClosingWhileHovered=this.isHovered=!1;this.showDelayMs=this.hideDelayMs=0;this.hasRegisteredHoverCallbacks=!1;this.hoverLeaveCallback=this.hoverEnterCallback=void 0}; iP.prototype.clearTimeouts=function(){this.openTimeoutId&&(clearTimeout(this.openTimeoutId),this.openTimeoutId=void 0);this.closeTimeoutId&&(clearTimeout(this.closeTimeoutId),this.closeTimeoutId=void 0)}; var bJb=function(a){var b;(b=a.currentTarget)==null||b.removeEventListener("mouseenter",a.onTargetHoverEntered);var c;(c=a.currentTarget)==null||c.removeEventListener("mouseleave",a.onTargetHoverLeft)},dJb=function(a){var b,c=(b=a.getContainer())==null?void 0:b.getSheetContainerElement(); c==null||c.addEventListener("mouseenter",a.onSheetHoverEntered);c==null||c.addEventListener("mouseleave",a.onSheetHoverLeft)},cJb=function(a){var b,c=(b=a.getContainer())==null?void 0:b.getSheetContainerElement(); c==null||c.removeEventListener("mouseenter",a.onSheetHoverEntered);c==null||c.removeEventListener("mouseleave",a.onSheetHoverLeft)},OIb=function(a,b){var c,d; return(d=(c=a.getContainer())==null?void 0:c.getParentTarget(b))!=null?d:b};var fJb=function(){}; fJb.prototype.openPopup=function(a,b,c,d){var e=this,f;return ra(function(h){if(!e.container)return h.return();f={openPopupAction:{popup:b,popupType:c,uniqueId:a}};return h.return(e.container.handleOpenPopupAction(f,d))})}; fJb.prototype.closePopup=function(a){this.container&&this.container.closePopup(a)};var hJb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("blZZXe"),2);a=gJb;return b.return(a)})},iJb=yD(function(){return hJb()},{debugName:"installmentAgreementsViewModel"}); Gn(xD,function(a){a.registerLoadFn("installmentAgreementsViewModel","blZZXe",hJb)});var kJb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("INc1Ef"),2);a=jJb;return b.return(a)})},lJb=yD(function(){return kJb()},{debugName:"createPlaylistDialogFormViewModel"}); Gn(xD,function(a){a.registerLoadFn("createPlaylistDialogFormViewModel","INc1Ef",kJb)});var nJb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("r9KMjb"),2);a=mJb;return b.return(a)})},oJb=yD(function(){return nJb()},{debugName:"upsellViewModel"}); Gn(xD,function(a){a.registerLoadFn("upsellViewModel","r9KMjb",nJb)});var qJb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("VcGS8"),2);a=pJb;return b.return(a)})},rJb=yD(function(){return qJb()},{debugName:"miniAppScoreChallengeViewModel"}); Gn(xD,function(a){a.registerLoadFn("miniAppScoreChallengeViewModel","VcGS8",qJb)});var sJb=function(){this.store=Au();this.formId=""}; sJb.prototype.cleanup=function(){this.store.dispatch(aA({type:"RESET_COMMAND_MAP"}))};var tJb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("osTtxe"),2);a=jP;return b.return(a)})},kP=yD(function(){return tJb()},{debugName:"basicContentViewModel"}); Gn(xD,function(a){a.registerLoadFn("basicContentViewModel","osTtxe",tJb)});var vJb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("ojGT6d"),2);a=uJb;return b.return(a)})},wJb=yD(function(){return vJb()},{debugName:"formFooterViewModel"}); Gn(xD,function(a){a.registerLoadFn("formFooterViewModel","ojGT6d",vJb)});var yJb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("d2LTxb"),2);a=xJb;return b.return(a)})},zJb=yD(function(){return yJb()},{debugName:"radioButtonGroupViewModel"}); Gn(xD,function(a){a.registerLoadFn("radioButtonGroupViewModel","d2LTxb",yJb)});var BJb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("HZ41Od"),2);a=AJb;return b.return(a)})},CJb=yD(function(){return BJb()},{debugName:"selectionListItemFormViewModel"}); Gn(xD,function(a){a.registerLoadFn("selectionListItemFormViewModel","HZ41Od",BJb)});var EJb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("Hxjlbb"),2);a=DJb;return b.return(a)})},FJb=yD(function(){return EJb()},{debugName:"listViewModel"}); Gn(xD,function(a){a.registerLoadFn("listViewModel","Hxjlbb",EJb)});var HJb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("e3UtW"),2);a=GJb;return b.return(a)})},IJb=yD(function(){return HJb()},{debugName:"dialogHeaderViewModel"}); Gn(xD,function(a){a.registerLoadFn("dialogHeaderViewModel","e3UtW",HJb)});var KJb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("aU1GTb"),2);a=JJb;return b.return(a)})},LJb=yD(function(){return KJb()},{debugName:"formPanelFooterViewModel"}); Gn(xD,function(a){a.registerLoadFn("formPanelFooterViewModel","aU1GTb",KJb)});var NJb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("IbxxOe"),2);a=MJb;return b.return(a)})},OJb=yD(function(){return NJb()},{debugName:"dialogImageContentViewModel"}); Gn(xD,function(a){a.registerLoadFn("dialogImageContentViewModel","IbxxOe",NJb)});var QJb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("lPWjkb"),2);a=PJb;return b.return(a)})},RJb=yD(function(){return QJb()},{debugName:"panelFooterViewModel"}); Gn(xD,function(a){a.registerLoadFn("panelFooterViewModel","lPWjkb",QJb)});var SJb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("VOUP9d"),2);a=lP;return b.return(a)})},TJb=yD(function(){return SJb()},{debugName:"linearLayoutViewModel"}); Gn(xD,function(a){a.registerLoadFn("linearLayoutViewModel","VOUP9d",SJb)});var VJb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("viUWV"),2);a=UJb;return b.return(a)})},WJb=yD(function(){return VJb()},{debugName:"dialogLayout"}); Gn(xD,function(a){a.registerLoadFn("dialogLayout","viUWV",VJb)});var XJb=new Bn("TIME_PICKER_VIEW_MODEL_TOKEN");var ZJb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("fAzdT"),2);a=YJb;return b.return(a)})},$Jb=yD(function(){return ZJb()},{debugName:"channelBlocksViewModel"}); Gn(xD,function(a){a.registerLoadFn("channelBlocksViewModel","fAzdT",ZJb)});var bKb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("ilQSAf"),2);a=aKb;return b.return(a)})},cKb=yD(function(){return bKb()},{debugName:"fanzoneScheduledInfoViewModel"}); Gn(xD,function(a){a.registerLoadFn("fanzoneScheduledInfoViewModel","ilQSAf",bKb)});var eKb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("UkZuWb"),2);a=dKb;return b.return(a)})},fKb=yD(function(){return eKb()},{debugName:"collaborativePlaylistInviteMessageViewModel"}); Gn(xD,function(a){a.registerLoadFn("collaborativePlaylistInviteMessageViewModel","UkZuWb",eKb)});var hKb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("l8aKDb"),2);a=gKb;return b.return(a)})},iKb=yD(function(){return hKb()},{debugName:"communityEduViewModel"}); Gn(xD,function(a){a.registerLoadFn("communityEduViewModel","l8aKDb",hKb)});var kKb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("cnq5Qb"),2);a=jKb;return b.return(a)})},lKb=yD(function(){return kKb()},{debugName:"accessConfirmationViewModel"}); Gn(xD,function(a){a.registerLoadFn("accessConfirmationViewModel","cnq5Qb",kKb)});var nKb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("n9DJBf"),2);a=mKb;return b.return(a)})},oKb=yD(function(){return nKb()},{debugName:"preferredLanguageSettingsPanelViewModel"}); Gn(xD,function(a){a.registerLoadFn("preferredLanguageSettingsPanelViewModel","n9DJBf",nKb)});var pKb=O(function(a){var b=a.data;var c=void 0;a=l(Gu(function(){var t;return((t=z(b().content,bK))==null?void 0:t.defaultSelectedKey)||""})); var d=a.next().value,e=a.next().value,f,h=function(){e("");var t;(t=c)==null||t.cleanup()}; rw(function(){c=new sJb;window.addEventListener("yt-popup-closed",h)}); lw(function(){if(c&&f!==b().formId){var t=c,u=b();u.formId&&(t.formId=u.formId,t.store.dispatch(aA({type:"SET_CURRENT_FORM_ID",payload:{formId:t.formId}})));(f=b().formId)&&d()&&(t=c,u={key:d()},u.command&&t.store.dispatch(uVa(f,u.command)))}},"Ql1k1d"); zp(function(){window.removeEventListener("yt-popup-closed",h)}); var m=function(t,u,v){u.key&&v&&u.key!==d()&&(e(u.key),c&&u.command&&c.store.dispatch(uVa(v,u.command)))},p=function(){if(z(b().content,bK))return!(d==null?0:d())},q=Fn().resolve(Cn(XJb)); return D("yt-dialog-view-model",{class:U("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},D(WJb,{Header:function(){return D(OC,{data:function(){return b().header}},{dialogHeaderViewModel:function(t){return D(IJb,{data:t.data, disablePadding:!0})}})}, isHeaderWizDefined:function(){return!!b().header}, Content:function(){return D(OC,{data:function(){return b().customContent?b().customContent:b().content}},Object.assign({},{accessConfirmationViewModel:lKb, basicContentViewModel:kP,channelBlocksViewModel:$Jb,collaborativePlaylistInviteMessageViewModel:fKb,contentHubShelvesEditorViewModel:Szb,createPlaylistDialogFormViewModel:lJb,dialogImageContentViewModel:OJb,fanCommunityNudgeViewModel:function(t){return D(iKb,{data:t.data})}, fanzoneScheduledInfoViewModel:cKb,installmentAgreementsViewModel:iJb,linearLayoutViewModel:TJb,listViewModel:function(t){return D(FJb,{data:t.data,disableHorizontalPadding:!0})}, miniAppScoreChallengeViewModel:rJb,preferredLanguageSettingsPanelViewModel:function(t){return D(oKb,{data:t.data,disableHorizontalPadding:!0})}, radioButtonGroupViewModel:function(t){var u=t.data;return D(zJb,{data:u,selectedKey:d,onSelected:m,groupName:function(){return u().formId}})}, selectionListItemFormViewModel:CJb},q&&{timePickerViewModel:q},{upsellViewModel:function(t){return D(oJb,{data:t.data,noPadding:!0})}}))}, Footer:function(){return D(OC,{data:function(){return b().footer}},{panelFooterViewModel:function(t){return D(RJb,{data:t.data, disablePadding:!0,disablePrimaryButton:p})}, formPanelFooterViewModel:LJb,formFooterViewModel:function(t){return D(wJb,{data:t.data,disablePadding:!0})}})}, isFooterWizDefined:function(){return!!b().footer}}))},"Ya"); pKb.idomCompat=!0;bB(pKb,"yt-dialog-view-model",{props:{data:$A},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var qKb=new Bn("ICON_SET_TOKEN"),rKb=new Bn("ICON_URL_PROVIDER_TOKEN"),sKb=new Bn("PREFETCH_ICONS_TOKEN"),tKb=new Bn("ICON_MAP_FN_TOKEN");var uKb=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"],vKb=ll("wil_icon_max_concurrent_fetches",Infinity),mP=function(a,b,c){var d=this;this.iconSet=a;this.appDirection=b;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!ua.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode= x("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=x("wil_icon_network_first");this.renderWhenIdle=x("wil_icon_render_when_idle");this.waitForAnimationFrame=!x("wil_icon_load_immediately");this.isPurging=!1;a=function(){d.cacheStorageAvailable&&(d.cacheStorageAsync=ua.caches.open("yt-icons").then(function(f){return d.cacheStorageSync=f}).catch(function(){d.cacheStorageAvailable=!1}))}; c=(c==null?void 0:c())||{};c=l(Object.entries(c));for(b=c.next();!b.done;b=c.next()){var e=l(b.value);b=e.next().value;e=e.next().value;e=Dq(e);wKb(e);this.iconCache[b]=e.cloneNode(!0)}this.isPurging=xKb(this);this.isPurging instanceof Promise?this.isPurging.then(a):a()},zKb=function(a,b){var c,d,e,f,h; ra(function(m){if(!b.length)return m.return([]);c=[];d=l(b);for(e=d.next();!e.done;e=d.next())f=e.value,(h=a.resolveIcon(f))&&!a.iconCache[h.url]&&c.push(yKb(a,h).then(function(){}).catch(function(){})); return m.return(Promise.all(c))})},rWa=function(a,b){var c=a.resolveIcon(b); return c?a.renderingMode===1?AKb(a,c,a.renderingMode):(b=a.iconCache[c.url])?(b=b.cloneNode(!0),BKb(a,b),AKb(a,c,a.renderingMode,b)):yKb(a,c).then(function(d){var e=d?0:1;BKb(a,d);return AKb(a,c,e,d)}):(eo(new Dl("Icon not found",{iconShape:b})),function(){})},BKb=function(a,b){if(b){a.counter+=1; a="_yt"+a.counter;b=[b].concat(ia(b.getElementsByTagName("*")));b=l(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.tagName==="style"&&c.textContent)c.textContent=CKb(c.textContent,a,!0);else for(var d=l(c.attributes),e=d.next();!e.done;e=d.next()){e=e.value;e.name==="id"&&(e.value+=a);["mask","fill","clip-path"].includes(e.name)&&(e.value=CKb(e.value,a));if(e.name==="style"){var f=c.style;try{f.cssText=CKb(f.cssText,a,!0)}catch(t){var h=void 0,m=void 0,p=void 0,q=void 0;nP({error:((h=t)== null?void 0:(p=(m=h).toString)==null?void 0:p.call(m))||"",el:c.outerHTML,style:!!f,cssText:(q=f)==null?void 0:q.cssText})}}e.name==="xlink:href"&&(e.value=e.value.replace(/#(.*)/,"#$1"+a))}}},CKb=function(a,b,c){var d=/url\(["']?#(.*?)["']?\)/; (c===void 0?0:c)&&(d=/url\(["']?#(.*?)["']?\)/g);return a.replace(d,"url(#$1"+b+")")},AKb=function(a,b,c,d){return function(e,f){var h; var m=Object.assign({},{iconWidth:b.size+"px",iconHeight:b.size+"px",iconDisplay:"block"},f,{iconColor:(h=f==null?void 0:f.iconColor)!=null?h:"currentcolor"});h=li("DIV");f=m.iconColor;var p=m.iconFilter;m="width: "+m.iconWidth+"; height: "+m.iconHeight+"; display: "+m.iconDisplay+";";p&&(m+=" filter: "+p+";");c===0&&(m+=" fill: "+f+";");c===1&&(p=b.url,m+=" -webkit-mask: url("+p+") no-repeat center / cover; mask: url("+(p+") no-repeat center / cover; background-color: ")+f);b.allowMirroring&&a.appDirection=== "rtl"&&(m+=" transform: scale(-1, 1); transform-origin: center center;");h.setAttribute("style",m);c===0&&d&&h.appendChild(d);e.appendChild(h)}},yKb=function(a,b){var c,d,e; return ra(function(f){c=function(h){return Pb(h)}; d=b.url;if(!DKb(d))throw Error("URL not in list of allowed domains or not ending in \".svg\".");e=EKb(a,d);return f.return(e.then(function(h){return h.clone().text()}).then(function(h){var m=c(h); h=b.size;var p=li("DIV");mc(p,m);if(p.firstElementChild!==void 0)m=p.firstElementChild;else for(m=p.firstChild;m&&m.nodeType!=1;)m=m.nextSibling;m=oi(m);h=wKb(m,h);a.iconCache[d]=h.cloneNode(!0);delete a.responsePromises[d];return h}).catch(function(){}))})},FKb=function(a){var b,c=(b=a.requestAninmationFrameResolver)==null?void 0:b.promise; c||(a.requestAninmationFrameResolver=new nj,c=a.requestAninmationFrameResolver.promise,ua.requestAnimationFrame(function(){var d;(d=a.requestAninmationFrameResolver)==null||d.resolve();a.requestAninmationFrameResolver=null})); return c},EKb=function(a,b){var c,d; return ra(function(e){if(e.nextAddress==1)return a.waitForAnimationFrame?e.yield(FKb(a),2):e.jumpTo(2);c=a.responsePromises[b];c||(d=function(){var f,h,m;return ra(function(p){switch(p.nextAddress){case 1:if(!a.cacheStorageAvailable){f=void 0;p.jumpTo(2);break}if(h=a.cacheStorageSync){p.jumpTo(3);break}return p.yield(a.cacheStorageAsync,4);case 4:h=p.yieldResult;case 3:f=h;case 2:return m=f,a.isNetworkFirstStrategy?p.return(a.fetchAndUpdateCache(b,m).catch(a.getCacheStorageResponse.bind(a,b,m))): p.return(a.getCacheStorageResponse(b,m).catch(a.fetchAndUpdateCache.bind(a,b,m)));}})},c=a.renderWhenIdle?new Promise(function(f,h){Il(0,function(){d().then(f).catch(h)},10)}):d(),a.responsePromises[b]=c); return e.return(c.catch(function(f){delete a.responsePromises[b];nP({error:(f==null?0:f.toString)?f.toString():"",url:b});throw f}))})}; mP.prototype.fetchAndUpdateCache=function(a,b){var c=this;return ra(function(d){return d.return(GKb(c,a).then(function(e){HKb(c,a,e,b);return e}))})}; var GKb=function(a,b){var c;return ra(function(d){if(a.numFetches0)return IKb(a,b,c-1); throw f}))})},HKb=function(a,b,c,d){ra(function(e){return d?e.return(new Promise(function(f){Il(0,function(){var h,m; return ra(function(p){switch(p.nextAddress){case 1:if(!a.isNetworkFirstStrategy){h=void 0;p.jumpTo(2);break}return p.yield(d.match(b).catch(function(){}),3); case 3:h=p.yieldResult;case 2:if(m=h){p.jumpTo(4);break}return p.yield(d.put(b,c.clone()).catch(function(q){nP({error:(q==null?0:q.toString)?q.toString():"",url:b})}),4); case 4:f(),p.jumpToEnd();}})},50)})):e.return()})}; mP.prototype.getCacheStorageResponse=function(a,b){return ra(function(c){return b?c.return(b.match(a).then(function(d){return d&&d.ok?d:Promise.reject()})):c.return(Promise.reject())})}; var wKb=function(a,b){b===void 0||a.getAttribute("viewBox")||a.setAttribute("viewBox","0 0 "+b+" "+b);a.setAttribute("focusable","false");a.setAttribute("aria-hidden","true");b=x("killswitch_remove_icon_fill_color");a.getAttribute("fill")!=="currentcolor"&&a.getAttribute("fill")!=="currentColor"||b||a.removeAttribute("fill");try{a.style.pointerEvents="none",a.style.display="inherit",a.style.width="100%",a.style.height="100%"}catch(e){var c;nP({error:((c=e)==null?0:c.toString)?e.toString():""});try{a.style.cssText= "pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(f){var d;nP({error:((d=f)==null?0:d.toString)?f.toString():""})}}return a},DKb=function(a){for(var b=l(uKb),c=b.next();!c.done;c=b.next())if(a.startsWith(c.value)&&a.endsWith(".svg"))return!0; return!1}; mP.prototype.resolveIcon=function(a){return this.iconSet.resolveIcon(a)}; var nP=function(a){fo(new Dl("Error in IconManager",a))},xKb=function(a){if(x("wil_icons_cache_purge_killswitch"))return!1; try{var b=ua.localStorage}catch(f){return!1}if(!b||!a.cacheStorageAvailable)return!1;var c=function(f){try{var h;(h=b)==null||h.setItem("yt-icons-last-purged",f.toString())}catch(p){var m;nP({error:((m=p)==null?0:m.toString)?p.toString():""})}},d=Number(b.getItem("yt-icons-last-purged")); if(!d)return d=new Date,d=d.setDate(d.getDate()-Math.floor(Math.random()*90+1)),c(d),!1;if(function(f,h){f=new Date(f);h=new Date(h);return h.getMonth()-f.getMonth()+12*(h.getFullYear()-f.getFullYear())}(d,Date.now())<3)return!1; try{return ua.caches.delete("yt-icons").then(function(f){f&&c(Date.now());return f}).catch(function(){return!1}).finally(function(){a.isPurging=!1})}catch(f){var e; nP({error:((e=f)==null?0:e.toString)?f.toString():""});return!1}}; mP[An]=[qKb,WB,Cn(tKb)];var JKb=function(a,b){this.iconManager=a;this.iconsToFetch=b},LKb=function(){var a=Fn().resolve(JKb),b=KKb,c=b!=null?b:a.iconsToFetch; c!=null&&c.length?Il(0,function(){var d=[],e=new Set(c).values();e=l(e);for(var f=e.next();!f.done;f=e.next()){f=f.value;for(var h=l(Object.values(uWa)),m=h.next();!m.done;m=h.next())d.push({iconName:f,iconStyle:m.value})}zKb(a.iconManager,d)},0):Promise.resolve()}; JKb[An]=[$y,Cn(sKb)];function MKb(a,b,c){b=b===void 0?{}:b;var d,e=(d=z(a.commandMetadata,ly))==null?void 0:d.url;d=b.form||{};!c||d.element||d.skipDefaultElement||(b.form=b.form||{},b.form.element=c);if(e&&e!=="/service_ajax")return{type:0,command:a,form:b.form};if(x("kevlar_service_command_check")){if(qL(Fn().resolve(DK),a))return Object.assign({},{type:1,command:a},b)}else{var f;if((f=z(a.commandMetadata,ly))==null?0:f.apiUrl)return Object.assign({},{type:1,command:a},b)}return{type:2,command:a,form:b.form}} function zSa(a){if(a.form){var b=a.form,c=Object.assign({},b);b=b.element;c=(delete c.element,c);if(b)return[$u(b,[a.command,c,a.commandController])]}return[]} function ASa(a){if(a.form){var b=a.form,c=Object.assign({},b);b=b.element;c=(delete c.element,c);b&&Zu(b,[a.command],b,c)}} ;var NKb=new Ql("yt-live-chat");function OKb(a){var b;return a==null?void 0:(b=a.data)==null?void 0:b.trackingParams} var oP=function(){var a=E.apply(this,arguments)||this;a.hideModActivity=!1;a.hasNewPaidMessage=!1;a.addEngagementPanels=!rL();a.isOverlayFeed=a.getIsOverlayFeed();a.popoutWindowCheckIntervalId=null;a.supportedTooltipTargets=[];a.closeActionPanelTimerId=null;a.delayCloseActionPanelTimerId=null;a.tooltipTimerIds=new Set;a.queuedTooltips=[];a.queuedDialogs=[];a.isPopupConfigReady=!1;a.isDialogContainerReady=!1;a.popoutWindow=null;a.actionMap={"yt-wallet-dialog-closed":"onWalletDialogClose","yt-live-chat-close-buy-flow":"closeBuyFlow", "yt-live-chat-close-engage-with-audience-editor-panels":"closeEngageWithAudienceEditorPanels","yt-live-chat-actions":"handleLiveChatActions_","yt-show-live-chat-dialog-action":"handleShowLiveChatDialogAction","yt-close-live-chat-action-panel-action":"handleCloseLiveChatActionPanelAction","yt-live-chat-popup-config-ready":"onPopupConfigReady","yt-live-chat-dialog-container-ready":"onDialogContainerReady","yt-live-chat-picker-changed":"handlePickerChanged_","yt-replace-live-chat-renderer-action":"handleReplaceRendererAction", "yt-entity-update-command":"handleEntityUpdateCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged","yt-signal-action-hide-live-chat":"onYtSignalActionHideLiveChat","yt-live-chat-reload-start":"onLiveChatReloadStart","yt-live-chat-reload-success":"onLiveChatReloadConclusion","yt-live-chat-reload-fail":"onLiveChatReloadConclusion"};return a}; k(oP,E);g=oP.prototype;g.computeEnableBannerUpdate=function(a){return!!a.enableCreatorWebBannerRelocation}; g.getIsOverlayFeed=function(){var a=document.querySelector("yt-live-chat-app");a=!(!a||!a.hasAttribute("overlay-feed"));this.liveChatOverlayFeedDisplayedCounter&&this.liveChatOverlayFeedDisplayedCounter.increment(a);return a}; g.configureRendererStamper=function(){return{"data.itemList":{id:"item-list",mapping:{liveChatItemListRenderer:{component:"yt-live-chat-item-list-renderer",properties:{emojiManager:"[[emojiManager]]",participantsManager:"[[participantsManager]]",enableBannerUpdate:"[[enableBannerUpdate]]"}}}},"data.ticker":{id:"ticker",mapping:{liveChatTickerRenderer:{component:"yt-live-chat-ticker-renderer"}}},"data.promotion":{id:"overlay-dialog",mapping:{upsellDialogRenderer:"yt-live-chat-upsell-dialog-renderer"}}, "data.actionPanel":{id:"input-panel",mapping:{liveChatMessageInputRenderer:{component:"yt-live-chat-message-input-renderer",properties:{disableEmojiPickerIncrementalLoading:"[[disableEmojiPickerIncrementalLoading]]",emojiManager:"[[emojiManager]]",participantsManager:"[[participantsManager]]",genericErrorMessage:"[[data.clientMessages.genericError]]"}},liveChatRestrictedParticipationRenderer:"yt-live-chat-restricted-participation-renderer",messageRenderer:{component:"yt-live-chat-message-renderer", params:{subtextOnBottom:!0}}}},messageBuyFlowRenderer:{id:"buy-flow",mapping:{liveChatMessageBuyFlowRenderer:{component:"yt-live-chat-message-buy-flow-renderer",properties:{emojiManager:"[[emojiManager]]",participantsManager:"[[participantsManager]]"}}}},stickerBuyFlowRenderer:{id:"super-sticker-buy-flow",mapping:{superStickerBuyFlowRenderer:"yt-live-chat-paid-sticker-panel-renderer"}},sponsorshipsGiftOfferRenderer:{id:"sponsorships-gift-buy-flow",mapping:{sponsorshipsGiftOfferRenderer:"ytd-sponsorships-gift-offer-renderer"}}, donationFlowRenderer:{id:"donation-flow",mapping:{donationAmountPickerRenderer:{component:"ytd-donation-amount-picker-renderer",attributes:{"live-chat":!0}}}},qnaStartPanelRenderer:{id:"qna-start-panel",mapping:{liveChatQnaStartPanelRenderer:{component:"yt-live-chat-qna-start-panel-renderer"}}},pollEditorPanelRenderer:{id:"poll-editor-panel",mapping:{liveChatPollEditorPanelRenderer:{component:"yt-live-chat-poll-editor-panel-renderer",properties:{emojiManager:"[[emojiManager]]"}}}},dialog:{id:"dialog", mapping:{liveChatDialogRenderer:"yt-live-chat-dialog-renderer"}},actionPanelRenderer:{id:"action-panel",mapping:{liveChatActionPanelRenderer:{component:"yt-live-chat-action-panel-renderer",properties:{enableBannerUpdate:"[[enableBannerUpdate]]"}}},reuseComponents:!1},channelGuidelinesDialogRenderer:{id:"channel-guidelines",mapping:{liveChatChannelGuidelinesDialogRenderer:"yt-live-chat-channel-guidelines-dialog-renderer"}}}}; g.testOnlyRegisterNetworkManager=function(a){Fn().addProvider({provide:fE,useValue:a})}; g.testOnlyUnRegisterNetworkManager=function(){En=null}; g.created=function(){var a=this;if(!fz.instance){CSa(function(c,d){return MKb(c,d,a.hostElement)},function(c){if(!c.command)return[]; var d;if((d=c.form)==null?0:d.element)d=c.form.element,x("web_button_rework_with_live")?Gt(d,"yt-navigate",Object.assign({},c.form,{endpoint:c.command})):d.fire("yt-navigate",Object.assign({},c.form,{endpoint:c.command}));return[]}); var b=Fn();b.addProvider({provide:JB,useValue:fz.instance});b.addProvider({provide:tL,useFactory:gz});b.addProvider({provide:PIb,useClass:fJb});b.addProvider({provide:GL,useClass:TIb});b.addProvider({provide:HL,useClass:iP});b.addProvider({provide:WAb,useClass:gP});b.addProvider({provide:VAb,useClass:NIb});x("web_use_flow_state_manager")&&(b.addProvider({provide:zL,useClass:KAb}),b.addProvider({provide:DL,useClass:DL}),b.addProvider({provide:CL,useClass:CL}),b.addProvider({provide:BL,useClass:BL}), b.addProvider({provide:AL,useClass:AL}));b.addProvider({provide:FL,useClass:FL});b.addProvider({provide:$y,useClass:mP});b.addProvider({provide:JKb,useClass:JKb});b.addProvider({provide:KL,useClass:KL});b.addProvider({provide:IL,useClass:IL});b.addProvider({provide:LL,useClass:LL});b.addProvider({provide:uL,useClass:uL});b.addProvider({provide:xL,useClass:xL});b.addProvider({provide:vL,useClass:vL});b.addProvider({provide:OL,useClass:OL});b.addProvider({provide:JL,useClass:JL});b.addProvider({provide:ZAb, useClass:YIb});b.addProvider({provide:eP,useClass:eP});b.addProvider({provide:fP,useClass:fP});b.addProvider({provide:EL,useFactory:function(){return new EL(a.ytLiveChatReduxBehavior.store)}}); Fn().addProvider({provide:uw,useValue:this.ytRendererBehavior.visibilityObserver});this.liveChatOverlayFeedDisplayedCounter=new YJa;this.liveChatAddInteractivityWidgetCounter=new ZJa}}; g.ready=function(){wt(this.hostElement).appendChild(this.participantsManager);this.sharedTooltipAnimationDelay=0;this.sharedTooltipPosition="top"}; g.attached=function(){var a=this;Gt(this.hostElement,"resize");bt(function(){Ft(a.hostElement,{"--scrollbar-width":hIb(a.hostElement)+"px"})})}; g.detached=function(){this.popoutWindow=null;this.closePopoutWindow();this.ytLiveChatReplayBehavior.replayBuffer_=null;clearTimeout(this.closeActionPanelTimerId);clearTimeout(this.delayCloseActionPanelTimerId);for(var a=l(this.tooltipTimerIds),b=a.next();!b.done;b=a.next())clearTimeout(b.value);this.queuedTooltips=[]}; g.dataChanged_=function(){this.emojiManager&&this.data&&this.data.emojis&&this.emojiManager.load(this.data.emojis,this.emojiManager);if(this.participantsManager&&this.data){this.data.viewerName&&(this.participantsManager.viewerName=this.data.viewerName);var a=this.get("participantsList.liveChatParticipantsListRenderer.participants",this.data);if(a)for(var b=0;b1)this.handleYtActionCommand(a,b.args[1]);else if(b.actionName==="yt-command-executor-command"&&(b==null?0:b.args)&&b.args.length>0)for(var c=l(b.args[0].commandExecutorCommand.commands),d=c.next();!d.done;d=c.next())this.handleYtActionCommand(a,d.value);else if((b==null?void 0:b.actionName)==="yt-live-chat-open-qna-start-panel-command"){a.stopPropagation();var e,f;this.handleLiveChatOpenQnaStartPanelCommand(b== null?void 0:(e=b.args)==null?void 0:(f=e[0])==null?void 0:f.liveChatOpenQnaStartPanelCommand)}else if((b==null?void 0:b.actionName)==="yt-live-chat-open-poll-editor-panel-command"){a.stopPropagation();var h,m;this.handleLiveChatOpenPollEditorPanelCommand(b==null?void 0:(h=b.args)==null?void 0:(m=h[0])==null?void 0:m.liveChatOpenPollEditorPanelCommand)}else if((b==null?void 0:b.actionName)==="yt-live-chat-dialog-endpoint"){a.stopPropagation();var p,q;this.handleLiveChatDialogEndpoint(b==null?void 0: (p=b.args)==null?void 0:(q=p[0])==null?void 0:q.liveChatDialogEndpoint)}else if((b==null?void 0:b.actionName)==="yt-show-sponsorships-gift-offer-dialog-command"){a.stopPropagation();var t,u,v;this.handleSponsorshipsGiftOfferEndpointRequest(this.getOriginatingPdgNodeFromEvent(a),b==null?void 0:(t=b.args)==null?void 0:(u=t[0])==null?void 0:(v=u.showSponsorshipsGiftOfferDialogCommand)==null?void 0:v.contentCommand)}else if((b==null?void 0:b.actionName)==="yt-live-chat-donations-endpoint"){var w,y;this.handleLiveChatDonationsEndpoint(b== null?void 0:(w=b.args)==null?void 0:(y=w[0])==null?void 0:y.liveChatDonationsEndpoint)}else if((b==null?void 0:b.actionName)==="yt-popout-live-chat-endpoint"){var A,C;this.handlePopoutLiveChatEndpoint(a,b==null?void 0:(A=b.args)==null?void 0:(C=A[0])==null?void 0:C.popoutLiveChatEndpoint)}else if((b==null?void 0:b.actionName)==="yt-show-live-chat-participants-endpoint")this.showParticipants(),a.stopPropagation();else if((b==null?void 0:b.actionName)==="yt-toggle-live-chat-timestamps-endpoint")this.hideTimestamps= !this.hideTimestamps,a.stopPropagation();else if((b==null?void 0:b.actionName)==="yt-toggle-live-reactions-mute-command")this.reactionsMuted=!this.reactionsMuted,Xu(this.hostElement,"yt-live-reactions-mute",[this.reactionsMuted]),a.stopPropagation();else if((b==null?void 0:b.actionName)==="yt-toggle-live-chat-moderation-activity-command"){a.stopPropagation();var I;this.hideModActivity=a=!!(b==null?0:(c=b.args)==null?0:(d=c[0])==null?0:(I=d.toggleLiveChatModerationActivityCommand)==null?0:I.filtered); this.saveModActivityFilteringPrefs(a)}else if((b==null?void 0:b.actionName)==="yt-show-live-chat-tooltip-command"){var K;(a=b==null?void 0:(K=b.args)==null?void 0:K[0])&&!this.maybeHandleShowLiveChatTooltipCommand(a)&&this.queuedTooltips.push(a)}}; g.handleYtActionCommand=function(a,b){if(z(b,zqb))this.clearPinnedMessage(),a.stopPropagation(),this.handleBuyFlowRequest(this.getOriginatingPdgNodeFromEvent(a),b,this.handlePurchaseEndpointResponse,this.handlePurchaseEndpointError);else if(z(b,Aqb))a.stopPropagation(),this.handleBuyFlowRequest(this.getOriginatingPdgNodeFromEvent(a),b,this.handlePurchaseSuperStickerEndpointResponse,this.handlePurchaseSuperStickerEndpointError);else if(z(b,lsb)){a.stopPropagation();var c;this.handleSponsorshipsGiftOfferEndpointRequest(this.getOriginatingPdgNodeFromEvent(a), (c=z(b,lsb))==null?void 0:c.contentCommand)}else z(b,Apb)?this.handlePopoutLiveChatEndpoint(a,z(b,Apb)):z(b,Dpb)?(this.showParticipants(),a.stopPropagation()):z(b,Gpb)?(this.hideTimestamps=!this.hideTimestamps,a.stopPropagation()):z(b,Hpb)?(this.reactionsMuted=!this.reactionsMuted,Xu(this.hostElement,"yt-live-reactions-mute",[this.reactionsMuted]),a.stopPropagation()):z(b,Epb)?(Vu("yt-show-live-chat-settings",{}),a.stopPropagation()):z(b,gK)?(a.stopPropagation(),Vu("yt-purchase-membership",b)):z(b, ytb)&&x("sponsorships_use_ypc_offers_endpoint_on_web")?(a.stopPropagation(),Vu("yt-purchase-membership",b)):z(b,fK)?(a.stopPropagation(),this.selectedPanel=1,Xu(this.hostElement,"yt-live-chat-start-buy-flow",[b,{},this.buyFlowCallback.bind(this)])):x("sponsorships_free_creator_gifting")&&z(b,hK)?(a.stopPropagation(),this.selectedPanel=1,Xu(this.hostElement,"yt-live-chat-call-transaction-endpoint",[b,{},this.buyFlowCallback.bind(this)])):this.shouldTunnelOutServiceRequest(b)?(a.stopPropagation(),Vu("yt-tunnel-out-live-service-request", b)):z(b,Lob)||z(b,Fpb)||z(b,QJ)||z(b,Kob)?(Xu(this.hostElement,"yt-live-chat-actions",[[b]]),a.stopPropagation()):z(b,iy)?(a.stopPropagation(),Zu(this.hostElement,z(b,iy).commands||null,null)):z(b,npb)&&(a.stopPropagation(),this.handleLiveChatDialogEndpoint(z(b,npb)))}; g.buyFlowCallback=function(a){Xu(this.hostElement,"yt-live-chat-close-buy-flow");if(a.success){var b,c;(a==null?0:(b=a.response)==null?0:(c=b.data)==null?0:c.command)&&Xu(this.hostElement,"yt-live-chat-actions",[[a.response.data.command]])}else this.handleBuyFlowError(a)}; g.handleBuyFlowError=function(a){z(a.errorMessageRenderer,pqb)&&Xu(this.hostElement,"yt-live-chat-add-message-to-toast",[a.errorMessageRenderer]);if(a.errorCommand){var b=z(a.errorCommand,ntb);z(b==null?void 0:b.messageRenderer,pqb)?Xu(this.hostElement,"yt-live-chat-add-message-to-toast",[b.messageRenderer]):Xu(this.hostElement,"yt-live-chat-actions",[[a.errorCommand]])}}; g.onYtCloseUpsellDialog=function(a){a.stopPropagation();this.set("data.promotion",null)}; g.onYtLiveChatCloseChannelGuidelinesDialog=function(a){a.stopPropagation();this.set("channelGuidelinesDialogRenderer",null)}; g.openPopoutWindow=function(a){var b={target:Math.random().toString(36),menubar:!1,location:!1,scrollbars:!1,toolbar:!1};b=b===void 0?{}:b;b.target=b.target||"YouTube";b.width=b.width||"600";b.height=b.height||"600";(a=ufb(a,b))?(a.opener||(a.opener=window),a.focus()):a=null;if(this.popoutWindow=a)this.selectedTab=2,this.checkPopoutWindow()}; g.closePopoutWindow=function(){this.popoutWindow&&(this.popoutWindow.close(),this.popoutWindow=null);this.popoutWindowCheckIntervalId&&(ct(this.popoutWindowCheckIntervalId),this.popoutWindowCheckIntervalId=null);this.selectedTab=0;Xu(this.hostElement,"yt-live-chat-scroll-to-bottom")}; g.checkPopoutWindow=function(){var a=this;this.isAttached&&(!this.popoutWindow||this.popoutWindow.closed?this.closePopoutWindow():this.popoutWindowCheckIntervalId=bt(function(){a.checkPopoutWindow()},1E3))}; g.selectedPanelChanged=function(){var a=this;if(this.data&&this.data.itemList){this.clearPinnedMessage();var b=this.hostElement.querySelector("#panel-pages > .iron-selected");(b=b&&b.children[0])&&b.focus();bt(function(){Xu(a.hostElement,"yt-live-chat-scroll-to-bottom")})}}; g.selectedTabChanged=function(a,b){var c=this;if(b!==void 0){if(this.enableBannerUpdate){var d;(d=this.bannerManager)==null||d.reset()}if(this.selectedTab===0){bt(function(){Xu(c.hostElement,"yt-live-chat-feed-visible",[!0])}); var e;(e=wt(this.hostElement).querySelector("#input-panel"))==null||e.focus()}else this.selectedTab===5&&Xu(this.hostElement,"yt-lwe-emoji-customization-visible",[!0])}}; g.hideTimestampsChanged=function(){NKb.set("show-timestamps",!this.hideTimestamps);Ft(this.hostElement)}; g.reactionsMutedChanged=function(){NKb.set("allow-reactions",!this.reactionsMuted)}; g.saveModActivityFilteringPrefs=function(a){var b=Bl();Bna(195,!a);b.save()}; g.isClosingActionPanelChanged=function(){!this.isClosingActionPanel&&this.queuedActionPanel&&(this.set("actionPanelRenderer",this.queuedActionPanel),this.queuedActionPanel=null)}; g.computeIsChatHidden=function(a){return a&&a.initialDisplayState?a.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":this.hidden}; g.hiddenChanged=function(){var a=this;this.hidden||bt(function(){Ft(a.hostElement,{"--scrollbar-width":hIb(a.hostElement)+"px"})})}; g.handleLiveChatActions_=function(a){var b=this;a=l(a);for(var c=a.next(),d={};!c.done;d={action$jscomp$148:void 0},c=a.next())d.action$jscomp$148=c.value,z(d.action$jscomp$148,EJ)&&this.handleLiveChatActions_(z(d.action$jscomp$148,EJ).actions||[]),z(d.action$jscomp$148,Iob)?this.handleReplaceRendererAction(d.action$jscomp$148):z(d.action$jscomp$148,Cob)?this.handleShowLiveChatDialogAction(d.action$jscomp$148):z(d.action$jscomp$148,Job)?this.handleShowLiveChatSurveyCommand(z(d.action$jscomp$148,Job)): z(d.action$jscomp$148,Kob)?this.maybeHandleShowLiveChatTooltipCommand(d.action$jscomp$148)||this.queuedTooltips.push(d.action$jscomp$148):z(d.action$jscomp$148,Hob)?this.handleShowLiveChatChannelGuidelinesDialogAction(d.action$jscomp$148):z(d.action$jscomp$148,Eob)?this.handleShowLiveChatActionPanelAction(z(d.action$jscomp$148,Eob)):z(d.action$jscomp$148,Fob)?this.handleCloseLiveChatActionPanelAction(d.action$jscomp$148):z(d.action$jscomp$148,WJ)?this.useResolveCommand?bt(function(e){return function(){b.ytRendererBehavior.resolveCommand(e.action$jscomp$148)}}(d), 1E3):bt($u.bind(this,this.hostElement,[d.action$jscomp$148]),1E3):z(d.action$jscomp$148,iy)?Xu(this.hostElement,"yt-live-chat-actions",[z(d.action$jscomp$148,iy).commands]):z(d.action$jscomp$148,Dob)||z(d.action$jscomp$148,QJ)?Zu(this.hostElement,[d.action$jscomp$148],null):z(d.action$jscomp$148,Oob)?this.handleLiveChatReportPresenceCommand(z(d.action$jscomp$148,Oob)):z(d.action$jscomp$148,Nob)?this.handleLiveChatReportModerationStateCommand(z(d.action$jscomp$148,Nob)):z(d.action$jscomp$148,Fpb)?( this.hideModActivity=c=!!z(d.action$jscomp$148,Fpb).filtered,this.saveModActivityFilteringPrefs(c)):z(d.action$jscomp$148,HJ)?this.maybeAddNewMessageReminder(z(d.action$jscomp$148,HJ).item):z(d.action$jscomp$148,Zmb)?this.handleEntityUpdateCommand(d.action$jscomp$148):z(d.action$jscomp$148,zob)?this.handleAddInteractivityWidgetAction(d.action$jscomp$148):z(d.action$jscomp$148,Aob)?this.handleUpdateOrAddInteractivityWidgetAction(d.action$jscomp$148):z(d.action$jscomp$148,XJ)&&(this.maybeHandleShowDialogCommand(d.action$jscomp$148)|| this.queuedDialogs.push(d.action$jscomp$148))}; g.maybeAddNewMessageReminder=function(a){if(a){var b=Object.keys(a)[0];(a=a[b])&&a.durationSec===a.fullDurationSec&&(this.hasNewPaidMessage=!0)}}; g.handleShowLiveChatActionPanelAction=function(a){a.panelToShow&&(this.isClosingActionPanel?this.queuedActionPanel=a.panelToShow:this.set("actionPanelRenderer",a.panelToShow))}; g.handleCloseLiveChatActionPanelAction=function(a){this.executeOrScheduleCloseActionPanel(a)}; g.executeOrScheduleCloseActionPanel=function(a,b){var c=this;b=b===void 0?!1:b;var d=this.get("liveChatActionPanelRenderer.id",this.actionPanelRenderer),e=this.get("closeLiveChatActionPanelAction.targetPanelId",a),f=this.get("closeLiveChatActionPanelAction.delayMs",a),h=!!this.get("closeLiveChatActionPanelAction.skipOnDismissCommand",a);d===e?f>0&&!b?(this.delayCloseActionPanelTimerId!=null&&clearTimeout(this.delayCloseActionPanelTimerId),this.delayCloseActionPanelTimerId=setTimeout(function(){c.closeActionPanel(h); c.delayCloseActionPanelTimerId=null},f)):this.closeActionPanel(h):this.get("liveChatActionPanelRenderer.id",this.queuedActionPanel)===e&&(f>0&&!b?this.delayCloseActionPanelTimerId=setTimeout(function(){c.executeOrScheduleCloseActionPanel(a,!0); c.delayCloseActionPanelTimerId=null},f):this.queuedActionPanel=null)}; g.isEligibleToReplaceLiveChatActionPanelRenderer=function(a){if(this.isClosingActionPanel||!this.hasActionPanelRenderer||!a)return!1;var b=this.get("actionPanelRenderer.liveChatActionPanelRenderer.id");a=this.get("liveChatActionPanelRenderer.id",a);return b===a}; g.handleReplaceRendererAction=function(a){var b=this,c=z(a,Iob);if(c){a=null;switch(c.toReplace){case"REPLACE_LIVE_CHAT_ACTION_PANEL":a="data.actionPanel";break;case"REPLACE_LIVE_CHAT_HEADER":a="data.header";break;case"REPLACE_LIVE_CHAT_ACTION_PANEL_RENDERER":var d=c.replacement;if(d&&this.isEligibleToReplaceLiveChatActionPanelRenderer(d)){var e=z(d,rpb);e&&Object.keys(e).forEach(function(f){f!=="contents"?b.set("actionPanelRenderer.liveChatActionPanelRenderer."+f,e[f]):(f={updateLiveChatPollAction:{pollToUpdate:{pollRenderer:b.get("contents.pollRenderer", e)}}},b.useResolveCommand?b.ytRendererBehavior.resolveCommand(f):Xu(b.hostElement,"yt-update-live-chat-poll-action",[f]))})}break; default:return;}a&&(this.set(a,c.replacement||null),bt(function(){Xu(b.hostElement,"yt-live-chat-component-replaced",[c])}))}}; g.handleLiveChatReportPresenceCommand=function(a){var b={};b.timestamp=a.presentAtMs;ao("liveChatUserPresent",a.liveChatUserPresent,b)}; g.handleLiveChatReportModerationStateCommand=function(){Vu("yt-report-moderation-state-log",{})}; g.handleShowLiveChatDialogAction=function(a){var b=z(a,Cob);(b==null?0:b.dialog)&&this.set("data.promotion",b.dialog);var c;a=(c=this.data)==null?void 0:c.trackingParams;var d;c=(d=z(b==null?void 0:b.dialog,Hrb))==null?void 0:d.trackingParams;a&&c&&XL(a,Qv(c))}; g.handleShowLiveChatChannelGuidelinesDialogAction=function(a){var b;((b=z(a,Hob))==null?0:b.dialog)&&this.set("channelGuidelinesDialogRenderer",z(a,Hob).dialog)}; g.handleShowLiveChatSurveyCommand=function(a){Vu("yt-show-survey",a.survey)}; g.handleEngagementPanelVisibilityChanged=function(a,b){if(b==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){var c;switch((c=a.identifier)==null?void 0:c.tag){case"PAlc_channel_activity":this.selectedTab=3;break;case"PAlc_channel_activity_video_messages":this.selectedTab=4;break;case"PAlc_emoji_customization":this.selectedTab=5;break;case"creator_goal_setup_flow_engagement_panel":this.selectedTab=6;break;case"creator_schedule_fanzone_panel":this.selectedTab=8;break;case"PAlive_viewer_leaderboard":this.selectedTab= 7;}}else if(b==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"){var d;switch((d=a.identifier)==null?void 0:d.tag){case"PAlc_channel_activity":case"PAlc_emoji_customization":case"creator_goal_setup_flow_engagement_panel":case"creator_schedule_fanzone_panel":case"PAlive_viewer_leaderboard":this.selectedTab=0;break;case"PAlc_channel_activity_video_messages":this.selectedTab=3;}}}; g.maybeHandleShowDialogCommand=function(a){if(!this.isDialogContainerReady)return!1;this.ytRendererBehavior.resolveCommand(a);return!0}; g.maybeHandleShowLiveChatTooltipCommand=function(a){var b=this;if(!this.isPopupConfigReady||this.supportedTooltipTargets.length===0)return!1;a=z(a,Kob);if(a=z(a==null?void 0:a.tooltip,trb)){var c=this.getTooltipTarget(a);if(!c)return!1;var d;if((a==null?0:(d=a.promoConfig)==null?0:d.impressionEndpoints)&&a.promoConfig.isCounterfactual)return this.useResolveCommand?this.ytRendererBehavior.resolveCommand(a.promoConfig.impressionEndpoints[0]):$u(this.hostElement,[a.promoConfig.impressionEndpoints[0]]), !0;var e={openPopupAction:{popup:{tooltipRenderer:a},popupType:"HINT",position:this.getTooltipOpenPopupPosition(c,a)}};a.targetId==="live-chat-message-input"&&(z(e,ky).popupType="HINT_PERSISTENT");if(a.targetId==="live-chat-action-panel-poll-context-menu"||a.targetId==="engage-with-audience-picker"){var f=setTimeout(function(){b.sendPopupActions(e,c);b.tooltipTimerIds.delete(f)},3E3); this.tooltipTimerIds.add(f)}else this.sendPopupActions(e,c);return!0}return!1}; g.sendPopupActions=function(a,b){var c=this;Xu(this.hostElement,"yt-open-popup-action",[a,b]);b.id!=="live-chat-message-input"&&setTimeout(function(){Xu(c.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},2E4)}; g.handlePickerChanged_=function(a){this.hasPickerOpen=!!a}; g.getTooltipOpenPopupPosition=function(a,b){var c;if((b==null?void 0:(c=b.suggestedPosition)==null?void 0:c.type)==="TOOLTIP_POSITION_TYPE_BELOW")return"OPEN_POPUP_POSITION_BOTTOM";if(a.id==="live-chat-message-input")return"OPEN_POPUP_POSITION_TOP";if(a.id==="live-chat-item-list-panel")return"OPEN_POPUP_POSITION_LEFT";c=!1;var d;if(b==null?0:(d=b.suggestedPosition)==null?0:d.type){var e;c=["TOOLTIP_POSITION_TYPE_BELOW_START","TOOLTIP_POSITION_TYPE_BELOW_END"].includes(b==null?void 0:(e=b.suggestedPosition)== null?void 0:e.type)}a=a.getBoundingClientRect();b=this.hostElement.getBoundingClientRect();return a.left
\n\n
\n \n
\n
\n \n
\n \n
\n
\n \n \n
\n \n \n \n
\n
\n
\n
\n \n \n \n
\n
\n \n
\n
\n
\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;EHb===void 0&&(EHb=document.createElement("template"));var d=EHb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);FHb=a}a=FHb;return a},{mode:0});var PKb;var QKb;var pP=function(){var a=E.apply(this,arguments)||this;a.hidden=!1;return a}; k(pP,E);pP.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&Fn().resolve(JB).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}; pP.prototype.computeHidden=function(a){return!!a}; ba.Object.defineProperties(pP.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.ytRendererBehavior.getSimpleString(this.data.label)}}, value:{configurable:!0,enumerable:!0,get:function(){if(this.data&&(typeof this.data.stringValue==="string"||typeof this.data.int32Value==="number"))return this.data.stringValue?this.data.stringValue:this.data.int32Value}}}); n([F(Yz.YtRendererBehavior),r("design:type",Object)],pP.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],pP.prototype,"data",void 0);n([M({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),r("design:type",Object)],pP.prototype,"hidden",void 0);n([H("data.label"),r("design:type",String),r("design:paramtypes",[])],pP.prototype,"label",null);n([H("data"),r("design:type",Object),r("design:paramtypes",[])],pP.prototype,"value",null); n([gu({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],pP); Tu(pP,"ytd-dropdown-item-renderer",function(){if(QKb!==void 0)return QKb;var a=document.createElement("template");Q(a,"\n \n \n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return QKb=a},{mode:1});var RKb;var SKb;var qP=function(){return E.apply(this,arguments)||this}; k(qP,E);n([F(Yz.YtRendererBehavior),r("design:type",Object)],qP.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],qP.prototype,"data",void 0);n([M({computed:"getSimpleString(data.label)"}),r("design:type",String)],qP.prototype,"label",void 0);n([gu({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],qP); Tu(qP,"ytd-navigation-dropdown-item-renderer",function(){if(SKb!==void 0)return SKb;var a=document.createElement("template");Q(a," \n \n \n \n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return SKb=a},{mode:1});var TKb;var rP=function(){var a=E.apply(this,arguments)||this;a.disabled=!1;a.boundCaptureFocus=function(b){a.onCaptureFocus(b)}; return a}; k(rP,E);g=rP.prototype;g.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)}; g.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)}; g.onCaptureFocus=function(a){lt(a).indexOf(this.hostElement)!==-1&&this.item.focus()}; g.getIconType=function(a){return a?"yt-icons:"+a.toLowerCase():null}; g.onSelect=function(){if(!this.disabled){var a;if((a=this.data)==null?0:a.onSelectCommand)if(x("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var b;((b=z(this.data.onSelectCommand.commandMetadata,ly))==null?0:b.url)?Gt(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):Fn().resolve(JB).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}}}; g.computeDisabled=function(a){return!!a}; ba.Object.defineProperties(rP.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?lz(this.data.label):""}}, value:{configurable:!0,enumerable:!0,get:function(){return this.data?typeof this.data.stringValue==="string"?this.data.stringValue:typeof this.data.int32Value==="number"?this.data.int32Value:null:null}}}); n([F(Yz.YtRendererBehavior),r("design:type",Object)],rP.prototype,"ytRendererBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],rP.prototype,"ytComponentBehavior",void 0);n([M(),r("design:type",Object)],rP.prototype,"data",void 0);n([M({reflectToAttribute:!0,computed:"computeDisabled(data.disabled)"}),r("design:type",Object)],rP.prototype,"disabled",void 0);n([Tt("#item"),r("design:type",HTMLElement)],rP.prototype,"item",void 0); n([H("data.label"),r("design:type",String),r("design:paramtypes",[])],rP.prototype,"label",null);n([H("data"),r("design:type",Object),r("design:paramtypes",[])],rP.prototype,"value",null);n([gu({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],rP); Tu(rP,"ytd-privacy-dropdown-item-renderer",function(){if(TKb!==void 0)return TKb;var a=document.createElement("template");Q(a,"\n \n \n \n \n \n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return TKb=a},{mode:1});var sP=function(){var a=E.apply(this,arguments)||this;a.disabled=!1;a.value="";a.noLabelFloat=!1;a.noUnderline=!1;a.usePrimaryColor=!1;a.hasBackground=!1;a.verticalAlign="top";a.autosize=!1;a.minAutosizeWidth=100;a.autosizeFont="14px Roboto";return a}; k(sP,E);g=sP.prototype;g.configureRendererStamper=function(){return{"data.entries":{id:"entries",mapping:{dropdownItemRenderer:"ytd-dropdown-item-renderer",privacyDropdownItemRenderer:"ytd-privacy-dropdown-item-renderer",navigationDropdownItemRenderer:"ytd-navigation-dropdown-item-renderer"}}}}; g.open=function(){this.inputEl.open()}; g.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())}; g.dataChanged=function(){this.reset()}; g.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new uM("value-changed",this.value))}; g.stopPropagation=function(a){a.stopPropagation()}; g.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var a=this.canvas.getContext("2d");a&&(a.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(a.measureText(this.inputEl.value).width)+24)+"px")}}; g.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var a=0,b=this.data.entries.length;a\n \n \n\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return RKb=a},{mode:1});var UKb;var VKb;var tP=function(){var a=E.apply(this,arguments)||this;a.polymer2="Element"in Polymer;return a}; k(tP,E);g=tP.prototype;g.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))}; g.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()}; g.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)}; g.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new uM("minutes-changed",this.minutes))}; g.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new uM("seconds-changed",this.seconds))}; g.updateMinutesFromBinding=function(a){this.minutes=a.detail.value}; g.updateSecondsFromBinding=function(a){this.seconds=a.detail.value}; tP.prototype.secondsChangedForBinding=tP.prototype.secondsChangedForBinding;tP.prototype.minutesChangedForBinding=tP.prototype.minutesChangedForBinding;tP.prototype.secondsChanged=tP.prototype.secondsChanged;n([M(),r("design:type",String)],tP.prototype,"minutes",void 0);n([M(),r("design:type",String)],tP.prototype,"seconds",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],tP.prototype,"polymer2",void 0);n([Tt("#seconds"),r("design:type",Object)],tP.prototype,"secondsEl",void 0); n([Lt("seconds"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],tP.prototype,"secondsChanged",null);n([Lt("minutes"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],tP.prototype,"minutesChangedForBinding",null);n([Lt("seconds"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],tP.prototype,"secondsChangedForBinding",null);n([fu({is:"yt-timestamp-input",disableElementRegistration:!0})],tP); Tu(tP,"yt-timestamp-input",function(){if(VKb===void 0){var a=document.createElement("template");Q(a,"\n\n : \n\n\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;UKb===void 0&&(UKb=document.createElement("template"));var d=UKb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);VKb=a}a=VKb;return a},{mode:2});var uP=function(){return E.apply(this,arguments)||this}; k(uP,E);g=uP.prototype;g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scroller.dialogElement=this.hostElement.parentNode}; g.dataChanged=function(){var a=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&yO().getPlayerPromise().then(function(b){b=b.getCurrentTime();a.minutes=Math.floor(b/60).toString();a.seconds=(Math.floor(b)%60).toString()})}; g.onTapSubmit=function(a){a.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(a={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(a.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(a.minutes=this.minutes,a.seconds=this.seconds),Fn().resolve(JB).resolveCommand(this.serviceEndpoint,{form:Object.assign({},a,{element:this.hostElement})}))}; g.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)}; g.onYtServiceRequestCompleted=function(a,b){b=b.actions;if(Array.isArray(b))for(var c=0,d=b.length;c

[[getSimpleString(data.title)]]

\n\n \n
\n \n \n \n \n \n
\n \n \n \n \n \n \n
[[getSimpleString(data.nameSubtext)]]
\n
[[getSimpleString(data.footerText)]]
\n
\n
\n
[[getSimpleString(data.requiredLabel)]]
\n
\n \n \n \n \n
\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return PKb=a},{mode:1});var WKb;var XKb;var vP=function(){return E.apply(this,arguments)||this}; k(vP,E);n([F(mz.YtComponentBehavior),r("design:type",Object)],vP.prototype,"ytComponentBehavior",void 0);n([M(),r("design:type",Object)],vP.prototype,"data",void 0);n([gu({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],vP); Tu(vP,"ytd-channel-history-renderer",function(){if(XKb!==void 0)return XKb;var a=document.createElement("template");Q(a,"
\n \n \n \n
");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return XKb=a},{mode:1});var YKb;var ZKb=function(){return E.apply(this,arguments)||this}; k(ZKb,E);n([M(),r("design:type",Object)],ZKb.prototype,"data",void 0);n([gu({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],ZKb); Tu(ZKb,"ytd-feature-enablement-info-renderer",function(){if(YKb!==void 0)return YKb;var a=document.createElement("template");Q(a,"
\n \n \n
");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return YKb=a},{mode:1});var $Kb;var aLb;var wP=function(){var a=E.apply(this,arguments)||this;a.textBoxMaxLength=12;return a}; k(wP,E);g=wP.prototype;g.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()}; g.onSubmit=function(){var a=this.data.serviceEndpoint,b=z(a,gK);b&&a&&(b.couponCode=this.userInput,Fn().resolve(JB).resolveCommand(a,{form:{element:this.hostElement}}))}; g.validate=function(){var a=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=a&&!this.data.errorMessage;this.showErrorMessage=a&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=this.userInput.match(/^[\d\w]{12}$/)===null}; g.computeStyle=function(a){return a}; g.computeShowValidationBelowInput=function(a){return a!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"}; g.updateUserInputFromBinding=function(a){this.userInput=a.currentTarget.value}; g.updateShowErrorMessageFromBinding=function(a){this.showErrorMessage=a.detail.value}; ba.Object.defineProperties(wP.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}}); wP.prototype.dataChanged=wP.prototype.dataChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],wP.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],wP.prototype,"data",void 0);n([M(),r("design:type",String)],wP.prototype,"userInput",void 0);n([M(),r("design:type",Boolean)],wP.prototype,"disableApplyButton",void 0);n([M(),r("design:type",Boolean)],wP.prototype,"hideApplyButton",void 0);n([M(),r("design:type",Boolean)],wP.prototype,"hideErrorMessage",void 0); n([M(),r("design:type",Boolean)],wP.prototype,"showTick",void 0);n([M(),r("design:type",Boolean)],wP.prototype,"showErrorMessage",void 0);n([M({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),r("design:type",String)],wP.prototype,"couponStyle",void 0);n([M({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),r("design:type",Boolean)],wP.prototype,"showValidationBelowInput",void 0);n([M(),r("design:type",Object)],wP.prototype,"textBoxMaxLength",void 0); n([cu("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],wP.prototype,"dataChanged",null);n([H("showTick","showErrorMessage","userInput"),r("design:type",String),r("design:paramtypes",[])],wP.prototype,"validationState",null);n([gu({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],wP); Tu(wP,"ytd-ypc-coupon-renderer",function(){if(aLb!==void 0)return aLb;var a=document.createElement("template");Q(a,"
\n \n \n \n \n
\n\n
\n \n \n
\n\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return aLb=a},{mode:1});var xP=function(){return E.apply(this,arguments)||this}; k(xP,E);xP.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},"data.couponRenderer":{id:"coupon-renderer",mapping:{ypcCouponRenderer:"ytd-ypc-coupon-renderer"}}}}; xP.prototype.computeStyle=function(a){return a}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],xP.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],xP.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],xP.prototype,"data",void 0);n([M({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),r("design:type",String)],xP.prototype,"buttonStyle",void 0);n([gu({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],xP); Tu(xP,"ytd-flow-bottom-bar-renderer",function(){if($Kb!==void 0)return $Kb;var a=document.createElement("template");Q(a,"\n\n\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return $Kb=a},{mode:1});var bLb;var cLb;var yP=function(){return E.apply(this,arguments)||this}; k(yP,E);yP.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}}; yP.prototype.focus=function(a){this.title&&ln(this.title,a)}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],yP.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],yP.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],yP.prototype,"data",void 0);n([Tt("#title"),r("design:type",HTMLElement)],yP.prototype,"title",void 0);n([gu({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],yP); Tu(yP,"ytd-flow-top-bar-renderer",function(){if(cLb!==void 0)return cLb;var a=document.createElement("template");Q(a,"
\n
\n \n \n
\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return cLb=a},{mode:1});var dLb;var eLb;var fLb;var gLb=function(){return E.apply(this,arguments)||this}; k(gLb,E);n([M(),r("design:type",Object)],gLb.prototype,"data",void 0);n([gu({is:"ytd-factoid-renderer",disableElementRegistration:!0})],gLb); Tu(gLb,"ytd-factoid-renderer",function(){if(fLb!==void 0)return fLb;var a=document.createElement("template");Q(a,"
\n \n \n \n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return fLb=a},{mode:1});var zP=function(){return E.apply(this,arguments)||this}; k(zP,E);zP.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}}; n([M(),r("design:type",Object)],zP.prototype,"data",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],zP.prototype,"ytRendererstamperBehavior",void 0);n([fu({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],zP); Tu(zP,"yt-live-chat-channel-activity-reputation-renderer",function(){if(eLb===void 0){var a=document.createElement("template");Q(a,"
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;dLb===void 0&&(dLb=document.createElement("template"));var d=dLb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);eLb=a}a=eLb;return a},{mode:0});var hLb;var iLb,jLb=function(){if(iLb!==void 0)return iLb;var a=document.createElement("template");Q(a,"\n\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;hLb===void 0&&(hLb=document.createElement("template"));var d=hLb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return iLb=a};var AP=function(){return E.apply(this,arguments)||this}; k(AP,E);ba.Object.defineProperties(AP,{template:{configurable:!0,enumerable:!0,get:function(){return jLb()}}}); n([F($C.YtRendererstamperBehavior),r("design:type",Object)],AP.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],AP.prototype,"data",void 0);n([fu({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],AP);Tu(AP,"yt-live-chat-empty-feed-view-model",function(){return jLb()},{mode:0});var kLb;var lLb;var BP=function(){return E.apply(this,arguments)||this}; k(BP,E);BP.prototype.configureRendererStamper=function(){return{"data.channelAvatar.avatarViewModel":{id:"avatar",mapping:{image:{component:"yt-image",attributes:{height:"36",width:"36","preserve-height":"true","preserve-width":"true"}}}}}}; ba.Object.defineProperties(BP.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var a,b;return{runs:[{text:(a=this.data)==null?void 0:(b=a.channelName)==null?void 0:b.content}]}}}, channelBadges:{configurable:!0,enumerable:!0,get:function(){var a=[],b;if((b=this.data)==null||!b.channelBadges)return a;var c;b=l((c=this.data)==null?void 0:c.channelBadges);for(c=b.next();!c.done;c=b.next()){c=z(c.value,spb);var d=void 0,e=void 0;if((d=c)==null?0:(e=d.badgeImage)==null?0:e.sources)d=void 0,e={liveChatAuthorBadgeRenderer:{tooltip:c.tooltip,accessibility:{accessibilityData:{label:(d=z(c.rendererContext,dy))==null?void 0:d.label}}}},c.badgeImage.sources[0].clientResource?e.liveChatAuthorBadgeRenderer.icon= {iconType:c.badgeImage.sources[0].clientResource.imageName}:e.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:c.badgeImage.sources},a.push(e)}return a}}}); n([M(),r("design:type",Object)],BP.prototype,"data",void 0);n([H("data.channelName"),r("design:type",Object),r("design:paramtypes",[])],BP.prototype,"channelName",null);n([H("data.channelBadges"),r("design:type",Array),r("design:paramtypes",[])],BP.prototype,"channelBadges",null);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],BP.prototype,"ytRendererstamperBehavior",void 0);n([fu({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],BP); Tu(BP,"yt-live-chat-identity-view-model",function(){if(lLb===void 0){var a=document.createElement("template");Q(a,"
\n
\n \n \n
\n \n \n
\n
"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;kLb===void 0&&(kLb=document.createElement("template"));var d=kLb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);lLb=a}a=lLb;return a},{mode:0});var mLb;var nLb;var CP=function(){var a=E.apply(this,arguments)||this;a.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return a}; k(CP,E);g=CP.prototype; g.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatAutoModMessageRenderer:"yt-live-chat-auto-mod-message-renderer",liveChatPaidMessageRenderer:"yt-live-chat-paid-message-renderer",liveChatLegacyPaidMessageRenderer:"yt-live-chat-legacy-paid-message-renderer",liveChatMembershipItemRenderer:"yt-live-chat-membership-item-renderer",liveChatTextMessageRenderer:"yt-live-chat-text-message-renderer",liveChatPaidStickerRenderer:"yt-live-chat-paid-sticker-renderer",liveChatDonationAnnouncementRenderer:"yt-live-chat-donation-announcement-renderer", liveChatModeChangeMessageRenderer:"yt-live-chat-mode-change-message-renderer",liveChatModerationMessageRenderer:"yt-live-chat-moderation-message-renderer",liveChatOfferClickCountMessageRenderer:"yt-live-chat-offer-click-count-message-renderer",liveChatPlaceholderItemRenderer:"yt-live-chat-placeholder-item-renderer",liveChatPurchasedProductMessageRenderer:"ytd-live-chat-purchased-product-message-renderer",liveChatSponsorshipsGiftPurchaseAnnouncementRenderer:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer", liveChatSponsorshipsGiftRedemptionAnnouncementRenderer:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",liveChatViewerEngagementMessageRenderer:"yt-live-chat-viewer-engagement-message-renderer",serverErrorMessage:"yt-live-chat-server-error-message"}}}}; g.handleLiveChatAction=function(a){z(a,IJ)?this.handleMarkChatItemAsDeletedAction(z(a,IJ)):z(a,GJ)&&this.handleRemoveChatItemAction(z(a,GJ))}; g.handleLiveChatActions=function(a){a.forEach(this.handleLiveChatAction,this)}; g.handleMarkChatItemAsDeletedAction=function(a){var b=this,c;((c=this.data)==null?0:c.items)&&this.data.items.forEach(function(d,e){var f=Object.keys(d)[0];Object.values(d)[0].id===a.targetItemId&&b.markAsDeleted("data.items",e,f,a.deletedStateMessage,a.showOriginalContentMessage)})}; g.handleRemoveChatItemAction=function(a){var b=this,c;((c=this.data)==null?0:c.items)&&this.data.items.forEach(function(d,e){Object.values(d)[0].id===a.targetItemId&&b.splice("data.items",e,1)})}; g.markAsDeleted=function(a,b,c,d,e){a=[a,b,c].join(".");this.set(a+".deletedStateMessage",d);this.set(a+".showOriginalContentMessage",e)}; n([M(),r("design:type",Object)],CP.prototype,"data",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],CP.prototype,"ytRendererstamperBehavior",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],CP.prototype,"ytActionHandlerBehavior",void 0);n([fu({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],CP); Tu(CP,"yt-live-chat-item-display-list-renderer",function(){if(nLb===void 0){var a=document.createElement("template");Q(a,"
");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;mLb===void 0&&(mLb=document.createElement("template"));var d=mLb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);nLb=a}a=nLb;return a},{mode:0});var oLb;var pLb,qLb=function(){if(pLb!==void 0)return pLb;var a=document.createElement("template");Q(a,"
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;oLb===void 0&&(oLb=document.createElement("template"));var d=oLb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return pLb=a};var DP=function(){var a=E.apply(this,arguments)||this;a.isHeader=!1;return a}; k(DP,E);DP.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}}; ba.Object.defineProperties(DP,{template:{configurable:!0,enumerable:!0,get:function(){return qLb()}}}); n([F($C.YtRendererstamperBehavior),r("design:type",Object)],DP.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],DP.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],DP.prototype,"isHeader",void 0);n([fu({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],DP);Tu(DP,"yt-live-chat-item-display-renderer",function(){return qLb()},{mode:0});var rLb;var EP=function(){return E.apply(this,arguments)||this}; k(EP,E);n([F(Yz.YtRendererBehavior),r("design:type",Object)],EP.prototype,"kevlarBehaviors",void 0);n([M(),r("design:type",Object)],EP.prototype,"data",void 0);n([gu({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],EP); Tu(EP,"ytd-channel-age-gate-renderer",function(){if(rLb!==void 0)return rLb;var a=document.createElement("template");Q(a,"
\n
\n
[[data.channelTitle]]
\n \n
\n
\n \n \n \n \n \n \n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return rLb=a},{mode:1});var sLb;kE("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var FP=function(){var a=E.apply(this,arguments)||this;a.data=null;return a}; k(FP,E);FP.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}}; ba.Object.defineProperties(FP.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return((a=this.data)==null?0:(b=a.title)==null?0:(c=b.runs)==null?0:c.length)?147:160}}}); n([F($C.YtRendererstamperBehavior),r("design:type",Object)],FP.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],FP.prototype,"data",void 0);n([M({reflectToAttribute:!0}),H("data"),r("design:type",Number),r("design:paramtypes",[])],FP.prototype,"imageSizePx",null);n([gu({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],FP); Tu(FP,"ytd-channel-owner-empty-state-renderer",function(){if(sLb!==void 0)return sLb;var a=document.createElement("template");Q(a,"
\n
\n \n \n
\n
\n \n
\n \n \n
\n \n
\n \n
\n
\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return sLb=a},{mode:1});var tLb;var uLb;var GP=function(){var a=E.apply(this,arguments)||this;a.richItemMinWidth=ll("wn_grid_min_item_width",310);a.isShorts=!1;a.isWatchNext=!1;a.isExploreHub=!1;return a}; k(GP,E);ba.Object.defineProperties(GP.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}}, cardItems:{configurable:!0,enumerable:!0,get:function(){var a=[],b=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&Ft(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var c;if(((c=this.data)==null?0:c.rows)&&b)for(b*=this.data.rows,c=0;c
\n \n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);uLb=a}a=uLb;return a},{allowedProps:["data", "isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});bB(O(function(a){var b=Hu(a,{numberOfComments:3}).numberOfComments,c=Hu(a,{isInitialLoad:!1}).isInitialLoad,d=Hu(a,{engagementPanel:!1}).engagementPanel,e=function(){return Math.min(Number(b==null?void 0:b())||20,20)}; return D("yt-ghost-comments",{class:"ytGhostCommentsHost"},D(P,{cond:function(){return!(d==null?0:d())&&(c==null?void 0:c())}, then:function(){return D("div",{class:"ytGhostCommentsComments"},D("div",{class:"ytGhostCommentsGhostCommentsHeader"},D("div",{class:U("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),D("div",{class:U("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),D("div",{class:"ytGhostCommentsGhostCard"},D("div",{class:"ytGhostCommentsAvatar"},D("div",{class:"ytGhostCommentsCircle"})),D("div",{class:"ytGhostCommentsComments"},D("div",{class:"ytGhostCommentsMeta"},D("div",{class:U("ytGhostCommentsGhostInputPlaceholder", "ytGhostCommentsGhostFill")})),D("div",{class:U("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),D("div",{class:"ytGhostCommentsComments"},D(mw,{each:function(){return Array((e==null?void 0:e())||3)}},function(){return D("div",{class:"ytGhostCommentsGhostCard"},D("div",{class:"ytGhostCommentsAvatar"},D("div",{class:"ytGhostCommentsCircle"})),D("div",{class:"ytGhostCommentsHost"},D("div",{class:"ytGhostCommentsMeta"},D("div",{class:U("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})), D("div",{class:U("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),D("div",{class:U("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),D("div",{class:"ytGhostCommentsGhostLikeDislike"},D("div",{class:U("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),D("div",{class:U("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"Za"),"yt-ghost-comments",{props:{numberOfComments:$A, isInitialLoad:$A,engagementPanel:$A},unsafeExternallySettableAttributes:new Set(["hidden"])});kE("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var HP=function(){var a=E.apply(this,arguments)||this;a.isOverridable=!1;a.spinnerActive=!1;a.showButton=!1;a.isCommentsSection=!1;a.engagementPanel=!0;a.isShortsGrid=!1;a.isShortsPage=!1;a.isWatchPage=!1;a.originalShowButton=!1;a.endOfList=!1;return a}; k(HP,E);g=HP.prototype;g.resetIntersectionObserver=function(){var a;(a=this.observer)==null||a.disconnect();this.observer=void 0}; g.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var a,b;((a=this.data)==null?void 0:a.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((b=this.data)==null?0:b.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}}; g.initializeIntersectionObserver=function(){var a=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(b){b=l(b);for(var c=b.next();!c.done;c=b.next())c.value.isIntersecting&&(a.triggerContinuation(),a.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px", threshold:0}),this.observer.observe(this.hostElement))}; g.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},showGhostCardComments:{id:"ghost-comment-section",mapping:{ghostCommentsSectionRenderer:{component:"yt-ghost-comments"}}},"data.ghostCards":{id:"ghost-cards",mapping:{ghostGridRenderer:{component:"ytd-ghost-grid-renderer",properties:{isShorts:"[[isShortsGrid]]"}}}}}}; g.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var a;((a=this.data)==null?0:a.continuationEndpoint)&&(a=z(this.data.continuationEndpoint,uJ))&&this.ytdReduxBehavior.dispatch(aA({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:a}}))}; g.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()}; g.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)}; g.onServiceRequestCompleted=function(a,b){var c;(c=b.actions)!=null&&c.length||(this.spinnerActive=!1,this.endOfList=!0)}; g.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)}; g.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)}; g.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()}; g.numberOfGhostCommentsChanged=function(){var a=3;if(this.engagementPanel){var b,c,d;a=Math.floor(((((b=this.hostElement)==null?void 0:(c=b.parentElement)==null?void 0:(d=c.parentElement)==null?void 0:d.scrollHeight)||108)-108)/108);a=this.isInitialLoad?Math.max(a,3):3}b=[].concat(ia(this.hostElement.querySelectorAll("yt-ghost-comments")));b=l(b);for(c=b.next();!c.done;c=b.next())c=c.value,c.numberOfComments=a,c.isInitialLoad=this.isInitialLoad,c.engagementPanel=this.engagementPanel}; g.detached=function(){this.resetIntersectionObserver()}; ba.Object.defineProperties(HP.prototype,{showGhostCardComments:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton?{ghostCommentsSectionRenderer:!0}:!1}}}); HP.prototype.numberOfGhostCommentsChanged=HP.prototype.numberOfGhostCommentsChanged;HP.prototype.continuationTriggerOffsetChanged=HP.prototype.continuationTriggerOffsetChanged;HP.prototype.showButtonChanged=HP.prototype.showButtonChanged;HP.prototype.onYtServiceRequestCompletedForButtonRenderer=HP.prototype.onYtServiceRequestCompletedForButtonRenderer;HP.prototype.onServiceRequestCompleted=HP.prototype.onServiceRequestCompleted;HP.prototype.onYtServiceRequestSentForButtonRenderer=HP.prototype.onYtServiceRequestSentForButtonRenderer; HP.prototype.observeData=HP.prototype.observeData;n([F($C.YtRendererstamperBehavior),r("design:type",Object)],HP.prototype,"ytRendererstamperBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],HP.prototype,"ytRendererBehavior",void 0);n([F(oE.YtVisibilityBehavior),r("design:type",Object)],HP.prototype,"ytVisibilityBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],HP.prototype,"ytComponentBehavior",void 0); n([F(kC),r("design:type",Object)],HP.prototype,"ytdReduxBehavior",void 0);n([M(),r("design:type",Object)],HP.prototype,"data",void 0);n([M(),r("design:type",Object)],HP.prototype,"isOverridable",void 0);n([M(),r("design:type",Object)],HP.prototype,"spinnerActive",void 0);n([M(),r("design:type",Object)],HP.prototype,"showButton",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],HP.prototype,"isCommentsSection",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],HP.prototype,"engagementPanel",void 0);n([M(),r("design:type",Object)],HP.prototype,"isShortsGrid",void 0);n([M({reflectToAttribute:!0,selector:function(a){return YZa(a)==="WEB_PAGE_TYPE_SHORTS"}}), r("design:type",Object)],HP.prototype,"isShortsPage",void 0);n([M({reflectToAttribute:!0,selector:ZZa}),r("design:type",Object)],HP.prototype,"isWatchPage",void 0);n([M(),r("design:type",Number)],HP.prototype,"continuationTriggerOffset",void 0);n([M(),r("design:type",Object)],HP.prototype,"endOfList",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],HP.prototype,"isInitialLoad",void 0);n([Tt("ytd-button-renderer"),r("design:type",TM)],HP.prototype,"buttonRenderer",void 0); n([M(),r("design:type",Object)],HP.prototype,"buttonOverrides",void 0);n([M(),H("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),r("design:type",Object),r("design:paramtypes",[])],HP.prototype,"showGhostCardComments",null);n([cu("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],HP.prototype,"observeData",null); n([Kt("yt-service-request-sent-button-renderer"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],HP.prototype,"onYtServiceRequestSentForButtonRenderer",null);n([Kt("yt-service-request-completed"),r("design:type",Function),r("design:paramtypes",[CustomEvent,lB]),r("design:returntype")],HP.prototype,"onServiceRequestCompleted",null); n([Kt("yt-service-request-completed-button-renderer"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],HP.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);n([cu("showButton"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],HP.prototype,"showButtonChanged",null);n([cu("continuationTriggerOffset"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],HP.prototype,"continuationTriggerOffsetChanged",null); n([Lt("isInitialLoad","engagementPanel"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],HP.prototype,"numberOfGhostCommentsChanged",null);n([gu({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],HP); Uu()(HP,"ytd-continuation-item-renderer",function(){if(tLb===void 0){var a=document.createElement("template");Q(a,"
\n
\n\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);tLb=a}a=tLb;return a},{allowedProps:"buttonOverrides continuationTriggerOffset data engagementPanel isCommentsSection isInitialLoad isShortsGrid showButton".split(" "), mode:1});var wLb;var xLb;var yLb;var IP=function(){return E.apply(this,arguments)||this}; k(IP,E);n([F(Yz.YtRendererBehavior),r("design:type",Object)],IP.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],IP.prototype,"data",void 0);n([gu({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],IP); Tu(IP,"ytd-profile-column-stats-entry-renderer",function(){if(yLb!==void 0)return yLb;var a=document.createElement("template");Q(a,"
[[getSimpleString(data.label)]]
\n
[[getSimpleString(data.value)]]
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return yLb=a},{mode:1});var zLb;var JP=function(){return E.apply(this,arguments)||this}; k(JP,E);JP.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}}; n([F($C.YtRendererstamperBehavior),r("design:type",Object)],JP.prototype,"ytRendererstamperBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],JP.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],JP.prototype,"data",void 0);n([gu({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],JP); Tu(JP,"ytd-profile-column-stats-renderer",function(){if(zLb!==void 0)return zLb;var a=document.createElement("template");Q(a,"
\n");a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return zLb=a},{mode:1});var ALb;var KP=function(){return E.apply(this,arguments)||this}; k(KP,E);ba.Object.defineProperties(KP.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null||!a.useThumbnailSize)return 80;var b,c;a=(b=this.data)==null?void 0:(c=b.thumbnail)==null?void 0:c.thumbnails;var d;return a&&((d=a[0])==null?void 0:d.width)||80}}, thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null||!a.useThumbnailSize)return 80;var b,c;a=(b=this.data)==null?void 0:(c=b.thumbnail)==null?void 0:c.thumbnails;var d;return a&&((d=a[0])==null?void 0:d.height)||80}}}); n([F(Yz.YtRendererBehavior),r("design:type",Object)],KP.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],KP.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",String)],KP.prototype,"componentStyle",void 0);n([H("data.useThumbnailSize"),r("design:type",Object),r("design:paramtypes",[])],KP.prototype,"thumbnailWidth",null);n([H("data.useThumbnailSize"),r("design:type",Object),r("design:paramtypes",[])],KP.prototype,"thumbnailHeight",null); n([gu({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],KP); Tu(KP,"ytd-profile-column-user-info-renderer",function(){if(ALb!==void 0)return ALb;var a=document.createElement("template");Q(a,"\n\n
[[getSimpleString(data.title)]]
\n
[[getSimpleString(data.subtitle)]]
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return ALb=a},{mode:1});var LP=function(){return E.apply(this,arguments)||this}; k(LP,E);LP.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsRenderer:{component:"ytd-profile-column-stats-renderer",noInjection:!0},profileColumnUserInfoRenderer:{component:"ytd-profile-column-user-info-renderer",noInjection:!0,properties:{componentStyle:"[[componentStyle]]"}}}}}}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],LP.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],LP.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],LP.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",String)],LP.prototype,"componentStyle",void 0);n([gu({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],LP); Tu(LP,"ytd-profile-column-renderer",function(){if(xLb!==void 0)return xLb;var a=document.createElement("template");Q(a,"
\n");a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return xLb=a},{mode:1});var MP=function(){var a=E.apply(this,arguments)||this;a.componentStyle="NON_CENTERED_PROFILE";return a}; k(MP,E);MP.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}}; MP.prototype.getIcon=function(a){return a?"settings:"+a.toLowerCase():null}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],MP.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],MP.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],MP.prototype,"data",void 0);n([gu({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],MP); Tu(MP,"ytd-page-introduction-renderer",function(){if(wLb!==void 0)return wLb;var a=document.createElement("template");Q(a,"
\n
\n
[[getSimpleString(data.pageTitle)]]
\n
[[getSimpleString(data.headerText)]]
\n \n \n \n \n \n \n
\n \n \n
\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return wLb=a},{mode:1});var BLb;var CLb;var DLb;function NP(a,b){return a.year===b.year&&a.month===b.month&&a.day===b.day} function OP(a,b){return a.year!==b.year?a.year=0?b:void 0} ;var QP=function(){return E.apply(this,arguments)||this}; k(QP,E);g=QP.prototype;g.attached=function(){var a=this;ms(this,function(){a.calendarMain.scrollHeight>0&&(a.calendarConfig.selection?a.scrollToDate(ILb(a.calendarConfig.selection)):a.scrollToDate(a.calendarConfig.end))})}; g.updateSelection=function(a){a=MLb(Object.assign({},this.calendarConfig,{selection:a}),LLb);this.splice.apply(this,["renderData.months",0,a.length].concat(ia(a)))}; g.scrollToDate=function(a){this.renderData&&(a=NLb(a,this.renderData),a!==void 0&&this.calendarMain.scrollToIndex(a))}; g.scrollToNextMonth=function(){this.calendarMain.scrollToIndex(this.calendarMain.firstVisibleIndex+1)}; g.scrollToPrevMonth=function(){this.calendarMain.firstVisibleIndex===0&&this.calendarMain.scrollTo(0,0);this.calendarMain.scrollToIndex(this.calendarMain.firstVisibleIndex-1)}; g.handleDayClick=function(a){Xu(this.hostElement,"ytd-calendar-date-clicked",[a.model.day.date])}; g.handleDayMouseDown=function(a){a.preventDefault();Xu(this.hostElement,"ytd-calendar-date-mousedown",[a.model.day.date])}; g.handleDayMouseUp=function(a){Xu(this.hostElement,"ytd-calendar-date-mouseup",[a.model.day.date])}; g.handleDayMouseEnter=function(a){a.preventDefault();Xu(this.hostElement,"ytd-calendar-date-mouseenter",[a.model.day.date])}; g.handleDayMouseLeave=function(a){Xu(this.hostElement,"ytd-calendar-date-mouseleave",[a.model.day.date])}; ba.Object.defineProperties(QP.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var a=this.calendarConfig,b=LLb;b=b===void 0?LLb:b;for(var c=[],d=0;d<7;d++)c.push(IG.NARROWWEEKDAYS[(d+KLb)%7]);return{months:MLb(a,b),daysOfWeekLabel:c}}}}); n([M(),r("design:type",Object)],QP.prototype,"calendarConfig",void 0);n([Tt("#calendar-main"),r("design:type",Object)],QP.prototype,"calendarMain",void 0);n([H("calendarConfig"),r("design:type",Object),r("design:paramtypes",[])],QP.prototype,"renderData",null);n([gu({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],QP); Tu(QP,"ytd-scrollable-calendar",function(){if(DLb!==void 0)return DLb;var a=document.createElement("template");Q(a,"
\n
\n \n
\n\n \n \n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return DLb=a},{mode:2});var OLb;var PLb;var RP=function(){var a=E.apply(this,arguments)||this;a.hideCharCounter=!1;a.hideLabel=!1;a.noLabelFloat=!1;a.autoValidate=!0;a.invalid=!1;a.disabled=!1;a.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return a}; k(RP,E);g=RP.prototype;g.reset=function(a){this.value=a&&this.data?this.data.value=a:"";this.input.invalid=!1;this.input.autoValidate=!1}; g.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)}; g.focusTextInput=function(){this.input.focus()}; g.validate=function(){if(!this.autoValidate)return!this.invalid;if(!this.input)return!1;if(this.isMultiline&&this.data&&this.value!=null&&this.data.validValueRegexp&&!RegExp("^"+this.data.validValueRegexp+"$").test(this.input.value))return this.input.autoValidate=!1,this.invalid=!0,!1;this.input.autoValidate=!0;return this.input.validate()}; g.valueChanged=function(){var a,b;if(((a=this.data)==null?0:a.value)||((b=this.data)==null?void 0:b.value)==="")this.value=this.data.value;else{var c;((c=this.data)==null?void 0:c.value)!==void 0||this.value||(this.value="")}}; g.computeLabel=function(a,b){return b?"":lz(a)}; g.computeAriaLabel=function(a,b){return b?lz(a):""}; g.computeErrorMessage=function(a,b,c,d){!a&&b?a=c||this.strings.REQUIRED_LABEL:(a=lz(d),a=$a(a,"&")?"document"in ua?rca(a):sca(a):a);return a}; g.computeType=function(a){return a==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null}; g.onTextValueChanged=function(a){this.value=a.detail.value;var b;(b=this.onValueChanged)==null||b.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)}; g.handleUpdateTextInputFormFieldRendererCommand=function(a){(a=z(a,Emb))&&this.data&&this.data.id===a.id&&(a.invalid!==void 0&&(this.invalid=a.invalid),a.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",a.invalidValueErrorMessage))}; g.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new uM("value-changed",this.value))}; g.updateInvalidFromBinding=function(a){this.invalid=a.detail.value}; ba.Object.defineProperties(RP.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var a;return!((a=this.data)==null||!a.isMultiline)}}}); RP.prototype.valueChangedForBinding=RP.prototype.valueChangedForBinding;RP.prototype.valueChanged=RP.prototype.valueChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],RP.prototype,"ytRendererBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],RP.prototype,"ytComponentBehavior",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],RP.prototype,"ytActionHandlerBehavior",void 0);n([M(),r("design:type",Object)],RP.prototype,"data",void 0); n([M(),r("design:type",String)],RP.prototype,"value",void 0);n([M(),r("design:type",String)],RP.prototype,"pattern",void 0);n([M(),r("design:type",String)],RP.prototype,"errorMessage",void 0);n([M({reflectToAttribute:!0}),r("design:type",String)],RP.prototype,"componentStyle",void 0);n([M(),r("design:type",Object)],RP.prototype,"hideCharCounter",void 0);n([M(),r("design:type",Object)],RP.prototype,"hideLabel",void 0);n([M(),r("design:type",Object)],RP.prototype,"noLabelFloat",void 0); n([M(),r("design:type",Function)],RP.prototype,"onValueChanged",void 0);n([M(),r("design:type",Boolean)],RP.prototype,"isMultilineOverride",void 0);n([M(),r("design:type",Object)],RP.prototype,"autoValidate",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],RP.prototype,"invalid",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],RP.prototype,"disabled",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],RP.prototype,"enableOverlayTheme",void 0); n([M({value:{REQUIRED_LABEL:zy("REQUIRED_LABEL",void 0,"Required")}}),r("design:type",Object)],RP.prototype,"strings",void 0);n([Tt("#input"),r("design:type",Object)],RP.prototype,"input",void 0);n([H("data","isMultilineOverride"),r("design:type",Object),r("design:paramtypes",[])],RP.prototype,"isMultiline",null);n([cu("data.value"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],RP.prototype,"valueChanged",null); n([Lt("value"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],RP.prototype,"valueChangedForBinding",null);n([fu({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],RP); Tu(RP,"yt-text-input-form-field-renderer",function(){if(PLb===void 0){var a=document.createElement("template");Q(a,"\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;OLb===void 0&&(OLb=document.createElement("template"));var d=OLb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);PLb=a}a=PLb;return a},{mode:2});var SP=function(){var a=E.apply(this,arguments)||this;a.data=void 0;a.selectionState="START_DATE";a.isStartDateInvalid=!1;a.isEndDateInvalid=!1;a.autoapply=!1;a.actionMap={"ytd-calendar-date-clicked":"handleCalendarDateClicked","ytd-calendar-date-mousedown":"handleCalendarDateMouseDown","ytd-calendar-date-mouseup":"handleCalendarDateMouseUp","ytd-calendar-date-mouseenter":"handleCalendarDateMouseEnter","ytd-calendar-date-mouseleave":"handleCalendarDateMouseLeave","yt-signal-action-submit-form":"handleCalendarSubmitDateRange"}; return a}; k(SP,E);g=SP.prototype;g.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.applyButton":{id:"apply-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}}}}; g.focus=function(){this.startDateInput.focus()}; g.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:PP(this.data.selection.start),end:PP(this.data.selection.end)})}; g.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()}; g.resetTextboxes=function(){switch(this.selectionState){case"START_DATE":this.isStartDateInvalid=!1;break;case"END_DATE":this.isEndDateInvalid=!1;break;default:Lb(this.selectionState);}}; g.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()}; g.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"}; g.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"}; g.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var a=this.calendar.calendarConfig,b=a.end;a=QLb({start:a.start,end:this.endDate||b},this.startDateInput.value||"");this.isStartDateInvalid=!a.isValid;a.isValid&&(a=a.value,this.selection=this.endDate?{start:a,end:this.endDate}:a,this.calendar.scrollToDate(a));this.updateInvalidState()}}; g.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var a=this.calendar.calendarConfig,b=a.start;a=QLb({start:this.startDate||b,end:a.end},this.endDateInput.value||"");this.isEndDateInvalid=!a.isValid;a.isValid&&(a=a.value,this.selection={start:this.startDate,end:a},this.calendar.scrollToDate(a));this.updateInvalidState()}}; g.handleCalendarDateClicked=function(a){var b=this.selection&&ILb(this.selection),c=this.selection&&JLb(this.selection);b&&!OP(a,b)&&this.selectionState==="END_DATE"?(this.selection={start:b,end:a},this.selectionState="START_DATE"):(c&&!OP(c,a)?this.selection={start:a,end:c}:this.selection=a,this.selectionState="END_DATE")}; g.handleCalendarDateMouseDown=function(a){this.selection&&!GLb(this.selection)&&(this.dragPivot=NP(a,this.selection.start)?this.selection.end:NP(a,this.selection.end)?this.selection.start:a)}; g.handleCalendarDateMouseUp=function(){this.dragPivot=void 0}; g.handleCalendarDateMouseEnter=function(a){this.dragPivot&&(this.selection={start:function(b,c){return OP(b,c)?b:c}(this.dragPivot,a), end:function(b,c){return OP(b,c)?c:b}(this.dragPivot,a)},this.dragPivot||(this.selectionState="START_DATE"))}; g.handleCalendarDateMouseLeave=function(){}; g.handleCalendarSubmitDateRange=function(){this.selection&&!GLb(this.selection)&&Xu(this.hostElement,"ytd-date-period-picker-apply",[this.selection])}; g.updateInvalidState=function(){var a=function(b,c){c?b.setAttribute("invalid",""):b.removeAttribute("invalid")}; a(this.startDateInput,this.isStartDateInvalid);a(this.endDateInput,this.isEndDateInvalid)}; g.updateDateStrings=function(){this.selection&&(GLb(this.selection)?(this.startDateString=FLb(this.selection),this.endDateString=""):(this.startDateString=FLb(this.selection.start),this.endDateString=FLb(this.selection.end)))}; g.updateCalendarSelection=function(a){this.calendar.updateSelection(Object.assign({},a,{selectionState:this.selectionState}))}; g.updateIsStartDateInvalidFromBinding=function(a){this.isStartDateInvalid=a.detail.value}; g.updateIsEndDateInvalidFromBinding=function(a){this.isEndDateInvalid=a.detail.value}; g.updateStartDateStringFromBinding=function(a){this.startDateString=a.detail.value}; g.updateEndDateStringFromBinding=function(a){this.endDateString=a.detail.value}; ba.Object.defineProperties(SP.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:PP(this.data.dateRangeStart),end:PP(this.data.dateRangeEnd),selection:{start:PP(this.data.selection.start),end:PP(this.data.selection.end)},circleToday:!0}:{}}}, errorMessage:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.errorMessage}}, startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&ILb(this.selection)}}, endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&JLb(this.selection)}}}); SP.prototype.resetTextboxes=SP.prototype.resetTextboxes;SP.prototype.observeSelection=SP.prototype.observeSelection;SP.prototype.dataChanged=SP.prototype.dataChanged;n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],SP.prototype,"ytActionHandlerBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],SP.prototype,"ytRendererstamperBehavior",void 0);n([Tt("#calendar"),r("design:type",Object)],SP.prototype,"calendar",void 0); n([Tt("#start-date"),r("design:type",Object)],SP.prototype,"startDateInput",void 0);n([Tt("#end-date"),r("design:type",Object)],SP.prototype,"endDateInput",void 0);n([M(),r("design:type",Object)],SP.prototype,"data",void 0);n([M(),r("design:type",Object)],SP.prototype,"selection",void 0);n([M(),r("design:type",String)],SP.prototype,"selectionState",void 0);n([H("data"),r("design:type",Object),r("design:paramtypes",[])],SP.prototype,"calendarConfig",null); n([H("data"),r("design:type",Object),r("design:paramtypes",[])],SP.prototype,"errorMessage",null);n([H("selection"),r("design:type",Object),r("design:paramtypes",[])],SP.prototype,"startDate",null);n([H("selection"),r("design:type",Object),r("design:paramtypes",[])],SP.prototype,"endDate",null);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],SP.prototype,"dataChanged",null); n([Lt("selection","selectionState"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],SP.prototype,"observeSelection",null);n([Lt("selectionState"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],SP.prototype,"resetTextboxes",null);n([gu({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],SP); function QLb(a,b){a:{var c=c===void 0?[2,3]:c;c=l(c);for(var d=c.next();!d.done;d=c.next()){var e=new Date;if(new Xdb(d.value).parse(b,e,{validate:!0})){e.setHours(0,0,0,0);b=e;break a}}b=null}if(!b)return{isValid:!1,value:void 0};b=ELb(b);c=a.end;return OP(b,a.start)||OP(c,b)?{isValid:!1,value:void 0}:{isValid:!0,value:b}} Tu(SP,"ytd-date-period-picker-renderer",function(){if(CLb!==void 0)return CLb;var a=document.createElement("template");Q(a,"
\n
\n
\n \n \n
\n \n
\n
\n
\u2013
\n
\n \n \n
\n \n
\n
\n
\n
\n\n\n\n\n
\n
\n
\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return CLb=a},{mode:1});var TP=function(){var a=E.apply(this,arguments)||this;var b={};a.actionMap=(b["ytd-date-period-picker-apply"]="handleDateRangeUpdated",b);return a}; k(TP,E);TP.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}}; TP.prototype.handleDateRangeUpdated=function(){}; n([M(),r("design:type",Object)],TP.prototype,"data",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],TP.prototype,"actionHandlerBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],TP.prototype,"rendererstamperBehavior",void 0);n([gu({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],TP); Tu(TP,"ytd-report-history-section-header-renderer",function(){if(BLb!==void 0)return BLb;var a=document.createElement("template");Q(a,"
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return BLb=a},{mode:1});var RLb;var UP=function(){return E.apply(this,arguments)||this}; k(UP,E);ba.Object.defineProperties(UP.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.data)==null?0:(b=a.icon)==null?0:b.iconType)?cz(this.data.icon.iconType):""}}}); n([M(),r("design:type",Object)],UP.prototype,"data",void 0);n([H("data"),r("design:type",String),r("design:paramtypes",[])],UP.prototype,"icon",null);n([gu({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],UP); Tu(UP,"ytd-report-history-table-text-cell-renderer",function(){if(RLb!==void 0)return RLb;var a=document.createElement("template");Q(a,"\n
\n \n \n \n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return RLb=a},{mode:1});var SLb;var TLb;var ULb;var VP=function(){return E.apply(this,arguments)||this}; k(VP,E);VP.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}}; n([F($C.YtRendererstamperBehavior),r("design:type",Object)],VP.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],VP.prototype,"data",void 0);n([gu({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],VP); Tu(VP,"ytd-report-history-table-reason-cell-renderer",function(){if(ULb!==void 0)return ULb;var a=document.createElement("template");Q(a,"
\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return ULb=a},{mode:1});var WP=function(){return E.apply(this,arguments)||this}; k(WP,E);WP.prototype.configureRendererStamper=function(){return{"data.cell":{id:"cell-container",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer",reportHistoryTableReasonCellRenderer:"ytd-report-history-table-reason-cell-renderer"}}}}; n([F($C.YtRendererstamperBehavior),r("design:type",Object)],WP.prototype,"rendererstamperBehavior",void 0);n([M(),r("design:type",Object)],WP.prototype,"data",void 0);n([gu({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],WP); Tu(WP,"ytd-report-history-table-cell-renderer",function(){if(TLb!==void 0)return TLb;var a=document.createElement("template");Q(a,"
\n");a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild); return TLb=a},{mode:1});var VLb;var XP=function(){var a=E.apply(this,arguments)||this;a.columnType={type:"REPORT_HISTORY_COLUMN_TYPE",content:"REPORT_HISTORY_COLUMN_CONTENT",reason:"REPORT_HISTORY_COLUMN_REASON",status:"REPORT_HISTORY_COLUMN_STATUS",date:"REPORT_HISTORY_COLUMN_DATE"};return a}; k(XP,E);XP.prototype.onDataChanged=function(){var a;if((a=this.data)==null?0:a.style)this.componentStyle=this.getStyleName(this.data.style)}; XP.prototype.getCellForColumn=function(a){return this.cells.find(function(b){var c;return((c=z(b==null?void 0:b.cell,jnb)||z(b==null?void 0:b.cell,inb))==null?void 0:c.columnId)===a.type})}; XP.prototype.getClassForColumn=function(a){switch(a){case"REPORT_HISTORY_COLUMN_DATE":return"date";default:return"";}}; XP.prototype.getStyleName=function(a){switch(a){case"REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return"";}}; ba.Object.defineProperties(XP.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var a;return(((a=this.data)==null?void 0:a.cells)||[]).map(function(b){return z(b,hnb)})}}}); XP.prototype.onDataChanged=XP.prototype.onDataChanged;n([M(),r("design:type",Object)],XP.prototype,"data",void 0);n([M(),r("design:type",Array)],XP.prototype,"columnRenderData",void 0);n([M({reflectToAttribute:!0}),r("design:type",String)],XP.prototype,"componentStyle",void 0);n([H("data"),r("design:type",Array),r("design:paramtypes",[])],XP.prototype,"cells",null);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],XP.prototype,"onDataChanged",null); n([gu({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],XP); Tu(XP,"ytd-report-history-table-row-renderer",function(){if(VLb!==void 0)return VLb;var a=document.createElement("template");Q(a,"
\n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return VLb=a},{mode:1});var WLb;var YP=function(){var a=kt.apply(this,arguments)||this;a.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-restore-cached-continuable-data-command":"handleRestoreCachedContinuableDataCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return a}; k(YP,kt);g=YP.prototype;g.configureContinuationPathMap=function(){return{}}; g.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()}; g.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)}; g.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)}; g.observeData=function(){this.data&&(this.continuationIsReloading=!1,this.reloadUiContent=void 0)}; var XLb=function(a,b){a.reloadContinuationItemsCommandMatcher=b}; YP.prototype.handleAppendContinuationItemsAction=function(a){var b=z(a,hmb);if(this.data&&this.data.targetId&&b&&this.continuationPathMap&&b.targetId===this.data.targetId){var c=Vs(a),d=c&&this.continuationPathMap[c];if(d&&c){if(a=this.get(d,this.data)){a:{for(c=0;c0&&m
\n
\n \n
\n
\n
\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return WLb=a},{mode:1});var aQ=function(){return E.apply(this,arguments)||this}; k(aQ,E);aQ.prototype.configureRendererStamper=function(){return{"data.reportedContent":{id:"content-info",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}},"data.reasonsTable":{id:"reasons-table",mapping:{tableRenderer:"ytd-table-renderer"}},"data.doneButton":{id:"done-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}}; n([F($C.YtRendererstamperBehavior),r("design:type",Object)],aQ.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],aQ.prototype,"data",void 0);n([gu({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],aQ); Tu(aQ,"ytd-report-reason-history-modal-renderer",function(){if(SLb!==void 0)return SLb;var a=document.createElement("template");Q(a,"
\n

\n \n

\n
\n \n
\n
\n
\n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return SLb=a},{mode:1});var fMb;var gMb;var bQ=function(){return E.apply(this,arguments)||this}; k(bQ,E);n([F(Yz.YtRendererBehavior),r("design:type",Object)],bQ.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],bQ.prototype,"data",void 0);n([gu({is:"ytd-report-description-renderer",disableElementRegistration:!0})],bQ); Tu(bQ,"ytd-report-description-renderer",function(){if(gMb!==void 0)return gMb;var a=document.createElement("template");Q(a,"
\n
\n
\n
\n \n \n
\n
\n
\n \n \n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return gMb=a},{mode:1});var hMb;var cQ=function(){return E.apply(this,arguments)||this}; k(cQ,E);cQ.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}}; n([F($C.YtRendererstamperBehavior),r("design:type",Object)],cQ.prototype,"ytRendererstamperBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],cQ.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],cQ.prototype,"data",void 0);n([gu({is:"ytd-video-report-renderer",disableElementRegistration:!0})],cQ); Tu(cQ,"ytd-video-report-renderer",function(){if(hMb!==void 0)return hMb;var a=document.createElement("template");Q(a,"
\n
\n \n \n \n \n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return hMb=a},{mode:1});var iMb;kE("itemSectionRenderer","messageRenderer","ytd-message-renderer");kE("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var dQ=function(){return E.apply(this,arguments)||this}; k(dQ,E);dQ.prototype.configureRendererStamper=function(){return{"data.button":{id:"message-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}},"data.icon":{id:"icon",mapping:{iconType:{component:"yt-icon",properties:{icon:"[[data.icon.iconType]]"}}}},"data.thumbnail":{id:"thumbnail",mapping:{messageThumbnailRenderer:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail.messageThumbnailRenderer.thumbnailDetails]]"}}}}}}; dQ.prototype.computeMessageStyle=function(a){return a}; dQ.prototype.computeButtonOverride=function(a){var b;if((a==null?0:(b=a.style)==null?0:b.value)&&a.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],dQ.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],dQ.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],dQ.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],dQ.prototype,"shelf",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],dQ.prototype,"panel",void 0); n([M({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),r("design:type",Boolean)],dQ.prototype,"componentStyle",void 0);n([M({computed:"computeButtonOverride(data)"}),r("design:type",Object)],dQ.prototype,"buttonOverride",void 0);n([gu({is:"ytd-message-renderer",disableElementRegistration:!0})],dQ); Tu(dQ,"ytd-message-renderer",function(){if(iMb!==void 0)return iMb;var a=document.createElement("template");Q(a,"
\n
\n\n\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return iMb=a},{mode:1});var eQ=function(){return E.apply(this,arguments)||this}; k(eQ,E);eQ.prototype.configureRendererStamper=function(){return{"data.reportHistorySectionRenderers":{id:"items",mapping:{videoReportRenderer:"ytd-video-report-renderer"}},"data.header":{id:"header",mapping:{reportHistorySectionHeaderRenderer:"ytd-report-history-section-header-renderer"}},"data.table":{id:"history-table",mapping:{tableRenderer:"ytd-table-renderer",messageRenderer:"ytd-message-renderer"}}}}; eQ.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}}; eQ.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1}; ba.Object.defineProperties(eQ.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!(((a=this.data)==null?0:a.header)&&((b=this.data)==null?0:b.table))}}}); eQ.prototype.onRequestError=eQ.prototype.onRequestError;n([F(ZP),r("design:type",Object)],eQ.prototype,"ytContinuationHandlerBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],eQ.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],eQ.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],eQ.prototype,"data",void 0); n([H("data"),r("design:type",Object),r("design:paramtypes",[])],eQ.prototype,"isUnifiedReportHistory",null);n([Kt("yt-service-request-error"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],eQ.prototype,"onRequestError",null);n([gu({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],eQ); Tu(eQ,"ytd-report-history-section-renderer",function(){if(fMb!==void 0)return fMb;var a=document.createElement("template");Q(a,"\n\n\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return fMb=a},{mode:1});var jMb;var gQ=function(){var a=kt.apply(this,arguments)||this;a.dragging=!1;a.dragMouseStart=0;a.dragOffsetStart=0;a.containerWidthDiff=0;a.boundPrevClick=function(){a.set("offset",fQ(a,a.offset-(a.scrollDistance||320)))}; a.boundNextClick=function(){a.set("offset",fQ(a,a.offset+(a.scrollDistance||320)))}; a.boundScrollContainerMouseDown=function(b){a.dragMouseStart=b.clientX;a.dragOffsetStart=a.offset;a.dragging=!0}; a.boundScrollContainerDrag=function(b){a.dragging&&a.set("offset",fQ(a,a.dragOffsetStart-(b.clientX-a.dragMouseStart)))}; a.boundMouseUp=function(){a.onMouseUp()}; a.boundWheelScroll=function(b){var c=0;Math.abs(b.deltaX)>=Math.abs(b.deltaY)?c=b.deltaX:b.shiftKey&&(c=b.deltaY);c!==0&&(a.offset+=c,b.stopPropagation(),b.preventDefault())}; a.boundChipCloudChipScrollIntoView=function(b){(b=b.detail)&&a.scrollChipIntoView(b)}; return a}; k(gQ,kt);gQ.prototype.attached=function(){var a=wt(this.hostElement).querySelector("#scroll-container");a.addEventListener("wheel",this.boundWheelScroll);a.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);a.style.touchAction="pan-y";a.addEventListener("pointerdown",this.boundScrollContainerMouseDown);a.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)}; gQ.prototype.detached=function(){var a=wt(this.hostElement).querySelector("#scroll-container");a.removeEventListener("wheel",this.boundWheelScroll);a.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);a.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);a.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)}; gQ.prototype.reset=function(){this.set("offset",0);ms(this,this.setContainerWidthDiff);ms(this,this.setButtonsState)}; var fQ=function(a,b){return Math.min(Math.max(b,0),a.containerWidthDiff)}; g=gQ.prototype;g.onMouseUp=function(){this.dragging=!1}; g.transformContainer=function(){this.offset=fQ(this,this.offset);var a=Vk("HTML_DIR")==="rtl"?"":"-";wt(this.hostElement).querySelector("#chips").style.transform="translateX("+a+this.offset+"px)";ms(this,this.setButtonsState)}; g.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=fQ(this,this.offset));this.atStart=this.offset<=0}; g.setContainerWidthDiff=function(){var a=wt(this.hostElement).querySelector("#scroll-container"),b=wt(this.hostElement).querySelector("#chips");(a==null?0:a.clientWidth)&&(b==null?0:b.clientWidth)&&(this.containerWidthDiff=b.clientWidth-a.clientWidth)}; g.scrollChipIntoView=function(a){var b=wt(this.hostElement).querySelector("#scroll-container");if(b){var c=this.atStart?0:106,d=this.atEnd?0:106;a.offsetLeftthis.offset+b.clientWidth-d&&(this.offset=fQ(this,a.offsetLeft+a.clientWidth+d-b.clientWidth))}}; gQ.prototype.transformContainer=gQ.prototype.transformContainer;n([M({value:0}),r("design:type",Number)],gQ.prototype,"offset",void 0);n([M({value:!0,reflectToAttribute:!0}),r("design:type",Boolean)],gQ.prototype,"atStart",void 0);n([M({value:!1,reflectToAttribute:!0}),r("design:type",Boolean)],gQ.prototype,"atEnd",void 0);n([M(),r("design:type",Number)],gQ.prototype,"scrollDistance",void 0); n([Lt("offset"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],gQ.prototype,"transformContainer",null);n([Vt()],gQ);var kMb;var lMb;function mMb(a){return a?a.simpleText?a.simpleText:a.runs?a.runs.map(function(b){return b.text}).join(""):"":""} ;function nMb(a){var b=a.data;var c=a.onTap;var d=a.isSelected;var e=a.onFocusIn;if(!b)return{};a=oMb(b);d===void 0&&(d=b==null?void 0:b.isSelected);var f;return{text:pMb(b,a),startIcon:(f=b.icon)==null?void 0:f.iconType,state:d?0:2,type:0,style:qMb(b),onTap:rMb(b,c),accessibilityLabel:sMb(b,a),onFocusIn:function(){return e==null?void 0:e()}, middlegroundAsset:b.middlegroundAsset,onHover:tMb(b)}} function pMb(a,b){if(!b)return a.text?mMb(a.text):void 0} function qMb(a){var b;switch((b=a.style)==null?void 0:b.styleType){case"STYLE_AI_CUSTOMIZED_FEED_CHIP":return 0;}} function rMb(a,b){return function(c){b==null||b(c,a)}} function tMb(a){return function(){var b=a==null?void 0:a.onHover;b&&OB(b)}} function oMb(a){a=a.style&&a.style.styleType;return!Bd&&a==="STYLE_EXPLORE_LAUNCHER_CHIP"} function sMb(a,b){if(b){var c,d,e;return(e=(c=a.accessibilityData)==null?void 0:(d=c.accessibilityData)==null?void 0:d.label)!=null?e:pMb(a,!1)}} ;bB(Gzb,"chip-shape",{props:{data:$A}});var hQ=function(){var a=E.apply(this,arguments)||this;a.disableDeselectEvent=!1;a.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return a}; k(hQ,E);g=hQ.prototype;g.onSelectChipCommand=function(a){if(!this.selected&&this.data&&(a=z(a,Cmb),a.targetId&&a.targetId===this.data.targetId))this.onTap()}; g.onFilterChipTransformCommand=function(a){if(!this.selected&&this.data){var b,c=(b=z(a,Clb))==null?void 0:b.chipUniqueId;if(c&&c===this.data.uniqueId){var d;b=(d=z(a,Clb))==null?void 0:d.chipCommandFormData;var e;a=(e=z(a,Clb))==null?void 0:e.filterChipSelectBehavior;this.scrollChipIntoView();if(a==="FILTER_CHIP_SELECT_BEHAVIOR_SELECT_ONLY")Xu(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement]);else this.onTap(b)}}}; g.dataChanged=function(){var a=this;ms(this,function(){a.data&&a.data.isSelected&&!a.selected&&(a.scrollChipIntoView(),a.onTap())})}; g.computeChipStyle=function(a){return a!=null?a:"STYLE_DEFAULT"}; g.onTap=function(a){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint?Xu(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(Xu(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint,a&&{form:{genericFormData:a}})))}; g.onFocus=function(){var a=Fn().resolve(Cn(tD));a&&a.keyboardInUse&&this.scrollChipIntoView()}; g.scrollChipIntoView=function(){Gt(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)}; ba.Object.defineProperties(hQ.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.icon)}}, chipShapeData:{configurable:!0,enumerable:!0,get:function(){return nMb({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}}); hQ.prototype.onFocus=hQ.prototype.onFocus;hQ.prototype.dataChanged=hQ.prototype.dataChanged;n([F(KI),r("design:type",Object)],hQ.prototype,"ironButtonState",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],hQ.prototype,"ytRendererBehavior",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],hQ.prototype,"ytActionHandlerBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],hQ.prototype,"ytComponentBehavior",void 0); n([F(Lw),r("design:type",Object)],hQ.prototype,"ironA11yKeysBehavior",void 0);n([M(),r("design:type",Object)],hQ.prototype,"disableDeselectEvent",void 0);n([M(),r("design:type",Object)],hQ.prototype,"data",void 0);n([M({reflectToAttribute:!0}),H("data.icon"),r("design:type",Boolean),r("design:paramtypes",[])],hQ.prototype,"hasIcon",null);n([M({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),r("design:type",String)],hQ.prototype,"chipStyle",void 0); n([M({value:!1,reflectToAttribute:!0}),r("design:type",Boolean)],hQ.prototype,"selected",void 0);n([H("data","selected"),r("design:type",Object),r("design:paramtypes",[])],hQ.prototype,"chipShapeData",null);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],hQ.prototype,"dataChanged",null);n([Kt("focus"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],hQ.prototype,"onFocus",null); n([fu({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],hQ); Tu(hQ,"yt-chip-cloud-chip-renderer",function(){if(lMb===void 0){var a=document.createElement("template");Q(a,"
\n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;kMb===void 0&&(kMb=document.createElement("template"));var d=kMb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);lMb=a}a=lMb;return a},{mode:2});var uMb=j0a({sharedUi:oVa});var iQ=l0a(uMb)(uMb.sharedUi,{animatedThumbnailEnabledSelector:function(a){return a.animatedThumbnailEnabled}, inlinePreviewEnabledSelector:function(a){return a.inlinePreviewEnabled}, currentPageTypeSelector:function(a){return a.currentPageType}, currentPageSubTypeSelector:function(a){return a.currentPageSubType}, persistentPanelVisibleSelector:function(a){return a.persistentPanelVisible}, isSearchboxHiddenSelector:function(a){return a.isSearchboxHidden}});var jQ=O(function(a){a=Hu(a,{wrapper:!1}).wrapper;return D(P,{cond:a,then:function(){return D("yt-spinner-shape",{class:"ytSpinnerShapeWrapper"},D("div",{class:"ytSpinnerShapeSpinner"}))}, else:function(){return D("yt-spinner-shape",{class:"ytSpinnerShapeSpinner"})}})},"$a"); jQ.idomCompat=!0;function vMb(){var a;return[function(b,c,d){return Gt(a,b,c,d)}, function(b){a=b}]} ;var xMb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("U6hftf"),2);a=wMb;return b.return(a)})},yMb=yD(function(){return xMb()},{debugName:"aiResponseBoxViewModel"}); Gn(xD,function(a){a.registerLoadFn("aiResponseBoxViewModel","U6hftf",xMb)});var zMb=Object.assign({},{continuation:sVa,download:wVa,canvas:yVa,reportChannelAbuse:TA,ui:LVa,share:EVa,talkToRecs:GVa,watch:UA,ypc:NVa,radioButtonGroup:vVa,collabInviteLink:rVa},pVa,TVa),AMb=j0a(zMb);var BMb=l0a(AMb)(AMb.talkToRecs,{talkToRecsStateSelector:function(a){return a}});var DMb=O(function(a){var b=a.data;var c=Vo(function(){var Na;a:{if(Na=b().onUpdateText)if(Na=z(Na,ny)){var Cb;Na=(Cb=z(Na,Dlb))==null?void 0:Cb.stepId;break a}Na=void 0}return Na},void 0,"iDToRb"); a=l(ip(!1,void 0,"DdC1qf"));var d=a.next().value,e=a.next().value;a=l(ip(!1,void 0,"E1tFnb"));var f=a.next().value,h=a.next().value;a=l(vMb());var m=a.next().value;a=a.next().value;var p=eL(BMb.talkToRecsStateSelector),q=l(ip("",void 0,"SKVwmb")),t=q.next().value,u=q.next().value;q=l(ip(!1,void 0,"XyrOoe"));var v=q.next().value,w=q.next().value,y=function(){return!!b().loadingMessage}; q=l(ip(!1,void 0,"AqHNhb"));var A=q.next().value,C=q.next().value;q=l(ip(!1,void 0,"mVLyZ"));var I=q.next().value,K=q.next().value;q=l(ip(!1,void 0,"wJkvue"));var N=q.next().value,L=q.next().value;q=l(ip(!0,void 0,"aMajm"));var R=q.next().value,W=q.next().value,S=function(){return b().talkToRecsStyle==="TALK_TO_RECS_STYLE_CUSTOM_FEED"},Y=function(){return S()&&v()},da=function(){return Y()||S()&&N()},Aa=Fn().resolve(Cn(HB)),Sa=function(){return x("scf_enable_input_glow")},Ua=function(){return Sa()&&( Aa==null?void 0:Aa())},qb=sw("div"); q=l(ip(void 0,void 0,"zmbCAd"));var ab=q.next().value,La=q.next().value,ib=void 0,sb=function(Na){Y()||y()||Na===d()||(h(!0),e(Na),W(!1),ib&&clearTimeout(ib),ib=setTimeout(function(){h(!1)},300))},Oa=function(){if(ab()!==void 0){var Na=ab(); sb(window.scrollY>Na)}},Ca=function(){var Na; La((Na=qb.value)==null?void 0:Na.offsetHeight);m("yt-feed-filter-chip-bar-resize")},eb=""; lw(function(){eb=t()},"AySmPb"); rw(function(){var Na,Cb,fc,Cc=(fc=(Cb=CMb(c(),p()))!=null?Cb:(Na=b().textInputValue)==null?void 0:Na.content)!=null?fc:"";u(Cc);Nb(Cc);y()&&sb(!1);w(!!b().welcomeBannerTitle&&!Cc);Ca();document.addEventListener("scroll",Oa);zp(function(){document.removeEventListener("scroll",Oa);ib&&clearTimeout(ib)})}); lw(function(){y();v();Ca()},"pJ5i3c"); var Qa=FC(function(){K(!0);C(!0)}),Bb=FC(function(){C(!1)}),dc=!1; lw(function(){var Na=b();if(dc){K(!1);L(!1);W(!0);var Cb,fc,Cc=(fc=(Cb=Na.textInputValue)==null?void 0:Cb.content)!=null?fc:"";Cc!==eb&&(u(Cc),Nb(Cc));w(!!Na.welcomeBannerTitle&&!Cc)}else dc=!0},"uwC78e"); lw(function(){Y();m("set-full-height-selected-chip-content",Y())},"y3QEHf"); var Nb=function(Na){var Cb=b().onUpdateText;Cb&&QB(Cb,{form:{userQuery:Na}})},Lc=zh(function(Na){Nb(Na)},150),Fc=FC(function(Na){Na=Na.target.value; u(Na);Lc(Na);return!1}); lw(function(){var Na=CMb(c(),p());Na!==void 0&&Na!==eb&&u(Na)},"IhgwTe"); var wc=function(){L(!0);w(!1);W(!1)},kd=function(){var Na=z(b().submitButton,ZJ); if(Na==null?0:Na.trackingParams){var Cb=Qv(Na.trackingParams),fc=Tv();fc&&Cb&&yz(fc,Cb,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK")}if(Na=Na==null?void 0:Na.onTap)QB(Na),wc()},zc=FC(function(Na){Na.key==="Enter"&&Na.preventDefault()}),ld=FC(function(Na){Na.key==="Enter"&&(Nb(Na.target.value.trim()),Y()&&t().trim()===""||kd()); return!1}),Sd=function(){kd()}; q=FC(function(){m("yt-feed-customization-scroll-up")}); var Jc={},ec={},Xa={},Mb={};return D("ytd-feed-customization-form-view-model",{class:U("ytdFeedCustomizationFormViewModelHost",(Jc.ytdFeedCustomizationFormViewModelHostCollapsed=d,Jc.ytdFeedCustomizationFormViewModelHostFullHeight=function(){return Y()},Jc)), el:dB(a)},D("div",{class:U("ytdFeedCustomizationFormViewModelBodyContainer",(ec.ytdFeedCustomizationFormViewModelBodyContainerCentered=function(){return Y()},ec)), el:qb},D("div",{class:U("ytdFeedCustomizationFormViewModelExpandedContent",(Xa.ytdFeedCustomizationFormViewModelExpandedContentMaxWidth=function(){return Y()},Xa.ytdFeedCustomizationFormViewModelNotShown=function(){return d()&&!f()},Xa))},D(P,{cond:y, then:function(){return D("div",{class:"ytdFeedCustomizationFormViewModelLoadingMessage",role:"status"},D("div",{class:"ytdFeedCustomizationFormViewModelSpinner"},D(jQ,null)),D("div",null,D(gC,{text:function(){return b().loadingMessage}})))}, else:function(){var Na={};return D(mq,null,D(P,{cond:v,then:function(){var Cb={},fc={};return D("div",{class:U("ytdFeedCustomizationFormViewModelWelcomeBannerContainer",(Cb.ytdFeedCustomizationFormViewModelWelcomeBannerContainerCustomFeed=Y,Cb))},D("div",{class:U((fc.ytdFeedCustomizationFormViewModelWelcomeBannerTitle=function(){return!b().welcomeBannerSummary},fc.ytdFeedCustomizationFormViewModelWelcomeBannerCompactTitle=function(){return!!b().welcomeBannerSummary},fc))},D(P,{cond:function(){return!!b().welcomeBannerTitleSuperscript}, then:function(){return D("sup",{class:"ytdFeedCustomizationFormViewModelSuperScript"},D(gC,{text:function(){return b().welcomeBannerTitleSuperscript}}))}}),D(gC,{text:function(){return b().welcomeBannerTitle}})),D(P,{cond:function(){return!!b().welcomeBannerSummary}, then:function(){return D("div",{class:"ytdFeedCustomizationFormViewModelWelcomeBannerSummary"},D(gC,{text:function(){return b().welcomeBannerSummary}}))}, else:function(){var Cc={};return D("div",{class:U("ytdFeedCustomizationFormViewModelWelcomeBannerSubtitle",(Cc.ytdFeedCustomizationFormViewModelWelcomeBannerSubtitleCustomFeed=Y,Cc))},D(gC,{text:function(){return b().welcomeBannerSubtitle}}))}}))}}),D("div",{class:U("ytdFeedCustomizationFormViewModelInputContainer",(Na.ytdFeedCustomizationFormViewModelInputContainerMaxWidth=S,Na.ytdFeedCustomizationFormViewModelInputContainerHighlighted=A,Na.ytdFeedCustomizationFormViewModelInputContainerCustomFeed= Y,Na.ytdFeedCustomizationFormViewModelInputContainerCustomFeedGlow=Sa,Na))},D(P,{cond:Sa, then:function(){var Cb={};return D("div",{class:U("ytdFeedCustomizationFormViewModelInputGlow",(Cb.ytdFeedCustomizationFormViewModelInputGlowDarkTheme=Ua,Cb))})}}),D("textarea",{class:U("ytdFeedCustomizationFormViewModelInputField","ytdFeedCustomizationFormViewModelTextArea"), placeholder:function(){var Cb;return(Cb=b().textInputPlaceholder)==null?void 0:Cb.content}, "prop:value":t,"on:focus":Qa,"on:blur":Bb,"on:input":Fc,"on:keydown":zc,"on:keyup":ld,maxlength:600,disabled:N,rows:3}),D(P,{cond:function(){return!!t()&&!N()}, then:function(){return D(OC,{data:function(){return b().clearButton}},{buttonViewModel:function(Cb){return D("div",{class:"ytdFeedCustomizationFormViewModelClearButtonContainer"},D(BD,{data:Cb.data}))}})}}),D(P,{cond:function(){return N()}, then:function(){return D(OC,{data:function(){return b().inProgressButton}},{buttonViewModel:function(Cb){return D("div",{class:"ytdFeedCustomizationFormViewModelSubmitButtonContainer"},D(BD,{data:Cb.data, buttonOverrides:{disabled:!0}}))}})}, else:function(){return D(OC,{data:function(){return b().submitButton}},{buttonViewModel:function(Cb){return D("div",{class:"ytdFeedCustomizationFormViewModelSubmitButtonContainer"},D(BD,{data:Cb.data, onClick:wc,buttonOverrides:function(){return{disabled:Y()&&t().trim()===""}}}))}})}}),D(OC,{data:function(){return b().menuButton}},{buttonViewModel:function(Cb){Cb=Cb.data; var fc={};return D("div",{class:U("ytdFeedCustomizationFormViewModelMenuButtonContainer",(fc.ytdFeedCustomizationFormViewModelMenuButtonContainerCustomFeed=Y,fc))},D(BD,{data:Cb,buttonOverrides:function(){return{disabled:N()}}}))}})),D(OC,{data:function(){return b().contents}},{aiResponseBoxViewModel:function(Cb){return D("div",{class:"ytdFeedCustomizationFormViewModelResponseContainer"},D(yMb,{data:Cb.data, showChips:I,disableChipsAnimation:da,isUpdateInProgress:N,allowRemovalAnimation:R,chipClickCallback:Sd,isCustomFeed:S,isCustomFeedZeroState:Y}))}}))}})),D("div",{class:U("ytdFeedCustomizationFormViewModelCollapsedContent",(Mb.ytdFeedCustomizationFormViewModelNotShown=function(){return!d()&&!f()},Mb)), "on:click":q},D("div",{class:"ytdFeedCustomizationFormViewModelCollapsedText"},function(){var Na;return t()||((Na=b().textInputPlaceholder)==null?void 0:Na.content)}))))},"fb"); function CMb(a,b){b=b==null?void 0:b.stepStates;if(a&&b){var c,d;return(c=b[a])==null?void 0:(d=c.userQuery)==null?void 0:d.userQuery}} ;bB(DMb,"ytd-feed-customization-form-view-model",{props:{data:$A}});var EMb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("afKLpc"),2);a=DMb;return b.return(a)})},FMb=yD(function(){return EMb()},{debugName:"feedCustomizationFormViewModel"}); Gn(xD,function(a){a.registerLoadFn("feedCustomizationFormViewModel","afKLpc",EMb)});var GMb=MC(function(a){return a.targetId},{shouldPersist:!1}),HMb=GMb.updateData,IMb=GMb.useUpdatableData,JMb=MC(function(a){return a.targetId},{shouldPersist:!0}),KMb=JMb.updateData,LMb=JMb.useUpdatableData; function MMb(a,b){KMb(a,b)||HMb(a,b)} function kQ(a,b){b=b===void 0?{}:b;return b.persist?LMb(a):IMb(a)} ;bB(O(function(a){var b=l(kQ(a.data)).next().value;return D("yt-chip-content-loader-view-model",{class:"ytChipContentLoaderViewModelHost"},D(OC,{data:function(){return b().contents}},{feedCustomizationFormViewModel:function(c){return D(FMb,{data:c.data})}}))},"gb"),"yt-chip-content-loader-view-model",{props:{data:$A}});var NMb=iQ.persistentPanelVisibleSelector,lQ=function(){var a=E.apply(this,arguments)||this;a.isDarkTheme=!1;a.notSticky=!1;a.transparentBackground=!1;a.shouldHide=!1;a.disableSticky=!1;a.fluidWidth=!1;a.isClipList=!1;a.defaultChipIndex=0;a.hasSelectedChipContent=!1;a.showFullHeightSelectedChipContent=!1;a.isPlaylist=!1;a.toolbarHeight=0;a.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"}; return a}; k(lQ,E);g=lQ.prototype; g.configureRendererStamper=function(){return{"data.contents":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer",properties:{disableDeselectEvent:"[[isDisableDeselectEvent]]"}}}},sortFilterHeaderRendererData:{id:"filter",mapping:{sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isClipList:"[[isClipList]]",isPlaylistPageWithFilters:"[[isPlaylistPage]]"}}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"}, params:{iconSize:16}}}},selectedChipContent:{id:"selected-chip-content",mapping:{feedCustomizationFormViewModel:{component:"ytd-feed-customization-form-view-model"},chipContentLoaderViewModel:{component:"yt-chip-content-loader-view-model"}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}}; g.attached=function(){var a=this;document.addEventListener("scroll",It(this,this.updateChipBarWidthAndTop));document.addEventListener("yt-feed-filter-chip-bar-resize",It(this,this.onFeedFilterChipBarResize));this.isDarkTheme=document.documentElement.hasAttribute("dark");var b;this.toolbarHeight=((b=document.querySelector("ytd-masthead"))==null?void 0:b.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(c){a.handleIntersect(c)},{rootMargin:"-"+( this.toolbarHeight+1)+"px 0px 0px 0px", threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){a.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))}; g.detached=function(){var a;(a=this.intersectionObserver)==null||a.disconnect();var b;(b=this.resizeObserver)==null||b.disconnect();document.removeEventListener("scroll",It(this,this.updateChipBarWidthAndTop));document.removeEventListener("yt-feed-filter-chip-bar-resize",It(this,this.onFeedFilterChipBarResize))}; g.dataChanged=function(){var a=this,b,c,d=(b=this.data)==null?void 0:(c=b.contents)==null?void 0:c.findIndex(function(f){var h;return!((h=z(f,Brb))==null?0:h.navigationEndpoint)}); d&&(this.defaultChipIndex=d);this.updating=!0;var e=this.findSelectedChipIndex();this.selectedIndex!==e&&(this.selectedIndex=-1);ms(this,function(){a.selectedIndex=e;a.updateSelectedChipContent(a.selectedIndex);a.updating=!1;a.ytScrollableChipCloudBehavior.reset()})}; g.findSelectedChipIndex=function(){var a;if((a=this.data)==null||!a.contents)return 0;a=this.data.contents;for(var b=0;b-1&&(this.chipsSelector.selectIndex(a),this.updateSelectedChipContent(a))}; g.updateSelectedChipContent=function(a){this.showFullHeightSelectedChipContent=!1;var b;if((b=this.data)==null||!b.contents||a<0||a>=this.data.contents.length)this.selectedChipContent=void 0;else{var c;this.selectedChipContent=(c=z(this.data.contents[a],Brb))==null?void 0:c.content}}; g.handleChipCloudChipDeselectAction=function(){if(x("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var a,b,c,d=(c=z((a=this.data)==null?void 0:(b=a.contents)==null?void 0:b[this.defaultChipIndex],Brb))==null?void 0:c.navigationEndpoint;d&&Xu(this.hostElement,"yt-browse-section-list-reload-endpoint",[d]);this.chipsSelector.selectIndex(this.defaultChipIndex);this.updateSelectedChipContent(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}}; g.onSelectedChipContentChanged=function(){this.hasSelectedChipContent=!!this.selectedChipContent}; g.onFeedFilterChipBarResize=function(){this.updateDynamicHeight()}; g.updateDynamicHeight=function(){var a=this;this.hasSelectedChipContent&&!this.notSticky?ms(this,function(){var b=wt(a.hostElement).querySelector("#chips-wrapper");b&&Ft(a.hostElement,{"--ytd-chips-bar-dynamic-height":b.clientHeight+"px"})}):Ft(this.hostElement,{"--ytd-chips-bar-dynamic-height":""})}; g.onGuideIsExpandedChanged=function(){this.updateLayout()}; g.onPersistentPanelVisibleChanged=function(){this.updateLayout()}; g.onResize=function(){this.updateLayout()}; g.onSetFullHeightSelectedChipContent=function(a){this.showFullHeightSelectedChipContent=a.detail}; g.updateLayout=function(){var a=this.ytScrollableChipCloudBehavior;ms(a,a.setContainerWidthDiff);a=this.ytScrollableChipCloudBehavior;ms(a,a.setButtonsState)}; g.onDarkModeToggledAction=function(a){this.isDarkTheme=a}; g.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight}; g.handleIntersect=function(a){this.notSticky=this.isChannelPageGrid||this.disableSticky||a[0].intersectionRatio===1}; g.updateDimensions=function(){var a=this.ytRendererBehavior.parentComponent;if(a){var b,c=(b=a.headerElement)!=null?b:a;Ft(this.hostElement,{"--ytd-rich-grid-chips-bar-width":c.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}}; g.updateSelectedIndexFromBinding=function(a){this.selectedIndex=a.detail.value}; g.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var a;(a=this.sortFilterHeaderRendererElement)==null||a.setAttribute("is-playlist-page-with-filters","")}}; g.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(KVa(!this.notSticky))}; ba.Object.defineProperties(lQ.prototype,{isChannelPageGrid:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_CHANNEL_PAGE_GRID"}}, isHashtagLandingPage:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_HASHTAG_LANDING_PAGE"}}, isPlaylistPage:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_PLAYLIST_PAGE"}}, isDisableDeselectEvent:{configurable:!0,enumerable:!0,get:function(){return this.isChannelPageGrid||this.isHashtagLandingPage||this.isPlaylistPage}}, sortFilterHeaderRendererData:{configurable:!0,enumerable:!0,get:function(){var a,b,c=(a=this.data)==null?void 0:(b=a.contents)==null?void 0:b.find(function(d){return z(d,Erb)}); return{sortFilterHeaderRenderer:z(c,Erb)}}}}); lQ.prototype.dispatchChipBarIsSticky=lQ.prototype.dispatchChipBarIsSticky;lQ.prototype.isPlaylistPageChanged=lQ.prototype.isPlaylistPageChanged;lQ.prototype.updateChipBarWidthAndTop=lQ.prototype.updateChipBarWidthAndTop;lQ.prototype.onSetFullHeightSelectedChipContent=lQ.prototype.onSetFullHeightSelectedChipContent;lQ.prototype.onResize=lQ.prototype.onResize;lQ.prototype.onPersistentPanelVisibleChanged=lQ.prototype.onPersistentPanelVisibleChanged;lQ.prototype.onGuideIsExpandedChanged=lQ.prototype.onGuideIsExpandedChanged; lQ.prototype.updateDynamicHeight=lQ.prototype.updateDynamicHeight;lQ.prototype.onSelectedChipContentChanged=lQ.prototype.onSelectedChipContentChanged;lQ.prototype.dataChanged=lQ.prototype.dataChanged;n([F($C.YtRendererstamperBehavior),r("design:type",Object)],lQ.prototype,"ytRendererstamperBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],lQ.prototype,"ytRendererBehavior",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],lQ.prototype,"actionHandlerBehavior",void 0); n([F(Hs),r("design:type",Object)],lQ.prototype,"ironResizableBehavior",void 0);n([F(),r("design:type",gQ)],lQ.prototype,"ytScrollableChipCloudBehavior",void 0);n([F(kC),r("design:type",Object)],lQ.prototype,"ytdReduxBehavior",void 0);n([M(),r("design:type",Object)],lQ.prototype,"data",void 0);n([M({value:0}),r("design:type",Number)],lQ.prototype,"selectedIndex",void 0);n([M({value:320}),r("design:type",Number)],lQ.prototype,"scrollDistance",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],lQ.prototype,"isDarkTheme",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],lQ.prototype,"notSticky",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],lQ.prototype,"transparentBackground",void 0);n([M({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),r("design:type",String)],lQ.prototype,"componentStyle",void 0);n([M({selector:WZa}),r("design:type",Boolean)],lQ.prototype,"guideIsExpanded",void 0); n([M({selector:NMb}),r("design:type",Boolean)],lQ.prototype,"persistentPanelVisible",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],lQ.prototype,"shouldHide",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],lQ.prototype,"disableSticky",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],lQ.prototype,"fluidWidth",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],lQ.prototype,"isClipList",void 0); n([M(),r("design:type",Object)],lQ.prototype,"defaultChipIndex",void 0);n([M(),r("design:type",Object)],lQ.prototype,"selectedChipContent",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],lQ.prototype,"hasSelectedChipContent",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],lQ.prototype,"showFullHeightSelectedChipContent",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],lQ.prototype,"isPlaylist",void 0); n([Tt("#chips"),r("design:type",Object)],lQ.prototype,"chipsSelector",void 0);n([Tt("ytd-sort-filter-header-renderer"),r("design:type",HTMLElement)],lQ.prototype,"sortFilterHeaderRendererElement",void 0);n([M({value:!1,reflectToAttribute:!0}),r("design:type",Boolean)],lQ.prototype,"updating",void 0);n([cu("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],lQ.prototype,"dataChanged",null); n([Lt("selectedChipContent"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],lQ.prototype,"onSelectedChipContentChanged",null);n([Lt("hasSelectedChipContent","notSticky"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],lQ.prototype,"updateDynamicHeight",null);n([Lt("guideIsExpanded"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],lQ.prototype,"onGuideIsExpandedChanged",null); n([Lt("persistentPanelVisible"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],lQ.prototype,"onPersistentPanelVisibleChanged",null);n([Kt("iron-resize"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],lQ.prototype,"onResize",null);n([Kt("set-full-height-selected-chip-content"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],lQ.prototype,"onSetFullHeightSelectedChipContent",null); n([cu("isChannelPageGrid","disableSticky","data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],lQ.prototype,"updateChipBarWidthAndTop",null);n([H("componentStyle"),r("design:type",Boolean),r("design:paramtypes",[])],lQ.prototype,"isChannelPageGrid",null);n([H("componentStyle"),r("design:type",Boolean),r("design:paramtypes",[])],lQ.prototype,"isHashtagLandingPage",null); n([Lt("isPlaylistPage"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],lQ.prototype,"isPlaylistPageChanged",null);n([H("componentStyle"),r("design:type",Boolean),r("design:paramtypes",[])],lQ.prototype,"isPlaylistPage",null);n([H("componentStyle"),r("design:type",Boolean),r("design:paramtypes",[])],lQ.prototype,"isDisableDeselectEvent",null);n([H("data"),r("design:type",Object),r("design:paramtypes",[])],lQ.prototype,"sortFilterHeaderRendererData",null); n([M({reflectToAttribute:!0,selector:function(a){return a.ui.frostedGlassMode}}), r("design:type",String)],lQ.prototype,"frostedGlassMode",void 0);n([Lt("notSticky"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],lQ.prototype,"dispatchChipBarIsSticky",null);n([gu({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],lQ); Tu(lQ,"ytd-feed-filter-chip-bar-renderer",function(){if(jMb!==void 0)return jMb;var a=document.createElement("template");Q(a,"
\n
\n
\n
\n
\n
\n
\n \n \n
\n
\n
\n
\n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return jMb=a},{mode:1});var OMb;var mQ=function(){return E.apply(this,arguments)||this}; k(mQ,E);n([F(Yz.YtRendererBehavior),r("design:type",Object)],mQ.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],mQ.prototype,"data",void 0);n([gu({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],mQ); Tu(mQ,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(OMb!==void 0)return OMb;var a=document.createElement("template");Q(a,"\n \n \n
[[getSimpleString(data.title)]]
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return OMb=a},{mode:1});var PMb;var nQ=function(){return E.apply(this,arguments)||this}; k(nQ,E);nQ.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}}; n([F($C.YtRendererstamperBehavior),r("design:type",Object)],nQ.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],nQ.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",String)],nQ.prototype,"aligment",void 0);n([gu({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],nQ); Tu(nQ,"ytd-channel-list-sub-menu-renderer",function(){if(PMb!==void 0)return PMb;var a=document.createElement("template");Q(a,"
\n");a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return PMb=a}, {mode:1});var QMb;var oQ=function(){return E.apply(this,arguments)||this}; k(oQ,E);oQ.prototype.configureRendererStamper=function(){return{"data.playAllButton":{id:"play-all",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.rightButtons":{id:"right-buttons",mapping:{buttonRenderer:"ytd-button-renderer",menuRenderer:"ytd-menu-renderer"}},"data.sortSetting":{id:"sort-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",params:{isRightAligned:!0}}}}}}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],oQ.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],oQ.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],oQ.prototype,"data",void 0);n([gu({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],oQ); Tu(oQ,"ytd-channel-sub-menu-renderer",function(){if(QMb!==void 0)return QMb;var a=document.createElement("template");Q(a,"
\n \n \n
\n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return QMb=a},{mode:1});var RMb;var SMb;var pQ=function(){var a=E.apply(this,arguments)||this;a.forceModernIconButton=!1;a.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return a}; k(pQ,E);pQ.prototype.configureRendererStamper=function(){return{button:{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{forceIconButton:!0,styleActionButton:!0},properties:{overrides:"[[overrides]]",forceModernIconButton:"[[forceModernIconButton]]",disableTextTransform:"[[disableTextTransform]]",buttonTooltipPosition:"[[buttonTooltipPosition]]",forceIconButton:"[[forceIconButton]]"}}}}}}; pQ.prototype.handleAccountLinkingStateChangedCommand=function(a){if(a=z(a,vnb)){var b,c=(b=this.data)==null?void 0:b.providerKey;b=a.providerKey;c&&b&&c.id===b.id&&c.subject===b.subject&&(a=a.linked,a!==void 0&&(this.set("data.linked",a),this.notifyPath("data.linked"),x("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(a)))}}; pQ.prototype.setPlayerAccountLinkState=function(a){var b=new Mpb;Npb(b,Kpb(new Jpb,a));var c=xO();c&&c.getPlayerPromise().then(function(d){d.setAccountLinkState(Fd(b.JSC$10775_serializeBinary(),4));d.updateAccountLinkingConfig(a)})}; pQ.prototype.handleShowAccountLinkDialog=function(){var a=this.get("button.buttonRenderer.command");a&&aub([a],this.hostElement)}; ba.Object.defineProperties(pQ.prototype,{button:{configurable:!0,enumerable:!0,get:function(){if(this.data){if(this.data.linked&&this.data.warningButton&&this.data.isWarning)return this.data.warningButton;if(this.data.linked&&this.data.linkedButton)return this.data.linkedButton;if(!this.data.linked&&this.data.unlinkedButton)return this.data.unlinkedButton}}}}); n([F($C.YtRendererstamperBehavior),r("design:type",Object)],pQ.prototype,"ytRendererstamperBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],pQ.prototype,"ytRendererBehavior",void 0);n([F([ft.YtActionHandlerBehavior]),r("design:type",Object)],pQ.prototype,"actionHandlerBehavior",void 0);n([M(),r("design:type",Object)],pQ.prototype,"data",void 0);n([M(),r("design:type",Object)],pQ.prototype,"overrides",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],pQ.prototype,"forceModernIconButton",void 0);n([M({value:"bottom"}),r("design:type",String)],pQ.prototype,"buttonTooltipPosition",void 0);n([M({value:!1}),r("design:type",Boolean)],pQ.prototype,"forceIconButton",void 0);n([M(),r("design:type",Boolean)],pQ.prototype,"disableTextTransform",void 0);n([H("data","data.linked","data.isWarning"),r("design:type",Object),r("design:paramtypes",[])],pQ.prototype,"button",null); n([gu({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],pQ); Tu(pQ,"ytd-account-link-button-renderer",function(){if(SMb!==void 0)return SMb;var a=document.createElement("template");Q(a,"
\n");a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return SMb=a},{mode:1});var TMb;var UMb=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],qQ=function(){return E.apply(this,arguments)||this}; k(qQ,E);qQ.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}}; qQ.prototype.updateButtonActiveState=function(){var a=this,b=!!UMb.find(function(c){return a.currentState===c}); this.currentState==="PLAYLIST_LOOP_STATE_ONE"&&x("enable_web_delhi_icons")&&(b=!1);this.button&&(this.button.isPressed=b)}; ba.Object.defineProperties(qQ.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.playlistLoopStateEntity)==null?void 0:a.state)||((b=this.data)==null?void 0:b.currentState)}}, currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var a=void 0,b;if(this.currentState&&((b=this.data)==null?0:b.states)){b=l(this.data.states);for(var c=b.next();!c.done;c=b.next()){c=z(c.value,Omb);var d=void 0;if(((d=c)==null?void 0:d.state)===this.currentState){a=c;break}}}return a}}}); qQ.prototype.updateButtonActiveState=qQ.prototype.updateButtonActiveState;n([F(kC),r("design:type",Object)],qQ.prototype,"ytdReduxBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],qQ.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],qQ.prototype,"ytRendererstamperBehavior",void 0); n([M({selectorArgs:["data.playlistLoopStateEntityKey"],selector:SC.playlistLoopStateEntitySelector}),r("design:type",Object)],qQ.prototype,"playlistLoopStateEntity",void 0);n([M(),r("design:type",Object)],qQ.prototype,"data",void 0);n([M(),r("design:type",Boolean)],qQ.prototype,"forceIconOnly",void 0);n([Tt("ytd-button-renderer"),r("design:type",TM)],qQ.prototype,"button",void 0); n([H("data","playlistLoopStateEntity"),r("design:type",Object),r("design:paramtypes",[])],qQ.prototype,"currentState",null);n([Lt("currentButtonStateRenderer"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],qQ.prototype,"updateButtonActiveState",null);n([H("currentState"),r("design:type",Object),r("design:paramtypes",[])],qQ.prototype,"currentButtonStateRenderer",null);n([gu({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],qQ); Tu(qQ,"ytd-playlist-loop-button-renderer",function(){if(TMb!==void 0)return TMb;var a=document.createElement("template");Q(a,"
\n");a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return TMb=a},{mode:1});var VMb;var WMb=zy("DOWNLOAD",{},"Download"),XMb=zy("DOWNLOADING",{},"Downloading"),YMb=zy("DOWNLOADED",{},"Downloaded"),ZMb=zy("RETRY",{},"Retry"),rQ=function(){var a=E.apply(this,arguments)||this;a.forceIconButton=!1;a.forceIconOnly=!1;a.overrides=!1;a.buttonTooltipPosition=!1;a.styleActionButton=!1;a.disableTextTransform=!1;a.downloadProgress=0;a.isDownloadComplete=!1;a.isHidden=!0;a.transferState="TRANSFER_STATE_UNKNOWN";a.isVideoDeletedByUser=!1;a.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"; return a}; k(rQ,E);g=rQ.prototype;g.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")}; g.dataChanged=function(){var a;(a=this.data)!=null&&a.text||(a=wC(XA.getState(),this.videoId),this.updateButtonState(a))}; g.computeVideoId=function(a){return a}; g.computePlayerStateEntityKey=function(a){return a}; g.showHideButton=function(){this.updateButtonVisibility()}; g.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;var a;((a=this.playerStateEntity)==null?void 0:a.adsState)==="ADS_STATE_PLAYING"?this.isHidden=!0:this.isHidden=this.transferState!=="TRANSFER_STATE_UNKNOWN"?!1:this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0}; g.onTransferStateChanged=function(){this.updateButtonState(this.transferState)}; g.updateButtonState=function(a){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==XMb||!mC(a))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(a){case"TRANSFER_STATE_UNKNOWN":a=WMb;var b="OFFLINE_DOWNLOAD";var c="ACTION_ADD";break;case"TRANSFER_STATE_FAILED":a=ZMb;b="OFFLINE_DOWNLOAD";c="ACTION_RETRY";break;case"TRANSFER_STATE_COMPLETE":a=YMb;b="OFFLINE_PIN";c="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case"TRANSFER_STATE_TRANSFERRING":case"TRANSFER_STATE_TRANSFER_IN_QUEUE":a= XMb;b="OFFLINE_DOWNLOADING_ZERO";c="ACTION_REMOVE_WITH_PROMPT";break;case"TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":a=ZMb;b="OFFLINE_DOWNLOAD";c="ACTION_RETRY";break;default:a=WMb,b="OFFLINE_DOWNLOAD",c="ACTION_ADD";}this.isVideoDeletedByUser&&(a=WMb,b="OFFLINE_DOWNLOAD",c="ACTION_ADD");var d=Object.assign({},this.data);d.text=kz(a);d.tooltip=a;d.icon={iconType:b};d.size="SIZE_DEFAULT";d.style="STYLE_DEFAULT";z(d.command,sy)&&(z(d.command,sy).action=c);this.set("data",d)}}; g.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var a="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?a="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?a="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?a="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?a="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?a="OFFLINE_DOWNLOADING_EIGHTY": this.downloadProgress===1&&(a="OFFLINE_PIN",this.isDownloadComplete=!0);var b;a!==((b=this.data.icon)==null?void 0:b.iconType)&&(b=Object.assign({},this.data),b.text=kz(XMb),b.tooltip=XMb,b.icon={iconType:a},z(b.command,sy)&&(z(b.command,sy).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",b))}}; rQ.prototype.updateProgress=rQ.prototype.updateProgress;rQ.prototype.onTransferStateChanged=rQ.prototype.onTransferStateChanged;rQ.prototype.showHideButton=rQ.prototype.showHideButton;rQ.prototype.dataChanged=rQ.prototype.dataChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],rQ.prototype,"ytRendererBehavior",void 0);n([F(kC),r("design:type",Object)],rQ.prototype,"ytdReduxBehavior",void 0);n([M(),r("design:type",Object)],rQ.prototype,"forceIconButton",void 0); n([M(),r("design:type",Object)],rQ.prototype,"forceIconOnly",void 0);n([M(),r("design:type",Object)],rQ.prototype,"overrides",void 0);n([M(),r("design:type",Object)],rQ.prototype,"buttonTooltipPosition",void 0);n([M(),r("design:type",Object)],rQ.prototype,"styleActionButton",void 0);n([M(),r("design:type",Object)],rQ.prototype,"disableTextTransform",void 0);n([M({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),r("design:type",String)],rQ.prototype,"videoId",void 0); n([M({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),r("design:type",String)],rQ.prototype,"playerStateEntityKey",void 0);n([M(),r("design:type",Object)],rQ.prototype,"data",void 0);n([M({selector:yC,selectorArgs:["videoId"]}),r("design:type",Object)],rQ.prototype,"downloadProgress",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],rQ.prototype,"isDownloadComplete",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],rQ.prototype,"isHidden",void 0); n([M({selector:wC,selectorArgs:["videoId"]}),r("design:type",String)],rQ.prototype,"transferState",void 0);n([M({selector:zC,selectorArgs:["videoId"]}),r("design:type",Object)],rQ.prototype,"isVideoDeletedByUser",void 0);n([M({selector:e_a,selectorArgs:["videoId"]}),r("design:type",Object)],rQ.prototype,"offlineabilityState",void 0);n([M({selector:PA,selectorArgs:["playerStateEntityKey"]}),r("design:type",Object)],rQ.prototype,"playerStateEntity",void 0); n([M({value:!0}),r("design:type",Boolean)],rQ.prototype,"showTooltips",void 0);n([M({value:!0}),r("design:type",Boolean)],rQ.prototype,"sendCommandWhenDisabled",void 0);n([M({value:!1}),r("design:type",Boolean)],rQ.prototype,"disabled",void 0);n([cu("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],rQ.prototype,"dataChanged",null); n([cu("offlineabilityState","playerStateEntity"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],rQ.prototype,"showHideButton",null);n([cu("transferState","isVideoDeletedByUser"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],rQ.prototype,"onTransferStateChanged",null);n([cu("downloadProgress"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],rQ.prototype,"updateProgress",null); n([gu({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],rQ); Tu(rQ,"ytd-download-button-renderer",function(){if(VMb!==void 0)return VMb;var a=document.createElement("template");Q(a,"");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return VMb=a},{mode:2});var $Mb;var aNb,bNb=function(){if(aNb!==void 0)return aNb;var a=document.createElement("template");Q(a,"\n\n[[tooltip]]\n");return aNb=a};function cNb(a,b,c,d,e){e=e===void 0?{}:e;return function(f){var h,m;var p=((h=a.loggingDirectives)==null?0:(m=h.clientVeSpec)==null?0:m.uiType)?Rv(a.loggingDirectives.clientVeSpec.uiType):void 0;e.clickedVisualElement||(e.clickedVisualElement=p);p=dNb(a,b);c(p,f);p=l(p);for(h=p.next();!h.done;h=p.next()){h=h.value;m=d;var q=f,t=e;t.form?t.form.event=q:t.form={element:m,event:q};cL(h,t)}}} function dNb(a,b){var c=[];b?(a.toggledCommand&&c.push(a.toggledCommand),a.toggledServiceEndpoint&&c.push(a.toggledServiceEndpoint)):(a.defaultCommand&&c.push(a.defaultCommand),a.defaultServiceEndpoint&&c.push(a.defaultServiceEndpoint),a.defaultNavigationEndpoint&&c.push(a.defaultNavigationEndpoint));return c} function eNb(a,b){var c=a.toggledStyle||a.style,d;switch((d=b?c:a.style)==null?void 0:d.styleType){case"STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case"STYLE_PRIMARY":case"STYLE_PAYMENT":return{style:"call-to-action",type:"filled",state:"active"};case"STYLE_SUGGESTIVE":return{style:"call-to-action",type:"outline",state:"active"};case"STYLE_BLUE_TEXT":return{style:"call-to-action",type:"text",state:"active"};case"STYLE_DESTRUCTIVE":case"STYLE_MONO_FILLED":return{style:"mono", type:"filled",state:"active"};case"STYLE_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case"STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case"STYLE_MONO_TONAL_OVERLAY":return{style:"overlay",type:"tonal",state:"active"};case"STYLE_DEFAULT":case"STYLE_COMPACT_GRAY":return{style:"mono",type:"tonal",state:"active"};case"STYLE_INACTIVE_OUTLINE":return{style:"mono",type:"outline",state:"active"};default:return{style:"mono",type:"text",state:"active"};}} ;var fNb=x("web_button_rework")&&!!Vk("BUTTON_REWORK")||x("web_button_rework_with_live"),gNb=ll("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,sQ=function(){var a=E.apply(this,arguments)||this;a.isPressed=!1;a.forceIconButton=!1;a.forceIconOnly=!1;a.forceModernIconButton=!1;a.alignByText=!1;a.isShorts=!1;a.animatedText=!1;a.buttonHeightPx=x("enable_button_height_token_killswitch")?36:0;a.shouldAnimate=!1;a.browserSupportsAnimation=x("web_supports_animations_api");a.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction", "yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};a.onTap=function(){var b;if((b=a.data)==null||!b.defaultNavigationEndpoint){var c;b=!((c=a.data)==null?0:c.isToggled);var d;if((d=a.data)==null||!d.preventAutoToggle){a.shouldAnimate=!1;a.disableTextUpdateJobId&&bj.cancelJob(a.disableTextUpdateJobId);a.disableTextUpdateJobId=bj.addLowPriorityJob(function(){a.disableTextUpdateJobId=void 0},gNb); var e;a.set("data.isToggled",!((e=a.data)==null?0:e.isToggled));c=a.getInnertubeIcon();d={toggled:b,actions:{}};c&&(d.actions[c.toLowerCase()]=b);Gt(a.hostElement,"yt-toggle-button",d)}}}; return a}; k(sQ,E);g=sQ.prototype;g.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(bj.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)}; g.attached=function(){var a=this;this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true");Gn(U1a,function(b){if(a.attached&&b&&!x("enable_button_height_token_killswitch")){var c;a.buttonHeightPx=(c=WK(b({ytSysMeasurementReference:"YT_SYS_MEASUREMENT_REFERENCE_ACTION_HEIGHT_STANDARD"})))!=null?c:36}})}; g.toggle=function(a){var b;this.set("data.isToggled",a!==void 0?a:!((b=this.data)==null?0:b.isToggled))}; g.handleUpdateToggleButtonStateCommand=function(a){if(this.data){a=z(a,Fmb);var b,c,d,e=(b=this.data)==null?void 0:(c=b.toggleButtonSupportedData)==null?void 0:(d=c.toggleButtonIdData)==null?void 0:d.id;e&&a&&e===(a==null?void 0:a.buttonId)&&this.set("data.isToggled",a.toggled)}}; g.handleUpdateToggleButtonTextAction=function(a){if(this.data){a=z(a,atb);var b,c,d,e=(b=this.data)==null?void 0:(c=b.toggleButtonSupportedData)==null?void 0:(d=c.toggleButtonIdData)==null?void 0:d.id;e&&a&&e===(a==null?void 0:a.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=a.defaultNumericalValue,this.set("data.defaultText",a.defaultText),this.set("data.toggledText",a.toggledText),this.shouldAnimate=!1)}}; g.getInnertubeIcon=function(){var a=this.data;if(a){var b,c,d=((b=a.defaultIcon)==null?0:b.iconType)?(c=a.defaultIcon)==null?void 0:c.iconType:null,e,f;b=((e=a.toggledIcon)==null?0:e.iconType)?(f=a.toggledIcon)==null?void 0:f.iconType:d;return a.isToggled?b:d}}; g.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null}; ba.Object.defineProperties(sQ.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var a={renderer:this.data,element:this.hostElement,toggled:!!this.data.isToggled,onTapCallback:this.onTap,overrides:this.overrides,forceIcon:this.forceIconButton||this.forceIconOnly,forceModernIconButton:this.forceModernIconButton,forceDisabled:this.disabled,nextVersion:!0,useAnimatedText:this.animatedText&&this.browserSupportsAnimation,animatedTextProps:{numberText:"",numberValue:Number(this.textNumberValue), heightPx:this.buttonHeightPx,shouldAnimate:this.shouldAnimate}};var b=a.renderer;var c=a.element;var d=a.toggled;var e=a.onTapCallback;var f=a.commandClientArgs;var h=a.overrides;var m=a.forceIcon;var p=a.forceModernIconButton;var q=a.forceDisabled;var t=a.useAnimatedText;var u=a.animatedTextProps;a=eNb(b,d);m=!b.defaultIcon||!m&&b.defaultText?b.defaultIcon?"leading":void 0:p?"icon-only":"icon-only-40";m==="icon-only-40"&&(a.type="text");var v;p=Object;var w=p.assign,y;a:switch((y=b.style)==null? void 0:y.styleType){case"STYLE_COMPACT_GRAY":y={size:"S"};break a;default:y={size:"M"};}var A=!!d;var C=(C=d&&b.toggledText||b.defaultText)?GB(C):void 0;t?(t=lz(d&&b.toggledText||b.defaultText))&&u&&!isNaN(Number(u.numberValue))?(u.numberText=t,d&&(u.numberValue+=1),t=u):t=void 0:t=void 0;var I,K,N,L;var R=(u=((K=d?b.toggledAccessibilityData||((R=b.toggledText)==null?void 0:R.accessibility):b.accessibilityData||((I=b.defaultText)==null?void 0:I.accessibility))==null?void 0:(N=K.accessibilityData)== null?void 0:N.label)||((L=b.accessibility)==null?void 0:L.label))?u:lz(d&&b.toggledText||b.defaultText);q=q===void 0?b.isDisabled:q;c=cNb(b,d,e,c,f);d=dNb(b,d);d!=null&&d.length?(d=NB({innertubeCommand:YXa(d),forceNewState:!0}),d=PB(d)?d:void 0):d=void 0;b=w.call(p,{},a,y,{iconPosition:m},h,{focused:!1,toggled:A,toggleable:!0,formattedButtonText:C,animatedTextProps:t,accessibilityLabel:R,disabled:q,onTap:c,aTagConfig:d},RBb((v=b.colorData)==null?void 0:v.basicColorPaletteData));b.alignByText=this.alignByText; this.isShorts&&this.data.isToggled&&(b.type="filled");return b}}}, computedIcon:{configurable:!0,enumerable:!0,get:function(){var a=this.getInnertubeIcon();if(a)return cz(a)}}}); sQ.prototype.resetAnimation=sQ.prototype.resetAnimation;n([F(mz.YtComponentBehavior),r("design:type",Object)],sQ.prototype,"ytComponentBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],sQ.prototype,"ytRendererBehavior",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],sQ.prototype,"ytActionHandlerBehavior",void 0);n([M(),r("design:type",Object)],sQ.prototype,"data",void 0);n([M(),r("design:type",Object)],sQ.prototype,"isPressed",void 0); n([M(),r("design:type",Object)],sQ.prototype,"forceIconButton",void 0);n([M(),r("design:type",Object)],sQ.prototype,"forceIconOnly",void 0);n([M(),r("design:type",Object)],sQ.prototype,"forceModernIconButton",void 0);n([M(),r("design:type",Object)],sQ.prototype,"alignByText",void 0);n([M(),r("design:type",Object)],sQ.prototype,"overrides",void 0);n([M(),r("design:type",Boolean)],sQ.prototype,"disabled",void 0);n([M(),r("design:type",Object)],sQ.prototype,"isShorts",void 0); n([M(),r("design:type",Object)],sQ.prototype,"buttonTooltipPosition",void 0);n([M(),r("design:type",Object)],sQ.prototype,"animatedText",void 0);n([M(),r("design:type",String)],sQ.prototype,"textNumberValue",void 0);n([M(),r("design:type",Object)],sQ.prototype,"buttonHeightPx",void 0);n([M({computed:"computeTooltip(data, data.isToggled)"}),r("design:type",Object)],sQ.prototype,"tooltip",void 0); n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],sQ.prototype,"resetAnimation",null);n([H("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts","buttonHeightPx"),r("design:type",Object),r("design:paramtypes",[])],sQ.prototype,"computedButtonShape",null);n([H("data.*"),r("design:type",Object),r("design:paramtypes",[])],sQ.prototype,"computedIcon",null); n([gu({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],sQ);fNb&&Tu(sQ,"ytd-toggle-button-renderer",bNb,{mode:2});function tQ(){return{lottieEl:void 0}} function hNb(a,b){return a.startsWith(b.uniqueId)} function iNb(a){var b,c;ra(function(d){if(d.nextAddress==1)return d.yield((0,ND.getCurrentPlayerShared)(),2);b=d.yieldResult;if((c=b)==null||!c.addEventListener)return uQ(),d.return();b.addEventListener("onCueRangeEnter",a);d.jumpToEnd()})} function jNb(a){var b,c;ra(function(d){if(d.nextAddress==1)return d.yield((0,ND.getCurrentPlayerShared)(),2);b=d.yieldResult;if((c=b)==null||!c.removeEventListener)return uQ(),d.return();b.removeEventListener("onCueRangeEnter",a);d.jumpToEnd()})} function kNb(a){var b,c,d,e,f;ra(function(h){if(h.nextAddress==1)return h.yield((0,ND.getCurrentPlayerShared)(),2);b=h.yieldResult;if((c=b)==null||!c.addCueRange)return uQ(),h.return();d=l(a.timings);for(e=d.next();!e.done;e=d.next())f=e.value,b.addCueRange(a.uniqueId+"-"+f,f/1E3,(f+100)/1E3);h.jumpToEnd()})} function lNb(a){var b,c,d,e,f;ra(function(h){if(h.nextAddress==1)return h.yield((0,ND.getCurrentPlayerShared)(),2);b=h.yieldResult;if((c=b)==null||!c.removeCueRange)return uQ(),h.return();d=l(a.timings);for(e=d.next();!e.done;e=d.next())f=e.value,b.removeCueRange(a.uniqueId+"-"+f);h.jumpToEnd()})} function mNb(){var a,b,c;return ra(function(d){if(d.nextAddress==1)return d.yield((0,ND.getCurrentPlayerShared)(),2);a=d.yieldResult;if((b=a)==null||!b.getPlayerState)return uQ(),d.return();c=a.getPlayerState();return d.return(c===2)})} function uQ(){fo(new Dl("Smartimation player does not exist or is corrupted"))} ;var oNb=O(function(a){function b(t){var u;return ra(function(v){if(v.nextAddress==1)return(u=!hNb(t,m())||!m().enabled)?v.jumpTo(2):v.yield(mNb(),3);v.nextAddress!=2&&(u=v.yieldResult);if(u)return v.return();c();setTimeout(function(){h(!1)},1500); v.jumpToEnd()})} function c(){setTimeout(function(){h(!0);var t;(t=d.lottieEl)==null||t.goToAndPlay(0)},150)} var d=tQ(),e=l(ip(!1,void 0,"vSCwob")),f=e.next().value,h=e.next().value;e=Hu(a,{settings:{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]}});var m=e.settings;a=e.children;e=e.className;rw(function(){var t,u;((t=m)==null?void 0:(u=t())==null?void 0:u.uniqueId)==="this is not intended behavior"&&fo(new Dl("Smartimation Settings is undefined"))}); lw(function(){m().experimentEnabled&&(m().enabled?iNb(b):(h(!1),jNb(b)),zp(function(){jNb(b)}))},"Q8gXRd"); lw(function(){m().timings.join("");m().experimentEnabled&&(kNb(m()),zp(function(){lNb(m())}))},"BNNhzc"); var p=Vo(function(){var t=d,u=m().uniqueId+"-border",v,w;var y="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((w=(v=Fn().resolve(Cn(HB)))==null?void 0:v())!=null&&w?"dark":"light")+"_v2.json";return{animationRef:t,animationConfig:{name:u,autoplay:!1,loop:!1,path:y}}},void 0,"ILGD2"),q={}; return D("yt-smartimation",{class:U(e,"ytSmartImationsHost",(q.ytSmartImationsExperimentEnabled=function(){return m().experimentEnabled},q.ytSmartImationsActiveBorder=f,q.ytSmartImationsEnableMasking=nNb(),q))},D(P,{cond:function(){return m().experimentEnabled}, then:function(){return D("div",{class:"ytSmartImationsBorder"},D(YA,{className:"ytSmartImationsBorderGradient",data:p,animationName:function(){return p().animationConfig.name}}))}}),D("div",{class:"ytSmartImationsContent"},a))},"jb"); oNb.idomCompat=!0;function nNb(){try{var a;return(a=window.CSS)!=null&&a.supports?window.CSS.supports("-webkit-mask","linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)")&&(window.CSS.supports("-webkit-mask-composite","xor")||window.CSS.supports("mask-composite","exclude")):!1}catch(b){return fo(new Dl("Smartimation CSS.supports threw an error")),!1}} ;bB(oNb,"yt-smartimation",{props:{className:$A,settings:$A}});var vQ=function(){var a=E.apply(this,arguments)||this;a.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};a.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};a.shouldEnableSmartimation=!1;return a}; k(vQ,E);vQ.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")}; vQ.prototype.onDataChanged=function(){var a,b;this.shouldEnableSmartimation=(((a=this.data)==null?void 0:(b=a.timedAnimationData)==null?void 0:b.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()}; vQ.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var a=z(this.data.likeButton,UJ),b=z(this.data.dislikeButton,UJ);return!!((a==null?0:a.isToggled)||(b==null?0:b.isToggled))}; vQ.prototype.configureRendererStamper=function(){return{"data.likeButton":{id:"segmented-like-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[likeButtonOverride]]"}},toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{overrides:"[[likeButtonOverride]]",animatedText:"[[true]]",textNumberValue:"[[data.likeCount]]"}}}},"data.dislikeButton":{id:"segmented-dislike-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dislikeButtonOverride]]"}}, toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{overrides:"[[dislikeButtonOverride]]"}}}}}}; ba.Object.defineProperties(vQ.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var a,b,c=((a=this.data)==null?void 0:(b=a.timedAnimationData)==null?void 0:b.animationTiming)||[];return{uniqueId:"like-dislike",timings:c,enabled:this.shouldEnableSmartimation,experimentEnabled:c.length>0}}}}); vQ.prototype.onDataChanged=vQ.prototype.onDataChanged;n([F($C.YtRendererstamperBehavior),r("design:type",Object)],vQ.prototype,"ytRendererstamperBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],vQ.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],vQ.prototype,"data",void 0);n([M(),r("design:type",Object)],vQ.prototype,"likeButtonOverride",void 0);n([M(),r("design:type",Object)],vQ.prototype,"dislikeButtonOverride",void 0); n([H("shouldEnableSmartimation"),r("design:type",Object),r("design:paramtypes",[])],vQ.prototype,"smartimationSettings",null);n([Lt("data"),Kt("yt-toggle-button"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],vQ.prototype,"onDataChanged",null);n([gu({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],vQ); Tu(vQ,"ytd-segmented-like-dislike-button-renderer",function(){if($Mb!==void 0)return $Mb;var a=document.createElement("template");Q(a,"
");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return $Mb=a},{mode:1});var pNb;var qNb={};qNb.YtToggleButtonBehavior=[ft.YtActionHandlerBehavior,dM.YtRenderButtonBehavior,{_noAccessors:!0,properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.isToggled)","stateChanged_(data.defaultText)","stateChanged_(data.toggledText)","stateChanged_(forceIconOnly)"],created:function(){this.toggleButtonActionMap_={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction_","yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand_"}}, attached:function(){this.registerActionMap(this.toggleButtonActionMap_)}, detached:function(){this.unregisterActionMap(this.toggleButtonActionMap_)}, onYtToggleButtonTapHandler:function(){}, onYtButtonTapHandler:function(){var a=this.data.isToggled;if(!this.isModal_(a)){if(!this.data.preventAutoToggle){this.toggle();var b={toggled:this.data.isToggled,actions:{}};b.actions[this.buttonIcon]=this.data.isToggled;Gt(this.hostElement,"yt-toggle-button",b)}b=this.data.defaultServiceEndpoint||null;var c=this.data.toggledServiceEndpoint||null;if(b&&c||b&&this.data.preventAutoToggle)a=a?c:b,b=this.disableCommandHandlerOverride,x("killswitch_toggle_button_behavior_resolve_command")||b?$u(this.hostElement, [a]):jz(a,this.hostElement),Gt(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:a})}}, stateChanged_:function(){var a=this.data;if(a){var b=a.isToggled;this._setEndpoint(this.computeEndpoint_(a));this._setServiceEndpoint(this.computeServiceEndpoint_(a));this._setButtonIcon(this.computeButtonIcon_(a,b));this._setButtonText(this.computeButtonText_(a,b));this._setButtonAccessibility(this.computeAccessibility_(a,b));this._setButtonTooltip(this.computeTooltip_(a,b));this._setButtonClass(this.computeButtonClass_(a,b));this._setIconPositionType(this.computeIconPositionType_(a));this.updateRenderedElements(); this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=b):this.elements_.button.setAttribute("aria-pressed",b));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=b)}}, shouldSetIconActiveState_:function(){return x("kevlar_system_icons")}, toggle:function(a){this.set("data.isToggled",a!==void 0?a:!this.data.isToggled);x("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")}, isModal_:function(a){if(a){var b,c;return!!((b=this.data)==null?0:(c=b.toggledServiceEndpoint)==null?0:c.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)}, computeEndpoint_:function(a){return a&&a.defaultNavigationEndpoint||null}, computeButtonIcon_:function(a,b){var c=a&&a.defaultIcon?cz(a.defaultIcon.iconType):null;a=a&&a.toggledIcon?cz(a.toggledIcon.iconType):c;return b?a:c}, handleUpdateToggleButtonStateCommand_:function(a){a=a.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==a.buttonId&&this.toggle(a.toggled)}, computeButtonText_:function(a,b){return a?b&&a.toggledText||a.defaultText||null:null}, computeAccessibility_:function(a,b){return a?(b?this.get("toggledAccessibilityData.accessibilityData",a):this.get("accessibilityData.accessibilityData",a))||a.accessibility||null:null}, computeTooltip_:function(a,b){return a?b&&a.toggledTooltip||a.defaultTooltip||null:null}, computeButtonClass_:function(a,b){if(!a)return"";var c="",d=a.toggledStyle||a.style;if(b=b?d:a.style){b.styleType&&(b=b.styleType);try{c+=b.toLowerCase().replace(/_/g,"-")+" "}catch(e){go(e,b,typeof b),fo(e)}}if(a=a.size){a.sizeType&&(a=a.sizeType);try{c+=a.toLowerCase().replace(/_/g,"-")+" "}catch(e){go(e,a,typeof a),fo(e)}}return c.trim()}, computeIconPositionType_:function(a){return a&&a.iconPosition||null}, computeServiceEndpoint_:function(a){var b=a&&a.serviceEndpoint,c=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return b?b:c&&a.command?a.command:null}, handleUpdateToggleButtonTextAction_:function(a){a=a.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==a.buttonId&&(this.set("data.defaultText",a.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",a.toggledText),this.notifyPath("data.toggledText"))}}];kE("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var rNb=x("web_button_rework")&&!!Vk("BUTTON_REWORK")||x("web_button_rework_with_live"),wQ=function(){var a=E.apply(this,arguments)||this;a.systemIcons=x("kevlar_system_icons");a.roundedContainer=!0;return a}; k(wQ,E);wQ.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")}; wQ.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var a=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var b={toggled:!!this.data.isToggled,actions:{}};b.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var c,d;b.actions.playlistId=(c=this.data.defaultServiceEndpoint)==null?void 0:(d=c.playlistEditEndpoint)==null?void 0:d.playlistId;Gt(this.hostElement,"yt-toggle-button",b)}(a=a?this.data.toggledServiceEndpoint: this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(a)}}; wQ.prototype.onYtNavigate=function(a){var b=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(a.detail.endpoint);b&&(a.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(b))}; ba.Object.defineProperties(wQ,{template:{configurable:!0,enumerable:!0,get:function(){if(pNb===void 0){var a=document.createElement("template");Q(a,"\n");a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);pNb=a}a=pNb;return a}}}); wQ.prototype.onYtNavigate=wQ.prototype.onYtNavigate;n([F(mz.YtComponentBehavior),r("design:type",Object)],wQ.prototype,"ytComponentBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],wQ.prototype,"ytRendererBehavior",void 0);n([F(pB),r("design:type",Object)],wQ.prototype,"ytdOpenPopupBehavior",void 0);n([F(qNb.YtToggleButtonBehavior),r("design:type",Object)],wQ.prototype,"ytToggleButtonBehavior",void 0);n([M(),r("design:type",Object)],wQ.prototype,"data",void 0); n([M({value:!0}),r("design:type",Boolean)],wQ.prototype,"showTooltips",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],wQ.prototype,"systemIcons",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],wQ.prototype,"roundedContainer",void 0);n([Kt("yt-navigate"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],wQ.prototype,"onYtNavigate",null);n([gu({is:"ytd-toggle-button-renderer",disableElementRegistration:rNb})],wQ);var tNb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("QHAtef"),2);a=sNb;return b.return(a)})},uNb=yD(function(){return tNb()},{debugName:"downloadButtonViewModel"}); Gn(xD,function(a){a.registerLoadFn("downloadButtonViewModel","QHAtef",tNb)});var wNb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("UA8GSe"),2);a=vNb;return b.return(a)})},xNb=yD(function(){return wNb()},{debugName:"submitButtonViewModel"}); Gn(xD,function(a){a.registerLoadFn("submitButtonViewModel","UA8GSe",wNb)});var zNb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("pevtvc"),2);a=yNb;return b.return(a)})},xQ=yD(function(){return zNb()},{debugName:"dislikeButtonViewModel"}); Gn(xD,function(a){a.registerLoadFn("dislikeButtonViewModel","pevtvc",zNb)});var BNb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("izjmP"),2);a=ANb;return b.return(a)})},yQ=yD(function(){return BNb()},{debugName:"likeButtonViewModel"}); Gn(xD,function(a){a.registerLoadFn("likeButtonViewModel","izjmP",BNb)});var DNb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("jgx8me"),2);a=CNb;return b.return(a)})},ENb=yD(function(){return DNb()},{debugName:"subscribePlusButtonViewModel"}); Gn(xD,function(a){a.registerLoadFn("subscribePlusButtonViewModel","jgx8me",DNb)});function FNb(a){return!(a==null||!a.iconName||(a==null?0:a.title))} function GNb(a){return FNb(z(a.isToggled?a.toggledButtonViewModel:a.defaultButtonViewModel,ZJ))} function HNb(a){return(a=z(a==null?void 0:a.toggleButtonViewModel,aK))?GNb(a):!1} var INb=O(function(a){return D(OC,{data:function(){return a.actionRow().actions}},{buttonViewModel:function(b){var c=b.data; return D(zQ,{isRow:a.isRow,isIconOnlyButton:function(){return FNb(c())}, useIntrinsicWidth:a.useIntrinsicWidth},D(BD,{data:c}))}, subscribeButtonViewModel:function(b){return D(zQ,{isRow:a.isRow},D(FD,{data:b.data,isOverlay:!1,animateWidth:function(){return!a.isRow()}}))}, downloadButtonViewModel:function(b){var c=b.data;return D(zQ,{isRow:a.isRow,isIconOnlyButton:function(){return!!c().playlistId}},D(uNb,{data:c}))}, submitButtonViewModel:function(b){var c=b.data;return D(zQ,{isRow:a.isRow,isIconOnlyButton:function(){var d=c();return FNb(z(d==null?void 0:d.button,ZJ))}},D(xNb,{data:c}))}, toggleButtonViewModel:function(b){var c=b.data;return D(zQ,{isRow:a.isRow,isIconOnlyButton:function(){return GNb(c())}},D(CD,{data:c}))}, subscribePlusButtonViewModel:function(b){return D(zQ,{isRow:a.isRow},D(ENb,{data:b.data}))}, likeButtonViewModel:function(b){var c=b.data;return D(zQ,{isRow:a.isRow,isIconOnlyButton:function(){return HNb(c())}, useIntrinsicWidth:a.useIntrinsicWidth},D(yQ,{data:c}))}, dislikeButtonViewModel:function(b){var c=b.data;return D(zQ,{isRow:a.isRow,isIconOnlyButton:function(){return HNb(c())}, useIntrinsicWidth:a.useIntrinsicWidth},D(xQ,{data:c}))}})},"kb"),zQ=O(function(a){var b={}; return D("div",{class:U("ytFlexibleActionsViewModelAction",(b.ytFlexibleActionsViewModelActionRowAction=a.isRow,b.ytFlexibleActionsViewModelActionIntrinsicWidth=a.useIntrinsicWidth,b.ytFlexibleActionsViewModelActionRowActionFeaturePhone=!1,b.ytFlexibleActionsViewModelActionIconOnlyButton=a.isIconOnlyButton,b))},a.children)},"lb"),AQ=O(function(a){var b=function(){var d; return((d=a.layout)==null?void 0:d.call(a))===1},c={}; return D("yt-flexible-actions-view-model",{class:U("ytFlexibleActionsViewModelHost",a.className,(c.ytFlexibleActionsViewModelInline=function(){return!b()},c.ytFlexibleActionsViewModelScrollable=function(){return a.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},c.ytFlexibleActionsViewModelFlexWrap=a.flexWrap,c.ytFlexibleActionsViewModelJustifyContentStart=function(){return a.data().justifyContent==="FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START"},c.ytFlexibleActionsViewModelJustifyContentEnd=function(){return a.data().justifyContent=== "FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_END"},c))},D(mw,{each:function(){return a.data().actionsRows||[]}},function(d){return D(P,{cond:b, then:function(){return D("div",{class:"ytFlexibleActionsViewModelActionRow"},D(INb,{actionRow:d,isRow:b,useIntrinsicWidth:function(){return!!a.data().respectActionIntrinsicWidth}}))}, else:function(){return D(INb,{actionRow:d,isRow:b})}})}))},"mb");bB(AQ,"yt-flexible-actions-view-model",{props:{data:$A,layout:$A,justifyContentOverride:$A,className:$A,flexWrap:$A}});var JNb=O(function(a){var b=function(){return z(a.data().likeButtonViewModel,Tpb)},c=function(){var e; return((e=b())==null?void 0:e.likeStatusEntityKey)||""},d=Vo(function(){var e,f; var h=(f=fL(fCb,c)())!=null?f:(e=b())==null?void 0:e.likeStatusEntity;e=a.data();var m;e=(e==null?void 0:(m=e.timedAnimationData)==null?void 0:m.animationTiming)||[];return{uniqueId:"like-dislike",timings:e,enabled:(h==null?void 0:h.likeStatus)==="INDIFFERENT"&&e.length>0,experimentEnabled:e.length>0}},void 0,"Mh4tb"); return D("segmented-like-dislike-button-view-model",{class:U("ytSegmentedLikeDislikeButtonViewModelHost",a.className),"button-renderer":!0},D(oNb,{settings:d},D("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},D(P,{cond:b,then:function(e){return D(yQ,{data:e,likeCountEntity:function(){return a.data().likeCountEntity}, buttonShapeOverrideables:{segmentedPosition:"start",onClickRateLimitMs:500,disableLightShape:!0}})}}),D(P,{cond:function(){return z(a.data().dislikeButtonViewModel,Spb)}, then:function(e){return D(xQ,{data:e,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end",disableLightShape:!0}})}})),D(P,{cond:function(){var e; return(e=Fn().resolve(Cn(XK)))==null?void 0:e.buttonStaticLight}, then:function(){return D(Oyb,{config:{staticLightStyle:3},className:"ytSegmentedLikeDislikeButtonViewModelLightShape"})}})))},"nb"); JNb.idomCompat=!0;bB(JNb,"segmented-like-dislike-button-view-model",{props:{data:$A,className:$A}});function KNb(a,b){return yA(a.entities,"accountLinkStatusEntity",b)} function LNb(a,b){return yA(a.entities,"hatsSurveyEntity",b)} function MNb(a,b){return yA(a.entities,"hatsSurveyStateEntity",b)} ;var s1a=O(function(a){var b=a.data;var c=a.className;var d=a.setMinWidth;var e=a.forceIconOnly;var f=sw("account-link-button-view-model"),h=fL(KNb,function(){var v;return(v=b().accountLinkStatusEntityKey)!=null?v:""}),m=fL(KNb,function(){var v; return(v=b().accountLinkStatusSecondaryEntityKey)!=null?v:""}),p=function(){var v,w; return((v=h())==null?void 0:v.linked)||((w=m())==null?void 0:w.linked)}; lw(function(){var v=h();if(v){var w=Npb(new Mpb,Kpb(new Jpb,!!v.linked));(0,ND.getCurrentPlayerShared)().then(function(y){y&&(y.setAccountLinkState(Fd(w.JSC$10775_serializeBinary(),4)),y.updateAccountLinkingConfig(!!v.linked))})}},"ZtZSgc"); var q=function(){return z(b().toggleButtonViewModel,aK)}; CH("yt-signal-action-show-account-link-dialog",function(){if(q()){var v=p()?q().toggledButtonViewModel:q().defaultButtonViewModel;v=z(v,ZJ);var w;if((w=h())==null?0:w.isWarning){w=z(b().warningButtonViewModel,ZJ);if(!w){Yk(Error("[account-link-button-view-model] No warning button data."));return}v=w}var y;(w=LB((y=v)==null?void 0:y.onTap))&&aub([w],f.value)}else Yk(Error("[account-link-button-view-model] No toggle button data."))}); var t=function(){var v=q();return Object.assign({},v,{isToggled:p()})},u=function(){return(e==null?0:e())?{iconPosition:"icon-only"}:{}}; return D("account-link-button-view-model",{class:U("ytwAccountLinkButtonViewModelHost",c,function(){return(d==null?0:d())?"ytwAccountLinkButtonViewModelHostMinWidth":""}), el:f,"button-renderer":!0},D("div",null,D(P,{cond:function(){var v;if((v=h())==null?0:v.isWarning)return(v=z(b().warningButtonViewModel,ZJ))||Yk(Error("[account-link-button-view-model] No warning button data.")),v}, then:function(v){return D(BD,{data:v,buttonOverrides:u})}, else:function(){return D(CD,{data:t,buttonShapeOverrides:u})}})))},"pb");bB(s1a,"account-link-button-view-model",{props:{data:$A,className:aB,setMinWidth:aB,forceIconOnly:aB}});kE("menuRenderer","menuRenderer","ytd-menu-renderer"); var NNb={buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]",buttonTooltipPosition:"[[buttonTooltipPosition]]",forceIconButton:"[[forceIconButton]]",forceModernIconButton:"[[tonalOverride]]",styleActionButton:"[[styleActionButton]]",disableTextTransform:"[[disableTextTransformOnButtons]]",forceIconOnly:"[[topLevelIconsOnly]]"}},toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{overrides:"[[buttonOverride]]",buttonTooltipPosition:"[[buttonTooltipPosition]]", forceIconButton:"[[forceIconButton]]",forceModernIconButton:"[[tonalOverride]]",styleActionButton:"[[styleActionButton]]",disableTextTransform:"[[disableTextTransformOnButtons]]",forceIconOnly:"[[topLevelIconsOnly]]"}},segmentedLikeDislikeButtonRenderer:{component:"ytd-segmented-like-dislike-button-renderer"},segmentedLikeDislikeButtonViewModel:{component:"segmented-like-dislike-button-view-model"},accountLinkButtonRenderer:{component:"ytd-account-link-button-renderer",properties:{overrides:"[[buttonOverride]]", forceModernIconButton:"[[tonalOverride]]",disableTextTransform:"[[disableTextTransformOnButtons]]",buttonTooltipPosition:"[[buttonTooltipPosition]]",forceIconButton:"[[forceIconButton]]",forceIconOnly:"[[topLevelIconsOnly]]"}},accountLinkButtonViewModel:{component:"account-link-button-view-model",params:{className:"ytd-menu-renderer"},properties:{forceIconOnly:"[[topLevelIconsOnly]]"}},downloadButtonRenderer:{component:"ytd-download-button-renderer",properties:{overrides:"[[buttonOverride]]",buttonTooltipPosition:"[[buttonTooltipPosition]]", forceIconButton:"[[forceIconButton]]",styleActionButton:"[[styleActionButton]]",disableTextTransform:"[[disableTextTransformOnButtons]]",forceIconOnly:"[[topLevelIconsOnly]]"}},playlistLoopButtonRenderer:{component:"ytd-playlist-loop-button-renderer",properties:{forceIconOnly:"[[topLevelIconsOnly]]"}},buttonViewModel:{component:"yt-button-view-model",properties:{buttonOverrides:"[[buttonOverrides]]",scopingClassName:"[[is]]"}},flexibleActionsViewModel:{component:"yt-flexible-actions-view-model"}}, BQ=function(){var a=E.apply(this,arguments)||this;a.safeArea=!x("kevlar_flex_menu_safe_area_killswitch");a.tonalOverride=!1;a.threeDotSize="M";a.isOverlay=!1;a.useOverlayDark=!1;a.topLevelIconsOnly=!1;a.JSC$12597_lastWidth=0;a.maybeUpdateFlexibleMenu=function(){requestAnimationFrame(a.maybeUpdateFlexibleMenuImpl)}; a.maybeUpdateFlexibleMenuImpl=function(){var b;if((b=a.data)!=null&&b.flexibleItems){b=a.hostElement.clientWidth;var c=b>a.JSC$12597_lastWidth,d,e=((d=a.topLevelButtonsContainer)==null?void 0:d.scrollHeight)||0,f;d=((f=a.flexibleItemButtonsContainer)==null?void 0:f.scrollHeight)||0;f=a.hostElement.scrollHeight>Math.max(e,d)+8;c?(a.resetFlexibleItems(),a.JSC$12597_lastWidth=a.hostElement.clientWidth,a.maybeUpdateFlexibleMenu()):f&&(a.shrinkFlexibleMenu(),a.JSC$12597_lastWidth=b)}}; a.computeThreeDotButtonShape=function(){if(a.tonalOverride)return Object.assign({},{onTap:function(){a.onOverflowTap()}, iconPosition:"icon-only",style:a.isOverlay?a.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:a.threeDotSize,state:"active",accessibilityLabel:a.computeAccessibilityLabel(a.data)},a.threeDotButtonOverride)}; a.onOverflowTap=function(){var b,c,d,e,f,h,m,p,q,t,u;return ra(function(v){if(v.nextAddress==1){if((b=a.data)==null?0:b.fetchMenuCommand)return c=Fn().resolve(JB),c.resolveCommand(a.data.fetchMenuCommand,{form:{element:a.hostElement}}),v.return();if(((d=a.data)==null?0:d.isDisabled)&&((e=a.data)==null?0:e.disabledCommand))return jz(a.data.disabledCommand,a.hostElement),v.return();f=a.createMenuRendererVe();h={items:a.items};if((m=a.data)==null?0:m.menuPopupAccessibility)h.menuPopupAccessibility=a.data.menuPopupAccessibility; if((p=a.data)==null?0:p.footer)h.footer=a.data.footer;q={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:h},veData:f}};t=Fn().resolve(HL);return v.yield(t.isSheetOpen(),2)}return(u=v.yieldResult)?v.yield(t.closeSheet(),0):v.yield(t.openSheet({openPopupActionCommand:q},a.hostElement),0)})}; return a}; k(BQ,E);g=BQ.prototype;g.updateButtonOverrides=function(){var a=wt(this.hostElement).querySelector("yt-button-view-model");a&&(a.buttonOverrides=this.buttonOverrides)}; g.computeHasItems=function(){var a;return((a=this.topLevelButtonData)==null?void 0:a.length)||this.hasFlexibleItems}; g.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)}; g.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,Ft(this.hostElement,{"--ytd-menu-renderer-button-color":Iy(this.data.iconColor)}))}; g.onStamperFinished=function(){this.JSC$12597_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()}; g.setupFlexibleMenu=function(){var a=this,b;(b=this.data)!=null&&b.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.JSC$12597_resizeThrottle||(this.JSC$12597_resizeThrottle=new Fw(this.maybeUpdateFlexibleMenu,100,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){a.JSC$12597_resizeThrottle.fire()}), this.resizeObserver.observe(this.hostElement)),this.resetFlexibleItems()):(this.flexAsTopLevelButtons=void 0,this.hostElement.removeEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.removeEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0))}; g.resetFlexibleItems=function(){var a;if((a=this.data)!=null&&a.flexibleItems){var b;this.flexAsTopLevelButtons=(b=this.data.flexibleItems)==null?void 0:b.map(function(c){return z(c,UPa).topLevelButton})}}; g.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}}; g.shrinkFlexibleMenu=function(){var a;(a=this.flexAsTopLevelButtons)!=null&&a.length&&(this.flexAsTopLevelButtons=[].concat(ia(this.flexAsTopLevelButtons.slice(0,-1))))}; g.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:NNb,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:NNb,events:!0}}}; g.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)}; g.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)}; g.detached=function(){this.icon="MORE_VERT"}; g.computeTopLevelButtonData=function(a){if(!a)return[];var b;a=(b=a==null?void 0:a.topLevelButtons)!=null?b:[];return Yh([].concat(ia(a)))}; g.computeItems=function(a,b){if(!a)return[];var c=[];if(b){var d=(a.flexibleItems||[]).map(function(h){return z(h,UPa)}); d=l(d);for(var e=d.next();!e.done;e=d.next())e=e.value,b.includes(e.topLevelButton)||(e=e.menuItem)&&c.push(e)}var f;a=(f=a==null?void 0:a.items)!=null?f:[];return[].concat(ia(c),ia(a))}; g.computeMenuActive=function(a,b){return a||b}; g.onPopupOpened=function(){this.overlayOpen=!0;Gt(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)}; g.onPopupClosed=function(){this.overlayOpen=!1;Gt(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)}; g.onPopupCanceled=function(){this.overlayOpen=!1;Gt(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)}; g.computeAccessibilityLabel=function(a){return this.get("accessibility.accessibilityData.label",a)}; g.isHidden=function(a,b){return this.tonalOverride||!a?!0:a.fetchMenuCommand||a.isDisabled&&a.disabledCommand?!1:!(b==null?0:b.length)}; g.isModernOverflowHidden=function(a,b){return this.tonalOverride&&a?a.fetchMenuCommand?!1:!(b==null?0:b.length):!0}; g.createMenuRendererVe=function(){var a,b=(a=this.data)==null?void 0:a.trackingParams;a=Tv();var c=Sv();return b&&a&&c?(b=Qv(b),c=Rv(7591),tz(a,b,c),c):null}; ba.Object.defineProperties(BQ.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.flexAsTopLevelButtons)==null||!a.length)}}, buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}}); BQ.prototype.onPopupCanceled=BQ.prototype.onPopupCanceled;BQ.prototype.onPopupClosed=BQ.prototype.onPopupClosed;BQ.prototype.onPopupOpened=BQ.prototype.onPopupOpened;BQ.prototype.tonalOverrideChanged=BQ.prototype.tonalOverrideChanged;BQ.prototype.resetFlexibleItems=BQ.prototype.resetFlexibleItems;BQ.prototype.setupFlexibleMenu=BQ.prototype.setupFlexibleMenu;BQ.prototype.iconButtonColorChanged=BQ.prototype.iconButtonColorChanged;BQ.prototype.updateButtonOverrides=BQ.prototype.updateButtonOverrides; n([F(pB),r("design:type",Object)],BQ.prototype,"ytdOpenPopupBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],BQ.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],BQ.prototype,"ytRendererstamperBehavior",void 0);n([Tt("#button-shape"),r("design:type",HTMLElement)],BQ.prototype,"buttonShape",void 0);n([Tt("#button"),r("design:type",Object)],BQ.prototype,"button",void 0);n([M(),r("design:type",Object)],BQ.prototype,"data",void 0); n([M({computed:"computeTopLevelButtonData(data)"}),r("design:type",Array)],BQ.prototype,"topLevelButtonData",void 0);n([M(),r("design:type",Array)],BQ.prototype,"flexAsTopLevelButtons",void 0);n([M({computed:"computeItems(data, flexAsTopLevelButtons)"}),r("design:type",Array)],BQ.prototype,"items",void 0);n([M({value:"MORE_VERT"}),r("design:type",String)],BQ.prototype,"icon",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],BQ.prototype,"safeArea",void 0); n([M({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),r("design:type",Boolean)],BQ.prototype,"menuActive",void 0);n([M(),r("design:type",Boolean)],BQ.prototype,"menuFocused",void 0);n([M({value:"bottom"}),r("design:type",String)],BQ.prototype,"buttonTooltipPosition",void 0);n([M(),r("design:type",Boolean)],BQ.prototype,"overlayOpen",void 0);n([M({value:!0}),r("design:type",Boolean)],BQ.prototype,"forceIconButton",void 0); n([M(),r("design:type",Boolean)],BQ.prototype,"styleActionButton",void 0);n([M(),r("design:type",Boolean)],BQ.prototype,"disableTextTransformOnButtons",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],BQ.prototype,"tonalOverride",void 0);n([M(),r("design:type",Object)],BQ.prototype,"threeDotSize",void 0);n([M(),r("design:type",Object)],BQ.prototype,"threeDotButtonOverride",void 0);n([M(),r("design:type",Object)],BQ.prototype,"isOverlay",void 0); n([M(),r("design:type",Object)],BQ.prototype,"useOverlayDark",void 0);n([M({computed:"computeButtonOverride(tonalOverride)"}),r("design:type",Object)],BQ.prototype,"buttonOverride",void 0);n([M(),r("design:type",Boolean)],BQ.prototype,"minimizePipBreakages",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],BQ.prototype,"hasCustomIconColor",void 0); n([M({reflectToAttribute:!0}),H("flexAsTopLevelButtons"),r("design:type",Object),r("design:paramtypes",[])],BQ.prototype,"hasFlexibleItems",null);n([M({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),r("design:type",Boolean)],BQ.prototype,"hasItems",void 0);n([M(),r("design:type",Object)],BQ.prototype,"topLevelIconsOnly",void 0); n([Lt("topLevelIconsOnly"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],BQ.prototype,"updateButtonOverrides",null);n([H("topLevelIconsOnly"),r("design:type",Object),r("design:paramtypes",[])],BQ.prototype,"buttonOverrides",null);n([Tt("#top-level-buttons-computed"),r("design:type",HTMLElement)],BQ.prototype,"topLevelButtonsContainer",void 0);n([Ut(".top-level-buttons > *"),r("design:type",Array)],BQ.prototype,"topLevelButtons",void 0); n([Tt("#flexible-item-buttons"),r("design:type",HTMLElement)],BQ.prototype,"flexibleItemButtonsContainer",void 0);n([Ut("#flexible-item-buttons > *"),r("design:type",Array)],BQ.prototype,"flexibleItemButtons",void 0);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],BQ.prototype,"iconButtonColorChanged",null);n([cu("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],BQ.prototype,"setupFlexibleMenu",null); n([cu("topLevelIconsOnly"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],BQ.prototype,"resetFlexibleItems",null);n([Lt("tonalOverride"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],BQ.prototype,"tonalOverrideChanged",null);n([Kt("yt-popup-opened"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],BQ.prototype,"onPopupOpened",null); n([Kt("yt-popup-closed"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],BQ.prototype,"onPopupClosed",null);n([Kt("yt-popup-canceled"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],BQ.prototype,"onPopupCanceled",null); Tu(BQ,"ytd-menu-renderer",function(){if(RMb===void 0){var a=document.createElement("template");Q(a,"
");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);RMb=a}a=RMb;return a},{mode:2});var ONb;var CQ=function(){return E.apply(this,arguments)||this}; k(CQ,E);CQ.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.viewChannelButton":{id:"view-channel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],CQ.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],CQ.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],CQ.prototype,"data",void 0);n([gu({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],CQ); Tu(CQ,"ytd-feed-channel-filter-header-renderer",function(){if(ONb!==void 0)return ONb;var a=document.createElement("template");Q(a,"

\n \n \n
\n [[getSimpleString(data.title)]]\n
\n
\n
\n

\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return ONb=a},{mode:1});function DQ(a,b,c,d,e){d=d===void 0?{}:d;if(!e||Math.random()<5E-4){b=b||null;c=c||null;a=a instanceof Error?a:new Dl(a);if(a.args)for(var f=l(a.args),h=f.next();!h.done;h=f.next())h=h.value,h instanceof Object&&(d=Object.assign({},h,d));d.category="H5 Ads Control Flow";b&&(d.slot=b?"slot: "+b.slotType:"");c&&(d.layout=c?"layout: "+c.layoutType:"",d.layoutId=c.layoutId);e&&(d.known_error_aggressively_sampled=!0);a.args=[d];fo(a)}} ;function EQ(a,b,c,d){return a&&b?a!==c||b!==d?(DQ(Error("Ad metadata mismatch"),void 0,void 0,{"stored-slot":a,"stored-layout":b,"latest-slot":c,"latest-layout":d}),!1):!0:!1} ;var PNb;var QNb=new Bn("GUIDE_TOKEN");var FQ={},GQ=function(){var a=kt.apply(this,arguments)||this;a.guideStateActionMap={"ytd-update-guide-state-action":"handleGuideStateAction","ytd-update-mini-guide-state-action":"handleMiniGuideStateAction","ytd-update-guide-opened-action":"handleGuideOpenedAction","ytd-update-active-endpoint-action":"handleActiveEndpointAction"};return a}; k(GQ,kt);g=GQ.prototype;g.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))}; g.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var a=Fn().resolve(Cn(QNb));a&&(this.guidePersistentAndVisible=a.getGuidePersistentAndVisible(),this.activeEndpoint=a.getActiveEndpoint(),this.guideOpened=a.getGuideOpened(),this.miniGuideVisible=a.getMiniGuideVisible())}; g.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)}; g.handleGuideStateAction=function(a){this.guidePersistentAndVisible=a}; g.handleMiniGuideStateAction=function(a){this.miniGuideVisible=a}; g.handleGuideOpenedAction=function(a){this.guideOpened=a}; g.handleActiveEndpointAction=function(a){this.activeEndpoint=a}; GQ.prototype.onActiveEndpointChange=GQ.prototype.onActiveEndpointChange;n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],GQ.prototype,"ytActionHandlerBehavior",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],GQ.prototype,"guidePersistentAndVisible",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],GQ.prototype,"miniGuideVisible",void 0);n([M(),r("design:type",Object)],GQ.prototype,"activeEndpoint",void 0); n([Lt("activeEndpoint"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],GQ.prototype,"onActiveEndpointChange",null);n([M(),r("design:type",Boolean)],GQ.prototype,"guideOpened",void 0);n([Vt()],GQ);FQ.YtdGuideStateAwareBehavior=[];FQ.YtdGuideStateAwareBehavior.push(GQ.prototype,ft.YtActionHandlerBehavior);var HQ={},RNb=new Set(["ytd-section-list-renderer","yt-horizontal-list-renderer","ytd-item-section-renderer","ytd-watch-next-secondary-results-renderer","ytd-video-primary-info-renderer"]);HQ.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null}, detached:function(){this.cachedProviderNode_=null}, getTaskManager:function(){var a=this.getContext_();return a?a.getTaskManager():bj}, getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var a=Gt(this.hostElement,"yt-get-context-provider",{});a.detail&&a.detail.contextProvider?this.cachedProviderNode_=a.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}}, shouldUseTaskManager:function(){return RNb.has(this.hostElement.localName)}, getNetworkManager:function(){var a=this.getContext_();if(a)return a.getNetworkManager()}};var IQ={}; IQ.YtLazyListBehavior=[HQ.YtTaskEmitterBehavior,{_noAccessors:!0,properties:{initialCount:{type:Number,value:4},targetFramerate:{type:Number,value:20},minChunkSize:{type:Number,value:1},autoFill:{type:Boolean,value:!1},disableAutoFill:{type:Boolean,value:!1},shownItems:Array,shownCount:{type:Number,value:0},canShowMore:{type:Boolean,notify:!0,reflectToAttribute:!0,observer:"onCanShowMoreUpdated_"},renderDelay:Number,targetFrameTime_:{type:Number,computed:"computeFrameTime_(targetFramerate)"},canScheduleJobs:{type:Boolean, value:!0,observer:"canScheduleJobsChanged_"}},itemsPath:"data.items",beforeRegister:function(){if(this.itemsPath)if(this.getItemsPath&&this.getItemsPath instanceof Function&&(this.itemsPath=this.getItemsPath()),this.useSignals)this.addReactiveSchema({type:"observe",method:{methodName:"deepLazyListObserver_",args:[{type:"wildcard",path:this.itemsPath}]}});else{var a=(this.constructor.generatedFrom||this).observers;a||(a=[]);a.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers= a}}, created:function(){this.boundRenderChunk_=this.renderChunk_.bind(this);this.items_=null;this.lazyListRenderJobId_=this.chunkCount_=this.lastChunkTime_=this.length_=0;this.nonDeferredItemCount=-1;this.renderElementsOutsideVisibleArea_=null;this.partiallyRenderedItems_=new WeakSet}, fillRemainingListItems:function(){this.fillRange_(this.shownCount,this.length_)}, renderDeferredElements:function(){var a=this.renderElementsOutsideVisibleArea_;a&&(B0a(a,4),a.processSignal())}, deepLazyListObserver_:function(a){var b=this;if(a){var c=a.value||[];if(this.itemsPath==a.path){var d=this.nonDeferredItemCount;a=0;d>-1&&c.length>d&&(a=Vk("REMAINING_DOVA_DEFERRED_CHUNKS",-1));a>0?(d>0&&(d=c.slice(0,d),this.setInitialItemsOnDataChanged(d)),(d=this.renderElementsOutsideVisibleArea_)?d.cancel():(d=this.renderElementsOutsideVisibleArea_=new ZC(2,"eocs"),uqa(function(){return b.renderDeferredElements()})),A0a(d,function(){b.setInitialItemsOnDataChanged(c)}),Uk("REMAINING_DOVA_DEFERRED_CHUNKS", a-1)):this.setInitialItemsOnDataChanged(c)}else if(this.itemsPath+".splices"==a.path)this.onItemsUpdated_(c);else d="shownItems"+a.path.substr(this.itemsPath.length),this.useSignals&&d==="shownItems.length"||this.notifyPath(d,a.value)}else this.cancelPendingTasks_()}, onItemsUpdated_:function(a){a&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(a),this.length_=this.items_.length,this.canShowMore=this.shownCountMath.abs(b.deltaX)?b.deltaY:b.deltaX:b.deltaX;c!==0&&(b.preventDefault(),a.ytLazyListBehavior.fillRemainingListItems(),a.offset+=c,KQ(a),a.reposition_())}}; a.onPointerDown=function(b){a.isSearch&&(a.dragMouseStart=b.clientX,a.dragOffsetStart=a.offset,a.dragging=!0)}; a.onPointerMove=function(b){a.isSearch&&a.dragging&&(a.ytLazyListBehavior.fillRemainingListItems(),a.offset=a.dragOffsetStart-(b.clientX-a.dragMouseStart),KQ(a),a.reposition_())}; a.onPointerUp=function(){a.isSearch&&(a.dragging=!1)}; return a}; k(LQ,kt);var SNb=function(a){var b=wt(a.hostElement).querySelector("#items").children;if(!b)return 0;var c=0;a=l(a.fullyVisibleItemsIndices);for(var d=a.next();!d.done;d=a.next())c+=b[d.value].clientWidth;return c}; LQ.prototype.created=function(){this.cachedViewportWidth=Vk("initialInnerWidth")||window.innerWidth;this.JSC$12617_cachedViewportHeight=Vk("initialInnerHeight")||window.innerHeight;Vk("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&Uk("REMAINING_DOVA_DEFERRED_CHUNKS",6)}; LQ.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));this.disableScrollEventListener||this.addScrollEventListeners();TNb(this)}; LQ.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));this.disableScrollEventListener||this.removeScrollEventListeners();var a;(a=this.itemsVisibilityObserver)==null||a.disconnect();this.itemsVisibilityObserver=null;var b;(b=this.itemsObserver)==null||b.disconnect()}; var TNb=function(a){var b=wt(a.hostElement).querySelector("#scroll-container");if(b){if(!a.itemsVisibilityObserver){var c=window.getComputedStyle(b).marginRight;a.itemsVisibilityObserver=new IntersectionObserver(function(d){UNb(a,d)},{root:b, rootMargin:c,threshold:.98})}if(b=wt(a.hostElement).querySelector("#items"))a.itemsObserver=new Zr(b,function(d){VNb(a,d)})}},VNb=function(a,b){WNb(a)&&(Array.from(b.addedNodes).filter(function(c){return c.nodeType===Node.ELEMENT_NODE}).forEach(function(c){a.itemsVisibilityObserver&&a.itemsVisibilityObserver.observe(c)}),Array.from(b.removedNodes).filter(function(c){return c.nodeType===Node.ELEMENT_NODE}).forEach(function(c){a.itemsVisibilityObserver&&a.itemsVisibilityObserver.unobserve(c)}))},UNb= function(a,b){var c=new Set(a.fullyVisibleItemsIndices); b=l(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=d.target.parentElement;e?(e=Array.from(e.children).indexOf(d.target),d.isIntersecting?c.add(e):c.has(e)&&c.delete(e)):fo(new Dl("Parent element not found",d.target.nodeName))}a.fullyVisibleItemsIndices=Array.from(c).sort(function(f,h){return f-h}); c.size===0?fo(new Dl("No visible entries in horizontal list")):(a.startIndex=a.fullyVisibleItemsIndices[0],a.endIndex=a.fullyVisibleItemsIndices[a.fullyVisibleItemsIndices.length-1])},WNb=function(a){a.data?a=(a=a.data)&&a.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===a.itemSizeConstraint:!1:a=!1; return a}; g=LQ.prototype;g.addScrollEventListeners=function(){var a=wt(this.hostElement).querySelector("#scroll-container");a.style.touchAction="pan-y";a.addEventListener("wheel",this.JSC$12617_onWheelScroll);a.addEventListener("pointerdown",this.onPointerDown);a.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)}; g.removeScrollEventListeners=function(){var a=wt(this.hostElement).querySelector("#scroll-container");a.removeEventListener("wheel",this.JSC$12617_onWheelScroll);a.removeEventListener("pointerdown",this.onPointerDown);a.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)}; g.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&ms(this,this.setStartIndex,[this.initialStartIndex])}; g.reposition_=function(){var a=Vk("HTML_DIR")=="rtl"?"":"-",b=wt(this.hostElement).querySelector("#items");b&&(b.style.transform="translateX("+a+this.offset+"px)");this.requestButtonsStateUpdate_()}; g.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,ms(this,this.setButtonsState_))}; g.setButtonsState_=function(){this.setButtonsStateRequested=!1;var a=wt(this.hostElement).querySelector("#items").firstElementChild;if(a){this.minComponentWidth||(this.minComponentWidth=XNb(this,a));a=wt(this.hostElement).querySelector("#scroll-container").clientWidth;var b=wt(this.hostElement).querySelector("#items");b=x("kevlar_horizontal_list_scroll_width_killswitch")?b.clientWidth:b.scrollWidth;var c=this.get(this.ytLazyListBehavior.itemsPath,this);if(c){var d=Math.round(a/this.minComponentWidth)|| 1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+d,c.length)-1)}this.ytLazyListBehavior.canShowMore?b+this.minComponentWidth>=this.offset+a&&(this.atEnd=!1):this.atEnd=this.offset+a>=b-20?!0:!1;this.atStart=this.offset<=20}}; g.setStartIndex=function(a){if(!this.minComponentWidth){var b=wt(this.hostElement).querySelector("#items").firstElementChild;if(!b)return;this.minComponentWidth=XNb(this,b)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*a;KQ(this);this.reposition_()}; g.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();Rr();var a=wt(this.hostElement).querySelector("#scroll-container").clientWidth;this.minComponentWidth||(this.minComponentWidth=XNb(this,wt(this.hostElement).querySelector("#items").firstElementChild));a=this.useFloorScrolling?Math.floor(a/this.minComponentWidth)||1:Math.round(a/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&YNb(this);this.offset+=WNb(this)?SNb(this):a*this.minComponentWidth;KQ(this);this.reposition_(); this.scrollCount++}; g.prevClick_=function(){var a=wt(this.hostElement).querySelector("#scroll-container").clientWidth;a=this.useFloorScrolling?Math.floor(a/this.minComponentWidth)||1:Math.round(a/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=WNb(this)?SNb(this):this.minComponentWidth*this.scrollCount-1):this.offset-=WNb(this)?SNb(this):a*this.minComponentWidth;this.centerListItems&&YNb(this);KQ(this);this.reposition_()}; g.onIronResize_=function(){this.resizeSupportEnabled&&ms(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()}; g.onItemsTransitionEnd_=function(a){mt(a)===wt(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()}; g.onChildElementFocus_=function(a){a=a.target.closest("#items > *");var b=wt(this.hostElement).querySelector("#scroll-container");if(b.contains(a)){if(x("web_horizontal_list_behavior_focus_killswitch")){if(a.offsetLeftthis.offset+b.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),Rr(),this.offset=a.offsetLeft+a.clientWidth-b.clientWidth;else return;}else{var c=wt(this.hostElement).querySelector("#items"), d=Vk("HTML_DIR")==="rtl",e=d?c.clientWidth-a.offsetLeft:a.offsetLeft;c=d?c.clientWidth-(a.offsetLeft+a.clientWidth):a.offsetLeft+a.clientWidth;var f=d?e>this.offset+b.clientWidth:ethis.offset+b.clientWidth,m=d?f:h;if(d?h:f)b=d?c:e,this.offset=Math.abs(b)=c&&(a.offset=c-b)},YNb=function(a){a.offset-=(wt(a.hostElement).querySelector("#scroll-container").clientWidth+a.marginWidthRight-a.minComponentWidth)/2-a.marginWidthLeft}; ba.Object.defineProperties(LQ.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var a=Vk("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(a==-1)a=this.JSC$12617_cachedViewportHeight,a=a>1320?5:a>1020?4:a>730?3:a>430?2:1;else if(a==0)return 0;Uk("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",a-1);a=Vk("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(a>-1)return a;a=this.cachedViewportWidth;a=a>1600?6:a>1400?5:a>1300?4:a>1090?5:a>870?4:a>660?3:2;Uk("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT", a);return a}, set:function(){}}, resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!x("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}}); LQ.prototype.observeShownItems_=LQ.prototype.observeShownItems_;LQ.prototype.onChildElementFocus_=LQ.prototype.onChildElementFocus_;LQ.prototype.onItemsTransitionEnd_=LQ.prototype.onItemsTransitionEnd_;LQ.prototype.onIronResize_=LQ.prototype.onIronResize_;LQ.prototype.prevClick_=LQ.prototype.prevClick_;LQ.prototype.nextClick_=LQ.prototype.nextClick_;LQ.prototype.setButtonsState_=LQ.prototype.setButtonsState_;LQ.prototype.requestButtonsStateUpdate_=LQ.prototype.requestButtonsStateUpdate_; LQ.prototype.reposition_=LQ.prototype.reposition_;LQ.prototype.reset=LQ.prototype.reset;n([F(Yz.YtRendererBehavior),r("design:type",Object)],LQ.prototype,"ytRendererBehavior",void 0);n([F(IQ.YtLazyListBehavior),r("design:type",Object)],LQ.prototype,"ytLazyListBehavior",void 0);n([M(),r("design:type",Object)],LQ.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],LQ.prototype,"atStart",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],LQ.prototype,"atEnd",void 0); n([M(),r("design:type",Object)],LQ.prototype,"startIndex",void 0);n([M(),r("design:type",Object)],LQ.prototype,"endIndex",void 0);n([M({value:6}),r("design:type",Number)],LQ.prototype,"initialCount",void 0);n([M(),r("design:type",Object)],LQ.prototype,"scrollCount",void 0);n([M(),r("design:type",Object)],LQ.prototype,"initialStartIndex",void 0);n([M(),r("design:type",Object)],LQ.prototype,"disableScrollEventListener",void 0);n([M(),r("design:type",Object)],LQ.prototype,"supportComponentResize",void 0); n([M({value:function(){var a=this;return function(){return a.prevClick_()}}}), r("design:type",Function)],LQ.prototype,"boundPrevClick",void 0);n([M({value:function(){var a=this;return function(){return a.nextClick_()}}}), r("design:type",Function)],LQ.prototype,"boundNextClick",void 0);n([M(),r("design:type",Object)],LQ.prototype,"useFloorScrolling",void 0);n([M(),r("design:type",Object)],LQ.prototype,"isSearch",void 0);n([M(),r("design:type",Object)],LQ.prototype,"dragging",void 0);n([M(),r("design:type",Object)],LQ.prototype,"dragMouseStart",void 0);n([M(),r("design:type",Object)],LQ.prototype,"dragOffsetStart",void 0);n([M(),r("design:type",Object)],LQ.prototype,"disableWheelScroll",void 0); n([M(),r("design:type",Object)],LQ.prototype,"centerListItems",void 0);n([Kt("iron-resize"),Lt("guideOpened"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],LQ.prototype,"onIronResize_",null);n([Kt("transitionend"),r("design:type",Function),r("design:paramtypes",[Event]),r("design:returntype")],LQ.prototype,"onItemsTransitionEnd_",null); n([Kt("focusin"),r("design:type",Function),r("design:paramtypes",[Event]),r("design:returntype")],LQ.prototype,"onChildElementFocus_",null);n([Lt("shownItems"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],LQ.prototype,"observeShownItems_",null);n([Vt()],LQ);JQ.YtdHorizontalListBehavior=[];JQ.YtdHorizontalListBehavior.push(Hs,Yz.YtRendererBehavior,IQ.YtLazyListBehavior,FQ.YtdGuideStateAwareBehavior,LQ.prototype);var ZNb;function $Nb(a,b,c){var d=a.rowIndex;d!==void 0&&Yu(a.hostElement,"yt-section-reactive-dismissal",[d,b,c])} ;var aOb=["ytd-rich-shelf-renderer"],MQ=function(){var a=kt.apply(this,arguments)||this;a._noAccessors=!0;a.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";a.followUpDialogPromise=null;a.followUpDialogPromiseResolve=null;a.followUpDialogPromiseReject=null;return a}; k(MQ,kt);g=MQ.prototype;g.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()}; g.dismissibleItemReset_=function(){var a=this;this.isDismissed&&(this.isHideEnclosingAction=this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0);this.followUpDialogPromiseReject&&(this.followUpDialogPromise.thenCatch(function(){}),this.followUpDialogPromiseReject()); this.followUpDialogPromise=new uj(function(b,c){a.followUpDialogPromiseResolve=b;a.followUpDialogPromiseReject=c}); Gt(this.hostElement,"yt-enable-lockup-interaction")}; g.dismissibleItemOnYtServiceRequestSent_=function(a,b){b.actions&&this.dismissibleItemProcessActions(b.actions,a)}; g.dismissibleItemOnRequestSent=function(a){for(var b=l(a.detail),c=b.next();!c.done;c=b.next()){var d=void 0;(c=(d=z(c.value,my))==null?void 0:d.actions)&&this.dismissibleItemProcessActions(c,a)}}; g.dismissibleItemOnCommandSent=function(a,b){b&&this.dismissibleItemProcessActions(b,a)}; g.setAndGetDismissedContentId=function(a){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+a}; g.replayDismissAction=function(a){this.dismissibleItemProcessActions([a])}; g.dismissibleItemProcessActions=function(a,b){for(var c=0;c0&&(e=d.indexOf("&",b+1),c.url=e>b&&e0&&d!==36E5?new QF(eOb(),d):new QF(eOb())}RF(PQ,a.hostElement);o7a(PQ,a.hostElement,c,b)}},SQ=function(a){PQ&&RF(PQ,a.hostElement)}; function cOb(a){return!!a&&a.length>0&&a[0].loggingUrls!=null&&a[0].loggingUrls.length>0} function eOb(){var a=Vk("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(a==null?void 0:a.length)===2?a[1]:null} function dOb(a){if(!a)return[];var b=[];a=l(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.loggingUrls){c=l(c.loggingUrls);for(var d=c.next();!d.done;d=c.next())d=d.value,d.baseUrl&&b.push(d.baseUrl)}return b} ;var fOb;var TQ=function(){var a=E.apply(this,arguments)||this;a.iconType="STAR";a.plaMedium=x("enable_pla_resizing_for_desktop_medium");a.plaLarge=x("enable_pla_resizing_for_desktop_large");a.plaExtraLarge=x("enable_pla_resizing_for_desktop_extra_large");a.standardizeIconSize=x("kevlar_system_icons");a.noBottomMargin=!1;a.thumbnailObjectFit="CONTAIN";a.thumbnailFitHeight=!0;a.actionMap={"yt-mute-ad-action":"handleMuteAd"};return a}; k(TQ,E);g=TQ.prototype;g.created=function(){this.activeView=new QQ(this.hostElement)}; g.configureRendererStamper=function(){return{"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"},params:{mediumFontAdBadge:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.image":{id:"media",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.image.thumbnail]]",width:"[[mediaThumbnailWidth]]",fitHeight:"[[thumbnailFitHeight]]",objectFit:"[[thumbnailObjectFit]]"}}}}, "data.mediaBadge":{id:"media-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.ctaButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer", notificationTextRenderer:"ytd-notification-text-renderer"}}}}; g.dataChanged=function(){this.clickCommand=this.get("data.clickCommand.commandExecutorCommand.commands.0");this.clickCommand||(this.clickCommand=this.get("data.clickCommand"));this.clickCommand&&(this.updateMediaBackgroundImage(),this.ytSparklesClickLocationBehavior.configureClickTargets("root",TQ.JSC$12639_DEFAULT_CLICK_LOCATION_BEHAVIOR,TQ.JSC$12639_CLICK_LOCATION_ID_MAP))}; g.onTap=function(a){this.onTapOrClick(a)}; g.onTapOrClick=function(a){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,a,!1)}; g.updateMediaBackgroundImage=function(){var a=this.get("data.image.thumbnail.thumbnails");a&&(a=EB(a,0))&&Ft(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+a+")"})}; g.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var a=0;a
\n
\n
\n
\n
\n
\n
\n
\n
\n \n \n \n \n
\n
\n
\n \n \n
\n \n \n \n \n
\n
\n \n
\n
\n \n
\n
\n \n \n
\n
\n
\n
\n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return fOb=a},{mode:1});var gOb;var hOb;var iOb;var jOb=new Map;var kOb=!1;var UQ=function(){var a=E.apply(this,arguments)||this;a.DEFAULT_TOOLTIP_OFFSET="10";a.TOOLTIP_OFFSET_NO_BANNER="-8";a.badges=null;a.noEndpoints=!1;a.wrapText=!1;a.forceVerified=!1;a.tooltipPosition="top";a.compactStyle=!1;a.height=0;a.lineHeight=0;return a}; k(UQ,E);g=UQ.prototype;g.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}}; g.attached=function(){var a=this;this.observer=new MutationObserver(function(b,c){a.handleResized();c.disconnect()}); this.observer.observe(this.textEl,{childList:!0})}; g.detached=function(){this.observer&&this.observer.disconnect()}; g.logTooltipEvent=function(){if(!x("kevlar_wiz_tooltip_event_killswitch")&&!kOb){var a=ll("web_generic_client_event_wait_period ",0);a||(a=3E5);var b=jOb.get("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP");!x("enable_web_client_experiment_event_timeout_killswitch")&&b&&im()-b=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=Vk("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")}; g.handleResized=function(){var a=this;this.verified&&bj.addLowPriorityJob(function(){a.fitBackgroundToText();var b=getComputedStyle(a.hostElement).lineHeight;b&&(b=b.match(/\d+/))&&b.length&&(a.lineHeight=Number(b[0]));a.height=a.lineHeight&&!a.wrapText?a.lineHeight:a.textEl.offsetHeight})}; g.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var a=document.createRange(),b=wt(this.textEl).children;b.length>0?a.selectNodeContents(b[0]):a.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(a.getBoundingClientRect().width)+"px"}}; g.computeChannelBadgeStyle=function(a){var b;if((a==null?0:(b=a.runs)==null?0:b.length)&&a.runs[0].textColor)return"--ytd-badge-icon-color:"+Iy(a.runs[0].textColor)+";"}; ba.Object.defineProperties(UQ.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!(!this.forceVerified&&this.get("badges.0.metadataBadgeRenderer.style")!=="BADGE_STYLE_TYPE_UNIFIED_VERIFIED")}}, hideBadges:{configurable:!0,enumerable:!0,get:function(){return this.verified||!this.badges||this.badges.length===0}}, formattedName:{configurable:!0,enumerable:!0,get:function(){return typeof this.channelName==="string"?kz(this.channelName):this.channelName}}, tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var a=this.get("badges.0.metadataBadgeRenderer.tooltip");if(a)return a}return lz(this.formattedName)}}, tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}}); UQ.prototype.onLineHeightChanged=UQ.prototype.onLineHeightChanged;UQ.prototype.onHeightChanged=UQ.prototype.onHeightChanged;UQ.prototype.onChannelNameChanged=UQ.prototype.onChannelNameChanged;n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],UQ.prototype,"ytActionHandlerBehavior",void 0);n([M(),r("design:type",Object)],UQ.prototype,"badges",void 0);n([M(),r("design:type",Object)],UQ.prototype,"channelName",void 0);n([M(),r("design:type",Object)],UQ.prototype,"noEndpoints",void 0); n([M(),r("design:type",Object)],UQ.prototype,"wrapText",void 0);n([M(),r("design:type",Object)],UQ.prototype,"forceVerified",void 0);n([M(),r("design:type",Object)],UQ.prototype,"tooltipPosition",void 0);n([M(),r("design:type",String)],UQ.prototype,"tooltip",void 0);n([M(),r("design:type",Boolean)],UQ.prototype,"hasChannelArt",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],UQ.prototype,"compactStyle",void 0); n([Tt("#text-container"),r("design:type",HTMLElement)],UQ.prototype,"textContainerEl",void 0);n([Tt("#text"),r("design:type",Object)],UQ.prototype,"textEl",void 0);n([Tt("#verified-tooltip"),r("design:type",HTMLElement)],UQ.prototype,"verifiedTooltip",void 0);n([M(),r("design:type",Object)],UQ.prototype,"height",void 0);n([M(),r("design:type",Object)],UQ.prototype,"lineHeight",void 0); n([M({reflectToAttribute:!0}),H("badges","forceVerified"),r("design:type",Boolean),r("design:paramtypes",[])],UQ.prototype,"verified",null);n([H("badges","verified"),r("design:type",Boolean),r("design:paramtypes",[])],UQ.prototype,"hideBadges",null);n([H("channelName"),r("design:type",Object),r("design:paramtypes",[])],UQ.prototype,"formattedName",null);n([H("badges","verified","formattedName"),r("design:type",String),r("design:paramtypes",[])],UQ.prototype,"tooltipText",null); n([H("hasChannelArt"),r("design:type",String),r("design:paramtypes",[])],UQ.prototype,"tooltipOffset",null);n([Lt("channelName"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],UQ.prototype,"onChannelNameChanged",null);n([Lt("height"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],UQ.prototype,"onHeightChanged",null); n([Lt("lineHeight","height"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],UQ.prototype,"onLineHeightChanged",null);n([gu({is:"ytd-channel-name",disableElementRegistration:!0})],UQ); Tu(UQ,"ytd-channel-name",function(){if(iOb!==void 0)return iOb;var a=document.createElement("template");Q(a,"
\n
\n \n \n
\n \n [[tooltipText]]\n \n
\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return iOb=a},{mode:2});var VQ=function(){var a=E.apply(this,arguments)||this;a.standardizeIconSize=x("kevlar_system_icons");return a}; k(VQ,E);VQ.prototype.basicPaletteChanged=function(){var a;(a=this.data.color)!=null&&a.basicColorPaletteData&&aM(this.hostElement,this.data.color.basicColorPaletteData)}; VQ.prototype.useFilledIcons=function(a){return x("kevlar_system_icons")&&(a==="CHECK_CIRCLE_THICK"||a==="OFFICIAL_ARTIST_BADGE")}; ba.Object.defineProperties(VQ.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}}, creator:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return this.data.authorCreator||((a=this.data)==null?void 0:(b=a.color)==null?void 0:(c=b.basicColorPaletteData)==null?void 0:c.backgroundColor)}}}); VQ.prototype.basicPaletteChanged=VQ.prototype.basicPaletteChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],VQ.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],VQ.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],VQ.prototype,"standardizeIconSize",void 0);n([M({reflectToAttribute:!0}),H("data.authorUnifiedVerified"),r("design:type",Object),r("design:paramtypes",[])],VQ.prototype,"verified",null); n([M({reflectToAttribute:!0}),H("data"),r("design:type",Object),r("design:paramtypes",[])],VQ.prototype,"creator",null);n([Lt("data.color.basicColorPaletteData"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],VQ.prototype,"basicPaletteChanged",null);n([gu({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],VQ); Tu(VQ,"ytd-author-comment-badge-renderer",function(){if(hOb!==void 0)return hOb;var a=document.createElement("template");Q(a,"\n \n \n\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return hOb=a},{mode:1});var lOb;var WQ=function(){return E.apply(this,arguments)||this}; k(WQ,E);WQ.prototype.computeThumbnailWidth=function(a){if(a==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],WQ.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],WQ.prototype,"data",void 0);n([M({computed:"computeIcon_(data.icon)"}),r("design:type",String)],WQ.prototype,"icon",void 0);n([M({reflectToAttribute:!0}),r("design:type",String)],WQ.prototype,"surface",void 0);n([M({reflectToAttribute:!0,value:x("enable_shrink_image_size_on_web_posts_singleton")}),r("design:type",Boolean)],WQ.prototype,"searchSxsUx",void 0); n([M({reflectToAttribute:!0,value:x("enable_community_page_on_desktop")}),r("design:type",Boolean)],WQ.prototype,"useSmallerPostImageAttachments",void 0);n([gu({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],WQ); Tu(WQ,"ytd-backstage-image-renderer",function(){if(lOb!==void 0)return lOb;var a=document.createElement("template");Q(a,"\n\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return lOb=a},{mode:1});var mOb;var XQ=function(){var a=E.apply(this,arguments)||this;a.isLoading=!1;a.selectedItemIndex=-1;return a}; k(XQ,E);g=XQ.prototype;g.computeIsChannelOwner=function(a){if(!a)return!0;a=a[0];return!(a&&(a.signinEndpoint||a.selectServiceEndpoint))}; g.computeIsImagePoll=function(a){return(a==null?void 0:a.type)==="POLL_TYPE_IMAGE"}; g.computeIsTotalVotesDisabled=function(a){return!(a==null?0:a.totalVotes)}; g.thumbnailSrc=function(a){var b,c,d,e;return(a==null?0:(b=a.thumbnails)==null?0:(c=b[0])==null?0:c.url)?Fb((d=a.thumbnails)==null?void 0:(e=d[0])==null?void 0:e.url):void 0}; g.progressWidth=function(a){return"width:"+(a?a*100:0)+"%;"}; g.textAreaWidth=function(a){return this.isImagePoll?null:"width:"+(a?a*100:0)+"%;"}; g.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"}; g.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var a=this.data.choices,b=0;b\n\n \n\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return mOb=a},{mode:2});var nOb;var oOb={autoplay:!1,loop:!1},pOb={simpleText:""},YQ=function(){var a=E.apply(this,arguments)||this;a.isLoading=!1;a.usesPanelLockup=!1;a.selectedItemIndex=-1;a.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},oOb,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});a.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json", renderer:"svg"},oOb,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});a.correctnessAnimationProps=[];a.correctnessAnimationRefs=[];return a}; k(YQ,E);g=YQ.prototype;g.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()}; g.computeIsChannelOwner=function(a){if(!a)return!0;a=a[0];return!(a&&(a.signinEndpoint||a.selectServiceEndpoint))}; g.computeIsTotalVotesDisabled=function(a){return!(a==null?0:a.totalVotes)}; g.computeIsImageQuiz=function(a){return(a==null?void 0:a.type)==="POLL_TYPE_IMAGE"}; g.onExplanationChanged=function(){this.expander.reset()}; g.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var a=this.data.choices;if(a){this.maybeInitializeQuizLotties(a);for(var b=0;b0&&this.showCorrectAnswer}}, showCorrectAnswer:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner||this.isAttempted}}, isQuizAnsweringDisabled:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner||this.isAttempted}}, endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isQuizAnsweringDisabled?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}, isAttempted:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.data)==null?void 0:(b=a.choices)==null?void 0:b.some(function(c){return c.isSelected}))||!1}}, explanation:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null||!a.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?pOb:this.data.choices[this.selectedItemIndex].explanation||pOb}}, isCorrect:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null||!a.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}}); YQ.prototype.onYtServiceRequestCompleted=YQ.prototype.onYtServiceRequestCompleted;YQ.prototype.onYtServiceRequestSent=YQ.prototype.onYtServiceRequestSent;YQ.prototype.onYtCommentPollRevert=YQ.prototype.onYtCommentPollRevert;YQ.prototype.dataChanged=YQ.prototype.dataChanged;YQ.prototype.onExplanationChanged=YQ.prototype.onExplanationChanged;n([F(cy),r("design:type",Object)],YQ.prototype,"paperItemBehavior",void 0); n([F(Yz.YtRendererBehavior),r("design:type",Object)],YQ.prototype,"ytRendererBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],YQ.prototype,"ytComponentBehavior",void 0);n([F(HQ.YtTaskEmitterBehavior),r("design:type",Object)],YQ.prototype,"ytTaskEmitterBehavior",void 0);n([F(pB),r("design:type",Object)],YQ.prototype,"ytdOpenPopupBehavior",void 0);n([M(),r("design:type",Object)],YQ.prototype,"data",void 0);n([M(),r("design:type",Object)],YQ.prototype,"isLoading",void 0); n([M(),r("design:type",Object)],YQ.prototype,"usesPanelLockup",void 0);n([M({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),r("design:type",Boolean)],YQ.prototype,"isChannelOwner",void 0);n([M({computed:"computeIsTotalVotesDisabled(data)"}),r("design:type",Boolean)],YQ.prototype,"isTotalVotesDisabled",void 0);n([M({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),r("design:type",Boolean)],YQ.prototype,"isImageQuiz",void 0); n([M(),r("design:type",Object)],YQ.prototype,"previousQuizInfo",void 0);n([M(),r("design:type",Object)],YQ.prototype,"selectedItemIndex",void 0);n([M({reflectToAttribute:!0}),H("data","usesPanelLockup"),r("design:type",Boolean),r("design:paramtypes",[])],YQ.prototype,"shouldUseModernUi",null);n([Ut(".fade-container"),r("design:type",Object)],YQ.prototype,"fadeContainers",void 0);n([M(),r("design:type",Array)],YQ.prototype,"correctnessAnimationProps",void 0); n([H("explanation","showCorrectAnswer"),r("design:type",Boolean),r("design:paramtypes",[])],YQ.prototype,"showExplanation",null);n([H("isChannelOwner","isAttempted"),r("design:type",Boolean),r("design:paramtypes",[])],YQ.prototype,"showCorrectAnswer",null);n([H("isChannelOwner","isAttempted","data"),r("design:type",Boolean),r("design:paramtypes",[])],YQ.prototype,"isQuizAnsweringDisabled",null); n([H("isQuizAnsweringDisabled"),r("design:type",Object),r("design:paramtypes",[])],YQ.prototype,"endpointStyle",null);n([H("data","selectedItemIndex"),r("design:type",Boolean),r("design:paramtypes",[])],YQ.prototype,"isAttempted",null);n([H("data","selectedItemIndex"),r("design:type",Object),r("design:paramtypes",[])],YQ.prototype,"explanation",null);n([H("data","selectedItemIndex"),r("design:type",Boolean),r("design:paramtypes",[])],YQ.prototype,"isCorrect",null); n([Tt("ytd-expander"),r("design:type",Object)],YQ.prototype,"expander",void 0);n([Tt("#quiz-votes"),r("design:type",Object)],YQ.prototype,"quizVotes",void 0);n([Lt("explanation"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],YQ.prototype,"onExplanationChanged",null);n([Lt("data","isChannelOwner"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],YQ.prototype,"dataChanged",null); n([Kt("yt-comment-quiz-revert"),r("design:type",Function),r("design:paramtypes",[CustomEvent,Object]),r("design:returntype")],YQ.prototype,"onYtCommentPollRevert",null);n([Kt("yt-service-request-sent"),r("design:type",Function),r("design:paramtypes",[CustomEvent,mB]),r("design:returntype")],YQ.prototype,"onYtServiceRequestSent",null); n([Kt("yt-service-request-completed"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],YQ.prototype,"onYtServiceRequestCompleted",null);n([gu({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],YQ); Tu(YQ,"ytd-backstage-quiz-renderer",function(){if(nOb!==void 0)return nOb;var a=document.createElement("template");Q(a,"\n\n \n\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return nOb=a},{mode:1});var qOb;var ZQ=function(){return E.apply(this,arguments)||this}; k(ZQ,E);n([F(Yz.YtRendererBehavior),r("design:type",Object)],ZQ.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],ZQ.prototype,"data",void 0);n([gu({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],ZQ); Tu(ZQ,"ytd-post-uploaded-video-renderer",function(){if(qOb!==void 0)return qOb;var a=document.createElement("template");Q(a,"
\n \n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return qOb=a},{mode:1});var rOb;var $Q=function(){return E.apply(this,arguments)||this}; k($Q,E);$Q.prototype.useFilledIcons=function(a){return a==="SPONSORSHIP_STAR"}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],$Q.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],$Q.prototype,"data",void 0);n([gu({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],$Q); var sOb=Uu()($Q,"ytd-sponsors-only-badge-renderer",function(){if(rOb===void 0){var a=document.createElement("template");Q(a,"\n\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);rOb=a}a=rOb;return a},{allowedProps:["data"], mode:1});var tOb=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],aR=function(){var a=kt.apply(this,arguments)||this;a.hoverJobId=0;a.JSC$12676_touched=!1;return a}; k(aR,kt);g=aR.prototype;g.created=function(){this.useExpandableTooltip=!tOb.includes(this.is)}; g.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")}; g.detached=function(){this.useExpandableTooltip=!1}; g.lockupOnDown=function(a){this.interactionElement&&!AO(lt(a),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()}; g.lockupOnUp=function(a){this.interactionElement&&!AO(lt(a),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()}; g.onTouchStart=function(){this.JSC$12676_touched=!0}; g.lockupOnMouseEnter=function(){var a=this,b=ll("kevlar_lockup_hover_delay",-1);this.JSC$12676_touched&&b>=0?(bj.cancelJob(this.hoverJobId),this.hoverJobId=Hl(0,function(){a.lockupIsHovered=!0},8,b),this.JSC$12676_touched=!1):this.lockupIsHovered=!0}; g.lockupOnMouseLeave=function(){this.hoverJobId&&(bj.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1}; g.lockupOnPopupClosed=function(a,b){var c;((c=b.popupRenderer)==null?void 0:c.is)==="ytd-menu-popup-renderer"&&(a=b.popupRenderer.veData,b=Tv(),a&&b&&wz(b,[a]))}; g.lockupOnLockupRequested=function(a){var b=a.detail.videoIds[0],c;a.detail&&b===((c=this.data)==null?void 0:c.videoId)&&(a.detail.returnValue=[this.data])}; g.lockupOnYtServiceRequestSent=function(a,b){if(a=b.actions)for(var c=0;c
[[getSimpleString(data.lengthText)]]
");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return uOb=a},{mode:1});var vOb;function wOb(a){switch(a){case 0:return 16/9;case 1:return 2/3;case 2:return .75;case 3:return 1;case 4:return .5625;default:return 0;}} ;function xOb(a,b){if(!a&&!b)return"medium";a=Math.max(a||0,b||0);return a>=256?"large":a>=96?"medium":"small"} function yOb(a){switch(a){case 1:return 2/3;case 4:return .5625;case 3:return 1;default:return 16/9;}} ;var dR=function(){var a=kt.apply(this,arguments)||this;a._noAccessors=!0;a.disableNowPlaying=!1;a.disableTooltips=!1;a.useHoveredProperty=!1;a.hovered=!1;a.isThumbnailHovered_=!1;a.nowPlaying=!1;a.disableRounding=!1;a.size="small";return a}; k(dR,kt);g=dR.prototype;g.computeThumbnailOverlaySidePanelWidth_=function(a,b){return a-b}; g.computeSize=function(a,b){if(!this.disableRounding){if(!a&&!b)return"small";a=Math.max(a||0,b||0);return a>=256?"large":a>=96?"medium":"small"}}; g.computeFinalHoveredState_=function(a,b,c){return this.nowPlaying?!1:a?b:c}; g.computeHoverOverlays_=function(a,b){return a&&b?b:void 0}; g.onMouseEnter_=function(){this.isThumbnailHovered_=!0}; g.onMouseLeave_=function(){this.isThumbnailHovered_=!1}; g.checkMiniplayer_=function(){var a=rK();var b=a.JSC$23706_currentEndpoint;!this.disableNowPlaying&&b&&z(b,py)&&this.data?(b=z(b,py),this.nowPlaying=this.data.playlistId?b.playlistId===this.data.playlistId:b.videoId===this.data.videoId,this.isVideoPlaying=a==null?void 0:a.isVideoPlaying):this.nowPlaying=!1}; dR.prototype.checkMiniplayer_=dR.prototype.checkMiniplayer_;dR.prototype.onMouseLeave_=dR.prototype.onMouseLeave_;dR.prototype.onMouseEnter_=dR.prototype.onMouseEnter_;dR.prototype.computeHoverOverlays_=dR.prototype.computeHoverOverlays_;dR.prototype.computeFinalHoveredState_=dR.prototype.computeFinalHoveredState_;dR.prototype.computeSize=dR.prototype.computeSize;dR.prototype.computeThumbnailOverlaySidePanelWidth_=dR.prototype.computeThumbnailOverlaySidePanelWidth_; n([F(kC),r("design:type",Object)],dR.prototype,"ytdReduxBehavior",void 0);n([M(),r("design:type",Object)],dR.prototype,"data",void 0);n([M(),r("design:type",Number)],dR.prototype,"height",void 0);n([M(),r("design:type",Boolean)],dR.prototype,"bottomSidePanel",void 0);n([M(),r("design:type",Number)],dR.prototype,"width",void 0);n([M(),r("design:type",Object)],dR.prototype,"disableNowPlaying",void 0);n([M({selector:XZa}),r("design:type",Boolean)],dR.prototype,"miniplayerIsActive",void 0); n([M(),r("design:type",Object)],dR.prototype,"disableTooltips",void 0);n([M(),r("design:type",Object)],dR.prototype,"useHoveredProperty",void 0);n([M(),r("design:type",Object)],dR.prototype,"hovered",void 0);n([M(),r("design:type",Object)],dR.prototype,"isThumbnailHovered_",void 0);n([M({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),r("design:type",Boolean)],dR.prototype,"finalHoveredState_",void 0); n([M({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),r("design:type",Number)],dR.prototype,"thumbnailOverlaySidePanelWidth_",void 0);n([M({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),r("design:type",Object)],dR.prototype,"hoverOverlays_",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],dR.prototype,"nowPlaying",void 0);n([M(),r("design:type",Boolean)],dR.prototype,"isVideoPlaying",void 0); n([M(),r("design:type",Object)],dR.prototype,"disableRounding",void 0);n([M({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),r("design:type",Object)],dR.prototype,"size",void 0);n([Kt("mouseenter"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],dR.prototype,"onMouseEnter_",null);n([Kt("mouseleave"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],dR.prototype,"onMouseLeave_",null); n([Lt("data","disableNowPlaying","miniplayerIsActive"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],dR.prototype,"checkMiniplayer_",null);n([Vt()],dR);var zOb=[dR.prototype];var AOb;var eR=function(){var a=E.apply(this,arguments)||this;a.size=0;a.fallbackImageSize={height:void 0,width:9999};a.webModernCollections=!1;return a}; k(eR,E);g=eR.prototype;g.computeBlurredImageSize=function(a){return a?{height:a*2,width:a*2}:this.fallbackImageSize}; g.computeImageSize=function(a){return a?{height:a,width:a}:this.fallbackImageSize}; g.computeObjectFit=function(a){return a?"FILL":"CONTAIN"}; g.computePreserve=function(a){return a?!0:!1}; g.setBackground=function(){var a,b;if((a=this.data)==null?0:(b=a.thumbnail)==null?0:b.sampledThumbnailColor)a=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+a.red+","+a.green+","+a.blue+",1)"}; eR.prototype.setBackground=eR.prototype.setBackground;n([F(Yz.YtRendererBehavior),r("design:type",Object)],eR.prototype,"ytRendererBehavior",void 0);n([M({reflectToAttribute:!0,value:!1}),r("design:type",Boolean)],eR.prototype,"watchFeedThumbnail",void 0);n([M(),r("design:type",Object)],eR.prototype,"data",void 0);n([M(),r("design:type",Object)],eR.prototype,"size",void 0);n([M({computed:"computeBlurredImageSize(size)"}),r("design:type",Object)],eR.prototype,"blurredImageSize",void 0); n([M({computed:"computeImageSize(size)"}),r("design:type",Object)],eR.prototype,"imageSize",void 0);n([M({computed:"computePreserve(size)"}),r("design:type",String)],eR.prototype,"preserve",void 0);n([M({computed:"computeObjectFit(size)"}),r("design:type",String)],eR.prototype,"objectFit",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],eR.prototype,"webModernCollections",void 0); n([Lt("data.thumbnail.sampledThumbnailColor"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],eR.prototype,"setBackground",null);n([gu({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],eR); Tu(eR,"ytd-playlist-custom-thumbnail-renderer",function(){if(AOb!==void 0)return AOb;var a=document.createElement("template");Q(a,"\n\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return AOb=a},{mode:1});var BOb;var fR=function(){return E.apply(this,arguments)||this}; k(fR,E);n([F(Yz.YtRendererBehavior),r("design:type",Object)],fR.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],fR.prototype,"data",void 0);n([M(),r("design:type",Number)],fR.prototype,"width",void 0);n([gu({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],fR); Tu(fR,"ytd-playlist-video-thumbnail-renderer",function(){if(BOb!==void 0)return BOb;var a=document.createElement("template");Q(a,"\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return BOb=a},{mode:1});var COb;var gR=function(){return E.apply(this,arguments)||this}; k(gR,E);n([F(Yz.YtRendererBehavior),r("design:type",Object)],gR.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],gR.prototype,"data",void 0);n([M(),r("design:type",Number)],gR.prototype,"width",void 0);n([gu({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],gR); Tu(gR,"ytd-show-custom-thumbnail-renderer",function(){if(COb!==void 0)return COb;var a=document.createElement("template");Q(a,"\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return COb=a},{mode:1});var DOb;var hR=function(){return E.apply(this,arguments)||this}; k(hR,E);hR.prototype.useFilledIcons=function(a){return a==="MUSIC"||a==="COURSE"}; hR.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=Ky(this.overlayColor,"0.8");else if(this.overlayColor){var a=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+a.red+","+a.green+","+a.blue+",0.8)"}}; ba.Object.defineProperties(hR.prototype,{overlayStyle:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.text||!this.data.icon)}}, overlayTextStyle:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.text||this.data.icon)}}}); hR.prototype.overlayColorChanged=hR.prototype.overlayColorChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],hR.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],hR.prototype,"data",void 0);n([M(),r("design:type",Object)],hR.prototype,"overlayColor",void 0);n([M({reflectToAttribute:!0}),H("data.icon","data.text"),r("design:type",Object),r("design:paramtypes",[])],hR.prototype,"overlayStyle",null); n([M({reflectToAttribute:!0}),H("data.icon","data.text"),r("design:type",Object),r("design:paramtypes",[])],hR.prototype,"overlayTextStyle",null);n([Lt("overlayColor"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],hR.prototype,"overlayColorChanged",null);n([gu({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],hR); Tu(hR,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(DOb!==void 0)return DOb;var a=document.createElement("template");Q(a,"\n\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return DOb=a},{mode:1});var EOb;var iR=function(){var a=E.apply(this,arguments)||this;a.active=!1;return a}; k(iR,E);iR.prototype.computeIsSpinnerHidden=function(a){return(a==null?void 0:a.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"}; iR.prototype.computeOverlayIcon=function(a){return(a==null?void 0:a.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(a==null?void 0:a.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],iR.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],iR.prototype,"data",void 0);n([M(),r("design:type",Object)],iR.prototype,"active",void 0);n([gu({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],iR); Tu(iR,"ytd-thumbnail-overlay-downloading-renderer",function(){if(EOb!==void 0)return EOb;var a=document.createElement("template");Q(a,"\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return EOb=a},{mode:1});var FOb;var jR=function(){return E.apply(this,arguments)||this}; k(jR,E);ba.Object.defineProperties(jR.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}}); n([F(Yz.YtRendererBehavior),r("design:type",Object)],jR.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],jR.prototype,"data",void 0);n([H("data.text"),r("design:type",Object),r("design:paramtypes",[])],jR.prototype,"text",null);n([gu({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],jR); Tu(jR,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(FOb!==void 0)return FOb;var a=document.createElement("template");Q(a,"\n[[text]]\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return FOb=a},{mode:1});var GOb,HOb=function(){if(GOb!==void 0)return GOb;var a=document.createElement("template");Q(a,"\n \n \n \n \n \n\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return GOb=a};var kR=function(){return E.apply(this,arguments)||this}; k(kR,E);ba.Object.defineProperties(kR,{template:{configurable:!0,enumerable:!0,get:function(){return HOb()}}}); n([M({reflectToAttribute:!0}),r("design:type",Boolean)],kR.prototype,"animateEqualizer",void 0);n([gu({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],kR);Uu()(kR,"ytd-thumbnail-overlay-equalizer",function(){return HOb()},{allowedProps:["animateEqualizer"], mode:1});var IOb;var lR=function(){var a=E.apply(this,arguments)||this;a.nowPlayingBadge=x("web_now_playing_badge");a.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return a}; k(lR,E);lR.prototype.onMiniplayerPlayStateChanged=function(a){var b,c=(b=z(rK().JSC$23706_currentEndpoint,py))==null?void 0:b.videoId;this.isVideoPlaying=a&&this.videoId===c}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],lR.prototype,"ytRendererBehavior",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],lR.prototype,"ytActionHandlerBehavior",void 0);n([M(),r("design:type",Object)],lR.prototype,"data",void 0);n([M(),r("design:type",Boolean)],lR.prototype,"isVideoPlaying",void 0);n([M(),r("design:type",String)],lR.prototype,"videoId",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],lR.prototype,"equalizerOnly",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],lR.prototype,"nowPlayingBadge",void 0);n([gu({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],lR); Tu(lR,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(IOb!==void 0)return IOb;var a=document.createElement("template");Q(a,"\n\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return IOb=a},{mode:1});var JOb;var mR=function(){return E.apply(this,arguments)||this}; k(mR,E);n([F(Yz.YtRendererBehavior),r("design:type",Object)],mR.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],mR.prototype,"data",void 0);n([gu({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],mR); Tu(mR,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(JOb!==void 0)return JOb;var a=document.createElement("template");Q(a,"");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return JOb=a},{mode:2});var KOb;var nR=function(){return E.apply(this,arguments)||this}; k(nR,E);nR.prototype.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.percentDurationWatched",this.toggleMenuServiceItemEntity.isToggled?100:0)}; nR.prototype.onDurationChanged=function(){var a,b,c=(b=(a=this.data)==null?void 0:a.percentDurationWatched)!=null?b:0;this.hostElement.style.display=c===0?"none":"";wt(this.hostElement).querySelector("#progress").style.width=c+"%"}; nR.prototype.onDurationChanged=nR.prototype.onDurationChanged;nR.prototype.toggledStateEntityChanged=nR.prototype.toggledStateEntityChanged;n([F(mz.YtComponentBehavior),r("design:type",Object)],nR.prototype,"componentBehavior",void 0);n([F(kC),r("design:type",Object)],nR.prototype,"ytdReduxBehavior",void 0);n([M(),r("design:type",Object)],nR.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],nR.prototype,"isLive",void 0); n([M({selectorArgs:["data.videoPlaybackPositionToggleEntityKey"],selector:SC.toggleMenuServiceItemEntitySelector}),r("design:type",Object)],nR.prototype,"toggleMenuServiceItemEntity",void 0);n([Lt("toggleMenuServiceItemEntity.isToggled"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],nR.prototype,"toggledStateEntityChanged",null); n([Lt("data.percentDurationWatched"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],nR.prototype,"onDurationChanged",null);n([gu({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],nR); Tu(nR,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(KOb!==void 0)return KOb;var a=document.createElement("template");Q(a,"
");a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild); return KOb=a},{mode:1});var LOb;var oR=function(){var a=E.apply(this,arguments)||this;a.bottomPanel=!1;a.richGridOverlay=!1;a.watchFeedOverlay=!1;a.isCompact=!1;return a}; k(oR,E);oR.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")}; ba.Object.defineProperties(oR.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.data)==null?void 0:(b=a.icon)==null?void 0:b.iconType)==="PLAY_ALL"&&x("kevlar_system_icons")}}}); oR.prototype.widthChanged=oR.prototype.widthChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],oR.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],oR.prototype,"data",void 0);n([M(),r("design:type",Number)],oR.prototype,"width",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],oR.prototype,"bottomPanel",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],oR.prototype,"richGridOverlay",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],oR.prototype,"watchFeedOverlay",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],oR.prototype,"isCompact",void 0);n([H("data"),r("design:type",Boolean),r("design:paramtypes",[])],oR.prototype,"isIconFilled",null);n([Lt("width","watchFeedOverlay"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],oR.prototype,"widthChanged",null); n([gu({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],oR); Tu(oR,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(LOb!==void 0)return LOb;var a=document.createElement("template");Q(a,"\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return LOb=a},{mode:1});var MOb;function NOb(a,b){var c,d,e,f;a:{var h=a.style;if(h===void 0)h=18;else switch(h){case"LIVE":h=19;break a;default:h=18;}}return{type:h,text:b?jwb({seconds:b}):lz(a.text),accessibilityText:(c=a.text)==null?void 0:(d=c.accessibility)==null?void 0:(e=d.accessibilityData)==null?void 0:e.label,icon:(f=a.icon)==null?void 0:f.iconType}} ;var OOb=["CLIP","SHORTS"],pR=function(){var a=E.apply(this,arguments)||this;a.hasIcon=!1;a.updateTimerIntervalId=0;a.timeSinceLive=0;return a}; k(pR,E);g=pR.prototype;g.detached=function(){clearInterval(this.updateTimerIntervalId)}; g.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)}; g.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0}; g.hasIconOrText=function(){var a,b;return!!(((a=this.data)==null?0:a.icon)||((b=this.data)==null?0:b.text))}; g.initializeLiveBadgeTimer=function(){var a=this,b,c=(b=this.liveBadgeData)==null?void 0:b.startTimestampSec;if(c&&this.canShowLiveBadgeTimer()){var d;b=Number((d=this.liveBadgeData)==null?void 0:d.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(c);this.updateTimerIntervalId=jl(function(){a.canShowLiveBadgeTimer()?a.timeSinceLive++:(a.timeSinceLive=0,window.clearInterval(a.updateTimerIntervalId))},b)}else this.timeSinceLive=0}; g.canShowLiveBadgeTimer=function(){var a=Date.now(),b,c;return a<(Number((b=this.liveBadgeData)==null?void 0:b.endTimestampSec)-1)*1E3&&a>Number((c=this.liveBadgeData)==null?void 0:c.startTimestampSec)*1E3}; ba.Object.defineProperties(pR.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){return this.data?NOb(this.data,this.timeSinceLive):{}}}, hideBadgeShape:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.hasIconOrText()||this.overlayType==="OPEN_IN_NEW_TAB"}}, overlayStyle:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.style)return this.data.style}}, liveBadgeData:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.liveBadgeData}}, overlayType:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.type)return this.data.type.replace("THUMBNAIL_OVERLAY_TIME_STATUS_TYPE_","")}}, useFilledIcon:{configurable:!0,enumerable:!0,get:function(){return OOb.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}, iconSize:{configurable:!0,enumerable:!0,get:function(){return this.overlayType==="CLIP"?12:this.overlayType==="OPEN_IN_NEW_TAB"?24:16}}}); pR.prototype.initializeLiveBadgeTimer=pR.prototype.initializeLiveBadgeTimer;pR.prototype.dataChanged=pR.prototype.dataChanged;n([F(mz.YtComponentBehavior),r("design:type",Object)],pR.prototype,"componentBehavior",void 0);n([M(),r("design:type",Object)],pR.prototype,"data",void 0);n([M({computed:"computeIcon_(data.icon)"}),r("design:type",String)],pR.prototype,"icon",void 0); n([M({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),r("design:type",Boolean)],pR.prototype,"hideTimeStatus",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],pR.prototype,"hasIcon",void 0);n([M(),r("design:type",Object)],pR.prototype,"timeSinceLive",void 0);n([H("data","timeSinceLive"),r("design:type",Object),r("design:paramtypes",[])],pR.prototype,"badgeShapeData",null); n([H("data","overlayType"),r("design:type",Boolean),r("design:paramtypes",[])],pR.prototype,"hideBadgeShape",null);n([cu("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],pR.prototype,"dataChanged",null);n([M({reflectToAttribute:!0}),H("data.style"),r("design:type",Object),r("design:paramtypes",[])],pR.prototype,"overlayStyle",null);n([H("data.liveBadgeData"),r("design:type",Object),r("design:paramtypes",[])],pR.prototype,"liveBadgeData",null); n([M({reflectToAttribute:!0}),H("data.type"),r("design:type",Object),r("design:paramtypes",[])],pR.prototype,"overlayType",null);n([H("overlayType","overlayStyle"),r("design:type",Boolean),r("design:paramtypes",[])],pR.prototype,"useFilledIcon",null);n([H("overlayType"),r("design:type",Number),r("design:paramtypes",[])],pR.prototype,"iconSize",null);n([cu("liveBadgeData"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],pR.prototype,"initializeLiveBadgeTimer",null); n([gu({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],pR); Tu(pR,"ytd-thumbnail-overlay-time-status-renderer",function(){if(MOb!==void 0)return MOb;var a=document.createElement("template");Q(a,"");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return MOb=a},{mode:2});var POb;var qR=function(){return E.apply(this,arguments)||this}; k(qR,E);qR.prototype.configureRendererStamper=function(){return{"data.primaryActionButton":{id:"primary-action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.secondaryActionButton":{id:"secondary-action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}}; qR.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(a){if(this.hasPlaybackProgressBar)return{percentDurationWatched:a.percentDurationWatched}}; qR.prototype.computeHasPlaybackProgressBar=function(a){return!!a.percentDurationWatched&&a.percentDurationWatched>0}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],qR.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],qR.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],qR.prototype,"data",void 0);n([M({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),r("design:type",Boolean)],qR.prototype,"hasPlaybackProgressBar",void 0); n([gu({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],qR); Tu(qR,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(POb!==void 0)return POb;var a=document.createElement("template");Q(a,"
\n \n \n \n
\n
\n
\n \n \n
\n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return POb=a},{mode:1});var QOb;var TOb=O(function(a){var b=a.data;var c=a.children;var d=function(){return!!b().doubleStack},e=function(){return!!b().includeStackHeight}; return D("yt-collections-stack",{class:"ytCollectionsStackHost",hidden:function(){return!b().experimentEnabled}},D(P,{cond:b, then:function(){var f={},h={};return D(mq,null,D(P,{cond:e,then:function(){var m={};return D("div",{class:U("ytCollectionsStackSpacer",(m.ytCollectionsStackSpacerDoubleStack=d,m))})}}),D("div",{class:U((f.ytCollectionsStackRelativeStack=e,f))},D(P,{cond:d, then:function(){var m={};return D("div",{class:U("ytCollectionsStackCollectionStack2",function(){return b().customClassName2ndStack},(m.ytCollectionsStackCollectionStack2ResponsiveMode=function(){return b().enableResponsiveMode},m.ytCollectionsStackCollectionStack2Mask=function(){return b().transparentBackgroundColor},m)), style:GC({"background-color":function(){return ROb(b())}})})}}),D("div",{class:U("ytCollectionsStackCollectionStack1",function(){return b().customClassName1stStack},function(){return SOb(b().thumbnailSize?b().thumbnailSize:"medium")},(h.ytCollectionsStackCollectionStack1Mask=function(){return b().transparentBackgroundColor},h)), style:GC({"background-color":function(){return ROb(b())}})}),c))}}))},"qb"); function SOb(a){switch(a){case"small":return"ytCollectionsStackCollectionStack1Small";case"medium":return"ytCollectionsStackCollectionStack1Medium";case"large":return"ytCollectionsStackCollectionStack1Large";default:return"";}} function ROb(a){if(!a)return"";var b,c=(b=Fn().resolve(Cn(HB)))==null?void 0:b(),d;if(!c&&((d=a.vibrantColorPalette)==null?0:d.iconInactiveColor))return Ky(a.vibrantColorPalette.iconInactiveColor,"1");var e;return c&&((e=a.darkColorPalette)==null?0:e.iconInactiveColor)?Ky(a.darkColorPalette.iconInactiveColor,"1"):a.color?Ky(a.color,"1"):a.sampledThumbnailColor?(a=a.sampledThumbnailColor,"rgba("+a.red+","+a.green+","+a.blue+");"):""} ;bB(TOb,"yt-collections-stack",{props:{data:$A}});var rR=function(){var a=E.apply(this,arguments)||this;a.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};a.webModernCollections=!1;a.isSearch=!1;a.isDoubleStack=!1;a.thumbnailSize="medium";return a}; k(rR,E);g=rR.prototype; g.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer",properties:{overlayColor:"[[overlayColor]]"}},thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayResumePlaybackRenderer:"ytd-thumbnail-overlay-resume-playback-renderer",thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",properties:{width:"[[thumbnailOverlaySidePanelWidth_]]", bottomPanel:"[[bottomSidePanel]]",watchFeedOverlay:"[[watchFeedThumbnail]]"}},thumbnailOverlayDownloadingRenderer:{component:"ytd-thumbnail-overlay-downloading-renderer",params:{active:!0}},thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayNowPlayingRenderer:"ytd-thumbnail-overlay-now-playing-renderer",tvfilmShowWatchForwardOverlayRenderer:"ytd-tvfilm-show-watch-forward-overlay-renderer"}},hoverOverlays_:{id:"hover-overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer"}}, "data.thumbnailRenderer":{id:"playlist-thumbnails",mapping:{playlistVideoThumbnailRenderer:{component:"ytd-playlist-video-thumbnail-renderer",properties:{width:"[[width]]"}},playlistCustomThumbnailRenderer:{component:"ytd-playlist-custom-thumbnail-renderer",properties:{size:"[[customThumbnailSize]]",watchFeedThumbnail:"[[watchFeedThumbnail]]",webModernCollections:"[[webModernCollections]]"}},showCustomThumbnailRenderer:{component:"ytd-show-custom-thumbnail-renderer",properties:{width:"[[width]]"}}}}}}; g.getThumbnailDetails=function(a){if(a!=null&&a.thumbnailRenderer){var b=a.thumbnailRenderer,c;if((c=b.playlistVideoThumbnailRenderer)==null?0:c.thumbnail)return b.playlistVideoThumbnailRenderer.thumbnail;var d;if((d=b.playlistCustomThumbnailRenderer)==null?0:d.thumbnail)return b.playlistCustomThumbnailRenderer.thumbnail;a=a.thumbnailRenderer;var e;if((e=a.showCustomThumbnailRenderer)==null?0:e.thumbnail)return a.showCustomThumbnailRenderer.thumbnail}}; g.computeOverlayColor=function(a){var b,c;if((b=this.getThumbnailDetails(a))==null?0:(c=b.darkColorPalette)==null?0:c.section2Color)return this.getThumbnailDetails(a).darkColorPalette.section2Color;var d;return(d=this.getThumbnailDetails(a))==null?void 0:d.sampledThumbnailColor}; g.computeWebModernCollections=function(a){if(a==null||!a.thumbnailOverlays)return!1;a=l(a.thumbnailOverlays);for(var b=a.next();!b.done;b=a.next()){var c=void 0;if((c=b.value)==null?0:c.thumbnailOverlayBottomPanelRenderer)return!0}return!1}; g.computeNavigationEndpoint=function(a){return fwb(a==null?void 0:a.navigationEndpoint)}; ba.Object.defineProperties(rR.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var a=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:a==null?void 0:a.sampledThumbnailColor,vibrantColorPalette:a==null?void 0:a.vibrantColorPalette,darkColorPalette:a==null?void 0:a.darkColorPalette,experimentEnabled:!0}}}}); n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],rR.prototype,"ytActionHandlerBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],rR.prototype,"ytRendererstamperBehavior",void 0);n([F(zOb),r("design:type",Object)],rR.prototype,"ytdThumbnailBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],rR.prototype,"componentBehavior",void 0);n([M({value:!1}),r("design:type",Boolean)],rR.prototype,"watchFeedThumbnail",void 0); n([M(),r("design:type",Number)],rR.prototype,"customThumbnailSize",void 0);n([M({value:!0}),r("design:type",Boolean)],rR.prototype,"hideAria",void 0);n([M(),r("design:type",Object)],rR.prototype,"data",void 0);n([M({computed:"computeOverlayColor(data)"}),r("design:type",Object)],rR.prototype,"overlayColor",void 0);n([M({computed:"computeWebModernCollections(data)"}),r("design:type",Object)],rR.prototype,"webModernCollections",void 0); n([M({computed:"computeNavigationEndpoint(data)"}),r("design:type",Object)],rR.prototype,"computedNavigationEndpoint",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],rR.prototype,"isSearch",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],rR.prototype,"isDoubleStack",void 0);n([M({reflectToAttribute:!0}),r("design:type",String)],rR.prototype,"thumbnailSize",void 0); n([H("data","isDoubleStack","thumbnailSize"),r("design:type",Object),r("design:paramtypes",[])],rR.prototype,"collectionStack",null);n([gu({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],rR); Tu(rR,"ytd-playlist-thumbnail",function(){if(QOb!==void 0)return QOb;var a=document.createElement("template");Q(a,"\n\n
\n \n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return QOb=a},{mode:2});var UOb;function VOb(a,b){if(!a.includes("DATE_PLACEHOLDER"))return a;var c=new Date(0);c.setUTCSeconds(b);return a.replace("DATE_PLACEHOLDER",vwb(c))} ;bB(O(function(a){return D("yt-text-view-model",{class:U("ytTextViewModelHost")},D(gC,{text:function(){return a.data().text}}))},"rb"),"yt-text-view-model",{props:{data:$A}});function WOb(a){return a!=null&&a.watch?a.watch.isTheaterMode:!1} function sR(a){return a!=null&&a.watch&&a.watch.isSwatcherooActive||a!=null&&a.watch&&a.watch.isResponsiveSecondaryGridActive||a!=null&&a.watch&&a.watch.isNarrowWatchFeedBigThumbs?!0:a!=null&&a.watch?a.watch.isWatchNarrowWidth:!1} ;var tR=function(){var a=E.apply(this,arguments)||this;a.noEndpoints=!1;a.badges=[];return a}; k(tR,E);g=tR.prototype;g.configureRendererStamper=function(){return{"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}}; g.getMetadata=function(a){if(!a)return[];var b=[],c=a.shortViewCountText||a.viewCountText;if(c){var d,e,f,h;b.push({text:lz(c),textColor:(d=c.runs)==null?void 0:(e=d[0])==null?void 0:e.textColor,darkModeTextColor:(f=c.runs)==null?void 0:(h=f[0])==null?void 0:h.darkModeTextColor})}if(a.publishedTimeText){var m,p,q,t;b.push({text:lz(a.publishedTimeText),textColor:(m=a.publishedTimeText.runs)==null?void 0:(p=m[0])==null?void 0:p.textColor,darkModeTextColor:(q=a.publishedTimeText.runs)==null?void 0:(t= q[0])==null?void 0:t.darkModeTextColor})}if(a.upcomingEventData&&a.upcomingEventData.upcomingEventText){var u,v,w,y;b.push({text:VOb(lz(a.upcomingEventData.upcomingEventText),Number(a.upcomingEventData.startTime)),textColor:(u=a.upcomingEventData.upcomingEventText.runs)==null?void 0:(v=u[0])==null?void 0:v.textColor,darkModeTextColor:(w=a.upcomingEventData.upcomingEventText.runs)==null?void 0:(y=w[0])==null?void 0:y.darkModeTextColor})}return b}; g.getItemStyle=function(a){if(document.documentElement.hasAttribute("dark")&&a.darkModeTextColor)var b=a.darkModeTextColor;else a.textColor&&(b=a.textColor);return b?"color: "+Iy(b)+";":""}; g.observeDataForBylineSeparator=function(){this.data&&Ct(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)}; g.metadataColorChanged=function(){this.metadataLine.style.color=this.metadataColor?Iy(this.metadataColor):""}; g.getSimpleString=function(a){return lz(a)}; g.isBylineHidden=function(a){return this.noByline||!((a==null?0:a.longBylineText)||(a==null?0:a.shortBylineText))}; g.isMetadataHidden=function(a){var b;return((b=this.getMetadata(a))==null?void 0:b.length)===0}; g.isBylineMetadataSeparatorHidden=function(a){return this.isMetadataHidden(a)||!this.shouldShowVideoInfo}; g.isLongByline=function(a,b){return b&&!(a==null||!a.longBylineText)}; ba.Object.defineProperties(tR.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.videoInfo)}}, inlineBadgeClass:{configurable:!0,enumerable:!0,get:function(){return this.badges&&this.badges.length>0?"metadata-line-with-badge":""}}, longBylineClass:{configurable:!0,enumerable:!0,get:function(){return this.longByline?"long-byline":""}}, bylineText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.longByline?this.data.longBylineText:this.data.shortBylineText}}, hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.attributedBylineText)}}, watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return!!this.isGridViewEnabled}}}); tR.prototype.metadataColorChanged=tR.prototype.metadataColorChanged;tR.prototype.observeDataForBylineSeparator=tR.prototype.observeDataForBylineSeparator;n([F(kC),r("design:type",Object)],tR.prototype,"ytdReduxBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],tR.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],tR.prototype,"data",void 0);n([M(),r("design:type",Object)],tR.prototype,"noEndpoints",void 0); n([M({reflectToAttribute:!0,value:!1}),r("design:type",Boolean)],tR.prototype,"isSlimShort",void 0);n([M({reflectToAttribute:!0,value:!1}),r("design:type",Boolean)],tR.prototype,"radioMeta",void 0);n([M({selector:sR}),r("design:type",Object)],tR.prototype,"isGridViewEnabled",void 0);n([M({reflectToAttribute:!0,value:!1}),r("design:type",Boolean)],tR.prototype,"richMeta",void 0);n([M(),r("design:type",Boolean)],tR.prototype,"noByline",void 0); n([M({computed:"isLongByline(data, radioMeta)"}),r("design:type",Boolean)],tR.prototype,"longByline",void 0);n([M({reflectToAttribute:!0,value:!1}),r("design:type",Boolean)],tR.prototype,"truncateMetadataLine",void 0);n([M({reflectToAttribute:!0,value:!1}),r("design:type",Boolean)],tR.prototype,"miniMode",void 0);n([M(),r("design:type",Number)],tR.prototype,"metadataColor",void 0);n([M(),r("design:type",Array)],tR.prototype,"badges",void 0); n([M({reflectToAttribute:!0,value:!1}),r("design:type",Boolean)],tR.prototype,"isDownloading",void 0);n([M({reflectToAttribute:!0,value:!1}),r("design:type",Boolean)],tR.prototype,"typographyBump",void 0);n([Tt("#metadata-line"),r("design:type",HTMLElement)],tR.prototype,"metadataLine",void 0);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],tR.prototype,"observeDataForBylineSeparator",null); n([Lt("metadataColor"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],tR.prototype,"metadataColorChanged",null);n([H("data"),r("design:type",Object),r("design:paramtypes",[])],tR.prototype,"shouldShowVideoInfo",null);n([H("badges"),r("design:type",String),r("design:paramtypes",[])],tR.prototype,"inlineBadgeClass",null);n([H("longByline"),r("design:type",String),r("design:paramtypes",[])],tR.prototype,"longBylineClass",null); n([H("data","longByline"),r("design:type",Object),r("design:paramtypes",[])],tR.prototype,"bylineText",null);n([H("data"),r("design:type",Boolean),r("design:paramtypes",[])],tR.prototype,"hasAttributedBylineText",null);n([H("isGridViewEnabled","data"),M({reflectToAttribute:!0}),r("design:type",Boolean),r("design:paramtypes",[])],tR.prototype,"watchFeedBigThumbs",null);n([gu({is:"ytd-video-meta-block",disableElementRegistration:!0})],tR); Tu(tR,"ytd-video-meta-block",function(){if(UOb!==void 0)return UOb;var a=document.createElement("template");Q(a,"\n
\n \n
\n \n \n \n \n
\n
\n
\n \n
\n\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return UOb=a},{mode:2});kE("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var uR=function(){var a=E.apply(this,arguments)||this;a.displayItemCount=2;a.isBackstagePlaylist=!1;a.isPostCompactPlaylist=!1;a.shouldShowChannelThumbnail=!1;return a}; k(uR,E);g=uR.prototype;g.computeFirstVideos=function(a,b){return a===void 0||b===void 0?[]:a.slice(0,b)}; g.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var a=this.data.thumbnailRenderer;a.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",a.playlistVideoThumbnailRenderer.thumbnail);a.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",a.playlistCustomThumbnailRenderer.thumbnail)}}; g.computeThumbnailHeight=function(a,b,c,d,e){return d?e==="BIG"?280:e==="MASSIVE"?337:234:c?240:b?72:a?118:138}; g.computeThumbnailWidth=function(a,b,c,d,e){return d?e==="MEDIUM"?450:e==="BIG"?500:e==="MASSIVE"?600:420:c?360:b?128:a?210:246}; g.computeUseBiggerThumbs=function(a){return a&&x("enable_desktop_search_bigger_thumbs")}; g.computeShouldShowChannelThumbnail=function(a,b){return a&&!(b==null||!b.channelThumbnail)}; ba.Object.defineProperties(uR.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}}); uR.prototype.dataChanged=uR.prototype.dataChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],uR.prototype,"ytRendererBehavior",void 0);n([F(bR),r("design:type",Object)],uR.prototype,"ytdLockupBehavior",void 0);n([F(kC),r("design:type",Object)],uR.prototype,"ytdReduxBehavior",void 0);n([M(),r("design:type",Object)],uR.prototype,"data",void 0);n([M(),r("design:type",Object)],uR.prototype,"displayItemCount",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],uR.prototype,"isBackstagePlaylist",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],uR.prototype,"isPostCompactPlaylist",void 0);n([M({value:!1,reflectToAttribute:!0}),r("design:type",Boolean)],uR.prototype,"isSearch",void 0);n([M({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),r("design:type",Boolean)],uR.prototype,"useBiggerThumbs",void 0);n([M({reflectToAttribute:!0,value:function(){return ml("desktop_search_bigger_thumbs_style")}}), r("design:type",String)],uR.prototype,"biggerThumbsStyle",void 0);n([M({value:!1,reflectToAttribute:!0}),r("design:type",Boolean)],uR.prototype,"isDownloads",void 0);n([M({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),r("design:type",Object)],uR.prototype,"shouldShowChannelThumbnail",void 0);n([cu("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],uR.prototype,"dataChanged",null); n([H("isSearch"),r("design:type",String),r("design:paramtypes",[])],uR.prototype,"stackThumbnailSize",null);n([gu({is:"ytd-playlist-renderer",disableElementRegistration:!0})],uR); Tu(uR,"ytd-playlist-renderer",function(){if(vOb===void 0){var a=document.createElement("template");Q(a,"\n\n\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);vOb=a}a=vOb;return a},{mode:1});var XOb;var YOb;var vR=function(){var a=E.apply(this,arguments)||this;a.startX=0;return a}; k(vR,E);vR.prototype.onEndpointMouseDown=function(a){this.startX=a.clientX}; vR.prototype.onEndpointClick=function(a){this.startX!==a.clientX&&(a.preventDefault(),a.stopPropagation())}; vR.prototype.computeObjectFit=function(a){return a==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||a==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||a==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"}; vR.prototype.computeCardStyle=function(a){return a?a.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""}; ba.Object.defineProperties(vR.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.data)==null?void 0:(b=a.searchRefinementCardRendererStyle)==null?void 0:b.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}}, collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:!0,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}}); n([F(Yz.YtRendererBehavior),r("design:type",Object)],vR.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],vR.prototype,"data",void 0);n([M({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),r("design:type",Number)],vR.prototype,"objectFit",void 0);n([M({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),r("design:type",String)],vR.prototype,"cardStyle",void 0); n([M({reflectToAttribute:!0,value:!0}),r("design:type",Boolean)],vR.prototype,"roundContainer",void 0);n([H("data"),r("design:type",Object),r("design:paramtypes",[])],vR.prototype,"isAlbumCard",null);n([H("data","isAlbumCard"),r("design:type",Object),r("design:paramtypes",[])],vR.prototype,"collectionStack",null);n([gu({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],vR); Tu(vR,"ytd-search-refinement-card-renderer",function(){if(YOb!==void 0)return YOb;var a=document.createElement("template");Q(a,"\n
\n \n \n \n
\n
\n
[[getSimpleString(data.query)]]
\n
\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return YOb=a},{mode:1});var ZOb;var wR=function(){var a=E.apply(this,arguments)||this;a.isRichGrid=!1;return a}; k(wR,E);n([M(),r("design:type",Object)],wR.prototype,"data",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],wR.prototype,"componentBehavior",void 0);n([F(kC),r("design:type",Object)],wR.prototype,"ytdReduxBehavior",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],wR.prototype,"isRichGrid",void 0);n([M({reflectToAttribute:!0,selector:tC}),r("design:type",Boolean)],wR.prototype,"miniMode",void 0);n([gu({is:"ytd-game-details-renderer",disableElementRegistration:!0})],wR); Tu(wR,"ytd-game-details-renderer",function(){if(ZOb!==void 0)return ZOb;var a=document.createElement("template");Q(a,"\n \n \n \n \n\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return ZOb=a},{mode:1});var $Ob;var aPb;var xR=function(){var a=E.apply(this,arguments)||this;a.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return a}; k(xR,E);g=xR.prototype;g.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")}; g.currentStateData=function(a){var b=a||this.data;return b&&b.states&&b.currentStateId!=null?b.states.find(function(c){return c.stateId===b.currentStateId})||null:null}; g.currentStateRendererData=function(a){return(a=this.currentStateData(a))&&a.state&&a.state.buttonRenderer?a.state.buttonRenderer:null}; g.stateChanged=function(){this&&this.data&&(this.ytRenderButtonBehavior._setEndpoint(null),this.ytRenderButtonBehavior._setServiceEndpoint(this.computeServiceEndpoint(this.data)),this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data)),this.ytRenderButtonBehavior._setButtonText(null),this.ytRenderButtonBehavior._setButtonAccessibility(this.computeAccessibility(this.data)),this.ytRenderButtonBehavior._setButtonClass(this.computeButtonClass(this.data)),this.ytRenderButtonBehavior.updateRenderedElements())}; g.computeButtonIcon=function(a){a=this.currentStateRendererData(a);var b;return(a==null?0:(b=a.icon)==null?0:b.iconType)?a.icon.iconType.toLowerCase():null}; g.computeAccessibility=function(a){return(a=this.currentStateRendererData(a))&&a.accessibilityData?a.accessibilityData.accessibilityData||null:null}; g.computeButtonClass=function(a){var b=this.currentStateRendererData(a);if(!b)return"";a="";var c=b.style;c&&(a+=c.toLowerCase().replace(/_/g,"-")+" ");(b=b.size)&&(a+=b.toLowerCase().replace(/_/g,"-")+" ");return a.trim()}; g.computeServiceEndpoint=function(a){if(!a)return null;var b=a&&a.serviceEndpoint,c=this.get("command.commandMetadata.webCommandMetadata.sendPost",a);return b?b:c&&a.command?a.command:null}; g.computeBellMenuItemParams=function(a){var b;a=(b=z(a==null?void 0:a.command,iy))==null?void 0:b.commands;if(!a||a.length===0)return null;b=z(a[0],ky);var c,d;return(b==null?0:(c=b.popup)==null?0:(d=c.menuPopupRenderer)==null?0:d.items)?b.popup.menuPopupRenderer.items.map(function(e){return e.menuServiceItemRenderer.trackingParams}):null}; g.handleBellMenuOpenSelectedAction=function(a){var b=a.trackingParams,c=this.computeBellMenuItemParams(this.data);this.data&&b&&c&&c.includes(b)&&this.ytRenderButtonBehavior._setButtonIcon(a.icon.iconType.toLowerCase())}; g.onYtServiceRequestCompleted=function(a,b){(a=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",b))&&this.set("data",a)}; g.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))}; g.resetState=function(){this.set("data.currentStateId",3)}; g.onYtButtonTapHandler=function(){if(this.data){var a=this.currentStateRendererData(this.data);a&&this.ytRendererBehavior.logExplicitClick(a)}}; xR.prototype.onYtServiceRequestError=xR.prototype.onYtServiceRequestError;xR.prototype.onYtServiceRequestCompleted=xR.prototype.onYtServiceRequestCompleted;xR.prototype.stateChanged=xR.prototype.stateChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],xR.prototype,"ytRendererBehavior",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],xR.prototype,"ytActionHandlerBehavior",void 0); n([F(dM.YtRenderButtonBehavior),r("design:type",Object)],xR.prototype,"ytRenderButtonBehavior",void 0);n([M(),r("design:type",Object)],xR.prototype,"data",void 0);n([cu("data","data.currentStateId"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],xR.prototype,"stateChanged",null);n([Kt("yt-service-request-completed"),r("design:type",Function),r("design:paramtypes",[CustomEvent,lB]),r("design:returntype")],xR.prototype,"onYtServiceRequestCompleted",null); n([Kt("yt-service-request-error"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],xR.prototype,"onYtServiceRequestError",null);n([gu({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],xR); Tu(xR,"ytd-subscription-notification-toggle-button-renderer",function(){if(aPb!==void 0)return aPb;var a=document.createElement("template");Q(a,"\n");a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return aPb=a},{mode:1});var bPb;function cPb(a,b,c){return function(d){var e=a.command;e&&(cL(e,{form:{element:c}}),b([e],d))}} ;var yR=function(){var a=E.apply(this,arguments)||this;a.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};a.tapHandler=function(){if(a.data){var b=a.currentStateRendererData();b&&a.ytRendererBehavior.logExplicitClick(b)}}; return a}; k(yR,E);g=yR.prototype;g.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")}; g.currentStateData=function(){var a=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(b){return b.stateId===a.data.currentStateId})||null:null}; g.currentStateRendererData=function(){var a=this.currentStateData();return a&&a.state&&a.state.buttonRenderer?a.state.buttonRenderer:null}; g.computeAccessibilityLabel=function(){var a,b,c;return(a=this.currentStateRendererData())==null?void 0:(b=a.accessibilityData)==null?void 0:(c=b.accessibilityData)==null?void 0:c.label}; g.computeBellMenuItemParams=function(){var a,b,c=(b=z((a=this.data)==null?void 0:a.command,iy))==null?void 0:b.commands;if(!c||c.length===0)return null;a=z(c[0],ky);var d,e;return(a==null?0:(d=a.popup)==null?0:(e=d.menuPopupRenderer)==null?0:e.items)?a.popup.menuPopupRenderer.items.map(function(f){return f.menuServiceItemRenderer.trackingParams}):null}; g.handleBellMenuOpenSelectedAction=function(a){var b=a.trackingParams,c=this.computeBellMenuItemParams();if(this.data&&b&&c&&c.includes(b)&&(a==null||!a.isDisabled)){var d;((d=z(a.serviceEndpoint,my))==null?void 0:d.signal)!=="CLIENT_SIGNAL"&&(this.icon=a.icon.iconType)}}; g.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)}; g.onYtServiceRequestCompleted=function(a,b){if(a=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",b))this.icon=void 0,this.set("data",a)}; g.onYtServiceRequestError=function(){this.icon=void 0}; ba.Object.defineProperties(yR.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var a=this.data,b=this.textLabel,c=this.hostElement,d=this.computeAccessibilityLabel(),e=this.tapHandler,f=this.isOverlay?"overlay":"mono",h=(a==null?0:a.disableButton)?"disabled":"active";b=b?GB(b):void 0;return{style:f,type:"tonal",state:h,size:"M",focused:!1,formattedButtonText:b,iconPosition:"leading-trailing",onTap:cPb(a,e,c),accessibilityLabel:d}}}}, computedIcon:{configurable:!0,enumerable:!0,get:function(){var a=this.currentStateRendererData(),b,c,d=(c=this.icon)!=null?c:a==null?void 0:(b=a.icon)==null?void 0:b.iconType;if(d)return cz(d)}}, computedAnimateIcon:{configurable:!0,enumerable:!0,get:function(){return this.computedIcon==="NOTIFICATIONS_NONE"?!0:void 0}}, computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var a,b,c=(a=this.data)==null?void 0:(b=a.secondaryIcon)==null?void 0:b.iconType;if(c)return cz(c)}}}); yR.prototype.onYtServiceRequestError=yR.prototype.onYtServiceRequestError;yR.prototype.onYtServiceRequestCompleted=yR.prototype.onYtServiceRequestCompleted;n([F(Yz.YtRendererBehavior),r("design:type",Object)],yR.prototype,"ytRendererBehavior",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],yR.prototype,"ytActionHandlerBehavior",void 0);n([M(),r("design:type",Object)],yR.prototype,"data",void 0);n([M(),r("design:type",Object)],yR.prototype,"textLabel",void 0); n([M(),r("design:type",String)],yR.prototype,"icon",void 0);n([M(),r("design:type",Boolean)],yR.prototype,"isOverlay",void 0);n([H("data.*","textLabel"),r("design:type",Object),r("design:paramtypes",[])],yR.prototype,"computedButtonShape",null);n([H("data.*","icon"),r("design:type",Object),r("design:paramtypes",[])],yR.prototype,"computedIcon",null);n([H("computedIcon"),r("design:type",Object),r("design:paramtypes",[])],yR.prototype,"computedAnimateIcon",null); n([H("data.*"),r("design:type",Object),r("design:paramtypes",[])],yR.prototype,"computedSecondaryIcon",null);n([Kt("yt-service-request-completed"),r("design:type",Function),r("design:paramtypes",[CustomEvent,lB]),r("design:returntype")],yR.prototype,"onYtServiceRequestCompleted",null);n([Kt("yt-service-request-error"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],yR.prototype,"onYtServiceRequestError",null); n([gu({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],yR);Tu(yR,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(bPb!==void 0)return bPb;var a=document.createElement("template");Q(a,"\n\n");return bPb=a},{mode:2});var dPb;var gPb=O(function(a){var b=a.backgroundLottieRef;var c=a.foregroundLottieRef;var d=a.children;var e=a.wrapperClass;var f=a.disableAnimation;a=function(){return(x("web_animated_actions")||x("web_animated_actions_v2"))&&!(f==null?0:f())}; return D("yt-animated-action",{class:U("ytAnimatedActionHost",e)},D("div",{class:"ytAnimatedActionContentWithBackground"},D(P,{cond:a,then:function(){return D(ePb,{wrapperClass:"ytAnimatedActionBackgroundContainer",lottieClass:"ytAnimatedActionBackground",lottiePlayerProps:function(){return{animationRef:b==null?void 0:b(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+(fPb()?"dark": "light")+"_v5.json"}}}})}}),d),D(P,{cond:a, then:function(){return D(ePb,{lottiePlayerProps:function(){return{animationRef:c==null?void 0:c(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(fPb()?"dark":"light")+"_v4.json"}}}})}}))},"sb"); gPb.idomCompat=!0;var ePb=O(function(a){var b=a.wrapperClass;var c=a.lottieClass;var d=a.lottiePlayerProps;return D("div",{class:U("ytAnimatedActionLottie",b),"aria-hidden":"true"},D(YA,{className:c,data:d,animationName:function(){return d().animationConfig.name}}))},"tb"); function fPb(){var a,b;return(b=(a=Fn().resolve(Cn(HB)))==null?void 0:a())!=null?b:!1} ;bB(gPb,"yt-animated-action",{props:{backgroundLottieRef:$A,foregroundLottieRef:$A,wrapperClass:$A,disableAnimation:$A},unsafeExternallySettableAttributes:new Set(["key"])});function hPb(a,b,c,d,e){return function(f){var h=iPb(a,b);h&&cL(h,{form:{element:c},commandController:d});e&&f.stopPropagation()}} function iPb(a,b){if(a.signInEndpoint&&!x("web_subscribe_sign_in_endpoint_killswitch"))return a.signInEndpoint;if(b){if(a.serviceEndpoints)return a.serviceEndpoints[1];if(a.onUnsubscribeEndpoints)return a.onUnsubscribeEndpoints[0]}else{if(a.serviceEndpoints)return a.serviceEndpoints[0];if(a.onSubscribeEndpoints)return a.onSubscribeEndpoints[0]}} function jPb(a,b){var c,d,e,f;b=b&&((c=a.unsubscribeAccessibility)==null?void 0:(d=c.accessibilityData)==null?void 0:d.label)||((e=a.subscribeAccessibility)==null?void 0:(f=e.accessibilityData)==null?void 0:f.label);return a.longSubscriberCountText?[b,lz(a.longSubscriberCountText)].filter(function(h){return h}).join(" "):b} function zR(a,b){return b||(a==null?0:a.isChannelDelegate)?"disabled":"active"} function kPb(a,b){var c;switch((c=a.style)==null?void 0:c.styleType){case"COMPACT_GRAY":return{style:"mono",type:"tonal",state:zR(a)};case"MEDIUM_GRAY":return{style:"mono",type:"tonal",state:zR(a)};case"VISIBLY_DISABLED":return{style:"mono",type:"text",state:zR(a,!0)};case"OVERLAY":return b?{style:"overlay",type:"tonal",state:zR(a)}:{style:"overlay",type:"filled",state:zR(a)};default:return b?{style:"mono",type:"tonal",state:zR(a)}:{style:"mono",type:"filled",state:zR(a)};}} ;function lPb(a,b){return yA(a.entities,"subscriptionStateEntity",b)} function mPb(a,b){return yA(a.entities,"subscriptionNotificationStateEntity",b)} function nPb(a,b){return yA(a.entities,"upcomingEventReminderStateEntity",b)} function oPb(a,b){return yA(a.entities,"commentEntityPayload",b)} function pPb(a,b){return yA(a.entities,"engagementToolbarSurfaceEntityPayload",b)} function qPb(a,b){return yA(a.entities,"triStateButtonStateEntityPayload",b)} function rPb(a,b){return yA(a.entities,"commandEntity",b)} function sPb(a,b){return yA(a.entities,"contextNoteUserRatingEntityPayload",b)} ;var AR=function(){var a=E.apply(this,arguments)||this;a.animatedActionEnabled=x("web_animated_actions");a.foregroundLottieRef={};a.backgroundLottieRef={};a.forceIconOnly=!1;a.showTextWhileAnimating=!1;a.keyboardFocused=!1;a.isAnimating=!1;a.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return a}; k(AR,E);g=AR.prototype;g.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)}; g.configureRendererStamper=function(){return{"data.notificationPreferenceToggleButton":{id:"notification-preference-toggle-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{forceIconOnly:"[[forceIconOnly]]"}}}},"data.notificationPreferenceButton":{id:"notification-preference-button",mapping:{subscriptionNotificationToggleButtonRenderer:{component:"ytd-subscription-notification-toggle-button-renderer-next",properties:{textLabel:"[[subscribedButtonText]]", forceIconOnly:"[[forceIconOnly]]",isOverlay:"[[overlayButton]]"}}}}}}; g.attached=function(){this.keyboardFocused=!1}; g.onYtServiceRequestSent=function(a,b){(this.get("endpoint.subscribeEndpoint",b)||this.get("endpoint.unsubscribeEndpoint",b))&&this.updateSubscriptionState(!this.subscribed)}; g.onYtServiceRequestCompleted=function(a,b){(a=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",b.data))&&this.bellButton&&(this.bellButton.data=a)}; g.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();Ft(this.hostElement)}; g.onPlayerSubscribe=function(a){this.isCompactRed()||a!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))}; g.onPlayerUnsubscribe=function(a){this.isCompactRed()||a!==this.data.channelId||this.updateSubscriptionState(!1)}; g.handleUpdateSubscribeButtonAction=function(a){a=z(a,zmb);var b;a&&a.channelId===((b=this.data)==null?void 0:b.channelId)&&this.updateSubscriptionState(!!a.subscribed)}; g.computeButtonStyle=function(a){return this.get("style.styleType",a)||null}; g.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"}; g.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)}; g.updateSubscriptionState=function(a){if(a!==this.subscribed){this.set("data.subscribed",a);var b,c=(b=this.data)==null?void 0:b.subscribedEntityKey;c&&this.ytdReduxBehavior.dispatch(dA("subscriptionStateEntity",c,{key:c,subscribed:a}));this.isCompactRed()||Gt(this.hostElement,"yt-subscription-changed",a);a||(Xu(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!a),a&&this.hasBellButton&&this.startAnimation())}}; g.startAnimation=function(){var a=this;if(!this.isAnimating){var b=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var c;(c=this.backgroundLottieRef.lottieEl)==null||c.goToAndPlay(0);var d;(d=this.foregroundLottieRef.lottieEl)==null||d.goToAndPlay(0);Hl(0,function(){a.maybeAnimateBellIcon()},2,300); this.forceIconOnly&&this.showTextWhileAnimating&&Hl(0,function(){a.updateContainerToFitContent(!!a.subscribed,!0)},2,1500); Hl(0,function(){a.isAnimating=!1},2,b)}}; g.maybeAnimateBellIcon=function(){var a=At(this.hostElement).querySelector("yt-animated-icon");if(a){var b;(b=a.animationRef.lottieEl)==null||b.goToAndPlay(0)}}; g.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")}; g.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)}; g.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var a;this.unsubscribedWidth=(a=this.subscribeButtonShape)==null?void 0:a.getBoundingClientRect().width}var b;this.subscribedWidth=(b=this.bellButton)==null?void 0:b.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}}; g.updateContainerToFitContent=function(a,b){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(a?(a=this.subscribedWidth,b=this.isAnimating&&!b,this.subscribedIconOnlyWidth===void 0||b||(a=this.subscribedIconOnlyWidth),this.hostElement.style.width=a+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")}; g.clearContainerSize=function(){this.hostElement.style.width=""}; g.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()}; g.maybeSetSubscribedButtonIconOnlyWidth=function(){var a=this;this.forceIconOnly&&this.showTextWhileAnimating&&this.subscribedIconOnlyWidth===void 0&&(this.subscribedIconOnlyWidth=0,this.subscribed?this.subscribedIconOnlyWidth=this.subscribedWidth:(this.bellButton&&(this.bellButton.textLabel=void 0),requestAnimationFrame(function(){var b;a.subscribedIconOnlyWidth=(b=a.bellButton)==null?void 0:b.getBoundingClientRect().width;requestAnimationFrame(function(){if(a.bellButton){var c;a.bellButton.textLabel= (c=a.data)==null?void 0:c.subscribedButtonText}})})))}; ba.Object.defineProperties(AR.prototype,{hasBellButton:{configurable:!0,enumerable:!0,get:function(){return!!this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)}}, subscribedButtonText:{configurable:!0,enumerable:!0,get:function(){if(this.showTextWhileAnimating&&(this.isAnimating||!this.subscribed)){var a;return(a=this.data)==null?void 0:a.subscribedButtonText}var b;return this.forceIconOnly?void 0:(b=this.data)==null?void 0:b.subscribedButtonText}}, smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var a,b,c=((a=this.data)==null?void 0:(b=a.timedAnimationData)==null?void 0:b.animationTiming)||[];return{uniqueId:"subscribe",timings:c,enabled:c.length>0&&!this.subscribed,experimentEnabled:c.length>0}}}, subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var a;return!this.subscribed&&((a=this.data)==null?void 0:a.hideWhenUnsubscribed)||!this.animatedActionEnabled&&this.hasBellButton&&this.subscribed}}, subscribeButtonInvisible:{configurable:!0,enumerable:!0,get:function(){return this.animatedActionEnabled&&this.hasBellButton&&this.subscribed}}, unsubscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){return!this.animatedActionEnabled&&!this.subscribed}}, buttonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var a={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var b=a.renderer;var c=a.element;var d=a.subscribed;var e=a.commandController;var f=a.isOverlay;a=a.stopPropagation;var h=kPb(b,d);f&&(h.style="overlay");f=Object;var m=f.assign,p;a:switch((p=b.style)==null?void 0:p.styleType){case"COMPACT_GRAY":case"COMPACT_RED":p={size:"S"};break a;default:p={size:"M"};}var q=jPb(b, d);var t=(t=d?b.subscribedButtonText:b.unsubscribedButtonText)?GB(t):void 0;return m.call(f,{},h,p,{focused:!1,toggled:d,accessibilityLabel:q,formattedButtonText:t,onTap:hPb(b,d,c,e,a)})}}}}); AR.prototype.onMouseDown=AR.prototype.onMouseDown;AR.prototype.onDataChanged=AR.prototype.onDataChanged;AR.prototype.observedSubscribed=AR.prototype.observedSubscribed;AR.prototype.onYtServiceRequestCompleted=AR.prototype.onYtServiceRequestCompleted;AR.prototype.onYtServiceRequestSent=AR.prototype.onYtServiceRequestSent;AR.prototype.maybeUpdateBellButtonText=AR.prototype.maybeUpdateBellButtonText;n([F(mz.YtComponentBehavior),r("design:type",Object)],AR.prototype,"ytComponentBehavior",void 0); n([F($C.YtRendererstamperBehavior),r("design:type",Object)],AR.prototype,"ytRendererstamperBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],AR.prototype,"ytRendererBehavior",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],AR.prototype,"ytActionHandlerBehavior",void 0);n([F(kC),r("design:type",Object)],AR.prototype,"ytdReduxBehavior",void 0);n([M(),r("design:type",Object)],AR.prototype,"data",void 0); n([M({selectorArgs:["data.subscribedEntityKey"],selector:lPb}),r("design:type",Object)],AR.prototype,"subscriptionStateEntity",void 0);n([M({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),r("design:type",Boolean)],AR.prototype,"subscribed",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],AR.prototype,"branded",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],AR.prototype,"animatedActionEnabled",void 0); n([M(),r("design:type",Object)],AR.prototype,"foregroundLottieRef",void 0);n([M(),r("design:type",Object)],AR.prototype,"backgroundLottieRef",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],AR.prototype,"overlayButton",void 0);n([M({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),r("design:type",Object)],AR.prototype,"buttonStyle",void 0);n([M(),r("design:type",Object)],AR.prototype,"forceIconOnly",void 0); n([M(),r("design:type",Object)],AR.prototype,"showTextWhileAnimating",void 0);n([M({value:function(){return!!Fn().resolve(Cn(tD))}, reflectToAttribute:!0}),r("design:type",Boolean)],AR.prototype,"useKeyboardFocused",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],AR.prototype,"keyboardFocused",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],AR.prototype,"isAnimating",void 0);n([H("data.notificationPreferenceButton.*"),r("design:type",Object),r("design:paramtypes",[])],AR.prototype,"hasBellButton",null); n([Lt("subscribedButtonText"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],AR.prototype,"maybeUpdateBellButtonText",null);n([H("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),r("design:type",Object),r("design:paramtypes",[])],AR.prototype,"subscribedButtonText",null);n([H("data.timedAnimationData.animationTiming","subscribed"),r("design:type",Object),r("design:paramtypes",[])],AR.prototype,"smartimationSettings",null); n([M({reflectToAttribute:!0}),H("subscribed","hasBellButton","data.hideWhenUnsubscribed"),r("design:type",Object),r("design:paramtypes",[])],AR.prototype,"subscribeButtonHidden",null);n([M({reflectToAttribute:!0}),H("subscribed","hasBellButton"),r("design:type",Object),r("design:paramtypes",[])],AR.prototype,"subscribeButtonInvisible",null);n([M({reflectToAttribute:!0}),H("subscribed"),r("design:type",Object),r("design:paramtypes",[])],AR.prototype,"unsubscribeButtonHidden",null); n([Tt("ytd-subscription-notification-toggle-button-renderer-next"),r("design:type",Object)],AR.prototype,"bellButton",void 0);n([Tt("#subscribe-button-shape"),r("design:type",HTMLElement)],AR.prototype,"subscribeButtonShape",void 0);n([H("overlayButton","subscribed","data"),r("design:type",Object),r("design:paramtypes",[])],AR.prototype,"buttonShape",null); n([Kt("yt-service-request-sent"),r("design:type",Function),r("design:paramtypes",[CustomEvent,mB]),r("design:returntype")],AR.prototype,"onYtServiceRequestSent",null);n([Kt("yt-service-request-completed"),r("design:type",Function),r("design:paramtypes",[CustomEvent,lB]),r("design:returntype")],AR.prototype,"onYtServiceRequestCompleted",null);n([Lt("subscribed"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],AR.prototype,"observedSubscribed",null); n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],AR.prototype,"onDataChanged",null);n([Kt("mousedown"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],AR.prototype,"onMouseDown",null);n([gu({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],AR); Tu(AR,"ytd-subscribe-button-renderer",function(){if(dPb!==void 0)return dPb;var a=document.createElement("template");Q(a,"\n \n \n \n \n \n \n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return dPb=a},{mode:1});var BR=function(){var a=E.apply(this,arguments)||this;a.isRichGrid=!1;return a}; k(BR,E);BR.prototype.configureRendererStamper=function(){return{"data.game":{id:"game",mapping:{gameDetailsRenderer:{component:"ytd-game-details-renderer",properties:{isRichGrid:"[[isRichGrid]]"}}}},"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],BR.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],BR.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],BR.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],BR.prototype,"isRichGrid",void 0);n([gu({is:"ytd-game-card-renderer",disableElementRegistration:!0})],BR); Tu(BR,"ytd-game-card-renderer",function(){if($Ob!==void 0)return $Ob;var a=document.createElement("template");Q(a,"
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return $Ob=a},{mode:1});var CR={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:fyb?void 0:0,waitForSignal:"eocs"};var tPb;var uPb;var DR=function(){return E.apply(this,arguments)||this}; k(DR,E);DR.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}}; ba.Object.defineProperties(DR.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}}); n([F($C.YtRendererstamperBehavior),r("design:type",Object)],DR.prototype,"ytRendererstamperBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],DR.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],DR.prototype,"data",void 0);n([M({reflectToAttribute:!0,value:!1}),r("design:type",Boolean)],DR.prototype,"shelfDismissal",void 0);n([H("data.responseText"),r("design:type",Object),r("design:paramtypes",[])],DR.prototype,"text",null); n([gu({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],DR); Tu(DR,"ytd-notification-multi-action-renderer",function(){if(uPb!==void 0)return uPb;var a=document.createElement("template");Q(a,"[[text]]\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return uPb=a},{mode:1});var vPb;var ER=function(){return E.apply(this,arguments)||this}; k(ER,E);ER.prototype.ready=function(){var a=this;wt(this.hostElement).querySelector("#undo").addEventListener("tap",function(){a.onUndoTap()})}; ER.prototype.onUndoTap=function(){this.data.undoEndpoint&&Fn().resolve(JB).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],ER.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],ER.prototype,"data",void 0);n([gu({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],ER); Tu(ER,"ytd-notification-text-renderer",function(){if(vPb!==void 0)return vPb;var a=document.createElement("template");Q(a,"\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return vPb=a},{mode:1});var wPb;var FR=function(){var a=E.apply(this,arguments)||this;a.mouseOverDelayJobId=0;a.fadeInImageDelayJobId=0;a.startTimeMs=-1;a.loadingStartTimeMs=-1;a.loadingEndTimeMs=-1;a.hasVideoPreview=!1;return a}; k(FR,E);g=FR.prototype;g.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())}; g.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null}; g.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())}; g.showThumbnail=function(){var a=this;this.csn=Tv();bw("fmth");bj.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=Ml(function(){a.loadingStartTimeMs=im();var b=wt(a.hostElement).querySelector("#thumbnail");b.complete?a.displayMouseOverImage():b.addEventListener("load",It(a,a.displayMouseOverImage))},150):Ct(wt(this.hostElement).querySelector("#play"),"show",!0)}; g.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()}; g.onTap=function(){this.removeVideoPreview()}; g.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var a=this.videoId,b=this.csn,c=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,d=this.startTimeMs,e=this.hasVideoPreview,f=Qv(this.trackingParams),h={isMovingThumbnail:e};e&&d>0&&(c>0&&(h.movingThumbnailLoadingDurationMs=Math.round(c)),h.durationHoveredMs=Math.round(im()-d));a&&(h.videoId=a);yz(b,f,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:h});this.startTimeMs= this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}}; g.removeVideoPreview=function(){bj.cancelJob(this.mouseOverDelayJobId);bj.cancelJob(this.fadeInImageDelayJobId);var a=wt(this.hostElement).querySelector("#thumbnail");Ct(a,"fade-in",!1);a.removeEventListener("load",It(this,this.displayMouseOverImage));a=wt(this.hostElement).querySelector("#play");Ct(a,"fade-in",!1);Ct(a,"show",!1)}; g.displayMouseOverImage=function(){var a=wt(this.hostElement).querySelector("#thumbnail"),b=wt(this.hostElement).querySelector("#play");this.isImageAvailable(a)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=im(),this.startTimeMs=im(),this.fadeInImageDelayJobId=Ml(function(){Ct(a,"fade-in",!0)},50)):Ct(b,"fade-in",!0)}; g.computeThumbnail=function(a,b){var c;a&&a.movingThumbnailDetails&&a.movingThumbnailDetails.thumbnails&&b?c=EB(a.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):c=b?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(c)return Fb(c)}; g.isImageAvailable=function(a){return!(!a.src||a.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||a.naturalWidth===120)}; FR.prototype.onTap=FR.prototype.onTap;FR.prototype.dataChanged=FR.prototype.dataChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],FR.prototype,"ytRendererBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],FR.prototype,"ytComponentBehavior",void 0);n([M(),r("design:type",Object)],FR.prototype,"data",void 0);n([M(),r("design:type",Object)],FR.prototype,"csn",void 0);n([M(),r("design:type",Object)],FR.prototype,"trackingParams",void 0); n([M(),r("design:type",String)],FR.prototype,"videoId",void 0);n([M(),r("design:type",Boolean)],FR.prototype,"isAttachedAndDataSet",void 0);n([cu("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],FR.prototype,"dataChanged",null);n([Kt("click"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],FR.prototype,"onTap",null);n([gu({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],FR); Tu(FR,"ytd-moving-thumbnail-renderer",function(){if(wPb!==void 0)return wPb;var a=document.createElement("template");Q(a,"\"\"\n\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return wPb=a},{mode:1});var xPb;var GR=function(){return E.apply(this,arguments)||this}; k(GR,E);g=GR.prototype;g.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("top-right-overlay")||this.hostElement.setAttribute("top-right-overlay","true");this.tooltip.position=Vk("HTML_DIR")==="rtl"?"right":"left"}; g.dataChanged=function(){this.popupOpen=!1}; g.computeAriaLabel=function(a){return z(a,alb).label}; g.onTap=function(a){a.stopPropagation();a.preventDefault();this.data.command&&Fn().resolve(JB).resolveCommand(this.data.command,{form:{element:this.hostElement}})}; g.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)}; g.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()}; GR.prototype.onPopupClosed=GR.prototype.onPopupClosed;GR.prototype.onPopupOpened=GR.prototype.onPopupOpened;GR.prototype.onTap=GR.prototype.onTap;GR.prototype.dataChanged=GR.prototype.dataChanged;n([F(WC.YtEventForwardingBehavior),r("design:type",Object)],GR.prototype,"eventForwardingBehavior",void 0);n([F(fhb),r("design:type",Object)],GR.prototype,"ironButtonState",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],GR.prototype,"componentBehavior",void 0); n([M(),r("design:type",Object)],GR.prototype,"data",void 0);n([M({reflectToAttribute:!0,value:-1}),r("design:type",Number)],GR.prototype,"tabindex",void 0);n([M({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),r("design:type",Object)],GR.prototype,"ariaLabel",void 0);n([M({value:!1}),r("design:type",Boolean)],GR.prototype,"disableTooltips",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],GR.prototype,"popupOpen",void 0); n([M(),r("design:type",Element)],GR.prototype,"eventSink",void 0);n([Tt("#tooltip"),r("design:type",Object)],GR.prototype,"tooltip",void 0);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],GR.prototype,"dataChanged",null);n([Kt("tap"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],GR.prototype,"onTap",null); n([Kt("yt-popup-opened"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],GR.prototype,"onPopupOpened",null);n([Kt("yt-popup-closed"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],GR.prototype,"onPopupClosed",null);n([gu({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],GR); Tu(GR,"ytd-thumbnail-overlay-button-renderer",function(){if(xPb!==void 0)return xPb;var a=document.createElement("template");Q(a,"");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return xPb=a},{mode:1});var yPb;var HR=function(){return E.apply(this,arguments)||this}; k(HR,E);n([F(Yz.YtRendererBehavior),r("design:type",Object)],HR.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],HR.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],HR.prototype,"disableAnimation",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],HR.prototype,"rounded",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],HR.prototype,"transparentBackground",void 0); n([M({reflectToAttribute:!0}),r("design:type",Boolean)],HR.prototype,"noPadding",void 0);n([gu({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],HR); Tu(HR,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(yPb!==void 0)return yPb;var a=document.createElement("template");Q(a,"
\n \n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return yPb=a},{mode:1});var zPb;var IR=function(){return E.apply(this,arguments)||this}; k(IR,E);IR.prototype.computeIconPosition=function(a){return this.get("iconPosition",a)||null}; IR.prototype.computeIconStyle=function(a){return this.get("iconStyle",a)||null}; IR.prototype.computeIsIconStyleFilled=function(a){if(!a)return!1;var b;return a.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((b=a.icon)==null?void 0:b.iconType)==="ERROR_BLACK"}; n([M(),r("design:type",Object)],IR.prototype,"data",void 0);n([M({computed:"computeIconPosition(data)",reflectToAttribute:!0}),r("design:type",Object)],IR.prototype,"iconPosition",void 0);n([M({computed:"computeIconStyle(data)",reflectToAttribute:!0}),r("design:type",Object)],IR.prototype,"iconStyle",void 0);n([M({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),r("design:type",Boolean)],IR.prototype,"iconStyleFilled",void 0); n([gu({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],IR); Tu(IR,"ytd-thumbnail-overlay-icon-renderer",function(){if(zPb!==void 0)return zPb;var a=document.createElement("template");Q(a,"\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return zPb=a},{mode:1});var APb;var JR=function(){return E.apply(this,arguments)||this}; k(JR,E);n([F(Yz.YtRendererBehavior),r("design:type",Object)],JR.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],JR.prototype,"data",void 0);n([gu({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],JR); Tu(JR,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(APb!==void 0)return APb;var a=document.createElement("template");Q(a,"\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return APb=a},{mode:1});var BPb;var KR=function(){var a=E.apply(this,arguments)||this;a.isPreviewLoading=!1;return a}; k(KR,E);n([F(Yz.YtRendererBehavior),r("design:type",Object)],KR.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],KR.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],KR.prototype,"isPreviewLoading",void 0);n([gu({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],KR); Tu(KR,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(BPb!==void 0)return BPb;var a=document.createElement("template");Q(a,"[[getSimpleString(data.text)]]");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return BPb=a},{mode:1});var CPb;var LR=function(){return E.apply(this,arguments)||this}; k(LR,E);n([F(Yz.YtRendererBehavior),r("design:type",Object)],LR.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],LR.prototype,"data",void 0);n([gu({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],LR); Tu(LR,"ytd-thumbnail-overlay-pinking-renderer",function(){if(CPb!==void 0)return CPb;var a=document.createElement("template");Q(a,"\n \n \n \n \n \n \n\n\n \n \n \n \n \n \n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return CPb=a},{mode:1});var DPb;var MR=function(){var a=E.apply(this,arguments)||this;a.disableTooltips=!1;a.isLoading=!1;a.useExpandableTooltip=!1;a.toggled=!1;a.hovered=!1;a.mouseoverDelayJobId=0;a.toggleDelayJobId=0;a.expandAnimationDelayJobId=0;return a}; k(MR,E);g=MR.prototype;g.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1");this.hostElement.hasAttribute("top-right-overlay")||this.hostElement.setAttribute("top-right-overlay","true");wt(this.hostElement).querySelector("#tooltip").position=Vk("HTML_DIR")==="rtl"?"right":"left"}; g.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&bj.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&bj.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&bj.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)}; g.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&bj.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&bj.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&bj.cancelJob(this.expandAnimationDelayJobId)}; g.computeIcon=function(a,b,c){return(a=c?b:a)&&a.iconType?cz(a.iconType):void 0}; g.computeAriaLabel=function(a,b,c){return z(c?b:a,alb).label}; g.computeTooltip=function(a,b,c){return c?b:a}; g.computeToggled=function(){return!(!this.data||!this.data.isToggled)}; g.computeIconOnHover=function(a,b){if((a==null?0:a.iconType)&&!b)return cz(a.iconType)}; g.onTap=function(a){var b=this;a.stopPropagation();a.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(a=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(a),this.useExpandableTooltip&&(this.toggleDelayJobId=Ml(function(){b.hovered=!1;b.data&&!b.data.toggledServiceEndpoint&&(b.expandAnimationDelayJobId=Ml(function(){b.set("data.isToggled", !1)},200))},2E3))}; g.onMouseenter=function(){var a=this;this.mouseoverDelayJobId=Ml(function(){a.hovered=!0},300)}; g.onMouseleave=function(){bj.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)}; g.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)}; g.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()}; g.onServiceRequestCompleted=function(a,b){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(b)||this.set("data.isToggled",!this.data.isToggled)}; g.serviceRequestWasSuccessful=function(a){return z(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,qy)?a.data.status==="STATUS_SUCCEEDED":!0}; MR.prototype.onServiceRequestCompleted=MR.prototype.onServiceRequestCompleted;MR.prototype.onPopupClosed=MR.prototype.onPopupClosed;MR.prototype.onPopupOpened=MR.prototype.onPopupOpened;MR.prototype.onMouseleave=MR.prototype.onMouseleave;MR.prototype.dataChanged=MR.prototype.dataChanged;n([F(fhb),r("design:type",Object)],MR.prototype,"ironButtonState",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],MR.prototype,"ytComponentBehavior",void 0); n([F(WC.YtEventForwardingBehavior),r("design:type",Object)],MR.prototype,"ytEventForwardingBehavior",void 0);n([M(),r("design:type",Object)],MR.prototype,"data",void 0);n([M({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),r("design:type",Object)],MR.prototype,"ariaLabel",void 0);n([M(),r("design:type",Object)],MR.prototype,"disableTooltips",void 0); n([M({reflectToAttribute:!0}),r("design:type",Boolean)],MR.prototype,"popupOpen",void 0);n([M(),r("design:type",Object)],MR.prototype,"isLoading",void 0);n([M(),r("design:type",Element)],MR.prototype,"eventSink",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],MR.prototype,"useExpandableTooltip",void 0);n([M({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),r("design:type",Object)],MR.prototype,"toggled",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],MR.prototype,"hovered",void 0);n([M({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),r("design:type",Object)],MR.prototype,"iconOnHover",void 0);n([cu("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],MR.prototype,"dataChanged",null);n([Kt("mouseleave"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],MR.prototype,"onMouseleave",null); n([Kt("yt-popup-opened"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],MR.prototype,"onPopupOpened",null);n([Kt("yt-popup-closed"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],MR.prototype,"onPopupClosed",null);n([Kt("yt-service-request-completed"),r("design:type",Function),r("design:paramtypes",[CustomEvent,lB]),r("design:returntype")],MR.prototype,"onServiceRequestCompleted",null); n([gu({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],MR); Tu(MR,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(DPb!==void 0)return DPb;var a=document.createElement("template");Q(a,"
");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return DPb=a},{mode:2});var EPb;var GPb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("tPgYzd"),2);a=FPb;return b.return(a)})},HPb=yD(function(){return GPb()},{debugName:"thumbnailOverlayProgressBarViewModel"}); Gn(xD,function(a){a.registerLoadFn("thumbnailOverlayProgressBarViewModel","tPgYzd",GPb)});var JPb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("oPp5Le"),2);a=IPb;return b.return(a)})},KPb=yD(function(){return JPb()},{debugName:"thumbnailBadgeViewModel"}); Gn(xD,function(a){a.registerLoadFn("thumbnailBadgeViewModel","oPp5Le",JPb)});function LPb(a){switch(a){case"small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case"medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case"large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";}} var MPb=O(function(a){var b={},c={};return D("yt-thumbnail-bottom-overlay-view-model",{class:U("ytThumbnailBottomOverlayViewModelHost",(b.ytThumbnailBottomOverlayViewModelHostBackground=function(){return a.data().enableGradientBackground},b))},D(OC,{data:function(){return a.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(d){return D(HPb,{data:d.data, thumbnailSize:a.thumbnailSize})}}),D("div",{class:U("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var d; return LPb((d=a.thumbnailSize)==null?void 0:d.call(a))},(c.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var d; return(d=a.isClip)==null?void 0:d.call(a)},c.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var d; return!x("web_enable_modern_progress_bar_overlay")&&((d=a.thumbnailSize)==null?void 0:d.call(a))==="small"},c))},D(OC,{data:function(){return a.data().badge}},{thumbnailBadgeViewModel:function(d){return D(KPb,{data:d.data, class:"ytThumbnailBottomOverlayViewModelBadge"})}}),D(OC,{data:function(){return a.data().badges}},{thumbnailBadgeViewModel:function(d){return D(KPb,{data:d.data, class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"ub"); MPb.idomCompat=!0;bB(MPb,"yt-thumbnail-bottom-overlay-view-model",{props:{data:aB,thumbnailSize:aB,isClip:aB}});var NPb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("LHP7Jd"),2);a=NR;return b.return(a)})},OPb=yD(function(){return NPb()},{debugName:"avatarStackViewModel"}); Gn(xD,function(a){a.registerLoadFn("avatarStackViewModel","LHP7Jd",NPb)});function PPb(a){switch(a){case"small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case"medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case"large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";}} ;bB(O(function(a){var b=a.data;var c=a.thumbnailSize;return D("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},D("div",{class:U("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return PPb(c==null?void 0:c())})},D(OC,{data:function(){return b().avatarStack}},{avatarStackViewModel:function(d){return D(OPb,{data:d.data, decorations:[5]})}})))},"vb"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:$A, thumbnailSize:$A}});var QPb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("HDmU1e"),2);a=OR;return b.return(a)})},PR=yD(function(){return QPb()},{debugName:"decoratedAvatarViewModel"}); Gn(xD,function(a){a.registerLoadFn("decoratedAvatarViewModel","HDmU1e",QPb)});var RPb=O(function(a){a=Hu(a,{hidden:!1});var b=a.data;a=a.hidden;return D("yt-thumbnail-overlay-title-view-model",{class:U("ytThumbnailOverlayTitleViewModelHost",function(){a:switch(b().position){case"THUMBNAIL_OVERLAY_TITLE_POSITION_BOTTOM":var c="ytThumbnailOverlayTitleViewModelPositionBottom";break a;default:c="ytThumbnailOverlayTitleViewModelPositionTop";}return c}), hidden:a},D(P,{cond:function(){return b().leadingContent}, then:function(c){return D("div",{class:"ytThumbnailOverlayTitleViewModelLeadingContent"},D(OC,{data:c},{decoratedAvatarViewModel:PR}))}}),D("div",null,D(gC,{text:function(){return b().title}, className:U("ytThumbnailOverlayTitleViewModelTitle",function(){a:{switch(b().maxLines){case"THUMBNAIL_OVERLAY_TITLE_MAX_LINES_TWO_LINES":var c="ytThumbnailOverlayTitleViewModelTitleMaxLines2";break a;}c=void 0}return c})}),D(P,{cond:function(){return b().subtitle}, then:function(){return D(gC,{text:function(){return b().subtitle}, className:"ytThumbnailOverlayTitleViewModelSubtitle"})}})))},"wb"); RPb.idomCompat=!0;bB(RPb,"yt-thumbnail-overlay-title-view-model",{props:{data:$A,hidden:$A}});function SPb(a){switch(a){case"small":return"ytThumbnailOverlayBadgeViewModelSmall";case"medium":return"ytThumbnailOverlayBadgeViewModelMedium";case"large":return"ytThumbnailOverlayBadgeViewModelLarge";default:return"ytThumbnailOverlayBadgeViewModelMedium";}} var TPb=O(function(a){a=Hu(a,{isClip:!1});var b=a.data,c=a.thumbnailSize,d={};return D("yt-thumbnail-overlay-badge-view-model",{class:U("ytThumbnailOverlayBadgeViewModelHost",function(){a:switch(b().position){case"THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var e="ytThumbnailOverlayBadgeViewModelTopStart";break a;default:e="ytThumbnailOverlayBadgeViewModelBottomEnd";}return e},function(){return SPb(c==null?void 0:c())},(d.ytThumbnailOverlayBadgeViewModelClip=a.isClip,d))},D(OC,{data:function(){return b().thumbnailBadges}}, {thumbnailBadgeViewModel:function(e){return D(KPb,{data:e.data, class:"ytThumbnailOverlayBadgeViewModelBadge"})}}))},"xb"); TPb.idomCompat=!0;bB(TPb,"yt-thumbnail-overlay-badge-view-model",{props:{data:$A,thumbnailSize:$A,isClip:$A}});var UPb=O(function(a){var b=a.data;a=a.hidden;var c=Vo(function(){return b().indicatorCount||0},void 0,"AbKnMc"),d={}; return D("yt-page-indicator-view-model",{class:U("ytPageIndicatorViewModelHost",(d.ytPageIndicatorViewModelIndicatorHidden=function(){return!b().indicatorCount},d)), hidden:a},D(mw,{each:function(){return Array(c())}},function(e,f){var h={}; return D("div",{class:U("ytPageIndicatorViewModelIndicator",(h.ytPageIndicatorViewModelIndicatorSelected=function(){return b().selectedIndex===f()},h))})}))},"yb"); UPb.idomCompat=!0;bB(UPb,"yt-page-indicator-view-model",{props:{data:$A,hidden:$A}});var QR=function(){var a=E.apply(this,arguments)||this;a.eventSink=function(){return a}; a.disableInteraction=!1;a.noRoundedCorners=!1;a.isPreviewLoading=!1;a.isOriginalAspectRatio=!1;a.computedObjectFit=!1;a.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return a}; k(QR,E);g=QR.prototype; g.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer",properties:{overlayColor:"[[overlayColor]]"}},thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayResumePlaybackRenderer:{component:"ytd-thumbnail-overlay-resume-playback-renderer",properties:{isLive:"[[isLiveVideo]]"}},thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",properties:{width:"[[thumbnailOverlaySidePanelWidth_]]", bottomPanel:"[[bottomSidePanel]]",richGridOverlay:"[[richGridThumbnail]]",watchFeedOverlay:"[[watchFeedThumbnail]]"}},thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayNowPlayingRenderer:{component:"ytd-thumbnail-overlay-now-playing-renderer",properties:{isVideoPlaying:"[[isVideoPlaying]]",equalizerOnly:"[[nowPlayingEqualizerOnly]]",isActive:"[[data.selected]]",videoId:"[[data.videoId]]"}},thumbnailOverlayPinkingRenderer:"ytd-thumbnail-overlay-pinking-renderer", thumbnailOverlayDownloadingRenderer:{component:"ytd-thumbnail-overlay-downloading-renderer",params:{active:!0}},thumbnailOverlayIconRenderer:"ytd-thumbnail-overlay-icon-renderer",thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model",pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailBottomOverlayViewModel:"yt-thumbnail-bottom-overlay-view-model",thumbnailOverlayAvatarStackViewModel:"thumbnail-overlay-avatar-stack-view-model",thumbnailOverlayBadgeViewModel:{component:"yt-thumbnail-overlay-badge-view-model", properties:{thumbnailSize:"[[thumbnailSize]]"}}},initialRenderPriority:1,waitForSignal:void 0},hoverOverlays_:{id:"hover-overlays",reuseComponents:!1,mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayInlineUnplayableRenderer:"ytd-thumbnail-overlay-inline-unplayable-renderer",thumbnailOverlayToggleButtonRenderer:{component:"ytd-thumbnail-overlay-toggle-button-renderer",properties:{disableTooltips:"[[disableTooltips]]",eventSink:"[[eventSink]]",useExpandableTooltip:"[[useExpandableTooltip]]"}}, thumbnailOverlayButtonRenderer:{component:"ytd-thumbnail-overlay-button-renderer",properties:{disableTooltips:"[[disableTooltips]]",eventSink:"[[eventSink]]"}},thumbnailOverlayEndorsementRenderer:"ytd-thumbnail-overlay-endorsement-renderer",thumbnailOverlayLoadingPreviewRenderer:{component:"ytd-thumbnail-overlay-loading-preview-renderer",properties:{isPreviewLoading:"[[isPreviewLoading]]"}}}},richThumbnail:{id:"mouseover-overlay",mapping:{movingThumbnailRenderer:{component:"ytd-moving-thumbnail-renderer", properties:{trackingParams:"[[data.trackingParams]]",videoId:"[[data.videoId]]"}}},renderPriority:2,waitForSignal:"eocs"}}}; g.onImageLoaded=function(){this.loaded=!0}; g.onImageUnloaded=function(){this.loaded=!1}; g.computeRichThumbnail=function(a,b,c,d){if(a&&b&&!d&&!c)return b}; g.computeImageWidth=function(a,b){return b||9999}; g.computeIsOriginalAspectRatio=function(a){return a}; g.computeIsLive=function(a){if(a==null?0:a.badges)for(var b=0;b\n \n \n \n
\n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);EPb=a}a=EPb;return a},{callbackProps:["onClick"], allowedProps:"data disableInteraction noRoundedCorners objectFit useExpandableTooltip useUntranslatedNavigationEndpoint width circular watchFeedThumbnail queued".split(" "),allowedPropsFromBehaviors:"height bottomSidePanel size disableRounding disableNowPlaying disableTooltips useHoveredProperty hovered nowPlaying isVideoPlaying minimizePipBreakages".split(" "),mode:2});function VPb(a){if(a&&a.inlinePlaybackEndpoint&&a.navigationEndpoint&&a.thumbnail){var b,c,d,e;return{inlinePlaybackEndpoint:a.inlinePlaybackEndpoint,navigationEndpoint:a.navigationEndpoint,thumbnail:a.thumbnail,thumbnailOverlays:a.thumbnailOverlays,accessibilityText:(e=(b=a.title)==null?void 0:(c=b.accessibility)==null?void 0:(d=c.accessibilityData)==null?void 0:d.label)!=null?e:""}}} ;var RR=new Bn("NAVIGATION_TOKEN");function SR(a){return new WPb(a)} var WPb=function(a){var b=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){}; this.unsubscribeFromInlinePreviewIsActive=function(){}; this.videoPreviewJobId=0;this.JSC$12847_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(c){b.onMouseMove(c)}; this.onLockupMouseLeaveFn=function(c){c=c.relatedTarget;var d,e;if(!((d=document.getElementsByTagName("ytd-video-preview"))==null?0:(e=d.item(0))==null?0:e.contains(c))){var f,h;(f=b.getVideoPreviewOpts())==null||(h=f.mouseleaveCallback)==null||h.call(f);b.terminateVideoPreview();TR(b)}}; this.onThumbnailMouseDownFn=function(){b.terminateVideoPreview();TR(b)}; this.onTouchStart=function(){b.JSC$12847_touched=!0}; this.mediaRenderer=a.mediaRenderer;this.thumbnailElement=a.thumbnailElement;this.lockupElement=a.lockupElement;this.videoPreviewOptsInput=a.videoPreviewOpts;XPb(this);UR(this)?this.thumbnailElement?this.lockupElement?(this.lockupElement.addEventListener("mouseenter",this.onMouseMoveFn),this.lockupElement.addEventListener("mouseleave",this.onLockupMouseLeaveFn),this.lockupElement.addEventListener("touchstart",this.onTouchStart),this.thumbnailElement.addEventListener("mousedown",this.onThumbnailMouseDownFn)): fo(Error("No lockupElement in InlinePreviewHoverListener")):fo(Error("No thumbnailElement in InlinePreviewHoverListener")):YPb(this)},VR=function(a){YPb(a); var b;(b=a.lockupElement)==null||b.removeEventListener("mouseenter",a.onMouseMoveFn);var c;(c=a.lockupElement)==null||c.removeEventListener("mouseleave",a.onLockupMouseLeaveFn);var d;(d=a.lockupElement)==null||d.removeEventListener("touchstart",a.onTouchStart);var e;(e=a.thumbnailElement)==null||e.removeEventListener("mousedown",a.onThumbnailMouseDownFn);TR(a)},XPb=function(a){a.inlinePreviewIsEnabledForUser=XA.getState().ui.inlinePreviewIsEnabled; a.unsubscribeFromInlinePreviewIsEnabled=cA(XA,a_a,function(b){(a.inlinePreviewIsEnabledForUser=b)||TR(a)}); a.unsubscribeFromInlinePreviewIsActive=cA(XA,$Za,function(b){(a.inlinePreviewIsActive=b)||TR(a)})},YPb=function(a){a.unsubscribeFromInlinePreviewIsEnabled(); a.unsubscribeFromInlinePreviewIsEnabled=function(){}; a.unsubscribeFromInlinePreviewIsActive();a.unsubscribeFromInlinePreviewIsActive=function(){}}; WPb.prototype.onMouseMove=function(a){var b=this;a.buttons>0||x("prevent_imp_on_page_nav")&&Fn().resolve(RR).pendingNavigationPromise||(a=ll("kevlar_lockup_hover_delay",-1),this.JSC$12847_touched&&a>=0?(bj.cancelJob(this.videoPreviewJobId),this.videoPreviewJobId=Ml(function(){ZPb(b)},a),this.JSC$12847_touched=!1):ZPb(this))}; var aQb=function(a){a.videoPreviewJobId=Ml(function(){return ra(function(b){return b.yield($Pb(a,{isAutoplay:!0}),0)})})},ZPb=function(a){!a.previewTriggered&&UR(a)&&(a.inlinePreviewIsActive&&a.terminateVideoPreview(),a.previewTriggered=!0,bj.cancelJob(a.videoPreviewJobId),a.videoPreviewJobId=Ml(function(){return ra(function(b){return b.yield($Pb(a),0)})}))},$Pb=function(a,b){b=b===void 0?{}:b; var c=b.isAutoplay===void 0?!1:b.isAutoplay;var d,e,f;return ra(function(h){if(h.nextAddress==1){if(!UR(a))return h.return();d=a.getVideoPreviewOpts({isAutoplay:c});return d?(f=(e=Yu(a.mediaRenderer.hostElement,"yt-open-video-preview-action",[d]))&&e[0])?h.yield(e[0],3):h.jumpTo(2):h.return()}h.nextAddress!=2&&(f=h.yieldResult===1);f&&(a.mediaRenderer.isPreviewDisabledDueToFailure=!0);h.jumpToEnd()})}; WPb.prototype.getVideoPreviewOpts=function(a){a=a===void 0?{}:a;a=a.isAutoplay===void 0?!1:a.isAutoplay;var b=this.mediaRenderer.videoPreviewDataProvider();if(b){var c,d,e=(d=(c=this.videoPreviewOptsInput)==null?void 0:c.videoPreviewData)!=null?d:b;return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:e,showPlayerControls:!0,isAutoplay:a},this.videoPreviewOptsInput)}}; var UR=function(a){return a.inlinePreviewIsEnabledForUser&&!a.mediaRenderer.isPreviewDisabledDueToFailure&&!!a.mediaRenderer.videoPreviewDataProvider()}; WPb.prototype.terminateVideoPreview=function(){Xu(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")}; var TR=function(a){bj.cancelJob(a.videoPreviewJobId);a.inlinePreviewIsActive=!1;a.previewTriggered=!1};var bQb=la(["#"]),WR=function(){var a=E.apply(this,arguments)||this;a.isDisabled=!1;a.videoPreviewDataProvider=function(){return VPb(a.data)}; return a}; k(WR,E);g=WR.prototype;g.configureRendererStamper=function(){return{"data.menu":CR,"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}}}},"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}}; g.attached=function(){this.updateInlinePreviewHoverListeners()}; g.detached=function(){this.clearInlinePreviewHoverListeners()}; g.getMetadata=function(a){var b=[];if(a.metadataText&&Object.keys(a.metadataText).length>0){var c=this.ytRendererBehavior.getSimpleString(a.metadataText);a.upcomingEventData&&a.upcomingEventData.upcomingEventText&&(c=VOb(c,Number(a.upcomingEventData.startTime)));b.push(c)}else a.shortViewCountText&&b.push(this.ytRendererBehavior.getSimpleString(a.shortViewCountText)),a.publishedTimeText&&b.push(this.ytRendererBehavior.getSimpleString(a.publishedTimeText)),a.upcomingEventData&&a.upcomingEventData.upcomingEventText&&( c=this.ytRendererBehavior.getSimpleString(a.upcomingEventData.upcomingEventText),b.push(VOb(c,Number(a.upcomingEventData.startTime))));return b}; g.calculateBylineText=function(a){return a.shortBylineText?a.shortBylineText:a.bylineText?a.bylineText:null}; g.calculateIsDisabled=function(a){return!!a.isDisabled}; g.computeHrefWithDefault=function(a){return this.ytComponentBehavior.computeHref_(a)||xba(bQb)}; g.onDetailsTap=function(a){var b=this.data&&this.data.navigationEndpoint;b&&!AO(lt(a)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&this.ytComponentBehavior.resolveCommand(b)}; g.dataChanged=function(){this.updateInlinePreviewHoverListeners()}; g.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.inlinePreviewHoverListener=SR({mediaRenderer:this,lockupElement:wt(this.hostElement).querySelector("#dismissible"),thumbnailElement:wt(this.hostElement).querySelector("ytd-thumbnail")})}; g.clearInlinePreviewHoverListeners=function(){var a;(a=this.inlinePreviewHoverListener)==null||VR(a)}; g.computeThumbnailWidth=function(a,b){return b&&b>0?b:a?360:210}; g.computeNumBadgesInRow=function(a){var b;return((b=a.badges)==null?void 0:b.length)||0}; g.computeShowChannelThumbnail=function(a,b){var c;return b&&!!(a==null?0:(c=a.channelThumbnailSupportedRenderers)==null?0:c.channelThumbnailWithLinkRenderer)}; ba.Object.defineProperties(WR.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.inlinePreviewHoverListener)==null?0:UR(a))&&!!this.ytdLockupBehavior.lockupIsHovered}}, hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.attributedBylineText)}}, showBylineText:{configurable:!0,enumerable:!0,get:function(){return!!this.bylineText&&!this.hasAttributedBylineText}}}); WR.prototype.dataChanged=WR.prototype.dataChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],WR.prototype,"ytRendererBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],WR.prototype,"ytComponentBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],WR.prototype,"ytRendererstamperBehavior",void 0);n([F(NQ),r("design:type",Object)],WR.prototype,"ytdDismissibleItemBehavior",void 0); n([F(bR),r("design:type",Object)],WR.prototype,"ytdLockupBehavior",void 0);n([F(kC),r("design:type",Object)],WR.prototype,"ytdReduxBehavior",void 0);n([M(),r("design:type",Object)],WR.prototype,"data",void 0);n([M(),r("design:type",Boolean)],WR.prototype,"noEndpoints",void 0);n([M({computed:"calculateBylineText(data)"}),r("design:type",Object)],WR.prototype,"bylineText",void 0);n([M({reflectToAttribute:!0,value:!1}),r("design:type",Boolean)],WR.prototype,"isSearch",void 0); n([M({reflectToAttribute:!0,value:!1}),r("design:type",Boolean)],WR.prototype,"isDownloading",void 0);n([M({reflectToAttribute:!0,value:0}),r("design:type",Number)],WR.prototype,"width",void 0);n([M({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),r("design:type",Object)],WR.prototype,"isDisabled",void 0);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],WR.prototype,"dataChanged",null); n([H("lockupIsHovered"),r("design:type",Boolean),r("design:paramtypes",[])],WR.prototype,"isHovered",null);n([H("data"),r("design:type",Boolean),r("design:paramtypes",[])],WR.prototype,"hasAttributedBylineText",null);n([H("bylineText","hasAttributedBylineText"),r("design:type",Boolean),r("design:paramtypes",[])],WR.prototype,"showBylineText",null);n([gu({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],WR); Tu(WR,"ytd-grid-video-renderer",function(){if(tPb!==void 0)return tPb;var a=document.createElement("template");Q(a,"
"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return tPb=a},{mode:2});var cQb;var YR=function(){var a=E.apply(this,arguments)||this;a.roundedContainer=!0;a.skipRoundingTop=!1;a.disableTopPadding=!1;a.extractOverlay=!1;return a}; k(YR,E);YR.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}}; YR.prototype.onClick=function(a){var b,c=(b=this.data)==null?void 0:b.sourceEndpoint;!AO(lt(a),this.hostElement,["A".toString()])&&c&&Gt(this.hostElement,"yt-navigate",{endpoint:c})}; ba.Object.defineProperties(YR.prototype,{showMetadataAtTop:{configurable:!0,enumerable:!0,get:function(){return this.data&&!(!this.data.source&&!this.data.publishedTimeText)&&!!this.data.sourceAtTop}}, showMetadataBelowTitle:{configurable:!0,enumerable:!0,get:function(){return this.data&&!(!this.data.source&&!this.data.publishedTimeText)&&!this.data.sourceAtTop}}, hasMenu:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.menu)}}, truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.truncateParagraphs)}}, paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var a,b;return(b=(a=this.data)==null?void 0:a.paragraphMaxLines)!=null?b:3}}, background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}}); n([F(Yz.YtRendererBehavior),r("design:type",Object)],YR.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],YR.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],YR.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],YR.prototype,"showVerticalDividers",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],YR.prototype,"roundedContainer",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],YR.prototype,"skipRoundingTop",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],YR.prototype,"disableTopPadding",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],YR.prototype,"extractOverlay",void 0);n([H("data"),r("design:type",Object),r("design:paramtypes",[])],YR.prototype,"showMetadataAtTop",null);n([H("data"),r("design:type",Object),r("design:paramtypes",[])],YR.prototype,"showMetadataBelowTitle",null); n([M({reflectToAttribute:!0}),H("data.menu"),r("design:type",Object),r("design:paramtypes",[])],YR.prototype,"hasMenu",null);n([M({reflectToAttribute:!0}),H("data.truncateParagraphs"),r("design:type",Object),r("design:paramtypes",[])],YR.prototype,"truncateParagraphs",null);n([M({reflectToAttribute:!0}),H("data.paragraphMaxLines"),r("design:type",Number),r("design:paramtypes",[])],YR.prototype,"paragraphMaxLines",null); n([M({type:void 0,reflectToAttribute:!0}),H("data.background"),r("design:type",Object),r("design:paramtypes",[])],YR.prototype,"background",null);n([gu({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],YR); Uu()(YR,"ytd-info-panel-content-renderer",function(){if(cQb===void 0){var a=document.createElement("template");Q(a,"
\n \n
\n \n \n \n
\n \n \n \n
\n
\n \n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);cQb=a}a=cQb;return a},{mode:2});var dQb;var eQb;var fQb;var gQb;var ZR=function(){return E.apply(this,arguments)||this}; k(ZR,E);ZR.prototype.computeStyle=function(a){return a}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],ZR.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],ZR.prototype,"data",void 0);n([M({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),r("design:type",String)],ZR.prototype,"style_",void 0);n([fu({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],ZR); Tu(ZR,"yt-channel-thumbnail-with-link-renderer",function(){if(gQb===void 0){var a=document.createElement("template");Q(a,"\n \n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;fQb===void 0&&(fQb=document.createElement("template"));var d=fQb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);gQb=a}a=gQb;return a},{mode:2});var $R=function(){var a=E.apply(this,arguments)||this;a.sdRedesignExp=x("desktop_include_oswald");return a}; k($R,E);$R.prototype.configureRendererStamper=function(){return{"data.channelThumbnail":{id:"avatar",mapping:{channelThumbnailWithLinkRenderer:"yt-channel-thumbnail-with-link-renderer"}},"data.informationButton":{id:"information-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.navigationButton":{id:"navigation-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}}; $R.prototype.computeTitleStyle=function(a){return a||null}; $R.prototype.computeAvatarStyle=function(a){return a||null}; $R.prototype.computeShowNavigationButton=function(a,b){return!(a==null||!a.navigationButton||b)}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],$R.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],$R.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],$R.prototype,"data",void 0);n([M({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),r("design:type",String)],$R.prototype,"titleStyle",void 0); n([M({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),r("design:type",String)],$R.prototype,"avatarStyle",void 0);n([M(),r("design:type",Boolean)],$R.prototype,"hideNavigationButton",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],$R.prototype,"sdRedesignExp",void 0);n([gu({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],$R); Tu($R,"ytd-rich-list-header-renderer",function(){if(eQb!==void 0)return eQb;var a=document.createElement("template");Q(a,"
\n
\n \n \n \n \n \n \n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return eQb=a},{mode:2});var aS=function(){return E.apply(this,arguments)||this}; k(aS,E);aS.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{richListHeaderRenderer:"ytd-rich-list-header-renderer"}},"data.contents":{id:"contents",mapping:{gridVideoRenderer:{component:"ytd-grid-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],aS.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],aS.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],aS.prototype,"data",void 0);n([M({value:!1}),r("design:type",Boolean)],aS.prototype,"isSearch",void 0);n([gu({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],aS); Tu(aS,"ytd-preview-card-renderer",function(){if(dQb!==void 0)return dQb;var a=document.createElement("template");Q(a,"
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return dQb=a},{mode:1});var hQb;var bS=function(){return E.apply(this,arguments)||this}; k(bS,E);bS.prototype.configureRendererStamper=function(){return{"data.menu":CR}}; bS.prototype.dataChanged=function(){var a=this.get("colorExtractionPalette.section1Color",this.data);a=Iy(a);Ft(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":a})}; bS.prototype.computeCardStyle=function(a){return this.get("style.value",a)||null}; bS.prototype.dataChanged=bS.prototype.dataChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],bS.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],bS.prototype,"ytRendererstamperBehavior",void 0);n([F(NQ),r("design:type",Object)],bS.prototype,"ytdDismissibleItemBehavior",void 0);n([M(),r("design:type",Object)],bS.prototype,"data",void 0); n([M({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),r("design:type",String)],bS.prototype,"cardStyle",void 0);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],bS.prototype,"dataChanged",null);n([gu({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],bS); Tu(bS,"ytd-compact-channel-recommendation-card-renderer",function(){if(hQb!==void 0)return hQb;var a=document.createElement("template");Q(a,"\n
\n \n \n \n \n \n \n
\n
\n [[getSimpleString(data.channelTitle)]]\n
\n
\n
\n \n \n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return hQb=a},{mode:1});var iQb;var cS=function(){return E.apply(this,arguments)||this}; k(cS,E);cS.prototype.computeIsCarousel=function(a){return!!a.isCarousel}; cS.prototype.observeLightsourcePalette=function(){var a,b=(a=this.data)==null?void 0:a.vibrantsourceColorPaletteData;b&&aM(this.hostElement,b)}; cS.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}}; cS.prototype.observeLightsourcePalette=cS.prototype.observeLightsourcePalette;n([F(Yz.YtRendererBehavior),r("design:type",Object)],cS.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],cS.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],cS.prototype,"data",void 0);n([M({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),r("design:type",Boolean)],cS.prototype,"isCarousel",void 0); n([Lt("data.vibrantsourceColorPaletteData"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],cS.prototype,"observeLightsourcePalette",null);n([gu({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],cS); Tu(cS,"ytd-media-upsell-renderer",function(){if(iQb!==void 0)return iQb;var a=document.createElement("template");Q(a,"
\n
\n \n \n \n
\n
\n \n
\n
\n
\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return iQb=a},{mode:2});var jQb;var dS=function(a){this.context=a;this.playerListeners=new Map},kQb=function(a,b,c){var d=c.bind(a.context); a.playerListeners.set(b+":"+Ha(c),d);return d},eS=function(a,b,c){c.forEach(function(d,e){d=kQb(a,e,d); b.addEventListener(e,d)})},lQb=function(a,b,c,d){var e=!0; e=e===void 0?!1:e;d=c+":"+Ha(d);var f=a.playerListeners.get(d);e&&a.playerListeners.delete(d);f&&b.removeEventListener(c,f)},fS=function(a,b,c){c.forEach(function(d,e){lQb(a,b,e,d)})};var gS=function(){var a=E.apply(this,arguments)||this;a.playerEvents=new Map;a.listeningToPlayer=!1;a.startX=0;a.active=!1;a.shouldShowButtons=x("web_buttons_hidden_killswitch");a.isHighlighted=!1;return a}; k(gS,E);g=gS.prototype; g.configureRendererStamper=function(){return{"data.shareButton":{id:"share-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[customButtonProperties]]"}}}},"data.repeatButton":{id:"repeat-button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{overrides:"[[customButtonProperties]]"}}}},"data.thumbnailOverlay":{id:"overlay",mapping:{thumbnailOverlayNowPlayingRenderer:{component:"ytd-thumbnail-overlay-now-playing-renderer",params:{isVideoPlaying:!0}}}}}}; g.created=function(){this.JSC$12882_playerListener=new dS(this);this.playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)}; g.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",It(this,this.onRepeatButtonToggle));this.hostElement.addEventListener("yt-synced-panel-active-item-update",It(this,this.onActiveUpdate))}; g.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",It(this,this.onRepeatButtonToggle));this.hostElement.removeEventListener("yt-synced-panel-active-item-update",It(this,this.onActiveUpdate))}; g.onDataChanged=function(){this.removePlayerListeners()}; g.onColorPaletteChange=function(){var a={},b;if(My()==="USER_INTERFACE_THEME_DARK"&&((b=this.data)==null?0:b.darkColorPalette)){var c=this.data.darkColorPalette;a["--ytd-macro-markers-list-item-background-color"]=Jy(this.get("section2Color",c))}else{var d;My()==="USER_INTERFACE_THEME_LIGHT"&&((d=this.data)==null?0:d.lightColorPalette)&&(c=this.data.lightColorPalette,a["--ytd-macro-markers-list-item-background-color"]=Jy(this.get("section3Color",c)))}c?(a["--ytd-macro-markers-list-item-title-color"]= Jy(this.get("primaryTitleColor",c)),a["--ytd-macro-markers-list-item-secondary-color"]=Jy(this.get("secondaryTitleColor",c)),a["--ytd-macro-markers-list-item-timestamp-background-color"]=Jy(this.get("section1Color",c)),this.customButtonProperties={customColors:{color:Jy(this.get("primaryTitleColor",c))}},this.useColorSampling=!0):(a["--ytd-macro-markers-list-item-background-color"]="initial",a["--ytd-macro-markers-list-item-title-color"]="initial",a["--ytd-macro-markers-list-item-secondary-color"]= "initial",a["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);Ft(this.hostElement,a)}; g.onEndpointMouseDown=function(a){this.startX=a.clientX}; g.onEndpointClick=function(a){var b=this,c,d,e;return ra(function(f){if(f.nextAddress==1){if(b.startX!==a.clientX)return a.preventDefault(),f.return();b.data&&b.ytRendererBehavior.logExplicitClick(b.data);if(!b.seekWithAnimationOnClick)return f.jumpTo(0);if(a.button!==0||a.shiftKey||a.altKey||a.metaKey||a.ctrlKey||AO(lt(a),b.hostElement,["BUTTON".toString()]))return f.return();a.stopPropagation();a.preventDefault();return b.data?f.yield(yO().getPlayerPromise(),3):f.return()}c=f.yieldResult;e=(d=z(b.data.onTap, py))==null?void 0:d.startTimeSeconds;e!==void 0&&c.seekToTimeWithAnimation(e*1E3,lz(b.data.title));f.jumpToEnd()})}; g.computeLayout=function(a){return a}; g.computeIsHighlighted=function(a){return!!a}; g.computeCarouselType=function(a){return a}; g.hideCarousel=function(a){return this.hideThumbnail(a)}; g.hideThumbnail=function(a){return a!==null&&a==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"}; g.onRepeatButtonToggle=function(a){var b=this;a.detail.toggled&&yO().getPlayerPromise().then(function(c){eS(b.JSC$12882_playerListener,c,b.playerEvents);b.listeningToPlayer=!0})}; g.onLoopRangeChange=function(a){var b=wt(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(b){var c=b.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",b.polymerController.data);if(c){var d=Number(c.endTimeMs);if(Number(c.startTimeMs)!==(a==null?void 0:a.startTimeMs)||d!==(a==null?void 0:a.endTimeMs))b.polymerController.toggle(!1),this.removePlayerListeners()}}}; g.removePlayerListeners=function(){var a=this;this.listeningToPlayer&&yO().getPlayerPromise().then(function(b){fS(a.JSC$12882_playerListener,b,a.playerEvents);a.listeningToPlayer=!1})}; g.onActiveUpdate=function(a){this.active=a.detail.active}; gS.prototype.onColorPaletteChange=gS.prototype.onColorPaletteChange;gS.prototype.onDataChanged=gS.prototype.onDataChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],gS.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],gS.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],gS.prototype,"data",void 0);n([M({value:!1,reflectToAttribute:!0}),r("design:type",Boolean)],gS.prototype,"useCustomColors",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],gS.prototype,"active",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],gS.prototype,"shouldShowButtons",void 0);n([M({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),r("design:type",String)],gS.prototype,"layout",void 0);n([M({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),r("design:type",Object)],gS.prototype,"isHighlighted",void 0); n([M({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),r("design:type",String)],gS.prototype,"carouselType",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],gS.prototype,"useColorSampling",void 0);n([M(),r("design:type",Boolean)],gS.prototype,"seekWithAnimationOnClick",void 0);n([M(),r("design:type",Object)],gS.prototype,"customButtonProperties",void 0);n([Tt("#repeat-button"),r("design:type",HTMLElement)],gS.prototype,"repeatButton",void 0); n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],gS.prototype,"onDataChanged",null);n([Lt("data.lightColorPalette","data.darkColorPalette"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],gS.prototype,"onColorPaletteChange",null);n([gu({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],gS); Tu(gS,"ytd-macro-markers-list-item-renderer",function(){if(jQb!==void 0)return jQb;var a=document.createElement("template");Q(a,"\n\n
\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return jQb=a},{mode:1});var mQb;var nQb;var hS=function(){return E.apply(this,arguments)||this}; k(hS,E);n([F(Yz.YtRendererBehavior),r("design:type",Object)],hS.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],hS.prototype,"data",void 0);n([gu({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],hS); Tu(hS,"ytd-title-and-button-list-header-renderer",function(){if(nQb!==void 0)return nQb;var a=document.createElement("template");Q(a,"\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return nQb=a},{mode:1});var oQb;var qQb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("zcskIc"),2);a=pQb;return b.return(a)})},rQb=yD(function(){return qQb()},{debugName:"buttonRenderer"}); Gn(xD,function(a){a.registerLoadFn("buttonRenderer","zcskIc",qQb)});var sQb=O(function(a){var b=a.data,c=function(){var d,e;return(e=(d=a.useSquareAspectRatio)==null?void 0:d.call(a))!=null?e:!1}; return D("dismissed-mini-game-card-view-model",null,D(P,{cond:function(){var d,e;return(d=b().responseText)==null?void 0:(e=d.runs)==null?void 0:e.length}, then:function(){var d={};return D("div",{class:U("ytMiniGameCardViewModelDismissedCard",(d.ytMiniGameCardViewModelDismissedPortraitCard=function(){return!c()},d.ytMiniGameCardViewModelDismissedPortraitCard2by3AspectRatio=function(){return!!x("web_game_card_force_2_by_3")},d.ytMiniGameCardViewModelDismissedSquareCard=c,d))},D("div",{class:"ytMiniGameCardViewModelDismissedMiniAppContent"},D(P,{cond:function(){return b().responseText.runs[0].text}, then:function(e){return D("span",{class:"ytMiniGameCardViewModelDismissedText",title:e},e)}}),D(OC,{data:function(){return b().buttons}},{buttonRenderer:rQb, buttonViewModel:BD})))}}))},"zb");var tQb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("A4oAVe"),2);a=TPb;return b.return(a)})},uQb=yD(function(){return tQb()},{debugName:"thumbnailOverlayBadgeViewModel"}); Gn(xD,function(a){a.registerLoadFn("thumbnailOverlayBadgeViewModel","A4oAVe",tQb)});var CQb=O(function(a){a=Hu(a,{className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var b=a.data,c=a.useFullWidth,d=a.isDesktopWeb,e=a.addSearchResultTopMargin,f=function(){return b().layout},h=function(){return b().title},m=function(){return b().metadataText?b().metadataText:b().genre},p=function(){return b().channelName},q=function(){return b().image},t=function(){return b().colorPalette},u=function(){return b().actionButton},v=function(){return b().overflowButton},w=function(){return b().avatar}, y=function(){return b().ageRating},A=function(){return b().thumbnailOverlays},C=function(){var L={}; L=U("ytMiniGameCardViewModelHost","ytMiniGameCardViewModelSingletonCard",(L.ytMiniGameCardViewModelSingletonCardDesktop=function(){return d()},L)); return D("div",{class:L},D(vQb,{imageData:q,colorPalette:t}),D(wQb,{onTap:function(){return b().onTap}, imageData:q,accessibilityText:function(){return b().accessibilityText}, overlayBadgeText:function(){return b().overlayBadgeText}, iconName:function(){return b().iconName}, unplayableInlinePlaybackIconName:function(){return b().unplayableInlinePlaybackIconName}, thumbnailOverlays:A,isDesktopWeb:d}),D(P,{cond:function(){return!d()}, then:function(){return D(mq,null,D(xQb,{layout:f,colorPalette:t,isDesktopWeb:d,overflowButton:v,avatar:w,onTap:function(){return b().onTap}, genre:m,title:h,channelName:p}),D(yQb,{actionButton:u}))}}))},I=function(){var L={}; L=U((L.ytMiniGameCardViewModelSearchResultDesktop=function(){return d()},L.ytMiniGameCardViewModelSearchResultMweb=function(){return!d()},L.ytMiniGameCardViewModelSearchResultTopMargin=function(){return e()},L)); return D("div",{class:L},C(),D(zQb,{description:function(){return b().description}, isDesktopWeb:d,title:h,genre:m,onTap:function(){return b().onTap}, actionButton:u,overflowButton:v,avatar:w,channelName:p}))},K=function(){var L={}; L=U("ytMiniGameCardViewModelHost","ytMiniGameCardViewModelPortraitCard",(L.ytMiniGameCardViewModelPortraitCardDesktop=function(){return d()},L.ytMiniGameCardViewModelPortraitCardDesktopSkinnyWidth=function(){return d()&&b().width===135},L.ytMiniGameCardViewModelShowUnplayableOnHover=function(){return d()},L.ytMiniGameCardViewModelBigMetadataFont=function(){return b().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},L.ytMiniGameCardViewModelUseFullWidth=function(){return c()},L.ytMiniGameCardViewModelPortraitCardForce2by3AspectRatio= function(){return!!x("web_game_card_force_2_by_3")},L)); return D("div",{class:L},D(AQb,{colorPalette:t,isDesktopWeb:d,onTap:function(){return b().onTap}, accessibilityText:function(){return b().accessibilityText}, overlayBadgeText:function(){return b().overlayBadgeText}, iconName:function(){return b().iconName}, unplayableInlinePlaybackIconName:function(){return b().unplayableInlinePlaybackIconName}, actionButton:u,imageData:q,thumbnailOverlays:A}),D(xQb,{layout:f,colorPalette:t,isDesktopWeb:d,overflowButton:v,avatar:w,onTap:function(){return b().onTap}, genre:m,title:h,channelName:p}),D(P,{cond:y,then:function(R){return D(BQb,{ageRating:R})}}))},N=function(){var L={}; L=U("ytMiniGameCardViewModelHost","ytMiniGameCardViewModelSquareCard",(L.ytMiniGameCardViewModelSquareCardDesktop=function(){return d()},L.ytMiniGameCardViewModelUseFullWidth=function(){return c()},L)); return D("div",{class:L},D(wQb,{onTap:function(){return b().onTap}, imageData:q,accessibilityText:function(){return b().accessibilityText}, overlayBadgeText:function(){return b().overlayBadgeText}, iconName:function(){return b().iconName}, unplayableInlinePlaybackIconName:function(){return b().unplayableInlinePlaybackIconName}, thumbnailOverlays:A,isDesktopWeb:d}),D(xQb,{layout:f,colorPalette:t,isDesktopWeb:d,overflowButton:v,avatar:w,onTap:function(){return b().onTap}, genre:m,title:h,channelName:p}),D(P,{cond:y,then:function(R){return D(BQb,{ageRating:R})}}))}; return D("mini-game-card-view-model",{class:a.className},D(pw,null,D(jw,{when:function(){return f()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return K()}),D(jw,{when:function(){return f()==="MINI_APP_LAYOUT_SQUARE"}},function(){return N()}),D(jw,{when:function(){return f()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return I()})))},"Ab"); CQb.idomCompat=!0;var yQb=O(function(a){a=Hu(a,{wrapperClass:"ytMiniGameCardViewModelCardActionButton"});var b=a.wrapperClass;return D(OC,{data:a.actionButton},{buttonViewModel:function(c){return D("div",{class:b},D(BD,{data:c.data}))}})},"Bb"),wQb=O(function(a){var b=a.onTap; var c=a.imageData;var d=a.accessibilityText;var e=a.overlayBadgeText;var f=a.iconName;var h=a.unplayableInlinePlaybackIconName;var m=a.isDesktopWeb;a=a.thumbnailOverlays;return D(vD,{className:"ytMiniGameCardViewModelThumbnailWrapper",command:b},D(eC,{data:c,className:"ytMiniGameCardViewModelThumbnailImage",alt:function(){return(d==null?void 0:d())||""}, contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),D(OC,{data:a},{thumbnailOverlayBadgeViewModel:uQb}),D(DQb,{overlayBadgeText:e,iconName:f,unplayableInlinePlaybackIconName:h,isDesktopWeb:m}))},"Cb"),DQb=O(function(a){var b=a.overlayBadgeText; var c=a.iconName;var d=a.unplayableInlinePlaybackIconName;var e=a.isDesktopWeb;return D("div",{class:"ytMiniGameCardViewModelBadgeContainer"},D(P,{cond:c,then:function(f){return D("div",{class:"ytMiniGameCardViewModelBadge"},D("div",{class:"ytMiniGameCardViewModelBadgeHighScore"},D(aC,{icon:f,className:"ytMiniGameCardViewModelIcon",size:12}),D("span",{class:"ytMiniGameCardViewModelBadgeText","aria-hidden":!0},b)))}}),D(P,{cond:function(){return!c()&&b()}, then:function(){return D("span",{class:"ytMiniGameCardViewModelBadge","aria-hidden":!0},b)}}),D(P,{cond:function(){return d()&&e()}, then:function(){return D("div",{class:"ytMiniGameCardViewModelUnplayableBadge"},D(aC,{icon:d,className:"ytMiniGameCardViewModelUnplayableIcon"}))}}))},"Db"),vQb=O(function(a){var b=a.colorPalette; var c=a.imageData;var d=function(){return b().vibrantColorPalette?b().vibrantColorPalette.section2Color:b().sectionTwoColor}; return D(mq,null,D("div",{class:"ytMiniGameCardViewModelBackgroundBase",style:GC({"background-color":function(){return Ky(d(),"1")}})}),D("div",{class:"ytMiniGameCardViewModelBackgroundBlur", style:GC({"background-image":function(){return"url("+c().sources[0].url+")"}})}),D("div",{class:"ytMiniGameCardViewModelGradientScrim", style:GC({background:function(){return"linear-gradient(180deg,\n "+Ky(d(),".8")+" 0%,\n "+Ky(d(),".4")+" 25%,\n "+Ky(b().vibrantColorPalette?b().vibrantColorPalette.section4Color:b().sectionFourColor,".8")+" 100%)"}})}))},"Eb"),xQb=O(function(a){var b=a.layout; var c=a.colorPalette;var d=a.overflowButton;var e=a.avatar;var f=a.onTap;var h=a.title;var m=a.channelName;var p=a.genre;var q=function(){var t;return b()!=="MINI_APP_LAYOUT_SQUARE"&&((t=c())==null?0:t.textPrimaryColor)?"color: "+Ky(c().textPrimaryColor,".7"):""}; return D("div",{class:"ytMiniGameCardViewModelCardMetadataWrapper"},D(P,{cond:e,then:function(){return D("div",{class:"ytMiniGameCardViewModelAvatar"},D(OC,{data:e},{avatarViewModel:zD}))}}),D(vD,{command:f, className:"ytMiniGameCardViewModelMetadataDetails"},D("h3",{class:"ytMiniGameCardViewModelTitle",title:h},h),D(P,{cond:e,then:function(){return D("div",{class:"ytMiniGameCardViewModelChannelMetadataLine"},D("span",{class:"ytMiniGameCardViewModelGenre",title:m,style:q},m),D("span",{class:"ytMiniGameCardViewModelGenreWithSeparator",style:q},p))}, else:function(){return D("span",{class:"ytMiniGameCardViewModelGenre",title:p},p)}})),D("div",{class:"ytMiniGameCardViewModelOverflowButton"},D(OC,{data:d},{buttonViewModel:function(t){var u=t.data; return D(BD,{data:function(){return Object.assign({},u(),{customFontColor:b()==="MINI_APP_LAYOUT_SINGLETON"?u().customFontColor:void 0})}})}})))},"Fb"),AQb=O(function(a){var b=a.colorPalette; var c=a.isDesktopWeb;var d=a.onTap;var e=a.accessibilityText;var f=a.overlayBadgeText;var h=a.iconName;var m=a.unplayableInlinePlaybackIconName;var p=a.actionButton;var q=a.imageData;a=a.thumbnailOverlays;return D("div",{class:"ytMiniGameCardViewModelCinematicBackgroundWrapper"},D(vQb,{imageData:q,colorPalette:b}),D(wQb,{onTap:d,imageData:q,accessibilityText:e,overlayBadgeText:f,iconName:h,unplayableInlinePlaybackIconName:m,isDesktopWeb:c,thumbnailOverlays:a}),D(P,{cond:function(){return p==null? void 0:p()}, then:function(){return D(yQb,{actionButton:p})}}))},"Gb"),zQb=O(function(a){var b=a.description; var c=a.isDesktopWeb;var d=a.title;var e=a.genre;var f=a.onTap;var h=a.actionButton;var m=a.overflowButton;var p=a.avatar;a=a.channelName;var q={};q=U("ytMiniGameCardViewModelSearchResultMetadataWrapper",(q.ytMiniGameCardViewModelShowOverflowMenuOnHover=c,q.ytMiniGameCardViewModelShowUnplayableOnHover=c,q.ytMiniGameCardViewModelSearchResultMetadataWrapperMweb=function(){return!c()},q)); var t={};t=U("ytMiniGameCardViewModelSearchResultInfoRow",(t.ytMiniGameCardViewModelSearchResultInfoRowMweb=function(){return!c()},t)); return D("div",{class:q},D("div",{class:t},D(vD,{command:f,className:"ytMiniGameCardViewModelMetadataDetails"},D("h3",{class:"ytMiniGameCardViewModelTitle",title:d},d),D("span",{class:"ytMiniGameCardViewModelGenre",title:e},e)),D(yQb,{actionButton:h,wrapperClass:"ytMiniGameCardViewModelSearchResultActionButton"}),D("div",{class:"ytMiniGameCardViewModelOverflowButton"},D(OC,{data:m},{buttonViewModel:BD}))),D("div",{class:"ytMiniGameCardViewModelSearchResultChannelRow"},D("div",{class:"ytMiniGameCardViewModelSearchResultChannelName"}, D("div",{class:"ytMiniGameCardViewModelAvatar"},D(OC,{data:p},{avatarViewModel:function(u){var v=u.data;return D(zD,{data:function(){return Object.assign({},v(),{avatarImageSize:c()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),D(vD,{command:f, className:"ytMiniGameCardViewModelDescription"},D("p",{class:"ytMiniGameCardViewModelSearchResultChannelText"},a)),D(vD,{command:f,className:"ytMiniGameCardViewModelMetadataRowExtraEndpoint",tabIndex:-1},D("div",null)))),D(P,{cond:c,then:function(){return D(vD,{command:f,className:"ytMiniGameCardViewModelDescription"},b)}}))},"Hb"),BQb=O(function(a){var b=a.ageRating; return D("div",{class:"ytMiniGameCardViewModelAgeRatingWrapper"},D(eC,{data:function(){return{sources:[{url:b().imageUrl||"",width:16,height:16}]}}, className:"ytMiniGameCardViewModelAgeRatingImage",alt:"",targetHeight:16,targetWidth:16,preserveWidth:!0,preserveHeight:!0}),D(ED,{data:function(){return{badgeText:b().label||"",badgeStyle:"BADGE_MEDIA"}}, modern:!0,class:"ytMiniGameCardViewModelAgeRatingBadge",clipTextOverflow:!0}))},"Ib");bB(CQb,"mini-game-card-view-model",{props:{data:$A,className:$A,useFullWidth:$A,isDesktopWeb:$A,addSearchResultTopMargin:$A}});bB(sQb,"dismissed-mini-game-card-view-model",{props:{data:$A,useSquareAspectRatio:$A}});var iS=function(){var a=E.apply(this,arguments)||this;a.isSearch=!1;a.isRichGrid=!1;return a}; k(iS,E);g=iS.prototype;g.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)}; g.dismissibleItemOnYtServiceRequestSent=function(a,b){b.actions&&this.dismissibleItemProcessActions(a,b.actions)}; g.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()}; g.dataChanged=function(){this.dismissibleItemReset()}; g.dismissibleItemProcessActions=function(a,b){for(var c=0;c");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return oQb=a},{mode:2});var EQb=O(function(a){var b=a.data;var c=FC(function(){var f=b().onTap;(f=z(f,ny))&&Fn().resolve(JB).resolveCommand(f);return!1}),d=function(){return{sources:[{url:b().thumbnailUrl, width:120,height:90}]}},e=function(){return b().rating&&b().ratingA11yLabel&&b().reviewsCount&&b().reviewsCountA11yLabel}; return D("place-data-view-model",null,D(P,{cond:function(){return b().placeName&&b().placeCategory}, then:function(){return D("div",{class:"ytSpecPlaceDataViewModelShapeHost","on:click":c},D(eC,{data:d,alt:"",targetWidth:120,targetHeight:90,className:"ytSpecPlaceDataViewModelShapeThumbnail"}),D(vD,{className:"ytSpecPlaceDataViewModelShapePlaceLink",command:function(){return b().onTap}},D("h3",{class:"ytSpecPlaceDataViewModelShapeName", title:function(){return b().placeName}},function(){return b().placeName})),D("div",{class:"ytSpecPlaceDataViewModelShapeMetadata"},D(P,{cond:e, then:function(){return D("div",{class:U("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")},D("span",{class:"score",title:function(){return b().ratingA11yLabel}},function(){return b().rating}),D("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowStarIcon"},D(aC,{icon:"STAR", active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),D("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowReviews",title:function(){return b().reviewsCountA11yLabel}},function(){return b().reviewsCount}))}, else:function(){return D("div",{class:U("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")})}}),D("div",{class:U("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowCategories")},D("span",{class:"category", title:function(){return b().placeCategory}},function(){return b().placeCategory}))))}}))},"Jb"); EQb.idomCompat=!0;bB(EQb,"place-data-view-model",{props:{data:$A}});var FQb=new Bn("INLINE_PLAYBACK_HOOK_TOKEN");function GQb(a){return function(b){a(b)}} ;var IQb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("wSn4ac"),2);a=HQb;return b.return(a)})},JQb=yD(function(){return IQb()},{debugName:"lockupAttachmentsViewModel"}); Gn(xD,function(a){a.registerLoadFn("lockupAttachmentsViewModel","wSn4ac",IQb)});function KQb(a,b,c,d,e,f){d=d===void 0?{}:d;if(!a||!a.length)return[];a=a.slice();var h=[],m=[];e=null;for(var p=0,q=function(A){m.sort(function(K,N){return N.skippedOnRow-K.skippedOnRow}); for(var C,I=(C=m.shift())==null?void 0:C.content;I;)!I.richSectionRenderer&&A||h.push(I),C=void 0,I=(C=m.shift())==null?void 0:C.content};a.length>0||m.length>0;){for(var t=[],u=b;u>0;){var v=void 0,w=void 0,y=(w=m[0]&&m[0].skippedOnRow=q.length)break;f.set(m,p+1);m=q[p];p=c.children[h];p!==m&&(iWa=!0,hWa.set(m, !0),c.insertBefore(m,p),hWa.delete(m),iWa=!1)}}} function OQb(a){return x("rich_grid_enable_dynamic_offset")&&a?Math.max((a-ll("rich_grid_dynamic_offset_anchor_width",1300))/100*ll("rich_grid_dynamic_offset_offset_per_100",10),ll("rich_grid_dynamic_offset_lower_bound",-60)):0} ;var PQb=ll("rich_grid_min_item_width",310),QQb=ll("rich_grid_max_item_width",500);function RQb(a,b){switch(b){case 4:return 16;case 1:return a<528?16:a<1024?32:48;case 2:return(a>=528?16:8)/2;case 3:return(a<528?16:a<1024?32:48)+(a>=528?16:8)/2;default:return 0;}} function SQb(a){var b=a.originalContainerWidth;var c=a.sizing;var d=a.standardUnit;if(a.isCompactList&&b<528)return 1;switch(c){case"STANDARD":return d;case"COMPACT":return d+1;case"EXTRA_COMPACT":return x("web_responsive_extra_compact_2x")?d*2:x("web_responsive_current")?d===1?2:d%2===0?d/2*3:d+2:d<4?d*2:Math.ceil(d*3/2);case"MINI":return d>1?d*2:3;default:return d;}} function TQb(a){var b=a.containerWidth;var c=a.peek;var d=a.gutter;var e=a.numItems;a=a.ignoreMaxWidthLimit;b=c?Math.max((b-c-d*e)/e,0):Math.max((b-d*(e-1))/e,0);return a?b:Math.min(b,QQb)} function jS(a){var b=a.containerWidth;var c=a.hasPeek;var d=a.sizing;var e=a.marginSettings;var f=a.isCompactList;var h=a.enableFullBleedForSingleCol;var m=a.standardUnitMinWidth;var p=a.bleedGutters;d=d||"STANDARD";c=!!c;a=b>=528?16:8;var q=c?b>=528?48:24:0;e=RQb(b,e);var t=Math.max(b-e*2,0);m=Math.min(Math.max(Math.floor((t-q+a)/((m!=null?m:PQb)+OQb(b)+a)),1),6);h=!!h&&m===1;var u=RQb(b,1),v=h||m===1&&d!=="STANDARD";c=c||v?t:Math.min(t,(QQb+a)*m-a);p&&(c+=a);d=SQb({originalContainerWidth:b,sizing:d, standardUnit:m,isCompactList:f});return{itemWidth:TQb({containerWidth:c,peek:q,gutter:a,numItems:d,ignoreMaxWidthLimit:v}),gutter:a,maxContainerWidth:c,numItems:d,margin:h?0:e,contentMargin:u,typographyBump:TQb({containerWidth:c,peek:q,gutter:a,numItems:m,ignoreMaxWidthLimit:v})>400&&!(f&&b<528),standardUnit:m}} ;function kS(a){switch(a){case"RESPONSIVE_SIZE_COMPACT":return"COMPACT";case"RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case"RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD";}} function UQb(a){if(a){var b;if((b=a.responsiveContainerConfiguration)==null?0:b.responsiveSize)return kS(a.responsiveContainerConfiguration.responsiveSize);if(a.layoutSizing)switch(a.layoutSizing){case"RICH_GRID_LAYOUT_SIZING_COMPACT":return"COMPACT";case"RICH_GRID_LAYOUT_SIZING_EXTRA_COMPACT":return"EXTRA_COMPACT";case"RICH_GRID_LAYOUT_SIZING_TINY":return"MINI";default:return"STANDARD";}}} ;var VQb=typeof window!=="undefined"&&window.matchMedia("(hover: hover)").matches;function WQb(a){if(a.fullbleed)return 1;switch(a.containerType){case"CONTAINER_TYPE_VERTICAL_LIST":return 3;case"CONTAINER_TYPE_GRID":return 2;case"CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3;}} function XQb(a,b,c,d,e,f,h,m,p){a:if(a===4&&d==="LOCKUP_CONTENT_TYPE_SOURCE")var q=1;else switch(a){case 3:q=1;break a;default:q=0;}var t=YQb(a,d);a:if(d==="LOCKUP_CONTENT_TYPE_TV_NETWORK")f=!0;else switch(a){case 4:f=!!(f&&f<100);break a;default:f=!1;}a:switch(a){case 3:case 4:var u=d==="LOCKUP_CONTENT_TYPE_CHANNEL"||d==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:u=!1;}return{metadataOnThumbnail:t,isOverlay:m||t,isCard:ZQb(d,h),sizing:b!=null?b:"STANDARD",typographyBump:c!=null?c:!1,isTiny:f,isCentered:u, isCollection:$Qb(d),arrangement:q,addMarginForFullbleed:a===1&&d!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:a===1&&d==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:aRb(d,e,p),disableRounding:a===5||ZQb(d,h)||a===1&&d==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:$Qb(d)?2:0,useLegacyTypography:!(p==null||!p.useLegacyTypography),useRichGridLegacyTypography:!(p==null||!p.useRichGridLegacyTypography)&&!x("web_enable_typography_bump"),compactMetadata:q===0&&d==="LOCKUP_CONTENT_TYPE_VIDEO",onFocusEffect:p== null?void 0:p.onFocusEffect,titleMaxLines:d==="LOCKUP_CONTENT_TYPE_AI_CARD"?1:void 0,isCenteredMetadata:d==="LOCKUP_CONTENT_TYPE_TV_NETWORK",isCinematic:d==="LOCKUP_CONTENT_TYPE_TV_NETWORK",isMetadataOnPlayer:d==="LOCKUP_CONTENT_TYPE_AI_CARD",moveLockupOverflowMenuToBottomRight:!(p==null||!p.moveLockupOverflowMenuToBottomRight)&&VQb}} function $Qb(a){switch(a){case"LOCKUP_CONTENT_TYPE_PLAYLIST":case"LOCKUP_CONTENT_TYPE_ALBUM":case"LOCKUP_CONTENT_TYPE_PODCAST":case"LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":case"LOCKUP_CONTENT_TYPE_MIX":case"LOCKUP_CONTENT_TYPE_STATION":return!0;default:return!1;}} function ZQb(a,b){if(b&&a==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(a){case"LOCKUP_CONTENT_TYPE_SOURCE":case"LOCKUP_CONTENT_TYPE_AI_CARD":return!0;default:return!1;}} function YQb(a,b){if(b==="LOCKUP_CONTENT_TYPE_AI_CARD"||b==="LOCKUP_CONTENT_TYPE_TV_NETWORK")return!0;switch(a){case 5:return!0;case 4:return!1;default:return!1;}} function aRb(a,b,c){if(b&&(c==null||!c.alwaysRespectPodcastShowAspectRatio||a!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(a){case"LOCKUP_CONTENT_TYPE_SHORT":case"LOCKUP_CONTENT_TYPE_GAME":case"LOCKUP_CONTENT_TYPE_MOVIE":case"LOCKUP_CONTENT_TYPE_TV_NETWORK":return 1;case"LOCKUP_CONTENT_TYPE_ALBUM":case"LOCKUP_CONTENT_TYPE_PRODUCT":case"LOCKUP_CONTENT_TYPE_PODCAST":case"LOCKUP_CONTENT_TYPE_SOURCE":case"LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":return 3;default:return 0;}} ;var cRb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("OM7xob"),2);a=bRb;return b.return(a)})},dRb=yD(function(){return cRb()},{debugName:"lockupMetadataViewModel"}); Gn(xD,function(a){a.registerLoadFn("lockupMetadataViewModel","OM7xob",cRb)});var eRb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("Nr0kfe"),2);a=lS;return b.return(a)})},fRb=yD(function(){return eRb()},{debugName:"thumbnailViewModel"}); Gn(xD,function(a){a.registerLoadFn("thumbnailViewModel","Nr0kfe",eRb)});var hRb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("ha1Ii"),2);a=gRb;return b.return(a)})},iRb=yD(function(){return hRb()},{debugName:"attributionViewModel"}); Gn(xD,function(a){a.registerLoadFn("attributionViewModel","ha1Ii",hRb)});var kRb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("FiNGOc"),2);a=jRb;return b.return(a)})},mS=yD(function(){return kRb()},{debugName:"dismissibleItem"}); Gn(xD,function(a){a.registerLoadFn("dismissibleItem","FiNGOc",kRb)});var lRb=bta({defaultValue:void 0});function mRb(a){var b=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],c=l(ip(void 0,void 0,"JrqNsb")),d=c.next().value,e=c.next().value,f=l(ip(void 0,void 0,"rWytse"));c=f.next().value;var h=f.next().value,m=l(ip(void 0,void 0,"DHRqxe"));f=m.next().value;var p=m.next().value;m=FC(function(u){nRb(HD(u),b)||(e(u),h(void 0),p(void 0))}); var q=FC(function(u){a==null||a(u);nRb(HD(u),b)||(h(u),e(void 0),p(void 0))}),t=FC(function(u){nRb(HD(u),b)||(p(u),h(void 0),e(void 0))}); return{touchFeedbackEvents:{pointerUpEvent:d,pointerDownEvent:c,pointerLeaveEvent:f},touchFeedbackOnPointerUp:m,touchFeedbackOnPointerDown:q,touchFeedbackOnPointerLeave:t}} function nRb(a,b){b=b===void 0?[]:b;b=[].concat(ia(b),["BUTTON".toString()]);a=l(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;for(var d=l(b),e=d.next();!e.done;e=d.next())if(c.tagName===e.value)return!0}return!1} ;var pRb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("WsiMic"),2);a=oRb;return b.return(a)})},nS=yD(function(){return pRb()},{debugName:"feedAdMetadataViewModel"}); Gn(xD,function(a){a.registerLoadFn("feedAdMetadataViewModel","WsiMic",pRb)});var qRb=iQ.inlinePreviewEnabledSelector,oS=O(function(a){return D("yt-lockup-view-model",{class:U(a.className,"ytLockupViewModelWrapper")},D(mS,{contentId:function(){return a.data().contentId}, useModernStyle:!0,aspectRatio:function(){var b,c;return((b=a.containerType)==null?void 0:b.call(a))!==3?aRb(a.data().contentType,(c=a.force16By9ThumbnailAspectRatio)==null?void 0:c.call(a)):void 0}},function(){return D(rRb,Object.assign({},a))}))},"Kb"),rRb=O(function(a){a=Hu(a,{containerLayoutConfig:void 0, protectBackground:void 0,containerType:void 0,sizing:void 0,typographyBump:!1,force16By9ThumbnailAspectRatio:!1,thumbnailFixedWidth:void 0,thumbnailTargetWidth:void 0,lockupExperiments:void 0,elementsPerRow:void 0,componentGap:void 0,useOverlayStyling:void 0});var b=a.data,c=a.containerLayoutConfig,d=a.containerType,e=a.sizing,f=a.protectBackground,h=a.typographyBump,m=a.force16By9ThumbnailAspectRatio,p=a.thumbnailFixedWidth,q=a.thumbnailTargetWidth,t=a.lockupExperiments,u=a.elementsPerRow,v=a.componentGap, w=a.useOverlayStyling,y=Fn().resolve(Cn(HB)),A=jKa(lRb),C=dB(MD(function(){var Ca;return(Ca=b())==null?void 0:Ca.rendererContext},void 0,void 0,["A".toString(), "BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL","YT-EXPANDABLE-METADATA-VIEW-MODEL","FEED-AD-METADATA-VIEW-MODEL","AD-BADGE-VIEW-MODEL","AD-DETAILS-LINE-VIEW-MODEL","AD-BUTTON-VIEW-MODEL","CAROUSEL-AD-CARD-COLLECTION-VIEW-MODEL","CAROUSEL-AD-CARD-IMAGE-VIEW-MODEL"],!0)),I=eL(qRb);a=Fn().resolve(Cn(FQb));var K=l(ip(a?{}:void 0,void 0,"YgDCob")),N=K.next().value,L=K.next().value,R=function(){var Ca,eb,Qa;return(Qa=(eb=z((Ca=b())==null?void 0:Ca.rendererContext,dy))==null?void 0:eb.label)!=null?Qa: void 0},W=function(){var Ca; return(Ca=z(b().metadata,usb))==null?void 0:Ca.endorsement},S=function(){var Ca,eb; var Qa=(eb=c==null?void 0:c())!=null?eb:A==null?void 0:(Ca=A())==null?void 0:Ca.containerLayoutConfig;var Bb;if(Qa==null?0:Qa.containerType){var dc=(Bb=b())==null?void 0:Bb.contentType;Bb=t();Ca=h();eb=q();var Nb=f();Qa=Object.assign({},XQb(WQb(Qa),kS(Qa.responsiveSize),Ca,dc,Qa.force16By9ThumbnailAspectRatio,eb,Nb,void 0,Bb),{thumbnailFixedWidth:Qa.contentPreviewWidth,thumbnailWidthLimits:Qa.contentPreviewWidthLimits})}else Qa=XQb(d(),e(),h(),(dc=b())==null?void 0:dc.contentType,m(),q(),f(),w(), t());return Qa}; a&&a({enabled:function(){return I()}, itemPlaybackModel:function(){return b().itemPlayback}, thumbnailElRef:function(){var Ca;return(Ca=N())==null?void 0:Ca.thumbnailElRef}, containerElRef:C,options:function(){var Ca,eb=((Ca=N())==null?void 0:Ca.thumbnailOverlays)||[];Ca=W();var Qa;!Ca||((Qa=t())==null?0:Qa.onFocusEffect)||eb.push(Ca);Qa=b().metadata;var Bb,dc,Nb,Lc,Fc,wc,kd;return{thumbnail:(Bb=N())==null?void 0:Bb.thumbnail,thumbnailOverlays:eb,accessibilityText:R(),thumbnailSize:(dc=N())==null?void 0:dc.thumbnailSize,enableRounding:S().isCollection||((Nb=t())==null?void 0:Nb.enableDynamicInlinePlaybackRounding)&&!((Lc=N())==null||!Lc.thumbnailSize),containPlayerWithinThumbnail:S().isCollection, contentType:(Fc=b())==null?void 0:Fc.contentType,mouseleaveCallback:qb,metadataOverlay:S().isMetadataOnPlayer&&Qa?{overlay:Qa,lockupStyle:S()}:void 0,trackingParams:(wc=z(b().rendererContext,oy))==null?void 0:(kd=wc.loggingDirectives)==null?void 0:kd.trackingParams}}}); var Y=0;a=l(ip(!1,void 0,"hlmbfb"));var da=a.next().value,Aa=a.next().value;a=l(ip(!1,void 0,"PRMbaf"));var Sa=a.next().value,Ua=a.next().value;a=FC(function(){Sa()?(bj.cancelJob(Y),Y=Hl(0,function(){Aa(!0)},8,32)):Aa(!0); return!0}); var qb=function(){Y&&(bj.cancelJob(Y),Y=0);Aa(!1)}; K=FC(function(Ca){Ca=Ca.relatedTarget;var eb=document.querySelector("ytd-video-preview");Ca&&eb&&eb.contains(Ca)||qb()}); qw(function(){var Ca;(Ca=C.value)==null||Ca.dispatchEvent(new Event("yt-lockup-view-model-initialized",{bubbles:!0}))}); zp(function(){Y&&(bj.cancelJob(Y),Y=0)}); var ab=mRb(function(){Ua(!0)}),La=ab.touchFeedbackEvents,ib=ab.touchFeedbackOnPointerUp,sb=ab.touchFeedbackOnPointerDown; ab=ab.touchFeedbackOnPointerLeave;var Oa={};return D(mq,null,D("div",{el:C,class:U("ytLockupViewModelHost",function(){a:{var Ca=S();if(Ca.metadataOnThumbnail)Ca="ytLockupViewModelMetadataOnThumbnail";else switch(Ca.arrangement){case 1:Ca="ytLockupViewModelHorizontal";break a;default:Ca="ytLockupViewModelVertical";}}return Ca},function(){a:{var Ca=S(); if(Ca.metadataOnThumbnail)Ca="ytLockupViewModelMetadataOnThumbnail";else{switch(Ca.collectionStackNumber){case 1:Ca="ytLockupViewModelCollectionStack1";break a;case 2:Ca="ytLockupViewModelCollectionStack2";break a;}Ca=void 0}}return Ca},function(){var Ca; var eb=(Ca=b())==null?void 0:Ca.contentId;return eb?"content-id-"+eb:void 0},(Oa.ytLockupViewModelCard=function(){return S().isCard},Oa.ytLockupViewModelCompact=function(){return S().isTiny||S().sizing!=="STANDARD"},Oa.ytLockupViewModelProtectBackground=f,Oa.ytLockupViewModelAddMargins=function(){return S().addMarginForFullbleed},Oa.ytLockupViewModelCentered=function(){return S().isCentered},Oa.ytLockupViewModelFullbleed=function(){return S().fullbleed},Oa.ytLockupViewModelSingleColumnGrid=function(){return u()=== 1&&d()===2},Oa.ytLockupViewModelRichGridLegacyMargin=function(){var Ca; return(Ca=t())==null?void 0:Ca.useRichGridLegacyMargin},Oa.ytLockupViewModelFlexNone=function(){return!x("lockup_flex_none_killswitch")},Oa.ytLockupViewModelCinematic=function(){return S().isCinematic},Oa.ytLockupViewModelMetadataOnPlayer=function(){return S().isMetadataOnPlayer},Oa)), "on:mousedown":sb,"on:mouseup":ib,"on:mouseleave":K,"on:mouseover":a,"on:touchstart":sb,"on:touchend":ib,"on:pointerleave":ab},D(ZK,{model:function(){var Ca,eb,Qa=S(),Bb=!!(W()&&((Ca=t())==null?0:Ca.onFocusEffect)),dc=(eb=N())==null?void 0:eb.thumbnailSize,Nb=v(),Lc=t();eb=!(y==null||!y());var Fc,wc,kd,zc;Ca=y!=null&&y()?(Fc=b())==null?void 0:(wc=Fc.themedPalette)==null?void 0:wc.darkThemePalette:(kd=b())==null?void 0:(zc=kd.themedPalette)==null?void 0:zc.lightThemePalette;if(Nb!==void 0)Fc=Nb*3/ 4;else switch(dc||"small"){case"small":Fc=4;break;case"large":Fc=12;break;default:Fc=8;}if(Bb)wc=12;else switch(Qa.collectionStackNumber){case 1:wc=8;break;case 2:wc=12;break;default:wc=void 0;}Qa=Object;Bb=Qa.assign;dc={thumbnailSize:dc||"small",triggerEvents:!0,margin:Fc,customTopExtend:wc};if((Lc=Lc==null?void 0:Lc.onFocusEffect)||Ca){if(Lc){var ld,Sd;var Jc=eb?(ld=Lc.onFocusColor)==null?void 0:ld.darkTheme:(Sd=Lc.onFocusColor)==null?void 0:Sd.lightTheme;var ec,Xa;var Mb=eb?(ec=Lc.keyLightColor)== null?void 0:ec.darkTheme:(Xa=Lc.keyLightColor)==null?void 0:Xa.lightTheme;var Na,Cb;var fc=eb?(Na=Lc.touchResponseColor)==null?void 0:Na.darkTheme:(Cb=Lc.touchResponseColor)==null?void 0:Cb.lightTheme}else Ca&&(fc=Jc=Ca.additiveBackground);Jc={background:Jc!==void 0?Ly(Jc):void 0,keyLight:Mb!==void 0?Ly(Mb):void 0};Mb=[];ld=l((Lc==null?void 0:Lc.lightingTechniques)||[]);for(Sd=ld.next();!Sd.done;Sd=ld.next())switch(Sd.value){case"LIGHTING_TECHNIQUE_KEY_LIGHT":Mb.push(2);break;case"LIGHTING_TECHNIQUE_BACK_LIGHT":Mb.push(1); break;case"LIGHTING_TECHNIQUE_FILL_LIGHT":Mb.push(3);}fc={hoverEffect:{palette:Jc,lightingTechniques:Mb},touchEffect:{palette:{background:fc!==void 0?Ly(fc):void 0}}}}else fc={};return Bb.call(Qa,{},dc,fc)}, hovered:function(){return da()}, pointerDownEvent:La.pointerDownEvent,pointerUpEvent:La.pointerUpEvent,pointerLeaveEvent:La.pointerLeaveEvent}),D(P,{cond:function(){var Ca;return W()&&da()&&((Ca=t())==null?void 0:Ca.onFocusEffect)}, then:function(){return D("div",{class:"ytLockupViewModelEndorsement"},D(OC,{data:function(){return W()}},{attributionViewModel:function(Ca){return D(iRb,{data:Ca.data, useHeavyText:!0})}}))}}),D(vD,{command:function(){var Ca; return LD((Ca=b())==null?void 0:Ca.rendererContext)}, ariaHidden:!0,tabIndex:-1,className:"ytLockupViewModelContentImage",style:function(){return(p()||S().thumbnailFixedWidth)&&S().arrangement===1?"width: "+(p()||S().thumbnailFixedWidth)+"; "+S().thumbnailWidthLimits:""}},D(OC,{data:function(){var Ca; return(Ca=b())==null?void 0:Ca.contentImage}},{thumbnailViewModel:function(Ca){return D(fRb,{data:Ca.data, aspectRatio:function(){return S().aspectRatio}, disableRounding:function(){return S().disableRounding}, width:q,hovered:function(){return da()&&!(I()&&b().itemPlayback)}, isClip:function(){var eb;return((eb=b())==null?void 0:eb.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"}, playbackRef:GQb(L),lockupExperiments:function(){return t()}})}, collectionThumbnailViewModel:function(Ca){return D(i1a,{data:Ca.data,aspectRatio:function(){return S().aspectRatio}, disableRounding:function(){return S().disableRounding}, width:q,doubleStack:function(){return S().collectionStackNumber===2}, hovered:function(){return da()&&!(I()&&b().itemPlayback)}, playbackRef:GQb(L)})}, decoratedAvatarViewModel:PR})),D("div",{class:"ytLockupViewModelMetadata"},D(OC,{data:function(){var Ca;return(Ca=b())==null?void 0:Ca.metadata}},{lockupMetadataViewModel:function(Ca){return D(dRb,{data:Ca.data, hovered:da,lockupStyle:S,lockupCommand:function(){var eb;return LD((eb=b())==null?void 0:eb.rendererContext)}, lockupAccessibilityLabel:function(){return R()}, layout:function(){var eb;return((eb=t())==null?0:eb.useInlineContentMetadata)?0:S().isCenteredMetadata?2:void 0}})}, feedAdMetadataViewModel:function(Ca){return D(nS,{data:Ca.data,noBottomMargin:function(){return!0}, useVideoLockupTopPadding:function(){return!0}, typographyBump:h})}}),D(OC,{data:function(){var Ca; return(Ca=b())==null?void 0:Ca.attachmentSlot}},{lockupAttachmentsViewModel:function(Ca){return D(JQb,{data:Ca.data, lockupStyle:S})}}))),D(OC,{data:function(){var Ca; return(Ca=b())==null?void 0:Ca.bottomAttachmentSlot}},{lockupAttachmentsViewModel:function(Ca){return D(JQb,{data:Ca.data, lockupStyle:S})}}))},"Mb"); oS.idomCompat=!0;bB(oS,"yt-lockup-view-model",{props:{data:$A,containerLayoutConfig:$A,containerType:$A,sizing:$A,protectBackground:$A,typographyBump:$A,thumbnailFixedWidth:$A,thumbnailTargetWidth:$A,force16By9ThumbnailAspectRatio:$A,className:$A,lockupExperiments:$A,elementsPerRow:$A,componentGap:$A,useOverlayStyling:$A}});var tRb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("qTLdQ"),2);a=sRb;return b.return(a)})},uRb=yD(function(){return tRb()},{debugName:"truncatedText"}); Gn(xD,function(a){a.registerLoadFn("truncatedText","qTLdQ",tRb)});function vRb(a){return{content:a!=null?a:""}} function wRb(a){return LB(a.onTap)||LD(a.rendererContext)} var zRb=O(function(a){var b=a.data;a=a.className;var c=Vo(function(){return wRb(b())},void 0,"wgKdlb"),d=D(mq,null,D(P,{cond:function(){return b().heroText||b().image}, then:function(){return D(xRb,{data:b})}}),D(yRb,{data:b, sizeSmall:function(){return b().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}})); return D("yt-video-attribute-view-model",{class:a},D("div",{class:function(){var e=b();a:switch(e.orientation){case"VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var f="ytVideoAttributeViewModelVertical";break a;default:f="ytVideoAttributeViewModelHorizontal";}a:switch(e.imageSize){case"VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var h="ytVideoAttributeViewModelImageSmall";break a;default:h="ytVideoAttributeViewModelImageLarge";}a:switch(e.imageStyle){case"VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var m="ytVideoAttributeViewModelImageSquare"; break a;case"VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":m="ytVideoAttributeViewModelImageAvatar";break a;default:m="";}a:switch(e.metadataStyle){case"VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var p="ytVideoAttributeViewModelMetadataHeader";break a;default:p="";}a:switch(e.containerStyle){case"VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var q=["ytVideoAttributeViewModelContainerCard"];x("web_timeline_view_section_list_renderer")&&q.push("ytVideoAttributeViewModelContainerCardSmallerMargin");q=q.join(" ");break a; default:q="";}return["ytVideoAttributeViewModelHost",f,h,m,p,q,wRb(e)?"ytVideoAttributeViewModelClickable":""].join(" ")}, style:GC({"background-color":function(){var e=b();if(e.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var f="";else{f=e.lightColorPalette;e=e.darkColorPalette;var h,m=((h=Fn().resolve(Cn(HB)))==null?0:h())&&e?e:f;f=(f=m==null?void 0:m.section2Color)?Jy(f):""}return f}})},D(P,{cond:c, then:function(){return D(vD,{className:"ytVideoAttributeViewModelContentContainer",command:c,role:"group",ariaLabel:function(){return b().title}},d)}, else:function(){return D("div",{class:"ytVideoAttributeViewModelContentContainer"},d)}})))},"Nb"); zRb.idomCompat=!0;function ARb(a){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:a.overflowMenuA11yLabel,onTap:function(b){b.preventDefault();b.stopPropagation();if(a.overflowMenuOnTap){var c=NB({elementsCommand:a.overflowMenuOnTap,forceNewState:!0});if(c==null?0:c.onclick)c.onclick(b)}}}} var xRb=O(function(a){var b=a.data;var c,d=(c=Fn().resolve(Cn(HB)))==null?void 0:c(),e=function(){return d&&b().darkThemeImage?b().darkThemeImage:b().image},f=Vo(function(){return ARb(b())},void 0,"K5mrxf"); return D("div",{class:"ytVideoAttributeViewModelHeroSection"},D(pw,null,D(jw,{when:e},function(){return D(eC,{data:function(){return e()}, className:"ytVideoAttributeViewModelHeroImage",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),D(jw,{when:function(){return b().heroText}},function(){return D("div",{class:"ytVideoAttributeViewModelHeroTextWrapper"},D("span",{class:"ytVideoAttributeViewModelHeroText"},function(){return b().heroText}))})),D(P,{cond:function(){return b().overflowMenuOnTap}, then:function(){return D("div",{class:"ytVideoAttributeViewModelOverflowMenu"},D(bL,{data:f,iconName:"MORE_VERT"}))}}))},"Ob"); xRb.idomCompat=!0;var yRb=O(function(a){var b=a.data;a=a.sizeSmall;var c=function(){return b().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},d=Vo(function(){return PB(NB({innertubeCommand:wRb(b())}))?"link":wRb(b())?"button":"group"},void 0,"BVSNf"),e={}; return D("div",{class:U("ytVideoAttributeViewModelMetadata",(e.ytVideoAttributeViewModelSmallFont=a,e)),role:d},D("h1",{class:"ytVideoAttributeViewModelTitle"},function(){return b().title}),D(P,{cond:function(){return b().subtitle}, then:function(){return D("h4",{class:"ytVideoAttributeViewModelSubtitle"},D(P,{cond:c,then:function(){return D(uRb,{text:function(){return vRb(b().subtitle)}, truncationText:function(){return vRb(b().subtitleTruncationText)}, maxLines:2})}, else:function(){return D("span",null,function(){return b().subtitle})}}))}}),D(P,{cond:function(){return b().secondarySubtitle}, then:function(f){return D("span",{class:"ytVideoAttributeViewModelSecondarySubtitle"},D(gC,{text:function(){var h=f();if(h!=null&&h.attachmentRuns){for(var m=[],p=l(h.attachmentRuns),q=p.next();!q.done;q=p.next())q=q.value,q.element&&m.push(Object.assign({},q,{element:Object.assign({},q.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));h=Object.assign({},h,{attachmentRuns:m})}return h}}))}}),D(OC,{data:function(){return b().buttonViewModel}}, {buttonViewModel:function(f){return D(BD,{data:f.data, className:"ytVideoAttributeViewModelButton"})}}))},"Pb"); yRb.idomCompat=!0;bB(zRb,"yt-video-attribute-view-model",{props:{data:$A,className:$A}});var pS=function(){var a=E.apply(this,arguments)||this;a.isSearch=!1;a.JSC$12968_lastScrollContainerWidth=NaN;a.pageLoadingFromNavigation=!1;a.currentIndex=0;a.supportComponentResize=!1;return a}; k(pS,E);g=pS.prototype; g.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-horizontal-card-list-renderer lockup",containerType:4,sizing:"COMPACT"}},searchRefinementCardRenderer:"ytd-search-refinement-card-renderer",compactChannelRecommendationCardRenderer:"ytd-compact-channel-recommendation-card-renderer",videoCardRenderer:"ytd-grid-video-renderer",gameCardRenderer:"ytd-game-card-renderer",miniGameCardViewModel:"ytd-mini-game-card-view-model",mediaUpsellRenderer:"ytd-media-upsell-renderer", infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",params:{showVerticalDividers:!0}},previewCardRenderer:{component:"ytd-preview-card-renderer",properties:{isSearch:"[[isSearch]]"}},macroMarkersListItemRenderer:{component:"ytd-macro-markers-list-item-renderer",properties:{useCustomColors:"[[useCustomColors]]"}},placeDataViewModel:"place-data-view-model",videoAttributeViewModel:{component:"yt-video-attribute-view-model",properties:{className:"[[is]]"}}}},"data.header":{id:"header", mapping:{titleAndButtonListHeaderRenderer:"ytd-title-and-button-list-header-renderer",richListHeaderRenderer:{component:"ytd-rich-list-header-renderer",properties:{isModernSd:"[[modernChapters]]"}}}},"data.sortFilter":{id:"sort-filter",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},"data.button":{id:"header-button",mapping:{buttonRenderer:"ytd-button-renderer",menuRenderer:"ytd-menu-renderer"}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer", properties:{"on-tap":"[[boundPrevClick]]"},attributes:{arrow:!0}}},initialRenderPriority:0,waitForSignal:"eocs"},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},attributes:{arrow:!0}}}},"data.footerButton":{id:"footer-section",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer", params:{shelfDismissal:!0}}}}}}; g.attached=function(){document.addEventListener("yt-page-type-changed",It(this,this.onPageChange))}; g.detached=function(){document.removeEventListener("yt-page-type-changed",It(this,this.onPageChange))}; g.getItemsPath=function(){return"data.cards"}; g.onIronResize=function(){this.updateListStyles()}; g.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var a;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(a=this.data)==null?void 0:a.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=!!this.centerItems}; g.computeCardListStyle=function(a){return a||null}; g.computeEmpty=function(a){return!this.get("cards.length",a)}; g.computeThumbnailStyle=function(a){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",a)||null}; g.computeHasSubtitle=function(a){return!!this.get("header.richListHeaderRenderer.subtitle",a)}; g.computeInitialCountNumber=function(a){return this.hasSquareMiniApp&&a==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&a==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:a==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:a==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:a==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&a==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?8: 4}; g.computeUseFloorScrolling=function(a){return a==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp}; g.computeHasGameCard=function(a){return(a=this.get("cards",a))?a.some(function(b){return b.gameCardRenderer}):!1}; g.computeCenterHeaderTitle=function(a){return!(a==null||!a.centerHeaderTitle)}; g.computeHasPortraitMiniApp=function(a){return(a=a==null?void 0:a.cards)?a.some(function(b){return b.miniGameCardViewModel&&b.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1}; g.computeHasSquareMiniApp=function(a){return(a=a==null?void 0:a.cards)?a.some(function(b){return b.miniGameCardViewModel&&b.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1}; g.computeHasSkinnyWidthPortraitMiniApp=function(a){return(a=a==null?void 0:a.cards)?a.some(function(b){return b.miniGameCardViewModel&&b.miniGameCardViewModel.width===135}):!1}; g.computeCenterItems=function(a){return!!a}; g.computeHasInfoPanel=function(a){var b;return a==null?void 0:(b=a.cards)==null?void 0:b.some(function(c){return c.infoPanelContentRenderer})}; g.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()}; g.getItemByIndex=function(a){var b=this.items.children;return b&&b.length>a?b[a]:void 0}; g.onPageChange=function(){var a=this;this.pageLoadingFromNavigation=!0;Hl(0,function(){a.pageLoadingFromNavigation=!1;Yu(a.hostElement,"yt-terminate-video-preview-action")},8)}; g.updateListStyles=function(){if(this.scrollContainer!==void 0){var a=this.scrollContainer.clientWidth;a!==this.JSC$12968_lastScrollContainerWidth&&(this.JSC$12968_lastScrollContainerWidth=a,Ft(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(a*.8,415)+"px"}),Gt(this.hostElement,"iron-resize"))}}; ba.Object.defineProperties(pS.prototype,{modernChapters:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return!!((a=this.data)==null?0:(b=a.cards)==null?0:(c=b[0])==null?0:c.macroMarkersListItemRenderer)}}, hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return!!((a=this.data)==null?0:(b=a.cards)==null?0:(c=b[0])==null?0:c.videoAttributeViewModel)}}, modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return!!((a=this.data)==null?0:(b=a.cards)==null?0:(c=b[0])==null?0:c.infoPanelContentRenderer)}}}); pS.prototype.dataChanged=pS.prototype.dataChanged;pS.prototype.onIronResize=pS.prototype.onIronResize;n([F(Yz.YtRendererBehavior),r("design:type",Object)],pS.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],pS.prototype,"ytRendererstamperBehavior",void 0);n([F(JQ.YtdHorizontalListBehavior),r("design:type",Object)],pS.prototype,"ytdHorizontalListBehavior",void 0);n([F(NQ),r("design:type",Object)],pS.prototype,"ytdDismissibleItemBehavior",void 0); n([M(),r("design:type",Object)],pS.prototype,"data",void 0);n([M({value:!1,reflectToAttribute:!0}),r("design:type",Boolean)],pS.prototype,"useCustomColors",void 0);n([M({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),r("design:type",Object)],pS.prototype,"cardListStyle",void 0);n([M({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),r("design:type",Boolean)],pS.prototype,"empty",void 0); n([M({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),r("design:type",Boolean)],pS.prototype,"hasSubtitle",void 0);n([M({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),r("design:type",Boolean)],pS.prototype,"thumbnailStyle",void 0);n([M({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),r("design:type",Boolean)],pS.prototype,"hasGameCard",void 0); n([M({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),r("design:type",Boolean)],pS.prototype,"centerHeaderTitle",void 0);n([M({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),r("design:type",Boolean)],pS.prototype,"hasPortraitMiniApp",void 0);n([M({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),r("design:type",Boolean)],pS.prototype,"hasSquareMiniApp",void 0); n([M({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),r("design:type",Boolean)],pS.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);n([M({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),r("design:type",Boolean)],pS.prototype,"hasInfoPanel",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],pS.prototype,"isSearch",void 0); n([M({reflectToAttribute:!0}),r("design:type",Boolean)],pS.prototype,"inlineStructuredDescription",void 0);n([Tt("#scroll-container"),r("design:type",HTMLDivElement)],pS.prototype,"scrollContainer",void 0);n([M({computed:"computeInitialCountNumber(data.style.type)"}),r("design:type",Number)],pS.prototype,"initialCount",void 0);n([M({computed:"computeUseFloorScrolling(data.style.type)"}),r("design:type",Boolean)],pS.prototype,"useFloorScrolling",void 0); n([M({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),r("design:type",Boolean)],pS.prototype,"centerItems",void 0);n([M(),r("design:type",Object)],pS.prototype,"pageLoadingFromNavigation",void 0);n([M(),r("design:type",Object)],pS.prototype,"currentIndex",void 0);n([M(),r("design:type",Number)],pS.prototype,"scrollCount",void 0);n([M(),r("design:type",Object)],pS.prototype,"supportComponentResize",void 0); n([Tt("#items"),r("design:type",HTMLDivElement)],pS.prototype,"items",void 0);n([Kt("iron-resize"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],pS.prototype,"onIronResize",null);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],pS.prototype,"dataChanged",null);n([M({reflectToAttribute:!0}),H("data"),r("design:type",Boolean),r("design:paramtypes",[])],pS.prototype,"modernChapters",null); n([M({reflectToAttribute:!0}),H("data"),r("design:type",Boolean),r("design:paramtypes",[])],pS.prototype,"hasVideoAttributeViewModels",null);n([M({reflectToAttribute:!0}),H("data"),r("design:type",Boolean),r("design:paramtypes",[])],pS.prototype,"modernInfoPanels",null);n([gu({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],pS); Tu(pS,"ytd-horizontal-card-list-renderer",function(){if(mQb!==void 0)return mQb;var a=document.createElement("template");Q(a,"
\n
\n

\n
\n
\n
\n
\n \n
\n
\n
\n \n
\n\n
\n
");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return mQb=a},{mode:2});var BRb=O(function(a){var b=a.data;var c={};return D("video-summary-content-view-model",{class:U("videoSummaryContentViewModelHost",a.className,(c.videoSummaryContentViewModelHostIsSearch=a.isSearch,c))},D(mw,{each:function(){var d=[],e=b().paragraphs;if(e==null||!e.length)return[];for(var f=0;f0&&(m=z(e[f-1],Vpb));m&&!!m.marker===!!h.marker?d[d.length-1].paragraphs.push(h):d.push({isList:!!h.marker,paragraphs:[h]})}return d}, keyBy:"INDEX"},function(d){return D(P,{cond:function(){return d().isList}, then:function(){return D("ul",{class:"videoSummaryContentViewModelList"},D(mw,{each:function(){return d().paragraphs}, keyBy:"INDEX"},function(e){return D("li",{class:"videoSummaryContentViewModelListItem"},D(gC,{text:function(){return e().text}}))}))}, else:function(){return D("div",{class:"videoSummaryContentViewModelParagraphContainer"},D(mw,{each:function(){return d().paragraphs}, keyBy:"INDEX"},function(e){return D("p",{class:"videoSummaryContentViewModelParagraph"},D(gC,{text:function(){return e().text}}))}))}})}),D(P,{cond:function(){return!!z(b().likeButtonViewModel,Tpb)&&!!z(b().dislikeButtonViewModel,Spb)}, then:function(){return D("div",{class:"videoSummaryContentViewModelBottomButtonsContainer"},D("div",{class:"videoSummaryContentViewModelLikeButton"},D(yQ,{data:function(){return z(b().likeButtonViewModel,Tpb)}, disableIconAnimation:!0})),D(xQ,{data:function(){return z(b().dislikeButtonViewModel,Spb)}}))}}))},"Qb"); BRb.idomCompat=!0;bB(BRb,"video-summary-content-view-model",{props:{data:$A,isSearch:$A,className:$A}});var qS=function(){var a=E.apply(this,arguments)||this;var b,c;a.isExpanded=(c=(b=a.data)==null?void 0:b.isExpanded)!=null?c:!1;a.disableExpand=!1;a.showProminentLabel=!1;a.showRightSideLabel=!0;a.toggleExpandableContent=function(d){a.disableExpand||(d.stopPropagation(),BO(lt(d),a.hostElement,["info","expanded-subtitle"])||(a.isExpanded=!a.isExpanded,a.ytRendererBehavior.logExplicitClick(a.data),a.cardList&&ms(a,function(){ln(a.hostElement)})))}; a.useSquareThumbnail=!1;a.startX=0;return a}; k(qS,E);g=qS.prototype;g.computeUseSquareThumbnail=function(){var a;return(a=this.data)==null?void 0:a.useSquareThumbnail}; g.configureRendererStamper=function(){return{"data.expandedContent":{id:"content",mapping:{horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]",useCustomColors:"[[useCustomColors]]"}},horizontalListRenderer:{component:"yt-horizontal-list-renderer",properties:{isSearch:"[[isSearch]]"},params:{isExpandableContent:!0}},videoSummaryContentViewModel:{component:"video-summary-content-view-model",params:{isExpandableContent:!0},properties:{isSearch:"[[isSearch]]"}}, lockupViewModel:{component:"yt-lockup-view-model",params:{isExpandableContent:!0,className:"ytd-expandable-metadata-renderer lockup",thumbnailFixedWidth:"168px",containerType:3,sizing:"COMPACT"}}}},"data.expandButton":{id:"expand",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-click":"[[toggleExpandableContent]]"}}}},"data.collapseButton":{id:"collapse",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-click":"[[toggleExpandableContent]]"}}}},"data.infoButton":{id:"info", mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.expandedMenuFooter":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}}}}; g.dataChanged=function(){if(this.data){var a,b;this.isExpanded=(b=(a=this.data)==null?void 0:a.isExpanded)!=null?b:!1;var c,d,e,f;if(a=this.isDarkTheme()?(c=this.data)==null?void 0:(d=c.colorData)==null?void 0:d.darkColorPalette:(e=this.data)==null?void 0:(f=e.colorData)==null?void 0:f.lightColorPalette){var h,m;if((h=this.data)==null?0:(m=h.colorData)==null?0:m.vibrantColorPalette)a.section1Color=this.data.colorData.vibrantColorPalette.section1Color,aM(this.hostElement,a)}}}; g.isExpandedChanged=function(){this.isExpanded&&this.cardList&&Gt(this.cardList,"iron-resize")}; g.computeIsExpanded=function(a){return!!a.isExpanded}; g.computeShowProminentLabel=function(a,b){var c;return!!(a==null?0:(c=a.header)==null?0:c.showLeadingCollapsedLabel)&&!b}; g.computeShowRightSideLabel=function(a,b){var c;return!(a==null?0:(c=a.header)==null?0:c.showLeadingCollapsedLabel)&&!b}; g.captureContentClick=function(a){this.disableExpand||BO(lt(a),this.hostElement,["items"])||AO(lt(a),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)}; g.timestampClick=function(a){a.stopPropagation();var b,c;(a=(b=this.data)==null?void 0:(c=b.header)==null?void 0:c.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(a)}; g.onDown=function(a){a.stopPropagation();this.startX=a.detail?a.detail.x:0}; g.onUp=function(a){this.skipKeyInteraction(a)&&a.stopPropagation()}; g.skipKeyInteraction=function(a){var b=a.target;if((b==null?void 0:b.id)==="scroll-container"||(b==null?void 0:b.id)==="items"||a.detail&&a.detail.x!==this.startX)return!0;a=lt(a);a=l(a);for(b=a.next();!b.done;b=a.next()){b=b.value;if(b===this.hostElement)break;if(b.hasAttribute&&b.hasAttribute("skip-key-interaction"))return!0}return!1}; g.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")}; ba.Object.defineProperties(qS.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var a;return!!z((a=this.data)==null?void 0:a.expandedContent,Upb)}}, hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var a;return!!z((a=this.data)==null?void 0:a.expandedContent,vsb)}}, useCustomColors:{configurable:!0,enumerable:!0,get:function(){var a,b;return!((a=this.data)==null||!a.useCustomColors)&&!((b=this.data)==null||!b.colorData)&&!this.isWatch}}, showInfoButton:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.infoButton)&&!!this.isExpanded}}, showTimestamp:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!((a=this.data)==null?0:(b=a.header)==null?0:b.collapsedJumpToTimestamp)&&!this.isExpanded}}, showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!((a=this.data)==null?0:(b=a.header)==null?0:b.expandedSubtitle)&&this.isExpanded}}, expandedSubtitleTarget:{configurable:!0,enumerable:!0,get:function(){var a,b,c=(a=this.data)==null?void 0:(b=a.header)==null?void 0:b.expandedSubtitleTapCommand,d;return((d=c&&z(c,Qs))==null?void 0:d.target)==="TARGET_NEW_WINDOW"?"_blank":null}}, expandedSubtitleRel:{configurable:!0,enumerable:!0,get:function(){var a,b,c=(a=this.data)==null?void 0:(b=a.header)==null?void 0:b.expandedSubtitleTapCommand,d;return((d=c&&z(c,Qs))==null?void 0:d.target)==="TARGET_NEW_WINDOW"?"noopener":null}}, showThumbnail:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!((a=this.data)==null?0:(b=a.header)==null?0:b.collapsedThumbnail)&&!this.isExpanded}}, useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}}); qS.prototype.onUp=qS.prototype.onUp;qS.prototype.onDown=qS.prototype.onDown;qS.prototype.isExpandedChanged=qS.prototype.isExpandedChanged;qS.prototype.dataChanged=qS.prototype.dataChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],qS.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],qS.prototype,"ytRendererstamperBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],qS.prototype,"ytComponentBehavior",void 0); n([M(),r("design:type",Object)],qS.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],qS.prototype,"isExpanded",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],qS.prototype,"disableExpand",void 0);n([M({value:!1}),r("design:type",Boolean)],qS.prototype,"isSearch",void 0);n([M({value:!1,reflectToAttribute:!0}),r("design:type",Boolean)],qS.prototype,"isWatch",void 0); n([M({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),r("design:type",Object)],qS.prototype,"showProminentLabel",void 0);n([M({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),r("design:type",Object)],qS.prototype,"showRightSideLabel",void 0);n([M({value:!1,reflectToAttribute:!0}),H("data"),r("design:type",Boolean),r("design:paramtypes",[])],qS.prototype,"hasVideoSummary",null); n([M({value:!1,reflectToAttribute:!0}),H("data"),r("design:type",Boolean),r("design:paramtypes",[])],qS.prototype,"hasLockupViewModel",null);n([M({reflectToAttribute:!0}),H("data","isWatch"),r("design:type",Boolean),r("design:paramtypes",[])],qS.prototype,"useCustomColors",null);n([M({reflectToAttribute:!0}),H("data","isExpanded"),r("design:type",Boolean),r("design:paramtypes",[])],qS.prototype,"showInfoButton",null); n([H("data","isExpanded"),r("design:type",Boolean),r("design:paramtypes",[])],qS.prototype,"showTimestamp",null);n([H("data","isExpanded"),r("design:type",Boolean),r("design:paramtypes",[])],qS.prototype,"showExpandedSubtitle",null);n([H("data"),r("design:type",Object),r("design:paramtypes",[])],qS.prototype,"expandedSubtitleTarget",null);n([H("data"),r("design:type",Object),r("design:paramtypes",[])],qS.prototype,"expandedSubtitleRel",null); n([H("data","isExpanded"),r("design:type",Boolean),r("design:paramtypes",[])],qS.prototype,"showThumbnail",null);n([M({reflectToAttribute:!0}),H("data"),r("design:type",Object),r("design:paramtypes",[])],qS.prototype,"useVppShoppingDestinationStyle",null);n([M(),r("design:type",Object)],qS.prototype,"toggleExpandableContent",void 0);n([Tt("ytd-horizontal-card-list-renderer"),r("design:type",Object)],qS.prototype,"cardList",void 0); n([M({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),r("design:type",Object)],qS.prototype,"useSquareThumbnail",void 0);n([cu("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],qS.prototype,"dataChanged",null);n([Lt("isExpanded"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],qS.prototype,"isExpandedChanged",null); n([Kt("down"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],qS.prototype,"onDown",null);n([Kt("up"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],qS.prototype,"onUp",null);n([gu({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],qS); Tu(qS,"ytd-expandable-metadata-renderer",function(){if(XOb!==void 0)return XOb;var a=document.createElement("template");Q(a,"
\n
\n \n \n \n \n \n
\n
\n \n \n \n \n
\n
\n\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return XOb=a},{mode:1});var CRb,DRb=function(){if(CRb!==void 0)return CRb;var a=document.createElement("template");Q(a,"
\n \n \n
\n
\n
\n

\n \n \n \n \n \n \n

\n
\n
\n \n \n
\n \n \n \n \n
\n
\n
\n
\n
\n\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return CRb=a};var ERb={};function FRb(a){switch(a){case"tiny":return 16;case"extra-small":return 24;case"small":return 32;case"medium":return 36;case"48":return 48;case"large":return 56;case"extra-large":return 72;case"extra-extra-large":return 72;case"giant":return 72;default:return 0;}} function GRb(a){var b=a.numAvatarsInCluster;switch(a.clusterSize){case"small":return b===2?22:18;case"40":return b===2?24:22;default:return b===2?24:20;}} ;function HRb(a){switch(a){case"AVATAR_SIZE_XXS":return 16;case"AVATAR_SIZE_XS":return 24;case"AVATAR_SIZE_S":return 32;case"AVATAR_SIZE_M":return 36;case"AVATAR_SIZE_40":return 40;case"AVATAR_SIZE_48":return 48;case"AVATAR_SIZE_L":return 56;case"AVATAR_SIZE_XL":return 72;case"AVATAR_SIZE_XXL":return 120;case"AVATAR_SIZE_XXXL":return 160;default:return 0;}} function IRb(a){switch(a){case"AVATAR_SIZE_XS":return"ytAvatarStackViewModelAvatarSizeExtraSmall";case"AVATAR_SIZE_S":return"ytAvatarStackViewModelAvatarSizeSmall";case"AVATAR_SIZE_M":return"ytAvatarStackViewModelAvatarSizeMedium";case"AVATAR_SIZE_48":return"ytAvatarStackViewModelAvatarSize48";case"AVATAR_SIZE_L":return"ytAvatarStackViewModelAvatarSizeLarge";case"AVATAR_SIZE_XL":return"ytAvatarStackViewModelAvatarSizeExtraLarge";case"AVATAR_SIZE_XXL":return"ytAvatarStackViewModelAvatarSizeExtraExtraLarge"; case"AVATAR_SIZE_XXXL":return"ytAvatarStackViewModelAvatarSizeGiant";default:return"";}} function JRb(a){var b=a.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",c,d=a.avatars&&a.avatars.length>0?(c=z(a.avatars[0],YJ))==null?void 0:c.avatarImageSize:"AVATAR_SIZE_UNKNOWN";c=HRb(d)||0;if(b){var e,f=(e=a.avatarClusterSize)!=null?e:"AVATAR_SIZE_M";b=HRb(f);var h,m,p=Math.min((m=(h=a.avatars)==null?void 0:h.length)!=null?m:0,4),q;return{avatars:((q=a.avatars)==null?void 0:q.slice(0,4))||[],avatarSizeInPx:c,avatarStackStyle:{width:b+"px",height:b+"px",position:"relative"},avatarStyle:function(u){var v= GRb({clusterSize:CIb(f),numAvatarsInCluster:p,avatarIndex:u});var w=HRb(f);p===3&&u===2?(w=(w-v)/2,w=(Vk("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*w):w=void 0;return{position:"absolute",top:p===2&&u===1||p===3&&u===2||p===4&&u>=2?"0":void 0,bottom:p===2&&u===0||p>2&&u<2?"0":void 0,left:p===2&&u===1||p>2&&(u===1||u===3)?"0":void 0,right:p<=3&&u===0||p===4&&(u===0||u===2)?"0":void 0,transform:w?"translateX("+w+"px)":void 0,width:v+"px",height:v+"px"}}, avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(u){return{clusterSize:CIb(a.avatarClusterSize),numAvatarsInCluster:p,avatarIndex:u}}, avatarButtonCustomClassName:void 0}}var t;return{avatars:((t=a.avatars)==null?void 0:t.slice())||[],avatarSizeInPx:c,avatarStackClass:"ytAvatarStackViewModelAvatars",avatarClass:IRb(d),avatarStyle:function(){return{}}, avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"ytAvatarStackViewModelAvatarButton"}} ;var NR=O(function(a){var b=function(){var m;return Object.assign({},a.data(),(m=a.overrides)==null?void 0:m.call(a))},c=function(){return KD(b().rendererContext)},d=function(){var m=b().avatars,p,q; return(q=(p=(m==null?0:m[0])?z(m[0],YJ):void 0)==null?void 0:p.avatarImageSize)!=null?q:"AVATAR_SIZE_UNKNOWN"},e=function(){return JRb(b())},f=function(){if(b().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var m=void 0;else if((m=a.decorations)==null?0:m.call(a))m=a.decorations();else{m=b();var p=0;m.avatars&&(p+=m.avatars.length);m.decoratedText&&(p+=1);m=p>1?[3]:[]}return m},h={}; return D("yt-avatar-stack-view-model",{el:dB(MD(function(){return b().rendererContext})), class:U("ytAvatarStackViewModelHost",a.className,(h.ytAvatarStackViewModelTappable=c,h.ytAvatarStackViewModelIsOverlay=a.isOverlay,h.ytAvatarStackViewModelMediumText=a.useMediumText,h)),tabindex:function(){return c()?0:void 0}, role:function(){return c()?"link":void 0}, "aria-label":function(){var m,p;return(p=(m=z(b().rendererContext,dy))==null?void 0:m.label)!=null?p:""}},D(P,{cond:function(){var m; return b().avatars&&!((m=a.hideAvatar)==null?0:m.call(a))}, then:function(){return D("div",{class:"ytAvatarStackViewModelAvatars"},D(P,{cond:function(){return b().decoratedText}, then:function(m){var p={};return D("div",{class:U("ytAvatarStackViewModelTextContainer",(p.ytAvatarStackViewModelTextContainerThinBorder=function(){return d()==="AVATAR_SIZE_XXS"||d()==="AVATAR_SIZE_XS"},p.ytAvatarStackViewModelTextContainerThinBorderOverlay=function(){var q; return((q=a.isOverlay)==null?void 0:q.call(a))&&(d()==="AVATAR_SIZE_XXS"||d()==="AVATAR_SIZE_XS")},p)), style:GC({width:function(){return e().avatarSizeInPx+"px"}, height:function(){return e().avatarSizeInPx+"px"}})},D(gC,{text:m, className:"ytAvatarStackViewModelAvatarDecoratedText"}))}}),D("div",{style:function(){return GC(e().avatarStackStyle)()}, class:function(){return e().avatarStackClass}},D(OC,{data:function(){return e().avatars.reverse()}},{avatarViewModel:function(m,p){return D("div",{style:function(){var q,t; return GC((t=(q=e()).avatarStyle)==null?void 0:t.call(q,p()))()}, class:function(){return e().avatarClass}},D(zD,{data:m.data, decorations:f,avatarButtonCustomClassName:function(){return e().avatarButtonCustomClassName}, isOverlay:a.isOverlay,clusterLayoutConfig:function(){var q,t;return(t=(q=e()).clusterLayoutConfig)==null?void 0:t.call(q,p())}}))}, decoratedAvatarViewModel:function(m,p){return D("div",{style:function(){var q,t;return GC((t=(q=e()).avatarStyle)==null?void 0:t.call(q,p()))()}, class:function(){return e().avatarClass}},D(PR,{data:m.data}))}})))}}),D(P,{cond:function(){return b().text}, then:function(m){return D(gC,{text:m,className:"ytAvatarStackViewModelAvatarStackText",linkInheritColor:!0})}}))},"Rb"); NR.idomCompat=!0;bB(NR,"yt-avatar-stack-view-model",{props:{className:$A,data:$A,overrides:$A,isOverlay:$A,useMediumText:$A,decorations:$A,hideAvatar:$A}});kE("itemSectionRenderer","videoRenderer","ytd-video-renderer");var rS=function(){var a=E.apply(this,arguments)||this;a.disableExpand=!1;a.shouldShowChannelInfo=!1;a.hasAttributedBylineText=!1;a.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};a.videoPreviewDataProvider=function(){return VPb(a.data)}; return a}; k(rS,E);g=rS.prototype;g.computeUseSearchUi=function(){var a,b;return this.isSearch||((a=this.data)==null?void 0:(b=a.style)==null?void 0:b.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"}; g.computeUseStandardConfigWidth=function(){return this.useSearchUi||this.hasStandardContainerLayoutConfigWidth()}; g.computeUseThreeLineTitle=function(){var a;return((a=this.data)==null?void 0:a.maxTitleLines)===3}; g.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:fyb?void 0:0},"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.expandableMetadata":{id:"expandable-metadata", mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",properties:{isSearch:"[[useSearchUi]]",disableExpand:"[[disableExpand]]"}}}},"data.avatar":{id:"avatar",mapping:{avatarStackViewModel:"yt-avatar-stack-view-model"}},"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}}; g.attached=function(){this.updateInlinePreviewHoverListeners()}; g.detached=function(){this.clearInlinePreviewHoverListeners()}; g.classNameChanged=function(a,b){b&&Ct(this.hostElement,b,!1);a&&Ct(this.hostElement,a,!0)}; g.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;Dt(wt(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var a=this.get("data.buttons.buttonRenderer.serviceEndpoint"),b;a&&((b=z(a.commandMetadata,Bmb))==null?0:b.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(a);this.updateInlinePreviewHoverListeners()}; g.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.inlinePreviewHoverListener=SR({mediaRenderer:this,lockupElement:this.dismissibleMedia,thumbnailElement:this.thumbnail})}; g.clearInlinePreviewHoverListeners=function(){var a;(a=this.inlinePreviewHoverListener)==null||VR(a)}; g.onTextWrapperClick=function(a){var b,c,d=this.hideTranslation?(b=this.data)==null?void 0:b.untranslatedNavigationEndpoint:(c=this.data)==null?void 0:c.navigationEndpoint;b=BO(lt(a),this.hostElement,["expandable-metadata"]);!d||b||AO(lt(a),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||Gt(this.hostElement,"yt-navigate",{endpoint:d})}; g.computeThumbnailWidth=function(a,b,c,d,e){return d?e==="MASSIVE"?600:e==="BIG"?500:e==="MEDIUM"?450:420:c?360:b?128:a?210:246}; g.computeUseBiggerThumbs=function(a){return a&&x("enable_desktop_search_bigger_thumbs")}; g.computeShouldShowChannelInfo=function(){return this.useSearchUi}; g.computeHasAttributedBylineText=function(){var a;return!((a=this.data)==null||!a.attributedBylineText)}; g.handleHideItemSectionVideosByIdCommand=function(a){var b;a=(b=z(a,Ppb))==null?void 0:b.videoId;this.data&&this.data.videoId===a&&(this.isHidden=!0)}; g.getMetadataSnippetContainerClass=function(a){return a?"metadata-snippet-container-one-line":"metadata-snippet-container"}; g.computeTitleText=function(a,b,c){return a?c:b}; g.computeDescriptionSnippet=function(a,b,c){return a?c:b}; g.computeSnippetText=function(a,b,c){return a?c:b}; g.computeNavigationEndpoint=function(a,b){return a?b==null?void 0:b.untranslatedNavigationEndpoint:b==null?void 0:b.navigationEndpoint}; g.hideInlineTitleIcon=function(a,b){return a||!b}; g.hasStandardContainerLayoutConfigWidth=function(){var a;return((a=this.containerLayoutConfig)==null?void 0:a.responsiveSize)==="RESPONSIVE_SIZE_STANDARD"}; ba.Object.defineProperties(rS.prototype,{hideTranslation:{configurable:!0,enumerable:!0,get:function(){return this.searchVideoResultEntity?!!this.searchVideoResultEntity.hasOptedOutTranslation:!1}}, hiddenBadgeGroups:{configurable:!0,enumerable:!0,get:function(){if(this.searchVideoResultEntity){var a;return(a=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?a:[]}return[]}}, shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return!!(this==null?0:(a=this.data)==null?0:(b=a.channelThumbnailSupportedRenderers)==null?0:(c=b.channelThumbnailWithLinkRenderer)==null?0:c.thumbnail)&&!this.useAvatar}}, useAvatar:{configurable:!0,enumerable:!0,get:function(){var a;return!!z((a=this.data)==null?void 0:a.avatar,wsb)}}, isHovered:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.inlinePreviewHoverListener)==null?0:UR(a))&&!!this.ytdLockupBehavior.lockupIsHovered}}}); ba.Object.defineProperties(rS,{template:{configurable:!0,enumerable:!0,get:function(){return DRb()}}}); rS.prototype.dataChanged=rS.prototype.dataChanged;rS.prototype.classNameChanged=rS.prototype.classNameChanged;n([F(mz.YtComponentBehavior),r("design:type",Object)],rS.prototype,"ytComponentBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],rS.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],rS.prototype,"ytRendererstamperBehavior",void 0);n([F(NQ),r("design:type",Object)],rS.prototype,"ytdDismissibleItemBehavior",void 0); n([F(bR),r("design:type",Object)],rS.prototype,"ytdLockupBehavior",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],rS.prototype,"ytActionHandlerBehavior",void 0);n([F(kC),r("design:type",Object)],rS.prototype,"ytdReduxBehavior",void 0);n([M(),r("design:type",Object)],rS.prototype,"data",void 0);n([M(),r("design:type",String)],rS.prototype,"className",void 0);n([M({reflectToAttribute:!0,value:!1}),r("design:type",Boolean)],rS.prototype,"isBackstageVideo",void 0); n([M({reflectToAttribute:!0,value:!1}),r("design:type",Boolean)],rS.prototype,"isPostCompactVideo",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],rS.prototype,"isHistory",void 0);n([M({reflectToAttribute:!0,value:!1}),r("design:type",Boolean)],rS.prototype,"isRichGridVideoPost",void 0);n([M({reflectToAttribute:!0,value:!1}),r("design:type",Boolean)],rS.prototype,"isHidden",void 0);n([M({reflectToAttribute:!0,value:!1}),r("design:type",Boolean)],rS.prototype,"isSearch",void 0); n([M(),r("design:type",Object)],rS.prototype,"containerLayoutConfig",void 0);n([M({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),r("design:type",Boolean)],rS.prototype,"useSearchUi",void 0);n([M({reflectToAttribute:!0,value:!1,computed:"computeUseStandardConfigWidth(useSearchUi, containerLayoutConfig)"}),r("design:type",Boolean)],rS.prototype,"useStandardConfigWidth",void 0); n([M({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),r("design:type",Boolean)],rS.prototype,"useThreeLineTitle",void 0);n([M({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),r("design:type",Boolean)],rS.prototype,"useBiggerThumbs",void 0);n([M({value:!1}),r("design:type",Object)],rS.prototype,"disableExpand",void 0);n([M({computed:"computeShouldShowChannelInfo(useSearchUi)"}),r("design:type",Object)],rS.prototype,"shouldShowChannelInfo",void 0); n([M({computed:"computeHasAttributedBylineText(data)"}),r("design:type",Object)],rS.prototype,"hasAttributedBylineText",void 0);n([M({reflectToAttribute:!0,value:function(){return ml("desktop_search_bigger_thumbs_style")}}), r("design:type",String)],rS.prototype,"biggerThumbsStyle",void 0);n([M({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),r("design:type",String)],rS.prototype,"inlineTitleIcon",void 0);n([M({computed:"computeNavigationEndpoint(hideTranslation, data)"}),r("design:type",Object)],rS.prototype,"computedNavigationEndpoint",void 0);n([M({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(a,b){return yA(a.entities,"searchVideoResultEntity",b)}}), r("design:type",Object)],rS.prototype,"searchVideoResultEntity",void 0);n([Tt("ytd-thumbnail"),r("design:type",HTMLElement)],rS.prototype,"thumbnail",void 0);n([Tt("#dismissible"),r("design:type",HTMLElement)],rS.prototype,"dismissibleMedia",void 0);n([cu("className"),r("design:type",Function),r("design:paramtypes",[String,String]),r("design:returntype")],rS.prototype,"classNameChanged",null); n([cu("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],rS.prototype,"dataChanged",null);n([H("searchVideoResultEntity"),r("design:type",Boolean),r("design:paramtypes",[])],rS.prototype,"hideTranslation",null);n([H("searchVideoResultEntity"),r("design:type",Array),r("design:paramtypes",[])],rS.prototype,"hiddenBadgeGroups",null);n([H("data","useAvatar"),r("design:type",Boolean),r("design:paramtypes",[])],rS.prototype,"shouldShowChannelThumbnail",null); n([H("data"),r("design:type",Boolean),r("design:paramtypes",[])],rS.prototype,"useAvatar",null);n([H("lockupIsHovered"),r("design:type",Boolean),r("design:paramtypes",[])],rS.prototype,"isHovered",null);n([gu({is:"ytd-video-renderer",disableElementRegistration:!0})],rS);Uu()(rS,"ytd-video-renderer",function(){return DRb()},{mode:2, allowedProps:["data","containerLayoutConfig","className"]});var sS=function(){var a=E.apply(this,arguments)||this;a.editDialog=null;a.roundedContainer=!0;a.isLoading=!1;a.isRichGrid=!1;a.isRichGridRepost=!1;a.reduceSidePaddings=x("reduce_side_paddings_in_shelf");a.spinnerEl=null;return a}; k(sS,E);g=sS.prototype; g.configureRendererStamper=function(){return{"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.authorCommentBadge":{id:"author-comment-badge",mapping:{authorCommentBadgeRenderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",properties:{isPostCompactVideo:"[[usesCompactLockup]]", isRichGridVideoPost:"[[isRichGrid]]"}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isPostCompactPlaylist:"[[usesCompactLockup]]"}},uploadedVideoRenderer:{component:"ytd-post-uploaded-video-renderer"}}},"data.voteButton":{id:"vote-button",mapping:{buttonRenderer:"ytd-button-renderer"}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}}, dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}}; g.contentTextChanged=function(){this.expander.reset()}; g.dataChanged=function(){var a=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var b=0,c=this.data.actions&&this.data.actions.length;b=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()}; g.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.spinnerEl||(this.spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),wt(this.hostElement).appendChild(this.spinnerEl));this.spinnerEl&&(this.spinnerEl.active=this.isLoading)}; g.onYtNavigate=function(a){var b=this.get("updateCommentDialogEndpoint",a.detail.endpoint);b&&(this.openEditDialog(b),a.stopPropagation())}; g.onYtCommentboxDismiss=function(){this.editDialog=null}; g.onYtCommentPollRevert=function(a,b){b&&this.updatePoll(b.selectedChoiceIndex)}; g.onYtServiceRequestSent=function(a,b){var c;b.endpoint&&(z(b.endpoint,Qrb)||z(b.endpoint,WJ)&&((c=z(b.endpoint,WJ))==null||!c.clientActions))&&(this.isLoading=!0);if(b.actions)for(a=0;a\n
\n
\n
\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);gOb=a}a=gOb;return a},{allowedProps:["data", "isRichGrid","isRichGridRepost"],mode:1});var KRb;var LRb;var tS=function(){return E.apply(this,arguments)||this}; k(tS,E);tS.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],tS.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],tS.prototype,"ytRendererstamperBehavior",void 0);n([F(JQ.YtdHorizontalListBehavior),r("design:type",Object)],tS.prototype,"ytdHorizontalListBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],tS.prototype,"componentBehavior",void 0);n([M(),r("design:type",Object)],tS.prototype,"data",void 0); n([M({value:"$.items.children"}),r("design:type",String)],tS.prototype,"itemsPath",void 0);n([M({value:1}),r("design:type",Number)],tS.prototype,"initialCount",void 0);n([M({reflectToAttribute:!0,value:x("enable_community_page_on_desktop")}),r("design:type",Boolean)],tS.prototype,"useSmallerPostImageAttachments",void 0);n([M(),r("design:type",String)],tS.prototype,"surface",void 0);n([gu({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],tS); Tu(tS,"ytd-post-multi-image-renderer",function(){if(LRb!==void 0)return LRb;var a=document.createElement("template");Q(a,"
\n
\n \n
\n
\n
\n
\n
\n \n
\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return LRb=a},{mode:2});var MRb={"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},authorCommentBadge:{id:"author-comment-badge",mapping:{renderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}},backstageImageRenderer:{component:"ytd-backstage-image-renderer", properties:{surface:"[[data.surface]]"}},postMultiImageRenderer:{component:"ytd-post-multi-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",params:{isBackstagePlaylist:!0}}}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}, uS=function(){var a=E.apply(this,arguments)||this;a.hasInlineCommentSection=!1;a.editDialog=null;a.isLoading=!1;a.shouldHideAuthor=!1;a.shouldShowVideoTime=!1;a.isInEngagementPanel=!1;a.hideBorder=!1;a.usesFullLockup=!1;a.shouldShowMenuInCompactView=!1;a.spinnerEl=null;a.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return a}; k(uS,E);g=uS.prototype;g.configureRendererStamper=function(){return MRb}; g.computeIsPollHeaderEnabled=function(a){return(a==null?void 0:a.pollMetadataIcon)!=null}; g.getPublishTimeStampString=function(a,b){b=new Date((Number(b)-60*(new Date().getTimezoneOffset()-new Date(Number(b)*1E3).getTimezoneOffset()))*1E3);b=new UH(10).format(b);if(a&&a.runs&&a.runs.length)for(var c=0;c=0,b=wt(this.hostElement).querySelector("#action-buttons"),a?b.reply():b.hideReplyDialog())}; g.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.spinnerEl||(this.spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),wt(this.hostElement).appendChild(this.spinnerEl));this.spinnerEl&&(this.spinnerEl.active=this.isLoading)}; g.onYtNavigate=function(a){var b=this.get("updateCommentDialogEndpoint",a.detail.endpoint);b&&(this.openEditDialog(b),a.stopPropagation())}; g.onYtCommentboxDismiss=function(){this.editDialog=null}; g.onYtCommentPollRevert=function(a,b){b&&this.updatePoll(b.selectedChoiceIndex,b.totalVotes)}; g.onYtServiceRequestSent=function(a,b){a.stopPropagation();a=z(b.endpoint,WJ);if(z(b.endpoint,Qrb)||a&&!a.clientActions)this.isLoading=!0;if(b.actions)for(a=0;a\n
\n
\n
\n\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return KRb=a},{mode:1});var NRb;var vS=function(){var a=E.apply(this,arguments)||this;a.editDialog=null;a.showExpandButton=!1;a.isRichGrid=!1;a.usesFullLockup=!1;return a}; k(vS,E);g=vS.prototype;g.configureRendererStamper=function(){return{"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.originalPost":{id:"original-post",mapping:{backstagePostRenderer:{component:"ytd-backstage-post-renderer",properties:{usesFullLockup:"[[usesFullLockup]]"}},postRenderer:{component:"ytd-post-renderer",properties:{isRichGridRepost:"[[isRichGrid]]"}}}},editDialog:{id:"repost-edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}}}}; g.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)}; g.computeShowExpandButton=function(a){return this.usesCompactLockup||a&&a.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight}; g.computeUsesCompactLockup=function(a){return!!a.condensedContent}; g.computeShowFullContentText=function(a){return!a}; g.onYtNavigate=function(a){a=this.get("updateCommentDialogEndpoint",a.detail.endpoint);this.openEditDialog(a)}; g.onYtCommentboxDismiss=function(){this.editDialog=null}; g.openEditDialog=function(a){a&&a.dialog&&(this.editDialog=a.dialog,a=this.repostEditDialogEl.firstElementChild)&&(a.focus(),a.openDialog&&a.openDialog())}; g.onTap=function(a){if(this.data){var b=null;this.usesCompactLockup&&!AO(lt(a)||[],this.hostElement,["YT-IMG-SHADOW"])?b=this.get("navigationEndpoint",this.data):a.target===this.moreButtonEl&&(b=this.get("navigationEndpoint",a.target.data));b&&Gt(this.hostElement,"yt-navigate",{endpoint:b})}}; vS.prototype.onYtCommentboxDismiss=vS.prototype.onYtCommentboxDismiss;vS.prototype.onYtNavigate=vS.prototype.onYtNavigate;vS.prototype.dataChanged=vS.prototype.dataChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],vS.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],vS.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],vS.prototype,"data",void 0);n([M(),r("design:type",Object)],vS.prototype,"editDialog",void 0); n([M({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),r("design:type",Boolean)],vS.prototype,"usesCompactLockup",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],vS.prototype,"showExpandButton",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],vS.prototype,"isRichGrid",void 0);n([M({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),r("design:type",Boolean)],vS.prototype,"showFullContentText",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],vS.prototype,"usesFullLockup",void 0);n([Tt("#more"),r("design:type",Object)],vS.prototype,"moreButtonEl",void 0);n([Tt("#repost-content-text"),r("design:type",HTMLElement)],vS.prototype,"repostContentTextEl",void 0);n([Tt("#repost-edit-dialog"),r("design:type",HTMLElement)],vS.prototype,"repostEditDialogEl",void 0);n([cu("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],vS.prototype,"dataChanged",null); n([Kt("yt-navigate"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],vS.prototype,"onYtNavigate",null);n([Kt("yt-commentbox-dismiss"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],vS.prototype,"onYtCommentboxDismiss",null);n([gu({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],vS); Tu(vS,"ytd-shared-post-renderer",function(){if(NRb!==void 0)return NRb;var a=document.createElement("template");Q(a,"\n\n\n\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return NRb=a},{mode:1});var ORb;var PRb;var wS=function(){return E.apply(this,arguments)||this}; k(wS,E);wS.prototype.attached=function(){var a=this;this.networkStatusManager||(this.networkStatusManager=new en,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){a.onlineHandler()}))}; wS.prototype.detached=function(){var a=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){a.onlineHandler()}),delete this.networkStatusManager)}; wS.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],wS.prototype,"ytRendererBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],wS.prototype,"ytComponentBehavior",void 0);n([M(),r("design:type",Object)],wS.prototype,"data",void 0);n([gu({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],wS); Tu(wS,"ytd-reload-page-button-renderer",function(){if(PRb!==void 0)return PRb;var a=document.createElement("template");Q(a,"");a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild); return PRb=a},{mode:1});var QRb={EMPTY_SEARCH:"promo-full-height",HASHTAG_LANDING_PAGE_EMPTY:"hashtag-landing-page",HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE:"hashtag-landing-page",HASHTAG_LANDING_PAGE_ERROR:"hashtag-landing-page",HASHTAG_LANDING_PAGE_ERROR_DARK_MODE:"hashtag-landing-page",OFFLINE_NO_CONTENT:"offline-no-content"},xS=function(){var a=E.apply(this,arguments)||this;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a}; k(xS,E);g=xS.prototype;g.attached=function(){this.isDarkTheme=this.isAppDarkTheme()}; g.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}}; g.computeHasBodyText=function(a){return!!a.bodyText}; g.computeButtons=function(a){var b=[];a.ctaButton&&b.push(a.ctaButton);a.secondaryButton&&b.push(a.secondaryButton);return b}; g.computeRendererStyle=function(a){return a.style?a.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():a.icon?"":"no-icon"}; g.getIconName=function(a,b){b=b===void 0?!1:b;if(a===void 0)return"";a=this.get("icon.iconType",a);b=this.getThemedIcon(a,b);(a=QRb[b])||(a="yt-icons");return[a,b].join(":")}; g.getThemedIcon=function(a,b){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(a)?b?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(a)?b?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":a}; g.isThumbnail=function(a){return!!a.thumbnail}; g.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()}; g.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")}; n([F($C.YtRendererstamperBehavior),r("design:type",Object)],xS.prototype,"ytRendererstamperBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],xS.prototype,"ytRendererBehavior",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],xS.prototype,"ytActionHandlerBehavior",void 0);n([M(),r("design:type",Object)],xS.prototype,"data",void 0);n([M({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),r("design:type",String)],xS.prototype,"rendererStyle",void 0); n([M({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),r("design:type",String)],xS.prototype,"iconName",void 0);n([M({computed:"isThumbnail(data)",reflectToAttribute:!0}),r("design:type",Boolean)],xS.prototype,"thumbnail",void 0);n([M({computed:"computeButtons(data)"}),r("design:type",Array)],xS.prototype,"buttons",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],xS.prototype,"isDarkTheme",void 0); n([M({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),r("design:type",Boolean)],xS.prototype,"hasBodyText",void 0);n([gu({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],xS); Uu()(xS,"ytd-background-promo-renderer",function(){if(ORb===void 0){var a=document.createElement("template");Q(a,"\n\n
\n
[[getSimpleString(data.title)]]
\n \n \n
\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);ORb=a}a=ORb;return a},{allowedProps:["data"], mode:1});var RRb;var yS=function(){return E.apply(this,arguments)||this}; k(yS,E);ba.Object.defineProperties(yS.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d,e,f;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(a=this.data)==null?void 0:(b=a.thumbnail)==null?void 0:b.sampledThumbnailColor,vibrantColorPalette:(c=this.data)==null?void 0:(d=c.thumbnail)==null?void 0:d.vibrantColorPalette,darkColorPalette:(e=this.data)==null?void 0:(f=e.thumbnail)==null?void 0:f.darkColorPalette,experimentEnabled:!0}}}}); n([F(Yz.YtRendererBehavior),r("design:type",Object)],yS.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],yS.prototype,"data",void 0);n([H("data"),r("design:type",Object),r("design:paramtypes",[])],yS.prototype,"collectionStack",null);n([gu({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],yS); Tu(yS,"ytd-compact-station-renderer",function(){if(RRb!==void 0)return RRb;var a=document.createElement("template");Q(a,"\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return RRb=a},{mode:1});var SRb;var zS=function(){var a=E.apply(this,arguments)||this;a.isRichGrid=!1;return a}; k(zS,E);zS.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}}}}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],zS.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],zS.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],zS.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],zS.prototype,"isRichGrid",void 0);n([gu({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],zS); Tu(zS,"ytd-grid-channel-renderer",function(){if(SRb!==void 0)return SRb;var a=document.createElement("template");Q(a,"\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return SRb=a},{mode:1});var TRb;var AS=function(){return E.apply(this,arguments)||this}; k(AS,E);n([F(Yz.YtRendererBehavior),r("design:type",Object)],AS.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],AS.prototype,"data",void 0);n([gu({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],AS); Tu(AS,"ytd-grid-movie-playlist-renderer",function(){if(TRb!==void 0)return TRb;var a=document.createElement("template");Q(a,"\n\n

\n \n \n \n [[getSimpleString(data.title)]]\n \n

\n \n
\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return TRb=a},{mode:1});var URb;var BS=function(){var a=E.apply(this,arguments)||this;a.downloadProgress=0;a.transferState="TRANSFER_STATE_UNKNOWN";a.modernButtons=x("web_modern_buttons");return a}; k(BS,E);BS.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1}; BS.prototype.configureRendererStamper=function(){return{"data.menu":CR}}; BS.prototype.dataChanged=function(){this.data&&this.transferStateChanged()}; BS.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo){var a,b=Iwb(this.entityInfo,this.transferState,this.downloadProgress,(a=this.data)==null?void 0:a.playlistId,this.isOnline);a=b.viewPlaylistText;var c=b.badges;b=b.thumbnailOverlays;this.isDownloads=!!a||!!c;this.set("data.viewPlaylistText",a);c&&c.length>0&&this.set("data.badges",c);b&&b.length>0&&this.set("data.thumbnailOverlays",b)}}; ba.Object.defineProperties(BS.prototype,{downloadState:{configurable:!0,enumerable:!0,get:function(){return this.transferState&&this.transferState!=="TRANSFER_STATE_UNKNOWN"?this.transferState==="TRANSFER_STATE_COMPLETE"?"DOWNLOADED":"DOWNLOADING":""}}, menuHidden:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null?0:a.menu)}}}); BS.prototype.transferStateChanged=BS.prototype.transferStateChanged;BS.prototype.dataChanged=BS.prototype.dataChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],BS.prototype,"ytRendererBehavior",void 0);n([F(bR),r("design:type",Object)],BS.prototype,"ytdLockupBehavior",void 0);n([F(kC),r("design:type",Object)],BS.prototype,"ytdReduxBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],BS.prototype,"ytRendererstamperBehavior",void 0); n([M({selector:c_a,selectorArgs:["data.playlistId"]}),r("design:type",Object)],BS.prototype,"downloadProgress",void 0);n([M({selector:xC,selectorArgs:["data.playlistId"]}),r("design:type",Object)],BS.prototype,"transferState",void 0);n([M({selector:b_a,selectorArgs:["data.playlistId"]}),r("design:type",Object)],BS.prototype,"entityInfo",void 0);n([M({selector:vC}),r("design:type",Boolean)],BS.prototype,"isOnline",void 0);n([M(),r("design:type",Object)],BS.prototype,"data",void 0); n([M(),r("design:type",Object)],BS.prototype,"downloadRenderData",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],BS.prototype,"modernButtons",void 0);n([M({value:!1,reflectToAttribute:!0}),r("design:type",Boolean)],BS.prototype,"isDownloads",void 0);n([H("transferState"),M({reflectToAttribute:!0}),r("design:type",String),r("design:paramtypes",[])],BS.prototype,"downloadState",null); n([H("data"),M({reflectToAttribute:!0}),r("design:type",Boolean),r("design:paramtypes",[])],BS.prototype,"menuHidden",null);n([cu("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],BS.prototype,"dataChanged",null);n([cu("transferState","downloadProgress","isOnline"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],BS.prototype,"transferStateChanged",null);n([gu({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],BS); Tu(BS,"ytd-grid-playlist-renderer",function(){if(URb!==void 0)return URb;var a=document.createElement("template");Q(a,"\n\n
\n

\n [[getSimpleString(data.title)]]\n

\n \n \n
\n \n \n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return URb=a},{mode:1});var VRb;var CS=function(){return E.apply(this,arguments)||this}; k(CS,E);CS.prototype.configureRendererStamper=function(){return{"data.menu":CR,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}}; ba.Object.defineProperties(CS.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d,e,f;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(a=this.data)==null?void 0:(b=a.thumbnail)==null?void 0:b.sampledThumbnailColor,vibrantColorPalette:(c=this.data)==null?void 0:(d=c.thumbnail)==null?void 0:d.vibrantColorPalette,darkColorPalette:(e=this.data)==null?void 0:(f=e.thumbnail)==null?void 0:f.darkColorPalette,experimentEnabled:!0}}}}); n([F(Yz.YtRendererBehavior),r("design:type",Object)],CS.prototype,"ytRendererBehavior",void 0);n([F(NQ),r("design:type",Object)],CS.prototype,"ytdDismissibleItemBehavior",void 0);n([F(bR),r("design:type",Object)],CS.prototype,"ytdLockupBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],CS.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],CS.prototype,"data",void 0); n([H("data"),r("design:type",Object),r("design:paramtypes",[])],CS.prototype,"collectionStack",null);n([gu({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],CS); Tu(CS,"ytd-grid-radio-renderer",function(){if(VRb!==void 0)return VRb;var a=document.createElement("template");Q(a,"\n
\n
\n
\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return VRb=a},{mode:1});var WRb;var DS=function(){return E.apply(this,arguments)||this}; k(DS,E);DS.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}}; DS.prototype.computeNavigationEndpoint=function(a){return fwb(a==null?void 0:a.navigationEndpoint)}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],DS.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],DS.prototype,"ytRendererstamperBehavior",void 0);n([F(bR),r("design:type",Object)],DS.prototype,"ytdLockupBehavior",void 0);n([M(),r("design:type",Object)],DS.prototype,"data",void 0);n([M({computed:"computeNavigationEndpoint(data)"}),r("design:type",Object)],DS.prototype,"computedNavigationEndpoint",void 0); n([gu({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],DS); Tu(DS,"ytd-grid-show-renderer",function(){if(WRb!==void 0)return WRb;var a=document.createElement("template");Q(a,"\n\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return WRb=a},{mode:1});var XRb;var ES=function(a){this.playerClient=a},YRb=function(a,b,c){c=c===void 0?{}:c; return a.playerClient.setOption("ad",b,c)}; ES.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]}; ES.prototype.executeCommand=function(a,b){this.getOptions().includes("executeCommand")?YRb(this,"executeCommand",{command:a,layoutId:b}):DQ("Calling executeCommand when adModule is not loaded")};var FS=function(){return E.apply(this,arguments)||this}; k(FS,E);FS.prototype.getLayoutId=function(){var a=xa("yt.www.ads.eventcache.getLastCompanionData");return a?(a=a())&&a.layoutId:null}; FS.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var a=xO(),b=this.getLayoutId(),c=this.data.clickthroughEndpoint;a&&b&&x("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?a.getPlayerPromise().then(function(d){new ES(d).executeCommand(c,b)}):Gt(this.hostElement,"yt-navigate",{endpoint:c})}}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],FS.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],FS.prototype,"data",void 0);n([gu({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],FS); Tu(FS,"ytd-shopping-companion-item-renderer",function(){if(XRb!==void 0)return XRb;var a=document.createElement("template");Q(a,"
\n
\n \n
\n [[getSimpleString(data.headline)]]\n [[getSimpleString(data.priceText)]]\n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return XRb=a},{mode:1});var ZRb;var GS=function(){var a=E.apply(this,arguments)||this;a.isExpandableContent=!1;return a}; k(GS,E);ba.Object.defineProperties(GS.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.ctaText)}}, ctaText:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.ctaText}}, hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}}, hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}}, useNewStyle:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.useNewStyle}}, showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.priceReplacementText)}}, priceValue:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return((a=this.data)==null?void 0:a.price)||((b=this.data)==null?void 0:(c=b.dealsData)==null?void 0:c.currentPrice)}}, showDeal:{configurable:!0,enumerable:!0,get:function(){var a,b;if((a=this.data)!=null&&a.dealsData&&((b=this.data)==null||!b.priceReplacementText)){a=this.data.dealsData;var c,d,e;return((c=a.salesData)==null?void 0:c.originalPrice)||((d=a.priceDropData)==null?void 0:d.referencePrice)||((e=a.promotionData)==null?void 0:e.promotionLabel)}}}, showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.affiliateDisclaimer)}}, useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var a,b;return(a=this.data)==null?void 0:(b=a.dealsData)==null?void 0:b.salesData}}, useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}}, useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}}, useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}}); n([F(Yz.YtRendererBehavior),r("design:type",Object)],GS.prototype,"ytRendererBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],GS.prototype,"componentBehavior",void 0);n([M(),r("design:type",Object)],GS.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],GS.prototype,"isExpandableContent",void 0);n([H("data"),r("design:type",Object),r("design:paramtypes",[])],GS.prototype,"showCta",null); n([H("data"),r("design:type",Object),r("design:paramtypes",[])],GS.prototype,"ctaText",null);n([H("data"),r("design:type",Object),r("design:paramtypes",[])],GS.prototype,"hasPriceTopPosition",null);n([H("data"),r("design:type",Object),r("design:paramtypes",[])],GS.prototype,"hasPriceBottomPosition",null);n([M({reflectToAttribute:!0}),H("data"),r("design:type",Object),r("design:paramtypes",[])],GS.prototype,"useNewStyle",null); n([H("data"),r("design:type",Object),r("design:paramtypes",[])],GS.prototype,"showPriceReplacementText",null);n([M({reflectToAttribute:!0}),H("data"),r("design:type",Object),r("design:paramtypes",[])],GS.prototype,"priceValue",null);n([M({reflectToAttribute:!0}),H("data"),r("design:type",Object),r("design:paramtypes",[])],GS.prototype,"showDeal",null);n([H("data"),r("design:type",Object),r("design:paramtypes",[])],GS.prototype,"showAffiliateDisclaimer",null); n([M({reflectToAttribute:!0}),H("data"),r("design:type",Object),r("design:paramtypes",[])],GS.prototype,"useSaleStyle",null);n([M({reflectToAttribute:!0}),H("data"),r("design:type",Object),r("design:paramtypes",[])],GS.prototype,"useFromBrandCtaStyle",null);n([M({reflectToAttribute:!0}),H("data"),r("design:type",Object),r("design:paramtypes",[])],GS.prototype,"useFromVendorCtaStyle",null); n([M({reflectToAttribute:!0}),H("data"),r("design:type",Object),r("design:paramtypes",[])],GS.prototype,"useShoppingCollectionCtaStyle",null);n([gu({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],GS); Tu(GS,"ytd-vertical-product-card-renderer",function(){if(ZRb!==void 0)return ZRb;var a=document.createElement("template");Q(a,"\n\n\n
\n
\n \n
\n
\n
[[data.title]]
\n\n \n\n
\n [[data.variantsDescription]]\n
\n\n \n\n \n\n \n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return ZRb=a},{mode:1});var $Rb;var HS=function(){return E.apply(this,arguments)||this}; k(HS,E);HS.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],HS.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],HS.prototype,"ytRendererstamperBehavior",void 0);n([F(bR),r("design:type",Object)],HS.prototype,"ytdLockupBehavior",void 0);n([M(),r("design:type",Object)],HS.prototype,"data",void 0);n([gu({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],HS); Tu(HS,"ytd-grid-movie-renderer",function(){if($Rb!==void 0)return $Rb;var a=document.createElement("template");Q(a,"\n\n\n

\n \n \n \n [[getSimpleString(data.title)]]\n \n

\n \n \n \n
\n\n
\n\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return $Rb=a},{mode:1});var aSb;function bSb(a,b){b=lxb(b);Xu(a,"yt-open-popup-action",[b,a])} ;var IS=function(){var a=E.apply(this,arguments)||this;a.itemStyle="small-item";return a}; k(IS,E);IS.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var a,b,c,d,e=(b=z((a=this.data)==null?void 0:a.buttonCommand,hlb))==null?void 0:(c=b.item)==null?void 0:(d=c.notificationTextRenderer)==null?void 0:d.successResponseText;e&&bSb(this.hostElement,e)}}; ba.Object.defineProperties(IS.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.price)!==void 0}}, hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.priceReplacementText)}}, hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.additionalFeesText)!==void 0}}, hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.affiliateDisclaimer)!==void 0}}, isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.data)==null?void 0:a.isProductPlaceholder)!==void 0&&((b=this.data)==null?void 0:b.isProductPlaceholder)}}, hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.showOpenInNewIcon)===!1}}, ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityTitle?this.data.accessibilityTitle:this.data.title+", "+this.data.price+", "+this.data.additionalFeesText+", "+this.data.vendorName}}}); n([F(Yz.YtRendererBehavior),r("design:type",Object)],IS.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],IS.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",String)],IS.prototype,"itemStyle",void 0);n([H("data"),r("design:type",Object),r("design:paramtypes",[])],IS.prototype,"hasPrice",null);n([H("data"),r("design:type",Object),r("design:paramtypes",[])],IS.prototype,"hasPriceReplacementText",null); n([H("data"),r("design:type",Object),r("design:paramtypes",[])],IS.prototype,"hasAdditionalFeesText",null);n([H("data"),r("design:type",Object),r("design:paramtypes",[])],IS.prototype,"hasAffiliateDisclaimer",null);n([H("data"),r("design:type",Object),r("design:paramtypes",[])],IS.prototype,"isProductPlaceholder",null);n([M(),H("data"),r("design:type",Object),r("design:paramtypes",[])],IS.prototype,"hideOpenInNewIcon",null); n([H("data"),r("design:type",Object),r("design:paramtypes",[])],IS.prototype,"ariaLabel",null);n([gu({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],IS); Tu(IS,"ytd-merch-shelf-item-renderer",function(){if(aSb!==void 0)return aSb;var a=document.createElement("template");Q(a,"\n\n\n
\n \n \n \n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return aSb=a},{mode:1});bB(O(function(a){return D("button-card-view-model",{el:dB(MD(function(){return a.data().rendererContext})), class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return a.data().title}, role:"button"},D(ZK,{model:{}}),D("div",{class:"ytwButtonCardViewModelHostContentContainer"},D("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},D(P,{cond:function(){return a.data().image}, then:function(b){return D(eC,{data:b,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),D("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return a.data().title})))},"Sb"),"button-card-view-model",{props:{data:$A}});bB(O(function(a){a=Hu(a,{className:void 0});var b=a.data;a=a.className;var c=Vo(function(){return b().onTapCommand},void 0,"li8Gpe"); return D("ytd-shopping-item-card",{class:U("ytdShoppingItemCardHost",a)},D(vD,{command:c,className:"ytdShoppingItemCardHostLink"},D("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},D(OC,{data:function(){return b().thumbnailViewModel}},{thumbnailViewModel:function(d){return D(fRb,{data:d.data, aspectRatio:3})}})),D("div",null,D("p",{class:"ytdShoppingItemCardHostItemTitle"},D(gC,{text:function(){return b().itemTitle}})),D("p",{class:"ytdShoppingItemCardHostPrice"},D(gC,{text:function(){return b().priceOrStatus}})))))},"Tb"),"ytd-shopping-item-card",{props:{data:$A, className:$A}});function cSb(a){switch(a.style){case"STYLE_VISIBLY_DISABLED":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_DISABLED"};case"STYLE_PRIMARY":case"STYLE_PAYMENT":case"STYLE_CALL_TO_ACTION_FILLED":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case"STYLE_SUGGESTIVE":case"STYLE_SUGGESTED_ACTION":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE", state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case"STYLE_BLUE_TEXT":case"STYLE_ALERT_INFO":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case"STYLE_OVERLAY":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case"STYLE_WHITE_WITH_BORDER":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"}; case"STYLE_LIGHT_TEXT":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case"STYLE_MONO_FILLED_OVERLAY":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case"STYLE_MONO_TONAL_OVERLAY":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case"STYLE_MONO_FILLED":case"STYLE_DESTRUCTIVE":return{style:"BUTTON_VIEW_MODEL_STYLE_MONO", type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case"STYLE_DEFAULT":case"STYLE_COMPACT_GRAY":case"STYLE_MONO_TONAL":return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case"STYLE_INACTIVE_OUTLINE":case"STYLE_MONO_OUTLINE":return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case"STYLE_DARK_ON_BLACK":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY", type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};default:return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};}} ;var dSb=O(function(a){var b=sw("notification-multi-action-renderer");qw(function(){requestAnimationFrame(function(){hn(b.value)})}); var c={},d={},e={};return D("notification-multi-action-renderer",{class:U("ytNotificationMultiActionRendererHost",(c.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var f;return(f=a.useLegacyShelfStyle)==null?void 0:f.call(a)},c)), el:b},D("span",{"aria-live":"polite",class:U("ytNotificationMultiActionRendererTextContainer",(d.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var f;return(f=a.useLegacyShelfStyle)==null?void 0:f.call(a)},d))},D(gC,{text:function(){return a.data().responseText}})),D("div",{class:U("ytNotificationMultiActionRendererButtonContainer",(e.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var f; return(f=a.useLegacyShelfStyle)==null?void 0:f.call(a)},e))},D(OC,{data:function(){var f; return(f=a.data().buttons)==null?void 0:f.map(function(h){if(h=h.buttonRenderer){var m,p,q,t=Object,u=t.assign,v=(m=h.icon)==null?void 0:m.iconType;m=(m=h.command||h.serviceEndpoint||h.navigationEndpoint)?{innertubeCommand:m}:void 0;h={buttonViewModel:u.call(t,{},{iconName:v,onTap:m,trackingParams:h.trackingParams,titleFormatted:h.text?GB(h.text):void 0},cSb(h),{accessibilityText:(p=h.accessibilityData)==null?void 0:(q=p.accessibilityData)==null?void 0:q.label})}}else h=void 0;return h}).filter(function(h){return!!h})}}, {buttonViewModel:function(f,h){return D("div",null,D(AD,{data:f.data, className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var m;return((m=a.useModernStyles)==null?0:m.call(a))?{type:h()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Vb");var eSb=O(function(a){var b=sw("notification-text-renderer");qw(function(){requestAnimationFrame(function(){hn(b.value)})}); return D("notification-text-renderer",{el:b,class:"ytNotificationTextRendererHost","aria-live":"polite"},D(gC,{text:function(){return a.data().successResponseText}}))},"Xb");function fSb(a){switch(a){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9";}} var jRb=O(function(a){var b=fL(rPb,function(){var d,e=(d=a.contentId)==null?void 0:d.call(a);d=iQ.currentPageSubTypeSelector(Au().getState())||"";return e?e+d:""}),c=function(){var d; return z((d=b())==null?void 0:d.command,sJ)}; return D(P,{cond:function(){var d;if(!(d=c())){var e;d=z((e=b())==null?void 0:e.command,ilb)}return d}, then:function(){return D(P,{cond:c,then:function(){var d={};return D("div",{class:U("ytDismissibleItemReplacedContent",function(){var e;return fSb((e=a.aspectRatio)==null?void 0:e.call(a))})},D("div",{class:U((d.ytDismissibleItemAspectRatioContainer=function(){var e; return((e=a.aspectRatio)==null?void 0:e.call(a))!==void 0},d))},D(OC,{data:function(){var e; return(e=c())==null?void 0:e.item}},{notificationMultiActionRenderer:function(e){return D(dSb,{data:e.data, useModernStyles:a.useModernStyle,useLegacyShelfStyle:a.useLegacyShelfStyle})}, notificationTextRenderer:eSb})))}})}, else:a.children})},"Yb");var gSb=new Bn("CHANNEL_DISCLOSURE_VIEW_MODEL_TOKEN");var hSb=new Bn("IMAGE_ON_LOAD_HANDLER_TOKEN");var jSb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("iai2ic"),2);a=iSb;return b.return(a)})},kSb=yD(function(){return jSb()},{debugName:"animatedThumbnailOverlayViewModel"}); Gn(xD,function(a){a.registerLoadFn("animatedThumbnailOverlayViewModel","iai2ic",jSb)});var lSb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("a66Lfe"),2);a=MPb;return b.return(a)})},mSb=yD(function(){return lSb()},{debugName:"thumbnailBottomOverlayViewModel"}); Gn(xD,function(a){a.registerLoadFn("thumbnailBottomOverlayViewModel","a66Lfe",lSb)});var oSb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("Osm49c"),2);a=nSb;return b.return(a)})},pSb=yD(function(){return oSb()},{debugName:"thumbnailOverlayButtonViewModel"}); Gn(xD,function(a){a.registerLoadFn("thumbnailOverlayButtonViewModel","Osm49c",oSb)});var qSb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("IWpUrf"),2);a=RPb;return b.return(a)})},rSb=yD(function(){return qSb()},{debugName:"thumbnailOverlayTitleViewModel"}); Gn(xD,function(a){a.registerLoadFn("thumbnailOverlayTitleViewModel","IWpUrf",qSb)});var tSb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("dHcoIf"),2);a=sSb;return b.return(a)})},uSb=yD(function(){return tSb()},{debugName:"thumbnailHoverOverlayToggleActionsViewModel"}); Gn(xD,function(a){a.registerLoadFn("thumbnailHoverOverlayToggleActionsViewModel","dHcoIf",tSb)});var wSb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("oXBWHf"),2);a=vSb;return b.return(a)})},xSb=yD(function(){return wSb()},{debugName:"thumbnailOverlayFullViewModel"}); Gn(xD,function(a){a.registerLoadFn("thumbnailOverlayFullViewModel","oXBWHf",wSb)});var ySb=iQ.animatedThumbnailEnabledSelector;function zSb(a){switch(a){case 1:return"ytThumbnailViewModelAspectRatio2By3";case 4:return"ytThumbnailViewModelShortsAspectRatio9By16";case 3:return"ytThumbnailViewModelAspectRatio1By1";default:return"ytThumbnailViewModelAspectRatio16By9";}} var lS=O(function(a){var b=[],c=function(){var w,y;return xOb((w=a.width)==null?void 0:w.call(a),(y=a.height)==null?void 0:y.call(a))},d=Fn().resolve(Cn(hSb)),e=sw("yt-thumbnail-view-model",function(){b.push("elRef.value set"); var w;(w=a.playbackRef)==null||w.call(a,{thumbnailElRef:e,thumbnail:a.data().image,thumbnailOverlays:a.data().overlays,thumbnailSize:c()})}); rw(function(){b.push("onInit");zp(function(){b.push("onCleanup")})}); var f=eL(ySb),h=function(){var w,y;return(y=(w=a.aspectRatio)==null?void 0:w.call(a))!=null?y:0},m=function(){var w; if(a.data().image){var y=(w=a.data().image.sources)==null?void 0:w[0];w=y?y.width/y.height:0}else w=h();return w<=1&&h()===0},p=function(){return m()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},q=function(){e.value||fo(new Dl("Thumbnail elRef.value is null",b.join("\n"))); d&&e.value&&d(e.value)},t=function(){var w,y; return((w=a.hovered)==null?void 0:w.call(a))&&c()!=="large"&&((y=a.data().overlays)==null?void 0:y.some(function(A){return z(A,Dsb)}))},u={},v={}; return D("yt-thumbnail-view-model",{class:U("ytThumbnailViewModelHost",a.className,function(){return zSb(h())},function(){var w,y; a:{var A=c(),C=(w=a.disableRounding)==null?void 0:w.call(a);w=(y=a.isClip)==null?void 0:y.call(a);if(!C&&!w)switch(A){case"large":y="ytThumbnailViewModelLarge";break a;case"small":y="ytThumbnailViewModelSmall";break a;default:y="ytThumbnailViewModelMedium";break a;}y=void 0}return y},(u.ytThumbnailViewModelCinematic=m,u),(v.ytThumbnailViewModelHighlightEffect=function(){var w,y; return(w=a.lockupExperiments)==null?void 0:(y=w.call(a))==null?void 0:y.showHighlightEffect},v)), style:GC({"background-color":function(){var w,y=m()?(w=a.data().backgroundColor)==null?void 0:w.lightTheme:void 0;return y?Ky(y,"1"):void 0}}), el:e},D(P,{cond:m,then:function(){return D("div",{class:"ytThumbnailViewModelBlurredImage"},D(eC,{data:function(){return a.data().image}, alt:"",contentMode:p,targetWidth:a.width,onload:q}))}}),D("div",{class:"ytThumbnailViewModelImage"},D(eC,{data:function(){return a.data().image}, alt:"",contentMode:p,targetWidth:a.width,onload:q}),null),D(OC,{data:function(){return t()?void 0:a.data().overlays}, allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:rSb,thumbnailOverlayBadgeViewModel:function(w){return D(uQb,{data:w.data,thumbnailSize:c,isClip:a.isClip})}, thumbnailBottomOverlayViewModel:function(w){return D(mSb,{data:w.data,thumbnailSize:c,isClip:a.isClip})}, thumbnailOverlayFullViewModel:xSb,thumbnailOverlayButtonViewModel:function(w){return D(pSb,{data:w.data,lockupExperiments:a.lockupExperiments})}, channelDisclosureViewModel:function(w){w=w.data;var y;return D("div",null,(y=Fn().resolve(Cn(gSb)))==null?void 0:y({data:w}))}}),D(OC,{data:function(){var w; return((w=a.hovered)==null?0:w.call(a))?a.data().overlays:void 0}, allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(w){return D(wIb,{data:w.data,alwaysShow:!0})}, thumbnailHoverOverlayToggleActionsViewModel:uSb}),D(OC,{data:function(){var w;return((w=a.hovered)==null?0:w.call(a))&&f()?a.data().overlays:void 0}, allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:kSb}),D(P,{cond:a.isClip,then:function(){return D("div",{class:"ytPinkingNsHost"},D("svg",{class:"ytPinkingNsPinkingLeft"},D("defs",null,D("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},D("polygon",{class:"ytPinkingNsPinking",points:"0,0 4,4 0,8"}))),D("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),D("svg",{class:"ytPinkingNsPinkingRight"},D("defs",null,D("pattern",{id:"right-pattern",width:"4", height:"8",patternUnits:"userSpaceOnUse"},D("polygon",{class:"ytPinkingNsPinking",points:"4,0 0,4 4,8"}))),D("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"Zb"); lS.idomCompat={callbacks:{playbackRef:!0}};var ASb={isAdsVideo:!0},BSb={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},CSb={showPlayerControls:!1,videoPreviewDurationMs:15E3},DSb={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,centerCrop:!0},ESb={showPlayerControls:!0,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,roundedCornersSize:2,centerCrop:!0,hideTimeDisplay:!0,hideCaptionsToggleButton:!0,hideScrubber:!0};var JS=null,FSb={};function GSb(a){if(!a)return"";if(FSb[a])return FSb[a];JS||(JS=li("A"));JS.href!==a&&Jb(JS,a);var b=JS.pathname;FSb[a]=b.startsWith("/")?b:"/"+b;return FSb[a]} ;function HSb(){var a=GSb(window.location.href);if(a==="/")return"home";if(a.startsWith("/results"))return"search";if(a.startsWith("/watch"))return"watch";if(a.startsWith("/shorts"))return"shorts";if(a.startsWith("/hashtag"))return"hashtag";if(a.startsWith("/create_channel"))return"create_channel";if(a.startsWith("/@")||a.startsWith("/user/")||a.startsWith("/channel/"))return"channel";if(a.startsWith("/experiments"))return"experiments";if(a.startsWith("/sponsor_channel"))return"sponsorship";if(a.startsWith("/select_site"))return"settings"; if(a.startsWith("/locate"))return"locate";if(a.startsWith("/redeem"))return"redeem";if(a.startsWith("/musicpremium")||a.startsWith("/premium")||a.startsWith("/red"))return"premium";if(a.startsWith("/paid_memberships"))return"paid_memberships";if(a.startsWith("/oops"))return"oops";if(a.startsWith("/clip"))return"clip";var b;return(MB==null?void 0:(b=MB.response)==null?void 0:b.page)==="404"?"404":a.startsWith("/feed/history")?"history":a.startsWith("/feed/library")?"library":a.startsWith("/feed/subscriptions")? "subscriptions":a.startsWith("/feed/trending")?"trending":a.startsWith("/feed/news_destination")?"news":a.startsWith("/playlist")?"playlist":a.startsWith("/minor_moment")?"minor_moment":a.startsWith("/playable/")||a.match("^/playables/(?!saved).")?"mini_app":a.startsWith("/playables")?"playables":a.startsWith("/create/live/join")?"open_in_app":a.startsWith("/feed/explore")?"explore":"browse"} var ISb="WEB_PAGE_TYPE_ACCOUNTS WEB_PAGE_TYPE_WELCOME WEB_PAGE_TYPE_ACCOUNT_SELECTOR WEB_PAGE_TYPE_SIGN_IN_IDENTIFIER_ENTRY WEB_PAGE_TYPE_SIGN_IN_PASSWORD_ENTRY WEB_PAGE_TYPE_SIGN_IN_DEVICE_PROMPT_CHALLENGE WEB_PAGE_TYPE_PREMIUM_LITE_UPSELL WEB_PAGE_TYPE_UNKNOWN".split(" "); function JSb(){var a=MB==null?void 0:MB.response,b=a==null?void 0:a.endpoint;if(!b)return(a==null?void 0:a.page)==="watch"?"watch":HSb();var c;a=(c=z(b==null?void 0:b.commandMetadata,ly))==null?void 0:c.webPageType;c=!1;if(a&&!ISb.includes(a))switch(a){case"WEB_PAGE_TYPE_SEARCH":return"search";case"WEB_PAGE_TYPE_SHORTS":return"shorts";case"WEB_PAGE_TYPE_CHANNEL":return"channel";case"WEB_PAGE_TYPE_SETTINGS":return"settings";case"WEB_PAGE_TYPE_PLAYLIST":return"playlist";case"WEB_PAGE_TYPE_OPEN_IN_APP":return"open_in_app"; case"WEB_PAGE_TYPE_MINI_APP":return"mini_app";case"WEB_PAGE_TYPE_WATCH":var d;return((d=z(b==null?void 0:b.commandMetadata,ly))==null?0:d.url)&&GSb(z(b.commandMetadata,ly).url).startsWith("/clip")?"clip":"watch";case"WEB_PAGE_TYPE_BROWSE":var e;return(b=(e=z(b,ey))==null?void 0:e.browseId)?KSb[b]||"browse":"browse";default:c=!0;}if(z(b,gK)||z(b,ytb))return"sponsorship";e=GSb(window.location.href);if(e.startsWith("/experiments"))return"experiments";if(e.startsWith("/create_channel"))return"create_channel"; if(z(b,Qs)&&e.startsWith("/shorts"))return"shorts";if(z(b,Qs)&&e.startsWith("/watch"))return"watch";c&&(b=new Dl("Unsupported mWeb page type",{pathname:e,webPageType:a}),co(b));return"browse"} var KS={},KSb=(KS.FEwhat_to_watch="home",KS.FEhashtag="hashtag",KS.FEtrending="trending",KS.FEhistory="history",KS.SPunlimited="premium",KS.FEmemberships_and_purchases="paid_memberships",KS.SPredeem_code="redeem",KS.SPverify_location="locate",KS.SPminor_moment="minor_moment",KS.FEmini_app_container="mini_app",KS.FEnews_destination="news",KS.SPopen_in_app="open_in_app",KS.FEexplore="explore",KS.FEsubscriptions="subscriptions",KS.FEsfv_audio_pivot="sfv_audio_pivot",KS.FEplaylist_aggregation="playlist_aggregation", KS);function LSb(){var a=void 0;a=JSb();return a==="mini_app"} ;var MSb=!1,NSb,OSb=!1,PSb;function QSb(){return MSb||!!xa("yt.player.Application")} function RSb(){return OSb||!!document.querySelector("link#player-css")} function SSb(){function a(){MSb=!0;NSb.resolve()} var b,c;return ra(function(d){NSb||(NSb=new nj,QSb()?a():(b=document.createElement("script"),b.addEventListener("load",a),c=gv(Vk("PLAYER_JS_URL")),kc(b,c),document.head.appendChild(b)));return d.return(NSb.promise)})} function TSb(){function a(){OSb=!0;PSb.resolve()} if(!PSb)if(PSb=new nj,RSb())a();else{var b=document.createElement("link");b.id="player-css";b.addEventListener("load",a);var c=gv(Vk("PLAYER_CSS_URL"));pc(b,c,"stylesheet");document.head.appendChild(b)}return PSb.promise} function USb(){return QSb()&&RSb()?Promise.resolve([]):Promise.all([SSb(),TSb()])} ;function VSb(a,b,c){var d={args:{}};a&&(d.args.raw_player_response=a);b&&(d.args.raw_watch_next_response=b);c&&(d.args=Object.assign({},d.args,c));return d} ;var LS=function(a,b,c,d,e){Ji.call(this);var f=this;this.playerId=b;this.webPlayerContextConfig=d;this.getAppOauthToken=e;this.isCurrentPlayerApiSetup=!1;this.api={};this.playerRemoveEventListener=this.playerAddEventListener=null;this.pubsub=new Bj;this.globalCallbacks={};this.currentPlayerType=this.readyCallback=this.elementId=this.unmodifiedConfig=this.config=null;this.creatingPlayer=!1;this.bootstrapPlayer=this.createPlayerCallback=null;this.wrappedCallbacks={};this.internalEvents=["onReady"]; this.lastError=null;this.readyPollTimer=NaN;this.globalCallbackTimerIds={};this.initialLoadConfigTimerId=0;this.JSC$13109_containerElement=this.targetElement=a;Ki(this,this.pubsub);WSb(this);c?this.initialLoadConfigTimerId=setTimeout(function(){f.loadNewVideoConfig(c)},0):d&&(XSb(this),YSb(this))}; k(LS,Ji);LS.prototype.getId=function(){return this.playerId}; LS.prototype.loadNewVideoConfig=function(a){if(!this.isDisposed()){this.initialLoadConfigTimerId&&(clearTimeout(this.initialLoadConfigTimerId),this.initialLoadConfigTimerId=0);var b=a||{};b instanceof $tb||(b=new $tb(b));this.config=b;this.setConfig(a);YSb(this);this.isReady()&&ZSb(this)}}; var XSb=function(a){var b;a.webPlayerContextConfig?b=a.webPlayerContextConfig.rootElementId:b=a.config.attrs.id;a.elementId=b||a.elementId;a.elementId==="video-player"&&(a.elementId=a.playerId,a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId=a.playerId:a.config.attrs.id=a.playerId);var c;((c=a.JSC$13109_containerElement)==null?void 0:c.id)===a.elementId&&(a.elementId+="-player",a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId=a.elementId:a.config.attrs.id=a.elementId)}; LS.prototype.setConfig=function(a){this.unmodifiedConfig=a;this.config=$Sb(a);XSb(this);if(!this.readyCallback){var b;this.readyCallback=aTb(this,((b=this.config.args)==null?void 0:b.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var c;if((c=this.config)==null?0:c.attrs)a=this.config.attrs,(b=a.width)&&this.JSC$13109_containerElement&&(this.JSC$13109_containerElement.style.width=wi(Number(b)||b,!0)),(a=a.height)&& this.JSC$13109_containerElement&&(this.JSC$13109_containerElement.style.height=wi(Number(a)||a,!0))}; var ZSb=function(a){if(a.config&&a.config.loaded!==!0)if(a.config.loaded=!0,!a.config.args||a.config.args.autoplay!=="0"&&a.config.args.autoplay!==0&&a.config.args.autoplay!==!1){var b;a.api.loadVideoByPlayerVars((b=a.config.args)!=null?b:null)}else a.api.cueVideoByPlayerVars(a.config.args)},cTb=function(a){var b=!0,c=MS(a); c&&a.config&&(b=c.dataset.version===bTb(a));return b&&!!xa("yt.player.Application.create")},YSb=function(a){if(!a.isDisposed()&&!a.creatingPlayer){var b=cTb(a); if(b&&(MS(a)?"html5":null)==="html5")a.currentPlayerType="html5",a.isReady()||dTb(a);else if(eTb(a),a.currentPlayerType="html5",b&&a.bootstrapPlayer&&a.targetElement)a.targetElement.appendChild(a.bootstrapPlayer),dTb(a);else{a.config&&(a.config.loaded=!0);var c=!1;a.createPlayerCallback=function(){c=!0;var d=fTb(a,"player_bootstrap_method")?xa("yt.player.Application.createAlternate")||xa("yt.player.Application.create"):xa("yt.player.Application.create");var e=a.config?$Sb(a.config):void 0;d&&d(a.targetElement, e,a.webPlayerContextConfig,a.getAppOauthToken);dTb(a)}; a.creatingPlayer=!0;b?a.createPlayerCallback():(wv(bTb(a),a.createPlayerCallback),(b=gTb(a))&&Xvb(b||""),hTb(a)&&!c&&va("yt.player.Application.create",null))}}},MS=function(a){var b=ei(document,a.elementId); !b&&a.JSC$13109_containerElement&&a.JSC$13109_containerElement.querySelector&&(b=a.JSC$13109_containerElement.querySelector("#"+a.elementId));return b},dTb=function(a){if(!a.isDisposed()){var b=MS(a),c=!1; b&&b.getApiInterface&&b.getApiInterface()&&(c=!0);if(c){a.creatingPlayer=!1;if(!fTb(a,"html5_remove_not_servable_check_killswitch")){var d;if((b==null?0:b.isNotServable)&&a.config&&(b==null?0:b.isNotServable((d=a.config.args)==null?void 0:d.video_id)))return}iTb(a)}else a.readyPollTimer=setTimeout(function(){dTb(a)},50)}},iTb=function(a){WSb(a); a.isCurrentPlayerApiSetup=!0;var b=MS(a);if(b){a.playerAddEventListener=jTb(a,b,"addEventListener");a.playerRemoveEventListener=jTb(a,b,"removeEventListener");var c=b.getApiInterface();c=c.concat(b.getInternalApiInterface());for(var d=a.api,e=0;e>>0);function nTb(a,b,c){var d=!1;d=d===void 0?!0:d;a=typeof a==="string"?ei(document,a):a;var e=mTb+"_"+Ha(a),f=lTb[e];if(f&&d)return oTb(b,c)?f.api.loadVideoByPlayerVars(b.args||null):f.loadNewVideoConfig(b),f.api;f=new LS(a,e,b,c,void 0);lTb[e]=f;f.addOnDisposeCallback(function(){delete lTb[f.getId()]}); return f.api} function oTb(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} ;function pTb(){var a=new nj;a.resolved=!1;var b=a.resolve;a.resolve=function(c){a.resolved=!0;b(c)}; return a} var NS=function(a,b,c,d,e,f){b=b===void 0?document.createElement("div"):b;this.webPlayerContextConfig=a;this.container=b;this.commandResolver=c;this.apiResolver=pTb();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new nj;d||f?qTb(this):rTb(this);this.pendingPlayerResponse=d;this.pendingWatchNextResponse=e;this.pendingPlayerVars=f;sTb(this)}; NS.prototype.loadVideoWithPlayerResponse=function(a,b,c){tTb(this,a,b,c)}; NS.prototype.loadVideoWithPlayerVars=function(a){return tTb(this,void 0,void 0,a)}; NS.prototype.destroy=function(a){if(a=ei(document,a))a=mTb+"_"+Ha(a),(a=lTb[a])&&a.dispose()}; var vTb=function(a,b){var c;ra(function(d){if(d.nextAddress==1)return a.pendingWatchNextResponse=b,a.synchronousApi?(c=a.synchronousApi,d.jumpTo(2)):d.yield(a.api,3);d.nextAddress!=2&&(c=d.yieldResult);if(!uTb(a,c))return d.return();a.pendingWatchNextResponse&&(c.updateVideoData({raw_watch_next_response:a.pendingWatchNextResponse}),a.pendingWatchNextResponse=void 0);d.jumpToEnd()})},uTb=function(a,b){var c; if(!(b==null?0:(c=b.isReady)==null?0:c.call(b))){var d;fo(new Dl("playerApi is falsey",{synchronousApi:a.synchronousApi,apiResolved:a.apiResolver.resolved,playerApiUndefined:b===void 0,playerApiNull:b===null,playerApiReady:(b==null?void 0:(d=b.isReady)==null?void 0:d.call(b))===!0,playerApiMethods:b?Object.keys(b):[]}));return!1}return!0},wTb=function(a,b){if(typeof a[b]==="function")return a[b]()},xTb=function(a){var b=window,c,d=(c=b.ytplayer)==null?void 0:c.bootstrapPlayerContainer; if((c=d==null?void 0:d.firstElementChild)&&Rja(c,"html5-video-player")){var e,f,h=(e=b.ytplayer)==null?void 0:(f=e.bootstrapWebPlayerContextConfig)==null?void 0:f.contextId;e=a.webPlayerContextConfig.contextId;if(h&&h===e){d!==a.container&&(d=!1,wTb(c,"getPlayerState")===2&&(d=!0),a.container.appendChild(c),d||wTb(c,"playVideo"));var m;if((m=b.ytplayer)==null?0:m.bootstrapPlayerResponse)a.bootstrapPlayerResponse=b.ytplayer.bootstrapPlayerResponse}}},sTb=function(a){var b,c,d,e,f; ra(function(h){if(h.nextAddress==1)return a.pageReadyOrDataAvailable?h.jumpTo(2):h.yield(a.pageReadyOrDataAvailableResolver.promise,2);if(h.nextAddress!=4)return!x("kevlar_player_unified_player_loading")||QSb()&&RSb()?h.jumpTo(4):h.yield(USb(),4);xTb(a);if(a.pendingPlayerResponse||a.pendingPlayerVars)b=VSb(a.pendingPlayerResponse,a.pendingWatchNextResponse,a.pendingPlayerVars),a.pendingPlayerResponse&&a.pendingPlayerResponse===a.bootstrapPlayerResponse&&(b.loaded=!0),a.bootstrapPlayerResponse=void 0; c=nTb(a.container,b,a.webPlayerContextConfig);((d=b)==null?0:d.loaded)&&a.pendingWatchNextResponse?(vTb(a,a.pendingWatchNextResponse),a.pendingPlayerResponse=void 0,a.pendingPlayerVars=void 0):yTb(a);e=function(m){c.removeEventListener("onReady",e);a.synchronousApi=m;a.apiResolver.resolve(m)}; c.addEventListener("onReady",e);Du("playerState")&&c.addEventListener("onStateChange",a.onPlayerStateChange.bind(a));a.commandResolver!==void 0&&(f=a.commandResolver,c.addEventListener("innertubeCommand",function(m){f(m)})); h.jumpToEnd()})},tTb=function(a,b,c,d){var e,f,h,m,p,q,t,u,v; return ra(function(w){if(w.nextAddress==1)return a.pendingPlayerResponse=b,a.pendingWatchNextResponse=c,a.pendingPlayerVars=d,qTb(a),a.synchronousApi?(e=a.synchronousApi,w.jumpTo(2)):w.yield(a.api,3);w.nextAddress!=2&&(e=w.yieldResult);if(!uTb(a,e))return w.return(new Promise(function(){})); h=new Promise(function(y){f=y}); m=function(){var y=e.getPlayerResponse();y&&(e.removeEventListener("onVideoDataChange",m),f(y))}; e.addEventListener("onVideoDataChange",m);if(a.pendingPlayerResponse||a.pendingPlayerVars)a.pendingPlayerResponse&&a.pendingPlayerResponse===a.bootstrapPlayerResponse?(f(a.pendingPlayerResponse),a.pendingWatchNextResponse&&vTb(a,a.pendingWatchNextResponse)):(p=VSb(a.pendingPlayerResponse,a.pendingWatchNextResponse,a.pendingPlayerVars),(v=(q=a.pendingPlayerResponse)==null?void 0:(t=q.playerConfig)==null?void 0:(u=t.playbackStartConfig)==null?void 0:u.startPaused)?e.cueVideoByPlayerVars(p.args):e.loadVideoByPlayerVars(p.args)), yTb(a),a.bootstrapPlayerResponse=void 0;return w.return(h)})},rTb=function(a){if(document.readyState==="complete"||document.readyState==="interactive")qTb(a);else {var b=function(){document.removeEventListener("DOMContentLoaded",b);qTb(a)}; document.addEventListener("DOMContentLoaded",b)}},qTb=function(a){a.pageReadyOrDataAvailable=!0; a.pageReadyOrDataAvailableResolver.resolve()},yTb=function(a){a.pendingPlayerResponse=void 0; a.pendingWatchNextResponse=void 0;a.pendingPlayerVars=void 0}; NS.prototype.onPlayerStateChange=function(a){var b;(b=this.playerStateSpan)==null||b.end();this.playerStateSpan=Eu("playerState",{state:a},{active:!1})}; ba.Object.defineProperties(NS.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});document.getElementById("theme-meta");document.getElementById("app");document.getElementById("player");document.getElementById("player-container-id");document.getElementById("player-control-container");document.getElementById("player-endscreen-container");document.getElementById("player-shorts-container");document.getElementById("player-cinematics-container");document.getElementById("full-screen-content-id");vj("init");var zTb=function(){}; function ATb(a){return a===1?1:a===2?2:a===3?4:2} var ETb=O(function(a){var b=a.data;var c=a.inlineMetadata;var d=a.aspectRatio;var e=a.scrimStyle;var f=a.className;var h=a.useDefaultStyle;var m=a.playbackRef;var p=new zTb,q=Vo(function(){return(h==null?0:h())?!0:b().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"dRJNFe"),t=Vo(function(){return Bp(c)||q()||!1},void 0,"FPI2o"),u=function(){return(e==null?void 0:e())!==void 0?e==null?void 0:e():1},v=Vo(function(){var Y=b().belowThumbnailMetadata; Y||t()||(Y=b().overlayMetadata);var da,Aa,Sa,Ua,qb;return!!(((da=Y)==null?0:(Aa=da.primaryText)==null?0:Aa.content)||((Sa=Y)==null?0:(Ua=Sa.secondaryText)==null?0:Ua.content)||((qb=Y)==null?0:qb.avatar))},void 0,"pLxUZb"),w=Vo(function(){return x("enable_ai_search_web_m0_fixes")?!!b().belowThumbnailLockupMetadata||v():!(!b().belowThumbnailMetadata&&!b().belowThumbnailLockupMetadata&&t())},void 0,"HdmMMe"); a=vw({visibilityCallback:function(Y){var da=b().onFirstVisible;Y&&da&&QB(da)}, showOption:{calledOnce:!0,state:"visible"}});var y=dB(),A={},C=U(function(){return q(),"shortsLockupViewModelHostThumbnailContainer"},(A.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return Bp(d)===1},A.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return Bp(d)===2},A.shortsLockupViewModelHostThumbnailContainerAspectRatioNineBySixteen=function(){return Bp(d)===3},A.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!x("web_shorts_2_by_3_lockups_study")&& !x("desktop_search_enable_two_by_three_shorts_aspect_ratio")},A)),I=Vo(function(){return ATb(Bp(d))},void 0,"LCMbIc"),K,N=function(){if(p){var Y; (Y=K)==null||VR(Y);if(p.hostElement&&p.videoPreviewDataProvider&&p.videoPreviewDataProvider()){var da;Y=(da=b())==null?void 0:da.inlinePlayerData;da=(Y==null?0:Y.enableAudioControl)?Object.assign({},ESb):Object.assign({},DSb);(Y==null?void 0:Y.maxPlaybackLengthSec)!==void 0&&(da.videoPreviewDurationMs=Y.maxPlaybackLengthSec*1E3);K=SR({mediaRenderer:p,lockupElement:p.hostElement,thumbnailElement:y.value,videoPreviewOpts:da})}}}; lw(function(){p&&(p.videoPreviewDataProvider=function(){var Y;a:{if((Y=b())&&Y.inlinePlayerData&&Y.accessibilityText){var da=LB(Y.inlinePlayerData.onVisible),Aa=LB(Y.onTap),Sa,Ua,qb=(Ua=Y.thumbnail)!=null?Ua:(Sa=z(Y.thumbnailViewModel,Esb))==null?void 0:Sa.image;if(da&&Aa&&qb){var ab;Y={inlinePlaybackEndpoint:da,navigationEndpoint:Aa,thumbnail:qb,thumbnailOverlays:void 0,accessibilityText:Y.accessibilityText,topRightControlButtons:(ab=Y.inlinePlayerData)==null?void 0:ab.controlButtons};break a}}Y= void 0}return Y},N())},"irBpjb"); var L=Vo(function(){return b().thumbnail},void 0,"um5JAf"); A=Vo(function(){return b().badge},void 0,"DAkV5"); var R=Vo(function(){return b().onTap},void 0,"EBxAwf"),W={},S={}; return D("ytm-shorts-lockup-view-model",{el:dB(function(Y){p&&(p.hostElement=Y)},N,function(Y){m==null||m({thumbnailElRef:{value:Y}})},a), class:U("shortsLockupViewModelHost",f)},D(mq,null,D(vD,{command:R,className:U("shortsLockupViewModelHostEndpoint",(W.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!w()},W),"reel-item-endpoint",""), ariaHidden:function(){return!t()}, tabIndex:function(){return t()?0:-1}},D("div",{el:y, class:U("shortsLockupViewModelHostThumbnailParentContainer",(S.shortsLockupViewModelHostThumbnailParentContainerRounded=function(){return!q()},S))},D(P,{cond:L, then:function(){return D("div",{class:C},D(eC,{data:function(){var Y;return(Y=L==null?void 0:L())!=null?Y:{}}, alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),D(OC,{data:function(){return b().thumbnailViewModel}},{thumbnailViewModel:function(Y){return D(lS,{data:Y.data, aspectRatio:function(){return I()}, disableRounding:function(){return q()}})}}),null),D(P,{cond:t, then:function(){return D(BTb,{data:b,scrimStyle:u,useDefaultStyle:h})}}),D(OC,{data:A},{badgeViewModel:function(Y){return D(ED,{data:Y.data, class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),D(P,{cond:function(){return(t()||b().belowThumbnailLockupMetadata)&&b().menuOnTap}, then:function(){return D(CTb,{data:b,inlineMetadata:!0})}}),D(P,{cond:w, then:function(){return D(DTb,{data:b,useDefaultStyle:h,inlineMetadata:t,aspectRatio:d})}})))},"ac"),BTb=O(function(a){var b=a.data; var c=a.scrimStyle;var d=a.useDefaultStyle;var e=Vo(function(){return(d==null?0:d())?!0:b().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"QzUSBd"); a={};a=U("shortsLockupViewModelHostInlineMetadata",(a.shortsLockupViewModelHostMetadataRounded=function(){return!e()},a.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(c==null?void 0:c())===3},a.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(c==null?void 0:c())===2||(c==null?void 0:c())===4},a.shortsLockupViewModelHostShowOverPlayer=function(){return!0},a),"image-overlay-text"); var f={};return D("div",{class:a},D("h3",{class:U("shortsLockupViewModelHostMetadataTitle",(f.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(c==null?void 0:c())===4},f.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return b().belowThumbnailMetadata},f.shortsLockupViewModelHostMetadataTitleMaxLines2=function(){return b().titleTruncationStyle==="SHORTS_LOCKUP_TITLE_TRUNCATION_STYLE_TWO_LINES"},f)), "aria-label":function(){return b().accessibilityText}},D(P,{cond:function(){var h; return!((h=b().overlayMetadata)==null||!h.primaryText)}, then:function(){return D(gC,{text:function(){var h;return(h=b().overlayMetadata)==null?void 0:h.primaryText}, noEndpoints:!0,noStyleRuns:!0})}})),D(P,{cond:function(){var h; return(h=b().overlayMetadata)==null?void 0:h.secondaryText}, then:function(){return D(FTb,{data:b,scrimStyle:c,className:void 0})}}))},"bc"),DTb=O(function(a){var b=a.data; var c=a.useDefaultStyle;var d=a.inlineMetadata;var e=a.aspectRatio;var f=Vo(function(){return(c==null?0:c())?!0:b().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"FPkeze"),h=Vo(function(){return ATb(Bp(e))},void 0,"IMOXbb"),m=dB(),p; a=FC(function(A){if(ID(HD(A),m.value,["AVATAR-VIEW-MODEL"]))return!1;var C;(C=p)==null||C.click();return!1}); var q=Vo(function(){return b().belowThumbnailMetadata||b().overlayMetadata},void 0,"lhY6Ff"),t=function(){return{arrangement:0, sizing:f()?"EXTRA_COMPACT":"STANDARD",typographyBump:!1,isCard:!1,isTiny:!1,isCentered:!1,aspectRatio:h(),disableRounding:f(),collectionStackNumber:0,useLegacyTypography:!1,useRichGridLegacyTypography:!1}},u=function(){return b().menuOnTap&&!(d==null?0:d())&&!b().belowThumbnailLockupMetadata},v=function(){var A; return(A=q())==null?void 0:A.avatar},w={},y={}; return D("div",{class:U(function(){return f()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(w.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!v()},w.shortsLockupViewModelHostOutsideMetadataHasMenu=u,w)), "on:click":a,el:m,role:"presentation"},D(OC,{data:function(){return b().belowThumbnailLockupMetadata||v()}},{lockupMetadataViewModel:function(A){return D(dRb,{data:A.data, lockupStyle:t,lockupCommand:function(){return LB(b().onTap)}})}, avatarViewModel:function(A){return D(zD,{data:A.data,avatarButtonCustomClassName:"shortsLockupViewModelHostOutsideMetadataAvatar"})}}),D("div",null,D("h3",{class:U("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(y.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var A,C; return!((A=q())==null?0:(C=A.primaryText)==null?0:C.content)},y.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=function(){return Bp(d)},y)), role:"presentation"},D(P,{cond:function(){return!b().belowThumbnailLockupMetadata}, then:function(){return D(vD,{ref:function(A){return void(p=A)}, command:function(){return b().onTap}, className:U("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var A,C;return(A=q())==null?void 0:(C=A.primaryText)==null?void 0:C.content}, "aria-label":function(){return b().accessibilityText}},D(P,{cond:function(){var A; return(A=q())==null?void 0:A.primaryText}, then:function(A){return D(gC,{text:A,noEndpoints:!0,noStyleRuns:!0})}}))}})),D(P,{cond:function(){var A; return!Bp(b).belowThumbnailLockupMetadata&&((A=q())==null?void 0:A.secondaryText)||void 0}, then:function(A){return D("div",{class:U("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},D(gC,{text:function(){return Bp(A)}, noStyleRuns:!0}))}})),D(P,{cond:u, then:function(){return D(CTb,{data:b,inlineMetadata:!1})}}))},"cc"),FTb=O(function(a){var b=a.data; var c=a.scrimStyle;a=a.className;var d={};return D("div",{class:U((d.shortsLockupViewModelHostMetadataSubhead=function(){return(c==null?void 0:c())!==4},d.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(c==null?void 0:c())===4},d),a), "aria-hidden":gda?!1:!0},D(gC,{text:function(){var e;return(e=b().overlayMetadata)==null?void 0:e.secondaryText}, noStyleRuns:!0}))},"dc"),CTb=O(function(a){var b=a.data; var c=a.inlineMetadata;a={};a=U((a.shortsLockupViewModelHostInlineMetadataMenu=function(){return c==null?void 0:c()},a.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!(c==null?0:c())},a.shortsLockupViewModelHostShowOverPlayer=function(){return!0},a),"image-overlay-text"); return D("div",{class:a},D(bL,{data:function(){return{style:(c==null?0:c())?"overlay":"mono",accessibilityLabel:b().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(d){d.preventDefault();d.stopPropagation();var e=NB({elementsCommand:b().menuOnTap,forceNewState:!0});if(e==null?0:e.onclick)e.onclick(d)}}}, iconName:"MORE_VERT"}))},"ec");var GTb=O(function(a){var b=a.data;var c=a.inlineMetadata;var d=a.aspectRatio;var e=a.scrimStyle;var f=a.className;var h=a.useDefaultStyle;var m=a.playbackRef;a=Vo(function(){var p=b().entityId;return p?p.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"VvS6je"); return D("ytm-shorts-lockup-view-model-v2",{class:U("shortsLockupViewModelHost",f)},D(jRb,{contentId:a,aspectRatio:function(){return(d==null?void 0:d())===1?1:(d==null?void 0:d())===2?2:4}},function(){return D(ETb,{data:b, inlineMetadata:c,aspectRatio:d,scrimStyle:e,className:f,useDefaultStyle:h,playbackRef:m})}))},"fc");bB(GTb,"ytm-shorts-lockup-view-model-v2",{props:{data:aB,inlineMetadata:aB,aspectRatio:aB,scrimStyle:aB,className:aB,useDefaultStyle:aB,playbackRef:aB}});function HTb(a,b,c){return function(){cL(a,{form:{element:b},commandController:c})}} ;var OR=O(function(a){var b=a.data;a=a.className;var c=tw("yt-decorated-avatar-view-model"),d=function(){return z(b().avatar,YJ)},e=Vo(function(){var f,h=b(),m=d(),p=LD(b().rendererContext),q=(f=c.value)!=null?f:void 0,t; if(m){q={data:h,avatar:m,onTap:p,element:q};f=q.data;h=q.avatar;m=q.onTap;p=q.element;q=q.commandController;var u,v,w;m=m?HTb(m,p,q):void 0;p=[];f.liveData&&p.push(0);var y;q=(y=f.liveData)==null?void 0:y.liveBadgeText;y=(t=z(f.rendererContext,dy))==null?void 0:t.label;t=BIb({data:h,onTap:m,decorations:p,badgeText:q,accessibilityText:y?y:f.a11yLabel,badgeIcon:(u=f.iconBadgeData)==null?void 0:u.iconName,badgeIconColor:((v=f.iconBadgeData)==null?0:v.iconColorOverride)?Jy(f.iconBadgeData.iconColorOverride): void 0,badgeIconBorderColor:((w=f.iconBadgeData)==null?0:w.strokeColorOverride)?Jy(f.iconBadgeData.strokeColorOverride):void 0})}else t={size:"medium"};return t},void 0,"q9GpE"); return D("yt-decorated-avatar-view-model",{class:U("ytDecoratedAvatarViewModelHost",a),el:c},D(P,{cond:function(){var f;return(f=d())==null?void 0:f.image}, then:function(f){return D(AIb,{data:e,image:f,iconType:"RADAR_LIVE",overlays:function(){return D(xIb,{data:d})}})}}))},"gc"); OR.idomCompat=!0;var ITb=O(function(a){var b={};return D("yt-sponsorships-channel-upsell-view-model",{class:U("ytSponsorshipsChannelUpsellViewModelHost",a.className,(b.ytSponsorshipsChannelUpsellViewModelHostWidthXXL=function(){var c=a.data();c=z(c==null?void 0:c.avatar,rsb);var d;return((d=z(c==null?void 0:c.avatar,YJ))==null?void 0:d.avatarImageSize)==="AVATAR_SIZE_XXL"},b))},D(OC,{data:function(){var c; return(c=a.data())==null?void 0:c.avatar}},{decoratedAvatarViewModel:OR}),D("div",{class:"ytSponsorshipsChannelUpsellViewModelTitleContainer"},D(gC,{text:function(){return a.data().title}, className:"ytSponsorshipsChannelUpsellViewModelTitle"})),D(OC,{data:function(){var c;return(c=a.data())==null?void 0:c.button}},{buttonViewModel:AD}))},"hc");bB(ITb,"yt-sponsorships-channel-upsell-view-model",{props:{data:$A,className:$A}});var JTb=16/9*210,OS=function(){var a=E.apply(this,arguments)||this;a.isExpandableContent=!1;a.hideShelfHeader=!1;a.engagementPanel=!1;a.buttonClasses=["arrow"];a.isSearch=!1;a.isChannel=!1;a.enableChannelLockup=x("enable_wider_channel_grid");a.disableScrollEventListener=!1;a.containsLockup=!1;a.overrideArrowPositionForProductCard=!1;a.overrideArrowPositionForShoppingItemCard=!1;a.overrideArrowPositionForShorts=!1;a.overrideArrowPositionForGridMovie=!1;a.overrideArrowPositionToCenter=!1;a.isSearchPostShelf= !1;a.overrideArrowPositionForMixedShelf=!1;a.overrideArrowPositionForMixedShelfShortsOnly=!1;a.hasBigThumbsShorts=!1;a.shouldUseMixedListHeight=!1;a.shouldUseShortsListHeight=!1;a.gridVideoWidth=0;a.isSearchVodShelf=!1;a.disableWheelScroll=!1;a.sizing="COMPACT";a.shortsLockupAspectRatio=0;return a}; k(OS,E);g=OS.prototype; g.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"yt-horizontal-list-renderer lockup",containerType:4},properties:{force16By9ThumbnailAspectRatio:"[[data.force16By9ThumbnailAspectRatio]]",sizing:"[[sizing]]"}},backgroundPromoRenderer:"ytd-background-promo-renderer",compactStationRenderer:"ytd-compact-station-renderer",gridChannelRenderer:"ytd-grid-channel-renderer",gridMoviePlaylistRenderer:"ytd-grid-movie-playlist-renderer",shoppingItemCardViewModel:{component:"ytd-shopping-item-card", params:{className:"yt-horizontal-list-renderer"}},gridMovieRenderer:"ytd-grid-movie-renderer",gridPlaylistRenderer:"ytd-grid-playlist-renderer",gridRadioRenderer:"ytd-grid-radio-renderer",gridShowRenderer:"ytd-grid-show-renderer",gridVideoRenderer:{component:"ytd-grid-video-renderer",properties:{isSearch:"[[isSearch]]",width:"[[gridVideoWidth]]"}},merchShelfItemRenderer:"ytd-merch-shelf-item-renderer",shoppingCompanionCarouselItemRenderer:"ytd-shopping-companion-item-renderer",displayAdRenderer:"ytd-display-ad-renderer", compactChannelRecommendationCardRenderer:"ytd-compact-channel-recommendation-card-renderer",postRenderer:"ytd-post-renderer",shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",params:{className:"yt-horizontal-list-renderer"},properties:{aspectRatio:"[[shortsLockupAspectRatio]]"}},sharedPostRenderer:"ytd-shared-post-renderer",verticalProductCardRenderer:{component:"ytd-vertical-product-card-renderer",properties:{isExpandableContent:"[[isExpandableContent]]"}},buttonRenderer:"ytd-button-renderer", toggleButtonRenderer:"ytd-toggle-button-renderer",buttonCardViewModel:{component:"button-card-view-model"},sponsorshipsChannelUpsellViewModel:"yt-sponsorships-channel-upsell-view-model"}},"data.previousButton":{id:"left-arrow",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},classListBinding:"[[buttonClasses]]"}},initialRenderPriority:0,waitForSignal:"eocs"},"data.nextButton":{id:"right-arrow",mapping:{buttonRenderer:{component:"ytd-button-renderer", properties:{"on-tap":"[[boundNextClick]]"},classListBinding:"[[buttonClasses]]"}}}}}; g.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchShortsDimensions(),x("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())}; g.computeInitialCountNumber=function(a){if(!a)return 6;var b=a.items.some(function(f){return!!f.topicRecommendationsChipRenderer}),c=a.items.some(function(f){return!!f.displayAdRenderer}),d=this.computeShouldListItemsHaveEqualHeight(a),e=a.items.some(function(f){return!!f.gridPlaylistRenderer}); a=a.items.some(function(f){return!!f.shoppingItemCardViewModel}); return b?9:c?8:e||d?10:a?7:6}; g.computeContainsPost=function(a){return!!a&&!!a.items&&a.items.some(function(b){return!!b.postRenderer})}; g.computeContainsLockup=function(){if(x("web_horizontal_list_lockup_arrow_killswitch"))return!1;var a,b;return(a=this.data)==null?void 0:(b=a.items)==null?void 0:b.some(function(c){return!!c.lockupViewModel})}; g.maybeUpdateLockupAspectRatio=function(){var a,b;if(this.computeContainsLockup()&&((a=this.data)==null?0:(b=a.items)==null?0:b.length)){var c;a=aRb((c=this.data.items[0].lockupViewModel)==null?void 0:c.contentType,this.data.force16By9ThumbnailAspectRatio);c=yOb(a);c=this.computeLockupWidth()/c;Ft(this.hostElement,{"--yt-horizontal-list-content-height":c+"px"})}}; g.computeOverrideArrowPositionForProductCard=function(a){if(this.isExpandableContent)return!1;var b;return!!(a==null?0:(b=a.items)==null?0:b.some(function(c){return!!c.verticalProductCardRenderer}))}; g.computeOverrideArrowPositionForShoppingItemCard=function(a){var b;return!!(a==null?0:(b=a.items)==null?0:b.some(function(c){return!!c.shoppingItemCardViewModel}))}; g.computeOverrideArrowPositionForShorts=function(a){return this.containsShorts(a)}; g.computeHasBigThumbsShorts=function(a,b){return a&&this.containsShorts(b)}; g.computeShouldListItemsHaveEqualHeight=function(a){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(a==null?void 0:a.itemSizeConstraint)}; g.computeShouldListItemsHaveShortsHeight=function(a){return this.computeShouldListItemsHaveEqualHeight(a)&&!this.containsGridVideoRenderer(a)}; g.computeLockupWidth=function(){return this.isSearchVodShelf?360:210}; g.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0}; g.containsShorts=function(a){var b;return!!(a==null?0:(b=a.items)==null?0:b.some(function(c){return!!c.shortsLockupViewModel}))}; g.containsGridVideoRenderer=function(a){var b;return!!(a==null?0:(b=a.items)==null?0:b.some(function(c){return!!c.gridVideoRenderer||!!c.lockupViewModel}))}; g.computeContainsGridMovieRenderer=function(a){var b;return!!(a==null?0:(b=a.items)==null?0:b.some(function(c){return!!c.gridMovieRenderer}))}; g.computeOverrideArrowPositionToCenter=function(a){return this.computeIsSearchPostShelf(a)}; g.computeIsSearchPostShelf=function(a){var b;return!!(a==null?0:(b=a.items)==null?0:b.some(function(c){var d,e;return((e=(d=c.postRenderer)==null?void 0:d.surface)!=null?e:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))}; g.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(a){var b;return!!(a==null?0:(b=a.items)==null?0:b.some(function(c){var d,e,f;return((f=(d=c.backgroundPromoRenderer)==null?void 0:(e=d.style)==null?void 0:e.value)!=null?f:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))}; g.computeIsSearchVodShelf=function(a,b){return a&&this.containsGridVideoRenderer(b)}; g.computeDisableWheelScroll=function(a,b){return this.computeIsSearchVodShelf(a,b)}; g.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"}; g.computeShortsLockupAspectRatio=function(){return 1}; g.maybeUpdateSearchShortsDimensions=function(){this.isSearch&&this.hasBigThumbsShorts&&Ft(this.hostElement,{"--ytd-shorts-thumbnail-height":JTb+"px"})}; OS.prototype.dataChanged=OS.prototype.dataChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],OS.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],OS.prototype,"ytRendererstamperBehavior",void 0);n([F(HQ.YtTaskEmitterBehavior),r("design:type",Object)],OS.prototype,"ytTaskEmitterBehavior",void 0);n([F(JQ.YtdHorizontalListBehavior),r("design:type",Object)],OS.prototype,"ytdHorizontalListBehavior",void 0); n([M(),r("design:type",Object)],OS.prototype,"data",void 0);n([M(),r("design:type",Object)],OS.prototype,"isExpandableContent",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],OS.prototype,"hideShelfHeader",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],OS.prototype,"engagementPanel",void 0);n([M(),r("design:type",Array)],OS.prototype,"buttonClasses",void 0);n([M(),r("design:type",Object)],OS.prototype,"isSearch",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],OS.prototype,"isChannel",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],OS.prototype,"enableChannelLockup",void 0);n([M(),r("design:type",Object)],OS.prototype,"disableScrollEventListener",void 0);n([M({computed:"computeInitialCountNumber(data)"}),r("design:type",Number)],OS.prototype,"initialCount",void 0);n([M({computed:"computeContainsPost(data)"}),r("design:type",Boolean)],OS.prototype,"supportComponentResize",void 0); n([M({computed:"computeContainsPost(data)"}),r("design:type",Boolean)],OS.prototype,"containsPost",void 0);n([M({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),r("design:type",Object)],OS.prototype,"containsLockup",void 0);n([M({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),r("design:type",Boolean)],OS.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0); n([M({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),r("design:type",Object)],OS.prototype,"overrideArrowPositionForProductCard",void 0);n([M({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),r("design:type",Object)],OS.prototype,"overrideArrowPositionForShoppingItemCard",void 0); n([M({computed:"computeOverrideArrowPositionForShorts(data)",reflectToAttribute:!0}),r("design:type",Object)],OS.prototype,"overrideArrowPositionForShorts",void 0);n([M({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),r("design:type",Object)],OS.prototype,"overrideArrowPositionForGridMovie",void 0);n([M({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),r("design:type",Object)],OS.prototype,"overrideArrowPositionToCenter",void 0); n([M({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),r("design:type",Object)],OS.prototype,"isSearchPostShelf",void 0);n([M({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),r("design:type",Object)],OS.prototype,"overrideArrowPositionForMixedShelf",void 0);n([M({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),r("design:type",Object)],OS.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0); n([M({computed:"computeHasBigThumbsShorts(isSearch, data)",reflectToAttribute:!0}),r("design:type",Object)],OS.prototype,"hasBigThumbsShorts",void 0);n([M({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),r("design:type",Object)],OS.prototype,"shouldUseMixedListHeight",void 0);n([M({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),r("design:type",Object)],OS.prototype,"shouldUseShortsListHeight",void 0); n([M({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),r("design:type",Object)],OS.prototype,"gridVideoWidth",void 0);n([M({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),r("design:type",Object)],OS.prototype,"isSearchVodShelf",void 0);n([M({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),r("design:type",Object)],OS.prototype,"disableWheelScroll",void 0); n([M({computed:"computeSizing(isSearch)"}),r("design:type",Object)],OS.prototype,"sizing",void 0);n([M({computed:"computeShortsLockupAspectRatio(isSearch)"}),r("design:type",Object)],OS.prototype,"shortsLockupAspectRatio",void 0);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],OS.prototype,"dataChanged",null); Tu(OS,"yt-horizontal-list-renderer",function(){if(ZNb===void 0){var a=document.createElement("template");Q(a,"
\n
\n
\n
\n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);ZNb=a}a=ZNb;return a},{mode:1});var KTb;var LTb;function MTb(a,b,c,d){if(b=b.trackingParams){var e,f=(e=c.getScreenLayer)==null?void 0:e.call(c);c=Tv(f);e=Sv(f);if(c&&e){var h=Qv(b);x("combine_ve_grafts")?Lz(a,b,e,f):tz(c,e,h);d==null||d(h)}}} ;var NTb={};NTb.YtNextContinuationBehavior=[HQ.YtTaskEmitterBehavior,{_noAccessors:!0,listeners:{"yt-load-next-continuation":"onLoadNextContinuation_"},nextContinuation:void 0,pendingContinuationRequest_:void 0,listeningForNavigate_:!1,created:function(){}, detached:function(){this.stopListeningForNavigate_()}, canUseContextualNetworkManager_:function(){return this.shouldUseTaskManager()&&!!this.getNetworkManager()}, startListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||this.listeningForNavigate_||(document.addEventListener("yt-navigate-start",It(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)}, stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",It(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)}, onLoadNextContinuation_:function(a,b){a.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,b,{}):(a={locationRetrieved:function(c){this.makeNextContinuationRequest_(c,b,{})}.bind(this)},Gt(this.hostElement,"yt-retrieve-location",a))}, makeNextContinuationRequest_:function(a,b,c){bw("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();a=b(a);var d;this.canUseContextualNetworkManager_()&&(d=this.getNetworkManager());d||(d=Fn().resolve(fE));b=oL.instance;if(Vk("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&b){d=zK([a.startsWith("/")?a.substr(1):a]);var e,f;c=BK(b,{},d,c==null?void 0:(e=c.context)==null?void 0:(f=e.clickTracking)==null?void 0:f.clickTrackingParams).then(function(h){return{response:h}})}else c= this.nextContinuation.usePost?d.postData(a,c):UD(a); c.then(this.updateNextContinuationData_.bind(this,a));this.pendingContinuationRequest_=c;this.startListeningForNavigate_()}, updateNextContinuationData_:function(a,b){var c=this;bw("ncl");this.pendingContinuationRequest_=void 0;if(b){var d={};this.nextContinuation&&(d=this.nextContinuation);if(b.response&&b.response.continuationContents&&b.response.continuationContents[d.continuationType]){a=b.response.continuationContents[d.continuationType];var e=d.header||"data.header",f=a[d.responseHeaderKey||"header"];f&&this.set(e,f);e=d.contentsArray||"data.contents";f=this.getContents_(a,d.responseContentsKey||"contents")||[];this.pathExists_(e)?( f.unshift(e),this.push.apply(this,f)):this.set(e,f);f&&(MTb(gz(),b.response,this.hostElement,function(h){Xu(c.hostElement,"yt-store-grafted-ve-action",[h])}),Gt(this.hostElement,"yt-next-continuation-data-updated",{continuationData:b, page:this,contentsArray:e}));this.set(d.continuationsArray||"data.continuations",a[d.responseContinuationsKey||"continuations"]||[])}else b.reload?fo(new Dl("Reloading from continuation is unsupported")):b.responseContext&&b.responseContext.errors||(delete b.xsrf_token,delete b.timing,delete b.endpoint,delete b.csn,b.responseContext&&delete b.responseContext.serviceTrackingParams,e={request:tma(a,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(b).sort()},b.response&&(e.responseContentKeys= Object.keys(b.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(e.continuationType=this.nextContinuation.continuationType.substr(0,256)),b=new Dl("Malformed continuation",e),a.indexOf("/comment_service_ajax")==0?fo(b):co(b)),this.set(d.continuationsArray||"data.continuations",[])}else eo(new Dl("Missing continuation response",a))}, getContents_:function(a,b){b=b.split(".");return Vh(a,b)}, pathExists_:function(a){var b=this;a=a.toString().split(".");for(var c=0;c\n\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;OTb===void 0&&(OTb=document.createElement("template"));var d=OTb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);PTb=a}a=PTb;return a},{mode:2});var QTb;var RTb;var QS=function(){return E.apply(this,arguments)||this}; k(QS,E);QS.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],QS.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],QS.prototype,"data",void 0);n([fu({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],QS); Tu(QS,"yt-music-pass-small-feature-info-renderer",function(){if(RTb===void 0){var a=document.createElement("template");Q(a,"\n\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;QTb===void 0&&(QTb=document.createElement("template"));var d=QTb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);RTb=a}a=RTb;return a},{mode:2});kE("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var RS=function(){var a=E.apply(this,arguments)||this;a.isCollapsible=!1;a.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return a}; k(RS,E);g=RS.prototype;g.computeIsCollapsible=function(a){return!!(((a==null?0:a.showMoreText)||(a==null?0:a.visibleRowCount))&&(a==null?0:a.isCollapsible))}; g.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-grid-renderer lockup",containerType:2,sizing:"COMPACT",force16By9ThumbnailAspectRatio:!0}},continuationItemRenderer:"ytd-continuation-item-renderer",gridChannelRenderer:"ytd-grid-channel-renderer",gridMoviePlaylistRenderer:"ytd-grid-movie-playlist-renderer",gridMovieRenderer:"ytd-grid-movie-renderer",gridPlaylistRenderer:"ytd-grid-playlist-renderer", playlistRenderer:"ytd-playlist-renderer",gridShowRenderer:"ytd-grid-show-renderer",gridVideoRenderer:"ytd-grid-video-renderer",gridRadioRenderer:"ytd-grid-radio-renderer",musicPassSmallFeatureInfoRenderer:"yt-music-pass-small-feature-info-renderer",gameCardRenderer:"ytd-game-card-renderer",verticalProductCardRenderer:{component:"ytd-vertical-product-card-renderer",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:"yt-next-continuation"}}}}; g.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}}; g.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()}; g.onIronResize=function(){var a=this;et(this,"updateGridInitItems",function(){a.maybeUpdateInitialItemsDisplayed()})}; g.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var a=this.getVisibleWidth();a!==0&&(a=Math.floor(a/214)*(this.data.visibleRowCount||2),a!==this.initialCount&&(this.initialCount=a,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}}; g.getVisibleWidth=function(){return this.hostElement.offsetWidth}; g.computeExpandVisible=function(a,b,c,d){return a&&b&&c&&!!d&&!!d.showMoreText}; g.computeShowMoreButton=function(a){return{text:a,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}}; g.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()}; g.initCollapsed=function(){var a=this;this.ytLazyListBehavior.canShowMore=!1;var b;(this.collapsed=!((b=this.data)==null||!b.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();ms(this,function(){Yu(a.hostElement,"yt-refit-popups-action")})}; g.fillRestIfNotCollapsible=function(){var a=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!a||this.ytLazyListBehavior.fillRemainingListItems()}; g.computeViewAllHidden=function(a,b){return a||!b.viewAllEndpoint}; RS.prototype.fillRestIfNotCollapsible=RS.prototype.fillRestIfNotCollapsible;RS.prototype.initCollapsed=RS.prototype.initCollapsed;RS.prototype.onIronResize=RS.prototype.onIronResize;RS.prototype.persistentGuideChanged=RS.prototype.persistentGuideChanged;n([F(Hs),r("design:type",Object)],RS.prototype,"ironResizableBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],RS.prototype,"ytRendererBehavior",void 0); n([F($C.YtRendererstamperBehavior),r("design:type",Object)],RS.prototype,"ytRendererstamperBehavior",void 0);n([F(IQ.YtLazyListBehavior),r("design:type",Object)],RS.prototype,"ytLazyListBehavior",void 0);n([F(NTb.YtNextContinuationBehavior),r("design:type",Object)],RS.prototype,"ytNextContinuationBehavior",void 0);n([F(FQ.YtdGuideStateAwareBehavior),r("design:type",Object)],RS.prototype,"ytdGuideStateAwareBehavior",void 0); n([F(ZP),r("design:type",Object)],RS.prototype,"ytContinuationHandlerBehavior",void 0);n([M(),r("design:type",Object)],RS.prototype,"data",void 0);n([M(),r("design:type",Boolean)],RS.prototype,"collapsed",void 0);n([M(),r("design:type",Number)],RS.prototype,"initialCount",void 0);n([M({computed:"computeShowMoreButton(data.showMoreText)"}),r("design:type",Object)],RS.prototype,"showMoreButton",void 0); n([M({computed:"computeIsCollapsible(data)"}),r("design:type",Object)],RS.prototype,"isCollapsible",void 0);n([Tt("#items"),r("design:type",HTMLElement)],RS.prototype,"items",void 0);n([cu("guidePersistentAndVisible"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],RS.prototype,"persistentGuideChanged",null);n([Kt("iron-resize"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],RS.prototype,"onIronResize",null); n([cu("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],RS.prototype,"initCollapsed",null);n([cu("canShowMore"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],RS.prototype,"fillRestIfNotCollapsible",null);n([gu({is:"ytd-grid-renderer",disableElementRegistration:!0})],RS); Tu(RS,"ytd-grid-renderer",function(){if(LTb!==void 0)return LTb;var a=document.createElement("template");Q(a,"\n
\n\n\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return LTb=a},{mode:2});var SS=function(){return E.apply(this,arguments)||this}; k(SS,E); SS.prototype.configureRendererStamper=function(){return{"data.adMetadata.displayAdRenderer":{id:"badge",mapping:{badge:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adMetadata.displayAdRenderer.badge]]"},params:{largeFontAdBadge:!0}}}},"data.adMetadata.displayAdRenderer.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{horizontalListRenderer:{component:"yt-horizontal-list-renderer",params:{useFloorScrolling:!0}},gridRenderer:"ytd-grid-renderer"}}}}; n([F($C.YtRendererstamperBehavior),r("design:type",Object)],SS.prototype,"ytRendererstamperBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],SS.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],SS.prototype,"data",void 0);n([gu({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],SS); Tu(SS,"ytd-carousel-ad-renderer",function(){if(KTb!==void 0)return KTb;var a=document.createElement("template");Q(a,"
\n
\n

\n \n \n

\n
\n
\n
\n
\n \n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return KTb=a},{mode:1});var STb;var TS=function(){return E.apply(this,arguments)||this}; k(TS,E);g=TS.prototype;g.configureRendererStamper=function(){return{"data.content.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.content.adBadge]]"}}}},"data.content.closeButton":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content.ctaButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}}; g.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,TS.JSC$13182_CLICK_LOCATION_ID_MAP))}; g.onSitelinkTap=function(a){a.stopPropagation();var b,c,d=a==null?void 0:(b=a.model)==null?void 0:(c=b.item)==null?void 0:c.onTap;d&&this.ytSparklesClickLocationBehavior.handleClick(d,a,!1)}; g.onTap=function(a){var b=this.data&&this.data.content&&this.data.content.navigationEndpoint;b&&this.ytSparklesClickLocationBehavior.handleClick(b,a,!1)}; g.sendImpression=function(){if(this.data&&this.data.content)for(var a=l(this.data.content.impressionEndpoints||[]),b=a.next();!b.done;b=a.next()){b=l(b.value.loggingUrls||[]);for(var c=b.next();!c.done;c=b.next())c=c.value,c.baseUrl&&an(c.baseUrl,c.attributionSrcMode)}}; TS.prototype.onTap=TS.prototype.onTap;TS.prototype.dataChanged=TS.prototype.dataChanged;TS.JSC$13182_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_TITLE","title"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","description"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","ad-badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_AD_WEBSITE","display-url"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK","sitelinks-table"]]); n([F($C.YtRendererstamperBehavior),r("design:type",Object)],TS.prototype,"ytRendererstamperBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],TS.prototype,"ytRendererBehavior",void 0);n([F(OQ.YtSparklesClickLocationBehavior),r("design:type",Object)],TS.prototype,"ytSparklesClickLocationBehavior",void 0);n([M(),r("design:type",Object)],TS.prototype,"data",void 0); n([cu("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],TS.prototype,"dataChanged",null);n([Kt("tap"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],TS.prototype,"onTap",null);n([gu({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],TS); Tu(TS,"ytd-promoted-sparkles-text-search-renderer",function(){if(STb!==void 0)return STb;var a=document.createElement("template");Q(a,"
\n
\n

\n \n [[getSimpleString(data.content.title)]]\n

\n \n \n \n
\n
\n \n \n
\n
\n
\n
\n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return STb=a},{mode:1});var TTb;var US=function(){var a=E.apply(this,arguments)||this;a.actionMap={"yt-mute-ad-action":"handleMuteAd"};return a}; k(US,E);g=US.prototype;g.created=function(){this.activeView=new QQ(this.hostElement)}; g.configureRendererStamper=function(){return{"data.menu":{id:x("fix_alignment_search_desktop_text_image_ads_small_screens")?"menu":"old-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{verticallyAligned:!0}}}},"data.mediaBadge":{id:"media-badge-search", mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},"data.adBadge":{id:"ad-badge-new",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"}}}}}}; g.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}}; g.computeHasAdBadge=function(a){return!(a==null||!a.adBadge)}; g.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",US.JSC$13189_DEFAULT_AD_BADGE_RENDERER),Ct(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&RQ(this.activeView,this.data.activeView),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,US.JSC$13189_CLICK_LOCATION_ID_MAP))}; g.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var a;(((a=this.data)==null?void 0:a.impressionCommands)||[]).forEach(function(b){b=l(b.loggingUrls||[]);for(var c=b.next();!c.done;c=b.next())c=c.value,c.baseUrl&&an(c.baseUrl,c.attributionSrcMode)}); this.data.impressionsFired=!0}}; g.onTap=function(a){var b,c=(b=this.data)==null?void 0:b.navigationEndpoint,d;(b=(d=this.data)==null?void 0:d.thumbnailNavigationEndpoint)&&BO(lt(a),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(b,a,!1):c&&this.ytSparklesClickLocationBehavior.handleClick(c,a,!1)}; g.handleMuteAd=function(){this.collapsed=!0}; g.attached=function(){var a=this;x("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&SQ(a.activeView)})}; g.detached=function(){x("stop_av_measurement_on_detach")&&SQ(this.activeView)}; ba.Object.defineProperties(US.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}}, webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}}, webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var a;return!(((a=this.data)==null?void 0:a.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}}, webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var a;return!(((a=this.data)==null?void 0:a.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}}, sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}}, hideActionButton:{configurable:!0,enumerable:!0,get:function(){return!(this.data&&this.data.actionButton)}}, useRoundedBadge:{configurable:!0,enumerable:!0,get:function(){return this.webSearchLayout}}}); US.prototype.dataChanged=US.prototype.dataChanged; US.JSC$13189_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_TITLE","title"],["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","description"],["PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL","action-button"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","ad-badge-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_AD_WEBSITE","website-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","sparkles-container"]]); US.JSC$13189_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:zy("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};n([F($C.YtRendererstamperBehavior),r("design:type",Object)],US.prototype,"ytRendererstamperBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],US.prototype,"ytRendererBehavior",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],US.prototype,"actionHandlerBehavior",void 0); n([F(OQ.YtSparklesClickLocationBehavior),r("design:type",Object)],US.prototype,"ytSparklesClickLocationBehavior",void 0);n([M(),r("design:type",Object)],US.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],US.prototype,"collapsed",void 0);n([M({reflectToAttribute:!0,value:function(){return x("enable_desktop_search_bigger_thumbs")}}), r("design:type",Boolean)],US.prototype,"useBiggerThumbs",void 0);n([M({reflectToAttribute:!0,value:function(){return ml("desktop_search_bigger_thumbs_style")}}), r("design:type",String)],US.prototype,"biggerThumbsStyle",void 0);n([M({reflectToAttribute:!0,value:function(){return x("fix_alignment_search_desktop_text_image_ads_small_screens")}}), r("design:type",Boolean)],US.prototype,"fixAlignmentSmallScreens",void 0);n([M({reflectToAttribute:!0}),H("data.mediaHoverOverlay"),r("design:type",Boolean),r("design:paramtypes",[])],US.prototype,"hideHoverOverlay",null);n([H("data.promotedSparklesWebStyle"),r("design:type",Boolean),r("design:paramtypes",[])],US.prototype,"webSearchLayout",null); n([M({reflectToAttribute:!0}),H("data.promotedSparklesWebStyle","data.isSquareThumbnail"),r("design:type",Boolean),r("design:paramtypes",[])],US.prototype,"webSearchLayoutLandscape",null);n([M({reflectToAttribute:!0}),H("data.promotedSparklesWebStyle","data.isSquareThumbnail"),r("design:type",Boolean),r("design:paramtypes",[])],US.prototype,"webSearchLayoutSquare",null); n([M({reflectToAttribute:!0}),H("data.promotedSparklesWebStyle"),r("design:type",Boolean),r("design:paramtypes",[])],US.prototype,"sparklesCtaNoBackground",null);n([M({reflectToAttribute:!0}),H("data.actionButton"),r("design:type",Boolean),r("design:paramtypes",[])],US.prototype,"hideActionButton",null);n([M({computed:"computeButtonOverride(uiUpdate)"}),r("design:type",Object)],US.prototype,"buttonOverride",void 0); n([M({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),r("design:type",Boolean)],US.prototype,"hasNewAdBadge",void 0);n([H("data.promotedSparklesWebStyle"),r("design:type",Boolean),r("design:paramtypes",[])],US.prototype,"useRoundedBadge",null);n([cu("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],US.prototype,"dataChanged",null);n([gu({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],US); Tu(US,"ytd-promoted-sparkles-web-renderer",function(){if(TTb!==void 0)return TTb;var a=document.createElement("template");Q(a,"
\n
\n
\n
\n \n \n
\n
\n
\n
\n
\n
\n
\n

\n [[getSimpleString(data.title)]]\n

\n
\n [[getSimpleString(data.description)]]\n
\n
\n \n \n \n
\n
\n
\n [[getSimpleString(data.websiteText)]]\n
\n
\n
\n
\n
\n
\n
\n
"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return TTb=a},{mode:1});var UTb;function VTb(a){if(a&&a.inlinePlaybackEndpoint&&a.navigationEndpoint&&a.thumbnail){var b,c,d,e;return{inlinePlaybackEndpoint:a.inlinePlaybackEndpoint,navigationEndpoint:a.navigationEndpoint,thumbnail:a.thumbnail,thumbnailOverlays:a.thumbnailOverlays,accessibilityText:(e=(b=a.title)==null?void 0:(c=b.accessibility)==null?void 0:(d=c.accessibilityData)==null?void 0:d.label)!=null?e:""}}} ;var VS=function(){var a=E.apply(this,arguments)||this;a.enableMonoStyle=x("enable_default_mono_cta_migration_web_client");a.videoPreviewDataProvider=function(){return VTb(a.data)}; return a}; k(VS,E);g=VS.prototype;g.created=function(){this.activeView=new QQ(this.hostElement)}; g.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.ctaRenderer":{id:"call-to-action",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}}}}; g.computeShowCta=function(a){return!(a==null||!a.ctaRenderer)}; g.onCtaClick=function(){var a,b,c,d=(a=this.data)==null?void 0:(b=a.ctaRenderer)==null?void 0:(c=b.buttonRenderer)==null?void 0:c.command;d&&this.ytComponentBehavior.resolveCommand(d)}; g.onWatchButtonClick=function(){var a,b,c,d=(a=this.data)==null?void 0:(b=a.watchButtonRenderer)==null?void 0:(c=b.buttonRenderer)==null?void 0:c.command;d&&this.ytComponentBehavior.resolveCommand(d)}; g.onTap=function(){}; g.dataChanged=function(){if(this.data){var a;((a=this.data)==null?0:a.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",VS.JSC$13194_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&RQ(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",VS.JSC$13194_DEFAULT_CLICK_LOCATION_BEHAVIOR,VS.JSC$13194_CLICK_LOCATION_ID_MAP);this.thumbnail&&(a=this.thumbnail.getElementsByTagName("a"),a.length> 0&&(a=a.namedItem("thumbnail"))&&a.removeAttribute("href"));var b;if((b=this.data)==null?0:b.forceImpAutoplay){var c;(c=this.inlinePreviewHoverListener)==null||aQb(c)}}}; g.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var a=l(this.data.impressionUrls),b=a.next();!b.done;b=a.next())b=b.value,Wpa(b,Ypa(b));this.data.impressionsFired=!0}}; g.maybeComputeHref=function(){return null}; g.computeIsShortDR=function(a){return!(a==null||!a.watchButtonRenderer)&&!(a==null||!a.ctaRenderer)&&!!this.enableShortDR}; g.computeIsNewUiOrShortDr=function(a){return this.computeIsShortDR(a)}; g.computeHideAvatar=function(a){return!((a==null?0:a.channelThumbnail)&&this.computeIsNewUiOrShortDr(a))}; g.onClick=function(a){var b,c=(b=this.data)==null?void 0:b.navigationEndpoint;if(this.enableShortDR&&c&&(z(c,py)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(c,a,!!z(c,py)),a.stopPropagation();else if(c&&z(c,py))this.ytSparklesClickLocationBehavior.handleClick(c,a,!0),a.stopPropagation();else if(c){var d,e;((d=this.data)==null?0:d.navigationEndpoint)&&((e=this.data)==null?0:e.adPlaybackContextParams)&&(b=this.data.navigationEndpoint,a=this.data.adPlaybackContextParams, b.commandMetadata&&z(b.commandMetadata,ly)&&z(b.commandMetadata,ly).url&&(b=$k(z(b.commandMetadata,ly).url).adurl)&&uma(b)&&Hy(Vc(b),{encoded_ad_playback_context:a}));this.ytComponentBehavior.resolveCommand(c)}}; g.computeButtonOverride=function(a){if(this.computeIsNewUiOrShortDr(a))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}}; g.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}}; g.onThumbnailContainerClick=function(a){this.onClick(a)}; g.computeThumbnailWidth=function(a,b){return a?b==="MASSIVE"?600:b==="BIG"?500:b==="MEDIUM"?450:420:360}; g.attached=function(){var a=this,b;((b=this.data)==null?0:b.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();x("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&SQ(a.activeView)})}; g.detached=function(){var a;((a=this.data)==null?0:a.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();x("stop_av_measurement_on_detach")&&SQ(this.activeView)}; g.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.inlinePreviewHoverListener=SR({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:ASb})}; g.clearInlinePreviewHoverListeners=function(){var a;(a=this.inlinePreviewHoverListener)==null||VR(a)}; VS.prototype.dataChanged=VS.prototype.dataChanged;VS.prototype.onTap=VS.prototype.onTap;VS.JSC$13194_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:zy("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};VS.JSC$13194_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]); VS.JSC$13194_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];n([F($C.YtRendererstamperBehavior),r("design:type",Object)],VS.prototype,"ytRendererstamperBehavior",void 0); n([F(Yz.YtRendererBehavior),r("design:type",Object)],VS.prototype,"ytRendererBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],VS.prototype,"ytComponentBehavior",void 0);n([F(OQ.YtSparklesClickLocationBehavior),r("design:type",Object)],VS.prototype,"ytSparklesClickLocationBehavior",void 0);n([Tt("#main-container"),r("design:type",HTMLElement)],VS.prototype,"mainContainer",void 0);n([M(),r("design:type",Object)],VS.prototype,"data",void 0);n([M({reflectToAttribute:!0,value:function(){return x("enable_desktop_search_bigger_thumbs")}}), r("design:type",Boolean)],VS.prototype,"useBiggerThumbs",void 0);n([M({reflectToAttribute:!0,value:function(){return x("enable_video_display_compact_button_group_for_desktop_search")}}), r("design:type",Boolean)],VS.prototype,"enableShortDR",void 0);n([M({reflectToAttribute:!0,value:function(){return ml("desktop_search_bigger_thumbs_style")}}), r("design:type",String)],VS.prototype,"biggerThumbsStyle",void 0);n([M({reflectToAttribute:!0,computed:"computeShowCta(data)"}),r("design:type",Boolean)],VS.prototype,"showCta",void 0);n([M({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),r("design:type",Boolean)],VS.prototype,"isShortDr",void 0);n([M({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),r("design:type",Boolean)],VS.prototype,"isShortDrOrNewUi",void 0); n([M({computed:"computeButtonOverride(data)"}),r("design:type",Object)],VS.prototype,"buttonOverride",void 0);n([M({computed:"computeSecondaryButtonOverride(data)"}),r("design:type",Object)],VS.prototype,"secondaryButtonOverride",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],VS.prototype,"enableMonoStyle",void 0);n([Tt("ytd-thumbnail"),r("design:type",HTMLElement)],VS.prototype,"thumbnail",void 0); n([Kt("tap"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],VS.prototype,"onTap",null);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],VS.prototype,"dataChanged",null);n([gu({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],VS); Tu(VS,"ytd-promoted-video-renderer",function(){if(UTb!==void 0)return UTb;var a=document.createElement("template");Q(a,"\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return UTb=a},{mode:1});var WTb;var WS=function(){var a=E.apply(this,arguments)||this;a.useRoundedBadge=!0;a.sitelinkIds=[];return a}; k(WS,E);g=WS.prototype; g.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{verticallyAligned:!0}}}},"data.mediaBadge":{id:"media-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},"data.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer", properties:{topStandaloneBadge:"[[data.adBadge]]"}}}}}}; g.dataChanged=function(){var a;(a=this.data)!=null&&a.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,WS.JSC$13200_CLICK_LOCATION_ID_MAP)}; g.onTap=function(a){var b,c=(b=this.data)==null?void 0:b.navigationCommand;c&&!BO(lt(a),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(c,a,!1)}; g.onSitelinkTap=function(a){var b,c,d=a==null?void 0:(b=a.model)==null?void 0:(c=b.item)==null?void 0:c.onTap;d&&this.ytSparklesClickLocationBehavior.handleClick(d,a,!1)}; g.configureSitelinkClickTargets=function(){var a=this,b,c,d=(b=this.data)==null?void 0:(c=b.clickLocationTargets)==null?void 0:c.find(function(e){return e.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"}); d&&wt(this.hostElement).querySelectorAll(".sitelink").forEach(function(e){Ct(e,"yt-simple-endpoint",!0);a.sitelinkIds.push(e.id);var f,h;(f=a.ytSparklesClickLocationBehavior)==null||(h=f.clickTargetMap)==null||h.set(e.id,d)})}; g.sendImpression=function(){var a,b,c=((a=this.data)==null?void 0:(b=a.impressionCommand)==null?void 0:b.loggingUrls)||[];a=l(c);for(b=a.next();!b.done;b=a.next())b=b.value,b.baseUrl&&an(b.baseUrl,b.attributionSrcMode)}; g.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)}; ba.Object.defineProperties(WS.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}}); WS.prototype.onTap=WS.prototype.onTap;WS.prototype.dataChanged=WS.prototype.dataChanged;WS.JSC$13200_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_INNER_BACKGROUND","text-image-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_TITLE","headline"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","description"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","ad-badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_AD_WEBSITE","website-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root-container"]]); n([F($C.YtRendererstamperBehavior),r("design:type",Object)],WS.prototype,"ytRendererstamperBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],WS.prototype,"ytRendererBehavior",void 0);n([F(OQ.YtSparklesClickLocationBehavior),r("design:type",Object)],WS.prototype,"ytSparklesClickLocationBehavior",void 0);n([M(),r("design:type",Object)],WS.prototype,"data",void 0); n([M({reflectToAttribute:!0}),H("data"),r("design:type",Boolean),r("design:paramtypes",[])],WS.prototype,"showFavicon",null);n([M({reflectToAttribute:!0,value:function(){return x("enable_desktop_search_bigger_thumbs")}}), r("design:type",Boolean)],WS.prototype,"useBiggerThumbs",void 0);n([M({reflectToAttribute:!0,value:function(){return ml("desktop_search_bigger_thumbs_style")}}), r("design:type",String)],WS.prototype,"biggerThumbsStyle",void 0);n([cu("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],WS.prototype,"dataChanged",null);n([Kt("tap"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],WS.prototype,"onTap",null);n([gu({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],WS); Tu(WS,"ytd-text-image-no-button-layout-renderer",function(){if(WTb!==void 0)return WTb;var a=document.createElement("template");Q(a,"
\n
\n
\n
\n \n

[[getSimpleString(data.title)]]

\n
\n
\n
\n
\n
\n \n \n
\n
\n
[[getSimpleString(data.websiteText)]]
\n
\n \n
\n
\n
\n
\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return WTb=a},{mode:2});var XTb;var XS=function(){var a=E.apply(this,arguments)||this;a.uiUpdate=x("web_modern_buttons");a.noBottomMargin=!1;a.enableMonoStyle=x("enable_default_mono_cta_migration_web_client");return a}; k(XS,E);g=XS.prototype;g.configureRendererStamper=function(){return{"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.adCtaButton":{id:"call-to-action",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}}}}; g.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",XS.JSC$13206_DEFAULT_CLICK_LOCATION_BEHAVIOR,XS.JSC$13206_CLICK_LOCATION_ID_MAP)}; g.getSimpleString=function(a){return lz(a)}; g.onClick=function(a){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var b,c=(b=this.data)==null?void 0:b.navigationEndpoint,d;b=(d=this.data)==null?void 0:d.channelEndpoint;var e,f;((f=z((e=this.data)==null?void 0:e.adCtaButton,TJ))==null?0:f.command)&&BO(lt(a),this.hostElement,["call-to-action"])||(b&&BO(lt(a),this.hostElement,["channel-thumbnail-container","short-byline-text"])?this.ytSparklesClickLocationBehavior.handleClick(b,a,!1):BO(lt(a),this.hostElement,["secondary-button"])|| c&&this.ytSparklesClickLocationBehavior.handleClick(c,a,!!z(c,py)))}}; g.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}}; g.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}}; ba.Object.defineProperties(XS.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&x("web_enable_typography_bump_v2")}}, isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var a,b;return!((a=this.data)==null||!a.watchButton)&&!((b=this.data)==null||!b.adCtaButton)}}}); XS.prototype.dataChanged=XS.prototype.dataChanged;XS.JSC$13206_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_TITLE","title-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","channel-thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER","short-byline-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL","call-to-action"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","ad-inline-playback-metadata"]]); XS.JSC$13206_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TITLE",code:0,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:19,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER",code:20,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE", code:31,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL",code:8,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];n([F(Yz.YtRendererBehavior),r("design:type",Object)],XS.prototype,"ytRendererBehavior",void 0); n([F($C.YtRendererstamperBehavior),r("design:type",Object)],XS.prototype,"ytRendererstamperBehavior",void 0);n([F(OQ.YtSparklesClickLocationBehavior),r("design:type",Object)],XS.prototype,"ytSparklesClickLocationBehavior",void 0);n([M(),r("design:type",Object)],XS.prototype,"data",void 0);n([M({reflectToAttribute:!0,value:!1}),r("design:type",Boolean)],XS.prototype,"miniMode",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],XS.prototype,"uiUpdate",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],XS.prototype,"noBottomMargin",void 0);n([M({computed:"computeButtonOverride(uiUpdate)"}),r("design:type",Object)],XS.prototype,"buttonOverride",void 0);n([M({computed:"computeSecondaryButtonOverride(uiUpdate)"}),r("design:type",Object)],XS.prototype,"secondaryButtonOverride",void 0);n([Tt("#button-container"),r("design:type",HTMLElement)],XS.prototype,"buttonContainer",void 0); n([M({reflectToAttribute:!0,value:!1}),r("design:type",Boolean)],XS.prototype,"typographyBump",void 0);n([M({reflectToAttribute:!0}),H("typographyBump"),r("design:type",Boolean),r("design:paramtypes",[])],XS.prototype,"typographyBumpV2",null);n([M({reflectToAttribute:!0}),r("design:type",Object)],XS.prototype,"enableMonoStyle",void 0);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],XS.prototype,"dataChanged",null); n([H("data"),M({reflectToAttribute:!0}),r("design:type",Boolean),r("design:paramtypes",[])],XS.prototype,"isButtonGroup",null);n([gu({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],XS); Tu(XS,"ytd-ad-inline-playback-meta-block",function(){if(XTb!==void 0)return XTb;var a=document.createElement("template");Q(a,"
\n
\n
\n \n
\n
\n
\n \n
\n
\n
\n \n
\n
\n
\n \n
\n \n
\n
\n
\n \n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return XTb=a},{mode:2});var YTb;var YS=function(){var a=E.apply(this,arguments)||this;a.noBottomMargin=!1;a.JSC$13212_activeViewMeasurementDataResolver=yj();a.videoPreviewDataProvider=function(){return VTb(a.data)}; return a}; k(YS,E);g=YS.prototype;g.created=function(){this.activeView=new QQ(this.hostElement)}; g.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}}; g.attached=function(){var a=this;this.updateInlinePreviewHoverListeners();this.JSC$13212_activeViewMeasurementDataResolver.promise.then(function(b){RQ(a.activeView,b)}); x("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&SQ(a.activeView)})}; g.detached=function(){this.clearInlinePreviewHoverListeners();x("stop_av_measurement_on_detach")&&SQ(this.activeView)}; g.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.inlinePreviewHoverListener=SR({mediaRenderer:this,lockupElement:this.dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:ASb})}; g.clearInlinePreviewHoverListeners=function(){var a;(a=this.inlinePreviewHoverListener)==null||VR(a)}; g.onDataChanged=function(){var a;((a=this.data)==null?0:a.activeView)&&this.JSC$13212_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",YS.JSC$13211_DEFAULT_CLICK_LOCATION_BEHAVIOR,YS.JSC$13211_CLICK_LOCATION_ID_MAP);this.thumbnail&&(a=this.thumbnail.getElementsByTagName("a"),a.length>0&&(a=a.namedItem("thumbnail"))&&a.removeAttribute("href"));var b;if((b=this.data)== null?0:b.forceImpAutoplay){var c;(c=this.inlinePreviewHoverListener)==null||aQb(c)}}; g.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)}; g.onThumbnailContainerClick=function(a){if(this.data&&this.data.navigationEndpoint){var b,c=(b=this.data)==null?void 0:b.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(c,a,!!z(c,py));a.stopPropagation()}}; g.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression}; g.impressionLog=function(){var a=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var b,c,d=(c=z((b=this.data)==null?void 0:b.onImpression,iy))==null?void 0:c.commands;d&&(d.forEach(function(e){e.clickTrackingParams&&delete e.clickTrackingParams;a.ytComponentBehavior.resolveCommand(e)}),this.data.impressionsFired=!0)}}; ba.Object.defineProperties(YS.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.inlinePreviewHoverListener)==null?0:UR(a))&&!!this.ytdLockupBehavior.lockupIsHovered}}}); YS.prototype.onTypographyBumpChanged=YS.prototype.onTypographyBumpChanged;YS.prototype.onDataChanged=YS.prototype.onDataChanged;YS.JSC$13211_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);YS.JSC$13211_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}]; n([F(mz.YtComponentBehavior),r("design:type",Object)],YS.prototype,"ytComponentBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],YS.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],YS.prototype,"ytRendererstamperBehavior",void 0);n([F(NQ),r("design:type",Object)],YS.prototype,"ytdDismissibleItemBehavior",void 0);n([F(bR),r("design:type",Object)],YS.prototype,"ytdLockupBehavior",void 0); n([F(kC),r("design:type",Object)],YS.prototype,"ytdReduxBehavior",void 0);n([F(OQ.YtSparklesClickLocationBehavior),r("design:type",Object)],YS.prototype,"ytSparklesClickLocationBehavior",void 0);n([M(),r("design:type",Object)],YS.prototype,"data",void 0);n([M(),r("design:type",Object)],YS.prototype,"noBottomMargin",void 0);n([M({reflectToAttribute:!0,selector:tC}),r("design:type",Boolean)],YS.prototype,"miniMode",void 0);n([M({value:!1}),r("design:type",Boolean)],YS.prototype,"typographyBump",void 0); n([Tt("ytd-thumbnail"),r("design:type",HTMLElement)],YS.prototype,"thumbnail",void 0);n([Tt("#dismissible"),r("design:type",HTMLElement)],YS.prototype,"dismissibleMedia",void 0);n([Tt("ytd-ad-inline-playback-meta-block"),r("design:type",HTMLElement)],YS.prototype,"adInlinePlaybackMetaBlock",void 0);n([cu("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],YS.prototype,"onDataChanged",null); n([cu("typographyBump"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],YS.prototype,"onTypographyBumpChanged",null);n([H("lockupIsHovered"),r("design:type",Boolean),r("design:paramtypes",[])],YS.prototype,"isHovered",null);n([gu({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],YS); Tu(YS,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(YTb!==void 0)return YTb;var a=document.createElement("template");Q(a,"
\n
\n
\n \n \n
\n \n \n
\n
\n
\n
\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return YTb=a},{mode:1});var ZTb;var ZS=function(){var a=E.apply(this,arguments)||this;a.JSC$13215_activeViewMeasurementDataResolver=yj();a.videoPreviewDataProvider=function(){return VTb(a.data)}; return a}; k(ZS,E);g=ZS.prototype;g.created=function(){this.activeView=new QQ(this.hostElement)}; g.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}}; g.attached=function(){var a=this;this.updateInlinePreviewHoverListeners();this.JSC$13215_activeViewMeasurementDataResolver.promise.then(function(b){RQ(a.activeView,b)})}; g.detached=function(){this.clearInlinePreviewHoverListeners()}; g.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.inlinePreviewHoverListener=SR({mediaRenderer:this,lockupElement:this.dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:ASb})}; g.clearInlinePreviewHoverListeners=function(){var a;(a=this.inlinePreviewHoverListener)==null||VR(a)}; g.onDataChanged=function(){var a;((a=this.data)==null?0:a.activeView)&&this.JSC$13215_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",ZS.JSC$13214_DEFAULT_CLICK_LOCATION_BEHAVIOR,ZS.JSC$13214_CLICK_LOCATION_ID_MAP);this.thumbnail&&(a=this.thumbnail.getElementsByTagName("a"),a.length>0&&(a=a.namedItem("thumbnail"))&&a.removeAttribute("href"))}; g.onThumbnailContainerClick=function(a){if(this.data&&this.data.navigationEndpoint){var b,c=(b=this.data)==null?void 0:b.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(c,a,!0);a.stopPropagation()}}; g.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression}; g.impressionLog=function(){var a=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var b,c,d=(c=z((b=this.data)==null?void 0:b.onImpression,iy))==null?void 0:c.commands;d&&(d.forEach(function(e){e.clickTrackingParams&&delete e.clickTrackingParams;Fn().resolve(JB).resolveCommand(e,{form:{element:a.hostElement}})}),this.data.impressionsFired=!0)}}; ba.Object.defineProperties(ZS.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.inlinePreviewHoverListener)==null?0:UR(a))&&!!this.ytdLockupBehavior.lockupIsHovered}}}); ZS.prototype.onDataChanged=ZS.prototype.onDataChanged;ZS.JSC$13214_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);ZS.JSC$13214_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];n([F(Yz.YtRendererBehavior),r("design:type",Object)],ZS.prototype,"ytRendererBehavior",void 0); n([F($C.YtRendererstamperBehavior),r("design:type",Object)],ZS.prototype,"ytRendererstamperBehavior",void 0);n([F(NQ),r("design:type",Object)],ZS.prototype,"ytdDismissibleItemBehavior",void 0);n([F(bR),r("design:type",Object)],ZS.prototype,"ytdLockupBehavior",void 0);n([F(kC),r("design:type",Object)],ZS.prototype,"ytdReduxBehavior",void 0);n([F(OQ.YtSparklesClickLocationBehavior),r("design:type",Object)],ZS.prototype,"ytSparklesClickLocationBehavior",void 0); n([M(),r("design:type",Object)],ZS.prototype,"data",void 0);n([M({reflectToAttribute:!0,selector:tC}),r("design:type",Boolean)],ZS.prototype,"miniMode",void 0);n([Tt("ytd-thumbnail"),r("design:type",HTMLElement)],ZS.prototype,"thumbnail",void 0);n([Tt("#dismissible"),r("design:type",HTMLElement)],ZS.prototype,"dismissibleMedia",void 0);n([cu("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],ZS.prototype,"onDataChanged",null); n([H("lockupIsHovered"),r("design:type",Boolean),r("design:paramtypes",[])],ZS.prototype,"isHovered",null);n([gu({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],ZS); Tu(ZS,"ytd-video-display-full-buttoned-renderer",function(){if(ZTb!==void 0)return ZTb;var a=document.createElement("template");Q(a,"
\n
\n
\n \n \n
\n \n \n
\n
\n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return ZTb=a},{mode:1});var $S=function(a,b){Va.call(this,a);this.args=[];b&&this.args.push(b)}; k($S,Va);var aT=function(a,b,c,d){d=d===void 0?!1:d;Va.call(this,a);this.JSC$24414_adsClientErrorMessage=c;this.JSC$24414_aggressivelySample=d;this.args=[];b&&this.args.push(b)}; k(aT,Va);var $Tb=function(a){Ji.call(this);var b=this;this.initializationFunction=a;this.instance=null;this.addOnDisposeCallback(function(){Ii(b.instance);b.instance=null})}; k($Tb,Ji);$Tb.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&DQ("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var aUb=function(){var a=new Map;[].forEach(function(b){a.set(b.JSC$24415_getType(),b)})};new Promise(function(){});var bUb=new Map([["unspecified","CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"],["core","CONTROL_FLOW_MANAGER_LAYER_CORE"],["adapter","CONTROL_FLOW_MANAGER_LAYER_ADAPTER"],["surface","CONTROL_FLOW_MANAGER_LAYER_SURFACE"],["external","CONTROL_FLOW_MANAGER_LAYER_EXTERNAL"]]),cUb=new Map([["normal",{requestEvent:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",successEvent:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{requestEvent:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",successEvent:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}], ["muted",{requestEvent:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",successEvent:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{requestEvent:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",successEvent:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{requestEvent:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",successEvent:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{requestEvent:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED", successEvent:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}],["error",{requestEvent:"ADS_CLIENT_EVENT_TYPE_ABORTED_EXIT_LAYOUT_REQUESTED",successEvent:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED"}]]);function dUb(a){var b;return((b=cUb.get(a))==null?void 0:b.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"} function eUb(a){var b={type:a.triggerType};a.triggeringSlotId!=null&&(b.triggerSourceData||(b.triggerSourceData={}),b.triggerSourceData.associatedSlotId=a.triggeringSlotId);a.triggeringLayoutId!=null&&(b.triggerSourceData||(b.triggerSourceData={}),b.triggerSourceData.associatedLayoutId=a.triggeringLayoutId);return b} var fUb=function(a){this.experimentApiProvider=a;a=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=a<.1};var bT=function(a,b,c,d){Ji.call(this);this.adsControlFlowEventListeners=b;this.adEventLogger=c;this.experimentApiProvider=d;this.adsControlFlowManagerHelper=a(this,this,this,this,this);Ki(this,this.adsControlFlowManagerHelper);a=l(b);for(b=a.next();!b.done;b=a.next())Ki(this,b.value)}; k(bT,Ji); bT.prototype.onSlotEntered=function(a){if(cT(this.adsControlFlowManagerHelper,a)!=null){dT(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",a);this.adsControlFlowManagerHelper.onSlotEntered(a);for(var b=l(this.adsControlFlowEventListeners),c=b.next();!c.done;c=b.next())c.value.onSlotEntered(a);if(cT(this.adsControlFlowManagerHelper,a)!=null&&cT(this.adsControlFlowManagerHelper,a).isOccupyingSlotType()&&eT(this.adsControlFlowManagerHelper,a)&&!gUb(this.adsControlFlowManagerHelper,a)){var d;fT(this.adEventLogger, "ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",a,(d=eT(this.adsControlFlowManagerHelper,a))!=null?d:void 0);a=cT(this.adsControlFlowManagerHelper,a);a.slotLifecycleStage!=="entered"&&gT(a.slot,a.slotLifecycleStage,"enterLayoutForSlot");a.slotLifecycleStage="rendering";a.registeredLayoutRenderingAdapter.startRendering(a.layout)}}}; bT.prototype.onSlotExited=function(a){if(cT(this.adsControlFlowManagerHelper,a)!=null){dT(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",a);this.adsControlFlowManagerHelper.onSlotExited(a);for(var b=l(this.adsControlFlowEventListeners),c=b.next();!c.done;c=b.next())c.value.onSlotExited(a);cT(this.adsControlFlowManagerHelper,a)!=null&&cT(this.adsControlFlowManagerHelper,a).markedForUnscheduleAfterOutboundAdapterRequests&&hUb(this,a)}}; var iUb=function(a,b,c){if(cT(a.adsControlFlowManagerHelper,b)!=null){fT(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,c);a=l(a.adsControlFlowEventListeners);for(var d=a.next();!d.done;d=a.next())iUb(d.value,b,c)}}; bT.prototype.onLayoutExited=function(a,b,c){if(cT(this.adsControlFlowManagerHelper,a)!=null){fT(this.adEventLogger,dUb(c),a,b);this.adsControlFlowManagerHelper.onLayoutExited(a,b);for(var d=l(this.adsControlFlowEventListeners),e=d.next();!e.done;e=d.next())e.value.onLayoutExited(a,b,c);(c=eT(this.adsControlFlowManagerHelper,a))&&b.layoutId===c.layoutId&&jUb(this,a)}}; bT.prototype.disposeInternal=function(){var a=kUb(this.adsControlFlowManagerHelper);a=l(a);for(var b=a.next();!b.done;b=a.next())hUb(this,b.value);Ji.prototype.disposeInternal.call(this)}; var hUb=function(a,b){if(cT(a.adsControlFlowManagerHelper,b)!=null)if(cT(a.adsControlFlowManagerHelper,b).JSC$24446_isSlotExitRequested()||cT(a.adsControlFlowManagerHelper,b).JSC$24446_isLayoutExitRequested())cT(a.adsControlFlowManagerHelper,b).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(cT(a.adsControlFlowManagerHelper,b).isOccupyingSlotType())cT(a.adsControlFlowManagerHelper,b).markedForUnscheduleAfterOutboundAdapterRequests=!0,jUb(a,b);else if(cT(a.adsControlFlowManagerHelper,b).JSC$24446_isSlotFillRequested())cT(a.adsControlFlowManagerHelper, b).markedForUnscheduleAfterOutboundAdapterRequests=!0,cT(a.adsControlFlowManagerHelper,b)!=null&&(dT(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b),b=cT(a.adsControlFlowManagerHelper,b),b.fulfillmentLifecycleStage="fill_cancel_requested",b.registeredFulfillmentAdapter.cancelSlotFilling());else{var c=eT(a.adsControlFlowManagerHelper,b),d;a.experimentApiProvider.get();(d=x("h5_enable_layout_unscheduling_events"))&&(c?lUb(a,b,c):DQ(Error("Layout is null for LayoutUnscheduled event."), b,c,void 0,!1));dT(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);var e=cT(a.adsControlFlowManagerHelper,b),f=b.slotEntryTrigger,h=e.registeredSlotEntryTriggerAdapters.get(f.triggerId);h&&(h.unregisterTrigger(f),e.registeredSlotEntryTriggerAdapters.delete(f.triggerId));f=l(b.slotFulfillmentTriggers);for(h=f.next();!h.done;h=f.next()){h=h.value;var m=e.registeredFulfillmentTriggerAdapters.get(h.triggerId);m&&(m.unregisterTrigger(h),e.registeredFulfillmentTriggerAdapters.delete(h.triggerId))}f= l(b.slotExpirationTriggers);for(h=f.next();!h.done;h=f.next())if(h=h.value,m=e.registeredExpirationTriggerAdapters.get(h.triggerId))m.unregisterTrigger(h),e.registeredExpirationTriggerAdapters.delete(h.triggerId);e.hasLayout()&&(f=e.layout,hT(e,f.layoutExitNormalTriggers),hT(e,f.layoutExitSkipTriggers),hT(e,f.layoutExitMuteTriggers),hT(e,f.layoutExitUserInputSubmittedTriggers),hT(e,f.layoutExitUserCancelledTriggers));e.registeredFulfillmentAdapter=void 0;e.registeredSlotAdapter!=null&&(e.registeredSlotAdapter.release(), e.registeredSlotAdapter=void 0);e.registeredLayoutRenderingAdapter!=null&&(e.registeredLayoutRenderingAdapter.release(),e.registeredLayoutRenderingAdapter=void 0);e=a.adsControlFlowManagerHelper;cT(e,b)&&(e=mUb(e,b.slotType+"_"+b.slotPhysicalPosition))&&e.delete(b.slotId);dT(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",b);a=l(a.adsControlFlowEventListeners);for(e=a.next();!e.done;e=a.next())e=e.value,e.onSlotUnscheduled(b),c&&!d&&lUb(e,b,c)}},lUb=function(a,b,c){fT(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED", b,c); fT(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",b,c);a=l(a.adsControlFlowEventListeners);for(var d=a.next();!d.done;d=a.next())d=d.value,c&&lUb(d,b,c)},jUb=function(a,b){if(cT(a.adsControlFlowManagerHelper,b)!=null&&cT(a.adsControlFlowManagerHelper,b).isOccupyingSlotType()){var c=eT(a.adsControlFlowManagerHelper,b); if(c&&gUb(a.adsControlFlowManagerHelper,b)){if(cT(a.adsControlFlowManagerHelper,b)!=null){var d=a.adEventLogger,e;var f=((e=cUb.get("abandoned"))==null?void 0:e.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";fT(d,f,b,c);a=cT(a.adsControlFlowManagerHelper,b);a.slotLifecycleStage!=="rendering"&&gT(a.slot,a.slotLifecycleStage,"exitLayout");a.slotLifecycleStage="rendering_stop_requested";a.registeredLayoutRenderingAdapter.stopRendering(c,"abandoned")}}else{dT(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED", b);try{d=cT(a.adsControlFlowManagerHelper,b);if(!d)throw new aT("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");d.slotLifecycleStage!=="enter_requested"&&d.slotLifecycleStage!=="entered"&&d.slotLifecycleStage!=="rendering"&&gT(d.slot,d.slotLifecycleStage,"exitSlot");d.slotLifecycleStage="exit_requested";if(d.registeredSlotAdapter===void 0)throw d.slotLifecycleStage="scheduled",new aT("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED"); d.registeredSlotAdapter.exit()}catch(h){h instanceof aT&&h.JSC$24414_adsClientErrorMessage?(nUb(a.adEventLogger,h.JSC$24414_adsClientErrorMessage,b),DQ(h,b,void 0,void 0,h.JSC$24414_aggressivelySample)):(nUb(a.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",b),DQ(h,b))}}}};var iT=function(a,b,c,d,e,f){Ji.call(this);this.registry=a;this.experimentApiProvider=f;this.slotMap=new Map}; k(iT,Ji);var mUb=function(a,b){return(a=a.slotMap.get(b))?a:new Map},cT=function(a,b){return mUb(a,b.slotType+"_"+b.slotPhysicalPosition).get(b.slotId)},kUb=function(a){var b=[]; a.slotMap.forEach(function(c){c=l(c.values());for(var d=c.next();!d.done;d=c.next())b.push(d.value.slot)}); return b}; iT.prototype.onSlotEntered=function(a){a=cT(this,a);a.slotLifecycleStage!=="enter_requested"&&gT(a.slot,a.slotLifecycleStage,"onSlotEntered");a.slotLifecycleStage="entered"}; var gUb=function(a,b){a=cT(a,b);return a.hasLayout()&&a.isRendering()},eT=function(a,b){(a=cT(a,b))?a.hasLayout()&&!a.layout&&DQ("Unexpected empty layout",b):DQ("Unexpected undefined slotState",b); return(a==null?void 0:a.layout)||null}; iT.prototype.onSlotExited=function(a){a=cT(this,a);a.slotLifecycleStage!=="exit_requested"&&gT(a.slot,a.slotLifecycleStage,"onSlotExited");a.slotLifecycleStage="scheduled"}; iT.prototype.onLayoutExited=function(a,b){a=cT(this,a);a.isPrimaryLayout(b)&&(a.slotLifecycleStage!=="rendering_stop_requested"&&gT(a.slot,a.slotLifecycleStage,"onLayoutExited"),a.slotLifecycleStage="entered")}; var hT=function(a,b){b=l(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.registeredLayoutExitTriggerAdapters.get(c.triggerId);d&&(d.unregisterTrigger(c),a.registeredLayoutExitTriggerAdapters.delete(c.triggerId))}},gT=function(a,b,c){DQ("Slot stage was "+b+" when calling method "+c,a)};function oUb(a){return jT(a.opportunityAdapterMap).concat(jT(a.triggerAdapterMap)).concat(jT(a.fulfillmentAdapterFactoryMap)).concat(jT(a.slotAdapterFactoryMap)).concat(jT(a.layoutRenderingAdapterFactoryMap))} function jT(a){var b=[];a=l(a.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.isAdsControlFlowEventListener&&b.push(c);return b} ;var qUb=function(a){Ji.call(this);this.deps=a;this.JSC$13264_adsControlFlowManager=pUb(this)}; k(qUb,Ji);var pUb=function(a){var b=new bT(function(c,d,e,f){return new iT(a.deps.registry,c,d,e,f,a.deps.experimentApiProvider)},new Set(oUb(a.deps.registry).concat(a.deps.listeners)),a.deps.adEventLogger,a.deps.experimentApiProvider); Ki(a,b);return b};var Uqa=function(){};var rUb=function(a,b){Ji.call(this);this.experimentApiProvider=a;this.eventLoggingSettingsProvider=b;this.eventCount=0;this.premiumAdSeenEventLogger=Tqa()()}; k(rUb,Ji);var dT=function(a,b,c){sUb(a,b,c,void 0,c.adSlotLoggingData)},fT=function(a,b,c,d){sUb(a,b,c,d?d:void 0,c.adSlotLoggingData,d?d.adLayoutLoggingData:void 0); var e=Fn().resolve(Cn(Lm))==null?void 0:Mm();c=e==null?void 0:e.adsSeenHotConfig;e=e==null?void 0:e.adsHotConfig;(c==null?0:c.logOnAdsSeen)&&(e==null?0:e.webEnablePremiumAdsSeenLogging)&&((e==null?0:e.h5EnablePremiumAdsSeenEventFiltering)&&b!=="ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED"&&b!=="ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED"||tUb(a,d?d:void 0))},nUb=function(a,b,c){sUb(a,"ADS_CLIENT_EVENT_TYPE_ERROR",c,void 0,c.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED", errorMessage:b})},sUb=function(a,b,c,d,e,f,h){var m=m===void 0?0:m; uUb(a.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+b,"slot:",c,"layout:",d,"ping:",void 0,"Opportunity:",{opportunityType:void 0,associatedSlotId:void 0,slotsFromOpportunity:void 0,triggerBundle:void 0,adSlotLoggingData:e,adLayoutLoggingData:f});try{var p=function(){a.experimentApiProvider.get();if(b!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){b||DQ("Empty PACF event type",c,d);var q=a.eventLoggingSettingsProvider.get();var t;(t=q.alwaysIncludeDebugData)||(q.experimentApiProvider.get(), t=!1);q=t;t={eventType:b,eventOrder:++a.eventCount};var u={};if(c){var v={type:c.slotType,controlFlowManagerLayer:bUb.get(c.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};c.slotEntryTrigger&&(v.entryTriggerType=c.slotEntryTrigger.triggerType);c.slotPhysicalPosition!==1&&(v.slotPhysicalPosition=c.slotPhysicalPosition);if(q){v.debugData={slotId:c.slotId};var w=c.slotEntryTrigger;w&&(v.debugData.slotEntryTriggerData=eUb(w));w=c.slotFulfillmentTriggers;v.debugData.fulfillmentTriggerData=[]; w=l(w);for(var y=w.next();!y.done;y=w.next())v.debugData.fulfillmentTriggerData.push(eUb(y.value));w=c.slotExpirationTriggers;v.debugData.expirationTriggerData=[];w=l(w);for(y=w.next();!y.done;y=w.next())v.debugData.expirationTriggerData.push(eUb(y.value))}u.slotData=v}d&&(v={type:d.layoutType,controlFlowManagerLayer:bUb.get(d.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"},q&&(v.debugData={layoutId:d.layoutId}),u.layoutData=v);t.adClientData=u;e&&(t.serializedSlotAdServingData=e.serializedSlotAdServingDataEntry); f&&(t.serializedAdServingData=f.serializedAdServingDataEntry);h&&(t.errorInfo=h);ao("adsClientStateChange",{adsClientEvent:t})}}; m&&m>0?Il(Pl(),function(){return p()},m):p()}catch(q){uUb(a.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&Il(Pl(),function(){DQ(q instanceof Error?q:String(q),c,d,{pacf_message:"exception during pacf logging"})})}},tUb=function(a,b){if(b){var c=b.adLayoutLoggingData; Il(Pl(),function(){a.premiumAdSeenEventLogger!=null&&c&&ao("adsSeenClientLogging",{serializedAdServingDataEntry:c.serializedAdServingDataEntry})},0)}};var vUb=function(a,b){rUb.call(this,a,b)}; k(vUb,rUb);var wUb=function(){},uUb=function(a,b){return x(b)};var yUb=function(){var a=new xUb;this.JSC$13289_adsControlFlowManager=new qUb(a).JSC$13264_adsControlFlowManager},xUb=function(){Ji.call(this); var a=this;this.experimentApiProvider=new $Tb(function(){return new wUb}); var b=new $Tb(function(){return new fUb(a.experimentApiProvider)}); this.adEventLogger=new vUb(this.experimentApiProvider,b);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]}; k(xUb,Ji);function zUb(a){var b=a.slotId,c=a.slotType,d=a.slotPhysicalPosition;return b===void 0?new aT("Cannot construct a slot due to the missing id.",{adSlotMetadata:a}):c===void 0?new aT("Cannot construct a slot due to the missing type.",{adSlotMetadata:a}):d===void 0?new aT("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:a}):{slotId:b,slotType:c,slotPhysicalPosition:d,managerLayer:"external",adSlotLoggingData:a.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[], slotExpirationTriggers:[],clientMetadata:new aUb}} function AUb(a){var b=a.layoutId,c=a.layoutType;return b===void 0?new $S("Cannot construct a layout due to the missing id.",{adLayoutMetadata:a}):c===void 0?new $S("Cannot construct a layout due to the missing type.",{adLayoutMetadata:a}):{layoutId:b,layoutType:c,managerLayer:"external",adLayoutLoggingData:a.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[], clientMetadata:new aUb,interactionLoggingAdsClientData:{}}} ;var BUb=function(){},CUb,kT=function(){CUb||(CUb=new BUb); return CUb},lT=function(a){if(!a.JSC$13300_externallyManagedSlotAdapterCallback){var b=new yUb().JSC$13289_adsControlFlowManager; a.JSC$13300_externallyManagedSlotAdapterCallback=b}return a.JSC$13300_externallyManagedSlotAdapterCallback},DUb=function(a,b){b=zUb(b); if(b instanceof aT)DQ(b,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var c=lT(a);dT(c.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",b);c=l(c.adsControlFlowEventListeners);for(var d=c.next();!d.done;d=c.next())d=cT(d.value,b),d.slotLifecycleStage!=="not_scheduled"&&gT(d.slot,d.slotLifecycleStage,"onSlotScheduled"),d.slotLifecycleStage="scheduled";a=lT(a);dT(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",b);a=l(a.adsControlFlowEventListeners);for(c=a.next();!c.done;c= a.next())c.value.onSlotEntered(b)}},EUb=function(a,b){b=zUb(b); if(b instanceof aT)DQ(b,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var c=lT(a);dT(c.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",b);c=l(c.adsControlFlowEventListeners);for(var d=c.next();!d.done;d=c.next())d.value.onSlotExited(b);a=lT(a);dT(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",b);a=l(a.adsControlFlowEventListeners);for(c=a.next();!c.done;c=a.next())c.value.onSlotUnscheduled(b)}},FUb=function(a,b,c){b=zUb(b); c=AUb(c);if(b instanceof aT)DQ(b,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(c instanceof $S)DQ(c,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var d=lT(a);fT(d.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);d=l(d.adsControlFlowEventListeners);for(var e=d.next();!e.done;e=d.next())e.value.onLayoutScheduled(b,c);a=lT(a);fT(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,c);a=l(a.adsControlFlowEventListeners);for(d= a.next();!d.done;d=a.next())iUb(d.value,b,c)}},mT=function(a,b,c){b=zUb(b); c=AUb(c);if(b instanceof aT)DQ(b,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(c instanceof $S)DQ(c,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var d=lT(a);fT(d.adEventLogger,dUb("normal"),b,c);d=l(d.adsControlFlowEventListeners);for(var e=d.next();!e.done;e=d.next())e.value.onLayoutExited(b,c,"normal");a=lT(a);a=l(a.adsControlFlowEventListeners);for(d=a.next();!d.done;d=a.next())lUb(d.value,b,c)}};var nT=function(a){Jn.call(this,a===void 0?"document_active":a);var b=this;this.overridePriority=10;this.JSC$13305_hasRun=new Map;this.transitions=[{from:"document_active",to:"document_disposed_preventable",action:this.runPreventableDispose},{from:"document_active",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"flush_logs",action:this.runFlush},{from:"document_disposed_preventable", to:"document_active",action:this.runActive},{from:"document_disposed",to:"flush_logs",action:this.runFlush},{from:"document_disposed",to:"document_active",action:this.runActive},{from:"document_disposed",to:"document_disposed",action:function(){}}, {from:"flush_logs",to:"document_active",action:this.runActive}];window.addEventListener("pagehide",function(c){b.transition("document_disposed",{event:c})}); window.addEventListener("beforeunload",function(c){b.transition("document_disposed_preventable",{event:c})}); window.addEventListener("unload",function(c){b.transition("document_disposed",{event:c});b.JSC$13305_hasRun=new Map})}; k(nT,Jn); nT.prototype.runPreventableDispose=function(a,b){if(!this.JSC$13305_hasRun.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.JSC$13305_hasRun=new Map;this.transition("document_active");return}}this.JSC$13305_hasRun.set("document_disposed_preventable",!0);this.JSC$13305_hasRun.get("document_disposed")?this.transition("flush_logs"): this.transition("document_disposed")}; nT.prototype.runDispose=function(a,b){this.JSC$13305_hasRun.get("document_disposed")?this.transition("document_active"):(a(b==null?void 0:b.event),this.JSC$13305_hasRun.set("document_disposed",!0),this.transition("flush_logs"))}; nT.prototype.runFlush=function(a,b){a(b==null?void 0:b.event);this.transition("document_active")}; nT.prototype.runActive=function(){};var oT=function(a){Jn.call(this,a===void 0?"document_visibility_unknown":a);var b=this;this.transitions=[{from:"document_visibility_unknown",to:"document_visible",action:this.runVisible},{from:"document_visibility_unknown",to:"document_hidden",action:this.runHidden},{from:"document_visibility_unknown",to:"document_foregrounded",action:this.runForegrounded},{from:"document_visibility_unknown",to:"document_backgrounded",action:this.runBackgrounded},{from:"document_visible",to:"document_hidden",action:this.runHidden}, {from:"document_visible",to:"document_foregrounded",action:this.runForegrounded},{from:"document_visible",to:"document_visible",action:this.runVisible},{from:"document_foregrounded",to:"document_visible",action:this.runVisible},{from:"document_foregrounded",to:"document_hidden",action:this.runHidden},{from:"document_foregrounded",to:"document_foregrounded",action:this.runForegrounded},{from:"document_hidden",to:"document_visible",action:this.runVisible},{from:"document_hidden",to:"document_backgrounded", action:this.runBackgrounded},{from:"document_hidden",to:"document_hidden",action:this.runHidden},{from:"document_backgrounded",to:"document_hidden",action:this.runHidden},{from:"document_backgrounded",to:"document_backgrounded",action:this.runBackgrounded},{from:"document_backgrounded",to:"document_visible",action:this.runVisible}];document.addEventListener("visibilitychange",function(c){document.visibilityState==="visible"?b.transition("document_visible",{event:c}):b.transition("document_hidden", {event:c})}); x("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})}))}; k(oT,Jn);oT.prototype.runVisible=function(a,b){a(b==null?void 0:b.event);x("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")}; oT.prototype.runHidden=function(a,b){a(b==null?void 0:b.event);x("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")}; oT.prototype.runBackgrounded=function(a,b){a(b==null?void 0:b.event)}; oT.prototype.runForegrounded=function(a,b){a(b==null?void 0:b.event)};var GUb=function(){this.teardownLifecycle=new nT;this.visibilityLifecycle=new oT}; GUb.prototype.install=function(){var a=sa.apply(0,arguments),b=this;a.forEach(function(c){b.teardownLifecycle.install(c)}); a.forEach(function(c){b.visibilityLifecycle.install(c)})};var pT=function(){GUb.call(this);var a={};this.install((a.document_disposed={callback:this.abortSlisAndFlush},a));x("combine_ve_grafts")&&(a={},this.install((a.document_disposed={callback:this.flushInteractionLoggingAttachVes},a)));a={};this.install((a.flush_logs={callback:this.logFinalPayload},a));x("web_log_cfg_cee_ks")||Il(0,HUb)}; k(pT,GUb);pT.prototype.logFinalPayload=function(){if(x("web_fp_via_jspb")){var a=new Cqa,b=Tv();b&&fg(a,1,b);b=x("jspb_sparse_encoded_pivot")?new un([{}]):new un;Jf(b,380,Eqa,a);lJa("finalPayload",b);x("web_fp_via_jspb_and_json")&&ao("finalPayload",{csn:Tv()})}else ao("finalPayload",{csn:Tv()})}; pT.prototype.abortSlisAndFlush=function(){vQa(ty);vy!=null&&vy.flush()}; pT.prototype.flushInteractionLoggingAttachVes=function(){Nz(gz())}; var HUb=function(){var a=Vk("CLIENT_EXPERIMENT_EVENTS");if(a){var b=Zda();a=l(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b(c)&&ao("genericClientExperimentEvent",{eventType:c});delete Tk.CLIENT_EXPERIMENT_EVENTS}};function IUb(a){var b={};pT.loggingInstance||(pT.loggingInstance=new pT);pT.loggingInstance.install((b.document_disposed={callback:a},b))} ;var KUb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("Tbao1e"),2);a=JUb;return b.return(a)})},LUb=yD(function(){return KUb()},{debugName:"adImageViewModel"}); Gn(xD,function(a){a.registerLoadFn("adImageViewModel","Tbao1e",KUb)});var NUb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("ZEfdxb"),2);a=MUb;return b.return(a)})},OUb=yD(function(){return NUb()},{debugName:"adButtonHoverOverlayViewModel"}); Gn(xD,function(a){a.registerLoadFn("adButtonHoverOverlayViewModel","ZEfdxb",NUb)});var qT;function rT(a,b){if(b&&(PUb(b.viewableCommand)||PUb(b.endOfSessionCommand))){var c=QUb(b==null?void 0:b.viewableCommand);b=QUb(b==null?void 0:b.endOfSessionCommand);if(!qT){var d=ll("custom_active_view_tos_timeout_ms");qT=d>0&&d!==36E5?new QF(RUb(),d):new QF(RUb())}RF(qT,a);o7a(qT,a,c,b)}} function sT(a){qT&&RF(qT,a)} function RUb(){var a=Vk("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(a==null?void 0:a.length)===2?a[1]:null} function PUb(a){a=LB(a);return!(a==null||!a.loggingUrls)&&a.loggingUrls.length>0} function QUb(a){if(!a)return[];var b=[],c,d;((d=(c=LB(a))==null?void 0:c.loggingUrls)!=null?d:[]).forEach(function(e){e.baseUrl&&b.push(e.baseUrl)}); return b} ;var tT={calledOnce:!0,state:"visible"},uT={calledOnce:!0,state:"hidden"};function vT(a,b,c){c?c(b):QB(b,a.target?{form:{element:a.target}}:void 0)} function wT(a,b,c,d){return function(e){lw(function(){function f(t){t=t.composedPath();t=l(t);for(var u=t.next();!u.done;u=t.next()){u=u.value;if(u===e)break;if(u.className.indexOf("HostIsClickableAdComponent")>=0||u.tagName==="A".toString()||u.tagName==="BUTTON".toString())return!0}return!1} var h=new Map,m,p=(m=a())==null?void 0:m.onTap;if(p){m=function(t){f(t)||vT(t,p,b)}; var q=function(t){f(t)||t.key!=="Enter"||vT(t,p,b)}; (c==null?0:c())||x("enable_web_home_top_landscape_image_layout_level_click")?(e.addEventListener("tap",m),h.set("tap",m)):(e.addEventListener("click",m),h.set("click",m));if(d==null?0:d())e.addEventListener("keydown",q),h.set("keydown",q)}zp(function(){for(var t=l(h),u=t.next();!u.done;u=t.next()){var v=l(u.value);u=v.next().value;v=v.next().value;e.removeEventListener(u,v)}})},"D7XqOc")}} ;function SUb(a){if(x("stop_av_measurement_on_detach"))return function(){sT(a)}} ;bB(O(function(a){var b=a.data;a=vw({visibilityCallback:function(m,p){if(m){var q;(m=(q=b().interaction)==null?void 0:q.onFirstVisible)&&QB(m);var t;if(q=(t=b().adLayoutData)==null?void 0:t.activeViewData)rT(p,q),x("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&sT(p)})}else x("stop_av_measurement_on_detach")&&sT(p)}, showOption:tT,hideOption:uT});var c=wT(function(){return b().interaction},void 0,function(){return!0}),d=l(ip(!1,void 0,"LjYwhf")),e=d.next().value,f=d.next().value; d=FC(function(){f(!0)}); var h=FC(function(){f(!1)}); return D("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:dB(a,SUb,c),"on:mouseenter":d,"on:mouseleave":h},D("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:GC({"max-width":function(){return x("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},D("div",{class:function(){var m; a:{var p;switch((m=z(b().thumbnailImage,plb))==null?void 0:(p=m.imageProperties)==null?void 0:p.renderingAspect){case"RENDERING_ASPECT_SQUARE":m="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case"RENDERING_ASPECT_LANDSCAPE":m="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a;}m=void 0}return m}},D(OC,{data:function(){return b().thumbnailImage}},{adImageViewModel:function(m){return D(LUb, {data:m.data, listenToTapEvent:!0,setTouchEndHandler:x("enable_top_landscape_image_experiment_dom_id_web")})}})),D("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},D(P,{cond:function(){var m,p,q; return(m=z(b().thumbnailImage,plb))==null?void 0:(p=m.imageProperties)==null?void 0:(q=p.overlayIcon)==null?void 0:q.iconImage}, then:function(m){return D(eC,{data:m,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),D("div",{class:function(){return e()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},D(OC,{data:function(){return b().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(m){return D(OUb, {data:m.data, listenToTapEvent:!0})}}))),D("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},D(OC,{data:function(){return b().feedAdMetadata}},{feedAdMetadataViewModel:function(m){return D(nS,{data:m.data, listenToTapEvent:!0,setTouchEndHandler:x("enable_top_landscape_image_experiment_dom_id_web")})}})))},"jc"),"compact-landscape-no-button-layout-view-model",{props:{data:$A}});var TUb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("ioVqHf"),2);a=xT;return b.return(a)})},yT=yD(function(){return TUb()},{debugName:"adButtonViewModel"}); Gn(xD,function(a){a.registerLoadFn("adButtonViewModel","ioVqHf",TUb)});function UUb(a){return function(){x("stop_av_measurement_on_detach")&&sT(a)}} ;bB(O(function(a){var b=a.data;a=vw({visibilityCallback:function(m,p){if(m){var q;(m=(q=b().interaction)==null?void 0:q.onFirstVisible)&&QB(m);var t;if(q=(t=b().adLayoutData)==null?void 0:t.activeViewData)rT(p,q),x("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&sT(p)})}else x("stop_av_measurement_on_detach")&&sT(p)}, showOption:tT,hideOption:uT});var c=eL(sR),d=wT(function(){return b().interaction}),e={},f={},h={}; return D("square-image-layout-view-model",{class:U("ytwSquareImageLayoutViewModelHost",(e.ytwSquareImageLayoutViewModelHostColumn=c,e)),el:dB(a,UUb,d)},D("div",{class:U("ytwSquareImageLayoutViewModelHostImage",(f.ytwSquareImageLayoutViewModelHostColumnImage=c,f))},function(){return D(OC,{data:function(){return b().adImage}},{adImageViewModel:function(m){return D(LUb,{data:m.data, isGridViewEnabled:c,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),D("div",{class:U("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(h.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=c,h))},D(OC,{data:function(){return b().feedAdMetadata}},{feedAdMetadataViewModel:nS}),function(){return D(OC,{data:function(){return b().adButton}},{adButtonViewModel:function(m){var p={}; return D(yT,{data:m.data,className:U((p.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,p.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=c,p))})}})}()))},"kc"),"square-image-layout-view-model",{props:{data:$A}});function VUb(a){if(x("stop_av_measurement_on_detach"))return function(){sT(a)}} ;bB(O(function(a){var b=a.data;var c=a.noBottomMargin;var d=a.typographyBump;a=vw({visibilityCallback:function(u,v){if(u){var w;(u=(w=b().interaction)==null?void 0:w.onFirstVisible)&&QB(u);var y;if(w=(y=b().adLayoutData)==null?void 0:y.activeViewData)rT(v,w),x("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&sT(v)})}else x("stop_av_measurement_on_detach")&&sT(v)}, showOption:tT,hideOption:uT});var e=wT(function(){return b().interaction},void 0,function(){return x("enable_web_home_top_landscape_image_layout_level_click")}),f=function(){return b().interaction}; f!==void 0&&f!==null||Yk(Error("No layout interaction passed in TopLandscapeImageLayoutViewModel."));var h=function(){var u,v,w;return(u=z(b().thumbnailImage,plb))==null?void 0:(v=u.background)==null?void 0:(w=v.backgroundImageSource)==null?void 0:w.imageSources}; f=l(ip(!1,void 0,"pnNBXb"));var m=f.next().value,p=f.next().value;f=FC(function(){p(!0)}); var q=FC(function(){p(!1)}),t=function(){return m()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}; return D("top-landscape-image-layout-view-model",{class:function(){var u;return((u=b().interaction)==null?0:u.onTap)&&x("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"}, el:dB(a,VUb,e),"on:mouseenter":f,"on:mouseleave":q},D("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},D(P,{cond:function(){return h()&&h().length>0}, then:function(){return D("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:GC({top:"0","background-image":function(){return"url("+String(h()[0].url)+")"}, "background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),D(P,{cond:function(){return!!b().adButtonHoverOverlay}, then:function(){return D("div",{class:t},D(OC,{data:function(){return b().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:OUb}))}}),D("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},D(OC,{data:function(){return b().thumbnailImage}},{adImageViewModel:function(u){return D(LUb,{data:u.data, targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:x("enable_web_home_top_landscape_image_layout_level_click")})}})),D("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},D(eC,{data:{sources:[{clientResource:{imageName:"arrow_diagonal_up_right"}}]}, alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),D("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},D(OC,{data:function(){return b().feedAdMetadata}},{feedAdMetadataViewModel:function(u){return D(nS,{data:u.data, noBottomMargin:function(){return c==null?void 0:c()}, listenToTapEvent:function(){return x("enable_web_home_top_landscape_image_layout_level_click")}, typographyBump:function(){return d==null?void 0:d()}})}})))},"lc"),"top-landscape-image-layout-view-model",{props:{data:$A, noBottomMargin:$A,typographyBump:$A}});var XUb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("CuTUU"),2);a=WUb;return b.return(a)})},YUb=yD(function(){return XUb()},{debugName:"adTextImageViewModel"}); Gn(xD,function(a){a.registerLoadFn("adTextImageViewModel","CuTUU",XUb)});var $Ub=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("yM0Kic"),2);a=ZUb;return b.return(a)})},aVb=yD(function(){return $Ub()},{debugName:"feedAdSitelinksCarouselViewModel"}); Gn(xD,function(a){a.registerLoadFn("feedAdSitelinksCarouselViewModel","yM0Kic",$Ub)});bB(O(function(a){var b=a.data;a=vw({visibilityCallback:function(h,m){if(h){var p;(h=(p=b().interaction)==null?void 0:p.onFirstVisible)&&QB(h);var q;(p=(q=b().adLayoutData)==null?void 0:q.activeViewData)&&rT(m,p)}}, showOption:tT});var c=l(ip(!1,void 0,"qSPFPe")),d=c.next().value,e=c.next().value;c=FC(function(){e(!0)}); var f=FC(function(){e(!1)}); return D("text-image-no-button-layout-view-model",{class:"ytwTextImageNoButtonLayoutViewModelHost",el:dB(a),"on:mouseenter":c,"on:mouseleave":f},D("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainer"},D("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerImageContainer"},D(OC,{data:function(){return b().textImage}},{adTextImageViewModel:YUb})),D("div",{class:function(){return d()?"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible": "ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},D(OC,{data:function(){return b().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(h){return D(OUb,{data:h.data, listenToTapEvent:!0})}}))),D("div",{class:"ytwTextImageNoButtonLayoutViewModelHostMetadataContainer"},D(OC,{data:function(){return b().feedAdMetadata}},{feedAdMetadataViewModel:function(h){return D(nS,{data:h.data, listenToTapEvent:!0})}}),D(OC,{data:function(){return b().feedAdSitelinksCarousel}},{feedAdSitelinksCarouselViewModel:aVb})))},"mc"),"text-image-no-button-layout-view-model",{props:{data:$A}});var bVb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("UAM5m"),2);a=oS;return b.return(a)})},zT=yD(function(){return bVb()},{debugName:"lockupViewModel"}); Gn(xD,function(a){a.registerLoadFn("lockupViewModel","UAM5m",bVb)});bB(O(function(a){var b=a.data;var c=a.typographyBump;a=vw({visibilityCallback:function(d,e){if(d){var f;(d=(f=b().interaction)==null?void 0:f.onFirstVisible)&&QB(d);var h;(f=(h=b().adLayoutData)==null?void 0:h.activeViewData)&&rT(e,f)}}, showOption:tT,hideOption:uT});return D("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:dB(a)},D("div",null,D(OC,{data:function(){return b().videoLockup}},{lockupViewModel:function(d){return D(zT,{data:d.data, containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:c})}})))},"nc"),"video-display-button-group-layout-view-model",{props:{data:$A, noBottomMargin:$A,typographyBump:$A}});bB(O(function(a){var b=a.data;var c=a.className;var d=a.typographyBump;a=vw({visibilityCallback:function(e,f){if(e){var h;(e=(h=b().interaction)==null?void 0:h.onFirstVisible)&&QB(e);var m;(h=(m=b().adLayoutData)==null?void 0:m.activeViewData)&&rT(f,h)}}, showOption:tT});return D("video-display-compact-button-group-layout-view-model",{el:dB(a),class:U("videoDisplayCompactButtonGroupLayoutViewModelHost",c)},D(OC,{data:function(){return b().videoLockup}},{lockupViewModel:function(e){return D(zT,{data:e.data, containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:d})}}))},"oc"),"video-display-compact-button-group-layout-view-model",{props:{data:$A, className:$A,typographyBump:$A}});bB(O(function(a){var b=a.data;var c=a.className;var d=a.typographyBump;a=vw({visibilityCallback:function(e,f){if(e){var h;(e=(h=b().interaction)==null?void 0:h.onFirstVisible)&&QB(e);var m;(h=(m=b().adLayoutData)==null?void 0:m.activeViewData)&&rT(f,h)}}, showOption:tT});return D("video-display-compact-buttoned-layout-view-model",{el:dB(a),class:U("videoDisplayCompactButtonedLayoutViewModelHost",c)},D(OC,{data:function(){return b().videoLockup}},{lockupViewModel:function(e){return D(zT,{data:e.data, containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:d})}}))},"pc"),"video-display-compact-buttoned-layout-view-model",{props:{data:$A, className:$A,typographyBump:$A}});bB(O(function(a){var b=a.data;var c=a.className;var d=a.typographyBump;a=vw({visibilityCallback:function(e,f){if(e){var h;(e=(h=b().interaction)==null?void 0:h.onFirstVisible)&&QB(e);var m;(h=(m=b().adLayoutData)==null?void 0:m.activeViewData)&&rT(f,h)}}, showOption:tT});return D("video-display-compact-carousel-button-group-layout-view-model",{el:dB(a),class:U("videoDisplayCompactCarouselButtonGroupLayoutViewModelHost",c)},D(OC,{data:function(){return b().videoLockup}},{lockupViewModel:function(e){return D(zT,{data:e.data, containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:d})}}))},"qc"),"video-display-compact-carousel-button-group-layout-view-model",{props:{data:$A, className:$A,typographyBump:$A}});bB(O(function(a){var b=a.data;var c=a.className;var d=a.typographyBump;var e=a.thumbnailWidthString;var f=function(){return b().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},h=eL(sR); a=vw({visibilityCallback:function(t,u){if(t){var v=b();t=v.adLayoutData;var w;(v=(w=v.interaction)==null?void 0:w.onFirstVisible)&&QB(v);(w=t==null?void 0:t.activeViewData)&&rT(u,w)}}, showOption:tT});var m=Vo(function(){return{containerType:f()&&h()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST",responsiveSize:f()?"RESPONSIVE_SIZE_COMPACT":void 0}},void 0,"fekU8c"),p=Vo(function(){var t=e==null?void 0:e(); return t?t:f()&&h()?"":f()?"168px":"50%"},void 0,"Hw2Ndb"),q=Vo(function(){return f()&&h()?9999:void 0},void 0,"WTnX1c"); return D("video-display-compact-layout-view-model",{el:dB(a),class:U("videoDisplayCompactLayoutViewModelHost",c)},D(OC,{data:function(){return b().videoLockup}},{lockupViewModel:function(t){return D(zT,{data:t.data, containerLayoutConfig:m,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:p,thumbnailTargetWidth:q,typographyBump:d})}}))},"rc"),"video-display-compact-layout-view-model",{props:{data:$A, className:$A,typographyBump:$A,thumbnailWidthString:$A}});bB(O(function(a){var b=a.data;var c=a.typographyBump;a=vw({visibilityCallback:function(d,e){if(d){var f;(d=(f=b().interaction)==null?void 0:f.onFirstVisible)&&QB(d);var h;(f=(h=b().adLayoutData)==null?void 0:h.activeViewData)&&rT(e,f)}}, showOption:tT,hideOption:uT});return D("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:dB(a)},D("div",null,D(OC,{data:function(){return b().videoLockup}},{lockupViewModel:function(d){return D(zT,{data:d.data, containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:c})}})))},"sc"),"video-display-full-layout-view-model",{props:{data:$A, noBottomMargin:$A,typographyBump:$A}});function AT(a){return a.shorts.shortsLayout} function cVb(a){return a.shorts.metapanelStyle} ;var eVb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("haZpfb"),2);a=dVb;return b.return(a)})},fVb=yD(function(){return eVb()},{debugName:"carouselButtonViewModel"}); Gn(xD,function(a){a.registerLoadFn("carouselButtonViewModel","haZpfb",eVb)});var hVb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("gUBjBd"),2);a=gVb;return b.return(a)})},iVb=yD(function(){return hVb()},{debugName:"pivotButtonViewModel"}); Gn(xD,function(a){a.registerLoadFn("pivotButtonViewModel","gUBjBd",hVb)});var kVb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("rMx50"),2);a=jVb;return b.return(a)})},lVb=yD(function(){return kVb()},{debugName:"reelActionBarViewModel"}); Gn(xD,function(a){a.registerLoadFn("reelActionBarViewModel","rMx50",kVb)});var nVb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("ASE5sd"),2);a=mVb;return b.return(a)})},oVb=yD(function(){return nVb()},{debugName:"reelsAdCardButtonedViewModel"}); Gn(xD,function(a){a.registerLoadFn("reelsAdCardButtonedViewModel","ASE5sd",nVb)});var qVb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("HJBpQd"),2);a=pVb;return b.return(a)})},rVb=yD(function(){return qVb()},{debugName:"reelsAdMetadataViewModel"}); Gn(xD,function(a){a.registerLoadFn("reelsAdMetadataViewModel","HJBpQd",qVb)});var sVb=O(function(){return D("div",{class:"ytwVideoFilteringOverlayHost",style:GC({"background-color":function(){return Jy(ll("exp_shorts_ads_mvp_filtering_hex_value_web"))}})})},"tc");function tVb(a){var b,c;if(a=(b=z(a.reelsAdCardButtoned,rlb))==null?void 0:(c=b.animatedRenderingConfig)==null?void 0:c.easeOutSeconds)return a+"s"} var uVb={iconPosition:"icon-with-label",size:"L"};bB(O(function(a){var b=a.data;a=sw("reels-player-overlay-layout-view-model");var c=eL(AT),d=function(){return c()===1},e=function(){var w=c(); return w===0||w===1},f=function(){var w; return(w=b().reelsAdCardButtonedEntityKey)!=null?w:""},h=function(){return f()+"/ad_button"},m=fL(QA,f),p=function(){var w,y; return(y=(w=m())==null?void 0:w.value)!=null?y:!1},q=function(){var w; return Object.assign({},uVb,!((w=e==null?void 0:e())!=null&&w)&&{style:"overlay-dark"})},t=function(){var w; return Object.assign({},uVb,!((w=e==null?void 0:e())!=null&&w)&&{style:"overlay-dark"})},u={},v={}; return D("reels-player-overlay-layout-view-model",{class:U("ytwReelsPlayerOverlayLayoutViewModelHost",(u.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!b().extension},u.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},u.ytwReelsPlayerOverlayLayoutViewModelHostExtractOverlay=d,u.ytwReelsPlayerOverlayLayoutViewModelHostExtractActionBar=function(){var w; return(w=e==null?void 0:e())!=null?w:!1},u)), "shorts-layout":function(){return String(c())}, el:a},D("div",{class:U("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(v.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},v))},D("div",{"aria-hidden":function(){return p()}, class:U("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return p()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}), style:GC({"transition-duration":function(){return tVb(b())}})},D(OC,{data:function(){return b().adMetadata}},{reelsAdMetadataViewModel:rVb}),D(P,{cond:function(){return b().extension}, then:function(w){return D("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},D(OC,{data:w},{adButtonViewModel:function(y){var A=y.data;return D(yT,{data:function(){return d()&&A().styleTransitionConfig?Object.assign({},A(),{styleTransitionConfig:Object.assign({},A().styleTransitionConfig,{destinationStyle:"AD_BUTTON_STYLE_MONO_FILLED"})}):A()}, animationEntityKey:h,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})}, carouselButtonViewModel:function(y){return D(fVb,{data:y.data,animationEntityKey:h,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})}}))}})),D("div",{"aria-hidden":function(){return!p()}, class:U("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return p()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}), style:GC({"transition-duration":function(){return tVb(b())}})},D(OC,{data:function(){return b().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(w){return D(oVb,{data:w.data, onShow:function(){Bu(dA("booleanEntity",f(),{key:f(),value:!0}))}})}}))),D(P,{cond:function(){return x("mweb_enable_shorts_search_topbar")&&!1}, then:function(){var w={};return D("div",{class:U("ytwReelsPlayerOverlayLayoutViewModelHostActionBar","ytwReelsPlayerOverlayLayoutViewModelHostActionBarMenuOnTop",(w.ytwReelsPlayerOverlayLayoutViewModelHostActionBarMobile=function(){return!1},w))},D(OC,{data:function(){return b().menu}},{buttonViewModel:function(y){return D(BD,{data:y.data, className:U("ytwReelsPlayerOverlayLayoutViewModelHostMenuButton","ytwReelsPlayerOverlayLayoutViewModelHostActionBarMenuOnTopMenuButton"),buttonOverrides:function(){return Object.assign({},{type:"tonal"},t())}})}}),D("div",null,D(OC,{data:function(){return b().actions}},{reelActionBarViewModel:function(y){return D(lVb,{data:y.data, buttonShapeOverrideables:q})}}),D(OC,{data:function(){return b().pivotButton}},{pivotButtonViewModel:function(y){return D(iVb,{data:y.data, className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))}, else:function(){var w={};return D("div",{class:U("ytwReelsPlayerOverlayLayoutViewModelHostActionBar",(w.ytwReelsPlayerOverlayLayoutViewModelHostActionBarMobile=function(){return!1},w))},D(OC,{data:function(){return b().actions}},{reelActionBarViewModel:function(y){return D(lVb,{data:y.data, buttonShapeOverrideables:q})}}),D(OC,{data:function(){return b().menu}},{buttonViewModel:function(y){return D(BD,{data:y.data, className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},{type:"tonal"},t())}})}}),D(OC,{data:function(){return b().pivotButton}},{pivotButtonViewModel:function(y){return D(iVb,{data:y.data, className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}}))}}),D(P,{cond:function(){return x("exp_shorts_ads_mvp_filtering_web")}, then:function(){return D(hdb,{root:"ytd-reel-video-renderer #video-filtering-overlay-container"},function(){return D(sVb,null)})}}))},"uc"),"reels-player-overlay-layout-view-model",{props:{data:$A}});var BT=function(){var a=E.apply(this,arguments)||this;a.noBottomMargin=!1;return a}; k(BT,E);g=BT.prototype; g.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model", properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonGroupLayoutViewModel:{component:"video-display-compact-button-group-layout-view-model", properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactCarouselButtonGroupLayoutViewModel:{component:"video-display-compact-carousel-button-group-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonedLayoutViewModel:{component:"video-display-compact-buttoned-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactLayoutViewModel:{component:"video-display-compact-layout-view-model",properties:{typographyBump:"[[typographyBump]]", thumbnailWidthString:"[[thumbnailWidthString]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",textImageNoButtonLayoutViewModel:"text-image-no-button-layout-view-model",promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupRenderer:{component:"ytd-video-display-full-buttoned-and-button-group-renderer", properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},textImageNoButtonLayoutRenderer:"ytd-text-image-no-button-layout-renderer",reelsPlayerOverlayLayoutViewModel:"reels-player-overlay-layout-view-model"}}}}; g.ready=function(){var a=this;IUb(function(){a.isAttached&&EQ(a.JSC$13345_storedAdSlotMetadata,a.JSC$13345_storedAdLayoutMetadata,a.adSlotMetadata,a.adLayoutMetadata)&&mT(kT(),a.JSC$13345_storedAdSlotMetadata,a.JSC$13345_storedAdLayoutMetadata)})}; g.attached=function(){EQ(this.JSC$13345_storedAdSlotMetadata,this.JSC$13345_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&FUb(kT(),this.JSC$13345_storedAdSlotMetadata,this.JSC$13345_storedAdLayoutMetadata)}; g.detached=function(){EQ(this.JSC$13345_storedAdSlotMetadata,this.JSC$13345_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&mT(kT(),this.JSC$13345_storedAdSlotMetadata,this.JSC$13345_storedAdLayoutMetadata)}; g.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)}; g.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13345_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13345_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13345_storedAdLayoutMetadata!==void 0&&this.JSC$13345_storedAdSlotMetadata!==void 0&&mT(kT(),this.JSC$13345_storedAdSlotMetadata,this.JSC$13345_storedAdLayoutMetadata),FUb(kT(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13345_storedAdLayoutMetadata=this.adLayoutMetadata, this.JSC$13345_storedAdSlotMetadata=this.adSlotMetadata)}; ba.Object.defineProperties(BT.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.adLayoutMetadata}}}); BT.prototype.onAdMetadataChanged=BT.prototype.onAdMetadataChanged;BT.prototype.onTypographyBumpChanged=BT.prototype.onTypographyBumpChanged;n([F($C.YtRendererstamperBehavior),r("design:type",Object)],BT.prototype,"ytRendererstamperBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],BT.prototype,"rendererBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],BT.prototype,"ytComponentBehavior",void 0);n([M(),r("design:type",Object)],BT.prototype,"data",void 0); n([M(),r("design:type",Object)],BT.prototype,"noBottomMargin",void 0);n([M({value:!1}),r("design:type",Boolean)],BT.prototype,"typographyBump",void 0);n([M(),r("design:type",String)],BT.prototype,"thumbnailWidthString",void 0);n([H("data.adLayoutMetadata"),r("design:type",Object),r("design:paramtypes",[])],BT.prototype,"adLayoutMetadata",null);n([M(),r("design:type",Object)],BT.prototype,"adSlotMetadata",void 0); n([Tt("ytd-video-display-full-buttoned-and-button-group-renderer"),r("design:type",HTMLElement)],BT.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);n([Lt("typographyBump"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],BT.prototype,"onTypographyBumpChanged",null);n([Lt("adLayoutMetadata","adSlotMetadata"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],BT.prototype,"onAdMetadataChanged",null); n([gu({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],BT); Tu(BT,"ytd-in-feed-ad-layout-renderer",function(){if(PNb!==void 0)return PNb;var a=document.createElement("template");Q(a,"
\n");a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return PNb=a},{mode:2});var vVb;var CT=function(){var a=kt.apply(this,arguments)||this;a.disableGridStateAware=!1;a.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};a.currentGridClass="";return a}; k(CT,kt);CT.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);ms(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var a=this.gridStateAwareGetElement();Ct(a,"grid",!0)}}; CT.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)}; CT.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?wt(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement}; CT.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var a="grid-disabled";else{a=Txb.getInstance();var b=this.get("pageSubtype");a=b&&Qxb.includes(b)?"grid-disabled":a.currentSnapState_?a.currentSnapState_.className:null}(b=this.gridStateAwareGetElement())&&a!==this.currentGridClass&&(a&&Ct(b,a,!0),this.currentGridClass&&Ct(b,this.currentGridClass,!1),this.currentGridClass=a)}; n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],CT.prototype,"ytActionHandlerBehavior",void 0);n([M(),r("design:type",String)],CT.prototype,"gridStateAwareSizingElementSelector",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],CT.prototype,"disableGridStateAware",void 0);n([Vt()],CT);var wVb=[CT.prototype,ft.YtActionHandlerBehavior];var xVb;var yVb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("jBisaf"),2);a=IC;return b.return(a)})},DT=yD(function(){return yVb()},{debugName:"badgeShape"}); Gn(xD,function(a){a.registerLoadFn("badgeShape","jBisaf",yVb)});var ET=O(function(a){var b=Hu(a,{hasDot:!1,usedInMasthead:!1}),c=Object.assign({},b),d=b.data,e=b.hasDot;a=b.customCommandResolver;var f=b.usedInMasthead,h=(delete c.data,delete c.hasDot,delete c.customCommandResolver,delete c.usedInMasthead,c);b=function(){return d().style}; b!==void 0&&b!==null||Yk(Error("No style filled at AdBadgeViewModel"));a=wT(function(){return d().interaction},a); return D("ad-badge-view-model",{class:U(function(){var m;return((m=d().interaction)==null?0:m.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var m=h.adRenderingContextType(),p=f(); d();return m!=="AD_RENDERING_CONTEXT_TYPE_BROWSE"||p?"ytwAdBadgeViewModelHostStyleStandard":"ytwAdBadgeViewModelHostStyleStandardBrowse"}), el:dB(a)},D(DT,{data:function(){var m;d();return{type:3,text:(m=d().label)==null?void 0:m.content,adsIncludeDot:e(),isOverlay:d().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"vc");bB(ET,"ad-badge-view-model",{props:{data:$A,hasDot:$A,customCommandResolver:aB,adRenderingContextType:aB,usedInMasthead:aB}});function zVb(a,b){var c,d=(c=a.interaction)==null?void 0:c.onTap;if(a=NB({elementsCommand:d,forceNewState:!0,skipOnClick:!0}))return a.onclick=function(e){XXa(e)&&(e.preventDefault(),d&&vT(e,d,b))},PB(a)?a:void 0} function AVb(a){switch(a){case"AD_BUTTON_SIZE_COMPACT":return"S";case"AD_BUTTON_SIZE_DEFAULT":return"M";case"AD_BUTTON_SIZE_LARGE":return"L";default:return"M";}} function BVb(a){switch(a){case"AD_BUTTON_STYLE_OVERLAY":case"AD_BUTTON_STYLE_OVERLAY_TONAL":case"AD_BUTTON_STYLE_OVERLAY_TEXT":return"overlay";case"AD_BUTTON_STYLE_TRANSPARENT":case"AD_BUTTON_STYLE_MONO_FILLED":case"AD_BUTTON_STYLE_MONO_TONAL":case"AD_BUTTON_STYLE_MONO_OUTLINE":return"mono";case"AD_BUTTON_STYLE_OVERLAY_FILLED":return"call-to-action-overlay";default:return"call-to-action";}} function CVb(a){switch(a){case"AD_BUTTON_STYLE_OUTLINE":case"AD_BUTTON_STYLE_MONO_OUTLINE":return"outline";case"AD_BUTTON_STYLE_TONAL":case"AD_BUTTON_STYLE_OVERLAY_TONAL":case"AD_BUTTON_STYLE_MONO_TONAL":return"tonal";case"AD_BUTTON_STYLE_OVERLAY_TEXT":case"AD_BUTTON_STYLE_TRANSPARENT":return"text";default:return"filled";}} ;var xT=O(function(a){var b=a.data;var c=a.customCommandResolver;var d=a.className;var e=a.delayedClassName;var f=a.animationEntityKey;var h=a.isCompactWidth;var m=a.isContentWidth;a=l(ip(!1,void 0,"aSkCmb"));var p=a.next().value,q=a.next().value,t=function(){var sb;return!((sb=b().onImpressionBehaviors)==null||!sb.length)},u=function(){var sb,Oa; return t()?(sb=b().adButtonAnimationStateEntityKey)!=null?sb:"":(Oa=f==null?void 0:f())!=null?Oa:""},v=fL(QA,u),w=function(){var sb,Oa; return(Oa=(sb=v())==null?void 0:sb.value)!=null?Oa:!1},y=[],A=function(){Bu(dA("booleanEntity",u(),{key:u(), value:!0}));S=void 0}; a=l(Gu(function(){return w()||t()&&b().visibility!=="VISIBILITY_GONE"})); var C=a.next().value,I=a.next().value;a=l(Gu(function(){return w()||t()&&b().visibility==="VISIBILITY_VISIBLE"})); var K=a.next().value,N=a.next().value;a=l(Gu(function(){var sb;return w()?t()?b().destinationStyle:(sb=b().styleTransitionConfig)==null?void 0:sb.destinationStyle:void 0})); var L=a.next().value,R=a.next().value,W=function(){var sb=Object.assign({},b(),L()&&{style:L()});var Oa,Ca,eb=sb.label,Qa=(Oa=sb.interaction)==null?void 0:(Ca=Oa.accessibility)==null?void 0:Ca.label;Oa=sb.iconImage?sb.label&&sb.label.content?sb.iconLeading?"leading":"trailing":"icon-only":void 0;sb={formattedButtonText:eb,accessibilityLabel:Qa,style:BVb(sb.style),type:CVb(sb.style),state:"active",size:AVb(sb.size),iconPosition:Oa,disabled:!1,aTagConfig:zVb(sb,c)};sb.focused=p();return sb},S; a=vw({visibilityCallback:function(sb){var Oa,Ca=(Oa=b().interaction)==null?void 0:Oa.onFirstVisible;sb&&Ca&&QB(Ca)}, showOption:tT});var Y=PD(),da=function(){return x("web_tokenize_button_icon_size")?czb(W(),!!b().iconImage,Y):dzb(W(),!!b().iconImage)},Aa=function(){return t()||!!b().delayedAppearanceConfig},Sa={},Ua={}; d=U(function(){return"ytwAdButtonViewModelHost"},function(){return Aa()?"ytwAdButtonViewModelHostHasAnimation":""},function(){var sb=Aa(),Oa=C(); return sb?Oa?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var sb=Aa(),Oa=K(); return sb?Oa?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!Aa()||C()?e==null?void 0:e():""},(Sa.ytwAdButtonViewModelHostCompactWidth=function(){return h==null?void 0:h()},Sa),(Ua.ytwAdButtonViewModelHostContentWidth=function(){return m==null?void 0:m()},Ua),d!=null?d:""); var qb=function(){var sb,Oa=(sb=b().delayedAppearanceConfig)==null?void 0:sb.delayedInvisibleSeconds;Oa&&(S=Kl(0,function(){I(!0);ab()},Oa*1E3))},ab=function(){var sb,Oa=(sb=b().delayedAppearanceConfig)==null?void 0:sb.delayedVisibleSeconds; Oa&&(S=Kl(0,function(){N(!0);La()},Oa*1E3))},La=function(){var sb,Oa=(sb=b().styleTransitionConfig)==null?void 0:sb.styleTransitionSeconds,Ca,eb=(Ca=b().styleTransitionConfig)==null?void 0:Ca.destinationStyle; Oa&&eb?S=Kl(0,function(){R(eb);A()},Oa*1E3):A()},ib=function(sb){sb&&sb.forEach(function(Oa){var Ca,eb=(Ca=Oa.triggerCondition)==null?void 0:Ca.delayedSeconds; eb&&(Ca=Kl(0,function(){if(Oa.visibilityBehavior)switch(Oa.visibilityBehavior.newVisibility){case"VISIBILITY_INVISIBLE":I(!0);N(!1);break;case"VISIBILITY_VISIBLE":I(!0);N(!0);break;case"VISIBILITY_GONE":I(!1),N(!1);}else Oa.adButtonAnimationBehavior&&b().destinationStyle&&(R(b().destinationStyle),A())},eb*1E3),y.push(Ca))})}; rw(function(){t()?ib(b().onImpressionBehaviors):qb()}); zp(function(){y.forEach(function(sb){bj.cancelJob(sb)}); y.length=0;S&&bj.cancelJob(S)}); Sa=FC(function(){var sb=Fn().resolve(Cn(tD));sb&&q(sb.keyboardInUse);return!1}); Ua=FC(function(){q(!1);return!1}); return D("ad-button-view-model",{"on:focusin":Sa,"on:focusout":Ua,class:d,el:dB(a),style:GC({"transition-duration":"0.3s"})},D(P,{cond:W,then:function(){return D(bL,{data:W,icon:function(){return D(P,{cond:function(){return b().iconImage}, then:function(sb){return D(eC,{data:sb,alt:"",targetWidth:da,targetHeight:da,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"wc");bB(xT,"ad-button-view-model",{props:{data:$A,customCommandResolver:aB,className:aB,delayedClassName:aB,animationEntityKey:aB,isCompactWidth:aB,isContentWidth:aB}});var FT=function(){var a=E.apply(this,arguments)||this;a.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return a}; k(FT,E);g=FT.prototype;g.computeHasLiveDescription=function(a){return!(a==null||!a.liveDescription)}; g.computeHasByline=function(a){return!(a==null||!a.byline)}; g.computeUsesAdButtonViewModel=function(a){return!!z(a==null?void 0:a.cta,olb)}; g.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{adBadgeViewModel:{component:"ad-badge-view-model",properties:{adRenderingContextType:"[[adRenderingContextType]]",hasDot:"[[hasByline]]",usedInMasthead:"[[isMasthead]]"}}}},"data.cta":{id:"ad-button",mapping:{adButtonViewModel:{component:"ad-button-view-model",params:{isContentWidth:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}}; g.onYtToggleButton=function(a){var b,c=(b=this.data)==null?void 0:b.videoReminderEntityKey;c&&this.ytdReduxBehavior.dispatch(dA("upcomingEventReminderStateEntity",c,{key:c,state:a.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))}; g.attached=function(){this.updateChannelBanner()}; g.dataChanged=function(){this.updateChannelBanner()}; g.videoReminderStateChanged=function(){var a;this.videoReminderState&&z((a=this.data)==null?void 0:a.cta,UJ)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")}; g.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var a=EB(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);a&&(a.startsWith("//")&&(a="https:"+a),this.hostElement.classList.add("channel-banner"),Ft(this.hostElement,{"--ytvmh-channel-banner":"url("+a+")"}))}else x("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")}; g.onPlayerReady=function(){this.onIronResize()}; g.onIronResize=function(){this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var a=wt(this.hostElement).querySelector("#live-description"),b;a&&((b=this.data)==null?0:b.shortLiveDescription)&&a.clientWidth\n\n
\n
\n \n \n \n \n
\n
\n
\n \n \n
\n
\n
\n
\n \n \n \n \n \n
\n
\n \n \n
\n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return xVb=a},{mode:1});var DVb;var GT=function(){var a=E.apply(this,arguments)||this;a.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};a.isLocked=!1;return a}; k(GT,E);g=GT.prototype;g.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)}; g.onExpandedChanged=function(){this.expanded&&Yu(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])}; g.onMouseOver=function(){this.maybeExpand()}; g.onTap=function(){this.maybeExpand()}; g.onExpandableTileExpanding=function(a){a!==this&&(this.expanded=!1)}; g.onExpandableTileLockAndCollapse=function(a){this.isLocked=!0;a!==this&&(this.expanded=!1)}; g.onExpandableTileUnlock=function(){this.isLocked=!1}; GT.prototype.onTap=GT.prototype.onTap;GT.prototype.onMouseOver=GT.prototype.onMouseOver;GT.prototype.onExpandedChanged=GT.prototype.onExpandedChanged;n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],GT.prototype,"ytActionHandlerBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],GT.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],GT.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],GT.prototype,"expanded",void 0); n([cu("expanded"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],GT.prototype,"onExpandedChanged",null);n([Kt("mouseover"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],GT.prototype,"onMouseOver",null);n([Kt("tap"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],GT.prototype,"onTap",null);n([gu({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],GT); Tu(GT,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(DVb!==void 0)return DVb;var a=document.createElement("template");Q(a,"\n
\n
\n \n \n \n \n \n
\n
\n \n \n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return DVb=a},{mode:1});var EVb=new Bn("ACTIVITY_TOKEN");var FVb={};function HT(a,b){!a&&Math.random()<=ll("kevlar_unified_player_logging_threshold")&&fo(Error("[YtPlayerBehavior] "+(b?b:"Unspecified error")))} FVb.YtPlayerBehavior=[{properties:{watchNextData:{type:Object,observer:"watchNextDataChanged_"},context:{type:String},playerId:{type:String},disableTouchGestures:{type:Boolean}},listeners:{pinchout:"onPinchOut_",pinchin:"onPinchIn_",touchstart:"onTouchStart_"},created:function(){var a=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerStateSpan_=null;this.playerResolver_=new nj;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;this.isResetForNewPlayback_= !0;this.bootstrapPlayerResponse_=void 0;IUb(function(){a.maybeSendAbandonmentPing_()})}, attached:function(){this.disableTouchGestures||Mr(this,"pan-down")}, detached:function(){}, createMainAppPlayer_:function(a,b,c){var d=this;HT(this.useUnifiedPlayer_());if(this.mainAppPlayer_)HT(!1,"MainAppPlayer already created.");else{var e=wt(this.hostElement).querySelector("#container");this.mainAppPlayer_=new NS(this.getWebPlayerContextConfig_(),e,function(f){return jz(f,d.hostElement)},a,b,c); this.mainAppPlayer_.api.then(function(f){d.player_=f;d.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&zVa.resolve(f)})}}, loadVideoWithPlayerResponse:function(a,b){var c=this;if(this.useUnifiedPlayer_()){var d=this.watchNextData,e,f=(e=a.videoDetails)==null?void 0:e.videoId,h,m,p;(e=(h=this.watchNextData)==null?void 0:(m=h.currentVideoEndpoint)==null?void 0:(p=m.watchEndpoint)==null?void 0:p.videoId)&&f!=e&&(d=void 0,x("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(a,d,b):this.createMainAppPlayer_(a,d,b);this.mainAppPlayer_.api.then(function(){Gt(c.hostElement, "yt-player-updated")})}else this.update(THb(a,b))}, loadVideoWithPlayerVars:function(a){var b=this;this.useUnifiedPlayer_()?(x("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(a):this.createMainAppPlayer_(void 0,void 0,a),this.mainAppPlayer_.api.then(function(){Gt(b.hostElement,"yt-player-updated")})):this.update({args:a})}, update:function(a){var b=this;if(this.useUnifiedPlayer_())HT(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(a);var c=Xtb(a.args);c&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==c&&Object.assign(a.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(a).then(function(d){Gt(b.hostElement,"yt-player-updated",x("kevlar_player_updated_obsolete_player_killswitch")? d:void 0)})}eo(new Dl("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}}, updatePlayerComponents:function(a){var b=this,c;return ra(function(d){if(d.nextAddress==1)return d.yield(b.getPlayerPromise(),2);c=d.yieldResult;if(!c)throw Error("Missing player in updatePlayerComponents");a&&b.updatePlayerPlaylist_(a);d.jumpToEnd()})}, acquireApi_:function(a){var b=this;if(this.useUnifiedPlayer_())HT(!1,"Invalid method call in kevlar_unified_player.");else return bj.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(HT(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(c){b.shouldAutoplay_(a)?c.loadVideoByPlayerVars(a.args):c.cueVideoByPlayerVars(a.args)})):this.initPlayerPromise_=this.initPlayerContainer_(a),this.initPlayerPromise_}, initPlayerContainer_:function(a){var b=this;if(this.useUnifiedPlayer_())HT(!1,"Invalid method call in kevlar_unified_player.");else return HT(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&fo(Error("ytd-player required releasing.")),HT(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=wt(this.hostElement).querySelector("#container"),USb().then(function(){var c=b.initPlayer_(a);b.playerResolver_.resolve(c);return c})}, onPlayerReady_:function(a,b){this.useUnifiedPlayer_()?HT(!1,"Invalid method call in kevlar_unified_player."):(a.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&zVa.resolve(a),b(a))}, maybeCallApiMethodOnElement_:function(a,b){if(typeof a[b]==="function")return a[b]()}, maybeAdoptBootstrapPlayer_:function(){var a=window,b,c=(b=a.ytplayer)==null?void 0:b.bootstrapPlayerContainer;if((b=c==null?void 0:c.firstElementChild)&&b.classList.contains("html5-video-player")){var d,e,f=(d=a.ytplayer)==null?void 0:(e=d.bootstrapWebPlayerContextConfig)==null?void 0:e.contextId;d=this.getWebPlayerContextConfig_().contextId;if(f&&f===d){c!==this.playerContainer_&&(c=!1,this.maybeCallApiMethodOnElement_(b,"getPlayerState")===2&&(c=!0),this.playerContainer_.appendChild(b),c||this.maybeCallApiMethodOnElement_(b, "playVideo"));var h;if((h=a.ytplayer)==null?0:h.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=a.ytplayer.bootstrapPlayerResponse}}}, initPlayer_:function(a){var b=this;if(this.useUnifiedPlayer_())HT(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(c){b.maybeAdoptBootstrapPlayer_();var d=a?UHb(a):void 0;d&&d==b.bootstrapPlayerResponse_&&(a.loaded=!0);d=b.playerContainer_;var e=b.getWebPlayerContextConfig_();d=nTb(d,a,e);b.player_=d;b.onPlayerReadyEvent_=b.onPlayerReady_.bind(b,b.player_,c);b.player_.addEventListener("onReady",b.onPlayerReadyEvent_);b.player_.addEventListener("innertubeCommand", b.onPlayerInnerTubeCommand_.bind(b));Du("playerState")&&b.player_.addEventListener("onStateChange",b.onPlayerStateChange_.bind(b))})}, getPlayerPromise:function(){return this.useUnifiedPlayer_()?(this.mainAppPlayer_||this.createMainAppPlayer_(),this.mainAppPlayer_.api):this.playerResolver_.promise}, getPlayer:function(){return this.player_&&this.player_.isReady()?this.player_:null}, pause:function(){this.getPlayerPromise().then(function(a){a.pauseVideo()})}, play:function(){this.getPlayerPromise().then(function(a){a.playVideo()})}, onTouchStart_:function(){if(!this.disableTouchGestures){var a=Fn().resolve(CK).getCurrentPage();a&&a.getScrollTop()<=0?Mr(this,"pan-down"):Mr(this,"manipulation")}}, onPinchOut_:function(){this.getPlayerPromise().then(function(a){a.isFullscreen()||a.toggleFullscreen()})}, onPinchIn_:function(){this.getPlayerPromise().then(function(a){a.isFullscreen()&&a.toggleFullscreen()})}, updatePlayerPlaylist_:function(a){var b=this,c,d,e;return ra(function(f){if(f.nextAddress==1)return c=Fn().resolve(Cn(zxb)),d=!!(c&&c.playlistComponent&&c.playlistComponent.loopOn),f.yield(b.getPlayerPromise(),2);var h=e=f.yieldResult,m=h.updatePlaylist,p=[];if(x("kevlar_player_playlist_use_local_index")){var q,t;var u=(t=(q=a.localCurrentIndex)!=null?q:a.currentIndex)!=null?t:0}else{var v;u=(v=a.currentIndex)!=null?v:0}if(a.contents)for(q=0;q
\n \n
\n");a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);HVb=a}a=HVb;return a}}}); n([F(FVb.YtPlayerBehavior),r("design:type",Object)],IVb.prototype,"ytPlayerBehavior",void 0);n([gu({is:"ytd-player"})],IVb);var JVb;var IT=function(){var a=E.apply(this,arguments)||this;a.buttonOverrides={style:"overlay"};a.useYtdPlayer=x("use_ytd_player_for_desktop_masthead");a.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};a.playbackFinished=!1;a.JSC$13379_playerManager=null;a.JSC$13379_mastheadCounter=new $Ja;return a}; k(IT,E);g=IT.prototype;g.configureRendererStamper=function(){return{"data.muteButton":{id:"mute-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.replayButton":{id:"replay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.thumbnailOverlays":{id:"thumbnail-overlays",mapping:{thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer"}}}}; g.created=function(){this.JSC$13379_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$13379_playerManager=new TK)}; g.ready=function(){var a=this;this.JSC$13379_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var b=wt(this.hostElement).querySelector("#player");this.useYtdPlayer?b.style.display="none":(this.ytdPlayer.style.display="none",kyb(this.JSC$13379_playerManager,b,function(){a.onPlaybackEnded()}),wt(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var c; ((c=a.data)==null?0:c.navigationEndpoint)&&Gt(a.hostElement,"yt-navigate",{endpoint:a.data.navigationEndpoint})}))}; g.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$13379_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)}; g.attached=function(){var a=this;bt(function(){a.maybePlayVideo()})}; g.maybePlayVideo=function(){var a=this;!(this.expanded&&this.isAttached&&this.data&&this.data.videoId)||this.playbackFinished||this.useYtdPlayer&&this.data.disableAutoPlayback||(this.hostElement.classList.add("video-playing"),this.lockAndCollapseExpandableTiles(),this.useYtdPlayer?this.ytdPlayer.play():(this.JSC$13379_playerManager.playVideo(),this.getPlayerPromise().then(function(){a.JSC$13379_mastheadCounter.increment("VIDEO_START",!1,!0)})))}; g.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13379_playerManager.stopVideo()}; g.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var a,b={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((a=this.data.playbackStartMs)!=null?a:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(b);this.setupYtdPlayer()}else myb(this.JSC$13379_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(lyb(this.JSC$13379_playerManager), this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()}; g.getPlayerPromise=function(){return this.JSC$13379_playerManager.getPlayerPromise()}; g.onYtToggleButton=function(a){this.useYtdPlayer?this.toggleMute(a.detail.toggled):a.detail.toggled?this.JSC$13379_playerManager.mute():this.JSC$13379_playerManager.unMute()}; g.onYtNavigate=function(a){var b=nyb(a.detail.endpoint),c=oyb(this.data.clickthroughReportingData);b&&c&&(a.detail.endpoint.watchEndpoint?a.detail.tempData=c:Hy(b,c,30))}; g.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)}; g.onExpandedChanged=function(){this.expanded?(Yu(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()}; g.onMouseOver=function(){this.maybeExpand()}; g.onTap=function(){this.maybeExpand()}; g.onExpandableTileExpanding=function(a){a!==this&&(this.stopVideo(),this.expanded=!1)}; g.onExpandableTileLockAndCollapse=function(a){a!==this&&(this.isLocked=!0,this.expanded=!1)}; g.onExpandableTileUnlock=function(){this.isLocked=!1}; g.lockAndCollapseExpandableTiles=function(){Xu(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])}; g.unlockExpandableTiles=function(){Xu(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")}; g.setupYtdPlayer=function(){var a=this,b;return ra(function(c){if(c.nextAddress==1)return c.yield(a.ytdPlayer.getPlayerPromise(),2);b=c.yieldResult;b.addEventListener("onStateChange",function(d){a.onPlayerStateChange(d)}); b.addEventListener("onCueRangeExit",function(d){a.onCueRangeExit(d)}); c.jumpToEnd()})}; g.onPlayerStateChange=function(a){if(a===1&&(a=this.ytdPlayer.getPlayer())){var b=a.getCurrentTime(),c,d,e=b+((d=(c=this.data)==null?void 0:c.playbackDurationMs)!=null?d:0)/1E3;a.addCueRange("playback",b,e);this.JSC$13379_mastheadCounter.increment("VIDEO_START",!0,!0)}}; g.onCueRangeExit=function(a){a==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())}; g.toggleMute=function(a){var b=this,c;return ra(function(d){if(d.nextAddress==1)return d.yield(b.ytdPlayer.getPlayerPromise(),2);c=d.yieldResult;a?c.mute():c.unMute();d.jumpToEnd()})}; IT.prototype.onTap=IT.prototype.onTap;IT.prototype.onMouseOver=IT.prototype.onMouseOver;IT.prototype.onExpandedChanged=IT.prototype.onExpandedChanged;IT.prototype.onYtNavigate=IT.prototype.onYtNavigate;IT.prototype.onYtToggleButton=IT.prototype.onYtToggleButton;IT.prototype.dataChanged=IT.prototype.dataChanged;n([F($C.YtRendererstamperBehavior),r("design:type",Object)],IT.prototype,"ytRendererstamperBehavior",void 0); n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],IT.prototype,"ytActionHandlerBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],IT.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],IT.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],IT.prototype,"expanded",void 0);n([M(),r("design:type",Object)],IT.prototype,"buttonOverrides",void 0);n([M(),r("design:type",Object)],IT.prototype,"useYtdPlayer",void 0); n([Tt("#ytd-player"),r("design:type",Object)],IT.prototype,"ytdPlayer",void 0);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],IT.prototype,"dataChanged",null);n([Kt("yt-toggle-button"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],IT.prototype,"onYtToggleButton",null);n([Kt("yt-navigate"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],IT.prototype,"onYtNavigate",null); n([cu("expanded"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],IT.prototype,"onExpandedChanged",null);n([Kt("mouseover"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],IT.prototype,"onMouseOver",null);n([Kt("tap"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],IT.prototype,"onTap",null);n([gu({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],IT); Tu(IT,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(JVb!==void 0)return JVb;var a=document.createElement("template");Q(a,"
\n
\n
\n
\n
\n \n
\n
\n \n
\n \n \n
\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return JVb=a},{mode:1});var KVb;var JT=function(){return E.apply(this,arguments)||this}; k(JT,E);JT.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}}; JT.prototype.onShow=function(){var a=wt(this.hostElement).querySelector("#live-description"),b;a&&((b=this.data)==null?0:b.shortLiveDescription)&&a.clientWidth
\n \n \n
\n \n \n \n \n \n
\n
\n \n \n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return KVb=a},{mode:2});var LVb;var KT=function(){var a=E.apply(this,arguments)||this;a.useYtdPlayer=x("use_ytd_player_for_desktop_masthead");a.buttonOverrides={style:"overlay"};a.JSC$13387_playerManager=null;a.JSC$13387_mastheadCounter=new $Ja;a.isPlayerCreated=!1;a.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return a}; k(KT,E);g=KT.prototype;g.configureRendererStamper=function(){return{"data.muteButton":{id:"mute-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.replayButton":{id:"replay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.thumbnailOverlays":{id:"thumbnail-overlays",mapping:{thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer"}}}}; g.created=function(){this.JSC$13387_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$13387_playerManager=new TK)}; g.ready=function(){var a=this;this.JSC$13387_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var b;(b=this.embeddedPlayer)==null||b.remove()}else{var c;(c=this.ytdPlayer)==null||c.remove();kyb(this.JSC$13387_playerManager,this.embeddedPlayer,function(){a.onPlaybackEnded()}); this.replayButton.addEventListener("click",function(){a.data&&a.data.navigationEndpoint&&Gt(a.hostElement,"yt-navigate",{endpoint:a.data.navigationEndpoint})})}}; g.attached=function(){var a=this;x("fix_masthead_player_on_scroll")&&window.addEventListener("scroll",It(this,this.onScroll));x("fix_masthead_player_on_imp")&&(this.unsubscribeFromInlinePreviewIsActive=cA(XA,$Za,function(b){b&&a.isPlayerCreated&&bj.addLowPriorityJob(function(){a.onYtMastheadHidden()},100)}))}; g.detached=function(){x("fix_masthead_player_on_scroll")&&window.removeEventListener("scroll",It(this,this.onScroll));if(x("fix_masthead_player_on_imp")){var a;(a=this.unsubscribeFromInlinePreviewIsActive)==null||a.call(this)}}; g.onScroll=function(){if(this.hostElement.getBoundingClientRect().top<0)this.onYtMastheadHidden()}; g.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$13387_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)}; g.dataChanged=function(){var a=this;if(this.data){if(typeof this.data.videoId==="string")if(this.isPlayerCreated=!0,this.useYtdPlayer){var b=!this.data.disableAutoPlayback,c,d={autoplay:b,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((c=this.data.playbackStartMs)!=null?c:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(b?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(d);this.setupYtdPlayer()}else myb(this.JSC$13387_playerManager, this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(lyb(this.JSC$13387_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$13387_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){Xu(a.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");a.JSC$13387_mastheadCounter.increment("VIDEO_START",!1,!1)})); this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}}; g.getPlayerPromise=function(){return this.JSC$13387_playerManager.getPlayerPromise()}; g.onYtToggleButton=function(a){this.useYtdPlayer?this.toggleMute(a.detail.toggled):a.detail.toggled?this.JSC$13387_playerManager.mute():this.JSC$13387_playerManager.unMute()}; g.onYtNavigate=function(a){var b=nyb(a.detail.endpoint),c=oyb(this.data.clickthroughReportingData);b&&c&&(a.detail.endpoint.watchEndpoint?a.detail.tempData=c:Hy(b,c,30))}; g.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13387_playerManager.stopVideo()}; g.setupYtdPlayer=function(){var a=this,b;return ra(function(c){if(c.nextAddress==1)return c.yield(a.ytdPlayer.getPlayerPromise(),2);b=c.yieldResult;b.addEventListener("onStateChange",function(d){a.onPlayerStateChange(d)}); b.addEventListener("onCueRangeExit",function(d){a.onCueRangeExit(d)}); c.jumpToEnd()})}; g.onPlayerStateChange=function(a){if(a===1&&(a=this.ytdPlayer.getPlayer())){var b=a.getCurrentTime(),c,d,e=b+((d=(c=this.data)==null?void 0:c.playbackDurationMs)!=null?d:0)/1E3;a.addCueRange("playback",b,e);Xu(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$13387_mastheadCounter.increment("VIDEO_START",!0,!1)}}; g.onCueRangeExit=function(a){a==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())}; g.toggleMute=function(a){var b=this,c;return ra(function(d){if(d.nextAddress==1)return d.yield(b.ytdPlayer.getPlayerPromise(),2);c=d.yieldResult;a?c.mute():c.unMute();d.jumpToEnd()})}; ba.Object.defineProperties(KT.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var a,b;if(!((a=this.data)==null?0:(b=a.accessibilityData)==null?0:b.label))return"Ad primary link";var c,d;return zy("AD_TITLE",{title:(c=this.data)==null?void 0:(d=c.accessibilityData)==null?void 0:d.label})}}}); KT.prototype.onYtMastheadHidden=KT.prototype.onYtMastheadHidden;KT.prototype.onYtNavigate=KT.prototype.onYtNavigate;KT.prototype.onYtToggleButton=KT.prototype.onYtToggleButton;KT.prototype.dataChanged=KT.prototype.dataChanged;n([F($C.YtRendererstamperBehavior),r("design:type",Object)],KT.prototype,"ytRendererstamperBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],KT.prototype,"ytRendererBehavior",void 0); n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],KT.prototype,"ytActionHandlerBehavior",void 0);n([M(),r("design:type",Object)],KT.prototype,"data",void 0);n([M(),r("design:type",Object)],KT.prototype,"useYtdPlayer",void 0);n([Tt("ytd-toggle-button-renderer"),r("design:type",Object)],KT.prototype,"muteButton",void 0);n([M(),r("design:type",Object)],KT.prototype,"buttonOverrides",void 0); n([H("data.accessibilityData.label"),r("design:type",String),r("design:paramtypes",[])],KT.prototype,"titleAriaLabel",null);n([Tt("#replay-button"),r("design:type",Object)],KT.prototype,"replayButton",void 0);n([Tt("#player-container"),r("design:type",Object)],KT.prototype,"playerContainer",void 0);n([Tt("#player"),r("design:type",Object)],KT.prototype,"embeddedPlayer",void 0);n([Tt("#ytd-player"),r("design:type",Object)],KT.prototype,"ytdPlayer",void 0); n([M({type:Boolean}),r("design:type",Object)],KT.prototype,"isPlayerCreated",void 0);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],KT.prototype,"dataChanged",null);n([Kt("yt-toggle-button"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],KT.prototype,"onYtToggleButton",null);n([Kt("yt-navigate"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],KT.prototype,"onYtNavigate",null); n([Kt("yt-masthead-hidden"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],KT.prototype,"onYtMastheadHidden",null);n([gu({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],KT); Tu(KT,"ytd-video-masthead-ad-primary-video-renderer",function(){if(LVb!==void 0)return LVb;var a=document.createElement("template");Q(a,"
\n
\n
\n
\n \n
\n
\n \n
\n \n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return LVb=a},{mode:2});var MVb;var LT=function(){var a=E.apply(this,arguments)||this;a.collapsed=!1;a.impressionResolver=yj();a.JSC$13391_activeViewMeasurementDataResolver=yj();a.actionMap={"yt-mute-ad-action":"handleMuteAd"};return a}; k(LT,E);g=LT.prototype;g.configureRendererStamper=function(){return{"data.expandableTiles":{id:"expandable-tile-container",mapping:{videoMastheadAdExpandableThumbnailTileRenderer:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",videoMastheadAdExpandableVideoTileRenderer:"ytd-video-masthead-ad-expandable-video-tile-renderer"}},"data.showAdRenderer":{id:"show-ad",mapping:{buttonRenderer:"ytd-button-renderer"}}}}; g.created=function(){this.activeView=new QQ(this.hostElement)}; g.ready=function(){var a=this;wt(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){a.expandAd()}); this.hostElement.addEventListener("yt-action",function(b){if(b.detail.actionName==="yt-service-request"){var c=b.detail.args[1];c.videoMastheadAdMuteCommand&&(a.collapseAd(c.videoMastheadAdMuteCommand.encryptedMastheadId),b.stopPropagation())}})}; g.attached=function(){var a=this;bt(function(){a.ironResizableBehavior.notifyResize()}); this.impressionResolver.promise.then(function(b){if(!a.collapsed){b=l(b);for(var c=b.next();!c.done;c=b.next())c=c.value,an(c.baseUrl,c.attributionSrcMode);a.data.impressionCommand=void 0}}); this.JSC$13391_activeViewMeasurementDataResolver.promise.then(function(b){RQ(a.activeView,b)}); x("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&SQ(a.activeView)})}; g.dataChanged=function(){var a;((a=this.data.impressionCommand)==null?0:a.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var b;((b=this.data)==null?0:b.activeView)&&this.JSC$13391_activeViewMeasurementDataResolver.resolve(this.data.activeView);(a=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(a.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&( this.data.expandableTiles=void 0))}; g.computeWidescreen=function(a){var b;return!!(a&&((b=z(a,llb))==null?0:b.isWidescreen))}; g.computeExpandable=function(a){return!!(a&&a.length>0)}; g.onIronResize=function(){if(this.expandable){var a=wt(this.hostElement).querySelector("#expandable-tile-container :first-child");a&&!a.expanded&&(a.expanded=!0)}}; g.handleMuteAd=function(){this.collapseAd(null)}; g.restoreCollapsedState=function(a){this.collapsed=Bl().get("HIDDEN_MASTHEAD_ID")===a}; g.collapseAd=function(a){if(a){var b=Bl();b.set("HIDDEN_MASTHEAD_ID",a);b.save()}(a=wt(this.hostElement).querySelector("#video"))&&Gt(a,"yt-masthead-hidden");this.collapsed=!0}; g.expandAd=function(){var a=Bl();a.set("HIDDEN_MASTHEAD_ID",!1);a.save();location.reload()}; g.detached=function(){x("stop_av_measurement_on_detach")&&SQ(this.activeView)}; LT.prototype.onIronResize=LT.prototype.onIronResize;LT.prototype.dataChanged=LT.prototype.dataChanged;n([F(Hs),r("design:type",Object)],LT.prototype,"ironResizableBehavior",void 0);n([F(wVb),r("design:type",Object)],LT.prototype,"ytdGridStateAwareBehavior",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],LT.prototype,"ytActionHandlerBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],LT.prototype,"ytRendererBehavior",void 0); n([F($C.YtRendererstamperBehavior),r("design:type",Object)],LT.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],LT.prototype,"data",void 0);n([M({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),r("design:type",Boolean)],LT.prototype,"widescreen",void 0);n([M({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),r("design:type",Boolean)],LT.prototype,"expandable",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],LT.prototype,"collapsed",void 0);n([cu("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],LT.prototype,"dataChanged",null);n([Kt("iron-resize"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],LT.prototype,"onIronResize",null);n([gu({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],LT); Tu(LT,"ytd-video-masthead-ad-v3-renderer",function(){if(MVb!==void 0)return MVb;var a=document.createElement("template");Q(a,"
\n
\n \n \n
\n \n
\n
\n \n \n
\n \n
\n
\n
\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return MVb=a},{mode:2});var MT=function(){return E.apply(this,arguments)||this}; k(MT,E);g=MT.prototype;g.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}}; g.ready=function(){var a=this;IUb(function(){a.isAttached&&EQ(a.JSC$13395_storedAdSlotMetadata,a.JSC$13395_storedAdLayoutMetadata,a.adSlotMetadata,a.adLayoutMetadata)&&mT(kT(),a.JSC$13395_storedAdSlotMetadata,a.JSC$13395_storedAdLayoutMetadata)})}; g.attached=function(){EQ(this.JSC$13395_storedAdSlotMetadata,this.JSC$13395_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&FUb(kT(),this.JSC$13395_storedAdSlotMetadata,this.JSC$13395_storedAdLayoutMetadata)}; g.detached=function(){EQ(this.JSC$13395_storedAdSlotMetadata,this.JSC$13395_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&mT(kT(),this.JSC$13395_storedAdSlotMetadata,this.JSC$13395_storedAdLayoutMetadata)}; g.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13395_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13395_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13395_storedAdLayoutMetadata!==void 0&&this.JSC$13395_storedAdSlotMetadata!==void 0&&mT(kT(),this.JSC$13395_storedAdSlotMetadata,this.JSC$13395_storedAdLayoutMetadata),FUb(kT(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13395_storedAdLayoutMetadata=this.adLayoutMetadata, this.JSC$13395_storedAdSlotMetadata=this.adSlotMetadata)}; ba.Object.defineProperties(MT.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.adLayoutMetadata}}}); MT.prototype.onAdMetadataChanged=MT.prototype.onAdMetadataChanged;n([F($C.YtRendererstamperBehavior),r("design:type",Object)],MT.prototype,"ytRendererstamperBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],MT.prototype,"ytComponentBehavior",void 0);n([M(),r("design:type",Object)],MT.prototype,"data",void 0);n([H("data.adLayoutMetadata"),r("design:type",Object),r("design:paramtypes",[])],MT.prototype,"adLayoutMetadata",null); n([M(),r("design:type",Object)],MT.prototype,"adSlotMetadata",void 0);n([Lt("adLayoutMetadata","adSlotMetadata"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],MT.prototype,"onAdMetadataChanged",null);n([gu({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],MT); Tu(MT,"ytd-page-top-ad-layout-renderer",function(){if(vVb!==void 0)return vVb;var a=document.createElement("template");Q(a,"
\n");a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return vVb=a}, {mode:2});var NVb;var NT=function(){var a=E.apply(this,arguments)||this;a.noBottomMargin=!1;a.typographyBump=!1;return a}; k(NT,E);g=NT.prototype; g.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]",thumbnailWidthString:"[[thumbnailWidthString]]"}},pageTopAdLayoutRenderer:{component:"ytd-page-top-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]"}},sequenceItemInPlayerAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer", properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",thumbnailWidthString:"[[thumbnailWidthString]]"}}}}}}; g.ready=function(){var a=this;IUb(function(){a.isAttached&&a.adSlotMetadata&&EUb(kT(),a.adSlotMetadata)})}; g.attached=function(){if(this.adSlotMetadata){var a;if(this.adSlotMetadata===((a=this.data)==null?void 0:a.adSlotMetadata))DUb(kT(),this.adSlotMetadata);else{var b;fo(Error("Ad slot metadata mismatch: [stored data]"+this.adSlotMetadata+" v.s. [component property]"+((b=this.data)==null?void 0:b.adSlotMetadata)))}}}; g.detached=function(){this.adSlotMetadata&&EUb(kT(),this.adSlotMetadata)}; g.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)}; g.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&EUb(kT(),this.adSlotMetadata),DUb(kT(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)}; ba.Object.defineProperties(NT.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var a,b,c=z((a=this.data)==null?void 0:(b=a.fulfillmentContent)==null?void 0:b.fulfilledLayout,nlb),d;return(a=(d=z(c==null?void 0:c.renderingContent,mlb))==null?void 0:d.layout)?a.toLowerCase().replace(/_/g,"-"):""}}}); NT.prototype.onAdSlotMetadataChanged=NT.prototype.onAdSlotMetadataChanged;NT.prototype.onTypographyBumpChanged=NT.prototype.onTypographyBumpChanged;n([F($C.YtRendererstamperBehavior),r("design:type",Object)],NT.prototype,"ytRendererstamperBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],NT.prototype,"ytComponentBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],NT.prototype,"rendererBehavior",void 0);n([M(),r("design:type",Object)],NT.prototype,"data",void 0); n([M(),r("design:type",Object)],NT.prototype,"noBottomMargin",void 0);n([M(),r("design:type",Object)],NT.prototype,"typographyBump",void 0);n([M(),r("design:type",String)],NT.prototype,"thumbnailWidthString",void 0);n([Tt("ytd-in-feed-ad-layout-renderer"),r("design:type",HTMLElement)],NT.prototype,"inFeedAdLayoutRenderer",void 0);n([M({reflectToAttribute:!0}),H("data"),r("design:type",String),r("design:paramtypes",[])],NT.prototype,"layout",null); n([Lt("typographyBump"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],NT.prototype,"onTypographyBumpChanged",null);n([Lt("data.adSlotMetadata"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],NT.prototype,"onAdSlotMetadataChanged",null);n([gu({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],NT); Tu(NT,"ytd-ad-slot-renderer",function(){if(NVb!==void 0)return NVb;var a=document.createElement("template");Q(a,"
\n");a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return NVb=a},{mode:2});var OVb;var OT=function(){return E.apply(this,arguments)||this}; k(OT,E);g=OT.prototype;g.created=function(){this.activeView=new QQ(this.hostElement)}; g.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"},params:{noDotAdBadge:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}}; g.maybeComputeHref=function(){return null}; g.onTap=function(){}; g.onThumbnailContainerClick=function(a){this.onClick(a)}; g.onClick=function(a){var b,c=(b=this.data)==null?void 0:b.navigationEndpoint;c&&z(c,py)&&(this.ytSparklesClickLocationBehavior.handleClick(c,a,!1),a.stopPropagation())}; g.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var a=l(this.data.impressionUrls),b=a.next();!b.done;b=a.next())b=b.value,Wpa(b,Ypa(b));this.data.activeView&&RQ(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",OT.JSC$13403_DEFAULT_CLICK_LOCATION_BEHAVIOR,OT.JSC$13403_CLICK_LOCATION_ID_MAP);this.thumbnail&&(a=this.thumbnail.getElementsByTagName("a"),a.length>0&&(a=a.namedItem("thumbnail"))&&a.removeAttribute("href"))}}; g.attached=function(){var a=this;x("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&SQ(a.activeView)})}; g.detached=function(){x("stop_av_measurement_on_detach")&&SQ(this.activeView)}; ba.Object.defineProperties(OT.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return!!this.isGridViewEnabled}}, thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled?"9999":"168"}}}); OT.prototype.dataChanged=OT.prototype.dataChanged;OT.prototype.onTap=OT.prototype.onTap;OT.JSC$13403_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]); OT.JSC$13403_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];n([F($C.YtRendererstamperBehavior),r("design:type",Object)],OT.prototype,"ytRendererstamperBehavior",void 0); n([F(Yz.YtRendererBehavior),r("design:type",Object)],OT.prototype,"ytRendererBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],OT.prototype,"ytComponentBehavior",void 0);n([F(kC),r("design:type",Object)],OT.prototype,"ytdReduxBehavior",void 0);n([F(OQ.YtSparklesClickLocationBehavior),r("design:type",Object)],OT.prototype,"ytSparklesClickLocationBehavior",void 0);n([M({selector:sR}),r("design:type",Object)],OT.prototype,"isGridViewEnabled",void 0); n([H("isGridViewEnabled"),M({reflectToAttribute:!0}),r("design:type",Boolean),r("design:paramtypes",[])],OT.prototype,"watchFeedBigThumbs",null);n([H("isGridViewEnabled"),M({reflectToAttribute:!0}),r("design:type",String),r("design:paramtypes",[])],OT.prototype,"thumbnailWidth",null);n([M(),r("design:type",Object)],OT.prototype,"data",void 0);n([Tt("ytd-thumbnail"),r("design:type",HTMLElement)],OT.prototype,"thumbnail",void 0); n([Kt("tap"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],OT.prototype,"onTap",null);n([cu("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],OT.prototype,"dataChanged",null);n([gu({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],OT); Tu(OT,"ytd-compact-promoted-video-renderer",function(){if(OVb!==void 0)return OVb;var a=document.createElement("template");Q(a,"");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return OVb=a},{mode:1});var PVb;kE("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var PT=function(){return E.apply(this,arguments)||this}; k(PT,E);PT.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],PT.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],PT.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],PT.prototype,"data",void 0);n([gu({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],PT); Tu(PT,"ytd-search-pyv-renderer",function(){if(PVb!==void 0)return PVb;var a=document.createElement("template");Q(a,"
\n");a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return PVb=a},{mode:1});var QVb;kE("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var QT=function(){var a=E.apply(this,arguments)||this;a.roundedContainer=!0;a.handleOpenPostCommentDialogActionAfterStamp=!1;a.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return a}; k(QT,E);g=QT.prototype; g.configureRendererStamper=function(){return{"data.post":{id:"post",mapping:{backstagePostRenderer:{component:"ytd-backstage-post-renderer",properties:{shouldHideAuthor:"[[isInEngagementPanel]]",shouldShowVideoTime:"[[isInEngagementPanel]]",shouldShowMenuInCompactView:"[[isInEngagementPanel]]",isInEngagementPanel:"[[isInEngagementPanel]]",usesFullLockup:"[[usesFullLockup]]",hideBorder:"[[hideBorder]]"}},postRenderer:"ytd-post-renderer",sharedPostRenderer:{component:"ytd-shared-post-renderer",properties:{usesFullLockup:"[[usesFullLockup]]"}}}}, "data.commentDialog":{id:"comment-dialog",mapping:{commentReplyDialogRenderer:"ytd-comment-reply-dialog-renderer"},events:!0}}}; g.onStampFinished=function(){this.handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()}; g.handleSignalActionOpenPostCommentDialogAction=function(){var a=wt(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");a?a.openDialog():this.handleOpenPostCommentDialogActionAfterStamp=!0}; g.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})}; g.computeHideBorder=function(){return this.isInEngagementPanel}; g.computeIsCompact=function(){return this.isInEngagementPanel}; g.computeUsesCompactLockup=function(a){return a==="BACKSTAGE_SURFACE_TYPE_HOME"||a==="BACKSTAGE_SURFACE_TYPE_SEARCH"||a==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||a==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||a==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||a==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"}; g.computeUsesFullLockup=function(){var a,b=(a=this.data)==null?void 0:a.post,c;a=(c=z(b,vlb))==null?void 0:c.surface;var d;c=(d=z(b,ylb))==null?void 0:d.originalPost;var e;if(d=a||((e=z(c,vlb))==null?void 0:e.surface))return!this.computeUsesCompactLockup(d)&&this.useUpdatedRepostUi;var f;return((f=z(b,ylb))==null?void 0:f.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi}; ba.Object.defineProperties(QT.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var a,b;return((b=z((a=this.data)==null?void 0:a.post,vlb))==null?void 0:b.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}}, useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.useUpdatedRepostUi}}}); QT.prototype.onYtCommentModerationPanelEmpty=QT.prototype.onYtCommentModerationPanelEmpty;QT.prototype.onStampFinished=QT.prototype.onStampFinished;n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],QT.prototype,"ytActionHandlerBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],QT.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],QT.prototype,"ytRendererstamperBehavior",void 0); n([M(),r("design:type",Object)],QT.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],QT.prototype,"roundedContainer",void 0);n([M({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),r("design:type",Boolean)],QT.prototype,"hideBorder",void 0);n([M({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),r("design:type",Boolean)],QT.prototype,"isCompact",void 0); n([M({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),r("design:type",Boolean)],QT.prototype,"usesFullLockup",void 0);n([Kt("yt-rendererstamper-finished"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],QT.prototype,"onStampFinished",null);n([Kt("ytd-comment-moderation-panel-empty"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],QT.prototype,"onYtCommentModerationPanelEmpty",null); n([H("data"),r("design:type",Boolean),r("design:paramtypes",[])],QT.prototype,"isInEngagementPanel",null);n([H("data"),r("design:type",Boolean),r("design:paramtypes",[])],QT.prototype,"useUpdatedRepostUi",null);n([gu({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],QT); Tu(QT,"ytd-backstage-post-thread-renderer",function(){if(QVb!==void 0)return QVb;var a=document.createElement("template");Q(a,"\n\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return QVb=a},{mode:1});var RVb;var SVb=function(a){Va.call(this,a)}; k(SVb,Va);var TVb=function(a){Va.call(this,a)}; k(TVb,SVb);var UVb=function(a){Va.call(this,a)}; k(UVb,SVb);var RT=function(){return E.apply(this,arguments)||this}; k(RT,E);RT.prototype.onTapSuspendedChannel=function(){var a;if((a=this.data)!=null&&a.serviceEndpoint){var b,c;(a=(c=z((b=this.data)==null?void 0:b.serviceEndpoint,Qs))==null?void 0:c.url)?hyb(a):(b=new TVb("Did not handle suspended account tap. No appealUrl."),co(b))}else b=new TVb("Did not handle suspended account tap. No serviceEndpoint."),co(b)}; RT.prototype.onTap=function(){var a=this,b=gz(),c,d=(c=Mz(b,{veType:7116}))!=null?c:void 0;Pz(b,{visualElement:d});vB();this.saveRoleText();var e;if((e=this.data)==null?0:e.youtubeSuspended)this.onTapSuspendedChannel();else{var f=!1,h,m;(b=(m=z((h=this.data)==null?void 0:h.serviceEndpoint,Zrb))==null?void 0:m.supportedTokens)&&b.forEach(function(p){if(p.accountSigninToken)if(f=!0,a.onAccountItemTap)a.onAccountItemTap(p.accountSigninToken.signinUrl);else hyb(p.accountSigninToken.signinUrl)}); if(!f){if(h=this.get("serviceEndpoint",this.data))f=!0,this.ytComponentBehavior.resolveCommand(h);f||eo(new TVb("Did not handle account switch tap. No token."))}}}; RT.prototype.saveRoleText=function(){if(this.data){var a=this.data,b=a.channelDelegationRole;if(b){var c,d=(c=z(a==null?void 0:a.serviceEndpoint,Zrb))==null?void 0:c.supportedTokens;if(!d){var e,f,h,m;d=(e=z(a==null?void 0:a.serviceEndpoint,ky))==null?void 0:(f=e.popup)==null?void 0:(h=f.confirmDialogRenderer)==null?void 0:(m=h.confirmButton)==null?void 0:m.buttonRenderer;var p;d=(p=z(d==null?void 0:d.command,iy))==null?void 0:p.commands;if(!d)return;var q;d=(q=z(d[1],Zrb))==null?void 0:q.supportedTokens}if(d){p= void 0;q=l(d);for(d=q.next();!d.done;d=q.next())if(d=d.value,d.datasyncIdToken){p=d.datasyncIdToken.datasyncIdToken;break}if(p){var t;a:{if(iXa()&&(q=Aka(p+"::pom"))){q=new uB(q);break a}q=void 0}(t=q)==null||t.set("role_text",b);if(window.location.href.indexOf("studio")!==-1&&(t=jXa())){q=t.src?new URL(t.src).origin:"*";var u;(u=t.contentWindow)==null||u.postMessage({action:"save_pom_role",datasyncId:p,roleText:b},q)}}}}}}; ba.Object.defineProperties(RT.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.isSelected)}}, thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var a,b,c=(a=this.data)==null?void 0:(b=a.accountPhoto)==null?void 0:b.thumbnails;return c&&c.length>0&&(c[0].height===36||c[0].height===48)?c[0].height:40}}}); RT.prototype.onTap=RT.prototype.onTap;n([F(mz.YtComponentBehavior),r("design:type",Object)],RT.prototype,"ytComponentBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],RT.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],RT.prototype,"data",void 0);n([M({reflectToAttribute:!1}),r("design:type",Function)],RT.prototype,"onAccountItemTap",void 0); n([M({reflectToAttribute:!0}),H("data"),r("design:type",Boolean),r("design:paramtypes",[])],RT.prototype,"enableRingForActiveAccount",null);n([M({reflectToAttribute:!0}),H("data"),r("design:type",Number),r("design:paramtypes",[])],RT.prototype,"thumbnailSize",null);n([Kt("tap"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],RT.prototype,"onTap",null);n([gu({is:"ytd-account-item-renderer",disableElementRegistration:!0})],RT); Tu(RT,"ytd-account-item-renderer",function(){if(RVb!==void 0)return RVb;var a=document.createElement("template");Q(a,"\n \n \n \n \n \n \n \n \n \n \n \n \n \n\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return RVb=a},{mode:1});var VVb;var WVb;var ST=function(){var a=E.apply(this,arguments)||this;a.boundSubmitSearch=function(){a.submitSearch()}; a.boundClearSearch=function(){a.clearSearch()}; return a}; k(ST,E);g=ST.prototype;g.configureRendererStamper=function(){return{"data.searchButton":{id:"search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundSubmitSearch]]"}}}},"data.clearButton":{id:"clear-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundClearSearch]]"}}}}}}; g.toggleClearButton=function(){this.hideClearButton=cda||!this.input.value}; g.submitOnEnterKeyUp=function(a){a.keyCode!==13||this.input.invalid||this.submit(this.input.value)}; g.clearSearch=function(){this.input.value="";this.submit(this.input.value)}; g.submitSearch=function(){this.input.invalid||this.submit(this.input.value)}; g.submit=function(){Gt(this.hostElement,"search-query-changed",this.input.value)}; ST.prototype.toggleClearButton=ST.prototype.toggleClearButton;n([F(mz.YtComponentBehavior),r("design:type",Object)],ST.prototype,"ytComponentBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],ST.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],ST.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],ST.prototype,"data",void 0); n([M({reflectToAttribute:!0}),r("design:type",Boolean)],ST.prototype,"hideClearButton",void 0);n([M(),r("design:type",Object)],ST.prototype,"boundSubmitSearch",void 0);n([M(),r("design:type",Object)],ST.prototype,"boundClearSearch",void 0);n([Tt("#input"),r("design:type",Object)],ST.prototype,"input",void 0);n([cu("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],ST.prototype,"toggleClearButton",null); n([gu({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],ST); Tu(ST,"ytd-channel-switcher-search-box-renderer",function(){if(WVb!==void 0)return WVb;var a=document.createElement("template");Q(a,"\n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return WVb=a},{mode:1});var XVb;var TT=function(){var a=E.apply(this,arguments)||this;a.boundSubmit=function(){a.submit()}; return a}; k(TT,E);g=TT.prototype;g.configureRendererStamper=function(){return{"data.searchButton":{id:"search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundSubmit]]"}}}},"data.clearButton":{id:"clear-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}}; g.ready=function(){var a=this;this.form.addEventListener("submit",function(b){return a.onSubmit(b)})}; g.onSubmit=function(a){a.preventDefault();return!1}; g.toggleClearButton=function(){this.hideClearButton=cda||!this.input.value}; g.submitOnEnterKeyUp=function(a){a.keyCode===13&&this.submit()}; g.submit=function(){var a=this.data.endpoint,b=Yh(a);z(b,ey)?z(b,ey).query=this.input.value:z(b,VJ)&&(z(b,VJ).query=this.input.value);var c=z(b.commandMetadata,ly);(c==null?0:c.url)?(a=this.input.value,a=bd(dd(c.url,"query"),"query",a),c.url=a,Gt(this.hostElement,"yt-navigate",{endpoint:b})):z(b,glb)?(z(b,glb).channelSwitcherQuery=this.input.value,Fn().resolve(JB).resolveCommand(b,{form:{element:this.hostElement}})):(b=Error("Error: Trying to navigate to an endpoint without url: "+JSON.stringify(a)), co(b))}; g.getUrl=function(a){return this.get("commandMetadata.webCommandMetadata.url",a)}; TT.prototype.toggleClearButton=TT.prototype.toggleClearButton;n([F(Yz.YtRendererBehavior),r("design:type",Object)],TT.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],TT.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],TT.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],TT.prototype,"hideClearButton",void 0);n([M(),r("design:type",Object)],TT.prototype,"boundSubmit",void 0); n([Tt("#form"),r("design:type",HTMLFormElement)],TT.prototype,"form",void 0);n([Tt("#input"),r("design:type",Object)],TT.prototype,"input",void 0);n([cu("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],TT.prototype,"toggleClearButton",null);n([gu({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],TT); Tu(TT,"ytd-search-box-renderer",function(){if(XVb!==void 0)return XVb;var a=document.createElement("template");Q(a,"
\n \n \n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return XVb=a},{mode:2});var UT=function(){var a=E.apply(this,arguments)||this;a.showSearchBox=!0;return a}; k(UT,E);UT.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],UT.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],UT.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],UT.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],UT.prototype,"showSearchBox",void 0);n([gu({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],UT); Tu(UT,"ytd-channel-switcher-header-renderer",function(){if(VVb!==void 0)return VVb;var a=document.createElement("template");Q(a,"

\n \n

\n\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return VVb=a},{mode:1});var YVb;var ZVb;var VT=function(){var a=E.apply(this,arguments)||this;a.isDisplayed=!0;return a}; k(VT,E);g=VT.prototype;g.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}}; g.dataChanged=function(){this.isDisplayed=!0}; g.computeType=function(a){return a||"UNKNOWN"}; g.onYtServiceRequestCompleted=function(a){a.stopPropagation();this.isDisplayed=!1}; g.onClose=function(){this.isDisplayed=!1}; VT.prototype.onYtServiceRequestCompleted=VT.prototype.onYtServiceRequestCompleted;VT.prototype.dataChanged=VT.prototype.dataChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],VT.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],VT.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],VT.prototype,"data",void 0); n([M({computed:"computeType(data.type)",reflectToAttribute:!0}),r("design:type",String)],VT.prototype,"type",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],VT.prototype,"isDisplayed",void 0);n([cu("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],VT.prototype,"dataChanged",null);n([Kt("yt-service-request-completed"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],VT.prototype,"onYtServiceRequestCompleted",null); n([gu({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],VT); Tu(VT,"ytd-alert-with-button-renderer",function(){if(ZVb!==void 0)return ZVb;var a=document.createElement("template");Q(a,"\n
\n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return ZVb=a},{mode:1});var WT=function(){var a=E.apply(this,arguments)||this;a.noResult=!1;a.enableAlertBanner=!1;a.dismissedAlertBanner=!1;a.hideCreateChannelButton=!1;a.boundDismissAlertBanner=function(){a.dismissAlertBanner()}; a.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return a}; k(WT,E);g=WT.prototype;g.computeButtonOverride=function(){return{style:"mono",type:"tonal"}}; g.onDataChanged=function(){this.setShowSearchBox(this.data)}; g.updateChannelSwitcherAction=function(a){var b;a=(b=z(a,Hmb))==null?void 0:b.page;z(a,Gmb)!==void 0&&(this.data=z(a,Gmb))}; g.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{channelSwitcherHeaderRenderer:"ytd-channel-switcher-header-renderer"}},"data.contents":{id:"contents",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}},accountItemRenderer:"ytd-account-item-renderer",continuationItemRenderer:"ytd-continuation-item-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundDismissAlertBanner]]"}}}}}}; g.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}}; g.searchQueryChanged=function(a,b){if(this.data&&this.data.contents&&this.data.contents.length){a=[];var c=[];this.hideCreateChannelButton=this.noResult=!1;for(var d=document.querySelectorAll("ytd-account-item-renderer"),e=l(d),f=e.next();!f.done;f=e.next())f=f.value,c.push(f),f.style.display="block";this.resetRightBorder(c);if(b){this.hideCreateChannelButton=!0;for(c=1;c
\n
\n \n \n
\n
\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return YVb=a},{mode:1});var $Vb;var XT=function(){var a=E.apply(this,arguments)||this;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a}; k(XT,E);XT.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")}; XT.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var a=this.data.thumbnail.thumbnails;this.isDarkTheme&&(a=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(a=EB(a,24,void 0,"height"))?a:void 0}}; XT.prototype.onDarkModeToggledAction=function(a){this.isDarkTheme=a}; XT.prototype.computeHasText=function(){var a;return!((a=this.data)==null||!a.text)}; ba.Object.defineProperties(XT.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return"background-image:url(\""+String(Fb(this.bannerImageUrl))+"\");"}}}); XT.prototype.computeHasText=XT.prototype.computeHasText;XT.prototype.computeBannerImageUrl=XT.prototype.computeBannerImageUrl;n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],XT.prototype,"ytActionHandlerBehavior",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],XT.prototype,"actionHandlerBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],XT.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],XT.prototype,"data",void 0); n([M(),r("design:type",Boolean)],XT.prototype,"isDarkTheme",void 0);n([M(),r("design:type",String)],XT.prototype,"bannerImageUrl",void 0);n([M({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),r("design:type",Boolean)],XT.prototype,"hasText",void 0);n([Lt("data","isDarkTheme"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],XT.prototype,"computeBannerImageUrl",null); n([Lt("data.text"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],XT.prototype,"computeHasText",null);n([H("bannerImageUrl"),r("design:type",Object),r("design:paramtypes",[])],XT.prototype,"bannerStyle",null);n([gu({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],XT); Tu(XT,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if($Vb!==void 0)return $Vb;var a=document.createElement("template");Q(a,"\n
\n \n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return $Vb=a},{mode:1});var aWb;var ZT=function(){return E.apply(this,arguments)||this}; k(ZT,E);n([F(Yz.YtRendererBehavior),r("design:type",Object)],ZT.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],ZT.prototype,"data",void 0);n([gu({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],ZT); Tu(ZT,"ytd-backstage-zero-state-renderer",function(){if(aWb!==void 0)return aWb;var a=document.createElement("template");Q(a,"\n[[getSimpleString(data.title)]]\n[[getSimpleString(data.text)]]\n\n[[getSimpleString(data.footer)]]\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return aWb=a},{mode:1});var bWb;var $T=function(){return E.apply(this,arguments)||this}; k($T,E);n([F(Yz.YtRendererBehavior),r("design:type",Object)],$T.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],$T.prototype,"data",void 0);n([M({computed:"computeIcon_(data.icon)"}),r("design:type",String)],$T.prototype,"icon",void 0);n([gu({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],$T); Tu($T,"ytd-post-filter-zero-state-renderer",function(){if(bWb!==void 0)return bWb;var a=document.createElement("template");Q(a,"
\n
[[getSimpleString(data.title)]]
\n
[[getSimpleString(data.subtitle)]]
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return bWb=a},{mode:1});var cWb;var dWb={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},aU=function(){return E.apply(this,arguments)||this}; k(aU,E);aU.prototype.configureRendererStamper=function(){return dWb}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],aU.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],aU.prototype,"rendererstamperBehavior",void 0);n([M(),r("design:type",Object)],aU.prototype,"data",void 0);n([M({computed:"computeIcon_(data.icon)"}),r("design:type",String)],aU.prototype,"icon",void 0);n([gu({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],aU); Tu(aU,"ytd-post-scheduling-zero-state-renderer",function(){if(cWb!==void 0)return cWb;var a=document.createElement("template");Q(a,"\n[[getSimpleString(data.title)]]\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return cWb=a},{mode:1});var eWb;var bU=function(){var a=E.apply(this,arguments)||this;a.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return a}; k(bU,E);bU.prototype.onTabsActivate=function(a){this.data&&this.data.tabs&&Gt(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[a.detail.selected].navigationEndpoint})}; bU.prototype.shouldShowTotalCount=function(a){return a&&a.totalCount!==void 0}; bU.prototype.handleUpdatePostsTotalCountAction=function(a){var b=this.get(["data.tabs",1,"totalCount"]),c=this.get("updatePostsTotalCountAction.updateType",a);a=this.get("updatePostsTotalCountAction.number",a);b!==void 0&&c!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&a&&(c==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(b)+a):c==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(b)-a))}; ba.Object.defineProperties(bU.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var a=0,b=this.data.tabs.length;a
\n \n \n \n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return eWb=a},{mode:1});var fWb;var gWb;var cU=function(){var a=E.apply(this,arguments)||this;a.value="";a.label="";a.disabled=!1;return a}; k(cU,E);g=cU.prototype;g.configureRendererStamper=function(){return{"data.entries":{id:"entries",mapping:{dropdownItemRenderer:"ytd-dropdown-item-renderer",privacyDropdownItemRenderer:"ytd-privacy-dropdown-item-renderer",navigationDropdownItemRenderer:"ytd-navigation-dropdown-item-renderer"}}}}; g.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()}; g.dataChanged=function(){this.reset()}; g.valueChanged=function(){var a;if(this.value&&(a=this.data)!=null&&a.entries){a=l(this.data.entries);for(var b=a.next();!b.done;b=a.next())if((b=this.getRendererForEntry(b.value))&&this.getItemRendererValue(b)===this.value){this.label=this.ytComponentBehavior.getSimpleString(b.label);break}}}; g.setInitialLabel=function(){if(this.data&&this.data.entries)for(var a=l(this.data.entries),b=a.next();!b.done;b=a.next())if(b=this.getRendererForEntry(b.value)){if(b.isSelected){this.label=this.ytComponentBehavior.getSimpleString(b.label);break}this.data.label&&(this.label=this.data.label)}}; g.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var a=l(this.data.entries),b=a.next();!b.done;b=a.next()){b=this.getRendererForEntry(b.value);var c=void 0;if((c=b)==null?0:c.isSelected)return this.getItemRendererValue(b)||-1}return-1}; g.getItemRendererValue=function(a){return"stringValue"in a||"int32Value"in a?a.stringValue||a.int32Value||null:null}; g.getRendererForEntry=function(a){return a.dropdownItemRenderer||a.privacyDropdownItemRenderer||a.navigationDropdownItemRenderer||null}; g.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new uM("value-changed",this.value))}; g.updateValueFromBinding=function(a){this.value=a.detail.value}; cU.prototype.valueChangedForBinding=cU.prototype.valueChangedForBinding;cU.prototype.valueChanged=cU.prototype.valueChanged;cU.prototype.dataChanged=cU.prototype.dataChanged;n([F(mz.YtComponentBehavior),r("design:type",Object)],cU.prototype,"ytComponentBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],cU.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],cU.prototype,"ytRendererstamperBehavior",void 0); n([M(),r("design:type",Object)],cU.prototype,"data",void 0);n([M(),r("design:type",Object)],cU.prototype,"value",void 0);n([M(),r("design:type",Object)],cU.prototype,"label",void 0);n([Tt("#entries"),r("design:type",Object)],cU.prototype,"entries",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],cU.prototype,"disabled",void 0);n([cu("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],cU.prototype,"dataChanged",null); n([cu("value"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],cU.prototype,"valueChanged",null);n([Lt("value"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],cU.prototype,"valueChangedForBinding",null);n([gu({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],cU); Tu(cU,"ytd-flat-dropdown-renderer",function(){if(gWb!==void 0)return gWb;var a=document.createElement("template");Q(a,"\n \n
[[label]]
\n \n \n
\n \n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return gWb=a},{mode:1});var hWb={YtdReduxBehavior:[]};hWb.YtdReduxBehavior.push.apply(hWb.YtdReduxBehavior,kC);var iWb;var dU=function(){return E.apply(this,arguments)||this}; k(dU,E);dU.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&Fn().resolve(JB).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],dU.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],dU.prototype,"data",void 0);n([gu({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],dU); Tu(dU,"ytd-identity-chip-renderer",function(){if(iWb!==void 0)return iWb;var a=document.createElement("template");Q(a,"
\n

[[data.headerText]]

\n
\n
\n
\n \"\"\n
\n

[[data.name]]

\n \n
\n
\n
\n \n \n \n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return iWb=a},{mode:1});var jWb;var eU=function(){var a=E.apply(this,arguments)||this;a.quizOptions=[];a.explanationPlaceholderText="";a.optionPlaceholderText="";a.correctAnswerIndex=-1;a.isMarkAnswerTooltipShown=!1;a.timer=0;return a}; k(eU,E);g=eU.prototype;g.dataChanged=function(){this.optionPlaceholderText=lz(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=lz(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))}; g.onMarkCorrectAnswer=function(a){var b,c=((b=this.quizOptions[this.correctAnswerIndex])==null?void 0:b.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[a.model.index]=Object.assign({},this.quizOptions[a.model.index],{explanationText:c,isCorrect:!0});this.correctAnswerIndex=a.model.index;this.quizOptions=[].concat(ia(this.quizOptions))}; g.updatePlaceholderTexts=function(){for(var a=!1,b=[],c=0;cNumber(this.editorInfo.maxQuizOptions))return!1;for(var a=0,b=0,c=l(this.quizOptions),d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0;if(((e=d.optionText)==null?void 0:e.trim())!==""||d.isCorrect){d.isCorrect&&b++;e=void 0;if(this.hasCustomOptionText&&((e=d.optionText)==null?void 0:e.trim().length)= Number(this.editorInfo.minQuizOptions)&&b===1}; g.getPostCreateOptions=function(){for(var a=[],b=l(this.quizOptions),c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0;((d=c.optionText)==null?void 0:d.trim())!==""&&a.push({pollOption:{text:c.optionText,explanation:c.explanationText},isCorrect:c.isCorrect})}return a}; g.getExplanationText=function(){var a;return((a=this.quizOptions[this.correctAnswerIndex])==null?void 0:a.explanationText)||""}; g.maybeDisplayMarkAnswerEduToolTip=function(){var a,b,c,d,e,f,h;this.shouldShowMarkAnswerTooltip()&&((a=this.editorInfo)==null?0:(b=a.markAnswerButton)==null?0:(c=b.buttonRenderer)==null?0:(d=c.hint)==null?0:(e=d.hintRenderer)==null?0:(f=e.content)==null?0:(h=f.bubbleHintRenderer)==null?0:h.text)&&(OK.getInstance(),a=PK(this.editorInfo.markAnswerButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,void 0,"OPEN_POPUP_POSITION_TOP",void 0,"mark-answer-button-edu-displayed-impression"), this.isMarkAnswerTooltipShown=!0,(a==null?void 0:a.length)>0&&this.optionSelectors&&jz(a[0],this.optionSelectors[0]))}; g.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var a=0,b=l(this.quizOptions),c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0;((d=c.optionText)==null?void 0:d.trim())!==""&&a++;if(c.isCorrect)return!1}return a<2?!1:!0}; g.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1}; g.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}}; g.updateOptionTextFromBinding=function(a){if(a.target){var b=Array.from(wt(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(a.target);if(b>=0){var c;this.quizOptions[b].optionText=(c=a.detail.value)!=null?c:""}}}; ba.Object.defineProperties(eU.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var a,b,c=(a=this.editorInfo)==null?void 0:(b=a.addOptionButton)==null?void 0:b.buttonRenderer;c&&(c.style="STYLE_SUGGESTIVE",c.size="SIZE_SMALL",c.isDisabled=!this.isAllowedToAddOption);return(c==null?0:c.text)?c:void 0}}, isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var a,b;return this.quizOptions.length<((b=(a=this.editorInfo)==null?void 0:a.maxQuizOptions)!=null?b:0)}}, hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(a){var b;return(b=a.optionText)==null?void 0:b.trim()})}}}); eU.prototype.updatePlaceholderTexts=eU.prototype.updatePlaceholderTexts;eU.prototype.dataChanged=eU.prototype.dataChanged;n([M(),r("design:type",Object)],eU.prototype,"editorInfo",void 0);n([M(),r("design:type",Array)],eU.prototype,"quizOptions",void 0);n([M(),r("design:type",Object)],eU.prototype,"explanationPlaceholderText",void 0);n([Ut(".option-selector-button"),r("design:type",Array)],eU.prototype,"optionSelectors",void 0); n([cu("editorInfo"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],eU.prototype,"dataChanged",null);n([H("editorInfo","isAllowedToAddOption","quizOptions"),r("design:type",Object),r("design:paramtypes",[])],eU.prototype,"addAnswerButton",null);n([H("editorInfo","quizOptions"),r("design:type",Object),r("design:paramtypes",[])],eU.prototype,"isAllowedToAddOption",null); n([cu("quizOptions"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],eU.prototype,"updatePlaceholderTexts",null);n([H("quizOptions"),r("design:type",Object),r("design:paramtypes",[])],eU.prototype,"hasCustomOptionText",null);n([gu({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],eU); Tu(eU,"ytd-backstage-quiz-editor-renderer",function(){if(jWb!==void 0)return jWb;var a=document.createElement("template");Q(a,"
\n \n
\n
\n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return jWb=a},{mode:2});function kWb(a){if(!a)return!1;try{if(a.host&&a.host.tagName==="YT-FORMATTED-STRING"&&a.host.id==="contenteditable-textarea"||a.nodeType===Node.ELEMENT_NODE&&a.tagName==="YTD-COMMENTBOX")return!0}catch(b){return!1}return kWb(a.parentNode)} function fU(a){return a?!(a.tagName!=="A"||!a.href||!a.classList.contains("yt-simple-endpoint")):!1} function lWb(a){return a?a.tagName==="IMG"&&a.classList.contains("emoji"):!1} function mWb(a,b,c){if(!a)return null;var d=fU(a);if(d&&c)return b=a.pathname.substring(a.pathname.indexOf("/channel/")+9),document.createTextNode("@"+b);if(d&&!c)return document.createTextNode("");if(lWb(a))return c=a.alt,a=a.dataset.emojiId,!a&&b&&(b=UCb(b,c))&&b.isCustomEmoji&&(a=b.emojiId),a?document.createTextNode(""):document.createTextNode(c);d=a.cloneNode(!1);for(var e=0;e\n \"[[data.alt]]\"\n [[data.text]]\n\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return GWb=a},{mode:1});var HWb=/.*([:@#].*?)$/,iU=function(){var a=E.apply(this,arguments)||this;a.suggestions=[];a.suggestionIndex=-1;a.JSC$13487_lastSuggestionRange=null;return a}; k(iU,E);g=iU.prototype;g.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}}; g.getSuggestions=function(a){var b=[],c=VCb(this.emojiManager,a.substr(0,3));if(c)for(var d in c)if(d.toLocaleLowerCase().indexOf(a)===0){var e=c[d];if(e&&e.emojiId){e=pM(this.emojiManager,e.emojiId);var f=void 0,h=void 0,m=void 0,p=void 0,q=((f=e)==null?0:f.isCustomEmoji)?(h=e)==null?void 0:(m=h.shortcuts)==null?void 0:m[0]:(p=e)==null?void 0:p.emojiId;f=void 0;b.push({suggestion:{image:(f=e)==null?void 0:f.image,alt:q,text:d}});if(b.length>=64)break}}return b?b.sort(function(t,u){return u.suggestion.text< t.suggestion.text?-1:u.suggestion.text===t.suggestion.text?0:1}):null}; g.insertSuggestion=function(a){Gt(this.hostElement,"yt-insert-suggestion",{range:this.JSC$13487_lastSuggestionRange,text:a.alt});this.dropdown.opened=!1}; g.updateSuggestionsAtCaret=function(a){this.updateSuggestions(a,this.retrieveTextBeforeRange(a))}; g.offsetStartOfRangeBy=function(a,b){a.startOffset>=b&&a.setStart(a.startContainer,a.startOffset-b)}; g.updateSuggestions=function(a,b){var c=this;this.JSC$13487_lastSuggestionRange&&(this.JSC$13487_lastSuggestionRange.detach(),this.JSC$13487_lastSuggestionRange=null);if((b=HWb.exec(b))&&b.length&&(b=b[b.length-1].toLocaleLowerCase(),b.length>2||b===":_")&&(this.offsetStartOfRangeBy(a,b.length),this.JSC$13487_lastSuggestionRange=a,(a=this.getSuggestions(b))&&a.length)){this.suggestions=a;ms(this,function(){c.dropdownContent.scrollTop=16777216}); this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(a.length-1);return}this.dropdown.opened=!1}; g.onKeyDown=function(a){if(this.dropdown.opened)switch(a.key){case"Escape":this.dropdown.opened=!1;a.stopPropagation();break;case"Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);a.preventDefault();break;case"ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);a.preventDefault();break;case"ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),a.preventDefault();}}; g.onKeyUp=function(a,b){switch(a.key){case"ArrowLeft":case"ArrowRight":this.updateSuggestionsAtCaret(b);break;case"ArrowUp":case"ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(b);}}; g.onKeyPress=function(a){a.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),a.preventDefault())}; g.changeSuggestionIndex=function(a){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex\n\n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return FWb=a},{mode:2});var IWb;var JWb;var KWb;var LWb;var jU=function(){return E.apply(this,arguments)||this}; k(jU,E);ba.Object.defineProperties(jU.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}}); n([F(Yz.YtRendererBehavior),r("design:type",Object)],jU.prototype,"rendererBehaviors",void 0);n([M(),r("design:type",Object)],jU.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],jU.prototype,"focused",void 0);n([M({reflectToAttribute:!0}),H("focused"),r("design:type",Object),r("design:paramtypes",[])],jU.prototype,"ariaSelected",null);n([fu({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],jU); Tu(jU,"yt-user-mention-suggestion-renderer",function(){if(LWb===void 0){var a=document.createElement("template");Q(a,"\n\n
\n
[[data.displayName]]
\n \n \n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;KWb===void 0&&(KWb=document.createElement("template"));var d=KWb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);LWb=a}a=LWb;return a},{mode:2});var MWb;var NWb;var kU=function(){var a=E.apply(this,arguments)||this;a.focusedSuggestionIndex=-1;return a}; k(kU,E);g=kU.prototype;g.created=function(){this.ytRendererBehavior.monitorScroll=!0}; g.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)}; g.setFocusedSuggestionIndex=function(a){!this.data||!this.data.suggestions||a<0||a>=this.data.suggestions.length||(this.focusedSuggestionIndex=a,a=this.getSuggestionId(a),this._setFocusedSuggestionId(a))}; g.advanceSuggestion=function(a){this.focusedSuggestionIndex===-1||a!==-1&&a!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+a),this.ensureSuggestionVisible(this.focusedSuggestionIndex))}; g.ensureSuggestionVisible=function(a){a=this.getSuggestionId(a);a=wt(this.hostElement).querySelector("[id="+a+"]");a!=null&&(a.offsetTopthis.hostElement.scrollTop+this.hostElement.clientHeight&&a.scrollIntoView(!1))}; g.getSuggestionId=function(a){return"user-mention-suggestion-"+a}; g.onSuggestionTap=function(a){var b=z(a.model.item,hsb);this.ytRendererBehavior.logExplicitClick(b);Gt(this.hostElement,"yt-user-mention-suggestion-selected",{data:b,index:a.model.index})}; g.onSuggestionMouseMove=function(a){a.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(a.model.index)}; g.isSuggestionFocused=function(a,b){return a===b}; g.onDomChange=function(){this.ytRendererBehavior.markDirty()}; g.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new uM("focused-suggestion-id-changed",this.focusedSuggestionId))}; kU.prototype.focusedSuggestionIdChangedForBinding=kU.prototype.focusedSuggestionIdChangedForBinding;kU.prototype.onDomChange=kU.prototype.onDomChange;n([F(Yz.YtRendererBehavior),r("design:type",Object)],kU.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],kU.prototype,"data",void 0);n([M(),r("design:type",Object)],kU.prototype,"focusedSuggestionIndex",void 0);n([M({readOnly:!0}),r("design:type",String)],kU.prototype,"focusedSuggestionId",void 0); n([Kt("dom-change"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],kU.prototype,"onDomChange",null);n([Lt("focusedSuggestionId"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],kU.prototype,"focusedSuggestionIdChangedForBinding",null);n([fu({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],kU); Tu(kU,"yt-user-mention-suggestions-dropdown",function(){if(NWb===void 0){var a=document.createElement("template");Q(a,"\n\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;MWb===void 0&&(MWb=document.createElement("template"));var d=MWb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);NWb=a}a=NWb;return a},{mode:2});var lU=function(){var a=E.apply(this,arguments)||this;a.suggestionsResponse=null;a.activeMention=null;a.selectionChangeListener=a.onSelectionChange.bind(a);a.handlesEnabled=x("enable_handles_in_mention_suggest_posts");a.handlesInMentionSuggestionsEnabled=x("handles_in_mention_suggest_posts");a.zeroPrefixMentionSuggestionEnabled=x("enable_zero_prefix_mention_suggestion_web");a.pendingQuery=null;a.flowNonce=null;return a}; k(lU,E);g=lU.prototype;g.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}}; g.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)}; g.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)}; g.hasSuggestions=function(a){return!!(a&&a.suggestions&&a.suggestions.length>0)}; g.onInput=function(){var a=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var b=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),c=this.activeMention.JSC$10232_getText().slice(-1)===" ",d=this.activeMention.JSC$10232_getText().slice(-2,-1)===" ",e="@\uFE6B\uFF20+\uFE62\uFF0B".indexOf(this.activeMention.JSC$10232_getText().slice(-2,-1))>= 0;e=this.zeroPrefixMentionSuggestionEnabled&&e;if(this.activeMention.isCollapsed()||(b||d||e)&&c)this.cancelActiveMention();else{var f=this.activeMention.JSC$10232_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");et(this,"requestSuggestions",function(){a.requestSuggestions(f)},100)}}}}; g.onServiceRequestSent=function(a){a.stopPropagation()}; g.onServiceRequestCompleted=function(a){a.stopPropagation();a=a.detail.data;a.query&&(!this.pendingQuery||this.pendingQuery!==a.query)||!this.zeroPrefixMentionSuggestionEnabled&&a.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=a,this.hasSuggestions(a)&&this.dropdown.setFocusedSuggestionIndex(0))}; g.onServiceRequestError=function(a){a.stopPropagation()}; g.onUserMentionSuggestionSelected=function(a){this.selectSuggestion(a.detail.data,a.detail.index)}; g.onSelectionChange=function(){if(this.activeMention){var a=OH(),b=this.activeMention.JSC$10232_containsRange(a);a=a&&this.containsHelper(this.dropdown,a.getContainer());b||a||this.cancelActiveMention()}}; g.containsHelper=function(a,b){var c;if(((c=window.ShadyDOM)==null?void 0:c.noPatch)===!0)return a.contains(b);for(;b;){if(b===a)return!0;b=b instanceof ShadowRoot?b.host:b.parentNode}return!1}; g.maybeStartSuggest=function(){var a=OH();if(a&&a.isCollapsed()){var b=a.JSC$10232_getStartNode(),c=a.JSC$10232_getStartOffset();if(b instanceof Text&&!(c<1)){var d=b.textContent;!(d=d&&d.charAt(c-1))||"@\uFE6B\uFF20+\uFE62\uFF0B".indexOf(d)<0||(this.activeMention=PH(b,c-1,a.JSC$10232_getEndNode(),a.JSC$10232_getEndOffset()),this.flowNonce=yv(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}}; g.updateActiveMention=function(){if(this.activeMention){var a=OH();a&&a.isCollapsed()&&(this.activeMention=PH(this.activeMention.JSC$10232_getStartNode(),this.activeMention.JSC$10232_getStartOffset(),a.JSC$10232_getEndNode(),a.JSC$10232_getEndOffset()))}}; g.requestSuggestions=function(a){if(this.activeMention){var b={suggestions_query:a};this.pendingQuery=a;$u(this.hostElement,[this.suggestionsEndpoint,b])}}; g.cancelActiveMention=function(){this.activeMention&&this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STOPPED");this.suggestionsResponse=this.pendingQuery=this.activeMention=null;this.dropdown.clearFocusedSuggestion()}; g.focusPreviousSuggestion=function(a){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),a.preventDefault())}; g.focusNextSuggestion=function(a){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),a.preventDefault())}; g.selectFocusedSuggestion=function(a){if(this.hasSuggestions(this.suggestionsResponse)){var b=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];z(b,hsb)&&(this.selectSuggestion(z(b,hsb),this.dropdown.focusedSuggestionIndex),a.preventDefault())}}; g.selectSuggestion=function(a,b){if(a){var c=this.activeMention;if(c){var d=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&a.handle?ri(d,"\xA0\u2068@"+a.handle+"\u2069\xA0"):this.handlesEnabled?ri(d,"\xA0"+a.displayName+"\xA0"):ri(d,"\xA0@"+a.displayName+"\xA0");Jb(d,"/channel/"+a.channelId);d.classList.add("yt-formatted-string","yt-simple-endpoint");d.setAttribute("spellcheck","false");c.isCollapsed()||c.JSC$10232_removeContents();c.insertNode(d,!0);a=document.createTextNode(" "); d.parentNode.insertBefore(a,d.nextSibling);window.getSelection().collapse(a,1);b={suggestionSelected:{suggestionIndex:b}};if(this.zeroPrefixMentionSuggestionEnabled){var e;b.suggestionSelected.isZeroPrefix=((e=this.suggestionsResponse)==null?void 0:e.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",b);this.cancelActiveMention();Gt(this.hostElement,"yt-mention-inserted")}}}; g.getPositionTarget=function(a){return a&&a.getBrowserRangeObject()}; g.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")}; g.onFocusedSuggestionIdChanged=function(a){var b=Et(this.hostElement)[0];b&&(a.detail.value?b.setAttribute("aria-activedescendant",a.detail.value):b.removeAttribute("aria-activedescendant"))}; g.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")}; g.logGELEvent=function(a,b){a={eventType:a,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};b&&(a=Object.assign(a,b));ao("userMentionAutoCompleteBoxEvent",a)}; lU.prototype.onDomChange=lU.prototype.onDomChange;lU.prototype.onUserMentionSuggestionSelected=lU.prototype.onUserMentionSuggestionSelected;lU.prototype.onServiceRequestError=lU.prototype.onServiceRequestError;lU.prototype.onServiceRequestCompleted=lU.prototype.onServiceRequestCompleted;lU.prototype.onServiceRequestSent=lU.prototype.onServiceRequestSent;lU.prototype.onInput=lU.prototype.onInput;n([F(Lw),r("design:type",Object)],lU.prototype,"ironA11yKeysBehavior",void 0); n([M(),r("design:type",Object)],lU.prototype,"suggestionsEndpoint",void 0);n([M(),r("design:type",Object)],lU.prototype,"suggestionsResponse",void 0);n([M(),r("design:type",Object)],lU.prototype,"activeMention",void 0);n([Tt("#dropdown"),r("design:type",Object)],lU.prototype,"dropdown",void 0);n([Tt("#iron-dropdown"),r("design:type",Object)],lU.prototype,"ironDropdown",void 0);n([Kt("input"),r("design:type",Function),r("design:paramtypes",[Event]),r("design:returntype")],lU.prototype,"onInput",null); n([Kt("yt-service-request-sent"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],lU.prototype,"onServiceRequestSent",null);n([Kt("yt-service-request-completed"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],lU.prototype,"onServiceRequestCompleted",null);n([Kt("yt-service-request-error"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],lU.prototype,"onServiceRequestError",null); n([Kt("yt-user-mention-suggestion-selected"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],lU.prototype,"onUserMentionSuggestionSelected",null);n([Kt("dom-change"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],lU.prototype,"onDomChange",null);n([fu({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],lU); Tu(lU,"yt-user-mention-autosuggest-input",function(){if(JWb===void 0){var a=document.createElement("template");Q(a,"\n\n \n \n\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;IWb===void 0&&(IWb=document.createElement("template"));var d=IWb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);JWb=a}a=JWb;return a},{mode:2});var PWb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("Z8kqPb"),2);a=OWb;return b.return(a)})},QWb=yD(function(){return PWb()},{debugName:"textFieldViewModel"}); Gn(xD,function(a){a.registerLoadFn("textFieldViewModel","Z8kqPb",PWb)});var RWb=function(a,b){Yi.call(this);this.uploadUrl=a;this.channelId=b;this.imagesUploadData=[]}; k(RWb,Yi);var TWb=function(a){var b,c,d;return ra(function(e){if(e.nextAddress==1)return e.yield(SWb(a),2);b=e.yieldResult;c=b.get("succeed");d=b.get("failed");return e.return(c.concat(d))})},SWb=function(a){var b,c,d,e,f,h,m; return ra(function(p){if(p.nextAddress==1)return b=new Map,p.yield(Promise.allSettled(a.imagesUploadData.map(function(q){return q.uploadPromise})),2); c=p.yieldResult;d=[];e=l(c);for(f=e.next();!f.done;f=e.next())h=f.value,h.status==="fulfilled"&&d.push(h.value);m=a.imagesUploadData.map(function(q){return q.image}).filter(function(q){return d.every(function(t){return t.id!==q.id})}); b.set("succeed",d);b.set("failed",m);return p.return(b)})},XWb=function(a,b){b=l(b); for(var c=b.next();!c.done;c=b.next()){var d=a;c=c.value;UWb(d,c.id)>=0&&d.cancel(c.id);var e=new VWb(c);var f=void 0;var h=d.uploadUrl;var m={"X-YouTube-ChannelId":d.channelId},p=c.imageBlob;f=f===void 0?!1:f;if(p instanceof jkb)h=new mkb(h,"POST",m,p.getInputElement(),"");else if(typeof p==="string"||p instanceof String)h=new zkb(h,"POST",m,p,"");else{var q=new mJ(void 0),t=q;t.JSC$10734_url_=h;t.JSC$10734_method_="POST";t.JSC$10734_headers_=m;t.blob_=p;t.originalBlobSize_=p.size;t.JSC$10734_metadata_= "";f&&(t.JSC$10734_withCredentials_=f);t.state_="Start";h=q}e.transfer=h;e.uploadPromise=WWb(h,c);d.imagesUploadData.push(e);h.run()}}; RWb.prototype.cancel=function(a){var b=UWb(this,a);b!==-1&&((b=this.imagesUploadData[b].transfer)&&b.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(c){return c.image.id!==a}))}; var UWb=function(a,b){return a.imagesUploadData.findIndex(function(c){return c.image.id===b})},WWb=function(a,b){return new Promise(function(c,d){a.listen("i",function(){var e=a.getResponseText(); e?(e=JSON.parse(e).encryptedBlobId,b.encryptedBlobId=e,c(b)):d("upload failed")}); a.listen("k",function(){d("upload failed")})})},VWb=function(a){this.image=a};var YWb=function(a,b){this.rule=a;this.getDependentField=b}; YWb.prototype.validate=function(a){var b;if(!this.getDependentField||(b=this.rule.dependencies)==null||!b.idIsImageType)return null;var c;if((c=this.getDependentField(this.rule.dependencies.idIsImageType))==null?0:c.value)for(a=l(a),b=a.next();!b.done;b=a.next()){b=b.value;if(!b.uri)return{message:"Image URI is required."};if(b.imageUploadingState!=="IMAGE_UPLOADING_STATE_SUCCEED")return{message:"Image is still uploading."}}return null};var ZWb=function(a,b){this.rule=a;this.getDependentField=b}; ZWb.prototype.validate=function(a){a=l(a);for(var b=a.next();!b.done;b=a.next())if(!b.value.isValid)return{message:"Subform invalid"};return null};var $Wb=function(a,b){this.rule=a;this.getDependentField=b}; $Wb.prototype.validate=function(a){var b;if(!this.getDependentField||(b=this.rule.dependencies)==null||!b.optionsId)return null;var c,d;b=(d=(c=this.getDependentField(this.rule.dependencies.optionsId))==null?void 0:c.value)!=null?d:[];return a<0||a>=b.length?{message:"Index out of bounds"}:null};var aXb=function(a,b){this.rule=a;this.getDependentField=b}; aXb.prototype.validate=function(a){var b,c,d=(c=(b=this.rule.dependencies)==null?void 0:b.idIsImageType)!=null?c:"",e,f;b=((e=this.getDependentField)==null?0:(f=e.call(this,d))==null?0:f.value)?this.rule.imageMaxLength:this.rule.textMaxLength;var h;b=(h=b)!=null?h:Number.MAX_SAFE_INTEGER;var m;d=typeof a==="string"?Array.from(a).length:(m=a==null?void 0:a.length)!=null?m:0;if(typeof a==="string"&&d===0)return{message:""};if(d>b){var p,q;return{message:(q=(p=this.rule.translations)==null?void 0:p.maxLengthErrorMessage)!= null?q:""}}return null};var cXb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("dm1PRe"),2);a=bXb;return b.return(a)})},dXb=yD(function(){return cXb()},{debugName:"postsCreationOptionsViewModel"}); Gn(xD,function(a){a.registerLoadFn("postsCreationOptionsViewModel","dm1PRe",cXb)});bB(O(function(a){function b(u){var v;(v=nrb(u))==null||v.dispose()} function c(){var u,v=(u=e)==null?void 0:u.form();if(!v)return[];u=v.options.value;var w=v.correctAnswerIndex.value,y=v.explanationText.value;v=v.isImageType.value;for(var A=[],C={},I=0;I\n\n
\n \n \n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return tWb=a}, behaviors:[VDa.YtHostElementBehavior,Lw,ft.YtActionHandlerBehavior,mz.YtComponentBehavior,$C.YtRendererstamperBehavior,hWb.YtdReduxBehavior],keyBindings:{left:"leftKeyPressed_",right:"rightKeyPressed_",end:"endKeyPressed_",backspace:"maybeBackspaceChip_","delete":"maybeDeleteChip_","ctrl+enter meta+enter":"submitIfNotBackstagePost_","ctrl+backspace alt+backspace":"maybeBackspaceChipWordMode_","ctrl+delete alt+delete":"maybeDeleteChipWordMode_"},properties:{data:{type:Object,observer:"dataChanged_"}, placeholderFormattedText_:{type:Object,computed:"computePlaceholderText_(data, addedAttachment, prefilledAttachment_)"},aadcGuidelinesState_:{type:Object,selectorArgs:["data.aadcGuidelinesStateEntityKey"],selector:function(a,b){return yA(a.entities,"aadcGuidelinesStateEntityPayload",b)}}, dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(a,b){return yA(a.entities,"commentboxStateEntity",b)}, observer:"commentboxStateEntityChanged_"},receivedFocusPreviously_:{type:Boolean,value:!1},hasDismissableAttachment_:{type:Boolean,value:!1},hasVideoLinkAttachment_:{type:Boolean,value:!1},hasPollAttachment_:{type:Boolean,value:!1},hasBackstageImagePollEditor_:{type:Boolean,value:!1},isReply:{type:Boolean,value:!1},isBackstageComment:{type:Boolean,computed:"computeIsBackstageComment_(data.avatarSize)",reflectToAttribute:!0},attachmentButtonIds:{type:Object,readOnly:!0,computed:"computeAttachmentButtonIds_()"}, isBackstagePost:{type:Boolean,value:!1,reflectToAttribute:!0},serviceEndpoint:{type:Object,readOnly:!0,computed:"computeServiceEndpoint_(data)"},submitButtonDisabled:{type:Boolean,value:!1},attachment:Object,isLoading:{type:Boolean,observer:"isLoadingChanged_"},errorMessage_:{type:Object,value:null},alertMessage_:{type:Object,value:null},imageUploadEndpoint_:{type:Object,computed:"computeImageUploadEndpoint_(data)"},rateLimitErrorCommands:{type:Object,computed:"computeRateLimitErrorCommands_(data)"}, addedAttachment:{type:String,value:"none",reflectToAttribute:!0},prefilledAttachment_:{type:String,value:"none",reflectToAttribute:!0},previousText_:String,inlineSchedulePanel_:{type:Object,computed:"computeInlineSchedulingPanel_(data.purpose, data.schedulingDateTimePicker)"},dropdownSchedulePanel_:{type:Object,computed:"computeDropdownSchedulingPanel_(data.purpose, data.schedulingDateTimePicker)"},scheduleButton_:Object,zeroStepChannelCreationRenderer:Object,enableCreationBox:{type:Boolean,reflectToAttribute:!0}, isInputFocus_:{type:Boolean,observer:"onIsInputFocusChanged_"},hasImage_:{type:Boolean,computed:"computeHasImage_(addedAttachment)"},hasPollOrQuizRendererInEditDialog_:{type:Boolean,computed:"computeHasPollOrQuizRendererInEditDialog_(data)"},hasVideo_:{type:Boolean,computed:"computeHasVideo_(addedAttachment)"},hasPoll_:{type:Boolean,computed:"computeHasPoll_(addedAttachment)"},hasImagePoll_:{type:Boolean,computed:"computeHasImagePoll_(addedAttachment)"},hasLegacyQuiz_:{type:Boolean,computed:"computeLegacyQuiz_(addedAttachment, hasNewQuiz_)"}, hasNewQuiz_:{type:Boolean,computed:"computeHasNewQuiz_(addedAttachment, data)"},isQuizValid_:{type:Boolean,value:!1},quizOptions_:{type:Array,value:function(){return[]}}, boundOnQuizOptionsChanged_:Function,quizOptionsResetKey_:{type:Number,value:0},prefilledContent_:{type:Object,readOnly:!0,computed:"computePrefilledContent_(data)"},editAttachment_:{type:Object,readOnly:!0,computed:"computeEditAttachment_(data)"},isCreationBox:{type:Boolean,reflectToAttribute:!0,value:!1},isPopupBox:{type:Boolean,reflectToAttribute:!0,value:!1},emojiManager:{type:Object,readOnly:!0,value:function(){return qM}}, isEmojiButtonDisplayed:{type:Boolean,computed:"computeIsEmojiButtonDisplayed_(data)",value:!1},isEmojiPickerDisplayed:{type:Boolean,value:!1,reflectToAttribute:!0},hasExternalLinksAccess_:{type:Boolean,computed:"computeHasExternalLinksAccess_(data)",value:!0},isExternalLinksBannerDisplayed:{type:Boolean,value:!1,reflectToAttribute:!0},emojiInput:Object,verticalSuggestionsOffset:{type:Number,value:30},isPostCreationDialogV2:{type:Boolean,reflectToAttribute:!0,value:!1},accessRestriction:{type:String}, charCount_:{type:Number,value:0},charLimit_:{type:Number,computed:"computeCharLimit_(data)"},aboveCharLimit_:{type:Boolean,reflectToAttribute:!0,value:!1},inputEventSupported_:{type:Boolean,value:!1},textRequiresScrolling:{type:Boolean,reflectToAttribute:!0,value:!1},localStorage:Object,modern:{type:Boolean,reflectToAttribute:!0,value:x("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:x("kevlar_watch_grid")}},observers:["observePrefilledImage_(data.purpose, data.prefilledImageData, data.backstageAttachment)", "observePrefilledVideo_(data.purpose, data.backstageAttachment)","observePrefilledPoll_(data.prefilledAttachment)"],listeners:{"yt-service-request-completed":"onYtServiceRequestCompleted_","yt-service-request-error":"onYtServiceRequestError_","yt-service-request-sent":"onYtServiceRequestSent_","yt-backstage-image-select-cancel":"onAttachmentDismiss_","yt-backstage-multi-image-cancel":"onAttachmentDismiss_","yt-backstage-image-select-alert":"onImageAlert_","yt-backstage-image-select-preview":"onImageSelected_", "yt-backstage-multi-image-select":"onImagesSelected_","yt-backstage-poll-image-select":"onImagesSelected_","yt-img-crop-coordinates-update":"onImagePreviewCoordinatesUpdated_","yt-img-crop-reposition":"onImagePreviewReposition_","yt-poll-attachment-dismiss":"onAttachmentDismiss_","yt-image-poll-attachment-dismiss":"onAttachmentDismiss_","yt-quiz-attachment-dismiss":"onAttachmentDismiss_","yt-quiz-attachment-explanation-update":"onQuizExplanationUpdated_","yt-navigate":"onYtNavigate_","yt-video-link-selected":"onVideoLinkSelected_", "yt-backstage-add-image-error":"onAddImageError_","yt-video-link-cancel":"onAttachmentDismiss_","yt-video-link-button-cancel":"onVideoLinkButtonCancel_","yt-commentbox-post-enable":"onSubmitButtonEnable_","yt-commentbox-post-disable":"onSubmitButtonDisable_","yt-backstage-attachment-dismissed":"onPrefilledContentDismissed_","yt-emoji-select":"onEmojiSelect_","yt-insert-suggestion":"onSuggestionInsert_","yt-select-emoji-suggestion":"onEmojiSuggestionClick_","ytd-date-time-selection-update":"onDateTimeSelectionUpdate_", "ytd-date-time-selection-cancelled":"onDateTimeSelectionCancelled_","yt-mention-inserted":"onInsertMention_"},actionMap:{"yt-signal-action-ack-post-aadc-notice":"onAadcNoticeConfirm_","yt-hide-identity-chip-action":"onHideIdentityChip"},stampDom:{"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:"ytd-flat-dropdown-renderer"}},"data.emojiButton":{id:"emoji-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.emojiPicker":{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer", properties:{emojiManager:"[[emojiManager]]"}}}},dropdownSchedulePanel_:{id:"scheduling-panel",mapping:{}},inlineSchedulePanel_:{id:"inline-scheduling-panel",mapping:{}},"zeroStepChannelCreationRenderer.identityChipRenderer":{id:"identity-chip",mapping:{identityChipRenderer:"ytd-identity-chip-renderer"}}},configureRendererStamper:function(){this.videoRendererConfig_=Fn().resolve(Cn(uWb));this.backstageImageRendererConfig_=Fn().resolve(Cn(vWb));this.backstagePollRendererConfig_=Fn().resolve(Cn(wWb)); this.backstageQuizRendererConfig_=Fn().resolve(Cn(xWb));this.backstageImageSelectRendererConfig_=Fn().resolve(Cn(yWb));this.backstageMultiImageSelectRendererConfig_=Fn().resolve(Cn(zWb));this.dateTimePickerRendererConfig_=Fn().resolve(Cn(BWb));var a={playlistRenderer:{component:"ytd-playlist-renderer",properties:{isBackstagePlaylist:"[[isBackstagePost]]"}},postMultiImageRenderer:"ytd-post-multi-image-renderer"};this.videoRendererConfig_&&(a.videoRenderer=this.videoRendererConfig_);this.backstageImageRendererConfig_&&( a.backstageImageRenderer=this.backstageImageRendererConfig_);var b={};this.backstagePollRendererConfig_&&(b.pollRenderer=this.backstagePollRendererConfig_);this.backstageQuizRendererConfig_&&(b.quizRenderer=this.backstageQuizRendererConfig_);var c={};this.backstageImageSelectRendererConfig_&&(c.backstageImageSelectRenderer=this.backstageImageSelectRendererConfig_);this.backstageMultiImageSelectRendererConfig_&&(c.backstageMultiImageSelectRenderer=this.backstageMultiImageSelectRendererConfig_);var d= {};this.dateTimePickerRendererConfig_&&(d.dateTimePickerRenderer=this.dateTimePickerRendererConfig_);return{editAttachment_:{id:"attachment-preview",mapping:a},"data.backstageAttachment":{id:"poll-preview",mapping:b},"imageUploadEndpoint_.imageEditor":{id:"image-select",mapping:c},dropdownSchedulePanel_:{id:"scheduling-panel",mapping:d},inlineSchedulePanel_:{id:"inline-scheduling-panel",mapping:d}}}, ready:function(){document.addEventListener("tap",It(this,this.onTap_));this.emojiInput=this.$.emoji}, isLoadingChanged_:function(a){this.fire(a?"yt-commentbox-loading-start":"yt-commentbox-loading-end")}, dataChanged_:function(a){this.set("submitButtonDisabled",void 0);this.clear();a&&this.computeIsEmojiButtonDisplayed_(a)&&(a=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&a.updateEmojiCategories()}, observePrefilledImage_:function(a,b,c){this.isValidPrefilledImage_(a,b,c)&&(this.prefilledAttachment_="image",this.prefilledImageData_=b,this.submitButtonDisabled=!1)}, observePrefilledVideo_:function(a,b){this.isValidPrefilledVideo_(a,b)&&(this.prefilledAttachment_="video")}, observePrefilledPoll_:function(a){if(a&&a.pollData&&a.pollData.choices){this.addedAttachment="poll";var b;(b=this.$$("#poll-attachment"))==null||b.setPrefilledChoices(a.pollData.choices)}}, attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;Rr();this.focus();document.addEventListener("selectionchange",this.onSelectionChange_)}, detached:function(){document.removeEventListener("tap",It(this,this.onTap_));document.removeEventListener("selectionchange",this.onSelectionChange_)}, created:function(){this.boundOnQuizOptionsChanged_=this.onQuizOptionsChanged_.bind(this);this.onAttachmentDismiss_.bind(this);var a=Fn();this.hasDismissableAttachment_=!!a.resolve(Cn(CWb));this.hasVideoLinkAttachment_=!!a.resolve(Cn(DWb));this.hasPollAttachment_=!!a.resolve(Cn(EWb));this.hasBackstageImagePollEditor_=!!a.resolve(Cn(AWb));this.scheduledPublishTimeSec_=this.prefilledImageData_=this.imagePreviewCoordinates_=this.taggedVideoId_=this.selectedVideoId_=void 0;this.textRequiresScrolling=!1; this.TEST_ONLY=void 0}, onEmojiButtonTap_:function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.$$("#emoji-picker > yt-emoji-picker-renderer").selected=!this.$$("#emoji-picker > yt-emoji-picker-renderer").selected}, onEmojiSelect_:function(a){a=a.detail;a=a.isCustomEmoji?a.shortcuts[0]:a.emojiId;var b=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(b,a);this.maybeUpdateTextDirection_()}, getInputRange_:function(){var a=OH();if(a){a=a.getBrowserRangeObject();for(var b=a.commonAncestorContainer;b;){if(b===this.getEditableTextArea_())return a;b=b.parentNode}}a=this.getEditableTextArea_();a=Bdb(a,a.childNodes.length);a.select();return a.getBrowserRangeObject()}, insertTextWithEmojis_:function(a,b,c){if((c=this.emojiManager.createDocumentFragment(b,!0,!1,c===void 0?!0:c))&&c.childNodes.length!==0){a.collapsed||a.deleteContents();b=c.lastChild;a.insertNode(c);a=ci(b).createRange();if(b.nodeType==3)a.setStart(b,0),a.setEnd(b,b.length);else if(mi(b)||b.nodeType==3){var d;for(c=b;(d=c.firstChild)&&(mi(d)||d.nodeType==3);)c=d;a.setStart(c,0);for(c=b;(d=c.lastChild)&&(mi(d)||d.nodeType==3);)c=d;a.setEnd(c,c.nodeType==1?c.childNodes.length:c.length)}else d=b.parentNode, b=Array.prototype.indexOf.call(d.childNodes,b),a.setStart(d,b),a.setEnd(d,b+1);udb(new HH(a)).select();this.getInputRange_().collapse(!1);this.getEditableTextArea_().normalize();this.submitButtonDisabled=!1}}, onSelectionChange_:function(){var a=OH();if(a){var b=a.JSC$10232_getStartNode(),c=a.JSC$10232_getEndNode();if(kWb(b)&&kWb(c)){var d=a.JSC$10232_getStartOffset(),e;if(e=oda&&b.nodeType===Node.ELEMENT_NODE){var f=document;e=f=(b||f).querySelector("YT-FORMATTED-STRING.paper-input-input")}if(e)Bdb(f,0).select();else{f=fU(b)?b:si(b,fU);e=fU(c)?c:si(c,fU);if(f||e)if(a.isCollapsed()){if(b.nodeType===Node.TEXT_NODE){a=!0;d===b.length&&(a=!1);if(mU==="end"||mU==="right")a=!1;b=b.parentNode;a=[].concat(ia(b.parentNode.childNodes)).indexOf(b)+( a?0:1);Bdb(b.parentNode,a).select()}}else f?f.previousSibling&&f.previousSibling.length>0?PH(c,a.JSC$10232_getEndOffset(),f.previousSibling,f.previousSibling.length-1).select():(b=document.createTextNode("\u200B"),f.parentNode.insertBefore(b,f),PH(c,a.JSC$10232_getEndOffset(),b,0).select()):e&&(e.nextSibling&&e.nextSibling.length>0?PH(b,a.JSC$10232_getStartOffset(),e.nextSibling,1).select():(c=document.createTextNode("\u200B"),e.parentNode.insertBefore(c,e.nextSibling),PH(b,a.JSC$10232_getStartOffset(), c,c.length).select()));mU=null}}else mU=null}else mU=null}, leftKeyPressed_:function(){mU="left"}, rightKeyPressed_:function(){mU="right"}, endKeyPressed_:function(){mU="end"}, maybeDeleteChip_:function(){var a=qWb(!0);if(a){var b=OH(),c=b.JSC$10232_getStartNode();b=b.JSC$10232_getStartOffset();JH(c,b,a,a.childNodes.length).select()}}, maybeBackspaceChip_:function(){var a=qWb(!1);if(a){var b=OH(),c=b.JSC$10232_getStartNode();b=b.JSC$10232_getStartOffset();JH(c,b,a,0).select()}}, maybeBackspaceChipWordMode_:function(a){var b=OH();if(b.isCollapsed()){var c=b.JSC$10232_getStartNode();b=b.JSC$10232_getStartOffset();var d=rWb(c,b,!0);d&&(JH(c,b,d,0).select(),document.execCommand("delete"),a.preventDefault(),a.stopImmediatePropagation())}}, maybeDeleteChipWordMode_:function(a){var b=OH();if(b.isCollapsed()){var c=b.JSC$10232_getStartNode();b=b.JSC$10232_getStartOffset();var d=rWb(c,b,!1);d&&(JH(c,b,d,d.childNodes.length).select(),document.execCommand("delete"),a.preventDefault(),a.stopImmediatePropagation())}}, onTap_:function(a){if(!a.defaultPrevented&&(a.currentTarget.tagName==="YTD-COMMENTBOX"&&fU(a.target)&&a.preventDefault(),this.isEmojiPickerDisplayed)){var b=this.$$("#emojis"),c=this.$$("#emoji-button"),d=this.getEditableTextArea_();if((a=a.path?a.path:a.composedPath&&a.composedPath())&&!a.includes(b)&&!a.includes(d)&&!a.includes(c))this.onEmojiButtonTap_()}}, isValidPrefilledImage_:function(a,b,c){return a==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&b!==void 0&&b.encryptedBlobId!==null&&b.sourceExternalVideoId!==null&&c!==void 0&&c.backstageImageRenderer!==null}, isValidPrefilledVideo_:function(a,b){return a==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!b&&!!b.videoRenderer&&!!b.videoRenderer.videoId}, isValidPrefilledAttachment_:function(a,b,c){return this.isValidPrefilledImage_(a,b,c)||this.isValidPrefilledVideo_(a,c)}, dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"}, clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(x("enable_multi_image_post_creation")){var a=this.$$("ytd-backstage-multi-image-select-renderer");a&&a.hasImages()&&a.cancel()}else(a=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&a.cancel();(a=this.$$("#poll-attachment"))&&this.hasPoll_&&a.clearPollOptions();(a=this.$$("ytd-backstage-image-poll-editor-renderer"))&&this.hasImagePoll_&&a.resetPollOptions();(a=this.$["quiz-attachment"])&&this.hasLegacyQuiz_&& a.resetQuizOptions();this.hasNewQuiz_&&(this.quizOptionsResetKey_=Date.now());(a=this.$$("#video-link-attachment"))&&this.hasVideo_&&a.cancel();(a=this.$["access-restrictions-selector"].firstElementChild)&&a.reset();this.prefilledAttachment_!=="none"&&this.dismissPrefilledContent_();this.addedAttachment="none";this.prefilledImageData_=this.scheduledPublishTimeSec_=this.imagePreviewCoordinates_=this.selectedVideoId_=void 0;this.submitButtonDisabled=!0;this.setTextAreaValue_(this.data.editableText); this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.isExternalLinksBannerDisplayed=this.isEmojiPickerDisplayed=this.receivedFocusPreviously_=!1;if(this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")this.onDateTimeSelectionCancelled_()}, getEditableTextArea_:function(){return wt(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node}, getEditableFormattedString_:function(){return wt(this.hostElement).querySelector("#contenteditable-textarea")}, getTextAreaValue:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!0)}, getTextLength:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!1).trim().length}, convertHrefToAtMentionAndImgToEmoji_:function(a,b){a=mWb(a,this.emojiManager,b).cloneNode(!0);for(b=a.firstChild;b;)if(b.nodeType!==1)b=b.nextSibling;else switch(b.tagName){case"BR":var c=document.createTextNode("\n"),d=b.parentNode;d&&d.replaceChild(c,b);b=c.nextSibling;break;case"DIV":(c=b.lastChild)&&b.nextSibling&&ni(document.createTextNode("\n"),c);b.previousSibling&&(b.previousSibling.nodeType===1||b.previousSibling.nodeType===3&&!b.previousSibling.textContent.endsWith("\n"))&&b.parentNode&& b.parentNode.insertBefore(document.createTextNode("\n"),b);c&&c.nodeName==="BR"&&oi(c);c=b;if(b.hasChildNodes()){b=b.firstChild;var e=c.parentNode;if(e&&e.nodeType!=11)if(c.removeNode)c.removeNode(!1);else{for(;d=c.firstChild;)e.insertBefore(d,c);oi(c)}}else b=b.nextSibling,oi(c);break;default:b=b.nextSibling;}return sWb(a)}, onAddImageError_:function(a){a.stopPropagation();this.errorMessage_=kz(a.detail)}, setTextAreaValue_:function(a){a||(a="");var b=this.getEditableFormattedString_();b.text="";this.getEditableTextArea_().innerText="";typeof a==="string"&&(a={runs:[{text:a}]});b.text=a}, focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();mU=null}, maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var a=this.getEditableTextArea_();a&&(Bdb(a,a.childNodes.length).select(),this.receivedFocusPreviously_=!0)}}, maybeUpdateTextDirection_:function(){if(Vk("HTML_DIR")==="rtl"){var a=this.getEditableTextArea_(),b=this.getTextAreaValue()!==""?"auto":"rtl";a.setAttribute("dir",b)}}, maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1}, computePostHasExternaLink_:function(){var a;return Ykb((a=this.$["quiz-attachment"])==null?void 0:a.getExplanationText())||Ykb(this.getTextAreaValue().trim())}, handleInputEvent_:function(){var a=null;if(this.isEmojiButtonDisplayed){var b=this.getInputRange_();b&&(a=this.emojiInput.retrieveTextBeforeRange(b))}this.insertText_(a,!0);this.updateCharCount_();this.setSubmitButton_();a=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=a.scrollHeight>a.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()}, maybeHeightChanged:function(){var a=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:a})}, onInput_:function(){this.inputEventSupported_=!0;this.handleInputEvent_()}, onKeyUp_:function(){this.inputEventSupported_||this.handleInputEvent_()}, updateCharCount_:function(){this.charCount_=this.getTextLength();this.aboveCharLimit_=!!this.charLimit_&&this.charCount_>this.charLimit_}, onPaste_:function(a){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(a)}, onPasteEmoji_:function(a){a.preventDefault();a.stopImmediatePropagation();a=a.clipboardData.getData("text/plain");this.insertText_(a,!1,!1)}, insertText_:function(a,b,c){b=b===void 0?!1:b;c=c===void 0?!0:c;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&a){var d=this.getInputRange_().cloneRange();this.emojiManager&&d&&(b&&this.emojiInput.offsetStartOfRangeBy(d,a.length),this.insertTextWithEmojis_(d,a,c),lWb(this.getEditableTextArea_().lastChild)||(d=this.getInputRange_().cloneRange()),d&&(this.emojiInput.updateSuggestions(d,a),this.updateSuggestionOffset_(d)))}}, setSubmitButton_:function(){if(this.data){var a=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",b=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(a||b){var c=this.getTextAreaValue().trim();b=c===this.previousText_;c=!c||this.aboveCharLimit_;a&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(c=this.aboveCharLimit_);this.submitButtonDisabled= b||c||!this.getTextLength();a&&(this.submitButtonDisabled=b&&!this.scheduledPublishTimeSec_||c)}else this.submitButtonDisabled=!this.isValidInput_()}}, onSubmitButtonEnable_:function(){this.setSubmitButton_()}, onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0}, getSimpleString:lz,computeCreationBoxClass_:function(a){return a?"focused":"not-focused"}, computeFooterMessageClass_:function(a,b){return b?"footer-error-message":"footer-alert-message"}, computeFooterMessage_:function(a,b){return b?b:a}, computeFooterMessageHidden_:function(a,b){return!b&&!a}, computePlaceholderText_:function(a,b,c){return(c==="video"||c==="image")&&(a==null?0:a.prefilledPlaceholderText)?a==null?void 0:a.prefilledPlaceholderText:b==="poll"||b==="image-poll"?a==null?void 0:a.pollPostPlaceholderText:b==="quiz"?a==null?void 0:a.quizPostPlaceholderText:b==="image"?a==null?void 0:a.imagePostPlaceholderText:a==null?void 0:a.placeholderText}, computeHideAttachmentButtons_:function(a,b,c,d){return a===void 0?!1:d&&this.getSimpleString(d)===this.getSimpleString(a.rateLimitErrorMessage)?!0:b!=="none"||c!=="none"||!a.videoLinkButton&&!a.pollButton&&!a.imagePollButton&&!a.quizButton&&!a.imageButton}, computeHideDismissableAttachment_:function(a){return a!=="image"&&a!=="video"}, computeHasVideo_:function(a){return a==="video"}, computeHasImage_:function(a){return a==="image"}, computeHasPoll_:function(a){return a==="poll"}, computeHasImagePoll_:function(a){return a==="image-poll"}, computeLegacyQuiz_:function(a,b){return a==="quiz"&&!b}, computeHasNewQuiz_:function(a,b){var c,d;return a==="quiz"&&!!(b==null?0:(c=b.attachmentEditors)==null?0:(d=c.quizEditorRenderer)==null?0:d.postsCreationOptionsEditorViewModel)}, computeHasPollOrQuizRendererInEditDialog_:function(a){return a&&a.backstageAttachment?a.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!a.backstageAttachment.quizRenderer&&!a.backstageAttachment.pollRenderer):!1}, computePrefilledContent_:function(a){if(this.isValidPrefilledAttachment_(a.purpose,a.prefilledImageData,a.backstageAttachment))return a.backstageAttachment}, computeEditAttachment_:function(a){if(this.computePrefilledContent_(a)===void 0)return a.backstageAttachment}, computeAuthorThumbnailDimension_:function(a,b){return a&&!b?24:40}, computeImageUploadEndpoint_:function(a){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",a)}, computeRateLimitErrorCommands_:function(a){var b,c;return a==null?void 0:(b=a.advancedTierFeatures)==null?void 0:(c=b.rateLimit)==null?void 0:c.rateLimitCommands}, computeIsBackstageComment_:function(a){return!(!a||a!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")}, computeServiceEndpoint_:function(a){return this.get("submitButton.buttonRenderer.serviceEndpoint",a)||this.get("replyButton.buttonRenderer.serviceEndpoint",a)||this.get("postButton.buttonRenderer.serviceEndpoint",a)}, computeSubmitButtonOverride:function(){if(x("web_modern_buttons")){var a,b;return{segmentedPosition:this.dropdownSchedulePanel_||!((a=this.data)==null?0:(b=a.postOptionsMenu)==null?0:b.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}}, computeThreeDotButtonOverride:function(){if(x("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}, computeSubmitButton_:function(a,b){a=this.get("submitButton.buttonRenderer",a)||this.get("replyButton.buttonRenderer",a)||this.get("postButton.buttonRenderer",a);b&&(a=b);a&&(a=Object.assign({},a),a.serviceEndpoint=void 0,a.isDisabled=this.submitButtonDisabled);return a}, computeHasExternalLinksAccess_:function(a){var b,c,d;return(d=a==null?void 0:(b=a.advancedTierFeatures)==null?void 0:(c=b.externalLinks)==null?void 0:c.allowExternalLinks)!=null?d:!0}, computeIsEmojiButtonDisplayed_:function(a){return a.emojiButton&&a.emojiPicker&&a.emojiPicker.emojiPickerRenderer&&a.emojiPicker.emojiPickerRenderer.categories?a.emojiPicker.emojiPickerRenderer.categories.find(function(b){return b.emojiPickerCategoryRenderer?b.emojiPickerCategoryRenderer.emojiIds&&b.emojiPickerCategoryRenderer.emojiIds.length>0:b.emojiPickerUpsellCategoryRenderer?b.emojiPickerUpsellCategoryRenderer.emojis&&b.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1}, computeCharLimit_:function(a){return a.charLimit?a.charLimit:null}, computeDropdownSchedulingPanel_:function(a,b){if(a==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&b)return b}, computeInlineSchedulingPanel_:function(a,b){if(a==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&b)return b}, computeHideAuthorThumbnail_:function(a,b){return a||this.computeUseIdentityChip_(b)}, computeHideIdentityChipRenderer_:function(a,b){return a||!this.computeUseIdentityChip_(b)}, computeUseIdentityChip_:function(a){return!!a&&!!a.identityChipRenderer}, getSharedPostId_:function(){return this.data.backstageAttachment&&this.data.backstageAttachment.postRenderer&&this.data.backstageAttachment.postRenderer.postId?this.data.backstageAttachment.postRenderer.postId:void 0}, onYtNavigate_:function(a){var b,c,d,e;(a==null?0:(b=a.detail)==null?0:(c=b.endpoint)==null?0:c.ypcGetOffersEndpoint)||(a==null?0:(d=a.detail)==null?0:(e=d.endpoint)==null?0:e.ypcOffersEndpoint)?(a.stopPropagation(),$u(this,[a.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",a)&&(a.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)}, onVideoLinkSelected_:function(a){this.addedAttachment="video";this.selectedVideoId_=a.detail.videoId}, commentboxStateEntityChanged_:function(a){var b=this;(a==null?void 0:a.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(a==null?void 0:a.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){b.focus()})}, onYtServiceRequestSent_:function(a,b){if(b.actions)for(a=l(b.actions),b=a.next();!b.done;b=a.next())b.value.createPollAction&&(this.submitButtonDisabled=!0)}, onYtServiceRequestCompleted_:function(a){this.isLoading=!1;var b=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",a),c,d,e,f=a==null?void 0:(c=a.detail)==null?void 0:(d=c.data)==null?void 0:(e=d.actionResult)==null?void 0:e.commentboxStateEntityKey;if(b)this.errorMessage_=b;else if(f){var h;this.dismissData_=a==null?void 0:(h=a.detail)==null?void 0:h.data;this.commentboxStateKey_=f}else{this.clear();var m;this.fire("yt-commentbox-dismiss",a==null?void 0:(m=a.detail)== null?void 0:m.data)}}, onYtServiceRequestError_:function(a){a.stopPropagation();this.isLoading=!1;var b,c;if(((b=this.data)==null?void 0:b.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((c=this.data)==null?void 0:c.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(b=this.get("detail.error.args",a)||[],b.length>1&&b[1].message){this.handlePostsServiceRequestError_(b[1].message);return}(a=this.get("detail.error.message",a))?this.errorMessage_=this.data.errorMessage||kz(a):(this.clear(),this.fire("yt-commentbox-dismiss"))}, handlePostsServiceRequestError_:function(a){if(this.rateLimitErrorCommands)for(var b=l(this.rateLimitErrorCommands),c=b.next();!c.done;c=b.next())if(c=c.value,c.errorLabel===a){jz(c.command,this.hostElement);return}this.errorMessage_=kz(a)}, submitIfNotBackstagePost_:function(a){if(!this.isBackstagePost)this.onSubmit_(a)}, onSubmit_:function(a){var b=this,c,d,e,f,h,m,p,q,t,u,v,w,y,A,C,I;return ra(function(K){switch(K.nextAddress){case 1:a.stopPropagation();if(!b.serviceEndpoint||!b.isValidInput_())return K.return();if(b.shouldShowPostAadcNotice_())return b.showPostAadcNotice_(),K.return();if(b.shouldShowCommentAadcNotice_())return b.showCommentAadcNotice_(),K.return();if(!(b.$$("ytd-backstage-multi-image-select-renderer")&&b.hasImage_&&x("enable_multi_image_post_creation"))){K.jumpTo(2);break}c=b.$$("ytd-backstage-multi-image-select-renderer"); return K.yield(TWb(c),3);case 3:d=K.yieldResult;if(!d)return K.return();e=l(d);for(f=e.next();!f.done;f=e.next())if(h=f.value,h.encryptedBlobId===void 0)return b.isLoading=!1,p=m=void 0,b.errorMessage_=(p=(m=b.imageUploadEndpoint_)==null?void 0:m.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?p:null,K.return();return K.return(b.submitForm_(void 0,void 0,void 0,void 0,c.images,b.taggedVideoId_));case 2:q=b.$$("ytd-backstage-image-poll-editor-renderer");if(!b.hasImagePoll_|| !q){K.jumpTo(4);break}return K.yield(TWb(q),5);case 5:t=K.yieldResult;if(!t)return K.return();u=l(t);for(v=u.next();!v.done;v=u.next())if(w=v.value,!w.encryptedBlobId)return b.isLoading=!1,y=void 0,b.errorMessage_=(y=b.data.errorMessage)!=null?y:null,K.return();case 4:C=(A=b.$$("ytd-backstage-image-select-renderer"))&&A.uploadPromise(),I=b.getSharedPostId_(),C?C.then(function(){b.submitForm_.apply(b,ia(sa.apply(0,arguments)))}).catch(function(N){b.isLoading=!1; b.errorMessage_=kz(N.message)}):b.selectedVideoId_?b.submitForm_(void 0,b.selectedVideoId_):b.prefilledAttachment_==="image"?b.submitForm_(b.prefilledImageData_.encryptedBlobId,void 0,void 0,b.prefilledImageData_.sourceExternalVideoId,void 0,b.taggedVideoId_):b.prefilledAttachment_==="video"?b.submitForm_(void 0,b.data.backstageAttachment.videoRenderer.videoId):I?b.submitForm_(void 0,void 0,I):b.taggedVideoId_!==void 0?b.submitForm_(void 0,void 0,void 0,void 0,void 0,b.taggedVideoId_):b.submitForm_(), K.jumpToEnd();}})}, openSchedulingPanel:function(a){a&&a.scheduleButton&&a.scheduleButton.buttonRenderer&&(this.scheduleButton_=a.scheduleButton.buttonRenderer);a&&a.dateTimePicker&&this.set("data.schedulingDateTimePicker",a.dateTimePicker)}, openImagePollComponent:function(){this.addedAttachment="image-poll";var a=this.$$("ytd-backstage-image-poll-editor-renderer");a&&a.resetPollOptions()}, openQuizComponent:function(){this.addedAttachment="quiz";this.hasLegacyQuiz_&&this.$["quiz-attachment"]?this.$["quiz-attachment"].resetQuizOptions():this.hasNewQuiz_&&(this.quizOptionsResetKey_=Date.now())}, onCancel_:function(a){a.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")}, onPrefilledContentDismissed_:function(a){a.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()}, onInsertMention_:function(){this.updateCharCount_()}, onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()}, onImageAlert_:function(a){a.stopPropagation();a.detail.alertMessage&&(this.alertMessage_=a.detail.alertMessage)}, onImageSelected_:function(a){a.stopPropagation();this.setSubmitButton_()}, onImagesSelected_:function(a){a.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()}, onImagePreviewCoordinatesUpdated_:function(a){a.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(a.detail);this.setSubmitButton_()}, onImagePreviewReposition_:function(a){a.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0}, onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()}, onAddVideoLink:function(a){var b=this.$$("#video-link-attachment");b&&b.onLaunchVideoPicker(a)}, onAttachmentDismiss_:function(a){a&&a.stopPropagation();this.addedAttachment==="quiz"&&this.hasNewQuiz_&&(this.quizOptionsResetKey_=Date.now());this.addedAttachment="none";this.alertMessage_=this.errorMessage_=null;this.imagePreviewCoordinates_=this.selectedVideoId_=void 0;this.setSubmitButton_();this.getEditableTextArea_().focus()}, isValidInput_:function(){if(this.prefilledAttachment_==="image"&&!this.prefilledImageData_||this.prefilledAttachment_==="video"&&!this.data.backstageAttachment.videoRenderer.videoId||this.addedAttachment==="image"&&x("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||x("enable_multi_image_post_creation")||this.$$("ytd-backstage-image-select-renderer")&&this.$$("ytd-backstage-image-select-renderer").hasPreview&& this.imagePreviewCoordinates_)||this.addedAttachment==="poll"&&this.$$("#poll-attachment")&&!this.$$("#poll-attachment").isValid())return!1;var a;if(this.addedAttachment==="image-poll"&&((a=this.$$("ytd-backstage-image-poll-editor-renderer"))==null||!a.isValid())||this.addedAttachment==="quiz"&&(this.hasLegacyQuiz_&&this.$["quiz-attachment"]&&!this.$["quiz-attachment"].isValid()||this.hasNewQuiz_&&!this.isQuizValid_)||this.addedAttachment==="video"&&this.$$("#video-link-attachment")&&!this.$$("#video-link-attachment").isValid()|| this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;a=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(a=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")a=!0;return a||!!this.getTextAreaValue().trim()}, submitForm_:function(a,b,c,d,e,f){var h=this.getTextAreaValue().trim(),m={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&h===this.previousText_&&(h=void 0);h!==void 0&&(m.comment_text=h);this.isLoading=!0;f!=void 0&&(m.tagged_video_id=f);a?(m.image_blob_id=a,this.imagePreviewCoordinates_&&(m.image_preview_coordinates=this.imagePreviewCoordinates_)):b?m.attached_video_id=b:c?m.shared_post_id=c:e&&e.length>0&&(m.images_data=e.map(function(q){return{encryptedBlobId:q.encryptedBlobId, previewCoordinates:q.previewCoordinates}})); d&&(m.source_video_id=d);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(m.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);if(this.addedAttachment==="poll"){var p;m.poll_options=(p=this.$$("#poll-attachment"))==null?void 0:p.getPollOptions()}this.addedAttachment==="image-poll"&&(a=this.$$("ytd-backstage-image-poll-editor-renderer"))&&(m.image_poll_options=a.getPostCreateOptions()); this.addedAttachment==="quiz"&&(m.quiz_options=this.hasNewQuiz_?this.quizOptions_:this.$["quiz-attachment"].getPostCreateOptions());this.scheduledPublishTimeSec_&&(m.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);$u(this,[this.serviceEndpoint,m])}, onIsInputFocusChanged_:function(a,b){a?this.fire("yt-autonav-pause-focus"):b!==void 0&&this.fire("yt-autonav-pause-blur")}, plaintextDrop_:function(a){var b=this.getEditableTextArea_();[].concat(ia(a.dataTransfer.items)).forEach(function(c){c.kind==="string"&&c.type.match("^text/plain")&&c.getAsString(function(d){b.appendChild(document.createTextNode(d))})}); a.preventDefault()}, preventDefault_:function(a){a.preventDefault()}, onSuggestionInsert_:function(a){this.insertTextWithEmojis_(a.detail.range,a.detail.text)}, onEmojiSuggestionClick_:function(a){this.emojiInput.insertSuggestion(a.detail)}, computeSubmitButtonClass_:function(a,b){return!b||a?"":"with-options"}, updateSuggestionOffset_:function(a){if(this.emojiInput&&wt(this.emojiInput).querySelector("#dropdown")){var b=this.getEditableTextArea_().getBoundingClientRect().bottom,c=a.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(b-c)+5;b=this.getEditableTextArea_().getBoundingClientRect().left;a=a.getBoundingClientRect().left-b;wt(this.emojiInput).querySelector("#dropdown").style.marginLeft=a+"px"}}, onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()}, onDateTimeSelectionUpdate_:function(a){if(this.data&&this.data.purpose){a=a.detail;if(Math.floor(Date.now()/1E3)>=a)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var b=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(b)||b!==a?this.scheduledPublishTimeSec_=a:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=a;this.setSubmitButton_()}}, computeAttachmentButtonIds_:function(){return["image-button","image-poll-button","poll-button","quiz-button","video-link-button"]}, getButtonRenderer:function(a,b){if(a)switch(b){case"video-link-button":var c;return((c=a.videoLinkButton)==null?void 0:c.buttonRenderer)||void 0;case"image-button":var d;return((d=a.imageButton)==null?void 0:d.buttonRenderer)||void 0;case"poll-button":var e;return((e=a.pollButton)==null?void 0:e.buttonRenderer)||void 0;case"image-poll-button":var f;return((f=a.imagePollButton)==null?void 0:f.buttonRenderer)||void 0;case"quiz-button":var h;return((h=a.quizButton)==null?void 0:h.buttonRenderer)|| void 0;}}, shouldShowPostAadcNotice_:function(){var a;return(a=this.data)==null||!a.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0}, shouldShowCommentAadcNotice_:function(){var a,b;return!((a=this.data)==null||!a.openAadcDialog)&&!((b=this.aadcGuidelinesState_)==null||!b.shouldRequireViewerAck)}, getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+Vk("DATASYNC_ID","unknown")}, showPostAadcNotice_:function(){var a;((a=this.data)==null?0:a.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)}, showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)}, getLocalStorage_:function(){this.localStorage||(this.localStorage=new Ql("yt-post"));return this.localStorage}, onAadcNoticeConfirm_:function(a){a.clickTrackingParams&&gz().clickCommand(a);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);Xu(this,"yt-close-popup-action")}, onHideIdentityChip:function(a){var b;this.set("data.placeholderText",(b=a.hideIdentityChipAction)==null?void 0:b.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}, onQuizOptionsChanged_:function(a,b){this.quizOptions_=a!=null?a:[];if(this.isQuizValid_=!!b)this.onSubmitButtonEnable_();else this.onSubmitButtonDisable_()}});var nU=function(){var a=E.apply(this,arguments)||this;a.isOpen=!1;a.modern=x("web_modern_buttons");a.roundedContainer=!0;a.dropdownButtonOverride=x("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;a.inPopupContainer=!1;a.isCommentboxLoading=!1;a.attachmentButtonIds=["image-button","image-poll-button","poll-button","video-link-button","quiz-button"];a.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-create-poll-action":"onCreatePollAction","yt-add-video-link-action":"onAddVideoLinkAction", "yt-show-scheduling-panel-command":"onShowSchedulingPanelCommand","yt-create-image-poll-command":"onCreateImagePollCommand","yt-create-quiz-command":"onCreateQuizCommand"};return a}; k(nU,E);g=nU.prototype;g.computeButtonOverride=function(){var a;return((a=this.data)==null?0:a.postOptionsMenu)&&x("web_modern_buttons")?{segmentedPosition:"start"}:void 0}; g.configureRendererStamper=function(){return{"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:{component:"ytd-flat-dropdown-renderer",classListBinding:"[[dropdownRendererClasses]]"}}},"data.pollButton":{id:"poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imagePollButton":{id:"image-poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.quizButton":{id:"quiz-button", mapping:{buttonRenderer:"ytd-button-renderer"}},"data.postOptionsMenu":{id:"option-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"EXPAND"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}},"data.videoLinkButton":{id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}}; g.ready=function(){var a=this,b=wt(this.hostElement).querySelector("#placeholder-area"),c=function(d){a.onOpen(d)}; b.addEventListener("tap",c);b.addEventListener("keypress",c)}; g.showButtonEduTooltip=function(){var a,b,c,d,e,f,h;if((a=this.data)==null?0:(b=a.quizButton)==null?0:(c=b.buttonRenderer)==null?0:(d=c.hint)==null?0:(e=d.hintRenderer)==null?0:(f=e.content)==null?0:(h=f.bubbleHintRenderer)==null?0:h.text)if(OK.getInstance(),a=PK(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(a==null?void 0:a.length)>0){this.ytComponentBehavior.resolveCommand(a[0], {form:{element:this.quizButton}});return}var m;if((m=this.data)==null?0:m.imagePollButtonTooltip)if(OK.getInstance(),m=PK(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(m==null?void 0:m.length)>0){this.ytComponentBehavior.resolveCommand(m[0],{form:{element:this.imagePollButton}});return}var p;x("enable_multi_image_post_creation")&&((p=this.data)==null?0:p.multiImageButtonTooltip)&&(OK.getInstance(), p=PK(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(p==null?void 0:p.length)>0&&this.ytComponentBehavior.resolveCommand(p[0],{form:{element:this.imageButton}}))}; g.onCreatePollAction=function(a){z(a,Slb)&&(this.commentbox.addedAttachment="poll",this.openDialog())}; g.onAddVideoLinkAction=function(a){if(z(a,Olb))this.commentbox.onAddVideoLink(a)}; g.onShowSchedulingPanelCommand=function(a){(a=z(a,slb))&&this.openSchedulingPanel(a)}; g.onCreateImagePollCommand=function(a){z(a,Sqb)&&(this.commentbox.openImagePollComponent(),this.openDialog())}; g.onCreateQuizCommand=function(a){z(a,Tqb)&&(this.commentbox.openQuizComponent(),this.openDialog())}; g.openSchedulingPanel=function(a){this.openDialog();this.commentbox.openSchedulingPanel(a)}; g.onCreateCommentAction=function(a){this.get("createCommentAction.contents",a)&&(this.commentbox.clear(),this.closeDialog())}; g.onOpen=function(a){a instanceof KeyboardEvent&&a.type==="keypress"&&a.keyCode!==13&&a.keyCode!==32||(this.data.prepareAccountEndpoint?Gt(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())}; g.onYtCommentboxDismiss=function(){this.closeDialog()}; g.onYtCommentboxLoadingStart=function(a){a.stopPropagation();this.isCommentboxLoading=!0}; g.onYtCommentboxLoadingEnd=function(a){a.stopPropagation();this.isCommentboxLoading=!1}; g.onYtVideoLinkButtonCancel=function(a){a.stopPropagation();this.onOpen(a)}; g.onYtVideoLinkSelected=function(a){a.stopPropagation();this.onOpen(a)}; g.onIronSelect=function(a){a.stopPropagation();a.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=a.detail.item.value&&(this.accessRestriction?(this.accessRestriction=a.detail.item.value,this.onOpen(a)):this.accessRestriction=a.detail.item.value)}; g.onYtNavigate=function(a){this.get("detail.endpoint.backstageImageUploadEndpoint",a)&&(this.commentbox.addedAttachment="image",this.commentbox.submitButtonDisabled=!0,this.onOpen(a))}; g.onRequestSent=function(a){for(var b=l(a.detail),c=b.next();!c.done;c=b.next())z(c.value,iqb)&&(this.commentbox.addedAttachment="image",this.commentbox.submitButtonDisabled=!0,this.onOpen(a))}; g.openDialog=function(){var a;(a=this.data)!=null&&a.isIneligibleForCommunityPagePostCreation||(this.commentbox.accessRestriction=this.accessRestriction,this.isOpen=!0,this.commentbox.focus())}; g.onPopupClosed=function(){OK.getInstance()}; g.computeCreationDisabled=function(a){return!!a}; g.computeIsCreationDialog=function(a){return!!a&&a==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"}; g.computeDisabledPostButton=function(a){if(!a)return null;a.isDisabled=!0;return a}; g.computeIsCreationDialogWithHeader=function(a){return!this.inPopupContainer&&!!a&&!!a.authorText&&a.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"}; g.computeIsHeaderHidden=function(a,b){return!a||b}; g.computeDropdownRendererClasses=function(a){return a?["text-secondary-style"]:[]}; g.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var a=wt(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;a&&a.reset()}; nU.prototype.onPopupClosed=nU.prototype.onPopupClosed;nU.prototype.onRequestSent=nU.prototype.onRequestSent;nU.prototype.onYtNavigate=nU.prototype.onYtNavigate;nU.prototype.onIronSelect=nU.prototype.onIronSelect;nU.prototype.onYtVideoLinkSelected=nU.prototype.onYtVideoLinkSelected;nU.prototype.onYtVideoLinkButtonCancel=nU.prototype.onYtVideoLinkButtonCancel;nU.prototype.onYtCommentboxLoadingEnd=nU.prototype.onYtCommentboxLoadingEnd;nU.prototype.onYtCommentboxLoadingStart=nU.prototype.onYtCommentboxLoadingStart; nU.prototype.onYtCommentboxDismiss=nU.prototype.onYtCommentboxDismiss;nU.prototype.showButtonEduTooltip=nU.prototype.showButtonEduTooltip;n([F(mz.YtComponentBehavior),r("design:type",Object)],nU.prototype,"ytComponentBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],nU.prototype,"ytRendererstamperBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],nU.prototype,"ytRendererBehavior",void 0); n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],nU.prototype,"ytActionHandlerBehavior",void 0);n([M(),r("design:type",Object)],nU.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],nU.prototype,"isOpen",void 0);n([M({computed:"computeButtonOverride(data)"}),r("design:type",Object)],nU.prototype,"buttonOverride",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],nU.prototype,"modern",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],nU.prototype,"roundedContainer",void 0);n([M(),r("design:type",Object)],nU.prototype,"dropdownButtonOverride",void 0);n([M({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),r("design:type",Boolean)],nU.prototype,"creationDisabled",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],nU.prototype,"enableCreationBox",void 0); n([M({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),r("design:type",Boolean)],nU.prototype,"isCreationDialog",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],nU.prototype,"inPopupContainer",void 0);n([M({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),r("design:type",Boolean)],nU.prototype,"isCreationDialogWithHeader",void 0);n([M(),r("design:type",Object)],nU.prototype,"accessRestriction",void 0); n([M({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),r("design:type",Array)],nU.prototype,"dropdownRendererClasses",void 0);n([M(),r("design:type",Object)],nU.prototype,"isCommentboxLoading",void 0);n([M(),r("design:type",Array)],nU.prototype,"attachmentButtonIds",void 0);n([Tt("#image-button"),r("design:type",HTMLElement)],nU.prototype,"imageButton",void 0);n([Tt("#image-poll-button"),r("design:type",HTMLElement)],nU.prototype,"imagePollButton",void 0); n([Tt("#quiz-button"),r("design:type",HTMLElement)],nU.prototype,"quizButton",void 0);n([Tt("#commentbox"),r("design:type",Object)],nU.prototype,"commentbox",void 0);n([Lt("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],nU.prototype,"showButtonEduTooltip",null); n([Kt("yt-commentbox-dismiss"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],nU.prototype,"onYtCommentboxDismiss",null);n([Kt("yt-commentbox-loading-start"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],nU.prototype,"onYtCommentboxLoadingStart",null);n([Kt("yt-commentbox-loading-end"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],nU.prototype,"onYtCommentboxLoadingEnd",null); n([Kt("yt-video-link-button-cancel"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],nU.prototype,"onYtVideoLinkButtonCancel",null);n([Kt("yt-video-link-selected"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],nU.prototype,"onYtVideoLinkSelected",null);n([Kt("iron-select"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],nU.prototype,"onIronSelect",null); n([Kt("yt-navigate"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],nU.prototype,"onYtNavigate",null);n([Kt("yt-service-request-sent-button-renderer"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],nU.prototype,"onRequestSent",null);n([Kt("yt-popup-closed"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],nU.prototype,"onPopupClosed",null); n([gu({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],nU); Tu(nU,"ytd-backstage-post-dialog-renderer",function(){if(fWb!==void 0)return fWb;var a=document.createElement("template");Q(a,"\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return fWb=a},{mode:1});var eXb;var oU=function(){return E.apply(this,arguments)||this}; k(oU,E);oU.prototype.onMessageTap=function(){if(this.onTapCommand){var a=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);a&&this.ytdOpenPopupBehavior.openPopup(a)}}; ba.Object.defineProperties(oU.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return(a=this.data)==null?void 0:(b=a.button)==null?void 0:(c=b.buttonRenderer)==null?void 0:c.command}}}); n([F(pB),r("design:type",Object)],oU.prototype,"ytdOpenPopupBehavior",void 0);n([M(),r("design:type",Object)],oU.prototype,"data",void 0);n([H("data.button.buttonRenderer.command"),r("design:type",Object),r("design:paramtypes",[])],oU.prototype,"onTapCommand",null);n([gu({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],oU); Tu(oU,"ytd-comment-pause-composer-renderer",function(){if(eXb!==void 0)return eXb;var a=document.createElement("template");Q(a,"
\n \n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return eXb=a},{mode:1});var fXb;var pU=function(){return E.apply(this,arguments)||this}; k(pU,E);pU.prototype.focus=function(){wt(this.hostElement).querySelector("#commentbox").focus()}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],pU.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],pU.prototype,"data",void 0);n([M(),r("design:type",Object)],pU.prototype,"zeroStepChannelCreationRenderer",void 0);n([gu({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],pU); Tu(pU,"ytd-comment-dialog-renderer",function(){if(fXb!==void 0)return fXb;var a=document.createElement("template");Q(a,"\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return fXb=a},{mode:1});var gXb;var qU=function(){var a=E.apply(this,arguments)||this;a.isOpen=!1;a.commentDialog=null;a.useSmallAvatars=x("small_avatars_for_comments");a.useSmallAvatarsEngagementPanelOnly=x("small_avatars_for_comments_ep");a.placeholderFocusListener=null;a.hasOpenedDialog=!1;a.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return a}; k(qU,E);g=qU.prototype;g.configureRendererStamper=function(){return{"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},commentDialog:{id:"comment-dialog",mapping:{commentDialogRenderer:{component:"ytd-comment-dialog-renderer",properties:{zeroStepChannelCreationRenderer:"[[data.zeroStep.zeroStepChannelCreationRenderer]]"}}}}}}; g.ready=function(){var a=this,b=wt(this.hostElement).querySelector("#placeholder-area"),c=wt(this.hostElement).querySelector("#simplebox-placeholder"),d=function(e){e.stopPropagation();e instanceof KeyboardEvent&&e.type==="keypress"&&e.keyCode!==13&&e.keyCode!==32||a.openDialog()}; this.placeholderFocusListener=d;c.addEventListener("focus",this.placeholderFocusListener);b.addEventListener("tap",d);b.addEventListener("keypress",d)}; g.maybeRemoveFocusEventListener=function(){var a;(a=this.data)!=null&&a.prepareAccountEndpoint&&!x("web_comments_simplebox_modal_focus_on_tap_ks")&&(a=wt(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(a.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))}; g.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()}; g.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)jz(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.superfanOnlySnackbarCommand&&!this.hasOpenedDialog){var a=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.superfanOnlySnackbarCommand);a&&this.ytdOpenPopupBehavior.openPopup(a);this.hasOpenedDialog=!0}this.data.subscribersOnlySnackbarCommand&&!this.hasOpenedDialog&&((a=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand))&& this.ytdOpenPopupBehavior.openPopup(a),this.hasOpenedDialog=!0);this.commentDialog||(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;wt(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}}; g.onYtCommentboxDismiss=function(a){a.stopPropagation();this.isOpen=!1}; g.onCreateCommentAction=function(a){this.get("createCommentAction.contents",a)&&(this.isOpen=!1)}; g.computeCommentDialog=function(a){return{placeholderText:a.placeholderText,authorThumbnail:a.authorThumbnail,submitButton:a.submitButton,imageButton:a.imageButton,cancelButton:a.cancelButton,emojiButton:a.emojiButton,emojis:a.emojis,emojiPicker:a.emojiPicker,aadcGuidelinesStateEntityKey:a.aadcGuidelinesStateEntityKey,openAadcDialog:a.openAadcDialog,unicodeEmojisUrl:a.unicodeEmojisUrl}}; g.onHideIdentityChip=function(a){z(a,Tlb)&&this.set("data.placeholderText",z(a,Tlb).placeholderText)}; qU.prototype.onYtCommentboxDismiss=qU.prototype.onYtCommentboxDismiss;qU.prototype.dataChanged=qU.prototype.dataChanged;n([F($C.YtRendererstamperBehavior),r("design:type",Object)],qU.prototype,"ytRendererstamperBehavior",void 0);n([F(pB),r("design:type",Object)],qU.prototype,"ytdOpenPopupBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],qU.prototype,"ytRendererBehavior",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],qU.prototype,"ytActionHandlerBehavior",void 0); n([M(),r("design:type",Object)],qU.prototype,"data",void 0);n([M(),r("design:type",Object)],qU.prototype,"isOpen",void 0);n([M(),r("design:type",Object)],qU.prototype,"commentDialog",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],qU.prototype,"engagementPanel",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],qU.prototype,"useSmallAvatars",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],qU.prototype,"useSmallAvatarsEngagementPanelOnly",void 0); n([M({reflectToAttribute:!0}),r("design:type",Boolean)],qU.prototype,"enableCreationBox",void 0);n([M(),r("design:type",Boolean)],qU.prototype,"showCreateDialog",void 0);n([cu("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],qU.prototype,"dataChanged",null);n([Kt("yt-commentbox-dismiss"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],qU.prototype,"onYtCommentboxDismiss",null); n([gu({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],qU); Uu()(qU,"ytd-comment-simplebox-renderer",function(){if(gXb===void 0){var a=document.createElement("template");Q(a,"\n\n\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);gXb=a}a=gXb;return a},{allowedProps:["data", "engagementPanel","showCreateDialog"],mode:1});var hXb;var rU=function(){var a=E.apply(this,arguments)||this;a.compactHeader=x("web_watch_compact_comments_header");a.hidePanelButton=!1;a.hasFinishedStamping=!1;a.handleOpenPostCommentDialogActionAfterStamp=!1;a.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return a}; k(rU,E);g=rU.prototype; g.configureRendererStamper=function(){return{"data.createRenderer":{id:"simple-box",mapping:{commentSimpleboxRenderer:{component:"ytd-comment-simplebox-renderer",properties:{engagementPanel:"[[engagementPanel]]",showCreateDialog:"[[data.showCreateDialog]]"}}}},"data.pausedCommentsMessage":{id:"paused-comments-message",mapping:{messageRenderer:"ytd-comment-pause-composer-renderer"}},backstagePostDialog:{id:"backstage-post-dialog",mapping:{backstagePostDialogRenderer:{component:"ytd-backstage-post-dialog-renderer"}},events:!0}, "data.sortMenu":{id:"sort-menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},"data.alerts":{id:"alert",mapping:{alertWithButtonRenderer:"ytd-alert-with-button-renderer"},renderPriority:0,waitForSignal:"eocs"},"data.zeroStateMessage":{id:"zero-state-message",mapping:{backstageZeroStateRenderer:"ytd-backstage-zero-state-renderer",postFilterZeroStateRenderer:"ytd-post-filter-zero-state-renderer"}},"data.prefilledCreateDialogHeaderMessage":{id:"prefilled-dialog-header",mapping:{backstagePrefilledPostDialogHeaderRenderer:"ytd-backstage-prefilled-post-dialog-header-renderer"}}, "data.postStreamFilter":{id:"post-stream-filter",mapping:{postStreamFilterRenderer:"ytd-post-stream-filter-renderer"}},"data.schedulingZeroStateMessage":{id:"scheduling-zero-state-message",mapping:{postSchedulingZeroStateRenderer:"ytd-post-scheduling-zero-state-renderer"}}}}; g.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()}; g.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()}; g.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var a;if(this.getPrefilledBackstagePostDialog((a=this.data)==null?void 0:a.actions)){wt(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var b=wt(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;b&&ms(this,function(){b.focus();b.openDialog&&b.openDialog()})}}else this.hasActionsChange=!0}; g.computeIsBackstage=function(a){return a}; g.onYtCommentboxDismiss=function(){wt(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)}; g.removePrefilledDialog=function(a){if(a==null?0:a.actions){for(var b=a.actions.length-1;b>=0;b--){var c=void 0;((c=z(a.actions[b],jqb))==null?0:c.dialog)&&delete a.actions[b]}this.set("data",void 0);this.set("data",a)}}; g.getPrefilledBackstagePostDialog=function(a){if(a)for(var b=0;b\n\n
\n
\n
\n
\n
\n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);hXb=a}a=hXb;return a},{allowedProps:["data", "engagementPanel","hidePanelButton"],mode:1});var iXb;var sU=function(){return E.apply(this,arguments)||this}; k(sU,E);n([M(),r("design:type",Object)],sU.prototype,"data",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],sU.prototype,"ytRendererBehavior",void 0);n([gu({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],sU); Tu(sU,"ytd-destination-button-renderer",function(){if(iXb!==void 0)return iXb;var a=document.createElement("template");Q(a,"\n \n
\n \n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return iXb=a},{mode:1});var jXb;var tU=function(){var a=E.apply(this,arguments)||this;a.isRichGrid=!1;a.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};return a}; k(tU,E);g=tU.prototype;g.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}}; g.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)}; g.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()}; g.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var a;if((a=this.data)==null||!a.isExpanded){a=this.hostElement.clientWidth;var b;if(a&&(b=this.data)!=null&&b.destinationButtons){b=Math.floor((a+4)/214);a=this.data.destinationButtons.length;var c=Math.ceil(a/b);this.fullyVisibleRows=a%b===1&&c===2?1:Math.min(c,2);this.isShowMoreVisible=this.fullyVisibleRows
\n \n \n
\n
\n\n \n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return jXb=a},{mode:1});var kXb;var uU=function(){var a=E.apply(this,arguments)||this;a.answerExpanded=!1;return a}; k(uU,E);uU.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],uU.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],uU.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],uU.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],uU.prototype,"answerExpanded",void 0);n([gu({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],uU); Tu(uU,"ytd-handles-claiming-faq-renderer",function(){if(kXb!==void 0)return kXb;var a=document.createElement("template");Q(a,"
\n [[getSimpleString(data.question)]]\n \n \n
\n\n \n\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return kXb=a},{mode:1});var lXb;var mXb=function(){return E.apply(this,arguments)||this}; k(mXb,E);n([M(),r("design:type",Object)],mXb.prototype,"data",void 0);n([gu({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],mXb); Tu(mXb,"ytd-handles-claiming-faq-section-renderer",function(){if(lXb!==void 0)return lXb;var a=document.createElement("template");Q(a,"
\n \n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return lXb=a},{mode:1});var nXb;var vU=function(){var a=E.apply(this,arguments)||this;a.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";a.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";a.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";a.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";a.leftSquiggly=a.leftSquigglyLight;a.rightSquiggly=a.rightSquigglyLight; a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};a.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return a}; k(vU,E);g=vU.prototype;g.updateLeftSquigglyStyle=function(){Ft(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})}; g.updateRightSquigglyStyle=function(){Ft(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})}; g.ready=function(){var a=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(a)}; g.onDarkModeToggledAction=function(a){a!==this.isDarkTheme&&(this.set("isDarkTheme",a),a?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))}; g.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}}; vU.prototype.updateRightSquigglyStyle=vU.prototype.updateRightSquigglyStyle;vU.prototype.updateLeftSquigglyStyle=vU.prototype.updateLeftSquigglyStyle;n([M(),r("design:type",Object)],vU.prototype,"data",void 0);n([M({value:!1}),r("design:type",Boolean)],vU.prototype,"isDarkTheme",void 0);n([M(),r("design:type",String)],vU.prototype,"leftSquiggly",void 0);n([M(),r("design:type",String)],vU.prototype,"rightSquiggly",void 0); n([Lt("leftSquiggly"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],vU.prototype,"updateLeftSquigglyStyle",null);n([Lt("rightSquiggly"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],vU.prototype,"updateRightSquigglyStyle",null);n([F(Yz.YtRendererBehavior),r("design:type",Object)],vU.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],vU.prototype,"ytRendererstamperBehavior",void 0); n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],vU.prototype,"ytActionHandlerBehavior",void 0);n([M(),r("design:type",Object)],vU.prototype,"actionButtonOverride",void 0);n([gu({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],vU); Tu(vU,"ytd-handles-claiming-header-renderer",function(){if(nXb!==void 0)return nXb;var a=document.createElement("template");Q(a,"
\n
\n
\n
\n \n \n \n \n \n
\n
\n
\n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return nXb=a},{mode:1});var oXb;var wU=function(){var a=E.apply(this,arguments)||this;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};a.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";a.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";a.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";a.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg"; a.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";a.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";a.image0SquigglyBackground=a.image0LightSquigglyBackground;a.image1SquigglyBackground=a.image1LightSquigglyBackground;a.image3SquigglyBackground=a.image3LightSquigglyBackground;return a}; k(wU,E);g=wU.prototype;g.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()}; g.onDataChanged=function(){this.updateTitleAndImages()}; g.onThemeChanged=function(){this.updateTitleAndImages()}; g.onDarkModeToggledAction=function(a){a!==this.isDarkTheme&&(this.isDarkTheme=a)}; g.updateImage0SquigglyBackground=function(){Ft(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})}; g.updateImage1SquigglyBackground=function(){Ft(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})}; g.updateImage3SquigglyBackground=function(){Ft(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})}; g.updateTitleAndImages=function(){var a,b;((a=this.data)==null?void 0:(b=a.titleImages)==null?void 0:b.length)===5&&(this.title0=this.data.titleImages[0].title,this.title1=this.data.titleImages[1].title,this.title2=this.data.titleImages[2].title,this.title3=this.data.titleImages[3].title,this.title4=this.data.titleImages[4].title,this.isDarkTheme?(this.image0=this.data.titleImages[0].darkImage,this.image1=this.data.titleImages[1].darkImage,this.image2=this.data.titleImages[2].darkImage,this.image3= this.data.titleImages[3].darkImage,this.image4=this.data.titleImages[4].darkImage,this.image0SquigglyBackground=this.image0DarkSquigglyBackground,this.image1SquigglyBackground=this.image1DarkSquigglyBackground,this.image3SquigglyBackground=this.image3DarkSquigglyBackground):(this.image0=this.data.titleImages[0].lightImage,this.image1=this.data.titleImages[1].lightImage,this.image2=this.data.titleImages[2].lightImage,this.image3=this.data.titleImages[3].lightImage,this.image4=this.data.titleImages[4].lightImage, this.image0SquigglyBackground=this.image0LightSquigglyBackground,this.image1SquigglyBackground=this.image1LightSquigglyBackground,this.image3SquigglyBackground=this.image3LightSquigglyBackground))}; wU.prototype.updateImage3SquigglyBackground=wU.prototype.updateImage3SquigglyBackground;wU.prototype.updateImage1SquigglyBackground=wU.prototype.updateImage1SquigglyBackground;wU.prototype.updateImage0SquigglyBackground=wU.prototype.updateImage0SquigglyBackground;wU.prototype.onThemeChanged=wU.prototype.onThemeChanged;wU.prototype.onDataChanged=wU.prototype.onDataChanged;n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],wU.prototype,"ytActionHandlerBehavior",void 0); n([M({reflectToAttribute:!0,value:!1}),r("design:type",Boolean)],wU.prototype,"isDarkTheme",void 0);n([M(),r("design:type",Object)],wU.prototype,"data",void 0);n([M(),r("design:type",Object)],wU.prototype,"title0",void 0);n([M(),r("design:type",Object)],wU.prototype,"title1",void 0);n([M(),r("design:type",Object)],wU.prototype,"title2",void 0);n([M(),r("design:type",Object)],wU.prototype,"title3",void 0);n([M(),r("design:type",Object)],wU.prototype,"title4",void 0); n([M(),r("design:type",Object)],wU.prototype,"image0",void 0);n([M(),r("design:type",Object)],wU.prototype,"image1",void 0);n([M(),r("design:type",Object)],wU.prototype,"image2",void 0);n([M(),r("design:type",Object)],wU.prototype,"image3",void 0);n([M(),r("design:type",Object)],wU.prototype,"image4",void 0);n([M(),r("design:type",String)],wU.prototype,"image0SquigglyBackground",void 0);n([M(),r("design:type",String)],wU.prototype,"image1SquigglyBackground",void 0); n([M(),r("design:type",String)],wU.prototype,"image3SquigglyBackground",void 0);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],wU.prototype,"onDataChanged",null);n([Lt("isDarkTheme"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],wU.prototype,"onThemeChanged",null);n([Lt("image0SquigglyBackground"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],wU.prototype,"updateImage0SquigglyBackground",null); n([Lt("image1SquigglyBackground"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],wU.prototype,"updateImage1SquigglyBackground",null);n([Lt("image3SquigglyBackground"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],wU.prototype,"updateImage3SquigglyBackground",null);n([gu({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],wU); Tu(wU,"ytd-handles-claiming-title-images-section-renderer",function(){if(oXb!==void 0)return oXb;var a=document.createElement("template");Q(a,"\n
\n
\n
\n
\n \n \n \n \n \n \n
\n
\n
\n \n \n \n \n \n \n \n \n \n
\n
\n\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return oXb=a},{mode:1});var pXb;var xU=function(){var a=E.apply(this,arguments)||this;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a}; k(xU,E);xU.prototype.ready=function(){var a=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(a)}; xU.prototype.onDarkModeToggledAction=function(a){a!==this.isDarkTheme&&this.set("isDarkTheme",a)}; xU.prototype.onCopyButtonClick=function(){var a=this,b,c,d;return ra(function(e){return(b=a.data)!=null&&b.primaryChannelUrl?e.yield(navigator.clipboard.writeText(((c=a.data)==null?0:c.encodedChannelUrl)?a.data.encodedChannelUrl:"https://"+lz((d=a.data)==null?void 0:d.primaryChannelUrl)),0):e.jumpTo(0)})}; n([M(),r("design:type",Object)],xU.prototype,"data",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],xU.prototype,"ytComponentBehavior",void 0);n([M({reflectToAttribute:!0,value:!1}),r("design:type",Boolean)],xU.prototype,"isDarkTheme",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],xU.prototype,"ytActionHandlerBehavior",void 0);n([gu({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],xU); Tu(xU,"ytd-handles-claiming-update-social-renderer",function(){if(pXb!==void 0)return pXb;var a=document.createElement("template");Q(a,"
\n \n \n
\n \n \n \n \n
\n \n
\n \n
\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return pXb=a},{mode:1});var qXb;var yU=function(){var a=E.apply(this,arguments)||this;a.JSC$13627_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";a.JSC$13627_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};a.squigglyBackground=a.JSC$13627_squigglyBackgroundLight;return a}; k(yU,E);yU.prototype.updateSquigglyBackgroundStyle=function(){Ft(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})}; yU.prototype.ready=function(){var a=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",a);this.squigglyBackground=a?this.JSC$13627_squigglyBackgroundDark:this.JSC$13627_squigglyBackgroundLight}; yU.prototype.onDarkModeToggledAction=function(a){a!==this.isDarkTheme&&(this.set("isDarkTheme",a),this.squigglyBackground=a?this.JSC$13627_squigglyBackgroundDark:this.JSC$13627_squigglyBackgroundLight)}; yU.prototype.updateSquigglyBackgroundStyle=yU.prototype.updateSquigglyBackgroundStyle;n([F(Yz.YtRendererBehavior),r("design:type",Object)],yU.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],yU.prototype,"ytRendererstamperBehavior",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],yU.prototype,"ytActionHandlerBehavior",void 0);n([M(),r("design:type",Object)],yU.prototype,"data",void 0); n([M({reflectToAttribute:!0,value:!1}),r("design:type",Boolean)],yU.prototype,"isDarkTheme",void 0);n([M(),r("design:type",String)],yU.prototype,"squigglyBackground",void 0);n([Lt("squigglyBackground"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],yU.prototype,"updateSquigglyBackgroundStyle",null);n([gu({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],yU); Tu(yU,"ytd-handles-claiming-vanity-info-renderer",function(){if(qXb!==void 0)return qXb;var a=document.createElement("template");Q(a,"
\n
\n
\n
\n \n \n
\n
\n \n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return qXb=a},{mode:1});var rXb;var zU=function(){var a=E.apply(this,arguments)||this;a.JSC$13630_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";a.JSC$13630_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";a.squigglyBackground=a.JSC$13630_squigglyBackgroundLight;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a}; k(zU,E);g=zU.prototype;g.ready=function(){var a=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(a)}; g.onDarkModeToggledAction=function(a){a!==this.isDarkTheme&&(this.set("isDarkTheme",a),this.squigglyBackground=a?this.JSC$13630_squigglyBackgroundDark:this.JSC$13630_squigglyBackgroundLight)}; g.updateSquigglyBackgroundStyle=function(){Ft(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})}; g.onDataChanged=function(){this.data&&this.setupVideoPlayer()}; g.detached=function(){this.stop()}; g.stop=function(){this.playerElement.stop()}; g.setupVideoPlayer=function(){var a=this,b,c;return ra(function(d){b=a.data.videoId;c="http://i1.ytimg.com/vi/"+b+"/maxresdefault.jpg";a.playerElement.loadVideoWithPlayerVars({video_id:b,iurlhq:c});d.jumpToEnd()})}; zU.prototype.onDataChanged=zU.prototype.onDataChanged;zU.prototype.updateSquigglyBackgroundStyle=zU.prototype.updateSquigglyBackgroundStyle;n([M({value:!1}),r("design:type",Boolean)],zU.prototype,"isDarkTheme",void 0);n([M(),r("design:type",String)],zU.prototype,"squigglyBackground",void 0);n([Tt("#player"),r("design:type",Object)],zU.prototype,"playerElement",void 0);n([M(),r("design:type",Object)],zU.prototype,"data",void 0); n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],zU.prototype,"ytActionHandlerBehavior",void 0);n([Lt("squigglyBackground"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],zU.prototype,"updateSquigglyBackgroundStyle",null);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],zU.prototype,"onDataChanged",null);n([gu({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],zU); Tu(zU,"ytd-handles-claiming-video-item-renderer",function(){if(rXb!==void 0)return rXb;var a=document.createElement("template");Q(a,"
\n
\n \n \n
\n
\n
\n \n \n
\n
\n
\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return rXb=a},{mode:1});var sXb;var uXb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("Vzo0Sd"),2);a=tXb;return b.return(a)})},vXb=yD(function(){return uXb()},{debugName:"toggleableImageButtonViewModel"}); Gn(xD,function(a){a.registerLoadFn("toggleableImageButtonViewModel","Vzo0Sd",uXb)});var xXb=O(function(a){var b=a.data;a=l(ip({index:-1,command:{}},void 0,"EH24Vb"));var c=a.next().value,d=a.next().value;return D("yt-nudge-form-view-model",{class:"nudgeFormViewModelHost"},D("div",{class:"nudgeFormViewModelFormOptions"},D(OC,{data:function(){return b().inputFields}, allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(e,f){return D(vXb,{data:e.data,buttonIndex:f,selectedIndex:function(){return c().index}, onSelect:function(h){d({index:f(),command:h})}})}})),D(gC,{text:function(){return b().subtitle}, className:"nudgeFormViewModelSubtitle"}),D("div",{class:"nudgeFormViewModelSubmit"},D(OC,{data:function(){return b().submitButton}},{buttonViewModel:function(e){return D(wXb,{data:e.data, isDisabled:function(){return c().index===-1}, onClick:function(){QB(c().command)}})}})))},"Ac"); xXb.idomCompat=!0;var wXb=O(function(a){var b=Vo(function(){return Object.assign({},a.data(),{state:a.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"ldvHp"); return D(BD,{data:b,onClick:a.onClick})},"Bc");bB(xXb,"yt-nudge-form-view-model",{props:{data:$A}});var AU=function(){var a=E.apply(this,arguments)||this;a.roundedContainer=!0;a.buttonUpdate=x("web_modern_buttons");a.isDarkMode=!1;a.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return a}; k(AU,E);g=AU.prototype;g.computeNudgeStyle=function(a){return a?"modernized-nudge":""}; g.handleDarkModeToggledAction=function(a){this.isDarkMode=a}; g.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))}; g.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{chipCloudChipRenderer:"yt-chip-cloud-chip-renderer",nudgeFormViewModel:"yt-nudge-form-view-model"}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed-content", mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}}; g.computeIsHorizontalButtons=function(a){return a?!!a.applyModernizedStyle&&!!a.enableHorizontalButtons&&!!a.secondaryButton:!1}; ba.Object.defineProperties(AU.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}}, trimStyle:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}}, backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var a,b;return(b=(a=this.data)==null?void 0:a.backgroundStyle)!=null?b:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}}, contentsLocation:{configurable:!0,enumerable:!0,get:function(){var a,b;return(b=(a=this.data)==null?void 0:a.contentsLocation)!=null?b:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}}, noShadow:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.disableDropShadow)}}, noIcon:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null?0:a.lightIconImage)}}, titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?0:a.title)?this.ytRendererBehavior.getSimpleString(this.data.title):""}}}); n([F(Yz.YtRendererBehavior),r("design:type",Object)],AU.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],AU.prototype,"ytRendererstamperBehavior",void 0);n([F(NQ),r("design:type",Object)],AU.prototype,"ytdDismissibleItemBehavior",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],AU.prototype,"actionHandlerBehavior",void 0); n([M({reflectToAttribute:!0}),H("isHideEnclosingAction"),r("design:type",Boolean),r("design:paramtypes",[])],AU.prototype,"isHidden",null);n([M(),r("design:type",Object)],AU.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],AU.prototype,"roundedContainer",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],AU.prototype,"buttonUpdate",void 0); n([M({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),r("design:type",String)],AU.prototype,"nudgeStyle",void 0);n([M({reflectToAttribute:!0}),H("data.trimStyle"),r("design:type",String),r("design:paramtypes",[])],AU.prototype,"trimStyle",null);n([M({reflectToAttribute:!0}),H("data.backgroundStyle"),r("design:type",String),r("design:paramtypes",[])],AU.prototype,"backgroundStyle",null); n([M({reflectToAttribute:!0}),H("data.contentsLocation"),r("design:type",String),r("design:paramtypes",[])],AU.prototype,"contentsLocation",null);n([M({reflectToAttribute:!0}),H("data.disableDropShadow"),r("design:type",Boolean),r("design:paramtypes",[])],AU.prototype,"noShadow",null);n([M({reflectToAttribute:!0}),H("data.lightIconImage"),r("design:type",Boolean),r("design:paramtypes",[])],AU.prototype,"noIcon",null); n([M({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),r("design:type",Boolean)],AU.prototype,"isHorizontalButtons",void 0);n([M({reflectToAttribute:!0,value:!1}),r("design:type",Object)],AU.prototype,"isDarkMode",void 0);n([M(),H("data.title"),r("design:type",String),r("design:paramtypes",[])],AU.prototype,"titleAriaLabel",null);n([gu({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],AU); Tu(AU,"ytd-feed-nudge-renderer",function(){if(sXb!==void 0)return sXb;var a=document.createElement("template");Q(a,"
\n
\n
\n
\n \n
\n
\n

\n \n

\n
\n \n
\n
\n \n \n
\n
\n
\n
\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return sXb=a},{mode:2});var yXb;var zXb;var BU=function(){var a=E.apply(this,arguments)||this;a.disableAnimation=!1;a.isSlimlineSurvey=!1;a.isSlimlineSurveyFollowUp=!1;a.isShortsStyle=!1;return a}; k(BU,E);BU.prototype.onTap=function(a){a.preventDefault();this.data&&Gt(this.hostElement,"ytd-rating-survey-option-changed",this.data)}; ba.Object.defineProperties(BU.prototype,{isAnimatedIcon:{configurable:!0,enumerable:!0,get:function(){return!this.disableAnimation&&(this.isSlimlineSurveyFollowUp||this.isShortsStyle)}}, iconSize:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle?36:24}}, isDarkTheme:{configurable:!0,enumerable:!0,get:function(){return this.isShortsStyle||document.documentElement.hasAttribute("dark")}}, icon:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d,e;return((a=this.data)==null?0:a.checked)?(b=this.data)==null?void 0:(c=b.onStateIcon)==null?void 0:c.iconType:(d=this.data)==null?void 0:(e=d.defaultStateIcon)==null?void 0:e.iconType}}}); n([F(Yz.YtRendererBehavior),r("design:type",Object)],BU.prototype,"ytRendererBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],BU.prototype,"ytComponentBehavior",void 0);n([M(),r("design:type",Object)],BU.prototype,"data",void 0);n([M(),r("design:type",Object)],BU.prototype,"disableAnimation",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],BU.prototype,"isSlimlineSurvey",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],BU.prototype,"isSlimlineSurveyFollowUp",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],BU.prototype,"isShortsStyle",void 0);n([H("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),r("design:type",Boolean),r("design:paramtypes",[])],BU.prototype,"isAnimatedIcon",null);n([H("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),r("design:type",Number),r("design:paramtypes",[])],BU.prototype,"iconSize",null); n([H("isShortsStyle"),r("design:type",Boolean),r("design:paramtypes",[])],BU.prototype,"isDarkTheme",null);n([H("data.checked"),r("design:type",Object),r("design:paramtypes",[])],BU.prototype,"icon",null);n([gu({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],BU); Tu(BU,"ytd-rating-survey-option-renderer",function(){if(zXb!==void 0)return zXb;var a=document.createElement("template");Q(a,"\n \n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return zXb=a},{mode:2});var AXb;var CU=function(){var a=E.apply(this,arguments)||this;a.firstResponseText=null;a.lastResponseText=null;a.selectedNonStarOption=null;a.hideOptions=!1;a.hideUndoButton=!0;a.disableAnimation=!1;a.showResponseRangeText=!1;a.selectedRatingIndex=-1;a.isSlimlineSurvey=!1;a.isSlimlineSurveyFollowUp=!1;a.isShortsStyle=!1;a.slimlineSurveyRatingSelectedIndex=-1;return a}; k(CU,E);g=CU.prototype;g.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}}; g.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()}; g.onOptionChange=function(a,b){var c=this;a=b.onStateIcon&&b.defaultStateIcon&&b.onStateIcon.iconType===b.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(h,m){h.responseText===b.responseText?c.isSlimlineSurvey?(c.selectedRatingIndex=m,c.ytdReduxBehavior.dispatch(IVa(m))):(c.setSurveyOptionValue(m,!0,"checked"),c.setSurveyOptionValue(m,!0,"selected")):(c.setSurveyOptionValue(m,!1,"checked"),c.setSurveyOptionValue(m, !1,"selected"))});else if(a)this.selectedNonStarOption=b,this.hideOptions=!0;else{var d=this.ytRendererBehavior.getSimpleString(b.responseText),e=!0;this.getOptionRenderers().forEach(function(h,m){c.setSurveyOptionValue(m,e,"checked");c.setSurveyOptionValue(m,!1,"selected");c.ytRendererBehavior.getSimpleString(h.responseText)===d&&(e=!1,c.setSurveyOptionValue(m,!0,"selected"))})}a=b.responseEndpoint; var f;b.followUpCommand&&(f=z(b.followUpCommand,anb));this.isSlimlineSurvey?(this.resetComponent(),Xu(this.hostElement,"ytd-slimline-survey-rating-select-action")):Xu(this.hostElement,"ytd-inline-survey-rating-select-action",[a,f])}; g.showSelectedOption=function(){var a=this;Hl(0,function(){var b=a.getOptionRenderers()[a.slimlineSurveyRatingSelectedIndex];a.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),b)},8,100)}; g.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(a){var b;return(b=z(a,cnb))!=null?b:{}}):[]}; g.onUndoClick=function(){this.resetComponent();Xu(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])}; g.setSurveyOptionValue=function(a,b,c){this.notifyPath("data.ratings."+a+".ratingSurveyOptionRenderer."+c);this.set("data.ratings."+a+".ratingSurveyOptionRenderer."+c,b)}; g.resetComponent=function(){var a=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var b=this.getOptionRenderers(),c,d;this.firstResponseText=(d=(c=b[0])==null?void 0:c.responseText)!=null?d:null;var e,f;this.lastResponseText=(f=(e=b[b.length-1])==null?void 0:e.responseText)!=null?f:null;b.forEach(function(h,m){a.setSurveyOptionValue(m,!1,"checked");a.setSurveyOptionValue(m,!1,"selected")})}; ba.Object.defineProperties(CU.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}}); CU.prototype.onOptionChange=CU.prototype.onOptionChange;CU.prototype.dataChanged=CU.prototype.dataChanged;n([F($C.YtRendererstamperBehavior),r("design:type",Object)],CU.prototype,"ytRendererstamperBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],CU.prototype,"ytRendererBehavior",void 0);n([F(kC),r("design:type",Object)],CU.prototype,"ytdReduxBehavior",void 0);n([M(),r("design:type",Object)],CU.prototype,"data",void 0); n([M(),r("design:type",Object)],CU.prototype,"firstResponseText",void 0);n([M(),r("design:type",Object)],CU.prototype,"lastResponseText",void 0);n([M(),r("design:type",Object)],CU.prototype,"selectedNonStarOption",void 0);n([M(),r("design:type",Object)],CU.prototype,"hideOptions",void 0);n([M(),r("design:type",Object)],CU.prototype,"hideUndoButton",void 0);n([M(),r("design:type",Object)],CU.prototype,"disableAnimation",void 0);n([M(),r("design:type",Object)],CU.prototype,"showResponseRangeText",void 0); n([M(),r("design:type",Object)],CU.prototype,"selectedRatingIndex",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],CU.prototype,"isSlimlineSurvey",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],CU.prototype,"isSlimlineSurveyFollowUp",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],CU.prototype,"isShortsStyle",void 0);n([M({selector:function(a){return a.ui.slimlineSurveyRatingSelectedIndex}}), r("design:type",Object)],CU.prototype,"slimlineSurveyRatingSelectedIndex",void 0);n([H("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),r("design:type",Boolean),r("design:paramtypes",[])],CU.prototype,"isSingleSelect",null);n([cu("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],CU.prototype,"dataChanged",null); n([Kt("ytd-rating-survey-option-changed"),r("design:type",Function),r("design:paramtypes",[CustomEvent,Object]),r("design:returntype")],CU.prototype,"onOptionChange",null);n([gu({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],CU); Tu(CU,"ytd-rating-survey-renderer",function(){if(AXb!==void 0)return AXb;var a=document.createElement("template");Q(a,"
\n
\n \n
\n \n \n
\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return AXb=a},{mode:1});var BXb;var DU=function(){var a=E.apply(this,arguments)||this;a.collapsed=!1;a.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return a}; k(DU,E);DU.prototype.configureRendererStamper=function(){return{"data.content":{id:"rating-survey",mapping:{ratingSurveyRenderer:{component:"ytd-rating-survey-renderer",params:{isSlimlineSurvey:!0,showResponseRangeText:!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}}; DU.prototype.handleRatingSelect=function(){var a;((a=this.data)==null?0:a.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0}; DU.prototype.handleShowSurvey=function(){this.collapsed=!1}; n([F($C.YtRendererstamperBehavior),r("design:type",Object)],DU.prototype,"ytRendererstamperBehavior",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],DU.prototype,"actionHandlerBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],DU.prototype,"ytComponentBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],DU.prototype,"ytRendererBehavior",void 0);n([F(NQ),r("design:type",Object)],DU.prototype,"ytdDismissibleItemBehavior",void 0); n([M(),r("design:type",Object)],DU.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],DU.prototype,"collapsed",void 0);n([gu({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],DU); Tu(DU,"ytd-slimline-survey-renderer",function(){if(BXb!==void 0)return BXb;var a=document.createElement("template");Q(a,"
\n
\n
\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return BXb=a},{mode:1});var CXb;var EU=function(){return E.apply(this,arguments)||this}; k(EU,E);EU.prototype.maybeGetBackgroundColor=function(a){return this.isDarkMode?a.section2Color:a.section3Color}; EU.prototype.colorPaletteChanged=function(){var a=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;a&&(a==null?0:a.secondaryTitleColor)&&this.maybeGetBackgroundColor(a)?(this.hostElement.style.backgroundColor=Iy(this.maybeGetBackgroundColor(a)),this.hostElement.style.color=Iy(a.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")}; EU.prototype.colorPaletteChanged=EU.prototype.colorPaletteChanged;n([F(kC),r("design:type",Object)],EU.prototype,"ytdReduxBehavior",void 0);n([M(),r("design:type",Object)],EU.prototype,"data",void 0);n([M({selector:function(a){return a.ui.darkModeIsEnabled}}), r("design:type",Boolean)],EU.prototype,"isDarkMode",void 0);n([M(),r("design:type",Object)],EU.prototype,"lightColorPalette",void 0);n([M(),r("design:type",Object)],EU.prototype,"darkColorPalette",void 0);n([Lt("darkColorPalette","lightColorPalette","data","isDarkMode"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],EU.prototype,"colorPaletteChanged",null);n([gu({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],EU); Tu(EU,"ytd-endorsement-header-renderer",function(){if(CXb!==void 0)return CXb;var a=document.createElement("template");Q(a,"\n\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return CXb=a},{mode:1});bB(OR,"yt-decorated-avatar-view-model",{props:{data:$A,className:$A}});function DXb(a){if(a){if(a.multipleInlinePlaybackEndpoint){var b=z(z(a.multipleInlinePlaybackEndpoint,Vmb),Wmb);if(b==null?0:b.playerDescriptors){var c=[];b=l(b.playerDescriptors);for(var d=b.next();!d.done;d=b.next()){d=d.value;if(!d.inlinePlaybackEndpoint||!d.navigationEndpoint||!d.thumbnail)return;var e=void 0,f=void 0,h=void 0,m=void 0;c.push({inlinePlaybackEndpoint:d.inlinePlaybackEndpoint,navigationEndpoint:d.navigationEndpoint,thumbnail:d.thumbnail,thumbnailOverlays:d.thumbnailOverlays,accessibilityText:(m= (e=a.title)==null?void 0:(f=e.accessibility)==null?void 0:(h=f.accessibilityData)==null?void 0:h.label)!=null?m:""})}return c}}if(a.inlinePlaybackEndpoint&&a.navigationEndpoint&&a.thumbnail)return{inlinePlaybackEndpoint:a.inlinePlaybackEndpoint,navigationEndpoint:a.navigationEndpoint,thumbnail:a.thumbnail,thumbnailOverlays:a.thumbnailOverlays,accessibilityText:(f=(c=a.title)==null?void 0:(d=c.accessibility)==null?void 0:(e=d.accessibilityData)==null?void 0:e.label)!=null?f:""}}} ;var EXb=new Bn("VIEW_TRANSITION_MANAGER_TOKEN");var FU=function(){var a=E.apply(this,arguments)||this;a.showChannelAvatar=!0;a.hasPlaylistThumbnail=!1;a.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};a.videoPreviewDataProvider=function(){return a.isRadio?DXb(a.data):VPb(a.data)}; a.registerThumbnailForPageTransition=function(){x("web_thumbnail_to_watch_transition")&&Fn().resolve(EXb).registerLockupThumbnail(a.thumbnail)}; return a}; k(FU,E);g=FU.prototype; g.configureRendererStamper=function(){return{lazyLoadMenu:CR,immediateLoadMenu:{id:"immediate-load-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.thumbnailUnderlay":{id:"thumbnail-underlay",mapping:{endorsementHeaderRenderer:{component:"ytd-endorsement-header-renderer",properties:{lightColorPalette:"[[data.thumbnail.lightColorPalette]]",darkColorPalette:"[[data.thumbnail.darkColorPalette]]"}}}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyRenderer:"ytd-slimline-survey-renderer"}},"data.buttons":{id:"buttons", mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}}}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}},"data.avatar":{id:"avatar",mapping:{avatarStackViewModel:{component:"yt-avatar-stack-view-model",properties:{overrides:"[[avatarStackViewModelOverrides]]"}},decoratedAvatarViewModel:"yt-decorated-avatar-view-model"}}}}; g.attached=function(){this.updateInlinePreviewHoverListeners()}; g.detached=function(){this.clearInlinePreviewHoverListeners()}; g.shouldLazyLoadMenu=function(){return!(this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST")}; g.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.inlinePreviewHoverListener=SR({mediaRenderer:this,lockupElement:this.dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})}; g.getVideoPreviewOpts=function(){var a={},b;if((b=this.data)==null?0:b.multipleInlinePlaybackEndpoint)a=CSb;this.isRadio&&(a=BSb);return a}; g.clearInlinePreviewHoverListeners=function(){var a;(a=this.inlinePreviewHoverListener)==null||VR(a)}; g.getOwner=function(){var a,b,c;return((a=this.data)==null?void 0:(b=a.channelThumbnailSupportedRenderers)==null?void 0:b.channelThumbnailWithLinkRenderer)||z((c=this.data)==null?void 0:c.showProviderChannelThumbnail,Llb)}; g.updateLockupSize=function(){var a;((a=this.getOwner())==null?0:a.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1}; g.getFeedbackEndpoint=function(a){if(z(a,yJ))return a;var b,c;a=(c=(b=z(a,iy))==null?void 0:b.commands)!=null?c:[];b=l(a);for(c=b.next();!c.done;c=b.next())if(c=this.getFeedbackEndpoint(c.value))return c;return null}; g.computeNavigationEndpoint=function(a){return fwb(a==null?void 0:a.navigationEndpoint)}; g.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var a=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(a)!==JSON.stringify(this.data)&&this.set("data",a)}}; g.onDataChanged=function(){var a=this,b=this.getOwner();if(b){this.set("data.owner",b);var c,d,e,f,h,m=((c=this.data)==null?void 0:(d=c.shortBylineText)==null?void 0:(e=d.runs)==null?void 0:(f=e[0])==null?void 0:f.text)||((h=b.name)==null?void 0:h.simpleText);this.set("data.owner.title",m)}var p,q,t,u,v,w;b=((p=this.data)==null?void 0:(q=p.thumbnailRenderer)==null?void 0:q.playlistVideoThumbnailRenderer)||((t=this.data)==null?void 0:(u=t.thumbnailRenderer)==null?void 0:u.playlistCustomThumbnailRenderer)||( (v=this.data)==null?void 0:(w=v.thumbnailRenderer)==null?void 0:w.showCustomThumbnailRenderer);var y;((y=this.data)==null?0:y.thumbnail)||!b||this.set("data.thumbnail",b.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){a.updateLockupSize()}); var A;if(p=((A=this.data)==null?void 0:A.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(p);var C;((C=this.dismissActionToReplayEntity)==null?0:C.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)}; g.onHiddenChanged=function(){this.updateLockupSize()}; g.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)Xu(this.hostElement,"yt-terminate-video-preview-action");else{var a;(a=this.videoTitleLink)==null||a.focus()}}; g.metadataColorChanged=function(){var a;if(this.metadataColor&&((a=this.videoTitle)==null?0:a.style))this.videoTitle.style.color=Iy(this.metadataColor);else{var b,c;!this.metadataColor&&((b=this.videoTitle)==null?0:(c=b.style)==null?0:c.color)&&(this.videoTitle.style.color="")}}; g.onDetailsClick=function(a){var b=this.computedNavigationEndpoint;b&&(AO(lt(a),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||Gt(this.hostElement,"yt-navigate",{endpoint:b}))}; g.onRendererTap=function(){this.registerThumbnailForPageTransition();var a,b,c=((a=this.data)==null?void 0:a.serviceEndpoint)||this.getFeedbackEndpoint((b=this.data)==null?void 0:b.navigationEndpoint);c&&z(c,yJ)&&this.ytComponentBehavior.resolveCommand(c)}; g.onMouseDown=function(a){var b=a.target,c=this.computedNavigationEndpoint,d;a=b.href||((d=z(c==null?void 0:c.commandMetadata,ly))==null?void 0:d.url);d=b.data||c;a&&d&&sXa(a,d)}; g.computeVideoTitleText=function(){var a;if((a=this.data)==null?0:a.title)return Object.assign({},this.data.title,{accessibility:void 0})}; g.computeHasPlaylistThumbnail=function(a){var b,c,d,e,f;if((((b=a.thumbnailRenderer)==null?0:b.playlistVideoThumbnailRenderer)||((c=a.thumbnailRenderer)==null?0:c.playlistCustomThumbnailRenderer)||((d=a.thumbnailRenderer)==null?0:d.showCustomThumbnailRenderer)||((e=a.thumbnailRenderer)==null?0:e.playlistVideoThumbnailRenderer)||((f=a.thumbnailRenderer)==null?0:f.playlistCustomThumbnailRenderer))&&a.thumbnailOverlays)for(b=0;b0;m=x("download_unplayable_error_handling")&&!jZa(d.playbackDataEntity)&&!m;d=mC(b)||b==="TRANSFER_STATE_FAILED"||b=== "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!iZa(d.policyEntity)||m?void 0:cwb(c,h,d.videoEntity.lengthSeconds);m&&(d=zy("DOWNLOAD_UNPLAYABLE",void 0,"Video unavailable"),h=zy("DOWNLOAD_AGAIN_WHEN_ONLINE",void 0,"Download this video again when you are online"),m=zy("DELETE",void 0,"Delete"),d={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:{dialogHeaderViewModel:{headline:{content:d},alignment:"DIALOG_HEADER_ALIGNMENT_CENTER",headerBlock:{contentPreviewImageViewModel:{image:{sources:[{clientResource:{imageName:"ERROR_OUTLINE"}}]}, style:"CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT",layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING",layoutHeight:24,layoutWidth:24}}}},content:{basicContentViewModel:{paragraphs:[{text:{content:h}}]}},footer:{panelFooterViewModel:{shouldHideDivider:!0,primaryButton:{buttonViewModel:{title:m,style:"BUTTON_VIEW_MODEL_STYLE_BRAND",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:{commandExecutorCommand:{commands:[{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD", targetId:c}}]}},{dismissDialogEndpoint:{}}]}}}}}}}}}}}});b==="TRANSFER_STATE_PAUSED_BY_USER"&&c&&(d={offlineVideoEndpoint:{videoId:c,action:"ACTION_RESUME"}});c={shortViewCountText:a,publishedTimeText:e,badges:f,isWatched:q,navigationEndpoint:d,thumbnailOverlays:p}}else c=void 0;return c;case"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(b=b_a(a,c))if(e=xC(a,c),f=c_a(a,c),e!=="TRANSFER_STATE_UNKNOWN"){c=Iwb(b,e,f,c,vC(a));break a}c=void 0}return c;default:fo(new Dl("Error: entitySelectorType defined but not matched in selector.", a,b));}}}), r("design:type",Object)],FU.prototype,"entityDrivenState",void 0);n([M({computed:"computeVideoTitleText(data)"}),r("design:type",Object)],FU.prototype,"videoTitleText",void 0);n([M({computed:"computeHasPlaylistThumbnail(data)"}),r("design:type",Object)],FU.prototype,"hasPlaylistThumbnail",void 0);n([M({computed:"computeNavigationEndpoint(data)"}),r("design:type",Object)],FU.prototype,"computedNavigationEndpoint",void 0); n([M({reflectToAttribute:!0,value:!1}),r("design:type",Boolean)],FU.prototype,"typographyBump",void 0);n([M({reflectToAttribute:!0}),H("typographyBump"),r("design:type",Boolean),r("design:paramtypes",[])],FU.prototype,"typographyBumpV2",null);n([Tt("#video-title"),r("design:type",HTMLElement)],FU.prototype,"videoTitle",void 0);n([Tt("#video-title-link"),r("design:type",HTMLElement)],FU.prototype,"videoTitleLink",void 0);n([Tt("#thumbnail"),r("design:type",HTMLElement)],FU.prototype,"thumbnail",void 0); n([Tt("#dismissible"),r("design:type",HTMLElement)],FU.prototype,"dismissibleMedia",void 0);n([H("data.menu"),r("design:type",Object),r("design:paramtypes",[])],FU.prototype,"lazyLoadMenu",null);n([H("data.menu"),r("design:type",Object),r("design:paramtypes",[])],FU.prototype,"immediateLoadMenu",null);n([cu("entityDrivenState"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],FU.prototype,"handleReloadDownloadsInfo",null); n([cu("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],FU.prototype,"onDataChanged",null);n([cu("hidden"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],FU.prototype,"onHiddenChanged",null);n([Lt("isDismissed"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],FU.prototype,"onIsDismissedChanged",null); n([Lt("metadataColor"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],FU.prototype,"metadataColorChanged",null);n([Kt("mousedown"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],FU.prototype,"onMouseDown",null);n([H("lockupIsHovered"),r("design:type",Boolean),r("design:paramtypes",[])],FU.prototype,"isHovered",null);n([H("data"),r("design:type",Boolean),r("design:paramtypes",[])],FU.prototype,"useAvatar",null); n([H("data","entitySelectorType"),r("design:type",String),r("design:paramtypes",[])],FU.prototype,"mediaId",null);n([gu({is:"ytd-rich-grid-media",disableElementRegistration:!0})],FU); Uu()(FU,"ytd-rich-grid-media",function(){if(yXb!==void 0)return yXb;var a=document.createElement("template");Q(a,"
");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return yXb=a},{mode:2});var FXb;var GU=function(){var a=E.apply(this,arguments)||this;a.removeMaxWidth=!0;return a}; k(GU,E);GU.prototype.configureRendererStamper=function(){return{innerMenu:CR,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}}; GU.prototype.onDataChanged=function(){var a,b=((a=this.data)==null?void 0:a.trackingParams)||"";b&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(b));var c;((c=this.dismissActionToReplayEntity)==null?0:c.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)}; GU.prototype.onRendererTap=function(){var a,b,c=(a=this.data)==null?void 0:(b=a.serviceEndpoints)==null?void 0:b[0];z(c,yJ)&&this.componentBehavior.resolveCommand(c)}; GU.prototype.onDetailsClick=function(a){var b,c=(b=this.data)==null?void 0:b.navigationEndpoint;c&&(AO(lt(a),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(c))}; ba.Object.defineProperties(GU.prototype,{innerMenu:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.menu}}, computedTitle:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.title}}, shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return x("web_slim_media_force_2_by_3")}}, isHovered:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdLockupBehavior.lockupIsHovered}}}); GU.prototype.onDataChanged=GU.prototype.onDataChanged;n([F(mz.YtComponentBehavior),r("design:type",Object)],GU.prototype,"componentBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],GU.prototype,"ytRendererBehavior",void 0);n([F(bR),r("design:type",Object)],GU.prototype,"ytdLockupBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],GU.prototype,"ytRendererstamperBehavior",void 0); n([F(NQ),r("design:type",Object)],GU.prototype,"ytdDismissibleItemBehavior",void 0);n([F(kC),r("design:type",Object)],GU.prototype,"ytdReduxBehavior",void 0);n([Tt("ytd-thumbnail"),r("design:type",HTMLElement)],GU.prototype,"thumbnail",void 0);n([Tt("#dismissible"),r("design:type",HTMLElement)],GU.prototype,"dismissibleMedia",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],GU.prototype,"removeMaxWidth",void 0);n([M(),r("design:type",String)],GU.prototype,"dismissedContentId",void 0); n([M({selectorArgs:["dismissedContentId"],selector:rPb}),r("design:type",Object)],GU.prototype,"dismissActionToReplayEntity",void 0);n([H("data"),r("design:type",Object),r("design:paramtypes",[])],GU.prototype,"innerMenu",null);n([M(),r("design:type",Object)],GU.prototype,"data",void 0);n([M({reflectToAttribute:!0,selector:tC}),r("design:type",Boolean)],GU.prototype,"miniMode",void 0); n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],GU.prototype,"onDataChanged",null);n([H("data"),r("design:type",Object),r("design:paramtypes",[])],GU.prototype,"computedTitle",null);n([M({reflectToAttribute:!0}),r("design:type",Boolean),r("design:paramtypes",[])],GU.prototype,"shouldForce2By3",null);n([H("lockupIsHovered"),r("design:type",Boolean),r("design:paramtypes",[])],GU.prototype,"isHovered",null); n([gu({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],GU); Tu(GU,"ytd-rich-grid-slim-media",function(){if(FXb!==void 0)return FXb;var a=document.createElement("template");Q(a,"
\n \n \n
\n

\n \n \n [[getSimpleString(computedTitle)]]\n \n

\n \n \n \n
\n
\n \n \n
\n
\n
\n
\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return FXb=a},{mode:2});var GXb;var HXb;var HU=function(){return E.apply(this,arguments)||this}; k(HU,E);HU.prototype.computeIcon=function(a){return a&&a.iconType?"yt-sys-icons:"+a.iconType.toLowerCase():""}; HU.prototype.onMouseEnter=function(){this.isHovered=!0}; HU.prototype.onMouseLeave=function(){this.isHovered=!1}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],HU.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],HU.prototype,"ytRendererstamperBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],HU.prototype,"ytComponentBehavior",void 0);n([M(),r("design:type",Object)],HU.prototype,"data",void 0);n([M({value:!1}),r("design:type",Boolean)],HU.prototype,"isHovered",void 0); n([gu({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],HU); Tu(HU,"ytd-expand-on-hover-card-renderer",function(){if(HXb!==void 0)return HXb;var a=document.createElement("template");Q(a,"
");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return HXb=a},{mode:1});var IXb,JXb=function(){if(IXb!==void 0)return IXb;var a=document.createElement("template");Q(a,""); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return IXb=a};kE("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var IU=function(){var a=E.apply(this,arguments)||this;a.compactStyle=!1;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a}; k(IU,E);g=IU.prototype;g.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")}; g.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.channelMembershipsButton":{id:"channel-memberships-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}}; g.computeHideDot=function(a){return!(a&&a.subscriberCountText&&a.videoCountText)||this.compactStyle}; g.hasDualButtons=function(a){return a&&a.purchaseButton&&a.subscribeButton}; g.backgroundColorChanged=function(){if(this.data!==void 0){var a=this.data.backgroundColor;this.isDarkTheme&&(a=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=a!=null?Iy(a):"transparent"}}; g.onDarkModeToggledAction=function(a){this.isDarkTheme=a}; g.onTap=function(a){var b,c,d=((b=this.data)==null?void 0:b.navigationEndpoint)||((c=this.data)==null?void 0:c.serviceEndpoint);z(d,gK)&&(d&&Fn().resolve(JB).resolveCommand(d,{form:{element:this.hostElement}}),a.preventDefault())}; g.computeChannelEndpoint=function(a){return z(a,gK)?null:a}; g.computeHrefEndpoint=function(a){return z(a,gK)?null:this.componentBehavior.computeHref_(a)}; g.computeChannelRendererStyle=function(a){return a}; g.computeIconSize=function(a){return a?108:136}; ba.Object.defineProperties(IU,{template:{configurable:!0,enumerable:!0,get:function(){return JXb()}}}); IU.prototype.backgroundColorChanged=IU.prototype.backgroundColorChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],IU.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],IU.prototype,"ytRendererstamperBehavior",void 0);n([F(pB),r("design:type",Object)],IU.prototype,"ytdOpenPopupBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],IU.prototype,"componentBehavior",void 0); n([M(),r("design:type",Object)],IU.prototype,"data",void 0);n([M(),r("design:type",Boolean)],IU.prototype,"isDarkTheme",void 0);n([M({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),r("design:type",String)],IU.prototype,"channelRendererStyle",void 0);n([M({computed:"hasDualButtons(data)",reflectToAttribute:!0}),r("design:type",Boolean)],IU.prototype,"dualButtons",void 0);n([M({reflectToAttribute:!0,value:function(){return x("enable_desktop_search_bigger_thumbs")}}), r("design:type",Boolean)],IU.prototype,"useBiggerThumbs",void 0);n([M({reflectToAttribute:!0,value:function(){return ml("desktop_search_bigger_thumbs_style")}}), r("design:type",String)],IU.prototype,"biggerThumbStyle",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],IU.prototype,"compactStyle",void 0);n([Lt("data","isDarkTheme"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],IU.prototype,"backgroundColorChanged",null);n([gu({is:"ytd-channel-renderer",disableElementRegistration:!0})],IU);Tu(IU,"ytd-channel-renderer",function(){return JXb()},{mode:1});var KXb;var LXb;kE("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var JU=function(){var a=E.apply(this,arguments)||this;a.displayItemCount=2;a.hasPlaylistThumbnail=!1;a.stackThumbnailSize="large";a.videoPreviewDataProvider=function(){if(a.data)return DXb(a.data)}; return a}; k(JU,E);g=JU.prototype;g.attached=function(){this.updateInlinePreviewHoverListeners()}; g.detached=function(){this.clearInlinePreviewHoverListeners()}; g.dataChanged=function(){this.updateInlinePreviewHoverListeners()}; g.computeFirstVideos=function(a,b){return a&&b?a.slice(0,b):[]}; g.computeThumbnailWidth=function(a,b){return a?b==="BIG"?500:b==="MASSIVE"?600:b==="MEDIUM"?450:420:360}; g.computeThumbnailHeight=function(a,b){return a?b==="BIG"?280:b==="MASSIVE"?337:234:202}; g.clearInlinePreviewHoverListeners=function(){var a;(a=this.inlinePreviewHoverListener)==null||VR(a)}; g.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.inlinePreviewHoverListener=SR({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:CSb,thumbnailElement:this.thumbnail})}; g.computeHasPlaylistThumbnail=function(a){var b,c;if((((b=a.thumbnailRenderer)==null?0:b.playlistVideoThumbnailRenderer)||((c=a.thumbnailRenderer)==null?0:c.playlistCustomThumbnailRenderer))&&a.thumbnailOverlays)for(b=0;b\n\n\n\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return LXb=a},{mode:2});var MXb;kE("itemSectionRenderer","showRenderer","ytd-show-renderer");var KU=function(){return E.apply(this,arguments)||this}; k(KU,E);KU.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}}; KU.prototype.computeThumbnailWidth=function(a){return a?360:246}; KU.prototype.computeUseProminentThumbs=function(a){return a}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],KU.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],KU.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],KU.prototype,"data",void 0);n([M({value:!1}),r("design:type",Boolean)],KU.prototype,"isSearch",void 0);n([M({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),r("design:type",Boolean)],KU.prototype,"useProminentThumbs",void 0); n([gu({is:"ytd-show-renderer",disableElementRegistration:!0})],KU); Tu(KU,"ytd-show-renderer",function(){if(MXb!==void 0)return MXb;var a=document.createElement("template");Q(a,"\n\n\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return MXb=a},{mode:1});kE("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var LU=function(){var a=E.apply(this,arguments)||this;a.isRichGrid=!1;return a}; k(LU,E);LU.prototype.configureRendererStamper=function(){return{"data.item":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:{matcher:function(){return this.isRichGrid?"ytd-rich-grid-media":"ytd-video-renderer"}}}}}}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],LU.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],LU.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],LU.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],LU.prototype,"isRichGrid",void 0);n([gu({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],LU); Tu(LU,"ytd-feed-entry-renderer",function(){if(KXb!==void 0)return KXb;var a=document.createElement("template");Q(a,"\n
\n \n \n
\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return KXb=a},{mode:1});var NXb;var MU=function(){return E.apply(this,arguments)||this}; k(MU,E);MU.prototype.showChevronIcon=function(){return this.itemsPerRow>1}; n([F(kC),r("design:type",Object)],MU.prototype,"ytdReduxBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],MU.prototype,"ytRendererBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],MU.prototype,"ytComponentBehavior",void 0);n([M(),r("design:type",Object)],MU.prototype,"data",void 0);n([M({reflectToAttribute:!0,selector:uC,value:3}),r("design:type",Number)],MU.prototype,"itemsPerRow",void 0); n([gu({is:"ytd-link-card-renderer",disableElementRegistration:!0})],MU); Tu(MU,"ytd-link-card-renderer",function(){if(NXb!==void 0)return NXb;var a=document.createElement("template");Q(a,"\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return NXb=a},{mode:1});var OXb;var NU=function(){return E.apply(this,arguments)||this}; k(NU,E);g=NU.prototype;g.configureRendererStamper=function(){return{"data.menu":CR,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}}; g.onRendererTap=function(a){if(!this.ytdDismissibleItemBehavior.isDismissed){var b,c=(b=this.data)==null?void 0:b.navigationEndpoint;c&&!AO(lt(a),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(c)?AO(lt(a),this.hostElement,["A"])||Gt(this.hostElement,"yt-navigate",{endpoint:c}):this.ytComponentBehavior.resolveCommand(c,{}))}}; g.maybeComputeHref=function(a){return this.ytComponentBehavior.computeHref_(a,!0)}; g.getNavigationCommand=function(a){return this.isNavigationCommand(a)?a:null}; g.isNavigationCommand=function(a){return a?z(a,ey)||z(a,py)||z(a,Qs)?!0:!1:!1}; NU.prototype.onRendererTap=NU.prototype.onRendererTap;n([F(Yz.YtRendererBehavior),r("design:type",Object)],NU.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],NU.prototype,"ytRendererstamperBehavior",void 0);n([F(NQ),r("design:type",Object)],NU.prototype,"ytdDismissibleItemBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],NU.prototype,"ytComponentBehavior",void 0);n([M(),r("design:type",Object)],NU.prototype,"data",void 0); n([Kt("tap"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],NU.prototype,"onRendererTap",null);n([gu({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],NU); Tu(NU,"ytd-lumiere-promo-item-image-renderer",function(){if(OXb!==void 0)return OXb;var a=document.createElement("template");Q(a,"

");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return OXb=a},{mode:1});var PXb;var OU=function(){return E.apply(this,arguments)||this}; k(OU,E);OU.prototype.computeLandscapeThumbnail=function(){var a;return((a=this.data)==null?void 0:a.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],OU.prototype,"ytRendererBehavior",void 0);n([F(kC),r("design:type",Object)],OU.prototype,"ytdReduxBehavior",void 0);n([M(),r("design:type",Object)],OU.prototype,"data",void 0);n([M({reflectToAttribute:!0,selector:tC}),r("design:type",Boolean)],OU.prototype,"miniMode",void 0);n([M({reflectToAttribute:!0,selector:uC}),r("design:type",Number)],OU.prototype,"itemsPerRow",void 0); n([M({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),r("design:type",Boolean)],OU.prototype,"landscapeThumbnail",void 0);n([gu({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],OU); Tu(OU,"ytd-lumiere-shelf-details-renderer",function(){if(PXb!==void 0)return PXb;var a=document.createElement("template");Q(a,"
\n
\n
\n \n
\n
\n \n \n
\n \n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return PXb=a},{mode:2});var QXb;var PU=function(){return E.apply(this,arguments)||this}; k(PU,E);PU.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],PU.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],PU.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],PU.prototype,"data",void 0);n([gu({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],PU); Tu(PU,"ytd-primetime-promo-details-renderer",function(){if(QXb!==void 0)return QXb;var a=document.createElement("template");Q(a,"");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return QXb=a},{mode:1});var RXb;var QU=function(){return E.apply(this,arguments)||this}; k(QU,E);n([F(Yz.YtRendererBehavior),r("design:type",Object)],QU.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],QU.prototype,"data",void 0);n([gu({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],QU); Tu(QU,"ytd-panel-show-style-metadata-renderer",function(){if(RXb!==void 0)return RXb;var a=document.createElement("template");Q(a,"\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return RXb=a},{mode:1});var SXb;var RU=function(){return E.apply(this,arguments)||this}; k(RU,E);g=RU.prototype;g.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})}; g.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}}; g.computeThumbnail=function(a){if(a)return a.smallFormFactorBackgroundThumbnail||a.largeFormFactorBackgroundThumbnail}; g.maybeComputeHref=function(a){return this.ytComponentBehavior.computeHref_(a,!0)}; g.isNavigationCommand=function(a){return a?z(a,ey)||z(a,py)||z(a,Qs)?!0:!1:!1}; g.getNavigationCommand=function(a){return this.isNavigationCommand(a)?a:null}; RU.prototype.onPanelTap=RU.prototype.onPanelTap;n([F(Yz.YtRendererBehavior),r("design:type",Object)],RU.prototype,"ytRendererBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],RU.prototype,"ytComponentBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],RU.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],RU.prototype,"data",void 0); n([M({reflectToAttribute:!0,value:!0}),r("design:type",Boolean)],RU.prototype,"roundedContainer",void 0);n([M({reflectToAttribute:!0,value:x("web_modern_buttons")}),r("design:type",Boolean)],RU.prototype,"modernButtons",void 0);n([Kt("tap"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],RU.prototype,"onPanelTap",null);n([gu({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],RU); Tu(RU,"ytd-primetime-promo-panel-renderer",function(){if(SXb!==void 0)return SXb;var a=document.createElement("template");Q(a,"
"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return SXb=a},{mode:1});bB(O(function(a){a=Hu(a,{useFullWidth:!1});var b=a.data,c=a.useFullWidth;a={};return D("teaser-card-view-model",{class:U("ytTeaserCardViewModelHost",(a.ytTeaserCardViewModelUseFullWidth=function(){return c()},a))},D(P,{cond:function(){return b().onTap}, then:function(d){return D(vD,{className:"ytTeaserCardViewModelLink",command:d},D("div",{class:"ytTeaserCardViewModelImageContainer"},D(P,{cond:function(){return b().image}, then:function(e){return D(eC,{data:e,className:"ytTeaserCardViewModelImage",alt:""})}})),D("p",{class:"ytTeaserCardViewModelCaption"},function(){return b().caption}))}}))},"Cc"),"teaser-card-view-model",{props:{data:$A, useFullWidth:$A}});var TXb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("JAontb"),2);a=xXb;return b.return(a)})},UXb=yD(function(){return TXb()},{debugName:"nudgeFormViewModel"}); Gn(xD,function(a){a.registerLoadFn("nudgeFormViewModel","JAontb",TXb)});bB(O(function(a){var b=a.data;var c=function(){var d;return wD((d=b())==null?void 0:d.iconThemedImage)}; return D("yt-edu-card-view-model",null,D(mS,{contentId:function(){return b().nudgeId}},function(){return D("div",{class:U("ytEduCardViewModelHost",function(){return b().trimStyle==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?null:"ytEduCardViewModelGradientTrim"})},D("div",{class:"ytEduCardViewModelTopCornerButton"},D(OC,{data:function(){return b().dismissButton}},{buttonViewModel:BD})),D("div",{class:"ytEduCardViewModelContentWrapper"},D("div",{class:"ytEduCardViewModelHeaderImage"},D(P,{cond:c, then:function(d){return D(eC,{data:d,alt:"",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),D("div",{class:"ytEduCardViewModelTextContainer"},D("div",{class:"ytEduCardViewModelTitle"},D(gC,{text:function(){return b().title}})),D("div",{class:"ytEduCardViewModelSubtitle"},D(gC,{text:function(){return b().subtitle}}))),D("div",{class:"ytEduCardViewModelContent"},D(OC,{data:function(){return b().form}},{nudgeFormViewModel:UXb}))),D("div",{class:U("ytEduCardViewModelButtonWrapper",function(){return b().enableHorizontalButtons? "ytEduCardViewModelHorizontalButtonWrapper":null})},D(OC,{data:function(){return b().primaryButton}},{buttonViewModel:function(d){return D("div",{class:"ytEduCardViewModelPrimaryButton"},D(BD,{data:d.data}))}}),D(OC,{data:function(){return b().secondaryButton}},{buttonViewModel:function(d){return D("div",{class:"ytEduCardViewModelSecondaryButton"},D(BD,{data:d.data}))}})))}))},"Dc"),"yt-edu-card-view-model",{props:{data:$A}});var VXb=new Bn("RICH_GRID_VIDEO_RENDERER_TOKEN");bB(O(function(a){var b=a.data;var c=a.showYtInteractionInContent;var d=function(){return!!b().selectableFeedback}; a=l(ip(!1,void 0,"YVS8Xc"));var e=a.next().value,f=a.next().value;rw(function(){var v=z(b().primaryButton,aK);(v==null?0:v.isToggled)&&f(v.isToggled)}); a=FC(function(v){if(!d())return!1;if(e()){var w;var y=(w=b().selectableFeedback)==null?void 0:w.onDeselect}else{var A;y=(A=b().selectableFeedback)==null?void 0:A.onSelect}y&&QB(y,{form:{element:v.target}});f(!e());if(v=z(b().primaryButton,aK))v.isToggled=e();return!1}); var h=function(){if(!d()){var v,w=(v=b().loggingDirectives)==null?void 0:v.trackingParams;w&&Oz(Fn().resolve(tL),w)}},m=OHb(),p=function(){var v; return d()?(v=b().selectableFeedback)==null?void 0:v.a11yLabel:void 0},q=function(){return d()?{toggled:e()}:{}},t=Fn().resolve(Cn(VXb)),u={}; return D("yt-feedback-item-renderer",{class:U("ytFeedbackItemRendererHost",(u.ytFeedbackItemRendererSelectableFeedback=d,u)),"on:click":a,"on:keydown":m,title:p,"aria-label":p,"aria-pressed":function(){return d()?e():void 0}, tabindex:function(){return d()?0:void 0}, role:function(){return d()?"button":void 0}},D("div",{class:"ytFeedbackItemRendererContentContainer"},D(OC,{data:function(){return b().content}},{videoRenderer:function(v){return D(t,{data:v.data, showYtInteraction:c})}, lockupViewModel:function(v){return D(zT,{data:v.data,containerType:2})}})),D("div",{class:"ytFeedbackItemRendererButtonsContainer"},D(OC,{data:function(){return b().primaryButton}},{toggleButtonViewModel:function(v){return D(CD,{data:v.data, buttonShapeOverrides:q,disableExplicitClickLogging:!0,onToggle:h})}})))},"Ec"),"yt-feedback-item-renderer",{props:{data:$A, showYtInteractionInContent:$A}});var SU=function(){var a=E.apply(this,arguments)||this;a.isShortsGrid=!1;a.isCompactGrid=!1;a.isShortsPanelGrid=!1;a.renderedFromRichGrid=!1;a.isInFirstColumn=!1;a.noGutterMargins=!1;a.noBottomMargin=!1;a.halfBottomMargin=!1;a.noBottomMarginInAds=!0;a.force16By9ThumbnailAspectRatio=!1;a.useCompactList=!1;a.containerType=2;a.thumbnailTargetWidth=9999;a.shortsLockupViewModelAspectRatio=1;a.shortsLockupViewModelScrimStyle=3;a.isResponsiveGrid=!1;a.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"}; a.hoverListener=a.hover.bind(a);a.leaveListener=a.leave.bind(a);a.highlighted=!1;a.unsubscribeFromInlinePreviewIsActive=function(){}; return a}; k(SU,E);g=SU.prototype;g.computeContainerType=function(){return this.useCompactList?3:2}; g.itemWidthChanged=function(){var a;this.thumbnailTargetWidth=(a=this.itemWidth)!=null?a:9999}; g.updateIsInFirstColumn=function(){var a;this.isInFirstColumn=((a=this.data)==null?void 0:a.colIndex)===0}; g.observerContainerType=function(){if(this.lockup){var a=this.lockup;a.containerType=this.containerType;a.sizing=this.sizing;a.typographyBump=this.typographyBump;a.itemWidth=this.itemWidth}this.richGridMedia&&x("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&x("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)}; g.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-rich-item-renderer lockup",thumbnailFixedWidth:"50%"},properties:{force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",containerType:"[[containerType]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]"}},postRenderer:{component:"ytd-post-renderer", params:{isRichGrid:!0}},sharedPostRenderer:{component:"ytd-shared-post-renderer",params:{isRichGrid:!0}},primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer",primetimePromoPanelRenderer:"ytd-primetime-promo-panel-renderer",movieRenderer:{component:"ytd-rich-grid-slim-media"},compactMovieRenderer:{component:"ytd-rich-grid-media",properties:{typographyBump:"[[richTypographyBump]]",showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2", properties:{aspectRatio:"[[shortsLockupViewModelAspectRatio]]",scrimStyle:"[[shortsLockupViewModelScrimStyle]]",useDefaultStyle:"[[isShortsPanelGrid]]"}},feedbackItemRenderer:{component:"yt-feedback-item-renderer",properties:{showYtInteractionInContent:"[[showYtInteractionOnRichGridMedia]]"}},videoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",typographyBump:"[[richTypographyBump]]"}}, radioRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},playlistRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",typographyBump:"[[richTypographyBump]]"}},gridShowRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]", typographyBump:"[[richTypographyBump]]"}},promotedVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1,isPromotedVideo:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},feedEntryRenderer:{component:"ytd-feed-entry-renderer",params:{isRichGrid:!0}},displayAdRenderer:{component:"ytd-display-ad-renderer"},adSlotRenderer:{component:"ytd-ad-slot-renderer",properties:{noBottomMargin:"[[noBottomMarginInAds]]",typographyBump:"[[richTypographyBump]]"}}, lumiereShelfDetailsRenderer:"ytd-lumiere-shelf-details-renderer",lumierePromoItemImageRenderer:"ytd-lumiere-promo-item-image-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",eduCardViewModel:"yt-edu-card-view-model",gameCardRenderer:{component:"ytd-game-card-renderer",params:{isRichGrid:!0}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",params:{isRichGrid:!0}},expandOnHoverCardRenderer:"ytd-expand-on-hover-card-renderer",linkCardRenderer:"ytd-link-card-renderer",gridMovieRenderer:{component:"ytd-rich-grid-slim-media"}, gridChannelRenderer:{component:"ytd-grid-channel-renderer",params:{isRichGrid:!0}},teaserCardViewModel:{component:"teaser-card-view-model",params:{useFullWidth:!0}},gridVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}}}}}}; g.leave=function(a){a=a.relatedTarget;var b=document.querySelector("ytd-video-preview");a&&b&&At(b).contains(a)||this.removeAndCleanupHighlight()}; g.hover=function(){var a;!this.highlighted&&(a=this.data)!=null&&a.onFocusEffect&&(this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(a=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:a,boxShadow:"0 0 0 10px "+a})),this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border"),this.highlighted=!0)}; g.removeAndCleanupHighlight=function(){this.hostElement.classList.remove("ytd-rich-item-renderer-highlight");this.hostElement.classList.remove("ytd-rich-item-renderer-highlight-border");Object.assign(this.hostElement.style,{backgroundColor:"",boxShadow:""});this.highlighted=!1}; g.registerHoverHighlightListeners=function(){var a=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.unsubscribeFromInlinePreviewIsActive=cA(XA,$Za,function(b){a.highlighted&&!b&&a.removeAndCleanupHighlight()})}; g.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.unsubscribeFromInlinePreviewIsActive()}; g.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()}; g.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()}; g.getBackgroundColor=function(){var a,b,c=(a=this.data)==null?void 0:(b=a.onFocusEffect)==null?void 0:b.onFocusColor;if(c){if(document.documentElement.hasAttribute("dark")&&(c==null?0:c.darkTheme))return Ly(c==null?void 0:c.darkTheme);if(c==null?0:c.lightTheme)return Ly(c==null?void 0:c.lightTheme)}}; g.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var a=Tv(),b,c,d;a&&((b=this.data)==null?0:b.trackingParams)&&((c=this.data)==null?void 0:c.colIndex)!=null&&((d=this.data)==null?void 0:d.rowIndex)!=null&&cTa(a,Qv(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}}; g.isSlimMediaRenderer=function(a){return!!z(a==null?void 0:a.content,fqb)||!!z(a==null?void 0:a.content,eqb)||!!z(a==null?void 0:a.content,vrb)}; g.isPostRenderer=function(){var a,b;return!!z((a=this.data)==null?void 0:a.content,xlb)||!!z((b=this.data)==null?void 0:b.content,ylb)}; g.computeIsGameCardShelf=function(){var a;return!!z((a=this.data)==null?void 0:a.content,unb)}; g.computeIsMiniGameCardShelf=function(){var a,b;return!!z((a=this.data)==null?void 0:a.content,rob)||!!z((b=this.data)==null?void 0:b.content,sob)}; g.computeIsTeaserCard=function(){var a;return!!z((a=this.data)==null?void 0:a.content,sob)}; g.computeIsSelectableFeedbackItem=function(){var a,b;return!((b=z((a=this.data)==null?void 0:a.content,uob))==null||!b.selectableFeedback)}; g.computeContainsLumierePosters=function(){var a,b;return((b=z((a=this.data)==null?void 0:a.content,Flb))==null?void 0:b.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"}; g.computeIsExpandOnHoverCardShelf=function(){var a;return!!z((a=this.data)==null?void 0:a.content,Elb)}; g.computeIsLinkCardShelf=function(){var a;return!!z((a=this.data)==null?void 0:a.content,Atb)}; g.computeIsLinkCardFullWidth=function(a,b){var c;return((c=z(a==null?void 0:a.content,Atb))==null?void 0:c.useFullWidth)||b<=2}; ba.Object.defineProperties(SU.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}}, showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){var a;return z((a=this.data)==null?void 0:a.content,vsb)?!1:this.richGridHoverHighlight||this.isSelectableFeedbackItem}}, richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&x("web_enable_typography_bump")}}, richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){var a;if(z((a=this.data)==null?void 0:a.content,vsb))return!1;var b;return!((b=this.data)==null||!b.onFocusEffect)}}, lockupExperiments:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return{useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0,onFocusEffect:(a=this.data)==null?void 0:a.onFocusEffect,showHighlightEffect:((b=this.data)==null?void 0:(c=b.deltaEffect)==null?void 0:c.deltaEffectType)==="RICH_ITEM_DELTA_EFFECT_TYPE_THUMBNAIL_HIGHLIGHT"}}}}); SU.prototype.richGridHoverHighlightChanged=SU.prototype.richGridHoverHighlightChanged;SU.prototype.observerContainerType=SU.prototype.observerContainerType;SU.prototype.updateIsInFirstColumn=SU.prototype.updateIsInFirstColumn;SU.prototype.itemWidthChanged=SU.prototype.itemWidthChanged;n([F(kC),r("design:type",Object)],SU.prototype,"ytdReduxBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],SU.prototype,"ytRendererstamperBehavior",void 0); n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],SU.prototype,"ytActionHandlerBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],SU.prototype,"ytRendererBehavior",void 0);n([F(bR),r("design:type",Object)],SU.prototype,"ytdLockupBehavior",void 0);n([M(),r("design:type",Object)],SU.prototype,"data",void 0);n([M({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),r("design:type",Boolean)],SU.prototype,"isPost",void 0); n([M({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),r("design:type",Boolean)],SU.prototype,"containsLumierePosters",void 0);n([M({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),r("design:type",Boolean)],SU.prototype,"isSlimMedia",void 0);n([M({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),r("design:type",Boolean)],SU.prototype,"isGameCardShelf",void 0); n([M({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),r("design:type",Boolean)],SU.prototype,"isMiniGameCardShelf",void 0);n([M({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),r("design:type",Boolean)],SU.prototype,"isTeaserCard",void 0);n([M({computed:"computeIsSelectableFeedbackItem(data)"}),r("design:type",Boolean)],SU.prototype,"isSelectableFeedbackItem",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],SU.prototype,"isShortsGrid",void 0); n([M({reflectToAttribute:!0}),r("design:type",Boolean)],SU.prototype,"isSlimGrid",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],SU.prototype,"isCompactGrid",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],SU.prototype,"isShortsPanelGrid",void 0);n([M({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),r("design:type",Boolean)],SU.prototype,"isExpandOnHoverCardShelf",void 0); n([M({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),r("design:type",Boolean)],SU.prototype,"isLinkCardShelf",void 0);n([M({reflectToAttribute:!0,selector:uC,value:3}),r("design:type",Number)],SU.prototype,"itemsPerRow",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],SU.prototype,"renderedFromRichGrid",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],SU.prototype,"isInFirstColumn",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],SU.prototype,"noGutterMargins",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],SU.prototype,"noBottomMargin",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],SU.prototype,"halfBottomMargin",void 0);n([M(),r("design:type",Object)],SU.prototype,"noBottomMarginInAds",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],SU.prototype,"isShelfItem",void 0); n([M({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),r("design:type",Boolean)],SU.prototype,"isLinkCardFullWidth",void 0);n([M(),r("design:type",Object)],SU.prototype,"force16By9ThumbnailAspectRatio",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],SU.prototype,"useCompactList",void 0);n([M(),r("design:type",String)],SU.prototype,"sizing",void 0);n([M({value:!1}),r("design:type",Boolean)],SU.prototype,"typographyBump",void 0); n([M(),r("design:type",Number)],SU.prototype,"itemWidth",void 0);n([M(),r("design:type",Boolean)],SU.prototype,"isHomeShelf",void 0);n([M(),r("design:type",Boolean)],SU.prototype,"isHomeGrid",void 0);n([Tt("yt-lockup-view-model"),r("design:type",HTMLElement)],SU.prototype,"lockup",void 0);n([Tt("ytd-rich-grid-media"),r("design:type",HTMLElement)],SU.prototype,"richGridMedia",void 0);n([Tt("ytd-ad-slot-renderer"),r("design:type",HTMLElement)],SU.prototype,"adSlotRenderer",void 0); n([M({computed:"computeContainerType(useCompactList)"}),r("design:type",Object)],SU.prototype,"containerType",void 0);n([M(),r("design:type",Object)],SU.prototype,"thumbnailTargetWidth",void 0);n([H("showYtInteractionOnRichItem"),r("design:type",Boolean),r("design:paramtypes",[])],SU.prototype,"showYtInteractionOnRichGridMedia",null);n([H("isSelectableFeedbackItem","richGridHoverHighlight"),r("design:type",Boolean),r("design:paramtypes",[])],SU.prototype,"showYtInteractionOnRichItem",null); n([H("typographyBump","isHomeGrid"),r("design:type",Boolean),r("design:paramtypes",[])],SU.prototype,"richTypographyBump",null);n([M({reflectToAttribute:!0}),H("data"),r("design:type",Boolean),r("design:paramtypes",[])],SU.prototype,"richGridHoverHighlight",null);n([M(),r("design:type",Number)],SU.prototype,"shortsLockupViewModelAspectRatio",void 0);n([M(),r("design:type",Number)],SU.prototype,"shortsLockupViewModelScrimStyle",void 0); n([Lt("itemWidth"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],SU.prototype,"itemWidthChanged",null);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],SU.prototype,"updateIsInFirstColumn",null);n([Lt("containerType","sizing","typographyBump"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],SU.prototype,"observerContainerType",null); n([M({reflectToAttribute:!0}),r("design:type",Object)],SU.prototype,"isResponsiveGrid",void 0);n([H("data"),r("design:type",Object),r("design:paramtypes",[])],SU.prototype,"lockupExperiments",null);n([Lt("richGridHoverHighlight"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],SU.prototype,"richGridHoverHighlightChanged",null);n([gu({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],SU); Uu()(SU,"ytd-rich-item-renderer",function(){if(GXb===void 0){var a=document.createElement("template");Q(a,"
\n\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);GXb=a}a=GXb;return a},{mode:2});var WXb=kz(zy("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var XXb={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},YXb={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};function ZXb(a,b){var c=[];a=$Xb(a,b,!0);c.push({richSectionRenderer:{content:a}});return{contents:c}} function $Xb(a,b,c,d,e){c=c===void 0?!1:c;a={isExpanded:c,contents:TU(a),entitySelectorType:b,responsiveContainerConfiguration:{responsiveSize:"RESPONSIVE_SIZE_EXTRA_COMPACT"}};d&&(a.title=d);e&&(a.subtitle=e);c||(a.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:zy("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT", loggingDirectives:{clientVeSpec:{uiType:11760}}}},a.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:zy("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:11760}}}},a.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:zy("VIEW_ALL",void 0,"View all"),accessibilityText:zy("VIEW_ALL", void 0,"View all"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:242898}},onTap:{innertubeCommand:{browseEndpoint:{browseId:"FEsmart_downloads"},commandMetadata:{webCommandMetadata:{url:"/feed/smart_downloads",rootVe:248381,webPageType:"WEB_PAGE_TYPE_BROWSE"}}}}}}]}});return{richShelfRenderer:a}} function TU(a){var b=[];a=l(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,"videoEntity"in c&&"channelEntity"in c){var d=b,e=d.push;var f=void 0;if(c==null?0:(f=c.videoEntity)==null?0:f.videoId){f=AC(XA.getState(),c.videoEntity.videoId);var h=XA.getState();var m=nA(c.videoEntity.videoId,"mainVideoEntity");h=!!rC(h.entities)[m];h={videoId:c.videoEntity.videoId,title:tK(c.videoEntity.title),shortBylineText:tK(c.channelEntity.title),thumbnail:c.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:h? 129218:42356}},navigationEndpoint:cwb(c.videoEntity.videoId,f,c.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:zy("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};c.videoEntity.lengthSeconds&&(h.thumbnailOverlays=Hwb(c.videoEntity.lengthSeconds,f));h.isWatched=f>0;h.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:c.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:zy("VIDEO_ACTION_MENU", void 0,"Action menu")}}}};h.badges=void 0;c=h}else c={};e.call(d,{richItemRenderer:{content:{videoRenderer:c},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if("mainPlaylistEntity"in c&&"mainPlaylistDownloadStateEntity"in c){d=b;e=d.push;var p=m=f=void 0,q=void 0,t=void 0,u=void 0,v=void 0,w=void 0,y=void 0,A=void 0,C=void 0,I=void 0;h=c.mainPlaylistEntity.playlistId;var K=c==null?void 0:(I=c.mainPlaylistEntity)==null?void 0:(C=I.thumbnailStyleData)==null?void 0:(A=C[0])==null? void 0:(y=A.value)==null?void 0:(w=y.collageThumbnail)==null?void 0:w.coverThumbnail;if(h&&K){w=ewb(h);!x("enable_offline_playlist_page")&&(c==null?0:(v=c.mainPlaylistEntity)==null?0:v.videos)&&(v=c==null?void 0:(u=c.mainPlaylistEntity)==null?void 0:(t=u.videos)==null?void 0:t[0],t=mA(v).entityId,t=JSON.parse(t).videoId,t!==void 0&&(w=AC(XA.getState(),t),w=dwb(t,h,w)));t=[];if(c==null?0:(q=c.mainPlaylistEntity)==null?0:(p=q.videos)==null?0:p.length)p=qwb(),q=Object,t=q.assign,u=(u=pwb(c==null?void 0: c.mainPlaylistEntity.videos.length))?{thumbnailOverlaySidePanelRenderer:{text:sK(u),icon:{iconType:"PLAYLISTS"}}}:void 0,t=[p,t.call(q,{},(m=u)!=null?m:{})];c={playlistId:h,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:K}},navigationEndpoint:w,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:t,title:tK(c.mainPlaylistEntity.title),shortBylineText:tK(c==null?void 0:(f=c.channelEntity)==null?void 0:f.title),badges:[{metadataBadgeRenderer:{label:zy("DOWNLOADED",void 0, "Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};c.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:WXb,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:h,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:zy("VIDEO_ACTION_MENU",void 0,"Action menu")}}}};c.badges=void 0}else c=void 0;e.call(d,{richItemRenderer:{content:{playlistRenderer:c},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return b} function aYb(a,b,c){if(a){var d=a,e="",f="",h=1;a<0&&(a=-a);if(a===Infinity)a=(Infinity*Math.sign(d)).toString();else{for(var m=0;m=h||h<=1&&a>.1*h){e=p;break}}e?(e+="B",f=" "):h=1;a=Math.round(d/h*10)/10+f+e}}else a="";b!==void 0&&isFinite(b)?b===0?b=zy("UPDATING",void 0,"Updating..."):(b=Cwb(new Date(b)),b=zy("UPDATED_TIME",{relative_time:b},"Updated "+b)):b="";d="";a&&b&&(d=" \u2022 ");if(c){c=Ay("VIDEO_COUNT",c);if(a||b)d=" \u2022 ";return c+d+a+d+b}return a+ d+b} ;var bYb;function cYb(a,b,c,d){var e=kS(a.responsiveSize),f;a=!((f=a.responsiveMap)==null||!f.some(function(h){return h.containerSize==="CONTAINER_SIZE_NARROW"&&h.containerType==="CONTAINER_TYPE_VERTICAL_LIST"})); return{marginSettings:c,containerWidth:b,sizing:e,enableFullBleedForSingleCol:!1,isCompactList:e==="COMPACT"&&a,bleedGutters:d}} ;var UU=function(){var a=E.apply(this,arguments)||this;a.useResponsiveGrid=!1;a.hidden=!1;a.isShowMoreHidden=!1;a.isShowLessHidden=!0;a.hasExpansionButton=!1;a.isInnerShelf=!1;a.allVideosCount=0;a.allPlaylistCount=0;a.haveSmartDownloadsCompleted=!1;a.restrictContentsOverflow=!1;a.firstShownIndex=0;a.horizontalOffset=0;a.atEnd=!0;a.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved","yt-section-reactive-dismissal":"onSectionReactiveDismissal"}; a.disableServiceRequestPropagation=function(b){b.stopPropagation()}; a.nextClick=function(){var b;(b=a.data)!=null&&b.contents&&(a.firstShownIndex+=a.currentElementsPerRow,a.updateHorizontalOffset(),a.updateHorizontalItemVisibility())}; a.previousClick=function(){var b;(b=a.data)!=null&&b.contents&&(a.firstShownIndex-=a.currentElementsPerRow,a.updateHorizontalOffset(),a.updateHorizontalItemVisibility())}; return a}; k(UU,E);g=UU.prototype; g.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",noBottomMargin:"[[isCollapsed]]",halfBottomMargin:"[[isExpanded]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},enablePropertyObservers:!0,params:{isShelfItem:!0}}}},"data.menu":{id:"menu", mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:Vk("HTML_DIR")==="rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}}; g.attached=function(){this.requestElementsPerRow();this.contents.addEventListener("yt-service-request-sent",this.disableServiceRequestPropagation)}; g.detached=function(){this.contents.removeEventListener("yt-service-request-sent",this.disableServiceRequestPropagation)}; g.refreshGridLayoutNew=function(){var a;if((a=this.data)!=null&&a.contents&&this.containerWidth){var b;((b=this.data.responsiveContainerConfiguration)==null?0:b.responsiveSize)?(a=cYb(this.data.responsiveContainerConfiguration,this.containerWidth,2),a=jS(Object.assign({},a,{standardUnitMinWidth:this.standardUnitMinWidth}))):a=jS({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=a.typographyBump;if(this.elementsPerRow!== a.numItems||this.gutter!==a.gutter)this.elementsPerRow=a.numItems,this.gutter=a.gutter,this.itemWidth=a.itemWidth,Ft(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":a.gutter+"px"})}}; g.computeSizing=function(){if(!this.isLumiere){var a=UQb(this.data);return a?a:this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}}; g.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing}; g.computeButton=function(a){var b=z(a,TJ);a=Object.assign({},z(a,TJ));return b?(a.text||(a.text={simpleText:a.tooltip}),a.style="STYLE_MONO_OUTLINE",a.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",a):b}; g.onRowIndexChange=function(){var a=Tv(),b,c;((b=this.data)==null?0:b.trackingParams)&&((c=this.data)==null?void 0:c.rowIndex)!=null&&a&&cTa(a,Qv(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})}; g.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var a,b=((a=this.getRichItemRenderers()[0])==null?void 0:a.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*b;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"}; g.requestElementsPerRow=function(){Gt(this.hostElement,"yt-request-elements-per-row")}; g.onUpdateElementsPerRowAction=function(a,b,c,d,e,f){if(this.containerWidth!==f&&(this.containerWidth=f,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&a&&b&&c&&d&&e&&(this.elementsPerRow!==a||this.postsPerRow!==b||this.slimItemsPerRow!==c||this.gameCardsPerRow!==d||this.miniGameCardsPerRow!==e)&&(this.elementsPerRow=a,this.postsPerRow=b,this.slimItemsPerRow=c,this.gameCardsPerRow=d,this.miniGameCardsPerRow=e,this.updateItemVisibility())}; g.getRichItemRenderers=function(){return wt(this.hostElement).querySelectorAll("ytd-rich-item-renderer")}; g.updateItemVisibility=function(){var a=this;if(this.data&&this.data.contents){var b=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(d,e){var f;((f=a.data)==null?0:f.isExpanded)?(d.hidden=e>b-1,d.ytRendererBehavior.markDirty()):d.hidden=e>a.currentElementsPerRow-1||e>b-1}); var c=this.data.contents.length<=this.currentElementsPerRow;this.isShowMoreHidden=!this.data.showMoreButton||c||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||c||!this.data.isExpanded||this.isTruncated;this.hasExpansionButton=!this.isShowMoreHidden||!this.isShowLessHidden}this.contents.style.visibility="visible"}}; g.setHeightToSingleRow=function(){var a=this.getRichItemRenderers(),b=Number.parseInt(getComputedStyle(a[0]).marginBottom,10)||0;a=a.slice(0,this.currentElementsPerRow).reduce(function(c,d){return Math.max(c,d.getBoundingClientRect().height+b)},0); this.contents.style.height=a+"px"}; g.focusNextExpandedItem=function(){var a;((a=this.data)==null?0:a.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)}; g.focusItem=function(a,b){var c=this.getRichItemRenderers();if(c[a]&&(a=c[a].querySelector(".focus-on-expand"))){if(b){var d;(d=c[this.currentElementsPerRow])==null||d.scrollIntoView({behavior:"smooth",block:"center"})}a.focus({preventScroll:!0})}}; g.onDataChange=function(){var a=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var b;if((b=this.data)==null?0:b.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();ms(this,function(){a.updateItemVisibility()}); var c;if((c=this.data)==null?0:c.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),Ft(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),b=0;b=c}; g.onChildElementFocus=function(a){this.hasChevronButtons&&(a=a.target.closest("#contents > *"),this.contents.contains(a)&&(a.offsetLeftthis.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))}; g.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(Vk("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"}; g.updateHorizontalOffset=function(){var a=this.getRichItemRenderers(),b,c;var d=((b=this.data)==null?void 0:(c=b.contents)==null?void 0:c.length)||0;var e;a=((e=a[0])==null?void 0:e.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>d?this.firstShownIndex=d-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*a}; g.isSlimMediaShelfRenderer=function(){var a,b,c,d=(c=z((a=this.data)==null?void 0:(b=a.contents)==null?void 0:b[0],wJ))==null?void 0:c.content;return!!(z(d,fqb)||z(d,eqb)||z(d,vrb))}; g.isGameCardShelf=function(){var a,b,c,d=(c=z((a=this.data)==null?void 0:(b=a.contents)==null?void 0:b[0],wJ))==null?void 0:c.content;return!!z(d,unb)}; g.isMiniGameCardShelf=function(){var a,b,c,d=(c=z((a=this.data)==null?void 0:(b=a.contents)==null?void 0:b[0],wJ))==null?void 0:c.content;return!!z(d,rob)||!!z(d,sob)}; g.hasGameBoxArtAvatarStyle=function(){var a;return((a=this.data)==null?void 0:a.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"}; g.hasRoundedGameBoxArtAvatarStyle=function(){var a;return((a=this.data)==null?void 0:a.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"}; g.isShortsShelf=function(){var a,b,c,d=(c=z((a=this.data)==null?void 0:(b=a.contents)==null?void 0:b[0],wJ))==null?void 0:c.content;return!!z(d,vrb)}; g.isPostShelfRenderer=function(){var a,b,c,d=(c=z((a=this.data)==null?void 0:(b=a.contents)==null?void 0:b[0],wJ))==null?void 0:c.content;return!(!z(d,xlb)&&!z(d,ylb))}; g.isLumiereShelf=function(){var a,b,c=z((a=this.data)==null?void 0:(b=a.contents)==null?void 0:b[0],wJ);return!!z(c==null?void 0:c.content,Flb)}; g.isLumiereShelfWithPosters=function(){var a,b,c=z((a=this.data)==null?void 0:(b=a.contents)==null?void 0:b[0],wJ),d;return((d=z(c==null?void 0:c.content,Flb))==null?void 0:d.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"}; g.isExpandOnHoverCardShelf=function(){var a,b,c,d=(c=z((a=this.data)==null?void 0:(b=a.contents)==null?void 0:b[0],wJ))==null?void 0:c.content;return!!z(d,Elb)}; g.computeHasFeaturedBadge=function(){var a,b,c=z((a=this.data)==null?void 0:(b=a.badges)==null?void 0:b[0],fOa);return c?c.style!=="BADGE_STYLE_TYPE_SIMPLE":!1}; g.computeHasPaygatedFeaturedBadge=function(){var a,b,c=z((a=this.data)==null?void 0:(b=a.badges)==null?void 0:b[0],fOa);return c?(c==null?void 0:c.style)==="BADGE_STYLE_TYPE_SIMPLE":!1}; g.computeHeaderHidden=function(){var a,b,c,d,e,f;return!((a=this.data)==null?0:a.icon)&&!((b=this.data)==null?0:b.title)&&!((c=this.data)==null?0:c.subtitle)&&!((d=this.data)==null?0:d.thumbnail)&&!((e=this.data)==null?0:e.badges)&&!((f=this.data)==null?0:f.menu)}; g.showCtaButton=function(){var a;return!((a=this.data)==null||!a.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()}; g.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1}; g.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1}; g.computeForce16By9ThumbnailAspectRatio=function(){var a,b;return((a=this.data)==null?void 0:(b=a.responsiveContainerConfiguration)==null?void 0:b.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1}; g.onSectionReactiveDismissal=function(a,b,c){var d,e;var f=(d=this.data)==null?void 0:(e=d.targetingContext)==null?void 0:e.targetGroupId;this&&f&&b.targetGroupId&&f.includes(b.targetGroupId)?(d=this.rowIndex,a=d===void 0?!1:!(b.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&d<=a)):a=!1;a&&(this.hidden=c)}; ba.Object.defineProperties(UU.prototype,{isExpanded:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.isExpanded)}}, isCollapsed:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null?0:a.isExpanded)}}, currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var a=this.elementsPerRow;this.isPostShelfRenderer()?a=this.postsPerRow:this.isSlimMediaShelfRenderer()?a=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?a=this.slimItemsPerRow-1:this.isGameCardShelf()?a=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(a=this.miniGameCardsPerRow);return a}}, isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&this.isHomePage}}, showBottomDivider:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null?0:a.isBottomDividerHidden)}}, hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var a,b;return!((a=this.data)==null||!a.previousButton)&&!((b=this.data)==null||!b.nextButton)}}, previousButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.firstShownIndex===0,ariaHidden:!0,tabIndex:-1}}}, nextButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.atEnd,ariaHidden:!0,tabIndex:-1}}}, isHomePage:{configurable:!0,enumerable:!0,get:function(){var a;return((a=Fn().resolve(CK).getCurrentPage())==null?void 0:a.pageSubtype)==="home"}}, thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d;return!((a=this.data)==null?0:(b=a.thumbnail)==null?0:(c=b.accessibility)==null?0:(d=c.accessibilityData)==null?0:d.label)}}, entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}}, rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}}); UU.prototype.onChildElementFocus=UU.prototype.onChildElementFocus;UU.prototype.handleRerenderDownloadsData=UU.prototype.handleRerenderDownloadsData;UU.prototype.onDataChange=UU.prototype.onDataChange;UU.prototype.onRowIndexChange=UU.prototype.onRowIndexChange;n([F($C.YtRendererstamperBehavior),r("design:type",Object)],UU.prototype,"ytRendererstamperBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],UU.prototype,"ytRendererBehavior",void 0); n([F(NQ),r("design:type",Object)],UU.prototype,"ytdDismissibleItemBehavior",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],UU.prototype,"actionHandlerBehavior",void 0);n([F(kC),r("design:type",Object)],UU.prototype,"ytdReduxBehavior",void 0);n([M({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),r("design:type",Object)],UU.prototype,"useResponsiveGrid",void 0);n([M(),r("design:type",Object)],UU.prototype,"data",void 0); n([M(),r("design:type",Number)],UU.prototype,"standardUnitMinWidth",void 0);n([M({reflectToAttribute:!0,value:3}),r("design:type",Number)],UU.prototype,"elementsPerRow",void 0);n([M({value:3}),r("design:type",Number)],UU.prototype,"postsPerRow",void 0);n([M({value:6}),r("design:type",Number)],UU.prototype,"slimItemsPerRow",void 0);n([M({value:6}),r("design:type",Number)],UU.prototype,"gameCardsPerRow",void 0);n([M({value:6}),r("design:type",Number)],UU.prototype,"miniGameCardsPerRow",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],UU.prototype,"hidden",void 0);n([M(),r("design:type",Object)],UU.prototype,"isShowMoreHidden",void 0);n([M(),r("design:type",Object)],UU.prototype,"isShowLessHidden",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],UU.prototype,"hasExpansionButton",void 0);n([H("data.isExpanded"),r("design:type",Boolean),r("design:paramtypes",[])],UU.prototype,"isExpanded",null); n([H("data.isExpanded"),r("design:type",Boolean),r("design:paramtypes",[])],UU.prototype,"isCollapsed",null);n([M({reflectToAttribute:!0}),r("design:type",Object)],UU.prototype,"isInnerShelf",void 0);n([M({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),r("design:type",Boolean)],UU.prototype,"isShorts",void 0);n([M({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),r("design:type",Boolean)],UU.prototype,"isLumiere",void 0); n([M({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),r("design:type",Boolean)],UU.prototype,"hasBoxArtThumbnailStyle",void 0);n([M({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),r("design:type",Boolean)],UU.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);n([M({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),r("design:type",Boolean)],UU.prototype,"hasFeaturedBadge",void 0); n([M({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),r("design:type",Boolean)],UU.prototype,"hasPaygatedFeaturedBadge",void 0);n([M({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),r("design:type",Boolean)],UU.prototype,"isHeaderHidden",void 0);n([M({selector:function(a){return qZa(a.entities).length}}), r("design:type",Object)],UU.prototype,"allVideosCount",void 0);n([M({selector:function(a){return vZa(a.entities).length}}), r("design:type",Object)],UU.prototype,"allPlaylistCount",void 0);n([M({selector:function(a){return sC(a.entities).every(function(b){var c;return(b==null?void 0:(c=b.transferEntity)==null?void 0:c.transferState)&&!eZa.includes(b.transferEntity.transferState)})}}), r("design:type",Object)],UU.prototype,"haveSmartDownloadsCompleted",void 0); n([M({selectorArgs:["entitySelectorType"],selector:function(a,b){if(b&&b!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var c=a.entities;switch(b){case"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":b=sC(c);a=TU(b);var d=lZa(b);c=VZa(c);c=sK(aYb(d,c,b.length));return{contents:a,subtitle:c};case"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return c=sC(c),{contents:TU(c)};case"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return c=QZa(c),{contents:TU(c)}; case"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return c=MZa(c),{contents:TU(c)};default:fo(new Dl("Error: entitySelectorType defined but not matched in selector.",a,b));}}}}), r("design:type",Object)],UU.prototype,"entityDrivenRichShelfData",void 0);n([M({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),r("design:type",Boolean)],UU.prototype,"hasTopCtaButton",void 0);n([M({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),r("design:type",Boolean)],UU.prototype,"hasBottomCtaButton",void 0); n([M({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),r("design:type",Boolean)],UU.prototype,"force16By9ThumbnailAspectRatio",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],UU.prototype,"restrictContentsOverflow",void 0);n([M({selector:a_a}),r("design:type",Boolean)],UU.prototype,"inlinePreviewIsEnabled",void 0);n([M({computed:"computeSizing(data)"}),r("design:type",String)],UU.prototype,"sizing",void 0); n([M(),r("design:type",Boolean)],UU.prototype,"typographyBump",void 0);n([M(),r("design:type",Number)],UU.prototype,"itemWidth",void 0);n([M(),r("design:type",Object)],UU.prototype,"firstShownIndex",void 0);n([M(),r("design:type",Object)],UU.prototype,"horizontalOffset",void 0);n([M(),r("design:type",Object)],UU.prototype,"atEnd",void 0);n([Tt("#contents"),r("design:type",HTMLElement)],UU.prototype,"contents",void 0); n([Lt("data.rowIndex"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],UU.prototype,"onRowIndexChange",null);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],UU.prototype,"onDataChange",null);n([Lt("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],UU.prototype,"handleRerenderDownloadsData",null); n([Kt("focusin"),r("design:type",Function),r("design:paramtypes",[Event]),r("design:returntype")],UU.prototype,"onChildElementFocus",null);n([M({reflectToAttribute:!0}),H("data","isHomePage"),r("design:type",Boolean),r("design:paramtypes",[])],UU.prototype,"isTruncated",null);n([M({reflectToAttribute:!0}),H("data"),r("design:type",Boolean),r("design:paramtypes",[])],UU.prototype,"showBottomDivider",null); n([M({reflectToAttribute:!0}),H("data"),r("design:type",Object),r("design:paramtypes",[])],UU.prototype,"hasChevronButtons",null);n([H("firstShownIndex"),r("design:type",Object),r("design:paramtypes",[])],UU.prototype,"previousButtonOverride",null);n([H("atEnd"),r("design:type",Object),r("design:paramtypes",[])],UU.prototype,"nextButtonOverride",null);n([H("data"),r("design:type",Boolean),r("design:paramtypes",[])],UU.prototype,"isHomePage",null); n([H("data"),r("design:type",Boolean),r("design:paramtypes",[])],UU.prototype,"thumbnailAriaHidden",null);n([H("data"),r("design:type",String),r("design:paramtypes",[])],UU.prototype,"entitySelectorType",null);n([gu({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],UU); var dYb=Uu()(UU,"ytd-rich-shelf-renderer",function(){if(bYb===void 0){var a=document.createElement("template");Q(a,"
\n
\n
\n

\n \n \n

\n
\n \n \n \n \n \n \n
\n
\n \n
\n
\n
\n
\n \n \n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);bYb=a}a=bYb;return a},{allowedProps:["data", "isInnerShelf","standardUnitMinWidth"],mode:2});var eYb;var fYb=[10,12,14,16,18,20,24,28,32,36],gYb=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],VU=function(){var a=E.apply(this,arguments)||this;a.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";a.hideOverflow=!1;a.useRoboto=!1;a.fontClass="";a.overflown=!1;a.actionMap={"yt-window-resized":"resize"};return a}; k(VU,E);g=VU.prototype; g.attached=function(){var a=this;switch(this.fontFamily){case"PROMO_FONT_FAMILY_ROBOTO_BOLD":this.useRoboto=!0;this.fontWeight=700;break;case"PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD":this.useRoboto=!1;this.fontWeight=700;break;case"PROMO_FONT_FAMILY_YOUTUBE_SANS_MEDIUM":this.useRoboto=!1;this.fontWeight=500;break;case"PROMO_FONT_FAMILY_YOUTUBE_SANS_SEMIBOLD":this.useRoboto=!1;this.fontWeight=600;break;case"PROMO_FONT_FAMILY_YOUTUBE_SANS_LIGHT":this.useRoboto=!1;this.fontWeight=400;break;default:this.useRoboto= !1,this.fontWeight=700;}this.setParentConstraints();ms(this,function(){a.resize()}); if(!xd){var b,c,d;(b=document)==null||(c=b.fonts)==null||(d=c.ready)==null||d.then(function(){a.resize()})}}; g.dataChanged=function(){this.resize()}; g.guideIsExpandedChanged=function(){this.resize()}; g.resize=function(){if(this.textNode.offsetWidth||this.textNode.offsetWidth){this.overflown&&(this.overflown=!1,this.textNode.classList.remove("overflown"));this.textNode.style.visibility="hidden";var a=this.getMaxNumLines(),b=this.getMinFont(),c=this.getMaxFont(),d=this.useRoboto?fYb:gYb;for(d=d.filter(function(f){return f<=c&&f>=b});d.length>1;){var e=Math.floor(d.length/2); this.updateFontSize(d[e]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=a)d=d.slice(e,d.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>a)d=d.slice(0,e);else break}this.updateFontSize(d[d.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(a)}}; g.handleOverflow=function(a){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>a&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",a.toString()))}; g.updateFontSize=function(a){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+a;this.textNode.classList.add(this.fontClass)}; g.getMaxFont=function(){var a=this.useRoboto?fYb:gYb;a=a[a.length-1];return this.maxFontSize&&this.maxFontSize<=a?this.maxFontSize:a}; g.getMinFont=function(){var a=(this.useRoboto?fYb:gYb)[0];return this.minFontSize&&this.minFontSize>=a?this.minFontSize:a}; g.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth}; g.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight}; g.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+lz(this.text).split("\n").length-1:Infinity}; g.setParentConstraints=function(){this.maxWidth&&(this.containerNode.style.maxWidth=this.maxWidth+"px");this.maxHeight&&(this.containerNode.style.maxHeight=this.maxHeight+"px");if(this.fontWeight){if(this.useRoboto&&this.fontWeight!==400&&this.fontWeight!==500)throw Error(this.fontWeight+" is not an approved Roboto font weight.");this.textNode.style.fontWeight=this.fontWeight.toString()}}; VU.prototype.guideIsExpandedChanged=VU.prototype.guideIsExpandedChanged;VU.prototype.dataChanged=VU.prototype.dataChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],VU.prototype,"ytRendererBehavior",void 0);n([F(kC),r("design:type",Object)],VU.prototype,"ytdReduxBehavior",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],VU.prototype,"actionHandlerBehavior",void 0);n([M(),r("design:type",Object)],VU.prototype,"text",void 0); n([M(),r("design:type",String)],VU.prototype,"fontFamily",void 0);n([M(),r("design:type",Number)],VU.prototype,"maxWidth",void 0);n([M(),r("design:type",Number)],VU.prototype,"maxHeight",void 0);n([M(),r("design:type",Number)],VU.prototype,"maxFontSize",void 0);n([M(),r("design:type",Number)],VU.prototype,"minFontSize",void 0);n([M(),r("design:type",Number)],VU.prototype,"maxLines",void 0);n([M(),r("design:type",Object)],VU.prototype,"hideOverflow",void 0); n([M({selector:WZa}),r("design:type",Boolean)],VU.prototype,"guideIsExpanded",void 0);n([Tt("#container"),r("design:type",HTMLElement)],VU.prototype,"containerNode",void 0);n([Tt("#text"),r("design:type",HTMLElement)],VU.prototype,"textNode",void 0);n([cu("text"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],VU.prototype,"dataChanged",null); n([cu("guideIsExpanded"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],VU.prototype,"guideIsExpandedChanged",null);n([gu({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],VU); Tu(VU,"yt-dynamic-sizing-formatted-string",function(){if(eYb!==void 0)return eYb;var a=document.createElement("template");Q(a,"
\n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return eYb=a},{mode:1});var hYb;bB(lS,"yt-thumbnail-view-model",{props:{data:$A,aspectRatio:$A,width:$A,height:$A,disableRounding:$A,isClip:$A,className:$A,hovered:$A,playbackRef:$A,lockupExperiments:$A}});function iYb(a){switch(a){case 0:return"ytBrNzBadgeShapeBadgeStyleTypeNzRatingGreenCircle";case 1:return"ytBrNzBadgeShapeBadgeStyleTypeNzRatingYellowCircle";case 2:return"ytBrNzBadgeShapeBadgeStyleTypeNzRatingRedSquare";case 3:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallGreenSquare";case 4:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallBlueSquare";case 5:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeBlueSquare";case 6:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallYellowSquare";case 7:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeYellowSquare"; case 8:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallOrangeSquare";case 9:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeOrangeSquare";case 10:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallRedSquare";case 11:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeRedSquare";case 12:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallBlackSquare";case 13:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeBlackSquare";}} var jYb=O(function(a){var b=a.data;return D("br-nz-badge-shape",{class:U(function(){return iYb(b().brNzRatingBadgeType)}), role:function(){return b().accessibilityText?"img":void 0}, "aria-label":function(){return b().accessibilityText}},function(){var c; return(c=b())==null?void 0:c.text})},"Fc");function kYb(a){switch(a){case"BADGE_COMMERCE":case"BADGE_MEMBERS_ONLY":return 10;case"BADGE_DISCOUNT":return 8;case"BADGE_STATUS_NEW":return 13;case"BADGE_PREMIUM":return 7;case"BADGE_PROMOTED":return 4;case"BADGE_PROMOTED_INVERTED":return 5;case"BADGE_MEDIA":return 1;case"BADGE_TIMELY":return 6;case"BADGE_LIVE_NOW":return 19;default:return 0;}} function lYb(a){switch(a){case"BADGE_NZ_RATING_GREEN_CIRCLE":return 0;case"BADGE_NZ_RATING_YELLOW_CIRCLE":return 1;case"BADGE_NZ_RATING_RED_SQUARE":return 2;case"BADGE_BR_RATING_SMALL_GREEN_SQUARE":return 3;case"BADGE_BR_RATING_SMALL_BLUE_SQUARE":return 4;case"BADGE_BR_RATING_LARGE_BLUE_SQUARE":return 5;case"BADGE_BR_RATING_SMALL_YELLOW_SQUARE":return 6;case"BADGE_BR_RATING_LARGE_YELLOW_SQUARE":return 7;case"BADGE_BR_RATING_SMALL_ORANGE_SQUARE":return 8;case"BADGE_BR_RATING_LARGE_ORANGE_SQUARE":return 9; case"BADGE_BR_RATING_SMALL_RED_SQUARE":return 10;case"BADGE_BR_RATING_LARGE_RED_SQUARE":return 11;case"BADGE_BR_RATING_SMALL_BLACK_SQUARE":return 12;case"BADGE_BR_RATING_LARGE_BLACK_SQUARE":return 13;}} ;var DD=O(function(a){var b=function(){var c=a.data(),d,e,f,h,m;if(c){var p=!((d=a.workaroundShortsIsThumbnailBadge)==null||!d.call(a));d=(e=a.modern)==null?void 0:e.call(a);e=(f=a.numBadgesInRow)==null?void 0:f.call(a);f=(h=a.clipTextOverflow)==null?void 0:h.call(a);h=(m=a.inheritTypography)==null?void 0:m.call(a);var q,t;a:switch(c.badgeStyle){case"BADGE_OVERLAY":m=!0;break a;default:m=!1;}p={type:p?18:kYb(c.badgeStyle),brNzRatingBadgeType:lYb(c.badgeStyle),text:c.badgeText,icon:c.iconName,isOverlay:m, modern:d||x("web_modern_badge_view_model"),accessibilityText:c.accessibilityLabel||((q=z(c.rendererContext,dy))==null?void 0:q.label),numBadgesInRow:e,clipTextOverflow:f,shouldInheritTypography:h,tooltipHoverText:(t=z(c.tooltipOnHover,Osb))==null?void 0:t.tooltipText}}else p=void 0;return p}; return D("yt-badge-view-model",{class:U("ytBadgeViewModelHost",a.class)},D(pw,null,D(jw,{when:function(){var c;return!((c=b())==null||!c.brNzRatingBadgeType)}},function(){return D(jYb,{data:function(){return b()}})}),D(jw,{when:function(){return!!b()&&!b().brNzRatingBadgeType}},function(){return D(DT,{data:function(){return b()}})})))},"Gc"); DD.idomCompat=!0;bB(DD,"yt-badge-view-model",{props:{data:$A,class:$A,workaroundShortsIsThumbnailBadge:$A,modern:$A,numBadgesInRow:$A,clipTextOverflow:$A,inheritTypography:$A}});var nYb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("jJfCod"),2);a=mYb;return b.return(a)})},oYb=yD(function(){return nYb()},{debugName:"surveyIcons"}); Gn(xD,function(a){a.registerLoadFn("surveyIcons","jJfCod",nYb)});var pYb=O(function(a){var b=dB(MD(function(){var p;return(p=a.data())==null?void 0:p.rendererContext},void 0,void 0,void 0,!0)),c=l(ip(!1,void 0,"gFr6Mb")),d=c.next().value,e=c.next().value,f=fL(LNb,function(){var p; return(p=a.data().keys)==null?void 0:p.surveyEntityKey}),h=fL(MNb,function(){var p; return(p=a.data().keys)==null?void 0:p.surveyStateEntityKey}); CH("ytd-slimline-survey-show-action",function(){e(!1)}); var m=function(){var p,q;var t=(p=h())==null?void 0:(q=p.questionStack)==null?void 0:q[0];if(t!==void 0){var u,v;return(u=f())==null?void 0:(v=u.questions)==null?void 0:v[t]}}; c={};return D("yt-slimline-survey-view-model",{el:b,class:U("ytSlimlineSurveyViewModelHost",(c.ytSlimlineSurveyViewModelCollapsed=function(){return d()},c))},D("div",{class:"ytSlimlineSurveyViewModelContainer"},D(P,{cond:function(){var p; return((p=m())==null?void 0:p.layout)==="SURVEY_LAYOUT_TYPE_ICONS"}, then:function(){return D(oYb,{data:function(){return m()}, onSelect:function(p,q){var t,u;return ra(function(v){e(!0);if(u=(t=a.data())==null?void 0:t.onSelectRating)QB(u),Bu(IVa(q));v.jumpToEnd()})}, onDismiss:function(){e(!0);var p;var q=(p=f())==null?void 0:p.dismissalFeedbackToken;p=q?{feedbackEndpoint:{feedbackToken:q}}:void 0;p&&OB(p,{form:{element:b.value}})}})}})))},"Hc");bB(pYb,"yt-slimline-survey-view-model",{props:{data:$A}});var WU=function(){var a=E.apply(this,arguments)||this;a.tileLottieAnimationRef={};a.backgroundLottieAnimationRef={};a.isOnHoverBehaviorForLottieEnabled=!0;a.useBiggerShowcaseImage=x("enable_desktop_search_bigger_thumbs");a.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return a}; k(WU,E);g=WU.prototype;g.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)}; g.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",toggleButtonViewModel:"yt-toggle-button-view-model",buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button", mapping:{menuRenderer:"ytd-menu-renderer"}},tileImageViewModel:{id:"tile-image-view-model",mapping:{thumbnailViewModel:{component:"yt-thumbnail-view-model"}}},"data.badge":{id:"badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.additionalBadge":{id:"additional-badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed", mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}}; g.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var a=this.hasStaticTile(this.data)||this.hasTileLottie(this.data)||this.hasThumbnailViewModel(this.data);a!==this.hasTile&&this.set("hasTile",a);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.set("tileImageViewModel",this.getCurrentTileImageViewModel(this.data,this.isDarkTheme));this.maybeInitializeTileLottie();this.maybeInitializeBackgroundLottie()}}; g.hoveredChanged=function(){var a=this.thumbnail;a&&(a.hovered=this.hovered)}; g.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())}; g.currentColorChanged=function(){this.updateButtonPalette()}; g.computeBackgroundStyle=function(a){if(a&&this.data){var b=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var c=DB((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);c&&b.push("background-image: url(\""+c+"\");")}var d;((d=a.basicColorData)==null?void 0:d.backgroundColor)!==void 0&&b.push("background-color: "+Jy(a.basicColorData.backgroundColor)+";");return b.join("")}}; g.onDarkModeToggledAction=function(a){a!==this.isDarkTheme&&this.set("isDarkTheme",a)}; g.getCurrentLogo=function(a,b){if(a)return b?a.darkLogoImage:a.lightLogoImage}; g.getCurrentTileImageViewModel=function(a,b){if(a)return a.darkTileImageViewModel?b?a.darkTileImageViewModel:a.tileImageViewModel:a.tileImageViewModel}; g.getCurrentStaticTileImage=function(a,b){if(this.hasStaticTile(a))return a.darkTileImage?b?a.darkTileImage:a.tileImage:a.tileImage}; g.computeTitleStyle=function(a){if(this.data&&this.data.title){var b="";a&&a.basicColorData&&a.basicColorData.foregroundTitleColor!==void 0&&(b+="color:"+Iy(a.basicColorData.foregroundTitleColor)+";");var c,d;if((c=this.data)==null?0:(d=c.primaryButton)==null?0:d.toggleButtonViewModel)b+="pointer-events: none;";return b}}; g.computeTitleA11y=function(a){if(a&&a.title){var b="";a=l(a.title.runs||[]);for(var c=a.next();!c.done;c=a.next())b+=c.value.text;return b}}; g.computeTitleRole=function(a){var b,c;if((a==null?0:(b=a.primaryButton)==null?0:(c=b.buttonRenderer)==null?0:c.command)&&!a.primaryButton.toggleButtonViewModel)return"link"}; g.computeSubtitleStyle=function(a){if(this.data&&this.data.subtitle&&a&&a.basicColorData&&a.basicColorData.foregroundBodyColor!==void 0)return"color:"+Iy(a.basicColorData.foregroundBodyColor)+";"}; g.computeSupplementalStyle=function(a){if(this.data&&this.data.supplementalText&&a&&a.supplementalTextColor!==void 0)return a=Iy(a.supplementalTextColor),"color:"+a+";--yt-endpoint-color:"+a+";--yt-endpoint-hover-color:"+a+";--yt-endpoint-visited-color:"+a+";--yt-formatted-string-bold-font-weight:700;"}; g.computeDismissIconStyle=function(a){var b,c;if((a==null?0:(b=a.dismissButtonColorData)==null?0:b.foregroundTitleColor)&&(a==null?0:(c=a.dismissButtonColorData)==null?0:c.backgroundColor))return"--yt-button-color:"+Jy(a.dismissButtonColorData.foregroundTitleColor)+";background-color:"+Jy(a.dismissButtonColorData.backgroundColor)+";"}; g.computeOverflowIconStyle=function(a){var b,c;if((a==null?0:(b=a.dismissButtonColorData)==null?0:b.foregroundTitleColor)&&(a==null?0:(c=a.dismissButtonColorData)==null?0:c.backgroundColor))return"--ytd-menu-renderer-button-color:"+Jy(a.dismissButtonColorData.foregroundTitleColor)+";background-color:"+Jy(a.dismissButtonColorData.backgroundColor)+";"}; g.computeBannerStyle=function(a){return a?a.toLowerCase().replace(/_/g,"-"):""}; g.computeLocation=function(a){switch(a==null?void 0:a.location){case"LOCATION_CONTEXT_SEARCH_PAGE":return"search";case"LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home";}}; g.shouldShowTileSection=function(a,b,c){return!this.shouldExpandLogo(a,b,c)&&b}; g.shouldShowExpandedLogoSection=function(a,b,c){return this.shouldExpandLogo(a,b,c)&&a!==void 0&&this.hasLogo(a)}; g.shouldExpandLogo=function(a,b,c){return a&&b?!1:c>=2}; g.hasStaticTile=function(a){return!(a==null||!a.tileImage)}; g.hasThumbnailViewModel=function(a){return!(a==null||!a.tileImageViewModel)}; g.hasTileLottie=function(a){var b;return!!(a==null?0:(b=a.tileLottie)==null?0:b.url)}; g.hasLogo=function(a){return this.getCurrentLogo(a,this.isDarkTheme)!==void 0}; g.getLogoHeight=function(a){return this.logoWithPadding(a)?"26":"20"}; g.getExpandedLogoHeight=function(a){return this.logoWithPadding(a)?"31":"24"}; g.getLogoImageId=function(a){return this.logoWithPadding(a)?"logo-image-with-padding":"logo-image"}; g.getMaxTitleFontSize=function(a){return a.overrideTitleMaxFontSize?String(a.overrideTitleMaxFontSize):"36"}; g.hasBackgroundLottie=function(a){var b;return!!(a==null?0:(b=a.backgroundLottie)==null?0:b.url)}; g.onMouseOver=function(){if(this.isOnHoverBehaviorForLottieEnabled){var a,b;(a=this.tileLottieAnimationRef)==null||(b=a.lottieEl)==null||b.play();var c,d;(c=this.backgroundLottieAnimationRef)==null||(d=c.lottieEl)==null||d.play()}this.hovered=!0}; g.onMouseLeave=function(){if(this.isOnHoverBehaviorForLottieEnabled){var a,b;(a=this.tileLottieAnimationRef)==null||(b=a.lottieEl)==null||b.pause();var c,d;(c=this.backgroundLottieAnimationRef)==null||(d=c.lottieEl)==null||d.pause()}this.hovered=!1}; g.pauseLottie=function(){var a,b;(a=this.tileLottieAnimationRef)==null||(b=a.lottieEl)==null||b.pause();var c,d;(c=this.backgroundLottieAnimationRef)==null||(d=c.lottieEl)==null||d.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)}; g.performPrimaryButtonAction=function(){var a,b,c;((a=this.data)==null?0:(b=a.primaryButton)==null?0:(c=b.buttonRenderer)==null?0:c.command)&&!this.data.primaryButton.toggleButtonViewModel&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)}; g.requestElementsPerRow=function(){Gt(this.hostElement,"yt-request-elements-per-row")}; g.updateButtonPalette=function(){if(this.data&&this.currentColorData){var a;((a=this.data.dismissButton)==null?0:a.buttonRenderer)&&this.currentColorData.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.dismissButtonColorData},this.data.dismissButton.buttonRenderer.style=void 0,this.set("dismissButton",{buttonRenderer:Object.assign({},this.data.dismissButton.buttonRenderer)}));var b;if((b=this.data.primaryButton)==null?0:b.buttonRenderer)this.currentColorData.primaryButtonColorData?( this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorData.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorData.primaryButtonStyleType,this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)});var c;if((c=this.data.secondaryButton)== null?0:c.buttonRenderer)this.currentColorData.secondaryButtonColorData?(this.data.secondaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.secondaryButtonColorData},this.data.secondaryButton.buttonRenderer.style=void 0):this.currentColorData.secondaryButtonStyleType&&(this.data.secondaryButton.buttonRenderer.style=this.currentColorData.secondaryButtonStyleType,this.data.secondaryButton.buttonRenderer.colorData=void 0),this.set("secondaryButton",{buttonRenderer:Object.assign({}, this.data.secondaryButton.buttonRenderer)});var d;((d=this.data.primaryButton)==null?0:d.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var e;if((e=this.data.primaryButton)==null?0:e.toggleButtonViewModel){if(this.currentColorData.primaryButtonColorData){var f;if(a=z((f=this.data.primaryButton.toggleButtonViewModel)==null?void 0:f.defaultButtonViewModel,ZJ))a.style="BUTTON_VIEW_MODEL_STYLE_CUSTOM",a.customBackgroundColor= this.currentColorData.primaryButtonColorData.backgroundColor,a.customFontColor=this.currentColorData.primaryButtonColorData.foregroundTitleColor,a.customBorderColor=void 0,a.customDarkThemeBackgroundColor=this.currentColorData.primaryButtonColorData.backgroundColor,a.customDarkThemeFontColor=this.currentColorData.primaryButtonColorData.foregroundTitleColor,a.customDarkThemeBorderColor=void 0;var h;if(f=z((h=this.data.primaryButton.toggleButtonViewModel)==null?void 0:h.toggledButtonViewModel,ZJ))f.style= "BUTTON_VIEW_MODEL_STYLE_CUSTOM",f.customBackgroundColor=this.currentColorData.primaryButtonColorData.backgroundColor,f.customFontColor=this.currentColorData.primaryButtonColorData.foregroundTitleColor,f.customBorderColor=void 0,f.customDarkThemeBackgroundColor=this.currentColorData.primaryButtonColorData.backgroundColor,f.customDarkThemeFontColor=this.currentColorData.primaryButtonColorData.foregroundTitleColor,f.customDarkThemeBorderColor=void 0}this.set("primaryButton",{toggleButtonViewModel:Object.assign({}, this.data.primaryButton.toggleButtonViewModel)})}var m;((m=this.data.secondaryButton)==null?0:m.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)});var p;((p=this.data.primaryButton)==null?0:p.buttonViewModel)&&this.set("primaryButton",{buttonViewModel:Object.assign({},this.data.primaryButton.buttonViewModel)})}}; g.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var a=this.getTileLottieDataBasedOnTheme(),b,c;if(a.url!==((b=this.tileLottiePlayerProps)==null?void 0:(c=b.animationConfig)==null?void 0:c.path)){var d,e;(d=this.tileLottieAnimationRef)==null||(e=d.lottieEl)==null||e.destroy();var f;this.isOnHoverBehaviorForLottieEnabled=!((f=a.settings)==null?0:f.autoplay);var h,m;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_TILE_LOTTIE_DARK": "STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(m=(h=a.settings)==null?void 0:h.autoplay)!=null?m:!1,loop:this.getLottieLoopValue(a.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof a.url==="string"?this.tileLottiePlayerProps.animationConfig.path=a.url:this.tileLottiePlayerProps.animationConfig.animationData=a.url}}}; g.getOverflowButton=function(a){return z(a.overflowButton,SPa)}; g.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var a=this.getBackgroundLottieDataBasedOnTheme(),b,c;if(a.url!==((b=this.backgroundLottiePlayerProps)==null?void 0:(c=b.animationConfig)==null?void 0:c.path)){var d,e;(d=this.backgroundLottieAnimationRef)==null||(e=d.lottieEl)==null||e.destroy();var f;this.isOnHoverBehaviorForLottieEnabled=!((f=a.settings)==null?0:f.autoplay);var h,m;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef, animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(m=(h=a.settings)==null?void 0:h.autoplay)!=null?m:!1,loop:this.getLottieLoopValue(a.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof a.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=a.url:this.backgroundLottiePlayerProps.animationConfig.animationData= a.url}}}; g.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var a;((a=this.tileLottieAnimationRef)==null?void 0:a.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var b;((b=this.backgroundLottieAnimationRef)==null?void 0:b.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}}; g.getTileLottieDataBasedOnTheme=function(){var a;if(this.isDarkTheme&&((a=this.data)==null?0:a.darkThemeTileLottie))return this.data.darkThemeTileLottie;var b;return((b=this.data)==null?0:b.tileLottie)?this.data.tileLottie:{}}; g.getBackgroundLottieDataBasedOnTheme=function(){var a;if(this.isDarkTheme&&((a=this.data)==null?0:a.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var b;return((b=this.data)==null?0:b.backgroundLottie)?this.data.backgroundLottie:{}}; g.onUpdateElementsPerRowAction=function(a){a&&this.elementsPerRow!==a&&(this.elementsPerRow=a)}; g.getLottieLoopValue=function(a){return a?a.loop!==void 0?a.loop:a.loopCount?a.loopCount-1:!0:!0}; g.logoWithPadding=function(a){var b,c,d;return(a=(b=this.getCurrentLogo(a,this.isDarkTheme))==null?void 0:(c=b.thumbnails)==null?void 0:(d=c[0])==null?void 0:d.height)&&a%31===0?!0:!1}; WU.prototype.currentColorChanged=WU.prototype.currentColorChanged;WU.prototype.themeChanged=WU.prototype.themeChanged;WU.prototype.hoveredChanged=WU.prototype.hoveredChanged;WU.prototype.dataChanged=WU.prototype.dataChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],WU.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],WU.prototype,"ytRendererstamperBehavior",void 0); n([F(NQ),r("design:type",Object)],WU.prototype,"ytdDismissibleItemBehavior",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],WU.prototype,"actionHandlerBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],WU.prototype,"ytComponentBehavior",void 0);n([M(),r("design:type",Object)],WU.prototype,"data",void 0);n([M(),r("design:type",Object)],WU.prototype,"primaryButton",void 0);n([M(),r("design:type",Object)],WU.prototype,"tileImageViewModel",void 0); n([M({reflectToAttribute:!0,value:!1}),r("design:type",Object)],WU.prototype,"secondaryButton",void 0);n([M({reflectToAttribute:!0,value:3}),r("design:type",Number)],WU.prototype,"elementsPerRow",void 0);n([M({reflectToAttribute:!0,value:!1}),r("design:type",Boolean)],WU.prototype,"isDarkTheme",void 0);n([M({reflectToAttribute:!0,value:!1}),r("design:type",Boolean)],WU.prototype,"hasTile",void 0);n([M({reflectToAttribute:!0,value:!1}),r("design:type",Boolean)],WU.prototype,"hasMetadata",void 0); n([M({reflectToAttribute:!0,value:!1}),r("design:type",Boolean)],WU.prototype,"showLogoImage",void 0);n([M({reflectToAttribute:!0,value:!1}),r("design:type",Boolean)],WU.prototype,"hovered",void 0);n([M(),r("design:type",Object)],WU.prototype,"currentColorData",void 0);n([M({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),r("design:type",String)],WU.prototype,"bannerStyle",void 0); n([M({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),r("design:type",String)],WU.prototype,"location",void 0);n([M(),r("design:type",Object)],WU.prototype,"tileLottiePlayerProps",void 0);n([M(),r("design:type",Object)],WU.prototype,"tileLottieAnimationRef",void 0);n([M(),r("design:type",Object)],WU.prototype,"backgroundLottiePlayerProps",void 0);n([M(),r("design:type",Object)],WU.prototype,"backgroundLottieAnimationRef",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],WU.prototype,"useBiggerShowcaseImage",void 0);n([Tt("yt-thumbnail-view-model"),r("design:type",HTMLElement)],WU.prototype,"thumbnail",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],WU.prototype,"isHideEnclosingAction",void 0);n([cu("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],WU.prototype,"dataChanged",null); n([Lt("hovered"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],WU.prototype,"hoveredChanged",null);n([cu("isDarkTheme"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],WU.prototype,"themeChanged",null);n([cu("currentColorData"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],WU.prototype,"currentColorChanged",null);n([gu({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],WU); Tu(WU,"ytd-statement-banner-renderer",function(){if(hYb!==void 0)return hYb;var a=document.createElement("template");Q(a,"
\n
\n
\n
\n
\n \n \n
\n
\n

\n
\n \n \n
\n

\n
\n \n \n
\n
\n \n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n \n \n
\n
\n
\n
\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return hYb=a},{mode:1});var qYb;var XU=function(){var a=E.apply(this,arguments)||this;a.isSearch=!1;a.isChannel=!1;a.hideShelfHeader=!1;a.engagementPanel=!1;a.sdRedesign=x("desktop_include_oswald");a.disableMouseScroll=!0;a.useFloorScrolling=!0;return a}; k(XU,E);XU.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:zy("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:zy("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})}; XU.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}}; XU.prototype.onDataChanged=XU.prototype.onDataChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],XU.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],XU.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],XU.prototype,"isSearch",void 0);n([M(),r("design:type",Object)],XU.prototype,"isChannel",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],XU.prototype,"hideShelfHeader",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],XU.prototype,"engagementPanel",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],XU.prototype,"sdRedesign",void 0);n([M(),r("design:type",Object)],XU.prototype,"disableMouseScroll",void 0);n([M(),r("design:type",Object)],XU.prototype,"useFloorScrolling",void 0);n([M(),r("design:type",Object)],XU.prototype,"data",void 0); n([cu("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],XU.prototype,"onDataChanged",null);n([gu({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],XU); Tu(XU,"ytd-reel-shelf-renderer",function(){if(qYb!==void 0)return qYb;var a=document.createElement("template");Q(a,"
\n
\n \n \n
\n \n
\n
\n
\n \n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return qYb=a},{mode:2});var rYb;var sYb=la(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]),tYb=Lh(sYb);var uYb=O(function(a){var b=a.data;a=a.useSmallFont;var c={},d={};return D("yt-channel-external-link-view-model",{class:"ytChannelExternalLinkViewModelHost"},D(P,{cond:function(){return b().favicon}, then:function(e){return D(eC,{data:e,className:"ytChannelExternalLinkViewModelFavicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),D("div",{class:"ytChannelExternalLinkViewModelContainer"},D(gC,{text:function(){return b().title}, className:U("ytChannelExternalLinkViewModelTitle",(c.ytChannelExternalLinkViewModelTitleSmallFont=a,c)),ellipsisTruncate:!0,userInput:!0}),D(gC,{text:function(){return b().link}, className:U("ytChannelExternalLinkViewModelLink",(d.ytChannelExternalLinkViewModelLinkSmallFont=a,d)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Ic"); uYb.idomCompat=!0;bB(uYb,"yt-channel-external-link-view-model",{props:{data:$A,useSmallFont:$A}});kE("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var YU=function(){var a=E.apply(this,arguments)||this;a.revealButtonClass="button";a.businessEmailDisplayState="HIDE_SECTION";return a}; k(YU,E);g=YU.prototype;g.refit=function(){var a=this;bt(function(){Yu(a.hostElement,"yt-refit-popups-action")}); ms(this,function(){Yu(a.hostElement,"yt-refit-popups-action")})}; g.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(wv(tYb),this.businessEmailDisplayState="CAPTCHA")}; g.businessEmailMetadataChanged=function(){this.revealButton||this.businessEmail||this.metadata.signInForBusinessEmail?this.metadata.signInForBusinessEmail?this.businessEmailDisplayState="SIGN_IN_REQUIRED":this.businessEmailErrorMessage?this.businessEmailDisplayState="ERROR_MESSAGE":(this.businessEmailDisplayState="REVEAL_BUTTON",this.metadata.businessEmail&&(this.businessEmail=this.metadata.businessEmail)):this.businessEmailDisplayState="HIDE_SECTION"}; g.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"}; g.configureRendererStamper=function(){return{"data.flaggingButton":{id:"flagging-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.shareChannel":{id:"share-channel",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"metadata.links":{id:"link-list-container",mapping:{channelExternalLinkViewModel:"yt-channel-external-link-view-model"}}}}; g.computeEmailHref=function(a){return"mailto:"+a}; g.computeSafeUrl=function(a){if(a)return Fb(a)}; g.linkEndpoint=function(a){return z(a.onTap,ny)}; g.linkEndpointToHref=function(a){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(a))}; g.onYtServiceRequestCompleted=function(a){var b;if((b=a.detail.data)==null?0:b.businessEmail)this.businessEmail=a.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var c;if((c=a.detail.data)==null?0:c.errorMessage)this.businessEmailErrorMessage=a.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}}; g.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var a=this.captchaTextarea.value;if(a){a={recaptcha_response_token:a,channel_id:this.metadata.channelId};var b=z(this.metadata.onBusinessEmailRevealClickCommand,ny);b&&this.ytComponentBehavior.resolveCommand(b,{form:a})}}}; g.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"}; ba.Object.defineProperties(YU.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var a;return z((a=this.data)==null?void 0:a.metadata,Klb)}}, revealButton:{configurable:!0,enumerable:!0,get:function(){return z(this.metadata.businessEmailRevealButton,ZJ)}}, channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var a=new URL(this.metadata.canonicalChannelUrl);return a.host+a.pathname}}}, formattedDescription:{configurable:!0,enumerable:!0,get:function(){return this.metadata.description?{simpleText:this.metadata.description}:void 0}}, shouldRendereVerifiedPhoneStatus:{configurable:!0,enumerable:!0,get:function(){return this.metadata.phoneVerifiedLabel!==""&&this.learnMoreCommand!==void 0}}, learnMoreCommand:{configurable:!0,enumerable:!0,get:function(){return z(this.metadata.learnMoreOnTap,ny)}}}); YU.prototype.onYtServiceRequestCompleted=YU.prototype.onYtServiceRequestCompleted;YU.prototype.businessEmailMetadataChanged=YU.prototype.businessEmailMetadataChanged;YU.prototype.refit=YU.prototype.refit;n([F(mz.YtComponentBehavior),r("design:type",Object)],YU.prototype,"ytComponentBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],YU.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],YU.prototype,"ytRendererstamperBehavior",void 0); n([Tt("#g-recaptcha-response"),r("design:type",HTMLTextAreaElement)],YU.prototype,"captchaTextarea",void 0);n([M(),r("design:type",Object)],YU.prototype,"data",void 0);n([M(),r("design:type",Object)],YU.prototype,"revealButtonClass",void 0);n([H("data"),r("design:type",Object),r("design:paramtypes",[])],YU.prototype,"metadata",null);n([H("metadata"),r("design:type",Object),r("design:paramtypes",[])],YU.prototype,"revealButton",null); n([H("metadata"),r("design:type",Object),r("design:paramtypes",[])],YU.prototype,"channelDisplayUrl",null);n([cu("metadata"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],YU.prototype,"refit",null);n([H("metadata"),r("design:type",Object),r("design:paramtypes",[])],YU.prototype,"formattedDescription",null);n([H("metadata","learnMoreCommand"),r("design:type",Boolean),r("design:paramtypes",[])],YU.prototype,"shouldRendereVerifiedPhoneStatus",null); n([H("metadata"),r("design:type",Object),r("design:paramtypes",[])],YU.prototype,"learnMoreCommand",null);n([M(),r("design:type",String)],YU.prototype,"businessEmailDisplayState",void 0);n([M(),r("design:type",String)],YU.prototype,"businessEmail",void 0);n([M(),r("design:type",String)],YU.prototype,"businessEmailErrorMessage",void 0);n([cu("metadata"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],YU.prototype,"businessEmailMetadataChanged",null); n([Kt("yt-service-request-completed"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],YU.prototype,"onYtServiceRequestCompleted",null);n([gu({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],YU); Tu(YU,"ytd-about-channel-renderer",function(){if(rYb!==void 0)return rYb;var a=document.createElement("template");Q(a,"
\n \n\n \n \n\n \n\n \n \n\n
\n \n \n \n \n\n \n\n \n\n \n \n\n \n \n\n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n
\n\n
\n
\n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return rYb=a},{mode:1});var vYb;var ZU=function(){return E.apply(this,arguments)||this}; k(ZU,E);ZU.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}}; ba.Object.defineProperties(ZU.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return!!this.isGridViewEnabled}}, thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled?"9999":"168"}}, customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled?"":"94"}}}); n([F(Yz.YtRendererBehavior),r("design:type",Object)],ZU.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],ZU.prototype,"ytRendererstamperBehavior",void 0);n([F(NQ),r("design:type",Object)],ZU.prototype,"ytdDismissibleItemBehavior",void 0);n([F(kC),r("design:type",Object)],ZU.prototype,"ytdReduxBehavior",void 0);n([M({selector:sR}),r("design:type",Object)],ZU.prototype,"isGridViewEnabled",void 0); n([H("isGridViewEnabled"),M({reflectToAttribute:!0}),r("design:type",Boolean),r("design:paramtypes",[])],ZU.prototype,"watchFeedBigThumbs",null);n([H("isGridViewEnabled","data"),M({reflectToAttribute:!0,value:"168"}),r("design:type",String),r("design:paramtypes",[])],ZU.prototype,"thumbnailWidth",null);n([H("isGridViewEnabled","data"),M({reflectToAttribute:!0,value:"94"}),r("design:type",String),r("design:paramtypes",[])],ZU.prototype,"customThumbnailSize",null); n([M(),r("design:type",Object)],ZU.prototype,"data",void 0);n([gu({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],ZU); Tu(ZU,"ytd-compact-playlist-renderer",function(){if(vYb!==void 0)return vYb;var a=document.createElement("template");Q(a,"\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return vYb=a},{mode:1});var wYb;var $U=function(){return E.apply(this,arguments)||this}; k($U,E);$U.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}}; $U.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")}; $U.prototype.onYtNavigate=function(a,b){var c=this;if(b.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",b)){var d=this.get("watchEndpoint.videoId",b.endpoint),e=Yu(this.hostElement,"yt-get-current-video-id-action")[0];x("kevlar_mix_handle_first_endpoint_different")&&d&&e&&d!==e||(a.stopPropagation(),yO().getPlayerPromise().then(function(f){if(f.getPlayerState()===0&&c.data.secondaryNavigationEndpoint)var h=c.data.secondaryNavigationEndpoint;else{h=Object.assign({}, b.endpoint);var m=z(h.commandMetadata,ly);m&&(f=Math.floor(f.getCurrentTime()),m.url=$c(m.url,{t:f}),!x("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(m=z(h,py)))&&(m.startTimeSeconds=f)}Gt(c.hostElement,"yt-navigate",{endpoint:h})}))}}; ba.Object.defineProperties($U.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return!!this.isGridViewEnabled}}, thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled?"9999":"168"}}, collectionStack:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d,e,f;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(a=this.data)==null?void 0:(b=a.thumbnail)==null?void 0:b.sampledThumbnailColor,vibrantColorPalette:(c=this.data)==null?void 0:(d=c.thumbnail)==null?void 0:d.vibrantColorPalette,darkColorPalette:(e=this.data)==null?void 0:(f=e.thumbnail)==null?void 0:f.darkColorPalette,experimentEnabled:!0}}}}); $U.prototype.onYtNavigate=$U.prototype.onYtNavigate;n([F(Yz.YtRendererBehavior),r("design:type",Object)],$U.prototype,"ytRendererBehavior",void 0);n([F(zB.YtEndpointBehavior),r("design:type",Object)],$U.prototype,"ytEndpointBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],$U.prototype,"ytRendererstamperBehavior",void 0);n([F(NQ),r("design:type",Object)],$U.prototype,"ytdDismissibleItemBehavior",void 0); n([F(bR),r("design:type",Object)],$U.prototype,"ytdLockupBehavior",void 0);n([F(kC),r("design:type",Object)],$U.prototype,"ytdReduxBehavior",void 0);n([M({selector:sR}),r("design:type",Object)],$U.prototype,"isGridViewEnabled",void 0);n([H("isGridViewEnabled"),M({reflectToAttribute:!0}),r("design:type",Boolean),r("design:paramtypes",[])],$U.prototype,"watchFeedBigThumbs",null); n([H("isGridViewEnabled"),M({reflectToAttribute:!0}),r("design:type",String),r("design:paramtypes",[])],$U.prototype,"thumbnailWidth",null);n([M(),r("design:type",Object)],$U.prototype,"data",void 0);n([H("data"),r("design:type",Object),r("design:paramtypes",[])],$U.prototype,"collectionStack",null);n([Kt("yt-navigate"),r("design:type",Function),r("design:paramtypes",[CustomEvent,Object]),r("design:returntype")],$U.prototype,"onYtNavigate",null); n([gu({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],$U); Tu($U,"ytd-compact-radio-renderer",function(){if(wYb!==void 0)return wYb;var a=document.createElement("template");Q(a,"\n
\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return wYb=a},{mode:1});var xYb;var aV=function(){return E.apply(this,arguments)||this}; k(aV,E);aV.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}}; aV.prototype.computeRendererStyle=function(a){return a.style?a.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""}; n([M(),r("design:type",Object)],aV.prototype,"data",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],aV.prototype,"ytRendererstamperBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],aV.prototype,"rendererBehavior",void 0);n([M({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),r("design:type",String)],aV.prototype,"rendererStyle",void 0);n([gu({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],aV); Tu(aV,"ytd-compact-text-promo-renderer",function(){if(xYb!==void 0)return xYb;var a=document.createElement("template");Q(a,"\n\n\n\n\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return xYb=a},{mode:1});var yYb;var bV=function(){var a=E.apply(this,arguments)||this;a.isShortsStyle=!1;return a}; k(bV,E);g=bV.prototype;g.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}}; g.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?Gt(this.hostElement,"yt-disable-lockup-interaction"):Gt(this.hostElement,"yt-enable-lockup-interaction"))}; g.isMetaBlockEmpty=function(a){return!a||!a.longBylineText&&!a.shortBylineText&&!a.shortViewCountText&&!a.viewCountText}; g.computeHasOneLineTitle=function(a){return this.forceOneLineTitle||!(a==null||!a.buttons)}; g.computeDisableInteraction=function(){var a;return!((a=this.data)==null?0:a.navigationEndpoint)}; g.hasSingularTopStandaloneBadge=function(){var a;return!((a=this.data)==null||!a.topStandaloneBadge)}; ba.Object.defineProperties(bV.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return!!this.isGridViewEnabled}}, thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled?"9999":"168"}}, shouldShowTopBadges:{configurable:!0,enumerable:!0,get:function(){return this.hasSingularTopStandaloneBadge()}}, topBadges:{configurable:!0,enumerable:!0,get:function(){var a;return this.hasSingularTopStandaloneBadge()?[(a=this.data)==null?void 0:a.topStandaloneBadge]:[]}}, inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var a;return this.shouldShowTopBadges?((a=this.data)==null?void 0:a.badges)||[]:[]}}, shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}}, compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}}); bV.prototype.disableInteractionChanged=bV.prototype.disableInteractionChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],bV.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],bV.prototype,"ytRendererstamperBehavior",void 0);n([F(NQ),r("design:type",Object)],bV.prototype,"ytdDismissibleItemBehavior",void 0);n([F(bR),r("design:type",Object)],bV.prototype,"ytdLockupBehavior",void 0); n([F(kC),r("design:type",Object)],bV.prototype,"ytdReduxBehavior",void 0);n([M({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),r("design:type",Boolean)],bV.prototype,"metaBlockEmpty",void 0);n([M({selector:sR}),r("design:type",Object)],bV.prototype,"isGridViewEnabled",void 0);n([H("isGridViewEnabled"),M({reflectToAttribute:!0}),r("design:type",Boolean),r("design:paramtypes",[])],bV.prototype,"watchFeedBigThumbs",null); n([H("isGridViewEnabled"),M({reflectToAttribute:!0}),r("design:type",String),r("design:paramtypes",[])],bV.prototype,"thumbnailWidth",null);n([M({reflectToAttribute:!0}),r("design:type",Object)],bV.prototype,"isShortsStyle",void 0);n([M(),r("design:type",Object)],bV.prototype,"data",void 0);n([M({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),r("design:type",Boolean)],bV.prototype,"hasOneLineTitle",void 0);n([M(),r("design:type",Boolean)],bV.prototype,"hideThumbnail",void 0); n([M(),r("design:type",Boolean)],bV.prototype,"forceOneLineTitle",void 0);n([M({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),r("design:type",Boolean)],bV.prototype,"disableInteraction",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],bV.prototype,"musicMetadataVideoLockup",void 0);n([Lt("disableInteraction"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],bV.prototype,"disableInteractionChanged",null); n([H("data"),r("design:type",Boolean),r("design:paramtypes",[])],bV.prototype,"shouldShowTopBadges",null);n([H("data"),r("design:type",Array),r("design:paramtypes",[])],bV.prototype,"topBadges",null);n([H("shouldShowTopBadges","data"),r("design:type",Array),r("design:paramtypes",[])],bV.prototype,"inlineMetadataBadges",null);n([H("shouldShowTopBadges"),r("design:type",Boolean),r("design:paramtypes",[])],bV.prototype,"shouldShowBadgesBelowMetadata",null); n([H("data"),r("design:type",Object),r("design:paramtypes",[])],bV.prototype,"compactTitleClass",null);n([gu({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],bV); Tu(bV,"ytd-compact-video-renderer",function(){if(yYb!==void 0)return yYb;var a=document.createElement("template");Q(a,"\n
\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return yYb=a},{mode:2});var zYb;kE("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var cV=function(){return E.apply(this,arguments)||this}; k(cV,E);n([F(Yz.YtRendererBehavior),r("design:type",Object)],cV.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],cV.prototype,"data",void 0);n([gu({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],cV); Tu(cV,"ytd-counterfactual-renderer",function(){if(zYb!==void 0)return zYb;var a=document.createElement("template");Q(a,"");a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return zYb=a},{mode:1});var AYb;var BYb;var CYb;var dV=function(){return E.apply(this,arguments)||this}; k(dV,E);g=dV.prototype;g.onClick=function(a){var b,c=(b=this.data)==null?void 0:b.sectionEndpoint;!AO(lt(a),this.hostElement,["A".toString()])&&c&&Gt(this.hostElement,"yt-navigate",{endpoint:c})}; g.computeHasSectionEndpoint=function(a){return(a==null?void 0:a.sectionEndpoint)!==void 0}; g.computeShowHeaderAsLink=function(a){return(a==null?void 0:a.header)!==void 0&&(a==null?void 0:a.sectionEndpoint)!==void 0}; g.computeShowSubheaderAsLink=function(a){return(a==null?void 0:a.subheader)!==void 0&&(a==null?void 0:a.sectionEndpoint)!==void 0&&(a==null?void 0:a.header)===void 0}; g.getHeaderAsLinkClass=function(a){var b=[],c;(a==null?0:(c=a.headerIcon)==null?0:c.iconType)&&b.push("header-link-active");return b.join(" ")}; n([F(mz.YtComponentBehavior),r("design:type",Object)],dV.prototype,"ytComponentBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],dV.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],dV.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],dV.prototype,"data",void 0);n([M({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),r("design:type",Boolean)],dV.prototype,"hasSectionEndpoint",void 0); n([M({computed:"computeShowHeaderAsLink(data)"}),r("design:type",Boolean)],dV.prototype,"showHeaderAsLink",void 0);n([M({computed:"computeShowSubheaderAsLink(data)"}),r("design:type",Boolean)],dV.prototype,"showSubheaderAsLink",void 0);n([gu({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],dV); Tu(dV,"ytd-medical-panel-section-renderer",function(){if(CYb!==void 0)return CYb;var a=document.createElement("template");Q(a,"
\n \n\n \n
\n \n
\n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return CYb=a},{mode:1});var eV=function(){var a=E.apply(this,arguments)||this;a.isExpanded=!1;a.roundedContainer=!0;a.skipRoundingTop=!1;a.toggleExpandableSection=function(){a.isExpanded=!a.isExpanded}; return a}; k(eV,E); eV.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{medicalPanelSectionRenderer:{component:"ytd-medical-panel-section-renderer"}}},"data.expandableSections":{id:"expandable-sections",mapping:{medicalPanelSectionRenderer:{component:"ytd-medical-panel-section-renderer"}}},"data.expandButton":{id:"expand",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[toggleExpandableSection]]"}}}},"data.collapseButton":{id:"collapse",mapping:{buttonRenderer:{component:"ytd-button-renderer", properties:{"on-tap":"[[toggleExpandableSection]]"}}}}}}; eV.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)}; eV.prototype.dataChanged=eV.prototype.dataChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],eV.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],eV.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],eV.prototype,"data",void 0);n([M(),r("design:type",Object)],eV.prototype,"isExpanded",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],eV.prototype,"roundedContainer",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],eV.prototype,"skipRoundingTop",void 0);n([M(),r("design:type",Object)],eV.prototype,"toggleExpandableSection",void 0);n([cu("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],eV.prototype,"dataChanged",null);n([gu({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],eV); Tu(eV,"ytd-medical-panel-content-renderer",function(){if(BYb!==void 0)return BYb;var a=document.createElement("template");Q(a,"
\n
\n \n \n \n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return BYb=a},{mode:1});kE("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var fV=function(){var a=E.apply(this,arguments)||this;a.roundedContainer=!0;a.extractOverlay=!1;a.hasTitle=!1;a.linkIcon="OPEN_IN_NEW";a.isDismissed=!1;return a}; k(fV,E);fV.prototype.onOverlayConditionsChange=function(){var a=wt(this.hostElement).querySelector("ytd-info-panel-content-renderer");a&&(a.set("extractOverlay",this.extractOverlay),a.set("roundedContainer",this.roundedContainer))}; fV.prototype.configureRendererStamper=function(){return{"data.menu":{id:"header-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",disableTopPadding:"[[data.disableBottomDivider]]",roundedContainer:"[[roundedContainer]]",extractOverlay:"[[extractOverlay]]"}},medicalPanelContentRenderer:{component:"ytd-medical-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]", roundedContainer:"[[roundedContainer]]"}},horizontalCardListRenderer:"ytd-horizontal-card-list-renderer"}}}}; fV.prototype.computeHasTitle=function(a){return!(a==null||!a.title)}; fV.prototype.onClick=function(a){var b,c=(b=this.data)==null?void 0:b.headerEndpoint;!AO(lt(a),this.hostElement,["BUTTON".toString()])&&c&&this.ytComponentBehavior.resolveCommand(c)}; ba.Object.defineProperties(fV.prototype,{background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTAINER_BACKGROUND_",""):""}}, titleStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.titleStyle?this.data.titleStyle.replace("INFO_PANEL_CONTAINER_TITLE_STYLE_",""):""}}, showLinkIcon:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}}, hideDivider:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.data)==null?void 0:a.disableBottomDivider)||!((b=this.data)==null?0:b.title)}}}); fV.prototype.onOverlayConditionsChange=fV.prototype.onOverlayConditionsChange;n([F(mz.YtComponentBehavior),r("design:type",Object)],fV.prototype,"ytComponentBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],fV.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],fV.prototype,"ytRendererstamperBehavior",void 0);n([F(kC),r("design:type",Object)],fV.prototype,"ytdReduxBehavior",void 0); n([M(),r("design:type",Object)],fV.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],fV.prototype,"roundedContainer",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],fV.prototype,"extractOverlay",void 0);n([M({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),r("design:type",Object)],fV.prototype,"hasTitle",void 0); n([M({type:void 0,reflectToAttribute:!0}),H("data.background"),r("design:type",Object),r("design:paramtypes",[])],fV.prototype,"background",null);n([M({type:void 0,reflectToAttribute:!0}),H("data.titleStyle"),r("design:type",Object),r("design:paramtypes",[])],fV.prototype,"titleStyle",null);n([M({type:void 0}),H("data.titleStyle"),r("design:type",Object),r("design:paramtypes",[])],fV.prototype,"showLinkIcon",null);n([M(),r("design:type",String)],fV.prototype,"linkIcon",void 0); n([M({type:void 0}),H("data"),r("design:type",Object),r("design:paramtypes",[])],fV.prototype,"hideDivider",null);n([M({selectorArgs:["data.dismissStateEntityKey"],selector:function(a,b){a=yA(a.entities,"dismissState",b);return(a==null?void 0:a.isDismissed)||(a==null?void 0:a.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(a==null?void 0:a.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}), r("design:type",Object)],fV.prototype,"isDismissed",void 0);n([Lt("roundedContainer","extractOverlay"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],fV.prototype,"onOverlayConditionsChange",null);n([gu({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],fV); Tu(fV,"ytd-info-panel-container-renderer",function(){if(AYb!==void 0)return AYb;var a=document.createElement("template");Q(a,"\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return AYb=a},{mode:1});var DYb;kE("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var gV=function(){return E.apply(this,arguments)||this}; k(gV,E);gV.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",buttonViewModel:{component:"yt-button-view-model"}}}}}; gV.prototype.computeStyle=function(a){return a?a:""}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],gV.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],gV.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],gV.prototype,"data",void 0);n([M({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),r("design:type",String)],gV.prototype,"titleStyle",void 0);n([gu({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],gV); Uu()(gV,"ytd-item-section-header-renderer",function(){if(DYb===void 0){var a=document.createElement("template");Q(a,"
\n
[[getSimpleString(data.title)]]
\n \n
\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);DYb=a}a=DYb;return a},{allowedProps:["data"], mode:1});var EYb;var FYb,GYb=function(){return FYb!==void 0?FYb:FYb=document.createElement("template")}; document.head.appendChild(GYb().content);var HYb;var JYb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("haouOe"),2);a=IYb;return b.return(a)})},KYb=yD(function(){return JYb()},{debugName:"votingViewModel"}); Gn(xD,function(a){a.registerLoadFn("votingViewModel","haouOe",JYb)});var LYb=O(function(a){var b=a.data;return D("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},D("div",{class:U("ytEngagementBarViewModelEngagementBarWrapper",a.className)},D(OC,{data:function(){return b().actions}},{votingViewModel:KYb})))},"Jc");bB(LYb,"engagement-bar-view-model",{props:{data:$A,className:$A}});var hV=function(){return E.apply(this,arguments)||this}; k(hV,E);g=hV.prototype;g.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.engagementBar":{id:"engagement-bar",mapping:{engagementBarViewModel:"engagement-bar-view-model"}}}}; g.canReorderChanged=function(){this.persistentDragHandle=this.canReorder}; g.onMenuOverlayChanged=function(a,b){this.menuOpened=b}; g.onHandleMouseenter=function(){this.handleIsHovered=!0}; g.onHandleMouseleave=function(){this.handleIsHovered=!1}; g.onContentsTap=function(a){var b,c=(b=this.data)==null?void 0:b.serviceEndpoints;if(c&&c.length===1&&z(c[0],ytb)&&!AO(lt(a),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(c[0]);else{var d;(b=(d=this.data)==null?void 0:d.navigationEndpoint)&&x("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?Fn().resolve(EK).loadEndpoint(b):(rK().playlistSuggestionsShelfActivation= !0,Fn().resolve(EK).activateAndLoadEndpoint(b)):b&&!AO(lt(a),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&this.ytComponentBehavior.resolveCommand(b)}}; g.computeStyle=function(a){return a?a.toLowerCase().replace(/_/g,"-"):""}; g.computeThumbnailWidth=function(a){return a==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200}; g.dataChanged=function(){var a,b;(this==null?void 0:(a=this.data)==null?void 0:a.videoId)!==(this==null?void 0:(b=this.renderData)==null?void 0:b.videoId)&&(this.set("renderData",this.data),this.set("previousDownloadState",void 0))}; g.handleReloadDownloadsInfo=function(){this.isDownloads=!!this.entityDrivenDownloadsState;if(!this.isDownloads)this.set("renderData",this.data),this.set("previousDownloadState",void 0);else if(JSON.stringify(this.entityDrivenDownloadsState)!==JSON.stringify(this.previousDownloadState)){var a,b=(a=this.entityDrivenDownloadsState)!=null?a:{};a=Object.assign({},this.renderData,b);var c,d,e;a.badges=[].concat(ia((d=(c=this.data)==null?void 0:c.badges)!=null?d:[]),ia((e=b==null?void 0:b.badges)!=null? e:[]));var f,h,m;a.thumbnailOverlays=[].concat(ia((h=(f=this.data)==null?void 0:f.thumbnailOverlays)!=null?h:[]),ia((m=b==null?void 0:b.thumbnailOverlays)!=null?m:[]));this.set("renderData",a);this.set("previousDownloadState",b)}}; g.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var a,b,c=(a=this.data.menu)==null?void 0:(b=a.menuRenderer)==null?void 0:b.items;if(c)for(a=l(c),b=a.next();!b.done;b=a.next())if(b=b.value,c=void 0,z((c=b.menuServiceItemRenderer)==null?void 0:c.serviceEndpoint,qy)){var d=c=void 0,e=void 0;b=(c=b)==null?void 0:(d=c.menuServiceItemRenderer)==null?void 0:(e=d.serviceEndpoint)==null?void 0:e.playlistEditEndpoint;e=d=void 0;if(c=(d=b)==null?void 0:(e=d.actions)==null?void 0:e[0])d=void 0, c.setVideoId=(d=this.data)==null?void 0:d.setVideoId;e=d=c=void 0;if(b=(c=b)==null?void 0:(d=c.clientActions)==null?void 0:(e=d[0])==null?void 0:e.playlistRemoveVideosAction)c=void 0,b.setVideoIds=[(c=this.data)==null?void 0:c.setVideoId]}}}; ba.Object.defineProperties(hV.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}}); hV.prototype.setVideoIdChanged=hV.prototype.setVideoIdChanged;hV.prototype.handleReloadDownloadsInfo=hV.prototype.handleReloadDownloadsInfo;hV.prototype.dataChanged=hV.prototype.dataChanged;hV.prototype.onMenuOverlayChanged=hV.prototype.onMenuOverlayChanged;hV.prototype.canReorderChanged=hV.prototype.canReorderChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],hV.prototype,"ytRendererBehavior",void 0);n([F(kC),r("design:type",Object)],hV.prototype,"ytdReduxBehavior",void 0); n([F($C.YtRendererstamperBehavior),r("design:type",Object)],hV.prototype,"ytRendererstamperBehavior",void 0);n([F(bR),r("design:type",Object)],hV.prototype,"ytdLockupBehavior",void 0);n([F(NQ),r("design:type",Object)],hV.prototype,"ytdDismissibleItemBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],hV.prototype,"ytComponentBehavior",void 0);n([M(),r("design:type",Object)],hV.prototype,"data",void 0);n([M(),r("design:type",Object)],hV.prototype,"renderData",void 0); n([M({selector:function(a,b){if(b){var c=oC(a.entities,b),d=wC(a,b),e=yC(a,b);b=tZa(a.entities,b);if(c)return Object.assign({},Jwb(c,d,e,b,!0,vC(a),!0))}}, selectorArgs:["data.videoId"]}),r("design:type",Object)],hV.prototype,"entityDrivenDownloadsState",void 0);n([M(),r("design:type",Object)],hV.prototype,"previousDownloadState",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],hV.prototype,"canReorder",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],hV.prototype,"menuOpened",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],hV.prototype,"handleIsHovered",void 0); n([M({reflectToAttribute:!0}),r("design:type",Boolean)],hV.prototype,"persistentDragHandle",void 0);n([M({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),r("design:type",String)],hV.prototype,"styleType",void 0);n([M({computed:"computeThumbnailWidth(data.style)"}),r("design:type",Number)],hV.prototype,"thumbnailWidth",void 0);n([M({value:!1,reflectToAttribute:!0}),r("design:type",Boolean)],hV.prototype,"isDownloads",void 0); n([M(),r("design:type",Number)],hV.prototype,"relativeDateReference",void 0);n([M({selector:XZa}),r("design:type",Boolean)],hV.prototype,"miniplayerIsActive",void 0);n([H("data"),r("design:type",String),r("design:paramtypes",[])],hV.prototype,"playlistVideoId",null);n([Tt("#thumbnail"),r("design:type",Object)],hV.prototype,"thumbnail",void 0);n([cu("canReorder"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],hV.prototype,"canReorderChanged",null); n([Kt("yt-menu-overlay-changed"),r("design:type",Function),r("design:paramtypes",[CustomEvent,Boolean]),r("design:returntype")],hV.prototype,"onMenuOverlayChanged",null);n([cu("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],hV.prototype,"dataChanged",null);n([cu("entityDrivenDownloadsState"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],hV.prototype,"handleReloadDownloadsInfo",null); n([cu("data.setVideoId"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],hV.prototype,"setVideoIdChanged",null);n([gu({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],hV); Tu(hV,"ytd-playlist-video-renderer",function(){if(HYb!==void 0)return HYb;var a=document.createElement("template");Q(a,"
\n \n \n
\n
\n
\n \n \n
\n

\n \n \n \n [[getSimpleString(renderData.title)]]\n \n

\n \n \n \n
\n
\n
\n \n \n
\n
\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);a.content.insertBefore(GYb().content.cloneNode(!0),a.content.firstChild);return HYb=a},{mode:1});var MYb;var iV=function(){return E.apply(this,arguments)||this}; k(iV,E);n([M(),r("design:type",Object)],iV.prototype,"data",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],iV.prototype,"rendererBehavior",void 0);n([gu({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],iV); Tu(iV,"ytd-premium-browse-footer-renderer",function(){if(MYb!==void 0)return MYb;var a=document.createElement("template");Q(a,"\n\n\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return MYb=a},{mode:1});var NYb;var jV=function(){var a=E.apply(this,arguments)||this;a.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return a}; k(jV,E);g=jV.prototype;g.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")}; g.handleDarkModeToggledAction=function(a){this.isDarkTheme=a}; g.computeHeaderLogoThumbnail=function(a,b){if(a)return b?a.darkLogo:a.lightLogo}; g.computeHeaderLogoHeight=function(a,b){var c,d,e;return(a=(c=this.computeHeaderLogoThumbnail(a,b))==null?void 0:(d=c.thumbnails)==null?void 0:(e=d[0])==null?void 0:e.height)&&a%31===0?"31":"24"}; g.computeHeaderLogoMarginBottom=function(a,b){return this.computeHeaderLogoHeight(a,b)==="24"?"0":"-7"}; n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],jV.prototype,"actionHandlerBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],jV.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],jV.prototype,"data",void 0);n([M(),r("design:type",Boolean)],jV.prototype,"isDarkTheme",void 0);n([M({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),r("design:type",Object)],jV.prototype,"themeLogo",void 0); n([M({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),r("design:type",String)],jV.prototype,"logoHeight",void 0);n([M({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),r("design:type",String)],jV.prototype,"logoMarginBottom",void 0);n([gu({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],jV); Tu(jV,"ytd-primetime-promo-header-renderer",function(){if(NYb!==void 0)return NYb;var a=document.createElement("template");Q(a,"
");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return NYb=a},{mode:1});var OYb;var PYb=new Bn("COMMON_MARK_VIEW_MODEL_TOKEN");function kV(a){if(a){var b;return((b=Fn().resolve(Cn(HB)))==null?0:b())?a.darkTheme:a.lightTheme}} ;var RYb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("WqlcVb"),2);a=QYb;return b.return(a)})},lV=yD(function(){return RYb()},{debugName:"descriptionPreviewViewModel"}); Gn(xD,function(a){a.registerLoadFn("descriptionPreviewViewModel","WqlcVb",RYb)});var SYb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("uhlLGb"),2);a=AQ;return b.return(a)})},mV=yD(function(){return SYb()},{debugName:"flexibleActionsViewModel"}); Gn(xD,function(a){a.registerLoadFn("flexibleActionsViewModel","uhlLGb",SYb)});var UYb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("FqHcGe"),2);a=TYb;return b.return(a)})},VYb=yD(function(){return UYb()},{debugName:"sectionHeaderLayout"}); Gn(xD,function(a){a.registerLoadFn("sectionHeaderLayout","FqHcGe",UYb)});function nV(){if(!("matchMedia"in window))return Yk(Error("window.matchMedia is not supported")),function(){return 0}; var a=window.matchMedia("(max-width: 527.9px)"),b=window.matchMedia("(min-width: 528px) and (max-width: 839.9px)"),c=window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)"),d=window.matchMedia("(min-width: 1024px)"),e=l(ip(a.matches,void 0,"TmIKcb")),f=e.next().value,h=e.next().value;e=l(ip(b.matches,void 0,"Z0fTKd"));var m=e.next().value,p=e.next().value;e=l(ip(c.matches,void 0,"w4xy7b"));var q=e.next().value,t=e.next().value;e=l(ip(d.matches,void 0,"DrbNC"));var u=e.next().value,v=e.next().value, w=function(I){h(I.matches)},y=function(I){p(I.matches)},A=function(I){t(I.matches)},C=function(I){v(I.matches)}; rw(function(){a.addEventListener?(a.addEventListener("change",w),b.addEventListener("change",y),c.addEventListener("change",A),d.addEventListener("change",C)):a.addListener&&(a.addListener(w),b.addListener(y),c.addListener(A),d.addListener(C));zp(function(){a.removeEventListener?(a.removeEventListener("change",w),b.removeEventListener("change",y),c.removeEventListener("change",A),d.removeEventListener("change",C)):a.removeListener&&(a.removeListener(w),b.removeListener(y),c.removeListener(A),d.removeListener(C))})}); return function(){return f()?1:m()?2:q()?3:u()?4:0}} ;var WYb=new Bn("SEMANTIC_TYPOGRAPHY_RESOLVER_TOKEN");function oV(a,b,c){var d=Fn().resolve(Cn(WYb)),e=l(ip(d,void 0,"cqzeec")),f=e.next().value;e=e.next().value;d||Gn(WYb,e);return Vo(function(){var h=a(),m;return h&&b()?(m=f())==null?void 0:m(h,b,c):void 0},void 0,"upVUae")} ;var $Yb=O(function(a){var b=a.className;var c=a.data;var d=a.disableHorizontalPadding;var e=a.disableVerticalPadding;var f=a.forceSmallLayout;var h=a.useResponsiveLayout;var m=a.isOverlay;var p=a.useUpdatedPadding;var q=a.topChevrons;var t=a.hasTopChevrons;a=nV();a=oV(function(){return c().headlineTypographyToken},a,{maxLines:2}); return D("yt-section-header-view-model",{class:U("ytSectionHeaderViewModelHost",b),style:GC({"background-color":function(){return kV(c().backgroundColor)?Jy(kV(c().backgroundColor)):void 0}})},D(VYb,{hasDetail:!1, title:function(){return D(gC,{text:function(){return c().headline}})}, hasTitle:!0,sublabel:function(){return D(XYb,{data:c})}, hasSublabel:function(){return!!c().sublabel||!!c().bottomBadge||!!c().bottomBadges}, superlabel:function(){return D(YYb,{data:c})}, hasSuperlabel:function(){return!!c().superlabel||!!c().topBadge}, leadingImage:function(){return D(ZYb,{leadingAccessory:function(){return c().leadingAccessory}})}, hasLeadingImage:function(){return!!c().leadingAccessory}, trailingActions:function(){return D("div",{class:"ytSectionHeaderViewModelTrailingActionsContainer"},D(OC,{data:function(){return c().trailingActions}},{flexibleActionsViewModel:mV}),D(P,{cond:t, then:function(){return D("div",{class:"ytSectionHeaderViewModelChevronsContainer"},D(mw,{each:function(){return(q==null?void 0:q())||[]}},function(u){return D("div",{class:"ytSectionHeaderViewModelChevron"},u)}))}}))}, hasTrailingActions:function(){return(t==null?void 0:t())||!!c().trailingActions}, disableHorizontalPadding:function(){return(d==null?void 0:d())||c().disableHorizontalPadding}, disableVerticalPadding:function(){return(e==null?void 0:e())||c().disableVerticalPadding}, forceSmallLayout:f,useResponsiveLayout:h,isOverlay:m,isInteractive:function(){return!!LD(c().rendererContext)}, onClick:function(u){if(KD(c().rendererContext)){var v=LD(c().rendererContext);v&&OB(v,{form:{element:u.target,event:u}})}}, bottomAccessory:function(){return D(OC,{data:function(){return c().bottomAccessory}},{descriptionPreviewViewModel:function(u){return D(lV,{data:u.data, useMediumText:!0})}, commonMarkViewModel:function(u){u=u.data;var v;return D(mq,null,(v=Fn().resolve(Cn(PYb)))==null?void 0:v({data:u}))}})}, hasBottomAccessory:function(){return!!c().bottomAccessory}, useUpdatedPadding:p,headlineTypographyToken:a}))},"Kc"),ZYb=O(function(a){var b=a.leadingAccessory; return D(mq,null,D(P,{cond:function(){var c;return(c=b().image)!=null?c:wD(b().themedImage)}, then:function(c){return D(eC,{data:c,alt:"",preserveWidth:!0,preserveHeight:!0})}}),D(P,{cond:function(){return z(b().avatar,YJ)}, then:function(c){return D(zD,{data:c})}}))},"Lc"),XYb=O(function(a){var b=a.data; a={};return D(mq,null,D("span",{class:U((a.ytSectionHeaderViewModelBadgeWithLabel=function(){return(!!b().bottomBadges||!!b().bottomBadge)&&!!b().sublabel},a))},D(P,{cond:function(){return z(b().bottomBadge,psb)}, then:function(c){return D(ED,{data:c})}}),D(OC,{data:function(){return b().bottomBadges}},{badgeViewModel:function(c){return D(ED,{data:c.data, class:U("ytSectionHeaderViewModelBadges")})}})),D(P,{cond:function(){return b().sublabel}, then:function(c){return D(gC,{text:c})}}))},"Mc"),YYb=O(function(a){var b=a.data; return D(mq,null,D(P,{cond:function(){return z(b().topBadge,psb)}, then:function(c){var d={};return D(ED,{data:c,class:U((d.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!c()&&!!b().superlabel},d))})}}),D(P,{cond:function(){return b().superlabel}, then:function(c){return D(gC,{text:c})}}))},"Nc");bB($Yb,"yt-section-header-view-model",{props:{data:$A,className:$A,disableHorizontalPadding:$A,disableVerticalPadding:$A,forceSmallLayout:$A,useResponsiveLayout:$A,isOverlay:$A,useUpdatedPadding:$A,topChevrons:$A,hasTopChevrons:$A}});kE("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var pV=function(){var a=E.apply(this,arguments)||this;a.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return a}; k(pV,E);g=pV.prototype;g.attached=function(){this.requestElementsPerRow()}; g.configureRendererStamper=function(){return{"data.panels":{id:"panels",mapping:{richItemRenderer:"ytd-rich-item-renderer"}},"data.header":{id:"header-contents",mapping:{primetimePromoHeaderRenderer:"ytd-primetime-promo-header-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}, "data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.sectionHeader":{id:"section-header-container",mapping:{sectionHeaderViewModel:{component:"yt-section-header-view-model",params:{disableHorizontalPadding:!0}}}},"data.details":{id:"details-panel",mapping:{primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer"}}}}; g.onDataChange=function(){var a=this;ms(this,function(){a.updateItemVisibility()})}; g.onUpdateElementsPerRowAction=function(a){a&&this.elementsPerRow!==a&&(this.elementsPerRow=a,this.updateItemVisibility())}; g.updateItemVisibility=function(){var a=this;this.data&&this.data.panels&&wt(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(b,c){b.hidden=c>a.elementsPerRow-1})}; g.requestElementsPerRow=function(){Gt(this.hostElement,"yt-request-elements-per-row")}; pV.prototype.onDataChange=pV.prototype.onDataChange;n([F($C.YtRendererstamperBehavior),r("design:type",Object)],pV.prototype,"ytRendererstamperBehavior",void 0);n([F(NQ),r("design:type",Object)],pV.prototype,"ytdDismissibleItemBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],pV.prototype,"ytRendererBehavior",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],pV.prototype,"actionHandlerBehavior",void 0);n([M(),r("design:type",Object)],pV.prototype,"data",void 0); n([M({value:3}),r("design:type",Number)],pV.prototype,"elementsPerRow",void 0);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],pV.prototype,"onDataChange",null);n([gu({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],pV); Tu(pV,"ytd-primetime-promo-renderer",function(){if(OYb!==void 0)return OYb;var a=document.createElement("template");Q(a,"
\n
\n \n \n \n \n
\n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return OYb=a},{mode:1});var aZb;var qV=function(){var a=E.apply(this,arguments)||this;a.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return a}; k(qV,E);qV.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}}; qV.prototype.handleButtonRefreshAction=function(a){if(a=z(a,jlb))this.set("data.button",a.membershipButton),this.notifyPath("data.button")}; ba.Object.defineProperties(qV.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.data)==null?void 0:(b=a.avatars)==null?void 0:b.slice(0,8))||[]}}}); n([M(),r("design:type",Object)],qV.prototype,"data",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],qV.prototype,"ytActionHandlerBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],qV.prototype,"ytRendererstamperBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],qV.prototype,"rendererBehavior",void 0);n([H("data"),r("design:type",Array),r("design:paramtypes",[])],qV.prototype,"avatars",null); n([gu({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],qV); Tu(qV,"ytd-recognition-shelf-renderer",function(){if(aZb!==void 0)return aZb;var a=document.createElement("template");Q(a,"
\n
\n \n \n
\n
\n \n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return aZb=a},{mode:1});var bZb;var rV=function(){var a=E.apply(this,arguments)||this;a.roundedContainer=!0;a.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return a}; k(rV,E);g=rV.prototype;g.attached=function(){this.requestElementsPerRow()}; g.configureRendererStamper=function(){return{"data.actionButton":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}}; g.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()}; g.computeViewStyle=function(a){return a.style?a.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"}; g.onUpdateElementsPerRowAction=function(a){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&a===1}; g.requestElementsPerRow=function(){Gt(this.hostElement,"yt-request-elements-per-row")}; rV.prototype.dataChanged=rV.prototype.dataChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],rV.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],rV.prototype,"ytRendererstamperBehavior",void 0);n([F(NQ),r("design:type",Object)],rV.prototype,"ytdDismissibleItemBehavior",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],rV.prototype,"actionHandlerBehavior",void 0);n([M(),r("design:type",Object)],rV.prototype,"data",void 0); n([M({value:!1}),r("design:type",Boolean)],rV.prototype,"hideThumbnail",void 0);n([M({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),r("design:type",String)],rV.prototype,"viewStyle",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],rV.prototype,"roundedContainer",void 0);n([cu("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],rV.prototype,"dataChanged",null);n([gu({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],rV); Tu(rV,"ytd-compact-promoted-item-renderer",function(){if(bZb!==void 0)return bZb;var a=document.createElement("template");Q(a,"
\n\n
\n
\n

\n \n

\n
\n \n \n
\n
\n
\n
\n
\n
\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return bZb=a},{mode:1});var cZb;var sV=function(){var a=E.apply(this,arguments)||this;a.isConstrainedList=!1;return a}; k(sV,E);sV.prototype.configureRendererStamper=function(){return{shownItems:{id:"grid-container",mapping:{channelRenderer:"ytd-channel-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer"}}}}; sV.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()}; sV.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()}; sV.prototype.computeViewAllHidden=function(a,b){return a||!b.viewAllEndpoint}; sV.prototype.fillRestIfNoShowMore=sV.prototype.fillRestIfNoShowMore;n([F(Yz.YtRendererBehavior),r("design:type",Object)],sV.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],sV.prototype,"ytRendererstamperBehavior",void 0);n([F(IQ.YtLazyListBehavior),r("design:type",Object)],sV.prototype,"ytLazyListBehavior",void 0);n([M(),r("design:type",Object)],sV.prototype,"data",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],sV.prototype,"isConstrainedList",void 0);n([cu("data","canShowMore"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],sV.prototype,"fillRestIfNoShowMore",null);n([gu({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],sV); Tu(sV,"ytd-expanded-shelf-contents-renderer",function(){if(cZb!==void 0)return cZb;var a=document.createElement("template");Q(a,"
\n\n \n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return cZb=a},{mode:2});var dZb;var eZb;var fZb=new Bn("ASK_STUDIO_CARD_VIEW_MODEL_TOKEN");var hZb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("qVDgBd"),2);a=gZb;return b.return(a)})},iZb=yD(function(){return hZb()},{debugName:"cinematicContainerViewModel"}); Gn(xD,function(a){a.registerLoadFn("cinematicContainerViewModel","qVDgBd",hZb)});var kZb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("FsoXzc"),2);a=jZb;return b.return(a)})},lZb=yD(function(){return kZb()},{debugName:"contentListItemViewModel"}); Gn(xD,function(a){a.registerLoadFn("contentListItemViewModel","FsoXzc",kZb)});var mZb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("pe2ojb"),2);a=RD;return b.return(a)})},nZb=yD(function(){return mZb()},{debugName:"listItemViewModel"}); Gn(xD,function(a){a.registerLoadFn("listItemViewModel","pe2ojb",mZb)});var pZb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("bzj0jd"),2);a=oZb;return b.return(a)})},qZb=yD(function(){return pZb()},{debugName:"inlineExpanderViewModel"}); Gn(xD,function(a){a.registerLoadFn("inlineExpanderViewModel","bzj0jd",pZb)});var rZb=new Bn("CONTENT_SECTION_VIEW_MODEL_TOKEN");var tZb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("uRIaC"),2);a=sZb;return b.return(a)})},uZb=yD(function(){return tZb()},{debugName:"channelAttributionViewModel"}); Gn(xD,function(a){a.registerLoadFn("channelAttributionViewModel","uRIaC",tZb)});var tV=O(function(a){var b=OD(function(){return a.data().topContentPaddingToken}),c=OD(function(){return a.data().bodyContentPaddingToken}),d=function(){return a.data().background},e=function(){return a.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},f=function(){return a.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"},h=Fn().resolve(Cn(rZb)),m=Fn().resolve(Cn(fZb)),p=function(){var u; return((u=a.data().cardState)==null?void 0:u.enablementState)==="CARD_ENABLEMENT_STATE_DISABLED"},q=function(){return!p()&&KD(a.data().rendererContext)},t={}; return D("yt-card-view-model",{el:dB(MD(function(){return q()?a.data().rendererContext:void 0})), class:U("ytCardViewModelHost",a.className,(t.ytCardViewModelClickable=q,t)),"aria-disabled":p,tabindex:function(){return p()?-1:void 0}},D(mS,{contentId:function(){return a.data().contentId}},function(){var u={}; return D("div",{class:U("ytCardViewModelCardViewModelInner",function(){var v;return vZb(a.data().cardStyle,(v=a.isSelected)==null?void 0:v.call(a))},function(){if(a.isSelected===void 0){var v; a:{switch((v=a.data().cardState)==null?void 0:v.selectionState){case"CARD_SELECTION_STATE_SELECTED":v="ytCardViewModelSelected";break a;}v=void 0}return v}})},D(OC,{data:d},{cinematicContainerViewModel:function(v){return D(iZb,{data:v.data})}}),D("div",{class:"ytCardViewModelContentWrapper"},D(P,{cond:function(){return!e()}, then:function(){var v={},w={};return D("div",{class:"ytCardViewModelTopContentContainer"},D("div",{class:U("ytCardViewModelTopContent",(v.ytCardViewModelTopContentPadding=function(){return!a.data().disableTopContentPadding&&a.data().topContent},v)), style:GC({padding:b})},D(OC,{data:function(){return a.data().topContent}},{contentListItemViewModel:function(y){return D(lZb,{data:y.data})}, basicContentViewModel:kP,linearLayoutViewModel:TJb})),D("div",{class:U("ytCardViewModelInlineTrailingAction",(w.ytCardViewModelInlineCenterTrailingAction=f,w.ytCardViewModelInlineTrailingActionMargin=function(){return a.data().trailingAction},w))},D(OC,{data:function(){return a.data().trailingAction}},{buttonViewModel:function(y){return D(BD,{data:y.data})}})))}}),D("div",{class:U((u.ytCardViewModelBottomContentPadding=function(){return!a.data().disableBodyContentPadding&&a.data().bodyContent},u)), style:GC({padding:c})},D(OC,{data:function(){return a.data().bodyContent}},Object.assign({},{basicContentViewModel:kP, channelAttributionViewModel:uZb,contentInspirationConversationVideoIdeaCardViewModel:Vzb,contentListItemViewModel:lZb,descriptionPreviewViewModel:lV,inlineExpanderViewModel:function(v){return D(qZb,{data:v.data,isSelected:a.isSelected})}, linearLayoutViewModel:TJb,listItemViewModel:nZb},m&&{askStudioCardViewModel:m},h&&{contentSectionViewModel:h})))),D(P,{cond:function(){return e()}, then:function(){return D("div",{class:"ytCardViewModelOverlayTrailingAction"},D(OC,{data:function(){return a.data().trailingAction}},{buttonViewModel:function(v){return D(BD,{data:v.data})}}))}}),D(P,{cond:p, then:function(){return D("div",{class:"ytCardViewModelDisabledOverlay","aria-hidden":"true"})}}))}))},"Oc"); function vZb(a,b){if(b)return"ytCardViewModelCardSelected";switch(a){case"CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case"CARD_STYLE_TONAL":return"ytCardViewModelTonal";case"CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised";}} ;bB(tV,"yt-card-view-model",{props:{data:$A,className:$A,isSelected:$A}});var uV=function(){var a=E.apply(this,arguments)||this;a.modernButtons=x("web_modern_buttons");return a}; k(uV,E);g=uV.prototype; g.configureRendererStamper=function(){return{visibleItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-vertical-list-renderer lockup",containerType:3,force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",typographyBump:"[[typographyBump]]",lockupExperiments:"[[lockupExperiments]]"}},cardViewModel:{component:"yt-card-view-model"},channelRenderer:"ytd-channel-renderer",playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}}, radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]",containerLayoutConfig:"[[containerLayoutConfig]]"}}}}}}; g.dataChanged=function(){this.collapsed=!0}; g.computeVisibleItems=function(a,b){return a!==void 0&&a.items?b?a.items.slice(0,this.data.collapsedItemCount):a.items:[]}; g.computeHideShowMore=function(a,b,c){return a>=b||!c}; g.computeHideShowAll=function(a,b,c){return!(a&&b)||c}; g.onMoreClick=function(){this.collapsed=!1}; ba.Object.defineProperties(uV.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&x("use_modern_typography_on_search")}}, lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:ml("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!x("use_modern_typography_on_search")}}}, thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}}); uV.prototype.dataChanged=uV.prototype.dataChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],uV.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],uV.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],uV.prototype,"data",void 0);n([M({value:!1}),r("design:type",Boolean)],uV.prototype,"isSearch",void 0);n([M({computed:"computeVisibleItems(data,collapsed)"}),r("design:type",Array)],uV.prototype,"visibleItems",void 0); n([M({value:!0}),r("design:type",Boolean)],uV.prototype,"collapsed",void 0);n([M({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),r("design:type",Boolean)],uV.prototype,"hideShowMore",void 0);n([M({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n data.expandedStateButtonText,collapsed)",value:!0}),r("design:type",Boolean)],uV.prototype,"hideShowAll",void 0); n([M({reflectToAttribute:!0}),r("design:type",Boolean)],uV.prototype,"modernButtons",void 0);n([M(),r("design:type",Object)],uV.prototype,"containerLayoutConfig",void 0);n([H("isSearch"),r("design:type",Boolean),r("design:paramtypes",[])],uV.prototype,"typographyBump",null);n([H("isSearch"),r("design:type",Object),r("design:paramtypes",[])],uV.prototype,"lockupExperiments",null);n([H("isSearch"),r("design:type",String),r("design:paramtypes",[])],uV.prototype,"thumbnailWidth",null); n([cu("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],uV.prototype,"dataChanged",null);n([gu({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],uV); Tu(uV,"ytd-vertical-list-renderer",function(){if(eZb!==void 0)return eZb;var a=document.createElement("template");Q(a,"
\n\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return eZb=a},{mode:1});var wZb=la(["#"]);kE("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var vV=function(){var a=E.apply(this,arguments)||this;a.isConstrainedList=!1;return a}; k(vV,E);g=vV.prototype; g.configureRendererStamper=function(){return{"data.content":{id:"contents",mapping:{gridRenderer:"ytd-grid-renderer",horizontalListRenderer:{component:"yt-horizontal-list-renderer",params:{thumbnailHeight:118},properties:{isSearch:"[[isSearch]]",isChannel:"[[isChannel]]"}},horizontalMovieListRenderer:{component:"yt-horizontal-list-renderer",params:{thumbnailHeight:302}},expandedShelfContentsRenderer:{component:"ytd-expanded-shelf-contents-renderer",properties:{isConstrainedList:"[[isConstrainedList]]"}},messageRenderer:{component:"ytd-message-renderer", params:{shelf:!0}},verticalListRenderer:{component:"ytd-vertical-list-renderer",properties:{isSearch:"[[isSearch]]",containerLayoutConfig:"[[containerLayoutConfig]]"}}}},"data.playAllButton":{id:"play-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",attributes:{condensed:!0}, properties:{icon:"[[menuIcon]]"}}}},"data.sortFilter":{id:"sort-filter",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}}; g.computeThumbnailStyle=function(a){return a||""}; g.computePlaceAnnotationUnderTitle=function(){var a;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((a=this.data)==null?void 0:a.thumbnailStyle)||"")}; g.computeHrefWithDefault=function(a){return this.ytComponentBehavior.computeHref_(a)||xba(wZb)}; g.computeIsPromoShelf=function(a){var b;return(a=a==null?void 0:(b=a[0])==null?void 0:b.metadataBadgeRenderer)?a.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1}; g.computePlaceBadgeBesideTitle=function(a){var b;return(a==null?0:(b=a[0])==null?0:b.metadataBadgeRenderer)?!this.computeIsPromoShelf(a):!1}; g.computeMenuIcon=function(a){return this.computeIsPromoShelf(a)?"yt-icons:more_vert":"yt-icons:more"}; g.onDataChange=function(){var a,b;((a=this.data)==null?0:(b=a.content)==null?0:b.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)}; g.onLockupRequested=function(a){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&a.detail&&a.detail.videoIds){for(var b=this.data.content.gridRenderer.items,c=new Set,d=l(a.detail.videoIds),e=d.next();!e.done;e=d.next())c.add(e.value);a.detail.returnValue=b.filter(function(f){return f.gridVideoRenderer&&f.gridVideoRenderer.videoId&&c.has(f.gridVideoRenderer.videoId)}).map(function(f){return f.gridVideoRenderer})}}; g.onParentResize=function(){this.ironResizableBehavior.notifyResize()}; vV.prototype.onLockupRequested=vV.prototype.onLockupRequested;vV.prototype.onDataChange=vV.prototype.onDataChange;n([F($C.YtRendererstamperBehavior),r("design:type",Object)],vV.prototype,"ytRendererstamperBehavior",void 0);n([F(NQ),r("design:type",Object)],vV.prototype,"ytdDismissibleItemBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],vV.prototype,"ytRendererBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],vV.prototype,"ytComponentBehavior",void 0); n([F(Hs),r("design:type",Object)],vV.prototype,"ironResizableBehavior",void 0);n([M(),r("design:type",Object)],vV.prototype,"data",void 0);n([M({value:!1}),r("design:type",Boolean)],vV.prototype,"isSearch",void 0);n([M({value:!1}),r("design:type",Boolean)],vV.prototype,"isChannel",void 0);n([M(),r("design:type",Object)],vV.prototype,"isConstrainedList",void 0); n([M({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),r("design:type",String)],vV.prototype,"thumbnailStyle",void 0);n([M({computed:"computeMenuIcon(data.badges)"}),r("design:type",String)],vV.prototype,"menuIcon",void 0);n([M({reflectToAttribute:!0,computed:"computeIsPromoShelf(data.badges)"}),r("design:type",Boolean)],vV.prototype,"featuredPromo",void 0);n([M(),r("design:type",Object)],vV.prototype,"containerLayoutConfig",void 0); n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],vV.prototype,"onDataChange",null);n([Kt("yt-lockup-requested"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],vV.prototype,"onLockupRequested",null);n([gu({is:"ytd-shelf-renderer",disableElementRegistration:!0})],vV); Uu()(vV,"ytd-shelf-renderer",function(){if(dZb===void 0){var a=document.createElement("template");Q(a,"
\n \n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);dZb=a}a=dZb;return a},{allowedProps:["data", "isConstrainedList","isSearch","containerLayoutConfig"],mode:1});var xZb;var wV=function(){return E.apply(this,arguments)||this}; k(wV,E);wV.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}}; ba.Object.defineProperties(wV.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.title)}}, isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}}); n([F($C.YtRendererstamperBehavior),r("design:type",Object)],wV.prototype,"ytRendererstamperBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],wV.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],wV.prototype,"data",void 0);n([M({value:!1,reflectToAttribute:!0}),r("design:type",Boolean)],wV.prototype,"isPlaylist",void 0);n([M({value:!1,reflectToAttribute:!0}),r("design:type",Boolean)],wV.prototype,"isClipList",void 0); n([M({value:!1,reflectToAttribute:!0}),r("design:type",Boolean)],wV.prototype,"isPlaylistPageWithFilters",void 0);n([M({value:!1,reflectToAttribute:!0}),H("data"),r("design:type",Object),r("design:paramtypes",[])],wV.prototype,"hasTitle",null);n([M(),H("isPlaylist","isClipList","isPlaylistPageWithFilters"),r("design:type",Object),r("design:paramtypes",[])],wV.prototype,"isRightAligned",null);n([gu({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],wV); Tu(wV,"ytd-sort-filter-header-renderer",function(){if(xZb!==void 0)return xZb;var a=document.createElement("template");Q(a,"
\n \n
\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return xZb=a},{mode:1});var yZb;var zZb;var xV=function(){var a=E.apply(this,arguments)||this;a.isCompact=!1;return a}; k(xV,E);ba.Object.defineProperties(xV.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}}, openNewWindow:{configurable:!0,enumerable:!0,get:function(){var a,b;return((b=z((a=this.data)==null?void 0:a.endpoint,Qs))==null?void 0:b.target)==="TARGET_NEW_WINDOW"}}}); n([F(Yz.YtRendererBehavior),r("design:type",Object)],xV.prototype,"ytRendererBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],xV.prototype,"componentBehavior",void 0);n([M(),r("design:type",Object)],xV.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],xV.prototype,"isCompact",void 0);n([H("isCompact"),r("design:type",Number),r("design:paramtypes",[])],xV.prototype,"thumbnailWidth",null); n([H("data"),r("design:type",Boolean),r("design:paramtypes",[])],xV.prototype,"openNewWindow",null);n([gu({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],xV); Tu(xV,"ytd-media-lockup-renderer",function(){if(zZb!==void 0)return zZb;var a=document.createElement("template");Q(a,"\n
\n \n \n
\n
\n
[[getSimpleString(data.title)]]
\n
\n [[getSimpleString(data.subtitle)]]\n \n \n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return zZb=a},{mode:1});var AZb;var yV=function(){return E.apply(this,arguments)||this}; k(yV,E);n([F(Yz.YtRendererBehavior),r("design:type",Object)],yV.prototype,"ytRendererBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],yV.prototype,"componentBehavior",void 0);n([M(),r("design:type",Object)],yV.prototype,"data",void 0);n([gu({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],yV); Tu(yV,"ytd-structured-description-channel-lockup-renderer",function(){if(AZb!==void 0)return AZb;var a=document.createElement("template");Q(a,"
\n \n \n
\n\n
\n
[[getSimpleString(data.title)]]
\n
\n [[getSimpleString(data.subscriberCountText)]]\n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return AZb=a},{mode:1});var BZb;var zV=function(){var a=E.apply(this,arguments)||this;a.isCompact=!1;a.collectionsStackColor=x("modernize_structured_description_playlist_lockups_v2");return a}; k(zV,E);zV.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",params:{isCompact:!0}},thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer"}},initialRenderPriority:1,waitForSignal:"eocs"}}}; ba.Object.defineProperties(zV.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.maxLinesTitle)===2}}, collectionStack:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d,e,f;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:!0,sampledThumbnailColor:this.collectionsStackColor?(a=this.data)==null?void 0:(b=a.thumbnail)==null?void 0:b.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(c=this.data)==null?void 0:(d=c.thumbnail)==null?void 0:d.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(e=this.data)==null?void 0:(f=e.thumbnail)==null? void 0:f.vibrantColorPalette:void 0}}}}); n([F(Yz.YtRendererBehavior),r("design:type",Object)],zV.prototype,"ytRendererBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],zV.prototype,"componentBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],zV.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],zV.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],zV.prototype,"showSidePanelThumbnailOverlay",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],zV.prototype,"isCompact",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],zV.prototype,"collectionsStackColor",void 0);n([H("data"),M({reflectToAttribute:!0}),r("design:type",Boolean),r("design:paramtypes",[])],zV.prototype,"twoLineTitle",null);n([H("data","collectionsStackColor"),r("design:type",Object),r("design:paramtypes",[])],zV.prototype,"collectionStack",null); n([gu({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],zV); Tu(zV,"ytd-structured-description-playlist-lockup-renderer",function(){if(BZb!==void 0)return BZb;var a=document.createElement("template");Q(a,"\n \n
\n \n \n \n
\n
\n
\n
\n
[[getSimpleString(data.title)]]
\n
[[getSimpleString(data.shortBylineText)]]
\n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return BZb=a},{mode:1});var CZb;var AV=function(){return E.apply(this,arguments)||this}; k(AV,E);n([F(Yz.YtRendererBehavior),r("design:type",Object)],AV.prototype,"ytRendererBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],AV.prototype,"componentBehavior",void 0);n([M(),r("design:type",Object)],AV.prototype,"data",void 0);n([gu({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],AV); Tu(AV,"ytd-structured-description-video-lockup-renderer",function(){if(CZb!==void 0)return CZb;var a=document.createElement("template");Q(a,"\n\n\n
\n
[[getSimpleString(data.title)]]
\n
[[getSimpleString(data.shortBylineText)]]
\n \n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return CZb=a},{mode:2});var BV=function(){return E.apply(this,arguments)||this}; k(BV,E); BV.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{structuredDescriptionPlaylistLockupRenderer:{component:"ytd-structured-description-playlist-lockup-renderer",params:{showSidePanelThumbnailOverlay:!0,isCompact:!0}},structuredDescriptionVideoLockupRenderer:"ytd-structured-description-video-lockup-renderer",structuredDescriptionChannelLockupRenderer:"ytd-structured-description-channel-lockup-renderer",mediaLockupRenderer:{component:"ytd-media-lockup-renderer",params:{isCompact:!0}}}}}}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],BV.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],BV.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],BV.prototype,"data",void 0);n([gu({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],BV); Tu(BV,"ytd-compact-infocard-renderer",function(){if(yZb!==void 0)return yZb;var a=document.createElement("template");Q(a,"
\n");a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return yZb=a},{mode:1});var DZb;var CV=function(){var a=E.apply(this,arguments)||this;a.sdRedesign=x("desktop_include_oswald");a.enableRightArrowHidden=x("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;a.showCreatorCustomUrlButtons=!0;a.channelAvatarSize=36;return a}; k(CV,E);CV.prototype.attached=function(){var a=this;this.enableRightArrowHidden&&(this.throttledOnResize=new Fw(function(){var b;(b=a.ytdHorizontalListBehavior)==null||b.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var b; (b=a.throttledOnResize)==null||b.fire()}),this.resizeObserver.observe(this.hostElement))}; CV.prototype.detached=function(){if(this.enableRightArrowHidden){var a;(a=this.resizeObserver)==null||a.disconnect();var b;(b=this.throttledOnResize)==null||b.dispose()}}; CV.prototype.configureRendererStamper=function(){return{"data.infocards":{id:"infocards-section",mapping:{compactInfocardRenderer:"ytd-compact-infocard-renderer"}},creatorCustomUrlButtons:{id:"items",mapping:{buttonRenderer:"ytd-button-renderer",buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}}}}; CV.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"}; ba.Object.defineProperties(CV.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}}, creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data){var a=[],b;((b=this.data)==null?0:b.creatorVideosButton)&&a.push(this.data.creatorVideosButton);var c;((c=this.data)==null?0:c.creatorAboutButton)&&a.push(this.data.creatorAboutButton);b=l(this.data.creatorCustomUrlButtons||[]);for(c=b.next();!c.done;c=b.next())a.push(c.value);return a}}}}); n([F(Yz.YtRendererBehavior),r("design:type",Object)],CV.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],CV.prototype,"ytRendererstamperBehavior",void 0);n([F(JQ.YtdHorizontalListBehavior),r("design:type",Object)],CV.prototype,"ytdHorizontalListBehavior",void 0);n([M(),r("design:type",Object)],CV.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],CV.prototype,"engagementPanel",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],CV.prototype,"sdRedesign",void 0);n([M(),r("design:type",Object)],CV.prototype,"enableRightArrowHidden",void 0);n([H("enableRightArrowHidden","atEnd"),r("design:type",Boolean),r("design:paramtypes",[])],CV.prototype,"hideRightArrow",null);n([H("data"),r("design:type",Object),r("design:paramtypes",[])],CV.prototype,"creatorCustomUrlButtons",null); n([M({reflectToAttribute:!0}),r("design:type",Object)],CV.prototype,"showCreatorCustomUrlButtons",void 0);n([M(),r("design:type",Object)],CV.prototype,"channelAvatarSize",void 0);n([gu({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],CV); Tu(CV,"ytd-video-description-infocards-section-renderer",function(){if(DZb!==void 0)return DZb;var a=document.createElement("template");Q(a,"\n \n
\n

[[getSimpleString(data.sectionTitle)]]

\n \n
\n
\n
\n
\n \n
\n
\n
\n
\n
\n \n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return DZb=a},{mode:2});var EZb;var DV=function(){return E.apply(this,arguments)||this}; k(DV,E);n([F(Yz.YtRendererBehavior),r("design:type",Object)],DV.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],DV.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],DV.prototype,"data",void 0);n([M({computed:"computeIcon_(data.infoIcon)"}),r("design:type",Object)],DV.prototype,"infoIcon",void 0);n([gu({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],DV); Tu(DV,"ytd-eom-settings-disclaimer-renderer",function(){if(EZb!==void 0)return EZb;var a=document.createElement("template");Q(a,"
\n \n \n \n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return EZb=a},{mode:1});var FZb;var EV=function(){return E.apply(this,arguments)||this}; k(EV,E);ba.Object.defineProperties(EV.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.suppressPaddingDisclaimer)}}}); n([F(Yz.YtRendererBehavior),r("design:type",Object)],EV.prototype,"ytRendererBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],EV.prototype,"componentBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],EV.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],EV.prototype,"data",void 0);n([M({reflectToAttribute:!0}),H("data"),r("design:type",Boolean),r("design:paramtypes",[])],EV.prototype,"suppressPaddingDisclaimer",null); n([gu({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],EV); Tu(EV,"ytd-product-list-header-renderer",function(){if(FZb!==void 0)return FZb;var a=document.createElement("template");Q(a,"
\n \n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return FZb=a},{mode:1});var GZb;var FV=function(){return E.apply(this,arguments)||this}; k(FV,E);FV.prototype.computeThumbnailStyle=function(a){if(a&&(a=Iy(a)))return"background-color:"+a+";"}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],FV.prototype,"rendererBehaviors",void 0);n([M(),r("design:type",Object)],FV.prototype,"data",void 0);n([gu({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],FV); Tu(FV,"ytd-hashtag-tile-renderer",function(){if(GZb!==void 0)return GZb;var a=document.createElement("template");Q(a,"
");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return GZb=a},{mode:1});var HZb;var GV=function(){return E.apply(this,arguments)||this}; k(GV,E);GV.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.secondaryActionButton":{id:"secondary-action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],GV.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],GV.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],GV.prototype,"data",void 0);n([gu({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],GV); Tu(GV,"ytd-sponsorships-alert-renderer",function(){if(HZb!==void 0)return HZb;var a=document.createElement("template");Q(a,"\n
\n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return HZb=a},{mode:1});var IZb;var HV=function(){return E.apply(this,arguments)||this}; k(HV,E);HV.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}}; ba.Object.defineProperties(HV.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return!!this.isGridViewEnabled}}, thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled?"9999":"168"}}}); n([F(NQ),r("design:type",Object)],HV.prototype,"ytdDismissibleItemBehavior",void 0);n([F(bR),r("design:type",Object)],HV.prototype,"ytdLockupBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],HV.prototype,"ytRendererstamperBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],HV.prototype,"ytRendererBehavior",void 0);n([M({selector:sR}),r("design:type",Object)],HV.prototype,"isGridViewEnabled",void 0); n([H("isGridViewEnabled"),M({reflectToAttribute:!0}),r("design:type",Boolean),r("design:paramtypes",[])],HV.prototype,"watchFeedBigThumbs",null);n([H("isGridViewEnabled"),M({reflectToAttribute:!0}),r("design:type",String),r("design:paramtypes",[])],HV.prototype,"thumbnailWidth",null);n([M(),r("design:type",Object)],HV.prototype,"data",void 0);n([gu({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],HV); Tu(HV,"ytd-compact-movie-renderer",function(){if(IZb!==void 0)return IZb;var a=document.createElement("template");Q(a,"\n
\n\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return IZb=a},{mode:1});var JZb;var KZb;var LZb=Vk("HTML_DIR")==="rtl";function MZb(a,b){if(a.simpleText)return Object.assign({},a,{simpleText:VB(a.simpleText,b)});if(!a.runs)return a;for(var c=Object.assign({},a,{runs:[]}),d=0,e=l(a.runs),f=e.next();!f.done;f=e.next())if(f=f.value,f.text)if(d+f.text.length<=b)c.runs.push(f),d+=f.text.length;else return c.runs.push(Object.assign({},f,{text:VB(f.text,b-d)})),c;return a} var IV=function(){var a=E.apply(this,arguments)||this;a.engagementPanel=!1;a.maxLines=2;a.expandButtonOffset=0;a.showExpandButton=!1;a.isTruncated=!1;a.isExpanded=!1;a.currentSnippetType=2;a.alwaysShowExpandButton=!1;a.JSC$13968_lastWidth=NaN;a.observer=null;a.left=0;a.right=0;a.mid=0;a.longestSnippetLength=0;a.isFinalSnippet=!1;a.isFirstMutation=!1;a.isResetMutation=!1;a.OVERFLOW_THRESHOLD=5;return a}; k(IV,E);g=IV.prototype;g.onClick=function(a){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!AO(lt(a)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var b;if((b=window.getSelection())==null||!b.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}}; g.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText}; g.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText}; g.updateTextOnSnippetTypeChange=function(){x("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()}; g.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0}; g.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&fo(new Dl("AttributedSnippet is empty when the description is not empty",this.text))}; g.mutationCallback=function(){if(this.observer!=null){var a=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var b=Math.floor(a*this.maxLines/8);this.setSnippetText(this.text,b);b!==0||this.attributedTextIsEmpty()||fo(new Dl("Estimated visible character count is 0 for AttributedString description",this.text));this.isFinalSnippet=!0;return}if(this.isResetMutation){this.isResetMutation=!1;this.observer.disconnect();this.attributedTextIsEmpty()?this.maybeLogWarningForEmptyAttributedSnippet(): this.resize(!0);return}}if(this.isFinalSnippet)this.expandButtonOffset=this.computeExpandButtonOffset(),this.observer.disconnect(),this.maybeLogWarningForEmptyAttributedSnippet();else if(this.isFirstMutation){if(this.isOverflowing()){this.showExpandButton=this.isTruncated=!0;a=a*this.maxLines/8;this.left=0;var c;this.right=Math.min(a*2,(c=(b=this.simpleText)==null?void 0:b.length)!=null?c:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0;this.setSnippetText(this.text, this.mid);this.isFirstMutation=!1}else this.isTruncated=!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset()),this.isFinalSnippet=!0,this.isFirstMutation=!1,this.observer.disconnect(),this.maybeLogWarningForEmptyAttributedSnippet();}else{this.isOverflowing()?this.right=this.mid-1:(this.left=this.mid+1,this.longestSnippetLength=this.mid);if(this.left>this.right){if(this.mid===this.longestSnippetLength){this.expandButtonOffset=this.computeExpandButtonOffset();this.observer.disconnect(); this.maybeLogWarningForEmptyAttributedSnippet();return}this.setSnippetText(this.text,this.longestSnippetLength);this.isFinalSnippet=!0}this.mid=Math.floor(this.left+(this.right-this.left)/2);this.setSnippetText(this.text,this.mid)}}}; g.mutationObserve=function(a){var b=this;this.observer||(this.observer=new MutationObserver(function(){b.mutationCallback()})); this.observer.observe(a,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})}; g.attached=function(){var a=this;ms(this,function(){a.resize()})}; g.isExpandedChanged=function(){Gt(this.hostElement,"yt-text-inline-expander-expanded-changed")}; g.updateSnippetContainerMaxHeight=function(){this.isExpanded?(this.snippetContainer.style.setProperty("overflow",""),this.snippetContainer.style.setProperty("max-height","")):(this.snippetContainer.style.setProperty("overflow","hidden"),this.snippetContainer.style.setProperty("max-height",2*this.maxLines+"rem"));this.resize(!0)}; g.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var a="linear-gradient(\n to top,\n transparent 0%,\n transparent 2rem,\n #000 2rem,\n #000 100%), linear-gradient(\n to "+((LZb?"left":"right")+",\n #000 0%,\n #000 "+(this.expandButtonOffset-24)+"px,\n transparent "+this.expandButtonOffset+"px,\n transparent 100%)");this.snippetContainer.style.setProperty("-webkit-mask-image",a);this.snippetContainer.style.setProperty("mask-image", a)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(LZb?"right":"left",this.expandButtonOffset+"px")}; g.onTextChanged=function(){this.isAttached&&this.resize(!0)}; g.setSnippetText=function(a,b){a||(a={});if($B(a)){var c=UB(a,b);c.attachmentRuns||c.commandRuns||c.decorationRuns||c.styleRuns||c.alignment||c.lineBreakMode?this.attributedSnippetTextEl?(this.attributedSnippetText={data:UB(a,b),headerRuns:gYa(b,this.headerRuns)},this.currentSnippetType=0):fo(new Dl("Tried to set snippet text when HTML element was null",a)):(this.plainSnippetText.textContent=VB(a.content||"",b),this.currentSnippetType=2)}else{a:{c=MZb(a,b);if(c.runs){c=l(c.runs);for(var d=c.next();!d.done;d= c.next())if(d=d.value,d.bold||d.deemphasize||d.italics||d.strikethrough||d.textColor||d.navigationEndpoint||z(d,jy)){c=!0;break a}}c=!1}c?this.formattedSnippetText?(this.formattedSnippetText.text=MZb(a,b),this.currentSnippetType=1):fo(new Dl("Tried to set snippet text when HTML element was null",a)):(this.plainSnippetText.textContent=VB(lz(a),b),this.currentSnippetType=2)}}; g.attributedSnippetIsEmpty=function(){return(this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl:this.plainSnippetText).innerText.length===0}; g.attributedTextIsEmpty=function(){var a=this.text;if(!$B(a))return!0;var b;return((b=a.content)==null?void 0:b.length)===0?!0:!1}; g.resize=function(a){if(this.snippetText){if(a===void 0?0:a)this.JSC$13968_lastWidth=NaN;var b=this.hostElement.offsetWidth;if(b!==this.JSC$13968_lastWidth&&!this.isExpanded)if(this.JSC$13968_lastWidth=b,this.hasAttributedStringText)this.attributedSnippetIsEmpty()?(this.showExpandButton=this.alwaysShowExpandButton,this.isFinalSnippet=!1,this.isFirstMutation=!0,this.mutationObserve(this.snippetText),this.setSnippetText(this.text,Infinity)):(this.isResetMutation=!0,this.mutationObserve(this.snippetText), this.setSnippetText(this.text,0));else if(this.setSnippetText(this.text,Infinity),this.showExpandButton=this.alwaysShowExpandButton,this.isOverflowing()){this.showExpandButton=this.isTruncated=!0;a=0;var c,d;b=Math.min(b*this.maxLines/8*2,(d=(c=this.simpleText)==null?void 0:c.length)!=null?d:0)-1;for(c=0;a<=b;)d=Math.floor(a+(b-a)/2),this.setSnippetText(this.text,d),this.isOverflowing()?b=d-1:(a=d+1,c=d);this.setSnippetText(this.text,c);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated= !1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}}; g.collapse=function(){this.isExpanded=!1;this.resize(!0)}; g.onExpandClick=function(){var a=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);ms(this,function(){var b;((b=Fn().resolve(Cn(tD)))==null?0:b.keyboardInUse)&&ln(a.hostElement)}); Gt(this.hostElement,"yt-text-inline-expander-expand-clicked")}; g.onCollapseClick=function(){this.collapse();Gt(this.hostElement,"yt-text-inline-expander-collapse-clicked")}; g.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD}; g.computeExpandButtonOffset=function(){var a=this.expandSizer;return a?LZb?a.offsetParent?a.offsetParent.offsetWidth-a.offsetWidth-a.offsetLeft:0:a.offsetLeft:0}; ba.Object.defineProperties(IV.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?$B(this.text)?this.text.content||"":lz(this.text):""}}, expandedText:{configurable:!0,enumerable:!0,get:function(){return this.isExpanded?this.text:void 0}}, expandedHeaderRuns:{configurable:!0,enumerable:!0,get:function(){return this.isExpanded?this.headerRuns:void 0}}, hasAttributedStringText:{configurable:!0,enumerable:!0,get:function(){return $B(this.text)?!0:this.text&&x("web_replace_formatted_with_attributed_string")&&EXa(this.text)?(this.text=GB(this.text),!0):!1}}, showCollapseButton:{configurable:!0,enumerable:!0,get:function(){return!!this.collapseLabel&&this.isExpanded}}, useAttributedSnippet:{configurable:!0,enumerable:!0,get:function(){return this.currentSnippetType===0}}, useFormattedSnippet:{configurable:!0,enumerable:!0,get:function(){return this.currentSnippetType===1}}, usePlainSnippet:{configurable:!0,enumerable:!0,get:function(){return this.currentSnippetType===2}}}); IV.prototype.onTextChanged=IV.prototype.onTextChanged;IV.prototype.updateMaskAndExpandButtonOffset=IV.prototype.updateMaskAndExpandButtonOffset;IV.prototype.updateSnippetContainerMaxHeight=IV.prototype.updateSnippetContainerMaxHeight;IV.prototype.isExpandedChanged=IV.prototype.isExpandedChanged;IV.prototype.updateTextOnSnippetTypeChange=IV.prototype.updateTextOnSnippetTypeChange;IV.prototype.updateIsFormattedExpanded=IV.prototype.updateIsFormattedExpanded;IV.prototype.updateIsAttributedExpanded=IV.prototype.updateIsAttributedExpanded; IV.prototype.onClick=IV.prototype.onClick;n([F(mz.YtComponentBehavior),r("design:type",Object)],IV.prototype,"componentBehavior",void 0);n([M(),r("design:type",Object)],IV.prototype,"text",void 0);n([M(),r("design:type",Array)],IV.prototype,"headerRuns",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],IV.prototype,"engagementPanel",void 0);n([M(),r("design:type",Object)],IV.prototype,"maxLines",void 0);n([M(),r("design:type",String)],IV.prototype,"expandLabel",void 0); n([M(),r("design:type",String)],IV.prototype,"collapseLabel",void 0);n([M(),r("design:type",Object)],IV.prototype,"expandCommand",void 0);n([M(),r("design:type",Object)],IV.prototype,"expandButtonOffset",void 0);n([H("text"),r("design:type",String),r("design:paramtypes",[])],IV.prototype,"simpleText",null);n([Kt("click"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],IV.prototype,"onClick",null); n([H("text","isExpanded"),r("design:type",Object),r("design:paramtypes",[])],IV.prototype,"expandedText",null);n([H("headerRuns","isExpanded"),r("design:type",Object),r("design:paramtypes",[])],IV.prototype,"expandedHeaderRuns",null);n([H("text"),r("design:type",Boolean),r("design:paramtypes",[])],IV.prototype,"hasAttributedStringText",null);n([M({reflectToAttribute:!0}),r("design:type",Object)],IV.prototype,"showExpandButton",void 0); n([H("collapseLabel","isExpanded"),r("design:type",Object),r("design:paramtypes",[])],IV.prototype,"showCollapseButton",null);n([M(),r("design:type",Object)],IV.prototype,"isTruncated",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],IV.prototype,"isExpanded",void 0);n([M(),r("design:type",Boolean)],IV.prototype,"isAttributedExpanded",void 0); n([Lt("isExpanded","hasAttributedStringText"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],IV.prototype,"updateIsAttributedExpanded",null);n([M(),r("design:type",Boolean)],IV.prototype,"isFormattedExpanded",void 0);n([Lt("isExpanded","hasAttributedStringText"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],IV.prototype,"updateIsFormattedExpanded",null);n([M(),r("design:type",Number)],IV.prototype,"currentSnippetType",void 0); n([H("currentSnippetType"),r("design:type",Object),r("design:paramtypes",[])],IV.prototype,"useAttributedSnippet",null);n([H("currentSnippetType"),r("design:type",Object),r("design:paramtypes",[])],IV.prototype,"useFormattedSnippet",null);n([H("currentSnippetType"),r("design:type",Object),r("design:paramtypes",[])],IV.prototype,"usePlainSnippet",null);n([M(),r("design:type",Object)],IV.prototype,"alwaysShowExpandButton",void 0); n([Lt("currentSnippetType"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],IV.prototype,"updateTextOnSnippetTypeChange",null);n([M(),r("design:type",Object)],IV.prototype,"attributedSnippetText",void 0);n([Tt("#snippet"),r("design:type",HTMLElement)],IV.prototype,"snippetContainer",void 0);n([Tt("#snippet-text"),r("design:type",HTMLElement)],IV.prototype,"snippetText",void 0);n([Tt("#plain-snippet-text"),r("design:type",HTMLElement)],IV.prototype,"plainSnippetText",void 0); n([Tt("#formatted-snippet-text"),r("design:type",Object)],IV.prototype,"formattedSnippetText",void 0);n([Tt("#attributed-snippet-text"),r("design:type",HTMLElement)],IV.prototype,"attributedSnippetTextEl",void 0);n([Tt("#expand"),r("design:type",HTMLElement)],IV.prototype,"expandButton",void 0);n([Tt("#expand-sizer"),r("design:type",HTMLElement)],IV.prototype,"expandSizer",void 0); n([cu("isExpanded"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],IV.prototype,"isExpandedChanged",null);n([Lt("isExpanded","maxLines"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],IV.prototype,"updateSnippetContainerMaxHeight",null);n([Lt("isTruncated","showExpandButton","expandButtonOffset"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],IV.prototype,"updateMaskAndExpandButtonOffset",null); n([cu("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],IV.prototype,"onTextChanged",null);n([gu({is:"ytd-text-inline-expander",disableElementRegistration:!0})],IV); Tu(IV,"ytd-text-inline-expander",function(){if(KZb===void 0){var a=document.createElement("template");Q(a,"
");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);KZb=a}a=KZb;return a},{mode:2});var JV=function(){var a=E.apply(this,arguments)||this;a.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return a}; k(JV,E);JV.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())}; JV.prototype.handleUpdateDescriptionAction=function(a){if(a=z(a,$sb))if(a.attributedDescription)this.set("data.attributedDescriptionBodyText",a.attributedDescription);else if(a.description){var b;((b=this.data)==null?0:b.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",GB(a.description)):this.set("data.descriptionBodyText",a.description)}}; ba.Object.defineProperties(JV.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var a,b;return!((a=this.data)==null||!a.attributedDescriptionBodyText)||!((b=this.data)==null||!b.descriptionBodyText)}}, collapsedLines:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null?0:a.collapsedLineCount){var b;return(b=this.data)==null?void 0:b.collapsedLineCount}a=ll("web_watch_description_collapsed_default_lines",12);b=Math;var c=b.round;ayb||(ayb=Fia(window));return Math.max(c.call(b,ayb.height*ll("web_watch_description_screen_height_percentage",.5)/20),a)}}, descriptionText:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return(c=(a=this.data)==null?void 0:a.descriptionBodyText)!=null?c:(b=this.data)==null?void 0:b.attributedDescriptionBodyText}}, headerRuns:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.headerRuns}}, sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.sourceAttributions}}}); JV.prototype.panelContentVisibleChanged=JV.prototype.panelContentVisibleChanged;n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],JV.prototype,"ytActionHandlerBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],JV.prototype,"ytRendererBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],JV.prototype,"componentBehavior",void 0);n([M(),r("design:type",Object)],JV.prototype,"data",void 0); n([M(),r("design:type",Boolean)],JV.prototype,"panelContentVisible",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],JV.prototype,"engagementPanel",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],JV.prototype,"shortsPanel",void 0);n([Tt("#inline-expander"),r("design:type",Object)],JV.prototype,"inlineExpander",void 0);n([Lt("panelContentVisible"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],JV.prototype,"panelContentVisibleChanged",null); n([H("data"),r("design:type",Boolean),r("design:paramtypes",[])],JV.prototype,"hasDescriptionText",null);n([H("data"),r("design:type",Number),r("design:paramtypes",[])],JV.prototype,"collapsedLines",null);n([H("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),r("design:type",Object),r("design:paramtypes",[])],JV.prototype,"descriptionText",null);n([H("data","data.headerRuns"),r("design:type",Object),r("design:paramtypes",[])],JV.prototype,"headerRuns",null); n([H("data","data.sourceAttributions"),r("design:type",Object),r("design:paramtypes",[])],JV.prototype,"sourceAttributions",null);n([gu({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],JV); Tu(JV,"ytd-expandable-video-description-body-renderer",function(){if(JZb!==void 0)return JZb;var a=document.createElement("template");Q(a,"\n
\n\n
");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return JZb=a},{mode:2});var NZb;var OZb=O(function(a){var b=a.data;a={};return D("factoid-renderer",{class:"ytwFactoidRendererHost"},D("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return b().accessibilityText}},D("span",{class:U("ytwFactoidRendererValue",(a.ytwFactoidRendererValueRedesign=x("desktop_include_oswald"),a))},D(gC,{text:function(){return b().value}})),D("span",{class:"ytwFactoidRendererLabel"},D(gC,{text:function(){return b().label}}))))},"Pc");bB(OZb,"factoid-renderer",{props:{data:$A}});var PZb=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("nw34mb"),2);a=OZb;return b.return(a)})},QZb=yD(function(){return PZb()},{debugName:"factoidRenderer"}); Gn(xD,function(a){a.registerLoadFn("factoidRenderer","nw34mb",PZb)});bB(O(function(a){var b=a.data;return D("upload-time-factoid-renderer",null,D(OC,{data:function(){return b().factoid}},{factoidRenderer:QZb}))},"Qc"),"upload-time-factoid-renderer",{props:{data:aB}});bB(O(function(a){var b=a.data;return D("view-count-factoid-renderer",null,D(OC,{data:function(){return b().factoid}},{factoidRenderer:QZb}))},"Rc"),"view-count-factoid-renderer",{props:{data:aB}});var KV=function(){var a=E.apply(this,arguments)||this;a.shortsPanel=!1;a.engagementPanel=!1;a.watchWhileSdp=x("shorts_desktop_watch_while_sdp");a.sdRedesignExp=x("desktop_include_oswald");return a}; k(KV,E);KV.prototype.configureRendererStamper=function(){return{"data.factoid":{id:"factoids",mapping:{factoidRenderer:{component:"factoid-renderer"},viewCountFactoidRenderer:{component:"view-count-factoid-renderer"},uploadTimeFactoidRenderer:{component:"upload-time-factoid-renderer"}}}}}; ba.Object.defineProperties(KV.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var a;return(a=this.data)==null?void 0:a.channel}}}); n([F(mz.YtComponentBehavior),r("design:type",Object)],KV.prototype,"componentBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],KV.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],KV.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],KV.prototype,"shortsPanel",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],KV.prototype,"engagementPanel",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],KV.prototype,"watchWhileSdp",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],KV.prototype,"sdRedesignExp",void 0);n([H("shortsPanel","engagementPanel","data.channel"),r("design:type",Object),r("design:paramtypes",[])],KV.prototype,"showChannelInfo",null);n([gu({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],KV); Tu(KV,"ytd-video-description-header-renderer",function(){if(NZb!==void 0)return NZb;var a=document.createElement("template");Q(a,"\n\n\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return NZb=a},{mode:1});var RZb;var LV=function(){return E.apply(this,arguments)||this}; k(LV,E);n([F(mz.YtComponentBehavior),r("design:type",Object)],LV.prototype,"ytComponentBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],LV.prototype,"ytRendererBehavior",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],LV.prototype,"noPadding",void 0);n([M(),r("design:type",Object)],LV.prototype,"data",void 0);n([gu({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],LV); Tu(LV,"ytd-list-item-view-model",function(){if(RZb!==void 0)return RZb;var a=document.createElement("template");Q(a,"
\n \n
\n \n \n \n \n
\n \n \n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return RZb=a},{mode:1});var SZb;var TZb;var UZb;var VZb;var MV=function(){var a=E.apply(this,arguments)||this;a.adaptiveFullWidth=!1;a.modernButtons=x("web_modern_buttons");a.buttonOverrides={style:"call-to-action",type:"filled"};a.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return a}; k(MV,E);MV.prototype.handleSetTimestamp_=function(a){this.data&&this.data.shortUrl&&(wt(this.hostElement).querySelector("#share-url").value=a.isSet?bd(this.data.shortUrl,"t",a.timestamp):this.data.shortUrl)}; MV.prototype.handleSignalActionCopyShareUrl_=function(a,b){(x("killswitch_copy_link_target_check")||wt(this.hostElement).querySelector("#copy-button")===b)&&this.copyUrlToClipboard()}; MV.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();wt(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")}; MV.prototype.computeStyle_=function(a){return a?a.toLowerCase().replace(/_/g,"-"):""}; n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],MV.prototype,"ytActionHandlerBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],MV.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],MV.prototype,"data",void 0);n([M({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),r("design:type",String)],MV.prototype,"rendererStyle",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],MV.prototype,"adaptiveFullWidth",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],MV.prototype,"modernButtons",void 0);n([M(),r("design:type",Object)],MV.prototype,"buttonOverrides",void 0);n([fu({is:"yt-copy-link-renderer",disableElementRegistration:!0})],MV); Tu(MV,"yt-copy-link-renderer",function(){if(VZb===void 0){var a=document.createElement("template");Q(a,"
\n \n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;UZb===void 0&&(UZb=document.createElement("template"));var d=UZb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);VZb=a}a=VZb;return a},{mode:2});kE("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var NV=function(){var a=E.apply(this,arguments)||this;a.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return a}; k(NV,E);g=NV.prototype;g.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}}; g.attached=function(){this.keyboardFocused=!1}; g.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var a=Fn().resolve(Cn(tD));a&&(this.keyboardFocused=a.keyboardInUse)}}; g.onToggleButtonFocusout_=function(){this.keyboardFocused=!1}; g.computeDescription_=function(){if(this.data){if(this.data.toggled&&this.data.toggledDescription)return this.data.toggledDescription;if(!this.data.toggled&&this.data.description)return this.data.description}}; g.onChange_=function(){if(this.data){var a=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;a&&this.ytComponentBehavior.resolveCommand(a);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}}; g.handleUpdateToggleAction_=function(a){(a=z(a,Amb))&&this.data&&a.targetId==this.data.targetId&&this.set("data.toggled",a.toggled)}; g.toBoolean_=function(a){return!!a}; g.reset=function(){}; g.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new uM("data-changed",this.data))}; g.updateDataToggledFromBinding=function(a){this.set("data.toggled",a.detail.value)}; NV.prototype.dataChangedForBinding=NV.prototype.dataChangedForBinding;n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],NV.prototype,"ytActionHandlerBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],NV.prototype,"ytRendererstamperBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],NV.prototype,"ytComponentBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],NV.prototype,"ytRendererBehavior",void 0); n([M(),r("design:type",Object)],NV.prototype,"data",void 0);n([M({computed:"computeDescription_(data.*)"}),r("design:type",Object)],NV.prototype,"description_",void 0);n([M({value:function(){return!!Fn().resolve(Cn(tD))&&x("kevlar_keyboard_button_focus")}, reflectToAttribute:!0}),r("design:type",Boolean)],NV.prototype,"useKeyboardFocused",void 0);n([M({value:!1,reflectToAttribute:!0}),r("design:type",Boolean)],NV.prototype,"keyboardFocused",void 0);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],NV.prototype,"dataChangedForBinding",null);n([fu({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],NV); Tu(NV,"yt-toggle-form-field-renderer",function(){if(TZb===void 0){var a=document.createElement("template");Q(a,"
\n
[[getSimpleString(data.label)]]
\n \n \n
\n\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;SZb===void 0&&(SZb=document.createElement("template"));var d=SZb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);TZb=a}a=TZb;return a},{mode:2});var WZb;var XZb;var OV=function(){var a=E.apply(this,arguments)||this;a.isDarkTheme=!1;a.isSearch=!1;a.noTopMargin=!1;a.actionMap={"yt-related-chip-command":"handleRelatedChipCommand","yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a}; k(OV,E);g=OV.prototype;g.configureRendererStamper=function(){return{"data.chips":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer"}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},params:{iconSize:16}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}}; g.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")}; g.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")}; g.dataChanged=function(){var a=this.getSelectedIndex();if(a>0)this.selected=a;else{this.selected=0;var b,c;(b=this.ytScrollableChipCloudBehavior)==null||(c=b.reset)==null||c.call(b)}}; g.getSelectedIndex=function(){var a;if((a=this.data)==null||!a.chips)return-1;a=-1;for(var b,c=0;c<((b=this.data)==null?void 0:b.chips.length);c++){var d=void 0,e=void 0;if((d=this.data)==null?0:(e=d.chips[c].chipCloudChipRenderer)==null?0:e.isSelected){a=c;break}}return a}; g.onResize=function(){var a=this.ytScrollableChipCloudBehavior;ms(a,a.setContainerWidthDiff);a=this.ytScrollableChipCloudBehavior;ms(a,a.setButtonsState)}; g.onDarkModeToggledAction=function(a){this.isDarkTheme=a}; g.handleRelatedChipCommand=function(a,b){a=this.chipsSelector.indexOf(b);a!==-1&&this.chipsSelector.selectIndex(a)}; g.handleChipCloudChipSelectAction=function(a){a=this.chipsSelector.indexOf(a);a>-1&&this.chipsSelector.selectIndex(a)}; g.handleChipCloudChipDeselectAction=function(){var a=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.chipsSelector&&((a==null?0:a.continuationCommand)?$u(this.hostElement,[a]):(a==null?0:a.searchEndpoint)?this.ytComponentBehavior.resolveCommand(a):a&&Zu(this.hostElement,[a],this.hostElement),this.chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())}; g.updateSelectedFromBinding=function(a){this.selected=a.detail.value}; OV.prototype.onResize=OV.prototype.onResize;OV.prototype.dataChanged=OV.prototype.dataChanged;OV.prototype.isSearchChanged=OV.prototype.isSearchChanged;n([F($C.YtRendererstamperBehavior),r("design:type",Object)],OV.prototype,"ytRendererstamperBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],OV.prototype,"ytRendererBehavior",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],OV.prototype,"actionHandlerBehavior",void 0); n([F(Hs),r("design:type",Object)],OV.prototype,"ironResizableBehavior",void 0);n([F(),r("design:type",gQ)],OV.prototype,"ytScrollableChipCloudBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],OV.prototype,"ytComponentBehavior",void 0);n([M(),r("design:type",Object)],OV.prototype,"data",void 0);n([M({value:0}),r("design:type",Number)],OV.prototype,"selected",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],OV.prototype,"isDarkTheme",void 0); n([M({value:160}),r("design:type",Number)],OV.prototype,"scrollDistance",void 0);n([M(),r("design:type",Object)],OV.prototype,"isSearch",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],OV.prototype,"noTopMargin",void 0);n([Tt("#chips"),r("design:type",Object)],OV.prototype,"chipsSelector",void 0);n([Lt("isSearch"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],OV.prototype,"isSearchChanged",null); n([cu("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],OV.prototype,"dataChanged",null);n([Kt("iron-resize"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],OV.prototype,"onResize",null);n([fu({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],OV); Tu(OV,"yt-chip-cloud-renderer",function(){if(XZb===void 0){var a=document.createElement("template");Q(a,"
\n
\n
\n
\n
\n \n \n
\n
\n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;WZb===void 0&&(WZb=document.createElement("template"));var d=WZb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);XZb=a}a=XZb;return a},{mode:2});var YZb;var ZZb;var PV=function(){var a=E.apply(this,arguments)||this;a.noTopMargin=!1;a.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return a}; k(PV,E);PV.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{noTopMargin:"[[noTopMargin]]"}}}}}}; PV.prototype.handleRelatedChipCommand=function(a){a=z(a,btb);var b=a.contents;b?Yu(this.hostElement,"yt-item-section-replace-action",[b,a.targetSectionIdentifier]):Yu(this.hostElement,"yt-item-section-continuation-action",[a.continuationData,a.targetSectionIdentifier])}; n([F($C.YtRendererstamperBehavior),r("design:type",Object)],PV.prototype,"ytRendererstamperBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],PV.prototype,"ytRendererBehavior",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],PV.prototype,"actionHandlerBehavior",void 0);n([M(),r("design:type",Object)],PV.prototype,"data",void 0);n([M(),r("design:type",Object)],PV.prototype,"noTopMargin",void 0); n([fu({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],PV); Tu(PV,"yt-related-chip-cloud-renderer",function(){if(ZZb===void 0){var a=document.createElement("template");Q(a,"
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;YZb===void 0&&(YZb=document.createElement("template"));var d=YZb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);ZZb=a}a=ZZb;return a},{mode:2});var $Zb,a_b=function(){return $Zb!==void 0?$Zb:$Zb=document.createElement("template")}; document.head.appendChild(a_b().content);var b_b;var c_b=document.head,d_b=c_b.appendChild,e_b;if(b_b===void 0){var f_b=document.createElement("template");Q(f_b,"");f_b.content.insertBefore(a_b().content.cloneNode(!0),f_b.content.firstChild);b_b=f_b}e_b=b_b;d_b.call(c_b,e_b.content);var g_b=O(function(a){var b=a.data;return D("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},D("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},D("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},D(P,{cond:function(){return wD(b().image)}, then:function(c){return D("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},D(eC,{data:c,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),D("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},D(gC,{text:function(){return b().title}})),D("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},D(gC,{text:function(){return b().subtitle}})))),D(P,{cond:function(){var c; return(c=b())==null?void 0:c.hasBottomDivider}, then:function(){return D("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"Sc");var h_b=O(function(a){var b=a.data;return D("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},D("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},D(OC,{data:function(){var c;return(c=b().offerPlanDetailsItem)!=null?c:[]}},{offerPlanDetailsItemViewModel:function(c){return D("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},D(g_b,{data:c.data}))}})),D("div",null,D(P,{cond:function(){return b().hasBottomDivider}, then:function(){return D("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},D("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),D("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},D("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),D("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"Tc");var i_b=O(function(a){var b=a.data;a=l(ip(!1,void 0,"nwFU2e"));var c=a.next().value,d=a.next().value,e=FC(function(){d(!c());return!1}),f=function(){var h; return(h=b().offerPlanDetailsContainer)!=null?h:[]}; return D("lp-complex-offer-card-details-view-model",null,D("div",null,D(P,{cond:function(){return c()}, then:function(){return D("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},D("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":e,"aria-expanded":c},D(gC,{text:function(){return b().expandedTitle}})),D("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},D(OC,{data:f},{offerPlanDetailsContainerViewModel:function(h){return D("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},D(h_b,{data:h.data}))}})), D("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},D(gC,{text:function(){return b().legalText}})))}, else:function(){return D("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":e,"aria-expanded":c},D(gC,{text:function(){return b().collapsedTitle}}),D("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},D(aC,{icon:"EXPAND_MORE".toString(), ariaHidden:!0})))}})))},"Uc");var j_b=O(function(a){var b=a.data;return D("lp-complex-offer-card-option-view-model",null,D("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},D(P,{cond:function(){return b().topDividerText}, then:function(){return D("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},D("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),D("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},D("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},D(gC,{text:function(){return b().topDividerText}}))))}}),D(P,{cond:function(){return b().description}, then:function(){return D("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},D(gC,{text:function(){return b().description}}))}}),D(P,{cond:function(){return b().planPricingPrimary}, then:function(){return D("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},D(gC,{text:function(){return b().planPricingPrimary}}))}}),D(P,{cond:function(){return b().planPricingSecondary}, then:function(){return D("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},D(gC,{text:function(){return b().planPricingSecondary}}))}}),D(P,{cond:function(){return b().planPricingDetails}, then:function(c){return D("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingDetails"},D(P,{cond:function(){return c().promotionTagPrimary}, then:function(d){return D("div",{class:"ytLpComplexOfferCardOptionViewModelPromotionTagPrimary"},D(gC,{text:d}))}}),D("div",{class:"ytLpComplexOfferCardOptionViewModelPriceRow"},D(P,{cond:function(){return c().planDisplayPrice}, then:function(d){return D("div",{class:"ytLpComplexOfferCardOptionViewModelPlanDisplayPrice"},D(gC,{text:d}))}}),D(P,{cond:function(){return c().planOriginalPrice}, then:function(d){return D("div",{class:"ytLpComplexOfferCardOptionViewModelPlanOriginalPrice"},D(gC,{text:d}))}})),D(P,{cond:function(){return c().promotionTagSecondary}, then:function(d){return D("div",{class:"ytLpComplexOfferCardOptionViewModelPromotionTagSecondary"},D(gC,{text:d}))}}))}}),D(P,{cond:function(){return b().primaryButton}, then:function(){return D("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},D(OC,{data:function(){return b().primaryButton}},{buttonViewModel:function(c){return D(AD,{data:c.data, className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"Vc");var k_b=O(function(a){var b=function(){var c;return(c=a.data())==null?void 0:c.iconType}; return D("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},D("div",{class:"ytLpFeatureListItemViewModelFeatureList"},D(aC,{icon:b,className:function(){var c;switch((c=a.data())==null?void 0:c.style){case"LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconGreen";case"LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconSmall";case"LP_FEATURE_LIST_ITEM_STYLE_PRIMARY_ICON_PRIMARY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconPrimary"; case"LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconBold";default:return"ytLpFeatureListItemViewModelFeatureListIconDefault";}}, active:function(){var c;return((c=a.data())==null?void 0:c.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}, "aria-label":function(){a:{switch(b()){case"CHECK":var c="Feature included";break a;case"CLOSE":c="Feature not included";break a;}c=void 0}return c}}),D("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},D(gC,{text:function(){var c; return(c=a.data())==null?void 0:c.text}, className:function(){var c;return((c=a.data())==null?void 0:c.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"Wc");var l_b=O(function(a){var b=a.data;var c=function(){var f;return((f=b())==null?void 0:f.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1}; a={};var d={},e={};return D("ytm-lp-complex-offer-card-view-model",null,D("div",{class:"ytmLpComplexOfferCardViewModelHost"},D("div",{class:U((a.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=c,a),"ytmLpComplexOfferCardViewModelCardContainer")},D(P,{cond:function(){var f;return(f=b())==null?void 0:f.bannerText}, then:function(){var f={},h={};return D("div",{class:U((f.ytmLpComplexOfferCardViewModelBannerTextContainerAlignLeft=c,f),"ytmLpComplexOfferCardViewModelBannerTextContainer")},D("div",{class:U((h.ytmLpComplexOfferCardViewModelBannerTextAlignLeft=c,h),"ytmLpComplexOfferCardViewModelBannerText")},D(gC,{text:function(){return b().bannerText}})))}}),D(P,{cond:function(){return wD(b().logo)}, then:function(f){var h={};return D("div",{class:U((h.ytmLpComplexOfferCardViewModelLogoAlignLeft=c,h),"ytmLpComplexOfferCardViewModelLogo")},D(eC,{data:f,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),D("div",{class:U((d.ytmLpComplexOfferCardViewModelTitleAlignLeft=c,d),"ytmLpComplexOfferCardViewModelTitle")},D(gC,{text:function(){return b().title}})),D(P,{cond:function(){var f; return(f=b())==null?void 0:f.subtitle}, then:function(){var f={};return D("div",{class:U((f.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=c,f),"ytmLpComplexOfferCardViewModelSubtitle")},D(gC,{text:function(){return b().subtitle}}))}}),D(P,{cond:function(){return b().planPricingPrimary}, then:function(){return D("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},D(gC,{text:function(){return b().planPricingPrimary}}))}}),D(P,{cond:function(){return b().planPricingSecondary}, then:function(){return D("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},D(gC,{text:function(){return b().planPricingSecondary}}))}}),D(P,{cond:function(){return b().purchaseButton}, then:function(){return D("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},D(OC,{data:function(){return b().purchaseButton}},{buttonViewModel:function(f){return D(AD,{data:f.data, className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),D(P,{cond:function(){var f; return(f=b())==null?void 0:f.offerOptions}, then:function(){return D("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},D(OC,{data:function(){return b().offerOptions}},{lpComplexOfferCardOptionViewModel:j_b}))}}),D(P,{cond:function(){var f; return(f=b())==null?void 0:f.featureListItems}, then:function(){return D("div",{class:"ytmLpComplexOfferCardViewModelFeatureListItems",role:"list"},D(OC,{data:function(){return b().featureListItems}},{lpFeatureListItemViewModel:function(f){return D("div",{role:"listitem"},D(k_b,{data:f.data}))}}))}}),D("div",{class:U((e.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=c,e),"ytmLpComplexOfferCardViewModelLegalText")},D(gC,{text:function(){return b().legalText}})),D(P,{cond:function(){var f; return(f=b())==null?void 0:f.offerCardDetails}, then:function(){return D("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},D(OC,{data:function(){return b().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:i_b}))}}))))},"Xc");var m_b=O(function(a){var b=a.data;var c=function(){var h;return((h=b())==null?void 0:h.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1}; a={};var d={},e={},f={};return D("ytm-lp-complex-offer-card-section-view-model",null,D("div",{class:U("ytmLpComplexOfferCardSectionViewModelHost")},D("div",{class:U((a.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=c,a),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},D("div",{class:U((d.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=c,d),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},D("h2",{class:U((e.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft= c,e),"ytmLpComplexOfferCardSectionViewModelTitleText")},D(gC,{text:function(){return b().title}}))),D(P,{cond:function(){var h; return(h=b())==null?void 0:h.subtitle}, then:function(){var h={},m={};return D("div",{class:U((h.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=c,h),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},D("div",{class:U((m.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=c,m),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},D(gC,{text:function(){return b().subtitle}})))}}),D("div",{class:U((f.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=c,f),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")}, D(OC,{data:function(){var h; return(h=b().offerPlans)!=null?h:[]}},{lpComplexOfferCardViewModel:function(h){return D("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},D(l_b,{data:h.data}))}})))))},"Yc");var n_b=O(function(a){return D("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},D("div",{class:"ytLpCouponBannerViewModelIcon"},D(aC,{icon:function(){return"price_tag"}})),D("div",{class:"ytLpCouponBannerViewModelOuterContainer"},D("div",{class:"ytLpCouponBannerViewModelContent"},D("div",{class:"ytLpCouponBannerViewModelHeading"},D(gC,{text:function(){var b; return(b=a.data())==null?void 0:b.title}})),D("div",{class:"ytLpCouponBannerViewModelBody"},D(gC,{text:function(){var b; return(b=a.data())==null?void 0:b.subtitle}})))))},"Zc"); n_b.idomCompat=!0;var o_b=O(function(a){return D("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsQuestion","aria-hidden":a.shouldAriaHideContent},D("h2",{class:"ytLpFaqEntryViewModelLpFaqQuestion",id:a.questionId},D(gC,{text:a.question})))},"$c"),p_b=O(function(a){var b=a.data; var c=a.themeOverride;a=l(ip(!1,void 0,"lmDL0d"));var d=a.next().value,e=a.next().value;a=FC(function(){e(!d());return!1}); var f=function(){return d()?"EXPAND_LESS":"EXPAND_MORE"},h=("faq-container"+Kw()).toString(),m="faq-question-and-answers-section-question"+Kw(),p={},q={}; return D("faq-entry-view-model",null,D("div",{class:U("ytLpFaqEntryViewModelHost",(p.ytLpFaqEntryViewModelPremiumForceDarkMode=function(){return c==null?void 0:c().useDarkTheme},p))},D("div",{class:"ytLpFaqEntryViewModelFaqQuestionAndAnswersSection", "on:click":a,role:"button","aria-expanded":d,"aria-labelledby":m.toString(),"tab-index":"0"},D(o_b,{question:function(){return b().question}, questionId:m,shouldAriaHideContent:!0}),D(P,{cond:function(){return d()!==void 0}, then:function(){return D("div",{class:"ytLpFaqEntryViewModelIconContainer"},D(aC,{icon:f,ariaHidden:!0}),D("div",{class:"ytLpFaqEntryViewModelIconHoverHighlighting"}))}})),D("div",{class:U("ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswer",(q.ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswerCollapsed=function(){return!d()},q))},D("div",{id:h},D(mw,{each:function(){return b().answers||[]}},function(t){return D("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsAnswer"},D(gC,{text:t}))})))))},"ad"); p_b.idomCompat=!0;var q_b=O(function(a){var b=a.data;var c=a.themeOverride;a={};return D("lp-faq-section-view-model",null,D("div",{class:U("ytLpFaqSectionViewModelHost",(a.ytLpFaqSectionViewModelPtcLayoutType=function(){return b().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},a.ytLpFaqSectionViewModelPremiumForceDarkMode=function(){return!(c==null||!c().useDarkTheme)},a))},D("div",{class:"ytLpFaqSectionViewModelFaqContainer"},D(P,{cond:function(){return b().header}, then:function(d){return D("div",{class:"ytLpFaqSectionViewModelLpFaqSectionHeader"},D(gC,{text:d}))}}),D("div",{class:"ytLpFaqSectionViewModelLpFaqSectionFaqs"},D(OC,{data:function(){return b().faqs}},{faqEntryViewModel:function(d){return D(p_b,{data:d.data, themeOverride:c})}})),D("div",{class:"ytLpFaqSectionViewModelLpFaqSectionFooters"},D(mw,{each:function(){return b().footers||[]}},function(d){return D(gC,{text:d})})),D(P,{cond:function(){return b().legal}, then:function(d){return D("div",{class:"ytLpFaqSectionViewModelLpFaqSectionLegal"},D(gC,{text:d}))}}))))},"bd"); q_b.idomCompat=!0;var r_b=O(function(a){var b=a.data;var c=a.themeOverride;rw(function(){var h=b().gtmId;h&&uyb(h,Vk("GL",""))}); var d={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var h,m,p;return(p=(h=b().logo)==null?void 0:(m=h.accessibilityData)==null?void 0:m.label)!=null?p:""}, targetWidth:140,targetHeight:40,height:40,className:"lpHeaderSectionViewModelLpHeaderLogo",useWidth:!1},e=Fn().resolve(Cn(HB)),f=function(){return e&&e()||(c==null?void 0:c().useDarkTheme)}; return D("lp-header-section-view-model",null,D("div",{class:function(){var h=b().layoutType,m=b().marginType==="LP_SECTION_MARGIN_TYPE_TOP",p=c==null?void 0:c().useDarkTheme,q=["lpHeaderSectionViewModelHost"];switch(h){case"LP_MODULE_LAYOUT_TYPE_PTC":q.push("lpHeaderSectionViewModelPtcLayoutType");break;case"LP_MODULE_LAYOUT_TYPE_NARROW_HEADER":q.push("lpHeaderSectionViewModelNarrowHeaderLayoutType");}m&&q.push("lpHeaderSectionViewModelLpHeaderSectionMargin");p&&q.push("lpHeaderSectionViewModelPremiumForceDarkMode"); return q.join(" ")}},D(P,{cond:function(){return b().logo}, then:function(){return D("div",null,D(P,{cond:f,then:function(){return D(P,{cond:function(){var h;return(h=b().logo)==null?void 0:h.imageDark}, then:function(h){return D(eC,Object.assign({},{data:h},d))}})}, else:function(){return D(P,{cond:function(){var h;return(h=b().logo)==null?void 0:h.imageLight}, then:function(h){return D(eC,Object.assign({},{data:h},d))}})}}))}}),D(P,{cond:function(){return b().title}, then:function(h){return D("div",{class:"lpHeaderSectionViewModelLpHeaderTitle"},D(gC,{text:h}))}}),D("div",{class:"lpHeaderSectionViewModelLpHeaderSubtitleSection"},D(P,{cond:function(){return b().subtitles}, then:function(h){return D(mw,{each:h},function(m){return D("div",{class:"lpHeaderSectionViewModelLpHeaderSubtitleLine"},D(gC,{text:m}))})}})),D(P,{cond:function(){return b().additionalInfo}, then:function(h){return D("div",{class:"lpHeaderSectionViewModelLpHeaderAdditionalInfo"},D(gC,{text:h}))}}),D("div",{class:"lpHeaderSectionViewModelLpHeaderButtonSection"},D(P,{cond:function(){return b().primaryButton}, then:function(h){return D("div",{class:"lpHeaderSectionViewModelLpHeaderPrimaryButton"},D(OC,{data:h},{buttonViewModel:AD}))}}),D(P,{cond:function(){return b().secondaryButton}, then:function(h){return D("div",{class:"lpHeaderSectionViewModelLpHeaderSecondaryButton"},D(OC,{data:h},{buttonViewModel:AD}))}})),D(P,{cond:function(){return b().otherOffersInfo}, then:function(h){return D("div",{class:"lpHeaderSectionViewModelLpHeaderOtherOffersInfo"},D(gC,{text:h}))}}),D("div",{class:"lpHeaderSectionViewModelLpHeaderBillingInfo"},D(P,{cond:function(){return b().billingInfo}, then:function(h){return D(mw,{each:h},function(m){return D("div",null,D(gC,{text:m}))})}}))))},"cd"); r_b.idomCompat=!0;var s_b=O(function(a){return D("lp-header-upsell-banner-view-model",{class:U("lpHeaderUpsellBannerViewModelHost",a.className,{})},D("div",{class:"lpHeaderUpsellBannerViewModelIcon"},D(aC,{icon:function(){return"CAMPAIGN"}})),D("div",{class:"lpHeaderUpsellBannerViewModelOuterContainer"},D("div",{class:"lpHeaderUpsellBannerViewModelContainer"},D("div",{class:"lpHeaderUpsellBannerViewModelContent"},D("div",{class:"lpHeaderUpsellBannerViewModelDescription"},D(gC,{text:function(){var b; return(b=a.data())==null?void 0:b.description}})))),D(OC,{data:function(){var b; return(b=a.data())==null?void 0:b.purchaseButton}},{buttonViewModel:function(b){return D(AD,{data:b.data, className:"lpHeaderUpsellBannerViewModelPurchaseButton"})}})))},"dd");var t_b=O(function(a){var b=a.data;var c=a.themeOverride;var d=function(){var m;return(m=c==null?void 0:c())!=null?m:{useDarkTheme:!1}},e=Fn().resolve(Cn(HB)); a={};a=U("ytmLpHeadlineSectionViewModelHost",(a.ytmLpHeadlineSectionViewModelPremiumForceDarkMode=function(){return d().useDarkTheme},a)); var f=function(){var m,p;var q=e&&e()||d().useDarkTheme?(m=z(b().headlineBackgroundImage,eK))==null?void 0:m.imageDark:(p=z(b().headlineBackgroundImage,eK))==null?void 0:p.imageLight;return dC((q==null?void 0:q.sources)||[])},h={}; return D("lp-headline-section-view-model",null,D("div",{class:a},D("div",{class:U("ytmLpHeadlineSectionViewModelBackgroundImageClass",(h.ytmLpHeadlineSectionViewModelBackgroundPadding=function(){var m;return!((m=f())==null||!m.url)},h)), style:function(){var m,p=(m=f())==null?void 0:m.url;return p?"background-image: url("+Fb(p)+");":""}},D(P,{cond:function(){return b().title}, then:function(m){return D("div",{class:"ytmLpHeadlineSectionViewModelTitleText"},D(gC,{text:m}))}}),D(P,{cond:function(){return b().subtitle}, then:function(m){return D("div",{class:"ytmLpHeadlineSectionViewModelSubtitleText"},D(gC,{text:m}))}}))))},"ed");var u_b=O(function(a){var b=a.data;var c=a.themeOverride;var d=Fn().resolve(Cn(HB)),e=function(){return d&&d()||(c==null?void 0:c().useDarkTheme)},f=function(){var q,t; var u=e()?(q=b().textBackgroundImage)==null?void 0:q.imageDark:(t=b().textBackgroundImage)==null?void 0:t.imageLight;return dC((u==null?void 0:u.sources)||[])},h=function(){var q,t; return e()?(q=b().featureImage)==null?void 0:q.imageDark:(t=b().featureImage)==null?void 0:t.imageLight},m=function(){return b().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},p=function(){var q,t; return e()?(q=b().logo)==null?void 0:q.imageDark:(t=b().logo)==null?void 0:t.imageLight}; return D("ytm-lp-large-feature-section-view-model",null,D("div",{class:function(){var q=b().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",t=b().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",u=(b().index||0)%2===1,v=c==null?void 0:c().useDarkTheme,w=["ytmLpLargeFeatureSectionViewModelHost"];q?w.push("ytmLpLargeFeatureSectionViewModelMusicFeatureType"):t?w.push("ytmLpLargeFeatureSectionViewModelPtcFeatureType"):u||w.push("ytmLpLargeFeatureSectionViewModelBlockFeatureType2");v&&w.push("ytmLpLargeFeatureSectionViewModelPremiumForceDarkMode"); return w.join(" ")}},D("div",{class:"ytmLpLargeFeatureSectionViewModelLpLargeFeatureSectionContainer"},D(P,{cond:h, then:function(){return D(eC,{data:function(){return h()}, alt:function(){var q,t,u;return(u=(q=b().featureImage)==null?void 0:(t=q.accessibilityData)==null?void 0:t.label)!=null?u:""}, contentMode:m})}})),D("div",{class:"ytmLpLargeFeatureSectionViewModelLpLargeFeatureSectionContainer", style:function(){var q;return((q=f())==null?0:q.url)?"background-image: url("+Fb(f().url)+");":""}},D("div",{class:"ytmLpLargeFeatureSectionViewModelLpLargeFeatureSectionTextContainer"},D(P,{cond:p, then:function(){return D(eC,{data:function(){return p()}, alt:function(){var q,t,u;return(u=(q=b().logo)==null?void 0:(t=q.accessibilityData)==null?void 0:t.label)!=null?u:""}, contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",targetWidth:138,targetHeight:20,preserveWidth:!0,preserveHeight:!0,className:"ytmLpLargeFeatureSectionViewModelLpLargeFeatureSectionLogo"})}}),D(P,{cond:function(){return b().eyebrowText}, then:function(){return D("div",{class:"ytmLpLargeFeatureSectionViewModelLpLargeFeatureSectionEyebrowText"},D(gC,{text:function(){return b().eyebrowText}}))}}),D(P,{cond:function(){return b().title}, then:function(){return D("div",{class:"ytmLpLargeFeatureSectionViewModelLpLargeFeatureSectionTitle"},D(gC,{text:function(){return b().title}}))}}),D(P,{cond:function(){return b().subtitles}, then:function(){return D("div",{class:"ytmLpLargeFeatureSectionViewModelLpLargeFeatureSectionSubtitles"},D(mw,{each:function(){return b().subtitles||[]}},function(q){return D(gC,{text:q})}))}})))))},"fd"); u_b.idomCompat=!0;var v_b=O(function(a){a=Hu(a,{config:void 0,themeOverride:void 0});var b=a.data,c=a.config,d=a.themeOverride;a={};a=U("ytmLpOfferCardOptionViewModelHost",(a.ytmLpOfferCardOptionViewModelPremiumForceDarkMode=function(){var p;return(p=d())==null?void 0:p.useDarkTheme},a)); var e=FC(function(){var p,q;(p=c())==null||(q=p.handleRadioButtonClick)==null||q.call(p,b());return!1}),f=function(){var p; return(p=c())==null?void 0:p.shouldDisplayRadioButton},h=FC(function(){if(f()){var p,q; (p=c())==null||(q=p.handleRadioButtonClick)==null||q.call(p,b())}return!1}),m=function(){var p; return(p=b().featureListItems)!=null?p:[]}; return D("ytm-lp-offer-card-option-view-model",null,D("div",{class:a,"on:click":h},D(P,{cond:f,then:function(){return D("div",null,D("input",{type:"radio","on:click":e,class:"ytmLpOfferCardOptionViewModelInputEl","prop:checked":function(){var p;return!((p=c())==null||!p.isOptionSelected)}}))}}),D("div",null,D("div",{class:"ytmLpOfferCardOptionViewModelEyebrowText"},D(gC,{text:function(){return b().eyebrowText}})),D("div",{class:"ytmLpOfferCardOptionViewModelTitle"},D(gC,{text:function(){return b().title}})), D("div",{class:"ytmLpOfferCardOptionViewModelSubtitle"},D(gC,{text:function(){return b().subtitle}})),D(P,{cond:function(){return m().length>0}, then:function(){return D("div",{class:"ytmLpOfferCardOptionViewModelFeatureListItems"},D(OC,{data:m},{lpFeatureListItemViewModel:k_b}))}}),D("div",{class:"ytmLpOfferCardOptionViewModelDescription"},D(gC,{text:function(){return b().description}})))))},"gd"); v_b.idomCompat=!0;var w_b=O(function(a){var b=a.data;var c=a.themeOverride;a=l(Gu(function(){var f,h=(f=b().offerOptions)==null?void 0:f[0];return z(h,rrb)||{}})); var d=a.next().value,e=a.next().value;a={};return D("ytm-lp-offer-card-view-model",null,D("div",{class:U("ytmLpOfferCardViewModelHost",(a.ytmLpOfferCardViewModelPremiumForceDarkMode=function(){return!(c==null||!c().useDarkTheme)},a))},D("div",{class:"ytmLpOfferCardViewModelTitleContainer"},D(P,{cond:function(){return b().titleIconType}, then:function(){return D("div",{class:"ytmLpOfferCardViewModelIconContainer"},D(aC,{icon:function(){var f;return((f=b().titleIconType)==null?void 0:f.toString())||""}}))}}),D("div",{class:"ytmLpOfferCardViewModelTitleText"},D(gC,{text:function(){return b().title}})),D(OC,{data:function(){return b().titleBadge}},{badgeViewModel:function(f){return D("div",{class:"ytmLpOfferCardViewModelTitleBadge"},D(ED,{data:f.data}))}})),D("div",{class:"ytmLpOfferCardViewModelOfferOptionsContainer"},D(OC,{data:function(){return b().offerOptions}}, {lpOfferCardOptionViewModel:function(f){var h=f.data; return D(mq,null,D("div",{class:"ytmLpOfferCardViewModelDivider"}),D(v_b,{data:h,config:function(){var m;return{shouldDisplayRadioButton:(b().offerOptions||[]).length>1,isOptionSelected:h().id===((m=d())==null?void 0:m.id),handleRadioButtonClick:function(p){return void e(p)}}}, themeOverride:c}))}})),D("div",{class:"ytmLpOfferCardViewModelPurchaseButtonContainer"},D(OC,{data:function(){var f; return(f=d())==null?void 0:f.purchaseButtonOverride}},{buttonViewModel:AD}))))},"hd"); w_b.idomCompat=!0;var x_b=O(function(a){var b=a.data;var c=a.themeOverride;var d=Fn().resolve(Cn(HB)),e=function(){var p,q,t;var u=d&&d()||(c==null?0:(t=c())==null?0:t.useDarkTheme)?(p=z(b().backgroundImage,eK))==null?void 0:p.imageDark:(q=z(b().backgroundImage,eK))==null?void 0:q.imageLight;return dC((u==null?void 0:u.sources)||[])},f=function(){var p; return!((p=e())==null||!p.url)}; a={};a=U("ytmLpOfferCardSectionViewModelHost",(a.ytmLpOfferCardSectionViewModelPremiumForceDarkMode=function(){var p;return c==null?void 0:(p=c())==null?void 0:p.useDarkTheme},a.ytmLpOfferCardSectionViewModelHostWithBackgroundImage=f,a)); var h=function(){var p;return(p=b().featureListItems)!=null?p:[]},m=function(){return h().length>0}; return D("ytm-lp-offer-card-section-view-model",null,D("div",{class:a,style:function(){return f()?"background-image: url("+Fb(e().url)+"); background-size: cover;":""}},D(P,{cond:function(){return b().title!==void 0}, then:function(){return D("div",{class:function(){return m()?"ytmLpOfferCardSectionViewModelTitleContainerWithFeatureList":"ytmLpOfferCardSectionViewModelTitleContainer"}},D("div",{class:"ytmLpOfferCardSectionViewModelTitleText"},D(gC,{text:function(){return b().title}})),D(P,{cond:function(){return b().subtitle}, then:function(){return D("div",{class:function(){return m()?"ytmLpOfferCardSectionViewModelSubtitleTextWithFeatureList":"ytmLpOfferCardSectionViewModelSubtitleText"}},D(gC,{text:function(){return b().subtitle}}))}}),D(P,{cond:m, then:function(){return D("div",{class:"ytmLpOfferCardSectionViewModelFeatureListItems"},D(OC,{data:h},{lpFeatureListItemViewModel:k_b}))}}))}}),D("div",{class:"ytmLpOfferCardSectionViewModelOfferCardsContainer"},D(OC,{data:function(){return b().offerCards}},{lpOfferCardViewModel:function(p){return D("div",{class:"ytmLpOfferCardSectionViewModelOfferCardContainer"},D(w_b,{data:p.data, themeOverride:c}))}})),D(P,{cond:function(){return b().footer}, then:function(){return D("div",{class:"ytmLpOfferCardSectionViewModelFooterText"},D(gC,{text:function(){return b().footer}}))}})))},"id");var y_b=O(function(a){var b=a.data;var c={badgeText:"New",badgeStyle:"BADGE_STATUS_NEW"};return D("lp-offer-table-cell-content-view-model",null,D("div",{class:"ytLpOfferTableCellContentViewModelHost"},D(pw,null,D(jw,{when:function(){return b().title}},function(){return D(gC,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellTitle", text:function(){return b().title}})}),D(jw,{when:function(){return b().subTitle}},function(){return D(gC,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellSubtitle", text:function(){return b().subTitle}})}),D(jw,{when:function(){return b().featureDescription}},function(){return D(gC,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDescription", text:function(){return b().featureDescription}})}),D(jw,{when:function(){return b().description}},function(){return D(gC,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellDescription", text:function(){return b().description}})}),D(jw,{when:function(){return b().iconType}},function(){return D("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellIcon"},D(aC,{icon:function(){return b().iconType.toString()}}))}),D(jw,{when:function(){return b().purchaseButton}},function(){return D(OC,{data:function(){return b().purchaseButton}},{buttonViewModel:function(d){return D("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellPurchaseButton"},D(AD,{data:d.data}))}})}), D(jw,{when:function(){return b().note}},function(){return D(gC,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellNote", text:function(){return b().note}})}),D(jw,{when:function(){return b().featureDetail}},function(){return D(gC,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDetail", text:function(){return b().featureDetail}})}),D(jw,{when:function(){return b().badge}},function(){return D(OC,{data:function(){return b().badge}},{badgeViewModel:ED})}),D(jw,{when:function(){return b().includeBadgeSpacer}},function(){return D("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellBadgeSpacer", "aria-hidden":"true"},D(ED,{data:c}))}))))},"jd"); y_b.idomCompat=!0;var z_b=O(function(a){var b=a.data;return D("lp-offer-table-cell-view-model",null,D("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(b().alignSelf){case"LP_OFFER_TABLE_ALIGNMENT_START":return"justify-content: flex-start;";case"LP_OFFER_TABLE_ALIGNMENT_END":return"justify-content: flex-end;";case"LP_OFFER_TABLE_ALIGNMENT_CENTER":return"justify-content: center;";default:return"justify-content: flex-start;";}}},D(OC,{data:function(){return b().contents}},{lpOfferTableCellContentViewModel:y_b})))}, "kd"); z_b.idomCompat=!0;var A_b=O(function(a){var b=a.data;var c=a.lpTableIsFirstRow;var d=a.lpTableIsLastRow;var e=a.hasThreeColumns;var f=function(){return(c==null?0:c())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowHeaderCell":"ytLpOfferTableRowViewModelLpOfferTableRowHeaderCell"},h=function(){return(c==null?0:c())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowContentCell":(d==null?0:d())?"ytLpOfferTableRowViewModelLpOfferTableLastRowContentCell":"ytLpOfferTableRowViewModelLpOfferTableRowContentCell"}; a={};return D("ytm-lp-offer-table-row-view-model",null,D("div",{class:U("ytLpOfferTableRowViewModelHost",(a.ytLpOfferTableRowViewModelHostThreeColumns=function(){return!(e==null||!e())},a))},D(OC,{data:function(){return b().rowHeaderCell}},{lpOfferTableCellViewModel:function(m){return D("div",{class:f},D(z_b,{data:m.data}))}}),D(OC,{data:function(){return b().contentCells}},{lpOfferTableCellViewModel:function(m){return D("div",{class:h},D(z_b,{data:m.data}))}})))},"ld"); A_b.idomCompat=!0;var B_b=O(function(a){var b=a.data;var c=a.themeOverride;var d=Fn().resolve(Cn(HB)),e=function(){return z(b().logo,eK)||{}},f=function(){var h,m,p; return((m=z((h=b().rows)==null?void 0:h[0],srb))==null?void 0:(p=m.contentCells)==null?void 0:p.length)===3}; a={};return D("ytm-lp-offer-table-section-view-model",null,D("div",{class:"ytLpOfferTableViewModelHost"},D(P,{cond:function(){var h,m;return d&&d()||(c==null?0:c().useDarkTheme)?(h=e())==null?void 0:h.imageDark:(m=e())==null?void 0:m.imageLight}, then:function(h){return D(eC,{data:h,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var m,p,q;return(q=(m=e())==null?void 0:(p=m.accessibilityData)==null?void 0:p.label)!=null?q:""}, targetWidth:140,targetHeight:40,height:40,className:"ytLpOfferTableViewModelLpOfferTableSectionLogo",useWidth:!1})}}),D("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionTitle"},D(gC,{text:function(){return b().title}})),D("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionSubtitle"},D(gC,{text:function(){return b().subtitle}})),D(P,{cond:function(){return b().disclaimers}, then:function(h){return D("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionDisclaimers"},D(mw,{each:h},function(m){return D("div",null,D(gC,{text:m}))}))}}),D("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionRows"},D(OC,{data:function(){return b().rows}},{lpOfferTableRowViewModel:function(h,m){return D(A_b,{data:h.data, lpTableIsFirstRow:function(){return m()===0}, lpTableIsLastRow:function(){return m()===b().rows.length-1}, hasThreeColumns:f})}})),D("div",{class:U((a.ytLpOfferTableViewModelLpOfferTableSectionFooterWrapper=function(){return b().hasFooterBackground},a))},D(P,{cond:function(){return b().footer}, then:function(){return D("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooter"},D(gC,{text:function(){return b().footer}}))}}),D(P,{cond:function(){return b().footerTitle}, then:function(){return D("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterTitle"},D(gC,{text:function(){return b().footerTitle}}))}}),D(P,{cond:function(){return b().footerDescription}, then:function(){return D("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},D(gC,{text:function(){return b().footerDescription}}))}}),D(P,{cond:function(){return b().footerDescriptions}, then:function(h){return D("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},D(mw,{each:h},function(m){return D("div",null,D(gC,{text:m}))}))}}))))},"md"); B_b.idomCompat=!0;var C_b=O(function(a){var b=a.data;var c=a.themeOverride;var d=Fn().resolve(Cn(HB)),e=function(){var m;return c==null?void 0:(m=c())==null?void 0:m.useDarkTheme},f=function(){var m,p; return d&&d()||e()?(m=b().image)==null?void 0:m.imageDark:(p=b().image)==null?void 0:p.imageLight}; a={};a=U("ytmLpSmallFeatureSectionViewModelHost",(a.ytmLpSmallFeatureSectionViewModelPremiumForceDarkMode=e,a));var h=function(){var m,p,q;return(q=(m=b().image)==null?void 0:(p=m.accessibilityData)==null?void 0:p.label)!=null?q:""}; return D("ytm-lp-small-feature-section-view-model",{class:a},D(P,{cond:function(){return f()&&!Bd}, then:function(){return D("div",{class:"ytmLpSmallFeatureSectionViewModelFeatureImageContainer"},D(eC,{data:function(){return f()}, alt:h,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),D("div",{class:"ytmLpSmallFeatureSectionViewModelContentSection"},D("div",{class:"ytmLpSmallFeatureSectionViewModelTitleText"},D(P,{cond:function(){return b().title}, then:function(m){return D(gC,{text:m})}})),D("div",{class:"ytmLpSmallFeatureSectionViewModelDescriptionText"},D(gC,{text:function(){return b().description}}))))},"nd"); C_b.idomCompat=!0;var D_b=O(function(a){var b=a.data;var c=a.themeOverride;a={};return D("ytm-lp-small-feature-section-group-view-model",null,D("div",{class:U("ytmLpSmallFeatureSectionGroupViewModelHost",(a.ytmLpSmallFeatureSectionGroupViewModelPremiumForceDarkMode=function(){return!(c==null||!c().useDarkTheme)},a))},D("div",{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeaturesContainer"},D(OC,{data:function(){return b().smallFeatures}},{lpSmallFeatureSectionViewModel:function(d){return D("div",{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeatureContainer"}, D(C_b,{data:d.data, themeOverride:c}))}}))))},"od"); D_b.idomCompat=!0;bB(O(function(a){var b=a.data;var c=function(){return b().forcedTheme==="USER_INTERFACE_THEME_DARK"},d=function(){return b().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},e=function(){var h="",m,p; var q=Fn().resolve(Cn(HB));q=c()||(q==null?0:q())?(m=b().themedImageViewModel)==null?void 0:m.imageDark:(p=b().themedImageViewModel)==null?void 0:p.imageLight;(m=dC((q==null?void 0:q.sources)||[]))&&m.url&&(h=d()?"background-image: linear-gradient(to bottom, transparent, "+(b().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"80%")+", var(--premium-yt-spec-base-background)), url("+Fb(m.url)+");":"background-image: url("+Fb(m.url)+");");return h},f=function(){return{useDarkTheme:c()}}; a={};return D("yt-section-group-view-model",null,D("div",{class:U("ytSectionGroupViewModelHost",(a.ytSectionGroupViewModelPremiumForceDarkMode=c,a.ytSectionGroupViewModelPtcLayoutType=function(){return b().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},a))},D(P,{cond:function(){return e().length}, then:function(){var h={};return D("div",{class:U("ytSectionGroupViewModelBgImage",(h.ytSectionGroupViewModelBgImagePhoto=d,h)),style:e})}}),D("div",{class:"ytSectionGroupViewModelLpSectionGroup"},D(OC,{data:function(){return b().sections}},{lpHeaderUpsellBannerViewModel:function(h){return D(s_b,{data:h.data})}, lpFaqSectionViewModel:function(h){return D(q_b,{data:h.data,themeOverride:f})}, lpHeaderSectionViewModel:function(h){return D(r_b,{data:h.data,themeOverride:f})}, lpHeadlineSectionViewModel:function(h){return D(t_b,{data:h.data,themeOverride:f})}, lpLargeFeatureSectionViewModel:function(h){return D(u_b,{data:h.data,themeOverride:f})}, lpOfferCardSectionViewModel:function(h){return D(x_b,{data:h.data,themeOverride:f})}, lpComplexOfferCardSectionViewModel:function(h){return D(m_b,{data:h.data})}, lpOfferTableSectionViewModel:function(h){return D(B_b,{data:h.data,themeOverride:f})}, lpSmallFeatureSectionGroupViewModel:function(h){return D(D_b,{data:h.data,themeOverride:f})}, lpCouponBannerViewModel:function(h){return D(n_b,{data:h.data})}}))))},"pd"),"yt-section-group-view-model",{props:{data:$A}});function E_b(a){switch(a){case"DIVIDER_STYLE_FULL_BLEED_4_PX":return"dividerViewModelBaseDividerFullBleed4px";case"DIVIDER_STYLE_FULL_BLEED_THICK":return"dividerViewModelBaseDividerFullBleedThick";case"DIVIDER_STYLE_FULL_BLEED_8_PX":return"dividerViewModelBaseDividerFullBleed8px";case"DIVIDER_STYLE_FULL_BLEED_12_PX":return"dividerViewModelBaseDividerFullBleed12px";default:return"";}} var F_b=O(function(a){var b=a.data;a={};return D("divider-view-model",{class:U("dividerViewModelHost",(a.dividerViewModelInsetThinPadding=function(){return b().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},a))},D("div",{class:U("dividerViewModelBaseDivider",function(){return E_b(b().dividerStyle)})}))},"qd"); F_b.idomCompat=!0;bB(F_b,"divider-view-model",{props:{data:$A}});var G_b=new Bn("DWELL_DETECTOR_REGISTRY_TOKEN");function H_b(a,b){return{triggeringElement:a,onDwellTriggeredFn:function(){var c={triggeringElement:a,loadVideoPreviewEventData:b},d=document.querySelector(".video-preview");d&&d.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:c}))}, onDwellEndFn:function(){var c=document.querySelector(".video-preview");c&&c.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}} ;function I_b(a){var b=Fn().resolve(Cn(G_b));return function(c){var d=function(){var e=a(c);return b&&e?H_b(c,e):null}; lw(function(){var e=d();b&&e&&Promise.resolve().then(function(){b.registerElement(e)}); zp(function(){b&&e&&Promise.resolve().then(function(){b.unregisterElement(e)})})},"p0smCb")}} ;var QV=new Map,RV=new Map,J_b=0;function K_b(a){var b=a.dataset.resizeObserverId;if(b)return b;b=""+J_b++;return a.dataset.resizeObserverId=b} function L_b(a){a=l(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=K_b(b.target),d=Object.assign({},{target:b.target},QV.get(c));if(d!=null&&d.contentRect?d.contentRect.width!==b.contentRect.width||d.contentRect.height!==b.contentRect.height:1)for(QV.set(c,{borderBoxSize:b.borderBoxSize,contentBoxSize:b.contentBoxSize,contentRect:b.contentRect,devicePixelContentBoxSize:b.devicePixelContentBoxSize}),c=l(RV.get(c)||[]),d=c.next();!d.done;d=c.next())d=d.value,d(b)}} var SV;function M_b(a,b){var c=K_b(a);RV.has(c)||RV.set(c,new Set);RV.get(c).add(b);QV.has(c)&&b(Object.assign({},{target:a},QV.get(c)));SV||(SV=new zhb(L_b));b=SV;b.observe(a)} function N_b(a,b){var c=K_b(a);RV.has(c)&&(RV.get(c).delete(b),RV.get(c).size===0&&(RV.delete(c),QV.delete(c),SV.unobserve(a),delete a.dataset.resizeObserverId));RV.size===0&&SV&&(SV.disconnect(),SV=void 0)} ;var O_b=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}];function P_b(a,b){var c=Fn().resolve(uw);return O_b.map(function(d){return c.observe(a,b,d)})} function Q_b(a){var b=Fn().resolve(uw);a.forEach(function(c){b.unobserveByKey(c)})} var R_b={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};function TV(a){var b=l(cdb()),c=b.next().value,d=b.next().value,e=Object.assign({},R_b,a),f=uha(function(h){var m=h.contentRect.height;if((h=h.contentRect.width)||m||e.canHaveZeroSize)c.width()===h&&c.height()===m||d(c,{height:m,width:h})},e.throttleMs); return[c,function(h){var m=[];e.useVisibilityObserver&&(m=P_b(h,function(p,q){requestAnimationFrame(function(){q==="visible"?M_b(h,f):N_b(h,f)})})); m.length||M_b(h,f);return function(){m.length&&(Q_b(m),m.length=0);N_b(h,f)}}]} ;var S_b=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("cyCVld"),2);a=$Yb;return b.return(a)})},UV=yD(function(){return S_b()},{debugName:"sectionHeaderViewModel"}); Gn(xD,function(a){a.registerLoadFn("sectionHeaderViewModel","cyCVld",S_b)});var U_b=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("an7FC"),2);a=T_b;return b.return(a)})},V_b=yD(function(){return U_b()},{debugName:"entryPointButtonViewModel"}); Gn(xD,function(a){a.registerLoadFn("entryPointButtonViewModel","an7FC",U_b)});var VV=function(a){return function(b){return function(){return(b==null?void 0:b())!==void 0?String(b())+a:void 0}}}("px");var W_b=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("dpUCFd"),2);a=ETb;return b.return(a)})},X_b=yD(function(){return W_b()},{debugName:"shortsLockupViewModel"}); Gn(xD,function(a){a.registerLoadFn("shortsLockupViewModel","dpUCFd",W_b)});var Y_b=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("U9vrqd"),2);a=GTb;return b.return(a)})},Z_b=yD(function(){return Y_b()},{debugName:"shortsLockupViewModelWithDismissible"}); Gn(xD,function(a){a.registerLoadFn("shortsLockupViewModelWithDismissible","U9vrqd",Y_b)});var $_b=MC(function(a){return a.targetGroupId}).useUpdatableData;var b0b=O(function(a){function b(Y){return function(){var da=C().numItemsPerGridRow,Aa=Y()*da;da=Aa+da;var Sa,Ua;return(Ua=(Sa=d().contents)==null?void 0:Sa.slice(Aa,da))!=null?Ua:[]}} var c=Hu(a,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1,useUpdatedMargin:!1}),d=c.data,e=c.layoutContainerWidth,f=c.shouldUseOwnContainerSize,h=c.marginSettings,m=c.useUpdatedMargin,p=JC(),q=l($_b(function(){var Y,da;return{targetGroupId:(Y=d().targetingContext)==null?void 0:(da=Y.targetGroupId)==null?void 0:da[0]}})).next().value; c=l(ip(!0,void 0,"CC9Rdb"));var t=c.next().value,u=c.next().value,v=function(){var Y,da=(Y=z(d().showMoreButton,ZJ))==null?void 0:Y.trackingParams;da&&Oz(gz(),da);u(!1)},w=function(){var Y,da=(Y=z(d().showLessButton,ZJ))==null?void 0:Y.trackingParams; da&&Oz(gz(),da);u(!0)}; c=l(TV({canHaveZeroSize:!1}));var y=c.next().value;c=c.next().value;var A=function(){var Y;return(Y=d().contentAspectRatio)!=null?Y:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},C=Vo(function(){var Y=f()&&y.width()>0?y.width()||e():e(),da,Aa=(da=a.data())==null?void 0:da.responsiveContainerConfiguration; Y=jS({containerWidth:Y,sizing:Aa?kS(Aa==null?void 0:Aa.responsiveSize):"EXTRA_COMPACT",marginSettings:h(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:Y.maxContainerWidth,numItemsPerGridRow:Y.numItems,contentPadding:f()?Y.margin:Y.contentMargin,itemWidth:Y.itemWidth,itemMargin:Y.gutter/2}},void 0,"YIvnde"),I=function(){var Y,da,Aa=(da=(Y=d().contents)==null?void 0:Y.length)!=null?da:0; Y=C().numItemsPerGridRow;return d().showAllItems?Math.ceil(Aa/Y):d().enableVerticalExpansion?t()?K():Math.ceil(Aa/Y):C().numItemsPerGridRow<=2?2:1},K=function(){var Y; return Math.ceil(((Y=d().minCollapsedItemCount)!=null?Y:1)/C().numItemsPerGridRow)},N=function(){return d().enableVerticalExpansion&&d().showLessButton&&!t()&&I()>K()},L=function(){var Y,da; return d().enableVerticalExpansion&&d().showMoreButton&&t()&&((da=(Y=d().contents)==null?void 0:Y.length)!=null?da:0)>C().numItemsPerGridRow*K()},R=function(){return!N()},W=function(){return!L()},S={}; return D("grid-shelf-view-model",{class:U("ytGridShelfViewModelHost",a.className,(S.ytGridShelfViewModelHostHasBottomButton=function(){return N()||L()},S.ytGridShelfViewModelHostIsDismissed=function(){var Y,da=(Y=q())!=null?Y:{}; Y=da.behavior;var Aa=da.isDismissed,Sa=da.stamperContextTargetId;da=da.stamperIndex;if(!(x("mweb_see_fewer_shorts_group_dismissal")&&Aa&&Y&&Sa))return!1;var Ua;Aa=p;for(var qb,ab,La=((qb=Aa)==null?0:qb.targetId)?Bp((ab=Aa)==null?void 0:ab.targetId):void 0;((Ua=Aa)==null?0:Ua.parent)&&La!==Sa;)Aa=Aa.parent,ab=qb=void 0,La=((qb=Aa)==null?0:qb.targetId)?Bp((ab=Aa)==null?void 0:ab.targetId):void 0;Ua=La===Sa?Aa:void 0;if(!Ua)return!1;var ib;Sa=Ua==null?void 0:(ib=Ua.stamperIndex)==null?void 0:ib.call(Ua); return Y==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_ALL_ITEMS"||Y==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&Sa!=null&&da!=null&&Sa>da},S.ytGridShelfViewModelHostOptionalMediumLayoutMargin=m,S)), el:dB(c),style:GC({"margin-left":VV(function(){return C().contentPadding}), "margin-right":VV(function(){return C().contentPadding})})},D(P,{cond:function(){return z(d().header,Fsb)}, then:function(Y){return D(UV,{data:Y,useUpdatedPadding:m,disableHorizontalPadding:!0})}}),D("div",null,D(mw,{each:function(){return Array(I())}},function(Y,da){return D(a0b,{className:a.className, items:b(da),responsiveGridShelfLayout:C,contentAspectRatio:A})})),D("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},D(OC,{data:function(){return d().showMoreButton}},{buttonViewModel:function(Y){return D("div",{hidden:W},D(BD,{data:Y.data, onClick:v}))}}),D(OC,{data:function(){return d().showLessButton}},{buttonViewModel:function(Y){return D("div",{hidden:R},D(BD,{data:Y.data, onClick:w}))}})))},"sd"); b0b.idomCompat=!0;var a0b=O(function(a){function b(t){return function(u){var v=t(),w={};q(Object.assign({},p(),(w[v]=u,w)))}} var c=a.items;var d=a.responsiveGridShelfLayout;var e=a.contentAspectRatio;a=a.className;var f=VV(function(){return-d().itemMargin}),h=l(ip({},void 0,"uuLtBb")),m=h.next().value; h=h.next().value;var p=m,q=h;return D("div",{el:dB(I_b(function(){return c0b(c(),p())})), class:U("ytGridShelfViewModelGridShelfRow",a),style:GC({"margin-left":f,"margin-right":f})},D(OC,{data:c,replacementWrapper:function(t){return D(d0b,{responsiveGridShelfLayout:d},t)}},{shortsLockupViewModel:function(t,u){return D(d0b,{responsiveGridShelfLayout:d},D(Z_b,{data:t.data, aspectRatio:function(){return e()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0}, playbackRef:GQb(b(u)),scrimStyle:2,className:void 0}))}, lockupViewModel:function(t){return D(d0b,{responsiveGridShelfLayout:d},D(zT,{data:t.data,className:"ytGridShelfViewModelLockupItem"}))}, entryPointButtonViewModel:function(t){return D(d0b,{responsiveGridShelfLayout:d},D(V_b,{data:t.data,className:"ytGridShelfViewModelButtonItem"}))}}))},"td"),d0b=O(function(a){return D("div",{style:GC({width:VV(function(){return a.responsiveGridShelfLayout().itemWidth}), margin:function(){return"0 "+a.responsiveGridShelfLayout().itemMargin+"px"}}), class:"ytGridShelfViewModelGridShelfItem"},a.children)},"ud"); function c0b(a,b){for(var c=[],d=0;d0&&!Nb()},void 0,"EgFob"); L=Vo(function(){return!m()&&y()0),ariaLabel:zy("HORIZONTAL_SHELF_PREVIOUS_BUTTON_ACCESSIBILITY_LABEL")}},Fc=function(){return{disabled:!(!m()&&y()=0?e.padding="0 "+a+"px":e.margin="0 "+a+"px";break;case"CONTAINER_TYPE_HORIZONTAL_LIST":e["flex-direction"]="row",e.flex="none",e["overflow-x"]="auto",e.width=a.maxContainerWidth?a.maxContainerWidth+"px":void 0,d&&(e.padding="0 "+a.margin+"px");}return e} function X0b(a,b){switch(a){case"CONTAINER_TYPE_GRID":return b?3:2;default:return b?1:0;}} function Y0b(a,b,c){if(b){var d=U0b(b,T0b(a)),e=cYb(b,a,X0b(d,!c),!!c&&d==="CONTAINER_TYPE_GRID"),f=jS(e);a=V0b(a,b);return{containerLayoutConfig:a,containerStyles:W0b(f,a==null?void 0:a.responsiveSize,d,!c),itemStyles:function(h,m){h=Fn().resolve(WB)==="rtl";var p={};switch(d){case"CONTAINER_TYPE_VERTICAL_LIST":m||(p["margin-bottom"]="16px");break;case"CONTAINER_TYPE_GRID":p.width=f.itemWidth+"px";p["margin-right"]=f.gutter/2+"px";p["margin-left"]=f.gutter/2+"px";break;case"CONTAINER_TYPE_HORIZONTAL_LIST":p.width= f.itemWidth+"px",p.flex="none",m||(h?p["margin-left"]=f.gutter+"px":p["margin-right"]=f.gutter+"px");}return p}}}} ;var Z0b=new Bn("TEXT_VIEW_MODEL_TOKEN");var $0b=new Bn("YTFC_YOUTH_BASIC_SECTION_HEADER_VIEW_MODEL_TOKEN");var lP=O(function(a){var b=l(TV({canHaveZeroSize:!1})),c=b.next().value;b=b.next().value;var d=function(){return Y0b(c.width(),a.data().responsiveContainerConfiguration,!0)||S0b(c.width(),a.data().linearLayoutContainerConfiguration)},e=Fn().resolve(Cn($0b)),f=Fn().resolve(Cn(e0b)),h=Fn().resolve(Cn(w0b)),m=Fn().resolve(Cn(v0b)),p=Fn().resolve(Cn(u0b)),q=Fn().resolve(Cn(x0b)),t=Fn().resolve(Cn(x1a)),u=Fn().resolve(Cn(A0b)),v=Fn().resolve(Cn(z0b)),w=Fn().resolve(Cn(Z0b)),y=Fn().resolve(Cn(y0b)); return D("yt-linear-layout-view-model",{el:dB(b),class:"ytLinearLayoutViewModelHost"},D("div",{class:U("ytLinearLayoutViewModelContainer",function(){a:switch(a.data().orientation){case"LINEAR_LAYOUT_ORIENTATION_HORIZONTAL":var A="ytLinearLayoutViewModelHorizontal";break a;default:A="ytLinearLayoutViewModelVertical";}return A},function(){var A=a.data().linearLayoutContainerConfiguration; return A?[P0b(A.flexDirection),Q0b(A.justifyContent),R0b(A.alignItems)].join(" "):""}), style:function(){var A;var C=((A=d())==null?void 0:A.containerStyles)||{};return GC(C)()}},D(hKa,{contexts:[iKa(lRb,d)]},D(OC,{data:function(){return a.data().items}, wrapper:function(A,C,I){return D("div",{style:function(){var K=I(),N;if((N=d())==null)K=void 0;else{var L=N.itemStyles,R,W;var S=(W=(R=a.data().items)==null?void 0:R.length)!=null?W:0;S=K===S-1;var Y,da;R=(da=(Y=a.data().itemConfigs)==null?void 0:Y[K])!=null?da:void 0;K=L.call(N,K===0,S,R)}return GC(K||{})()}},A())}},Object.assign({},{lockupViewModel:function(A){return D(zT,{data:A.data})}, basicContentViewModel:kP,checkboxGroupViewModel:function(A){return D(H0b,{data:A.data,controlledMode:!1})}},y&&{radioButtonGroupViewModel:function(A){return D(y,{data:A.data, controlledMode:!1})}},{buttonViewModel:BD, chipBarViewModel:C0b,contentPreviewImageViewModel:WV,linearLayoutViewModel:lP},u&&{cardViewModel:u},{thumbnailViewModel:fRb},w&&{textViewModel:w},{descriptionPreviewViewModel:lV,listItemViewModel:nZb,listViewModel:FJb,responseActionsViewModel:t0b,sectionHeaderViewModel:UV},e&&{youthBasicSectionHeaderViewModel:e},{contentListItemViewModel:lZb,dividerViewModel:E0b},f&&{shortsLockupViewModel:function(A){return D(f,{data:A.data,scrimStyle:3,aspectRatio:1})}},h&&{clusterViewModel:h},m&&{chatUserTurnViewModel:function(A){return D(m, {data:A.data, containerHeight:c.height,isFullWidth:!0,isFullHeight:!0})}},p&&{aiCompanionAttachmentViewModel:p},q&&{lineChartViewModel:q},t&&{horizontalBarViewModel:t},v&&{simpleMetricViewModel:v})))))},"yd");bB(lP,"yt-linear-layout-view-model",{props:{data:$A}});var TYb=O(function(a){var b=FC(function(e){var f;(f=a.onClick)==null||f.call(a,e)}),c={},d={}; return D("yt-shelf-header-layout",{class:U("ytShelfHeaderLayoutHost",(c.ytShelfHeaderLayoutDisableHorizontalPadding=a.disableHorizontalPadding,c.ytShelfHeaderLayoutDisableVerticalPadding=a.disableVerticalPadding,c.ytShelfHeaderLayoutResponsive=a.useResponsiveLayout,c.ytShelfHeaderLayoutNarrow=function(){var e,f;return((e=a.useResponsiveLayout)==null?void 0:e.call(a))&&((f=a.forceSmallLayout)==null?void 0:f.call(a))},c.ytShelfHeaderLayoutIsOverlay=a.isOverlay,c.ytShelfHeaderLayoutTappable=a.isInteractive, c.ytShelfHeaderLayoutOptionalMediumLayoutPadding=a.useUpdatedPadding,c)), "on:click":b,tabindex:function(){var e;return((e=a.isInteractive)==null?0:e.call(a))?0:void 0}},D("div",{class:"ytShelfHeaderLayoutHeaderRow"},D(P,{cond:a.leadingIcon, then:function(e){return D("div",{class:"ytShelfHeaderLayoutLeadingIcon"},D(aC,{icon:e}))}, else:function(){return D(P,{cond:a.hasLeadingImage,then:function(){var e,f={};return D("div",{class:U("ytShelfHeaderLayoutLeadingImage",(f.ytShelfHeaderLayoutLeadingImageCircularImage=a.circularImage,f))},(e=a.leadingImage)==null?void 0:e.call(a))}})}}),D("div",{class:"ytShelfHeaderLayoutLabelContainer"},D(P,{cond:a.hasSuperlabel, then:function(){var e;return D("div",{class:"ytShelfHeaderLayoutSuperlabel"},(e=a.superlabel)==null?void 0:e.call(a))}}),D("div",{class:"ytShelfHeaderLayoutTitleRow"},D(a1b,{text:a.title, className:U("ytShelfHeaderLayoutTitle",(d.ytShelfHeaderLayoutTitleTypography=function(){var e;return!((e=a.headlineTypographyToken)==null?0:e.call(a))},d.ytShelfHeaderLayoutSmallTitle=function(){var e,f; return!((e=a.headlineTypographyToken)==null?0:e.call(a))&&((f=a.forceSmallLayout)==null?void 0:f.call(a))},d)), style:a.headlineTypographyToken,tagLevel:a.tagLevel}),D(P,{cond:a.hasDetail,then:function(){var e;return D("div",{class:"ytShelfHeaderLayoutDetail"},(e=a.detail)==null?void 0:e.call(a))}})),D(P,{cond:a.hasSublabel, then:function(){var e;return D("div",{class:"ytShelfHeaderLayoutSublabel"},(e=a.sublabel)==null?void 0:e.call(a))}})),D(P,{cond:a.hasTrailingActions, then:function(){var e;return D("div",{class:"ytShelfHeaderLayoutTrailingActions"},(e=a.trailingActions)==null?void 0:e.call(a))}})),D(P,{cond:a.hasBottomAccessory, then:function(){var e;return D("div",{class:"ytShelfHeaderLayoutBottomAccessory"},(e=a.bottomAccessory)==null?void 0:e.call(a))}}))},"zd"); TYb.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0,bottomAccessory:!0}};var a1b=O(function(a){var b=a.text;var c=a.className;var d=a.style;var e=a.tagLevel;return D(pw,null,D(jw,{when:function(){return(e==null?void 0:e())===0}},function(){return D("h2",{class:c, style:d},b())}),D(jw,{when:function(){return(e==null?void 0:e())===1}},function(){return D("h3",{class:c, style:d},b())}),D(jw,{when:function(){return(e==null?void 0:e())===2}},function(){return D("h4",{class:c, style:d},b())}),D(kw,null,function(){return D("h2",{class:c, style:d},b())}))},"Ad");var b1b=O(function(a){a=Hu(a,{nextButtonStyle:0});var b=a.data,c=a.callback,d=a.selectionBehavior,e=a.disableChipsScrollAnimation,f=a.nextButtonStyle,h=a.centerAlignChips,m=tw("div");a=l(ip(!0,void 0,"lCOuaf"));var p=a.next().value,q=a.next().value;a=l(ip(!1,void 0,"gBQDQb"));var t=a.next().value,u=a.next().value,v=!1,w=0,y=function(){switch(f()){case 0:return"ytChipsShelfViewModelGradientButton";case 1:return"ytChipsShelfViewModelFloatingButton";default:return"ytChipsShelfViewModelGradientButton";}}; a=l(Gu(function(){var La={};return b().autoselectedChipIndex!=null?(La[b().autoselectedChipIndex]=!0,La):{}})); var A=a.next().value,C=a.next().value,I=Vo(function(){return!!b().overflowButton},void 0,"UHkm5e"),K=Vo(function(){return b().title},void 0,"cNF6Sb"),N=function(){return b().isHorizontallyScrollable},L=function(){return b().isVerticallyStacked},R=function(La){m.value!=null&&(Vk("HTML_DIR")==="rtl"&&(La=-La),m.value.scrollBy({left:La, behavior:(e==null?0:e())?"instant":"smooth"}))},W=function(){var La=m.value; La=La==null||La.scrollLeft-1<=0;var ib=m.value;if(ib==null)ib=!1;else{var sb=ib.scrollWidth-ib.clientWidth;ib=sb===0||ib.scrollLeft+1>=sb}La!==p()&&q(La);ib!==t()&&u(ib)},S=function(){R(-320)},Y=function(){R(320)},da=FC(function(La){v=!0; w=La.clientX}),Aa=FC(function(La){if(v){La=La.clientX; var ib=La-w;w=La;var sb;(sb=m.value)==null||sb.scrollBy({left:-ib})}}),Sa=FC(function(){W()}); DH("pointerup",function(){v&&(v=!1)}); lw(function(){b();W()},"ZgdXxf"); var Ua=zh(W,100);a=l(TV());var qb=a.next().value,ab=a.next().value;lw(function(){qb.width();Ua()},"EcxhIc"); return D("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},D(mS,{contentId:function(){return b().contentId}, useModernStyle:!0},function(){var La={},ib={};return D("div",{el:dB(ab)},D(P,{cond:function(){return b().title}, then:function(){return D(TYb,{title:function(){return D(mq,null,K)}, disableHorizontalPadding:!0,trailingActions:function(){return D(OC,{data:function(){return b().overflowButton}},{buttonViewModel:BD})}, hasTitle:!0,hasDetail:!1,hasSublabel:!1,hasSuperlabel:!1,hasLeadingImage:!1,hasTrailingActions:I,hasBottomAccessory:!1})}}),D("div",{class:U("ytChipsShelfViewModelChipsShelfContent",y)},D(P,{cond:function(){return b().previousButton}, then:function(){var sb={};return D("div",{class:U("ytChipsShelfViewModelLeftArrowContainer",(sb.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return p()},sb))},D("div",{class:"ytChipsShelfViewModelLeftArrowShape"},D(OC,{data:function(){return b().previousButton}},{buttonViewModel:function(Oa){return D(BD,{data:Oa.data, className:"ytChipsShelfViewModelLeftArrow",onClick:S})}})))}}),D("div",{el:m, "on:pointerdown":da,"on:pointermove":Aa,"on:scroll":Sa,class:U("ytChipsShelfViewModelChipsScrollContainer",(La.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=N,La))},D("div",{class:U("ytChipsShelfViewModelChipsContainer",(ib.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=N,ib.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,ib.ytChipsShelfViewModelChipsContainerCentered=h,ib.ytChipsShelfViewModelChipsContainerIsVerticallyStacked=L,ib)),role:"tablist"}, D(OC,{data:function(){return b().contents}},{chipViewModel:function(sb,Oa){return D("div",{role:"presentation", class:"ytChipsShelfViewModelChipWrapper"},D(Bzb,{data:sb.data,callback:function(Ca,eb){var Qa=Oa(),Bb,dc=(Bb=d==null?void 0:d())!=null?Bb:0;dc===1||dc===2?(Bb={},C((Bb[Qa]=eb,Bb))):dc===0&&(Bb={},C(Object.assign({},A(),(Bb[Qa]=eb,Bb))));c==null||c(Ca,eb,Qa)}, disableDeselection:function(){return(d==null?void 0:d())===1}, selected:function(){return!!A()[Oa()]}}))}, buttonViewModel:function(sb,Oa){var Ca=sb.data;return D("div",{role:"presentation",class:"ytChipsShelfViewModelChipWrapper"},D(BD,{data:Ca,onClick:function(){var eb=Ca(),Qa=Oa();d==null||d();var Bb={};C((Bb[Qa]=!0,Bb));c==null||c(eb,!0,Qa)}}))}}))),D(P,{cond:function(){return b().nextButton}, then:function(){var sb={};return D("div",{class:U("ytChipsShelfViewModelRightArrowContainer",(sb.ytChipsShelfViewModelRightArrowContainerIsHidden=t,sb))},D("div",{class:"ytChipsShelfViewModelRightArrowShape"},D(OC,{data:function(){return b().nextButton}},{buttonViewModel:function(Oa){return D(BD,{data:Oa.data, className:"ytChipsShelfViewModelRightArrow",onClick:Y})}})))}})))}))},"Dd"); b1b.idomCompat={callbacks:{callback:!0}};bB(b1b,"chips-shelf-view-model",{props:{data:$A,callback:aB,selectionBehavior:$A,disableChipsScrollAnimation:$A,nextButtonStyle:$A,centerAlignChips:$A}});bB(O(function(a){return D("yt-comment-filter-context-view-model",{class:U("ytCommentFilterContextHost",a.className)},D(gC,{text:function(){return a.data().text}}))},"Ed"),"yt-comment-filter-context-view-model",{props:{data:$A, className:aB}});var c1b=O(function(a){var b=a.data;var c=a.isOverlay;a={};return D("yt-course-perks-view-model",{class:U("ytwCoursePerksViewModelHost",(a.ytwCoursePerksViewModelHostOverlay=c,a))},D("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},D(gC,{text:function(){return b().title}})),D("div",null,D(P,{cond:function(){return b().perks}, then:function(d){return D(FJb,{data:function(){return{listItems:d()}}, isCompact:!0,isOverlay:c})}})))},"Fd");bB(c1b,"yt-course-perks-view-model",{props:{data:aB,isOverlay:aB}});bB(O(function(a){var b=a.data;a={};return D("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},D("h3",{class:U("ytwCourseProgressViewModelHostProgressTitle",(a.ytwCourseProgressViewModelHostProgressTitleRedesign=function(){return x("desktop_include_oswald")||x("mweb_include_oswald")},a))},D(gC,{text:function(){return b().title}})),D("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},D(gC,{text:function(){return b().progressSummary}})),D("div",{class:"ytwCourseProgressViewModelHostProgressBar"}, D("div",{class:"ytwCourseProgressViewModelHostProgressBarFill", style:GC({width:function(){return b().progressPercentage*100+"%"}})})))},"Gd"),"yt-course-progress-view-model",{props:{data:$A}});var e1b=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("sJCo9e"),2);a=d1b;return b.return(a)})},f1b=yD(function(){return e1b()},{debugName:"progressViewModel"}); Gn(xD,function(a){a.registerLoadFn("progressViewModel","sJCo9e",e1b)});var h1b=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("sYDUQe"),2);a=g1b;return b.return(a)})},i1b=yD(function(){return h1b()},{debugName:"starRatingViewModel"}); Gn(xD,function(a){a.registerLoadFn("starRatingViewModel","sYDUQe",h1b)});bB(O(function(a){var b=Hu(a,{}).data;return D("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},D("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},D(gC,{text:function(){var c;return(c=b())==null?void 0:c.title}})),D("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},D(P,{cond:function(){return b().starProgressViewModels}, then:function(c){return D("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},D(OC,{data:c},{progressViewModel:f1b}))}}),D("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},D("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},D(gC,{text:function(){var c; return(c=b())==null?void 0:c.averageRatingLabel}})),D(P,{cond:function(){return b().zeroStateText}, then:function(c){return D("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},D(gC,{text:c}))}}),D(P,{cond:function(){return b().starRatingViewModel}, then:function(c){return D("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},D(OC,{data:c},{starRatingViewModel:i1b}))}}),D("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},D(gC,{text:function(){var c; return(c=b())==null?void 0:c.totalRatingsCountLabel}})))))},"Hd"),"yt-course-ratings-view-model",{props:{data:aB}});var j1b={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",name:"LEARNING_JOURNEY_LOADER_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"}},k1b=O(function(a){var b=sw("yt-learning-journey-loader-view-model"),c=tQ();qw(function(){requestAnimationFrame(function(){var e;(e=c.lottieEl)==null||e.addEventListener("DOMLoaded",function(){var f;(f=a.onLottieLoaded)==null||f.call(a)})}); var d=a.data().browseEndpoint;d&&QB(d)}); return D("yt-learning-journey-loader-view-model",{class:U("learningJourneyLoaderViewModelHost",a.className),"data-target-id":function(){return a.data().targetId||""}, el:b},D(YA,{className:U("learningJourneyLoaderViewModelLoader",a.className),animationName:function(){return j1b.animationConfig.name}, data:j1b,animationRef:c}))},"Jd");bB(k1b,"yt-learning-journey-loader-view-model",{props:{data:$A,className:aB,onLottieLoaded:aB}});function XV(a){var b=Fn().resolve(Cn(HB));return b!=null&&b()?a.darkThemeColorPalette:a.lightThemeColorPalette} function YV(a){return{primaryTextColor:ZV(a,0),secondaryTextColor:ZV(a,1),optionColor:ZV(a,2),backgroundColor:ZV(a,3),videoBackgroundColor:ZV(a,4)}} function ZV(a,b){if(a){switch(b){case 0:a=a.primaryTitleColor;break;case 1:a=a.secondaryTitleColor;break;case 2:a=a.surgeColor;break;case 3:a=a.section2Color;break;case 4:a=a.section3Color;break;default:return;}if(a)return Iy(a)}} ;Object.freeze&&Object.freeze(Object.create(null));var l1b=function(){},m1b; (m1b=window.requestIdleCallback)==null||m1b.bind(window);var n1b=new Set,o1b=null;function p1b(a){var b=a.element;var c=a.veType;var d=a.storedVisualElement===void 0?null:a.storedVisualElement;var e=a.elementIndex===void 0?0:a.elementIndex;a=a.clientYouTubeData;var f=Tv();f!==o1b&&(n1b.clear(),o1b=f);if(b.visualElement&&n1b.has(b.visualElement))return null;if(d&&n1b.has(d))return b.visualElement=d,null;c=Mz(gz(),{veType:c,elementIndex:e,clientYouTubeData:a});if(!c)return null;b.visualElement=c;n1b.add(c);return c} ;function $V(a,b,c,d){c=c===void 0?null:c;d=d===void 0?l1b:d;var e=e===void 0?null:e;uYa(function(){if(b){c instanceof Function&&(c=c());var f=p1b({element:b,veType:a,storedVisualElement:c,clientYouTubeData:void 0});f&&(Sz(b,{data:e,observer:Fn().resolve(uw),hideOption:YB,showOption:XB,layer:b.layer}),d(f))}})} ;var r1b=O(function(a){var b=null,c=null,d=null,e=function(){return a.data()},f=function(){return YV(XV(e()))},h=function(){return!!f().optionColor},m=l(ip(-1,void 0,"GvxRR")),p=m.next().value,q=m.next().value,t=function(C){return p()===C},u=function(C){return e().correctAnswerIndex===C},v=function(){return p()!==-1},w=function(){return p()===e().correctAnswerIndex},y=function(){var C=v(),I=w(); return C?I?264685:264684:264683},A=FC(function(){q(-1); return!1}); return D("learning-journey-quiz-view-model",{class:U("learningQuizComponentHost",a.className),style:GC({background:function(){return f().backgroundColor}})},D(P,{cond:function(){return!!e().video}, then:function(){return D("div",{class:"learningJourneyQuizViewModelVideoContainer",style:GC({background:function(){return f().videoBackgroundColor}})},D(OC,{data:function(){return e().video}},{lockupViewModel:function(C){return D(zT,{data:C.data, containerType:1,className:"learningJourneyQuizViewModelVideoLockup"})}}))}}),D("div",{class:"learningQuizComponentQuizContainer"},D("div",{class:"learningQuizComponentQuiz"},D("div",{class:"learningQuizComponentQuizContent"},D(P,{cond:function(){return!!e().aiGeneratedQuizLabel}, then:function(){return D("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},D(gC,{text:function(){return e().aiGeneratedQuizLabel}}))}}),D("div",{class:"learningQuizComponentQuizHeader", style:GC({"align-items":function(){return e().overflowMenu?"start":"center"}})},D("div",{class:"learningQuizComponentQuizHeaderTextContainer", style:GC({"min-height":function(){return e().overflowMenu?"48px":"26px"}})},D("div",{class:"learningJourneyQuizViewModelQuizHeaderText", el:dB(function(C){$V(y(),C,b,function(I){b=I})}), style:GC({color:function(){return f().primaryTextColor}}), "client-ve-type":y},D(gC,{text:function(){var C=e(),I=v(),K=w();return I?K?C.successTitle:C.failureTitle:C.questionHeaderText}}))),D("div",{class:"learningJourneyQuizViewModelQuizHeaderButtons"},D(P,{cond:v, then:function(){return D("div",{id:"resetButton",class:"learningQuizComponentQuizHover",el:dB(function(C){$V(264687,C,c,function(I){c=I})}), "on:click":A,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},D("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:GC({fill:function(){return f().primaryTextColor}})},D("path",{d:"M440-122q-121-15-200.5-105.5T160-440q0-66 26-126.5T260-672l57 57q-38 34-57.5 79T240-440q0 88 56 155.5T440-202v80zm80 0v-80q87-16 143.5-83T720-440q0-100-70-170t-170-70h-3l44 44-56 56-140-140 140-140 56 56-44 44h3q134 0 227 93t93 227q0 121-79.5 211.5T520-122z"})))}}), D(OC,{data:function(){return e().overflowMenu}},{buttonViewModel:function(C){return D(BD,{data:C.data})}}))),D("div",{class:"learningQuizComponentQuizSubheader", el:dB(function(C){$V(264688,C,d,function(I){d=I})}), style:GC({color:function(){return f().secondaryTextColor}}), "client-ve-type":264688},D(gC,{text:function(){var C=e();return v()?C.explanationText:C.questionSubheaderText}}))),D("div",{role:"group", class:"learningQuizComponentQuizOptionsList"},D(mw,{each:function(){return e().optionsData||[]}},function(C,I){var K={},N={}; return D("button",{class:U("learningQuizComponentQuizOptions","learningJourneyQuizViewModelQuizOptions","learningJourneyQuizViewModelQuizOptionsBorderRound",(K.learningQuizComponentQuizHover=function(){return!v()},K.learningQuizComponentQuizOptionWithCustomColor=h,K.learningJourneyQuizViewModelQuizOptionSelectedCorrect=function(){var L=I(); return w()&&u(L)},K.learningJourneyQuizViewModelQuizOptionSelectedIncorrect=function(){return!w()&&t(I())},K.learningQuizComponentQuizIncorrectShake=function(){return!w()&&t(I())},K.learningJourneyQuizViewModelQuizOptionNotSelected=function(){return v()&&!t(I())},K)), "on:click":FC(function(){Pz(gz(),{data:C});if(v())return!1;q(I());return!1}), style:GC({background:function(){var L=I();return v()&&t(L)?"":h()?f().optionColor:"transparent"}}), "aria-disabled":v},D("div",{class:"learningQuizComponentQuizOptionContainer"},D(P,{cond:v,then:function(){return D(q1b,{isOptionCorrect:u,optionIndex:I,isOptionSelected:t,colors:f})}}),D(gC,{text:C.optionText, className:U((N.learningJourneyQuizViewModelQuizOptionSelectedText=function(){return v()&&t(I())},N))})))})))))},"Kd"),q1b=O(function(a){var b={}; return D("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var c=a.optionIndex();return a.isOptionCorrect(c)?"0 0 24 24":"0 -960 960 960"}, class:U("learningJourneyQuizViewModelQuizOptionIconLeading",(b.learningQuizComponentQuizPulse=function(){return a.isOptionSelected(a.optionIndex())&&a.isOptionCorrect(a.optionIndex())},b.learningJourneyQuizViewModelQuizOptionIconSelected=function(){return a.isOptionSelected(a.optionIndex())},b))},D("path",{d:function(){var c=a.optionIndex(); return a.isOptionCorrect(c)?"M12,2C6.5,2,2,6.5,2,12c0,5.5,4.5,10,10,10s10-4.5,10-10C22,6.5,17.5,2,12,2z M9.8,17.3l-4.2-4.1L7,11.8l2.8,2.7L17,7.4 l1.4,1.4L9.8,17.3z":"M330-120L120-330v-300l210-210h300l210 210v300L630-120H330zm36-190l114-114 114 114 56-56-114-114 114-114-56-56-114 114-114-114-56 56 114 114-114 114 56 56z"}}))},"Ld"); r1b.idomCompat=!0;bB(r1b,"learning-journey-quiz-view-model",{props:{data:$A,className:$A}});var t1b=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("zGksAf"),2);a=s1b;return b.return(a)})},u1b=yD(function(){return t1b()},{debugName:"accordionItemViewModel"}); Gn(xD,function(a){a.registerLoadFn("accordionItemViewModel","zGksAf",t1b)});var v1b=O(function(a){var b=l(kQ(a.data)).next().value,c=function(){return a.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},d=function(){return c()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},e=l(ip(!0,void 0,"aa2f1d")),f=e.next().value,h=e.next().value,m=function(){return d()&&f()},p=function(){return{type:"tonal", style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){h(!f())}}},q=FC(function(){b().onTitleTap&&QB(b().onTitleTap||{})}); e={};return D("yt-accordion-view-model",{class:U("ytAccordionViewModelHost",(e.ytAccordionViewModelMinimized=function(){return m()},e)), "data-target-id":function(){return a.data().targetId||""}},D(P,{cond:function(){return d()||!!b().title}, then:function(){return D("div",{class:"ytAccordionViewModelHeader"},D("div",{class:"ytAccordionViewModelTitleSection"},D("div",{class:"ytAccordionViewModelTitleWrapper"},D(P,{cond:function(){return!!a.data().headerIcon}, then:function(){return D(aC,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var t;return(t=a.data().headerIcon)==null?void 0:t.iconType}})}}),D("div",{class:"ytAccordionViewModelTitle", "on:click":q},D(gC,{className:"ytAccordionViewModelTitleText",text:function(){return b().title}})))),D("div",{class:"ytAccordionViewModelButtonSection"},D(P,{cond:d, then:function(){return D(bL,{data:p,iconName:function(){return m()?"chevron_down":"chevron_collapse"}})}})))}}),D("div",{class:"ytAccordionViewModelContent"},D(OC,{data:function(){return b().contents}},{accordionItemViewModel:function(t){return D(u1b,{data:t.data, className:"ytAccordionViewModelRow",accordionStyle:c,hideIfNotExpanded:m,onCollapse:function(){return d()?(h(!0),!1):!0}})}})),D("div",null,D(P,{cond:function(){return!d()&&(!!b().disclaimerFooter||!!b().footer)}, then:function(){return D("div",{class:"ytAccordionViewModelFooter"},D(gC,{text:function(){return b().disclaimerFooter}, className:"ytAccordionViewModelDisclaimer"}),D(OC,{data:function(){return a.data().footer}},{flexibleActionsViewModel:function(t){return D(mV,{data:t.data, layout:0})}}))}})))},"Md");bB(v1b,"yt-accordion-view-model",{props:{data:$A}});var w1b=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("DpqsDe"),2);a=p0b;return b.return(a)})},aW=yD(function(){return w1b()},{debugName:"horizontalShelfViewModel"}); Gn(xD,function(a){a.registerLoadFn("horizontalShelfViewModel","DpqsDe",w1b)});var x1b=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("n0DHg"),2);a=q0b;return b.return(a)})},y1b=yD(function(){return x1b()},{debugName:"alertBannerViewModel"}); Gn(xD,function(a){a.registerLoadFn("alertBannerViewModel","n0DHg",x1b)});var z1b=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("dIvQ6c"),2);a=k1b;return b.return(a)})},A1b=yD(function(){return z1b()},{debugName:"learningJourneyLoaderViewModel"}); Gn(xD,function(a){a.registerLoadFn("learningJourneyLoaderViewModel","dIvQ6c",z1b)});bB(O(function(a){var b=null,c=null,d,e=(d=Fn().resolve(Cn(HB)))==null?void 0:d(),f=l(ip(!1,void 0,"EVXQGb"));d=f.next().value;var h=f.next().value;f=l(ip(!0,void 0,"W9FIJf"));var m=f.next().value,p=f.next().value,q=sw("textarea",function(C){$V(264503,C,b,function(I){b=I})}),t=function(C){h(!0); C={learningJourneyFormData:{query:C}};QB(a.data().searchEndpoint||{},{form:{formData:C}});return!1},u=FC(function(C){C.target.closest("button-view-model")&&h(!0)}); f=FC(function(){p(q.value.value.length===0)}); var v=FC(function(C){if(C.key==="Enter"&&!C.shiftKey&&!m()){var I=C.target;C.preventDefault();t(I.value)}}),w={},y={},A={}; return D("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},D("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},D(eC,{data:function(){return a.data().learningIcon}, className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),D("div",{class:"ytLearningJourneyZeroStateSearchContainer"},D("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},D("div",{class:U("ytLearningJourneyZeroStateSearchBar",(w.ytLearningJourneyZeroStateSearchBarDark=e,w))},D("textarea",{class:U("ytLearningJourneyZeroStateTextInput",(y.ytLearningJourneyZeroStateTextInputDark=e,y)),el:q,"on:keyup":f,"on:keydown":v,placeholder:"What do you want to learn?", rows:1,"client-ve-type":264503})),D("div",{class:U("ytLearningJourneyZeroStateSearchButtonContainer",(A.ytLearningJourneyZeroStateSearchButtonContainerDark=e,A))},D(BD,{data:function(){return z(a.data().searchButton,ZJ)}, className:"search-button",onClick:function(){return t(q.value.value)}, buttonOverrides:function(){return{disabled:m(),style:e?"mono-inverse":"mono",size:"XL"}}}))),D(P,{cond:function(){return!!a.data().errorBanner}, then:function(){return D("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:dB(function(C){$V(264617,C,c,function(I){c=I})})},D(OC,{data:function(){return a.data().errorBanner}},{alertBannerViewModel:function(C){return D(y1b,{data:C.data, "client-ve-type":264617})}}))}})),D(P,{cond:d, then:function(){return D("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},D(OC,{data:function(){return a.data().loader}},{learningJourneyLoaderViewModel:function(C){return D(A1b,{data:C.data})}}))}, else:function(){return D("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},D(P,{cond:function(){return!!a.data().learningJourneyShelf}, then:function(){return D("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},D("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return a.data().learningJourneySectionTitle}),D(OC,{data:function(){return a.data().learningJourneyShelf}},{horizontalShelfViewModel:function(C){return D(aW,{data:C.data, centerAlignItems:!0})}}))}}),D("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},D("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return a.data().suggestedJourneySectionTitle}),D("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer", "on:click":u},D(OC,{data:function(){return a.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(C){return D(mV,{data:C.data, layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"Nd"),"yt-learning-journey-zero-state",{props:{data:$A}});var C1b=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("lBaCsb"),2);a=B1b;return b.return(a)})},D1b=yD(function(){return C1b()},{debugName:"liveLeaderboardItemActionContentViewModel"}); Gn(xD,function(a){a.registerLoadFn("liveLeaderboardItemActionContentViewModel","lBaCsb",C1b)});var F1b=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("LjGSoc"),2);a=E1b;return b.return(a)})},G1b=yD(function(){return F1b()},{debugName:"liveLeaderboardItemChannelContentViewModel"}); Gn(xD,function(a){a.registerLoadFn("liveLeaderboardItemChannelContentViewModel","LjGSoc",F1b)});bB(O(function(a){var b=a.data;return D("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},D("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},D(gC,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var c;return(c=b())==null?void 0:c.rank}})),D("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},D(OC,{data:function(){return b().avatar}},{avatarViewModel:zD})),D("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},D(OC, {data:function(){return b().content}},{liveLeaderboardItemChannelContentViewModel:G1b, liveLeaderboardItemActionContentViewModel:D1b})),D(gC,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var c;return(c=b())==null?void 0:c.points}}))},"Od"),"ytvl-live-leaderboard-item-view-model",{props:{data:$A}});bB(O(function(a){var b=a.data;return D("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},D(gC,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var c,d;return(c=b())==null?void 0:(d=c.ranking)==null?void 0:d.rank}}),D("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},D(OC,{data:function(){return b().avatar}},{avatarViewModel:zD})),D(gC,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent", text:function(){var c,d;return(c=b())==null?void 0:(d=c.channelContent)==null?void 0:d.channelName}}),D(gC,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints", text:function(){var c;return(c=b())==null?void 0:c.points}}))},"Pd"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:$A}});var H1b=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],I1b=O(function(a){var b=a.data;var c=dB(),d=Vo(function(){return b().command},void 0,"CGDtVe"); lw(function(){d()&&OB(d(),{form:{element:c.value}})},"tLGSPe"); return D("div",{el:c,class:"YtQrCodeRendererHostContainer"},D(P,{cond:function(){return b().qrCodeImage}, then:function(e){return D(eC,{data:e,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}, else:function(){return D(P,{cond:function(){return b().spinner}, then:function(){return D(jQ,null)}})}}),D(P,{cond:function(){return b().label}, then:function(e){return D(gC,{text:e,className:"YtQrCodeRendererHostLabel"})}}),D(P,{cond:function(){return b().labels}, then:function(e){return D("div",{class:"YtQrCodeRendererHostLabels"},D(mw,{each:e},function(f){return D(gC,{text:f})}))}}))},"Sd");bB(O(function(a){var b=a.data;var c=Vo(function(){return b().qrEntityKey},void 0,"ddFtfb"),d=Vo(function(){return b().deleteEntityOnDismiss},void 0,"bcRuJd"),e=Vo(function(){return b().command},void 0,"MCpbnc"),f=fL(hVa,c); a=Vo(function(){return b().qrCodeImage},void 0,"Jydgde"); var h=Vo(function(){return b().style&&H1b.includes(b().style)},void 0,"CkEY5c"),m=vw({visibilityCallback:function(p){p&&e()&&OB(e())}, showOption:{calledOnce:!0,state:"visible"}});rw(function(){zp(function(){d()&&c()&&Au().dispatch(dA("qrCodeEntity",c()))})}); return D("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:dB(m)},D(P,{cond:h,then:function(){return D(P,{cond:f,then:function(p){return D(I1b,{data:p})}})}}),D(P,{cond:a, then:function(p){return D(eC,{data:p,alt:""})}}))},"Qd"),"yt-qr-code-renderer",{props:{data:$A}});var J1b=O(function(){return D("video-overview-ghost-card",{class:"ytVideoOverviewGhostCardHost"},D("div",{class:"ytVideoOverviewGhostCardHeader"},D(aC,{icon:"SPARK",className:"ytVideoOverviewGhostCardSparkleIcon"}),D("div",{class:"ytVideoOverviewGhostCardFeatureTitle"},"Highlights")),D("div",{class:"ytVideoOverviewGhostCardMainLayout"},D("div",{class:"ytVideoOverviewGhostCardMediaWrapper"},D("div",{class:"ytVideoOverviewGhostCardMedia"})),D("div",{class:"ytVideoOverviewGhostCardDetails"},D("div", {class:"ytVideoOverviewGhostCardGhostLineThick"}),D("div",{class:"ytVideoOverviewGhostCardGhostLineSlim"}),D("div",{class:"ytVideoOverviewGhostCardGhostLineSlim"}),D("div",{class:"ytVideoOverviewGhostCardGhostLineSmall"}),D("div",{class:"ytVideoOverviewGhostCardVideoSection"},D("div",{class:"ytVideoOverviewGhostCardVideoWidget"}),D("div",{class:"ytVideoOverviewGhostCardVideoWidget"}),D("div",{class:"ytVideoOverviewGhostCardVideoWidget"}),D("div",{class:"ytVideoOverviewGhostCardVideoWidget"})))))}, "Td");function K1b(a,b){return yA(a.entities,"videoOverviewAsyncDataEntity",b)} ;var L1b=iQ.inlinePreviewEnabledSelector,N1b=O(function(a){function b(Xa){return Math.min(Math.max(Xa,0),W()-Y())} function c(Xa){var Mb=K();if(!ib())return 0;Xa===void 0&&(Xa=Math.round(Y()/Mb)||1);return Xa*Mb} function d(Xa){A("transform:translateX(-"+Xa+"px)")} function e(Xa){m.value&&Yu(m.value,"yt-play-inline-preview-by-index",[Xa,Aa()])} var f=a.data;var h=Fn().resolve(Cn(HB)),m=tw("yt-video-overview-view-model"),p=dB(),q=dB();a=l(ip(-1,void 0,"LnLlKd"));var t=a.next().value,u=a.next().value;a=l(ip(0,void 0,"zg30Nd"));var v=a.next().value,w=a.next().value;a=l(ip("",void 0,"c01oze"));var y=a.next().value,A=a.next().value;a=l(ip(0,void 0,"DTFFsb"));var C=a.next().value,I=a.next().value,K=C;a=l(ip(!1,void 0,"Gd8U4d"));var N=a.next().value,L=a.next().value;a=l(ip(0,void 0,"y2nqUe"));C=a.next().value;var R=a.next().value,W=C;a=l(ip(0, void 0,"dKKWid"));C=a.next().value;var S=a.next().value,Y=C;a=l(ip("",void 0,"BfHyJb"));C=a.next().value;var da=a.next().value,Aa=C;a=l(ip({},void 0,"lcL1Z"));var Sa=a.next().value,Ua=a.next().value,qb=fL(K1b,function(){return f().asyncDataEntityKey}),ab=eL(L1b); C=Fn().resolve(Cn(FQb));var La=function(){var Xa;if((Xa=qb())==null?0:Xa.videoOverviewViewModel){var Mb;return z((Mb=qb())==null?void 0:Mb.videoOverviewViewModel,Krb)}return f()}; CH("yt-inline-preview-index-changed",function(Xa,Mb){Aa()===Mb&&u(Xa)}); a=FC(function(){L(!0)}); C&&m&&C({enabled:function(){return ab()}, itemPlaybackModel:function(){var Xa;return(Xa=La())==null?void 0:Xa.itemPlayback}, thumbnailElRef:function(){return Sa().thumbnailElRef}, containerElRef:m,options:function(){var Xa=Sa().thumbnailOverlays||[];return{thumbnail:Sa().thumbnail,thumbnailOverlays:Xa,thumbnailSize:"medium",mouseleaveCallback:function(){L(!1);u(-1)}, enableRounding:!0,playerKeyCallback:function(Mb){da(Mb)}}}}); var ib=function(){var Xa;return((Xa=La())==null?void 0:Xa.listItems)||[]},sb=function(){var Xa,Mb,Na=(Xa=m)==null?void 0:(Mb=Xa.value)==null?void 0:Mb.clientWidth; if(Na){I(Math.min((Na-24)/4-8,72));if(ib()){Xa=K()+8;var Cb,fc;Mb=(Cb=La())==null?void 0:(fc=Cb.listItems)==null?void 0:fc.length;R(Xa*(Mb!=null?Mb:0))}var Cc;(q==null?0:(Cc=q.value)==null?0:Cc.clientWidth)&&S(q.value.clientWidth)}}; DH("resize",function(){sb()}); rw(function(){sb()}); lw(function(){sb()},"v7yJmd"); var Oa=function(){var Xa,Mb,Na,Cb,fc,Cc,We;return(We=h==null?void 0:h())!=null&&We?(Xa=La())==null?void 0:(Mb=Xa.listItems)==null?void 0:(Na=Mb[t()===-1?0:t()])==null?void 0:Na.darkThemeColorSamplingPalette:(Cb=La())==null?void 0:(fc=Cb.listItems)==null?void 0:(Cc=fc[t()===-1?0:t()])==null?void 0:Cc.lightThemeColorSamplingPalette},Ca=function(){var Xa,Mb,Na,Cb,fc,Cc,We; return(We=(Xa=La())==null?void 0:(Mb=Xa.listItems)==null?void 0:(Na=Mb[t()])==null?void 0:Na.headline)!=null?We:(Cb=La())==null?void 0:(fc=Cb.listItems)==null?void 0:(Cc=fc[0])==null?void 0:Cc.headline},eb=function(){var Xa,Mb,Na,Cb,fc,Cc,We; return(We=(Xa=La())==null?void 0:(Mb=Xa.listItems)==null?void 0:(Na=Mb[t()])==null?void 0:Na.subtext)!=null?We:(Cb=La())==null?void 0:(fc=Cb.listItems)==null?void 0:(Cc=fc[0])==null?void 0:Cc.subtext},Qa=function(){var Xa; return(Xa=La())==null?void 0:Xa.carouselPreviousButton},Bb=function(){var Xa; return(Xa=La())==null?void 0:Xa.carouselNextButton},dc=Vo(function(){return v()>0},void 0,"jTLeCf"),Nb=Vo(function(){return v()0?!0:!1},Fc=function(){var Xa=Oa(); if(Xa==null?0:Xa.textPrimary)return"color: "+Jy(Xa==null?void 0:Xa.textPrimary)+";";var Mb;return(Xa=kV((Mb=La())==null?void 0:Mb.titleColor))?"color: "+Jy(Xa)+";":void 0},wc=function(){var Xa=Oa(); if(Xa==null?0:Xa.textSecondary)return""+Jy(Xa==null?void 0:Xa.textSecondary);var Mb;return(Xa=kV((Mb=La())==null?void 0:Mb.subtextColor))?""+Jy(Xa):void 0},kd=function(){var Xa=wc(); return Xa?"color: "+Xa+";":void 0},zc=function(){var Xa=Oa(); return{style:"overlay",size:"XS",customColors:(Xa==null?0:Xa.textSecondary)?{color:Jy(Xa.textSecondary),borderColor:"transparent"}:void 0}},ld=function(){var Xa,Mb,Na; return(Xa=La())==null?void 0:(Mb=Xa.listItems)==null?void 0:(Na=Mb[t()===-1?0:t()])==null?void 0:Na.onTap},Sd=function(){var Xa; return(Xa=La())==null?void 0:Xa.isLoading},Jc=function(){var Xa; return z((Xa=La())==null?void 0:Xa.likeButtonViewModel,Tpb)},ec=function(){var Xa; return z((Xa=La())==null?void 0:Xa.dislikeButtonViewModel,Spb)}; C={};return D("yt-video-overview-view-model",{class:U("ytGenAiVideoOverviewViewModelHost",(C.ytGenAiVideoOverviewViewModelMweb=!1,C.ytGenAiVideoOverviewViewModelDesktop=!0,C)),el:m,"on:mouseenter":a,style:function(){if(Sd())var Xa=void 0;else if(Xa=Oa(),(Xa==null?0:Xa.baseBackground)&&(Xa==null?0:Xa.keyLight)){var Mb=Xa.baseBackground;Xa=Xa.keyLight;Xa="background-color: "+Jy(Mb)+"; background: linear-gradient(105deg, "+Jy(Xa)+" 0.6%, "+Jy(Mb)+" 45%);"}else Xa=(Xa=kV((Mb=La())==null?void 0:Mb.backgroundColor))? "background-color: "+Jy(Xa)+"; background: linear-gradient(105deg, "+Jy(Xa)+" 0.6%, "+Jy(Xa&234881023)+" 45%);":void 0;return Xa}},D(P,{cond:Sd, then:function(){return D(J1b,null)}, else:function(){return D(mq,null,D("div",{class:"ytGenAiVideoOverviewViewModelHeader"},D("div",{class:"ytGenAiVideoOverviewViewModelSubheadIcon",style:Fc},D(aC,{icon:"SPARK",className:"ytGenAiVideoOverviewViewModelSparkIcon"})),D("h2",{class:"ytGenAiVideoOverviewViewModelTitle",style:Fc,tabindex:0},D(gC,{text:function(){var Xa;return(Xa=La())==null?void 0:Xa.headerText}}))),D("div",{class:"ytGenAiVideoOverviewViewModelContent"},D("div",{class:"ytGenAiVideoOverviewViewModelThumbnail"},D(OC,{data:function(){var Xa; return(Xa=La())==null?void 0:Xa.thumbnail}},{thumbnailViewModel:function(Xa){return D(fRb,{data:Xa.data, aspectRatio:0,playbackRef:GQb(Ua),width:9999,className:"ytGenAiVideoOverviewViewModelThumbnailViewModel"})}})),D("div",{class:"ytGenAiVideoOverviewViewModelDetails"},D("div",{class:"ytGenAiVideoOverviewViewModelMetadata"},D(vD,{className:"ytGenAiVideoOverviewViewModelDescription", command:ld},D("h3",{class:"ytGenAiVideoOverviewViewModelDescriptionTitle",style:kd},D(gC,{text:Ca})),D("div",{class:"ytGenAiVideoOverviewViewModelDescriptionSubtext",style:kd},D(gC,{text:eb}))),D("div",{class:"ytGenAiVideoOverviewViewModelFeedbackRow",style:Fc},D(P,{cond:function(){var Xa;return!((Xa=La())==null||!Xa.disclaimerText)}, then:function(){return D("div",{class:"ytGenAiVideoOverviewViewModelDisclaimerText"},D(gC,{linkInheritColor:!0,text:function(){var Xa;return(Xa=La())==null?void 0:Xa.disclaimerText}}))}}),D("div",{class:"ytGenAiVideoOverviewViewModelBottomButtonsContainer"},D("div",{class:"ytGenAiVideoOverviewViewModelFeedbackButton"},D(P,{cond:function(){return!!Jc()}, then:function(){return D(yQ,{data:function(){return Jc()}, disableIconAnimation:!0,buttonShapeOverrideables:zc})}})),D("div",{class:"ytGenAiVideoOverviewViewModelFeedbackButton"},D(P,{cond:function(){return!!ec()}, then:function(){return D(xQ,{data:function(){return ec()}, buttonShapeOverrideables:zc})}}))))),D(P,{cond:Lc, then:function(){return D("div",{class:"ytGenAiVideoOverviewViewModelVideoThumbnails"},D("div",{class:"ytGenAiVideoOverviewViewModelOuterCarousel",el:q},D("div",{class:"ytGenAiVideoOverviewViewModelCarousel",el:p,style:y},D(mw,{each:function(){var Xa;return(Xa=La())==null?void 0:Xa.listItems}},function(Xa,Mb){var Na; return D(M1b,{image:Xa.image,index:Mb,isSelected:function(){return Mb()===t()&&N()}, onClick:e,itemWidth:K,tooltipText:(Na=Xa.headline)==null?void 0:Na.content,borderColor:wc})}))),D(P,{cond:dc, then:function(){return D("div",{class:"ytGenAiVideoOverviewViewModelLeftArrow"},D(OC,{data:Qa},{buttonViewModel:function(Xa){return D(BD,{data:Xa.data,onClick:function(){w(b(v()-c(void 0)));d(v())}})}}))}}),D(P,{cond:Nb, then:function(){return D("div",{class:"ytGenAiVideoOverviewViewModelRightArrow"},D(OC,{data:Bb},{buttonViewModel:function(Xa){return D(BD,{data:Xa.data,onClick:function(){w(b(v()+c(void 0)));d(v())}})}}))}}))}}))))}}))},"Vd"),M1b=O(function(a){var b=a.image; var c=a.itemWidth;var d=a.index;var e=a.isSelected;var f=a.onClick;var h=a.tooltipText;var m=a.borderColor;a=FC(function(){d!==void 0&&f!==void 0&&f(d());return!1}); var p=l(H_a(function(){return h==null?void 0:h()})).next().value,q={}; return D("button",{class:U("ytGenAiVideoOverviewViewModelCarouselItem",(q.ytGenAiVideoOverviewViewModelCarouselItemSelected=function(){return e==null?void 0:e()},q)), style:function(){return"border: 2px solid "+((e==null?0:e())&&(m==null?0:m())?m():"transparent")+"; width: "+c()+"px;"}, "on:click":a,el:dB(function(t){p(t)}), "aria-label":h},D(eC,{data:b,alt:"",className:"ytGenAiVideoOverviewViewModelCarouselThumbnail"}))},"Wd"); N1b.idomCompat=!0;bB(N1b,"yt-video-overview-view-model",{props:{data:$A}});var P1b=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("Cst4hf"),2);a=O1b;return b.return(a)})},Q1b=yD(function(){return P1b()},{debugName:"pageHeaderViewModel"}); Gn(xD,function(a){a.registerLoadFn("pageHeaderViewModel","Cst4hf",P1b)});bB(O(function(a){var b=l(ip(!1,void 0,"DMDclb")),c=b.next().value,d=b.next().value,e=function(){var q,t,u,v,w=((q=a.data())==null?0:q.forceDarkTheme)?(t=a.data())==null?void 0:(u=t.backgroundColor)==null?void 0:u.darkTheme:kV((v=a.data())==null?void 0:v.backgroundColor);return w?Jy(w):void 0},f=function(){var q,t=z((q=a.data())==null?void 0:q.header,ysb),u; return!((u=z(t==null?void 0:t.background,Rpb))==null||!u.fadeToThemeConfig)},h=function(){return KD(a.data().rendererContext)}; b={};var m={},p={};return D("yt-official-card-view-model",{class:U("ytOfficialCardViewModelHost",a.className,(b.ytOfficialCardViewModelHostCinematic=f,b)),style:GC({"background-color":e})},D("div",{class:U((m.ytOfficialCardViewModelClickableHeader=h,m)),role:function(){return h()?"link":void 0}, tabindex:function(){return h()?0:void 0}, el:dB(MD(function(){return a.data().rendererContext},void 0,void 0,["A".toString(), "BUTTON".toString()]))},D(OC,{data:function(){return a.data().header}},{pageHeaderViewModel:function(q){q=q.data; var t={};return D(Q1b,{className:U((t.ytOfficialCardViewModelHeaderContainer=f,t.ytOfficialCardViewModelHeaderContainerEmptyShelfContents=function(){return!a.data().contents},t)), data:q,noPadding:!0})}})),D("div",{class:U((p.ytOfficialCardViewModelHostCinematicContentContainer=f,p)), style:GC({background:function(){var q=e(),t,u,v,w,y=((t=a.data())==null?0:t.forceDarkTheme)?(u=a.data())==null?void 0:(v=u.baseBackgroundColor)==null?void 0:v.darkTheme:kV((w=a.data())==null?void 0:w.baseBackgroundColor);t=y?Jy(y):void 0;return f()&&q&&t?"linear-gradient(to bottom, "+q+", "+t+")":void 0}})},D(OC,{data:function(){return a.data().contents}},{horizontalShelfViewModel:function(q){return D(aW,{data:q.data, ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0,useOverlayStyling:function(){return a.data().forceDarkTheme}, useColorSampledButtons:function(){var t,u;return!((t=a.data().baseBackgroundColor)==null||!t.darkTheme)&&!((u=a.data().baseBackgroundColor)==null||!u.lightTheme)}})}}),D(P,{cond:c, then:function(){return D("div",{class:"ytOfficialCardViewModelExpandedContent"},D(OC,{data:function(){return a.data().expandedContents}},{horizontalShelfViewModel:function(q){return D(aW,{data:q.data, sizing:"MINI",useOverlayStyling:function(){return a.data().forceDarkTheme}, useColorSampledButtons:function(){var t,u;return!((t=a.data().baseBackgroundColor)==null||!t.darkTheme)&&!((u=a.data().baseBackgroundColor)==null||!u.lightTheme)}})}}),D("div",{class:"ytOfficialCardViewModelCollapseButton"},D(OC,{data:function(){return a.data().collapseButton}},{buttonViewModel:function(q){return D(BD,{data:q.data, onClick:function(){d(!c())}})}})))}, else:function(){return D("div",{class:"ytOfficialCardViewModelExpandButton"},D(OC,{data:function(){return a.data().expandButton}},{buttonViewModel:function(q){return D(BD,{data:q.data, onClick:function(){d(!c())}})}}))}})))},"Xd"),"yt-official-card-view-model",{props:{data:$A, className:$A}});var R1b=O(function(a){var b,c=(b=Fn().resolve(Cn(HB)))==null?void 0:b();return D("ytw-search-friction-view-model",{class:U("ytwSearchFrictionViewModelHost",a.className)},D("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},D("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},D(P,{cond:function(){return c&&a.data().darkThemeImage?a.data().darkThemeImage:a.data().image}, then:function(d){return D(eC,{data:d,alt:"",className:"ytwSearchFrictionViewModelHostImage"})}})),D(OC,{data:function(){return a.data().overflowMenuButton}},{buttonViewModel:function(d){return D(AD,{data:d.data, className:"ytwSearchFrictionViewModelHostMenuButton"})}})),D(gC,{text:function(){return a.data().title}, className:"ytwSearchFrictionViewModelHostTitle"}),D(mw,{each:function(){return a.data().bodyText||[]}},function(d){return D(gC,{text:d, className:"ytwSearchFrictionViewModelHostBodyText"})}),D(OC,{data:function(){return a.data().actions}},{buttonViewModel:function(d){return D(AD,{data:d.data, className:"ytwSearchFrictionViewModelHostButton"})}}),D(gC,{text:function(){return a.data().disclaimer}, className:"ytwSearchFrictionViewModelHostDisclaimer"}),D(gC,{text:function(){return a.data().attribution}, className:"ytwSearchFrictionViewModelHostAttribution"}))},"Yd"); R1b.idomCompat=!0;bB(R1b,"ytw-search-friction-view-model",{props:{data:$A,className:$A}});var S1b=RegExp("__CODE_BLOCK_\\d+__","g"),bW=O(function(a){var b=Hu(a,{isSmallText:!1,wrapCodeBlocks:!1,disableDefaultStyling:!1,plugins:[]}),c=b.text;a=b.isSmallText;var d=b.wrapCodeBlocks,e=b.disableDefaultStyling,f=b.className,h=b.plugins,m=sw("markdown-div"),p;b=(p=Fn().resolve(Cn(HB)))==null?void 0:p();var q=new Qgb,t=new JI,u=Vo(function(){return T1b(c(),h(),q,t)},void 0,"y73Xud"); p=Vo(function(){var w=new Kh,y=new Map(w.JSC$6201_sanitizerTable.globalAttributePolicies);y.set("style",{policyAction:4});w.JSC$6201_sanitizerTable=new Eh(w.JSC$6201_sanitizerTable.allowedElements,w.JSC$6201_sanitizerTable.elementPolicies,w.JSC$6201_sanitizerTable.allowedGlobalAttributes,y,w.JSC$6201_sanitizerTable.globallyAllowedAttributePrefixes);var A=["data-time","data-plugin-content"];if(A===void 0)y=new Set(w.JSC$6201_sanitizerTable.globallyAllowedAttributePrefixes),y.add("data-"),w.JSC$6201_sanitizerTable= new Eh(w.JSC$6201_sanitizerTable.allowedElements,w.JSC$6201_sanitizerTable.elementPolicies,w.JSC$6201_sanitizerTable.allowedGlobalAttributes,w.JSC$6201_sanitizerTable.globalAttributePolicies,y);else{y=new Set(w.JSC$6201_sanitizerTable.allowedGlobalAttributes);A=l(A);for(var C=A.next();!C.done;C=A.next()){C=C.value;if(C.indexOf("data-")!==0)throw Error("data attribute: "+C+" does not begin with the prefix \"data-\"");y.add(C)}w.JSC$6201_sanitizerTable=new Eh(w.JSC$6201_sanitizerTable.allowedElements, w.JSC$6201_sanitizerTable.elementPolicies,y,w.JSC$6201_sanitizerTable.globalAttributePolicies,w.JSC$6201_sanitizerTable.globallyAllowedAttributePrefixes)}y=new Set(w.JSC$6201_sanitizerTable.allowedGlobalAttributes);y.add("class");w.JSC$6201_sanitizerTable=new Eh(w.JSC$6201_sanitizerTable.allowedElements,w.JSC$6201_sanitizerTable.elementPolicies,y,w.JSC$6201_sanitizerTable.globalAttributePolicies,w.JSC$6201_sanitizerTable.globallyAllowedAttributePrefixes);return Hh(w.build(),u().html)},void 0,"qI9Ykd"); lw(function(){U1b(m.value);var w=m.value,y=u().registry;w=w.querySelectorAll("[data-plugin-content]");w=l(w);for(var A=w.next();!A.done;A=w.next()){A=A.value;var C=A.getAttribute("data-plugin-content");C&&(C=y.get(C))&&Qba(A,C)}},"lZTlNe"); var v={};return D("div",null,D("markdown-div",{class:U("ytwMarkdownDivHost",f,(v.ytwMarkdownDivDark=b,v.ytwMarkdownDivHostEnableDefaultStylingSmall=a,v.ytwMarkdownDivHostWrapCodeBlocks=d,v.ytwMarkdownDivHostEnableDefaultStyling=function(){return!e()},v)), el:m},p))},"$d"); bW.idomCompat=!0;function V1b(a){return a.replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(b){var c=b.split(":").map(Number),d=0,e=0;if(c.length===3)c=l(c),d=c.next().value,e=c.next().value,c=c.next().value;else if(c.length===2)c=l(c),e=c.next().value,c=c.next().value;else if(c.length===1)c=l(c).next().value;else throw Error("Invalid time format");return""+b+""})} function T1b(a,b,c,d){var e=new Map,f=0,h=function(q){var t=""+f++;e.set(t,q);return""},m=new Map,p=0; a=a.replace(/(`+)([\s\S]*?)\1/g,function(q){var t="__CODE_BLOCK_"+p++ +"__";m.set(t,q);return t}); a=b.reduce(function(q,t){return t(q,h)},a); b=a.replace(S1b,function(q){return m.get(q)||q}); c=d.render(c.parse(b));return{html:V1b(c),registry:e}} function U1b(a){a=l(a.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var b=a.next(),c={};!b.done;c={clickHandler$jscomp$5:void 0},b=a.next()){b=b.value;c.clickHandler$jscomp$5=function(e){e=Number(e.target.getAttribute("data-time"));if(isNaN(e))throw Error("Invalid time");var f;(f=(0,ND.getPlayer)())==null||f.seekTo(e,!0)}; var d=function(e){return function(f){f.key!=="Enter"&&f.key!=="Space"||(0,e.clickHandler$jscomp$5)(f)}}(c); b.setAttribute("tabindex","0");b.removeEventListener("click",c.clickHandler$jscomp$5);b.removeEventListener("keydown",d);b.addEventListener("click",c.clickHandler$jscomp$5);b.addEventListener("keydown",d)}} ;var X1b=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("i2vusb"),2);a=W1b;return b.return(a)})},Y1b=yD(function(){return X1b()},{debugName:"shoppingDescriptionItemViewModel"}); Gn(xD,function(a){a.registerLoadFn("shoppingDescriptionItemViewModel","i2vusb",X1b)});var $1b=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("RfUS8b"),2);a=Z1b;return b.return(a)})},a2b=yD(function(){return $1b()},{debugName:"timelineChapterViewModel"}); Gn(xD,function(a){a.registerLoadFn("timelineChapterViewModel","RfUS8b",$1b)});var c2b=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("AEc80e"),2);a=b2b;return b.return(a)})},d2b=yD(function(){return c2b()},{debugName:"timelineItemViewModel"}); Gn(xD,function(a){a.registerLoadFn("timelineItemViewModel","AEc80e",c2b)});var e2b=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("bJzpwf"),2);a=zRb;return b.return(a)})},f2b=yD(function(){return e2b()},{debugName:"videoAttributeViewModel"}); Gn(xD,function(a){a.registerLoadFn("videoAttributeViewModel","bJzpwf",e2b)});var g2b=O(function(a){var b=a.data;var c=sw("macro-markers-panel-item-view-model"),d=fL(dVa,function(){var f;return(f=b().markersEngagementPanelSyncEntityKey)!=null?f:""}),e=function(){var f; return((f=d())==null?void 0:f.activeItemIndex)===b().index}; a=FC(function(f){var h,m,p,q,t;return ra(function(u){if(u.nextAddress==1)return f.stopPropagation(),ID(HD(f),c.value,["A".toString(),"BUTTON".toString()])?u.return():(h=LB(b().onTap))?u.yield((0,ND.getCurrentPlayerShared)(),2):u.return();m=u.yieldResult;q=(p=z(h,py))==null?void 0:p.startTimeSeconds;q===void 0||(t=m)!=null&&t.seekTo(q,!0);u.jumpToEnd()})}); return D("macro-markers-panel-item-view-model",{class:U("ytwMacroMarkersPanelItemViewModelHost",{"is-active":e}),el:c,"on:click":a,tabindex:function(){return z(b().item,dqb)?void 0:0}, role:function(){return z(b().item,dqb)?void 0:"button"}},D(OC,{data:function(){var f; return(f=b())==null?void 0:f.item}},{timelineChapterViewModel:function(f){return D(a2b,{data:f.data, active:e})}, timelineItemViewModel:function(f){return D(d2b,{data:f.data,active:e})}, videoAttributeViewModel:f2b,shoppingDescriptionItemViewModel:Y1b}))},"ge"); g2b.idomCompat=!0;bB(g2b,"macro-markers-panel-item-view-model",{props:{data:$A}});var h2b=O(function(a){var b=a.data;a={};return D("div",{class:"videoAttributesSectionViewModelHeader"},D("div",{class:"videoAttributesSectionViewModelTitleContainer"},D("h3",{class:U("videoAttributesSectionViewModelTitle",(a.videoAttributesSectionViewModelTitleRedesign=function(){return x("desktop_include_oswald")||x("mweb_include_oswald")},a))},function(){return b().headerTitle}),D(P,{cond:function(){return b().headerInfoButton}, then:function(){return D(OC,{data:function(){return b().headerInfoButton}},{buttonViewModel:function(c){return D(BD,{data:c.data, className:"videoAttributesSectionViewModelInfoButton"})}})}})),D(P,{cond:function(){return b().headerSubtitle}, then:function(){return D("span",{class:"videoAttributesSectionViewModelSubtitle"},function(){return b().headerSubtitle})}}))},"he"),i2b=O(function(a){function b(A){return Math.max(Math.min(A,0),q()-m())} var c=a.data;var d;a=sw("div",function(A){var C=function(){t(A.clientWidth)}; C();window.ResizeObserver&&(d=new ResizeObserver(C),d.observe(A))}); var e=sw("div",function(A){p(A.scrollWidth)}),f=l(ip(0,void 0,"C3XQAe")),h=f.next().value; f=f.next().value;var m=h,p=f;f=l(ip(0,void 0,"db7y3"));h=f.next().value;f=f.next().value;var q=h,t=f;h=l(ip(0,void 0,"RchC7"));var u=h.next().value,v=h.next().value;zp(function(){var A;(A=d)==null||A.disconnect()}); var w=function(){v(b(u()+q()))},y=function(){v(b(u()-q()))}; return D("yt-video-attributes-section-view-model",null,D("div",{class:"videoAttributesSectionViewModelHost"},D(P,{cond:function(){return c().headerTitle}, then:function(){return D(h2b,{data:c})}}),D("div",{class:U("videoAttributesSectionViewModelVideoAttributes","videoAttributesSectionViewModelScrollContainer"), el:a},D("div",{class:"videoAttributesSectionViewModelVideoAttributesContainer",style:GC({transform:function(){var A=u();Vk("HTML_DIR")==="rtl"&&(A*=-1);return"translateX("+A+"px)"}}), el:e},D(OC,{data:function(){return c().videoAttributeViewModels}},{videoAttributeViewModel:f2b}))),D(OC,{data:function(){return c().footerButton}},{buttonViewModel:function(A){return D(BD,{data:A.data, className:"videoAttributesSectionViewModelFooterButton"})}}),D(P,{cond:function(){return u()<0&&c().previousButton}, then:function(){return D("div",{class:"videoAttributesSectionViewModelLeftArrow"},D(OC,{data:function(){return c().previousButton}},{buttonViewModel:function(A){return D(BD,{data:A.data, onClick:w})}}))}}),D(P,{cond:function(){return u()>q()-m()&&c().nextButton}, then:function(){return D("div",{class:"videoAttributesSectionViewModelRightArrow"},D(OC,{data:function(){return c().nextButton}},{buttonViewModel:function(A){return D(BD,{data:A.data, onClick:y})}}))}})))},"ie"); i2b.idomCompat=!0;bB(i2b,"yt-video-attributes-section-view-model",{props:{data:$A}});var k2b=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("U3HMFd"),2);a=j2b;return b.return(a)})},l2b=yD(function(){return k2b()},{debugName:"fantasySectionHeaderViewModel"}); Gn(xD,function(a){a.registerLoadFn("fantasySectionHeaderViewModel","U3HMFd",k2b)});var n2b=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("va7TQb"),2);a=m2b;return b.return(a)})},o2b=yD(function(){return n2b()},{debugName:"fantasyTeamViewModel"}); Gn(xD,function(a){a.registerLoadFn("fantasyTeamViewModel","va7TQb",n2b)});bB(O(function(a){return D("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},D("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},D(OC,{data:function(){return a.data().summaryHeader}},{fantasySectionHeaderViewModel:l2b})),D(OC,{data:function(){return a.data().userTeam}},{fantasyTeamViewModel:o2b}),D(OC,{data:function(){return a.data().opponentTeam}},{fantasyTeamViewModel:o2b}))},"je"),"fantasy-league-summary-view-model",{props:{data:$A}});var q2b=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("cVdUG"),2);a=p2b;return b.return(a)})},r2b=yD(function(){return q2b()},{debugName:"tabbedViewModel"}); Gn(xD,function(a){a.registerLoadFn("tabbedViewModel","cVdUG",q2b)});function s2b(){var a=l(ip(function(){return""},void 0,"geGp5c")),b=a.next().value; return[function(){return b()()}, a.next().value]} ;bB(O(function(a){var b=l(s2b()),c=b.next().value,d=b.next().value;return D("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},D(gC,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return a.data().title}}),D(P,{cond:function(){return a.data().tabbedViewModel}, then:function(e){return D(OC,{data:e},{tabbedViewModel:function(f){return D(r2b,{data:f.data,setSelectedTabSignal:d})}})}}),D(P,{cond:function(){var e,f=(e=z(a.data().tabbedViewModel,Ysb))==null?void 0:e.tabs; e=z(f==null?void 0:f[0],Xsb);f=z(f==null?void 0:f[1],Xsb);var h=e==null?void 0:e.tabIdentifier;if(c()===h){var m,p;if(!((m=z(e==null?void 0:e.content,$mb))==null?0:(p=m.players)==null?0:p.length))return a.data().noUserTeamPlayersText}else{var q,t;if(!((q=z(f==null?void 0:f.content,$mb))==null?0:(t=q.players)==null?0:t.length))return a.data().noOpponentTeamPlayersText}}, then:function(e){return D(gC,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:e})}}))},"ke"),"ytw-fantasy-matchup-view-model",{props:{data:$A}});bB(O(function(a){return D("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},D(gC,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return a.data().title}}),D(P,{cond:function(){return a.data().matchupTeamPairs}, then:function(b){return D(mw,{each:b,keyBy:"INDEX"},function(c){return D("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},D(OC,{data:function(){return[c().firstTeam,c().secondTeam]}},{fantasyTeamViewModel:function(d){return D(o2b,{data:d.data, compact:!0})}}))})}}))},"le"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:$A}});bB(O(function(a){var b=function(){var e,f,h;return(h=(e=a.data().userLogoAccessibility)==null?void 0:(f=e.accessibilityData)==null?void 0:f.label)!=null?h:""},c=function(){var e,f,h; return(h=(e=a.data().opponentLogoAccessibility)==null?void 0:(f=e.accessibilityData)==null?void 0:f.label)!=null?h:""},d=fL(eVa,function(){return a.data().entityKey}); return D("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},D("div",{class:"ytwFantasyWinProbabilityViewModelTop"},D(P,{cond:function(){return a.data().userLogo}, then:function(e){return D(eC,{className:"ytwFantasyWinProbabilityViewModelLogo",data:e,alt:b})}}),D("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},D(gC,{text:function(){return a.data().title}})),D(P,{cond:function(){return a.data().opponentLogo}, then:function(e){return D(eC,{className:"ytwFantasyWinProbabilityViewModelLogo",data:e,alt:c})}})),D("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},D("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},D(gC,{text:function(){var e; return(e=d())==null?void 0:e.userWinNumberLabel}})),D("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},D("div",{class:U("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"), style:GC({flex:function(){var e,f;return(f=(e=d())==null?void 0:e.userWinNumber)!=null?f:50}})}),D("div",{class:U("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"), style:GC({flex:function(){var e,f;return(f=(e=d())==null?void 0:e.opponentWinNumber)!=null?f:50}})})),D("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},D(gC,{text:function(){var e; return(e=d())==null?void 0:e.opponentWinNumberLabel}}))))},"me"),"fantasy-win-probability-view-model",{props:{data:$A}});var t2b={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},u2b=O(function(a){return D(OC,{data:a.button},{buttonViewModel:function(b){return D(BD,{data:b.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"ne"),v2b=O(function(a){return D("ytd-backstage-locked-post-view-model",{class:U("ytdBackstageLockedPostViewModelHost",a.className)},D("div",{class:"ytdBackstageLockedPostViewModelHeader"},D("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},D(OC,{data:function(){return a.data().authorAvatar}}, {decoratedAvatarViewModel:PR})),D("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},D("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},D(gC,{text:function(){return a.data().authorText}})),D("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},D(gC,{text:function(){return a.data().publishedTimeText}}),D(OC,{data:function(){return a.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(b){return D(sOb,{data:b.data, className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),D("div",{class:"ytdBackstageLockedPostViewModelPostText"},D(gC,{text:function(){return a.data().contentText}})),D(pw,null,D(jw,{when:function(){return a.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return D("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},D(eC,{data:t2b, alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),D(gC,{text:function(){return a.data().lockedText}}))}),D(jw,{when:function(){return a.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return D("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},D("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},D(eC,{data:t2b, alt:""})),D(gC,{text:function(){return a.data().lockedText}}))})),D("div",{class:"ytdBackstageLockedPostViewModelButtons"},D(u2b,{button:function(){return a.data().likeButton}}),D("span",{class:"ytdBackstageLockedPostViewModelButtonCounts", "aria-label":function(){return a.data().voteCountA11y}},D(gC,{text:function(){return a.data().voteCount}})),D(u2b,{button:function(){return a.data().dislikeButton}}),D(u2b,{button:function(){return a.data().commentButton}}),D("span",{class:"ytdBackstageLockedPostViewModelButtonCounts", "aria-label":function(){return a.data().commentCountA11y}},D(gC,{text:function(){return a.data().commentCount}}))))},"oe"); v2b.idomCompat=!0;bB(v2b,"ytd-backstage-locked-post-view-model",{props:{data:$A,className:$A}});kE("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer"); var cW=function(){var a=E.apply(this,arguments)||this;a.darkerPanels=x("web_watch_darker_panels");a.firstLockupNoTopMargin=!x("web_watch_first_lockup_no_top_margin_killswitch");a.useDynamicSecondaryColumns=x("web_watch_responsive_secondary_grid");a.commentsHidePanelButton=!1;a.isWatchGrid=!1;a.continuationShowButton=!1;a.isSearch=!1;a.isConstrainedList=!1;a.isWatch=!1;a.eligibleToSwitchToGrid=!1;a.useBigThumbs=!1;a.isWatchRelatedChipsTopAligned=!1;a.epRestyle=!1;a.hideChipBar=!1;a.isCarouselInFeed= !0;a.topSpacingZero=!1;a.continuationIsInitialLoad=!0;a.notSticky=!0;a.enableRelatedChipsCaching=x("web_watch_item_section_renderer_related_chips_caching");a.mastheadHeight=0;a.isStickyChipBarSetup=!1;a.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};a.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return a}; k(cW,E);g=cW.prototype;g.updateLockupContainerTypes=function(a){if(this.eligibleToSwitchToGrid){var b;(b=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||b.forEach(function(c){c.containerType=a})}}; g.contentsChanged=function(){var a;if(this.enableRelatedChipsCaching&&(a=this.data)!=null&&a.contents){var b,c;a=z((b=this.data.header)==null?void 0:(c=b.relatedChipCloudRenderer)==null?void 0:c.content,Arb);if(a!=null&&a.chips)for(b=l(a.chips),c=b.next();!c.done;c=b.next()){c=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",c.value);var d=a=void 0;if(((a=c)==null?0:a.loadCached)&&((d=c)==null||!d.contents)){c.contents=this.data.contents;break}}}}; g.getItemsPath=function(){return"data.contents"}; g.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}}; g.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer", relatedChipCloudRenderer:{component:"yt-related-chip-cloud-renderer",properties:{noTopMargin:"[[isWatchRelatedChipsTopAligned]]"}},chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup", force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]",componentGap:"[[componentGap]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:{component:"ytd-ad-slot-renderer", properties:{thumbnailWidthString:"[[thumbnailWidth]]"}},backgroundPromoRenderer:"ytd-background-promo-renderer",backstageLockedPostViewModel:"ytd-backstage-locked-post-view-model",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer", params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:{component:"ytd-channel-featured-content-renderer",properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",lockupContainerType:"[[lockupContainerType]]"}},channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[useCompactChannelAvatar]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer", chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},commentFilterContextViewModel:{component:"yt-comment-filter-context-view-model"},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer", compactPlaylistRenderer:"ytd-compact-playlist-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer", didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model", fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",eduCardViewModel:"yt-edu-card-view-model",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer", handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer", infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",labsItemRenderer:"ytd-labs-item-renderer",linearLayoutViewModel:"yt-linear-layout-view-model",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}}, miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer", officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer", productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]", isChannel:"[[isChannel]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer", sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:{component:"yt-section-header-view-model",properties:{className:"[[is]]"},params:{disableHorizontalPadding:!0,disableVerticalPadding:!0}},settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",properties:{isSearch:"[[isSearch]]",isChannel:"[[isChannel]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer", properties:{isSearch:"[[isSearch]]"}},horizontalShelfViewModel:{component:"horizontal-shelf-view-model"},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer", toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer", redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer", ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",videoOverviewViewModel:"yt-video-overview-view-model", expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"}, learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},reloadContinuationData:{component:"yt-reload-continuation"}}}}}; g.created=function(){}; g.updateStickySetup=function(){this.pageSubtype==="playlist"?this.setupStickyChipBar():this.teardownStickyChipBar()}; g.dispatchChipBarIsSticky=function(){this.isStickyChipBarSetup&&this.ytdReduxBehavior.dispatch(KVa(!this.notSticky))}; g.setupStickyChipBar=function(){var a=this;if(!this.isStickyChipBarSetup){this.isStickyChipBarSetup=!0;document.addEventListener("scroll",It(this,this.updateHeaderState));var b;this.mastheadHeight=((b=document.querySelector("ytd-masthead"))==null?void 0:b.clientHeight)||0;this.updateHeaderCssVariables();window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(c){a.handleIntersect(c)},{rootMargin:"-"+(this.mastheadHeight+1)+"px 0px 0px 0px", threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){a.updateHeaderState();a.updateHeaderCssVariables()}),this.resizeObserver.observe(this.hostElement))}}; g.teardownStickyChipBar=function(){if(this.isStickyChipBarSetup){this.isStickyChipBarSetup=!1;document.removeEventListener("scroll",It(this,this.updateHeaderState));var a;(a=this.intersectionObserver)==null||a.disconnect();var b;(b=this.resizeObserver)==null||b.disconnect()}}; g.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight}; g.handleIntersect=function(a){this.notSticky=a[0].intersectionRatio===1}; g.updateHeaderCssVariables=function(){this.hostElement.style.setProperty("--ytd-item-section-header-width",this.hostElement.clientWidth+"px");this.hostElement.style.setProperty("--ytd-item-section-header-top",this.mastheadHeight+"px")}; g.detached=function(){this.teardownStickyChipBar()}; g.updated=function(a){a.has("data")&&this.isStickyChipBarSetup&&(this.updateHeaderState(),this.updateHeaderCssVariables())}; g.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var a=wt(this.hostElement).querySelector("ytd-comments-header-renderer");a&&(a.hidePanelButton=this.commentsHidePanelButton)}}; g.onRetrieveLocation=function(a,b){this.containsComments()&&(this.firstCommentsLoaded=b.hasComments=!0)}; g.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"}; g.onLoadReloadContinuation=function(a,b){var c=this;a.stopPropagation();this.isReloading=!0;Gt(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(d){var e=Fn().resolve(fE);d=b(d);e.postData(d).then(function(f){c.onReloadContinuationData(f)})}})}; g.onReloadContinuationData=function(a){if(a=this.get("response.continuationContents.itemSectionContinuation",a)||this.get("response.contents.itemSectionRenderer",a)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",a)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",a))this.set("data.contents",a.contents||a.results),a.header&&this.set("data.header",a.header),this.set("data.continuations", a.continuations||[]);this.isReloading=!1}; g.computeContentsClass=function(a){return a?"reloading":""}; g.computeSectionIdentifier=function(a){return a==null?void 0:a.sectionIdentifier}; g.computeFitContainer=function(a){return(a==null?void 0:a.sectionIdentifier)==="youchat-item-section"}; g.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1}; g.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading}; g.computeHasDestinationShelfRenderer=function(a){var b,c;return!!(a==null?0:(b=a.contents)==null?0:(c=b[0])==null?0:c.destinationShelfRenderer)}; g.computeHasSectionGroupViewModel=function(a){var b,c;return!!(a==null?0:(b=a.contents)==null?0:(c=b[0])==null?0:c.sectionGroupViewModel)}; g.computeHasQrCodeRenderer=function(a){var b,c;return!!(a==null?0:(b=a.contents)==null?0:(c=b[0])==null?0:c.qrCodeRenderer)}; g.computeStaticCommentsHeader=function(a){return a&&this.containsComments()}; g.computeEpRestyle=function(a){return a&&this.containsComments()}; g.computeIsContinuationCommentSection=function(a){return(a==null?void 0:a.targetId)==="shorts-engagement-panel-comments-section"||(a==null?void 0:a.targetId)==="comments-section"||(a==null?void 0:a.targetId)==="engagement-panel-comments-section"}; g.computeSuppressPaddingDisclaimer=function(){var a,b,c,d;return!!((a=this.data)==null?0:(b=a.contents)==null?0:(c=b[0])==null?0:(d=c.productListHeaderRenderer)==null?0:d.suppressPaddingDisclaimer)}; g.computeHeaderStyle=function(a){switch(a==null?void 0:a.headerStyle){case"ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return"";}}; g.dataChanged=function(){this.firstCommentsLoaded=!1}; g.observeDataContentsLength=function(){var a,b;((a=this.data)==null?0:(b=a.contents)==null?0:b.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0}; g.onYtDismissibleItemDismissedChange=function(a){this._setItemDismissed(a.type==="yt-dismissible-item-dismissed")}; g.triggerContinuations=function(){for(var a=wt(this.hostElement).querySelector("#continuations").children,b=0;b1:!1}}, isChannel:{configurable:!0,enumerable:!0,get:function(){return this.pageSubtype==="channels"}}, componentGap:{configurable:!0,enumerable:!0,get:function(){if(!x("web_watch_lockup_gap_killswitch"))return this.isWatch?8:void 0}}, hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch}}, thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var a=ml("web_watch_compact_thumbnail_width_string")||"168px";return""+(this.isSearch?"50%":this.isWatch?a:"246px")}}, thumbnailTargetWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&this.containerWidth?this.containerWidth/2:void 0}}, sizing:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?"STANDARD":this.isWatch?"COMPACT":"STANDARD"}}, lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}}, useCompactChannelAvatar:{configurable:!0,enumerable:!0,get:function(){return this.engagementPanel?!0:this.isWatch}}, isPlaylist:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return!!((a=this.data)==null?0:(b=a.contents)==null?0:(c=b[0])==null?0:c.playlistVideoListRenderer)}}, isClipList:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d,e,f,h;return!!((a=this.data)==null?0:(b=a.contents)==null?0:(c=b[0])==null?0:(d=c.shelfRenderer)==null?0:(e=d.content)==null?0:(f=e.gridRenderer)==null?0:(h=f.targetId)==null?0:h.includes("browse-feedFEclips"))}}, isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return!!((a=this.data)==null?0:(b=a.contents)==null?0:(c=b[0])==null?0:c.playlistVideoRenderer)}}, isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return!!((a=this.data)==null?0:(b=a.contents)==null?0:(c=b[0])==null?0:c.searchFrictionViewModel)}}, lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:ml("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!x("use_modern_typography_on_search")};if(this.isWatch){var a={useInlineContentMetadata:this.useCompactLockup,useRichGridLegacyMargin:this.useBigThumbs,moveLockupOverflowMenuToBottomRight:x("web_watch_move_lockup_overflow_menu")};x("web_watch_next_lockup_focus_effect")&&(a.onFocusEffect={onFocusStyle:"ON_FOCUS_STYLE_BORDER"}); return a}}}, typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&x("use_modern_typography_on_search")}}, useChipBarViewModelHeader:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!((a=this.data)==null?0:(b=a.header)==null?0:b.chipBarViewModel)}}, expFixPlaylistHeader:{configurable:!0,enumerable:!0,get:function(){return x("web_fix_sticky_playlist_header")}}, nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){}, set:function(){}}}); cW.prototype.dataChangedForBinding=cW.prototype.dataChangedForBinding;cW.prototype.continuationShowButtonChanged=cW.prototype.continuationShowButtonChanged;cW.prototype.onYtDismissibleItemDismissedChange=cW.prototype.onYtDismissibleItemDismissedChange;cW.prototype.observeDataContentsLength=cW.prototype.observeDataContentsLength;cW.prototype.dataChanged=cW.prototype.dataChanged;cW.prototype.onServiceRequestCompleted=cW.prototype.onServiceRequestCompleted;cW.prototype.onLoadReloadContinuation=cW.prototype.onLoadReloadContinuation; cW.prototype.onRetrieveLocation=cW.prototype.onRetrieveLocation;cW.prototype.commentsHidePanelButtonChanged=cW.prototype.commentsHidePanelButtonChanged;cW.prototype.dispatchChipBarIsSticky=cW.prototype.dispatchChipBarIsSticky;cW.prototype.updateStickySetup=cW.prototype.updateStickySetup;cW.prototype.contentsChanged=cW.prototype.contentsChanged;cW.prototype.updateLockupContainerTypes=cW.prototype.updateLockupContainerTypes; n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],cW.prototype,"ytActionHandlerBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],cW.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],cW.prototype,"ytRendererstamperBehavior",void 0);n([F(HQ.YtTaskEmitterBehavior),r("design:type",Object)],cW.prototype,"ytTaskEmitterBehavior",void 0);n([F(IQ.YtLazyListBehavior),r("design:type",Object)],cW.prototype,"ytLazyListBehavior",void 0); n([F(NTb.YtNextContinuationBehavior),r("design:type",Object)],cW.prototype,"ytNextContinuationBehavior",void 0);n([F(ZP),r("design:type",Object)],cW.prototype,"ytContinuationHandlerBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],cW.prototype,"ytComponentBehavior",void 0);n([F(kC),r("design:type",Object)],cW.prototype,"ytdReduxBehavior",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],cW.prototype,"darkerPanels",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],cW.prototype,"firstLockupNoTopMargin",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],cW.prototype,"useDynamicSecondaryColumns",void 0);n([M(),r("design:type",Object)],cW.prototype,"data",void 0);n([M(),r("design:type",Boolean)],cW.prototype,"engagementPanel",void 0);n([M(),r("design:type",Object)],cW.prototype,"commentsHidePanelButton",void 0);n([M(),r("design:type",Object)],cW.prototype,"isWatchGrid",void 0); n([M(),r("design:type",Object)],cW.prototype,"continuationShowButton",void 0);n([M({computed:"computeIsContinuationCommentSection(data)"}),r("design:type",Boolean)],cW.prototype,"continuationIsCommentsSection",void 0);n([M({value:!0}),r("design:type",Boolean)],cW.prototype,"autoFill",void 0);n([M(),r("design:type",Boolean)],cW.prototype,"continuationDisablePrescanVisibility",void 0);n([M(),r("design:type",Boolean)],cW.prototype,"isReloading",void 0); n([M(),r("design:type",Object)],cW.prototype,"isSearch",void 0);n([M(),r("design:type",Object)],cW.prototype,"isConstrainedList",void 0);n([M(),r("design:type",Object)],cW.prototype,"isWatch",void 0);n([M(),r("design:type",Object)],cW.prototype,"eligibleToSwitchToGrid",void 0);n([M(),r("design:type",Object)],cW.prototype,"useBigThumbs",void 0);n([M({selector:sR,reflectToAttribute:!0}),r("design:type",Object)],cW.prototype,"isGridViewEnabled",void 0); n([M({selector:function(a){return a!=null&&a.watch?a!=null&&a.watch&&a.watch.isNarrowWatchFeedBigThumbs?1:a.watch.secondaryGridColumns:2}, reflectToAttribute:!0}),r("design:type",Number)],cW.prototype,"secondaryGridColumns",void 0);n([H("isGridViewEnabled","secondaryGridColumns"),M({reflectToAttribute:!0}),r("design:type",Boolean),r("design:paramtypes",[])],cW.prototype,"useCompactLockup",null);n([H("pageSubtype"),r("design:type",Boolean),r("design:paramtypes",[])],cW.prototype,"isChannel",null);n([H("isWatch"),r("design:type",Object),r("design:paramtypes",[])],cW.prototype,"componentGap",null); n([M(),r("design:type",Object)],cW.prototype,"isWatchRelatedChipsTopAligned",void 0);n([M({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),r("design:type",Object)],cW.prototype,"epRestyle",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],cW.prototype,"hideChipBar",void 0);n([H("isWatch"),M({reflectToAttribute:!0}),r("design:type",Boolean),r("design:paramtypes",[])],cW.prototype,"hideShortsShelfHeader",null); n([H("isSearch","isWatch"),r("design:type",String),r("design:paramtypes",[])],cW.prototype,"thumbnailWidth",null);n([H("isSearch","containerWidth"),r("design:type",Object),r("design:paramtypes",[])],cW.prototype,"thumbnailTargetWidth",null);n([H("isSearch","isWatch","useBigThumbs"),r("design:type",String),r("design:paramtypes",[])],cW.prototype,"sizing",null); n([H("isWatch","isGridViewEnabled","useBigThumbs","data"),M({reflectToAttribute:!0}),r("design:type",Number),r("design:paramtypes",[])],cW.prototype,"lockupContainerType",null);n([H("engagementPanel","isWatch"),r("design:type",Boolean),r("design:paramtypes",[])],cW.prototype,"useCompactChannelAvatar",null);n([Lt("lockupContainerType","data"),r("design:type",Function),r("design:paramtypes",[Number]),r("design:returntype")],cW.prototype,"updateLockupContainerTypes",null); n([M({reflectToAttribute:!0}),r("design:type",String)],cW.prototype,"pageSubtype",void 0);n([M(),r("design:type",Number)],cW.prototype,"containerWidth",void 0);n([M(),H("data"),r("design:type",Boolean),r("design:paramtypes",[])],cW.prototype,"isPlaylist",null);n([M(),H("data"),r("design:type",Boolean),r("design:paramtypes",[])],cW.prototype,"isClipList",null);n([M(),r("design:type",Object)],cW.prototype,"isCarouselInFeed",void 0); n([M({reflectToAttribute:!0}),H("data"),r("design:type",Boolean),r("design:paramtypes",[])],cW.prototype,"isPlaylistVideoContainer",null);n([M({reflectToAttribute:!0}),H("data"),r("design:type",Boolean),r("design:paramtypes",[])],cW.prototype,"isSearchFrictionPage",null);n([M({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),r("design:type",Boolean)],cW.prototype,"useHeightHack",void 0); n([M({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),r("design:type",Object)],cW.prototype,"topSpacingZero",void 0);n([M(),r("design:type",Boolean)],cW.prototype,"firstCommentsLoaded",void 0);n([M(),r("design:type",Object)],cW.prototype,"continuationIsInitialLoad",void 0);n([M({reflectToAttribute:!0,readOnly:!0}),r("design:type",Boolean)],cW.prototype,"itemDismissed",void 0); n([M({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),r("design:type",String)],cW.prototype,"sectionIdentifier",void 0);n([M({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),r("design:type",String)],cW.prototype,"fitContainer",void 0);n([M({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),r("design:type",Boolean)],cW.prototype,"hasDestinationShelfRenderer",void 0); n([M({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),r("design:type",Boolean)],cW.prototype,"staticCommentsHeader",void 0);n([M({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),r("design:type",Boolean)],cW.prototype,"hasSectionGroupViewModel",void 0);n([M({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),r("design:type",Boolean)],cW.prototype,"hasQrCodeRenderer",void 0); n([M({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),r("design:type",Boolean)],cW.prototype,"suppressDisclaimerSeparator",void 0);n([M({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),r("design:type",String)],cW.prototype,"headerStyle",void 0);n([H("isSearch","isWatch","useBigThumbs"),r("design:type",Object),r("design:paramtypes",[])],cW.prototype,"lockupExperiments",null); n([H("isSearch"),r("design:type",Boolean),r("design:paramtypes",[])],cW.prototype,"typographyBump",null);n([Tt("#header"),r("design:type",HTMLElement)],cW.prototype,"header",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],cW.prototype,"notSticky",void 0);n([H("data"),M({reflectToAttribute:!0}),r("design:type",Object),r("design:paramtypes",[])],cW.prototype,"useChipBarViewModelHeader",null); n([M({reflectToAttribute:!0}),r("design:type",Boolean),r("design:paramtypes",[])],cW.prototype,"expFixPlaylistHeader",null);n([M({reflectToAttribute:!0}),r("design:type",Object)],cW.prototype,"enableRelatedChipsCaching",void 0);n([cu("data.contents.*"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],cW.prototype,"contentsChanged",null);n([Lt("pageSubtype"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],cW.prototype,"updateStickySetup",null); n([Lt("notSticky"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],cW.prototype,"dispatchChipBarIsSticky",null);n([Lt("commentsHidePanelButton"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],cW.prototype,"commentsHidePanelButtonChanged",null);n([Kt("yt-retrieve-location"),r("design:type",Function),r("design:paramtypes",[CustomEvent,Object]),r("design:returntype")],cW.prototype,"onRetrieveLocation",null); n([Kt("yt-load-reload-continuation"),r("design:type",Function),r("design:paramtypes",[CustomEvent,Function]),r("design:returntype")],cW.prototype,"onLoadReloadContinuation",null);n([Kt("yt-service-request-completed"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],cW.prototype,"onServiceRequestCompleted",null);n([cu("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],cW.prototype,"dataChanged",null); n([cu("data.contents.length"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],cW.prototype,"observeDataContentsLength",null);n([Kt("yt-dismissible-item-dismissed"),Kt("yt-dismissible-item-undismissed"),r("design:type",Function),r("design:paramtypes",[Event]),r("design:returntype")],cW.prototype,"onYtDismissibleItemDismissedChange",null); n([Lt("continuationShowButton"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],cW.prototype,"continuationShowButtonChanged",null);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],cW.prototype,"dataChangedForBinding",null);n([gu({is:"ytd-item-section-renderer",disableElementRegistration:!0})],cW); Tu(cW,"ytd-item-section-renderer",function(){if(EYb!==void 0)return EYb;var a=document.createElement("template");Q(a,"
\n
\n \n \n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return EYb=a},{mode:1});var w2b;var x2b;var dW=function(){return E.apply(this,arguments)||this}; k(dW,E); dW.prototype.onDataChanged=function(){if(this.lastData){var a=this.getFilterClass(this.lastData.status);a&&this.hostElement.classList.remove(a)}var b;(a=this.getFilterClass((b=this.data)==null?void 0:b.status))&&this.hostElement.classList.add(a);a==="selected"?wt(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):wt(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");a==="disabled"?wt(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"): wt(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.lastData=this.data}; dW.prototype.getFilterClass=function(a){switch(a){case"FILTER_STATUS_SELECTED":return"selected";case"FILTER_STATUS_DISABLED":return"disabled";}}; dW.prototype.onDataChanged=dW.prototype.onDataChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],dW.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],dW.prototype,"data",void 0);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],dW.prototype,"onDataChanged",null);n([gu({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],dW); Tu(dW,"ytd-search-filter-renderer",function(){if(x2b!==void 0)return x2b;var a=document.createElement("template");Q(a,"\n
\n \n \n
\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return x2b=a},{mode:2});var eW=function(){return E.apply(this,arguments)||this}; k(eW,E);n([F(Yz.YtRendererBehavior),r("design:type",Object)],eW.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],eW.prototype,"data",void 0);n([gu({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],eW); Tu(eW,"ytd-search-filter-group-renderer",function(){if(w2b!==void 0)return w2b;var a=document.createElement("template");Q(a,"

\n \n

\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return w2b=a},{mode:2});var y2b;var fW=function(){return E.apply(this,arguments)||this}; k(fW,E);fW.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,Rr());this.isCollapsed=!this.isCollapsed}; fW.prototype.navigateToAboutTheseResultsPage=function(){var a=Eb("https://www.youtube.com/howyoutubeworks/product-features/search/");a?Yb(window,a,"_blank"):Xk(Error("Could not get url for 'About These Results' help center"))}; fW.prototype.dataChanged=function(){this.isCollapsed=!0}; fW.prototype.computeShowBottomBorder=function(){var a,b,c;return!!((a=this.data)==null?0:(b=a.button)==null?0:b.toggleButtonRenderer)||!((c=this.data)==null||!c.aboutTheseResultsButton)}; fW.prototype.dataChanged=fW.prototype.dataChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],fW.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],fW.prototype,"data",void 0);n([M({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),r("design:type",Boolean)],fW.prototype,"showBottomBorder",void 0);n([M(),r("design:type",Boolean)],fW.prototype,"renderCollapsibleMenu",void 0);n([M(),r("design:type",Boolean)],fW.prototype,"isCollapsed",void 0); n([cu("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],fW.prototype,"dataChanged",null);n([gu({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],fW); Tu(fW,"ytd-search-sub-menu-renderer",function(){if(y2b!==void 0)return y2b;var a=document.createElement("template");Q(a,"
\n
\n \n \n \n
\n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return y2b=a},{mode:1});var z2b;var A2b;var gW=function(){return E.apply(this,arguments)||this}; k(gW,E);gW.prototype.computeStyle=function(a){return a?a.toLowerCase().replace(/_/g,"-"):""}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],gW.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],gW.prototype,"data",void 0);n([M({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),r("design:type",String)],gW.prototype,"headerStyle",void 0);n([gu({is:"ytd-text-header-renderer",disableElementRegistration:!0})],gW); Tu(gW,"ytd-text-header-renderer",function(){if(A2b!==void 0)return A2b;var a=document.createElement("template");Q(a,"[[getSimpleString(data.title)]]\n");a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return A2b=a},{mode:1});var B2b;var hW=function(){return E.apply(this,arguments)||this}; k(hW,E);n([F(Yz.YtRendererBehavior),r("design:type",Object)],hW.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],hW.prototype,"data",void 0);n([gu({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],hW); Tu(hW,"ytd-minor-moment-header-renderer",function(){if(B2b!==void 0)return B2b;var a=document.createElement("template");Q(a,"\"\"\n\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return B2b=a},{mode:1});var C2b;var iW=function(){return E.apply(this,arguments)||this}; k(iW,E);n([F(Yz.YtRendererBehavior),r("design:type",Object)],iW.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],iW.prototype,"data",void 0);n([gu({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],iW); Tu(iW,"ytd-minor-moment-setting-alert-renderer",function(){if(C2b!==void 0)return C2b;var a=document.createElement("template");Q(a,"\n\n\n\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return C2b=a},{mode:1});var D2b;var E2b;var jW=function(){var a=E.apply(this,arguments)||this;a.booleanSettingById=!1;a.smartDownloadsEnabledVE=Rv(128287);a.smartDownloadsDisabledVE=Rv(128286);a.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return a}; k(jW,E);g=jW.prototype;g.attachSmartDownloadsSettingVes=function(){var a;this.activeVeForLogging||((a=this.data)==null?void 0:a.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(Kz(gz(),this.smartDownloadsEnabledVE),Kz(gz(),this.smartDownloadsDisabledVE))}; g.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();Gt(this.hostElement,"yt-settings-switch-ready")}; g.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())}; g.onSwitchChange=function(a){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(a=mt(a).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(x("kevlar_settings_switch_resolve_command_killswitch")?Fn().resolve(JB).resolveCommand(a,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(a)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))}; g.handleUpdateSettingsSwitch=function(a){(a=z(a,Dmb))&&this.data&&this.data.id===a.id&&this.set("data.enabled",!!a.enabled)}; g.onToggleSettingsSwitch=function(a,b){this.data&&this.data.id===a&&this.set("data.enabled",b!=null?b:!this.data.enabled)}; g.getUserPreference=function(){switch(this.data.id){case"SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==mK.getInstance().getState();case"SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1;}}; g.maybeLogSmartDownloadsSettingVisibility=function(){var a=Tv(),b;a&&((b=this.data)==null?void 0:b.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,vz(a,[this.smartDownloadsEnabledVE]),wz(a,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,vz(a,[this.smartDownloadsDisabledVE]),wz(a,[this.smartDownloadsEnabledVE])))}; g.maybeLogSmartDownloadsSettingClick=function(){var a;((a=this.data)==null?void 0:a.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&iz(gz(),this.activeVeForLogging)}; g.updateDataEnabledFromBinding=function(a){this.set("data.enabled",a.detail.value)}; ba.Object.defineProperties(jW.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var a=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!a&&(a=this.ytRendererBehavior.getSimpleString(this.data.title));return a}}}); jW.prototype.dataChanged=jW.prototype.dataChanged;n([F(kC),r("design:type",Object)],jW.prototype,"ytdReduxBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],jW.prototype,"ytRendererBehavior",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],jW.prototype,"ytActionHandlerBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],jW.prototype,"ytComponentBehavior",void 0);n([M(),r("design:type",Object)],jW.prototype,"data",void 0); n([M({selector:function(a,b){if(Object.keys(a==null?void 0:a.entities).length)switch(b){case"SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return TZa(a.entities);default:return!1;}}, selectorArgs:["data.id"]}),r("design:type",Object)],jW.prototype,"booleanSettingById",void 0);n([M(),r("design:type",Pv)],jW.prototype,"activeVeForLogging",void 0);n([H("data"),r("design:type",Object),r("design:paramtypes",[])],jW.prototype,"toggleAriaLabel",null);n([cu("data"),cu("booleanSettingById"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],jW.prototype,"dataChanged",null);n([gu({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],jW); Tu(jW,"ytd-settings-switch-renderer",function(){if(E2b!==void 0)return E2b;var a=document.createElement("template");Q(a,"\n
\n
\n
\n \n \n \n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return E2b=a},{mode:1});var kW=function(){return E.apply(this,arguments)||this}; k(kW,E);kW.prototype.configureRendererStamper=function(){return{"data.settings":{id:"settings",mapping:{settingsSwitchRenderer:{component:"ytd-settings-switch-renderer",noInjection:!0}}},"data.alerts":{id:"alerts",mapping:{minorMomentSettingAlertRenderer:{component:"ytd-minor-moment-setting-alert-renderer",noInjection:!0}}}}}; ba.Object.defineProperties(kW.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var a=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(a+=" remove-left-margin");this.data.extraBottomSpace&&(a+=" extra-bottom-space");return a}}}); n([F(Yz.YtRendererBehavior),r("design:type",Object)],kW.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],kW.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],kW.prototype,"data",void 0);n([H("data"),r("design:type",Object),r("design:paramtypes",[])],kW.prototype,"contentsClassName",null);n([gu({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],kW); Tu(kW,"ytd-minor-moment-setting-section-renderer",function(){if(D2b!==void 0)return D2b;var a=document.createElement("template");Q(a,"
\n \n \n \n \n \n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return D2b=a},{mode:1});var F2b;var lW=function(){return E.apply(this,arguments)||this}; k(lW,E);n([F(Yz.YtRendererBehavior),r("design:type",Object)],lW.prototype,"ytRendererBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],lW.prototype,"componentBehavior",void 0);n([M(),r("design:type",Object)],lW.prototype,"data",void 0);n([gu({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],lW); Tu(lW,"ytd-empty-product-details-renderer",function(){if(F2b!==void 0)return F2b;var a=document.createElement("template");Q(a,"
\n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return F2b=a},{mode:1});var G2b;var H2b;var mW=function(){var a=E.apply(this,arguments)||this;a.expanded=!0;return a}; k(mW,E);mW.prototype.getBadgeRowClass=function(a,b,c){for(var d=l(this.hostElement.querySelectorAll("yt-img-shadow")),e=d.next();!e.done;e=d.next())e.value.onShow();a=a.selected;return c?a!==-1?a===b?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(a!==void 0?a:0)===b?"badge-line":"badge-hidden"}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],mW.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],mW.prototype,"data",void 0);n([M(),r("design:type",Object)],mW.prototype,"expanded",void 0);n([gu({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],mW); Tu(mW,"ytd-sponsorships-loyalty-badges-renderer",function(){if(H2b!==void 0)return H2b;var a=document.createElement("template");Q(a,"
\n \n \n
\n
\n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return H2b=a},{mode:1});var I2b;var nW=function(){var a=E.apply(this,arguments)||this;a.expanded=!0;return a}; k(nW,E);nW.prototype.getContainerClasses=function(a,b){a=a?"expanded":"collapsed";b&&(a+=" item");return a}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],nW.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],nW.prototype,"data",void 0);n([M(),r("design:type",Object)],nW.prototype,"expanded",void 0);n([gu({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],nW); Tu(nW,"ytd-sponsorships-perk-renderer",function(){if(I2b!==void 0)return I2b;var a=document.createElement("template");Q(a,"
\n
\n
\n \n \n
\n \n \n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return I2b=a},{mode:1});var J2b;var oW=function(){var a=E.apply(this,arguments)||this;a.expanded=!0;return a}; k(oW,E);n([F(Yz.YtRendererBehavior),r("design:type",Object)],oW.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],oW.prototype,"data",void 0);n([M(),r("design:type",Object)],oW.prototype,"expanded",void 0);n([gu({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],oW); Tu(oW,"ytd-sponsorships-perks-renderer",function(){if(J2b!==void 0)return J2b;var a=document.createElement("template");Q(a,"\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return J2b=a},{mode:1});var pW=function(){var a=E.apply(this,arguments)||this;a.isCollapsed=!1;return a}; k(pW,E);pW.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)}; pW.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed}; pW.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var a;this.expandCollapseButton=z((a=this.data)==null?void 0:a.expandButton,TJ)}else{var b;this.expandCollapseButton=z((b=this.data)==null?void 0:b.collapseButton,TJ)}}; pW.prototype.updateExpandCollapseButton=pW.prototype.updateExpandCollapseButton;pW.prototype.onDataChanged=pW.prototype.onDataChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],pW.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],pW.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],pW.prototype,"isCollapsed",void 0);n([M(),r("design:type",Object)],pW.prototype,"expandCollapseButton",void 0); n([cu("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],pW.prototype,"onDataChanged",null);n([cu("data","isCollapsed"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],pW.prototype,"updateExpandCollapseButton",null);n([gu({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],pW); Tu(pW,"ytd-sponsorships-expandable-perks-renderer",function(){if(G2b!==void 0)return G2b;var a=document.createElement("template");Q(a,"
\n \n \n
\n\n
\n\n\n\n\n\n
\n \n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return G2b=a},{mode:1});var K2b;var qW=function(){return E.apply(this,arguments)||this}; k(qW,E);qW.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)}; n([F(mz.YtComponentBehavior),r("design:type",Object)],qW.prototype,"ytComponentBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],qW.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],qW.prototype,"data",void 0);n([gu({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],qW); Tu(qW,"ytd-sponsorships-actionable-message-renderer",function(){if(K2b!==void 0)return K2b;var a=document.createElement("template");Q(a,"\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return K2b=a},{mode:1});var L2b;var rW=function(){return E.apply(this,arguments)||this}; k(rW,E);g=rW.prototype;g.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}}; g.getExpansionIcon=function(a){return a?"COLLAPSE":"EXPAND"}; g.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))}; g.computeMessageContainerStyle=function(a){var b=a.expandableItems?" style-clickable":"";return a.messageContainerStyle?a.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+b:"style-unspecified"+b}; g.isSinglePerk=function(a){return!!a.messageContainerStyle&&(a.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||a.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")}; g.onExpandedChanged=function(){var a=this;if(this.expanded)for(var b=l(this.hostElement.querySelectorAll("yt-img-shadow")),c=b.next();!c.done;c=b.next())c.value.onShow();ms(this,function(){Gt(a.hostElement,"yt-refit")})}; g.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)}; rW.prototype.onDataChanged=rW.prototype.onDataChanged;rW.prototype.onExpandedChanged=rW.prototype.onExpandedChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],rW.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],rW.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],rW.prototype,"data",void 0);n([M({value:!1}),r("design:type",Boolean)],rW.prototype,"expanded",void 0); n([Lt("expanded"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],rW.prototype,"onExpandedChanged",null);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],rW.prototype,"onDataChanged",null);n([gu({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],rW); Tu(rW,"ytd-sponsorships-expandable-message-renderer",function(){if(L2b!==void 0)return L2b;var a=document.createElement("template");Q(a,"
\n \n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return L2b=a},{mode:2});var M2b;var sW=function(){return E.apply(this,arguments)||this}; k(sW,E);sW.prototype.configureRendererStamper=function(){return{"data.endButton":{id:"end-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.bottomButton":{id:"bottom-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}}; sW.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(z(this.data.endButton,TJ).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")}; sW.prototype.onDataChanged=sW.prototype.onDataChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],sW.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],sW.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],sW.prototype,"data",void 0);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],sW.prototype,"onDataChanged",null); n([gu({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],sW); Tu(sW,"ytd-sponsorships-heading-renderer",function(){if(M2b!==void 0)return M2b;var a=document.createElement("template");Q(a,"
\n \n \n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return M2b=a},{mode:1});var N2b;var tW=function(){return E.apply(this,arguments)||this}; k(tW,E);n([M(),r("design:type",Object)],tW.prototype,"data",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],tW.prototype,"ytRendererBehavior",void 0);n([gu({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],tW); Tu(tW,"ytd-sponsorships-links-renderer",function(){if(N2b!==void 0)return N2b;var a=document.createElement("template");Q(a,"\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return N2b=a},{mode:1});var O2b;var uW=function(){return E.apply(this,arguments)||this}; k(uW,E);g=uW.prototype;g.onDataChanged=function(){if(this.data&&this.data.expandableItems){var a;(a=wt(this.hostElement).querySelector("tp-yt-paper-button"))==null||a.setAttribute("role","button")}else{var b;(b=wt(this.hostElement).querySelector("tp-yt-paper-button"))==null||b.removeAttribute("role")}}; g.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))}; g.getExpansionIcon=function(a){return a?"COLLAPSE":"EXPAND"}; g.getTileClasses=function(a){return a?"tile expandable-tile":"tile"}; g.getButtonDisabled=function(a){return a?void 0:""}; uW.prototype.onDataChanged=uW.prototype.onDataChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],uW.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],uW.prototype,"data",void 0);n([M({value:!1}),r("design:type",Boolean)],uW.prototype,"expanded",void 0);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],uW.prototype,"onDataChanged",null);n([gu({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],uW); Tu(uW,"ytd-sponsorships-list-tile-renderer",function(){if(O2b!==void 0)return O2b;var a=document.createElement("template");Q(a,"\n \n
\n \n \n \n
\n \n
\n\n\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return O2b=a},{mode:1});var P2b;var Q2b;var vW=function(){return E.apply(this,arguments)||this}; k(vW,E);vW.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],vW.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],vW.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],vW.prototype,"data",void 0);n([gu({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],vW); Tu(vW,"ytd-sponsorships-promotion-renderer",function(){if(Q2b!==void 0)return Q2b;var a=document.createElement("template");Q(a,"
\n
\n \n \n \n
\n
\n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return Q2b=a},{mode:1});var R2b;var wW=function(){return E.apply(this,arguments)||this}; k(wW,E);wW.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],wW.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],wW.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],wW.prototype,"data",void 0);n([gu({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],wW); Tu(wW,"ytd-sponsorships-purchase-option-renderer",function(){if(R2b!==void 0)return R2b;var a=document.createElement("template");Q(a,"
\n
\n
\n \n \n \n
\n \n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return R2b=a},{mode:1});var S2b;var T2b;var U2b=function(){return E.apply(this,arguments)||this}; k(U2b,E);n([M(),r("design:type",Object)],U2b.prototype,"data",void 0);n([gu({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],U2b); Tu(U2b,"ytd-ypc-offer-promo-renderer",function(){if(T2b!==void 0)return T2b;var a=document.createElement("template");Q(a,"
\n \n
\n
\n \n \n
\n
\n \n \n \n \n
\n
\n
");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return T2b=a},{mode:1});var xW=function(){return E.apply(this,arguments)||this}; k(xW,E);g=xW.prototype; g.configureRendererStamper=function(){return{"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}},"data.expandableMessage":{id:"expandable-message",mapping:{sponsorshipsExpandableMessageRenderer:{component:"ytd-sponsorships-expandable-message-renderer"}}},"data.purchaseOption":{id:"purchase-option",mapping:{sponsorshipsPurchaseOptionRenderer:{component:"ytd-sponsorships-purchase-option-renderer"}}},"data.alternativePurchaseOption":{id:"alternative-purchase-option",mapping:{sponsorshipsPurchaseOptionRenderer:{component:"ytd-sponsorships-purchase-option-renderer"}}}, "data.offerPromoCard":{id:"offer-promo",mapping:{ypcOfferPromoRenderer:{component:"ytd-ypc-offer-promo-renderer"}}}}}; g.expansionCTA=function(a,b){return a&&(b?a.collapseCallToAction:a.expansionCallToAction)}; g.getExpansionIcon=function(a){return a?"COLLAPSE":"EXPAND"}; g.expansionCallToActionTap=function(){var a=this;this.expanded=!this.expanded;ms(this,function(){Gt(a.hostElement,"yt-refit")})}; g.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var a,b=(a=this.data)==null?void 0:a.onVisible;b&&this.ytComponentBehavior.resolveCommand(b)}; g.computeDisplayTitle=function(a){return!(!a||this.titledisplaystatus!=="show")}; g.computeDisplaySeparator=function(){return!1}; g.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0}; xW.prototype.onDataChanged=xW.prototype.onDataChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],xW.prototype,"ytRendererBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],xW.prototype,"ytComponentBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],xW.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],xW.prototype,"data",void 0);n([M({value:!1}),r("design:type",Boolean)],xW.prototype,"expanded",void 0); n([M({value:!1}),r("design:type",Boolean)],xW.prototype,"purchaseButtonClicked",void 0);n([M({reflectToAttribute:!0,value:"show"}),r("design:type",String)],xW.prototype,"titledisplaystatus",void 0);n([M({computed:"computeDisplayTitle(data.title)"}),r("design:type",Boolean)],xW.prototype,"displayTitle",void 0);n([M({computed:"computeDisplaySeparator(data)"}),r("design:type",Boolean)],xW.prototype,"displaySeparator",void 0); n([cu("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],xW.prototype,"onDataChanged",null);n([gu({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],xW); Tu(xW,"ytd-sponsorships-tier-renderer",function(){if(S2b!==void 0)return S2b;var a=document.createElement("template");Q(a,"\n\n\n\n\n\n
\n
\n
\n \n
\n \n
\n
\n \n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return S2b=a},{mode:2});var yW=function(){return E.apply(this,arguments)||this}; k(yW,E); yW.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"},sponsorshipsHeadingRenderer:{component:"ytd-sponsorships-heading-renderer"},sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"},sponsorshipsExpandableMessageRenderer:{component:"ytd-sponsorships-expandable-message-renderer"}}},"data.sidebar":{id:"sidebar",mapping:{sponsorshipsHeadingRenderer:{component:"ytd-sponsorships-heading-renderer"},sponsorshipsActionableMessageRenderer:{component:"ytd-sponsorships-actionable-message-renderer"}, sponsorshipsLinksRenderer:{component:"ytd-sponsorships-links-renderer"},sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}},"data.alert":{id:"alert-renderer",mapping:{sponsorshipsAlertRenderer:{component:"ytd-sponsorships-alert-renderer"}}}}}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],yW.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],yW.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],yW.prototype,"data",void 0);n([gu({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],yW); Tu(yW,"ytd-sponsorships-management-renderer",function(){if(P2b!==void 0)return P2b;var a=document.createElement("template");Q(a,"
\n
\n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return P2b=a},{mode:1});var V2b;var zW=function(){return E.apply(this,arguments)||this}; k(zW,E);n([F(Yz.YtRendererBehavior),r("design:type",Object)],zW.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],zW.prototype,"data",void 0);n([gu({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],zW); Tu(zW,"ytd-open-in-native-app-view-model",function(){if(V2b!==void 0)return V2b;var a=document.createElement("template");Q(a,"\n\n\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return V2b=a},{mode:2});var W2b;var AW=function(){var a=E.apply(this,arguments)||this;a.bigImage=!1;return a}; k(AW,E);ba.Object.defineProperties(AW.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.placeholderImageUrl}}}); n([F(Yz.YtRendererBehavior),r("design:type",Object)],AW.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],AW.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],AW.prototype,"bigImage",void 0);n([H("data"),r("design:type",Object),r("design:paramtypes",[])],AW.prototype,"placeholderImageUrl",null);n([gu({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],AW); Tu(AW,"ytd-empty-product-shelf-renderer",function(){if(W2b!==void 0)return W2b;var a=document.createElement("template");Q(a,"
\n \n \n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return W2b=a},{mode:1});var X2b;var BW=function(){var a=E.apply(this,arguments)||this;a.itemStyle="link-item";a.watchMetadataRefresh=!1;a.skinnyMode=!1;a.metaPanel=!1;a.inStructuredDescription=!1;a.detailedDescriptionOverride=!1;a.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};a.updateOnResizeDebouncer=null;return a}; k(BW,E);g=BW.prototype;g.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()}; g.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{iconSize:16}},menuRenderer:"ytd-menu-renderer"}},"data.emptyProductShelf":{id:"empty-product",mapping:{emptyProductShelfRenderer:{component:"ytd-empty-product-shelf-renderer"}}}}}; g.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()}; g.attachVEs=function(a){a.trackingParams&&Lz(gz(),a.trackingParams)}; g.handleUpdateMerchShelfAction=function(a){var b=this,c=z(a.updateMerchandiseShelfAction.merchandiseShelf,cqb);c&&(c.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){b.attachVEs(c);b.data=c},Number(c.renderDelayMs))):(this.attachVEs(c),this.data=c))}; g.updateOnResize=function(){if(this.scrollContainer!==void 0&&this.scrollContainer.clientWidth!==0&&this.items!==void 0){var a=this.scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-a));this.ytdHorizontalListBehavior.reposition_();var b;switch((b=this.data)==null?void 0:b.shelfType){case"MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var c,d;((c=this.data)==null?void 0: (d=c.items)==null?void 0:d.length)===1?this.itemStyle="cta-item":this.itemStyle=a>=740?"large-item":"small-item";}}}; g.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=Ar(this.updateOnResizeDebouncer,Mq.after(100),this.updateOnResize)}; BW.prototype.debouncedUpdateOnResize=BW.prototype.debouncedUpdateOnResize;BW.prototype.dataChanged=BW.prototype.dataChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],BW.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],BW.prototype,"ytRendererstamperBehavior",void 0);n([F(JQ.YtdHorizontalListBehavior),r("design:type",Object)],BW.prototype,"ytdHorizontalListBehavior",void 0); n([F(mz.YtComponentBehavior),r("design:type",Object)],BW.prototype,"ytComponentBehavior",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],BW.prototype,"ytActionHandlerBehavior",void 0);n([M(),r("design:type",Object)],BW.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],BW.prototype,"itemStyle",void 0);n([M({value:6}),r("design:type",Number)],BW.prototype,"initialCount",void 0); n([M({value:"data.items"}),r("design:type",String)],BW.prototype,"itemsPath",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],BW.prototype,"watchMetadataRefresh",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],BW.prototype,"skinnyMode",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],BW.prototype,"metaPanel",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],BW.prototype,"inStructuredDescription",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],BW.prototype,"detailedDescriptionOverride",void 0);n([M({reflectToAttribute:!0,value:function(){return x("web_watch_no_dividers")}}), r("design:type",Boolean)],BW.prototype,"noDivider",void 0);n([Tt("#items"),r("design:type",HTMLDivElement)],BW.prototype,"items",void 0);n([Tt("#scroll-container"),r("design:type",HTMLDivElement)],BW.prototype,"scrollContainer",void 0);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],BW.prototype,"dataChanged",null);n([Kt("iron-resize"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],BW.prototype,"debouncedUpdateOnResize",null); n([gu({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],BW); Tu(BW,"ytd-merch-shelf-renderer",function(){if(X2b!==void 0)return X2b;var a=document.createElement("template");Q(a,"
\n
\n \n \n
\n
\n
\n
\n
\n \n
\n
\n
\n \n \n
\n
\n
\n \n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return X2b=a},{mode:2});var Y2b;var Z2b=function(a){this.innerTubeTransportService=a},$2b=function(a,b,c){var d,e; return ra(function(f){if(f.nextAddress==1){if(!b.length&&!c.length)return f.return({});d={};b.length&&(d.ids=b);c.length&&(d.continuations=c);return f.yield(BK(a.innerTubeTransportService,d,"/youtubei/v1/upload/feedback"),2)}e=f.yieldResult;return f.return(e)})}; Z2b[An]=[DK];var a3b=new Bn("UPLOADS_FEEDBACK_SERVICE_TOKEN"),b3b=new Bn("UPLOAD_FEEDBACK_POLLER_SERVICE_TOKEN");var c3b=[2E3,5E3,15E3,3E4],d3b=function(a,b){this.feedbackService=a;this.JSC$14261_commandHandler=b;this.pollingMap=new Map;this.pollJobId=0},CW=function(a,b){a.pollingMap.delete(b); a.pollingMap.size===0&&(bj.cancelJob(a.pollJobId),a.pollJobId=0)},f3b=function(a){if(!a.pollJobId&&a.pollingMap.size!==0){for(var b=Infinity,c=l(a.pollingMap.values()),d=c.next();!d.done;d=c.next())b=Math.min(b,d.value.nextPollTimeMs); b=Math.max(0,b-Date.now());a.pollJobId=Hl(0,function(){a.pollJobId=0;e3b(a)},1,b)}},e3b=function(a){var b,c,d; ra(function(e){switch(e.nextAddress){case 1:b=Date.now();c=Array.from(a.pollingMap.values()).filter(function(f){return f.nextPollTimeMs<=b}); if(!c.length)return f3b(a),e.return();e.setCatchFinallyBlocks(2);return e.yield($2b(a.feedbackService,c.map(function(f){return{videoId:f.videoId,frontendUploadId:f.frontendUploadId}}),c.map(function(f){return f.continuationToken})),4); case 4:d=e.yieldResult;g3b(a,d);c.forEach(function(f){f.errorCount=0}); e.leaveTryBlock(3);break;case 2:e.enterCatchBlock(),c.forEach(function(f){f.errorCount++;if(f.errorCount>=5)CW(a,f.videoId);else{var h=c3b[f.errorCount-1];f.nextPollTimeMs=Date.now()+h}}); case 3:f3b(a),e.jumpToEnd();}})},g3b=function(a,b){for(var c=[],d=l(b.continuationContents||[]),e=d.next();!e.done;e=d.next())(e=z(e.value,Zsb))&&c.push(e); b=l(b.contents||[]);for(d=b.next();!d.done;d=b.next())d=d.value,d.uploadFeedbackItem&&c.push(d.uploadFeedbackItem);c=l(c);for(b=c.next();!b.done;b=c.next()){var f=b.value;b=void 0;if(f&&(b=f.id)!=null&&b.videoId&&(d=f.id.videoId,b=a.pollingMap.get(d))){a:{e=l(f.contents||[]);for(var h=e.next();!h.done;h=e.next()){h=h.value;var m=void 0;if((m=h.uploadStatus)==null?0:m.uploadStatus){e=h.uploadStatus.uploadStatus;break a}}e="UNKNOWN"}a:{f=l(f.continuations||[]);for(h=f.next();!h.done;h=f.next())if(h= h.value,m=void 0,(m=h.uploadFeedbackRefreshContinuation)==null?0:m.continuation){f={continuationToken:h.uploadFeedbackRefreshContinuation.continuation,nextPollTimeMs:h.uploadFeedbackRefreshContinuation.continueInMs||2E3};break a}f={continuationToken:void 0,nextPollTimeMs:Infinity}}h=f;f=h.continuationToken;h=h.nextPollTimeMs;b.continuationToken=f;b.nextPollTimeMs=Date.now()+h;if(e!=="UNKNOWN")switch(d=a,e){case"SUCCESS":case"VIEWABLE":b.onSuccess&&d.JSC$14261_commandHandler.resolveCommand(b.onSuccess); Ws.getInstance().triggerAction("yt-upload-poller-success-action",b.videoId);CW(d,b.videoId);break;case"FAILED":case"REJECTED":b.onFailed&&d.JSC$14261_commandHandler.resolveCommand(b.onFailed);CW(d,b.videoId);break;case"DELETED":case"TIMEOUT":CW(d,b.videoId);}else f||(b.onFailed&&a.JSC$14261_commandHandler.resolveCommand(b.onFailed),CW(a,d))}}}; d3b[An]=[a3b,JB];var h3b=Fn();h3b.addProvider({provide:a3b,useClass:Z2b});h3b.addProvider({provide:b3b,useClass:d3b});var DW=function(){var a=E.apply(this,arguments)||this;a.actionMap={"yt-add-backstage-comment-action":"addBackstageCommentAction","yt-add-backstage-post-action":"addBackstagePostAction","yt-add-backstage-reply-action":"addBackstageReplyAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction","yt-remove-comment-action":"removeCommentAction","yt-replace-backstage-comment-action":"replaceBackstageCommentAction","yt-replace-backstage-post-action":"replaceBackstagePostAction", "yt-replace-backstage-reply-action":"replaceBackstageReplyAction","yt-get-upload-feedback-command":"getUploadFeedbackCommand","yt-upload-poller-success-action":"uploadPollerSuccessAction"};return a}; k(DW,E);g=DW.prototype;g.attached=function(){this.uploadFeedbackPollerService=Fn().resolve(b3b)}; g.addBackstagePostAction=function(a){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(a=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",a))&&(this.get("header.commentsHeaderRenderer.zeroStateMessage.backstageZeroStateRenderer",this.data)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{}),this.get("header.commentsHeaderRenderer.schedulingZeroStateMessage.postSchedulingZeroStateRenderer",this.data)&&this.set("data.header.commentsHeaderRenderer.schedulingZeroStateMessage", {}),this.get("data.contents")?this.splice("data.contents",0,0,{backstagePostThreadRenderer:a}):this.set("data.contents",[{backstagePostThreadRenderer:a}]))}; g.addBackstageCommentAction=function(a){var b=this.get("addBackstageCommentAction.parentId",a);a=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",a);if(b&&a){b=this.postIdToIndices(b);for(var c=0;c=0){var h=this.get("data.contents."+e+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+f+".commentThreadRenderer.replies.commentRepliesRenderer"); h&&(a.replies={commentRepliesRenderer:h});this.splice("data.contents."+e+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",f,1,{commentThreadRenderer:a})}f=this.commentIdToIndex(b,e,!0);if(f>=0){if(h=this.get("data.contents."+e+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(f+".commentThreadRenderer.replies.commentRepliesRenderer")))a.replies={commentRepliesRenderer:h};this.splice("data.contents."+e+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents", f,1,{commentThreadRenderer:a})}}}}; g.replaceBackstagePostAction=function(a){var b=this.get("replaceBackstagePostAction.itemId",a);if(b){b=this.postIdToIndices(b);for(var c=0;c=0){var h="data.contents."+e+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+f;f=h+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";h+=".commentThreadRenderer.replies";b==void 0?(this.set(h,{}),this.set(f,!1)):(this.set(h,{commentRepliesRenderer:{teaserContents:[{commentRenderer:b}]}}), this.set(h+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(f,!0))}f=this.commentIdToIndex(a,e,!0);f>=0&&(f="data.contents."+e+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+f,e=f+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",f+=".commentThreadRenderer.replies",b==void 0?(this.set(f,{}),this.set(e,!1)):(this.set(f,{commentRepliesRenderer:{teaserContents:[{commentRenderer:b}]}}),this.set(e,!0)))}}}; g.removeFromStream=function(a,b){if(b){b=this.postIdToIndices(b);for(var c=0;c=0&&this.splice("data.contents."+d+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",e,1);e=this.commentIdToIndex(a,d,!0);e>=0&&this.splice("data.contents."+d+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",e,1);d="data.contents."+d+".backstagePostThreadRenderer.post.backstagePostRenderer"; e=d+".backstageAttachment.pollRenderer.votedCommentId";this.get(e)===a&&(this.set(e,null),this.set(d+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(b=this.postIdToIndices(a).reverse(),c=0;c\n");a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return Y2b=a}, {mode:1});var i3b;var j3b;var k3b;var EW=function(){return E.apply(this,arguments)||this}; k(EW,E);g=EW.prototype;g.computeHeartButtonStyle=function(a){return(a==null?0:a.styleType)?a.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"}; g.onYtButtonTap=function(){if(this.data.isEnabled){var a=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(a=this.getEndpoint(a))&&Fn().resolve(JB).resolveCommand(a,{form:{element:this.hostElement}})}else(a=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(a)}; g.toggle=function(a){this.set("data.isHearted",a!==void 0?a:!this.data.isHearted)}; g.getEndpoint=function(a){var b,c=(b=this.data)==null?void 0:b.heartEndpoint,d;b=(d=this.data)==null?void 0:d.unheartEndpoint;if(c&&b)return a?b:c}; g.computeButtonAccessibility=function(a,b){var c,d,e=a==null?void 0:(c=a.heartedAccessibility)==null?void 0:(d=c.accessibilityData)==null?void 0:d.label,f,h;a=a==null?void 0:(f=a.unheartedAccessibility)==null?void 0:(h=f.accessibilityData)==null?void 0:h.label;return b?e:a}; ba.Object.defineProperties(EW.prototype,{heartTooltip:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.data.isHearted?this.data.heartedTooltip:this.data.unheartedTooltip}}, iconFilled:{configurable:!0,enumerable:!0,get:function(){var a;return x("kevlar_system_icons")&&!((a=this.data)==null||!a.isHearted)}}}); EW.prototype.onYtButtonTap=EW.prototype.onYtButtonTap;n([F(Yz.YtRendererBehavior),r("design:type",Object)],EW.prototype,"ytRendererBehavior",void 0);n([F(pB),r("design:type",Object)],EW.prototype,"ytdOpenPopupBehavior",void 0);n([M(),r("design:type",Object)],EW.prototype,"data",void 0);n([H("data.isHearted"),r("design:type",Object),r("design:paramtypes",[])],EW.prototype,"heartTooltip",null);n([H("data.isHearted"),r("design:type",Boolean),r("design:paramtypes",[])],EW.prototype,"iconFilled",null); n([M({computed:"computeButtonAccessibility(data,data.isHearted)"}),r("design:type",String)],EW.prototype,"buttonAccessibility",void 0);n([M({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),r("design:type",String)],EW.prototype,"heartButtonStyle",void 0);n([Kt("tap"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],EW.prototype,"onYtButtonTap",null);n([gu({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],EW); Tu(EW,"ytd-creator-heart-renderer",function(){if(k3b!==void 0)return k3b;var a=document.createElement("template");Q(a,"\n \n \n\n[[heartTooltip]]\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return k3b=a},{mode:1});var FW=function(){var a=E.apply(this,arguments)||this;a.hasCreatorReply=!1;a.buttonOverrides={size:"S",iconPosition:"icon-only"};a.replyButtonOverrides={size:"S",type:"text"};a.forceIconButton=!x("web_modern_buttons");a.modern=x("web_modern_buttons");a.buttonTooltipPosition="bottom";a.systemIcons=x("kevlar_system_icons");a.replyDialog=null;return a}; k(FW,E);g=FW.prototype; g.configureRendererStamper=function(){return{"data.creatorHeart":{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}},replyButtonBeginning:{id:"reply-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}},replyButtonEnd:{id:"reply-button-end",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{forceIconButton:!0},properties:{buttonTooltipPosition:"[[buttonTooltipPosition]]",overrides:"[[replyButtonOverrides]]",forceIconButton:"[[forceIconButton]]"}}}}, "data.shareButton":{id:"share-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{buttonTooltipPosition:"[[buttonTooltipPosition]]"}}}}}}; g.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null}; g.dataChange=function(){this.replyDialog&&wt(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var a,b,c;this.isLiked=this.systemIcons&&!!((a=this.data)==null?0:(b=a.likeButton)==null?0:(c=b.toggleButtonRenderer)==null?0:c.isToggled)}; g.computeShowVoteCountBeginning=function(a,b){return a===void 0||b===void 0?!0:a.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!b&&this.ytRendererBehavior.getSimpleString(b)!=="0"}; g.computeShowVoteCountEnd=function(a,b){return a===void 0||b===void 0?!0:a.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!b&&this.ytRendererBehavior.getSimpleString(b)!=="0"}; g.computeShowCommentCount=function(a,b){return a===void 0||b===void 0?!0:a.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!b&&this.ytRendererBehavior.getSimpleString(b)!=="0"}; g.hideReplyDialog=function(){this.replyDialogElement.hidden=!0}; g.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()}; g.showReplyDialog=function(a){a&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||wt(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=a,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())}; g.onYtCommentboxDismiss=function(){this.hideReplyDialog()}; g.onRequestSent=function(a){a=l(a.detail);for(var b=a.next();!b.done;b=a.next())(b=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",b.value))&&this.showReplyDialog(b)}; g.onYtNavigate=function(a){var b,c;(a=(b=z(a.detail.endpoint,kqb))==null?void 0:(c=b.dialog)==null?void 0:c.commentReplyDialogRenderer)&&this.showReplyDialog(a)}; g.onYtServiceRequestSent=function(a,b){a.stopPropagation();if(b.actions)for(a=0;a
\n \n \n \n \n \n \n \n
\n \n \n \n \n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return j3b=a},{mode:1});var l3b;var GW=function(){var a=E.apply(this,arguments)||this;a.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:x("enable_web_delhi_icons")};a.replyButtonOverrides={size:"S",type:"text"};return a}; k(GW,E);g=GW.prototype;g.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}}; g.detached=function(){this.replyBox&&this.replyBox.remove()}; g.showReplyDialog=function(a){if(a){var b=this.replyBox;b||(b=document.createElement("ytd-comment-reply-dialog-renderer"),b.id="replybox",wt(this.replyDialogDiv).appendChild(b));b.data=a;this.replyDialogDiv.hidden=!1;b.openDialog()}}; g.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0}; g.handleReplyButtonClick=function(){if(this.isSuperfanOnlyCommentsEligibleUser){var a,b=z((a=this.toolbarSurface)==null?void 0:a.superfanOnlySnackbarCommand,ny);b&&Gt(this.hostElement,"yt-show-superfan-only-snackbar",{command:b})}else this.isSubsOnlyCommentsEligibleUser&&(a=z((b=this.toolbarSurface)==null?void 0:b.subscribersOnlyDisclaimerSnackbarCommand,ny))&&Gt(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:a})}; g.onYtServiceRequestSent=function(a){a.stopPropagation();a.target===this.heartButton&&this.toggleHeartState()}; g.updateToolbarState=function(a){var b;(b=this.toolbarState)!=null&&b.key&&this.ytdReduxBehavior.dispatch(eA("engagementToolbarStateEntityPayload",this.toolbarState.key,a))}; g.onYtToggleButton=function(a){var b=a.detail;a=a.target;if(a.id==="like-button"||a.id==="dislike-button"){var c="TOOLBAR_LIKE_STATE_INDIFFERENT";a.id==="like-button"?c=b.toggled?"TOOLBAR_LIKE_STATE_LIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT":a.id==="dislike-button"&&(c=b.toggled?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT");this.updateToolbarState({likeState:c})}}; g.toggleHeartState=function(){var a,b=((a=this.toolbarState)==null?void 0:a.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE";this.updateToolbarState({heartState:b})}; ba.Object.defineProperties(GW.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return(((a=this.toolbarState)==null?void 0:a.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(b=this.toolbarData)==null?void 0:b.likeCountLiked:(c=this.toolbarData)==null?void 0:c.likeCountNotliked)||""}}, showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}}, isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.toolbarSurface)==null?void 0:a.commentDisabledActionCommand)!==void 0}}, isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.toolbarSurface)==null?void 0:a.subscribersOnlySnackbarCommand)!==void 0}}, isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.toolbarSurface)==null?void 0:a.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}}, isSuperfanOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.toolbarSurface)==null?void 0:a.superfanOnlySnackbarCommand)!==void 0}}, hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.toolbarSurface)==null?void 0:a.prepareAccountCommand)!==void 0}}, likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var a,b=z((a=this.toolbarSurface)==null?void 0:a.prepareAccountCommand,ny),c,d,e,f,h,m,p,q,t;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((c=this.toolbarSharedData)==null||!c.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((d=this.toolbarState)==null?void 0:d.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled? void 0:b!=null?b:z((e=this.toolbarSurface)==null?void 0:e.likeCommand,ny),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:b!=null?b:z((f=this.toolbarSurface)==null?void 0:f.unlikeCommand,ny),defaultCommand:this.isVisiblyDisabled?z((h=this.toolbarSurface)==null?void 0:h.commentDisabledActionCommand,ny):void 0,defaultTooltip:(m=this.toolbarData)==null?void 0:m.likeInactiveTooltip,toggledTooltip:(p=this.toolbarData)==null?void 0:p.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled? "STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(q=this.toolbarData)==null?void 0:q.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(t=this.toolbarSharedData)==null?void 0:t.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}}, dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var a,b=z((a=this.toolbarSurface)==null?void 0:a.prepareAccountCommand,ny),c,d,e,f,h,m,p,q,t,u;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((c=this.toolbarSharedData)==null||!c.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((d=this.toolbarState)==null?void 0:d.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"}, defaultServiceEndpoint:this.isVisiblyDisabled?void 0:b!=null?b:z((e=this.toolbarSurface)==null?void 0:e.dislikeCommand,ny),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:b!=null?b:z((f=this.toolbarSurface)==null?void 0:f.undislikeCommand,ny),defaultCommand:this.isVisiblyDisabled?z((h=this.toolbarSurface)==null?void 0:h.commentDisabledActionCommand,ny):void 0,defaultTooltip:(m=this.toolbarData)==null?void 0:m.dislikeInactiveTooltip,toggledTooltip:(p=this.toolbarData)==null?void 0:p.dislikeActiveTooltip, toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(q=this.toolbarSharedData)==null?void 0:q.dislikeReplyButtonA11y:(t=this.toolbarSharedData)==null?void 0:t.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(u=this.toolbarSharedData)==null?void 0:u.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}}, creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var a,b,c;if(((a=this.toolbarState)==null?void 0:a.heartState)!==void 0&&((b=this.toolbarState)==null?void 0:b.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((c=this.toolbarState)==null?void 0:c.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var d,e,f,h,m,p,q,t,u,v,w,y,A,C;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(d=this.toolbarData)==null?void 0:d.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"}, isHearted:((e=this.toolbarState)==null?void 0:e.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((f=this.toolbarState)==null?void 0:f.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((h=this.toolbarState)==null?void 0:h.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((m=this.toolbarState)==null?void 0:m.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:z((p=this.toolbarSurface)==null?void 0:p.heartCommand, ny),unheartEndpoint:this.isVisiblyDisabled?void 0:z((q=this.toolbarSurface)==null?void 0:q.unheartCommand,ny),disabledEndpoint:this.isVisiblyDisabled?z((t=this.toolbarSurface)==null?void 0:t.commentDisabledActionCommand,ny):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(u=this.toolbarData)==null?void 0:u.heartActiveTooltip,unheartedTooltip:(v=this.toolbarData)==null?void 0:v.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((w= this.toolbarState)==null?void 0:w.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(y=this.toolbarSharedData)==null?void 0:y.unheartButtonA11y:(A=this.toolbarSharedData)==null?void 0:A.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(C=this.toolbarSharedData)==null?void 0:C.heartButtonA11y}}}}}}}, hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.toolbarSurface)==null||!a.replyCommand)}}, replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.commentStrings)!=null&&a.replyButtonText){var b,c,d,e;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(b=this.commentStrings)==null?void 0:b.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:z((c=this.toolbarSurface)==null?void 0:c.replyCommand,ny),command:this.isVisiblyDisabled? z((d=this.toolbarSurface)==null?void 0:d.commentDisabledActionCommand,ny):this.isSubsOnlyCommentsIneligibleUser?z((e=this.toolbarSurface)==null?void 0:e.subscribersOnlySnackbarCommand,ny):void 0}}}}}); GW.prototype.onYtToggleButton=GW.prototype.onYtToggleButton;GW.prototype.onYtServiceRequestSent=GW.prototype.onYtServiceRequestSent;GW.prototype.hideReplyDialogDiv=GW.prototype.hideReplyDialogDiv;n([M(),r("design:type",Object)],GW.prototype,"commentStrings",void 0);n([M(),r("design:type",Boolean)],GW.prototype,"isReply",void 0);n([M(),r("design:type",Object)],GW.prototype,"toolbarData",void 0);n([M(),r("design:type",Object)],GW.prototype,"toolbarSharedData",void 0); n([M(),r("design:type",String)],GW.prototype,"toolbarStateKey",void 0);n([M(),r("design:type",String)],GW.prototype,"toolbarSurfaceKey",void 0);n([F(kC),r("design:type",Object)],GW.prototype,"ytdReduxBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],GW.prototype,"ytComponentBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],GW.prototype,"ytRendererstamperBehavior",void 0);n([F(pB),r("design:type",Object)],GW.prototype,"ytdOpenPopupBehavior",void 0); n([Tt("#reply-dialog"),r("design:type",HTMLElement)],GW.prototype,"replyDialogDiv",void 0);n([Tt("#replybox"),r("design:type",Object)],GW.prototype,"replyBox",void 0);n([Tt("ytd-creator-heart-renderer"),r("design:type",Object)],GW.prototype,"heartButton",void 0);n([M({selector:function(a,b){return yA(a.entities,"engagementToolbarStateEntityPayload",b)}, selectorArgs:["toolbarStateKey"]}),r("design:type",Object)],GW.prototype,"toolbarState",void 0);n([M({selector:pPb,selectorArgs:["toolbarSurfaceKey"]}),r("design:type",Object)],GW.prototype,"toolbarSurface",void 0);n([M(),r("design:type",Object)],GW.prototype,"buttonOverrides",void 0);n([Kt("yt-commentbox-dismiss"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],GW.prototype,"hideReplyDialogDiv",null); n([H("toolbarData","toolbarState"),r("design:type",String),r("design:paramtypes",[])],GW.prototype,"likeCount",null);n([H("likeCount"),r("design:type",Boolean),r("design:paramtypes",[])],GW.prototype,"showLikeCount",null);n([H("toolbarSurface"),r("design:type",Boolean),r("design:paramtypes",[])],GW.prototype,"isVisiblyDisabled",null);n([H("toolbarSurface"),r("design:type",Boolean),r("design:paramtypes",[])],GW.prototype,"isSubsOnlyCommentsIneligibleUser",null); n([H("toolbarSurface"),r("design:type",Boolean),r("design:paramtypes",[])],GW.prototype,"isSubsOnlyCommentsEligibleUser",null);n([H("toolbarSurface"),r("design:type",Boolean),r("design:paramtypes",[])],GW.prototype,"isSuperfanOnlyCommentsEligibleUser",null);n([H("toolbarSurface"),r("design:type",Boolean),r("design:paramtypes",[])],GW.prototype,"hasPrepareAccountCommand",null); n([H("toolbarData","toolbarState","toolbarSurface"),r("design:type",Object),r("design:paramtypes",[])],GW.prototype,"likeToggleButtonRenderer",null);n([H("isReply","toolbarData","toolbarState","toolbarSurface"),r("design:type",Object),r("design:paramtypes",[])],GW.prototype,"dislikeToggleButtonRenderer",null);n([H("toolbarData","toolbarState","toolbarSurface"),r("design:type",Object),r("design:paramtypes",[])],GW.prototype,"creatorHeartSupportedRenderer",null); n([H("toolbarSurface"),r("design:type",Boolean),r("design:paramtypes",[])],GW.prototype,"hasReplyCommand",null);n([H("toolbarSurface","commentStrings","isVisiblyDisabled"),r("design:type",Object),r("design:paramtypes",[])],GW.prototype,"replyButtonRenderer",null);n([M(),r("design:type",Object)],GW.prototype,"replyButtonOverrides",void 0); n([Kt("yt-service-request-sent"),r("design:type",Function),r("design:paramtypes",[CustomEvent,mB]),r("design:returntype")],GW.prototype,"onYtServiceRequestSent",null);n([Kt("yt-toggle-button"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],GW.prototype,"onYtToggleButton",null);n([gu({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],GW); Tu(GW,"ytd-comment-engagement-bar",function(){if(l3b!==void 0)return l3b;var a=document.createElement("template");Q(a,"
\n \n \n \n \n \n \n \n \n
\n \n \n
\n\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return l3b=a},{mode:1});var m3b;var HW=function(){return E.apply(this,arguments)||this}; k(HW,E);n([F(Yz.YtRendererBehavior),r("design:type",Object)],HW.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],HW.prototype,"data",void 0);n([gu({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],HW); Tu(HW,"ytd-comment-inline-thumbnail-renderer",function(){if(m3b!==void 0)return m3b;var a=document.createElement("template");Q(a,"\n \n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return m3b=a},{mode:1});var n3b;var IW=function(){var a=E.apply(this,arguments)||this;a.isOpen=!1;return a}; k(IW,E);g=IW.prototype;g.dataChanged=function(){this.isOpen=!1}; g.onTap=function(){this.data&&(this.data.navigationEndpoint?Gt(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())}; g.focus=function(){this.commentbox.focus()}; g.onYtCommentboxDismiss=function(){this.isOpen=!1}; g.openDialog=function(){this.isOpen=!0;this.commentbox.focus();this.commentbox.maybeHeightChanged()}; IW.prototype.onYtCommentboxDismiss=IW.prototype.onYtCommentboxDismiss;IW.prototype.dataChanged=IW.prototype.dataChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],IW.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],IW.prototype,"data",void 0);n([M(),r("design:type",Object)],IW.prototype,"isOpen",void 0);n([Tt("#commentbox"),r("design:type",Object)],IW.prototype,"commentbox",void 0); n([cu("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],IW.prototype,"dataChanged",null);n([Kt("yt-commentbox-dismiss"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],IW.prototype,"onYtCommentboxDismiss",null);n([gu({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],IW); Tu(IW,"ytd-comment-reply-dialog-renderer",function(){if(n3b!==void 0)return n3b;var a=document.createElement("template");Q(a,"\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return n3b=a},{mode:1});var o3b;var JW=function(){return E.apply(this,arguments)||this}; k(JW,E);ba.Object.defineProperties(JW.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var a,b,c=(a=this.data)==null?void 0:(b=a.icon)==null?void 0:b.iconType;return c?"yt-icons:"+c.toLowerCase():null}}}); n([F(Yz.YtRendererBehavior),r("design:type",Object)],JW.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],JW.prototype,"data",void 0);n([M(),H("data.icon"),r("design:type",Object),r("design:paramtypes",[])],JW.prototype,"icon",null);n([gu({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],JW); Tu(JW,"ytd-pinned-comment-badge-renderer",function(){if(o3b!==void 0)return o3b;var a=document.createElement("template");Q(a,"\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return o3b=a},{mode:1});var p3b;var KW=function(){return E.apply(this,arguments)||this}; k(KW,E);KW.prototype.configureRendererStamper=function(){return{"data.icon":{id:"icon",mapping:{iconType:{component:"yt-icon",properties:{icon:"[[data.icon.iconType]]",sharedTooltipText:"[[data.tooltip]]"}}}},data:{id:"custom-badge",mapping:{customBadge:{component:"yt-img-shadow",properties:{thumbnail:"[[data.customBadge]]",sharedTooltipText:"[[data.tooltip]]"}}}}}}; KW.prototype.attached=function(){if(!this.hostElement.hasAttribute("role")){this.hostElement.setAttribute("role","img");var a;((a=this.data)==null?0:a.tooltip)&&this.hostElement.setAttribute("alt",this.data.tooltip)}var b;((b=this.data)==null?0:b.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")}; KW.prototype.colorChanged=function(){var a,b,c,d=(a=this.data)==null?void 0:(b=a.color)==null?void 0:(c=b.basicColorPaletteData)==null?void 0:c.foregroundBodyColor;d&&(this.rgbBadgeColor=Iy(d));wt(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor}; KW.prototype.tooltipChanged=function(){var a;((a=this.data)==null?0:a.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")}; KW.prototype.tooltipChanged=KW.prototype.tooltipChanged;KW.prototype.colorChanged=KW.prototype.colorChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],KW.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],KW.prototype,"ytRendererstamperBehavior",void 0);n([F(eIb.YtSharedTooltipBehavior),r("design:type",Object)],KW.prototype,"ytSharedTooltipBehavior",void 0);n([M(),r("design:type",Object)],KW.prototype,"data",void 0); n([M({value:"#4285F4"}),r("design:type",String)],KW.prototype,"rgbBadgeColor",void 0);n([Lt("data.color"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],KW.prototype,"colorChanged",null);n([Lt("data.tooltip"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],KW.prototype,"tooltipChanged",null);n([gu({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],KW); Tu(KW,"ytd-sponsor-comment-badge-renderer",function(){if(p3b!==void 0)return p3b;var a=document.createElement("template");Q(a,"
\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return p3b=a},{mode:1});var q3b;var r3b;var LW=function(){return E.apply(this,arguments)||this}; k(LW,E);LW.prototype.computeState=function(a){switch(a==null?void 0:a.stateIdentifier){case"TRI_STATE_IDENTIFIER_UNTOGGLED_STATE":return"untoggled";case"TRI_STATE_IDENTIFIER_TOGGLING_STATE":return"toggling";case"TRI_STATE_IDENTIFIER_TOGGLED_STATE":return"toggled";default:return"unknown";}}; LW.prototype.updateStateIdentifier=function(a){if(this.viewModel.triStateKey){var b=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(eA("triStateButtonStateEntityPayload",b,{key:b,stateIdentifier:a}))}}; LW.prototype.onClick=function(){var a=this;if(this.data)switch(this.ytRendererBehavior.logExplicitClick(this.data),this.state){case"toggled":this.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE");break;case"untoggled":this.viewModel.transitionCommand?(this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLING_STATE"),this.ytComponentBehavior.resolveCommand(this.viewModel.transitionCommand,{commandController:{onSuccess:function(){a.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}, onServerError:function(){a.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE");}}; ba.Object.defineProperties(LW.prototype,{data:{configurable:!0,enumerable:!0,get:function(){switch(this.state){case"untoggled":return this.viewModel.untoggledStateData;case"toggling":return this.viewModel.togglingStateData;case"toggled":return this.viewModel.toggledStateData;}}}, buttonText:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.buttonText)||""}}}); n([M(),r("design:type",Object)],LW.prototype,"viewModel",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],LW.prototype,"ytComponentBehavior",void 0);n([F(kC),r("design:type",Object)],LW.prototype,"ytdReduxBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],LW.prototype,"ytRendererBehavior",void 0);n([M({selector:qPb,selectorArgs:["viewModel.triStateKey"]}),r("design:type",Object)],LW.prototype,"triStateButtonStateEntity",void 0); n([M({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),r("design:type",String)],LW.prototype,"state",void 0);n([H("viewModel","state"),r("design:type",Object),r("design:paramtypes",[])],LW.prototype,"data",null);n([H("data"),r("design:type",String),r("design:paramtypes",[])],LW.prototype,"buttonText",null);n([gu({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],LW); Tu(LW,"ytd-tri-state-button-view-model",function(){if(r3b!==void 0)return r3b;var a=document.createElement("template");Q(a,"\n [[buttonText]]\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return r3b=a},{mode:1});var s3b;var t3b;var MW=function(){var a=E.apply(this,arguments)||this;a.defaultIconToFilled=!x("kevlar_fill_comment_chip_icon_killswitch");return a}; k(MW,E);MW.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}}; MW.prototype.dataChanged=function(){if(this.data){var a,b;((a=this.data.chipColorPalette)==null?0:a.backgroundColor)&&((b=this.data.chipColorPalette)==null?0:b.foregroundTitleColor)&&Ft(this.hostElement,{"--yt-pdg-comment-chip-background-color":Jy(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":Jy(this.data.chipColorPalette.foregroundTitleColor)});var c;((c=this.data)==null?0:c.command)?(Ft(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role", "button"),this.hostElement.setAttribute("tabindex","0")):(Ft(this.hostElement,{"--yt-pdg-comment-chip-cursor":"initial"}),this.hostElement.removeAttribute("role"),this.hostElement.removeAttribute("tabindex"));this.basePriceText=this.data.chipText;this.chipIcon=this.data.chipIcon}}; MW.prototype.onTap=function(){var a;if(this.data&&(a=this.data)!=null&&a.command){var b;this.ytComponentBehavior.resolveCommand((b=this.data)==null?void 0:b.command)}}; MW.prototype.getIconSize=function(){return x("kevlar_fill_comment_chip_icon_killswitch")?24:12}; MW.prototype.onTap=MW.prototype.onTap;MW.prototype.dataChanged=MW.prototype.dataChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],MW.prototype,"ytRendererBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],MW.prototype,"ytComponentBehavior",void 0);n([F(Lw),r("design:type",Object)],MW.prototype,"ironA11yKeysBehavior",void 0);n([M(),r("design:type",Object)],MW.prototype,"data",void 0);n([M(),r("design:type",Object)],MW.prototype,"basePriceText",void 0); n([M(),r("design:type",Object)],MW.prototype,"chipIcon",void 0);n([M(),r("design:type",Object)],MW.prototype,"defaultIconToFilled",void 0);n([cu("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],MW.prototype,"dataChanged",null);n([Kt("tap"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],MW.prototype,"onTap",null);n([fu({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],MW); Tu(MW,"yt-pdg-comment-chip-renderer",function(){if(t3b===void 0){var a=document.createElement("template");Q(a,"
[[getSimpleString(basePriceText)]]
"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;s3b===void 0&&(s3b=document.createElement("template"));var d=s3b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);t3b=a}a=t3b;return a},{mode:2});var NW=function(){var a=E.apply(this,arguments)||this;a.hasSubThreading=!1;a.useSmallAvatars=x("small_avatars_for_comments");a.commentThreadingEnabled=x("web_delhi_comment_threads")||x("enable_music_web_comment_threads");a.webWatchCompactComments=x("web_watch_compact_comments");a.editDialog=null;return a}; k(NW,E);g=NW.prototype;g.onShow=function(){bw("cmv",void 0,"wn_comments")}; g.configureRendererStamper=function(){return{authorCommentBadge:{id:"author-comment-badge",mapping:{renderer:"ytd-author-comment-badge-renderer"}},linkedCommentBadge:{id:"linked-comment-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[linkedCommentBadge]]"}}}},pinnedCommentBadge:{id:"pinned-comment-badge",mapping:{renderer:"ytd-pinned-comment-badge-renderer"}},sponsorCommentBadge:{id:"sponsor-comment-badge",mapping:{renderer:"ytd-sponsor-comment-badge-renderer"}}, editDialog:{id:"edit-dialog",mapping:{commentDialogRenderer:"ytd-comment-dialog-renderer",commentReplyDialogRenderer:"ytd-comment-reply-dialog-renderer"}}}}; g.detached=function(){this.editDialog=null;this.expander.reset()}; g.updateBackgroundColor=function(){if(this.backgroundColor){var a={"--ytd-comment-paid-background-color":Jy(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};Ft(this.hostElement,a)}else Ft(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})}; g.resetExpander=function(){var a;(a=this.expander)==null||a.reset()}; g.openEditDialog=function(a){a.dialog&&(this.editDialog=a.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())}; g.onYtNavigate=function(a){var b=a.detail.endpoint;if(b=z(b,lqb)||z(b,mqb))a.stopPropagation(),this.openEditDialog(b)}; g.onYtCommentboxDismiss=function(){this.editDialog=null;Ft(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})}; g.onAuthorThumbnailClicked=function(){x("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})}; g.onYtCommentboxResize=function(a){var b;(a==null?0:(b=a.detail)==null?0:b.height)&&Ft(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":a.detail.height+"px"})}; ba.Object.defineProperties(NW.prototype,{linked:{configurable:!0,enumerable:!0,get:function(){return!!this.viewModel.linkedCommentText}}, linkedCommentBadge:{configurable:!0,enumerable:!0,get:function(){return this.viewModel&&this.linked?{metadataBadgeRenderer:{label:this.viewModel.linkedCommentText,style:"BADGE_STYLE_TYPE_SIMPLE"}}:null}}, pinned:{configurable:!0,enumerable:!0,get:function(){return!!this.viewModel.pinnedText}}, pinnedCommentBadge:{configurable:!0,enumerable:!0,get:function(){return this.viewModel&&this.pinned?{renderer:{icon:{iconType:"KEEP"},label:{runs:[{text:this.viewModel.pinnedText}]}}}:null}}, authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var a,b=(a=this.commentEntity)==null?void 0:a.author;return b&&(b.isCreator||b.isVerified||b.isArtist)?{renderer:{authorEndpoint:b.channelPageEndpoint?z(b.channelPageEndpoint,ny):z(b.channelCommand,ny),authorText:{runs:[{text:b.displayName}]},color:b.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:b.isArtist?{iconType:"AUDIO_BADGE"}:b.isVerified? {iconType:b.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:b.isArtist||b.isVerified?b.innerBadgeA11y:void 0}}:null}}, hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}}, sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var a,b=(a=this.commentEntity)==null?void 0:a.author;return b!=null&&b.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:b.sponsorBadgeUrl}]},tooltip:b.sponsorBadgeA11y}}:null}}, hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}}, pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var a;return z((a=this.commentSurfaceEntity)==null?void 0:a.pdgCommentChip,Fqb)||null}}, hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var a;return this.voiceReplyContainerViewModel&&((a=this.voiceReplyContainerViewModel)==null?void 0:a.transcriptText)}}, voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var a;return z((a=this.commentSurfaceEntity)==null?void 0:a.voiceReplyContainerViewModel,dmb)||null}}, voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var a;return this.voiceReplyContainerViewModel&&(a=this.voiceReplyContainerViewModel)!=null&&a.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}}, viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}}, backgroundColor:{configurable:!0,enumerable:!0,get:function(){var a,b;return(b=(a=this.commentSurfaceEntity)==null?void 0:a.commentBackgroundColor)!=null?b:null}}, optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return x("web_watch_compact_comments")}}, isReply:{configurable:!0,enumerable:!0,get:function(){var a,b;return(((a=this.commentEntity)==null?void 0:(b=a.properties)==null?void 0:b.replyLevel)||0)>0}}, authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var a,b;if(x("enable_profile_cards_on_comments")&&((a=this.commentEntity)==null?0:(b=a.author)==null?0:b.profileCardEndpoint)&&this.viewModel.allowProfileCard){var c,d;return z((c=this.commentEntity)==null?void 0:(d=c.author)==null?void 0:d.profileCardEndpoint,ny)}var e,f;return z((e=this.commentEntity)==null?void 0:(f=e.avatar)==null?void 0:f.endpoint,ny)}}, authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var a,b;if(x("enable_profile_cards_on_comments")&&((a=this.commentEntity)==null?0:(b=a.author)==null?0:b.channelPageEndpoint)){var c,d;return z((c=this.commentEntity)==null?void 0:(d=c.author)==null?void 0:d.channelPageEndpoint,ny)}var e,f;return z((e=this.commentEntity)==null?void 0:(f=e.avatar)==null?void 0:f.endpoint,ny)}}, authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d,e=(a=this.commentEntity)==null?void 0:(b=a.avatar)==null?void 0:(c=b.image)==null?void 0:(d=c.sources)==null?void 0:d[0];return e?{thumbnails:[{url:e.url,width:e.width,height:e.height}]}:null}}, authorTextClass:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.commentEntity)==null?0:(b=a.author)==null?0:b.isCreator)?"channel-owner":""}}, authorChannelName:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.commentEntity)==null?void 0:(b=a.author)==null?void 0:b.displayName)||""}}, publishedTime:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.commentEntity)==null?void 0:(b=a.properties)==null?void 0:b.publishedTime)||null}}, publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var a;return z((a=this.commentSurfaceEntity)==null?void 0:a.publishedTimeCommand,ny)||null}}, contentText:{configurable:!0,enumerable:!0,get:function(){var a,b;if(((a=this.commentEntity)==null?0:a.translatedContent)&&((b=this.translateButtonState)==null?void 0:b.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var c;if((c=this.voiceReplyContainerViewModel)==null?0:c.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var d,e;return((d=this.commentEntity)==null?void 0:(e=d.properties)==null?void 0:e.content)||null}}, shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}}, expandText:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.commentSharedEntity)==null?void 0:(b=a.strings)==null?void 0:b.expandText)||""}}, collapseText:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.commentSharedEntity)==null?void 0:(b=a.strings)==null?void 0:b.collapseText)||""}}, shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.commentEntity)==null||!a.isTranslationAvailable)}}, translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var a,b,c=(b=z((a=this.viewModel)==null?void 0:a.translateButton,cmb))!=null?b:{},d,e,f,h,m,p,q,t,u,v,w;return Object.assign({},c,{untoggledStateData:Object.assign({},c.untoggledStateData,{buttonText:(d=this.commentEntity)==null?void 0:(e=d.translateData)==null?void 0:e.text}),togglingStateData:Object.assign({},c.togglingStateData,{buttonText:(f=this.commentSharedEntity)==null? void 0:(h=f.strings)==null?void 0:h.translatingText}),toggledStateData:Object.assign({},c.toggledStateData,{buttonText:(m=this.commentSharedEntity)==null?void 0:(p=m.strings)==null?void 0:p.seeOriginalText}),transitionCommand:((q=this.commentEntity)==null?0:q.translatedContent)?void 0:z((t=this.commentEntity)==null?void 0:(u=t.translateData)==null?void 0:u.translateComment,ny),triStateKey:(v=this.commentEntity)==null?void 0:(w=v.properties)==null?void 0:w.translateButtonEntityKey})}}, overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return((b=z(z((a=this.toolbarSurface)==null?void 0:a.menuCommand,ny),nqb))==null?void 0:(c=b.menu)==null?void 0:c.menuRenderer)||null}}}); NW.prototype.onYtCommentboxResize=NW.prototype.onYtCommentboxResize;NW.prototype.onYtCommentboxDismiss=NW.prototype.onYtCommentboxDismiss;NW.prototype.onYtNavigate=NW.prototype.onYtNavigate;NW.prototype.resetExpander=NW.prototype.resetExpander;NW.prototype.updateBackgroundColor=NW.prototype.updateBackgroundColor;n([M({reflectToAttribute:!0}),r("design:type",Boolean)],NW.prototype,"hidden",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],NW.prototype,"ytRendererBehavior",void 0); n([F(kC),r("design:type",Object)],NW.prototype,"ytdReduxBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],NW.prototype,"ytComponentBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],NW.prototype,"ytRendererstamperBehavior",void 0);n([Tt("#author-thumbnail > button"),r("design:type",HTMLElement)],NW.prototype,"authorThumbnailAnchor",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],NW.prototype,"hovered",void 0); n([M(),r("design:type",Object)],NW.prototype,"hasSubThreading",void 0);n([M({reflectToAttribute:!0}),H("viewModel"),r("design:type",Boolean),r("design:paramtypes",[])],NW.prototype,"linked",null);n([H("viewModel","linked"),r("design:type",Object),r("design:paramtypes",[])],NW.prototype,"linkedCommentBadge",null);n([M({reflectToAttribute:!0}),H("viewModel"),r("design:type",Boolean),r("design:paramtypes",[])],NW.prototype,"pinned",null); n([H("viewModel","pinned"),r("design:type",Object),r("design:paramtypes",[])],NW.prototype,"pinnedCommentBadge",null);n([H("commentEntity","commentSharedEntity"),r("design:type",Object),r("design:paramtypes",[])],NW.prototype,"authorCommentBadge",null);n([M({reflectToAttribute:!0}),H("authorCommentBadge"),r("design:type",Object),r("design:paramtypes",[])],NW.prototype,"hasAuthorBadge",null); n([H("commentEntity"),r("design:type",Object),r("design:paramtypes",[])],NW.prototype,"sponsorCommentBadge",null);n([M({reflectToAttribute:!0}),H("sponsorCommentBadge"),r("design:type",Object),r("design:paramtypes",[])],NW.prototype,"hasSponsorBadge",null);n([H("commentSurfaceEntity"),r("design:type",Object),r("design:paramtypes",[])],NW.prototype,"pdgCommentChipRenderer",null); n([M({reflectToAttribute:!0}),H("voiceReplyContainerViewModel"),r("design:type",Object),r("design:paramtypes",[])],NW.prototype,"hasVoiceReply",null);n([H("commentSurfaceEntity"),r("design:type",Object),r("design:paramtypes",[])],NW.prototype,"voiceReplyContainerViewModel",null);n([H("voiceReplyContainerViewModel"),r("design:type",Object),r("design:paramtypes",[])],NW.prototype,"voiceReplyUnavailableText",null);n([M(),r("design:type",Object)],NW.prototype,"data",void 0); n([H("data"),r("design:type",Object),r("design:paramtypes",[])],NW.prototype,"viewModel",null);n([M({selector:function(a,b){return yA(a.entities,"commentSharedEntityPayload",b)}, selectorArgs:["viewModel.sharedKey"]}),r("design:type",Object)],NW.prototype,"commentSharedEntity",void 0);n([M({selector:oPb,selectorArgs:["viewModel.commentKey"]}),r("design:type",Object)],NW.prototype,"commentEntity",void 0);n([M({selector:function(a,b){return yA(a.entities,"commentSurfaceEntityPayload",b)}, selectorArgs:["viewModel.commentSurfaceKey"]}),r("design:type",Object)],NW.prototype,"commentSurfaceEntity",void 0);n([M({selector:pPb,selectorArgs:["viewModel.toolbarSurfaceKey"]}),r("design:type",Object)],NW.prototype,"toolbarSurface",void 0);n([M({selector:qPb,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),r("design:type",Object)],NW.prototype,"translateButtonState",void 0); n([H("commentSurfaceEntity"),r("design:type",Object),r("design:paramtypes",[])],NW.prototype,"backgroundColor",null);n([M({reflectToAttribute:!0}),H("viewModel"),r("design:type",Boolean),r("design:paramtypes",[])],NW.prototype,"optimalReadingWidthComments",null);n([Tt("ytd-expander"),r("design:type",Object)],NW.prototype,"expander",void 0);n([Lt("backgroundColor"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],NW.prototype,"updateBackgroundColor",null); n([M({reflectToAttribute:!0}),r("design:type",Object)],NW.prototype,"useSmallAvatars",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],NW.prototype,"engagementPanel",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],NW.prototype,"commentThreadingEnabled",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],NW.prototype,"webWatchCompactComments",void 0); n([M({reflectToAttribute:!0}),H("commentEntity"),r("design:type",Object),r("design:paramtypes",[])],NW.prototype,"isReply",null);n([H("commentEntity"),r("design:type",Object),r("design:paramtypes",[])],NW.prototype,"authorThumbnailEndpoint",null);n([H("commentEntity"),r("design:type",Object),r("design:paramtypes",[])],NW.prototype,"authorNameEndpoint",null);n([H("commentEntity"),r("design:type",Object),r("design:paramtypes",[])],NW.prototype,"authorThumbnail",null); n([H("commentEntity"),r("design:type",String),r("design:paramtypes",[])],NW.prototype,"authorTextClass",null);n([H("commentEntity"),r("design:type",String),r("design:paramtypes",[])],NW.prototype,"authorChannelName",null);n([H("commentEntity"),r("design:type",Object),r("design:paramtypes",[])],NW.prototype,"publishedTime",null);n([H("commentSurfaceEntity"),r("design:type",Object),r("design:paramtypes",[])],NW.prototype,"publishedTimeCommand",null); n([H("commentEntity","translateButtonState","voiceReplyContainerViewModel"),r("design:type",Object),r("design:paramtypes",[])],NW.prototype,"contentText",null);n([Lt("contentText"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],NW.prototype,"resetExpander",null);n([H("commentEntity"),r("design:type",Boolean),r("design:paramtypes",[])],NW.prototype,"shouldShowReadMoreInitially",null); n([H("commentSharedEntity"),r("design:type",String),r("design:paramtypes",[])],NW.prototype,"expandText",null);n([H("commentSharedEntity"),r("design:type",String),r("design:paramtypes",[])],NW.prototype,"collapseText",null);n([H("commentEntity"),r("design:type",Boolean),r("design:paramtypes",[])],NW.prototype,"shouldShowTranslateButton",null);n([H("commentEntity","commentSharedEntity"),r("design:type",Object),r("design:paramtypes",[])],NW.prototype,"translateButton",null); n([H("toolbarSurface"),r("design:type",Object),r("design:paramtypes",[])],NW.prototype,"overflowMenuRenderer",null);n([M(),r("design:type",Object)],NW.prototype,"editDialog",void 0);n([Tt("ytd-comment-dialog-renderer"),r("design:type",Object)],NW.prototype,"editCommentDialogContainer",void 0);n([Tt("ytd-comment-reply-dialog-renderer"),r("design:type",Object)],NW.prototype,"editReplyDialogContainer",void 0); n([Kt("yt-navigate"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],NW.prototype,"onYtNavigate",null);n([Kt("yt-commentbox-dismiss"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],NW.prototype,"onYtCommentboxDismiss",null);n([Kt("yt-commentbox-resize"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],NW.prototype,"onYtCommentboxResize",null); n([gu({disableElementRegistration:!0,is:"ytd-comment-view-model"})],NW); Uu()(NW,"ytd-comment-view-model",function(){if(q3b===void 0){var a=document.createElement("template");Q(a,"
\n
\n\n\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);q3b=a}a=q3b;return a},{allowedProps:["data", "engagementPanel","hasSubThreading","hidden","hovered"],mode:2});bB(O(function(a){var b={},c={};return D("yt-sub-thread",{class:U("ytSubThreadHost",(b.ytSubThreadHasButton=a.isButton,b.ytSubThreadHovered=a.hovered,b.ytSubThreadTopLevelThread=function(){var d,e;return((d=a.topLevelThread)==null?void 0:d.call(a))&&!(x("small_avatars_for_comments")&&((e=a.engagementPanel)==null?0:e.call(a)))},b))},D("div",{class:"ytSubThreadThreadline"},D(P,{cond:function(){var d; return!((d=a.isTeaser)==null?0:d.call(a))}, then:function(){return D("div",{class:"ytSubThreadConnection"})}}),D("div",{class:"ytSubThreadContinuation"}),D("div",{class:"ytSubThreadShadow"})),D("div",{class:U("ytSubThreadSubThreadContent",(c.ytSubThreadSubThreadContentEngagementPanel=a.engagementPanel,c))},a.children))},"pe"),"yt-sub-thread",{props:{isButton:$A, isTeaser:$A,hovered:$A,topLevelThread:$A,engagementPanel:$A}});var OW=function(){var a=E.apply(this,arguments)||this;a.modern=x("web_modern_buttons");a.commentThreadingEnabled=x("web_delhi_comment_threads")||x("enable_music_web_comment_threads");a.isWatchGrid=x("kevlar_watch_grid");a.buttonOverrides=a.commentThreadingEnabled?x("web_delhi_comment_threads_call_to_action")?{iconPosition:"trailing",type:"text",style:"call-to-action"}:{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};a.spinnerEl=null;return a}; k(OW,E);g=OW.prototype;g.configureContinuationPathMap=function(){return x("web_delhi_comment_threads")||x("enable_music_web_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}}; g.shouldShowLegacyTeasers=function(a,b){return a&&!b}; g.shouldShowExpandedThreads=function(a,b){return this.commentThreadingEnabled&&b&&(a==null?void 0:a.length)>0}; g.shouldShowCollapsedThreads=function(a,b){return this.commentThreadingEnabled&&!b&&a}; g.computeCommentViewModel=function(a){return z(a,bmb)}; g.computeThreadRenderer=function(a){return z(a,Zlb)}; g.computeIsContinuationItem=function(a){return!!this.computeContinuationItemRenderer(a)}; g.computeButtonRenderer=function(a){return z(a,TJ)}; g.computeContinuationItemRenderer=function(a){return z(a,vJ)}; g.computeShowButton=function(a){var b;return!((b=this.computeContinuationItemRenderer(a))==null||!b.button)}; g.configureRendererStamper=function(){return{"data.teaserContents":{id:"teaser-replies",mapping:{commentViewModel:{component:"ytd-comment-view-model"}}},"data.contents":{id:"contents",mapping:{commentViewModel:{component:"ytd-comment-view-model"},continuationItemRenderer:{component:"ytd-continuation-item-renderer",params:{showButton:!0,isCommentsSection:!1},properties:{buttonOverrides:"[[buttonOverrides]]"}}}}}}; g.attached=function(){this.isShowRepliesVisible=!0}; g.dataChanged=function(){var a=this.expanderContents;a&&(a.hidden=!0);this.isLoading=!1}; g.endsInContinuation=function(a){return!!a&&a.length>0&&!!this.computeContinuationItemRenderer(a[a.length-1])}; g.computeShouldShowHideRepliesButton=function(a,b){return!a&&b}; g.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)}; g.isLoadingChanged=function(){this.isLoading&&!this.spinnerEl&&(this.spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),wt(this.expanderContents).appendChild(this.spinnerEl));this.spinnerEl&&(this.spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var a;(a=this.contents)==null||a.classList.remove("reloading")}}; g.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var a=z(this.data.viewReplies,TJ);a&&this.ytRendererBehavior.logExplicitClick(a);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()}; g.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var a=z(this.data.hideReplies,TJ);a&&this.ytRendererBehavior.logExplicitClick(a);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()}; g.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var a=wt(this.hostElement).querySelector("#expander-contents");a&&(a.hidden=this.isShowRepliesVisible)}}; g.computeAlign=function(){if(this.modern){var a;return!((a=this.data)==null?0:a.viewRepliesCreatorThumbnail)}}; ba.Object.defineProperties(OW.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var a,b;return this.endsInContinuation((a=this.data)==null?void 0:a.contents)||this.commentThreadingEnabled&&this.endsInContinuation((b=this.data)==null?void 0:b.subThreads)}}, subThreadTeasers:{configurable:!0,enumerable:!0,get:function(){if(!this.commentThreadingEnabled)return[];var a;return(a=this.data)==null?void 0:a.teaserContents}}}); OW.prototype.isShowMoreChanged=OW.prototype.isShowMoreChanged;OW.prototype.isLoadingChanged=OW.prototype.isLoadingChanged;OW.prototype.triggerFirstContinuation=OW.prototype.triggerFirstContinuation;OW.prototype.dataChanged=OW.prototype.dataChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],OW.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],OW.prototype,"ytRendererstamperBehavior",void 0); n([F(ZP),r("design:type",Object)],OW.prototype,"ytContinuationHandlerBehavior",void 0);n([M(),r("design:type",Object)],OW.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],OW.prototype,"modern",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],OW.prototype,"commentThreadingEnabled",void 0);n([M(),r("design:type",Boolean)],OW.prototype,"expanded",void 0);n([M(),r("design:type",Function)],OW.prototype,"toggleExpanded",void 0); n([M(),r("design:type",Array)],OW.prototype,"addedReplies",void 0);n([M(),r("design:type",Boolean)],OW.prototype,"hovered",void 0);n([M(),r("design:type",Boolean)],OW.prototype,"topLevelThread",void 0);n([M(),r("design:type",Boolean)],OW.prototype,"isLoading",void 0);n([M({value:!0}),r("design:type",Boolean)],OW.prototype,"isShowRepliesVisible",void 0);n([M({value:!1}),r("design:type",Boolean)],OW.prototype,"useNewFormatting",void 0); n([M({reflectToAttribute:!0}),r("design:type",Boolean)],OW.prototype,"engagementPanel",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],OW.prototype,"isWatchGrid",void 0);n([M(),r("design:type",Object)],OW.prototype,"buttonOverrides",void 0);n([Tt("#expander-contents"),r("design:type",HTMLElement)],OW.prototype,"expanderContents",void 0);n([Tt("ytd-continuation-item-renderer"),r("design:type",Object)],OW.prototype,"continuationItemRenderer",void 0); n([Tt("#contents"),r("design:type",HTMLElement)],OW.prototype,"contents",void 0);n([cu("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],OW.prototype,"dataChanged",null);n([H("data.contents","data.subThreads.*"),r("design:type",Boolean),r("design:paramtypes",[])],OW.prototype,"hasContinuation",null);n([H("data.teaserContents"),r("design:type",Object),r("design:paramtypes",[])],OW.prototype,"subThreadTeasers",null); n([Kt("yt-expander-more-tapped"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],OW.prototype,"triggerFirstContinuation",null);n([Lt("isLoading"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],OW.prototype,"isLoadingChanged",null);n([Lt("isShowRepliesVisible"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],OW.prototype,"isShowMoreChanged",null); n([gu({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],OW); Tu(OW,"ytd-comment-replies-renderer",function(){if(i3b!==void 0)return i3b;var a=document.createElement("template");Q(a,"\n\n\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return i3b=a},{mode:1});var u3b;kE("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var PW=function(){var a=E.apply(this,arguments)||this;a.useSmallAvatars=x("small_avatars_for_comments");a.scrollingEnabled=!0;a.isSubThread=!1;a.threadHovered=!1;a.expanded=!1;a.removed=!1;a.addedReplies=[];a.actionMap=a.configureActionMap();a.toggleExpanded=function(){a.expanded=!a.expanded;a.expanded||Xu(a.hostElement,"yt-scroll-to-comment-element",[a.commentElement])}; return a}; k(PW,E);g=PW.prototype;g.configureActionMap=function(){return x("web_delhi_comment_threads")||x("enable_music_web_comment_threads")?{"yt-create-comment-reply-action":"createCommentReplyAction","yt-remove-comment-action":"removeCommentAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction"}:{}}; g.createCommentReplyAction=function(a){a=z(a,Rlb);if(a!=null&&a.contents){var b=a.replyToCommentId,c=a.parentCommentId,d,e=(d=this.commentViewModel)==null?void 0:d.commentId;(e===b||e===c&&!b)&&this.maybeAttachReply(a.contents)}}; g.maybeAttachReply=function(a){var b,c;(((b=this.commentEntity)==null?void 0:(c=b.properties)==null?void 0:c.replyLevel)||0)>=3?Gt(this.hostElement,"yt-pushed-create-comment-reply",a):this.attachReply(a)}; g.onPushedCreateCommentReply=function(a){var b,c;(((b=this.commentEntity)==null?void 0:(c=b.properties)==null?void 0:c.replyLevel)||0)>=3||(this.attachReply(a.detail),a.stopPropagation())}; g.attachReply=function(a){var b;((b=this.data)==null?0:b.replies)?(b=this.get("data.replies.commentRepliesRenderer.subThreads").length-1,this.get("data.replies.commentRepliesRenderer.subThreads."+b+".continuationItemRenderer")?b===0?this.push("addedReplies",a):this.splice("data.replies.commentRepliesRenderer.subThreads",b,0,a):this.push("data.replies.commentRepliesRenderer.subThreads",a)):(this.set("data.replies",{commentRepliesRenderer:{subThreads:[a],viewReplies:{buttonRenderer:{text:sK(zy("VIEW_REPLIES", void 0,"View replies")),icon:{iconType:"EXPAND"}}}}}),this.expanded=!0)}; g.onAppendContinuationItemsActionFinished=function(){this.addedReplies.length&&(this.splice.apply(this,["data.replies.commentRepliesRenderer.subThreads",0,0].concat(ia(this.addedReplies))),this.set("addedReplies",[]))}; g.removeCommentAction=function(a){a=z(a,Wlb);var b=a==null?void 0:a.commentId,c;b&&((c=this.commentViewModel)==null?void 0:c.commentId)===b&&this.maybeRemoveComment(a.actionResult)}; g.banAuthorAction=function(a){a=z(a,Plb);var b=a==null?void 0:a.commentId,c;b&&((c=this.commentViewModel)==null?void 0:c.commentId)===b&&this.maybeRemoveComment(a.actionResult)}; g.hideReportedCommentAction=function(a){a=z(a,lmb);var b=a==null?void 0:a.commentId,c;b&&((c=this.commentViewModel)==null?void 0:c.commentId)===b&&this.maybeRemoveComment(a.actionResult)}; g.maybeRemoveComment=function(a){a&&a.status==="STATUS_SUCCEEDED"&&(this.feedbackText=a.feedbackText||sK("Reply removed"),this.removed=!0)}; g.attached=function(){var a=this;this.isSubThread&&(this.expanded=!0);var b;(b=this.commentThreadHitbox)==null||b.addEventListener("mouseover",function(){a.threadHovered=!0}); var c;(c=this.commentThreadHitbox)==null||c.addEventListener("mouseout",function(){a.threadHovered=!1}); var d;(d=this.commentThreadHitbox)==null||d.addEventListener("click",function(){a.maybeToggleExpanded()})}; g.onDataChanged=function(){var a=x("web_delhi_comment_threads")||x("enable_music_web_comment_threads")?"data.replies.commentRepliesRenderer.subThreads":"data.replies.commentRepliesRenderer.contents";this.get("data.replies.commentRepliesRenderer.teaserContents")&&!this.get(a)&&this.set(a,[{commentThreadRenderer:{commentViewModel:this.get("data.replies.commentRepliesRenderer.teaserContents")[0]}}]);this.expanded=this.isSubThread}; g.maybeToggleExpanded=function(){var a,b,c,d=(a=this.data)==null?void 0:(b=a.replies)==null?void 0:(c=b.commentRepliesRenderer)==null?void 0:c.subThreads,e;(d==null?void 0:d.length)===1&&((e=z(d[0],vJ))==null?0:e.button)&&this.expanded||this.toggleExpanded()}; ba.Object.defineProperties(PW.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var a;return z((a=this.data)==null?void 0:a.commentViewModel,bmb)}}, hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return(x("web_delhi_comment_threads")||x("enable_music_web_comment_threads"))&&!!((a=this.data)==null?0:(b=a.replies)==null?0:(c=b.commentRepliesRenderer)==null?0:c.subThreads)}}}); PW.prototype.onDataChanged=PW.prototype.onDataChanged;PW.prototype.onAppendContinuationItemsActionFinished=PW.prototype.onAppendContinuationItemsActionFinished;PW.prototype.onPushedCreateCommentReply=PW.prototype.onPushedCreateCommentReply;n([F(Yz.YtRendererBehavior),r("design:type",Object)],PW.prototype,"ytRendererBehavior",void 0);n([F(kC),r("design:type",Object)],PW.prototype,"ytdReduxBehavior",void 0); n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],PW.prototype,"ytActionHandlerBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],PW.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],PW.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],PW.prototype,"useSmallAvatars",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],PW.prototype,"scrollingEnabled",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],PW.prototype,"isSubThread",void 0);n([Tt(".thread-hitbox"),r("design:type",HTMLElement)],PW.prototype,"commentThreadHitbox",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],PW.prototype,"threadHovered",void 0);n([Tt("#comment"),r("design:type",HTMLElement)],PW.prototype,"commentElement",void 0);n([M(),r("design:type",Object)],PW.prototype,"expanded",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],PW.prototype,"removed",void 0);n([M(),r("design:type",Object)],PW.prototype,"feedbackText",void 0);n([M(),r("design:type",Array)],PW.prototype,"addedReplies",void 0);n([M({selector:oPb,selectorArgs:["commentViewModel.commentKey"]}),r("design:type",Object)],PW.prototype,"commentEntity",void 0); n([Kt("yt-pushed-create-comment-reply"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],PW.prototype,"onPushedCreateCommentReply",null);n([Kt("yt-append-continuation-items-action-finished"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],PW.prototype,"onAppendContinuationItemsActionFinished",null);n([H("data"),r("design:type",Object),r("design:paramtypes",[])],PW.prototype,"commentViewModel",null); n([H("data.replies.commentRepliesRenderer.subThreads"),r("design:type",Boolean),r("design:paramtypes",[])],PW.prototype,"hasSubThreading",null);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],PW.prototype,"engagementPanel",void 0);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],PW.prototype,"onDataChanged",null);n([gu({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],PW); Uu()(PW,"ytd-comment-thread-renderer",function(){if(u3b===void 0){var a=document.createElement("template");Q(a,"
\n \n \n
\n\n\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);u3b=a}a=u3b;return a},{allowedProps:["data", "engagementPanel","isSubThread"],mode:2});var v3b;var w3b={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_POSTS_TAB_COMMUNITY_ENABLEMENT_NUDGE:70,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100},QW=function(){var a=E.apply(this,arguments)||this;a.disablePrescanVisibility=!0;a.canScheduleJobs=!0;a.engagementPanel=!1;a.hidePanelButton=!1;a.isWatchGrid= !1;a.hasShownSubscribersOnlyDisclaimer=!1;a.hasShownSuperfanOnlyDisclaimer=!1;a.actionMap={"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"};a.TEST_ONLY=void 0;return a}; k(QW,E);g=QW.prototype;g.created=function(){this.initCommentsCsi_();x("web_delhi_comment_threads")||x("enable_music_web_comment_threads")||(this.actionMap["yt-create-comment-reply-action"]="createCommentReplyAction_");this.actionMap["yt-scroll-to-comment-element"]="handleScrollToCommentElement_"}; g.contentsChanged_=function(){var a;(a=this.data)!=null&&a.contents&&this.tickForCommentsTimer_("cml")}; g.headerChanged_=function(){var a;(a=this.data)!=null&&a.header&&this.tickForCommentsTimer_("cmhl")}; g.initCommentsCsi_=function(){Yv("wn_comments");var a=Tv();a&&Xv({clientScreenNonce:a},"wn_comments");this.tickForCommentsTimer_("cmi")}; g.createCommentAction_=function(a){a=Yh(a);var b,c;if(a=(b=z(a,Qlb))==null?void 0:(c=b.contents)==null?void 0:c.commentThreadRenderer){var d,e,f,h,m,p;!this.isBackstage&&((d=this.data)==null?0:(e=d.header)==null?0:(f=e.commentsHeaderRenderer)==null?0:(h=f.createRenderer)==null?0:(m=h.commentSimpleboxRenderer)==null?0:(p=m.zeroStep)==null?0:p.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var q,t,u;this.isBackstage&& z((q=this.data)==null?void 0:(t=q.header)==null?void 0:(u=t.commentsHeaderRenderer)==null?void 0:u.zeroStateMessage,wlb)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(a)}}; g.doReplyInsert_=function(a,b,c,d){d?this.splice(a,d,0,b):this.push(a,b)}; g.getRepliesPath_=function(a){return"data.contents."+a+".commentThreadRenderer.replies"}; g.getRepliesContentsPath_=function(a,b){a=this.getRepliesPath_(a);return b?a+".commentRepliesRenderer.teaserContents":a+".commentRepliesRenderer.contents"}; g.showSubscribersOnlyDisclaimer_=function(a){(a=a.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(a=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(a))&&(Xu(this.hostElement,"yt-open-popup-action",[a,this]),this.hasShownSubscribersOnlyDisclaimer=!0)}; g.showSuperfanOnlyDisclaimer_=function(a){(a=a.detail.command)&&!this.hasShownSuperfanOnlyDisclaimer&&(a=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(a))&&(Xu(this.hostElement,"yt-open-popup-action",[a,this]),this.hasShownSuperfanOnlyDisclaimer=!0)}; g.createCommentReplyAction_=function(a){a=Yh(a);var b=z(a,Rlb);if(a=b==null?void 0:b.contents){var c=this.commentIdToIndex_(b==null?void 0:b.parentCommentId);if(!(c<0)){var d=this.getRepliesPath_(c);if(this.get(d)){b=b.replyToCommentId;d=this.getRepliesContentsPath_(c,!1);if(this.get(d)){var e=this.get(d).length,f=d+"."+(e-1)+".continuationItemRenderer";this.get(f+".button")?(f=this.replyIdToIndex_(b,c,!1),this.doReplyInsert_(d,a,f,e-1)):this.get(f)||(e=this.replyIdToIndex_(b,c,!1),this.doReplyInsert_(d, a,e,null))}d=this.getRepliesContentsPath_(c,!0);this.get(d)?(c=this.replyIdToIndex_(b,c,!0),(!b||c>=0)&&this.doReplyInsert_(d,a,c,null)):this.set(d,[a])}else this.set(d,{commentRepliesRenderer:{teaserContents:[a]}})}}}; g.hideReportedCommentAction_=function(a){var b=z(a,lmb);if(a=b==null?void 0:b.commentId)(b=this.get("parentCommentId",b))||(b=this.getParentCommentId_(a)),this.remove_(a,b)}; g.getParentCommentId_=function(a){a=a.split(".");if(a[1])return a[0]}; g.removeCommentAction_=function(a){var b=z(a,Wlb);if(a=b==null?void 0:b.commentId)b=(b==null?void 0:b.parentCommentId)||this.getParentCommentId_(a),this.remove_(a,b)}; g.pinCommentAction_=function(a){a=Yh(a);var b=z(a,Vlb);b!=null&&b.commentId&&(a=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",a))&&(this.remove_(b.commentId),this.insert_(a,!0))}; g.unpinCommentAction_=function(a){a=Yh(a);a=z(a,Xlb);if(a!=null&&a.commentId){var b,c,d=(b=a.actionResult)==null?void 0:(c=b.update)==null?void 0:c.commentThreadRenderer;d&&(this.remove_(a.commentId),this.insert_(d))}}; g.banAuthorAction_=function(a){var b=z(a,Plb);b!=null&&b.commentId&&(a=b.commentId,b=b.parentCommentId||this.getParentCommentId_(a),this.remove_(a,b))}; g.handleScrollToCommentElement_=function(a){this.hostElement.contains(a)&&(this.nearestScrollParent||(this.nearestScrollParent=x3b(a)),this.isCommentVisibleInScrollParent(a)||a.scrollIntoView({behavior:"smooth",block:"nearest"}))}; g.isCommentVisibleInScrollParent=function(a){if(!this.nearestScrollParent)return!1;a=a.getBoundingClientRect();var b=this.nearestScrollParent===document.documentElement?{top:68,bottom:window.innerHeight}:this.nearestScrollParent.getBoundingClientRect();return a.top>=b.top&&a.bottom<=b.bottom}; g.commentIdToIndex_=function(a){var b;return a&&(b=this.data)!=null&&b.contents?this.data.contents.findIndex(function(c){c=c.commentThreadRenderer;var d;return a===((c==null?void 0:c.commentViewModel)&&((d=z(c.commentViewModel,bmb))==null?void 0:d.commentId))}):-1}; g.insert_=function(a,b){b=b===void 0?!1:b;var c,d;if((c=this.data)==null?0:(d=c.contents)==null?0:d.some(function(f){return!!f.commentThreadRenderer}))for(c=0,d=this.data.contents.length;c=w3b[e.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){b&&w3b[a.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===w3b[e.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",c,1,{commentThreadRenderer:a}):this.splice("data.contents",c,0,{commentThreadRenderer:a});break}}else this.set("data.contents",[{commentThreadRenderer:a}])}; g.doReplyRemove_=function(a,b,c){a=this.replyIdToIndex_(a,b,c);a<0||(b=this.getRepliesContentsPath_(b,c),this.splice(b,a,1))}; g.remove_=function(a,b){b=this.commentIdToIndex_(b);b<0?(b=this.commentIdToIndex_(a),b<0||this.splice("data.contents",b,1)):x("web_delhi_comment_threads")||x("enable_music_web_comment_threads")||(this.doReplyRemove_(a,b,!1),this.doReplyRemove_(a,b,!0))}; g.replyIdToIndex_=function(a,b,c){if(b<0)return-1;b=this.getRepliesContentsPath_(b,c);b=this.get(b);if(!b||!b.length)return-1;c=0;for(var d=b.length;c\n\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);v3b=a}a=v3b;return a}}}); QW.prototype.showSuperfanOnlyDisclaimer_=QW.prototype.showSuperfanOnlyDisclaimer_;QW.prototype.showSubscribersOnlyDisclaimer_=QW.prototype.showSubscribersOnlyDisclaimer_;QW.prototype.headerChanged_=QW.prototype.headerChanged_;QW.prototype.contentsChanged_=QW.prototype.contentsChanged_;n([F(pB),r("design:type",Object)],QW.prototype,"ytdOpenPopupBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],QW.prototype,"ytRendererBehavior",void 0); n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],QW.prototype,"ytActionHandlerBehavior",void 0);n([M(),r("design:type",Object)],QW.prototype,"data",void 0);n([M({reflectToAttribute:!0}),H("data.header.commentsHeaderRenderer.isBackstageContent"),r("design:type",Boolean),r("design:paramtypes",[])],QW.prototype,"isBackstage",null);n([M(),r("design:type",Object)],QW.prototype,"disablePrescanVisibility",void 0);n([M(),r("design:type",Object)],QW.prototype,"canScheduleJobs",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],QW.prototype,"engagementPanel",void 0);n([M(),r("design:type",Object)],QW.prototype,"hidePanelButton",void 0);n([M(),r("design:type",Object)],QW.prototype,"isWatchGrid",void 0);n([M(),r("design:type",Object)],QW.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);n([M(),r("design:type",Object)],QW.prototype,"hasShownSuperfanOnlyDisclaimer",void 0); n([Lt("data.contents"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],QW.prototype,"contentsChanged_",null);n([Lt("data.header"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],QW.prototype,"headerChanged_",null);n([Kt("yt-show-subscribers-only-disclaimer"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],QW.prototype,"showSubscribersOnlyDisclaimer_",null); n([Kt("yt-show-superfan-only-snackbar"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],QW.prototype,"showSuperfanOnlyDisclaimer_",null);n([gu({is:"ytd-comments"})],QW);function x3b(a){if(a)return a===document.body?document.documentElement:/(auto|scroll)/.test(getComputedStyle(a).overflowY)?a:x3b(a.parentElement)} ;var y3b;var z3b;var RW=function(){return E.apply(this,arguments)||this}; k(RW,E);RW.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}}; RW.prototype.onBackIconTap_=function(){window.history.back()}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],RW.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],RW.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],RW.prototype,"data",void 0);n([fu({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],RW); Tu(RW,"yt-header-with-back-renderer",function(){if(z3b===void 0){var a=document.createElement("template");Q(a,"
\n \n \n \n \n
\n \n \n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;y3b===void 0&&(y3b=document.createElement("template"));var d=y3b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);z3b=a}a=z3b;return a},{mode:2});var A3b;var B3b;var SW=function(){var a=E.apply(this,arguments)||this;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a}; k(SW,E);g=SW.prototype;g.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")}; g.onDarkModeToggledAction=function(a){a!==this.isDarkTheme&&(this.isDarkTheme=a,this.setUrl())}; g.dataChanged=function(){var a=this;if(this.data){var b=this.setUrl();b&&y3a({destination:window,iframe:this.iframe,origin:Cca(b.toString()),channelName:"yt-iframe",onMessage:function(c){(c=a.getCommunicationCommand(c.data))&&a.ytComponentBehavior.resolveCommand(c)}, onEstablished:function(){}})}}; g.setUrl=function(){if(this.data&&this.data.iframeUrl){var a=Lk(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(a)return Tb(this.iframe,a),a}}; g.getCommunicationCommand=function(a){var b;if((b=this.data)!=null&&b.onCommunicationCommandsMap){b=this.data.onCommunicationCommandsMap.find(function(e){return e.key===a}); if(b==null?0:b.value)return b==null?void 0:b.value;try{var c=ltb(Gd(a)),d=this.data.onCommunicationCommandsMap.find(function(e){return e.key===(c==null?void 0:Uf(c,1))}); if(d==null?0:d.value)return d==null?void 0:d.value}catch(e){}}}; SW.prototype.dataChanged=SW.prototype.dataChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],SW.prototype,"ytRendererBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],SW.prototype,"ytComponentBehavior",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],SW.prototype,"actionHandlerBehavior",void 0);n([M(),r("design:type",Object)],SW.prototype,"data",void 0);n([M({value:!1}),r("design:type",Boolean)],SW.prototype,"isDarkTheme",void 0); n([Tt("#iframe"),r("design:type",HTMLIFrameElement)],SW.prototype,"iframe",void 0);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],SW.prototype,"dataChanged",null);n([fu({is:"yt-iframe-renderer",disableElementRegistration:!0})],SW); Tu(SW,"yt-iframe-renderer",function(){if(B3b===void 0){var a=document.createElement("template");Q(a,"");a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild); var b=a.content,c=b.insertBefore;A3b===void 0&&(A3b=document.createElement("template"));var d=A3b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);B3b=a}a=B3b;return a},{mode:2});var TW=function(a){Ji.call(this);this.callback=a;this.bezier=new $eb(0,0,.4,0,.2,1,1,1);this.delay=new ndb(this.next,window,this);this.JSC$14385_animating=!1;Ki(this,this.delay)}; k(TW,Ji);TW.prototype.isAnimating=function(){return this.JSC$14385_animating}; TW.prototype.start=function(a,b,c){this.config={from:a,to:b,duration:c,startTime:im()};this.JSC$14385_animating=!0;this.next()}; TW.prototype.stop=function(){this.delay.stop();this.JSC$14385_animating=!1;this.config=void 0}; TW.prototype.next=function(){if(this.config){var a=this.config,b=a.from,c=a.to,d=a.duration;a=a.startTime;var e=im()-a;a=this.bezier;d=bfb(a,e/d);if(d==0)a=a.y0;else if(d==1)a=a.y3;else{e=Oh(a.y0,a.y1,d);var f=Oh(a.y1,a.y2,d);a=Oh(a.y2,a.y3,d);e=Oh(e,f,d);f=Oh(f,a,d);a=Oh(e,f,d)}a=Nh(a,0,1);this.callback(b+(c-b)*a);a<1?this.delay.start():this.JSC$14385_animating=!1}};var C3b=new Bn("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");function D3b(a,b){(a=E3b(a))&&((x("enable_mini_app_command_handler_mweb_fix")?0:b)?SXa(a,{}):Fn().resolve(JB).resolveCommand(a))} function E3b(a){return z(a,ny)} function F3b(){var a=window.performance.timeOrigin+window.performance.now(),b=new zi().setSeconds(a/1E9);return zf(b,2,Ke(a%1E9),0)} function G3b(a,b){var c;a=(c=z(z(a,ny),itb))==null?void 0:c.methodName;var d,e;(c=window.youtubewebview||((d=window.webkit)==null?void 0:(e=d.messageHandlers)==null?void 0:e.youtubewebview))&&a&&(d=new jtb,a=fg(d,1,a),a=Fd(a.JSC$10825_serializeBinary()),b=Fd(b),c.postMessage(a+","+b))} function UW(a,b,c){var d=z(z(a,ny),itb);d&&(b&&(d.serializedAdditionalMetadata=Fd(b)),c&&(d.messageId=c),D3b(a,!0))} function H3b(a,b,c){setTimeout(function(){Tb(a,b)},c)} ;var I3b={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},K3b=function(a,b,c,d){Ji.call(this);this.JSC$14397_miniAppId=a;this.localReleaseId=b;this.derivedDeviceInterface=c;this.isForeground=d;this.JSC$14397_playNonceResolver=new nj;this.playPingTimerId=NaN;this.playPingIntervalMs=ll("play_ping_interval_ms",3E4);this.playClickIntervalMs=ll("play_click_interval_ms",3E4);this.enableDisplayingPpn=x("enable_displaying_ppn");this.miniAppClientDataProvider=Fn().resolve(C3b);this.state= 0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;J3b(this);var e=setTimeout(function(){fo(new Dl("Timed out after 30000ms while waiting for play nonce"))},3E4); this.JSC$14397_playNonceResolver.promise.then(function(){clearTimeout(e)})}; k(K3b,Ji);var M3b=function(a,b){a.JSC$14397_playNonceResolver.resolve(b!=null?b:yv(8));a.enableDisplayingPpn&&L3b(a).then(function(c){a.miniAppClientDataProvider.addClientData("post_play_nonce",c)})},L3b=function(a){return ra(function(b){return b.nextAddress==1?b.yield(a.JSC$14397_playNonceResolver.promise,2):b.return(b.yieldResult)})},J3b=function(a){var b,c; ra(function(d){if(d.nextAddress==1)return d.yield(a.JSC$14397_playNonceResolver.promise,2);b=d.yieldResult;c={miniAppInfo:{externalPostId:a.JSC$14397_miniAppId,localReleaseId:a.localReleaseId,postPlayNonce:b,derivedDeviceInterface:a.derivedDeviceInterface}};Xv(c);d.jumpToEnd()})},O3b=function(a){a.state!==0?fo(new Dl("[MiniAppPlayLogger] recordPlayStart failed with state "+I3b[a.state])):(a.state=1,VW(a,"ma_cl"),WW(a,"PLAY_EVENT_TYPE_PLAY_START"),N3b(a))},P3b=function(a){a.isForeground=!1; WW(a,"PLAY_EVENT_TYPE_PLAY_PAUSE")},Q3b=function(a){a.state!==1&&a.state!==2?fo(new Dl("[MiniAppPlayLogger] recordPlayEnd failed with state "+I3b[a.state])):(a.state=3,window.clearInterval(a.playPingTimerId),a.playPingTimerId=NaN,NJa(),WW(a,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},R3b=function(a,b){a.state===2&&a.gameReady&&(a.firstClickRecorded?Date.now()-a.clickRecordedMs2)return d.return(a.downloadDataPromise);d.setCatchFinallyBlocks(2);return d.yield(w4b(a),4)}if(d.nextAddress!=2)return b=d.yieldResult,d.return(b);c=d.enterCatchBlock();if(l4b(c)&&++a.loadAttempts<2)return d.return(o4b(a));throw c})},w4b=function(a){var b,c,d,e,f; return ra(function(h){switch(h.nextAddress){case 1:return h.setCatchFinallyBlocks(2),b=m4b(),h.yield(u4b(a,b),4);case 4:return c=h.yieldResult,h.yield(fetch(b,{method:"GET",headers:c}),5);case 5:return d=h.yieldResult,d.ok?h.yield(d.text(),6):h.return(Promise.reject(Error("Cloud save download request failed with error status: "+String(d.status),{cause:new f4b(d.status)})));case 6:return e=h.yieldResult,h.return(new TextDecoder().decode(Gd(e)));case 2:return f=h.enterCatchBlock(),h.return(Promise.reject(f));}})}, YW=function(a,b){a.cloudSaveIntervalMs=b; a.scottyUploadRateLimiter.intervalMs=a.cloudSaveIntervalMs}; p4b.prototype.flush=function(){var a=this;return ra(function(b){return a.initialDownloadDataSucceeded?b.yield(a.scottyUploadRateLimiter.flush(!0),0):b.return()})};var x4b=dJ(bJ(1),$I(1)),ZW=dJ(bJ(1),$I(3)),$W=function(a){this.callbacks=a}; g=$W.prototype;g.onAudioToggled=function(a,b){(b===void 0||b)&&RK("yt-mini-app-is-audio-enabled",a,2592E3)}; g.onPause=function(){this.onAudioToggled(!1,!1)}; g.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)}; g.returnNativeBenchmarkingMessage=function(){}; g.sendGameData=function(){}; g.sendPdgGiftData=function(){}; g.sendStartGameFrameCapture=function(){}; var y4b=function(a,b,c){this.callbacks=a;var d=this;this.sdkVersion=new nj;this.channel=new EE(y3a({destination:window,iframe:b,origin:new URL(c.toString()).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var e=aX;var f=bJ(5);var h=new Gjb;h=dg(h,1,1E4);f=Jf(f,4,cJ,h);e(d,f);d.onAudioToggled(d.callbacks.isAudioEnabled())}})); this.sdkVersionTimeoutId=setTimeout(function(){d.sdkVersion.resolve("")},1E4)}; k(y4b,$W);g=y4b.prototype;g.onAudioToggled=function(a,b){$W.prototype.onAudioToggled.call(this,a,b===void 0?!0:b);b=aX;var c=bJ(2),d=new Ejb;a=bg(d,1,a);a=Jf(c,3,cJ,a);b(this,a)}; g.onPause=function(){$W.prototype.onPause.call(this);aX(this,bJ(3))}; g.onResume=function(){$W.prototype.onResume.call(this);aX(this,bJ(4))}; g.returnNativeBenchmarkingMessage=function(a){var b=aX,c=bJ(6);var d=$I(sf(a,xi,1)?1:2);a=sf(a,xi,1)?a:null;d=Jf(d,5,aJ,a);b(this,dJ(c,d))}; g.sendGameData=function(a){var b=aX,c=bJ(7);a=Jf(c,5,cJ,a);b(this,a)}; g.sendPdgGiftData=function(a){var b=aX,c=bJ(14);a=Jf(c,8,cJ,a);b(this,a)}; g.sendStartGameFrameCapture=function(){aX(this,bJ(9))}; var bX=function(a,b,c){var d,e,f;return ra(function(h){if(h.nextAddress==1)return d=a.callbacks,e=d.onSdkCalled,f=b,h.yield(a.sdkVersion.promise,2);e.call(d,f,h.yieldResult,c);h.jumpToEnd()})}; y4b.prototype.onMessage=function(){var a=this;return D3a(gJ,function(b){var c,d,e,f,h,m,p,q,t,u,v,w,y,A,C,I,K,N,L,R,W,S,Y,da,Aa,Sa,Ua,qb,ab,La,ib,sb,Oa,Ca,eb,Qa,Bb,dc,Nb,Lc,Fc,wc,kd,zc,ld,Sd,Jc,ec,Xa,Mb,Na,Cb,fc,Cc,We,bh,Uj,Hf,bf,Ci,pj,el,fl,ch,qj,rj;return ra(function(zb){switch(zb.nextAddress){case 1:if(!hkb(b.data))return fo(Error("Received message on 'playableIframe' channel that isn't of type IFrameMessage")),zb.return();c=Vf(b.data,1);x("enable_iframe_message_get_type_via_fields")&&(d=b.data, c=e=Vf(d,1));switch(c){case 8:if(b.data.hasMetadata()){var ad=a.sdkVersion,rd=ad.resolve;var pd=b.data.getMetadata();pd=Uf(pd,1);rd.call(ad,pd);clearTimeout(a.sdkVersionTimeoutId)}break;case 6:return zb.jumpTo(2);case 16:if(!uf(b.data,$jb,14,hJ))return zb.return();f=Yf(b.data,$jb,14,hJ);(m=(h=a.callbacks).onGameFrameReceived)==null||m.call(h,f);return zb.return();case 17:if(!uf(b.data,Zjb,15,hJ))return zb.return();(q=(p=a.callbacks).onGameAudioReceived)==null||q.call(p,Yf(b.data,Zjb,15,hJ));return zb.return(); case 1:if(ad=Yf(b.data,Kjb,2,hJ))switch(Vf(ad,1)){case 1:a.callbacks.onFirstFrameReady();if(x("enable_network_request_logging_on_game_events")&&sf(ad,YI,4)){bX(a,"MINI_APP_SDK_API_FIRST_FRAME_READY",Ef(ad,YI,4));break}bX(a,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(pd=(rd=a.callbacks).onGameReady)==null||pd.call(rd);if(x("enable_network_request_logging_on_game_events")&&sf(ad,YI,4)){bX(a,"MINI_APP_SDK_API_GAME_READY",Ef(ad,YI,4));break}bX(a,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(uf(ad, ZI,3,Ljb))a.callbacks.onResourceLoaded(Yf(ad,ZI,3,Ljb));}return zb.return();case 3:return zb.jumpTo(3);case 4:return zb.jumpTo(4);case 2:return zb.jumpTo(5);case 9:return zb.jumpTo(6);case 10:return a.callbacks.onClick(),zb.return();case 5:return zb.jumpTo(7);case 11:if(!uf(b.data,VI,9,hJ))return zb.return();t=Yf(b.data,VI,9,hJ);(v=(u=a.callbacks).onBenchmarkingMessageReceived)==null||v.call(u,t);ad=b.reply;rd=bJ(1);pd=$I(1);var cf=new VI;var np=new Uint8Array(Qf(t,tf(t,zjb,6))|0);cf=Bf(cf,5,zjb,ee(np, !1));pd=Jf(pd,5,aJ,cf);ad.call(b,dJ(rd,pd));return zb.return();case 12:return zb.jumpTo(8);case 13:return zb.jumpTo(9);case 15:return zb.jumpTo(10);case 14:return zb.jumpTo(11);case 18:return zb.jumpTo(12);case 19:return zb.jumpTo(13);case 20:return zb.jumpTo(14);default:return zb.return();}zb.jumpTo(0);break;case 2:if(!uf(b.data,eJ,5,hJ))return zb.return();rd=b.data;ad=tf(rd,hJ,5);rd=rd.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;w=rf(rd,rd[Wd]|0,eJ,ad)||eJ[Rd]||(eJ[Rd]=Eea(eJ));ad=Ff(w, WI,1);y=l(ad);A=y.next();case 16:if(A.done){zb.jumpTo(18);break}C=A.value;I=new Dl;I.level=Vf(C,2)===1?"WARNING":"ERROR";K=z4b(C.getSource());return zb.yield(a.sdkVersion.promise,19);case 19:N={source:K,sdkVersion:zb.yieldResult};Je(of(C,6))!=null?(I.message=C.getMessage(),I.stack=Uf(C,5),N.sdkErrorType=A4b(Vf(C,6)),Je(of(C,7))!=null&&(N.sdkApi=B4b(Vf(C,7)))):I.stack=void 0;R=L=void 0;(R=(L=a.callbacks).onError)==null||R.call(L,{loggingError:I,metadata:N});A=y.next();zb.jumpTo(16);break;case 18:return zb.return(); case 3:return zb.setCatchFinallyBlocks(20),ad=zb.yield,rd=a.callbacks,pd=rd.onSave,cf=Yf(b.data,Fjb,4,hJ),cf=Uf(cf,1),ad.call(zb,pd.call(rd,cf),22);case 22:b.reply(x4b);zb.leaveTryBlock(21);break;case 20:return W=zb.enterCatchBlock(),S=cX,Y=W,da=a.callbacks,Aa="MINI_APP_SDK_API_SAVE_DATA",zb.yield(a.sdkVersion.promise,23);case 23:S(Y,da,Aa,zb.yieldResult),b.reply(ZW);case 21:return zb.yield(bX(a,"MINI_APP_SDK_API_SAVE_DATA"),24);case 24:return zb.return();case 4:return zb.setCatchFinallyBlocks(25), zb.yield(a.callbacks.onLoad(),27);case 27:Sa=zb.yieldResult;ad=b.reply;rd=bJ(1);pd=$I(1);cf=new Fjb;cf=fg(cf,1,Sa);pd=Jf(pd,3,aJ,cf);ad.call(b,dJ(rd,pd));zb.leaveTryBlock(26);break;case 25:return Ua=zb.enterCatchBlock(),qb=cX,ab=Ua,La=a.callbacks,ib="MINI_APP_SDK_API_LOAD_DATA",zb.yield(a.sdkVersion.promise,28);case 28:qb(ab,La,ib,zb.yieldResult),b.reply(ZW);case 26:return zb.yield(bX(a,"MINI_APP_SDK_API_LOAD_DATA"),29);case 29:return zb.return();case 5:zb.setCatchFinallyBlocks(30);ad=a.callbacks; rd=ad.onSendHighScore;pd=Yf(b.data,fkb,3,hJ);pd=Rf(pd,1);rd.call(ad,Ncb(pd));b.reply(dJ(bJ(1),$I(1)));zb.leaveTryBlock(31);break;case 30:return sb=zb.enterCatchBlock(),Oa=cX,Ca=sb,eb=a.callbacks,Qa="MINI_APP_SDK_API_SEND_SCORE",zb.yield(a.sdkVersion.promise,32);case 32:Oa(Ca,eb,Qa,zb.yieldResult),b.reply(ZW);case 31:return zb.yield(bX(a,"MINI_APP_SDK_API_SEND_SCORE"),33);case 33:return zb.return();case 6:if(!uf(b.data,gkb,8,hJ)){zb.jumpTo(34);break}ad=zb.yield;rd=Yf(b.data,gkb,8,hJ);rd=Vf(rd,1);return ad.call(zb, bX(a,B4b(rd)),34);case 34:return zb.return();case 7:return ad=b.reply,rd=bJ(1),pd=$I(1),cf=a.callbacks.getLanguage(),pd=Bf(pd,4,aJ,Re(cf)),ad.call(b,dJ(rd,pd)),zb.yield(bX(a,"MINI_APP_SDK_API_GET_LANGUAGE"),36);case 36:return zb.return();case 8:if(!uf(b.data,ekb,10,hJ))return zb.return();Bb=Yf(b.data,ekb,10,hJ);dc=a.callbacks;Nb=dc.onSdkPerformanceUpdate;return zb.yield(a.sdkVersion.promise,37);case 37:return Nb.call(dc,Bb,zb.yieldResult),zb.return();case 9:if($f(b.data,11,hJ)==null)return b.reply(dJ(bJ(1), $I(2))),zb.return();Lc=Xf(b.data,11,hJ);a.callbacks.onShareInviteCode(Lc);b.reply(x4b);return zb.yield(bX(a,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),38);case 38:return zb.return();case 10:if(!x("enable_open_yt_content"))return b.reply(ZW),zb.return();if(!uf(b.data,Hjb,12,hJ))return b.reply(dJ(bJ(1),$I(2))),zb.return();Fc=Yf(b.data,Hjb,12,hJ);wc=Uf(Fc,1);kd=Vf(Fc,2);switch(kd){case 2:zc=2;break;default:zc=1;}a.callbacks.onOpenYTContent(wc,zc);b.reply(x4b);return zb.yield(bX(a,"MINI_APP_SDK_API_OPEN_CONTENT"), 39);case 39:return zb.return();case 11:if(uf(b.data,Djb,13,hJ)){zb.jumpTo(40);break}return zb.yield(a.callbacks.onShowMiniAppAd(2),41);case 41:return ld=zb.yieldResult,b.reply(dJ(bJ(1),Vjb(ld))),zb.yield(bX(a,"MINI_APP_SDK_API_REQUEST_AD"),42);case 42:return zb.return();case 40:ad=Yf(b.data,Djb,13,hJ);a:switch(Vf(ad,1)){case 1:ad={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};break a;case 2:ad={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:ad={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"};}Sd= ad;Jc=Sd.adType;ec=Sd.sdkApi;ad=zb.yield;rd=a.callbacks;pd=rd.onShowMiniAppAd;cf=Yf(b.data,Djb,13,hJ);cf=Uf(cf,2);return ad.call(zb,pd.call(rd,Jc,cf||void 0),43);case 43:return Xa=zb.yieldResult,b.reply(dJ(bJ(1),Vjb(Xa))),zb.yield(bX(a,ec),44);case 44:return zb.return();case 12:zb.setCatchFinallyBlocks(45);ad=a.callbacks;rd=ad.onMakeIapPurchase;pd=Yf(b.data,bkb,16,hJ);pd=Uf(pd,1);rd.call(ad,pd);b.reply(dJ(bJ(1),$I(1)));zb.leaveTryBlock(46);break;case 45:return Mb=zb.enterCatchBlock(),Na=cX,Cb=Mb, fc=a.callbacks,Cc="MINI_APP_SDK_API_MAKE_IAP_PURCHASE",zb.yield(a.sdkVersion.promise,47);case 47:Na(Cb,fc,Cc,zb.yieldResult),b.reply(ZW);case 46:return zb.yield(bX(a,"MINI_APP_SDK_API_MAKE_IAP_PURCHASE"),48);case 48:return zb.return();case 13:zb.setCatchFinallyBlocks(49);We=a.callbacks.onGetIapCatalog();ad=b.reply;rd=bJ(1);pd=$I(1);pd=Jf(pd,7,aJ,We);ad.call(b,dJ(rd,pd));zb.leaveTryBlock(50);break;case 49:return bh=zb.enterCatchBlock(),Uj=cX,Hf=bh,bf=a.callbacks,Ci="MINI_APP_SDK_API_GET_IAP_CATALOG", zb.yield(a.sdkVersion.promise,51);case 51:Uj(Hf,bf,Ci,zb.yieldResult),b.reply(ZW);case 50:return zb.return();case 14:zb.setCatchFinallyBlocks(52);pj=a.callbacks.onGetIapEntitlements(Yf(b.data,akb,17,hJ));ad=b.reply;rd=bJ(1);pd=$I(1);pd=Jf(pd,8,aJ,pj);ad.call(b,dJ(rd,pd));zb.leaveTryBlock(53);break;case 52:return el=zb.enterCatchBlock(),fl=cX,ch=el,qj=a.callbacks,rj="MINI_APP_SDK_API_GET_IAP_ENTITLEMENTS",zb.yield(a.sdkVersion.promise,54);case 54:fl(ch,qj,rj,zb.yieldResult),b.reply(ZW);case 53:return zb.return();}})})}; var aX=function(a,b){ra(function(c){a.channel.send(b);c.jumpToEnd()})},dX=function(a,b,c){this.callbacks=a; var d=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;a=H3a(b,new URL(c.toString()).origin);this.gameSnacks=new Q3a(a);this.gameSnacks.page.onReady(function(){d.callbacks.onFirstFrameReady()}); this.gameSnacks.userActivity.onUserActivity(function(){d.callbacks.onClick()},1E4); this.gameSnacks.game.onReady(function(){var e,f;(f=(e=d.callbacks).onGameReady)==null||f.call(e)}); this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(e,f){try{d.callbacks.onSendHighScore(f)}catch(h){cX(h,d.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}}); this.gameSnacks.storage.onSave(function(e,f){var h;return ra(function(m){if(m.nextAddress==1)return m.setCatchFinallyBlocks(2),m.yield(d.callbacks.onSave(d.decoder.decode(f)),4);if(m.nextAddress!=2)return m.leaveTryBlock(0);h=m.enterCatchBlock();cX(h,d.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return m.return()})}); this.gameSnacks.storage.onLoad(function(){var e,f;return ra(function(h){if(h.nextAddress==1)return h.setCatchFinallyBlocks(2),h.yield(d.callbacks.onLoad(),4);if(h.nextAddress!=2)return e=h.yieldResult,h.return(d.encoder.encode(e));f=h.enterCatchBlock();cX(f,d.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return h.return(d.encoder.encode(""))})}); this.gameSnacks.init()}; k(dX,$W);dX.prototype.onAudioToggled=function(a,b){$W.prototype.onAudioToggled.call(this,a,b===void 0?!0:b);var c;(c=this.gameSnacks)==null||c.audio.update(a)}; dX.prototype.onPause=function(){$W.prototype.onPause.call(this);var a;(a=this.gameSnacks)==null||a.game.pause()}; dX.prototype.onResume=function(){$W.prototype.onResume.call(this);var a;(a=this.gameSnacks)==null||a.game.resume()}; function cX(a,b,c,d){c=c===void 0?"MINI_APP_SDK_API_UNSPECIFIED":c;d=d===void 0?"":d;var e=new Dl;c={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:d,sdkApi:c};a instanceof Error&&(e.message=a.message,e.name=a.name,a.cause instanceof f4b&&a.cause.rpcErrorCode!==void 0&&(c.rpcErrorCode=a.cause.rpcErrorCode));var f;(f=b.onError)==null||f.call(b,{loggingError:e,metadata:c})} function C4b(a,b,c,d){switch(a){case"MINI_APP_SOURCE_GAMESNACKS":return new dX(b,c,d);default:return new y4b(b,c,d);}} function z4b(a){switch(a){case 1:return"MINI_APP_ERROR_SOURCE_CONSOLE";case 2:return"MINI_APP_ERROR_SOURCE_UNCAUGHT";case 3:return"MINI_APP_ERROR_SOURCE_SDK";case 4:return"MINI_APP_ERROR_SOURCE_SDK_INTERNAL";case 5:return"MINI_APP_ERROR_SOURCE_SDK_SERVER";default:return"MINI_APP_ERROR_SOURCE_UNSPECIFIED";}} function A4b(a){switch(a){case 1:return"MINI_APP_SDK_ERROR_TYPE_API_UNAVAILABLE";case 2:return"MINI_APP_SDK_ERROR_TYPE_INVALID_PARAMS";case 3:return"MINI_APP_SDK_ERROR_TYPE_SIZE_LIMIT_EXCEEDED";default:return"MINI_APP_SDK_ERROR_TYPE_UNSPECIFIED";}} function B4b(a){switch(a){case 1:return"MINI_APP_SDK_API_FIRST_FRAME_READY";case 9:return"MINI_APP_SDK_API_GAME_READY";case 2:return"MINI_APP_SDK_API_LOAD_DATA";case 3:return"MINI_APP_SDK_API_SAVE_DATA";case 4:return"MINI_APP_SDK_API_SEND_SCORE";case 5:return"MINI_APP_SDK_API_ON_AUDIO_ENABLED_CHANGE";case 6:return"MINI_APP_SDK_API_ON_PAUSE";case 7:return"MINI_APP_SDK_API_ON_RESUME";case 8:return"MINI_APP_SDK_API_GET_LANGUAGE";case 10:return"MINI_APP_SDK_API_IS_AUDIO_ENABLED";case 12:return"MINI_APP_SDK_API_SHARE_INVITE_CODE"; case 13:return"MINI_APP_SDK_API_ON_GAME_DATA_AVAILABLE";case 15:return"MINI_APP_SDK_API_OPEN_CONTENT";default:return"MINI_APP_SDK_API_UNSPECIFIED";}} ;var E4b=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("LswnMb"),2);a=D4b;return b.return(a)})},F4b=yD(function(){return E4b()},{debugName:"miniAppSplashScreenViewModel"}); Gn(xD,function(a){a.registerLoadFn("miniAppSplashScreenViewModel","LswnMb",E4b)});var H4b=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("UG0mqc"),2);a=G4b;return b.return(a)})},I4b=yD(function(){return H4b()},{debugName:"miniAppTopBarViewModel"}); Gn(xD,function(a){a.registerLoadFn("miniAppTopBarViewModel","UG0mqc",H4b)});var J4b=new Bn("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var L4b=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("s649j"),2);a=K4b;return b.return(a)})},M4b=yD(function(){return L4b()},{debugName:"playerDisclosureViewModel"}); Gn(xD,function(a){a.registerLoadFn("playerDisclosureViewModel","s649j",L4b)});var N4b=new Bn("DESKTOP_CURRENT_PAGE");var O4b=new Bn("NAVIGATION_CONFIRMATION_SERVICE");var P4b=O(function(a){var b=a.data;var c=!1,d=new d4b,e=void 0,f=void 0,h=Fn().resolve(c4b),m=new W3b,p=void 0,q=void 0,t=[],u=void 0,v=void 0,w=!1,y=!1,A=!1,C=!1,I=new nj,K=Fn().resolve(J4b),N=Fn().resolve(C3b),L=Fn().resolve(Cn(O4b)),R,W=(R=Fn().resolve(Cn(N4b)))==null?void 0:R.getCurrentPage(),S=!1,Y=0,da=0,Aa=function(Ma){Ma.preventDefault();return Ma.returnValue=""},Sa,Ua=l(ip(!((Sa=SK("yt-mini-app-is-audio-enabled"))!=null&&!Sa),void 0,"wuvn6")),qb=Ua.next().value,ab=Ua.next().value,La,ib=l(ip(!((La= SK("exit-mini-app-seen-state"))==null||!La),void 0,"V2mUhf")),sb=ib.next().value,Oa=ib.next().value,Ca=l(ip(!1,void 0,"I7B2Pb")),eb=Ca.next().value,Qa=Ca.next().value,Bb=l(ip(void 0,void 0,"H3mEq")),dc=Bb.next().value,Nb=Bb.next().value,Lc=l(ip(void 0,void 0,"yRtXLd")),Fc=Lc.next().value,wc=Lc.next().value,kd=l(ip(!0,void 0,"S7l5fd")),zc=kd.next().value,ld=kd.next().value,Sd=l(ip(!1,void 0,"QZblub")),Jc=Sd.next().value,ec=Sd.next().value,Xa=l(ip(!1,void 0,"rRE18b")),Mb=Xa.next().value,Na=Xa.next().value, Cb=l(ip(void 0,void 0,"Mfdyub")),fc=Cb.next().value,Cc=Cb.next().value,We=l(ip(0,void 0,"A3hOKe")),bh=We.next().value,Uj=We.next().value,Hf=sw("mini-app-container-view-model"),bf=l(ip(!1,void 0,"CVCHTd")),Ci=bf.next().value,pj=bf.next().value,el=function(){return b().isEmbeddedInWebview},fl=function(){return b().hasPlayNextShelf}; qw(function(){if(b().isEmbeddedInWebview&&x("enable_mini_app_splash_screen_loading_progress_updates")){var Ma=setInterval(function(){da+=(Math.random()*.5+.5)*31250;da>15E6&&clearInterval(Ma);jo()},500); zp(function(){clearInterval(Ma)})}var Sb,$b=(Sb=z(b().contentDisclosure,Qqb))==null?void 0:Sb.animationParams; if(($b==null?0:$b.shouldHide)&&($b==null?0:$b.hideDelaySecs)){var ic=setTimeout(function(){pj(!0)},$b.hideDelaySecs*1E3); zp(function(){clearTimeout(ic)})}}); DH("yt-page-type-changed",function(Ma){if(x("enable_is_mini_app_page_active_bugfix"))Ma.detail.newPageSubtype==="mini_app"&&Ma.detail.newPageType==="ytd-browse"||!zc()||zb();else if(Ma=LSb(),Ma!==zc())if(ld(Ma),Ma){var Sb;Ma=(Sb=b().playableId)==null?void 0:Sb.toString();Ma!==void 0&&window.location.href.includes(Ma)&&!y&&(C=!0,qj(),Vi.value&&um(Vi.value))}else Ma||zb()}); DH("yt-action",function(Ma){Ma.detail.actionName==="yt-engagement-panel-visible-changed"&&Ma.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&Ma.detail.args[2]==="PAmini_app_panel"&&zb();x("enable_is_mini_app_page_active_bugfix")?Ma.detail.actionName==="yt-history-load"&&!zc()&&(W==null?0:W.active)?(ld(!0),qj(),!Vi.value||!XW()&&b().showSignInDialogCommand||um(Vi.value)):Ma.detail.actionName==="yt-history-load"&&zc()&&!b().isEmbeddedInWebview&&cf():zc()&&Ma.detail.actionName==="yt-history-load"&&( C?C=!1:b().isEmbeddedInWebview||cf())}); zp(function(){rj()}); lw(function(){qj()},"pRcM2c"); var ch=function(Ma){x("enable_mini_app_container_focus_entity")&&Bu(dA("booleanEntity","mini_app_has_focus",{key:"mini_app_has_focus",value:Ma}))},qj=function(){var Ma=b().playableId,Sb=b().localReleaseId,$b=b().derivedDeviceInterface; if(y)fo(new Dl("[MiniAppContainerViewModel] onEnter was called more than once"));else{y=!0;e=new K3b(Ma,Sb,$b,document.visibilityState==="visible");O3b(e);f=new p4b(Ma);h.setMiniAppId(Ma);X3b(m,{showInterstitialAdCommand:b().showInterstitialAdCommand,showRewardedAdCommand:b().showRewardedAdCommand,isEmbeddedInWebview:b().isEmbeddedInWebview,playLogger:e});Xl()&&(v=document.body.style.backgroundColor,$ia("black"));gi();sj();I=new nj;if(b().isEmbeddedInWebview){if(Ma=new URLSearchParams(window.location.search).get("postPlayNonce"))M3b(e, Ma),S=!0;d.initialize({onAudioStateLoaded:function(ic){pd(ic)}, onGiftReceived:function(ic){if(x("enable_pass_gift_data_to_mini_app"))try{var Xc=ikb(wda(ic));if(Xc){var ue;(ue=q)==null||ue.sendPdgGiftData(Xc)}}catch(je){fo(je)}}, onMuteMiniApp:function(){pd(!1)}, onUnmuteMiniApp:function(){pd(!0)}, onExit:function(){}, onPostPlayNonceReceived:function(ic){S||(M3b(e,ic),S=!0)}, confirmExitMiniApp:function(){var ic,Xc,ue;return ra(function(je){if(je.nextAddress==1)return b().confirmExitMiniAppCommand?je.yield(Promise.race([I.promise,Promise.resolve(!1)]),2):je.return();(ic=je.yieldResult)?!b().confirmExitMiniAppCommandEdu||(ue=(Xc=sb)==null?void 0:Xc())!=null&&ue?Tf(b().confirmExitMiniAppCommand):(Tf(b().confirmExitMiniAppCommandEdu),RK("exit-mini-app-seen-state","true",2592E6)):Tf(b().closeMiniAppCommand);je.jumpToEnd()})}, onNativeBenchmarkingMessageReceived:function(ic){ic=Bjb(wda(ic));if(uf(ic,zi,3,yjb)){var Xc=Yf(ic,zi,3,yjb),ue=F3b();var je=Ncb(ue.getSeconds())-Ncb(Xc.getSeconds());Xc=Pf(ue,2)-Pf(Xc,2);je<0&&Xc>0?(je+=1,Xc-=1E9):je>0&&Xc<0&&(--je,Xc+=1E9);je=new xi().setSeconds(je);je=zf(je,2,Ke(Xc),0);Gf(ic,1,je)}var Dg;(Dg=q)==null||Dg.returnNativeBenchmarkingMessage(ic)}, multiplayer3pAckStateLoaded:function(ic){cf(ic)}, exitMiniAppSeenStateLoaded:function(ic){b().confirmExitMiniAppCommandEdu&&Oa(ic)}, onNavigateToNewMiniApp:function(){Tf(b().onNavigateToNewMiniAppCommand)}, onGameDataAvailable:function(ic){ic=new URLSearchParams(ic);var Xc=void 0;ic.has("invite_code")&&(Xc=new Jjb,ic=ic.get("invite_code"),Xc=fg(Xc,1,ic));if(ic=Xc){var ue;(ue=q)==null||ue.sendGameData(ic)}}, onPauseMiniApp:function(){c=!0;ad()}, onResumeMiniApp:function(){c=!0;rd()}, onPausePlayableDialog:function(){A=!0;ad()}, onResumePlayableDialog:function(){A=!1;rd()}, onAdFinished:function(ic,Xc){m.onAdFinished(ic,Xc)}}); b().showMultiplayer3pConsentDialogCommand||I.resolve(!0);Tf(b().onContainerReadyCommand)}else M3b(e),I.resolve(!0),b().runAttestationCommand&&L3b(e).then(function(ic){var Xc=z(E3b(b().runAttestationCommand),Zkb);Xc&&Xc.ids&&(Xc.ids.push({postPlayNonce:ic}),Tf(b().runAttestationCommand))}); q4b(f,L3b(e));L3b(e).then(function(ic){ic={miniAppPlayData:{postPlayNonce:ic}};var Xc,ue=(Xc=b().loggingDirectives)==null?void 0:Xc.trackingParams;ue&&gz().stateChanged(ue,ic)}); Ma=b().showSignInDialogCommand;!XW()&&Ma&&(RK("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),Tf(Ma));b().confirmExitMiniAppCommand&&L&&(Ma=E3b(b().confirmExitMiniAppCommand))&&L.setCustomConfirmationCommand(Ma);ch(!0)}},rj=function(){v&&$ia(v); w=!1;u&&u.release();f.flush().catch(function(Ma){fo(Ma)}); h.flush().catch(function(Ma){fo(Ma)}); Q3b(e);lo();q=void 0;K.removeAllWithPrefix("yt-mini-app-share");ch(!1)},zb=function(){ld(!1); rj();Qa(!1);Cc(void 0);Nb(void 0);wc(void 0);da=Y=0;Uj(0);y=!1},ad=function(){var Ma; (Ma=q)==null||Ma.onPause();u&&u.release();f.flush().catch(function(Sb){fo(Sb)}); h.flush().catch(function(Sb){fo(Sb)}); P3b(e);ec(!0);ch(!1)},rd=function(){var Ma; (Ma=q)==null||Ma.onResume();sj();Ma=e;Ma.isForeground=!0;WW(Ma,"PLAY_EVENT_TYPE_PLAY_RESUME");ec(!1);ch(!0)},pd=function(Ma){var Sb; (Sb=q)==null||Sb.onAudioToggled(Ma);ab(Ma)},cf=function(Ma){b().showMultiplayer3pConsentDialogCommand&&(b().isEmbeddedInWebview&&Ma!==void 0&&I.resolve(Ma),!Ma&&LSb()&&Tf(b().showMultiplayer3pConsentDialogCommand))},np=function(){var Ma,Sb,$b,ic; return ra(function(Xc){if(Xc.nextAddress==1){!b().isLivestream||b().disableVideoCapture||(Ma=q)!=null&&Ma.sendStartGameFrameCapture();Sb=new URL(window.location.href).searchParams;if(Sb.has("invite_code")){var ue=new Jjb,je=Sb.get("invite_code");$b=fg(ue,1,je);(ic=q)==null||ic.sendGameData($b)}eb()||(Qa(!0),ue=e,ue.state!==1?fo(new Dl("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+I3b[ue.state])):(Ema("mini_app_ids_without_game_ready").includes(ue.JSC$14397_miniAppId)&&(ue.gameReady= !0),ue.state=2,ue.beforeReady=!1,VW(ue,"ma_ffr"),WW(ue,"PLAY_EVENT_TYPE_PLAY_READY")));return Xc.yield(I.promise,2)}Tf(b().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();b().isEmbeddedInWebview||cf();Xc.jumpToEnd()})},jn=function(){var Ma=e; Ma.gameReady=!0;VW(Ma,"ma_gr")},Rh=function(Ma){var Sb; return ra(function($b){if($b.nextAddress==1)return $b.setCatchFinallyBlocks(2),$b.yield(s4b(f,Ma),4);if($b.nextAddress!=2)return $b.leaveTryBlock(0);Sb=$b.enterCatchBlock();Tf(b().showSavingErrorPopupCommand);throw Sb})},If=function(){var Ma,Sb; return ra(function($b){if($b.nextAddress==1)return $b.setCatchFinallyBlocks(2),$b.yield(r4b(f),4);if($b.nextAddress!=2)return Ma=$b.yieldResult,$b.return(Ma);Sb=$b.enterCatchBlock();Tf(b().showLoadingErrorDialogCommand);throw Sb})},gl=function(Ma){e.logError(Ma)},op=function(Ma,Sb,$b){S3b(e,Ma,Sb,$b)},kn=function(Ma,Sb){U3b(e,Ma,Sb)},hl=function(){b().isEmbeddedInWebview||sn(); R3b(e,!0);w||(window.addEventListener("beforeunload",Aa,{capture:!0}),w=!0)},sm=function(Ma){var Sb,$b,ic,Xc,ue,je,Dg; return ra(function(Jl){if(Jl.nextAddress==1)return h&&(!p||p0?Jl.yield(h.reportMiniAppValueWithRateLimit(Ma),3):Jl.jumpTo(0);Sb=Jl.yieldResult;$b=l(Sb);ic=$b.next().value;Xc=$b.next().value;ue=ic;je=Xc;((Dg=ue)==null?0:Dg.displayString)&&je&&(Nb(je),wc(ue.displayString));Jl.jumpToEnd()})},Vj=function(Ma){var Sb=b().onBenchmarkingMessageReceivedCommand; if(Sb){var $b=F3b();Jf(Ma,3,yjb,$b);UW(Sb,Cjb(Ma))}},Di=function(){var Ma=b().iapPurchaseCommand; Ma&&UW(Ma)},Gh=function(){var Ma=new Pjb,Sb=[Ojb(Njb("sku-a"),"$4.99"), Ojb(Njb("sku-b"),"$1.99"),Ojb(Njb("sku-c"),"$9.99"),Ojb(Njb("sku-d"),"$0.99")];return Kf(Ma,1,Sb)},ho=function(){var Ma=new Tjb,Sb=[Sjb(Rjb("sku-a"),1), Sjb(Rjb("sku-b"),2),Sjb(Rjb("sku-c"),1),Sjb(Rjb("sku-d"),1)];return Kf(Ma,1,Sb)},Bk=function(Ma){var Sb=b().onGameFrameReceivedCommand; if(Sb){var $b=new CJ;var ic=new Bnb;var Xc=Rf(Ma,1);ic=eg(ic,1,Xc);Ma=Uf(Ma,2);Ma=fg(ic,2,Ma);$b=Gf($b,2,Ma);UW(Sb,DJ($b))}},Nq=function(Ma){var Sb=b().onGameAudioDataReceivedCommand; if(Sb){var $b=new CJ;var ic=new Dnb;Ma=Uf(Ma,1);ic=fg(ic,1,Ma);$b=Gf($b,4,ic);UW(Sb,DJ($b))}},io=function(){var Ma=new URLSearchParams(window.location.search); if(b().isEmbeddedInWebview&&Ma&&Ma.get("override_hl")==="true"&&Ma.get("hl"))return Ma.get("hl");Ma=document.documentElement.lang;return Ma!==""?Ma:vK},is=function(Ma){var Sb=b().onShareInviteCodeCommand; if(Sb)if(b().isEmbeddedInWebview){var $b=new esb;Ma=fg($b,1,Ma);UW(Sb,gsb(Ma))}else K.addClientParams(b().inviteCodeShareClientParamIdentifier,{miniAppClientParams:{inviteCode:Ma}}),Tf(Sb)},Ei=function(Ma,Sb){var $b,ic,Xc,ue,je; return ra(function(Dg){if(Dg.nextAddress==1){$b=b().onMiniAppOpenYtContentRequested;if(!(h&&x("enable_open_yt_content")&&$b))return Dg.jumpTo(0);if(b().isEmbeddedInWebview){ic=new CJ;var Jl=new pob;Jl=fg(Jl,1,Ma);Xc=hg(Jl,2,Sb);Gf(ic,7,Xc);UW($b,DJ(ic));return Dg.jumpTo(0)}return(ue=Sb===1)?Dg.yield(h.validateMiniAppVideoIdWithRateLimit(Ma),5):Dg.jumpTo(4)}if(Dg.nextAddress!=4&&(je=Dg.yieldResult,je!=="OK"))return Dg.return();N.addClientData("content_id",Ma);N.addClientData("content_type",Sb.toString()); Tf($b);Dg.jumpToEnd()})},jo=function(){var Ma=Math.log(1+(x("enable_mini_app_splash_screen_loading_progress_updates")?Math.max(Y,da):Y)/15E6*9)/Math.log(10); Ma=Math.min(x("reserve_20_percent_loading_progress_for_native")?.2+.8*Ma:Ma,.99);Uj(Ma);tm(Ma)},Ui=function(Ma){Y+=Pf(Ma,3); jo()},tm=zh(function(Ma){var Sb=b().updateLoadingProgressCommand; if(Sb){var $b=new xnb;Ma=Bf($b,3,BJ,Ee(Ma));UW(Sb,Anb(Ma))}},100),fi=function(Ma,Sb){switch(Ma){case 2:return Z3b(m); case 3:return a4b(m,Sb);default:return Promise.reject(Error("Unsupported ad type"));}},sj=function(){var Ma,Sb; ((Ma=ua.navigator||null)==null?void 0:(Sb=Ma.wakeLock)==null?void 0:Sb.request)!=null&&(ua.navigator||null).wakeLock.request("screen").then(function($b){u=$b}).catch(function(){})},Vi=tw("iframe"); lw(function(){b().isSupportedCountry&&!b().isIneligibleAgeRating&&(XW()||x("enable_sign_in_promo")||!b().showSignInDialogCommand?Vi.value&&um(Vi.value):Tf(b().onMiniAppReadyCommand))},"X1yBOb"); var il=function(){return D("iframe",{class:"ytMiniAppContainerViewModelIframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return eb()?0:-1}, title:function(){return b().title}, el:Vi})},um=function(Ma,Sb){Sb=Sb===void 0?!1:Sb; var $b=Oq();if($b&&(Sb||$b.toString()!==Ma.getAttribute("src"))){q=C4b(b().source,{isAudioEnabled:qb,onFirstFrameReady:np,onGameReady:jn,onSave:Rh,onLoad:If,onError:gl,onSdkCalled:op,onSdkPerformanceUpdate:kn,onClick:hl,onSendHighScore:sm,onBenchmarkingMessageReceived:Vj,getLanguage:io,onShareInviteCode:is,onResourceLoaded:Ui,onOpenYTContent:Ei,onShowMiniAppAd:fi,onGameFrameReceived:Bk,onGameAudioReceived:Nq,onMakeIapPurchase:Di,onGetIapCatalog:Gh,onGetIapEntitlements:ho},Ma,$b);Qi(Ma,"load",function(){VW(e, "ma_il");Qi(Ma,"load",function(){um(Ma,!0)})}); var ic=ll("mini_app_container_iframe_src_update_delay_ms");b().isEmbeddedInWebview&&!Sb&&ic>0?H3b(Ma,$b,ic):Tb(Ma,$b)}},Oq=function(){var Ma=b().url; if(Ma&&(Ma=Lk(Ma),Ma!==null)){if(b().source&&b().source==="MINI_APP_SOURCE_GAMESNACKS")Ma=eia(Ma,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(x("enable_origin_query_parameter_bugfix")){var Sb=Aca(Bca(Ma.toString()));Sb=new URLSearchParams(Sb||"");Sb.set("origin",window.location.origin);Ma=hia(Ma,Sb.toString())}return Ma}},Wj=function(){var Ma={}; Ma=U("ytMiniAppContainerViewModelLoadingScreen",(Ma.ytMiniAppContainerViewModelLoadingScreenFadeOut=eb,Ma));var Sb=function(){return eb()?1:bh()}; return D("div",{class:Ma},D(OC,{data:function(){return b().splashScreen}},{miniAppSplashScreenViewModel:function($b){return D(F4b,{data:$b.data, loadingProgress:Sb})}}))},ko=function(){var Ma={}; return D("div",{class:U("ytMiniAppContainerViewModelPauseInterstitial",(Ma.ytMiniAppContainerViewModelPauseInterstitialFadeOut=function(){return!Jc()},Ma.ytMiniAppContainerViewModelPauseInterstitialFadeIn=Jc,Ma))},D(OC,{data:function(){return b().splashScreen}},{miniAppSplashScreenViewModel:function(Sb){return D(F4b,{data:Sb.data, forPaused:!0})}}))},gi=function(){t=[]; t.push(Ri(window,"visibilitychange",function(){A||c&&el()||(document.visibilityState==="visible"?rd():ad())})); t.push(Ri(window,"pagehide",function(){rj()})); t.push(Ri(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&Hf.value.dispatchEvent(new Event("tap"))},0)})); t.push(Ri(Hf.value,"pointerdown",function(){R3b(e,!1)},!0)); t.push(Ri(Hf.value,"pause",function(){A=!0;ad()})); t.push(Ri(Hf.value,"play",function(){A=!1;rd()})); t.push(Ri(Hf.value,"exit",function(){rj()})); var Ma=navigator.keyboard,Sb=Ma&&Ma.lock;t.push(Ri(window,xdb,function(){Na(zdb());zdb()?(b().hasPlayNextShelf&&ii("ytMiniAppContainerViewModelHost","ytMiniAppContainerViewModelPositionRelativeToTop"),hi("ytMiniAppContainerViewModelContent","ytMiniAppContainerViewModelContentFullscreen"),Sb&&Ma.lock(["Escape"])):(b().hasPlayNextShelf&&hi("ytMiniAppContainerViewModelHost","ytMiniAppContainerViewModelPositionRelativeToTop"),ii("ytMiniAppContainerViewModelContent","ytMiniAppContainerViewModelContentFullscreen"), Sb&&Ma.unlock())})); b().showMultiplayer3pConsentDialogCommand&&t.push(Ri(window,"yt-playables-ack-3p-data-usage",function(){h.reportMiniAppUserSettings(!0)})); b().confirmExitMiniAppCommandEdu&&t.push(Ri(window,"yt-playables-exit-mini-app-dialog-seen",function(){RK("exit-mini-app-seen-state","true",2592E6)})); b().onGameAudioDataReceivedCommand&&t.push(Ri(window,"message",function($b){$b=$b.JSC$6269_event_;var ic,Xc=(ic=Vi.value)==null?void 0:ic.src;if(Xc&&$b.origin===new URL(Xc).origin&&$b.data&&$b.data.type==="GAME_AUDIO"&&$b.data.audio&&$b.data.audio.length>0)if(x("enable_sending_unwrapped_game_audio_as_serialized_metadata"))G3b(b().onGameAudioDataReceivedCommand,$b.data.audio);else{var ue=new FileReader;ue.onload=function(){var je=new CJ;var Dg=new Dnb;Dg=fg(Dg,1,ue.result);je=Gf(je,4,Dg);UW(b().onGameAudioDataReceivedCommand, DJ(je))}; ue.readAsDataURL(new Blob([$b.data.audio]))}}))},lo=function(){t.forEach(function(Ma){Xi(Ma)}); window.removeEventListener("beforeunload",Aa,{capture:!0})},Tf=function(Ma){Ma&&D3b(Ma,b().isEmbeddedInWebview||!1)},hi=function(Ma,Sb){Ma=l(Hf.value.getElementsByClassName(Ma)); for(var $b=Ma.next();!$b.done;$b=Ma.next())$b.value.classList.add(Sb)},ii=function(Ma,Sb){Ma=l(Hf.value.getElementsByClassName(Ma)); for(var $b=Ma.next();!$b.done;$b=Ma.next())$b.value.classList.remove(Sb)}; return function(){var Ma={};Ma=U("ytMiniAppContainerViewModelHost",(Ma.ytMiniAppContainerViewModelDesktop=!0,Ma.ytMiniAppContainerViewModelDesktopInPanel=function(){return b().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},Ma.ytMiniAppContainerViewModelIosWebView=Xl(),Ma.ytMiniAppContainerViewModelAndroidWebView=x("enable_android_web_view_top_insets_bugfix")&&Nna(),Ma.ytMiniAppContainerViewModelDisableWebViewInsets=x("disable_mini_app_container_web_view_insets")&&(Xl()||Nna()),Ma.ytMiniAppContainerViewModelNoTopBar= function(){return!b().topBar},Ma.ytMiniAppContainerViewModelPositionRelativeToTop=function(){return b().hasPlayNextShelf},Ma.ytMiniAppContainerViewModelDesktopPlayPage=function(){return b().hasPlayNextShelf},Ma.ytMiniAppContainerViewModelShowPeekBelow=function(){return!Mb()&&b().hasPlayNextShelf},Ma)); var Sb={};Sb=U("ytMiniAppContainerViewModelContent",(Sb.ytMiniAppContainerViewModelContentDesktopContent=!0,Sb.ytMiniAppContainerViewModelContentDesktopContentInPanel=function(){return b().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},Sb.ytMiniAppContainerViewModelDesktopPlayPage=function(){return b().hasPlayNextShelf},Sb)); return D("mini-app-container-view-model",{el:Hf},D("div",{class:Ma},D(P,{cond:function(){return b().topBar&&!Mb()}, then:function(){return D(OC,{data:function(){return b().topBar}},{miniAppTopBarViewModel:function($b){return D(I4b,{data:$b.data, isAudioEnabled:qb,onAudioToggled:function(ic){pd(ic)}, score:dc,formattedScore:Fc,onScoreChanged:function(ic){p=ic}, isEmbeddedInWebview:el,isSaved:fc,onSaveToggled:function(ic){Cc(ic)}, isExitMiniAppSeen:sb,isDesktopPlayPage:fl})}})}}),D("div",{class:Sb},D(P,{cond:zc, then:function(){return il()}}),D(P,{cond:function(){return b().isLivestream}, then:function(){return ko()}}),D(P,{cond:function(){return!b().isEmbeddedInWebview}, then:function(){return Wj()}}),D(OC,{data:function(){return b().contentDisclosure}},{playerDisclosureViewModel:function($b){$b=$b.data; var ic={};return D("div",{class:U("ytMiniAppContainerViewModelContentDisclosureOverlay",(ic.ytMiniAppContainerViewModelContentDisclosureOverlayHidden=Ci,ic))},D(M4b,{data:$b}))}}))))}()},"te"); P4b.idomCompat=!0;bB(P4b,"mini-app-container-view-model",{props:{data:$A}});var R4b=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("mFp4nf"),2);a=Q4b;return b.return(a)})},S4b=yD(function(){return R4b()},{debugName:"sponsorshipsHubPerkCard"}); Gn(xD,function(a){a.registerLoadFn("sponsorshipsHubPerkCard","mFp4nf",R4b)});var U4b=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("D98rie"),2);a=T4b;return b.return(a)})},V4b=yD(function(){return U4b()},{debugName:"sponsorshipsScrollableShelf"}); Gn(xD,function(a){a.registerLoadFn("sponsorshipsScrollableShelf","D98rie",U4b)});var X4b=O(function(a){var b=a.data;a={};return D("yt-sponsorships-hub",{class:U("ytdSponsorshipsHubHost",(a.ytdSponsorshipsHubHostIndented=function(){return b().indented},a))},D("div",{class:"ytdSponsorshipsHubHeader"},D("div",{class:"ytdSponsorshipsHubAvatarContainer"},D("div",{class:"ytdSponsorshipsHubAvatar"},D(OC,{data:function(){return b().avatar}},{avatarViewModel:zD})),D(P,{cond:function(){return b().badgeImage}, then:function(c){return D("div",{class:"ytdSponsorshipsHubBadgeContainer"},D("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},D("div",{class:"ytdSponsorshipsHubBadge"},D(eC,{data:c,targetWidth:24,targetHeight:24,alt:""}))))}})),D("div",{class:"ytdSponsorshipsHubDetails"},D("div",{class:"ytdSponsorshipsHubTierName"},function(){return b().tierName}),D("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return b().membershipType}),D("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"}, function(){return b().membershipDurationOrExpiry})),D("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},D(OC,{data:function(){return b().manageButton}},{buttonViewModel:function(c){return D(BD,{data:c.data, className:"ytdSponsorshipsHubManageButton"})}}),D(OC,{data:function(){return b().actionMenuButton}},{buttonViewModel:function(c){return D(BD,{data:c.data, className:"ytdSponsorshipsHubActionMenuButton"})}}))),D("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return b().perksTitle}),D(V4b,{data:function(){return{previousButton:b().previousPerkButton, nextButton:b().nextPerkButton}}, className:"ytdSponsorshipsHubPerksShelf"},D("div",{class:"ytdSponsorshipsHubPerkCards"},D(OC,{data:function(){return b().perkCards}},{sponsorshipsHubPerkCardViewModel:S4b}),D(P,{cond:function(){return b().viewAllPerksButton}, then:function(c){return D(W4b,{data:c})}}))))},"ue"); X4b.idomCompat=!0;var W4b=O(function(a){var b=a.data;return D("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},D(OC,{data:function(){return b().button}},{buttonViewModel:BD}),D("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},D("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return b().title}),D("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return b().subtitle})))},"ve"); W4b.idomCompat=!0;bB(X4b,"yt-sponsorships-hub",{props:{data:$A}});var Z4b=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("j4CAef"),2);a=Y4b;return b.return(a)})},$4b=yD(function(){return Z4b()},{debugName:"dualAvatarViewModel"}); Gn(xD,function(a){a.registerLoadFn("dualAvatarViewModel","j4CAef",Z4b)});var b5b=O(function(a){function b(){var t=m.value;if(t&&!p){var u,v=(u=t.parentElement)==null?void 0:u.parentElement;if(v)for(t=t.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),u=0;u0}, then:function(){return D("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),D("div",{class:"ytdSponsorshipsPerksListPerkCard"},D(P,{cond:function(){return u.icon}, then:function(y){return D(aC,{icon:function(){return y().iconType}, className:"ytdSponsorshipsPerksListPerkIcon"})}}),D("div",{class:"ytdSponsorshipsPerksListPerkInfo"},D("div",{class:"ytdSponsorshipsPerksListPerkTitle"},u.title),D("div",{class:"ytdSponsorshipsPerksListPerkDescription"},D(gC,{text:u.description})),D(P,{cond:function(){return u.instructions}, then:function(){var y,A;return D("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},D("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(y=u.instructions)==null?void 0:y.title),D("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},D(gC,{text:(A=u.instructions)==null?void 0:A.text})))}}))),D(P,{cond:function(){return u.emoji}, then:function(y){return D("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},D(mw,{each:function(){return y()}},function(A){return D(eC,{data:A, alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),D(a5b,{data:u}))})}})))},"we"); b5b.idomCompat=!0;var a5b=O(function(a){function b(h,m){return h===m} function c(){var h=e();h=z(h==null?void 0:h.badgesShelf,msb);return h!==void 0&&h!==null?h:{previousButton:{},nextButton:{}}} function d(){var h=f.value;if(h){var m=h.parentElement;if(m){h=h.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var p=0;p0}, then:function(){return D("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),D("div",{class:U("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(q.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return b(p(),e().currentBadgeIndex)},q.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!b(p(),e().currentBadgeIndex)},q))},D("div",{class:U("ytdSponsorshipsPerksListLoyaltyBadge",(t.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return b(p(),e().currentBadgeIndex)}, t.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!b(p(),e().currentBadgeIndex)},t))},D(P,{cond:function(){return m.image}, then:function(v){var w={};return D("div",{class:U((w.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return b(p(),e().currentBadgeIndex)},w.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!b(p(),e().currentBadgeIndex)},w))},D(eC,{data:v, alt:""}))}})),D("div",{class:U("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(u.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return b(p(),e().currentBadgeIndex)},u))},m.title)))})))}}))},"xe"); a5b.idomCompat=!0;bB(b5b,"yt-sponsorships-perks-list",{props:{data:$A}});bB(O(function(a){return D("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},D(P,{cond:function(){return a.data().image}, then:function(b){return D(eC,{className:"ytwFantasyEmptyStateViewModelImage",data:b,ariaHidden:!0,alt:""})}}),D(gC,{className:"ytwFantasyEmptyStateViewModelTitle", text:function(){return a.data().title}}),D(gC,{className:"ytwFantasyEmptyStateViewModelSubtitle", text:function(){return a.data().subtitle}}),D(OC,{data:function(){return a.data().primaryButton}},{buttonViewModel:function(b){return D(BD,{data:b.data, className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"ye"),"ytw-fantasy-empty-state-view-model",{props:{data:$A}});var c5b=new Bn("SECTION_LIST_RENDERER_TOKEN");var d5b;var e5b=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("RZekJ"),2);a=oNb;return b.return(a)})},f5b=yD(function(){return e5b()},{debugName:"smartimations"}); Gn(xD,function(a){a.registerLoadFn("smartimations","RZekJ",e5b)});var g5b=O(function(a){var b=a.data;var c=a.uniqueId;var d=a.overrides;a=Vo(function(){var e,f=((e=b().timedAnimationData)==null?void 0:e.animationTiming)||[];return{uniqueId:c(),timings:f,experimentEnabled:f.length>0,enabled:f.length>0}},void 0,"KTVG"); return D("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},D(f5b,{settings:a},D(OC,{data:function(){return b().buttonRenderer}},{buttonRenderer:function(e){return D(rQb,{data:e.data, buttonOverrides:d})}})))},"ze"); g5b.idomCompat=!0;bB(g5b,"timed-animation-button-renderer",{props:{data:$A,uniqueId:$A,overrides:$A}});var eX=function(){var a=E.apply(this,arguments)||this;a.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return a}; k(eX,E);g=eX.prototype;g.hasShowDialogCommand=function(a){return!!z(a,XJ)}; g.configureRendererStamper=function(){return{"data.avatarStack":{id:"avatar-stack",mapping:{avatarStackViewModel:{component:"yt-avatar-stack-view-model"}}},"data.membershipButton":{id:"sponsor-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[joinButtonOverrides]]"}},timedAnimationButtonRenderer:{component:"timed-animation-button-renderer",params:{uniqueId:"join-button"},properties:{overrides:"[[joinButtonOverrides]]"}}}},"data.purchaseButton":{id:"purchase-button", mapping:{buttonRenderer:"ytd-button-renderer"}},"data.analyticsButton":{id:"analytics-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}}; g.updateJoinButtonOverrides=function(){var a,b;(a=wt(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(b=a.polymerController)==null||b.set("overrides",this.joinButtonOverrides);if(a=wt(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))a.overrides=this.joinButtonOverrides}; g.handleButtonRefreshAction=function(a){if(a=z(a,jlb))this.set("data.membershipButton",a.membershipButton),this.notifyPath("data.membershipButton")}; g.onYtServiceRequestError=function(a){bSb(this.hostElement,kz(a.detail.error.message))}; g.onKeydown=function(a){if(a.key==="Enter"){var b;(b=this.data)!=null&&b.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}}; g.handleUnsubscribeAction=function(){var a,b,c;((a=this.data)==null?void 0:(b=a.membershipButton)==null?void 0:(c=b.buttonRenderer)==null?void 0:c.style)==="STYLE_PRIMARY"&&wt(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")}; ba.Object.defineProperties(eX.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}}, subscribed:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.subscriptionStateEntity)==null||!a.subscribed)}}, joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var a,b=(a=this.data)==null?void 0:a.membershipButton,c;a=(b==null?void 0:b.buttonRenderer)||z(b==null?void 0:(c=b.timedAnimationButtonRenderer)==null?void 0:c.buttonRenderer,TJ);return(a==null?void 0:a.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(a==null?void 0:a.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(a==null?void 0:a.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono", type:this.subscribed?"filled":"tonal"}}}, channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var a;if(this.hasShowDialogCommand((a=this.data)==null?void 0:a.navigationEndpoint))return 0}}, channelNameRole:{configurable:!0,enumerable:!0,get:function(){var a;if(this.hasShowDialogCommand((a=this.data)==null?void 0:a.navigationEndpoint))return"button"}}, hasAttributedTitle:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.attributedTitle)}}}); eX.prototype.onYtServiceRequestError=eX.prototype.onYtServiceRequestError;eX.prototype.updateJoinButtonOverrides=eX.prototype.updateJoinButtonOverrides;n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],eX.prototype,"actionHandlerBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],eX.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],eX.prototype,"ytRendererstamperBehavior",void 0); n([F(kC),r("design:type",Object)],eX.prototype,"ytdReduxBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],eX.prototype,"ytComponentBehavior",void 0);n([F(fhb),r("design:type",Object)],eX.prototype,"ironButtonState",void 0);n([M(),r("design:type",Object)],eX.prototype,"data",void 0);n([H("data.hideMembershipButtonIfUnsubscribed","subscribed"),r("design:type",Object),r("design:paramtypes",[])],eX.prototype,"hideJoin",null); n([M(),r("design:type",String)],eX.prototype,"subscribeKey",void 0);n([M({selectorArgs:["subscribeKey"],selector:lPb}),r("design:type",Object)],eX.prototype,"subscriptionStateEntity",void 0);n([H("subscriptionStateEntity"),M({reflectToAttribute:!0}),r("design:type",Object),r("design:paramtypes",[])],eX.prototype,"subscribed",null);n([H("subscribed","data.membershipButton"),r("design:type",Object),r("design:paramtypes",[])],eX.prototype,"joinButtonOverrides",null); n([H("data.navigationEndpoint"),r("design:type",Object),r("design:paramtypes",[])],eX.prototype,"channelNameTabIndex",null);n([H("data.navigationEndpoint"),r("design:type",Object),r("design:paramtypes",[])],eX.prototype,"channelNameRole",null);n([H("data.attributedTitle"),r("design:type",Boolean),r("design:paramtypes",[])],eX.prototype,"hasAttributedTitle",null); n([Lt("joinButtonOverrides"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],eX.prototype,"updateJoinButtonOverrides",null);n([Kt("yt-service-request-error"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],eX.prototype,"onYtServiceRequestError",null);n([gu({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],eX); var h5b=Uu()(eX,"ytd-video-owner-renderer",function(){if(d5b===void 0){var a=document.createElement("template");Q(a,"
"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);d5b=a}a=d5b;return a},{slotProps:["date"], allowedProps:["data","subscribeKey"],mode:1});var i5b=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("hnUp9b"),2);a=P4b;return b.return(a)})},j5b=yD(function(){return i5b()},{debugName:"miniAppContainerViewModel"}); Gn(xD,function(a){a.registerLoadFn("miniAppContainerViewModel","hnUp9b",i5b)});bB(O(function(a){var b=a.data;var c;a=l(ip(!((c=SK("yt-mini-app-is-theater-mode-enabled"))==null||!c),void 0,"IXxLcc"));var d=a.next().value,e=a.next().value;c=l(ip(!1,void 0,"m7PlTe"));var f=c.next().value,h=c.next().value;rw(function(){var q=Ri(window,xdb,function(){h(zdb())}); zp(function(){Xi(q)})}); var m,p=(m=Fn().resolve(Cn(c5b)))!=null?m:function(){return D("div",null)}; CH("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){e(!0);RK("yt-mini-app-is-theater-mode-enabled",!0,2592E3)}); CH("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){e(!1);RK("yt-mini-app-is-theater-mode-enabled",!1,2592E3)}); m={};c={};a={};return D("mini-app-play-page-renderer",{class:U("miniAppPlayPageRendererHost",(m.miniAppPlayPageRendererHostDetailsView=function(){return!d()},m))},D("div",{class:U("miniAppPlayPageRendererGameContainer",(c.miniAppPlayPageRendererGameContainerDetailsView=function(){return!d()},c))},D(OC,{data:function(){return b().containerViewModel}},{miniAppContainerViewModel:j5b}),D(P,{cond:function(){return b().channel&&b().subscribeButton}, then:function(){var q={};return D("div",{class:U("miniAppPlayPageRendererChannelContainer",(q.miniAppPlayPageRendererHideVisibility=function(){return f()},q))},D(OC,{data:function(){return b().channel}},{videoOwnerRenderer:function(t){return D(h5b,{data:t.data})}}),D(OC,{data:function(){return b().subscribeButton}},{subscribeButtonViewModel:function(t){return D(FD,{data:t.data, isOverlay:!1,animateWidth:!0})}}))}}),D(P,{cond:function(){return!d()&&b().description}, then:function(){var q={};return D("div",{class:U("miniAppPlayPageRendererMiniAppDescriptionWrapper",(q.miniAppPlayPageRendererHideVisibility=function(){return f()},q))},D("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return b().description}))}}),D(P,{cond:function(){return b().commentsSection}, then:function(){var q={};return D("div",{class:U((q.miniAppPlayPageRendererHideVisibility=function(){return f()},q))},D(OC,{data:function(){return b().commentsSection}},{sectionListRenderer:p}))}})),D("div",{class:U("miniAppPlayPageRendererPlayNextContainer",(a.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!d()},a.miniAppPlayPageRendererHideVisibility=function(){return f()},a))},D(OC,{data:function(){return b().sectionList}},{sectionListRenderer:p})))},"Ae"),"mini-app-play-page-renderer", {props:{data:$A}});var fX=function(){var a=E.apply(this,arguments)||this;a.isSearch=!1;a.isConstrainedList=!1;a.hasChipsBar=!1;a.inReplyPanel=!1;a.scrollUpButtonData={buttonViewModel:{iconName:"UP_ARROW",style:"BUTTON_VIEW_MODEL_STYLE_UNKNOWN",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_COMPACT"}};a.monitorScroll=!0;a.SCROLL_ANIMATION_DURATION_MS=300;a.nextContinuation={continuationType:"sectionListContinuation"};return a}; k(fX,E);g=fX.prototype; g.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedChannelFilterHeaderRenderer:{component:"ytd-feed-channel-filter-header-renderer",noInjection:!0},textHeaderRenderer:{component:"ytd-text-header-renderer",noInjection:!0},richListHeaderRenderer:{component:"ytd-rich-list-header-renderer",noInjection:!0},headerWithBackRenderer:{component:"yt-header-with-back-renderer",noInjection:!0},feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",noInjection:!0, properties:{isClipList:"[[isClipList]]"}},liveChatItemDisplayRenderer:{component:"yt-live-chat-item-display-renderer",noInjection:!0,params:{isHeader:!0}},chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0},alertBannerViewModel:{component:"yt-alert-banner-view-model",noInjection:!0}}},"data.subMenu":{id:"sub-menu",mapping:{searchSubMenuRenderer:{component:"ytd-search-sub-menu-renderer",noInjection:!0},channelSubMenuRenderer:{component:"ytd-channel-sub-menu-renderer",noInjection:!0}, channelListSubMenuRenderer:{component:"ytd-channel-list-sub-menu-renderer",noInjection:!0},sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",noInjection:!0}}},shownItems:{id:"contents",mapping:{itemSectionRenderer:{matcher:function(a){switch(a.sectionIdentifier){case"comment-item-section":return"ytd-comments";case"backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer";}}, properties:{isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},flowRootRenderer:{component:"ytd-flow-root-renderer", noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer", noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0}, miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer", noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations", mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}}},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}}; g.created=function(){var a=this;this.JSC$14527_scrollAnimation=new TW(function(b){a.hostElement.scrollTop=b})}; g.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}}; g.getItemsPath=function(){return"data.contents"}; g.replacePrimaryContent=function(a){this.set("data.contents",a)}; g.computeHasSortFilter=function(a){return!!a&&!!a.sortFilterSubMenuRenderer}; g.computeShouldScrollInPanel=function(a){var b;return!!(a==null?0:(b=a.scrollPaneStyle)==null?0:b.scrollable)}; g.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&Ct(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)}; g.scrollToTop=function(){this.hostElement.scrollTop=0}; g.scrollToItemSection=function(a){if(a=this.getItemByIdentifier(a))a=this.getScrollPositionForItem(a),this.hostElement.scrollTop!==a&&this.JSC$14527_scrollAnimation.start(this.hostElement.scrollTop,a,this.SCROLL_ANIMATION_DURATION_MS)}; g.getItemByIdentifier=function(a){var b=this.contents.querySelectorAll("ytd-item-section-renderer");if(b&&b.length!==0){var c=Array.from(b).findIndex(function(d){return d.sectionIdentifier===a}); return b[c===-1?0:c]}}; g.getScrollPositionForItem=function(a){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===a)return 0;a=vi(a).y+this.hostElement.scrollTop-vi(this.hostElement).y;return Math.min(a,this.hostElement.scrollHeight-this.hostElement.offsetHeight)}; ba.Object.defineProperties(fX.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.targetId)==="browse-feedFEclips"}}}); fX.prototype.onScroll=fX.prototype.onScroll;n([F(Yz.YtRendererBehavior),r("design:type",Object)],fX.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],fX.prototype,"ytRendererstamperBehavior",void 0);n([F(HQ.YtTaskEmitterBehavior),r("design:type",Object)],fX.prototype,"ytTaskEmitterBehavior",void 0);n([F(IQ.YtLazyListBehavior),r("design:type",Object)],fX.prototype,"ytLazyListBehavior",void 0); n([F(NTb.YtNextContinuationBehavior),r("design:type",Object)],fX.prototype,"ytNextContinuationBehavior",void 0);n([F(dIb),r("design:type",Object)],fX.prototype,"ytBooleanLogicBehavior",void 0);n([F(ZP),r("design:type",Object)],fX.prototype,"ytContinuationHandlerBehavior",void 0);n([M(),r("design:type",Object)],fX.prototype,"data",void 0);n([M({value:2}),r("design:type",Number)],fX.prototype,"initialCount",void 0);n([M({value:!0}),r("design:type",Boolean)],fX.prototype,"autoFill",void 0); n([M({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),r("design:type",Boolean)],fX.prototype,"hasSortFilter",void 0);n([M({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),r("design:type",Boolean)],fX.prototype,"hideBottomSeparator",void 0);n([M({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),r("design:type",Boolean)],fX.prototype,"shouldScrollInPanel",void 0);n([M(),r("design:type",Object)],fX.prototype,"isSearch",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],fX.prototype,"isConstrainedList",void 0);n([M({reflectToAttribute:!0}),r("design:type",String)],fX.prototype,"responsiveSizing",void 0);n([M(),r("design:type",Object)],fX.prototype,"hasChipsBar",void 0);n([M({reflectToAttribute:!0}),r("design:type",String)],fX.prototype,"pageSubtype",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],fX.prototype,"engagementPanel",void 0); n([M({reflectToAttribute:!0}),r("design:type",Boolean)],fX.prototype,"liveChatEngagementPanel",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],fX.prototype,"inReplyPanel",void 0);n([Tt("#action-button"),r("design:type",HTMLElement)],fX.prototype,"actionButton",void 0);n([M(),r("design:type",Object)],fX.prototype,"scrollUpButtonData",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],fX.prototype,"engagementPanelDropdown",void 0); n([M({reflectToAttribute:!0}),r("design:type",Boolean)],fX.prototype,"engagementPanelDialog",void 0);n([H("data"),r("design:type",Object),r("design:paramtypes",[])],fX.prototype,"isClipList",null);n([Tt("#contents"),r("design:type",HTMLElement)],fX.prototype,"monitorScrollElement",void 0);n([Tt("#contents"),r("design:type",HTMLElement)],fX.prototype,"contents",void 0);n([Kt("scroll"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],fX.prototype,"onScroll",null); n([gu({is:"ytd-section-list-renderer",disableElementRegistration:!0})],fX); Uu()(fX,"ytd-section-list-renderer",function(){if(z2b===void 0){var a=document.createElement("template");Q(a,"
\n
\n
\n
\n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);z2b=a}a=z2b;return a},{mode:1});var k5b;var l5b;var m5b;var gX=function(){return E.apply(this,arguments)||this}; k(gX,E);gX.prototype.freeTextValueChanged=function(){Xu(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])}; gX.prototype.updateFreeTextValueFromBinding=function(a){this.freeTextValue=a.detail.value}; ba.Object.defineProperties(gX.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var a,b,c=(b=(a=this.data)==null?void 0:a.responseMaxLength)!=null?b:500,d;return((d=this.freeTextValue)!=null?d:"").length>=c?"maxed-out":""}}}); gX.prototype.freeTextValueChanged=gX.prototype.freeTextValueChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],gX.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],gX.prototype,"data",void 0);n([M(),r("design:type",String)],gX.prototype,"freeTextValue",void 0);n([Tt("#user-input"),r("design:type",HTMLTextAreaElement)],gX.prototype,"input",void 0);n([H("freeTextValue"),r("design:type",Object),r("design:paramtypes",[])],gX.prototype,"characterLimitClass",null); n([Lt("freeTextValue"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],gX.prototype,"freeTextValueChanged",null);n([fu({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],gX); Tu(gX,"yt-free-text-input-flow-step-renderer",function(){if(m5b===void 0){var a=document.createElement("template");Q(a,"
");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;l5b===void 0&&(l5b=document.createElement("template"));var d=l5b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);m5b=a}a=m5b;return a},{mode:2});var hX=function(){var a=E.apply(this,arguments)||this;a.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return a}; k(hX,E);hX.prototype.handleFreeTextFlowStepInputChanged=function(a){Xu(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:a}}])}; n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],hX.prototype,"ytActionHandlerBehavior",void 0);n([F(kC),r("design:type",Object)],hX.prototype,"ytdReduxBehavior",void 0);n([M(),r("design:type",Object)],hX.prototype,"data",void 0);n([gu({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],hX); Tu(hX,"ytd-free-text-input-flow-step-renderer",function(){if(k5b!==void 0)return k5b;var a=document.createElement("template");Q(a,"\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return k5b=a},{mode:1});var n5b;var o5b;var p5b;var q5b=function(){return E.apply(this,arguments)||this}; k(q5b,E);n([M(),r("design:type",Object)],q5b.prototype,"data",void 0);n([fu({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],q5b); Tu(q5b,"yt-survey-answer-card-renderer",function(){if(p5b===void 0){var a=document.createElement("template");Q(a,"");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;o5b===void 0&&(o5b=document.createElement("template"));var d=o5b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);p5b=a}a=p5b;return a},{mode:2});var r5b;var s5b;var iX=function(){return E.apply(this,arguments)||this}; k(iX,E);g=iX.prototype;g.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)}; g.selectedItemChanged=function(a){Xu(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[a.feedbackToken||""]}])}; g.surveyAnswerCardRendererClicked=function(a){if(a.target&&z(a.model.item,ztb)){var b=a.target;a=z(a.model.item,ztb);a.onTapCommand?Zu(b,[a.onTapCommand],b):this.data.onTapCommand&&Zu(b,[this.data.onTapCommand],b);this.selectedItemChanged(a)}}; g.checkIsCancellationStyle=function(a){return a==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"}; g.updateSelectedItemFromBinding=function(a){this.selectedItem=a.detail.value}; iX.prototype.onSelectedItemChanged=iX.prototype.onSelectedItemChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],iX.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],iX.prototype,"data",void 0);n([M(),r("design:type",Object)],iX.prototype,"selectedItem",void 0);n([M({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),r("design:type",Boolean)],iX.prototype,"isCancellationStyle",void 0); n([Lt("selectedItem"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],iX.prototype,"onSelectedItemChanged",null);n([fu({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],iX); Tu(iX,"yt-survey-flow-step-renderer",function(){if(s5b===void 0){var a=document.createElement("template");Q(a,"\n\n\n\n\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;r5b===void 0&&(r5b=document.createElement("template"));var d=r5b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);s5b=a}a=s5b;return a},{mode:2});var jX=function(){var a=E.apply(this,arguments)||this;a.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return a}; k(jX,E);jX.prototype.handleSurveyFlowStepOptionChanged=function(a){this.ytdReduxBehavior.dispatch(aA({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:a}));Xu(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:a}}])}; n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],jX.prototype,"ytActionHandlerBehavior",void 0);n([F(kC),r("design:type",Object)],jX.prototype,"ytdReduxBehavior",void 0);n([M(),r("design:type",Object)],jX.prototype,"data",void 0);n([gu({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],jX); Tu(jX,"ytd-survey-flow-step-renderer",function(){if(n5b!==void 0)return n5b;var a=document.createElement("template");Q(a,"\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return n5b=a},{mode:1});var t5b;var u5b;var v5b=function(){return E.apply(this,arguments)||this}; k(v5b,E);n([M(),r("design:type",Object)],v5b.prototype,"data",void 0);n([gu({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],v5b); Tu(v5b,"ytd-metadata-line-renderer",function(){if(u5b!==void 0)return u5b;var a=document.createElement("template");Q(a,"
\n \n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return u5b=a},{mode:1});var kX=function(){return E.apply(this,arguments)||this}; k(kX,E);kX.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],kX.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],kX.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],kX.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],kX.prototype,"isMasthead",void 0);n([gu({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],kX); Tu(kX,"ytd-media-product-renderer",function(){if(t5b!==void 0)return t5b;var a=document.createElement("template");Q(a,"
\n \n
\n \n
\n
\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return t5b=a},{mode:1});var w5b;var lX=function(){return E.apply(this,arguments)||this}; k(lX,E);lX.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0}; lX.prototype.onBillboardImageLoaded=function(){Gt(this.hostElement,"yt-refit")}; lX.prototype.onBillboardImageLoaded=lX.prototype.onBillboardImageLoaded;n([F(Yz.YtRendererBehavior),r("design:type",Object)],lX.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],lX.prototype,"data",void 0);n([Tt("#billboardImage"),r("design:type",Object)],lX.prototype,"billboardImage",void 0);n([Kt("yt-img-shadow-loaded"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],lX.prototype,"onBillboardImageLoaded",null); n([gu({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],lX); Tu(lX,"ytd-billboard-masthead-renderer",function(){if(w5b!==void 0)return w5b;var a=document.createElement("template");Q(a,"\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return w5b=a},{mode:1});var x5b;var mX=function(){return E.apply(this,arguments)||this}; k(mX,E);mX.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],mX.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],mX.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],mX.prototype,"data",void 0);n([gu({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],mX); Tu(mX,"ytd-offer-detail-renderer",function(){if(x5b!==void 0)return x5b;var a=document.createElement("template");Q(a,"\n\n\n
\n \n
\n\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return x5b=a},{mode:1});var y5b;var nX=function(){return E.apply(this,arguments)||this}; k(nX,E);nX.prototype.configureRendererStamper=function(){return{"data.masthead":{id:"masthead",mapping:{billboardMastheadRenderer:"ytd-billboard-masthead-renderer",mediaProductRenderer:{component:"ytd-media-product-renderer",params:{isMasthead:!0}}}},"data.body":{id:"body",mapping:{offerDetailRenderer:"ytd-offer-detail-renderer"}}}}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],nX.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],nX.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],nX.prototype,"data",void 0);n([gu({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],nX); Tu(nX,"ytd-offer-detail-step-renderer",function(){if(y5b!==void 0)return y5b;var a=document.createElement("template");Q(a,"
\n
\n\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return y5b=a},{mode:1});var z5b;var oX=function(){var a=E.apply(this,arguments)||this;a.isInOfferModule=!1;return a}; k(oX,E);g=oX.prototype;g.computeHasEndpoint=function(){var a;return!((a=this.data)==null||!a.onClickCommand)}; g.dataChanged=function(){var a;if((a=this.data)==null?0:a.onClickCommand)this.hostElement.addEventListener("click",this.handleClickEvent),this.hostElement.addEventListener("keydown",this.onContentKeyDown),this.hostElement.addEventListener("keyup",this.onContentKeyUp),this.hostElement.setAttribute("tabindex","0"),this.hostElement.setAttribute("role","link")}; g.detached=function(){var a;if((a=this.data)==null?0:a.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)}; g.handleClickEvent=function(){var a;if((a=this.data)==null?0:a.onClickCommand){var b;this.componentBehavior.resolveCommand((b=this.data)==null?void 0:b.onClickCommand)}}; g.onContentKeyDown=function(a){a.key==="Enter"?this.handleClickEvent(a):a.key===" "&&a.preventDefault()}; g.onContentKeyUp=function(a){a.key===" "&&this.handleClickEvent(a)}; oX.prototype.dataChanged=oX.prototype.dataChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],oX.prototype,"ytRendererBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],oX.prototype,"componentBehavior",void 0);n([M(),r("design:type",Object)],oX.prototype,"data",void 0);n([M({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),r("design:type",Boolean)],oX.prototype,"hasEndpoint",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],oX.prototype,"isInOfferModule",void 0);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],oX.prototype,"dataChanged",null);n([gu({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],oX); Tu(oX,"ytd-channel-masthead-renderer",function(){if(z5b!==void 0)return z5b;var a=document.createElement("template");Q(a,"
\n \n \n
\n \n \n \n \n
\n
");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return z5b=a},{mode:1});var A5b;var B5b;var C5b;var pX=function(){return E.apply(this,arguments)||this}; k(pX,E);pX.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:u2a()},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:u2a()}}}; n([F($C.YtRendererstamperBehavior),r("design:type",Object)],pX.prototype,"ytRendererstamperBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],pX.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],pX.prototype,"data",void 0);n([fu({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],pX); Tu(pX,"yt-card-item-actions-renderer",function(){if(C5b===void 0){var a=document.createElement("template");Q(a,"
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;B5b===void 0&&(B5b=document.createElement("template"));var d=B5b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);C5b=a}a=C5b;return a},{mode:2});var D5b;var E5b;var qX=function(){return E.apply(this,arguments)||this}; k(qX,E);n([F(Yz.YtRendererBehavior),r("design:type",Object)],qX.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],qX.prototype,"data",void 0);n([fu({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],qX); Tu(qX,"yt-card-item-badge-renderer",function(){if(E5b===void 0){var a=document.createElement("template");Q(a,"
\n \n \n \n \n
\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;D5b===void 0&&(D5b=document.createElement("template"));var d=D5b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);E5b=a}a=E5b;return a},{mode:2});var F5b;var G5b;var H5b;var I5b;var J5b;var K5b;var rX=function(){return E.apply(this,arguments)||this}; k(rX,E);rX.prototype.textColorChanged_=function(){this.hostElement.style.color=nE[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]}; rX.prototype.textColorChanged_=rX.prototype.textColorChanged_;n([F(Yz.YtRendererBehavior),r("design:type",Object)],rX.prototype,"ytRendererBehavior",void 0);n([F(lE.YtCardItemBoxBehavior),r("design:type",Object)],rX.prototype,"ytCardItemBoxBehavior",void 0);n([M(),r("design:type",Object)],rX.prototype,"data",void 0);n([Lt("data.textColor"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],rX.prototype,"textColorChanged_",null); n([fu({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],rX); Tu(rX,"yt-card-item-text-renderer",function(){if(K5b===void 0){var a=document.createElement("template");Q(a,"\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;J5b===void 0&&(J5b=document.createElement("template"));var d=J5b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);K5b=a}a=K5b;return a},{mode:2});var sX=function(){return E.apply(this,arguments)||this}; k(sX,E);sX.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],sX.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],sX.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],sX.prototype,"data",void 0);n([fu({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],sX); Tu(sX,"yt-card-item-text-collection-renderer",function(){if(I5b===void 0){var a=document.createElement("template");Q(a,"
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;H5b===void 0&&(H5b=document.createElement("template"));var d=H5b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);I5b=a}a=I5b;return a},{mode:2});var L5b;var M5b;var tX=function(){return E.apply(this,arguments)||this}; k(tX,E);tX.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"themed-image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}},"data.textCollectionRenderer":{id:"card-item-text-collection-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}}; tX.prototype.computeImagePlacement_=function(a){return a||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"}; n([F($C.YtRendererstamperBehavior),r("design:type",Object)],tX.prototype,"ytRendererstamperBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],tX.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],tX.prototype,"data",void 0);n([M({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),r("design:type",String)],tX.prototype,"imagePlacement",void 0); n([fu({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],tX); Tu(tX,"yt-card-item-text-with-image-renderer",function(){if(M5b===void 0){var a=document.createElement("template");Q(a,"
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;L5b===void 0&&(L5b=document.createElement("template"));var d=L5b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);M5b=a}a=M5b;return a},{mode:2});var uX=function(){return E.apply(this,arguments)||this}; k(uX,E);uX.prototype.configureRendererStamper=function(){return{"data.errorTextRenderer":{id:"error-text-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"}}}}}; n([F($C.YtRendererstamperBehavior),r("design:type",Object)],uX.prototype,"ytRendererstamperBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],uX.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],uX.prototype,"data",void 0);n([fu({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],uX); Tu(uX,"yt-card-item-error-renderer",function(){if(G5b===void 0){var a=document.createElement("template");Q(a,"
\n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;F5b===void 0&&(F5b=document.createElement("template"));var d=F5b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);G5b=a}a=G5b;return a},{mode:2});var N5b;var O5b;var P5b;var Q5b;var vX=function(){return E.apply(this,arguments)||this}; k(vX,E);vX.prototype.configureRendererStamper=function(){return{"data.textCollectionRenderer":{id:"card-item-text-collection-renderer",mapping:{cardItemTextCollectionRenderer:"yt-card-item-text-collection-renderer"}},"data.buttonRenderer":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{iconSize:"[[iconSize]]"}}}}}}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],vX.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],vX.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],vX.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Number)],vX.prototype,"iconSize",void 0);n([fu({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],vX); Tu(vX,"yt-card-item-text-with-button-renderer",function(){if(Q5b===void 0){var a=document.createElement("template");Q(a,"
\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;P5b===void 0&&(P5b=document.createElement("template"));var d=P5b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Q5b=a}a=Q5b;return a},{mode:2});kE("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var wX=function(){return E.apply(this,arguments)||this}; k(wX,E);g=wX.prototype; g.configureRendererStamper=function(){return{"data.headingRenderer":{id:"heading-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"},cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer"}}},"data.descriptionRenderer":{id:"description-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.additionalInfoRenderer":{id:"additional-info-renderer", mapping:{cardItemActionsRenderer:{component:"yt-card-item-actions-renderer"},cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},themedImageRenderer:{component:"yt-themed-image-renderer"},cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}},"data.errorRenderer":{id:"error-renderer",mapping:{cardItemErrorRenderer:{component:"yt-card-item-error-renderer"}}},"data.headerPromoRenderer":{id:"header-promo-renderer", mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},"data.footerRenderer":{id:"footer-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}}; g.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"}; g.backgroundColorChanged_=function(){var a,b=(a=this.data)==null?void 0:a.backgroundColor;a=nE[b||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";wt(this.hostElement).querySelector("#main-content").style.backgroundColor=a}; g.headerPromoBackgroundColorChanged_=function(){var a,b=(a=this.data)==null?void 0:a.headerPromoBackgroundColor;a=nE[b||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";wt(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=a}; g.errorRendererVisibilityChanged_=function(){var a=this.isExpanded_,b;this.isErrorRendererVisible_=!((b=this.data)==null||!b.errorRenderer)&&!a}; g.onYtToggleButton_=function(a,b){this.isExpanded_=b.toggled}; wX.prototype.onYtToggleButton_=wX.prototype.onYtToggleButton_;wX.prototype.errorRendererVisibilityChanged_=wX.prototype.errorRendererVisibilityChanged_;wX.prototype.headerPromoBackgroundColorChanged_=wX.prototype.headerPromoBackgroundColorChanged_;wX.prototype.backgroundColorChanged_=wX.prototype.backgroundColorChanged_;n([F(Yz.YtRendererBehavior),r("design:type",Object)],wX.prototype,"ytRendererBehavior",void 0); n([F($C.YtRendererstamperBehavior),r("design:type",Object)],wX.prototype,"ytRendererstamperBehavior",void 0);n([F(lE.YtCardItemBoxBehavior),r("design:type",Object)],wX.prototype,"ytCardItemBoxBehavior",void 0);n([F(t2a.YtTappableItemBehavior),r("design:type",Object)],wX.prototype,"ytTappableItemBehavior",void 0);n([M(),r("design:type",Object)],wX.prototype,"data",void 0);n([M({value:!1}),r("design:type",Boolean)],wX.prototype,"isExpanded_",void 0); n([M({value:!1}),r("design:type",Boolean)],wX.prototype,"isErrorRendererVisible_",void 0);n([Lt("data.backgroundColor"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],wX.prototype,"backgroundColorChanged_",null);n([Lt("data.headerPromoBackgroundColor"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],wX.prototype,"headerPromoBackgroundColorChanged_",null); n([Lt("data.errorRenderer","isExpanded_"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],wX.prototype,"errorRendererVisibilityChanged_",null);n([Kt("yt-toggle-button"),r("design:type",Function),r("design:paramtypes",[Event,Object]),r("design:returntype")],wX.prototype,"onYtToggleButton_",null);n([fu({is:"yt-card-item-renderer",disableElementRegistration:!0})],wX); Tu(wX,"yt-card-item-renderer",function(){if(O5b===void 0){var a=document.createElement("template");Q(a,"
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;N5b===void 0&&(N5b=document.createElement("template"));var d=N5b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);O5b=a}a=O5b;return a},{mode:2});var xX=function(){return E.apply(this,arguments)||this}; k(xX,E); xX.prototype.configureRendererStamper=function(){return{"data.masthead":{id:"masthead",mapping:{billboardMastheadRenderer:"ytd-billboard-masthead-renderer",channelMastheadRenderer:"ytd-channel-masthead-renderer",mediaProductRenderer:{component:"ytd-media-product-renderer",params:{isMasthead:!0}}}},"data.body":{id:"body",mapping:{offerSectionRenderer:{component:"ytd-offer-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}},"data.coupon":{id:"coupon-section",mapping:{cardItemRenderer:{component:"yt-card-item-renderer"}}},"data.terms":{id:"terms-section", mapping:{offerSectionRenderer:{component:"ytd-offer-section-renderer"}}}}}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],xX.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],xX.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],xX.prototype,"data",void 0);n([gu({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],xX); Tu(xX,"ytd-offer-selection-step-renderer",function(){if(A5b!==void 0)return A5b;var a=document.createElement("template");Q(a,"
\n
\n
\n
");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return A5b=a},{mode:1});var R5b;var yX=function(){return E.apply(this,arguments)||this}; k(yX,E);yX.prototype.computeStyle=function(a){return a}; yX.prototype.computeImageWidth=function(a){return a==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90}; n([M({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),r("design:type",String)],yX.prototype,"containerStyle",void 0);n([M({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),r("design:type",String)],yX.prototype,"imageWidth",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],yX.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],yX.prototype,"data",void 0); n([gu({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],yX); Tu(yX,"ytd-confirmation-masthead-renderer",function(){if(R5b!==void 0)return R5b;var a=document.createElement("template");Q(a,"\n
\n\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return R5b=a},{mode:1});var S5b;var zX=function(){return E.apply(this,arguments)||this}; k(zX,E);zX.prototype.computeStyle=function(a){return a}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],zX.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],zX.prototype,"data",void 0);n([M({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),r("design:type",String)],zX.prototype,"containerStyle",void 0);n([gu({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],zX); Tu(zX,"ytd-purchase-complete-detail-renderer",function(){if(S5b!==void 0)return S5b;var a=document.createElement("template");Q(a,"\n\n\n\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return S5b=a},{mode:1});var T5b;var AX=function(){var a=E.apply(this,arguments)||this;a.scriptsAppended=!1;return a}; k(AX,E);AX.prototype.configureRendererStamper=function(){return{"data.masthead":{id:"masthead",mapping:{confirmationMastheadRenderer:"ytd-confirmation-masthead-renderer"}},"data.body":{id:"body",mapping:{purchaseCompleteDetailRenderer:"ytd-purchase-complete-detail-renderer"}},"data.shelf":{id:"shelf",mapping:{shelfRenderer:"ytd-shelf-renderer"}}}}; AX.prototype.onDataChanged=function(){var a=this.get("data.gtmId");a&&(uyb(a,Vk("GL","")),this.setupConversionTracking())}; AX.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var a=document.createElement("noscript");a.textContent="";document.body.prepend(a);this.scriptsAppended=!0}}; AX.prototype.onDataChanged=AX.prototype.onDataChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],AX.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],AX.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],AX.prototype,"data",void 0);n([M(),r("design:type",Object)],AX.prototype,"scriptsAppended",void 0); n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],AX.prototype,"onDataChanged",null);n([gu({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],AX); Tu(AX,"ytd-purchase-complete-step-renderer",function(){if(T5b!==void 0)return T5b;var a=document.createElement("template");Q(a,"
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return T5b=a},{mode:1});var U5b;var BX=function(){return E.apply(this,arguments)||this}; k(BX,E);BX.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],BX.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],BX.prototype,"data",void 0);n([gu({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],BX); Tu(BX,"ytd-ypc-transaction-error-message-renderer",function(){if(U5b!==void 0)return U5b;var a=document.createElement("template");Q(a,"\n
\n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return U5b=a},{mode:1});var V5b;var W5b;var CX=function(){var a=E.apply(this,arguments)||this;a.handlePhoneVerificationSuccess=function(b){if(a.isValidPhoneVerificationCompletionMessageEvent(b)){var c;((c=a.data)==null?0:c.nextStepCommand)&&a.ytComponentBehavior.resolveCommand(a.data.nextStepCommand)}}; return a}; k(CX,E);CX.prototype.isValidPhoneVerificationCompletionMessageEvent=function(a){if(a.data!=="yt-phone-verification-complete")return!1;a=Tc(a.origin);return a!==null&&a.includes("youtube.com")}; CX.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)}; CX.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)}; n([F(mz.YtComponentBehavior),r("design:type",Object)],CX.prototype,"ytComponentBehavior",void 0);n([M(),r("design:type",Object)],CX.prototype,"data",void 0);n([fu({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],CX); Tu(CX,"yt-feature-enablement-soft-entry-renderer",function(){if(W5b===void 0){var a=document.createElement("template");Q(a,"
\n \n \n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;V5b===void 0&&(V5b=document.createElement("template"));var d=V5b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);W5b=a}a=W5b;return a},{mode:1});var X5b;var Y5b;var Z5b;var $5b;var a6b=function(){return E.apply(this,arguments)||this}; k(a6b,E);n([M(),r("design:type",Object)],a6b.prototype,"data",void 0);n([fu({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],a6b); Tu(a6b,"yt-benefits-item-renderer",function(){if($5b===void 0){var a=document.createElement("template");Q(a,"
");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;Z5b===void 0&&(Z5b=document.createElement("template"));var d=Z5b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);$5b=a}a=$5b;return a},{mode:2});var b6b;var c6b;var DX=function(){return E.apply(this,arguments)||this}; k(DX,E);DX.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}}; DX.prototype.computeisWithoutPadding=function(){var a;return((a=this.data)==null?void 0:a.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"}; n([F($C.YtRendererstamperBehavior),r("design:type",Object)],DX.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],DX.prototype,"data",void 0);n([M({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),r("design:type",Boolean)],DX.prototype,"isWithoutPadding",void 0);n([fu({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],DX); Tu(DX,"yt-benefits-section-renderer",function(){if(c6b===void 0){var a=document.createElement("template");Q(a,"
");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;b6b===void 0&&(b6b=document.createElement("template"));var d=b6b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);c6b=a}a=c6b;return a},{mode:2});var EX=function(){return E.apply(this,arguments)||this}; k(EX,E);EX.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}}; EX.prototype.computeisUsingLargeWidth=function(){var a;return((a=this.data)==null?void 0:a.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"}; n([F($C.YtRendererstamperBehavior),r("design:type",Object)],EX.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],EX.prototype,"data",void 0);n([M({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),r("design:type",Boolean)],EX.prototype,"isUsingLargeWidth",void 0);n([fu({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],EX); Tu(EX,"yt-benefits-flow-step-renderer",function(){if(Y5b===void 0){var a=document.createElement("template");Q(a,"
");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;X5b===void 0&&(X5b=document.createElement("template"));var d=X5b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Y5b=a}a=Y5b;return a},{mode:2});var d6b;var e6b;var FX=function(){return E.apply(this,arguments)||this}; k(FX,E);FX.prototype.checkIsUsingLargeWidth=function(){var a;return((a=this.data)==null?void 0:a.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"}; n([M(),r("design:type",Object)],FX.prototype,"data",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],FX.prototype,"ytRendererBehavior",void 0);n([M({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),r("design:type",Boolean)],FX.prototype,"isUsingLargeWidth",void 0);n([fu({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],FX); Tu(FX,"yt-confirmation-flow-step-renderer",function(){if(e6b===void 0){var a=document.createElement("template");Q(a,"
");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;d6b===void 0&&(d6b=document.createElement("template"));var d=d6b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);e6b=a}a=e6b;return a},{mode:2});var f6b;var g6b;var h6b=function(){return E.apply(this,arguments)||this}; k(h6b,E);n([M(),r("design:type",Object)],h6b.prototype,"data",void 0);n([fu({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],h6b); Tu(h6b,"yt-info-flow-step-renderer",function(){if(g6b===void 0){var a=document.createElement("template");Q(a,"
");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;f6b===void 0&&(f6b=document.createElement("template"));var d=f6b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);g6b=a}a=g6b;return a},{mode:2});var i6b;var j6b;var k6b=function(){return E.apply(this,arguments)||this}; k(k6b,E);n([M(),r("design:type",Object)],k6b.prototype,"data",void 0);n([fu({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],k6b); Tu(k6b,"yt-info-list-flow-step-renderer",function(){if(j6b===void 0){var a=document.createElement("template");Q(a,"
");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;i6b===void 0&&(i6b=document.createElement("template"));var d=i6b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);j6b=a}a=j6b;return a},{mode:2});function l6b(a,b){var c=function(){var m;return(m=a())!=null?m:{}},d=m6b("top",b),e=m6b("bottom",b),f=m6b("left",b),h=m6b("right",b); return GC({top:function(){return GX(c().position,d)}, bottom:function(){return GX(c().position,e)}, left:function(){return GX(c().position,f)}, right:function(){return GX(c().position,h)}, position:function(){return GX(c().positionType,n6b)}, height:function(){return GX(c().height,HX)}, width:function(){return GX(c().width,HX)}, "min-width":function(){return GX(c().minWidth,HX)}, "min-height":function(){return GX(c().minHeight,HX)}, "max-width":function(){return GX(c().maxWidth,HX)}, "max-height":function(){return GX(c().maxHeight,HX)}, "aspect-ratio":function(){return GX(c().aspectRatio,String)}, "margin-top":function(){return GX(c().margin,d)}, "margin-bottom":function(){return GX(c().margin,e)}, "margin-left":function(){return GX(c().margin,f)}, "margin-right":function(){return GX(c().margin,h)}, "padding-top":function(){return GX(c().padding,d)}, "padding-bottom":function(){return GX(c().padding,e)}, "padding-left":function(){return GX(c().padding,f)}, "padding-right":function(){return GX(c().padding,h)}, "flex-direction":function(){return GX(c().flexDirection,o6b)}, "justify-content":function(){return GX(c().justifyContent,p6b)}, "align-items":function(){return GX(c().alignItems,q6b)}, "flex-grow":function(){return GX(c().flexGrow,String)}, "flex-shrink":function(){return GX(c().flexShrink,String)}, "flex-basis":function(){return GX(c().flexBasis,HX)}, "align-self":function(){return GX(c().alignSelf,q6b)}, "flex-wrap":function(){return GX(c().flexWrap,r6b)}, "align-content":function(){return GX(c().alignContent,q6b)}})} function GX(a,b){return a!==void 0?b(a):void 0} function r6b(a){switch(a){case"YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case"YPC_FLEX_WRAP_WRAP":return"wrap";case"YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse";}} function n6b(a){switch(a){case"YPC_POSITION_ABSOLUTE":return"absolute";case"YPC_POSITION_RELATIVE":return"relative";}} function q6b(a){switch(a){case"YPC_ALIGN_ITEMS_AUTO":return"auto";case"YPC_ALIGN_ITEMS_START":return"flex-start";case"YPC_ALIGN_ITEMS_END":return"flex-end";case"YPC_ALIGN_ITEMS_CENTER":return"center";case"YPC_ALIGN_ITEMS_STRETCH":return"stretch";}} function p6b(a){switch(a){case"YPC_JUSTIFY_CONTENT_FLEX_START":return"flex-start";case"YPC_JUSTIFY_CONTENT_FLEX_END":return"flex-end";case"YPC_JUSTIFY_CONTENT_CENTER":return"center";case"YPC_JUSTIFY_CONTENT_BETWEEN":return"space-between";case"YPC_JUSTIFY_CONTENT_SPACE_AROUND":return"space-around";}} function o6b(a){switch(a){case"YPC_FLEX_DIRECTION_ROW":return"row";case"YPC_FLEX_DIRECTION_ROW_REVERSE":return"row-reverse";case"YPC_FLEX_DIRECTION_COLUMN":return"column";case"YPC_FLEX_DIRECTION_COLUMN_REVERSE":return"column-reverse";}} function m6b(a,b){var c=b==="rtl";switch(a){case"top":var d=s6b;break;case"bottom":d=t6b;break;case"left":d=u6b;break;default:d=v6b;}return function(e){return GX(d(e,c),HX)}} function s6b(a){var b=a.top;var c=a.vertical;a=a.all;var d;return(d=b!=null?b:c)!=null?d:a} function t6b(a){var b=a.bottom;var c=a.vertical;a=a.all;var d;return(d=b!=null?b:c)!=null?d:a} function u6b(a,b){var c=a.left;var d=a.end;var e=a.start;var f=a.horizontal;a=a.all;var h,m;return(m=(h=c!=null?c:b?d:e)!=null?h:f)!=null?m:a} function v6b(a,b){var c=a.right;var d=a.end;var e=a.start;var f=a.horizontal;a=a.all;var h,m;return(m=(h=c!=null?c:b?e:d)!=null?h:f)!=null?m:a} function HX(a){var b=a.value;switch(a.unit){case"YPC_DIMENSION_UNIT_POINT":return b+"px";case"YPC_DIMENSION_UNIT_FRACTION":return b+"%";default:return""+b;}} ;function w6b(a){switch(a){case"YPC_SEMANTIC_COLOR_TEXT_PRIMARY":return"ytStyledTextViewModelYtTextPrimary";case"YPC_SEMANTIC_COLOR_TEXT_PRIMARY_INVERSE":return"ytStyledTextViewModelYtTextPrimaryInverse";case"YPC_SEMANTIC_COLOR_TEXT_SECONDARY":return"ytStyledTextViewModelYtTextSecondary";case"YPC_SEMANTIC_COLOR_TEXT_DISABLED":return"ytStyledTextViewModelYtTextDisabled";case"YPC_SEMANTIC_COLOR_THEMED_GREEN":return"ytStyledTextViewModelYtThemedGreen";}} function x6b(a){var b=a!=null?a:{};a=b.fontRole;var c=b.fontSize;b=b.fontWeight;if(a!==null&&c!==null)switch(a){case"YPC_FONT_ROLE_DISPLAY":switch(c){case"YPC_FONT_SIZE_L":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case"YPC_FONT_SIZE_M":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case"YPC_FONT_SIZE_S":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy": "ytStyledTextViewModelYtDisplayS";case"YPC_FONT_SIZE_XS":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return;}case"YPC_FONT_ROLE_HEADLINE":switch(c){case"YPC_FONT_SIZE_L":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case"YPC_FONT_SIZE_M":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case"YPC_FONT_SIZE_S":return b=== "YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case"YPC_FONT_SIZE_XS":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return;}case"YPC_FONT_ROLE_BODY":switch(c){case"YPC_FONT_SIZE_XL":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case"YPC_FONT_SIZE_L":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy": "ytStyledTextViewModelYtBodyL";case"YPC_FONT_SIZE_M":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case"YPC_FONT_SIZE_S":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case"YPC_FONT_SIZE_XS":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS";}}} ;var y6b=O(function(a){var b=a.data;return D("styled-text-view-model",{class:U("ytStyledTextViewModelHost",function(){return x6b(b().fontAttributes)},function(){return w6b(b().color)})},D(gC,{text:function(){return b().text}, ariaLabel:function(){var c,d,e;return(e=(c=b().accessibility)==null?void 0:(d=c.accessibilityData)==null?void 0:d.label)!=null?e:""}}))},"Be"); y6b.idomCompat=!0;var IX=O(function(a){var b=function(){var e,f,h,m;return(m=(h=(e=a.alt)==null?void 0:e.call(a))!=null?h:(f=a.data().accessibilityData)==null?void 0:f.label)!=null?m:""},c=function(){return a.data().imageWidth},d=function(){return a.data().imageHeight}; return D("themed-image-view-model",{class:"ytThemedImageViewModelHost"},D(P,{cond:function(){var e=a.data();if(e){var f,h,m;var p=((f=Fn().resolve(Cn(HB)))==null?0:f())?(h=e.imageDark)!=null?h:e.imageLight:(m=e.imageLight)!=null?m:e.imageDark}else p=void 0;return p}, then:function(e){return D(eC,Object.assign({},a,{data:e,alt:b,targetWidth:c,targetHeight:d,preserveHeight:!0,preserveWidth:!0}))}}))},"Ce"); IX.idomCompat=!0;var JX=O(function(a){var b=a.data;var c=Fn().resolve(WB);return D("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:l6b(function(){var d;return(d=b().layoutProperties)!=null?d:{}},c)},D(mw,{each:function(){var d; return(d=b().slots)!=null?d:[]}, keyBy:"INDEX"},function(d){return D("div",{class:"ytContainerLayoutViewModelSlot",style:l6b(function(){return d().layoutProperties},c)},D(OC,{data:function(){return d().contents}},{containerLayoutViewModel:JX, badgeViewModel:ED,buttonViewModel:AD,styledTextViewModel:y6b,contentPreviewImageViewModel:function(e){return D(WV,{data:e.data,className:"ytContainerLayoutViewModelImage"})}, themedImageViewModel:function(e){return D(IX,{data:e.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"De"); JX.idomCompat=!0;var z6b=O(function(a){function b(t){var u=c(),v=u.clearGroupId;if(u=u.productId)d().onProductSelected(u);else if(v)d().onClearGroupSelected(v);if(u||v)t==null||t.forEach(function(w){QB(w)})} var c=a.data;var d=a.stateFns;var e=function(){var t=c(),u=t.productId;return!(!t.clearGroupId&&!u)},f=function(){var t=c(),u=t.clearGroupId; return(t=t.productId)?d().isProductSelected(t):u?d().getSelectedProductByGroupId(u)==null:!1},h=function(){var t=c(),u=t.clearGroupId; if(t=t.productId){var v;return"group:"+(((v=d().getProductById(t))==null?void 0:v.groupId)||"")}return u?"group:"+u:""},m=function(){var t=c().productId,u; if(t=(u=t?d().getSelectedPricingOptionByProductId(t):void 0)==null?void 0:u.skuCardSectionHeader)u=[t];else{var v;u=(v=c().header)!=null?v:[]}return u},p=function(){var t; return(t=c().body)!=null?t:[]},q=function(){var t; return(t=c().expandedContent)!=null?t:[]}; return D("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},D(P,{cond:function(){return m().length>0||e()}, then:function(){return D("label",{class:"ytPdpCardSectionViewModelHeaderSection"},D("div",{class:"ytPdpCardSectionViewModelHeaderContent"},D(OC,{data:m},{containerLayoutViewModel:function(t){return D("div",{class:"ytPdpCardSectionViewModelContentItem"},D(JX,{data:t.data}))}, styledTextViewModel:function(t){return D("div",{class:"ytPdpCardSectionViewModelContentItem"},D(y6b,{data:t.data}))}})),D(P,{cond:e, then:function(){return D("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},D(QD,{checked:f,name:h,onChange:function(){b(c().onSelect)}}))}}))}}),D(pw,null,D(jw,{when:function(){return f()&&q().length>0}},function(){return D("div",{class:"ytPdpCardSectionViewModelBodySection"},D(OC,{data:q},{containerLayoutViewModel:function(t){return D("div",{class:"ytPdpCardSectionViewModelContentItem"},D(JX,{data:t.data}))}}))}),D(jw,{when:function(){return p().length>0}},function(){return D("div",{class:"ytPdpCardSectionViewModelBodySection"}, D(OC,{data:p},{containerLayoutViewModel:function(t){return D("div",{class:"ytPdpCardSectionViewModelContentItem"},D(JX,{data:t.data}))}}))})))},"Ee"); z6b.idomCompat=!0;var A6b=O(function(a){var b=a.data;var c=a.stateFns;return D("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},D(P,{cond:function(){return b().banner}, then:function(d){return D("div",{class:"ytPdpCardViewModelBanner"},D(gC,{text:d}))}}),D(OC,{data:function(){return b().sections}},{pdpCardSectionViewModel:function(d){d=d.data; var e={};return D("div",{class:U("ytPdpCardViewModelSectionContainer",(e.ytPdpCardViewModelShowDividers=function(){return b().showDividers},e))},D(z6b,{data:d, stateFns:c}))}}))},"Fe"); A6b.idomCompat=!0;var B6b=O(function(a){var b=a.data;var c=a.isOverlay;a={};return D("pdp-masthead-view-model",{class:U("ytPdpMastheadViewModelHost",(a.ytPdpMastheadViewModelIsOverlay=c,a))},D(OC,{data:function(){return b().image}},{contentPreviewImageViewModel:WV, themedImageViewModel:function(d){return D(IX,{data:d.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),D(P,{cond:function(){return b().title}, then:function(d){return D("h1",{class:"ytPdpMastheadViewModelHeading"},D(gC,{text:d,isOverlay:c}))}}),D(mw,{each:function(){var d; return(d=b().finePrint)!=null?d:[]}},function(d){return D("div",{class:"ytPdpMastheadViewModelFinePrint"},D(gC,{text:d, isOverlay:c}))}))},"Ge"); B6b.idomCompat=!0;var C6b=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("Mub4Yb"),2);a=JX;return b.return(a)})},D6b=yD(function(){return C6b()},{debugName:"containerLayoutViewModel"}); Gn(xD,function(a){a.registerLoadFn("containerLayoutViewModel","Mub4Yb",C6b)});function E6b(a,b,c){function d(u){return Object.values(u).map(function(v){var w=v.productId;v=v.pricingOptionIndex;return KX(e(w).pricingOptions,v).pricingOptionId})} function e(u){return p().get(u)} function f(u){u=d(u);c(u)} function h(u,v){return Array.from(LX(u.pricingOptions)).filter(function(w){w=l(w);w.next();w=w.next().value;return MX(w.pricingGroupAttributes,v)}).map(function(w){return l(w).next().value})} var m=NX([a,b],function(u,v){var w=u==null?void 0:u.selectedPricingOptions;u={};var y=!0;if(w&&v.length)for(var A=l(v),C=A.next();!C.done;C=A.next()){C=C.value;var I=F6b(C.pricingOptions,function(L){a:{L=L.pricingOptionId;for(var R=l(w),W=R.next();!W.done;W=R.next())if(W.value===L){L=!0;break a}L=!1}return L}); if(I>=0){y=!1;var K=KX(C.pricingOptions,I),N=void 0;u[C.groupId]={productId:C.productId,pricingOptionIndex:I,pricingGroupAttributes:(N=K)==null?void 0:N.pricingGroupAttributes}}}y&&v.length&&(y=KX(v[0].pricingOptions,0),u[v[0].groupId]={productId:v[0].productId,pricingOptionIndex:0,pricingGroupAttributes:y==null?void 0:y.pricingGroupAttributes});return u}),p=NX([b],function(u){return new Map(u.map(function(v){return[v.productId, v]}))}),q=NX([b],function(u){var v=new Map; u=l(u);for(var w=u.next();!w.done;w=u.next()){var y=w.value;w=y.groupId;var A=y.productId;y=l(LX(y.pricingOptions));for(var C=y.next();!C.done;C=y.next()){var I=l(C.value);C=I.next().value;I=I.next().value;v.set(I.pricingOptionId,{groupId:w,productId:A,index:C,pricingOption:I,pricingGroupAttributes:I.pricingGroupAttributes})}}return v}),t=NX([b],function(u){var v=new Map; u=l(u);for(var w=u.next();!w.done;w=u.next()){var y=w.value;w=y.groupId;var A=y.productId,C=void 0;y=l(LX((C=y.pricingGroups)!=null?C:[]));for(C=y.next();!C.done;C=y.next()){var I=l(C.value);C=I.next().value;I=I.next().value;v.set(I.pricingGroupId,{groupId:w,productId:A,index:C,pricingGroup:I,pricingGroupAttributes:I.pricingGroupAttributes})}}return v}); return{getProductById:e,isProductSelected:function(u){var v=e(u);if(!v)return!1;var w;return((w=m()[v.groupId])==null?void 0:w.productId)===u}, getSelectedPricingOptions:function(){return Object.values(m()).map(function(u){var v=u.productId;u=u.pricingOptionIndex;return KX(e(v).pricingOptions,u)})}, getSelectedPricingGroupAttributesByGroupId:function(u){var v;return(u=(v=m()[u])==null?void 0:v.pricingGroupAttributes)?Array.from(u):void 0}, getSelectedProductByGroupId:function(u){var v;return(u=(v=m()[u])==null?void 0:v.productId)?e(u):void 0}, getSelectedPricingOptionByProductId:function(u){var v=e(u);if(v){var w=m()[v.groupId];if((w==null?void 0:w.productId)===u)return KX(v.pricingOptions,w.pricingOptionIndex)}}, onProductSelected:function(u){var v=e(u);if(v){var w=m(),y;if(((y=w[v.groupId])==null?void 0:y.productId)!==u){var A=(y=(A=w[v.groupId])==null?void 0:A.productId)?e(y):void 0;var C;y=(C=w[v.groupId])==null?void 0:C.pricingGroupAttributes;var I;C=(I=w[v.groupId])==null?void 0:I.pricingOptionIndex;if(A&&C!==void 0){if(y){I=h(A,y).indexOf(C);if(I===-1)throw Error("calculateNewPricingOptionIndex: oldIndex "+C+" not found in options matching attributes for product "+A.productId+".");C=h(v,y);I=I0?C[0]:0}else I=C=b)break;d>=0&&c.push(e)}return c} function NX(a,b){var c,d;return function(){for(var e=a.map(function(h){return h()}),f=0;f0){h=[].concat(ia(h));p=l(m);for(var q=p.next(),t={};!q.done;t={targetAttrId:void 0},q=p.next())t.targetAttrId=q.value,q=h.findIndex(function(v){return function(w){return w.pricingGroupAttributes.includes(v.targetAttrId)}}(t)),q!==-1&&(f.push(h[q]),h.splice(q,1))}var u=c().getSelectedPricingGroupAttributesByGroupId(b().groupId); return f.map(function(v){var w=!1;u&&v.pricingGroupAttributes&&(w=MX(v.pricingGroupAttributes,u));return{pricingGroup:v,isSelected:w}})}, keyBy:function(f){return f.pricingGroup.pricingGroupId}},function(f){return D("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},D("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},D(OC,{data:function(){return f().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:D6b})),D("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},D(I6b,{checked:function(){return f().isSelected}, name:d,onClick:function(){var h=f().pricingGroup;c().onPricingGroupSelected(h.pricingGroupId);if(h=LB(h.onSelectPricingGroup)){var m;(m=Fn().resolve(JB))==null||m.resolveCommand(h)}}})))})))},"He"); J6b.idomCompat=!0;function K6b(a,b,c){var d=[];a=l(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=void 0;((f=b)==null?0:f.length)&&!MX(e.pricingGroupAttributes,b)||d.push({pricingOption:e,isSelected:c.includes(e.pricingOptionId)})}return d} var L6b=O(function(a){var b=a.data;var c=a.stateFns;var d=function(){var p=b(),q=p.groupId;if(p=p.productId)return c().getProductById(p);if(q)return c().getSelectedProductByGroupId(q)},e=function(){var p=b().groupId; var q;return(p=p?p:(q=d())==null?void 0:q.groupId)?c().getSelectedPricingGroupAttributesByGroupId(p):void 0},f=function(){var p=c().getSelectedPricingOptions().map(function(u){return u.pricingOptionId}),q=d(); if(!q)return q=b(),p=q.groupId,q=q.productId,co(Error(q?"No product found with id \""+q+"\"":p?"No product selected with group id \""+p+"\"":"No product or group ID provided")),[];var t=e();return K6b(q.pricingOptions,t,p)},h=function(){return b().pricingOptionSelectorSectionHeader},m=function(){return f().length>1}; return D("pdp-pricing-option-selector-view-model",null,D(P,{cond:function(){return!!h()&&m()}, then:function(){return D(OC,{data:h},{sectionHeaderViewModel:function(p){p=p.data;var q={};return D("div",{class:U("ytPdpPricingOptionSelectorViewModelSectionHeader",(q.ytPdpPricingOptionSelectorViewModelFullBleed=!0,q.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,q))},D(UV,{data:p}))}})}}),D(P,{cond:m, then:function(){return D("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},D(mw,{each:f,keyBy:"INDEX"},function(p){return D("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},D("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},D(OC,{data:function(){return p().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:D6b})),D("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},D(I6b,{checked:function(){return p().isSelected}, onClick:function(){c().onPricingOptionSelected(p().pricingOption.pricingOptionId);var q=p().pricingOption.onSelectPricingOption;if(q=LB(q)){var t;(t=Fn().resolve(JB))==null||t.resolveCommand(q)}}})))}))}}))},"Ie"); L6b.idomCompat=!0;var M6b=O(function(a){var b=a.data;var c=a.stateFns;return D("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},D(OC,{data:function(){var d,e;return(e=(d=c().getSelectedPricingOptions()[0])==null?void 0:d.primaryButton)!=null?e:b().emptyStateButton}},{buttonViewModel:AD}))},"Je"); M6b.idomCompat=!0;function N6b(a,b){return yA(a.entities,"pdpStateEntity",b)} ;function O6b(a){var b,c;return!!(a.productId&&a.groupId&&((b=a.pricingOptions)==null?0:b.length)&&a.pricingOptions.every(function(d){return d.pricingOptionId})&&((c=a.pricingGroups)==null||!c.length||Array.isArray(a.pricingGroups)&&a.pricingGroups.every(function(d){return d.pricingGroupId&&d.pricingGroupAttributes&&d.pricingGroupAttributes.length>0})))} function P6b(a,b,c){return E6b(a,NX([b],function(d){return d.filter(O6b)}),c)} ;var Q6b=O(function(a){var b=a.stateFns;return D("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},D(OC,{data:function(){return b().getSelectedPricingOptions().flatMap(function(c){return c.summaryLines}).filter(function(c){return!!c})}},{containerLayoutViewModel:function(c){return D("div",{class:"ytPdpSummaryViewModelLineItem"},D(D6b,{data:c.data}))}}))},"Ke"); Q6b.idomCompat=!0;var S6b=O(function(a){function b(w){var y=h();Bu(eA("pdpStateEntity",y,{key:y,selectedPricingOptions:w}))} var c=a.data;var d=a.internalScrolling;var e=a.stateFnsForTesting;var f=function(){var w;return(w=c().allProducts)!=null?w:[]},h=function(){var w; return(w=c().pdpStateEntityKey)!=null?w:""},m=fL(N6b,h),p=Vo(function(){Bp(!0); var w;return(w=e==null?void 0:e())!=null?w:P6b(m,f,b)},void 0,"SVbi4d"),q=function(){var w; return(w=c().columnBreakHints)!=null?w:[]},t=function(){return c().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},u=function(){return t()||c().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},v=Vo(function(){var w=wD(c().background),y; if(w==null?0:(y=w.sources)==null?0:y.length){var A=A===void 0?!0:A;w=RYa(void 0,w.sources,void 0,A,A?1E3:void 0,A?void 0:1E3)}else w=null;return w},void 0,"PWqdff"); rw(function(){var w=c().onStartCommand;if(w&&(w=LB(w))){var y;(y=Fn().resolve(JB))==null||y.resolveCommand(w)}}); a={};return D("pdp-view-model",{class:U("ytPdpViewModelHost",(a.ytPdpViewModelHasBackground=function(){return u()||!!v()},a.ytPdpViewModelHasDarkBackground=u,a.ytPdpViewModelHasScrim=t,a.ytPdpViewModelInternalScrolling=d,a.ytPdpViewModelForceSingleColumn=function(){return q().length===0},a)), style:GC({"--pdp-view-model-background":function(){return v()?"url("+v()+")":void 0}})},D("div",{class:"ytPdpViewModelColumnContainer"},D(mw,{each:function(){var w; var y=(w=c().body)!=null?w:[];return R6b(y,q())}, keyBy:"INDEX"},function(w){return D("div",{class:"ytPdpViewModelColumn"},D(OC,{data:w},{containerLayoutViewModel:function(y){return D(PX,null,D(JX,{data:y.data}))}, dividerViewModel:function(y){return D(PX,{fullBleed:!0},D(F_b,{data:y.data}))}, pdpCardViewModel:function(y){return D(PX,null,D(A6b,{data:y.data,stateFns:p}))}, pdpMastheadViewModel:function(y){return D(PX,null,D(B6b,{data:y.data,isOverlay:u}))}, pdpPricingGroupSelectorViewModel:function(y){return D(PX,null,D(J6b,{data:y.data,stateFns:p}))}, pdpPricingOptionSelectorViewModel:function(y){return D(PX,null,D(L6b,{data:y.data,stateFns:p}))}, pdpPrimaryButtonViewModel:function(y){return D(PX,null,D(M6b,{data:y.data,stateFns:p}))}, pdpSummaryViewModel:function(y){return D(PX,null,D(Q6b,{data:y.data,stateFns:p}))}, sectionHeaderViewModel:function(y){return D(PX,{fullBleed:!0,noVerticalPadding:!0},D($Yb,{data:y.data}))}}))})))},"Le"); S6b.idomCompat=!0;var PX=O(function(a){var b={};return D("div",{class:U("ytPdpViewModelItem",(b.ytPdpViewModelFullBleed=a.fullBleed,b.ytPdpViewModelNoVerticalPadding=a.noVerticalPadding,b))},a.children)},"Me"); function R6b(a,b){return b.length===0?[a]:[a.slice(0,b[0]),a.slice(b[0])].filter(function(c){return c.length>0})} ;bB(S6b,"pdp-view-model",{props:{data:$A,stateFnsForTesting:aB,internalScrolling:aB}});var T6b=new Bn("PRIMETIME_OFFERING_FLOW_STEP_VIEW_MODEL_TOKEN");var V6b=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("vIuYDd"),2);a=U6b;return b.return(a)})},W6b=yD(function(){return V6b()},{debugName:"premiumPurchaseButtonRenderer"}); Gn(xD,function(a){a.registerLoadFn("premiumPurchaseButtonRenderer","vIuYDd",V6b)});function X6b(a){switch(a){case"FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END":return"ytFlowBottomBarRendererFlowBottomBarButtonLayoutStyleJustifyEnd";case"FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED":return"ytFlowBottomBarRendererFlowBottomBarButtonLayoutStyleFullDistributed";case"FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY":return"ytFlowBottomBarRendererFlowBottomBarButtonLayoutStyleFlexPrimary";case"FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED":return"ytFlowBottomBarRendererFlowBottomBarButtonLayoutStyleVerticalCentered"; case"FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE":return"ytFlowBottomBarRendererFlowBottomBarButtonLayoutStyleDistributedSpace";default:return"";}} var Y6b=O(function(a){var b=a.data;a=a.className;var c=function(){return X6b(b().style)},d=U("ytFlowBottomBarRendererFlowBottomBarPrimaryButton","ytFlowBottomBarRendererFlowBottomBarButton",c),e=U("ytFlowBottomBarRendererFlowBottomBarSecondaryButton","ytFlowBottomBarRendererFlowBottomBarButton",c); return D("yt-flow-bottom-bar-renderer",{class:U("ytFlowBottomBarRendererHost",a,c)},D(OC,{data:function(){return b().secondaryButton}},{buttonRenderer:function(f){return D(rQb,{data:f.data, className:e})}, buttonViewModel:function(f){return D(BD,{data:f.data,className:e})}, premiumPurchaseButtonRenderer:function(f){return D(W6b,{data:f.data,className:e})}}),D(OC,{data:function(){return b().primaryButton}},{buttonRenderer:function(f){return D(rQb,{data:f.data, className:d})}, buttonViewModel:function(f){return D(BD,{data:f.data,className:d})}, premiumPurchaseButtonRenderer:function(f){return D(W6b,{data:f.data,className:d})}}))},"Ne"); Y6b.idomCompat=!0;bB(Y6b,"yt-flow-bottom-bar-renderer",{props:{data:$A,className:$A}});var $6b=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("mtTdRd"),2);a=Z6b;return b.return(a)})},a7b=yD(function(){return $6b()},{debugName:"offerSummaryRenderer"}); Gn(xD,function(a){a.registerLoadFn("offerSummaryRenderer","mtTdRd",$6b)});bB(O(function(a){var b={};b=U("ytOfferSummaryFlowStepRendererHost",(b.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=a.shouldDisableHeaderTopMargin,b));return D("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:b},D("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},D("div",{class:"ytOfferSummaryFlowStepRendererHeader"},D(gC,{text:function(){return a.data().header}})),D("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"}, D(gC,{text:function(){return a.data().subtitle}}))),D("div",{class:"ytOfferSummaryFlowStepRendererChild"},D(OC,{data:function(){return a.data().offerSummary}},{offerSummaryRenderer:function(c){return D(a7b,{data:c.data, className:a.flowClassName})}})))},"Oe"),"yt-offer-summary-flow-step-renderer",{props:{data:aB, flowClassName:aB,flowStateEntityKey:aB,shouldDisableHeaderTopMargin:aB}});var c7b=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("d1nLV"),2);a=b7b;return b.return(a)})},d7b=yD(function(){return c7b()},{debugName:"optionItemRenderer"}); Gn(xD,function(a){a.registerLoadFn("optionItemRenderer","d1nLV",c7b)});var f7b=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("Yi0iU"),2);a=e7b;return b.return(a)})},g7b=yD(function(){return f7b()},{debugName:"optionSectionRenderer"}); Gn(xD,function(a){a.registerLoadFn("optionSectionRenderer","Yi0iU",f7b)});function h7b(a,b,c,d){d=Object.assign({},d);FB(d,xtb,{selectedOptionId:a,primaryButtonOverride:c});Au().dispatch(dA("flowStateEntity",b,d))} ;var j7b=O(function(a){var b=a.data;var c=a.flowClassName;var d=a.flowStateEntityKey;a=a.isDesktop;var e=sw("div"),f=function(){var t;return(t=b().flowStateEntityKey)!=null?t:d==null?void 0:d()},h=function(){return(f==null?void 0:f())||""},m=function(){return b().style},p=fL(yL,h); rw(function(){i7b(b(),h(),p());setTimeout(function(){var t;(t=e.value)==null||t.focus()})}); var q={};return D("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:U("ytmOptionSelectionFlowStepRendererHost",(q.ytmOptionSelectionFlowStepRendererDesktop=a,q.ytmOptionSelectionFlowStepRendererLp2Style=function(){return b().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},q))},D("div",{class:"ytmOptionSelectionFlowStepRendererOptionSelectionFlowStepHeaderContainer ytmOptionSelectionFlowStepRendererOptionSelectionFlowStepChild"},D("div",{el:e, tabindex:-1,role:"heading","aria-level":1,class:"ytmOptionSelectionFlowStepRendererOptionSelectionFlowStepHeader"},D(gC,{text:function(){return b().header}})),D("div",{class:"ytmOptionSelectionFlowStepRendererOptionSelectionFlowStepSubtitle"},D(gC,{text:function(){return b().subtitle}}))),D(OC,{data:function(){return b().optionItems||[]}},{optionItemRenderer:function(t){return D("div",{class:"ytmOptionSelectionFlowStepRendererOptionSelectionFlowStepChild"},D(d7b,{data:t.data, className:c,flowStateEntityKey:f,selectionStepStyle:m}))}, optionSectionRenderer:function(t){return D("div",{class:"ytmOptionSelectionFlowStepRendererOptionSelectionFlowStepChild"},D(g7b,{data:t.data,flowClassName:c,flowStateEntityKey:f,selectionStepStyle:m}))}}))},"Pe"); j7b.idomCompat=!0;function i7b(a,b,c){!z(c,xtb)&&a.noPreselect&&b!==""&&a.defaultButtonOverride&&h7b("default",b,a.defaultButtonOverride,c)} ;bB(j7b,"yt-option-selection-flow-step-renderer",{props:{data:$A,flowClassName:$A,flowStateEntityKey:$A,isDesktop:$A}});function k7b(a,b){if(a&&b){var c=QX();c().set(a,b);l7b(c())}} function m7b(a,b){if(a&&b){var c=QX();c().set(a,b);l7b(c())}} function n7b(a,b,c){return{submitForm:function(){var d,e,f,h;return ra(function(m){if(m.nextAddress==1){d=o7b(a());if(!d)return m.return();if(d.onSubmit)return p7b(b),d.onSubmit(),p7b(c),m.return();if(!d.submitConfig||!d.formData)return m.jumpTo(0);d.disableDuringSubmission&&q7b(a(),!0);p7b(b);return m.yield(r7b(d.submitConfig,d.formData()),3)}e=m.yieldResult;p7b(c);if(((f=e)==null?0:f.submitResult)&&((h=d)==null?0:h.onSubmitResult))d.onSubmitResult(e.submitResult);d.disableDuringSubmission&&q7b(a(), !1);return m.return()})}, isValid:function(){var d=o7b(a());if(d){var e;return!((e=d.isValid)==null||!e.call(d))}return!0}, isSubmitting:function(){var d,e;return!!((d=o7b(a()))==null?0:(e=d.isSubmitting)==null?0:e.call(d))}}} var s7b,t7b;function QX(){if(!s7b){var a=l(ip(new Map,void 0,"Y1XnBc"));s7b=a.next().value;t7b=a.next().value}return s7b} function l7b(a){t7b(new Map(a))} function o7b(a){if(a)return QX()().get(a)} var u7b={submitAction:"SUBMIT_ACTION_SUBMISSION",allFields:!0};function r7b(a,b){var c;return ra(function(d){return d.nextAddress==1?b?(c=Fn().resolve(Cn($0a)))&&a.submitId?d.yield(c.submitForm(a.submitId,b,u7b,a.params,a.clickTrackingParams),2):d.return(Promise.reject(Error("Submission failed due to unresolved submit API service or undefined submit ID."))):d.return(Promise.reject(Error("Submission failed due to undefined form data."))):d.return(d.yieldResult)})} function q7b(a,b){if(a){var c=QX();c().set(a,Object.assign({},c().get(a),{isSubmitting:function(){return b}})); l7b(c())}} function p7b(a){if(a){var b=Fn().resolve(JB);b&&(a=LB(a()))&&b.resolveCommand(a)}} ;var uJb=O(function(a){a=Hu(a,{disablePadding:!1});var b=a.data,c=a.disablePadding,d=sD(function(){return b().formId}),e=n7b(function(){return b().formId},void 0,function(){return b().onSubmitSuccess}),f=function(){var h; return ra(function(m){switch(m.nextAddress){case 1:if(d.form()===void 0){e.submitForm();m.jumpTo(0);break}m.setCatchFinallyBlocks(3);return m.yield(d.submit(),5);case 5:m.leaveTryBlock(4);break;case 3:return h=m.enterCatchBlock(),h instanceof Error?co(h):co("Failed to submit form. Unknown error"),v7b(b().onSubmitError),m.return();case 4:v7b(b().onSubmitSuccess),m.jumpToEnd();}})}; return D("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},D(OC,{data:function(){return b().panelFooter}},{panelFooterViewModel:function(h){return D(RJb,{data:h.data, onClickPrimaryButton:function(){f()}, disablePrimaryButton:function(){return!(d.form()!==void 0?d.state().isValid:e.isValid())||(d.form()!==void 0?d.state().isSubmitting:e.isSubmitting())}, disablePadding:c})}}))},"Qe"); function v7b(a){if(a){var b=Fn().resolve(JB);b&&(a=LB(a))&&b.resolveCommand(a)}} ;bB(uJb,"yt-form-footer-view-model",{props:{data:$A,disablePadding:$A}});var w7b=O(function(a){var b=x("enable_user_rating_web");return D("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},D("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},D(P,{cond:function(){var c;return(c=a.data())==null?void 0:c.image}, then:function(c){return D(eC,{data:c,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),D("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},D(gC,{text:function(){var c; return(c=a.data())==null?void 0:c.title}})),D("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},D(gC,{text:function(){var c; return(c=a.data())==null?void 0:c.subtitle}})),D(P,{cond:function(){return!b}, then:function(){return D(OC,{data:function(){var c;return(c=a.data())==null?void 0:c.viewTipsButton}},{buttonViewModel:function(c){return D(BD,{data:c.data, className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"Re");bB(w7b,"yt-contributor-zero-state-view-model",{props:{data:$A}});var y7b=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("H2eScb"),2);a=x7b;return b.return(a)})},z7b=yD(function(){return y7b()},{debugName:"landingPageViewModel"}); Gn(xD,function(a){a.registerLoadFn("landingPageViewModel","H2eScb",y7b)});bB(O(function(a){return D("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},D("div",{class:"ytLpSectionGroupViewModelContainer"},D(OC,{data:function(){return a.data().sections}},{landingPageViewModel:function(b){return D(z7b,{data:b.data, className:"ytLpSectionGroupViewModelSection"})}})))},"Se"),"yt-lp-section-group-view-model",{props:{data:$A}});function A7b(a,b){return yA(a.entities,"contextNoteFeedEntityPayload",b)} ;var C7b=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("PpBpbf"),2);a=B7b;return b.return(a)})},RX=yD(function(){return C7b()},{debugName:"noteViewModel"}); Gn(xD,function(a){a.registerLoadFn("noteViewModel","PpBpbf",C7b)});function D7b(a,b,c){var d;if(a&&((d=b())==null?0:d.includes(a))){var e;c((e=b())==null?void 0:e.filter(function(f){return f!==a}))}else c([].concat(ia(b()||[]),[a]))} function E7b(a,b){if(a){var c=[];b=l((b==null?void 0:b.checkboxes)||[]);for(var d=b.next();!d.done;d=b.next()){d=z(d.value,Hsb);var e=void 0;((e=d)==null?0:e.value)&&a.includes(d.key||"")&&c.push(d.value)}return c}} ;bB(O(function(a){var b=function(){var K,N;return(N=(K=a.data())==null?void 0:K.flowStateEntityKey)!=null?N:""},c=fL(yL,b),d=fL(A7b,function(){var K,N; return(N=(K=a.data())==null?void 0:K.noteFeedEntityKey)!=null?N:""}),e=l(Gu(function(){var K; return(K=z(a.data().helpfulnessValue,bK))==null?void 0:K.defaultSelectedKey})),f=e.next().value,h=e.next().value; e=l(Gu(function(){var K,N,L;return(L=z((K=z(a.data().helpfulnessValue,bK))==null?void 0:(N=K.radioButtons)==null?void 0:N.find(function(R){var W;return((W=z(R,Isb))==null?void 0:W.key)===f()}),Isb))==null?void 0:L.value})); var m=e.next().value,p=e.next().value;e=l(Gu(function(){var K;return(K=z(a.data().helpfulReasons,Gsb))==null?void 0:K.defaultSelectedKeys})); var q=e.next().value,t=e.next().value;e=l(Gu(function(){var K;return(K=z(a.data().notHelpfulReasons,Gsb))==null?void 0:K.defaultSelectedKeys})); var u=e.next().value,v=e.next().value,w=function(K,N){h(N.key);p(N.value);t([]);v([])},y=function(){var K,N; return((K=m())==null?void 0:K.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_HELPFUL"||((N=m())==null?void 0:N.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"},A=function(){var K,N; return((K=m())==null?void 0:K.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"||((N=m())==null?void 0:N.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_NOT_HELPFUL"},C=function(K){D7b(K.key,q,t)},I=function(K){D7b(K.key,u,v)}; rw(function(){var K,N,L;m7b((K=a.data())==null?void 0:(N=K.userRatingFormSchema)==null?void 0:N.id,{isValid:function(){return!!f()}, formData:function(){var R=m(),W=E7b(q(),z(a.data().helpfulReasons,Gsb)),S=E7b(u(),z(a.data().notHelpfulReasons,Gsb));R={helpfulnessValue:R==null?void 0:R.noteHelpfulnessValue};if(W){R.helpfulReasons=[];W=l(W);for(var Y=W.next();!Y.done;Y=W.next()){Y=Y.value;var da=void 0;if((da=Y)==null?0:da.noteHelpfulReason)da=void 0,R.helpfulReasons.push((da=Y)==null?void 0:da.noteHelpfulReason)}}if(S)for(R.notHelpfulReasons=[],S=l(S),W=S.next();!W.done;W=S.next())if(W=W.value,Y=void 0,(Y=W)==null?0:Y.noteNotHelpfulReason)Y= void 0,R.notHelpfulReasons.push((Y=W)==null?void 0:Y.noteNotHelpfulReason);return{userRatingFormData:R}}, submitConfig:{submitId:"SUBMIT_ID_CROWDSOURCED_CONTEXT_USER_RATING_FORM",params:(L=z(c(),fmb))==null?void 0:L.submitFormParams},onSubmitResult:function(){var R,W=(R=z(c(),fmb))==null?void 0:R.userRatingEntityKey,S;R={key:W,helpfulnessValue:(S=m())==null?void 0:S.noteHelpfulnessValue};W&&Bu(dA("contextNoteUserRatingEntityPayload",W,R));var Y;W=(Y=a.data())==null?void 0:Y.viewNoteFlowStepId;var da;if((da=d())==null||!da.contributorNote){var Aa;W=(Aa=a.data())==null?void 0:Aa.zeroStateFlowStepId}(Y= Object.assign({},c()))&&W&&(Y.currentStepId=W,Y.stepIdStack=[W],Bu(dA("flowStateEntity",b(),Y)));var Sa;(Y=(Sa=a.data())==null?void 0:Sa.ratingSubmittedSnackbarCommand)&&QB(Y)}, disableDuringSubmission:!0})}); return D("yt-note-user-rating-view-model",{class:"ytNoteUserRatingViewModelHost"},D(OC,{data:function(){var K=z(c(),fmb);if(K){var N;var L={noteViewModel:{metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:K==null?void 0:(N=K.note)==null?void 0:N.headerText}]}],delimiter:"\u2022"}},existingNote:K.note,noteData:{isUserRatingForm:!0},noteFeedEntityKey:"",userRatingEntityKey:""}}}else L=void 0;return L}},{noteViewModel:function(K){return D("div",{class:"ytNoteUserRatingViewModelNoteContainer"}, D(RX,{data:K.data}))}}),D(OC,{data:function(){var K; return(K=a.data())==null?void 0:K.helpfulnessValue}},{radioButtonGroupViewModel:function(K){return D("div",{class:"ytNoteUserRatingViewModelHelpfulnessValue"},D(zJb,{data:K.data, onSelected:w,selectedKey:f}))}}),D(P,{cond:y, then:function(){return D("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},D("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},D(gC,{text:function(){var K;return(K=a.data())==null?void 0:K.helpfulReasonQuestion}})),D(OC,{data:function(){var K; return(K=a.data())==null?void 0:K.helpfulReasons}},{checkboxGroupViewModel:function(K){return D(H0b,{data:K.data, onItemTap:C,selectedKeys:q,controlledMode:!0})}}))}}),D(P,{cond:A, then:function(){return D("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},D("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},D(gC,{text:function(){var K;return(K=a.data())==null?void 0:K.notHelpfulReasonQuestion}})),D(OC,{data:function(){var K; return(K=a.data())==null?void 0:K.notHelpfulReasons}},{checkboxGroupViewModel:function(K){return D(H0b,{data:K.data, onItemTap:I,selectedKeys:u,controlledMode:!0})}}))}}),D(P,{cond:function(){return!y()&&!A()}, then:function(){return D(OC,{data:function(){var K;return(K=a.data())==null?void 0:K.helpfulNoteFeatures}},{alertBannerViewModel:function(K){return D("div",{class:"ytNoteUserRatingViewModelAlertBanner"},D(y1b,{data:K.data}))}})}}))},"Te"),"yt-note-user-rating-view-model",{props:{data:$A}});var G7b=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("Tu3MB"),2);a=F7b;return b.return(a)})},H7b=yD(function(){return G7b()},{debugName:"contentMetadataViewModel"}); Gn(xD,function(a){a.registerLoadFn("contentMetadataViewModel","Tu3MB",G7b)});function I7b(a,b){switch(a){case"NOTE_HELPFULNESS_VALUE_HELPFUL":return b==null?void 0:b.ratingHelpfulText;case"NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return b==null?void 0:b.ratingSomewhatHelpfulText;case"NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return b==null?void 0:b.ratingNotHelpfulText;}} var B7b=O(function(a){var b=fL(A7b,function(){var m,p;return(p=(m=a.data())==null?void 0:m.noteFeedEntityKey)!=null?p:""}),c=fL(sPb,function(){var m,p; return(p=(m=a.data())==null?void 0:m.userRatingEntityKey)!=null?p:""}),d=x("enable_user_rating_web"),e=function(){var m,p,q; return((m=b())==null?0:m.contributorNote)?(p=b())==null?void 0:p.contributorNote:(q=a.data())==null?void 0:q.existingNote},f=function(){var m,p; return!!c()&&!!I7b((m=c())==null?void 0:m.helpfulnessValue,(p=a.data())==null?void 0:p.noteData)}; if(d){var h={};return D("yt-note-view-model",{class:U("ytNoteViewModelHostUserRating",(h.ytNoteViewModelHostUserRatingPublishedNote=function(){var m,p,q,t;return((m=a.data())==null?void 0:(p=m.noteData)==null?void 0:p.isPublished)&&!((q=a.data())==null?0:(t=q.noteData)==null?0:t.isUserRatingForm)},h))},D("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},D("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},D(P,{cond:function(){var m,p; return(m=a.data())==null?void 0:(p=m.noteData)==null?void 0:p.isPinned}, then:function(){return D(aC,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}, else:function(){return D(P,{cond:function(){var m,p;return(m=a.data())==null?void 0:(p=m.noteData)==null?void 0:p.isPublished}, then:function(){return D(aC,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),D(OC,{data:function(){var m; return(m=a.data())==null?void 0:m.metadata}},{contentMetadataViewModel:H7b}),D("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var m,p; return(p=z((m=a.data())==null?void 0:m.metadata,xsb))==null?void 0:p.delimiter}),D(gC,{text:function(){var m; return(m=e())==null?void 0:m.publishedTimeText}, className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),D(P,{cond:function(){var m,p;return!((m=a.data())==null?0:(p=m.noteData)==null?0:p.isUserRatingForm)}, then:function(){return D(OC,{data:function(){var m,p,q,t,u,v,w,y=!!((m=a.data())==null?0:(p=m.noteData)==null?0:p.isPinned);m=f();p=(q=a.data())==null?void 0:q.noteData;q=(t=b())==null?void 0:(u=t.contributorNote)==null?void 0:u.deleteAction;t=(v=a.data())==null?void 0:v.overflowButtonNoteWithRatingOnTapOverride;v=(w=a.data())==null?void 0:w.overflowButton;var A;w=(A=z(v,ZJ))==null?void 0:A.accessibilityText;return y?J7b(p,q,w):m?{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT", state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",onTap:t,accessibilityText:w}}:v}},{buttonViewModel:function(m){return D(BD,{data:m.data, className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})}})),D("div",{class:"ytNoteViewModelNoteContent"},D(gC,{text:function(){var m; return(m=e())==null?void 0:m.text}})),D(P,{cond:function(){var m,p,q,t; return!((m=a.data())==null?0:(p=m.noteData)==null?0:p.isPinned)&&!((q=a.data())==null?0:(t=q.noteData)==null?0:t.isUserRatingForm)}, then:function(){return D(P,{cond:f,then:function(){return D("div",{class:"ytNoteViewModelUserRatingContainer"},D(gC,{text:function(){var m,p;return I7b((m=c())==null?void 0:m.helpfulnessValue,(p=a.data())==null?void 0:p.noteData)}, className:"ytNoteViewModelUserRatingContainerText"}))}, else:function(){return D(OC,{data:function(){var m;return(m=a.data())==null?void 0:m.userRatingButton}},{buttonViewModel:function(m){return D(BD,{data:m.data, className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),D(P,{cond:function(){var m,p,q,t; return!((m=a.data())==null?0:(p=m.noteData)==null?0:p.ignoreDivider)&&!((q=a.data())==null?0:(t=q.noteData)==null?0:t.isUserRatingForm)}, then:function(){return D("div",{class:"ytNoteViewModelDivider"},D(OC,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(m){return D(E0b,{data:m.data})}}))}}))}return D("yt-note-view-model",{class:"ytNoteViewModelHost", style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},D("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},D("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},D(P,{cond:function(){var m,p;return(m=a.data())==null?void 0:(p=m.noteData)==null?void 0:p.isPinned}, then:function(){return D(aC,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}, else:function(){return D(P,{cond:function(){var m,p;return(m=a.data())==null?void 0:(p=m.noteData)==null?void 0:p.isPublished}, then:function(){return D(aC,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),D(P,{cond:function(){return d}, then:function(){return D(OC,{data:function(){var m;return(m=a.data())==null?void 0:m.metadata}},{contentMetadataViewModel:function(m){return D(H7b,{data:m.data})}})}}),D(gC,{text:function(){var m,p; return(m=a.data())==null?void 0:(p=m.noteData)==null?void 0:p.headerText}}),D("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},D(gC,{text:function(){var m,p; return(m=a.data())==null?void 0:(p=m.noteData)==null?void 0:p.delimiter}})),D(gC,{text:function(){var m,p; return(m=b())==null?void 0:(p=m.contributorNote)==null?void 0:p.publishedTimeText}})),D(OC,{data:function(){var m,p,q; return J7b((m=a.data())==null?void 0:m.noteData,(p=b())==null?void 0:(q=p.contributorNote)==null?void 0:q.deleteAction)}},{buttonViewModel:function(m){return D(BD,{data:m.data, className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),D("div",{class:"ytNoteViewModelNoteContent"},D(gC,{text:function(){var m,p; return(m=b())==null?void 0:(p=m.contributorNote)==null?void 0:p.text}})))},"Ue"); B7b.idomCompat=!0; function J7b(a,b,c){return{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",accessibilityText:c||a.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:a.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:a.deleteDialogTitle}]}, dialogMessages:[{runs:[{text:a.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:a.deleteActionText}]},command:{performCommentActionEndpoint:{action:b}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:a.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}} ;bB(B7b,"yt-note-view-model",{props:{data:$A}});var K7b=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("WFRaF"),2);a=w7b;return b.return(a)})},L7b=yD(function(){return K7b()},{debugName:"contributorZeroStateViewModel"}); Gn(xD,function(a){a.registerLoadFn("contributorZeroStateViewModel","WFRaF",K7b)});bB(O(function(a){var b=fL(A7b,function(){var c,d;return(d=(c=a.data())==null?void 0:c.noteFeedEntityKey)!=null?d:""}); return D("yt-notes-wrapper-view-model",{class:U("ytNotesWrapperViewModelHost")},D(P,{cond:function(){var c,d,e;return!((c=a.data())==null||!c.existingNotes)||!((d=a.data())==null||!d.currentNote)&&!((e=b())==null||!e.contributorNote)}, then:function(){return D(mq,null,D(OC,{data:function(){var c,d,e,f;return((d=z((c=a.data())==null?void 0:c.currentNote,gmb))==null?0:(e=d.noteData)==null?0:e.isPublished)?(f=a.data())==null?void 0:f.currentNote:void 0}},{noteViewModel:function(c){return D(RX,{data:c.data})}}),D(OC,{data:function(){var c; return(c=a.data())==null?void 0:c.existingNotes}},{noteViewModel:function(c){var d=c.data; return D(P,{cond:function(){var e,f;return(e=d())==null?void 0:(f=e.noteData)==null?void 0:f.isPublished}, then:function(){return D(RX,{data:d})}})}}),D(OC,{data:function(){var c,d,e,f,h; return((d=z((c=a.data())==null?void 0:c.currentNote,gmb))==null?0:(e=d.noteData)==null?0:e.isPublished)||(f=b())==null||!f.contributorNote?void 0:(h=a.data())==null?void 0:h.currentNote}},{noteViewModel:function(c){return D(RX,{data:c.data})}}),D(OC,{data:function(){var c; return(c=a.data())==null?void 0:c.existingNotes}},{noteViewModel:function(c){var d=c.data; return D(P,{cond:function(){var e,f;return!((e=d())==null?0:(f=e.noteData)==null?0:f.isPublished)}, then:function(){return D(RX,{data:d})}})}}))}, else:function(){return D(OC,{data:function(){var c;return(c=a.data())==null?void 0:c.zeroStateData}},{contributorZeroStateViewModel:L7b})}}))},"Ve"),"yt-notes-wrapper-view-model",{props:{data:$A}});var R7b=O(function(a){var b=l(Gu(function(){var da,Aa;return((da=a.data().structuredContextNoteFormSchema)==null?0:(Aa=da.initialValues)==null?0:Aa.noteBody)?a.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),c=b.next().value,d=b.next().value; b=l(Gu(function(){a.data();return!1})); var e=b.next().value,f=b.next().value;b=l(Gu(function(){a.data();return!1})); var h=b.next().value,m=b.next().value;b=l(Gu(function(){var da,Aa;return((da=a.data().structuredContextNoteFormSchema)==null?0:(Aa=da.initialValues)==null?0:Aa.timestamp)?a.data().structuredContextNoteFormSchema.initialValues.timestamp:""})); var p=b.next().value,q=b.next().value;b=l(Gu(function(){a.data();return!1})); var t=b.next().value,u=b.next().value;b=l(Gu(function(){var da,Aa;return((da=a.data().structuredContextNoteFormSchema)==null?0:(Aa=da.initialValues)==null?0:Aa.sources)?[a.data().structuredContextNoteFormSchema.initialValues.sources]:[]})); var v=b.next().value,w=b.next().value;b=l(Gu(function(){a.data();return!1})); var y=b.next().value,A=b.next().value;b=l(Gu(function(){return!1})); var C=b.next().value,I=b.next().value;rw(function(){var da;k7b((da=a.data().structuredContextNoteFormSchema)==null?void 0:da.id,{isSubmitting:C,onSubmit:function(){I(!0);var Aa=M7b(c(),p(),v(),a.data()),Sa=Fn().resolve(JB);Aa&&Sa&&Sa.resolveCommand(Aa,{commandController:{onSuccess:function(){I(!1)}}})}, isValid:function(){return e()&&!h()&&!t()&&!y()}})}); var K=function(da){if(da!==void 0&&(d(da),!e()&&da.length>0&&f(!0),e())){var Aa=N7b(a.data());if(Aa){var Sa=Aa.minLength;Aa=Aa.maxLength;Sa&&da.lengthAa?m(!0):m(!1)}}},N=function(da){if(da!==void 0){q(da); if(da.length>0){var Aa,Sa,Ua,qb,ab=O7b((Aa=a.data())==null?void 0:(Sa=Aa.structuredContextNoteFormSchema)==null?void 0:(Ua=Sa.fieldSchemas)==null?void 0:(qb=Ua.timestamp)==null?void 0:qb.validationSchema);if(ab&&(Aa=ab.regex)&&!new RegExp(Aa).test(da)){u(!0);return}}u(!1)}},L=function(da){if(da!==void 0){var Aa=da.split(/[ \n]/).map(function(Sa){return Sa.trim()}); w(Aa);if(da.length>0)for(da=l(Aa),Aa=da.next();!Aa.done;Aa=da.next())if(!P7b(Aa.value)){A(!0);return}A(!1)}},R=function(){return{validate:function(da){if(e()){var Aa=N7b(a.data()); if(Aa){var Sa=Aa.minLength;Aa=Aa.translations;if(Sa&&da.length1&&a.every(function(c){return!!c})} function M7b(a,b,c,d){var e;d=(e=d.structuredContextNoteData)==null?void 0:e.createCommentEndpoint;if(e=z(d,Orb))return e.commentText=kz(a),e.videoPositionMention=b,e.sources=c,d} ;bB(R7b,"yt-structured-context-note-view-model",{props:{data:$A}});var U7b=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("Wqoahc"),2);a=T7b;return b.return(a)})},V7b=yD(function(){return U7b()},{debugName:"chipSelectionFormFieldViewModel"}); Gn(xD,function(a){a.registerLoadFn("chipSelectionFormFieldViewModel","Wqoahc",U7b)});var W7b=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("gAOYx"),2);a=Mzb;return b.return(a)})},X7b=yD(function(){return W7b()},{debugName:"textareaShape"}); Gn(xD,function(a){a.registerLoadFn("textareaShape","gAOYx",W7b)});var Y7b=O(function(a){var b=a.data;var c=function(){var m;return((m=b())==null?void 0:m.flowStateKey)||""},d=fL(yL,c),e=function(){var m; return(m=z(d(),gnb))==null?void 0:m.chips},f=function(m){if(m!==void 0){var p=e()||[]; p=p.find(function(q){return q===m})?p.filter(function(q){return q!==m}):[].concat(ia(p),[m]); p=Object.assign({},d(),{feedbackFormFlowState:Object.assign({},z(d(),gnb),{chips:p})});Bu(dA("flowStateEntity",c(),p))}},h=function(){var m; return z((m=b())==null?void 0:m.inputBox,lnb)}; a=zh(function(m){var p=h();p=!(p==null?0:p.maxChars)||m.length<=p.maxChars;m=Object.assign({},d(),{feedbackFormFlowState:Object.assign({},z(d(),gnb),{detail:m}),abuseReportFlowState:Object.assign({},z(d(),zJ),{navigationEnabled:p})});Bu(dA("flowStateEntity",c(),m))},150); return D("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},D("div",{class:"ytFeedbackFormViewModelChips"},D(OC,{data:function(){var m;return(m=b())==null?void 0:m.chipSelection}},{chipSelectionFormFieldViewModel:function(m){return D(V7b,{data:m.data, controlled:function(){return{selectedValues:e()||[],onTap:f}}})}})),D("div",{class:"ytFeedbackFormViewModelInputBox"},D(X7b,{text:function(){var m; return(m=z(d(),gnb))==null?void 0:m.detail}, placeholder:function(){var m;return((m=h())==null?void 0:m.placeholderText)||""}, outline:!0,rows:4,characterLimit:function(){var m=h();if(m&&m.maxChars)return{maxChars:m.maxChars,errorMessage:m.maxCharsExceededErrorMessage||""}}, onInput:a})),D("div",{class:"ytFeedbackFormViewModelFooterText"},D(gC,{text:function(){return b().footerText}})))},"Xe"); Y7b.idomCompat=!0;bB(Y7b,"yt-feedback-form-view-model",{props:{data:$A}});var Z7b=O(function(a){var b=a.data;var c=fL(hCb,function(){return b().flowStateKey||""}),d=function(){var e; QB((e=z(c(),zJ))==null?void 0:e.navigationCommand)}; return D("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},D("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},D(OC,{data:function(){return b().cancelButton}},{buttonViewModel:function(e){return D(BD,{data:e.data, className:"ytWebReportFormBottomBarViewModelButton",onClick:d})}}),D(OC,{data:function(){var e; if(b().navButton){var f=Object;var h=f.assign,m=z(b().navButton,ZJ),p=((e=z(c(),zJ))==null?0:e.navigationEnabled)?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",q,t;e=z((q=z(c(),zJ))==null?void 0:q.navigationCommand,ny);q=(t=z(e,Qs))==null?void 0:t.url;f={buttonViewModel:h.call(f,{},m,{state:p,iconName:q?"OPEN_IN_NEW":""})}}else f=void 0;return f}},{buttonViewModel:function(e){return D(BD,{data:e.data, className:"ytWebReportFormBottomBarViewModelButton",onClick:d})}})))},"Ye"); Z7b.idomCompat=!0;bB(Z7b,"yt-report-form-bottom-bar-view-model",{props:{data:$A}});var $7b=O(function(a){var b=a.nextStep;return D("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},D("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},D(aC,{icon:function(){return b().iconName||""}})),D("div",null,D(gC,{text:function(){return b().text}, className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"Ze"),a8b=O(function(a){var b=a.data; var c,d=(c=Fn().resolve(Cn(HB)))==null?void 0:c(),e=fL(yL,function(){return b().flowStateKey||""}); return D("yt-report-form-confirmation-page-view-model",{class:function(){var f;return((f=z(e(),zJ))==null?void 0:f.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},D("div",{class:function(){var f; return((f=z(e(),zJ))==null?void 0:f.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},D(eC,{data:function(){return d&&b().imageDark?b().imageDark:b().image}, alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),D("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},D("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return b().confirmationHeader}),D("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},D(gC,{text:function(){return b().confirmationText}})),D("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},D(gC,{text:function(){return b().lawEnforcementText}})), D("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return b().whatToExpectHeader}),D(P,{cond:function(){return b().nextSteps}, then:function(f){return D("div",null,D(mw,{each:f},function(h){return D($7b,{nextStep:h})}))}}),D(P,{cond:function(){return b().legalReportText}, then:function(f){return D("div",null,D(gC,{text:f,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}}),D(P,{cond:function(){return b().alertBanner}, then:function(f){return D(OC,{data:f},{alertBannerViewModel:function(h){return D(q0b,Object.assign({},h,{narrow:!0}))}})}})))},"$e"); a8b.idomCompat=!0;bB(a8b,"yt-report-form-confirmation-page-view-model",{props:{data:$A}});var b8b=O(function(a){var b=a.data;var c=function(){var f;return((f=z(b().inputBox,lnb))==null?void 0:f.maxChars)||500},d=function(){return b().flowStateKey||""},e=fL(yL,d); a=zh(function(f){f=Object.assign({},e(),{flowFormState:{isValid:f.length<=c()},abuseReportFlowState:{userComments:f,navigationEnabled:!(f.length>c()),isReportFormDirty:!0}});Au().dispatch(eA("flowStateEntity",d(),f))},150); rw(function(){var f=Object.assign({},e(),{flowFormState:{isValid:!0}});Au().dispatch(eA("flowStateEntity",d(),f))}); return D("yt-report-form-details-page-view-model",{class:function(){var f;return((f=z(e(),zJ))==null?void 0:f.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},D("h1",{class:function(){var f; return((f=z(e(),zJ))==null?void 0:f.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return b().detailsPageHeader}),D("div",{class:"ytWebReportFormDetailsPageViewModelBody"},D(gC,{text:function(){return b().bodyText}})),D("div",{class:"ytWebReportFormDetailsPageViewModelInput"},D(X7b,{label:function(){var f; return((f=z(b().inputBox,lnb))==null?void 0:f.placeholderText)||""}, outline:!0,rows:10,characterLimit:function(){var f;return{errorMessage:((f=z(b().inputBox,lnb))==null?void 0:f.maxCharsExceededErrorMessage)||"",maxChars:c()}}, onInput:a})))},"af"); b8b.idomCompat=!0;bB(b8b,"yt-report-form-details-page-view-model",{props:{data:$A}});var c8b=O(function(a){var b=a.data;var c=function(){return b().flowStateKey||""},d=fL(yL,c),e=function(){return z(d(),zJ)}; return D("yt-report-form-reason-select-page-view-model",{class:function(){var f;return((f=e())==null?void 0:f.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},D("h1",{class:function(){var f; return((f=e())==null?void 0:f.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return b().pageHeader}),D("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},D(gC,{text:function(){return b().bodyText}})),D("div",{class:function(){var f; return((f=e())==null?void 0:f.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},D(zJb,{data:function(){return z(b().radioButtonGroup,bK)}, onSelected:function(f,h){f=Object.assign({},d(),{abuseReportFlowState:Object.assign({},e(),{reasonKey:h.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:h.command})});Bu(dA("flowStateEntity",c(),f))}, selectedKey:function(){var f;return(f=e())==null?void 0:f.reasonKey}, groupName:"report-form-reason-select-page"})))},"bf"); c8b.idomCompat=!0;bB(c8b,"yt-report-form-reason-select-page-view-model",{props:{data:$A}});var d8b=O(function(a){var b=a.data;var c,d=(c=Fn().resolve(Cn(HB)))==null?void 0:c();return D("yt-report-form-sign-in-page-view-model",{class:"ytReportFormSignInPageViewModelHost"},D("div",{class:"ytReportFormSignInPageViewModelSignInPromptImage"},D(eC,{data:function(){return d&&b().imageDark?b().imageDark:b().image}, alt:""})),D("div",{class:"ytReportFormSignInPageViewModelSignInTextContent"},D("h1",{class:"ytReportFormSignInPageViewModelSignInPromptHeader"},function(){return b().header}),D(gC,{text:function(){return b().text}, className:"ytReportFormSignInPageViewModelSignInPromptBody"})))},"cf"); d8b.idomCompat=!0;bB(d8b,"yt-report-form-sign-in-page-view-model",{props:{data:$A}});var e8b=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("zL59zc"),2);a=b1b;return b.return(a)})},f8b=yD(function(){return e8b()},{debugName:"chipsShelfViewModel"}); Gn(xD,function(a){a.registerLoadFn("chipsShelfViewModel","zL59zc",e8b)});function g8b(a){a=a.disabled;return{state:a?"disabled":"active",disabled:a}} ;bB(O(function(a){var b=a.data;var c=function(){return b().titleSuperscript},d=function(){return b().answersShelf},e=function(){return b().videoShelf},f=function(){var S; return(S=b().textInputPlaceholder)==null?void 0:S.content},h=function(){return b().showOpenTextInput},m=function(){var S; return(S=b().textInputValue)==null?void 0:S.content},p=function(){switch(b().chipSelectionMode){case"TALK_TO_RECS_CHIP_SELECTION_MODE_CLICK_TO_SUBMIT":return 1; case"TALK_TO_RECS_CHIP_SELECTION_MODE_APPEND_AND_SUBMIT":return 3;default:return 2;}}; a=l(ip("",void 0,"V3XG3e"));var q=a.next().value,t=a.next().value;a=l(ip(!1,void 0,"t9CaJf"));var u=a.next().value,v=a.next().value;a=l(ip(!1,void 0,"iHh8bb"));var w=a.next().value,y=a.next().value;qw(function(){h()&&m()&&t(m());var S=cA(XA,function(Y){return Y.entities.flowStateEntity},function(Y){var da; a:{var Aa=b();Aa=(da=z(Aa.nextButtonViewModel,ZJ))==null?void 0:da.onTap;da=z(z(Aa,ny),iy);if(da!=null&&da.commands)for(da=l(da.commands),Aa=da.next();!Aa.done;Aa=da.next()){var Sa=z(Aa.value,Zmb);if(Sa){var Ua=Aa=void 0,qb=void 0,ab=void 0;if(Sa=(Aa=Sa)==null?void 0:(Ua=Aa.entityBatchUpdate)==null?void 0:(qb=Ua.mutations)==null?void 0:(ab=qb[0])==null?void 0:ab.entityKey){da=Sa;break a}}}da=void 0}da&&(Y==null?0:Y[da])&&y(Y[da].isLoading===!0)}); zp(S)}); var A=function(S){var Y=b().onUpdateText;Y&&QB(Y,{form:{userQuery:S}});t(S)},C=zh(function(S){A(S.target.value.trim())},150),I=FC(function(S){C(S); return!1}),K=FC(function(S){S.key!=="Enter"||!u()&&!q()||w()||(A(S.target.value.trim()),L()); return!1}),N=function(S,Y){v(Y); if(Y)if(b().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_CLICK_TO_SUBMIT")L();else if(b().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_APPEND_AND_SUBMIT"){Y=q();S=S.text||S.title;var da;Y=(da=Y==null?void 0:Y.trim())!=null?da:"";A(""+Y+(Y.length>0?". ":"")+(S!=null?S:""));L()}},L=function(){if((u()||q())&&!w()){var S=b().onNextStepCommand; if(S){R();var Y=z(S,ny);if(Y&&(Y=z(Y,Clb))&&Y.chipCommandFormData){Y=z(Y.chipCommandFormData,Glb);var da;Y&&(Y==null?0:(da=Y.userQueries)==null?0:da.length)&&(da=Object.assign({},Y.userQueries[0],{userQuery:q()}),Y.userQueries=[da])}QB(S)}}},R=function(){var S=z(b().nextButtonViewModel,ZJ); if(S==null?0:S.trackingParams){S=Qv(S.trackingParams);var Y=Tv();Y&&S&&yz(Y,S,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK")}},W=function(){if((u()||q())&&!w()){var S; ((S=z(b().nextButtonViewModel,ZJ))==null?0:S.onTap)?R():L()}}; a={};return D("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost"},D("div",{class:"ytwTalkToRecsTopCornerButton"},D(OC,{data:function(){return b().topCornerButton}},{buttonViewModel:BD})),D("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},D("div",{class:"ytwTalkToRecsTitle", role:"heading",tabindex:0},D(gC,{text:function(){return b().title}}),D(P,{cond:c, then:function(){return D("sup",{class:"ytwTalkToRecsSuperScript"},D(gC,{text:c}))}})),D("div",{class:"ytwTalkToRecsSubtitle"},D(gC,{text:function(){return b().subtitle}})),D("div",{class:"ytwTalkToRecsResultsShelf"},D(P,{cond:d, then:function(){return D(OC,{data:d},{chipsShelfViewModel:function(S){return D("div",{class:"ytwTalkToRecsChipsShelfViewModel"},D(f8b,{data:S.data,callback:N,selectionBehavior:p}))}})}}),D(P,{cond:e, then:function(){return D(OC,{data:e},{horizontalShelfViewModel:function(S){return D("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},D(aW,{data:S.data,thumbnailAspectRatio:0}))}})}})),D("div",{class:U("ytwTalkToRecsRefinementContainer",(a.ytwTalkToRecsBottomMargin=function(){return b().isMultiTurnFlow},a))},D(P,{cond:h, then:function(){return D("div",{class:"ytwTalkToRecsUserInputBox"},D("input",{type:"text",class:"ytwTalkToRecsTextInput",title:f,placeholder:f,value:q,disabled:w,"on:input":I,"on:keyup":K,maxlength:200}))}}),D(OC,{data:function(){return b().isMultiTurnFlow?b().nextButtonViewModel:void 0}},{buttonViewModel:function(S){return D("div",{class:"ytwTalkToRecsFlowControlButtons"},D(BD,{data:S.data, buttonOverrides:function(){return g8b({disabled:!(u()||q())||w()})}, onClick:W}))}}),D(OC,{data:function(){return b().isMultiTurnFlow?b().resetButtonViewModel:void 0}},{buttonViewModel:function(S){return D("div",{class:"ytwTalkToRecsFlowControlButtons"},D(BD,{data:S.data, buttonOverrides:function(){return g8b({disabled:w()})}}))}}))))},"ef"),"yt-talk-to-recs-view-model",{props:{data:$A}});var i8b=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("EL7BEc"),2);a=h8b;return b.return(a)})},j8b=yD(function(){return i8b()},{debugName:"dropdownViewModel"}); Gn(xD,function(a){a.registerLoadFn("dropdownViewModel","EL7BEc",i8b)});function k8b(a){a=z(a.scheduleButton,Nsb);a=z(a==null?void 0:a.primaryButton,ZJ);a=z(a==null?void 0:a.onTap,ny);var b,c,d=((c=z(a,iy))==null?void 0:c.commands)||[a];c=l(d);for(a=c.next();!a.done&&!(b=z(a.value,aqb));a=c.next());var e;b=(e=b)==null?void 0:e.createBroadcastRequest;if(!b)throw Error("Fanzone requires a CreateBroadcastRequest.");return b} ;bB(O(function(a){var b=a.data;var c=function(e){var f=k8b(b());f.videoMetadata||(f.videoMetadata={});f.videoMetadata.sponsorshipsMetadata||(f.videoMetadata.sponsorshipsMetadata={});f.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(e)},d=function(e){var f=k8b(b()); f.scheduledRedirectMetadata||(f.scheduledRedirectMetadata={});f.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(e)}; return D("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},D("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},D("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},D(gC,{text:function(){return b().title}}),D(aC,{icon:"SCHEDULE_FANZONE", className:"ytfzScheduleFanzoneViewModelIllustration"})),D(gC,{text:function(){return b().description}, className:"ytfzScheduleFanzoneViewModelDescription"}),D(OC,{data:function(){return b().tierChoices}},{dropdownViewModel:function(e){return D("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},D(j8b,{data:e.data, onSelected:c}))}}),D(OC,{data:function(){return b().startTimeChoices}},{dropdownViewModel:function(e){return D("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},D(j8b,{data:e.data, onSelected:d}))}}),D(gC,{text:function(){return b().notice}, className:"ytfzScheduleFanzoneViewModelNotice"})),D("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},D(OC,{data:function(){return b().scheduleButton}},{panelFooterViewModel:RJb})))},"ff"),"ytfz-schedule-fanzone-view-model",{props:{data:$A}});bB(O(function(a){var b=a.data;a=a.className===void 0?"":a.className;var c=fL(hCb,function(){return b().flowStateEntityKey||""}),d={}; d=U("ytFlowBottomBarViewModelFlowBottomBarButtons",(d.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},d)); var e={},f=U("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",d,(e.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},e.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},e)); e={};var h=U("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",d,(e.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},e.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},e)); d={};d=U("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(d.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},d.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},d.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"}, d)); a=U("ytFlowBottomBarViewModelHost",a);return D("yt-flow-bottom-bar-view-model",{class:a},D(P,{cond:function(){var m;return(m=b())==null?void 0:m.textSection}, then:function(m){return D("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},D(gC,{text:m}))}}),D("div",{class:d},D(OC,{data:function(){return b().secondaryButton}},{buttonViewModel:function(m){return D(BD,{data:m.data, className:h})}}),D(OC,{data:function(){return b().primaryButton}},{buttonViewModel:function(m){return D(BD,{data:m.data, className:f,buttonOverrides:function(){var p;return{disabled:!((p=c())==null||!p.primaryButtonDisabled)}}})}})))},"gf"),"yt-flow-bottom-bar-view-model",{props:{data:$A, className:aB}});var KKb="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),SX=function(){var a=E.apply(this,arguments)||this;a.enableScrollingFix=!0;a.bottomBar=!1;a.fitContent=!1;return a}; k(SX,E);g=SX.prototype;g.ready=function(){LKb()}; g.focus=function(a){this.topBar?ln(this.topBar,a):this.paperDialog.focus(a)}; g.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.scroller&&(this.scroller.dialogElement=this.paperDialog,this.scroller.attached&&typeof this.scroller.attached==="function"&&this.scroller.attached())}; g.onDataChanged=function(){var a;this.fitContent=!((a=this.data)==null||!a.fitContent);var b;this.bottomBar=!((b=this.data)==null||!b.bottomBar)}; g.onProgressChanged=function(){var a,b,c=((b=(a=this.data)==null?void 0:a.progress)!=null?b:0)*100;this.progressElement.style.width=c+"%"}; g.isProgressHidden=function(){var a;return!((a=this.data)==null?0:a.progress)}; g.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model", featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",lpSectionGroupViewModel:"yt-lp-section-group-view-model",noteUserRatingViewModel:"yt-note-user-rating-view-model",noteViewModel:"yt-note-view-model", notesWrapperViewModel:"yt-notes-wrapper-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},primetimeOfferingFlowStepViewModel:{matcher:function(){return Fn().resolve(Cn(T6b))?"ytprimetime-offering-flow-step-view-model":""}}, purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",structuredContextNoteViewModel:"yt-structured-context-note-view-model", surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",shouldDisableHeaderTopMargin:!0}}}}, "data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},flowBottomBarRenderer:{matcher:function(a){return a&&!a.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}}; SX.prototype.onProgressChanged=SX.prototype.onProgressChanged;SX.prototype.onDataChanged=SX.prototype.onDataChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],SX.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],SX.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],SX.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],SX.prototype,"enableScrollingFix",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],SX.prototype,"bottomBar",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],SX.prototype,"fitContent",void 0);n([Tt("#progress"),r("design:type",HTMLElement)],SX.prototype,"progressElement",void 0);n([Tt("#scroller"),r("design:type",Object)],SX.prototype,"scroller",void 0);n([Tt("ytd-flow-top-bar-renderer"),r("design:type",HTMLElement)],SX.prototype,"topBar",void 0); n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],SX.prototype,"onDataChanged",null);n([Lt("data.progress"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],SX.prototype,"onProgressChanged",null);n([gu({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],SX); Tu(SX,"ytd-flow-step-renderer",function(){if(bLb!==void 0)return bLb;var a=document.createElement("template");Q(a,"
\n\n\n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return bLb=a},{mode:1});var TX=function(a){this.resolveCommand=a;this.steps={}},l8b=function(a,b){b=l(b||[]); for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=Object.values(c)[0],e=void 0;if((e=d)==null?0:e.stepId)a.steps[d.stepId]=c}},n8b=function(a,b){var c,d,e,f,h; return ra(function(m){if((c=a.state)==null||!c.currentStepId)return m.return(void 0);d=a.getCurrentStep();if(!d)return m.return(m8b(a));if(e=z(d,AJ))a.logVEScreen(e),((f=e)==null?0:f.onStepStartCommand)&&a.resolveCommand((h=e)==null?void 0:h.onStepStartCommand,{});e&&b&&(a.logFlowEvent(e,b),b.steps&&!b.steps.includes(d)&&b.steps.push(d));return m.return(d)})}; TX.prototype.back=function(){var a;(a=this.state)!=null&&a.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())}; TX.prototype.handleUpdateFlowCommand=function(a){a.steps&&l8b(this,a.steps);a.entityUpdateCommand&&this.resolveCommand(a.entityUpdateCommand,{});a.flowContinuationCommand&&(a=a.flowContinuationCommand)&&(this.getFlowContinuationCommand=a);this.awaitFlowContinuation&&(a=this.getCurrentStep(),this.awaitFlowContinuation(a),this.awaitFlowContinuation=void 0)}; TX.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0}; var m8b=function(a){return ra(function(b){return a.getFlowContinuationCommand?b.return(new Promise(function(c){a.awaitFlowContinuation=c;a.getFlowContinuationCommand&&a.resolveCommand(a.getFlowContinuationCommand,{flow_state:a.state})})):b.return(Promise.resolve(void 0))})}; TX.prototype.getCurrentStep=function(){var a;if((a=this.state)!=null&&a.currentStepId)return this.steps[this.state.currentStepId]}; TX.prototype.logVEScreen=function(a){var b;((b=a.screenLoggingData)==null?0:b.screenVeType)&&Jz(gz(),a.screenLoggingData.screenVeType)}; TX.prototype.logFlowEvent=function(a,b){var c,d,e;((c=b.flowLoggingData)==null?0:c.eventNamespace)&&((d=a.flowEventData)==null?0:d.eventType)&&((e=b.flowLoggingData)==null?0:e.flowType)&&(a=Av(b.flowLoggingData.eventNamespace,a.flowEventData.eventType,a.flowEventData.eventMetadata),zv().logFlowEvent(a,b.flowLoggingData.flowType,b.flowLoggingData.nonce))}; ba.Object.defineProperties(TX.prototype,{currentStepId:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.state)==null?void 0:a.currentStepId}}, nextStepIdOverride:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.state)!=null&&a.nextStepIdOverride)return this.state.nextStepIdOverride.reduce(function(b,c){c.key&&c.value&&(b[c.key]=c.value);return b},{})}}});var UX=function(){var a=E.apply(this,arguments)||this;a.flowState=x("web_use_flow_state_manager")?void 0:new TX(function(b,c){c=c===void 0?{}:c;fz.instance.resolveCommand(b,{form:{form:c,element:a.hostElement}})}); a.JSC$14758_flowStateManager=x("web_use_flow_state_manager")?Fn().resolve(zL):void 0;a.currentTargetId="";a.initialState=!0;a.isLoading=!1;a.actionMap={"yt-flow-prev-step-command":"handleFlowPrevStepCommand","yt-flow-next-step-command":"handleFlowNextStepCommand","yt-update-flow-command":"handleUpdateFlowCommand","yt-ypc-cancel-recurrence-command":"handleYpcCancelRecurrenceCommand","yt-flow-partial-update-flow-state-entity":"handlePartialUpdateFlowStateEntity"};a.containsTalkToRecs=!1;return a}; k(UX,E);g=UX.prototype;g.onPopupClosed=function(a){if(!a||this.hostElement===a.detail.popupRenderer){if(this.JSC$14758_flowStateManager){var b;((b=this.data)==null?0:b.flowStateEntityKey)&&this.JSC$14758_flowStateManager.flowStates.delete(this.data.flowStateEntityKey);this.currentTargetId=""}else this.flowState&&this.flowState.reset();this.currentFlowStep=this.data=void 0;this.initialState=!0}}; g.configureRendererStamper=function(){return{"data.topBar":{id:"root-top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}}; g.focus=function(a){var b=this;bt(function(){var c=wt(b.hostElement).querySelector("ytd-flow-step-renderer");(c==null?0:c.topBar)?c.focus(a):b.topBar&&ln(b.topBar,a)},1)}; g.attached=function(){this.hostElement.setAttribute("dialog","true")}; g.computeTopBarHidden=function(a){var b;return!((b=z(a,AJ))==null||!b.topBarOverride)}; g.onCurrentFlowChange=function(){if(this.JSC$14758_flowStateManager&&this.data&&this.flow){var a=MAb(this.JSC$14758_flowStateManager,this.data),b,c;if(((b=this.flow)==null?0:b.currentStepId)&&this.flow.currentStepId!==((c=a.getCurrentStep())==null?void 0:c.stepId)){a=QAb(a,this.flow.currentStepId);this.initialState=!1;this.isLoading=!this.currentFlowStep;var d;!a&&((d=this.data)==null?0:d.flowContinuationCommand)&&this.ytComponentBehavior.resolveCommand(this.data.flowContinuationCommand)}}}; g.observeData=function(){var a=this;if(this.JSC$14758_flowStateManager){var b=this.currentTargetId,c,d,e=(d=(c=this.data)==null?void 0:c.targetId)!=null?d:"";b!==e&&b&&OAb(this.JSC$14758_flowStateManager,b);this.currentTargetId=e;this.data&&PAb(MAb(this.JSC$14758_flowStateManager,this.data),function(f){f&&(a.initialState=!1,a.currentFlowStep={flowStepRenderer:f},a.isLoading=!a.currentFlowStep,a.autofocusAndRefit(),a.updateContainsTalkToRecs(),a.logVEScreen(),a.logFlowEvent())})}}; g.dataChanged=function(){var a=this,b,c;return ra(function(d){if(d.nextAddress==1){if(!a.flowState)return d.return();((b=a.data)==null?0:b.steps)&&l8b(a.flowState,a.data.steps);if((c=a.data)==null?0:c.flowContinuationCommand){var e=a.flowState,f=a.data.flowContinuationCommand;f&&(e.getFlowContinuationCommand=f)}return d.yield(n8b(a.flowState,a.data),2)}a.currentFlowStep=d.yieldResult;d.jumpToEnd()})}; g.flowChanged=function(){var a=this,b;return ra(function(c){if(c.nextAddress==1){if(!a.flowState||!a.flow)return c.return();a.flowState.state=a.flow;a.isLoading=!0;return c.yield(n8b(a.flowState,a.data),2)}b=c.yieldResult;if(!b||a.flow.isLoading)return c.return();a.currentFlowStep=b;a.initialState=!1;a.isLoading=!1;a.autofocusAndRefit();a.updateContainsTalkToRecs();c.jumpToEnd()})}; g.logVEScreen=function(){var a,b,c=(a=z(this.currentFlowStep,AJ))==null?void 0:(b=a.screenLoggingData)==null?void 0:b.screenVeType;c&&Jz(Fn().resolve(tL),c)}; g.logFlowEvent=function(){var a=z(this.currentFlowStep,AJ),b,c,d,e,f,h;(this==null?0:(b=this.data)==null?0:(c=b.flowLoggingData)==null?0:c.eventNamespace)&&(this==null?0:(d=this.data)==null?0:(e=d.flowLoggingData)==null?0:e.flowType)&&(a==null?0:(f=a.flowEventData)==null?0:f.eventType)&&(a==null?0:(h=a.flowEventData)==null?0:h.eventMetadata)&&(a=Av(this.data.flowLoggingData.eventNamespace,a.flowEventData.eventType,a.flowEventData.eventMetadata),zv().logFlowEvent(a,this.data.flowLoggingData.flowType))}; g.updateContainsTalkToRecs=function(){var a,b=(a=z(this.currentFlowStep,AJ))==null?void 0:a.content;this.containsTalkToRecs=!!b&&!!z(b,$pb)}; g.autofocusAndRefit=function(){var a=this,b=Fn().resolve(Cn(tD)),c=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),d=document.querySelector("yt-report-form-confirmation-page-view-model"),e=document.querySelector("yt-report-form-details-page-view-model"),f=document.querySelector("yt-report-form-reason-select-page-view-model"),h=document.querySelector("yt-contributor-zero-state-view-model"),m= document.querySelector("yt-structured-context-note-view-model"),p=document.querySelector("yt-note-view-model");(!c&&b&&b.keyboardInUse||d||!c&&e||!c&&f||!c&&(h||m||p))&&hn(this.hostElement);ms(this,function(){Gt(a.hostElement,"yt-refit")})}; g.handleUpdateFlowCommand=function(a){this.flowState?this.data&&(a=z(a,pnb),a.targetId===this.data.targetId&&(a.flowContinuationCommand&&(this.data.flowContinuationCommand=a.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(a),this.autofocusAndRefit())):this.ytComponentBehavior.resolveCommand(a)}; g.handleFlowNextStepCommand=function(a){this.JSC$14758_flowStateManager?this.ytComponentBehavior.resolveCommand(a):this.data&&this.flow&&this.flow.key&&(a=z(a,mnb),a.targetId===this.data.targetId&&(a=a.stepId||"",this.ytdReduxBehavior.dispatch(eA("flowStateEntity",this.flow.key,{currentStepId:a,stepIdStack:(this.flow.stepIdStack||[]).concat(a)}))))}; g.handleFlowPrevStepCommand=function(a){if(this.JSC$14758_flowStateManager)this.ytComponentBehavior.resolveCommand(a);else if(this.data&&this.flow&&this.flow.key&&(a=z(a,nnb),a.targetId===this.data.targetId)){var b=[].concat(ia(this.flow.stepIdStack||[]));b.length>1?(b.pop(),this.ytdReduxBehavior.dispatch(eA("flowStateEntity",this.flow.key,{currentStepId:b[b.length-1],stepIdStack:b}))):a.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(a.onFirstStepCommand)}}; g.handleYpcCancelRecurrenceCommand=function(a){if(this.data&&this.flow&&this.flow.key&&(a=z(a,ttb),a.targetId===this.data.targetId&&a.endpointCommand)){var b=z(this.flow,wtb);b&&z(a.endpointCommand,Ctb)&&(z(a.endpointCommand,Ctb).feedbackData=b.surveyFeedback);this.ytComponentBehavior.resolveCommand(a.endpointCommand)}}; g.handlePartialUpdateFlowStateEntity=function(a){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(eA("flowStateEntity",this.flow.key,a,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))}; UX.prototype.flowChanged=UX.prototype.flowChanged;UX.prototype.dataChanged=UX.prototype.dataChanged;UX.prototype.observeData=UX.prototype.observeData;UX.prototype.onCurrentFlowChange=UX.prototype.onCurrentFlowChange;UX.prototype.onPopupClosed=UX.prototype.onPopupClosed;n([F(kC),r("design:type",Object)],UX.prototype,"ytdReduxBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],UX.prototype,"ytRendererBehavior",void 0); n([F(mz.YtComponentBehavior),r("design:type",Object)],UX.prototype,"ytComponentBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],UX.prototype,"ytRendererstamperBehavior",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],UX.prototype,"ytActionHandlerBehavior",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],UX.prototype,"initialState",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],UX.prototype,"isLoading",void 0); n([M(),r("design:type",Object)],UX.prototype,"data",void 0);n([M(),r("design:type",Object)],UX.prototype,"currentFlowStep",void 0);n([Kt("yt-popup-closed"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],UX.prototype,"onPopupClosed",null);n([M({selectorArgs:["data.flowStateEntityKey"],selector:hCb}),r("design:type",Object)],UX.prototype,"flow",void 0);n([Tt("ytd-flow-top-bar-renderer"),r("design:type",HTMLElement)],UX.prototype,"topBar",void 0); n([Lt("data","flow"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],UX.prototype,"onCurrentFlowChange",null);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],UX.prototype,"observeData",null);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",Promise)],UX.prototype,"dataChanged",null);n([M({reflectToAttribute:!0}),r("design:type",Object)],UX.prototype,"containsTalkToRecs",void 0); n([cu("flow"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",Promise)],UX.prototype,"flowChanged",null);n([gu({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],UX); var o8b=Uu()(UX,"ytd-flow-root-renderer",function(){if(WKb!==void 0)return WKb;var a=document.createElement("template");Q(a,"\n
\n
\n \n
\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return WKb=a},{mode:2});var p8b;var q8b;var r8b;var s8b;var t8b;var VX=function(){return E.apply(this,arguments)||this}; k(VX,E);g=VX.prototype;g.computePreselectedOption=function(a,b){return b===this.itemSelected_?a:void 0}; g.dataChanged_=function(){var a=this;this.preselectedSubreason=this.itemSelected_=-1;var b;(b=this.data)!=null&&b.key&&ms(this,function(){var c,d=Number((c=a.data)==null?void 0:c.key);!Number.isNaN(d)&&(a.itemSelected_=d,c=(c=(a.data.items||[])[d])&&c.optionSelectableItemRenderer&&c.optionSelectableItemRenderer.preselectedIndex)&&(a.preselectedSubreason=c)})}; g.isSubReasonHidden_=function(a,b){return a!=b}; g.onTopItemSelected_=function(a,b){for(var c=wt(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),d=0,e=c.length;d
\n \n \n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;s8b===void 0&&(s8b=document.createElement("template"));var d=s8b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);t8b=a}a=t8b;return a},{mode:2});var u8b;var v8b;var w8b;var x8b;var WX=function(){return E.apply(this,arguments)||this}; k(WX,E);WX.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()}; WX.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")}; WX.prototype.onTap=function(a){if(this.hostElement.classList.contains("selected")||HHa(this.hostElement))a&&a.detail&&(a.detail.x||a.detail.y)&&wt(this.hostElement).querySelector("#target").blur(),(a=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),a={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:a?this.data.serializedContactInvitee:null,undoFn:this.onTap.bind(this)}, Xu(this.hostElement,"yt-share-panel-select-contact-action",[a])}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],WX.prototype,"ytRendererBehavior",void 0);n([M({observer:"onDataChanged"}),r("design:type",Object)],WX.prototype,"data",void 0);n([M({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),r("design:type",String)],WX.prototype,"componentTitle",void 0);n([Tt("#thumbnail"),r("design:type",Object)],WX.prototype,"thumbnail",void 0);n([fu({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],WX); Tu(WX,"yt-enrolled-contact-renderer",function(){if(x8b===void 0){var a=document.createElement("template");Q(a,"\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;w8b===void 0&&(w8b=document.createElement("template"));var d=w8b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);x8b=a}a=x8b;return a},{mode:2});var y8b;var z8b;var XX=function(){return E.apply(this,arguments)||this}; k(XX,E);XX.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()}; XX.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")}; XX.prototype.onTap=function(a){if(this.hostElement.classList.contains("selected")||HHa(this.hostElement))a&&a.detail&&(a.detail.x||a.detail.y)&&wt(this.hostElement).querySelector("#target").blur(),(a=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),a={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:a?this.data.serializedSuggestedContact:null,undoFn:this.onTap.bind(this)}, Xu(this.hostElement,"yt-share-panel-select-contact-action",[a])}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],XX.prototype,"ytRendererBehavior",void 0);n([M({observer:"onDataChanged"}),r("design:type",Object)],XX.prototype,"data",void 0);n([M({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),r("design:type",String)],XX.prototype,"componentTitle",void 0);n([Tt("#thumbnail"),r("design:type",Object)],XX.prototype,"thumbnail",void 0);n([fu({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],XX); Tu(XX,"yt-suggested-contact-renderer",function(){if(z8b===void 0){var a=document.createElement("template");Q(a,"\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;y8b===void 0&&(y8b=document.createElement("template"));var d=y8b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);z8b=a}a=z8b;return a},{mode:2});var YX=function(){var a=E.apply(this,arguments)||this;a.actionMap={"yt-share-panel-reset-action":"onReset"};return a}; k(YX,E);YX.prototype.configureRendererStamper=function(){return{"data.contacts":{id:"contents",mapping:{enrolledContactRenderer:{component:"yt-enrolled-contact-renderer",attributes:{role:"checkbox"}},suggestedContactRenderer:{component:"yt-suggested-contact-renderer",attributes:{role:"checkbox"}}}}}}; YX.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&Xu(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])}; YX.prototype.onReset=function(){for(var a=wt(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),b=a.length-1;b>=0;b--)a[b].classList.toggle("selected")}; n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],YX.prototype,"ytActionHandlerBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],YX.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],YX.prototype,"ytRendererstamperBehavior",void 0);n([M({observer:"onDataChanged"}),r("design:type",Object)],YX.prototype,"data",void 0);n([fu({is:"yt-contact-section-renderer",disableElementRegistration:!0})],YX); Tu(YX,"yt-contact-section-renderer",function(){if(v8b===void 0){var a=document.createElement("template");Q(a,"\n\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;u8b===void 0&&(u8b=document.createElement("template"));var d=u8b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);v8b=a}a=v8b;return a},{mode:2});var ZX=function(){var a=E.apply(this,arguments)||this;a.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return a}; k(ZX,E);g=ZX.prototype;g.configureRendererStamper=function(){return{"data.fields":{id:"fields",mapping:{textInputFormFieldRenderer:{component:"yt-text-input-form-field-renderer",params:{required:!0},properties:{hideLabel:"[[data.hideLabels]]"}},toggleFormFieldRenderer:{component:"yt-toggle-form-field-renderer"},optionsRenderer:"yt-options-renderer",contactSectionRenderer:"yt-contact-section-renderer"}}}}; g.onYtRefreshFormCommand=function(a){var b;(a=z((b=z(a,nmb))==null?void 0:b.formRenderer,Imb))&&this.set("data",a)}; g.reset=function(){var a=wt(this.hostElement).querySelector("#fields").children;a=l(a);for(var b=a.next();!b.done;b=a.next())b=b.value,b.reset&&b.reset()}; g.getForm=function(){var a={},b=wt(this.hostElement).querySelector("#fields").children;b=l(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;if(!c.validate())return null;a[c.data.key]=c.value}return a}; g.submitFormFields=function(){if(this.fields)for(var a=l(this.fields),b=a.next();!b.done;b=a.next())b=b.value,b.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?b.save():b.nodeName==="YT-OPTIONS-RENDERER"&&b.save()}; n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],ZX.prototype,"ytActionHandlerBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],ZX.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],ZX.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],ZX.prototype,"data",void 0);n([Ut("#fields > *"),r("design:type",Array)],ZX.prototype,"fields",void 0); n([fu({is:"yt-form-renderer",disableElementRegistration:!0})],ZX); Tu(ZX,"yt-form-renderer",function(){if(r8b===void 0){var a=document.createElement("template");Q(a,"
\n");a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild); var b=a.content,c=b.insertBefore;q8b===void 0&&(q8b=document.createElement("template"));var d=q8b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);r8b=a}a=r8b;return a},{mode:2});var $X=function(){var a=E.apply(this,arguments)||this;a.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return a}; k($X,E);$X.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}}; $X.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var a=this.formRenderer.getForm();a&&this.data.submitEndpoint&&(Fn().resolve(JB).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},a,{element:this.hostElement})}),Xu(this.hostElement,"yt-close-popup-action"))}}; $X.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),Xu(this.hostElement,"yt-close-popup-action"))}; $X.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()}; $X.prototype.onPopupClosed=$X.prototype.onPopupClosed;n([F(WC.YtEventForwardingBehavior),r("design:type",Object)],$X.prototype,"ytEventForwardingBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],$X.prototype,"ytRendererstamperBehavior",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],$X.prototype,"ytActionHandlerBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],$X.prototype,"ytRendererBehavior",void 0); n([Tt("yt-form-renderer"),r("design:type",Object)],$X.prototype,"formRenderer",void 0);n([M(),r("design:type",Object)],$X.prototype,"data",void 0);n([Kt("yt-popup-closed"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],$X.prototype,"onPopupClosed",null);n([gu({is:"ytd-form-popup-content",disableElementRegistration:!0})],$X); Tu($X,"ytd-form-popup-content",function(){if(p8b!==void 0)return p8b;var a=document.createElement("template");Q(a,"
");a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return p8b=a},{mode:1});var A8b;var aY=function(){return E.apply(this,arguments)||this}; k(aY,E);aY.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}}; aY.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")}; aY.prototype.onPopupOpened=function(){Gt(this.hostElement,"yt-invalidate-popup-tabbables")}; aY.prototype.onYtServiceRequestCompleted=function(a,b){b.data&&b.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),Gt(this.hostElement,"yt-invalidate-popup-tabbables"))}; aY.prototype.onYtServiceRequestCompleted=aY.prototype.onYtServiceRequestCompleted;aY.prototype.onPopupOpened=aY.prototype.onPopupOpened;n([F(WC.YtEventForwardingBehavior),r("design:type",Object)],aY.prototype,"ytEventForwardingBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],aY.prototype,"ytRendererstamperBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],aY.prototype,"ytRendererBehavior",void 0); n([M(),r("design:type",Object)],aY.prototype,"data",void 0);n([Kt("yt-popup-opened"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],aY.prototype,"onPopupOpened",null);n([Kt("yt-service-request-completed"),r("design:type",Function),r("design:paramtypes",[CustomEvent,lB]),r("design:returntype")],aY.prototype,"onYtServiceRequestCompleted",null);n([gu({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],aY); Tu(aY,"ytd-form-popup-renderer",function(){if(A8b!==void 0)return A8b;var a=document.createElement("template");Q(a,"
[[getSimpleString(data.title)]]
\n\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return A8b=a},{mode:1});var B8b;var bY=function(){var a=E.apply(this,arguments)||this;a.isToggleChecked=!1;return a}; k(bY,E);bY.prototype.onDataChanged=function(){var a;this.isToggleChecked=((a=this.data)==null?void 0:a.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"}; bY.prototype.close=function(){var a;((a=this.data)==null?0:a.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)}; bY.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var a,b=z((a=this.data)==null?void 0:a.switchButton,wrb);b&&(this.isToggleChecked&&b.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(b.switchOnInnertubeCommand),!this.isToggleChecked&&b.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(b.switchOffInnertubeCommand))}; bY.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")}; bY.prototype.onDataChanged=bY.prototype.onDataChanged;n([F(mz.YtComponentBehavior),r("design:type",Object)],bY.prototype,"ytComponentBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],bY.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],bY.prototype,"data",void 0);n([M(),r("design:type",Object)],bY.prototype,"isToggleChecked",void 0);n([M({value:zy("CLOSE")}),r("design:type",String)],bY.prototype,"closeButtonAriaLabel",void 0); n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],bY.prototype,"onDataChanged",null);n([gu({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],bY); Tu(bY,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(B8b!==void 0)return B8b;var a=document.createElement("template");Q(a,"
\n \n \n \n
\n
\n
\n \n \n
\n
\n
\n \n \n \n \n
\n
\n \n \n \n \n
\n
\n
\n \n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return B8b=a},{mode:1});var C8b;var D8b,E8b=function(){if(D8b!==void 0)return D8b;var a=document.createElement("template");Q(a,"
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;C8b===void 0&&(C8b=document.createElement("template"));var d=C8b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return D8b=a};var cY=function(){var a=E.apply(this,arguments)||this;a.genericErrorMessage=kz("Error, try again.");a.inReplyPanel=!1;a.hideBorder=!1;return a}; k(cY,E);cY.prototype.configureRendererStamper=function(){return{"data.actionPanel":{id:"content",mapping:{liveChatRestrictedParticipationRenderer:{component:"yt-live-chat-restricted-participation-renderer",properties:{inReplyPanel:"[[inReplyPanel]]"}},liveChatMessageInputRenderer:{component:"yt-live-chat-message-input-renderer",properties:{genericErrorMessage:"[[genericErrorMessage]]",inReplyPanel:"[[inReplyPanel]]"}},messageRenderer:{component:"ytd-message-renderer",params:{panel:!0}}}}}}; ba.Object.defineProperties(cY,{template:{configurable:!0,enumerable:!0,get:function(){return E8b()}}}); n([F($C.YtRendererstamperBehavior),r("design:type",Object)],cY.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],cY.prototype,"data",void 0);n([M(),r("design:type",Object)],cY.prototype,"genericErrorMessage",void 0);n([M(),r("design:type",Object)],cY.prototype,"inReplyPanel",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],cY.prototype,"hideBorder",void 0); n([fu({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],cY);Tu(cY,"yt-live-chat-engagement-panel-input-renderer",function(){return E8b()},{mode:0});var F8b={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(a){if(a&&a.length==1&&Array.isArray(a[0].loggingUrls)){a=Yh(a[0]);var b=this.macros||{},c=this.getAdModuleClient_();if(!c)return vj();a.loggingUrls.forEach(function(d){if(d.baseUrl){var e=d.baseUrl;var f=b;f=f===void 0?{}:f;e=c.getOptions().includes("replaceUrlMacros")?YRb(c,"replaceUrlMacros",{url:e,additionalMapping:f}):e;d.baseUrl=e}},this); a=[a]}return $u(this.hostElement,a)}, getAdModuleClient_:function(){var a=xO();return a?(a=a.getPlayer())?new ES(a):null:null}}]};var G8b;var dY=function(){var a=E.apply(this,arguments)||this;a.modern=x("web_modern_buttons");a.buttonOverrides={style:"call-to-action",type:"filled"};return a}; k(dY,E);dY.prototype.dataChanged=function(){this.data&&(this.data.impressionCommand&&this.data.impressionCommand.clickTrackingParams&&delete this.data.impressionCommand.clickTrackingParams,this.macroReplacementBehavior.sendServiceRequestAction([this.data.impressionCommand]),this.data.backgroundColor&&(this.enableColors=!0,this.hostElement.style.backgroundColor=Iy(this.data.backgroundColor)))}; dY.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var a=this.getFormattedStringLoggingDirectives(this.data.headline);a&&this.rendererBehavior.logExplicitClick(a)}}; dY.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var a=this.getFormattedStringLoggingDirectives(this.data.description);a&&this.rendererBehavior.logExplicitClick(a)}}; dY.prototype.getFormattedStringLoggingDirectives=function(a){return a&&a.runs&&a.runs.length>0&&a.runs[0]&&a.runs[0].loggingDirectives?a.runs[0].loggingDirectives:null}; dY.prototype.dataChanged=dY.prototype.dataChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],dY.prototype,"rendererBehavior",void 0);n([F(F8b.YtMacroReplacementBehavior),r("design:type",Object)],dY.prototype,"macroReplacementBehavior",void 0);n([M(),r("design:type",Object)],dY.prototype,"data",void 0);n([M(),r("design:type",Object)],dY.prototype,"navigationEndpoint",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],dY.prototype,"enableColors",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],dY.prototype,"modern",void 0);n([M(),r("design:type",Object)],dY.prototype,"buttonOverrides",void 0);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],dY.prototype,"dataChanged",null);n([gu({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],dY); Tu(dY,"ytd-action-basic-immersive-content-renderer",function(){if(G8b!==void 0)return G8b;var a=document.createElement("template");Q(a,"\n\n\n\n\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return G8b=a},{mode:1});var H8b;var I8b;var eY=function(){return E.apply(this,arguments)||this}; k(eY,E);eY.prototype.dataChanged=function(){var a;((a=this.data)==null?void 0:a.backgroundColor)!==void 0&&Ft(this.hostElement,{"--bgu-color":Iy(this.data.backgroundColor)})}; eY.prototype.onImageTileClick=function(){var a;((a=this.data)==null?0:a.navigationEndpoint)&&Gt(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var b;((b=this.data)==null?0:b.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)}; ba.Object.defineProperties(eY.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.backgroundColor)!==void 0}}, getObjectFit:{configurable:!0,enumerable:!0,get:function(){var a;if(((a=this.data)==null?void 0:a.objectFit)!==void 0)switch(this.data.objectFit){case"OBJECT_FIT_CONTAIN":return"CONTAIN";case"OBJECT_FIT_COVER":return"COVER";case"OBJECT_FIT_FILL":return"FILL";}return null}}, hasTileMetadata:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}}, getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var a,b,c;if(((a=this.data)==null?void 0:(b=a.detailsLine)==null?void 0:b.texts)!=null&&((c=this.data)==null?void 0:c.detailsLine.texts.length)>0){var d;return(d=this.data)==null?void 0:d.detailsLine.texts.map(function(e){return e.text}).join("")}return null}}, getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var a,b,c;if(((a=this.data)==null?void 0:(b=a.optionalDetailsLine)==null?void 0:b.texts)!=null&&((c=this.data)==null?void 0:c.optionalDetailsLine.texts.length)>0){var d;return(d=this.data)==null?void 0:d.optionalDetailsLine.texts.map(function(e){return e.text}).join("")}return null}}}); eY.prototype.dataChanged=eY.prototype.dataChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],eY.prototype,"rendererBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],eY.prototype,"componentBehavior",void 0);n([M(),r("design:type",Object)],eY.prototype,"data",void 0);n([M({reflectToAttribute:!0}),H("data.backgroundColor"),r("design:type",Boolean),r("design:paramtypes",[])],eY.prototype,"hasBackgroundColor",null); n([H("data.objectFit"),r("design:type",Object),r("design:paramtypes",[])],eY.prototype,"getObjectFit",null);n([M({reflectToAttribute:!0}),H("data.tileRenderingStyle"),r("design:type",Boolean),r("design:paramtypes",[])],eY.prototype,"hasTileMetadata",null);n([H("data.detailsLine"),r("design:type",Object),r("design:paramtypes",[])],eY.prototype,"getSecondaryDetails",null);n([H("data.optionalDetailsLine"),r("design:type",Object),r("design:paramtypes",[])],eY.prototype,"getOptionalDetails",null); n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],eY.prototype,"dataChanged",null);n([gu({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],eY); Tu(eY,"ytd-image-tile-renderer",function(){if(I8b!==void 0)return I8b;var a=document.createElement("template");Q(a," \n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return I8b=a},{mode:1});var J8b;var fY=function(){return E.apply(this,arguments)||this}; k(fY,E);fY.prototype.getOpenLinkIcon=function(){return"arrow_diagonal_up_right"}; fY.prototype.onSitelinkTap=function(){Gt(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)for(var a=l(this.data.clickCommands),b=a.next();!b.done;b=a.next())this.ytComponentBehavior.resolveCommand(b.value)}; n([F(mz.YtComponentBehavior),r("design:type",Object)],fY.prototype,"ytComponentBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],fY.prototype,"rendererBehavior",void 0);n([M(),r("design:type",Object)],fY.prototype,"data",void 0);n([gu({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],fY); Tu(fY,"ytd-sitelink-renderer",function(){if(J8b!==void 0)return J8b;var a=document.createElement("template");Q(a,"
\n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return J8b=a},{mode:1});var gY=function(){var a=E.apply(this,arguments)||this;a.paddingFix=x("enable_ads_web_ep_buenos_aires_and_padding_fix");return a}; k(gY,E);gY.prototype.configureRendererStamper=function(){return{"data.sitelinkRenderers":{id:"sitelinks",mapping:{sitelinkRenderer:"ytd-sitelink-renderer"}},"data.actionButton":{id:"action",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imageTileRenderers":{id:"image-tiles",mapping:{imageTileRenderer:"ytd-image-tile-renderer"}}}}; gY.prototype.dataChanged=function(){var a=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(b){b.clickTrackingParams&&delete b.clickTrackingParams;a.ytMacroReplacementBehavior.sendServiceRequestAction([b])})}; gY.prototype.shouldHideFooter=function(a){return!(a&&x("use_ads_engagement_panel_desktop_footer_cta"))}; ba.Object.defineProperties(gY.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.data)==null?void 0:a.imageTileRenderers)===void 0||((b=this.data)==null?void 0:b.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(c){var d;return(d=z(c,klb))==null?void 0:d.removeBorder})}}, useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.data)==null?void 0:a.imageTileRenderers)===void 0||((b=this.data)==null?void 0:b.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(c){var d;return((d=z(c,klb))==null?void 0:d.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}}); gY.prototype.dataChanged=gY.prototype.dataChanged;n([F(F8b.YtMacroReplacementBehavior),r("design:type",Object)],gY.prototype,"ytMacroReplacementBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],gY.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],gY.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],gY.prototype,"data",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],gY.prototype,"paddingFix",void 0);n([M({reflectToAttribute:!0}),H("data.imageTileRenderers"),r("design:type",Boolean),r("design:paramtypes",[])],gY.prototype,"removeBorderFromImageTiles",null);n([M({reflectToAttribute:!0}),H("data.imageTileRenderers"),r("design:type",Boolean),r("design:paramtypes",[])],gY.prototype,"useFooteredMetadataRenderingStyle",null); n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],gY.prototype,"dataChanged",null);n([gu({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],gY); Tu(gY,"ytd-action-engagement-panel-content-renderer",function(){if(H8b!==void 0)return H8b;var a=document.createElement("template");Q(a,"
\n \n \n
\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return H8b=a},{mode:1});var K8b;var M8b=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("u4exy"),2);a=L8b;return b.return(a)})},N8b=yD(function(){return M8b()},{debugName:"adGridCardCollectionViewModel"}); Gn(xD,function(a){a.registerLoadFn("adGridCardCollectionViewModel","u4exy",M8b)});var O8b=new Bn("POSTMESSAGE_TUNNEL_TOKEN");var P8b=["/parent_tools","/file_download","/artist_roster"],Q8b=[Db.DATA,Db.HTTP,Db.HTTPS,Db.MAILTO,Db.FTP,Db.RELATIVE,Db.INTENT,Db.VND_YOUTUBE];function R8b(a){return a&&P8b.some(function(b){return a.includes(b)})} function S8b(a){var b=z(a,Qs);if(!b)return!1;var c=b.url,d=b.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!c)return co(Error("UrlEndpoint with no url specified.")),!1;if(b.target==="TARGET_NEW_WINDOW"){b={};x("resolve_url_parent_tracking_params")&&(!Tc(c)||Yc(window.location.href,c))&&(b={endpoint:a,itct:a.clickTrackingParams});mXa(b);a=null;try{if(d){a:{var e=c,f=b;d=d===void 0?!1:d;f&&Hy(e,f);var h=Fb(e),m=xb(h);e!=m&&Yk(Error("Unsafe window.open URL: "+e));e=m;try{if(d){m=e;m=Xpa(m); wB(m);a=Yb(window,m,"_blank","attributionsrc");break a}}catch(p){Xk(p)}wB(e);a=Yb(window,h,"_blank",void 0)}Fn().resolve(O8b).addPostMessageTunnel(a,c);return!0}}catch(p){co(p)}Hy(c,b);a=ufb(c,{target:"_blank",noopener:!1});Fn().resolve(O8b).addPostMessageTunnel(a,c);return!0}h=Uc(c);h=R8b(h)||c==="https://studio.youtube.com/";if(Tc(c)&&!Yc(window.location.href,c)||h)wB(c),Wv(),hyb(c,Q8b);else return fo(new Dl("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead", a)),!1;return!0} function T8b(a,b){b=b===void 0?0:b;if(!(z(a,clb)||z(a,blb)||z(a,Qs)&&z(a,Qs).url))return!1;var c,d=(c=z(a,Qs))==null?void 0:c.url;c=d?{externalLinkData:{url:d}}:null;return gz().clickCommand(a,c,b)} ;function U8b(a,b,c){var d=LB(c);a&&b&&d&&a.getPlayerPromise().then(function(e){T8b(d)&&bo();new ES(e).executeCommand(d,b);e.pauseVideo()})} ;function V8b(a){var b=xO(),c;if(c=xa("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var d;c=(d=c())==null?void 0:d.layoutId}else c=null;U8b(b,c,a)} ;bB(O(function(a){var b=a.data;a=vw({visibilityCallback:function(c){var d,e=(d=b().interaction)==null?void 0:d.onFirstVisible;c&&e&&QB(e)}, showOption:tT});return D("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:dB(a,wT(function(){return b().interaction},V8b))},D("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},D(P,{cond:dP("(min-width: "+(dyb()+eyb)+"px)"), then:function(){return D(OC,{data:function(){return b().adGridCardCollection}},{adGridCardCollectionViewModel:function(c){return D(N8b,{data:c.data, customCommandResolver:V8b})}})}, else:function(){return D(OC,{data:function(){return b().adGridCardCollection}},{adGridCardCollectionViewModel:function(c){return D(N8b,{data:c.data, customCommandResolver:V8b,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),D("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},D(OC,{data:function(){return b().adButton}},{adButtonViewModel:function(c){return D(yT,{data:c.data, customCommandResolver:V8b})}})))},"hf"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:$A}});function W8b(a){var b=xO(),c;if(c=xa("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var d;c=(d=c())==null?void 0:d.layoutId}else c=null;U8b(b,c,a)} ;bB(O(function(a){var b=a.data;a=vw({visibilityCallback:function(c){var d,e=(d=b().interaction)==null?void 0:d.onFirstVisible;c&&e&&QB(e)}, showOption:tT});return D("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:dB(a,wT(function(){return b().interaction},W8b))},D("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},D(OC,{data:function(){if(dP("(min-width: "+(dyb()+eyb)+"px)")())var c=b().adGridCardCollection;else {c=Object.assign({},z(b().adGridCardCollection,qlb));var d;c.gridCards!==void 0&&((d=c.gridCards)==null?void 0:d.length)>1?c.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":c.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";c={adGridCardCollectionViewModel:c}}return c}},{adGridCardCollectionViewModel:function(c){return D(N8b,{data:c.data, customCommandResolver:W8b})}})),D("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},D(OC,{data:function(){return b().adButton}},{adButtonViewModel:function(c){return D(yT,{data:c.data, customCommandResolver:W8b})}})))},"jf"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:$A}});var hY=function(){var a=E.apply(this,arguments)||this;a.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return a}; k(hY,E);g=hY.prototype;g.configureRendererStamper=function(){return{"data.contentRenderer":{id:"content",mapping:{actionEngagementPanelContentRenderer:"ytd-action-engagement-panel-content-renderer",basicImmersiveEngagementPanelContentRenderer:"ytd-action-basic-immersive-content-renderer",panelTextIconImageTilesButtonLayoutContentViewModel:"panel-text-icon-image-tiles-button-layout-content-view-model",panelTextIconTextGridCardsSubLayoutContentViewModel:"panel-text-icon-text-grid-cards-sub-layout-content-view-model"}}}}; g.created=function(){this.JSC$14831_playerListener=new dS(this)}; g.attached=function(){this.getDataFromPlayerAndRender()}; g.dataChanged=function(){this.getDataFromPlayerAndRender()}; g.detached=function(){this.player&&(lQb(this.JSC$14831_playerListener,this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),lQb(this.JSC$14831_playerListener,this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)}; g.getDataFromPlayerAndRender=function(){var a=this,b=xO();b&&b.getPlayerPromise().then(function(c){a.getCachedDataAndListen(c)})}; g.getCachedDataAndListen=function(a){this.resolveCachedActions();if(!this.player){var b=kQb(this.JSC$14831_playerListener,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction);a.addEventListener("updateEngagementPanelAction",b);b=kQb(this.JSC$14831_playerListener,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction);a.addEventListener("changeEngagementPanelVisibility",b);this.player=a}}; g.resolveCachedActions=function(){var a=xa("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(a=a&&a())&&!Wh(a)&&this.sendUpdateEngagementPanelAction(a);(a=(a=xa("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&a())&&!Wh(a)&&this.sendChangeEngagementPanelVisibilityAction(a);(a=(a=xa("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&a())&&!Wh(a)&&this.sendScrollToEngagementPanelCommand(a)}; g.sendUpdateEngagementPanelAction=function(a){var b;Xu(this.hostElement,"yt-update-engagement-panel-action",[(b=yia(a,"action"))!=null?b:a])}; g.sendChangeEngagementPanelVisibilityAction=function(a){Xu(this.hostElement,"yt-change-engagement-panel-visibility-action",[a])}; g.sendScrollToEngagementPanelCommand=function(a){Xu(this.hostElement,"yt-scroll-to-engagement-panel-command",[a])}; g.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),this.player.pauseVideo()):fo(Error("Missing player in YtdAdsEngagementPanelContentRenderer."))}; hY.prototype.dataChanged=hY.prototype.dataChanged;n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],hY.prototype,"actionHandlerBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],hY.prototype,"componentBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],hY.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],hY.prototype,"ytRendererstamperBehavior",void 0); n([M(),r("design:type",Object)],hY.prototype,"data",void 0);n([M(),r("design:type",Object)],hY.prototype,"player",void 0);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],hY.prototype,"dataChanged",null);n([gu({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],hY); Tu(hY,"ytd-ads-engagement-panel-content-renderer",function(){if(K8b!==void 0)return K8b;var a=document.createElement("template");Q(a,"
\n");a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild); return K8b=a},{mode:1});var X8b;var iY=function(){var a=E.apply(this,arguments)||this;a.player=null;a.playerEvents=new Map;a.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return a}; k(iY,E);g=iY.prototype;g.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer",commentActionButtonsRenderer:{component:"ytd-comment-action-buttons-renderer",properties:{voteCount:"[[voteCount]]"}}}}}}; g.created=function(){this.JSC$14834_playerListener=new dS(this);this.player=null;this.playerEvents=new Map;this.playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.playerEvents.set("onVideoProgress",this.onVideoProgress);this.playerEvents.set("onAdStart",this.playerAdStartHandler);this.playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)}; g.attached=function(){var a=this,b=xO();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));b&&b.getPlayerPromise().then(function(c){a.setPlayer(c);a.set("isPageLoad",!1)})}; g.setPlayer=function(a){this.player&&fS(this.JSC$14834_playerListener,this.player,this.playerEvents);this.set("player",a);a&&(eS(this.JSC$14834_playerListener,a,this.playerEvents),a.getPresentingPlayerType()===2&&this.playerAdStartHandler())}; g.onLoopRangeChange=function(a){var b=Fn().resolve(Cn(CK));if((!b||b.isOnWatch())&&this.hostElement.clientHeight){var c;!a&&((c=this.data)==null?0:c.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}}; g.onVideoProgress=function(a){var b,c,d=((b=this.player)==null?void 0:(c=b.getPresentingPlayerType)==null?void 0:c.call(b))===2;this.isAdPlaying!==d&&this.set("isAdPlaying",d);var e;if(!d&&(e=this.player)!=null&&e.getLoopRange()){c=this.player.getLoopRange();b=c.startTimeMs;c=c.endTimeMs;d=this.player.getProgressState(1).seekableStart;var f;b
\n
\n \n \n \n \n
\n \n \n \n \n [[getSimpleString(data.createdText)]]\n
\n
\n
\n [[getSimpleString(data.title)]]\n
\n
\n
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
[[getSimpleString(data.adPlayingText)]]
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return X8b=a},{mode:1});var Y8b;var jY=function(){var a=E.apply(this,arguments)||this;a.player=null;a.playerEvents=new Map;return a}; k(jY,E);g=jY.prototype;g.created=function(){this.JSC$14839_playerListener=new dS(this);this.player=null;this.playerEvents=new Map;this.playerEvents.set("onVideoProgress",this.onVideoProgress);this.playerEvents.set("onAdStart",this.playerAdStartHandler);this.playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)}; g.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}}; g.attached=function(){var a=this,b=xO();b&&b.getPlayerPromise().then(function(c){a.setPlayer(c);a.set("isPageLoad",!1)})}; g.setPlayer=function(a){this.player&&fS(this.JSC$14839_playerListener,this.player,this.playerEvents);this.set("player",a);if(a){eS(this.JSC$14839_playerListener,a,this.playerEvents);var b;(a==null?void 0:(b=a.getPresentingPlayerType)==null?void 0:b.call(a))===2&&this.playerAdStartHandler()}}; g.playerAdStartHandler=function(){this.set("isAdPlaying",!0)}; g.playerAdEndHandler=function(){this.set("isAdPlaying",!1)}; g.onVideoProgress=function(){var a,b,c=((a=this.player)==null?void 0:(b=a.getPresentingPlayerType)==null?void 0:b.call(a))===2;this.isAdPlaying!==c&&this.set("isAdPlaying",c)}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],jY.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],jY.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],jY.prototype,"data",void 0);n([M({reflectToAttribute:!0,value:!1}),r("design:type",Boolean)],jY.prototype,"isAdPlaying",void 0);n([M({reflectToAttribute:!0,value:!0}),r("design:type",Boolean)],jY.prototype,"isPageLoad",void 0); n([gu({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],jY); Tu(jY,"ytd-clip-section-footer-renderer",function(){if(Y8b!==void 0)return Y8b;var a=document.createElement("template");Q(a,"
\n");a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return Y8b=a},{mode:1});var Z8b;var $8b;var kY=function(){return E.apply(this,arguments)||this}; k(kY,E);n([F(Yz.YtRendererBehavior),r("design:type",Object)],kY.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],kY.prototype,"data",void 0);n([gu({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],kY); Tu(kY,"ytd-clip-ad-state-renderer",function(){if($8b!==void 0)return $8b;var a=document.createElement("template");Q(a,"
\n
[[getSimpleString(data.title)]]
\n
[[getSimpleString(data.body)]]
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return $8b=a},{mode:1});var a9b;var AY=function(){var a=E.apply(this,arguments)||this;a.value="";a.valid=!1;a.userChangedValue=!1;a.disabled=!1;a.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return a}; k(AY,E);g=AY.prototype;g.detached=function(){this.userChangedValue=!1}; g.handleKeyDown=function(a){a.keyCode===(zd?n2a(13):eda&&Ad?o2a(13):13)&&a.preventDefault()}; g.handleInput=function(){var a=wt(this.hostElement).querySelector("#title");if(a){var b=(a.value||"").replace(/\r|\n/g," ");this.set("value",b);a.value=b;this.valid=a.validate();this.userChangedValue=!0}}; g.handleBlur=function(){this.valid=wt(this.hostElement).querySelector("#title").validate()}; g.onValueChanged=function(){Gt(this.hostElement,"title-changed",{title:this.value})}; g.onValidChanged=function(){Gt(this.hostElement,"title-valid-changed",{valid:this.valid})}; g.setInput=function(a,b){var c=wt(this.hostElement).querySelector("#title");c&&(c.value=a,this.handleInput(),b&&(c.invalid=!1,this.valid=!0))}; g.onClipCreationDisable=function(){this.set("disabled",!0)}; g.onClipCreationEnable=function(){this.set("disabled",!1)}; g.onClipCreationVisibilityChange=function(a){var b=this;a.visible?requestAnimationFrame(function(){var c;((c=wt(b.hostElement).querySelector("#title"))==null?void 0:c.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)}; AY.prototype.onValidChanged=AY.prototype.onValidChanged;AY.prototype.onValueChanged=AY.prototype.onValueChanged;AY.prototype.handleBlur=AY.prototype.handleBlur;AY.prototype.handleInput=AY.prototype.handleInput;AY.prototype.handleKeyDown=AY.prototype.handleKeyDown;n([F(Yz.YtRendererBehavior),r("design:type",Object)],AY.prototype,"ytRendererBehavior",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],AY.prototype,"ytActionHandlerBehavior",void 0); n([M(),r("design:type",Object)],AY.prototype,"data",void 0);n([M(),r("design:type",Object)],AY.prototype,"value",void 0);n([M(),r("design:type",Object)],AY.prototype,"valid",void 0);n([M(),r("design:type",Object)],AY.prototype,"userChangedValue",void 0);n([M(),r("design:type",Object)],AY.prototype,"disabled",void 0);n([Kt("keydown"),r("design:type",Function),r("design:paramtypes",[KeyboardEvent]),r("design:returntype")],AY.prototype,"handleKeyDown",null); n([Kt("input"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],AY.prototype,"handleInput",null);n([Kt("blur"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],AY.prototype,"handleBlur",null);n([Lt("value"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],AY.prototype,"onValueChanged",null);n([Lt("valid"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],AY.prototype,"onValidChanged",null); n([gu({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],AY); Tu(AY,"ytd-clip-creation-text-input-renderer",function(){if(a9b!==void 0)return a9b;var a=document.createElement("template");Q(a,"\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return a9b=a},{mode:1});var b9b;var c9b;function BY(a,b){var c=a<0?"-":"";a=Math.abs(a);var d=Math.floor(a/3600),e=Math.floor(a)%3600,f=Math.floor(e/60);e=Math.floor(e)%60;var h="";(b===void 0?0:b)&&(h="."+Math.round((a-Math.floor(a))*10));return d>0?""+c+d+":"+(f<10?"0"+f:""+f)+":"+(e<10?"0"+e:""+e)+h:""+c+f+":"+(e<10?"0"+e:""+e)+h} function d9b(a){var b=a.match(/[^0-9:\.]/g);if(b&&b.length>0)return null;a=a.split(":");if(a.length===0||a.length>3)return null;b=1;for(var c=0;a.length>0;){var d=a.pop();if(d===void 0)break;var e=Number(d);if(d===""||isNaN(e))return null;c+=e*b;b*=60}return c} ;function e9b(a,b,c,d){a=Math.max(c,a);b=Math.min(b,d-c);a+b>d?(c=d,a=c-b):c=a+b;return{start:a,end:c}} function f9b(a,b,c,d,e,f){ad&&(a=d-e);b>d&&(b=d);b=Math.min(a+f,Math.max(a+e,b));return{start:a,end:b}} function g9b(a,b,c,d,e,f){b>d?b=d:b-e0)for(e=0;e\n");a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);j9b=a}a=j9b;return a},{mode:2});var k9b;var l9b;var DY=function(){var a=E.apply(this,arguments)||this;a.start=0;a.end=30;a.visible=!1;a.draggingLeft_=!1;a.draggingRight_=!1;a.draggingRuler_=!1;a.draggingWindow_=!1;a.seekableStart=0;a.seekableEnd=0;a.rulerWidth_=0;a.rulerShift_=0;a.windowSlideSpeed=0;a.disabled=!1;a.initialized=!1;a.durationAccessibilityLabel="";a.activeLoopRange_=!1;a.rulerDragMouseStart_=0;a.rulerDragRulerStart_=0;a.rulerDragStartTime_=0;a.rulerDragEndTime_=0;a.dragMouseLastX_=0;a.scrollInterval_=null;a.scrubberVe_=null;a.boundHandlers_= {};a.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return a}; k(DY,E);g=DY.prototype; g.created=function(){var a=this;this.JSC$14854_playerListener=new dS(this);this.playerEvents=new Map;this.playerEvents.set("onVideoProgress",this.onVideoProgress_);this.playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.playerEvents.set("onStateChange",this.onStateChange_);var b={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(b).forEach(function(c){a.boundHandlers_[c]=b[c].bind(a)})}; g.attached=function(){this.activeLoopRange_=!1;wt(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);wt(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=Rv(156731)}; g.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();wt(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);wt(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)}; g.onVisibilityChangedAction_=function(a){var b=this;a.visible&&!this.player_&&(a=xO())&&a.getPlayerPromise().then(function(c){b.setPlayer(c)})}; g.setPlayer=function(a){this.player_&&fS(this.JSC$14854_playerListener,this.player_,this.playerEvents);a&&(this.set("player_",a),eS(this.JSC$14854_playerListener,a,this.playerEvents))}; g.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)}; g.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)}; g.beginHandleDrag_=function(a){this.disabled||(a.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=a.clientX,a.target===wt(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():a.target===wt(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())}; g.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()}; g.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()}; g.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())}; g.beginRulerDrag_=function(a){this.disabled||(a.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=a.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())}; g.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()}; g.beginWindowScroll_=function(){var a=this;this.scrollInterval_=setInterval(function(){var b=a.windowSlideSpeed,c=a.start,d=a.boundedRulerStartLimit_();Math.abs(c-d)<=1E-6?b-=.1:(c=a.end,d=a.boundedRulerEndLimit_(),b=Math.abs(c-d)<=1E-6?b+.1:0);b&&(c=a.capRulerOffset_(a.rulerShift_+b),c==a.rulerShift_?b=0:(a.set("rulerShift_",c),Gt(a.hostElement,"set-fixed-length-range",{start:a.start+b,duration:a.end-a.start})));a.set("windowSlideSpeed",b)},33)}; g.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)}; g.endDrag_=function(){this.logClick();var a=void 0;this.draggingRight_?a=this.end-1:this.draggingLeft_&&(a=this.start);this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1;this.endWindowScroll_();this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end,a);this.removeMouseEventHandlers_();this.rulerShift_+this.windowSizeSec_this.start-this.pixelsToTime_(16)&&this.set("rulerShift_",this.start-this.pixelsToTime_(16))}; g.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()}; g.updateRulerSize_=function(){this.set("rulerWidth_",wt(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)}; g.handleMouseDrag_=function(a){a.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(a):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(a):this.draggingWindow_&&this.handleWindowDrag_(a))}; g.handleRulerDrag_=function(a){a=this.pixelsToTime_(a.clientX-this.rulerDragMouseStart_);a=this.capRulerOffset_(this.rulerDragRulerStart_-a);this.set("rulerShift_",a);var b=this.rulerDragStartTime_-(this.rulerDragRulerStart_-a);Gt(this.hostElement,"set-fixed-length-range",{start:b,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-a)-b})}; g.handleWindowDrag_=function(a){var b=a.clientX-this.dragMouseLastX_;this.dragMouseLastX_=a.clientX;a=this.pixelsToTime_(b);Gt(this.hostElement,"set-fixed-length-range",{start:this.start+a,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})}; g.capRulerOffset_=function(a){var b=this.seekableStart-this.pixelsToTime_(16),c=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(b,a),c)}; g.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)}; g.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)}; g.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)}; g.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)}; g.handleWindowHandleDrag_=function(a){var b=a.clientX-this.dragMouseLastX_;this.dragMouseLastX_=a.clientX;a=this.pixelsToTime_(b);if(this.draggingLeft_){var c=this.start+a;var d=this.end}else this.draggingRight_&&(c=this.start,d=this.end+a);Gt(this.hostElement,"set-range",{start:c,end:d,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})}; g.onVideoProgress_=function(a){this.disabled||(a=this.timeToPixels_(a-this.rulerShift_,this.tickSpacing_),wt(this.hostElement).querySelector("#playhead").style.transform="translateX("+a+")")}; g.onClipCreationDisable_=function(){this.endDrag_()}; g.timeToPixels_=function(a,b,c){a*=b;return c===void 0||c?a+"px":a}; g.pixelsToTime_=function(a){return a/this.tickSpacing_}; g.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)}; g.centerRuler_=function(a,b,c){this.set("rulerShift_",this.capRulerOffset_(a+(b-a)/2-c/2))}; g.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)}; g.updateLoopRange_=function(a,b,c,d,e,f,h){a&&(b&&d&&!c?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(a.pauseVideo(),a.seekTo(e,!1,void 0,void 0,50)):this.draggingRight_?(a.pauseVideo(),a.seekTo(f-.1,!1,void 0,void 0,50)):(h!==void 0?a.seekTo(h,!0,void 0,void 0,50):(b=a.getCurrentTime(),bf?a.seekTo(e,!0,void 0,void 0,50):a.seekTo(b,!0,void 0,void 0,50)),a.playVideo()),a.setLoopRange({startTimeMs:e*1E3,endTimeMs:f*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(a.getCurrentTime())): this.activeLoopRange_&&(a.setLoopRange(null),this.activeLoopRange_=!1))}; g.updateHandles_=function(){wt(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));wt(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))}; g.updateRuler_=function(){var a=this.end,b=this.start,c=this.draggableStartLimit_(),d=this.draggableEndLimit_();(bd+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)}; g.computeDurationLabel_=function(a,b){return a?a.replace("$clip_length",parseFloat(b).toFixed(1)):""}; g.computeDuration_=function(a,b){return this.isValidTime_(a)&&this.isValidTime_(b)&&a=this.seekableStart&&a<=this.seekableEnd:!0}; g.computeWindowSizeSec_=function(a,b,c){return Math.min((a||12E4)/1E3,c-b)}; g.computeTickSpacing_=function(a,b){return b?b/a:1}; g.onDragStateChanged_=function(){Gt(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})}; g.centerRangeOnTime_=function(a){var b=this.duration;a=e9b(a-b/2,b,this.seekableStart,this.seekableEnd);Gt(this.hostElement,"set-fixed-length-range",{start:a.start,duration:a.end-a.start})}; g.nearlyLessThan_=function(a,b,c){return a+(c===void 0?1E-6:c)
\n
\n \n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
[[durationLabel]]
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;k9b===void 0&&(k9b=document.createElement("template"));var d=k9b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);l9b=a}a=l9b;return a},{mode:2});var EY=function(){var a=E.apply(this,arguments)||this;a.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};a.startHighlightTimeout=0;a.endHighlightTimeout=0;return a}; k(EY,E);g=EY.prototype;g.attached=function(){var a=this;this.startInput.addEventListener("input",function(b){return a.handleStartInput_(b)}); this.endInput.addEventListener("input",function(b){return a.handleEndInput_(b)}); this.startInput.addEventListener("focusout",function(b){return a.handleStartBlur_(b)}); this.endInput.addEventListener("focusout",function(b){return a.handleEndBlur_(b)})}; g.setPlayer=function(a){this.set("player_",a)}; g.onSetFixedLengthRange_=function(a){var b=a.detail;a=b.start;var c=b.duration,d=b.startLimit;b=b.endLimit;d||(d=this.seekableStart_);b||(b=this.seekableEnd_);a=e9b(a,c,d,b);this.start=a.start;this.end=a.end}; g.onSetRange_=function(a){var b=a.detail;a=b.start;var c=b.end,d=b.startLimit;b=b.endLimit;d||(d=this.seekableStart_);b||(b=this.seekableEnd_);if(a=f9b(a,c,d,b,this.minLengthSec,this.maxLengthSec))this.start=a.start,this.end=a.end}; g.updateInputs_=function(){var a=this.end,b=this.start;this.startInput.focused||(this.startInput.value=BY(b,!0));this.endInput.focused||(this.endInput.value=BY(a,!0))}; g.handleStartInput_=function(a){a=d9b(a.target.value);if(a===null)this.set("startValid",!1);else{var b=this.end,c=f9b(a,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);c?(this.set("endWillUpdate",c.end!==b),this.set("startValid",c.start===a)):this.set("startValid",!1)}}; g.handleEndInput_=function(a){a=d9b(a.target.value);if(a===null)this.set("endValid",!1);else{var b=this.start,c=g9b(this.start,a,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);c?(this.set("startWillUpdate",c.start!==b),this.set("endValid",c.end===a)):this.set("endValid",!1)}}; g.handleStartBlur_=function(a){a=d9b(a.target.value);a===null?this.startInput.value=BY(this.start,!0):this.forceUpdateInputs_(f9b(a,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))}; g.handleEndBlur_=function(a){a=d9b(a.target.value);a===null?this.endInput.value=BY(this.end,!0):this.forceUpdateInputs_(g9b(this.start,a,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))}; g.forceUpdateInputs_=function(a){a&&(this.start=a.start,this.end=a.end);this.startInput.value=BY(this.start,!0);this.endInput.value=BY(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1}; g.initializeClipRange_=function(){var a=this.seekableEnd_,b=this.seekableStart_,c=this.visible_,d=this.player_;if(!d||!c||b===null||!a)this.set("initialized",!1);else if(!this.initialized){var e=d.getCurrentTime(),f=this.getDefaultLengthSec_();c=d.getVideoData();var h=d.getPlayerState()==1,m=c.isLive;f=Math.min(f,a-b);e=Math.max(0,e);a=m?g9b(e-f,e,b,a,this.minLengthSec,this.maxLengthSec):h?e9b(e-f/2,f,b,a):e9b(e,f,b,a);this.start=a.start;this.end=a.end;this.set("initialized",!0);c.isLive&&d.seekTo(a.start); this.startInput.value=BY(this.start,!0);this.endInput.value=BY(this.end,!0)}}; g.onStartChanged_=function(){var a=this;Gt(this.hostElement,"start-changed",{start:this.start});var b;isNaN((b=this.oldStart)!=null?b:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){a.set("highlightStart",!1);a.startHighlightTimeout=0;a.oldStart=a.start},3E3))}; g.onEndChanged_=function(){var a=this;Gt(this.hostElement,"end-changed",{end:this.end});var b;isNaN((b=this.oldEnd)!=null?b:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){a.set("highlightEnd",!1);a.endHighlightTimeout=0;a.oldEnd=a.end},3E3))}; g.onVisibilityChangedAction_=function(a){var b=this;this.set("visible_",a.visible);this.visible_&&!this.player_&&(a=xO())&&a.getPlayerPromise().then(function(c){b.setPlayer(c)})}; g.computeMinLengthSec_=function(a){return a/1E3||5}; g.computeMaxLengthSec_=function(a){return a/1E3||60}; g.computeDefaultLengthSec_=function(a){return a/1E3}; g.getDefaultLengthSec_=function(){return this.defaultLengthSec||30}; g.computeSeekableStart_=function(a,b){return a&&b?a.getProgressState(1).seekableStart:0}; g.computeSeekableEnd_=function(a,b){return a&&b?a.getProgressState(1).seekableEnd:0}; g.onClipCreationDisable_=function(){this.set("disabled",!0)}; g.onClipCreationEnable_=function(){this.set("disabled",!1)}; g.onDragState_=function(a){this.set("highlightStart",a.detail.startChanging);this.set("highlightEnd",a.detail.endChanging)}; EY.prototype.onDragState_=EY.prototype.onDragState_;EY.prototype.onEndChanged_=EY.prototype.onEndChanged_;EY.prototype.onStartChanged_=EY.prototype.onStartChanged_;EY.prototype.initializeClipRange_=EY.prototype.initializeClipRange_;EY.prototype.updateInputs_=EY.prototype.updateInputs_;EY.prototype.onSetRange_=EY.prototype.onSetRange_;EY.prototype.onSetFixedLengthRange_=EY.prototype.onSetFixedLengthRange_; n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],EY.prototype,"ytActionHandlerBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],EY.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],EY.prototype,"data",void 0);n([M({value:0}),r("design:type",Number)],EY.prototype,"start",void 0);n([M({value:!0}),r("design:type",Boolean)],EY.prototype,"startValid",void 0); n([M({value:!1,reflectToAttribute:!0}),r("design:type",Boolean)],EY.prototype,"startWillUpdate",void 0);n([M({value:30}),r("design:type",Number)],EY.prototype,"end",void 0);n([M({value:!0}),r("design:type",Boolean)],EY.prototype,"endValid",void 0);n([M({value:!1,reflectToAttribute:!0}),r("design:type",Boolean)],EY.prototype,"endWillUpdate",void 0);n([M({computed:"computeMinLengthSec_(data.minLengthMs)"}),r("design:type",Number)],EY.prototype,"minLengthSec",void 0); n([M({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),r("design:type",Number)],EY.prototype,"maxLengthSec",void 0);n([M({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),r("design:type",Number)],EY.prototype,"defaultLengthSec",void 0);n([M({value:!1}),r("design:type",Boolean)],EY.prototype,"visible_",void 0);n([M(),r("design:type",Object)],EY.prototype,"player_",void 0); n([M({value:0,computed:"computeSeekableStart_(player_, visible_)"}),r("design:type",Number)],EY.prototype,"seekableStart_",void 0);n([M({computed:"computeSeekableEnd_(player_, visible_)"}),r("design:type",Number)],EY.prototype,"seekableEnd_",void 0);n([M({value:!1}),r("design:type",Boolean)],EY.prototype,"initialized",void 0);n([M({value:!1,reflectToAttribute:!0}),r("design:type",Boolean)],EY.prototype,"disabled",void 0); n([M({value:!1,reflectToAttribute:!0}),r("design:type",Boolean)],EY.prototype,"highlightStart",void 0);n([M({value:!1,reflectToAttribute:!0}),r("design:type",Boolean)],EY.prototype,"highlightEnd",void 0);n([Tt("#start"),r("design:type",HTMLInputElement)],EY.prototype,"startInput",void 0);n([Tt("#end"),r("design:type",HTMLInputElement)],EY.prototype,"endInput",void 0); n([Kt("set-fixed-length-range"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],EY.prototype,"onSetFixedLengthRange_",null);n([Kt("set-range"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],EY.prototype,"onSetRange_",null);n([Lt("start","end"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],EY.prototype,"updateInputs_",null); n([Lt("player_","visible_","seekableStart_","seekableEnd_"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],EY.prototype,"initializeClipRange_",null);n([Lt("start"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],EY.prototype,"onStartChanged_",null);n([Lt("end"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],EY.prototype,"onEndChanged_",null); n([Kt("clips-drag-state"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],EY.prototype,"onDragState_",null);n([fu({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],EY); Tu(EY,"yt-clip-creation-scrubber-renderer",function(){if(i9b===void 0){var a=document.createElement("template");Q(a,"
\n \n \n \n \n \u2013\n \n \n \n \n
\n\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;h9b===void 0&&(h9b=document.createElement("template"));var d=h9b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);i9b=a}a=i9b;return a},{mode:2});var FY=function(){var a=E.apply(this,arguments)||this;a.player_=null;a.playerEvents=new Map;a.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return a}; k(FY,E);g=FY.prototype;g.configureRendererStamper=function(){return{submitButton_:{id:"share",mapping:{buttonRenderer:"yt-button-renderer"}},cancelButton_:{id:"cancel",mapping:{buttonRenderer:"yt-button-renderer"}},"data.titleInput":{id:"title-input",mapping:{clipCreationTextInputRenderer:"ytd-clip-creation-text-input-renderer"}},"data.scrubber":{id:"scrubber",mapping:{clipCreationScrubberRenderer:"yt-clip-creation-scrubber-renderer"}},"data.adStateOverlay":{id:"ad-state",mapping:{clipAdStateRenderer:"ytd-clip-ad-state-renderer"}}}}; g.created=function(){this.JSC$14867_playerListener=new dS(this);this.playerEvents.set("onAdStart",this.playerAdStartHandler_);this.playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.playerEvents.set("onVideoProgress",this.onVideoProgress_)}; g.detached=function(){this.setPlayer(null)}; g.onVisibilityChangedAction_=function(a){var b=this,c;if((c=this.data)==null?0:c.externalVideoId){var d;this.videoId=(d=this.data)==null?void 0:d.externalVideoId}this.getPlayer().then(function(e){if(a.visible)b.returnTime=e.getCurrentTime(),b.isAtLiveHead=e.getProgressState().isAtLiveHead;else{var f=b.returnTime;b.isAtLiveHead&&(f=Number.POSITIVE_INFINITY);e.seekTo(f,void 0,void 0,void 0,51)}})}; g.getPlayer=function(){var a=this;if(!this.player_){var b=xO();if(b)return b.getPlayerPromise().then(function(c){a.setPlayer(c);return c})}return Promise.resolve(this.player_)}; g.setPlayer=function(a){this.player_&&fS(this.JSC$14867_playerListener,this.player_,this.playerEvents);if(a){this.player_=a;var b;((b=this.data)==null?0:b.externalVideoId)||this.set("videoId",a.getVideoData().video_id||"");var c;(a==null?void 0:(c=a.getPresentingPlayerType)==null?void 0:c.call(a))===2&&(this.set("isAdPlaying",!0),Xu(this.hostElement,"yt-clip-creation-disable"));eS(this.JSC$14867_playerListener,a,this.playerEvents)}}; g.ready=function(){wt(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))}; g.onTitleChanged_=function(a){this.set("titleValue",a.detail.title)}; g.onStartChanged_=function(a){this.set("start",a.detail.start)}; g.onEndChanged_=function(a){this.set("end",a.detail.end)}; g.onTitleValidChanged_=function(a){this.set("titleValid",a.detail.valid)}; g.onStartValidChanged_=function(a){this.set("startValid",a.detail.valid)}; g.onEndValidChanged_=function(a){this.set("endValid",a.detail.valid)}; g.onVideoDataChange_=function(){var a;if((a=this.data)==null||!a.externalVideoId){var b;this.set("videoId",((b=this.player_)==null?void 0:b.getVideoData().video_id)||"")}}; g.computeFormValid_=function(a,b,c,d){return!!(a&&b&&c&&d)}; g.computeCancelButton_=function(a,b,c){return a&&z(a,TJ)?{buttonRenderer:Object.assign({},z(a,TJ),{isDisabled:b||c})}:null}; g.computeSubmitButton_=function(a,b,c){return a&&z(a,TJ)?{buttonRenderer:Object.assign({},z(a,TJ),{command:void 0,isDisabled:!this.formValid||b||c})}:null}; g.computeSubmitCommand_=function(a){return a||null}; g.onSubmit_=function(a){var b=this;a.stopPropagation();a.preventDefault();this.submitCommand_&&(a={},a.comment_text=this.titleValue,a.clip_external_video_id=this.videoId,a.clip_offset_ms=parseInt(this.start*1E3,10),a.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),$u(this.hostElement,[this.submitCommand_,a]).then(function(){b.set("isLoading_",!1)},function(){b.set("isLoading_",!1)}))}; g.playerAdStartHandler_=function(){Xu(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)}; g.playerAdEndHandler_=function(){Xu(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)}; g.onVideoProgress_=function(){var a=this;this.getPlayer().then(function(b){var c,d=(b==null?void 0:(c=b.getPresentingPlayerType)==null?void 0:c.call(b))===2;a.isAdPlaying!==d&&(d?a.playerAdStartHandler_():a.playerAdEndHandler_())})}; FY.prototype.onEndValidChanged_=FY.prototype.onEndValidChanged_;FY.prototype.onStartValidChanged_=FY.prototype.onStartValidChanged_;FY.prototype.onTitleValidChanged_=FY.prototype.onTitleValidChanged_;FY.prototype.onEndChanged_=FY.prototype.onEndChanged_;FY.prototype.onStartChanged_=FY.prototype.onStartChanged_;FY.prototype.onTitleChanged_=FY.prototype.onTitleChanged_;n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],FY.prototype,"ytActionHandlerBehavior",void 0); n([F($C.YtRendererstamperBehavior),r("design:type",Object)],FY.prototype,"ytRendererstamperBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],FY.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],FY.prototype,"data",void 0);n([M({value:""}),r("design:type",String)],FY.prototype,"titleValue",void 0);n([M({value:!1}),r("design:type",Boolean)],FY.prototype,"titleValid",void 0);n([M({value:0}),r("design:type",Number)],FY.prototype,"start",void 0); n([M({value:!0}),r("design:type",Boolean)],FY.prototype,"startValid",void 0);n([M({value:0}),r("design:type",Number)],FY.prototype,"end",void 0);n([M({value:!0}),r("design:type",Boolean)],FY.prototype,"endValid",void 0);n([M({value:""}),r("design:type",String)],FY.prototype,"videoId",void 0);n([M({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),r("design:type",Boolean)],FY.prototype,"formValid",void 0); n([M({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),r("design:type",Object)],FY.prototype,"submitButton_",void 0);n([M({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),r("design:type",Object)],FY.prototype,"submitCommand_",void 0);n([M({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),r("design:type",Object)],FY.prototype,"cancelButton_",void 0); n([M({value:!1}),r("design:type",Boolean)],FY.prototype,"isLoading_",void 0);n([M({value:!1,reflectToAttribute:!0}),r("design:type",Boolean)],FY.prototype,"isAdPlaying",void 0);n([M({value:0}),r("design:type",Number)],FY.prototype,"returnTime",void 0);n([M({value:!1}),r("design:type",Boolean)],FY.prototype,"isAtLiveHead",void 0);n([Kt("title-changed"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],FY.prototype,"onTitleChanged_",null); n([Kt("start-changed"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],FY.prototype,"onStartChanged_",null);n([Kt("end-changed"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],FY.prototype,"onEndChanged_",null);n([Kt("title-valid-changed"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],FY.prototype,"onTitleValidChanged_",null); n([Kt("start-valid-changed"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],FY.prototype,"onStartValidChanged_",null);n([Kt("end-valid-changed"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],FY.prototype,"onEndValidChanged_",null);n([fu({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],FY); Tu(FY,"yt-clip-creation-renderer",function(){if(c9b===void 0){var a=document.createElement("template");Q(a,"
\n
\n
\n \n \n
[[getSimpleString(data.displayName)]]
\n
\n
\n \n [[data.publicityLabel]]\n
\n
\n
\n
\n
\n
\n \n
\n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;b9b===void 0&&(b9b=document.createElement("template"));var d=b9b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);c9b=a}a=c9b;return a},{mode:2});var GY=function(){return E.apply(this,arguments)||this}; k(GY,E);GY.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{clipAttributionRenderer:"ytd-clip-attribution-renderer",clipCreationRenderer:"yt-clip-creation-renderer"}},"data.footer":{id:"footer",mapping:{clipSectionFooterRenderer:"ytd-clip-section-footer-renderer"}}}}; GY.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(a){return a.hasOwnProperty("clipCreationRenderer")})&&Xu(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])}; GY.prototype.onPanelContentVisibleChanged=GY.prototype.onPanelContentVisibleChanged;n([F($C.YtRendererstamperBehavior),r("design:type",Object)],GY.prototype,"ytRendererstamperBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],GY.prototype,"ytRendererBehavior",void 0);n([F(oE.YtVisibilityBehavior),r("design:type",Object)],GY.prototype,"ytVisibilityBehavior",void 0);n([F(kC),r("design:type",Object)],GY.prototype,"ytdReduxBehavior",void 0); n([M(),r("design:type",Object)],GY.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],GY.prototype,"panelContentVisible",void 0);n([Lt("panelContentVisible"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],GY.prototype,"onPanelContentVisibleChanged",null);n([gu({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],GY); Tu(GY,"ytd-clip-section-renderer",function(){if(Z8b!==void 0)return Z8b;var a=document.createElement("template");Q(a,"
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return Z8b=a},{mode:1});var m9b;var n9b;var o9b;var HY=function(){return E.apply(this,arguments)||this}; k(HY,E);n([M(),r("design:type",Object)],HY.prototype,"data",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],HY.prototype,"ytRendererBehavior",void 0);n([gu({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],HY); Tu(HY,"ytd-hashtag-grid-tile-renderer",function(){if(o9b!==void 0)return o9b;var a=document.createElement("template");Q(a,"\n
\n \n \n \n \n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return o9b=a},{mode:1});var IY=function(){return E.apply(this,arguments)||this}; k(IY,E);IY.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}}; IY.prototype.updateRichGridTrendingHashtagsVisibility=function(){var a,b;if(((a=this.data)==null||!a.isExpanded)&&(b=this.data)!=null&&b.tiles){a=this.data.tiles.length;b=a>this.richGridItemsPerRow?this.richGridItemsPerRow+1:a;var c=Math.ceil(a/b);this.fullyVisibleRows=a%b===1&&c===2?1:Math.min(c,2);this.isShowMoreVisible=this.fullyVisibleRows
\n \n
\n
\n\n \n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return n9b=a},{mode:1});var p9b;var q9b;var r9b=0,JY=function(){var a=E.call(this)||this;a.selected=!1;a.isOverlay=!1;a.inputId="toggle-option-"+r9b;r9b++;return a}; k(JY,E);JY.prototype.onTap=function(){Gt(this.hostElement,"ytd-toggle-option-clicked")}; n([M(),r("design:type",String)],JY.prototype,"label",void 0);n([M(),r("design:type",String)],JY.prototype,"inputId",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],JY.prototype,"selected",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],JY.prototype,"isOverlay",void 0);n([gu({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),r("design:paramtypes",[])],JY); Tu(JY,"ytd-toggle-option-renderer",function(){if(q9b!==void 0)return q9b;var a=document.createElement("template");Q(a,"\n\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return q9b=a},{mode:1});var KY=function(){var a=E.apply(this,arguments)||this;a.isToggleOption=!1;a.isOverlay=!1;return a}; k(KY,E);KY.prototype.onTap=function(a){a.preventDefault();this.data&&(a=!this.data.checked,this.set("data.checked",a),Gt(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:a,value:this.data.value}))}; ba.Object.defineProperties(KY.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}}); KY.prototype.onTap=KY.prototype.onTap;n([F(Yz.YtRendererBehavior),r("design:type",Object)],KY.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],KY.prototype,"data",void 0);n([M(),r("design:type",Object)],KY.prototype,"isToggleOption",void 0);n([M(),r("design:type",Object)],KY.prototype,"isOverlay",void 0);n([H("data.responseText"),r("design:type",String),r("design:paramtypes",[])],KY.prototype,"label",null); n([Kt("ytd-toggle-option-clicked"),r("design:type",Function),r("design:paramtypes",[Event]),r("design:returntype")],KY.prototype,"onTap",null);n([gu({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],KY); Tu(KY,"ytd-checkbox-survey-option-renderer",function(){if(p9b!==void 0)return p9b;var a=document.createElement("template");Q(a,"\n\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return p9b=a},{mode:1});var s9b;var t9b;var LY=function(){var a=E.apply(this,arguments)||this;a.checked=!1;a.isToggleOption=!1;return a}; k(LY,E);LY.prototype.onTap=function(){this.data&&(this.checked?Xu(this.hostElement,"ytd-inline-survey-option-deselect-action"):Xu(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))}; LY.prototype.onTap=LY.prototype.onTap;n([F(Yz.YtRendererBehavior),r("design:type",Object)],LY.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],LY.prototype,"data",void 0);n([M(),r("design:type",Object)],LY.prototype,"checked",void 0);n([M(),r("design:type",Object)],LY.prototype,"isToggleOption",void 0);n([Kt("ytd-toggle-option-clicked"),r("design:type",Function),r("design:paramtypes",[Event]),r("design:returntype")],LY.prototype,"onTap",null); n([gu({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],LY); Tu(LY,"ytd-radio-button-survey-option-renderer",function(){if(t9b!==void 0)return t9b;var a=document.createElement("template");Q(a,"\n\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return t9b=a},{mode:1});var MY=function(){var a=E.apply(this,arguments)||this;a.disableAnimation=!1;a.isToggleOption=!0;a.followUpSurveyCommand=null;a.selectedRatingEndpoint=null;a.isSlimlineSurveyFollowUp=!1;a.isShortsStyle=!1;a.styleOverrideAttribute=!0;a.isDarkMode=!1;a.isSubmitted=!1;a.roundedContainer=!0;a.improveShortsResponseRate=x("web_improve_shorts_response_rate");a.actionMap={"ytd-inline-survey-rating-select-action":"handleInlineSurveyRatingSelect","ytd-inline-survey-option-select-action":"handleInlineSurveyOptionSelect", "ytd-inline-survey-option-deselect-action":"handleInlineSurveyOptionDeselect","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a}; k(MY,E);g=MY.prototype; g.configureRendererStamper=function(){return{"data.inlineContent":{id:"inline-survey-compact-video-renderer",mapping:{compactVideoRenderer:{component:"ytd-compact-video-renderer",properties:{isShortsStyle:"[[isShortsStyle]]"}}}},"data.response.expandableSurveyResponseRenderer.options":{id:"rating-survey",mapping:{ratingSurveyRenderer:{component:"ytd-rating-survey-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]", showResponseRangeText:"[[isShortsStyle]]"}}}},"followUpSurveyCommand.followUpOptions":{id:"follow-up-survey-options",mapping:{checkboxSurveyOptionRenderer:{component:"ytd-checkbox-survey-option-renderer",properties:{isToggleOption:"[[isToggleOption]]",isOverlay:"[[isShortsStyle]]"}},radioButtonSurveyOptionRenderer:{component:"ytd-radio-button-survey-option-renderer",properties:{isToggleOption:"[[isToggleOption]]"}}}},"data.response.expandableSurveyResponseRenderer.skipButton":{id:"skip-btn-footer", mapping:{buttonRenderer:"ytd-button-renderer"}},"data.response.expandableSurveyResponseRenderer.continueButton":{id:"continue-btn-footer",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"post-submit-message",mapping:{messageRenderer:{component:"ytd-message-renderer"}}}}}; g.attached=function(){var a=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(c){var d;if((d=c[0])!=null&&d.isIntersecting){Hz().reportShown(a.hostElement);var e;(e=a.intersectionObserver)==null||e.unobserve(a.hostElement)}},{rootMargin:"0px", threshold:.6});var b;(b=this.intersectionObserver)==null||b.observe(this.hostElement)}; g.onDarkModeToggledAction=function(a){this.isDarkMode=a}; g.dataChanged=function(){var a;if(((a=this.data)==null?void 0:a.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var b;((b=this.data)==null?void 0:b.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var c,d,e,f;this.darkColorPalette=(c=this.data)==null?void 0:(d=c.inlineContent)==null?void 0:(e=d.compactVideoRenderer)==null?void 0:(f=e.thumbnail)==null?void 0: f.darkColorPalette;var h,m,p,q;this.lightColorPalette=(h=this.data)==null?void 0:(m=h.inlineContent)==null?void 0:(p=m.compactVideoRenderer)==null?void 0:(q=p.thumbnail)==null?void 0:q.lightColorPalette;var t,u;if(((t=this.data)==null?0:(u=t.inlineContent)==null?0:u.compactVideoRenderer)&&this.isShortsStyle){var v,w,y,A;a=DB((v=this.data)==null?void 0:(w=v.inlineContent)==null?void 0:(y=w.compactVideoRenderer)==null?void 0:(A=y.thumbnail)==null?void 0:A.thumbnails);Ft(this.hostElement,{"--yt-background-url":"url("+ a+")"})}}; g.handleRequestCompletion=function(){this.hostElement.hidden&&Gt(this.hostElement,"yt-dismissible-item-dismissed")}; g.onPopupClosed=function(a){var b;((b=a.detail)==null?void 0:b.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?Xu(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))}; g.handleInlineSurveyRatingSelect=function(a,b){var c=this;this.selectedRatingEndpoint=a;this.followUpSurveyCommand=b;this.expanded=!!a;this.getOptionRenderers().forEach(function(d,e){c.notifyPath("followUpSurveyCommand.followUpOptions."+e+".checkboxSurveyOptionRenderer.checked");c.set("followUpSurveyCommand.followUpOptions."+e+".checkboxSurveyOptionRenderer.checked",!1)}); this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),a=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),Xu(this.hostElement,"yt-reel-non-video-content-dismissal-command",[a]))}; g.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)Xu(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var a,b=(a=this.data)==null?void 0:a.dismissalEndpoint;b&&this.ytComponentBehavior.resolveCommand(b)}}; g.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,Xu(this.hostElement,"yt-close-popup-action"))}; g.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var a=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{a=this.getOptionRenderers().filter(function(d){return d.checked}); if(a.length===0)return;a=a.map(function(d){return d.responseEndpoint})}var b=[]; a.forEach(function(d,e){e!==0&&(d=z(d,yJ))&&d.feedbackToken&&b.push(d.feedbackToken)}); if(a=a[0]){var c={};b.length>0&&(c.extra_feedback_tokens=b);this.ytComponentBehavior.resolveCommand(a,{form:c})}}}; g.getOptionRenderers=function(){var a=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(b){a.isSingleSelect=!!z(b,dnb);return a.isSingleSelect?z(b,dnb):z(b,enb)}):[]}; g.handleInlineSurveyOptionSelect=function(a){a=this.optionSelector.indexOf(a);a!==-1&&this.optionSelector.selectIndex(a)}; g.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)}; g.maybeGetBackgroundColor=function(a){return this.isDarkMode?a.section2Color:a.section3Color}; g.colorPaletteChanged=function(){var a=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;a=a&&this.maybeGetBackgroundColor(a);this.dismissibleEl.style.backgroundColor=!a||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":Iy(a)}; ba.Object.defineProperties(MY.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}}); MY.prototype.colorPaletteChanged=MY.prototype.colorPaletteChanged;MY.prototype.onPopupClosed=MY.prototype.onPopupClosed;MY.prototype.handleRequestCompletion=MY.prototype.handleRequestCompletion;MY.prototype.dataChanged=MY.prototype.dataChanged;n([F($C.YtRendererstamperBehavior),r("design:type",Object)],MY.prototype,"ytRendererstamperBehavior",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],MY.prototype,"actionHandlerBehavior",void 0); n([F(mz.YtComponentBehavior),r("design:type",Object)],MY.prototype,"ytComponentBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],MY.prototype,"ytRendererBehavior",void 0);n([F(NQ),r("design:type",Object)],MY.prototype,"ytdDismissibleItemBehavior",void 0);n([Tt("#follow-up-survey-options"),r("design:type",Object)],MY.prototype,"optionSelector",void 0);n([M(),r("design:type",Object)],MY.prototype,"data",void 0);n([M(),r("design:type",Object)],MY.prototype,"disableAnimation",void 0); n([M(),r("design:type",Object)],MY.prototype,"isToggleOption",void 0);n([M(),r("design:type",Object)],MY.prototype,"followUpSurveyCommand",void 0);n([M(),r("design:type",Object)],MY.prototype,"selectedRatingEndpoint",void 0);n([M({reflectToAttribute:!0,value:!1}),r("design:type",Boolean)],MY.prototype,"expanded",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],MY.prototype,"isSlimlineSurveyFollowUp",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],MY.prototype,"isShortsStyle",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],MY.prototype,"styleOverrideAttribute",void 0);n([M(),r("design:type",Boolean)],MY.prototype,"isSingleSelect",void 0);n([M(),r("design:type",Object)],MY.prototype,"isDarkMode",void 0);n([M(),r("design:type",Object)],MY.prototype,"lightColorPalette",void 0);n([M(),r("design:type",Object)],MY.prototype,"darkColorPalette",void 0); n([H("selectedRatingEndpoint","isShortsStyle"),M({reflectToAttribute:!0}),r("design:type",Boolean),r("design:paramtypes",[])],MY.prototype,"isOptionSelected",null);n([M({reflectToAttribute:!0}),r("design:type",Object)],MY.prototype,"roundedContainer",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],MY.prototype,"improveShortsResponseRate",void 0);n([Tt("#dismissible"),r("design:type",HTMLElement)],MY.prototype,"dismissibleEl",void 0); n([Tt("#dismiss-button yt-icon-button"),r("design:type",HTMLElement)],MY.prototype,"dismissButtonEl",void 0);n([Tt("#inline-survey-header yt-icon-button"),r("design:type",HTMLElement)],MY.prototype,"inlineHeaderDismissButtonEl",void 0);n([cu("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],MY.prototype,"dataChanged",null); n([Kt("yt-service-request-completed"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],MY.prototype,"handleRequestCompletion",null);n([Kt("yt-popup-closed"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],MY.prototype,"onPopupClosed",null);n([Lt("darkColorPalette","lightColorPalette","isDarkMode"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],MY.prototype,"colorPaletteChanged",null); n([gu({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],MY); Tu(MY,"ytd-inline-survey-renderer",function(){if(s9b!==void 0)return s9b;var a=document.createElement("template");Q(a,"
\n
\n
\n
\n

\n [[getSimpleString(data.title)]]\n [[getSimpleString(data.subtitle)]]\n

\n \n
\n
\n
\n
\n \n
\n
\n \n
\n
\n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return s9b=a},{mode:1});var u9b;var v9b;var NY=function(){var a=E.apply(this,arguments)||this;a.visibleVideos=[];a.hiddenVideos=[];a.modern=x("web_modern_buttons");a.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a}; k(NY,E);g=NY.prototype;g.attached=function(){var a=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",a);this.onDarkModeToggledAction(a)}; g.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.header":{id:"section-header-container",mapping:{sectionHeaderViewModel:{component:"yt-section-header-view-model",params:{disableHorizontalPadding:!0}}}},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},visibleVideos:{id:"visible-video-container",mapping:{videoRenderer:{component:"ytd-rich-grid-media",params:{disableInlinePreview:!0}, properties:{metadataColor:"[[videoMetadataColor]]"}},movieRenderer:{component:"ytd-rich-grid-slim-media",params:{disableInlinePreview:!0},properties:{metadataColor:"[[videoMetadataColor]]"}}}},hiddenVideos:{id:"hidden-video-container",mapping:{videoRenderer:{component:"ytd-rich-grid-media",params:{disableInlinePreview:!0},properties:{hidden:"[[true]]",metadataColor:"[[videoMetadataColor]]"}},movieRenderer:{component:"ytd-rich-grid-slim-media",params:{disableInlinePreview:!0},properties:{hidden:"[[true]]", metadataColor:"[[videoMetadataColor]]"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}}; g.dataChanged=function(){var a=this;this.requestElementsPerRow();var b,c;this.currentColorPalette=this.isDarkTheme?(b=this.data)==null?void 0:b.darkColorData:(c=this.data)==null?void 0:c.lightColorData;var d;if((d=this.currentColorPalette)==null?0:d.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);ms(this,function(){a.updateVisibilityForHiddenVideos(!1)}); this.checkExpanded(this.data)}; g.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos(!1);this.checkExpanded(this.data)}; g.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos(!1);this.checkExpanded(this.data)}; g.computeIsFirstFeedItem=function(a){return a}; g.onDarkModeToggledAction=function(a){a!==this.isDarkTheme&&this.set("isDarkTheme",a);this.data&&(this.currentColorPalette=a?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())}; g.getCurrentLogo=function(a,b){if(a)return b?a.darkLogoImage:a.lightLogoImage}; g.computeTitleStyle=function(a){var b;if((b=this.data)!=null&&b.title&&a&&a.textPrimary!==void 0)return"color:"+Iy(a.textPrimary)+";"}; g.computeAriaLabelledBy=function(a){return a?"shelf-header-container":"hidden-shelf-title"}; g.computeSubtitleStyle=function(a){var b;if((b=this.data)!=null&&b.subtitle&&a&&a.textSecondary!==void 0)return"color:"+Iy(a.textSecondary)+";"}; g.computeDismissIconStyle=function(a){if(this.data&&this.data.dismissButton&&a&&a.textPrimary!==void 0)return"--yt-button-color:"+Iy(a.textPrimary)+";"}; g.computeOverflowButtonStyle=function(a){if(this.data&&this.data.overflowButton&&a&&a.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+Iy(a.textPrimary)+";"}; g.computeBackgroundStyle=function(a){if(a&&this.data){var b="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var c=DB((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);c&&(b+="background-image:url(\""+c+"\");")}a.backgroundColor!==void 0&&(b+="background-color:"+Jy(a.backgroundColor)+";");return b}}; g.computeButton=function(){var a,b=Object.assign({},z((a=this.data)==null?void 0:a.showMoreButton,TJ));if(this.modern&&b){b.style="STYLE_MONO_OUTLINE";var c;if(a=(c=this.currentColorPalette)==null?void 0:c.textPrimary)b.colorData={basicColorPaletteData:{foregroundTitleColor:a,borderColor:a}}}return b}; g.shouldShowBottomButton=function(a,b){return!(a==null?0:a.header)&&!(a==null||!a.primaryButton)&&b<3}; g.checkExpanded=function(a){this.isExpanded=a&&a.content?this.hiddenVideos.length===0:!0}; g.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos(!0))}; g.getLogoHeight=function(a){return this.logoWithPadding(a)?"26":"20"}; g.getLogoImageId=function(a){return this.logoWithPadding(a)?"logo-image-with-padding":"logo-image"}; g.computeHasSectionHeader=function(a){return!!a.header}; g.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var a;if((a=this.data.primaryButton)==null?0:a.buttonRenderer)this.currentColorPalette.primaryButtonColorData?(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorPalette.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType, this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",Object.assign({},this.data.primaryButton.buttonRenderer));var b;((b=this.data.dismissButton)==null?0:b.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var c,d;((c=this.data)==null?0:(d=c.primaryButton)==null?0:d.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}}; g.setVisibleVideos=function(a){if(this.data&&this.data.content)if(this.data.content.length){var b=this.data.content.length;this.data.header?a?(this.visibleVideos=this.data.content.slice(0,Math.min(b,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(b,this.slimItemsPerRow),b)):(this.visibleVideos=this.data.content.slice(0,Math.min(b,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(b,this.elementsPerRow),b)):this.elementsPerRow<3?(this.visibleVideos=this.data.content.slice(0, Math.min(b,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(b,this.elementsPerRow),b)):(this.visibleVideos=this.data.content.slice(0,Math.min(b,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(b,this.elementsPerRow-1),b))}else this.visibleVideos=[],this.hiddenVideos=[]}; g.setHasMovieRenderer=function(){var a;if((a=this.data)!=null&&a.content){var b;this.hasMovieRenderer=!!z((b=this.data)==null?void 0:b.content[0],fqb)}else this.hasMovieRenderer=!1}; g.requestElementsPerRow=function(){Gt(this.hostElement,"yt-request-elements-per-row")}; g.updateVisibilityForHiddenVideos=function(a){if(this.data&&this.data.content){for(var b=l(this.hiddenMediaRenderers),c=b.next();!c.done;c=b.next())c.value.hidden=!this.isExpanded;a&&this.isExpanded&&this.hiddenMediaRenderers[0]&&(a=wt(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&a.focus()}}; g.updateTitleSpec=function(){var a;(a=this.data)!=null&&a.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)}; g.logoWithPadding=function(a){var b,c,d;return(a=(b=this.getCurrentLogo(a,this.isDarkTheme))==null?void 0:(c=b.thumbnails)==null?void 0:(d=c[0])==null?void 0:d.height)&&a%31===0?!0:!1}; g.onUpdateElementsPerRowAction=function(a,b,c){a&&this.elementsPerRow!==a&&(this.elementsPerRow=a);c&&this.slimItemsPerRow!==c&&(this.slimItemsPerRow=c)}; NY.prototype.slimItemsPerRowChanged=NY.prototype.slimItemsPerRowChanged;NY.prototype.elementsPerRowChanged=NY.prototype.elementsPerRowChanged;NY.prototype.dataChanged=NY.prototype.dataChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],NY.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],NY.prototype,"ytRendererstamperBehavior",void 0);n([F(NQ),r("design:type",Object)],NY.prototype,"ytdDismissibleItemBehavior",void 0); n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],NY.prototype,"actionHandlerBehavior",void 0);n([F(kC),r("design:type",Object)],NY.prototype,"ytdReduxBehavior",void 0);n([M(),r("design:type",Object)],NY.prototype,"data",void 0);n([M(),r("design:type",Object)],NY.prototype,"currentColorPalette",void 0);n([M(),r("design:type",Array)],NY.prototype,"visibleVideos",void 0);n([M(),r("design:type",Array)],NY.prototype,"hiddenVideos",void 0); n([M(),r("design:type",Object)],NY.prototype,"primaryButton",void 0);n([M({reflectToAttribute:!0,value:3}),r("design:type",Number)],NY.prototype,"elementsPerRow",void 0);n([M({reflectToAttribute:!0,value:!1}),r("design:type",Boolean)],NY.prototype,"isDarkTheme",void 0);n([M({reflectToAttribute:!0,value:!1}),r("design:type",Boolean)],NY.prototype,"isExpanded",void 0);n([M({reflectToAttribute:!0,value:!1}),r("design:type",Boolean)],NY.prototype,"largeTitle",void 0); n([M({reflectToAttribute:!0,value:!1}),r("design:type",Boolean)],NY.prototype,"hasMovieRenderer",void 0);n([M(),r("design:type",Number)],NY.prototype,"slimItemsPerRow",void 0);n([M(),r("design:type",Boolean)],NY.prototype,"showLightVideoMetadata",void 0);n([M(),r("design:type",Boolean)],NY.prototype,"showDarkVideoMetadata",void 0);n([M(),r("design:type",Number)],NY.prototype,"videoMetadataColor",void 0);n([M({reflectToAttribute:!0,selector:tC}),r("design:type",Boolean)],NY.prototype,"miniMode",void 0); n([M({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),r("design:type",Boolean)],NY.prototype,"isFirstFeedItem",void 0);n([M({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),r("design:type",Boolean)],NY.prototype,"hasSectionHeader",void 0);n([M({reflectToAttribute:!0,value:!0}),r("design:type",Boolean)],NY.prototype,"roundedContainer",void 0); n([Ut("#visible-video-container ytd-rich-grid-media"),r("design:type",Array)],NY.prototype,"visibleMediaRenderers",void 0);n([Ut("#hidden-video-container ytd-rich-grid-media"),r("design:type",Array)],NY.prototype,"hiddenMediaRenderers",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],NY.prototype,"modern",void 0);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],NY.prototype,"dataChanged",null); n([Lt("elementsPerRow"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],NY.prototype,"elementsPerRowChanged",null);n([Lt("slimItemsPerRow"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],NY.prototype,"slimItemsPerRowChanged",null);n([gu({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],NY); Tu(NY,"ytd-brand-video-shelf-renderer",function(){if(v9b!==void 0)return v9b;var a=document.createElement("template");Q(a,"
\n \n
\n \n
\n \n
\n
\n
\n \n
\n \n \n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return v9b=a},{mode:1});var w9b;var OY=function(){var a=E.apply(this,arguments)||this;a.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a}; k(OY,E);g=OY.prototype;g.attached=function(){var a=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",a);this.onDarkModeToggledAction(a)}; g.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}}; g.dataChanged=function(){this.requestElementsPerRow();var a,b;this.currentColorPalette=this.isDarkTheme?(a=this.data)==null?void 0:a.darkColorData:(b=this.data)==null?void 0:b.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()}; g.elementsPerRowChanged=function(){this.updateTitleSpec()}; g.computeIsFirstFeedItem=function(a){return a}; g.onDarkModeToggledAction=function(a){a!==this.isDarkTheme&&this.set("isDarkTheme",a);this.data&&(this.currentColorPalette=a?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(a),this.updateButtonPalette())}; g.shouldShowThumbnailInMetadata=function(a){return a<=1}; g.computeVideoMetadataColor=function(){if(this.data){var a;if((a=this.currentColorPalette)==null?0:a.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}}; g.computeTitleStyle=function(a){var b;if((b=this.data)!=null&&b.title&&a&&a.textPrimary!==void 0)return"color:"+Iy(a.textPrimary)+";"}; g.computeSubtitleStyle=function(a){var b;if((b=this.data)!=null&&b.subtitle&&a&&a.textSecondary!==void 0)return"color:"+Iy(a.textSecondary)+";"}; g.computeOverflowButtonStyle=function(a){if(this.data&&this.data.overflowButton&&a.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+Iy(a.textPrimary)+";"}; g.computeBackgroundStyle=function(a){if(a&&this.data){var b="";a.backgroundColor!==void 0&&(b+="background-color:"+Jy(a.backgroundColor)+";");return b}}; g.computeHasOverflowButton=function(a){return!!a.overflowButton}; g.updateButtonPalette=function(){if(this.data){var a;if((a=this.data.primaryButton)==null?0:a.buttonRenderer){var b;if((b=this.currentColorPalette)==null?0:b.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var c;((c=this.currentColorPalette)==null?0:c.primaryButtonStyleType)?(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType, this.data.primaryButton.buttonRenderer.colorData=void 0):this.data.primaryButton.buttonRenderer.style="STYLE_MONO_TONAL"}this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)})}}}; g.requestElementsPerRow=function(){Gt(this.hostElement,"yt-request-elements-per-row")}; g.updateTitleSpec=function(){var a;(a=this.data)!=null&&a.titleLength&&(this.titleSize=this.elementsPerRow<=3?this.data.titleLength<=10?"TITLE_SIZE_MEDIUM":"TITLE_SIZE_SMALL":this.data.titleLength<=13?"TITLE_SIZE_LARGE":this.data.titleLength<=30?"TITLE_SIZE_MEDIUM":"TITLE_SIZE_SMALL")}; g.onUpdateElementsPerRowAction=function(a){a&&this.elementsPerRow!==a&&(this.elementsPerRow=a)}; OY.prototype.elementsPerRowChanged=OY.prototype.elementsPerRowChanged;OY.prototype.dataChanged=OY.prototype.dataChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],OY.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],OY.prototype,"ytRendererstamperBehavior",void 0);n([F(NQ),r("design:type",Object)],OY.prototype,"ytdDismissibleItemBehavior",void 0); n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],OY.prototype,"actionHandlerBehavior",void 0);n([F(kC),r("design:type",Object)],OY.prototype,"ytdReduxBehavior",void 0);n([M(),r("design:type",Object)],OY.prototype,"data",void 0);n([M(),r("design:type",Object)],OY.prototype,"currentColorPalette",void 0);n([M(),r("design:type",Object)],OY.prototype,"primaryButton",void 0);n([M({reflectToAttribute:!0,value:3}),r("design:type",Number)],OY.prototype,"elementsPerRow",void 0); n([M({reflectToAttribute:!0,value:!1}),r("design:type",Boolean)],OY.prototype,"isDarkTheme",void 0);n([M({reflectToAttribute:!0}),r("design:type",String)],OY.prototype,"titleSize",void 0);n([M(),r("design:type",Number)],OY.prototype,"videoMetadataColor",void 0);n([M({reflectToAttribute:!0,selector:tC}),r("design:type",Boolean)],OY.prototype,"miniMode",void 0); n([M({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),r("design:type",Boolean)],OY.prototype,"isFirstFeedItem",void 0);n([M({reflectToAttribute:!0,value:!0}),r("design:type",Boolean)],OY.prototype,"roundedContainer",void 0);n([M({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),r("design:type",Boolean)],OY.prototype,"hasOverflowButton",void 0); n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],OY.prototype,"dataChanged",null);n([Lt("elementsPerRow"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],OY.prototype,"elementsPerRowChanged",null);n([gu({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],OY); Tu(OY,"ytd-brand-video-singleton-renderer",function(){if(w9b!==void 0)return w9b;var a=document.createElement("template");Q(a,"
\n
\n \n
\n
\n \n
\n
\n
\n \n
\n
\n \n
\n
\n \n
\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return w9b=a},{mode:2});var x9b;var y9b=O(function(a){var b=a.data;return D(eC,{data:function(){return b().thumbnail}, alt:"",className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnailImage",targetHeight:function(){a:switch(b().variant){case"PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var c=108;break a;case"PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":c=88;break a;default:c=88;}return c}, preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return b().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"kf"),A9b=O(function(a){var b=a.metadataRow; var c=a.delimiter;return D(mw,{each:function(){return b().textParts||[]}, keyBy:"INDEX"},function(d,e){return D(mq,null,D(gC,{text:d,noWrap:!0,userInput:!0}),D(z9b,{delimiter:c,max:function(){return b().textParts.length}, index:e}))})},"lf"),z9b=O(function(a){var b=a.delimiter; var c=a.max;var d=a.index;return D(P,{cond:function(){return(b==null?void 0:b())&&c()-1>d()}, then:function(){return D("span",null,b)}})},"mf"),B9b=O(function(a){var b=a.data; a={};return D("yt-profile-page-header-information-view-model",{class:U("profilePageHeaderInformationViewModelHost",(a.profilePageHeaderInformationViewModelMobile=!1,a))},D(P,{cond:function(){return b().onTap}, then:function(){return D(vD,{className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail",command:function(){return LB(b().onTap)}},D(OC,{data:function(){return b().thumbnail}},{profilePageHeaderThumbnailViewModel:y9b}))}, else:function(){return D("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail"},D(OC,{data:function(){return b().thumbnail}},{profilePageHeaderThumbnailViewModel:y9b}))}}),D("div",{class:"profilePageHeaderInformationViewModelFlexContainer"},D(P,{cond:function(){return b().onTap}, then:function(){return D(OC,{data:function(){return b().title}},{profilePageHeaderTitleViewModel:function(c){var d=c.data; return D(vD,{className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle",command:function(){return LB(d().onTap)}},D(gC,{text:function(){return d().title}}))}})}, else:function(){return D(OC,{data:function(){return b().title}},{profilePageHeaderTitleViewModel:function(c){var d=c.data; return D(gC,{text:function(){return d().title}, className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle"})}})}}),D(OC,{data:function(){return b().metadata}},{profilePageHeaderMetadataViewModel:function(c){var d=c.data; return D(P,{cond:function(){return d().metadataRows}, then:function(e){return D("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderMetadata"},D(mw,{each:e,keyBy:"INDEX"},function(f,h){return D(mq,null,D(A9b,{metadataRow:f,delimiter:" \u2022 "}),D(z9b,{delimiter:" \u2022 ",max:function(){return e().length}, index:h}))}))}})}})))},"nf"); B9b.idomCompat=!0;bB(B9b,"yt-profile-page-header-information-view-model",{props:{data:$A}});var PY=function(){return E.apply(this,arguments)||this}; k(PY,E);PY.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}}; n([F($C.YtRendererstamperBehavior),r("design:type",Object)],PY.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],PY.prototype,"data",void 0);n([gu({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],PY); Tu(PY,"ytd-effect-pivot-header-view-model",function(){if(x9b!==void 0)return x9b;var a=document.createElement("template");Q(a,"
\n");a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return x9b=a},{mode:1});var C9b;var QY=function(){return E.apply(this,arguments)||this}; k(QY,E);QY.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}}; n([F($C.YtRendererstamperBehavior),r("design:type",Object)],QY.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],QY.prototype,"data",void 0);n([gu({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],QY); Tu(QY,"ytd-source-pivot-header-renderer",function(){if(C9b!==void 0)return C9b;var a=document.createElement("template");Q(a,"
\n");a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return C9b=a},{mode:1});var D9b;var E9b;var F9b;var RY=function(){var a=E.apply(this,arguments)||this;a.playing=!1;a.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+Ha(a);a.active=!1;return a}; k(RY,E);g=RY.prototype;g.detached=function(){this.stop()}; g.play=function(){var a=this,b,c,d,e,f;return ra(function(h){if(h.nextAddress==1)return a.active=!0,b=a.get("data.inlinePlaybackEndpoint.watchEndpoint"),c=b.videoId||a.data.videoId,d=b.startTimeSeconds||0,e=b.playerParams||null,a.playerEl.loadVideoWithPlayerVars({video_id:c,startSeconds:d,player_params:e,autoplay:!0}),h.yield(a.playerEl.getPlayerPromise(),2);f=h.yieldResult;f.unloadModule("annotations_module");f.addEventListener("onStateChange",function(m){a.onPlayerStateChange(m)}); h.jumpToEnd()})}; g.onPlayerStateChange=function(a){if(this.active)switch(this.playing=a===1,a){case 1:Gt(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:Gt(this.hostElement,"yt-default-promo-panel-renderer-ended");}}; g.stop=function(){this.playerEl.stop();this.playing=this.active=!1}; g.resize=function(){var a=this,b;return ra(function(c){if(c.nextAddress==1)return c.yield(a.playerEl.getPlayerPromise(),2);b=c.yieldResult;b.setSize(NaN,NaN);c.jumpToEnd()})}; n([M(),r("design:type",Object)],RY.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],RY.prototype,"playing",void 0);n([M(),r("design:type",Object)],RY.prototype,"playerId",void 0);n([Tt("#player"),r("design:type",Object)],RY.prototype,"playerEl",void 0);n([gu({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],RY); Tu(RY,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(F9b!==void 0)return F9b;var a=document.createElement("template");Q(a,"\n\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return F9b=a},{mode:1});var G9b;var H9b;var SY=function(){var a=E.apply(this,arguments)||this;a.width=0;return a}; k(SY,E);g=SY.prototype;g.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",It(this,this.onEnded));this.mp4El.addEventListener("error",It(this,this.onError))}; g.detached=function(){this.videoEl.removeEventListener("ended",It(this,this.onEnded));this.mp4El.removeEventListener("error",It(this,this.onError))}; g.play=function(){var a=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var b=this.videoEl.play();b?b.then(function(){a.handleVideoStartPlaying()}).catch(function(){Gt(a.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else Gt(this.hostElement,"yt-video-thumbnail-not-playing")}; g.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0}; g.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)}; g.dataChanged=function(){var a;if((a=this.data)==null?0:a.thumbnailPlaceholder)a=EB(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+a+")";this.stop();this.autoplay&&this.play()}; g.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")}; g.onEnded=function(){this.stop();Gt(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()}; g.onError=function(){Gt(this.hostElement,"yt-video-thumbnail-error")}; g.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))}; g.getVideoThumbnail=function(a){if(a&&a.length)return a[0]}; SY.prototype.dataChanged=SY.prototype.dataChanged;n([M(),r("design:type",Object)],SY.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],SY.prototype,"animatePlaceholderOnEntrance",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],SY.prototype,"autoplay",void 0);n([M({computed:"getVideoThumbnail(data.videoThumbnails)"}),r("design:type",Object)],SY.prototype,"videoThumbnail",void 0);n([M(),r("design:type",Boolean)],SY.prototype,"loop",void 0); n([M(),r("design:type",Boolean)],SY.prototype,"isVideoPlaying",void 0);n([M(),r("design:type",Object)],SY.prototype,"width",void 0);n([Tt("#mp4"),r("design:type",HTMLElement)],SY.prototype,"mp4El",void 0);n([Tt("#placeholder"),r("design:type",HTMLElement)],SY.prototype,"placeholderEl",void 0);n([Tt("#video"),r("design:type",HTMLVideoElement)],SY.prototype,"videoEl",void 0);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],SY.prototype,"dataChanged",null); n([fu({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],SY); Tu(SY,"yt-video-as-thumbnail-details",function(){if(H9b===void 0){var a=document.createElement("template");Q(a,"
\n
\n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;G9b===void 0&&(G9b=document.createElement("template"));var d=G9b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);H9b=a}a=H9b;return a},{mode:2});var TY=function(){var a=E.apply(this,arguments)||this;a.disableGridStateAware=!1;a.animationEnabled=x("enable_web_ketchup_hero_animation");a.transitioningOut=!1;a.narrow=!1;a.narrower=!1;a.isCarouselInFeed=!1;a.videoTimeoutJobId=0;a.panelTimeoutJobId=0;a.panelTimeoutJobStartMs=0;a.actionMap={"yt-window-resized":"onWindowResized"};return a}; k(TY,E);g=TY.prototype;g.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}}; g.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"}; g.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var a;this.player&&((a=this.data)==null?0:a.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)}; g.attached=function(){this.onWindowResized()}; g.detached=function(){this.clearTimeouts()}; g.onWindowResized=function(){this.updateSize()}; g.computePanelLayout=function(a){return a&&a.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"}; g.playVideo=function(){var a;this.video&&((a=this.data)==null?0:a.videoThumbnail)&&this.video.play();var b;this.player&&((b=this.data)==null?0:b.inlinePlaybackRenderer)&&this.player.play()}; g.stopVideo=function(){var a;this.video&&((a=this.data)==null?0:a.videoThumbnail)&&this.video.stop();var b;this.player&&((b=this.data)==null?0:b.inlinePlaybackRenderer)&&this.player.stop()}; g.transitionOut=function(){var a=this;this.transitioningOut=!0;return new Promise(function(b){a.player&&(a.player.playing=!1);var c=wt(a.hostElement).querySelector("#action-button");if(c){var d=function(){c.removeEventListener("animationend",d);bj.cancelJob(e);b();a.transitioningOut=!1}; var e=Il(0,d,1E3);c.addEventListener("animationend",d)}else b(),a.transitioningOut=!1})}; g.computeMetadataOrder=function(a){return a&&a.metadataOrder&&a.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?a.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"}; g.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")}; g.computeAvatarSize=function(a){return a&&a.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36}; g.onContentClick=function(a){if(!AO(lt(a),this.hostElement,["A".toString(),"BUTTON".toString()])){var b;if((b=this.data)==null?0:b.navigationEndpoint){var c;this.componentBehavior.resolveCommand((c=this.data)==null?void 0:c.navigationEndpoint)}}}; g.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()}; g.setBackgroundImage=function(a){if(a=this.getBackgroundImageUrl(a))wt(this.hostElement).querySelector("#hero").style.backgroundImage="url("+a+")"}; g.setScrimLayer=function(a){var b=this.getScrimLayerColorStops(a);a=((a==null?void 0:a.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(a=180);Vk("HTML_DIR")==="rtl"&&(a=-a);b&&(wt(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+a+"deg, "+b+")")}; g.isNarrower=function(){return this.hostElement.clientWidth
\n\n\n\n\n
\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return E9b=a},{mode:1});kE("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var UY=function(){var a=E.apply(this,arguments)||this;a.narrower=!1;a.dotMenuVisible=!1;a.paginationThumbnailsVisible=!1;a.active=!0;a.disableGridStateAware=!1;a.actionMap={"yt-window-resized":"onWindowResized"};return a}; k(UY,E);g=UY.prototype;g.configureRendererStamper=function(){return{currentItem:{id:"carousel-item",mapping:{defaultPromoPanelRenderer:{component:"ytd-default-promo-panel-renderer",attributes:{autoplay:!0},properties:{disableGridStateAware:"[[disableGridStateAware]]",layoutStyle:"[[data.layoutStyle]]",isCarouselInFeed:"[[isCarouselInFeed]]"}}}}}}; g.attached=function(){document.addEventListener("yt-page-type-changed",It(this,this.onPageTypeChange));this.currentPageSubtype=Oxb();this.onWindowResized()}; g.detached=function(){this.jobId&&bj.cancelJob(this.jobId);this.updateSizeJobId&&bj.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",It(this,this.onPageTypeChange))}; g.onPageTypeChange=function(a){this.active=a.detail.newPageSubtype===this.currentPageSubtype}; g.onWindowResized=function(){this.updateSize()}; g.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)}; g.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)}; g.setCarouselItem=function(a){a>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&bj.cancelJob(this.jobId);var b=this.getCurrentPanelElement();b&&b.stopVideo();this.currentItemIndex=a%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(b||(b=this.getCurrentPanelElement()),b.playVideo()):this.startRotationJob()}; g.scrollThumbnails=function(a){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var b=this.getCurrentPaginationElement();if(b){var c=wt(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?c.style.transform="translateX(0)":(b=b.offsetWidth+8,c.style.transform="translateX(-"+b*(a-Math.ceil(Math.floor(this.overlay.offsetWidth/b)/2)+1)+"px)")}}}; g.onDataChanged=function(){var a=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=Ll(function(){var b;(b=a.getCurrentPanelElement())==null||b.updateSize();a.updateSize()}))}; g.getCurrentPanelElement=function(){return wt(wt(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")}; g.getCurrentPaginationElement=function(){return wt(wt(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")}; g.getNavigationClass=function(a,b){return a===b?"selected":""}; g.getNavigationDurationStyle=function(a){return"animation-duration:"+(this.get("data.carouselItems."+a+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"}; g.onNavigationTap=function(a){var b=this,c=a.model.index;c!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){b.setCarouselItem(c)}),this.autorotateActive=!1)}; g.onVideoThumbnailEnded=function(){var a=this;if(this.shouldRotate()){var b=this.getCurrentPaginationElement();b&&(b.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){b.classList.remove("finished");a.setNextCarouselItem()}))}}; g.onVideoThumbnailError=function(){this.startRotationJob()}; g.onVideoNotPlaying=function(){this.startRotationJob()}; g.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)}; g.startRotationJob=function(){var a=this;bj.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=bj.addLowPriorityJob(function(){a.getCurrentPanelElement().transitionOut().then(function(){a.setNextCarouselItem()})},this.rotationTimeout))}; g.computeDotMenuVisible=function(a,b){return!!a&&!!a.carouselItems&&a.carouselItems.length>1&&!a.paginationThumbnails||!!b}; g.computePaginationThumbnailsVisible=function(a,b){var c,d;return((d=a==null?void 0:(c=a.paginationThumbnails)==null?void 0:c.length)!=null?d:0)>1&&!b}; g.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"}; g.computePaginatorAlignment=function(a){return(a==null?void 0:a.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"}; g.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive}; g.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)}; g.isNarrower=function(a){return(a!=null?a:0)
\n\n
\n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return D9b=a},{mode:2});var I9b;var J9b;var K9b;var L9b;var VY=function(){var a=E.apply(this,arguments)||this;a.answerExpanded=!1;return a}; k(VY,E);VY.prototype.toggleAnswer_=function(a){var b=mt(a);b&&b.classList.contains("yt-simple-endpoint")||(a.preventDefault(),a.stopPropagation(),this.answerExpanded=!this.answerExpanded)}; VY.prototype.toggleAnswer_=VY.prototype.toggleAnswer_;n([F(Yz.YtRendererBehavior),r("design:type",Object)],VY.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],VY.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],VY.prototype,"answerExpanded",void 0);n([Kt("tap"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],VY.prototype,"toggleAnswer_",null); n([fu({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],VY); Tu(VY,"yt-generic-faq-question-renderer",function(){if(L9b===void 0){var a=document.createElement("template");Q(a,"
\n [[getSimpleString(data.question)]]\n \n \n
\n\n \n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;K9b===void 0&&(K9b=document.createElement("template"));var d=K9b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);L9b=a}a=L9b;return a},{mode:2});kE("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var WY=function(){return E.apply(this,arguments)||this}; k(WY,E);WY.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}}; n([F($C.YtRendererstamperBehavior),r("design:type",Object)],WY.prototype,"ytRendererstamperBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],WY.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],WY.prototype,"data",void 0);n([fu({is:"yt-faq-section-renderer",disableElementRegistration:!0})],WY); Tu(WY,"yt-faq-section-renderer",function(){if(J9b===void 0){var a=document.createElement("template");Q(a,"
\n [[getSimpleString(data.header)]]\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;I9b===void 0&&(I9b=document.createElement("template"));var d=I9b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);J9b=a}a=J9b;return a},{mode:2});var M9b=BMb.talkToRecsStateSelector;function N9b(a){var b,c;return((c=z((b=a.steps)==null?void 0:b[0],AJ))==null?void 0:c.stepId)||""} function O9b(a,b){if(b){var c=XA.getState().entities.flowStateEntity,d=P9b(a),e=[b];d&&d!==b&&e.push(d);var f=!0,h;if(c&&a.flowStateEntityKey&&((h=c[a.flowStateEntityKey])==null?void 0:h.primaryButtonDisabled)!==void 0){var m;f=!((m=c[a.flowStateEntityKey])==null||!m.primaryButtonDisabled)}Q9b(a,d!=null?d:b,e,f)}} function R9b(a){return cA(XA,function(b){return b.entities.flowStateEntity},function(b,c){if(a.flowStateEntityKey){var d,e=b==null?void 0:(d=b[a.flowStateEntityKey])==null?void 0:d.currentStepId,f; c=c==null?void 0:(f=c[a.flowStateEntityKey])==null?void 0:f.currentStepId;f=XA.getState().talkToRecs;if(e&&e!==c){var h;b=(b==null?void 0:(h=b[a.flowStateEntityKey])==null?void 0:h.stepIdStack)||Object.keys(f.stepStates);h=!S9b(f==null?void 0:f.stepStates[e]);Q9b(a,e,b,h)}}})} function T9b(a){return cA(XA,M9b,function(b){var c=P9b(a);if(c){var d=Object.keys(b.stepStates);b=!S9b(b==null?void 0:b.stepStates[c]);Q9b(a,c,d,b)}})} function S9b(a){var b=Object.keys((a==null?void 0:a.selectionStates)||{}).reduce(function(f,h){return f||(a==null?void 0:a.selectionStates[h].isSelected)},!1),c,d,e=!!(a==null?0:(c=a.userQuery)==null?0:(d=c.userQuery)==null?0:d.trim()); return b||e} function P9b(a){if(a.flowStateEntityKey){var b,c,d=(b=XA.getState().entities.flowStateEntity)==null?void 0:(c=b[a.flowStateEntityKey])==null?void 0:c.currentStepId;if(d)return d}} function Q9b(a,b,c,d){XA.dispatch(dA("flowStateEntity",a.flowStateEntityKey,{currentStepId:b,stepIdStack:c,key:a.flowStateEntityKey,primaryButtonDisabled:d}))} ;bB(O(function(a){var b=function(){return z(a.data().flowRoot,qnb)}; rw(function(){var c=b(),d=function(){},e=function(){}; c&&(O9b(c,N9b(c)),d=R9b(c),e=T9b(c));zp(function(){d();d=function(){}; e();e=function(){}; var f=b();f&&(XA.dispatch(dA("flowStateEntity",f.flowStateEntityKey)),Bu(aA({type:"TALK_TO_RECS_RESET_STEP_STATE",payload:{stepId:N9b(f)}})))})}); return D("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},D(mS,{contentId:function(){return a.data().contentId}},function(){return D("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},D(P,{cond:b, then:function(c){return D(o8b,{data:c})}}))}))},"of"),"ytd-talk-to-recs-flow-renderer",{props:{data:$A}});var V9b=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("rEJS"),2);a=U9b;return b.return(a)})},W9b=yD(function(){return V9b()},{debugName:"ghostChipShelf"}); Gn(xD,function(a){a.registerLoadFn("ghostChipShelf","rEJS",V9b)});bB(O(function(){return D("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},D("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),D("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},D(W9b,null)),D(vLb,{data:{rows:1},isExploreHub:!0}))},"pf"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");bB(O(function(a){var b=a.data;var c=a.standardUnitMinWidth;a=l(kQ(b));var d=a.next().value,e=a.next().value,f=function(){var m,p=(m=d())==null?void 0:m.contents;return p==null||p.length===0},h=function(){e(Object.assign({},d(),{contents:[]}))}; a=vw({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var m=z(b().chipsShelf,Qpb);if(m!=null&&m!=null&&m.autoselectChipOnVisible){var p,q,t=z(m==null?void 0:(p=m.contents)==null?void 0:p[(q=m.autoselectedChipIndex)!=null?q:0],$J);t&&t.tapCommand&&QB(t.tapCommand)}}}); return D("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:dB(a)},D(mS,{contentId:function(){return b().contentId}, useLegacyShelfStyle:function(){return!0}},function(){return D("div",null,D("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},D(OC,{data:function(){return b().header}},{sectionHeaderViewModel:function(m){return D(UV,{data:m.data, disableHorizontalPadding:!0})}})),D("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},D(OC,{data:function(){return b().chipsShelf}},{chipsShelfViewModel:function(m){return D(f8b,{data:m.data, callback:h,selectionBehavior:1})}})),D("div",null,D(P,{cond:f, then:function(){return D("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},D(vLb,{data:{rows:1},isExploreHub:!0}))}}),D(OC,{data:function(){var m; return(m=d())==null?void 0:m.contents}},{richShelfRenderer:function(m){return D(dYb,{data:m.data, isInnerShelf:!0,standardUnitMinWidth:c})}})))}))},"qf"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:$A, standardUnitMinWidth:$A}});var XY=function(){return E.apply(this,arguments)||this}; k(XY,E); XY.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:{component:"ytd-destination-shelf-renderer",params:{isRichGrid:!0}},hashtagGridShelfRenderer:"ytd-hashtag-grid-shelf-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",richShelfRenderer:{component:"ytd-rich-shelf-renderer", properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},sourcePivotHeaderRenderer:"ytd-source-pivot-header-renderer",effectPivotHeaderViewModel:"ytd-effect-pivot-header-view-model",showingResultsForRenderer:"yt-showing-results-for-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",richListHeaderRenderer:"ytd-rich-list-header-renderer",faqSectionRenderer:"yt-faq-section-renderer", feedNudgeRenderer:"ytd-feed-nudge-renderer",eduCardViewModel:"yt-edu-card-view-model",shelfRenderer:"ytd-shelf-renderer",talkToRecsFlowRenderer:"ytd-talk-to-recs-flow-renderer",chipsShelfViewModel:"chips-shelf-view-model",cardViewModel:"yt-card-view-model",chipsShelfWithVideoShelfRenderer:{component:"ytd-chips-shelf-with-video-shelf-renderer",properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0,disableGridStateAware:!0}}, messageRenderer:"ytd-message-renderer",alertBannerViewModel:{component:"yt-alert-banner-view-model",params:{isInRichGrid:!0}},chipsShelfWithVideoShelfGhostCardViewModel:"ytd-chips-shelf-with-video-shelf-ghost-card-view-model"},reuseComponents:!1}}}; XY.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}}; n([F(kC),r("design:type",Object)],XY.prototype,"ytdReduxBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],XY.prototype,"ytRendererstamperBehavior",void 0);n([F(ZP),r("design:type",Object)],XY.prototype,"ytContinuationHandlerBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],XY.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],XY.prototype,"data",void 0);n([M(),r("design:type",Number)],XY.prototype,"standardUnitMinWidth",void 0); n([gu({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],XY); Tu(XY,"ytd-rich-section-renderer",function(){if(u9b!==void 0)return u9b;var a=document.createElement("template");Q(a,"
\n");a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return u9b=a},{mode:2});var X9b;var Y9b=yh(function(){var a,b;return(b=(a=window).matchMedia)==null?void 0:b.call(a,"(prefers-reduced-motion: reduce)").matches});var Z9b=yh(function(){if(window.MediaSource&&typeof window.MediaSource.isTypeSupported==="function")return window.MediaSource.isTypeSupported("video/webm; codecs=\"vp09.00.51.08.01.01.01.01.00\"");if(window.ManagedMediaSource&&typeof window.ManagedMediaSource.isTypeSupported==="function")return window.ManagedMediaSource.isTypeSupported("video/webm; codecs=\"vp09.00.51.08.01.01.01.01.00\"");var a=xa("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");a||(a=li("VIDEO"),va("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_", a));return!!(a&&a.canPlayType&&a.canPlayType("video/webm; codecs=\"vp09.00.51.08.01.01.01.01.00\""))});var $9b=new Bn("EPHEMERAL_STORE_TOKEN");var a$b=function(a){this.data=Object.assign({},a);var b;(b=this.data.innertubeResponse)==null||delete b.frameworkUpdates}; a$b.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)> "+d.languageName,f.translationLanguage=d,a.push(f))}return a} function n$b(a){return Yba(a,function(b){return b.languageCode==="en"})} function o$b(a,b){var c=ZY;if(k$b(a))x("mweb_enable_player_captions_persistence_state_machine")?a.setOption("captions","stickyLoading",{userInitiated:b}):a.setOption("captions","stickyLoading",{}),a.setOption("captions","track",{}),x("mweb_better_captions_placement")&&a.setSubtitlesTargetContainerId("");else{var d=Yba(l$b(a),function(e){return e.displayName===c}); a.setOption("captions","track",d);x("mweb_enable_player_captions_persistence_state_machine")&&a.setOption("captions","stickyLoading",{userInitiated:b});x("mweb_better_captions_placement")&&a.setSubtitlesTargetContainerId("captions-galore-container")}} ;var v$b=function(){var a=this;this.captionsLoadedState=0;this.areCaptionsTemporarilySuppressed=!1;this.config=this.playbackCommand=this.player=this.watchEndpointStartTimeUpdaterInterval=this.preventProgressSaveTimer=null;this.onCaptionsChanged=function(b){a.player&&a.player.getPlayerState()!==0&&(b=!!b.languageCode,a.areCaptionsTemporarilySuppressed||j$b({captionsOn:b}),b&&p$b(a))}; this.onPlayerReady=function(){var b;(b=a.config)==null||b.onPlayerReady()}; this.onPlaybackStart=function(){q$b(a);r$b(a);s$b(a);a.preventProgressSaveTimer=Ml(function(){a.preventProgressSaveTimer=null},1E4); var b;(b=a.config)==null||b.onPlaybackStart()}; this.onSeekTo=function(){s$b(a)}; this.onPlayerStateChange=function(b){if(b===0){t$b(a);u$b(a,!0);var c;(c=a.config)==null||c.onPlaybackEnd()}}}; v$b.prototype.suppressCaptions=function(){this.areCaptionsTemporarilySuppressed=!0;w$b(this)}; v$b.prototype.unsuppressCaptions=function(){this.areCaptionsTemporarilySuppressed=!1;x$b(this)}; var q$b=function(a){var b,c;if(c=(b=a.config)==null?0:b.allowAudio)c=h$b().audioOn;if(c){var d;(d=a.player)==null||d.unMute(!1);var e;(e=a.player)==null||e.syncVolume()}else{var f;(f=a.player)==null||f.mute(!1)}},r$b=function(a){if(a.player&&YY(a.player)){if(a.player.isSubtitlesOn()){a.captionsLoadedState=2; var b;((b=a.config)==null?0:b.allowCaptions)&&h$b().captionsOn?p$b(a):w$b(a)}else{a.captionsLoadedState=3;var c;((c=a.config)==null?0:c.allowCaptions)&&h$b().captionsOn&&y$b(a)}}else a.captionsLoadedState=1},x$b=function(a){var b=a.captionsLoadedState; a.captionsLoadedState=0;a.player&&YY(a.player)&&(b===3&&w$b(a),b===2&&y$b(a))},y$b=function(a){a.player&&!a.player.isSubtitlesOn()&&a.player.toggleSubtitles(!1)},w$b=function(a){a.player&&a.player.isSubtitlesOn()&&a.player.toggleSubtitles(!1)},p$b=function(a){var b; (b=a.player)==null||b.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)},z$b=function(a){t$b(a); a.watchEndpointStartTimeUpdaterInterval=jl(function(){u$b(a)},1E3)},t$b=function(a){a.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(a.watchEndpointStartTimeUpdaterInterval); a.watchEndpointStartTimeUpdaterInterval=null},s$b=function(a){a.preventProgressSaveTimer!==null&&bj.cancelJob(a.preventProgressSaveTimer); a.preventProgressSaveTimer=null;z$b(a)},u$b=function(a,b){if(a.player&&a.playbackCommand&&!a.preventProgressSaveTimer){var c=0; if(!b&&a.player.getCurrentTime)try{var d=a.player.getCurrentTime();c=Math.floor(d)}catch(f){fo(Error("Error calling getCurrentTime: "+f))}a=a.playbackCommand;var e;((e=z(a.inlinePlaybackEndpoint,py))==null?void 0:e.startTimeSeconds)===void 0&&(a.inlinePlaybackEndpoint.impStartTimeSeconds=c,e=z(a.navigationEndpoint,py))&&(e.startTimeSeconds=c)}};var A$b=function(){this.playbackState=null;this.playbackIntentTriggered=!1;this.activeRequestId=0;this.onPlaybackStartPromise=null},D$b=function(a,b,c,d,e){var f,h,m,p,q,t,u,v,w,y; return ra(function(A){switch(A.nextAddress){case 1:return f=++a.activeRequestId,a.playbackIntentTriggered=!0,h={},m=b$b(b,{endpoint:c.inlinePlaybackEndpoint,startPlaybackInMutedState:!0},h),A.setCatchFinallyBlocks(2),A.yield(m,4);case 4:p=A.yieldResult;if(a.activeRequestId!==f||!a.playbackIntentTriggered)return A.return(0);if(((q=p)==null?void 0:(t=q.playabilityStatus)==null?void 0:t.status)!=="OK"){A.jumpTo(5);break}u=yj();a.onPlaybackStartPromise=u;v=Object.assign({},e,{allowAudio:B$b(p,e),onPlayerReady:function(){if(a.activeRequestId=== f&&a.playbackIntentTriggered)e.onPlayerReady(p)}, onPlaybackStart:function(){if(a.activeRequestId===f&&a.playbackIntentTriggered){var C;(C=u)==null||C.resolve(2);e.onPlaybackStart()}}}); return A.yield(C$b(a,p,c,d,v,e.centerCrop,e.trackingParams),6);case 6:w=A.yieldResult;if(a.activeRequestId!==f||!a.playbackIntentTriggered)return A.return(0);if(w)return A.return(u.promise);case 5:A.leaveTryBlock(3);break;case 2:y=A.enterCatchBlock(),Xk(y);case 3:return A.return(1);}})},C$b=function(a,b,c,d,e,f,h){var m; return ra(function(p){if(p.nextAddress==1){var q;var t=(q=z(c.inlinePlaybackEndpoint,py))==null?void 0:q.videoId;var u;if(!t||t!==(b==null?void 0:(u=b.videoDetails)==null?void 0:u.videoId))return p.return(null);b.trackingParams=h;return p.yield(d,2)}m=p.yieldResult;if(!a.playbackIntentTriggered||!m||!m.setCenterCrop)return p.return(null);a.playbackState=new v$b;q=a.playbackState;u=m;var v,w,y=(w=(v=z(c.inlinePlaybackEndpoint,py))==null?void 0:v.startTimeSeconds)!=null?w:c.inlinePlaybackEndpoint.impStartTimeSeconds; y!==void 0&&(b.playerConfig||(b.playerConfig={}),b.playerConfig.playbackStartConfig||(b.playerConfig.playbackStartConfig={}),b.playerConfig.playbackStartConfig.startPosition||(b.playerConfig.playbackStartConfig.startPosition={}),b.playerConfig.playbackStartConfig.startSeconds=y,b.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(y*1E3));v=(t=z(c.inlinePlaybackEndpoint,py))==null?void 0:t.endTimeSeconds;v!==void 0&&(b.playerConfig||(b.playerConfig={}),b.playerConfig.playbackEndConfig||( b.playerConfig.playbackEndConfig={}),b.playerConfig.playbackEndConfig.endSeconds=v);t={};if(v=z(c.inlinePlaybackEndpoint,py))t.watch_endpoint=v;t=VSb(b,void 0,t);t.args&&u.setInlinePreview&&u.loadVideoByPlayerVars&&(u.setInlinePreview(!0),u.loadVideoByPlayerVars(t.args),q.player=u,q.playbackCommand=c,q.config=e,u.addEventListener("captionschanged",q.onCaptionsChanged),u.addEventListener("onReady",q.onPlayerReady),u.addEventListener("onPlaybackStartExternal",q.onPlaybackStart),u.addEventListener("SEEK_TO", q.onSeekTo),u.addEventListener("onStateChange",q.onPlayerStateChange));m.setCenterCrop(f);return p.return(m)})}; A$b.prototype.suppressCaptions=function(){var a;(a=this.playbackState)==null||a.suppressCaptions()}; A$b.prototype.unsuppressCaptions=function(){var a;(a=this.playbackState)==null||a.unsuppressCaptions()}; var B$b=function(a,b){var c,d;return!!((c=a.playerConfig)==null?0:(d=c.inlinePlaybackConfig)==null?0:d.showAudioControls)&&b.allowAudio};var $Y=null;function E$b(a,b){var c=window.MutationObserver;c&&($Y=new c(function(d,e){d=l(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var h;if(h=f.type==="childList"&&f.target)a:{h=a;f=F$b(f.target);h=F$b(h);for(var m=null,p=0;p0)return a[0];a=document.getElementsByTagName("ytd-section-list-renderer");return a.length>0?a[0]:null} function F$b(a){for(var b=[];a;)b.push(a),a=a.parentElement;return b} function G$b(a,b){var c=Array.from(b.children);b=a.indexOf(b);return b>0?c.indexOf(a[b-1]):-1} ;var gRb=O(function(a){var b=a.data;var c=a.className;var d=a.useSmallLayout;var e=a.useMediumText;var f=a.useHeavyText;var h=function(){return!(e==null||!e())||!(f==null||!f())}; a={};return D("yt-attribution-view-model",{el:dB(MD(function(){var m;return(m=b())==null?void 0:m.rendererContext})), class:U(c,(a.ytAttributionViewModelHost=!0,a.ytAttributionViewModelMediumText=e,a.ytAttributionViewModelHeavyText=f,a))},D(P,{cond:function(){return KD(b().rendererContext)}, then:function(){return D("button",{class:"ytAttributionViewModelTappable"},D(I$b,{data:b,useSmallLayout:d,badgesShouldInheritTypography:h}))}, else:function(){return D(I$b,{data:b,useSmallLayout:d,badgesShouldInheritTypography:h})}}))},"rf"),I$b=O(function(a){var b=a.data; var c=a.useSmallLayout;var d=a.badgesShouldInheritTypography;var e=function(){return{size:(c==null?0:c())?16:24}}; return D(mq,null,D(OC,{data:function(){return b().contentPreviewImage}},{contentPreviewImageViewModel:function(f){return D(WV,{data:f.data, className:"ytAttributionViewModelAttributionImage",imageSizeConfig:e})}}),D(OC,{data:function(){return b().badge}},{badgeViewModel:function(f){return D(ED,{data:f.data, class:"ytAttributionViewModelBadge",modern:!0,inheritTypography:d})}}),D(P,{cond:function(){return b().text}, then:function(){return D(gC,{text:function(){return b().text}, noWrap:!0,linkInheritColor:!0,className:"ytAttributionViewModelAttributionText"})}}),D(P,{cond:function(){return b().suffix}, then:function(){return D(gC,{text:function(){return b().suffix}, linkInheritColor:!0,className:"ytAttributionViewModelSuffix"})}}))},"sf"); gRb.idomCompat=!0;var J$b=O(function(a){var b=a.delimiter;var c=a.max;var d=a.index;var e=a.isStandalone;return D(P,{cond:function(){return c()-1>d()}, then:function(){var f={};return D("span",{class:U("ytContentMetadataViewModelDelimiter",(f.ytContentMetadataViewModelDelimiterStandalone=e,f)),"aria-hidden":!0},b)}})},"tf"),L$b=O(function(a){var b=a.metadataPart; var c=a.maxLines;return D(gC,{text:function(){return b().text}, ariaLabel:function(){return b().accessibilityLabel}, linkInheritColor:!0,className:function(){return K$b(c())}, userInput:!0})},"uf"),M$b=O(function(a){var b=a.metadataPart; var c=a.maxLines;return D(P,{cond:function(){return b().tooltip}, then:function(d){return D("span",{title:d,role:"tooltip"},D(L$b,{metadataPart:b,maxLines:c}))}, else:function(){return D(L$b,{metadataPart:b,maxLines:c})}})},"vf"),N$b=O(function(a){var b=a.metadataPart; var c=a.isOverlay;var d=a.useMediumText;var e=a.hideAvatar;var f=function(){return GD(function(){var m;return(m=b().leadingIcon)==null?void 0:m.colorToken})},h=function(){return b().maxLines!==void 0?b().maxLines:1}; return D(mq,null,D(OC,{data:function(){return b().avatarStack}},{avatarStackViewModel:function(m){return D(NR,{data:m.data, isOverlay:c,useMediumText:d,hideAvatar:e})}, badgeViewModel:ED}),D(P,{cond:function(){return b().leadingIcon}, then:function(m){return D(aC,{className:"ytContentMetadataViewModelLeadingIcon",icon:function(){return m().name}, size:function(){return m().width}, "aria-label":function(){return m().accessibilityLabel}, style:GC({color:f()})})}}),D(P,{cond:function(){return b().text}, then:function(){return D(M$b,{metadataPart:b,maxLines:h})}}),D(P,{cond:function(){return b().icon}, then:function(m){return D(aC,{className:"ytContentMetadataViewModelIcon",icon:function(){return m().name}, size:function(){return m().width}, "aria-label":function(){return m().accessibilityLabel}})}}))},"wf"); function K$b(a){switch(a){case 0:return"ytContentMetadataViewModelMetadataTextMaxLines0";case 1:return"ytContentMetadataViewModelMetadataText";case 2:return"ytContentMetadataViewModelMetadataTextMaxLines2";case 3:return"ytContentMetadataViewModelMetadataTextMaxLines3";default:return"ytContentMetadataViewModelMetadataTextMaxLines4";}} var O$b=O(function(a){var b=a.metadataRow;var c=a.isInline;var d=a.delimiter;var e=a.isOverlay;var f=a.useMediumText;var h=a.extensions;var m=null,p=function(){var v,w=h==null?void 0:(v=h())==null?void 0:v.lockupMetadata;v=b();var y,A;return!!((w==null?0:(y=w.byline)==null?0:y.hideAvatar)&&((A=z(v,tsb))==null?void 0:A.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},q=function(){return b().metadataParts||[]}; a=FC(function(){var v=b().rendererContext;var w;(v=LB((w=z(v,hy))==null?void 0:w.onHoverStart))&&Fn().resolve(JB).resolveCommand(v,{form:{element:m}})}); var t=FC(function(){var v=I1a(b().rendererContext);v&&Fn().resolve(JB).resolveCommand(v)}),u={}; return D("div",{class:U("ytContentMetadataViewModelMetadataRow",(u.ytContentMetadataViewModelMetadataRowMetadataRowInline=c,u.ytContentMetadataViewModelMetadataRowMetadataRowPadding=function(){var v,w=h==null?void 0:(v=h())==null?void 0:v.lockupMetadata;v=b();var y,A;return!!((w==null?0:(y=w.byline)==null?0:y.addPadding)&&((A=z(v,tsb))==null?void 0:A.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},u.ytContentMetadataViewModelMetadataRowMetadataRowWrap=function(){var v; return!!(h==null?0:(v=h())==null?0:v.lockupMetadata)&&b().badges&&!b().metadataParts},u)), "aria-label":function(){return b().a11yLabel}, tabindex:0,role:"group","on:mouseenter":a,"on:mouseleave":t,"on:focus":a,"on:blur":t,el:dB(function(v){m=v})},D(OC,{data:function(){return b().badges}},{badgeViewModel:function(v){return D("div",{class:"ytContentMetadataViewModelBadge"},D(ED,{data:v.data, numBadgesInRow:function(){var w,y;return((w=b())==null?void 0:(y=w.badges)==null?void 0:y.length)||0}}))}}),D(mw,{each:q},function(v,w){return D(mq,null,D(N$b,{metadataPart:v, isOverlay:e,useMediumText:f,hideAvatar:p}),D(J$b,{delimiter:d,max:function(){return q().length}, index:w,isStandalone:!1}))}),D(P,{cond:function(){return b().isSpacerRow&&!c()}, then:function(){return D("div",{class:"ytContentMetadataViewModelSpacer"})}}))},"xf"),F7b=O(function(a){a=Hu(a,{layout:0, isOverlay:!1});var b=a.data,c=a.layout,d=a.isOverlay,e=a.useMediumText,f=a.extensions,h=function(){return c()===0},m=function(){var q; return((q=b().metadataRows)==null?void 0:q.filter(function(t){var u,v=f==null?void 0:(u=f())==null?void 0:u.lockupMetadata,w,y;u=!!((v==null?0:(w=v.description)==null?0:w.hideDescription)&&((y=z(t,tsb))==null?void 0:y.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var A,C;return!((v==null?0:(A=v.spacer)==null?0:A.hideSpacer)&&((C=z(t,tsb))==null?void 0:C.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||u)}))||[]},p={}; return D("yt-content-metadata-view-model",{class:U(a.className,"ytContentMetadataViewModelHost",(p.ytContentMetadataViewModelInline=h,p.ytContentMetadataViewModelTappable=function(){return KD(b().rendererContext)},p.ytContentMetadataViewModelMediumText=e,p.ytContentMetadataViewModelCenter=function(){return c()===2},p)), el:dB(MD(function(){return b().rendererContext}))},D(mw,{each:m},function(q,t){return D(mq,null,D(O$b,{metadataRow:q, isInline:h,delimiter:function(){return b().delimiter}, isOverlay:d,useMediumText:e,extensions:f}),D(P,{cond:function(){return h()&&!q.isSpacerRow}, then:function(){return D(J$b,{delimiter:function(){return b().delimiter}, max:function(){return m().length}, index:t,isStandalone:!0})}}))}))},"yf"); F7b.idomCompat=!0;var bRb=O(function(a){var b=Fn().resolve(Cn(HB)),c={},d={};return D("yt-lockup-metadata-view-model",{class:U("ytLockupMetadataViewModelHost",function(){a:{var e=a.lockupStyle();if(e==null?0:e.isOverlay)e="ytLockupMetadataViewModelOverlay";else switch(e==null?void 0:e.arrangement){case 1:e="ytLockupMetadataViewModelHorizontal";break a;default:e="ytLockupMetadataViewModelVertical";}}return e},function(){a:{var e=a.lockupStyle(); switch(e==null?void 0:e.titleMaxLines){case 1:e="ytLockupMetadataViewModelTitleMaxLines1";break a;}e=void 0}return e},function(){a:{var e=a.lockupStyle(); if(e==null?0:e.isTiny)e="ytLockupMetadataViewModelTiny";else switch(e==null?void 0:e.sizing){case"MINI":case"EXTRA_COMPACT":case"COMPACT":e="ytLockupMetadataViewModelCompact";break a;default:e="ytLockupMetadataViewModelStandard";}}return e},(c.ytLockupMetadataViewModelOverlay=function(){var e; return(e=a.lockupStyle())==null?void 0:e.isOverlay},c.ytLockupMetadataViewModelCard=function(){var e; return(e=a.lockupStyle())==null?void 0:e.isCard},c.ytLockupMetadataViewModelCentered=function(){var e; return(e=a.lockupStyle())==null?void 0:e.isCentered},c.ytLockupMetadataViewModelTypographyBump=function(){var e; return(e=a.lockupStyle())==null?void 0:e.typographyBump},c.ytLockupMetadataViewModelLegacyTypography=function(){var e; return(e=a.lockupStyle())==null?void 0:e.useLegacyTypography},c.ytLockupMetadataViewModelRichGridLegacyTypography=function(){var e; return(e=a.lockupStyle())==null?void 0:e.useRichGridLegacyTypography},c.ytLockupMetadataViewModelCenteredColumn=function(){var e; return(e=a.lockupStyle())==null?void 0:e.isCenteredMetadata},c.ytLockupMetadataViewModelMoveLockupOverflowMenuToBottomRight=function(){var e; return(e=a.lockupStyle())==null?void 0:e.moveLockupOverflowMenuToBottomRight},c))},D(OC,{data:function(){return a.data().image}},{avatarStackViewModel:function(e){return D("div",{class:"ytLockupMetadataViewModelAvatar"},D(NR,{data:e.data, overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))}, avatarViewModel:function(e){return D("div",{class:"ytLockupMetadataViewModelAvatar"},D(zD,{data:e.data}))}, decoratedAvatarViewModel:function(e){return D("div",{class:"ytLockupMetadataViewModelAvatar"},D(OR,{data:e.data}))}}),D("div",{class:"ytLockupMetadataViewModelTextContainer"},D("h3",{class:"ytLockupMetadataViewModelHeadingReset", title:function(){var e;return(e=a.data().title)==null?void 0:e.content}},D(P,{cond:function(){return a.data().title}, then:function(e){return D(vD,{command:a.lockupCommand,className:"ytLockupMetadataViewModelTitle",style:GC({color:function(){var f;a:{var h=a.lockupStyle();var m=(f=a.hovered)==null?void 0:f.call(a);f=!(b==null||!b());var p;if((h==null?0:(p=h.onFocusEffect)==null?0:p.textPrimaryColor)&&m&&(h=f?h.onFocusEffect.textPrimaryColor.darkTheme:h.onFocusEffect.textPrimaryColor.lightTheme)){h=Ly(h);break a}h=void 0}return h}}), ariaLabel:a.lockupAccessibilityLabel},D(gC,{text:e,userInput:!0}))}})),D("div",{class:"ytLockupMetadataViewModelMetadata", style:GC({color:function(){var e;a:{var f=a.lockupStyle();var h=(e=a.hovered)==null?void 0:e.call(a);e=!(b==null||!b());var m;if((f==null?0:(m=f.onFocusEffect)==null?0:m.textSecondaryColor)&&h&&(f=e?f.onFocusEffect.textSecondaryColor.darkTheme:f.onFocusEffect.textSecondaryColor.lightTheme)){f=Ly(f);break a}f=void 0}return f}})},D(OC,{data:function(){return a.data().metadata}},{contentMetadataViewModel:function(e){return D(F7b,{data:e.data, layout:function(){var f,h;return(h=(f=a.layout)==null?void 0:f.call(a))!=null?h:1}, useMediumText:function(){var f,h;return((f=a.lockupStyle())==null?void 0:f.typographyBump)||((h=a.lockupStyle())==null?void 0:h.useRichGridLegacyTypography)}, extensions:function(){var f,h,m,p;return{lockupMetadata:{byline:{hideAvatar:((f=a.lockupStyle())==null?void 0:f.arrangement)===0,addPadding:((h=a.lockupStyle())==null?void 0:h.arrangement)===1},description:{hideDescription:!((m=a.lockupStyle())==null||!m.compactMetadata)},spacer:{hideSpacer:!((p=a.lockupStyle())==null||!p.compactMetadata)}}}}})}})),D(OC,{data:function(){return a.data().attribution}},{attributionViewModel:function(e){return D("div",{class:"ytLockupMetadataViewModelAttribution"},D(gRb, {data:e.data, useSmallLayout:!0}))}})),D("div",{class:U("ytLockupMetadataViewModelMenuButton",(d.ytLockupMetadataViewModelVisible=function(){var e; return(e=a.hovered)==null?void 0:e.call(a)},d.ytLockupMetadataViewModelBottomRight=function(){var e; return(e=a.lockupStyle())==null?void 0:e.moveLockupOverflowMenuToBottomRight},d))},D(OC,{data:function(){return a.data().menuButton}},{buttonViewModel:function(e){return D(AD,{data:e.data, buttonOverrides:function(){var f;return((f=a.lockupStyle())==null?0:f.isOverlay)?{style:"overlay"}:void 0}})}})))},"zf"); bRb.idomCompat=!0;bB(bRb,"yt-lockup-metadata-view-model",{props:{data:$A,lockupStyle:$A,lockupCommand:$A,lockupAccessibilityLabel:$A,hovered:$A,layout:$A}});var P$b=0;var IPb=O(function(a){var b=tQ(),c=eL(function(e){var f,h,m;a:{var p=(f=a.data())==null?void 0:f.animationActivationTargetId;f=((h=a.data())==null?void 0:h.animationActivationEntityKey)||"";h=(m=a.data())==null?void 0:m.animationActivationEntitySelectorType;if(f&&p)switch(h){case"THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":e=PA(e,f);m=Fn().resolve(Cn(EK));p=!!(e&&e.videoId===p&&(m==null?0:m.isMiniplayerActive()));p={activated:p,playAnimation:p&&e.playerState==="PLAYER_STATE_PLAYING"}; break a;}p=void 0}return p}); lw(function(){var e;if((e=c())==null?0:e.activated){var f;if((f=c())==null?0:f.playAnimation){var h;(h=b.lottieEl)==null||h.goToAndPlay(0)}else{var m;(m=b.lottieEl)==null||m.goToAndStop(0)}}},"pqG3X"); var d=function(){var e,f=!((e=c())==null||!e.activated);if(a.data()){e=a.data();var h=void 0;e.icon&&(h=OYa(e.icon),h=UYa(h));var m=void 0,p;if((p=e.backgroundColor)==null?0:p.lightTheme){var q;m={backgroundColor:Ky((q=e.backgroundColor)==null?void 0:q.lightTheme,"0.8")}}if(e.text||h||f){if(f&&e.lottieData&&b){q=e.lottieData;var t,u,v;p={animationConfig:{name:q.url,path:q.url,autoplay:(t=q.settings)==null?void 0:t.autoplay,loop:(v=(u=q.settings)==null?void 0:u.loop)!=null?v:!0},animationRef:b}}else p= void 0;if(f)t=18;else b:switch(e.badgeStyle){case"THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":t=19;break b;case"THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":t=20;break b;default:t=18;}f={type:t,text:f&&e.animatedText?e.animatedText:e.text,icon:h,customColors:m,animation:p}}else f=void 0}else f=void 0;return f}; return D("yt-thumbnail-badge-view-model",{class:U("ytThumbnailBadgeViewModelHost",a.class)},D(P,{cond:d,then:function(){return D(DT,{data:function(){return d()}})}}))},"Bf");function Q$b(){return{isFullscreen:function(){throw Error("isFullscreen not implemented")}, toggleFullscreen:function(){throw Error("toggleFullscreen not implemented")}, exitFullscreen:function(){throw Error("exitFullscreen not implemented")}, isAutonavEnabled:function(){throw Error("isAutonavEnabled not implemented")}, setAutonavEnabled:function(){throw Error("setAutonavEnabled not implemented")}, isAutoplaySetExplicitly:function(){throw Error("isAutoplaySetExplicitly not implemented")}}} ;function R$b(a){return a.videoDuration?a.numTaps>1&&a.tapDirection!==0?Nh(a.draggedTime/a.videoDuration,0,1):Nh((a.playedTime||0)/a.videoDuration,0,1):0} function aZ(a){return a.videoDuration?a.isDragging||a.numTaps>1&&a.tapDirection!==0?Nh(a.draggedTime/a.videoDuration,0,1):Nh((a.playedTime||0)/a.videoDuration,0,1):0} function S$b(a){var b,c,d;return z(a==null?void 0:(b=a.markersMap)==null?void 0:(c=b.find(function(e){return e.key==="HEATSEEKER"}))==null?void 0:(d=c.value)==null?void 0:d.heatmap,gtb)} function T$b(a){var b,c;return(c=(b=S$b(a))==null?void 0:b.heatMarkersDecorations)!=null?c:[]} function U$b(a){var b;return!!(a==null?0:(b=a.markersMap)==null?0:b.find(function(c){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(c.key)}))} ;function V$b(a){return a?a.width/a.columns:0} function W$b(a){return a.isHovering?a.hoveredTime:a.draggedTime} function X$b(a,b){a=a.draggedTime*1E3;return a>=b.visibleTimeRangeStartMillis&&a<=b.visibleTimeRangeEndMillis} ;function Y$b(a){if(a===void 0||Number.isNaN(a))return"--:--";var b=Math.abs(Math.floor(a)),c=Math.floor(b/86400),d=Math.floor(b%86400/3600),e=Math.floor(b%3600/60);b=Math.floor(b%60);var f="";c>0&&(f+=c+":",d<10&&(f+="0"));if(c>0||d>0)f+=d+":",e<10&&(f+="0");f+=e+":";b<10&&(f+="0");f+=b;return a>=0?f:"-"+f} ;var bac=O(function(a){var b=a.progressBarProps;var c=a.config;var d=a.progressBarWidthPx;var e=a.chapterData;var f=Z$b(b,function(){return c().isShortsPage}),h=function(){return!b().isHovering&&!c().isShortsPage}; a={};var m=U("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(a.ytPlayerStoryboardHostMwebShorts=function(){return c().isShortsPage&&!1},a)); return D("yt-player-storyboard",null,D(P,{cond:function(){return b().isDragging||b().isHovering}, then:function(){return D(P,{cond:f,then:function(p){return D(P,{cond:h,then:function(){return D("div",{class:m,"aria-hidden":"true"},D($$b,{props:b,config:c,isBigboard:!0,chapterData:e}))}, else:function(){return D(aac,{props:b,frame:p,config:c,progressBarWidthPx:d,chapterData:e})}})}})}}))},"Cf"),dac=O(function(a){var b=a.progressBarProps; var c=Z$b(b,a.isShortsPage);return D("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},D(P,{cond:function(){return b().isDragging||b().isHovering}, then:function(){return D(P,{cond:c,then:function(d){return D(cac,{frame:d,props:b,isBigboard:!0})}})}}))},"Df"); function Z$b(a,b){return function(){var c=W$b(a());var d=b();var e=a().playerApi;if(e&&e.getNumberOfStoryboardLevels()!==0){var f=e.getStoryboardFrameIndex(c,1);f!==-1?d=e.getStoryboardFrame(f,1):(c=e.getStoryboardFrameIndex(c,0),e=e.getStoryboardFrame(c,0),d&&e&&(e.height*=3,e.width*=3),d=e)}else d=null;if(!d)return null;b()&&(d.width=90*d.columns,d.height=160*d.rows);return d}} var aac=O(function(a){var b=a.props;var c=a.frame;var d=a.config;var e=a.progressBarWidthPx;a=a.chapterData;var f={};f=U("ytPlayerStoryboardHost",(f.ytPlayerStoryboardHostMwebShorts=function(){return d().isShortsPage&&!1},f.ytPlayerStoryboardHostInlinePlayer=function(){return d().isInlinePlayer},f.ytPlayerStoryboardHostFadeIn=function(){return d().useFadeInAnimation},f)); return D("div",{class:f,"aria-hidden":"true",style:function(){var h=b(),m=V$b(c()),p=e();h=W$b(h)/h.videoDuration;var q=p*h,t=m/2+6;m=p-(m/2+6);return"left: "+(q<=t?t/p*100:q>=m?m/p*100:h*100)+"%"}},D(P,{cond:function(){var h=b(); return!(d().isShortsPage&&h.videoDuration<15)}, then:function(){return D(cac,{frame:c,props:b,isBigboard:!1})}}),D($$b,{props:b, config:d,isBigboard:!1,chapterData:a}))},"Ef"),cac=O(function(a){var b=a.frame; var c=a.props;var d=a.isBigboard;var e=function(){var m,p;return(p=(m=c().playerApi)==null?void 0:m.getVideoContentRect())!=null?p:{width:0,height:0}},f=function(){return V$b(b())},h=function(){var m=b(); return m?m.height/m.rows:0}; a={};a=U((a.ytPlayerStoryboardBigboardImageWrapper=d,a.ytPlayerStoryboardStoryboardImageWrapper=function(){return!d()},a)); return D("div",{class:a,style:function(){return"width: "+(d()?e().width:f())+"px; height: "+(d()?e().height:h())+"px;"}},D(eac,{frame:b, storyboardWidth:f,storyboardHeight:h,storyboardScale:function(){return(d()?e().width:f())/f()}}))},"Ff"),eac=O(function(a){var b=a.frame; var c=a.storyboardWidth;var d=a.storyboardHeight;var e=a.storyboardScale;var f=function(){var h=b().row,m=b().column,p=c(),q=d(),t=e();return{left:-m*p*t,top:-h*q*t}}; return D("img",{src:function(){return b().url}, class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+f().left+"px; top: "+f().top+"px; width: "+b().width*e()+"px; height: "+b().height*e()+"px;"}})},"Gf"),$$b=O(function(a){var b=a.props; var c=a.config;var d=a.isBigboard;var e=a.chapterData;a={};a=U("ytPlayerStoryboardMetadata",(a.ytPlayerStoryboardMetadataBigboard=d,a));return D("div",{class:a},D(P,{cond:d,then:function(){return D(mq,null,D(fac,{props:b,config:c}),D(P,{cond:function(){a:{var f=b();var h=c(),m=e(),p;if((h==null?0:h.activeChapter)&&((p=z(h==null?void 0:h.activeChapter,dK))==null?0:p.title))f=!0;else{h=l(T$b(m));for(h=h.next();!h.done;h=h.next()){f=(h=z(h.value,htb))&&X$b(f,h);break a}f=!1}}return f}, then:function(){return D(gac,{props:b,config:c,isBigboard:!0,chapterData:e})}}))}, else:function(){return D(mq,null,D(gac,{props:b,config:c,isBigboard:!0,chapterData:e}),D(fac,{props:b,config:c}))}}))},"Hf"),fac=O(function(a){var b=a.props; var c=a.config;a={};a=U("ytPlayerStoryboardTimestamp",(a.ytPlayerStoryboardTimestampShorts=function(){return c().isShortsPage},a.ytPlayerStoryboardTimestampIsHovering=function(){return b().isHovering||c().isShortsPage&&!0},a)); return D("div",{class:a},D(mq,null,function(){return Y$b(W$b(b()))}))},"If"),gac=O(function(a){var b=a.props; var c=a.config;var d=a.isBigboard;var e=a.chapterData;a={};d=U("ytPlayerStoryboardTitle",(a.ytPlayerStoryboardTitleBigboard=d,a));return D("div",{class:d},D(P,{cond:function(){return!c().isShortsPage}, then:function(){return D(hac,{props:b,activeChapter:function(){return c().activeChapter}, chapterData:e})}}))},"Jf"),hac=O(function(a){var b=a.props; var c=a.activeChapter;var d=a.chapterData;return D(mq,null,D(mw,{each:function(){return T$b(d())}, keyBy:"INDEX"},function(e){return D(mq,null,D(P,{cond:function(){return z(e(),htb)&&X$b(b(),z(e(),htb))}, then:function(){return D(iac,{timedMarker:function(){return z(e(),htb)}})}}))}),D(P,{cond:function(){var e; return c()&&((e=z(c(),dK))==null?void 0:e.title)}, then:function(e){return D(gC,{text:e,noPreWrap:!0})}}))},"Kf"),iac=O(function(a){var b=a.timedMarker; return D(mq,null,D("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},D(aC,{icon:function(){return b().icon}, className:"ytPlayerStoryboardTimedMarkerIcon"})),D(gC,{text:function(){return b().label}, noPreWrap:!0}))},"Lf");var jac=O(function(a){var b=a.playerControlsProps;var c=a.isShortsPage;return D("yt-bigboard",null,D(P,{cond:function(){return b().isDragging}, then:function(){return D("div",{class:"ytBigboardStoryboardHost"},D(dac,{progressBarProps:b,isShortsPage:c}))}}))},"Mf"); jac.idomCompat=!0;var kac=["en-CA","en","es-MX","fr-CA"];var lac=null,mac={};function nac(a){$V(112394,a,function(){return lac},function(b){lac=b})} function oac(a,b){$V(b,a,function(){return mac[b]},function(c){mac[b]=c; var d=Tv(0);d&&c&&uz(d,c)})} ;var pac=O(function(a){var b=Hu(a,{isOverlay:!1}),c=b.captionIconType,d=b.onClick;a=b.ariaLabel;var e=b.ariaPressed,f=b.isOverlay;b=sw("button",function(q){oac(q,127299)}); var h=FC(function(q){var t=mac[127299];t&&iz(gz(),t);d==null||d(q);return!1}),m={},p={}; return D("ytm-closed-captioning-button",{class:U("ytmClosedCaptioningButtonHost",(m.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return c()===-1&&f()},m.ytmClosedCaptioningButtonIconDisabled=function(){return c()===-1&&!f()},m))},D("button",{el:b, class:"ytmClosedCaptioningButtonButton",title:a,"aria-label":a,"aria-pressed":e,"on:click":h},D(aC,{icon:function(){var q="";var t=Bl().get("hl");t=!t||kac.includes(t)?"CLOSED_CAPTION":"SUBTITLES";var u=c();switch(u){case-1:case 0:q=t;break;case 1:q=t+"_FILLED";break;default:Lb(u);}return q}, className:U((p.ytmClosedCaptioningButtonYtIconOverlay=f,p))})))},"Nf"); pac.idomCompat={callbacks:{onClick:!0}};var ZY="";var qac=O(function(a){var b=a.playerControlsProps,c=a.usePlayerDefaultTrack,d=a.onClickFn,e=a.className,f=a.shouldCaptionsPersist,h=function(u){var v=b(),w=c==null?void 0:c(),y=f();if(v.captionsAvailable)if(w){var A;(A=v.playerApi)==null||A.toggleSubtitles(y)}else if(w=v.playerApi){var C=v.playerApi;if(C)if(A=ZY){C=C.getOption("captions","track");var I;ZY=(I=C?C.displayName:null)!=null?I:A}else YY(C)?(I=l$b(C),ZY=I.length?(A=n$b(I))?A.displayName:I[0].displayName:""):ZY="";o$b(w,y)}if(!x("web_delete_snackbars")){var K, N;(N=(K=v.appApi).showCaptionsToggleToast)==null||N.call(K,v)}d==null||d(u)},m=Vo(function(){var u=b(),v=-1; u.captionsAvailable&&(v=u.captionsEnabled?1:0);return v},void 0,"HMo2rc"),p=Vo(function(){var u=b(); return u.captionsAvailable?zy(u.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):zy("CLOSED_CAPTIONS_DISABLED")},void 0,"WQ51Ye"),q=Vo(function(){var u=b(); u=u.captionsAvailable?u.captionsEnabled:void 0;return u},void 0,"I0LTub"),t=Vo(function(){return b().captionsAvailable},void 0,"LveOWe"); return D(P,{cond:function(){return x("mweb_player_hide_unavailable_subtitles_button")?t():!0}, then:function(){return D("yt-closed-captions-toggle-button",{class:e},D(pac,{captionIconType:m,ariaLabel:p,ariaPressed:q,onClick:h,isOverlay:!0}))}})},"Of");var rac=O(function(a){var b=a.data;return D("yt-premiere-trailer-badge",{class:"premiereTrailerBadgeHost"},D(DT,{data:function(){return{type:18,text:mMb(b().label)}}}))},"Pf");function sac(a){switch(a){case"MUSIC":return!0;default:return!1;}} function tac(a){if(a=a==null?void 0:a.find(function(d){var e,f;return((e=z(d,Csb))==null?void 0:(f=e.inlinePlaybackBadgeData)==null?void 0:f.replicateAsTimestamp)===!0}))if(a=z(a,Csb),a==null?0:a.icon){var b,c; if((a=(b=OYa(a.icon))==null?void 0:(c=b.clientResource)==null?void 0:c.imageName)&&sac(a))return a}} function uac(a){return a==null?void 0:a.filter(function(b){return b.premiereTrailerBadgeRenderer})} function vac(a){var b,c=a==null?void 0:(b=a.find(function(p){return p.thumbnailOverlayTimeStatusRenderer}))==null?void 0:b.thumbnailOverlayTimeStatusRenderer,d,e; if((c==null?0:(d=c.icon)==null?0:d.iconType)&&sac(c==null?void 0:(e=c.icon)==null?void 0:e.iconType)){var f;return{icon:c==null?void 0:(f=c.icon)==null?void 0:f.iconType}}var h;if(b=a==null?void 0:(h=a.find(function(p){return p.thumbnailOverlayBadgeViewModel}))==null?void 0:h.thumbnailOverlayBadgeViewModel)if(h=tac(b.thumbnailBadges))return{icon:h}; var m;if(a=a==null?void 0:(m=a.find(function(p){return p.thumbnailBottomOverlayViewModel}))==null?void 0:m.thumbnailBottomOverlayViewModel)if(m=tac(a.badges))return{icon:m}; return{}} ;function bZ(a,b){var c=c===void 0?{}:c;return zy(a,c,b)} var wac={ACCOUNT_LABEL:bZ("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:bZ("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:bZ("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:bZ("AD_BADGE_HINT"),AD_BADGE_TEXT:bZ("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:bZ("ALL_CHANNELS_LABEL"),AMBIENT_MODE:bZ("AMBIENT_MODE"),AMBIENT_MODE_OFF:bZ("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:bZ("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:bZ("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:bZ("ANDROID_DEPRECATION_MESSAGE_HEADER"), APP_UPSELL_SUBTITLE:bZ("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:bZ("APP_UPSELL_TITLE"),AUDIO_TRACK:bZ("AUDIO_TRACK","Audio Track"),AUTONAV_TOGGLE:bZ("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:bZ("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:bZ("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:bZ("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:bZ("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:bZ("AUTO_ZOOM","Auto zoom"),BACK:bZ("BACK"),CANCEL:bZ("CANCEL"),CHANNEL_SWITCHER_LABEL:bZ("CHANNEL_SWITCHER_LABEL"),CLOSE:bZ("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:bZ("CLOSED_CAPTIONS_DISABLED"), CLOSED_CAPTIONS_OFF:bZ("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:bZ("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:bZ("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:bZ("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:bZ("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:bZ("COMMENT_MODAL_CONTENT"),CONFIRM_OK:bZ("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:bZ("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:bZ("COPIED_TO_CLIPBOARD"),COPY:bZ("COPY"),COPY_DEBUG_INFO:bZ("COPY_DEBUG_INFO"),COPY_EMBED_CODE:bZ("COPY_EMBED_CODE"), COPY_LINK_LABEL:bZ("COPY_LINK_LABEL"),COPY_VIDEO_URL:bZ("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:bZ("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:bZ("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:bZ("DELETE_FROM_DOWNLOADS"),DIALOG:bZ("DIALOG"),DONE:bZ("DONE"),DOWNLOAD:bZ("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:bZ("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:bZ("FLAG_CONFIRM"),FLAG_CONTENT:bZ("FLAG_CONTENT"),FLAG_LABEL:bZ("FLAG_LABEL"),FLAG_TITLE:bZ("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:bZ("FULLSCREEN_GENERIC_ERROR"), GOOGLE_COMPANY:bZ("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:bZ("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:bZ("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:bZ("HIDE_SEARCH_FILTERS_LABEL"),HOME:bZ("HOME","Home"),INVALID_RESPONSE_RECEIVED:bZ("INVALID_RESPONSE_RECEIVED"),LIBRARY:bZ("LIBRARY","Library"),LISTENING:bZ("LISTENING"),LOADING:bZ("LOADING"),LONG_PRESS_MIC_TO_SPEAK:bZ("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:bZ("LOOP"),MENU_DESKTOP:bZ("MENU_DESKTOP"), MENU_EXIT:bZ("MENU_EXIT"),MENU_FEEDBACK:bZ("MENU_FEEDBACK"),MENU_HELP:bZ("MENU_HELP"),MENU_IMPRESSUM:bZ("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:bZ("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:bZ("MENU_SETTINGS"),MENU_SIGN_IN:bZ("MENU_SIGN_IN"),MENU_TITLE:bZ("MENU_TITLE"),MENU_YOUR_DATA:bZ("MENU_YOUR_DATA"),MORE_INFO:bZ("MORE_INFO"),MORE_OPTIONS:bZ("MORE_OPTIONS"),MORE_VIDEOS:bZ("MORE_VIDEOS","More videos"),MORE_VIDEOS_CLOSE_BUTTON_ARIA_LABEL:bZ("MORE_VIDEOS_CLOSE_BUTTON_ARIA_LABEL","Hide more videos"),MORE_VIDEOS_FROM_CHANNEL:bZ("MORE_VIDEOS_FROM_CHANNEL", "More videos from $channel_name_placeholder"),MORE_VIDEOS_NEXT_BUTTON_ARIA_LABEL:bZ("MORE_VIDEOS_NEXT_BUTTON_ARIA_LABEL","Next videos"),MORE_VIDEOS_PREVIOUS_BUTTON_ARIA_LABEL:bZ("MORE_VIDEOS_PREVIOUS_BUTTON_ARIA_LABEL","Previous videos"),MUTE_VOLUME:bZ("MUTE_VOLUME"),NEW_PLAYLIST:bZ("NEW_PLAYLIST"),NEXT_VIDEO:bZ("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:bZ("NOTIFICATION_ERROR_MESSAGE"),NOT_FOUND_CTA:bZ("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:bZ("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:bZ("NOT_FOUND_TITLE"), NO_DOWNLOADS:bZ("NO_DOWNLOADS"),NO_MIC_INPUT:bZ("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:bZ("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:bZ("OOPS_MESSAGE"),OPEN_APP:bZ("OPEN_APP"),OPEN_YOUTUBE:bZ("OPEN_YOUTUBE"),PAUSE:bZ("PAUSE"),PLAY:bZ("PLAY"),PLAYER_CAPTION:bZ("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:bZ("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:bZ("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:bZ("PLAYER_DOUBLE_SPEED_USER_EDU"),PLAYER_DOUBLE_TAP_TO_SEEK:bZ("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:bZ("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"), PLAYER_EXIT_FULLSCREEN:bZ("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:bZ("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:bZ("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:bZ("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:bZ("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:bZ("PLAYER_MINIMIZE"),PLAYER_NEXT:bZ("PLAYER_NEXT"),PLAYER_PAUSE:bZ("PLAYER_PAUSE"),PLAYER_PLAY:bZ("PLAYER_PLAY"),PLAYER_PREVIOUS:bZ("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:bZ("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:bZ("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:bZ("PLAYER_QUALITY_AUTO"), PLAYER_REPLAY:bZ("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:bZ("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:bZ("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:bZ("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:bZ("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:bZ("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:bZ("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:bZ("PLAYER_SPEED_RECENT"),PLAYER_TIME_DURATION:bZ("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:bZ("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:bZ("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"), PLAYLIST_MIX_DETAILED_LONG_BYLINE:bZ("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:bZ("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:bZ("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:bZ("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:bZ("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:bZ("PLAYLIST_PANEL_NEXT"),PLAYLIST_PANEL_UNLISTED_PLAYLIST:bZ("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:bZ("PLAYLIST_TEXT_INPUT_CHAR_COUNT"), PLAY_ALL:bZ("PLAY_ALL"),PLEASE_FIX_ERRORS:bZ("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:bZ("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:bZ("PREVIOUS_VIDEO"),PRIVACY_POLICY:bZ("PRIVACY_POLICY"),RELOAD:bZ("RELOAD"),REQUIRED_LABEL:bZ("REQUIRED_LABEL"),SAVE_PLAYLIST:bZ("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:bZ("SCRUB_SLIDE_USER_EDU"),SEARCH:bZ("SEARCH","Search"),SEARCH_APPEND_LABEL:bZ("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:bZ("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:bZ("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:bZ("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST", "Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:bZ("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:bZ("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:bZ("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:bZ("SEARCH_FILTERS_LABEL"),SEARCH_LABEL:bZ("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:bZ("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:bZ("SEEK_SLIDER"),SETTINGS_LABEL:bZ("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:bZ("SETTINGS_MIC_PERMISSION"), SHORTS_TAB_LABEL:bZ("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:bZ("SHOW_LESS"),SHOW_MORE:bZ("SHOW_MORE"),SHOW_PLAYER_CONTROLS:bZ("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:bZ("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:bZ("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:bZ("SIGN_IN_LABEL"),SIGN_IN_ON_WEB:bZ("SIGN_IN_ON_WEB"),STABLE_VOLUME:bZ("STABLE_VOLUME"),STABLE_VOLUME_OFF:bZ("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:bZ("STABLE_VOLUME_ON"),STATS_FOR_NERDS:bZ("STATS_FOR_NERDS"), SUGGESTION_DISMISSED_LABEL:bZ("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:bZ("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:bZ("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:bZ("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:bZ("SUGGESTION_THUMBNAIL_LABEL"),TERMS_OF_SERVICE:bZ("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:bZ("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:bZ("TIMESTAMP_SECONDS"),TOGGLE_OFF:bZ("TOGGLE_OFF"),TOGGLE_ON:bZ("TOGGLE_ON"), TRENDING:bZ("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:bZ("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:bZ("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:bZ("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:bZ("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:bZ("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),TURN_OFF_AUTOPLAY_DIALOG_TITLE:bZ("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:bZ("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:bZ("VIDEO_LINK_LABEL")};var xac=wac.MUTE_VOLUME,yac=wac.UNMUTE_VOLUME,zac=O(function(a){var b=a.muteIconType;var c=a.onClick;var d=a.useOutlineIcon;var e=a.useDelhiIcons;a=sw("button",function(p){oac(p,28662)}); var f=function(){var p=b(),q=d==null?void 0:d(),t=e==null?void 0:e(),u="",v="";switch(p){case-1:case 0:u=q?"VOLUME_OFF":t?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";v=yac;break;case 1:u=q?"VOLUME_UP_OUTLINE":t?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";v=xac;break;case 2:u=q?"VOLUME_DOWN_OUTLINE":t?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";v=xac;break;default:Lb(p);}return{iconName:u,ariaLabel:v}},h=function(){return f().ariaLabel},m=FC(function(p){var q=mac[28662]; q&&iz(gz(),q);c==null||c(p);return!1}); return D("ytm-mute-button",{class:"ytmMuteButtonHost"},D("button",{el:a,class:"ytmMuteButtonButton",title:h,"aria-label":h,"on:click":m},D("span",null,D(aC,{icon:function(){return f().iconName}}))))},"Qf");var Aac=O(function(a){var b=a.volumeProps;var c=a.onClickFn;var d=a.useOutlineIcon;var e=a.useDelhiIcons;return D("yt-mute-toggle-button",{class:a.className},D(zac,{muteIconType:function(){var f=b();return f.volumeMuted||f.volume===0?0:f.volume>50?1:2}, onClick:function(f){var h=b().playerApi;h&&(h.isMuted()?h.unMute():h.mute(!1));c==null||c(f)}, useOutlineIcon:function(){return!(d==null||!d())}, useDelhiIcons:function(){return!(e==null||!e())}}))},"Rf"); Aac.idomCompat=!0;var Bac=O(function(a){var b=a.data;var c=sw("ytm-paid-content-overlay-renderer");a=FC(function(){c.value.classList.add("ytmPaidContentOverlayHidden");return!1}); return D("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:c,"on:animationend":a},D(vD,{command:function(){return b().navigationEndpoint}, className:"ytmPaidContentOverlayLink"},D(P,{cond:function(){var d;return(d=b().icon)==null?void 0:d.iconType}, then:function(){return D("span",null,D(aC,{icon:function(){var d;return(d=b().icon)==null?void 0:d.iconType}}))}}),D("div",{class:"ytmPaidContentOverlayText"},D(gC,{text:function(){return b().text}})),D(P,{cond:function(){return b().navigationEndpoint}, then:function(){return D(aC,{icon:"CHEVRON_RIGHT"})}})))},"Sf"); Bac.idomCompat=!0;function Cac(a,b){if(!a)return[];var c,d,e;a=((c=a.markersMap)==null?void 0:(d=c.find(function(f){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(f.key)}))==null?void 0:(e=d.value)==null?void 0:e.chapters)||[]; !Dac(a)||(b==null?0:b.ignoreStub)||(a=[Eac()].concat(ia(a)));return a} function Eac(){return{chapterRenderer:{timeRangeStartMillis:0}}} function Dac(a){if(a.length===0)return!1;var b;return((b=z(a[0],dK))==null?void 0:b.timeRangeStartMillis)!==0} function cZ(a){return a?a.timeRangeStartMillis||0:0} function Fac(a,b){if(a.isDragging&&b)return a=Gac(a,b),a===-1?Eac():Cac(b)[a]} function Gac(a,b){return a.isDragging&&b?Cac(b,{ignoreStub:!0}).findIndex(function(c,d,e){c=Hac(a);return Iac(c,e,d).scrubberHovering}):-1} function Hac(a){return Object.assign({},a,{videoDuration:a.videoDuration*1E3,playedTime:a.playedTime*1E3,draggedTime:a.draggedTime*1E3})} function Iac(a,b,c){var d=cZ(z(b[c],dK));b=cZ(z(b[c+1],dK))||a.videoDuration;c=a.isDragging;var e;if(e=a.isDragging)e=a.draggedTime,e=e!==null&&e>=d&&e=d&&f=t?0:(t-w)/(u-w);return"width: "+w*100+"%"}}),D("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill", style:GC({width:function(){return p()*100+"%"}, "background-size":function(){return(Lac(m(),p())?e():"")+"px"}, "background-position-x":function(){return(Lac(m(),p())?f():"")+"px"}, background:q})}))},"Uf"); function Lac(a,b){return a.videoPosition==="seen"||(b===void 0?0:b)>0} ;var Mac=O(function(a){var b=a.progressBarProps;var c=a.config;var d=function(){var e,f,h=((f=(e=c().focusedChapterData)==null?void 0:e.chapterStartPercentage)!=null?f:0)*100,m,p;e=((p=(m=c().focusedChapterData)==null?void 0:m.chapterEndPercentage)!=null?p:0)*100;m=e-h;return m>0&&m<10?(m=(10-m)/2,h-m>=0&&e+m<100?[h-m,e+m]:h-m<0?[0,10]:[90,100]):[h,e]}; a={};return D("yt-focused-chapter-progress-bar-line",{class:"ytFocusedChapterProgressBarLineHost"},D("div",{class:U("ytFocusedChapterProgressBarLineProgressBarLine",(a.ytFocusedChapterProgressBarLineProgressBarLineRounded=function(){return c().rounded},a.ytFocusedChapterProgressBarLineProgressBarLineBottomInset=function(){return c().position===2},a))},D("div",{class:"ytFocusedChapterProgressBarLineProgressBarBackground", style:function(){return"width: "+(d()[1]-d()[0])+"%; left: "+d()[0]+"%"}},D("div",{class:"ytFocusedChapterProgressBarLineProgressBarPlayed", style:function(){var e,f,h=(f=(e=c().focusedChapterData)==null?void 0:e.chapterStartPercentage)!=null?f:0,m,p;e=(p=(m=c().focusedChapterData)==null?void 0:m.chapterEndPercentage)!=null?p:0;m=R$b(b());return"width: "+(me||e===h?100:(m-h)/(e-h)*100)+"%;"}}))))},"Vf"); Mac.idomCompat=!0;function Nac(a,b,c,d){d=d===void 0?!1:d;b=new Oac(b||a,c||a);return{x:a.x+((d===void 0?0:d)?b.lengthX*-1:b.lengthX)*.2,y:a.y+((d===void 0?0:d)?b.lengthY*-1:b.lengthY)*.2}} var Oac=function(a,b){this.lengthY=this.lengthX=0;this.lengthX=b.x-a.x;this.lengthY=b.y-a.y};var Pac=function(a,b){b=b===void 0?$gb:b;var c,d=[],e,f=!1;return function(){var h=sa.apply(0,arguments);if(f&&c===this&&b(h,d))return e;e=a.apply(this,h);f=!0;c=this;d=h;return e}}(function(a){var b=a.heatMarkers,c=a.minHeightDp===void 0?0:a.minHeightDp,d=a.maxHeightDp===void 0?60:a.maxHeightDp; var e=e===void 0?!1:e;var f=1E3/b.length;a=[];a.push({x:0,y:100});for(var h=0;hMath.abs(c.x-a.startPosition.x))eZ(a,d,e);else if(b.preventDefault(),b.stopPropagation(),d.videoDuration&&(a.startPosition&&!a.hasDraggedTheMinimumDistance&&(a.hasDraggedTheMinimumDistance=Math.abs(c.x-a.startPosition.x)>=1),e.enableFineScrubbing&&(a.startPosition&&(a.isDraggedForFineScrubbing=-(c.y-a.startPosition.y)>=60),!a.startPosition||c.y>=a.startPosition.y||(d.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:Uac(d.draggedTime,d,e.chapterData)}),a.setFineScrubbingDraggedTime(d.draggedTime),a.updateFilmStripDraggedYDistance(a.startPosition.y, c.y,d))),a.hasDraggedTheMinimumDistance)){b=jbc(a,d,c.x);if(a.isDraggedForFineScrubbing){var h;(h=d.playerApi)==null||h.pauseVideo();d.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:d.draggedTime,filmStripXDistance:Uac(b*d.videoDuration,d,e.chapterData)})}e.enableFineScrubbing&&(!e.enableFineScrubbing||a.getFilmstripYPosition(d)<68)||d.setState({draggedTime:b*d.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:a.controlsWereVisibleBeforeDragging});var m;(m= e.cancelAutohideControlsFn)==null||m.call(e)}},eZ=function(a,b,c,d){var e=c.enableFineScrubbing&&b.fineScrubbingActiveState!=="off"; if(b.isDragging||e){d={isDragging:!1,playedTime:b.draggedTime,controlsVisible:a.controlsWereVisibleBeforeDragging};c.enableFineScrubbing&&b.fineScrubbingActiveState!=="on"&&(a.resetFilmStripYOffset(),d.fineScrubbingActiveState="off");var f=f===void 0?lac:f;if((e=Tv(0))&&f){var h=Math.round(b.playedTime*1E3),m=Math.round(b.draggedTime*1E3);h>2147483647||m>2147483647||yz(e,f,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(h),endMediaTimeMs:String(m),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}b.setState(d); a.seekThrottle.fire(b.draggedTime,b,7);c.unmuteOnSeek&&(c=b.playerApi,b.volumeMuted&&(c==null||c.unMute()));lbc(a)}else x("mawpc_touch_end_handler_bug_fix_killswitch")?b.setState({controlsVisible:!b.controlsVisible}):b.setState({controlsVisible:!0}),(h=c.triggerAutohideControlsAfterDelayFn)==null||h.call(c),lbc(a),x("mawpc_touch_end_handler_bug_fix_killswitch")||d==null||d.stopPropagation()}; dZ.prototype.handleClick=function(a,b,c){this.updateProgressBarRect();a.stopPropagation();a=jbc(this,b,a.clientX)*b.videoDuration;b.setState({playedTime:a});if(b.playerState!==2){var d;(d=c.triggerAutohideControlsAfterDelayFn)==null||d.call(c)}this.seekThrottle.fire(a,b,7)}; var jbc=function(a,b,c){a=a.getProgressBarRect(b);return Nh(0,(c-a.left)/a.width,1)},lbc=function(a){a.startPosition=null; a.hasDraggedTheMinimumDistance=!1;a.isDraggedForFineScrubbing=!1;a.controlsWereVisibleBeforeDragging=!1}; dZ.prototype.onThrottledSeek=function(a,b,c){if(b=b.playerApi){var d;if((d=b.getVideoData())==null?0:d.isLive)d=this.getProgressState(b),a+=(d==null?void 0:d.seekableStart)||0;b.seekTo(a,void 0,void 0,void 0,c)}}; dZ.prototype.getProgressState=function(a){var b=a==null?void 0:a.getPresentingPlayerType();return a==null?void 0:a.getProgressState(b)};var mbc=O(function(a){var b=a.progressBarProps;var c=a.playheadData;var d=a.config;a=sw("yt-progress-bar");var e=sw("div"),f=sw("div"),h=l(ip({width:0,left:0},void 0,"dlWotc")),m=h.next().value,p=h.next().value,q=function(){f.value&&p(f.value.getBoundingClientRect())},t=function(){m().width<=0&&q(); return m()}; DH("resize",q);var u=new dZ(t,function(){},function(){return 0},function(){},function(){},function(){}),v=function(){return b()}; h=l(ip(!1,void 0,"hZ1WUc"));var w=h.next().value,y=h.next().value;h=FC(function(){y(!0);d().position===2?setTimeout(function(){q()},100):q()}); var A=FC(function(){y(!1);cbc(u,v)()}),C=FC(function(ib){(d().doSeekOnClick||typeof PointerEvent!=="undefined"&&ib instanceof PointerEvent&&ib.pointerType==="mouse")&&Vac(u,v,d)(ib); return!1}),I=FC(function(ib){Xac(u,v)(ib); return!1}),K=FC(function(ib){Yac(u,v)(ib); return!1}),N=FC(function(ib){$ac(u,v,d)(ib); return!1}),L=FC(function(ib){bbc(u,v,d)(ib); return!1}),R=FC(function(ib){dbc(u,v,d)(ib); return!1}),W=FC(function(ib){ebc(u,v,d)(ib); return!1}),S=FC(function(ib){fbc(u,v,d)(ib); return!1}),Y=FC(function(ib){gbc(v)(ib); return!1}); DH("mousemove",hbc(u,v,d));DH("mouseup",ibc(u,v,d));var da;rw(function(){nac(e.value);y(!1);q();ibc(u,v,d)();d().isInlinePlayback&&(da=new ResizeObserver(q),da.observe(f.value));zp(function(){var ib;(ib=da)==null||ib.disconnect()})}); var Aa={};Aa=U("ytPlayerProgressBarHost",function(){return d().className},(Aa.ytPlayerProgressBarHostReadOnly=function(){return d().disableScrubbing},Aa.ytPlayerProgressBarHostHidden=function(){return d().hideProgressBar&&!w()},Aa.ytPlayerProgressBarHostLowerPlayer=function(){return d().position===0},Aa.ytPlayerProgressBarHostBottomEdge=function(){return d().position===1},Aa.ytPlayerProgressBarHostBottomInset=function(){return d().position===2},Aa.ytPlayerProgressBarHostCustom=function(){return d().position=== 3},Aa)); var Sa={},Ua=U("ytPlayerProgressBarBackground",(Sa.ytPlayerProgressBarBackgroundHide=function(){return d().position===2&&!w()&&!b().isDragging},Sa)); Sa={};Sa=U("ytPlayerProgressBarDragContainer",(Sa.ytPlayerProgressBarDragContainerBottomEdge=function(){return d().position===1},Sa)); var qb={};qb=U("ytPlayerProgressBarProgressBar",(qb.ytPlayerProgressBarProgressBarInset=function(){return d().position===2},qb.ytPlayerProgressBarProgressBarInsetMinimized=function(){return d().position===2&&!w()&&!b().isDragging},qb)); var ab=function(){return Math.floor(R$b(b())*100)},La={}; return D("yt-progress-bar",{el:a,class:Aa},D(P,{cond:function(){return d().position===2}, then:function(){return D("div",{class:Ua})}}),D("div",{el:e, "on:click":C,"on:touchstart":I,"on:touchmove":N,"on:mouseenter":h,"on:mousedown":K,"on:mouseleave":A,"on:mousemove":L,"on:mouseup":W,"on:touchend":R,"on:touchcancel":S,"on:keydown":Y,class:Sa,role:"slider","aria-valuenow":ab,"aria-valuetext":function(){return ab()+"%"}, "aria-valuemin":function(){return 0}, "aria-valuemax":function(){return 100}, draggable:"false",tabindex:0,"aria-label":zy("SEEK_SLIDER")},D("div",{el:f,class:qb},D("div",{class:U("ytPlayerProgressBarHeatseekerContainer",(La.ytPlayerProgressBarHeatseekerContainerInset=function(){return d().position===2},La))},D(Qac,{progressBarProps:b, config:d,highContrast:function(){return!!d().isInlinePlayback&&d().position!==2}})),D(P,{cond:function(){return d().chapterData&&U$b(d().chapterData)}, then:function(){return D(Kac,{progressState:b,multiMarkersPlayerBarRenderer:function(){return d().chapterData}, progressBarWidth:function(){return m().width}, progressColor:function(){return d().progressColor}})}, else:function(){return D(P,{cond:function(){return d().focusedChapterData}, then:function(){return D(Mac,{progressBarProps:b,config:d})}, else:function(){return D(Rac,{progressBarProps:b,config:d})}})}}),D(Sac,{progressBarProps:b, playheadData:function(){return x("enable_custom_scrubber_v2")?d().playheadData:c==null?void 0:c()}, interpolateDotPosition:function(){return d().position!==2}, hidePlayhead:function(){return d().playheadDotBehavior===1&&!w()||d().playheadDotBehavior===2}}))),D(bac,{progressBarProps:b, config:function(){return{activeChapter:Fac(b(),d().chapterData),getProgressBarWidthPx:function(){return t().width}, isShortsPage:!!d().isShortsPage,isInlinePlayer:!!d().isInlinePlayback,useFadeInAnimation:!!d().isInlinePlayback}}, progressBarWidthPx:function(){return m().width}, chapterData:function(){return d().chapterData}}))},"Zf"); mbc.idomCompat=!0;function nbc(a){var b=Object,c=b.assign,d;a={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(d=a==null?void 0:a.getPlayerState())!=null?d:-1,videoDuration:0,playedTime:0,wasPlaying:!1,lastPlayerAction:void 0};return c.call(b,{},{isLive:!1,isLiveDvrEnabled:!0,isPlaylist:!1,playerType:1,isProbablyAScreenreaderUser:!1,videoId:void 0,captionsEnabled:!1,captionsAvailable:!1,volume:0,volumeMuted:!0,draggedYDistance:0,isLooping:!1,isLongPressSpeedup:!1},{enabledFullscreenControlsGesture:!1, expandedFullscreenControls:!1,isFullscreen:!1,numTaps:0,lastTapTime:0,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},a,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})} ;var qbc=function(a,b){var c=obc;this.renderFn=a;this.listeners=c;this.context=b;this.eventListenerCleanupFunctions=[];var d;this.lastSeenPlayerApi=pbc((d=this.playerControlsData)==null?void 0:d.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},nbc(),void 0)}; qbc.prototype.setState=function(a){if(!rbc(a,this.state)){this.state=Object.assign({},this.state,a);a=x("player_controls_log_creation_enabled");var b=-1;a&&!sbc()&&(b=im());a&&aw("pcu_s");a&&(aw("pcu_se"),aw("pcu_rs"));this.renderFn(tbc(this));a&&(aw("pcu_re"),ubc(b),Hl(0,function(){aw("pcu_ap")},8))}}; var tbc=function(a){var b;var c=pbc((b=a.playerControlsData)==null?void 0:b.playerApi);return Object.assign({},a.state,{setState:a.boundSetState,domMeasurements:{progressBarLineRect:a.progressBarLineRect},playerApi:c,appApi:a.context.appApi,playerContainer:a.context.playerContainer,playerControlContainer:a.context.playerControlContainer,uxConfig:a.context.uxConfig})},vbc=function(a){a.listeners.forEach(function(b){a.eventListenerCleanupFunctions.push(b.register(function(){return tbc(a)},function(){return a.getData()}))})}, wbc=function(a){a.eventListenerCleanupFunctions.forEach(function(b){b()}); a.eventListenerCleanupFunctions.length=0}; qbc.prototype.getData=function(){return this.playerControlsData}; function sbc(){return document.getElementById("player-control-overlay")} function ubc(a){a!==-1&&x("player_controls_log_creation_enabled")&&sbc()&&(aw("pcu_cs",a),aw("pcu_ce"))} function pbc(a){if(!a||a.getVideoData)return a} function rbc(a,b){for(var c=l(Object.keys(a)),d=c.next();!d.done;d=c.next())if(d=d.value,a[d]!==b[d])return!1;return!0} ;function xbc(a,b){var c=new qbc(function(f){e(f)},b); b=l(ip(tbc(c),void 0,"D2uee"));var d=b.next().value,e=b.next().value;lw(function(){Promise.resolve().then(function(){var f,h=(f=a())!=null?f:{};c.playerControlsData=h;c.lastSeenPlayerApi=pbc(h.playerApi);vbc(c)}); zp(function(){wbc(c)})},"xfRk8b"); return d} ;function ybc(a){return function(b){var c=a(),d={playerState:b};if(b===1){var e;(e=c.playerApi)==null||e.loadModule("captions")}if(b===0){var f;(f=c.playerApi)==null||f.unloadModule("captions")}b!==-1&&c.setState(d)}} function zbc(a){return function(b){a().setState({playbackRate:b})}} function Abc(a){return function(b){var c=a(),d=c.playerApi,e=d==null?void 0:d.getVideoData(),f=(e==null?void 0:e.isLive)||!1,h=e==null?void 0:e.video_id,m;e=(m=e==null?void 0:e.allowLiveDvr)!=null?m:!0;f={videoDuration:Tac(d||void 0),isLive:f,videoId:h,isLiveDvrEnabled:e};f.videoId!==c.videoId&&(f=Object.assign({},nbc(d),f));if(b==null?0:b.playertype)f.playerType=b.playertype;if(d){f.captionsAvailable=YY(d);b=f;var p;h=(p=d.getStoryboardLevel(d.getNumberOfStoryboardLevels()-1))==null?void 0:p.intervalMs; b.storyboardInterval=h?h/1E3:void 0;f.captionsAvailable&&(f.captionsEnabled=k$b(d))}f.volumeMuted=!(d==null||!d.isMuted());c.setState(f)}} function Bbc(a){return function(b){var c=a(),d=c.playerApi;if(d){var e=d.getPresentingPlayerType();b={playedTime:b||0,percentLoaded:d.getVideoLoadedFraction(),playerType:e};c.playerState===0&&(b.playedTime=c.videoDuration);c.isLive&&(e=d.getProgressState(e),b.playedTime-=e.seekableStart,b.videoDuration=Tac(d));if(c.playerType===1)d=!1;else{var f;if((f=c.uxConfig)==null?0:f.showCuedOverlay){var h;d=!((h=c.playerApi)==null?0:h.getPlayerStateObject(c.playerType).isDomPaused)}else d=!0}d&&delete b.playedTime; c.setState(b)}}} ;function Cbc(a){return function(){var b=a(),c,d,e,f={volume:(e=(c=b.playerApi)==null?void 0:c.getVolume())!=null?e:0,volumeMuted:!((d=b.playerApi)==null||!d.isMuted())};b.setState(f)}} function Dbc(a){return function(){var b=a(),c=b.playerApi;if(c){var d={captionsAvailable:YY(c)};d.captionsAvailable&&(d.captionsEnabled=k$b(c));b.setState(d)}}} ;var obc=[].concat(ia([{register:function(a){var b=Cbc(a),c;(c=a().playerApi)==null||c.addEventListener("onVolumeChange",b);return function(){}}}, {register:function(a){var b=Dbc(a);a=a().playerApi;a==null||a.addEventListener("captionschanged",b);a==null||a.addEventListener("captionssettingschanged",b);a==null||a.addEventListener("onCaptionsTrackListChanged",b);return function(){}}}]),[{register:function(a){var b=ybc(a),c; (c=a().playerApi)==null||c.addEventListener("onStateChange",b);return function(){}}}, {register:function(a){var b=zbc(a),c;(c=a().playerApi)==null||c.addEventListener("onPlaybackRateChange",b);return function(){}}}, {register:function(a){var b=Abc(a),c;(c=a().playerApi)==null||c.addEventListener("onVideoDataChange",b);return function(){}}}, {register:function(a){var b=Bbc(a),c,d;(c=a())==null||(d=c.playerApi)==null||d.addEventListener("onVideoProgress",b);return function(){}}}]);function Ebc(a){return{appApi:Object.assign({},Q$b(),{showCaptionsToggleToast:function(b){var c,d;(d=(c=a()).showCaptionsToggleToast)==null||d.call(c,b)}, openInMiniplayer:function(){var b,c;(c=(b=a()).openInMiniplayer)==null||c.call(b)}})}} var Fbc=O(function(a){var b=a.data;var c=function(){var d,e=(d=b())==null?void 0:d.playerResponse,f;return e==null?void 0:(f=e.paidContentOverlay)==null?void 0:f.paidContentOverlayRenderer}; return D("div",{class:function(){var d;return((d=c())==null?void 0:d.disclosurePlacement)==="PLAYER_DISCLOSURE_PLACEMENT_LEFT_BOTTOM"?"ytInlinePlayerControlsBottomLeftControls":"ytInlinePlayerControlsTopLeftControls"}},D(P,{cond:c, then:function(d){return D(Bac,{data:d})}}))},"bg"),Hbc=O(function(a){var b=a.props; var c=a.data;var d=a.options;var e=function(){var f=[],h,m=l(((h=c())==null?void 0:h.topRightControlButtons)||[]);for(h=m.next();!h.done;h=m.next())f.push(D(Gbc,{renderer:h.value}));var p,q,t,u;if((p=c())==null?0:(q=p.playerResponse)==null?0:(t=q.playerConfig)==null?0:(u=t.inlinePlaybackConfig)==null?0:u.showAudioControls){f.push(D(Aac,{volumeProps:b}));var v;((v=d())==null?0:v.hideCaptionsToggleButton)||f.push(D(qac,{playerControlsProps:b,shouldCaptionsPersist:!1,usePlayerDefaultTrack:!0}))}return f}; return D(P,{cond:function(){return e().length>0}, then:function(){return D("div",{class:"ytInlinePlayerControlsTopRightControls"},D(mw,{each:e},function(f){return D("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},D("div",{class:"ytInlinePlayerControlsButtonIcon"},f))}))}})},"cg"),Gbc=O(function(a){return D(OC,{data:a.renderer},{buttonViewModel:function(b){return D(AD,{data:b.data})}})},"dg"),Lbc=O(function(a){var b=a.props; var c=a.data;var d=a.options;a={};a=U("ytInlinePlayerControlsBottomRightControls",(a.ytInlinePlayerControlsBottomRightControlsHidden=function(){var e;return Ibc(c(),d())&&((e=d())==null?void 0:e.insetProgressBar)&&(b().isHovering||b().isDragging)},a)); return D("div",{class:a},D(Jbc,{data:c}),D(P,{cond:function(){var e;return!((e=d())==null?0:e.hideTimeDisplay)}, then:function(){return D(Kbc,{props:b,data:c})}}))},"eg"),Jbc=O(function(a){var b=a.data; return D(OC,{data:function(){var c;return uac((c=b())==null?void 0:c.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:rac})},"fg"),Kbc=O(function(a){var b=a.props; var c=a.data;return D(P,{cond:function(){return b().isLive}, then:function(){return D(Mbc,{props:b,data:c})}, else:function(){return D(Nbc,{props:b,data:c})}})},"gg"),Nbc=O(function(a){var b=a.props; var c=a.data;var d=Vo(function(){var e;return vac((e=c())==null?void 0:e.thumbnailOverlays)},void 0,"RRMmFe"); return D("div",{class:U("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return wac.PLAYER_TIME_ELAPSED+" "+Y$b(b().playedTime)}},D(DT,{data:function(){var e=Y$b(b().videoDuration-b().playedTime); return Object.assign({},{type:18,text:e},d())}}))},"hg"),Obc=O(function(a){a=a.badgeShapeData; return D("div",{class:U("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},D(DT,{data:a}))},"ig"),Mbc=O(function(a){var b=a.data; a=Vo(function(){if(x("use_thumbnail_overlay_time_status_renderer_for_live_badge")){var d,e=l(((d=b())==null?void 0:d.thumbnailOverlays)||[]);for(d=e.next();!d.done;d=e.next()){d=d.value;if(d.thumbnailOverlayTimeStatusRenderer||d.thumbnailOverlayBadgeViewModel)return d;var f=void 0;if((f=d.thumbnailBottomOverlayViewModel)==null?0:f.badges)if(d=d.thumbnailBottomOverlayViewModel.badges.find(function(h){return z(h,Csb)}))return d}}},void 0,"qPAGH"); var c=Vo(function(){var d,e,f,h,m,p;return xOb((d=b())==null?void 0:(e=d.playerApi)==null?void 0:(f=e.getSize())==null?void 0:f.width,(h=b())==null?void 0:(m=h.playerApi)==null?void 0:(p=m.getSize())==null?void 0:p.height)},void 0,"z203Me"); return D(P,{cond:a,then:function(d){return D(OC,{data:d},{thumbnailOverlayTimeStatusRenderer:function(e){var f=e.data;e=Vo(function(){return NOb(f(),0)},void 0,"dNUqMc"); return D(Obc,{badgeShapeData:e})}, thumbnailBadgeViewModel:function(e){return D(IPb,{data:e.data,class:U("ytInlinePlayerControlsLiveBadge","ytInlinePlayerControlsLiveBadgeDisplay")})}, thumbnailOverlayBadgeViewModel:function(e){return D(TPb,{data:e.data,thumbnailSize:c})}})}, else:function(){var d={type:19,text:wac.PLAYER_LIVE_LABEL,icon:"LIVE"};return D(Obc,{badgeShapeData:function(){return d}})}})},"jg"),Pbc=O(function(a){var b=a.props; var c=a.data;var d=a.options;return D(mbc,{progressBarProps:b,config:function(){var e,f=z((e=c())==null?void 0:e.multiMarkersPlayerBar,dtb),h;e=((h=d())==null?0:h.insetProgressBar)?2:1;var m;h=(m=d())==null?void 0:m.useFinePointerTargetSizes;var p,q,t,u;m=(p=c())==null?void 0:(q=p.playerResponse)==null?void 0:(t=q.playerConfig)==null?void 0:(u=t.playbackStartConfig)==null?void 0:u.startSeconds;var v,w,y,A;p=(v=c())==null?void 0:(w=v.playerResponse)==null?void 0:(y=w.playerConfig)==null?void 0:(A= y.playbackEndConfig)==null?void 0:A.endSeconds;var C,I,K,N;v=(N=(C=c())==null?void 0:(I=C.playerResponse)==null?void 0:(K=I.videoDetails)==null?void 0:K.lengthSeconds)!=null?N:"0";C=Number((v.charCodeAt(0)-43&-3?"0":"")+v+".");C=Number.isInteger(C)?C:void 0;var L;I=((L=d())==null?0:L.useFocusedChapterProgressBarDisplay)&&p&&C?{chapterStartPercentage:m?m/C:0,chapterEndPercentage:p/C}:void 0;return{unmuteOnSeek:!1,position:e,chapterData:f,isInlinePlayback:!0,doSeekOnClick:h&&!I,playheadDotBehavior:I? 2:h?1:0,focusedChapterData:I,disableScrubbing:I?!0:void 0}}})},"kg"); function Ibc(a,b){var c,d,e;return!!(a==null?0:(c=a.playerResponse)==null?0:(d=c.playerConfig)==null?0:(e=d.inlinePlaybackConfig)==null?0:e.showScrubbingControls)&&!(b==null?0:b.hideScrubbingControls)} ;bB(O(function(a){var b=a.data;var c=a.appApi;var d=a.options;var e=xbc(b,Ebc(c));a={};c={};return D("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},D("div",{class:U("ytInlinePlayerControlsDarkenedOverlay",(a.ytInlinePlayerControlsDarkenedOverlayShow=function(){return e().isHovering},a))}),D(Fbc,{data:b}),D(jac,{playerControlsProps:e, isShortsPage:!1}),D("div",{class:U((c.ytInlinePlayerControlsControlsHidden=function(){return e().isDragging},c))},D(Hbc,{props:e, data:b,options:d}),D(Lbc,{props:e,data:b,options:d})),D(P,{cond:function(){return Ibc(b(),d())}, then:function(){return D(Pbc,{props:e,data:b,options:d})}}))},"ag"),"yt-inline-player-controls",{props:{data:$A, appApi:aB,options:$A}});var fZ=function(){var a=E.apply(this,arguments)||this;a.opts=null;a.playerControlsData=null;a.playerControlsAppApi={};a.playerControlsOptions={};a.noAnimation=!1;a.positionData=null;a.hidden=!0;a.active=!1;a.playing=!1;a.persistentPanelVisible=!1;a.boundOnMouseMove=a.onMouseMove.bind(a);a.metadataHidden=!1;a.videoPreviewDataIndex=0;a.playerApiPromise=null;a.inlinePlayer=new A$b;a.scheduledPreviewEndJobId=null;a.scheduledMetadataFadeOutJobId=null;a.playerUniqueKey=null;a.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction", "yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized","yt-play-inline-preview-by-index":"playInlinePreviewByIndex"};a.windowOnBlurFn=function(){a.deactivate()}; a.onPlaybackEnd=function(){a.playNextVideoOrEnd()}; a.onPlayerReady=function(b){a.setUpPlayerControls(b);a.sendIndexChangedAction()}; a.onPlaybackStart=function(){a.playing=!0;a.maybeStartMetadataOverlayHideTimer();a.maybeStartPreviewEndTimer()}; return a}; k(fZ,E);g=fZ.prototype;g.maybeStartMetadataOverlayHideTimer=function(){var a=this,b;(b=this.videoPreviewData)!=null&&b.metadataOverlay&&this.metadataElement&&(this.inlinePlayer.suppressCaptions(),this.scheduledMetadataFadeOutJobId=Ml(function(){a.onMetadataFadeOutStart()},3E3))}; g.onMetadataFadeOutStart=function(){this.metadataHidden=!0;this.inlinePlayer.unsuppressCaptions()}; g.resetMetadataFadeOut=function(){this.metadataHidden=!1;this.scheduledMetadataFadeOutJobId&&(bj.cancelJob(this.scheduledMetadataFadeOutJobId),this.scheduledMetadataFadeOutJobId=null)}; g.configureRendererStamper=function(){return{thumbnailData:{id:"thumbnail-container",mapping:{thumbnailRenderer:{component:"ytd-thumbnail",params:{hovered:"false",noRoundedCorners:!0,objectFit:"COVER",richGridThumbnail:!0,width:9999}}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model", channelDisclosureViewModel:"yt-channel-disclosure-view-model"}},"videoPreviewData.metadataOverlay.overlay":{id:"metadata",mapping:{lockupMetadataViewModel:{component:"yt-lockup-metadata-view-model",properties:{lockupStyle:"[[metadataOverlayLockupStyle]]"}}}}}}; g.attached=function(){this.inlinePreviewOcclusionService=Fn().resolve(Cn(f0b));window.addEventListener("blur",this.windowOnBlurFn);document.addEventListener("yt-page-type-changed",It(this,this.onPageTypeChange));window.addEventListener("scroll",It(this,this.onScroll))}; g.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",It(this,this.onScroll));x("web_imp_occlusion_tracking_enabled")&&document.removeEventListener("mousemove",this.boundOnMouseMove,{capture:!0})}; g.onPageTypeChange=function(){this.deactivate()}; g.onWindowResized=function(){this.deactivate()}; g.onPersistentPanelVisibleChange=function(){this.deactivate()}; g.currentPageAllowed=function(){return!this.isWatchPage||x("enable_web_watch_next_imp_client")}; g.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData||this.isOutOfBounds(this.positionData))return!1;var a=this.positionData,b=a.initialTopPosition,c=a.initialHorizontalPosition;Ft(this.hostElement,{"--ytd-video-preview-translate-left":a.finalHorizontalPosition-c+"px","--ytd-video-preview-translate-top":a.finalTopPosition-b+"px","--ytd-video-preview-original-top-position":b+"px","--ytd-video-preview-original-horizontal-position":c+ "px","--ytd-video-preview-initial-scale":"scale("+a.initialScale+")","--ytd-video-preview-width":a.videoPreviewWidth+"px","--ytd-video-preview-height":a.videoPreviewHeight+"px"});return!0}; g.isOutOfBounds=function(a){var b=a.initialHorizontalPosition+12;a=b+a.videoPreviewWidth>window.innerWidth;return b<0||this.ytdGuideStateAwareBehavior.guidePersistentAndVisible&&b<260||this.ytdGuideStateAwareBehavior.miniGuideVisible&&b<72||a}; g.handleOpenVideoPreviewAction=function(a){var b=this,c,d,e,f,h,m;return ra(function(p){if(!b.currentPageAllowed())return p.return(0);b.opts=a;b.playerUniqueKey="i"+P$b++;(c=b.opts)==null||(e=(d=c).playerKeyCallback)==null||e.call(d,b.playerUniqueKey);return(f=b.alignVideoPreviewForAnimation(a.thumbnail))?(((h=b.opts)==null?0:h.mediaRenderer)&&((m=b.opts)==null||!m.isAutoplay)&&E$b(b.opts.mediaRenderer,function(){b.deactivate()}),ms(b,function(){b.revealPreviewUi()}),p.return(b.loadInlinePlayer())): p.return(0)})}; g.onMouseLeave=function(a){this.shouldDeactivateOnMouseLeave(a)&&this.deactivateFromMouseLeave()}; g.onScroll=function(){var a,b;((a=this.opts)==null?0:a.isAutoplay)&&((b=this.opts)==null?0:b.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()}; g.onMouseMove=function(a){var b;((b=this.inlinePreviewOcclusionService)==null?0:b.isPointerOverHoverableElement(a))&&this.deactivateFromMouseLeave()}; g.deactivateFromMouseLeave=function(){var a,b;(a=this.opts)==null||(b=a.mouseleaveCallback)==null||b.call(a);this.deactivate()}; g.optsChanged=function(){this.scheduledPreviewEndJobId&&(bj.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)}; g.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",fZ.JSC$15126_DEFAULT_CLICK_LOCATION_BEHAVIOR,fZ.JSC$15126_CLICK_LOCATION_ID_MAP)}; g.shouldDeactivateOnMouseLeave=function(a){a=a.relatedTarget;if(!a)return!0;var b;return(b=this.opts)!=null&&b.mediaRenderer?!At(this.opts.mediaRenderer).contains(a):!0}; g.playNextVideoOrEnd=function(){this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0})}; g.getVideoPlaybackDurationMs=function(){var a;if((a=this.opts)==null?0:a.videoPreviewDurationMs)return this.opts.videoPreviewDurationMs;if(this.videoPreviewData){var b=z(this.videoPreviewData.inlinePlaybackEndpoint,py);a=b==null?void 0:b.startTimeSeconds;if((b=b==null?void 0:b.endTimeSeconds)&&b>0)return(b-(a?a:0))*1E3}}; g.sendIndexChangedAction=function(){this.hasMultipleVideoPreviews()&&Yu(this.hostElement,"yt-inline-preview-index-changed",[this.videoPreviewDataIndex,this.playerUniqueKey])}; g.maybeStartPreviewEndTimer=function(){var a=this,b=this.getVideoPlaybackDurationMs();b&&(this.scheduledPreviewEndJobId&&bj.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=Ml(function(){a.playNextVideoOrEnd()},b))}; g.getRoundedCornersSize=function(){var a;if((a=this.opts)==null?0:a.roundedCornersSize)return this.opts.roundedCornersSize;var b;if((b=this.opts)==null?0:b.enableRounding)switch(this.opts.thumbnailSize){case"small":return 1;case"medium":return 2;}return 3}; g.onTerminateVideoPreviewAction=function(){this.deactivate()}; g.onMediaContainerClick=function(a){this.isShortcutClick(a)||(this.navigateToWatch(a),a.preventDefault(),a.stopPropagation())}; g.loadInlinePlayer=function(){var a=this,b,c,d,e,f;return ra(function(h){if(h.nextAddress==1)return a.videoPreviewData?(b=oL.instance)?h.yield(D$b(a.inlinePlayer,b,a.videoPreviewData,a.getPlayerApiPromise(),{allowAudio:!((c=a.opts)==null?0:c.forceMutedVolume),allowCaptions:!((d=a.opts)==null?0:d.forceCaptionsOff),centerCrop:!((e=a.opts)==null||!e.centerCrop),onPlayerReady:a.onPlayerReady,onPlaybackStart:a.onPlaybackStart,onPlaybackEnd:a.onPlaybackEnd,trackingParams:a.getInlinePlaybackTrackingParams(a.videoPreviewData)}), 2):h.return(0):h.return(0);f=h.yieldResult;f===1&&a.deactivate();return h.return(f)})}; g.getPlayerApiPromise=function(){var a=this;this.playerApiPromise||(this.inlinePlayerComponent.preparePlayer(),this.playerApiPromise=this.inlinePlayerComponent.getPlayerPromise().then(function(b){Gt(a.hostElement,"player-api-ready");return b})); return this.playerApiPromise}; g.setUpPlayerControls=function(a){var b=this,c,d,e,f,h,m,p;return ra(function(q){if(q.nextAddress==1)return q.yield(b.getPlayerApiPromise(),2);c=q.yieldResult;((d=b.opts)==null?0:d.showPlayerControls)&&b.videoPreviewData&&c&&(b.playerControlsData={playerResponse:a,isInlinePlayback:!0,topRightControlButtons:b.videoPreviewData.topRightControlButtons,thumbnailOverlays:b.videoPreviewData.thumbnailOverlays,multiMarkersPlayerBar:(e=b.videoPreviewData.decoratedPlayerBarRenderer)==null?void 0:e.playerBar, playerApi:c},b.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!0,hideTimeDisplay:(f=b.opts)==null?void 0:f.hideTimeDisplay,hideScrubbingControls:(h=b.opts)==null?void 0:h.hideScrubber,hideCaptionsToggleButton:(m=b.opts)==null?void 0:m.hideCaptionsToggleButton,useFocusedChapterProgressBarDisplay:(p=b.opts)==null?void 0:p.useFocusedChapterProgressBarDisplay});q.jumpToEnd()})}; g.revealPreviewUi=function(){var a=this;this.opts&&Uza(this,function(){a.hasThumbnailPositionChangedSinceTriggered()?a.deactivate():(a.updateActiveState(!0),a.noAnimation=!1)})}; g.hasThumbnailPositionChangedSinceTriggered=function(){var a=this.positionData,b=this.getThumbnailPositionData();return(a==null?void 0:a.initialTopPosition)!==(b==null?void 0:b.initialTopPosition)||(a==null?void 0:a.initialHorizontalPosition)!==(b==null?void 0:b.initialHorizontalPosition)}; g.getThumbnailPositionData=function(){var a;if((a=this.opts)!=null&&a.thumbnail){var b=this.opts.thumbnail.getBoundingClientRect();a=b.width;var c=b.height;var d=b.top+window.scrollY;b=b.left+window.scrollX;var e=Math.ceil(a),f=Math.ceil(c),h=a/e;a={initialScale:h,initialTopPosition:d-12*h,finalTopPosition:d-12-(f-c)/2,initialHorizontalPosition:b-(12+(e-a)/2),finalHorizontalPosition:b-12-(e-a)/2,videoPreviewWidth:e,videoPreviewHeight:f}}else a=null;return a}; g.updateActiveState=function(a){x("web_imp_occlusion_tracking_enabled")&&(a?document.addEventListener("mousemove",this.boundOnMouseMove,{capture:!0}):document.removeEventListener("mousemove",this.boundOnMouseMove,{capture:!0}));this.active=a;this.ytdReduxBehavior.dispatch(aA({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:a}))}; g.stopPlayer=function(a){var b=this.inlinePlayer,c;if((c=b.playbackState)!=null){a=a.resetWatchEndpointStartTime===void 0?!1:a.resetWatchEndpointStartTime;t$b(c);c.player&&(c.player.removeEventListener("captionschanged",c.onCaptionsChanged),c.player.removeEventListener("onReady",c.onPlayerReady),c.player.removeEventListener("onPlaybackStartExternal",c.onPlaybackStart),c.player.removeEventListener("SEEK_TO",c.onSeekTo),c.player.removeEventListener("onStateChange",c.onPlayerStateChange));u$b(c,a);var d; c.player&&((d=c.config)==null?0:d.allowAudio)&&j$b({audioOn:!c.player.isMuted()});c.unsuppressCaptions();x$b(c);var e;(e=c.player)==null||e.cancelPlayback();c.captionsLoadedState=0;c.player=null;c.playbackCommand=null;c.config=null}var f;(f=b.onPlaybackStartPromise)==null||f.resolve(0);b.playbackState=null;b.playbackIntentTriggered=!1;b.onPlaybackStartPromise=null;this.playing=!1;this.scheduledPreviewEndJobId&&(bj.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)}; g.deactivate=function(a){a=a===void 0?{}:a;a=a.resetWatchEndpointStartTime===void 0?!1:a.resetWatchEndpointStartTime;$Y&&($Y.disconnect(),$Y=null);this.stopPlayer({resetWatchEndpointStartTime:a});this.resetMetadataFadeOut();this.updateActiveState(!1);this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null}; g.isShortcutClick=function(a){return!!a&&(a.ctrlKey||a.shiftKey||a.metaKey)}; g.playInlinePreviewByIndex=function(a,b){this.playerUniqueKey===b&&this.playVideoAtIndex(a)}; g.playVideoAtIndex=function(a){var b;(b=this.opts)==null||!b.videoPreviewData||!Array.isArray(this.opts.videoPreviewData)||a<0||a>=this.opts.videoPreviewData.length||(this.videoPreviewDataIndex=a,this.stopPlayer({resetWatchEndpointStartTime:!0}),this.loadInlinePlayer())}; g.getInlinePreviewPlayer=function(){return this.inlinePlayerComponent}; g.navigateToWatch=function(a){var b,c=(b=this.videoPreviewData)==null?void 0:b.navigationEndpoint;if(c){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(c,a,!0);else{var d;x("web_thumbnail_to_watch_transition")&&((d=this.opts)==null?0:d.thumbnail)&&Fn().resolve(EXb).registerLockupThumbnail(this.opts.thumbnail);Gt(this.hostElement,"yt-navigate",{endpoint:c})}this.deactivate()}}; g.getInlinePlaybackTrackingParams=function(a){var b,c;return(c=(b=a.inlinePlaybackEndpoint)==null?void 0:b.clickTrackingParams)!=null?c:""}; g.hasMultipleVideoPreviews=function(){var a;return!!(((a=this.opts)==null?0:a.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))}; g.startPlaybackForNextVideo=function(){var a;(a=this.opts)!=null&&a.videoPreviewData&&Array.isArray(this.opts.videoPreviewData)&&this.opts.videoPreviewData.length!==0&&this.playVideoAtIndex((this.videoPreviewDataIndex+1)%this.opts.videoPreviewData.length)}; ba.Object.defineProperties(fZ.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.videoPreviewData)!=null&&a.thumbnail?{thumbnailRenderer:{thumbnail:this.videoPreviewData.thumbnail}}:null}}, hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.opts)==null?0:a.showPlayerControls)||!this.active}}, isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.opts)==null||!a.isAdsVideo)}}, roundedCornersSmall:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===1}}, roundedCornersMedium:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===2}}, roundedCornersLarge:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===3}}, videoPreviewData:{configurable:!0,enumerable:!0,get:function(){var a;if(Array.isArray((a=this.opts)==null?void 0:a.videoPreviewData)){var b;return(b=this.opts)==null?void 0:b.videoPreviewData[this.videoPreviewDataIndex]}var c;return(c=this.opts)==null?void 0:c.videoPreviewData}}, metadataOverlayLockupStyle:{configurable:!0,enumerable:!0,get:function(){var a,b;return(a=this.videoPreviewData)==null?void 0:(b=a.metadataOverlay)==null?void 0:b.lockupStyle}}, hasMetadata:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.videoPreviewData)==null||!a.metadataOverlay)}}}); fZ.prototype.onIsAdsVideoChange=fZ.prototype.onIsAdsVideoChange;fZ.prototype.optsChanged=fZ.prototype.optsChanged;fZ.prototype.onMouseLeave=fZ.prototype.onMouseLeave;fZ.prototype.onPersistentPanelVisibleChange=fZ.prototype.onPersistentPanelVisibleChange;fZ.JSC$15126_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);fZ.JSC$15126_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}]; n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],fZ.prototype,"actionHandlerBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],fZ.prototype,"ytRendererstamperBehavior",void 0);n([F(FQ.YtdGuideStateAwareBehavior),r("design:type",Object)],fZ.prototype,"ytdGuideStateAwareBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],fZ.prototype,"componentBehavior",void 0); n([F(Yz.YtRendererBehavior),r("design:type",Object)],fZ.prototype,"ytRendererBehavior",void 0);n([F(kC),r("design:type",Object)],fZ.prototype,"ytdReduxBehavior",void 0);n([F(OQ.YtSparklesClickLocationBehavior),r("design:type",Object)],fZ.prototype,"ytSparklesClickLocationBehavior",void 0);n([M(),r("design:type",Object)],fZ.prototype,"opts",void 0);n([M(),r("design:type",Object)],fZ.prototype,"playerControlsData",void 0);n([M(),r("design:type",Object)],fZ.prototype,"playerControlsAppApi",void 0); n([M(),r("design:type",Object)],fZ.prototype,"playerControlsOptions",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],fZ.prototype,"noAnimation",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],fZ.prototype,"hidden",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],fZ.prototype,"active",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],fZ.prototype,"playing",void 0);n([M({selector:ZZa}),r("design:type",Boolean)],fZ.prototype,"isWatchPage",void 0); n([M({selector:iQ.persistentPanelVisibleSelector}),r("design:type",Object)],fZ.prototype,"persistentPanelVisible",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],fZ.prototype,"metadataHidden",void 0);n([H("videoPreviewData"),r("design:type",Object),r("design:paramtypes",[])],fZ.prototype,"thumbnailData",null);n([H("opts","active"),M({reflectToAttribute:!0}),r("design:type",Boolean),r("design:paramtypes",[])],fZ.prototype,"hidePlayerControls",null); n([H("opts"),r("design:type",Boolean),r("design:paramtypes",[])],fZ.prototype,"isAdsVideo",null);n([H("opts"),M({reflectToAttribute:!0}),r("design:type",Boolean),r("design:paramtypes",[])],fZ.prototype,"roundedCornersSmall",null);n([H("opts"),M({reflectToAttribute:!0}),r("design:type",Boolean),r("design:paramtypes",[])],fZ.prototype,"roundedCornersMedium",null);n([H("opts"),M({reflectToAttribute:!0}),r("design:type",Boolean),r("design:paramtypes",[])],fZ.prototype,"roundedCornersLarge",null); n([H("opts","videoPreviewDataIndex"),r("design:type",Object),r("design:paramtypes",[])],fZ.prototype,"videoPreviewData",null);n([M(),r("design:type",Object)],fZ.prototype,"videoPreviewDataIndex",void 0);n([Tt("#inline-player"),r("design:type",Object)],fZ.prototype,"inlinePlayerComponent",void 0);n([Tt("#metadata"),r("design:type",HTMLElement)],fZ.prototype,"metadataElement",void 0); n([H("videoPreviewData"),r("design:type",Object),r("design:paramtypes",[])],fZ.prototype,"metadataOverlayLockupStyle",null);n([H("videoPreviewData"),M({reflectToAttribute:!0}),r("design:type",Boolean),r("design:paramtypes",[])],fZ.prototype,"hasMetadata",null);n([Lt("persistentPanelVisible"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],fZ.prototype,"onPersistentPanelVisibleChange",null); n([Kt("mouseleave"),r("design:type",Function),r("design:paramtypes",[MouseEvent]),r("design:returntype")],fZ.prototype,"onMouseLeave",null);n([cu("opts"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],fZ.prototype,"optsChanged",null);n([Lt("isAdsVideo"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],fZ.prototype,"onIsAdsVideoChange",null);n([gu({is:"ytd-video-preview",disableElementRegistration:!0})],fZ); Tu(fZ,"ytd-video-preview",function(){if(X9b!==void 0)return X9b;var a=document.createElement("template");Q(a,"
\n
\n \n
\n
\n
\n \n \n
\n
\n
\n
\n
\n \n
\n
\n
\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return X9b=a},{mode:2});var Qbc;var gZ=function(){var a=E.apply(this,arguments)||this;a.dismissButtonOverrides={iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"};a.dark=!1;a.light=!1;a.dynamicTextHeight=94;a.hasOverflowButton=!1;a.isInfeedModernization=!1;return a}; k(gZ,E);g=gZ.prototype;g.computeUrlImg=function(a){if(a)return DB(a.thumbnails)}; g.getLogoHeight=function(a){return this.logoWithPadding(a)?"31":"24"}; g.getLogoClassName=function(a){return this.logoWithPadding(a)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"}; g.logoWithPadding=function(a){var b,c;return(a=(b=a.thumbnails)==null?void 0:(c=b[0])==null?void 0:c.height)&&a%31===0?!0:!1}; g.observeBasicPalette=function(){var a,b,c=(a=this.data)==null?void 0:(b=a.colorData)==null?void 0:b.basicColorPaletteData;c?aM(this.hostElement,c):aM(this.hostElement,{})}; g.observeDataChanged=function(){var a;this.dynamicTextHeight=((a=this.data)==null?0:a.supplementalText)?74:94;var b;this.hasSupplementalText=!((b=this.data)==null||!b.supplementalText);var c,d,e,f;a=(c=this.data)==null?void 0:(d=c.actionButton)==null?void 0:(e=d.buttonRenderer)==null?void 0:(f=e.colorData)==null?void 0:f.basicColorPaletteData;var h,m,p;if(!((h=this.data)==null?0:(m=h.actionButton)==null?0:(p=m.buttonRenderer)==null?0:p.style)&&a){this.computeIsInfeedModernization(this.data)||(a.borderColor= a.foregroundTitleColor);var q,t;this.set("data.actionButton.buttonRenderer",Yh((q=this.data)==null?void 0:(t=q.actionButton)==null?void 0:t.buttonRenderer))}}; g.computeSupplementalStyle=function(){var a;if((a=this.data)!=null&&a.supplementalText){var b,c,d;if((b=this.data)==null?0:(c=b.colorData)==null?0:(d=c.basicColorPaletteData)==null?0:d.foregroundActivatedColor)return a=Iy(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+a+"; --yt-endpoint-hover-color:"+a+"; --yt-endpoint-visited-color:"+a+"; --yt-formatted-string-bold-font-weight:700;"}}; g.computeForcedDarkTheme=function(){var a,b,c,d=(a=this.data)==null?void 0:(b=a.actionButton)==null?void 0:(c=b.buttonRenderer)==null?void 0:c.style,e,f,h;a=aRa(((e=this.data)==null?void 0:(f=e.colorData)==null?void 0:(h=f.basicColorPaletteData)==null?void 0:h.backgroundColor)||0);return d&&a}; g.computeForcedLightTheme=function(){var a,b,c,d=(a=this.data)==null?void 0:(b=a.actionButton)==null?void 0:(c=b.buttonRenderer)==null?void 0:c.style,e,f,h;a=!aRa(((e=this.data)==null?void 0:(f=e.colorData)==null?void 0:(h=f.basicColorPaletteData)==null?void 0:h.backgroundColor)||0);return d&&a}; g.computeHasOverflowButton=function(a){return!!a.overflowButton}; g.computeHasTitle=function(a){return!!a.title}; g.computeTitleMaxFontSize=function(a){return this.computeHasOverflowButton(a)?28:64}; g.onDismissClick=function(){this.hostElement.classList.add("dismissed")}; g.computeIsInfeedModernization=function(){var a,b,c,d,e=(a=this.data)==null?void 0:(b=a.actionButton)==null?void 0:(c=b.buttonRenderer)==null?void 0:(d=c.colorData)==null?void 0:d.basicColorPaletteData;return(e==null?void 0:e.backgroundColor)===452984831||(e==null?void 0:e.backgroundColor)===218103808}; gZ.prototype.observeDataChanged=gZ.prototype.observeDataChanged;gZ.prototype.observeBasicPalette=gZ.prototype.observeBasicPalette;n([F(Yz.YtRendererBehavior),r("design:type",Object)],gZ.prototype,"ytRendererBehavior",void 0);n([F(NQ),r("design:type",Object)],gZ.prototype,"ytdDismissibleItemBehavior",void 0);n([F(FQ.YtdGuideStateAwareBehavior),r("design:type",Object)],gZ.prototype,"ytdGuideStateAwareBehavior",void 0);n([M(),r("design:type",Object)],gZ.prototype,"data",void 0); n([M({reflectToAttribute:!0,value:!1}),r("design:type",Boolean)],gZ.prototype,"hasSupplementalText",void 0);n([M(),r("design:type",Object)],gZ.prototype,"dismissButtonOverrides",void 0);n([M({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),r("design:type",Boolean)],gZ.prototype,"hasTitle",void 0);n([M({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),r("design:type",Object)],gZ.prototype,"dark",void 0); n([M({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),r("design:type",Object)],gZ.prototype,"light",void 0);n([M(),r("design:type",Object)],gZ.prototype,"dynamicTextHeight",void 0);n([M({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),r("design:type",Object)],gZ.prototype,"hasOverflowButton",void 0);n([M({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),r("design:type",Object)],gZ.prototype,"isInfeedModernization",void 0); n([Lt("data.colorData.basicColorPaletteData"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],gZ.prototype,"observeBasicPalette",null);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],gZ.prototype,"observeDataChanged",null);n([gu({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],gZ); Tu(gZ,"ytd-banner-promo-renderer",function(){if(Qbc!==void 0)return Qbc;var a=document.createElement("template");Q(a,"\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return Qbc=a},{mode:1});var Sbc=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("zDYN"),2);a=Rbc;return b.return(a)})},Tbc=yD(function(){return Sbc()},{debugName:"imageBannerViewModel"}); Gn(xD,function(a){a.registerLoadFn("imageBannerViewModel","zDYN",Sbc)});var Xbc=O(function(a){var b=a.data;var c=a.hideDivider;var d=a.isChannelInfoCard;a={};return D("yt-profile-identity-info-view-model",{class:"ytProfileIdentityInfoViewModelHost"},D("div",{class:U("ytProfileIdentityInfoViewModelFrame",(a.ytProfileIdentityInfoViewModelFrameWithNoChannelBanner=function(){return!b().channelBanner},a))},D(Ubc,{profileIdentityInfoData:b}),D("div",{class:"ytProfileIdentityInfoViewModelChannelInfoSection"},D("div",{class:"ytProfileIdentityInfoViewModelAvatar"},D(OC,{data:function(){return b().avatar}}, {avatarViewModel:zD})),D(Vbc,{profileIdentityInfoData:b})),D(P,{cond:function(){return b().channelDescription}, then:function(e){var f={};return D("div",{class:U((f.ytProfileIdentityInfoViewModelChannelDescriptionAlternate=function(){return!(d==null||!d())},f.ytProfileIdentityInfoViewModelChannelDescription=function(){return!(d==null?0:d())},f))},e)}}),D(Wbc,{profileIdentityInfoData:b}),D(P,{cond:function(){return!(c==null?0:c())}, then:function(){return D("div",{class:"ytProfileIdentityInfoViewModelDivider"})}})))},"lg"); Xbc.idomCompat=!0;var Wbc=O(function(a){var b=a.profileIdentityInfoData;return D("div",{class:"ytProfileIdentityInfoViewModelButtons"},D(mw,{each:function(){return b().subscribeButton?[b().subscribeButton,b().channelAccess]:[b().channelAccess]}},function(c){return D("div",{class:"ytProfileIdentityInfoViewModelWrapButton"},D("div",{class:"ytProfileIdentityInfoViewModelButton"},D(OC,{data:function(){return c}},{buttonViewModel:BD, subscribeButtonViewModel:FD})))}))},"mg"),Vbc=O(function(a){var b=a.profileIdentityInfoData; return D("div",{class:"ytProfileIdentityInfoViewModelTrio"},D("div",{class:"ytProfileIdentityInfoViewModelChannelNameFrame"},D(Ybc,{profileIdentityInfoData:b}),D(OC,{data:function(){return b().threeDotMenu}},{buttonViewModel:BD})),D(Zbc,{profileIdentityInfoData:b}))},"ng"),Ybc=O(function(a){var b=a.profileIdentityInfoData; return D("div",{class:"ytProfileIdentityInfoViewModelChannelNameHeader"},D("div",{class:"ytProfileIdentityInfoViewModelChannelName"},function(){return b().channelDisplayName}),D(P,{cond:function(){return b().verifiedOrOacBadge}, then:function(c){return D("div",{class:"ytProfileIdentityInfoViewModelBadge"},D(eC,{data:function(){return{thumbnails:[{url:c().badgeUrl}]}}, alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0}))}}))},"og"),Ubc=O(function(a){var b=a.profileIdentityInfoData; return D("div",{class:"ytProfileIdentityInfoViewModelChannelBannerContainer"},D(OC,{data:function(){var c=b().channelBanner;if(c)return{imageBannerViewModel:{image:c.image,style:"IMAGE_BANNER_STYLE_INSET"}}}},{imageBannerViewModel:function(c){return D("div",{class:"ytProfileIdentityInfoViewModelChannelBanner"},D(Tbc,{data:c.data, isPositionRelative:!0}))}}))},"pg"),Zbc=O(function(a){var b=a.profileIdentityInfoData; return D("div",{class:"ytProfileIdentityInfoViewModelMetadata"},D("div",{class:"ytProfileIdentityInfoViewModelMetadataContentSet"},D("div",{dir:"auto",class:"ytProfileIdentityInfoViewModelMetadataHandleWithBoldFont"},function(){return b().channelHandle}),D(P,{cond:function(){return b().channelPronouns&&b().channelHandle}, then:function(){return D("span",{class:"ytProfileIdentityInfoViewModelMetadataDelimiter"},"\u2022")}}),D("div",{dir:"auto", class:"ytProfileIdentityInfoViewModelMetadataPronouns"},function(){return b().channelPronouns})),D("div",{class:"ytProfileIdentityInfoViewModelMetadataContentSet"},D("div",{class:"ytProfileIdentityInfoViewModelMetadataContent"},function(){return b().leftOfBulletInfo}),D(P,{cond:function(){return b().leftOfBulletInfo&&b().rightOfBulletInfo}, then:function(){return D("span",{class:"ytProfileIdentityInfoViewModelMetadataDelimiter"},"\u2022")}}),D("div",{class:"ytProfileIdentityInfoViewModelMetadataContent"},function(){return b().rightOfBulletInfo})))},"qg");bB(Xbc,"yt-profile-identity-info-view-model",{props:{data:$A,hideDivider:$A,isChannelInfoCard:$A}});var acc=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("F1rsJf"),2);a=$bc;return b.return(a)})},bcc=yD(function(){return acc()},{debugName:"flexibleContainer"}); Gn(xD,function(a){a.registerLoadFn("flexibleContainer","F1rsJf",acc)});var nSb=O(function(a){var b=a.data;var c=a.lockupExperiments;a={};return D("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},D("div",{class:U("ytThumbnailOverlayButtonViewModelButton",function(){a:switch(b().position){case"THUMBNAIL_OVERLAY_BUTTON_POSITION_TOP_END":var d="ytThumbnailOverlayButtonViewModelButtonTopEndPosition";break a;default:d="ytThumbnailOverlayButtonViewModelButtonBottomEndPosition";}return d},(a.ytThumbnailOverlayButtonViewModelButtonLegacyIcon= function(){var d; return c&&((d=c())==null?void 0:d.useLegacySizedIconButton)},a))},D(OC,{data:function(){return b().overlayButton}},{buttonViewModel:function(d){return D(BD,{data:d.data, buttonOverrides:function(){var e;return c&&((e=c())==null?0:e.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0,tabIndex:-1}:void 0}})}})))},"rg"); nSb.idomCompat=!0;var ccc=16/9,dcc=2/3; function ecc(a,b,c,d,e,f){if(e&&f&&b==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:e,height:f};if(!c)return{};e=c.size;c=c.allowFullWidth;if(b==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&c)return{fullWidth:!0};if(e===void 0)return{};switch(a){case"CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:e,height:e};case"CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:e,height:1/dcc*e};case"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:e*ccc, height:e};default:return(d==null?0:d.height)&&(d==null?0:d.width)?d.width/d.height>1?{maxWidth:e*ccc}:{maxWidth:e}:{maxWidth:e};}} function fcc(a){var b;return a&&((b=wD(a.themedImage))!=null?b:a.image)} function dec(a){var b;return a==null?void 0:(b=a.sources)==null?void 0:b[0]} var I0b=O(function(a){var b=a.data;var c=a.className;var d=a.imageSizeConfig;var e=a.notifyOnLoaded;var f=function(){return b().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},h=function(){var v; return KD((v=b())==null?void 0:v.rendererContext)}; a={};a=(a.ytContentPreviewImageViewModelHost=!0,a.ytContentPreviewImageViewModelCircleImage=function(){return f()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},a.ytContentPreviewImageViewModelTappable=function(){return h()},a); var m=function(){var v,w;return(w=(v=z(b().rendererContext,dy))==null?void 0:v.label)!=null?w:""},p=function(){return fcc(b())},q=function(){var v=ecc(f(),b().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",d==null?void 0:d(),dec(p()),b().layoutWidth,b().layoutHeight),w=Object.assign({},v); v.width&&(w.width=Math.round(v.width));v.height&&(w.height=Math.round(v.height));v.maxWidth&&(w.maxWidth=Math.round(v.maxWidth));v.maxHeight&&(w.maxHeight=Math.round(v.maxHeight));return w},t=Vo(function(){return q().height},void 0,"Sd8Rj"),u=Vo(function(){return q().width},void 0,"TzoSkd"); return D("yt-content-preview-image-view-model",{el:dB(MD(function(){var v;return(v=b())==null?void 0:v.rendererContext})), role:function(){return h()?"link":void 0}, tabindex:function(){return h()?0:void 0}, class:U(c,a,function(){var v=f();var w=d==null?void 0:d();v=v==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||v==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||v==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||v==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(w==null?void 0:w.size)!=null&&w.size<=16?"ytContentPreviewImageViewModelExtraSmallRoundedImage":(w==null?void 0:w.size)!=null&&w.size<=24?"ytContentPreviewImageViewModelSmallRoundedImage":"ytContentPreviewImageViewModelLargeRoundedImage": void 0;return v}), style:function(){var v=q(),w=[];v.width&&w.push("width: "+v.width+"px");v.height&&w.push("height: "+v.height+"px");v.maxWidth&&w.push("max-width: "+v.maxWidth+"px");v.maxHeight&&w.push("max-height: "+v.maxHeight+"px");v.fullWidth&&w.push("width: 100%");return w.join(";")}},D(P,{cond:p, then:function(v){return D(eC,{data:v,alt:m,"data-disabled$":function(){return!m()}, notifyOnLoaded:e,targetWidth:u,targetHeight:t,preserveWidth:function(){return!!u()}, preserveHeight:function(){return!!t()}})}}),D(OC,{data:function(){var v; return(v=b())==null?void 0:v.overlays}},{thumbnailHoverOverlayViewModel:wIb, thumbnailOverlayButtonViewModel:nSb}))},"sg"); I0b.idomCompat=!0;function eec(a,b,c,d,e){if(!((d==null?0:d.height)&&(d==null?0:d.width)))return{size:0};var f=d.width;d=d.height;if(e)return b==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||b==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&f>d?{size:312/ccc}:b==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(c!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||a!==1&&a!==2||b!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&b!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&b!== "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(b==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||b==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||d===f)switch(a){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360};}if(b==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||d>f)switch(a){case 1:case 3:return{size:240*dcc};default:return{size:360*dcc};}switch(a){case 1:case 2:return{size:1/ccc*(window.innerWidth-32)};case 3:return{size:160}; default:return{size:240};}} ;var gec=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("YtlrJd"),2);a=fec;return b.return(a)})},hec=yD(function(){return gec()},{debugName:"dynamicTextViewModel"}); Gn(xD,function(a){a.registerLoadFn("dynamicTextViewModel","YtlrJd",gec)});var iec=O(function(a){var b=a.condition;var c=a.content;return D(P,{cond:b,then:function(){return D("div",{class:"ytPageHeaderViewModelScrollContainer"},c())}, else:function(){return c()}})},"tg"),O1b=O(function(a){var b=a.data; var c=a.noPadding;var d=a.enableBanner;var e=a.cinematicContainerTopbarOffset;var f=a.allowCinematicContainerOverflow;var h=a.displayAsSidebar;var m=a.displayAsPanel;var p=a.alwaysUseMediumTextDescription;a=a.className;var q=nV(),t=function(){return!!b().image||!!b().animatedImage},u=function(){return!!b().background},v=function(){return(h==null?0:h())||(m==null?0:m())?1:q()},w=function(){return v()===1},y=function(){return w()||v()===2},A=function(){return v()===4},C=function(){var La=b(); var ib=!!b().heroImage;var sb=v(),Oa=jec(b()),Ca=h==null?void 0:h(),eb=!La.metadata,Qa;if(Qa=ib?z(La.heroImage,qsb):z(La.animatedImage||La.image,qsb)){var Bb=Qa.style,dc=Qa.layoutMode;if(dc!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING"){if(Qa=dec(fcc(Qa)),La=La.layoutPreset,ib)ib=eec(sb,Bb,dc,Qa,Ca);else b:if(eb)ib=sb===1?{size:48}:{size:72};else switch(sb){case 1:ib={size:72};break b;case 2:ib={size:120};break b;default:ib=La==="PAGE_HEADER_LAYOUT_PRESET_RESPONSIVE_TWO_COLUMN"?{size:104}: Oa<4?{size:120}:{size:160};}}else ib=void 0}else ib={size:0};return ib},I=x("enable_dynamic_text_max_lines"),K=function(){return b().layoutPreset==="PAGE_HEADER_LAYOUT_PRESET_RESPONSIVE_TWO_COLUMN"&&!y()},N=function(){return b().layoutPreset==="PAGE_HEADER_LAYOUT_PRESET_CENTERED"},L={},R=U((L.ytPageHeaderViewModelHeadline=!0,L.ytPageHeaderViewModelHeadlineFullWidthHero=function(){var La; return(La=C())==null?void 0:La.allowFullWidth},L.ytPageHeaderViewModelLayoutPresetCentered=N,L)),W=function(){var La; return y()&&!((La=C())==null?0:La.allowFullWidth)},S=function(){return w()&&(!!b().heroImage||t())&&jec(b())>0},Y=function(){return S()&&(m==null?void 0:m())}; L={};var da=U((L.ytPageHeaderViewModelTitle=!0,L.ytPageHeaderViewModelTitleLarge=function(){return!I&&!S()},L.ytPageHeaderViewModelTitleMedium=function(){return!I&&S()&&!Y()},L.ytPageHeaderViewModelTitleMediumForceSmallLayout=function(){return!I&&Y()},L.ytPageHeaderViewModelTitleLargeEnableDynamicTextMaxLines=function(){return I&&!S()},L.ytPageHeaderViewModelTitleMediumEnableDynamicTextMaxLines=function(){return I&&S()&&!Y()},L.ytPageHeaderViewModelTitleMediumForceSmallLayoutEnableDynamicTextMaxLines= function(){return I&&Y()},L.ytPageHeaderViewModelTitleOverlay=u,L.ytPageHeaderViewModelLayoutPresetCentered=N,L)); L={};var Aa=U("ytPageHeaderViewModelHeadlineImage",(L.ytPageHeaderViewModelHeadlineImageHero=function(){return!!b().heroImage&&y()},L.ytPageHeaderViewModelLayoutPresetCentered=N,L)); L={};var Sa=U((L.ytPageHeaderViewModelBannerContainer=d,L.ytPageHeaderViewModelFullBleed=function(){var La;return(d==null?void 0:d())&&((La=z(b().banner,ssb))==null?void 0:La.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},L)); L={};var Ua=U((L.ytPageHeaderViewModelContentMetadata=!0,L.ytPageHeaderViewModelContentMetadataOverlay=u,L));L={};var qb=U((L.ytPageHeaderViewModelFlexibleActions=!0,L.ytPageHeaderViewModelFlexibleActionsMarginTop=function(){return!!b().metadata||y()},L.ytPageHeaderViewModelFlexibleActionsMarginBottom=function(){return!y()},L.ytPageHeaderViewModelLayoutPresetCentered=N,L)); L={};var ab=U((L.ytPageHeaderViewModelAttribution=!0,L.ytPageHeaderViewModelAttributionOverlay=u,L));L={};return D("yt-page-header-view-model",{class:U(a,"ytPageHeaderViewModelHost",(L.ytPageHeaderViewModelNoPadding=function(){return!(c==null||!c())},L.ytPageHeaderViewModelSmallTopPadding=function(){return w()&&!b().actions&&!(m==null?0:m())||v()===2&&!(t()||b().heroImage)},L.ytPageHeaderViewModelSmallBottomPadding=function(){return y()&&!b().actions&&!(m==null?0:m())},L.ytPageHeaderViewModelCinematicContainerOverflowBoundary= function(){return!(f==null?0:f())},L.ytPageHeaderViewModelDisplayAsSidebar=h,L.ytPageHeaderViewModelLayoutPresetCentered=N,L))},D(P,{cond:u, then:function(){return D("div",{class:"ytPageHeaderViewModelBackground"},D(OC,{data:function(){return b().background}},{cinematicContainerViewModel:function(La){return D(iZb,{data:La.data, topbarOffset:e})}}))}}),D(iec,{condition:function(){return!(h==null||!h())}, content:function(){return D("div",{class:"ytPageHeaderViewModelContent"},D(P,{cond:function(){return(d==null?void 0:d())&&b().banner}, then:function(){return D("div",{class:Sa},D(OC,{data:function(){return b().banner}},{imageBannerViewModel:Tbc}))}}),D(kec,{pageHeaderHeadlineClassnames:R, isTwoColumnLayout:K,isCenteredLayout:N,useHeroImageContainer:W,isSmallScreen:w,isSmallOrMedium1Screen:y,PreviewImage:function(){return D(P,{cond:t,then:function(){return D(OC,{data:function(){var La;if(!(La=b().animatedImage)){La=b();if(t()){var ib=La=Object.assign({},La),sb=v(),Oa=jec(b()),Ca=ib.image,eb=z(Ca,rsb),Qa=eb==null?void 0:eb.avatar,Bb=z(Qa,YJ);if(Ca&&Qa&&Bb){switch(sb){case 1:Bb.avatarImageSize="AVATAR_SIZE_XL";break;case 2:Bb.avatarImageSize="AVATAR_SIZE_XXL";break;default:Oa<4?Bb.avatarImageSize= "AVATAR_SIZE_XXL":Bb.avatarImageSize="AVATAR_SIZE_XXXL";}FB(Qa,YJ,Object.assign({},Bb));eb.avatar=Object.assign({},Qa);FB(Ca,rsb,Object.assign({},eb));ib.image=Object.assign({},Ca)}}La=La.image}return La}},{contentPreviewImageViewModel:function(La){return D(WV,{data:La.data, className:Aa,imageSizeConfig:C})}, decoratedAvatarViewModel:function(La){return D(PR,{data:La.data,className:Aa})}})}})}, HeroImage:function(){return D(OC,{data:function(){return b().heroImage}},{contentPreviewImageViewModel:function(La){return D(WV,{data:La.data, className:Aa,imageSizeConfig:C})}})}, Title:function(){return D(OC,{data:function(){return b().title}},{dynamicTextViewModel:function(La){return D(hec,{data:La.data, maxLines:function(){return I?2:void 0}, className:da})}})}, Metadata:function(){return D(OC,{data:function(){return b().metadata}},{contentMetadataViewModel:function(La){return D(H7b,{data:La.data, layout:function(){return w()?1:0}, className:Ua,isOverlay:u,useMediumText:A})}})}, Description:function(){return D(OC,{data:function(){return b().description}},{descriptionPreviewViewModel:function(La){return D(lV,{data:La.data, className:"ytPageHeaderViewModelDescription",isOverlay:u,maxLinesOverride:function(){return w()?void 0:1}, useMediumText:function(){return(p==null?void 0:p())||A()}})}})}, Attribution:function(){return D(OC,{data:function(){return b().attribution}},{attributionViewModel:function(La){return D(iRb,{data:La.data, className:ab,useMediumText:A})}})}, Actions:function(){return D(OC,{data:function(){return b().actions}},{flexibleActionsViewModel:function(La){return D(mV,{data:La.data, layout:function(){var ib=v();return ib===1||ib===2?1:0}, className:qb,flexWrap:K})}})}}),D("div",{class:"ytPageHeaderViewModelHeadlineInfo"},D(OC,{data:function(){return b().bottomMetadataFlexibleContainer}},{flexibleContainer:function(La){return D(bcc,{data:La.data, isOverlay:u})}})))}}))},"ug"); O1b.idomCompat=!0;function jec(a){var b=0;a=l([a.title,a.metadata,a.actions,a.description,a.attribution]);for(var c=a.next();!c.done;c=a.next())c.value&&b++;return b} var kec=O(function(a){var b=a.pageHeaderHeadlineClassnames;var c=a.isTwoColumnLayout;var d=a.isCenteredLayout;var e=a.useHeroImageContainer;var f=a.isSmallScreen;var h=a.isSmallOrMedium1Screen;var m=a.Title;var p=a.Metadata;var q=a.Description;var t=a.Actions;var u=a.Attribution;var v=a.PreviewImage;var w=a.HeroImage;return D(P,{cond:c,then:function(){return D(lec,{Title:m,Metadata:p,Description:q,Actions:t,Attribution:u,PreviewImage:v})}, else:function(){return D(mec,{pageHeaderHeadlineClassnames:b,useHeroImageContainer:e,isSmallScreen:f,isSmallOrMedium1Screen:h,isCenteredLayout:d,Title:m,Metadata:p,Description:q,Actions:t,Attribution:u,PreviewImage:v,HeroImage:w})}})},"vg"),lec=O(function(a){var b=a.Title; var c=a.Metadata;var d=a.Description;var e=a.Actions;var f=a.Attribution;return D("div",{class:"ytPageHeaderViewModelTwoColumnContainer"},D("div",{class:"ytPageHeaderViewModelLeftColumn"},D(a.PreviewImage,null),D("div",null,D(b,null),D(c,null))),D("div",{class:"ytPageHeaderViewModelRightColumn"},D(d,null),D(f,null),D(e,null)))},"wg"),mec=O(function(a){var b=a.pageHeaderHeadlineClassnames; var c=a.useHeroImageContainer;var d=a.isSmallScreen;var e=a.isSmallOrMedium1Screen;var f=a.isCenteredLayout;var h=a.Title;var m=a.Metadata;var p=a.Description;var q=a.Actions;var t=a.Attribution;var u=a.PreviewImage;var v=a.HeroImage;a={};var w={};return D(mq,null,D("div",{class:b},D(u,null),D(P,{cond:function(){return!c()}, then:function(){return D(v,null)}}),D("div",{class:U("ytPageHeaderViewModelHeadlineInfo",(a.ytPageHeaderViewModelLayoutPresetCentered=f,a))},D(P,{cond:c, then:function(){return D("div",{class:"ytPageHeaderViewModelHeadlineImageHeroContainer"},D(v,null))}}),D(h,null),D(m,null),D(P,{cond:function(){return!d()}, then:function(){return D(p,null)}}),D(P,{cond:function(){return!e()}, then:function(){return D(mq,null,D(t,null),D(q,null))}}))),D("div",{class:U("ytPageHeaderViewModelHeadlineInfo",(w.ytPageHeaderViewModelLayoutPresetCentered=f,w))},D(P,{cond:d, then:function(){return D(p,null)}}),D(P,{cond:function(){return e()}, then:function(){return D(mq,null,D(t,null),D(q,null))}})))},"xg");bB(O1b,"yt-page-header-view-model",{props:{data:$A,noPadding:$A,enableBanner:$A,cinematicContainerTopbarOffset:$A,allowCinematicContainerOverflow:$A,displayAsSidebar:$A,displayAsPanel:$A,alwaysUseMediumTextDescription:$A,className:$A}});function nec(a){var b=Array.from(a.keys()).filter(function(d){return a.get(d)}); b.sort(function(d,e){return d-e}); var c=new Map;b.forEach(function(d,e){c.set(d,e)}); return c} var qec=O(function(a){var b=a.data;var c=a.removalAnimation;var d=eL(uC),e=function(){var m;return((m=b().numRows)!=null?m:0)*d()},f=Vo(function(){var m; var p=e(),q=!!(c==null?0:(m=c())==null?0:m.enabled);m=new Map;if(q){var t=p<4?1:p<8?2:3;for(q=new Set;q.size0&&Ft(this.hostElement,{"--ytd-rich-grid-item-max-width":a+"px"});var b;a=this.getRichItemMinWidth((b=this.hostElement)==null?void 0:b.clientWidth);a>0&&Ft(this.hostElement,{"--ytd-rich-grid-item-min-width":a+"px"})}; g.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()}; g.resizeObserved=function(){Yu(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()}; g.onPageChange=function(){var a=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,Hl(0,function(){a.pageLoadingFromNavigation=!1;a.isFilteredFeed||a.setMasthead();a.maybeSetBigYoodle();a.forceRefreshAndLog();a.terminateVideoPreview()},8)):this.mastheadData&&(this.mastheadData=void 0)}; g.dataChanged=function(){var a=this;Yu(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.refreshGridLayout(),ms(this,function(){a.updateRichItemGridPositions();a.contentsElement&&Ft(a.hostElement,{"--ytd-rich-grid-content-offset-top":a.contentsElement.offsetTop+"px"})}),this.initResizeObserver())}; g.initResizeObserver=function(){var a=this;if(window.ResizeObserver){var b;(b=this.resizeObserver)==null||b.disconnect();var c=!1;this.resizeObserver=new ResizeObserver(function(){if(c){var d;(d=a.resizeObserver)==null||d.disconnect();var e;(e=a.throttledOnResize)==null||e.fire();requestAnimationFrame(function(){var h;(h=a.throttledOnResize)==null||h.fire();a.initResizeObserver()})}else if(c=!0,a.resizeOnObserverInit){var f; (f=a.throttledOnResize)==null||f.fire()}}); this.resizeObserver.observe(this.hostElement)}}; g.contentLengthChanged=function(){if(this.containerWidth||this.isShortsPanel)this.reflowContent(),Yu(this.hostElement,"ytd-rich-item-index-update-action")}; g.updateElementsPerRow=function(){Yu(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(aA({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(aA({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))}; g.onRequestElementsPerRow=function(){this.updateElementsPerRow()}; g.onRichShelfRendererCollapse=function(a){if(this.shownItems){var b=a.detail;a=this.shownItems.findIndex(function(d){var e,f;return((f=z(d==null?void 0:(e=d.richSectionRenderer)==null?void 0:e.content,Kmb))==null?void 0:f.trackingParams)===b}); var c=a+1;a<0||c>=this.contentsElement.children.length||!this.shownItems[c].richItemRenderer||this.contentsElement.children[c].scrollIntoView({behavior:"smooth",block:"start"})}}; g.onSoftReloadPage=function(){this.scrollUpToTop()}; g.handleRerenderDownloadsData=function(){this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)}; g.handlePlaylistRemoveVideosAction=function(a){var b;if(((b=z(a,mmb))==null?0:b.setVideoIds)&&this.data&&this.data.contents){a=z(a,mmb).setVideoIds;for(b=this.data.contents.length-1;b>=0;){var c=z(this.data.contents[b],wJ);(c=c&&z(c.content,urb))&&c.setVideoId&&a.includes(c.setVideoId)&&this.splice("data.contents",b,1);b--}this.updateIndices()}}; g.updateIndices=function(){if(this.data&&this.data.contents)for(var a=0;a600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(a-=b?32:48));return a}; g.calcElementsPerRow=function(a,b){var c=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),d=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((c+d)/(a+d))||1,b)}; g.reflowContent=function(a){var b=this;if(!this.isReflowing){this.isReflowing=!0;var c,d,e=!!((c=this.data)==null?0:(d=c.contents)==null?0:d.some(function(m){return z(m,vJ)})); c=this.getItemsPerRow();var f;d=(f=this.data)==null?void 0:f.reflowOptions;a&&(aw("rgr_s"),ms(this,function(){aw("rgr_nrf")})); a={};(f=wt(this.hostElement).querySelector("#contents"))&&(a={contentElement:f,rendererToTagNameMap:this.rendererToTagNameMap});f=(f=this.data.contents)?f.slice():[];var h=KQb(f,c,e,d,this.getRichGridStyle(),a);e=function(){b.shownItems=h;b.isReflowing=!1}; this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(h),ms(this,e)):e()}}; g.getFirstRowItems=function(a){for(var b=[],c=0;c0&&(this.data.header=this.data.header[0]);this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()}; g.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())}; g.terminateVideoPreview=function(){Yu(this.hostElement,"yt-terminate-video-preview-action")}; g.updateRichItemGridPositions=function(){var a={gridData:{gridColumnCount:this.elementsPerRow}},b;((b=this.data)==null?0:b.trackingParams)&&(b=Tv())&&cTa(b,Qv(this.data.trackingParams),a);Yu(this.hostElement,"ytd-rich-item-index-update-action")}; g.miniModeAllowed=function(){return this.isChannelPage}; g.getMiniGameCardMinWidth=function(){return 154}; g.updateMiniMode=function(a){this.miniMode=this.miniModeAllowed()&&a;this.ytdReduxBehavior.dispatch(aA({type:"SET_RICH_GRID_MINI_MODE",payload:a}))}; g.isCurrentPage=function(){return location.pathname===this.pagePath}; g.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var a=Fn().resolve(CK).getCurrentPage();a&&a.setScrollTop(0)}}; g.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0}; g.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1;this.setMasthead()}; g.maybeSetBigYoodle=function(){var a,b=(a=this.data)==null?void 0:a.bigYoodle;this.bigYoodleData!==b&&(this.bigYoodleData=b)}; g.setMasthead=function(){var a;((a=this.data)==null?0:a.masthead)?this.mastheadData=this.data.masthead:this.mastheadData=void 0}; g.getRichGridStyle=function(){var a,b;return(b=(a=this.data)==null?void 0:a.style)!=null?b:"RICH_GRID_STYLE_UNKNOWN"}; g.onIsShortsGridChange=function(){var a=this.ytdReduxBehavior,b=a.dispatch,c=this.getRichGridStyle();b.call(a,aA({type:"SET_RICH_GRID_STYLE",payload:c}))}; g.onFeedCustomizationScrollUp=function(){this.scrollUpToTop()}; g.onScroll=function(){this.isScrolled=window.scrollY>0}; ba.Object.defineProperties(hZ.prototype,{showChipsOnScroll:{configurable:!0,enumerable:!0,get:function(){return x("kevlar_show_chips_on_scroll")&&this.isHomePage&&!this.isChannelPage&&!this.isFilteredFeed}}, loadingContentRenderer:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.ytContinuationHandlerBehavior)==null?void 0:a.reloadUiContent}}, hasLoadingContent:{configurable:!0,enumerable:!0,get:function(){return!!this.loadingContentRenderer}}, entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}}, isSub:{configurable:!0,enumerable:!0,get:function(){var a;return(((a=this.data)==null?void 0:a.targetId)||"")==="browse-feedFEsubscriptions_shorts"}}, isWatch:{configurable:!0,enumerable:!0,get:function(){var a;return(((a=this.data)==null?void 0:a.targetId)||"")==="watch-next-feed"}}, isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var a=Fn().resolve(CK).getCurrentPage(),b,c;return(((b=this.data)==null?void 0:b.targetId)==="browse-feedFEsfv_audio_pivot"||((c=this.data)==null?void 0:c.targetId)==="browse-feedFEsfv_effect_pivot")&&(a==null?void 0:a.pageSubtype)==="shorts"}}, reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&x("kevlar_watch_grid_reduced_top_margin_rich_grid")}}, noTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&!this.isWatchDefaultLayout}}, hideHeader:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null?0:a.header)}}, isChannelPage:{configurable:!0,enumerable:!0,get:function(){var a;return((a=Fn().resolve(CK).getCurrentPage())==null?void 0:a.pageSubtype)==="channels"}}, isHomePage:{configurable:!0,enumerable:!0,get:function(){var a;return((a=Fn().resolve(CK).getCurrentPage())==null?void 0:a.pageSubtype)==="home"}}, isSlimGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SLIM"}}, isShortsGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID"||this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}}, noRichItemGutterMargins:{configurable:!0,enumerable:!0,get:function(){return this.isSlimGrid||this.isShortsGrid}}, isShortsGridSlim:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}}, isCompactGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_COMPACT"}}, isDefaultGrid:{configurable:!0,enumerable:!0,get:function(){return!this.getRichGridStyle()||this.getRichGridStyle()==="RICH_GRID_STYLE_UNKNOWN"}}, hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var a;return(((a=this.data)==null?void 0:a.targetId)||"")==="watch-next-feed"}}, force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return((a=this.data)==null?0:a.enableContentSpecificAspectRatio)||((b=this.data)==null?0:(c=b.responsiveContainerConfiguration)==null?0:c.enableContentSpecificAspectRatio)?!1:!0}}, computedContinuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.continuationTriggerOffset!==void 0?this.continuationTriggerOffset:this.isHomePage?ll("web_continuation_handler_margin",0):0}}}); hZ.prototype.onIsShortsGridChange=hZ.prototype.onIsShortsGridChange;hZ.prototype.onReloadContinuationFinish=hZ.prototype.onReloadContinuationFinish;hZ.prototype.reflowContent=hZ.prototype.reflowContent;hZ.prototype.handleRerenderDownloadsData=hZ.prototype.handleRerenderDownloadsData;hZ.prototype.onRichShelfRendererCollapse=hZ.prototype.onRichShelfRendererCollapse;hZ.prototype.onRequestElementsPerRow=hZ.prototype.onRequestElementsPerRow;hZ.prototype.contentLengthChanged=hZ.prototype.contentLengthChanged; hZ.prototype.dataChanged=hZ.prototype.dataChanged;hZ.prototype.onSizingChange=hZ.prototype.onSizingChange;hZ.prototype.onUseCompactListChange=hZ.prototype.onUseCompactListChange;n([F($C.YtRendererstamperBehavior),r("design:type",Object)],hZ.prototype,"ytRendererstamperBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],hZ.prototype,"ytRendererBehavior",void 0);n([F(Hs),r("design:type",Object)],hZ.prototype,"ironResizableBehavior",void 0); n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],hZ.prototype,"actionHandlerBehavior",void 0);n([F(ZP),r("design:type",Object)],hZ.prototype,"ytContinuationHandlerBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],hZ.prototype,"componentBehavior",void 0);n([F(kC),r("design:type",Object)],hZ.prototype,"ytdReduxBehavior",void 0);n([M(),r("design:type",Object)],hZ.prototype,"data",void 0); n([M({reflectToAttribute:!0,selector:tC}),r("design:type",Boolean)],hZ.prototype,"miniMode",void 0);n([M({value:[]}),r("design:type",Array)],hZ.prototype,"shownItems",void 0);n([M({value:!1}),r("design:type",Boolean)],hZ.prototype,"isReflowing",void 0);n([M({value:!1,reflectToAttribute:!0}),r("design:type",Boolean)],hZ.prototype,"isFilteredFeed",void 0);n([M({selector:WZa}),r("design:type",Boolean)],hZ.prototype,"guideIsExpanded",void 0); n([M({selectorArgs:["entitySelectorType"],selector:function(a,b){if(b&&b!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(b){case"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":var c=a.entities;b=sC(c);var d=QZa(c),e=g_a(a),f=f_a(a),h=OZa(a.entities),m,p,q,t=(q=(p=((m=c.downloadsPageViewConfigurationEntity)!=null?m:{})[lC])==null?void 0:p.smartDownloadsOptInBannerVisibility)!=null?q:{},u;m=(u=z(t,TOa))!=null?u:{};p=lZa(b);u=VZa(c);var v,w,y;c=(y=(w=((v=c.downloadsPageViewConfigurationEntity)!=null? v:{})[lC])==null?void 0:w.downloadsUpsellBannerVisibility)!=null?y:{};var A;v=(A=z(c,UOa))!=null?A:{};A=e;w=f;f=p;c=u;y=h;h=h_a(a);e=vC(a);A=A===void 0?!1:A;w=w===void 0?!1:w;f=f===void 0?0:f;c=c===void 0?-Infinity:c;y=y===void 0?!1:y;h=h===void 0?!1:h;e=e===void 0?!1:e;a=[];u=sK(zy("SMART_DOWNLOADS",void 0,"Smart downloads"));p=sK(aYb(f,c,b.length));f=c=void 0;h?(m=v,u=m=m===void 0?{}:m,m=u.offlineTitleText===void 0?"":u.offlineTitleText,v=u.offlineDescriptionText===void 0?"":u.offlineDescriptionText, w=u.formattedSupplementalText,y=u.actionButtonText===void 0?"":u.actionButtonText,c=u.titleText===void 0?"":u.titleText,u=u.descriptionText===void 0?"":u.descriptionText,p={title:y,accessibilityText:y,style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:266213}},onTap:{innertubeCommand:{browseEndpoint:{browseId:"SPunlimited"},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse", rootVe:93498,url:"/premium",webPageType:"WEB_PAGE_TYPE_BROWSE"}}}}},e||(c=m,u=v,p={title:y,accessibilityText:y,style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_DISABLED",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:266213}}}),c={statementBannerRenderer:{title:sK(c),titleLength:c.length,overrideTitleMaxFontSize:30,subtitle:sK(u),supplementalText:w,primaryButton:{buttonViewModel:p},lightColorData:{basicColorData:{backgroundColor:0}}, darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[XXb]},darkTileImage:{thumbnails:[YXb]},loggingDirectives:{clientVeSpec:{uiType:266212}}}}):A?b.length>0?f=$Xb(b,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",!1,u,p):y?f={alertBannerViewModel:{heading:{content:m.localizedOptInBannerTitleText===void 0?"":m.localizedOptInBannerTitleText},body:{content:m.localizedPromptMessage===void 0?"":m.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL", hideIcon:!0,actionButton:{buttonViewModel:{title:zy("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:zy("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:129730}},onTap:{innertubeCommand:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH", entityKey:dZa}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:w&&(f={backgroundPromoRenderer:{bodyText:sK(zy("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),thumbnail:{thumbnails:[{url:"https://www.gstatic.com/youtube/img/useredu/grey_loading_spinner.gif"}]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_CONTENT_HEIGHT"}}}):w&&(f={alertBannerViewModel:{heading:{content:m.localizedOptInBannerTitleText===void 0?"":m.localizedOptInBannerTitleText},body:{content:m.localizedOptInMessage=== void 0?"":m.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:zy("TURN_ON",void 0,"Turn on"),accessibilityText:zy("TURN_ON",void 0,"Turn on"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:127983}},onTap:{innertubeCommand:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED", boolValue:!0}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:127982}}}}}});m=sK(zy("YOUR_DOWNLOADS",void 0,"Your downloads"));e=void 0;d.length>0?(e=sK(Ay("VIDEO_COUNT",d.length)),e=$Xb(d,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,m,e)):A||b.length||h||(e={backgroundPromoRenderer:{bodyText:sK(zy("VIDEOS_WILL_APPEAR_HERE",void 0,"Videos you download will appear here")),thumbnail:{thumbnails:[{url:"https://www.gstatic.com/youtube/img/useredu/downloads_empty_state.png"}]}, style:{value:"BACKGROUND_PROMO_STYLE_TYPE_CONTENT_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:120848}}}});c?a.push({richSectionRenderer:{content:c}}):f&&a.push({richSectionRenderer:{content:f,loggingDirectives:{clientVeSpec:{uiType:139572}}}});e&&a.push({richSectionRenderer:{content:e,loggingDirectives:{clientVeSpec:{uiType:51721}}}});(d.length>0||A&&b.length>0&&!h)&&a.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:sK(zy("DOWNLOADS_AVAILABILITY",void 0, "Downloads remain available as long as your device has an active internet connection for 30 days. This process happens automatically and does not re-download the video."))}},loggingDirectives:{clientVeSpec:{uiType:133683}}}}}});return{contents:a};case"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return b=sC(a.entities),ZXb(b,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE");case"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return b=MZa(a.entities),ZXb(b,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE"); default:fo(new Dl("Error: entitySelectorType defined but not matched in selector.",a,b));}}}), r("design:type",Object)],hZ.prototype,"entityDrivenRichGridData",void 0);n([M(),r("design:type",Object)],hZ.prototype,"resizeOnObserverInit",void 0);n([M(),r("design:type",Object)],hZ.prototype,"bigYoodleData",void 0);n([M(),r("design:type",Object)],hZ.prototype,"mastheadData",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],hZ.prototype,"disableStickyFilterBar",void 0);n([M(),r("design:type",Object)],hZ.prototype,"transparentBackgroundChipsBar",void 0); n([M({reflectToAttribute:!0}),H("isHomePage","isFilteredFeed"),r("design:type",Boolean),r("design:paramtypes",[])],hZ.prototype,"showChipsOnScroll",null);n([M({reflectToAttribute:!0}),r("design:type",Object)],hZ.prototype,"isScrolled",void 0);n([M(),r("design:type",Object)],hZ.prototype,"isWatchDefaultLayout",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],hZ.prototype,"continuationShowButton",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],hZ.prototype,"rowReducedHorizontalMargin",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],hZ.prototype,"useCompactList",void 0);n([M({selector:function(a){return QZa(a.entities).length>0}}), r("design:type",Object)],hZ.prototype,"manualDownloadsPresent",void 0);n([M({selector:function(a){return sC(a.entities).length>0}}), r("design:type",Object)],hZ.prototype,"smartDownloadsPresent",void 0);n([M({selector:vC}),r("design:type",Object)],hZ.prototype,"isOnline",void 0);n([M({selector:f_a}),r("design:type",Object)],hZ.prototype,"shouldRenderDownloadsBanner",void 0);n([M({selector:h_a}),r("design:type",Object)],hZ.prototype,"shouldRenderDownloadsBannerUpsell",void 0);n([M({selector:g_a}),r("design:type",Object)],hZ.prototype,"hasOptedIntoSmartDownloads",void 0); n([Lt("useCompactList"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],hZ.prototype,"onUseCompactListChange",null);n([Lt("sizing","typographyBump"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],hZ.prototype,"onSizingChange",null);n([M({selector:function(a){return a.ui.miniplayerPlaybackState}}), r("design:type",Number)],hZ.prototype,"miniplayerPlaybackState",void 0);n([M({selector:XZa}),r("design:type",Boolean)],hZ.prototype,"miniplayerIsActive",void 0);n([M({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState)"}),r("design:type",Boolean)],hZ.prototype,"isInlinePreviewEnabled",void 0);n([M({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),r("design:type",String)],hZ.prototype,"sizing",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],hZ.prototype,"elementsPerRow",void 0);n([M(),r("design:type",Object)],hZ.prototype,"typographyBump",void 0);n([M(),r("design:type",Number)],hZ.prototype,"itemWidth",void 0);n([M(),r("design:type",Number)],hZ.prototype,"continuationTriggerOffset",void 0);n([Tt("#header"),r("design:type",HTMLElement)],hZ.prototype,"headerElement",void 0);n([Tt("#contents"),r("design:type",HTMLElement)],hZ.prototype,"contentsElement",void 0); n([H("reloadUiContent"),r("design:type",Object),r("design:paramtypes",[])],hZ.prototype,"loadingContentRenderer",null);n([H("reloadUiContent"),M({reflectToAttribute:!0}),r("design:type",Boolean),r("design:paramtypes",[])],hZ.prototype,"hasLoadingContent",null);n([cu("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],hZ.prototype,"dataChanged",null); n([cu("data.contents.length"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],hZ.prototype,"contentLengthChanged",null);n([Kt("yt-request-elements-per-row"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],hZ.prototype,"onRequestElementsPerRow",null);n([Kt("yt-rich-shelf-renderer-collapse"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],hZ.prototype,"onRichShelfRendererCollapse",null); n([cu("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],hZ.prototype,"handleRerenderDownloadsData",null);n([H("data"),r("design:type",String),r("design:paramtypes",[])],hZ.prototype,"entitySelectorType",null); n([M({reflectToAttribute:!0}),H("data.targetId"),r("design:type",Boolean),r("design:paramtypes",[])],hZ.prototype,"isSub",null);n([M({reflectToAttribute:!0}),H("data.targetId"),r("design:type",Boolean),r("design:paramtypes",[])],hZ.prototype,"isWatch",null);n([M({reflectToAttribute:!0}),H("data.targetId"),r("design:type",Boolean),r("design:paramtypes",[])],hZ.prototype,"isShortsPanel",null); n([M({reflectToAttribute:!0}),H("isWatch"),r("design:type",Boolean),r("design:paramtypes",[])],hZ.prototype,"reducedTopMargin",null);n([M({reflectToAttribute:!0}),H("data","isWatch","isWatchDefaultLayout"),r("design:type",Boolean),r("design:paramtypes",[])],hZ.prototype,"noTopMargin",null);n([H("data.header"),r("design:type",Boolean),r("design:paramtypes",[])],hZ.prototype,"hideHeader",null); n([Kt("yt-rich-grid-reflow"),r("design:type",Function),r("design:paramtypes",[Boolean]),r("design:returntype")],hZ.prototype,"reflowContent",null);n([Kt("yt-reload-continuation-finish"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],hZ.prototype,"onReloadContinuationFinish",null);n([H("data"),M({reflectToAttribute:!0}),r("design:type",Boolean),r("design:paramtypes",[])],hZ.prototype,"isSlimGrid",null); n([H("data"),M({reflectToAttribute:!0}),r("design:type",Boolean),r("design:paramtypes",[])],hZ.prototype,"isShortsGrid",null);n([H("data","isSlimGrid","isShortsGrid"),M(),r("design:type",Boolean),r("design:paramtypes",[])],hZ.prototype,"noRichItemGutterMargins",null);n([H("data"),M({reflectToAttribute:!0}),r("design:type",Boolean),r("design:paramtypes",[])],hZ.prototype,"isShortsGridSlim",null); n([H("data"),M({reflectToAttribute:!0}),r("design:type",Boolean),r("design:paramtypes",[])],hZ.prototype,"isCompactGrid",null);n([H("data"),M({reflectToAttribute:!0}),r("design:type",Boolean),r("design:paramtypes",[])],hZ.prototype,"isDefaultGrid",null);n([H("data.targetId"),M({reflectToAttribute:!0}),r("design:type",Boolean),r("design:paramtypes",[])],hZ.prototype,"hideChipsBarOnWatch",null); n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],hZ.prototype,"onIsShortsGridChange",null);n([H("data.enableContentSpecificAspectRatio"),M(),r("design:type",Boolean),r("design:paramtypes",[])],hZ.prototype,"force16By9ThumbnailAspectRatio",null);n([H("data","continuationTriggerOffset"),r("design:type",Number),r("design:paramtypes",[])],hZ.prototype,"computedContinuationTriggerOffset",null); n([gu({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],hZ); Uu()(hZ,"ytd-rich-grid-renderer",function(){if(m9b===void 0){var a=document.createElement("template");Q(a,"\n\n\n\n\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);m9b=a}a=m9b;return a},{allowedProps:["data", "continuationTriggerOffset"],mode:2});var rec;var iZ=function(){return E.apply(this,arguments)||this}; k(iZ,E);g=iZ.prototype; g.onKeyDown=function(a){if(this.snippetElements.length!==0&&(a=a.keyCode,a===38||a===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);a===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=Nh(this.highlightedIndex,-1,this.snippetElements.length);a=this.snippetElements.length;var b=this.highlightedIndex%a;this.highlightedIndex=b*a<0?b+a:b;a=this.snippetElements[this.highlightedIndex];this.highlightSnippet(a);this.ensureVisible(a)}}; g.onKeyUp=function(a){var b=this;m2a(a)&&(a.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&bj.cancelJob(this.inputTimerId),this.inputTimerId=bj.addLowPriorityJob(function(){b.typedValue&&(b.fetchSnippets(b.typedValue),b.logInputGesture(b.data))},1E3))}; g.onClick=function(a){(a=Wia(a.target,null,"snippet-item"))&&this.selectSnippet(a)}; g.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()}; g.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}}; g.ready=function(){var a=this;this.inputElement.addEventListener("focus",function(){a.snippetsWrapper.style.removeProperty("display")})}; g.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")}; g.getSourceTimelines=function(){if(!this.data)return[];var a=[];if(this.data.searchInVideoSources)for(var b=l(this.data.searchInVideoSources),c=b.next();!c.done;c=b.next())c=c.value,c==="SEARCH_IN_VIDEO_SOURCE_ASR"?a.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):c==="SEARCH_IN_VIDEO_SOURCE_OCR"&&a.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return a}; g.fetchSnippets=function(a){var b=Xu(this.hostElement,"yt-get-current-video-id-action")[0],c=this.getSourceTimelines();a={getSearchInVideoCommand:{externalVideoId:b,query:a!=null?a:"",sourceTimelines:c},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};Fn().resolve(JB).resolveCommand(a,{form:{element:this.hostElement}})}; g.filterSnippets=function(a,b){var c=this;if(b){this.filteredSnippets=Yh(a);var d=RegExp(tca(b),"i");this.filteredSnippets=this.filteredSnippets.filter(function(h){return d.test(c.ytRendererBehavior.getSimpleString(h.snippet))}); a=l(this.filteredSnippets);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=this.ytRendererBehavior.getSimpleString(e.snippet);e.snippet={runs:[{text:f.substring(0,f.toLowerCase().indexOf(b))},{text:f.substring(f.toLowerCase().indexOf(b),f.toLowerCase().indexOf(b)+b.length),bold:!0},{text:f.substring(f.toLowerCase().indexOf(b)+b.length,f.length)}]}}}else this.filteredSnippets=a}; g.onUpdateSearchInVideoResults=function(a){if(!(this.snippets.length>0)){var b,c,d;if((d=(b=z(a,ymb))==null?void 0:(c=b.results)==null?void 0:c.length)!=null&&d){var e;this.filteredSnippets=this.snippets=((e=z(a,ymb))==null?void 0:e.results).map(function(f){var h,m,p;return{startMs:f==null?void 0:(h=f.searchInVideoResultRenderer)==null?void 0:h.startMs,startTimeText:f==null?void 0:(m=f.searchInVideoResultRenderer)==null?void 0:m.startTimeText,snippet:f==null?void 0:(p=f.searchInVideoResultRenderer)== null?void 0:p.snippet}})}}}; g.updateSnippetElements=function(){this.snippetElements=Array.from(this.snippetsWrapper.getElementsByClassName("snippet-item"));this.highlightedIndex>=0&&this.highlightedIndexc&&(this.snippetsWrapper.scrollTop+=a-c)}; g.seekPlayer=function(a){var b,c;return ra(function(d){if(d.nextAddress==1){if(!a)return d.jumpTo(0);b=Number(a.dataset.startOffset);return d.yield(yO().getPlayerPromise(),3)}c=d.yieldResult;c.seekTo(b/1E3,!0);c.wakeUpControls();d.jumpToEnd()})}; g.logInputGesture=function(a){var b=Tv();b&&(a==null?0:a.trackingParams)&&yz(b,Qv(a.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")}; g.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new uM("typed-value-changed",this.typedValue))}; g.updateTypedValueFromBinding=function(a){this.typedValue=a.currentTarget.value}; iZ.prototype.typedValueChangedForBinding=iZ.prototype.typedValueChangedForBinding;iZ.prototype.dataChanged=iZ.prototype.dataChanged;iZ.prototype.panelContentVisibleChanged=iZ.prototype.panelContentVisibleChanged;iZ.prototype.onClick=iZ.prototype.onClick;iZ.prototype.onKeyUp=iZ.prototype.onKeyUp;iZ.prototype.onKeyDown=iZ.prototype.onKeyDown;n([F(Yz.YtRendererBehavior),r("design:type",Object)],iZ.prototype,"ytRendererBehavior",void 0); n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],iZ.prototype,"ytActionHandlerBehavior",void 0);n([M(),r("design:type",Object)],iZ.prototype,"data",void 0);n([M({value:[]}),r("design:type",Array)],iZ.prototype,"snippets",void 0);n([M({value:[]}),r("design:type",Array)],iZ.prototype,"filteredSnippets",void 0);n([M({value:[]}),r("design:type",Array)],iZ.prototype,"snippetElements",void 0);n([Tt("#siv-input"),r("design:type",HTMLElement)],iZ.prototype,"inputElement",void 0); n([Tt("#siv-snippets-wrapper"),r("design:type",HTMLElement)],iZ.prototype,"snippetsWrapper",void 0);n([M(),r("design:type",String)],iZ.prototype,"typedValue",void 0);n([M({value:-1}),r("design:type",Number)],iZ.prototype,"highlightedIndex",void 0);n([Kt("keydown"),r("design:type",Function),r("design:paramtypes",[Mi]),r("design:returntype")],iZ.prototype,"onKeyDown",null);n([Kt("keyup"),r("design:type",Function),r("design:paramtypes",[Mi]),r("design:returntype")],iZ.prototype,"onKeyUp",null); n([Kt("click"),r("design:type",Function),r("design:paramtypes",[Event]),r("design:returntype")],iZ.prototype,"onClick",null);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],iZ.prototype,"panelContentVisible",void 0);n([Lt("panelContentVisible"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],iZ.prototype,"panelContentVisibleChanged",null);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],iZ.prototype,"dataChanged",null); n([Lt("typedValue"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],iZ.prototype,"typedValueChangedForBinding",null);n([gu({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],iZ); Tu(iZ,"ytd-search-in-video-renderer",function(){if(rec!==void 0)return rec;var a=document.createElement("template");Q(a,"\n \n \n\n
\n \n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return rec=a},{mode:1});var sec;var jZ=function(){return E.apply(this,arguments)||this}; k(jZ,E);jZ.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}}; jZ.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer",menuRenderer:"ytd-menu-renderer"}},"data.viewButton":{id:"view-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}}}}; jZ.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var a,b,c,d,e=(b=z((a=this.data)==null?void 0:a.onClickCommand,hlb))==null?void 0:(c=b.item)==null?void 0:(d=c.notificationTextRenderer)==null?void 0:d.successResponseText;e&&bSb(this.hostElement,e)}}; ba.Object.defineProperties(jZ.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}}, isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.isProductPlaceholder)}}, showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d;return this.isProductPlaceholder&&((a=this.data)==null?void 0:(b=a.hiddenProductOptions)==null?void 0:b.showDropCountdown)&&!!((c=this.data)==null?0:(d=c.hiddenProductOptions)==null?0:d.dropTimestamp)}}, showBrandName:{configurable:!0,enumerable:!0,get:function(){var a;return!this.isProductPlaceholder&&!((a=this.data)==null?0:a.merchantName)}}, showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.priceReplacementText)}}, showPrice:{configurable:!0,enumerable:!0,get:function(){var a,b;return!((a=this.data)==null?0:a.priceReplacementText)&&!((b=this.data)==null||!b.price)}}, showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}}); n([F(Yz.YtRendererBehavior),r("design:type",Object)],jZ.prototype,"ytRendererBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],jZ.prototype,"componentBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],jZ.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],jZ.prototype,"data",void 0); n([M({reflectToAttribute:!0}),H("isProductPlaceholder"),r("design:type",Object),r("design:paramtypes",[])],jZ.prototype,"useCenterLayoutContainer",null);n([M({computed:"computeButtonOverride(data)"}),r("design:type",Object)],jZ.prototype,"buttonOverride",void 0);n([H("data"),r("design:type",Object),r("design:paramtypes",[])],jZ.prototype,"isProductPlaceholder",null);n([H("isProductPlaceholder"),r("design:type",Object),r("design:paramtypes",[])],jZ.prototype,"showDropCountdown",null); n([H("isProductPlaceholder","data"),r("design:type",Object),r("design:paramtypes",[])],jZ.prototype,"showBrandName",null);n([H("data"),r("design:type",Object),r("design:paramtypes",[])],jZ.prototype,"showPriceReplacementText",null);n([H("data"),r("design:type",Object),r("design:paramtypes",[])],jZ.prototype,"showPrice",null);n([H("isProductPlaceholder"),r("design:type",Object),r("design:paramtypes",[])],jZ.prototype,"showMetadata",null); n([gu({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],jZ); Tu(jZ,"ytd-product-list-item-renderer",function(){if(sec!==void 0)return sec;var a=document.createElement("template");Q(a,"");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return sec=a},{mode:1});var tec;var kZ=function(){return E.apply(this,arguments)||this}; k(kZ,E);kZ.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0}; kZ.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}}; kZ.prototype.panelContentVisibleChanged=function(){var a=this,b;return ra(function(c){if(c.nextAddress==1)return a.playerApi?c.jumpTo(2):c.yield(yO().getPlayerPromise(),3);c.nextAddress!=2&&(a.playerApi=c.yieldResult);(b=a.playerApi)==null||b.productsInVideoVisibilityUpdated(!!a.panelContentVisible);c.jumpToEnd()})}; kZ.prototype.panelContentVisibleChanged=kZ.prototype.panelContentVisibleChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],kZ.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],kZ.prototype,"ytRendererstamperBehavior",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],kZ.prototype,"panelContentVisible",void 0);n([M(),r("design:type",Object)],kZ.prototype,"data",void 0); n([Lt("panelContentVisible"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",Promise)],kZ.prototype,"panelContentVisibleChanged",null);n([gu({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],kZ); Tu(kZ,"ytd-product-list-renderer",function(){if(tec!==void 0)return tec;var a=document.createElement("template");Q(a,"
\n");a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return tec=a},{mode:1});var uec;var lZ=function(){var a=E.apply(this,arguments)||this;a.hideTimestamps=!!SK("hide-transcript-timestamps");a.currentCueIndex=-1;a.flatCues=[];a.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};a.TEST_ONLY={getFlatCues:function(){return a.flatCues}}; return a}; k(lZ,E);g=lZ.prototype;g.hideTimestampsChanged=function(){RK("hide-transcript-timestamps",this.hideTimestamps)}; g.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps}; g.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()}; g.dataChanged=function(){var a;if((a=this.data)!=null&&a.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;a=l(this.data.cueGroups);for(var b=a.next();!b.done;b=a.next()){b=l(z(b.value,Lmb).cues);for(var c=b.next();!c.done;c=b.next())this.flatCues.push(Number(z(c.value,Mmb).startOffsetMs))}}}; g.onYtPlayerTimeChanged=function(a){if(!(a<0)){for(var b=this.currentCueIndex,c=b;;){var d=c>=0?this.flatCues[c]/1E3:-1;if(a+.5d)c+=1;else break}c!==b&&(b>=0&&((a=this.getCueElement(b))&&a.classList.remove("active"),(b=this.getCueGroupElement(b))&&b.classList.remove("active")),(b=this.getCueElement(c))&&b.classList.add("active"),(b=this.getCueGroupElement(c))&&b.classList.add("active"),this.currentCueIndex=c,this.isHovered|| this.scrollElementToTop(c))}}; g.scrollElementToTop=function(a){a=this.getCueElement(a>=3?a-3:0);this.hostElement.scrollTop=Math.min(a.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)}; g.getCueElement=function(a){return wt(this.hostElement).querySelector(".cue[start-offset=\""+this.flatCues[a]+"\"]")}; g.getCueGroupElement=function(a){return(a=this.getCueElement(a))&&a.parentElement?a.parentElement.parentElement:null}; g.onTap=function(a){var b=mt(a);a.target.classList.contains("cue")&&this.seekCueElement(b)}; g.onKeyPress=function(a){a.keyCode==13&&(a=Wia(a.target,null,"cue"))&&this.seekCueElement(a)}; g.seekCueElement=function(a){a=Number(a.getAttribute("start-offset"));Xu(this.hostElement,"yt-transcript-player-seek",[a/1E3])}; g.onMouseEnter=function(){this.isHovered=!0}; g.onMouseLeave=function(){this.isHovered=!1}; lZ.prototype.onMouseLeave=lZ.prototype.onMouseLeave;lZ.prototype.onMouseEnter=lZ.prototype.onMouseEnter;lZ.prototype.onKeyPress=lZ.prototype.onKeyPress;lZ.prototype.onTap=lZ.prototype.onTap;lZ.prototype.dataChanged=lZ.prototype.dataChanged;lZ.prototype.hideTimestampsChanged=lZ.prototype.hideTimestampsChanged;n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],lZ.prototype,"ytActionHandlerBehavior",void 0); n([F(Yz.YtRendererBehavior),r("design:type",Object)],lZ.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],lZ.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],lZ.prototype,"hideTimestamps",void 0);n([M(),r("design:type",Boolean)],lZ.prototype,"isHovered",void 0);n([Lt("hideTimestamps"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],lZ.prototype,"hideTimestampsChanged",null); n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],lZ.prototype,"dataChanged",null);n([Kt("tap"),r("design:type",Function),r("design:paramtypes",[Event]),r("design:returntype")],lZ.prototype,"onTap",null);n([Kt("keypress"),r("design:type",Function),r("design:paramtypes",[Event]),r("design:returntype")],lZ.prototype,"onKeyPress",null);n([Kt("mouseenter"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],lZ.prototype,"onMouseEnter",null); n([Kt("mouseleave"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],lZ.prototype,"onMouseLeave",null);n([gu({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],lZ); Tu(lZ,"ytd-transcript-body-renderer",function(){if(uec!==void 0)return uec;var a=document.createElement("template");Q(a,"\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return uec=a},{mode:1});var vec;var mZ=function(){var a=E.apply(this,arguments)||this;a.darkerPanels=x("web_watch_darker_panels");return a}; k(mZ,E);mZ.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],mZ.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],mZ.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],mZ.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],mZ.prototype,"darkerPanels",void 0);n([gu({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],mZ); Tu(mZ,"ytd-transcript-footer-renderer",function(){if(vec!==void 0)return vec;var a=document.createElement("template");Q(a,"
\n");a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return vec=a},{mode:1});var wec;var xec;var nZ=function(){var a=E.apply(this,arguments)||this;a.systemIcons=x("kevlar_system_icons");a.showClearButton=!1;return a}; k(nZ,E);g=nZ.prototype;g.handleInput=function(a){var b=this;a.target.value.length?et(this,"ytdTranscriptSearchBoxSearch",function(){b.emitSearchEvent(a)},500):(ECa(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent()); this.showClearButton=a.target.value.length>0}; g.clear=function(){this.inputBox.value="";this.showClearButton=!1}; g.handleClick=function(){var a,b=(a=this.data)==null?void 0:a.trackingParams;b&&Oz(gz(),b)}; g.handleClear=function(){ECa(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var a,b,c=(b=z((a=this.data)==null?void 0:a.clearButton,TJ))==null?void 0:b.trackingParams;c&&Oz(gz(),c);this.clear()}; g.emitSearchEvent=function(a){Gt(this.hostElement,"yt-transcript-search-box-search",{query:a.target.value});var b,c;(a=(c=z((b=this.data)==null?void 0:b.searchButton,TJ))==null?void 0:c.trackingParams)&&Oz(gz(),a)}; g.emitClearEvent=function(){Gt(this.hostElement,"yt-transcript-search-box-clear")}; ba.Object.defineProperties(nZ.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return wt(this.hostElement).querySelector("#transcript-search-box-input")}}, value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}}); n([F(Yz.YtRendererBehavior),r("design:type",Object)],nZ.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],nZ.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],nZ.prototype,"systemIcons",void 0);n([gu({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],nZ); Tu(nZ,"ytd-transcript-search-box-renderer",function(){if(xec!==void 0)return xec;var a=document.createElement("template");Q(a,"\n \n \n \n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return xec=a},{mode:1});var yec;var zec;var oZ=function(){return E.apply(this,arguments)||this}; k(oZ,E);oZ.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var a,b;this.sectionHeaderAriaLabel=(a=this.data)==null?void 0:(b=a.accessibility)==null?void 0:b.accessibilityData.label}}; oZ.prototype.fireSelectedEvent=function(a){Gt(this.hostElement,"ytd-transcript-section-header",{startMs:a})}; oZ.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))}; oZ.prototype.handleKeyPress=function(a){this.data&&a.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))}; ba.Object.defineProperties(oZ.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var a,b;return(b=(a=this.data)==null?void 0:a.enableTappableTranscriptHeader)!=null?b:!1}}}); oZ.prototype.dataChanged=oZ.prototype.dataChanged;n([M(),r("design:type",Object)],oZ.prototype,"data",void 0);n([M(),r("design:type",String)],oZ.prototype,"sectionHeaderAriaLabel",void 0);n([H("data"),r("design:type",Object),r("design:paramtypes",[])],oZ.prototype,"enableTappableTranscriptHeader",null);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],oZ.prototype,"dataChanged",null); n([gu({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],oZ); Tu(oZ,"ytd-transcript-section-header-renderer",function(){if(zec!==void 0)return zec;var a=document.createElement("template");Q(a,"\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return zec=a},{mode:1});var Aec;var Bec;var pZ=function(){var a=E.apply(this,arguments)||this;a.isEditMode=!1;a.touchCaptionsEnabled=!1;a.deleteCaptionCorrectionPopupCommand=null;a.voteCaptionCorrectionPopupCommand=null;a.roundedContainer=!0;a.mouseOver=!1;a.textChanged=!1;a.messages={suggest_correction:zy("suggest_correction",void 0,"Edit caption"),suggested_caption:zy("suggested_caption",void 0,"Suggested caption"),submit_correction:zy("submit_correction",void 0,"Submit for review"),cancel_correction:zy("cancel_correction",void 0,"Cancel"), replay_segment:zy("replay_segment",void 0,"Re-play segment"),delete_correction:zy("delete_correction",void 0,"Delete correction")};a.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return a}; k(pZ,E);g=pZ.prototype;g.dataChanged=function(){this.isEditMode=!1;this.editedText=this.data?this.data.userCorrection:void 0;this.data&&this.data.deleteCaptionCorrectionPopupCommand&&(this.deleteCaptionCorrectionPopupCommand=this.data.deleteCaptionCorrectionPopupCommand);this.data&&this.data.voteCaptionCorrectionPopupCommand&&(this.voteCaptionCorrectionPopupCommand=this.data.voteCaptionCorrectionPopupCommand);this.data&&this.data.accessibility&&(this.segmentAriaLabel=this.data.accessibility.accessibilityData.label)}; g.handleDelete=function(a){if(this.deleteCaptionCorrectionPopupCommand){var b=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);b&&this.ytdOpenPopupBehavior.openPopup(b);a.stopPropagation()}}; g.handleSubmit=function(a){if(this.data&&this.data.submitCaptionCorrectionCommand&&(a.stopPropagation(),this.textChanged)){var b;a=(b=z(this.data.submitCaptionCorrectionCommand,Rsb))==null?void 0:b.params;b=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:a,correctionText:String(this.ironTextAreaElement.value),originalText:lz(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(b);this.isEditMode=!1}}; g.handleUpdateSegmentText=function(a){(a=z(a,Ssb))&&a.targetId&&this.data&&a.targetId===this.data.targetId&&(a.userCorrection&&(this.editedText=a.userCorrection),a.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=lz(this.data.snippet)),a.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=a.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=a.voteCaptionCorrectionPopupCommand? a.voteCaptionCorrectionPopupCommand:null,a.accessibility&&(this.segmentAriaLabel=a.accessibility.accessibilityData.label))}; g.handleCancel=function(a){this.isEditMode=!1;a.stopPropagation();this.logClientVe(159409)}; g.handleEditSegmentCommand=function(a){(a=z(a,Qsb))&&a.targetId&&this.data&&a.targetId===this.data.targetId&&this.handleEdit()}; g.handleEditButtonClick=function(a){this.data&&(this.handleEdit(),a.stopPropagation())}; g.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var a;(a=this.ironTextAreaElement.textarea)==null||a.focus();this.logClientVe(159407)}}; g.handleMouseEnter=function(){this.mouseOver=!0}; g.handleMouseLeave=function(){this.mouseOver=!1}; g.handleReplay=function(a){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),a.stopPropagation(),this.logClientVe(159408))}; g.handleClick=function(){this.data&&(this.voteCaptionCorrectionPopupCommand?(this.ytComponentBehavior.resolveCommand(this.voteCaptionCorrectionPopupCommand),this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs))):(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()))}; g.handleKeypress=function(a){this.data&&(this.isEditMode?a.stopPropagation():this.isEnterPress(a)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(a)&&this.logClientVe(138758))}; g.handleTextboxClick=function(a){a.stopPropagation()}; g.handleTextboxKeydown=function(a){this.isControlEnterPress(a)?this.handleSubmit(a):a.key==="Escape"&&this.handleCancel(a)}; g.handleTextboxKeyup=function(){this.textChanged=lz(this.latestText)!==String(this.ironTextAreaElement.value)}; g.fireSelectedEvent=function(a){Gt(this.hostElement,"yt-transcript-segment-selected",{startMs:a})}; g.fireReplayEvent=function(a,b){Gt(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(a-100,0),endMs:b})}; g.fireEditEvent=function(a,b){Gt(this.hostElement,"yt-transcript-segment-edit",{startMs:a,endMs:b})}; g.isEnterPress=function(a){return a.key==="Enter"||a.code==="Enter"||a.code==="NumpadEnter"||a.keyCode===13?!0:!1}; g.isControlEnterPress=function(a){var b=a.key==="Enter"||a.code==="Enter"||a.code==="NumpadEnter"||a.keyCode===13;return(a.ctrlKey||a.metaKey)&&b}; g.isCopyPress=function(a){var b=a.ctrlKey;return a.key==="c"&&b}; g.logClick=function(){var a,b=(a=this.data)==null?void 0:a.trackingParams;b&&Oz(gz(),b)}; g.logClientVe=function(a){iz(gz(),Rv(a))}; ba.Object.defineProperties(pZ.prototype,{latestText:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.snippet?this.editedText&&this.touchCaptionsEnabled?this.editedText:this.data.snippet:{}}}, enableEditButton:{configurable:!0,enumerable:!0,get:function(){return this.touchCaptionsEnabled&&!this.isEditMode}}, enableUndoButton:{configurable:!0,enumerable:!0,get:function(){return this.enableEditButton&&this.deleteCaptionCorrectionPopupCommand!=null}}}); pZ.prototype.handleMouseLeave=pZ.prototype.handleMouseLeave;pZ.prototype.handleMouseEnter=pZ.prototype.handleMouseEnter;pZ.prototype.dataChanged=pZ.prototype.dataChanged;n([F(ft.YtActionHandlerBehavior),F(mz.YtComponentBehavior),r("design:type",Object)],pZ.prototype,"ytComponentBehavior",void 0);n([F(pB),r("design:type",Object)],pZ.prototype,"ytdOpenPopupBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],pZ.prototype,"ytRendererBehavior",void 0); n([M(),r("design:type",Object)],pZ.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],pZ.prototype,"isEditMode",void 0);n([M(),r("design:type",Object)],pZ.prototype,"touchCaptionsEnabled",void 0);n([M(),r("design:type",Object)],pZ.prototype,"editedText",void 0);n([M(),r("design:type",Object)],pZ.prototype,"deleteCaptionCorrectionPopupCommand",void 0);n([M(),r("design:type",Object)],pZ.prototype,"voteCaptionCorrectionPopupCommand",void 0); n([M(),r("design:type",String)],pZ.prototype,"segmentAriaLabel",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],pZ.prototype,"roundedContainer",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],pZ.prototype,"mouseOver",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],pZ.prototype,"textChanged",void 0);n([M(),r("design:type",Object)],pZ.prototype,"messages",void 0);n([Tt("#suggestion"),r("design:type",Object)],pZ.prototype,"ironTextAreaElement",void 0); n([H("data","editedText"),r("design:type",Object),r("design:paramtypes",[])],pZ.prototype,"latestText",null);n([H("touchCaptionsEnabled","isEditMode"),r("design:type",Boolean),r("design:paramtypes",[])],pZ.prototype,"enableEditButton",null);n([H("enableEditButton","deleteCaptionCorrectionPopupCommand"),r("design:type",Boolean),r("design:paramtypes",[])],pZ.prototype,"enableUndoButton",null); n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],pZ.prototype,"dataChanged",null);n([Kt("mouseenter"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],pZ.prototype,"handleMouseEnter",null);n([Kt("mouseleave"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],pZ.prototype,"handleMouseLeave",null);n([gu({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],pZ); Tu(pZ,"ytd-transcript-segment-renderer",function(){if(Bec!==void 0)return Bec;var a=document.createElement("template");Q(a,"
\n
\n
\n [[getSimpleString(data.startTimeText)]]\n
\n
\n \n \n \n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return Bec=a},{mode:1});var qZ=function(){var a=E.apply(this,arguments)||this;a.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};a.isError=!1;a.darkerPanels=x("web_watch_darker_panels");a.useParentMaxHeight=x("web_watch_transscript_use_parent_max_height");a.segmentOffsets=[];a.segmentIndex=-1;return a}; k(qZ,E);g=qZ.prototype;g.configureRendererStamper=function(){return{segments:{id:"segments-container",mapping:{transcriptSegmentRenderer:{component:"ytd-transcript-segment-renderer",properties:{touchCaptionsEnabled:"[[data.touchCaptionsEnabled]]"}},transcriptSectionHeaderRenderer:{component:"ytd-transcript-section-header-renderer"}}}}}; g.segmentsChanged=function(){this.updateOffsets()}; g.onYtPlayerTimeChanged=function(a){for(var b=this.segmentIndex,c=b;;){if(c>=0){var d=this.segmentOffsets[c].start;var e=this.segmentOffsets[c].isAutoScrollable}else d=-1,e=!0;var f=a+.5;if(!e){d=c+1=d){c+=1;continue}c=-1;break}if(f=0&&this.segmentOffsets[c-1].isAutoScrollable,e=c===0||d?1:2,c-=e;else if(e=c+1d)c+=e;else{if(c<0)break;cthis.segmentOffsets[c].end&&(c=-1);break}}if(b!==c){if(b>=0){var h;(h=this.getSegmentElement(b))==null||h.classList.remove("active")}this.segmentIndex=c;if(!(c<0)){var m;(m=this.getSegmentElement(c))==null||m.classList.add("active");this.isHovered||this.scrollElementToTop(c)}}}; g.handleSegmentEdit=function(a){a.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=a.target,Xu(this.hostElement,"yt-transcript-player-edit",[a.detail.startMs/1E3,a.detail.endMs/1E3]))}; g.handleSegmentSelected=function(a){Xu(this.hostElement,"yt-transcript-player-seek",[a.detail.startMs/1E3])}; g.handleSegmentReplay=function(a){Xu(this.hostElement,"yt-transcript-player-replay",[a.detail.startMs/1E3,a.detail.endMs/1E3])}; g.handleSectionHeaderSelected=function(a){Xu(this.hostElement,"yt-transcript-player-seek",[a.detail.startMs/1E3])}; g.onMouseEnter=function(){this.isHovered=!0}; g.onMouseLeave=function(){this.isHovered=!1}; g.onRetryButtonClick=function(){Gt(this.hostElement,"transcript-retry-button-click")}; g.getSegmentElement=function(a){return wt(this.hostElement).querySelector(":nth-child("+(a+1)+")")}; g.scrollElementToTop=function(a){a=this.getSegmentElement(a>=2?a-2:0);this.hostElement.scrollTop=Math.min(a.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)}; g.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(a){var b,c=(b=a.transcriptSegmentRenderer)!=null?b:a.transcriptSectionHeaderRenderer;return{start:Number(c.startMs)/1E3,end:Number(c.endMs)/1E3,isAutoScrollable:a.transcriptSegmentRenderer!==void 0}}); this.segmentIndex=-1;this.clearHighlightedSegments()}; g.clearHighlightedSegments=function(){var a=wt(this.hostElement);a=l(a.querySelectorAll("ytd-transcript-segment-renderer"));for(var b=a.next();!b.done;b=a.next())b.value.classList.remove("active")}; ba.Object.defineProperties(qZ.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.data)==null?void 0:a.searchResultSegments)||((b=this.data)==null?void 0:b.initialSegments)||[]}}, displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}}); qZ.prototype.onMouseLeave=qZ.prototype.onMouseLeave;qZ.prototype.onMouseEnter=qZ.prototype.onMouseEnter;qZ.prototype.handleSectionHeaderSelected=qZ.prototype.handleSectionHeaderSelected;qZ.prototype.handleSegmentReplay=qZ.prototype.handleSegmentReplay;qZ.prototype.handleSegmentSelected=qZ.prototype.handleSegmentSelected;qZ.prototype.handleSegmentEdit=qZ.prototype.handleSegmentEdit;qZ.prototype.segmentsChanged=qZ.prototype.segmentsChanged; n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],qZ.prototype,"ytActionHandlerBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],qZ.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],qZ.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],qZ.prototype,"data",void 0);n([M(),r("design:type",Object)],qZ.prototype,"isError",void 0);n([M(),r("design:type",Object)],qZ.prototype,"noResultLabel",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],qZ.prototype,"darkerPanels",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],qZ.prototype,"useParentMaxHeight",void 0);n([H("data"),r("design:type",Array),r("design:paramtypes",[])],qZ.prototype,"segments",null);n([H("segments","noResultLabel"),r("design:type",Boolean),r("design:paramtypes",[])],qZ.prototype,"displayNoResults",null); n([Lt("segments"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],qZ.prototype,"segmentsChanged",null);n([Kt("yt-transcript-segment-edit"),r("design:type",Function),r("design:paramtypes",[Event]),r("design:returntype")],qZ.prototype,"handleSegmentEdit",null);n([Kt("yt-transcript-segment-selected"),r("design:type",Function),r("design:paramtypes",[Event]),r("design:returntype")],qZ.prototype,"handleSegmentSelected",null); n([Kt("yt-transcript-segment-replay"),r("design:type",Function),r("design:paramtypes",[Event]),r("design:returntype")],qZ.prototype,"handleSegmentReplay",null);n([Kt("ytd-transcript-section-header"),r("design:type",Function),r("design:paramtypes",[Event]),r("design:returntype")],qZ.prototype,"handleSectionHeaderSelected",null);n([Kt("mouseenter"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],qZ.prototype,"onMouseEnter",null); n([Kt("mouseleave"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],qZ.prototype,"onMouseLeave",null);n([gu({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],qZ); Tu(qZ,"ytd-transcript-segment-list-renderer",function(){if(Aec!==void 0)return Aec;var a=document.createElement("template");Q(a,"
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return Aec=a},{mode:1});var rZ=function(){var a=E.apply(this,arguments)||this;a.hideTimestamps=!!SK("hide-transcript-timestamps");a.isLoadingTranscripts=!1;a.darkerPanels=x("web_watch_darker_panels");a.isError=!1;a.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return a}; k(rZ,E);g=rZ.prototype;g.headerChanged=function(){var a,b;this.baseGetTranscriptsCommand=(b=z((a=this.data)==null?void 0:a.header,Tsb))==null?void 0:b.onTextChangeCommand}; g.bodyChanged=function(){var a=this.getBodyRenderer();a&&(a.initialSegments&&(this.initialTranscriptsRenderer=a),a.noResultLabel&&(this.noResultLabel=a.noResultLabel),a.retryLabel&&(this.retryLabel=a.retryLabel))}; g.detached=function(){this.clearSearchBoxText()}; g.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}}; g.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{transcriptSearchBoxRenderer:"ytd-transcript-search-box-renderer"}},"data.body":{id:"body",mapping:{transcriptSegmentListRenderer:{component:"ytd-transcript-segment-list-renderer",properties:{noResultLabel:"[[noResultLabel]]"}}}},"data.footer":{id:"footer",mapping:{transcriptFooterRenderer:"ytd-transcript-footer-renderer"}}}}; g.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1}; g.fireSearch=function(a){var b=this;if(a){var c=a.detail.query;if(this.baseGetTranscriptsCommand){var d;a=(d=z(this.baseGetTranscriptsCommand,Smb))==null?void 0:d.params;var e;d=z((e=this.data)==null?void 0:e.footer,Nmb);var f;if((e=(f=z(d==null?void 0:d.languageMenu,Frb))==null?void 0:f.subMenuItems)&&e.length>0&&(f=e.find(function(p){return p.selected}))){var h,m; a=(h=f.continuation)==null?void 0:(m=h.reloadContinuationData)==null?void 0:m.continuation}h=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:a,searchQuery:c}});this.ytComponentBehavior.resolveCommand(h,{commandController:{onServerError:function(){b.setError()}}}); this.isLoadingTranscripts=!0;this.set("data.body",{});XLb(this.ytContinuationHandlerBehavior,function(){return c===b.getCurrentSearchBoxText()})}}}; g.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))}; g.onRetryButtonClick=function(){this.isError=!1;var a={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:a}))}; g.hideTimestampsChanged=function(){RK("hide-transcript-timestamps",this.hideTimestamps)}; g.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps}; g.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()}; g.handleSignalActionCopyTranscript=function(){var a=this,b=this.getBodyRenderer();b&&(b=((b==null?void 0:b.searchResultSegments)||(b==null?void 0:b.initialSegments)||[]).map(function(c){return z(c,Vsb)}).filter(function(c){return!!c}).map(function(c){return{snippet:c.snippet||{runs:[{text:""}]}, startTimeText:c.startTimeText||{simpleText:""}}}).map(function(c){var d=(c.snippet.runs||[]).reduce(function(e,f){return""+e+f.text},""); return a.hideTimestamps?d:c.startTimeText.simpleText+" "+d}).join("\n"),this.copyToClipboard(b))}; g.copyToClipboard=function(a){navigator.clipboard&&navigator.clipboard.writeText(a)}; g.getCurrentSearchBoxText=function(){var a;return(a=this.searchBox)==null?void 0:a.value}; g.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()}; g.getBodyRenderer=function(){var a;return z((a=this.data)==null?void 0:a.body,Usb)}; g.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0}; ba.Object.defineProperties(rZ.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return wt(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}}); rZ.prototype.hideTimestampsChanged=rZ.prototype.hideTimestampsChanged;rZ.prototype.searchCleared=rZ.prototype.searchCleared;rZ.prototype.fireSearch=rZ.prototype.fireSearch;rZ.prototype.onReloadContinuationFinish=rZ.prototype.onReloadContinuationFinish;rZ.prototype.bodyChanged=rZ.prototype.bodyChanged;rZ.prototype.headerChanged=rZ.prototype.headerChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],rZ.prototype,"ytRendererBehavior",void 0); n([F(mz.YtComponentBehavior),r("design:type",Object)],rZ.prototype,"ytComponentBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],rZ.prototype,"ytRendererstamperBehavior",void 0);n([F(ZP),r("design:type",Object)],rZ.prototype,"ytContinuationHandlerBehavior",void 0);n([M(),r("design:type",Object)],rZ.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],rZ.prototype,"hideTimestamps",void 0); n([M(),r("design:type",Object)],rZ.prototype,"isLoadingTranscripts",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],rZ.prototype,"darkerPanels",void 0);n([M(),r("design:type",Object)],rZ.prototype,"isError",void 0);n([Lt("data.header"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],rZ.prototype,"headerChanged",null);n([cu("data.body"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],rZ.prototype,"bodyChanged",null); n([Kt("yt-reload-continuation-finish"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],rZ.prototype,"onReloadContinuationFinish",null);n([Kt("yt-transcript-search-box-search"),r("design:type",Function),r("design:paramtypes",[Event]),r("design:returntype")],rZ.prototype,"fireSearch",null);n([Kt("yt-transcript-search-box-clear"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],rZ.prototype,"searchCleared",null); n([Lt("hideTimestamps"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],rZ.prototype,"hideTimestampsChanged",null);n([gu({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],rZ); Tu(rZ,"ytd-transcript-search-panel-renderer",function(){if(yec!==void 0)return yec;var a=document.createElement("template");Q(a,"
\n
\n\n\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return yec=a},{mode:1});var sZ=function(){var a=E.apply(this,arguments)||this;a.player=null;a.playerPollJobId=0;return a}; k(sZ,E);g=sZ.prototype;g.panelContentVisibleChanged=function(){this.updatePlayerListening()}; g.onLoadReloadContinuation=function(a){this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:a.target.data.continuation}})}; g.configureRendererStamper=function(){return{"data.footer":{id:"footer",mapping:{transcriptFooterRenderer:"ytd-transcript-footer-renderer"}},"data.body":{id:"body",mapping:{transcriptBodyRenderer:"ytd-transcript-body-renderer"}},"data.content":{id:"content",mapping:{transcriptSearchPanelRenderer:"ytd-transcript-search-panel-renderer"}}}}; g.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}}; g.attached=function(){this.updatePlayerListening()}; g.detached=function(){this.updatePlayerListening()}; g.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()}; g.startPlayerListening=function(){var a=this,b;return ra(function(c){if(c.nextAddress==1)return(b=xO())?c.yield(b.getPlayerPromise(),2):c.return();a.player=c.yieldResult;a.playerPollJobId=bj.addLowPriorityJob(function(){a.getPlayerVideoProgress()},1E3); a.player.addEventListener("onCueRangeEnter",function(d){a.onCueRangeEnter(d)}); a.player.addEventListener("onCueRangeExit",function(d){a.onCueRangeExit(d)}); a.player.addEventListener("onStateChange",function(d){a.onPlayerStateChange(d)}); a.player.addEventListener("SEEK_TO",function(d){a.onPlayerSeek(d)}); c.jumpToEnd()})}; g.getPlayerVideoProgress=function(){var a=this;bj.cancelJob(this.playerPollJobId);if(this.player){var b=this.player.getCurrentTime();Xu(this.hostElement,"yt-player-time-changed",[b])}this.playerPollJobId=bj.addLowPriorityJob(function(){a.getPlayerVideoProgress()},1E3)}; g.stopPlayerListening=function(){this.player=null;bj.cancelJob(this.playerPollJobId)}; g.onPlayerStateChange=function(a){a===2&&this.removePendingCue()}; g.onPlayerSeek=function(a){this.pendingReplayCueId&&a===Number(this.pendingReplayCueId.split("_")[1])||this.removePendingCue()}; g.onCueRangeEnter=function(a){a.startsWith("ytd-transcript-renderer")&&(this.pendingReplayCueId=a)}; g.onCueRangeExit=function(a){a.startsWith("ytd-transcript-renderer")&&this.player&&(this.player.pauseVideo(),this.removePendingCue())}; g.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0}; g.onYtTranscriptPlayerSeek=function(a){this.player&&this.player.seekTo(a,!0)}; g.onYtTranscriptPlayerReplay=function(a,b){this.player&&(this.player.addCueRange("ytd-transcript-renderer_"+a,a,b),this.player.seekTo(a,!0),this.player.playVideo())}; g.onYtTranscriptPlayerEdit=function(a,b){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange("ytd-transcript-renderer_"+a,a,b),this.player.seekTo(a,!0))}; sZ.prototype.onLoadReloadContinuation=sZ.prototype.onLoadReloadContinuation;sZ.prototype.panelContentVisibleChanged=sZ.prototype.panelContentVisibleChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],sZ.prototype,"ytRendererBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],sZ.prototype,"ytComponentBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],sZ.prototype,"ytRendererstamperBehavior",void 0); n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],sZ.prototype,"ytActionHandlerBehavior",void 0);n([M(),r("design:type",Object)],sZ.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],sZ.prototype,"panelContentVisible",void 0);n([Lt("panelContentVisible"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],sZ.prototype,"panelContentVisibleChanged",null); n([Kt("yt-load-reload-continuation"),r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype")],sZ.prototype,"onLoadReloadContinuation",null);n([gu({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],sZ); Tu(sZ,"ytd-transcript-renderer",function(){if(wec!==void 0)return wec;var a=document.createElement("template");Q(a,"
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return wec=a},{mode:1});var Cec;var Dec;var tZ=function(){return E.apply(this,arguments)||this}; k(tZ,E);tZ.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&Gt(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&Zu(this.hostElement,[this.data.clickCommand],this.hostElement))}; tZ.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+(dyb()+eyb)+"px)"}; tZ.prototype.updateShouldHideFromBinding=function(a){this.shouldHide=a.detail.value}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],tZ.prototype,"rendererBehavior",void 0);n([M(),r("design:type",Object)],tZ.prototype,"data",void 0);n([M(),r("design:type",Boolean)],tZ.prototype,"shouldHide",void 0);n([gu({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],tZ); Tu(tZ,"ytd-ad-engagement-panel-banner-renderer",function(){if(Dec!==void 0)return Dec;var a=document.createElement("template");Q(a,"\n\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return Dec=a},{mode:2});var Eec;var uZ=function(){var a=E.apply(this,arguments)||this;a.buttonUpdate=x("web_modern_buttons");a.adsSemanticText=x("enable_ads_web_ep_buenos_aires_and_padding_fix");return a}; k(uZ,E);uZ.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges}; n([M(),r("design:type",Object)],uZ.prototype,"data",void 0);n([M({computed:"computeHideDefaultAdBadge(data)"}),r("design:type",Boolean)],uZ.prototype,"hideDefaultAdBadge",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],uZ.prototype,"buttonUpdate",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],uZ.prototype,"adsSemanticText",void 0);n([gu({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],uZ); Tu(uZ,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(Eec!==void 0)return Eec;var a=document.createElement("template");Q(a,"\n\n\n\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return Eec=a},{mode:1});var Fec;var vZ=function(){var a=E.apply(this,arguments)||this;a.darkerPanels=x("web_watch_darker_panels")||x("WebFEAllStudioByChannel__enable_creator_chat_renderer")&&!x("WebFEAllStudioByGaia__enable_web_ui_unification");a.headerClickListener=function(b){a.onHeaderClick(b)}; a.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};a.iconSize=40;return a}; k(vZ,E);g=vZ.prototype;g.computeAdsInfoButton=function(){if(x("web_modern_buttons")){var a,b;return(b=z((a=this.data)==null?void 0:a.subtitleComplex,Ymb))==null?void 0:b.adInfoRenderer}}; g.updateHeaderClickListener=function(){var a,b,c;((a=this.data)==null?0:a.navigationEndpoint)||((b=this.data)==null?0:b.onClickCommand)||z((c=this.data)==null?void 0:c.visibilityButton,UJ)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)}; g.configureRendererStamper=function(){return{"data.visibilityButton":{id:"visibility-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",buttonViewModel:"yt-button-view-model"}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer",sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},"data.subtitleComplex":{id:"subtitle-complex",mapping:{engagementPanelAdSubtitleRenderer:"ytd-engagement-panel-ad-subtitle-renderer"}},"data.actionButton":{id:"action-button", mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"ytd-button-renderer",buttonViewModel:"yt-button-view-model",toggleButtonViewModel:"yt-toggle-button-view-model"}},adsInfoButton:{id:"ads-info-button",mapping:{adHoverTextButtonRenderer:{component:"ytd-ad-hover-text-button-renderer",params:{modernUpdate:!0}}}},"data.informationButton":{id:"information-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.banner":{id:"banner",mapping:{adEngagementPanelBannerRenderer:"ytd-ad-engagement-panel-banner-renderer"}}, "data.navigationButton":{id:"navigation-button",mapping:{buttonRenderer:"ytd-button-renderer",buttonViewModel:"yt-button-view-model"},reuseComponents:!1},"data.subheader":{id:"subheader",mapping:{chipBarViewModel:{component:"chip-bar-view-model",params:{disableDeselection:!0}}}}}}; g.collapsedChanged=function(){var a;(a=this.data)!=null&&a.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&x("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0}; g.focus=function(a){var b=this;this.titleElement&&Hl(0,function(){ln(b.titleElement,a)},0,500)}; g.computeTitleAriaLabel=function(a){var b=[];if(a.title){var c,d;b.push(this.ytRendererBehavior.getSimpleString(a.title)||((c=a.title.accessibility)==null?void 0:(d=c.accessibilityData)==null?void 0:d.label))}a.contextualInfo&&b.push(this.ytRendererBehavior.getSimpleString(a.contextualInfo));return b.join(" ")}; g.learningChatEngagementPanelChanged=function(){this.iconSize=this.learningChatEngagementPanel?24:40}; g.showImageFallback=function(a,b){return!a&&!!b}; g.onHeaderClick=function(a){this.shouldTriggerHeaderClick(a)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&Gt(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&Zu(this.hostElement,[this.data.onClickCommand],this.hostElement)):(a=this.getVisibilityToggleButton())&&a.click())}; g.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var a=z(this.data.visibilityButton,TJ)||z(this.data.visibilityButton,UJ);a&&this.ytRendererBehavior.logExplicitClick(a)}}; g.getVisibilityToggleButton=function(){var a=wt(this.hostElement).querySelector("#visibility-button").firstElementChild;return(a==null?void 0:a.is)==="ytd-toggle-button-renderer"?a:null}; g.shouldTriggerHeaderClick=function(a){return!AO(lt(a),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])}; g.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(a){a=z(a,jmb);this.targetId&&(a==null?void 0:a.targetId)===this.targetId&&(a=a.navigationButton)&&this.set("data.navigationButton",a)}; ba.Object.defineProperties(vZ.prototype,{displayTitle:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.entity)==null?0:a.title)return{simpleText:this.entity.title};var b;return(b=this.data)==null?void 0:b.title}}, adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return x("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}}, isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var a;return!!(((a=this.entity)==null?0:a.isActionButtonHidden)||this.hideActionButton)}}}); vZ.prototype.learningChatEngagementPanelChanged=vZ.prototype.learningChatEngagementPanelChanged;vZ.prototype.collapsedChanged=vZ.prototype.collapsedChanged;vZ.prototype.updateHeaderClickListener=vZ.prototype.updateHeaderClickListener;n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],vZ.prototype,"actionHandlerBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],vZ.prototype,"ytRendererBehavior",void 0); n([F($C.YtRendererstamperBehavior),r("design:type",Object)],vZ.prototype,"ytRendererstamperBehavior",void 0);n([F(kC),r("design:type",Object)],vZ.prototype,"ytdReduxBehavior",void 0);n([M(),r("design:type",Object)],vZ.prototype,"data",void 0);n([M(),r("design:type",String)],vZ.prototype,"targetId",void 0);n([M(),r("design:type",Boolean)],vZ.prototype,"collapsed",void 0);n([M(),r("design:type",Boolean)],vZ.prototype,"hideActionButton",void 0); n([M({reflectToAttribute:!0}),r("design:type",Boolean)],vZ.prototype,"shortsPanel",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],vZ.prototype,"liveChatEngagementPanel",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],vZ.prototype,"learningChatEngagementPanel",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],vZ.prototype,"askStudioEngagementPanel",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],vZ.prototype,"darkerPanels",void 0); n([H("data","entity"),r("design:type",Object),r("design:paramtypes",[])],vZ.prototype,"displayTitle",null);n([Tt("#title"),r("design:type",HTMLElement)],vZ.prototype,"titleElement",void 0);n([Tt("#header"),r("design:type",HTMLElement)],vZ.prototype,"headerElement",void 0);n([M({computed:"computeAdsInfoButton(data)"}),r("design:type",Object)],vZ.prototype,"adsInfoButton",void 0); n([M({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(a,b){return yA(a.entities,"engagementPanelTitleHeaderEntity",b)}}), r("design:type",Object)],vZ.prototype,"entity",void 0);n([M({reflectToAttribute:!0}),H("targetId"),r("design:type",Boolean),r("design:paramtypes",[])],vZ.prototype,"adsSemanticText",null);n([Lt("data","data.navigationEndpoint","data.onClickCommand"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],vZ.prototype,"updateHeaderClickListener",null);n([cu("collapsed"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],vZ.prototype,"collapsedChanged",null); n([H("entity","hideActionButton"),r("design:type",Boolean),r("design:paramtypes",[])],vZ.prototype,"isActionButtonHidden",null);n([M(),r("design:type",Object)],vZ.prototype,"iconSize",void 0);n([Lt("learningChatEngagementPanel"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],vZ.prototype,"learningChatEngagementPanelChanged",null);n([gu({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],vZ); Tu(vZ,"ytd-engagement-panel-title-header-renderer",function(){if(Fec!==void 0)return Fec;var a=document.createElement("template");Q(a,"
\n
\n
\n \n \n \n
\n

\n \n \n \n

\n \n \n
\n
\n \n
\n \n
\n
\n
\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return Fec=a},{mode:1});var Gec;var wZ=function(){return E.apply(this,arguments)||this}; k(wZ,E);wZ.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],wZ.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],wZ.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],wZ.prototype,"data",void 0);n([gu({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],wZ); Tu(wZ,"ytd-macro-markers-info-item-renderer",function(){if(Gec!==void 0)return Gec;var a=document.createElement("template");Q(a,"\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return Gec=a},{mode:1});var Hec;var yZ=function(a,b,c,d,e,f){Ji.call(this);var h=this;this.JSC$15279_containerElement=a;this.hostElement=b;this.supportedSyncItems=c;this.syncEntityKey=d;this.options=e;this.renderLazyListItems=f;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;Iec(this);Jec(this);this.JSC$15279_scrollAnimation=new TW(function(m){a.scrollTop=m}); Ki(this,this.JSC$15279_scrollAnimation);this.addOnDisposeCallback(function(){xZ(h,!1);h.activeItem&&h.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})}; k(yZ,Ji);var Iec=function(a){var b=cA(Fn().resolve(zu),function(c){return c.entities.markersEngagementPanelSyncEntity||{}},function(c,d){var e; if(c[a.syncEntityKey]!==d[a.syncEntityKey]&&((e=c[a.syncEntityKey])==null?void 0:e.activeItemIndex)!==void 0)if(d=c[a.syncEntityKey].activeItemIndex,c=a.getItemByIndex(d)){if(Kec(a,c),a.contentVisible)if(a.browsingMode){var f;((f=a.options)==null?void 0:f.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(f=Lec(a),c.offsetTopa)return b[a]}; var Kec=function(a,b){a.activeItem&&a.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));b.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));a.activeItem=b}; yZ.prototype.scrollToItem=function(a){a=this.getScrollPositionForItem(a);this.JSC$15279_containerElement.scrollTop!==a&&this.JSC$15279_scrollAnimation.start(this.JSC$15279_containerElement.scrollTop,a,300)}; yZ.prototype.getScrollPositionForItem=function(a){if(this.JSC$15279_containerElement.querySelectorAll(this.supportedSyncItems)[0]===a)return 0;var b,c=((b=this.options)==null?0:b.percentOffset)?this.JSC$15279_containerElement.clientHeight*this.options.percentOffset:0;a=vi(a).y+this.JSC$15279_containerElement.scrollTop-(vi(this.JSC$15279_containerElement).y+c);return Math.max(0,Math.min(a,this.JSC$15279_containerElement.scrollHeight-this.JSC$15279_containerElement.offsetHeight))}; yZ.prototype.onScroll=function(){this.activeItemBelowSyncPosition=Lec(this);if(this.activeItem&&!this.JSC$15279_scrollAnimation.isAnimating()&&Math.abs(this.JSC$15279_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var a;switch((a=this.options)==null?void 0:a.floatingPillType){case"FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":Oec(this,!Pec(this));Mec(this);break;default:Oec(this,!0);}}}; var Oec=function(a,b){var c,d;ra(function(e){if(e.nextAddress==1){if(a.browsingMode)return e.return();a.browsingMode=!0;b&&a.hostElement.classList.add("browsing-mode");a.playerExitBrowsingModeListener=function(){xZ(a,!1)}; return e.yield((0,ND.getCurrentPlayerShared)(),2)}c=e.yieldResult;(d=c)==null||d.addEventListener("SEEK_TO",a.playerExitBrowsingModeListener);e.jumpToEnd()})},xZ=function(a,b){b=b===void 0?!0:b; a.browsingMode&&(a.browsingMode=!1,a.hostElement.classList.remove("browsing-mode"),b&&a.scrollToItem(a.activeItem),Qec(a))},Qec=function(a){var b,c; ra(function(d){if(d.nextAddress==1)return a.playerExitBrowsingModeListener?d.yield((0,ND.getCurrentPlayerShared)(),3):d.jumpTo(0);b=d.yieldResult;(c=b)==null||c.removeEventListener("SEEK_TO",a.playerExitBrowsingModeListener);a.playerExitBrowsingModeListener=void 0;d.jumpToEnd()})},Mec=function(a){var b; ((b=a.options)==null?void 0:b.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(Pec(a)?a.hostElement.classList.remove("browsing-mode"):a.activeItem&&a.hostElement.classList.add("browsing-mode"))},Lec=function(a){if(!a.activeItem)return!1; var b,c=((b=a.options)==null?0:b.percentOffset)?a.JSC$15279_containerElement.clientHeight*a.options.percentOffset:0;return a.activeItem.offsetTop>=a.JSC$15279_containerElement.scrollTop+c},Pec=function(a){if(!a.activeItem)return!1; var b=a.activeItem.offsetTop+14<=a.JSC$15279_containerElement.scrollTop+a.JSC$15279_containerElement.clientHeight;return a.activeItem.offsetTop+a.activeItem.clientHeight-14>=a.JSC$15279_containerElement.scrollTop&&b}; yZ.prototype.panelContentVisibleChanged=function(a){(this.contentVisible=a)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)}; var Rec=function(a,b){a.syncEntityKey=b;var c;(c=a.unsubscribeFromTimedMarkersListSyncEntity)==null||c.call(a);Iec(a)};var zZ=function(){var a=E.apply(this,arguments)||this;a.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return a}; k(zZ,E);g=zZ.prototype;g.detached=function(){var a;(a=this.scrollController)==null||a.dispose();this.scrollController=void 0}; g.attached=function(){x("web_video_companion_modern_transcript")&&(this.scrollController||this.initScrollController(),this.scrollController.panelContentVisibleChanged(!!this.panelContentVisible))}; g.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{macroMarkersListItemRenderer:{component:"ytd-macro-markers-list-item-renderer",properties:{useCustomColors:"[[useCustomColors]]"},params:{seekWithAnimationOnClick:!0}},macroMarkersInfoItemRenderer:"ytd-macro-markers-info-item-renderer",itemSectionRenderer:"ytd-item-section-renderer"}}}}; g.dataChanged=function(){var a=this;ms(this,function(){if(a.scrollController||x("web_video_companion_modern_transcript")){var b;(b=a.scrollController)==null||xZ(b,!1);var c,d,e;(d=a.scrollController)==null||Rec(d,(e=(c=a.data)==null?void 0:c.syncModelEntityKey)!=null?e:"default-macro-markers-list-renderer-entity-key");var f,h;(b=a.scrollController)!=null&&(c={percentOffset:(f=a.data)==null?void 0:f.selectedItemAlignmentPercentOffset,floatingPillType:(h=a.data)==null?void 0:h.floatingPillType},b.options= c)}else a.initScrollController();var m;(m=a.scrollController)==null||m.panelContentVisibleChanged(!!a.panelContentVisible)})}; g.computeButtonShape=function(){var a=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){a.onSyncClick()}, style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}}; g.initScrollController=function(){var a=this,b,c,d,e;this.scrollController=new yZ(this.contents,this.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(e=(b=this.data)==null?void 0:b.syncModelEntityKey)!=null?e:"default-macro-markers-list-renderer-entity-key",{percentOffset:(c=this.data)==null?void 0:c.selectedItemAlignmentPercentOffset,floatingPillType:(d=this.data)==null?void 0:d.floatingPillType},function(f){a.renderLazyListItems(f)})}; g.renderLazyListItems=function(a){for(var b=this.contents.children,c=0,d=0;d=a)break}}; g.handleSetActivePanelItemAction=function(a){if((a=z(a,smb))&&this.panelTargetId===a.panelTargetId){a=a.itemIndex;var b,c,d=(c=(b=this.data)==null?void 0:b.syncModelEntityKey)!=null?c:"default-macro-markers-list-renderer-entity-key",e;((e=this.syncEntity)==null?void 0:e.activeItemIndex)!==a&&this.ytdReduxBehavior.dispatch(dA("markersEngagementPanelSyncEntity",d,{key:d,activeItemIndex:a}))}}; g.onSyncClick=function(){var a;(a=this.scrollController)==null||xZ(a)}; g.panelContentVisibleChanged=function(){var a;(a=this.scrollController)==null||a.panelContentVisibleChanged(!!this.panelContentVisible)}; zZ.prototype.panelContentVisibleChanged=zZ.prototype.panelContentVisibleChanged;zZ.prototype.dataChanged=zZ.prototype.dataChanged;n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],zZ.prototype,"actionHandlerBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],zZ.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],zZ.prototype,"ytRendererstamperBehavior",void 0); n([F(kC),r("design:type",Object)],zZ.prototype,"ytdReduxBehavior",void 0);n([M(),r("design:type",Object)],zZ.prototype,"data",void 0);n([M({value:!1,reflectToAttribute:!0}),r("design:type",Boolean)],zZ.prototype,"useCustomColors",void 0);n([M({reflectToAttribute:!0}),r("design:type",String)],zZ.prototype,"panelTargetId",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],zZ.prototype,"panelContentVisible",void 0); n([Tt("#contents"),r("design:type",HTMLElement)],zZ.prototype,"contents",void 0);n([M({selectorArgs:["data.syncModelEntityKey"],selector:dVa}),r("design:type",Object)],zZ.prototype,"syncEntity",void 0);n([cu("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],zZ.prototype,"dataChanged",null);n([Lt("panelContentVisible"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],zZ.prototype,"panelContentVisibleChanged",null); n([gu({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],zZ); Tu(zZ,"ytd-macro-markers-list-renderer",function(){if(Hec!==void 0)return Hec;var a=document.createElement("template");Q(a,"
\n
\n \n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return Hec=a},{mode:1});var Sec;var AZ=function(){return E.apply(this,arguments)||this}; k(AZ,E);n([F(Yz.YtRendererBehavior),r("design:type",Object)],AZ.prototype,"ytRendererBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],AZ.prototype,"ytComponentBehavior",void 0);n([M(),r("design:type",Object)],AZ.prototype,"data",void 0);n([gu({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],AZ); Tu(AZ,"ytd-error-corrections-section-item-renderer",function(){if(Sec!==void 0)return Sec;var a=document.createElement("template");Q(a,"\n\n\n \n\n
\n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return Sec=a},{mode:1});var Tec;var BZ=function(){var a=E.apply(this,arguments)||this;a.sdRedesign=x("desktop_include_oswald");return a}; k(BZ,E);BZ.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],BZ.prototype,"ytRendererBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],BZ.prototype,"ytComponentBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],BZ.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],BZ.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],BZ.prototype,"sdRedesign",void 0); n([gu({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],BZ); Tu(BZ,"ytd-error-corrections-section-renderer",function(){if(Tec!==void 0)return Tec;var a=document.createElement("template");Q(a,"
\n \n
\n \n \n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return Tec=a},{mode:1});var Uec;var CZ=function(){return E.apply(this,arguments)||this}; k(CZ,E);CZ.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}}; CZ.prototype.onTap=function(a){var b=this.data&&this.data.endpoint;b&&!AO(lt(a),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&Gt(this.hostElement,"yt-navigate",{endpoint:b})}; n([F($C.YtRendererstamperBehavior),r("design:type",Object)],CZ.prototype,"ytRendererstamperBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],CZ.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],CZ.prototype,"data",void 0);n([gu({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],CZ); Tu(CZ,"ytd-autotagging-metadata-renderer",function(){if(Uec!==void 0)return Uec;var a=document.createElement("template");Q(a,"
\n \n \n
\n
\n
\n [[getSimpleString(data.title)]]\n
\n \n
\n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return Uec=a},{mode:1});var Vec;var DZ=function(){return E.apply(this,arguments)||this}; k(DZ,E);DZ.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}}; n([F($C.YtRendererstamperBehavior),r("design:type",Object)],DZ.prototype,"ytRendererstamperBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],DZ.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],DZ.prototype,"data",void 0);n([gu({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],DZ); Tu(DZ,"ytd-autotagging-metadata-row-renderer",function(){if(Vec!==void 0)return Vec;var a=document.createElement("template");Q(a,"
\n [[getSimpleString(data.header)]]\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return Vec=a},{mode:1});var Wec;var Xec;var EZ=function(){var a=E.apply(this,arguments)||this;a.engagementPanelContent=!1;return a}; k(EZ,E);EZ.prototype.computeHasDividerLine=function(a,b){return a&&!b}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],EZ.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],EZ.prototype,"data",void 0);n([M({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),r("design:type",Boolean)],EZ.prototype,"hasDividerLine",void 0);n([M(),r("design:type",Object)],EZ.prototype,"engagementPanelContent",void 0);n([gu({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],EZ); Tu(EZ,"ytd-metadata-row-header-renderer",function(){if(Xec!==void 0)return Xec;var a=document.createElement("template");Q(a,"

\n \n

\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return Xec=a},{mode:1});var Yec;var FZ=function(){return E.apply(this,arguments)||this}; k(FZ,E);FZ.prototype.computeHasDividerLine=function(a){return a}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],FZ.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],FZ.prototype,"data",void 0);n([M({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),r("design:type",Boolean)],FZ.prototype,"hasDividerLine",void 0);n([gu({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],FZ); Tu(FZ,"ytd-metadata-row-renderer",function(){if(Yec!==void 0)return Yec;var a=document.createElement("template");Q(a,"

\n \n

\n
\n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return Yec=a},{mode:1});var Zec;var GZ=function(){return E.apply(this,arguments)||this}; k(GZ,E);n([F(Yz.YtRendererBehavior),r("design:type",Object)],GZ.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],GZ.prototype,"data",void 0);n([gu({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],GZ); Tu(GZ,"ytd-metadata-with-image-row-renderer",function(){if(Zec!==void 0)return Zec;var a=document.createElement("template");Q(a,"\n \n \n
\n \n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return Zec=a},{mode:1});var $ec;var HZ=function(){var a=E.apply(this,arguments)||this;a.rounded=!0;a.fixie=!1;a.fullWidth=!1;return a}; k(HZ,E);g=HZ.prototype;g.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}}; g.onDataChanged=function(){var a=this;this.data&&!this.endpointHref&&(this.endpointLink.classList.add("button-mode"),this.endpointLink.setAttribute("tabindex","0"),this.endpointLink.setAttribute("role","button"),this.endpointLink.addEventListener("keypress",function(b){a.onEndpointLinkKeyPress(b)}))}; g.onEndpointLinkKeyPress=function(a){a.target===this.endpointLink&&a.keyCode===13&&Gt(this.hostElement,"click")}; g.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var a;if((a=this.data)==null?0:a.endpoint)Zu(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}}; g.onYtNavigate=function(a){this.endpointHref||(a.stopPropagation(),a.preventDefault())}; g.onInformationButtonContainerClick=function(a){a.target.id!=="information-button-container"&&(a.stopPropagation(),a.preventDefault())}; g.computeStyle=function(a){return a}; g.computeIsThumbnailStyle=function(a){return a==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"}; g.computeThumbnailWidth=function(a){switch(a){case"RICH_METADATA_RENDERER_STYLE_THUMBNAIL":return 178;case"RICH_METADATA_RENDERER_STYLE_BOX_ART":return 72;case"RICH_METADATA_RENDERER_STYLE_TOPIC":return 96;case"RICH_METADATA_RENDERER_STYLE_SQUARE":return 100;default:return 68;}}; g.computeThumbnailObjectFit=function(a){switch(a){case"RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN";}}; ba.Object.defineProperties(HZ.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?0:a.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}}); HZ.prototype.onYtNavigate=HZ.prototype.onYtNavigate;HZ.prototype.onClick=HZ.prototype.onClick;HZ.prototype.onDataChanged=HZ.prototype.onDataChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],HZ.prototype,"ytRendererBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],HZ.prototype,"componentBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],HZ.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],HZ.prototype,"data",void 0); n([M({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),r("design:type",String)],HZ.prototype,"componentStyle",void 0);n([M({computed:"computeIsThumbnailStyle(data.style)"}),r("design:type",Boolean)],HZ.prototype,"isThumbnailStyle",void 0);n([M({computed:"computeThumbnailObjectFit(data.style)"}),r("design:type",String)],HZ.prototype,"thumbnailObjectFit",void 0);n([M({computed:"computeThumbnailWidth(data.style)"}),r("design:type",Number)],HZ.prototype,"thumbnailWidth",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],HZ.prototype,"rounded",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],HZ.prototype,"fixie",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],HZ.prototype,"fullWidth",void 0);n([Tt("#endpoint-link"),r("design:type",HTMLAnchorElement)],HZ.prototype,"endpointLink",void 0);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],HZ.prototype,"onDataChanged",null); n([H("data.endpoint"),r("design:type",Object),r("design:paramtypes",[])],HZ.prototype,"endpointHref",null);n([Kt("click"),r("design:type",Function),r("design:paramtypes",[Event]),r("design:returntype")],HZ.prototype,"onClick",null);n([Kt("yt-navigate"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],HZ.prototype,"onYtNavigate",null);n([gu({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],HZ); Tu(HZ,"ytd-rich-metadata-renderer",function(){if($ec!==void 0)return $ec;var a=document.createElement("template");Q(a,"\n \n \n
\n
[[getSimpleString(data.title)]]
\n
\n [[getSimpleString(data.subtitle)]]\n
\n \n
\n
[[getSimpleString(data.callToAction)]]
\n \n
\n
\n \n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return $ec=a},{mode:2});var afc;var IZ=function(){var a=E.apply(this,arguments)||this;a.fixie=!1;a.fullWidth=!1;return a}; k(IZ,E);IZ.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}}; IZ.prototype.computeHasDividerLine=function(a){return a}; n([F($C.YtRendererstamperBehavior),r("design:type",Object)],IZ.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],IZ.prototype,"data",void 0);n([M({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),r("design:type",Boolean)],IZ.prototype,"hasDividerLine",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],IZ.prototype,"fixie",void 0);n([M(),r("design:type",Object)],IZ.prototype,"fullWidth",void 0); n([gu({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],IZ); Tu(IZ,"ytd-rich-metadata-row-renderer",function(){if(afc!==void 0)return afc;var a=document.createElement("template");Q(a,"
\n");a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return afc=a},{mode:1});var JZ=function(){var a=E.apply(this,arguments)||this;a.engagementPanelContent=!1;a.fixie=!1;a.fullWidth=!1;return a}; k(JZ,E); JZ.prototype.configureRendererStamper=function(){return{alwaysShownItems:{id:"always-shown",mapping:{metadataRowRenderer:"ytd-metadata-row-renderer",metadataWithImageRowRenderer:"ytd-metadata-with-image-row-renderer",metadataRowHeaderRenderer:"ytd-metadata-row-header-renderer",richMetadataRowRenderer:{component:"ytd-rich-metadata-row-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}},autotaggingMetadataRowRenderer:"ytd-autotagging-metadata-row-renderer"}},collapsibleItems:{id:"collapsible",mapping:{metadataRowRenderer:"ytd-metadata-row-renderer", metadataWithImageRowRenderer:"ytd-metadata-with-image-row-renderer",metadataRowHeaderRenderer:{component:"ytd-metadata-row-header-renderer",properties:{engagementPanelContent:"[[engagementPanelContent]]"}},richMetadataRowRenderer:"ytd-rich-metadata-row-renderer",autotaggingMetadataRowRenderer:"ytd-autotagging-metadata-row-renderer"}}}}; JZ.prototype.computeCollapsibleItems=function(a,b,c){return a===void 0||b===void 0||c===void 0||c?[]:a.slice(b)}; JZ.prototype.computeAlwaysShownItems=function(a,b){return a&&a.length?a.slice(0,b):[]}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],JZ.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],JZ.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],JZ.prototype,"data",void 0);n([M({value:!1}),r("design:type",Boolean)],JZ.prototype,"collapsed",void 0);n([M({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),r("design:type",Array)],JZ.prototype,"alwaysShownItems",void 0); n([M({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),r("design:type",Array)],JZ.prototype,"collapsibleItems",void 0);n([M(),r("design:type",Object)],JZ.prototype,"engagementPanelContent",void 0);n([M(),r("design:type",Object)],JZ.prototype,"fixie",void 0);n([M(),r("design:type",Object)],JZ.prototype,"fullWidth",void 0);n([gu({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],JZ); Tu(JZ,"ytd-metadata-row-container-renderer",function(){if(Wec!==void 0)return Wec;var a=document.createElement("template");Q(a,"
\n\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return Wec=a},{mode:1});var bfc;var KZ=function(){return E.apply(this,arguments)||this}; k(KZ,E);n([F(Yz.YtRendererBehavior),r("design:type",Object)],KZ.prototype,"ytRendererBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],KZ.prototype,"componentBehavior",void 0);n([M(),r("design:type",Object)],KZ.prototype,"data",void 0);n([gu({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],KZ); Tu(KZ,"ytd-topic-link-renderer",function(){if(bfc!==void 0)return bfc;var a=document.createElement("template");Q(a,"\n \n \n
[[getSimpleString(data.title)]]
\n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return bfc=a},{mode:1});var cfc;var LZ=function(){var a=E.apply(this,arguments)||this;a.modernLockupV2=x("modernize_structured_description_playlist_lockups_v2");a.sdRedesign=x("desktop_include_oswald");return a}; k(LZ,E);LZ.prototype.configureRendererStamper=function(){return{"data.mediaLockups":{id:"media-lockups",mapping:{structuredDescriptionPlaylistLockupRenderer:{component:"ytd-structured-description-playlist-lockup-renderer",properties:{showSidePanelThumbnailOverlay:"[[modernLockupV2]]"}}}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],LZ.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],LZ.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],LZ.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],LZ.prototype,"modernLockupV2",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],LZ.prototype,"sdRedesign",void 0); n([gu({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],LZ); Tu(LZ,"ytd-video-description-course-section-renderer",function(){if(cfc!==void 0)return cfc;var a=document.createElement("template");Q(a,"
\n
[[getSimpleString(data.sectionTitle)]]
\n
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return cfc=a},{mode:1});var dfc;var MZ=function(){var a=E.apply(this,arguments)||this;a.sdRedesign=x("desktop_include_oswald");return a}; k(MZ,E);MZ.prototype.configureRendererStamper=function(){return{"data.files":{id:"file-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.viewAllButton":{id:"view-all-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],MZ.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],MZ.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],MZ.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],MZ.prototype,"sdRedesign",void 0);n([gu({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],MZ); Tu(MZ,"ytd-video-description-files-section-renderer",function(){if(dfc!==void 0)return dfc;var a=document.createElement("template");Q(a,"
\n
[[getSimpleString(data.sectionTitle)]]
\n
\n
\n
\n
[[getSimpleString(data.sectionDescription)]]
\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return dfc=a},{mode:1});var efc;var NZ=function(){var a=E.apply(this,arguments)||this;a.sdRedesign=x("desktop_include_oswald");return a}; k(NZ,E);NZ.prototype.configureRendererStamper=function(){return{"data.mediaLockups":{id:"media-lockups",mapping:{mediaLockupRenderer:"ytd-media-lockup-renderer"}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],NZ.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],NZ.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],NZ.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],NZ.prototype,"sdRedesign",void 0);n([gu({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],NZ); Tu(NZ,"ytd-video-description-gaming-section-renderer",function(){if(efc!==void 0)return efc;var a=document.createElement("template");Q(a,"
\n

[[getSimpleString(data.sectionTitle)]]

\n
\n
\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return efc=a},{mode:1});var ffc;var OZ=function(){var a=E.apply(this,arguments)||this;a.isExpanded=!1;return a}; k(OZ,E);OZ.prototype.computeHasDefaultMetadataEndpoint=function(a){var b;a=a==null?void 0:(b=a.defaultMetadata)==null?void 0:b.runs;return!(!a||a.length!==1||!a[0].navigationEndpoint)}; OZ.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)}; ba.Object.defineProperties(OZ.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.expandedMetadata)}}, showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}}); n([F(Yz.YtRendererBehavior),r("design:type",Object)],OZ.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],OZ.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],OZ.prototype,"isExpanded",void 0);n([M({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),r("design:type",Boolean)],OZ.prototype,"hasDefaultMetadataEndpoint",void 0);n([H("data"),r("design:type",Boolean),r("design:paramtypes",[])],OZ.prototype,"isExpandable",null); n([H("data","isExpandable","isExpanded"),r("design:type",Boolean),r("design:paramtypes",[])],OZ.prototype,"showExpandedMetadata",null);n([gu({is:"ytd-info-row-renderer",disableElementRegistration:!0})],OZ); Tu(OZ,"ytd-info-row-renderer",function(){if(ffc!==void 0)return ffc;var a=document.createElement("template");Q(a,"
\n
\n
[[getSimpleString(data.title)]]
\n \n
\n \n
\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return ffc=a},{mode:1});var gfc;var PZ=function(){var a=E.apply(this,arguments)||this;a.currentIndex=0;a.supportComponentResize=!0;a.JSC$15334_lastScrollContainerWidth=NaN;return a}; k(PZ,E);g=PZ.prototype; g.configureRendererStamper=function(){return{videoLockups:{id:"items",mapping:{compactVideoRenderer:{component:"ytd-compact-video-renderer",params:{forceOneLineTitle:!0,musicMetadataVideoLockup:!0,hideThumbnail:!0}}},reuseComponents:!1},infoRows:{id:"info-rows",mapping:{infoRowRenderer:"ytd-info-row-renderer"}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer", properties:{"on-tap":"[[boundNextClick]]"}}}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}}; g.getItemsPath=function(){return"videoLockups"}; g.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()}; g.onIronResize=function(){this.updateVideoLockupStyles()}; g.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()}; g.updateVideoLockupStyles=function(){var a;this.scrollContainer!==void 0&&(a=this.videoLockups)!=null&&a.length&&(a=this.scrollContainer.clientWidth,a!==this.JSC$15334_lastScrollContainerWidth&&(this.JSC$15334_lastScrollContainerWidth=a,Ft(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(a*.8,415)+"px"}),Gt(this.hostElement,"iron-resize")))}; ba.Object.defineProperties(PZ.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var a=[],b;if((b=this.data)==null||!b.carouselLockups)return a;b=l(this.data.carouselLockups);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0;((d=z(c,ctb))==null?0:d.videoLockup)&&a.push(z(c,ctb).videoLockup)}return a}}, hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.videoLockups)==null||!a.length)}}, infoRows:{configurable:!0,enumerable:!0,get:function(){var a=[],b;if((b=this.data)==null||!b.carouselLockups)return a;var c;return(c=z(this.data.carouselLockups[this.scrollCount],ctb))==null?void 0:c.infoRows}}}); PZ.prototype.dataChanged=PZ.prototype.dataChanged;PZ.prototype.onIronResize=PZ.prototype.onIronResize;PZ.prototype.hiddenChanged=PZ.prototype.hiddenChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],PZ.prototype,"ytRendererBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],PZ.prototype,"componentBehavior",void 0);n([F(JQ.YtdHorizontalListBehavior),r("design:type",Object)],PZ.prototype,"ytdHorizontalListBehavior",void 0); n([F($C.YtRendererstamperBehavior),r("design:type",Object)],PZ.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],PZ.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],PZ.prototype,"inlineStructuredDescription",void 0);n([M({value:2}),r("design:type",Number)],PZ.prototype,"initialCount",void 0);n([M(),r("design:type",Object)],PZ.prototype,"currentIndex",void 0);n([M(),r("design:type",Number)],PZ.prototype,"scrollCount",void 0); n([M(),r("design:type",Object)],PZ.prototype,"supportComponentResize",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],PZ.prototype,"contentHidden",void 0);n([Tt("#scroll-container"),r("design:type",HTMLDivElement)],PZ.prototype,"scrollContainer",void 0);n([Lt("contentHidden"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],PZ.prototype,"hiddenChanged",null);n([H("data"),r("design:type",Array),r("design:paramtypes",[])],PZ.prototype,"videoLockups",null); n([H("videoLockups"),r("design:type",Boolean),r("design:paramtypes",[])],PZ.prototype,"hasVideoLockups",null);n([Kt("iron-resize"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],PZ.prototype,"onIronResize",null);n([H("data","scrollCount"),r("design:type",Object),r("design:paramtypes",[])],PZ.prototype,"infoRows",null);n([cu("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],PZ.prototype,"dataChanged",null); n([gu({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],PZ); Tu(PZ,"ytd-video-description-music-section-renderer",function(){if(gfc!==void 0)return gfc;var a=document.createElement("template");Q(a,"
\n

[[getSimpleString(data.sectionTitle)]]

\n
\n\n
\n\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return gfc=a},{mode:2});var hfc;var QZ=function(){var a=E.apply(this,arguments)||this;a.sdRedesign=x("desktop_include_oswald");return a}; k(QZ,E);QZ.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}}; n([F($C.YtRendererstamperBehavior),r("design:type",Object)],QZ.prototype,"ytRendererstamperBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],QZ.prototype,"ytRendererBehavior",void 0);n([M({}),r("design:type",Object)],QZ.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],QZ.prototype,"sdRedesign",void 0);n([gu({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],QZ); Tu(QZ,"ytd-video-description-transcript-section-renderer",function(){if(hfc!==void 0)return hfc;var a=document.createElement("template");Q(a,"\n
\n
[[getSimpleString(data.sectionTitle)]]
\n
\n
\n

[[getSimpleString(data.subHeaderText)]]

\n
\n
\n
\n
\n\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return hfc=a},{mode:1});var ifc;var jfc;var RZ=function(){var a=E.apply(this,arguments)||this;a.skinnyMode=!1;a.inStructuredDescription=!1;a.noDivider=x("web_watch_no_dividers");a.COMPACT_EVENT_COUNT=4;a.onShelfToggleButtonTap=function(){a.logTap(a.data);a.showingMore=!a.showingMore}; a.onShelfToggleButtonFocus=function(){a.showingMore||(a.logTap(a.data),a.showingMore=!0,ms(a,function(){var b=a.COMPACT_EVENT_COUNT-1,c;(c=wt(a.hostElement).querySelector("#event-"+b))==null||c.focus()}))}; return a}; k(RZ,E);g=RZ.prototype;g.attached=function(){for(var a=l([this.shelfToggleButton,this.shelfToggleButtonWhenNoDivider]),b=a.next();!b.done;b=a.next())b=b.value,b.addEventListener("tap",this.onShelfToggleButtonTap),b.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()}; g.detached=function(){for(var a=l([this.shelfToggleButton,this.shelfToggleButtonWhenNoDivider]),b=a.next();!b.done;b=a.next())b=b.value,b.removeEventListener("tap",this.onShelfToggleButtonTap),b.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()}; g.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",It(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",It(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",It(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",It(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",It(this.infoTooltip,this.infoTooltip.hide))}; g.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",It(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",It(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",It(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",It(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",It(this.infoTooltip,this.infoTooltip.hide))}; g.dataChanged=function(){this.firstEvent=this.get("data.events.0.ticketEventRenderer");this.data&&this.data.events&&(this.canShowMore=this.data.events.length>this.COMPACT_EVENT_COUNT,this.separator.style.visibility=this.data.events.length>1?"visible":"hidden");this.showingMore=!1;this.showingMoreChanged(!1)}; g.onShowingMoreChanged=function(){var a;this.showingMoreChanged((a=this.showingMore)!=null?a:!1)}; g.showingMoreChanged=function(a){var b=this.get("data.events")||[];this.set("restEvents",b.slice(1,a?b.length:this.COMPACT_EVENT_COUNT).map(function(c){return c.ticketEventRenderer})); b.slice(0,a?b.length:this.COMPACT_EVENT_COUNT).forEach(function(c){var d=Tv();c=c.ticketEventRenderer.trackingParams;Sv()&&d&&c&&(c=Qv(c),d&&uz(d,c))}); this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"}; g.computeAriaLabel=function(a){return a.subtitle1+", "+a.subtitle2}; g.logTap=function(a){Sv()&&this.ytRendererBehavior.logExplicitClick(a)}; g.isKeyboardAction=function(a){return this.get("detail.x",a)===0&&this.get("detail.y",a)===0}; g.onFirstEventTap=function(a){a.target&&this.handleTap(a.target,this.firstEvent,this.isKeyboardAction(a))}; g.onTicketLinkTap=function(a){a.target&&this.handleTap(a.target,a.model.item,this.isKeyboardAction(a))}; g.handleTap=function(a,b,c){if(b.buttonCommand)if(b.hasMultipleOffers)Object.assign(z(b.buttonCommand,ky),{properties:{source:c?"keyboard":"tap"}}),this.logTap(b),this.popupPositionTarget=a,Zu(this.hostElement,[b.buttonCommand],this.hostElement);else{var d;if((d=z(b.buttonCommand,Qs))==null?0:d.url)this.logTap(b),Yb(window,z(b.buttonCommand,Qs).url)}}; RZ.prototype.onShowingMoreChanged=RZ.prototype.onShowingMoreChanged;RZ.prototype.dataChanged=RZ.prototype.dataChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],RZ.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],RZ.prototype,"data",void 0);n([M(),r("design:type",Object)],RZ.prototype,"firstEvent",void 0);n([M(),r("design:type",Object)],RZ.prototype,"restEvents",void 0);n([M(),r("design:type",String)],RZ.prototype,"imageUrl",void 0); n([M({reflectToAttribute:!0}),r("design:type",Boolean)],RZ.prototype,"showingMore",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],RZ.prototype,"canShowMore",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],RZ.prototype,"skinnyMode",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],RZ.prototype,"inStructuredDescription",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],RZ.prototype,"noDivider",void 0); n([M(),r("design:type",HTMLElement)],RZ.prototype,"popupPositionTarget",void 0);n([Tt("#banner-info-tooltip"),r("design:type",Object)],RZ.prototype,"infoTooltip",void 0);n([Tt("#info-container"),r("design:type",HTMLElement)],RZ.prototype,"infoContainer",void 0);n([Tt("#shelf-toggler"),r("design:type",HTMLElement)],RZ.prototype,"shelfToggleButton",void 0);n([Tt("#shelf-toggler-when-no-divider"),r("design:type",HTMLElement)],RZ.prototype,"shelfToggleButtonWhenNoDivider",void 0); n([Tt("#separator"),r("design:type",HTMLDivElement)],RZ.prototype,"separator",void 0);n([M(),r("design:type",String)],RZ.prototype,"shelfTogglerLabelText",void 0);n([M(),r("design:type",String)],RZ.prototype,"shelfTogglerIcon",void 0);n([cu("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],RZ.prototype,"dataChanged",null);n([cu("showingMore"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],RZ.prototype,"onShowingMoreChanged",null); n([gu({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],RZ); Tu(RZ,"ytd-ticket-shelf-renderer",function(){if(jfc!==void 0)return jfc;var a=document.createElement("template");Q(a,"
\n

[[firstEvent.title]]

\n\n \n \n \n \n \n
[[data.informationText]]
\n
\n
\n
\n
\n \n\n \n\n
\n
\n [[data.title]]\n
[[firstEvent.subtitle1]]
\n \n \n
\n \n [[firstEvent.buttonText]]\n \n \n
\n
\n\n
\n\n
\n
\n \n \n
\n \n
\n
\n
\n\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return jfc=a},{mode:1});bB(O(function(a){var b=fL(KNb,function(){return a.data().firstProviderLinkStatusEntityKey}),c=fL(KNb,function(){return a.data().secondProviderLinkStatusEntityKey}),d=function(){var e,f; return((e=b())==null?void 0:e.linked)||((f=c())==null?void 0:f.linked)}; return D("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},D(gC,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return a.data().sectionTitle}}),D(gC,{className:"ytwVideoDescriptionFantasySectionViewModelMessage", text:function(){return d()?a.data().connectedMessage:a.data().notConnectedMessage}}),D(P,{cond:d, then:function(){return D(OC,{data:function(){return a.data().connectedButton}},{buttonViewModel:function(e){return D(BD,{data:e.data, className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),D(P,{cond:function(){return!d()}, then:function(){return D(OC,{data:function(){return a.data().notConnectedButton}},{buttonViewModel:function(e){return D(BD,{data:e.data, className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Cg"),"ytw-video-description-fantasy-section-view-model",{props:{data:$A}});bB(O(function(a){var b=a.data;a={};var c={};return D("how-this-was-made-section-view-model",{class:U("ytwHowThisWasMadeSectionViewModelHost",(a.ytwHowThisWasMadeSectionViewModelCompact=function(){return b().style==="HOW_THIS_WAS_MADE_SECTION_STYLE_COMPACT"},a)), tabindex:-1},D("div",{class:U("ytwHowThisWasMadeSectionViewModelSectionTitle",(c.ytwHowThisWasMadeSectionViewModelSectionTitleRedesign=function(){return x("desktop_include_oswald")||x("mweb_include_oswald")},c))},D(gC,{text:function(){return b().sectionTitle}})),D("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},D(gC,{text:function(){return b().bodyHeader}})),D("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},D(gC,{text:function(){return b().bodyText}})),D(P,{cond:function(){return b().attributionText}, then:function(){return D("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},D(gC,{text:function(){return b().attributionText}}))}}))},"Dg"),"how-this-was-made-section-view-model",{props:{data:$A}});bB(O(function(a){var b={};return D("yt-video-description-youchat-section-view-model",{class:U("ytVideoDescriptionYouchatSectionViewModelHost")},D("h2",{class:U("ytVideoDescriptionYouchatSectionViewModelSectionTitle",(b.ytVideoDescriptionYouchatSectionViewModelSectionTitleRedesign=function(){return x("desktop_include_oswald")||x("mweb_include_oswald")},b))},D(gC,{text:function(){return a.data().sectionTitle}})),D("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},D(gC,{text:function(){return a.data().subHeaderText}})), D("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},D(BD,{data:function(){return z(a.data().primaryButton,ZJ)}})))},"Eg"),"yt-video-description-youchat-section-view-model",{props:{data:$A}});var SZ=function(){var a=E.apply(this,arguments)||this;a.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return a}; k(SZ,E);g=SZ.prototype; g.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{videoDescriptionHeaderRenderer:{component:"ytd-video-description-header-renderer",properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[watchWhileSdp]]",engagementPanel:"[[engagementPanel]]"}},expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{panelContentVisible:"[[panelContentVisible]]",hasDescriptionOnly:"[[hasDescriptionOnly]]",engagementPanel:"[[engagementPanel]]", shortsPanel:"[[shortsPanel]]"}},horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{inlineStructuredDescription:"[[inlineStructuredDescription]]"}},metadataRowContainerRenderer:{component:"ytd-metadata-row-container-renderer",params:{engagementPanelContent:!0}},merchandiseShelfRenderer:"ytd-merch-shelf-renderer",videoDescriptionCourseSectionRenderer:"ytd-video-description-course-section-renderer",videoDescriptionFilesSectionRenderer:"ytd-video-description-files-section-renderer", videoDescriptionTranscriptSectionRenderer:"ytd-video-description-transcript-section-renderer",videoDescriptionFantasySectionViewModel:"ytw-video-description-fantasy-section-view-model",videoDescriptionGamingSectionRenderer:"ytd-video-description-gaming-section-renderer",videoDescriptionInfocardsSectionRenderer:{component:"ytd-video-description-infocards-section-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoDescriptionMusicSectionRenderer:{component:"ytd-video-description-music-section-renderer", properties:{inlineStructuredDescription:"[[inlineStructuredDescription]]"}},errorCorrectionsSectionRenderer:"ytd-error-corrections-section-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},shelfRenderer:"ytd-shelf-renderer",courseProgressViewModel:"yt-course-progress-view-model",howThisWasMadeSectionViewModel:"how-this-was-made-section-view-model",videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoDescriptionYouchatSectionViewModel:"yt-video-description-youchat-section-view-model"}}, videoSummary:{id:"video-summary",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},merchShelf:{id:"merch-shelf",mapping:{merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",params:{watchMetadataRefresh:!0,inStructuredDescription:!0}}}},ticketShelf:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",params:{inStructuredDescription:!0},properties:{skinnyMode:"[[engagementPanel]]"}}}}}}; g.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)}; g.dataChanged=function(){var a,b;this.hasDescriptionOnly=!(((a=this.data)==null?void 0:(b=a.items)==null?void 0:b.length)!==1||!z(this.data.items[0],etb))}; g.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()}; g.onYtExpanderMoreTapped=function(){this.autoFocusDescription()}; g.autoFocusDescription=function(){var a;((a=Fn().resolve(Cn(tD)))==null?0:a.keyboardInUse)&&this.description&&hn(this.description)}; g.resize=function(){this.ironResizableBehavior.notifyResize();if(this.shelfSection)this.shelfSection.onParentResize()}; g.scrollToSection=function(a){if(a=this.getSectionElement(a))Xu(this.hostElement,"yt-scroll-to-watch-element",[a]),a.focus()}; g.getSectionElement=function(a){switch(a){case"infocards-item-section":var b;return(b=this.infocardsSection)!=null?b:null;case"transcript-item-section":var c;return(c=this.transcriptSection)!=null?c:null;case"how-this-was-made-section-item-section":var d;return(d=this.howThisWasMadeSection)!=null?d:null;case"files-item-section":var e;return(e=this.filesSection)!=null?e:null;default:return null;}}; g.handleSetActiveItemAction=function(a){var b=z(a,smb),c=b&&(b==null?void 0:b.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.cardList;if(b&&c){a=this.currentActiveChapter;var d=this.currentActiveProblem;b=c==null?void 0:c.getItemByIndex(b.itemIndex);var e=c=!0;b&&(b.active=!0,b.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(c=a!==b,e=!1,this.currentActiveChapter=b):(b==null?void 0:b.carouselType)==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&( c=!1,e=d!==b,this.currentActiveProblem=b));a&&c&&(a.active=!1);d&&e&&(d.active=!1)}}; ba.Object.defineProperties(SZ.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return x("web_watch_move_summary_to_sd")&&!!this.videoSummary}}}); SZ.prototype.onYtExpanderMoreTapped=SZ.prototype.onYtExpanderMoreTapped;SZ.prototype.onHiddenChanged=SZ.prototype.onHiddenChanged;SZ.prototype.dataChanged=SZ.prototype.dataChanged;SZ.prototype.panelContentVisibleChanged=SZ.prototype.panelContentVisibleChanged;n([F(Yz.YtRendererBehavior),r("design:type",Object)],SZ.prototype,"ytRendererBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],SZ.prototype,"ytRendererstamperBehavior",void 0); n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],SZ.prototype,"actionHandlerBehavior",void 0);n([F(Hs),r("design:type",Object)],SZ.prototype,"ironResizableBehavior",void 0);n([M(),r("design:type",Object)],SZ.prototype,"data",void 0);n([M(),r("design:type",Boolean)],SZ.prototype,"panelContentVisible",void 0);n([M(),r("design:type",Boolean)],SZ.prototype,"hasDescriptionOnly",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],SZ.prototype,"inlineStructuredDescription",void 0); n([M({reflectToAttribute:!0}),r("design:type",Boolean)],SZ.prototype,"hidden",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],SZ.prototype,"shortsPanel",void 0);n([M(),r("design:type",Object)],SZ.prototype,"videoSummary",void 0);n([M(),r("design:type",Object)],SZ.prototype,"merchShelf",void 0);n([M(),r("design:type",Object)],SZ.prototype,"ticketShelf",void 0);n([H("videoSummary"),r("design:type",Boolean),r("design:paramtypes",[])],SZ.prototype,"showVideoSummary",null); n([M({reflectToAttribute:!0}),r("design:type",Boolean)],SZ.prototype,"engagementPanel",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],SZ.prototype,"watchWhileSdp",void 0);n([Tt("ytd-expandable-video-description-body-renderer"),r("design:type",Object)],SZ.prototype,"description",void 0);n([Tt("ytd-horizontal-card-list-renderer"),r("design:type",Object)],SZ.prototype,"cardList",void 0); n([Tt("ytd-horizontal-card-list-renderer[center-items]"),r("design:type",Object)],SZ.prototype,"problemWalkthroughCardList",void 0);n([Tt("ytd-shelf-renderer"),r("design:type",Object)],SZ.prototype,"shelfSection",void 0);n([Tt("ytd-video-description-music-section-renderer"),r("design:type",Object)],SZ.prototype,"musicMetadataSection",void 0);n([Tt("ytd-video-description-infocards-section-renderer"),r("design:type",Object)],SZ.prototype,"infocardsSection",void 0); n([Tt("ytd-video-description-transcript-section-renderer"),r("design:type",Object)],SZ.prototype,"transcriptSection",void 0);n([Tt("how-this-was-made-section-view-model"),r("design:type",Object)],SZ.prototype,"howThisWasMadeSection",void 0);n([Tt("ytd-video-description-files-section-renderer"),r("design:type",Object)],SZ.prototype,"filesSection",void 0); n([Lt("panelContentVisible"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],SZ.prototype,"panelContentVisibleChanged",null);n([Lt("data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],SZ.prototype,"dataChanged",null);n([Lt("hidden"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],SZ.prototype,"onHiddenChanged",null); n([Kt("yt-expander-more-tapped"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],SZ.prototype,"onYtExpanderMoreTapped",null);n([gu({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],SZ); Tu(SZ,"ytd-structured-description-content-renderer",function(){if(ifc!==void 0)return ifc;var a=document.createElement("template");Q(a,"\n\n\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return ifc=a},{mode:2});function TZ(a,b){if(typeof a!=="object")return null;a=l(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=l(c.value);c=d.next().value;d=d.next().value;if(c===b)return c;if(d=TZ(d,b))return c+"."+d}return null} function kfc(a){var b=a.content;return(a=a.styleRuns)&&b?{runs:a.map(function(c){var d={text:b.slice(c.startIndex,c.startIndex+c.length)};c.fontColor&&(d.textColor=c.fontColor);return d})}:{simpleText:b}} ;var lfc;var mfc;var UZ=function(){return E.apply(this,arguments)||this}; k(UZ,E);UZ.prototype.configureRendererStamper=function(){return{"data.summaryText":{id:"summary-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer",cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer",params:{iconSize:18}}}},"data.additionalMetadataText":{id:"additional-metadata-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.price":{id:"price",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}}}}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],UZ.prototype,"ytRendererBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],UZ.prototype,"ytComponentBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],UZ.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],UZ.prototype,"data",void 0);n([gu({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],UZ); Tu(UZ,"ytd-commerce-cart-summary-line-item-renderer",function(){if(mfc!==void 0)return mfc;var a=document.createElement("template");Q(a,"
\n
\n
\n
\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return mfc=a},{mode:1});kE("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var VZ=function(){var a=E.apply(this,arguments)||this;a.hidden=!1;return a}; k(VZ,E);g=VZ.prototype;g.configureRendererStamper=function(){return{"data.estimatedTotalLineItem":{id:"estimated-total-line-item",mapping:{commerceCartSummaryLineItemRenderer:"ytd-commerce-cart-summary-line-item-renderer"}},"data.checkoutButton":{id:"checkout-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}},"data.cartButton":{id:"cart-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}}; g.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())}; g.updateSummary=function(){var a=this.commerceCartCheckoutButtonEntity,b;if(((b=this.data)==null?0:b.cartButton)&&a.checkoutSummaryText){var c,d=TZ((c=this.data)==null?void 0:c.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+d+".cardItemTextRenderer.text",kfc(a.checkoutSummaryText));if(a.checkoutDetailText){var e;c=TZ((e=this.data)==null?void 0:e.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+c+".cardItemTextRenderer.text",kfc(a.checkoutDetailText))}if(a.checkoutAdditionalMetadataText){var f; e=TZ((f=this.data)==null?void 0:f.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+e+".cardItemTextRenderer.text",kfc(a.checkoutAdditionalMetadataText))}}else a.estimatedTotalPrice&&(f=TZ((d=this.data)==null?void 0:d.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+f+".cardItemTextRenderer.text",kfc(a.estimatedTotalPrice)))}; g.updateIsHidden=function(){var a,b=(a=this.commerceCartCheckoutButtonEntity)==null?void 0:a.isHidden;b!==void 0&&(this.hidden=b)}; g.updateCheckoutButton=function(){var a,b=(a=this.commerceCartCheckoutButtonEntity)==null?void 0:a.isDisabled;b!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",b);var c;a=(c=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:c.innertubeCommand;a!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",a);var d;c=(d=this.commerceCartCheckoutButtonEntity)==null?void 0:d.checkoutButtonText;c!==void 0&&this.set("data.checkoutButton.buttonRenderer.text", {simpleText:c})}; VZ.prototype.entityChanged=VZ.prototype.entityChanged;n([F(kC),r("design:type",Object)],VZ.prototype,"ytdReduxBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],VZ.prototype,"ytRendererBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],VZ.prototype,"ytComponentBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],VZ.prototype,"ytRendererstamperBehavior",void 0); n([M({reflectToAttribute:!0}),r("design:type",Boolean)],VZ.prototype,"fullWidth",void 0);n([M(),r("design:type",Object)],VZ.prototype,"data",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],VZ.prototype,"compact",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],VZ.prototype,"hidden",void 0);n([M({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:function(a,b){return yA(a.entities,"commerceCartCheckoutButtonEntity",b)}}), r("design:type",Object)],VZ.prototype,"commerceCartCheckoutButtonEntity",void 0);n([Lt("commerceCartCheckoutButtonEntity","data"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],VZ.prototype,"entityChanged",null);n([gu({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],VZ); Tu(VZ,"ytd-commerce-cart-checkout-button-renderer",function(){if(lfc!==void 0)return lfc;var a=document.createElement("template");Q(a,"
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return lfc=a},{mode:2});var nfc;var ofc;var WZ=function(){return E.apply(this,arguments)||this}; k(WZ,E);WZ.prototype.computeAriaLabel=function(a){var b,c;return(a==null?void 0:(b=a.accessibility)==null?void 0:(c=b.accessibilityData)==null?void 0:c.label)||zy("LOADING",void 0,"Loading")}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],WZ.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],WZ.prototype,"data",void 0);n([M({computed:"computeAriaLabel(data)"}),r("design:type",String)],WZ.prototype,"ariaLabel",void 0);n([fu({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],WZ); Tu(WZ,"yt-content-loading-renderer",function(){if(ofc===void 0){var a=document.createElement("template");Q(a,"\n\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;nfc===void 0&&(nfc=document.createElement("template"));var d=nfc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);ofc=a}a=ofc;return a},{mode:1});var pfc=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("XwMZve"),2);a=SD;return b.return(a)})},qfc=yD(function(){return pfc()},{debugName:"switchListItemViewModel"}); Gn(xD,function(a){a.registerLoadFn("switchListItemViewModel","XwMZve",pfc)});bB(O(function(a){var b=l(ip(!1,void 0,"hxNsue")),c=b.next().value,d=b.next().value;b=l(ip(!1,void 0,"bAjXKb"));var e=b.next().value,f=b.next().value;rw(function(){var p=z(a.data().collaboratePlaylistCollaborationSetting,Jsb);p&&d(p.switchedOnByDefault);var q=z(a.data().allowNewCollaboratorsPlaylistCollaborationSetting,Jsb);q&&f(q.switchedOnByDefault);if(!p&&!q||!p&&a.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")d(!0),f(!0)}); var h=function(p){d(p);f(p);var q=a.data().playlistCollaborationEntityKey||"";var t=Au().getState();(t=yA(t.entities,"playlistCollaborationEntity",q))&&(t==null?void 0:t.isCollaborative)===p||Au().dispatch(dA("playlistCollaborationEntity",q,Object.assign({},t,{isCollaborative:p})))},m=function(p){f(p)}; return D("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},D("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},D(OC,{data:function(){return a.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(p){return D(qfc,{data:p.data, onSwitch:h,disableFormsApiMode:!0})}})),D(P,{cond:c, then:function(){return D(mq,null,D("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},D(OC,{data:function(){return a.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(p){return D(qfc,{data:p.data, onSwitch:m,overrideDisabled:!1,disableFormsApiMode:!0})}})),D(P,{cond:e, then:function(){return D("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},D(OC,{data:function(){return a.data().copyLinkButton}},{buttonViewModel:BD}))}}),D("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},D(OC,{data:function(){return a.data().playlistCollaborators}},{contentListItemViewModel:lZb})))}}))},"Fg"),"playlist-collaboration-view-model",{props:{data:$A}});var sfc=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("C7eYCf"),2);a=rfc;return b.return(a)})},tfc=yD(function(){return sfc()},{debugName:"adAvatarLockupViewModel"}); Gn(xD,function(a){a.registerLoadFn("adAvatarLockupViewModel","C7eYCf",sfc)});function ufc(a){var b=xO(),c;if(c=xa("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var d;c=(d=c())==null?void 0:d.layoutId}else c=null;U8b(b,c,a)} ;bB(O(function(a){var b=a.data;var c=a.panelContentVisibility;a=vw({visibilityCallback:function(f){var h,m=(h=b().interaction)==null?void 0:h.onFirstVisible;f&&m&&QB(m)}, showOption:tT});var d=wT(function(){return b().interaction},ufc); yp(function(){var f,h;if(h=xa("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var m;h=(m=h())==null?void 0:m.onLayoutVisibleCallback}else h=null;(f=h)==null||f()},"Gg"); var e=function(){return c()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"}; return D("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:dB(a,d)},D("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},D("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},D(P,{cond:dP("(min-width: "+(dyb()+eyb)+"px) or (max-width: 600px)"),then:function(){return D(OC,{data:function(){return b().adImage}},{adImageViewModel:function(f){return D(LUb,{data:f.data, targetHeight:80,customCommandResolver:ufc})}})}})),D("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},D("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},D(OC,{data:function(){return b().adAvatarLockup}},{adAvatarLockupViewModel:function(f){return D(tfc,{data:f.data, customCommandResolver:ufc})}})),D(P,{cond:e, then:function(){return D(OC,{data:function(){return b().adButton}},{adButtonViewModel:function(f){return D(yT,{data:f.data, customCommandResolver:ufc})}})}, else:function(){return D(OC,{data:function(){return b().menu}},{buttonViewModel:BD})}}),D("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},D(OC,{data:function(){var f=z(b().toggleButton,aK); return{toggleButtonViewModel:Object.assign({},f,{isTogglingDisabled:!0,isToggled:e()})}}},{toggleButtonViewModel:CD})))))},"Hg"),"panel-ad-header-image-lockup-view-model",{props:{data:$A, panelContentVisibility:$A}});var vfc=new Bn("BUTTON_RENDERER_TOKEN");var pQb=O(function(a){var b=Fn().resolve(vfc);return D(b,Object.assign({},a,{overrides:a.buttonOverrides}))},"Ig");var xfc=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("Um7iMb"),2);a=wfc;return b.return(a)})},yfc=yD(function(){return xfc()},{debugName:"itemSectionRenderer"}); Gn(xD,function(a){a.registerLoadFn("itemSectionRenderer","Um7iMb",xfc)});function zfc(a,b){b=b!=null?b:{};var c=b.clearOnMount,d=b.clearOnNavigation,e=function(){var f=So(function(){return a==null?void 0:a()}); f&&LC.persistentCache.remove(f)}; So(function(){return c==null?void 0:c()})&&e(); qw(function(){if(So(function(){return d==null?void 0:d()})){var f; (f=Fn().resolve(Cn(RR)))==null||f.addEventListener("yt-navigate-start",e);return function(){var h;(h=Fn().resolve(Cn(RR)))==null||h.removeEventListener("yt-navigate-start",e)}}})} ;var Bfc=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("DvZC9"),2);a=Afc;return b.return(a)})},Cfc=yD(function(){return Bfc()},{debugName:"continuationItemViewModel"}); Gn(xD,function(a){a.registerLoadFn("continuationItemViewModel","DvZC9",Bfc)});var Efc=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("Vam5wd"),2);a=Dfc;return b.return(a)})},Ffc=yD(function(){return Efc()},{debugName:"aiSearchResultSectionRenderer"}); Gn(xD,function(a){a.registerLoadFn("aiSearchResultSectionRenderer","Vam5wd",Efc)});var Gfc=["macro-markers-panel-item-view-model"];bB(O(function(a){var b=a.className,c=a.marginSettings,d=a.overscrollContain,e=a.pageSubtype,f=a.contentPreviewWidth,h=a.disableScroll,m=a.disableContinuationPersistence,p=a.clearCacheOnNavigation,q=l(kQ(a.data,{persist:!0})).next().value,t=l(TV()),u=t.next().value,v=t.next().value,w=dB(),y,A=function(){var R;return{percentOffset:q().selectedItemAlignmentPercentOffset,floatingPillType:(R=q().floatingPillRenderers)==null?void 0:R.floatingPillType}}; t=dB(function(R){v(R);var W=q().syncModelEntityKey;if(W){var S=q().headerStyle==="SECTION_LIST_HEADER_STYLE_STICKY"&&w.value?w.value:R;y=new yZ(S,R,Gfc.join(" "),W,A());y.panelContentVisibleChanged(!0);return function(){var Y;(Y=y)==null||Y.dispose();y=void 0}}}); lw(function(){q();var R=A(),W=q().syncModelEntityKey,S;(S=y)!=null&&(S.options=R);if(W){var Y;(Y=y)==null||Rec(Y,W)}var da;(da=y)==null||xZ(da,!1)},"exu0Mb"); var C=function(){return q().targetId||""},I=function(){var R=(c==null?void 0:c())===0,W=u.width(),S; var Y=z((S=q().sectionListLayoutConfiguration)==null?void 0:S.layoutConfiguration,xrb);return Y0b(W,Y,R)},K=function(){var R; return(R=I())==null?void 0:R.containerLayoutConfig},N=function(){var R,W; return(W=(R=a.containerHeight)==null?void 0:R.call(a))!=null?W:u.height()}; zfc(C,{clearOnNavigation:p,clearOnMount:m});var L={};return D("yt-section-list-renderer",{class:U("ytSectionListRendererHost",b,(L.ytSectionListRendererHostOverscrollContain=function(){return d==null?void 0:d()},L.ytSectionListRendererHostEnableScroll=function(){return!(h==null?0:h())},L.ytSectionListRendererStickyHeader=function(){return q().headerStyle==="SECTION_LIST_HEADER_STYLE_STICKY"},L)), role:function(){return(e==null?void 0:e())==="ai-search"?"log":void 0}, "aria-label":function(){return(e==null?void 0:e())==="ai-search"?"Search results":void 0}, "aria-live":function(){return(e==null?void 0:e())==="ai-search"?"polite":void 0}, el:t,"data-target-id":C},D("div",{class:U("ytSectionListRendererHeader"),hidden:function(){return!q().header}},D(OC,{data:function(){return q().header}},{searchInputViewModel:Nzb})),D("div",{class:"ytSectionListRendererContents", el:w},D(OC,{data:function(){return q().contents}},{itemSectionRenderer:function(R){return D(yfc,{data:R.data, containerLayoutConfig:K,responsiveLayout:I,marginSettings:c,containerHeight:N,contentPreviewWidth:f,disableContinuationPersistence:m,clearCacheOnNavigation:p})}, aiSearchResultSectionRenderer:function(R){return D(Ffc,{data:R.data,containerLayoutConfig:K,marginSettings:c,containerHeight:N,pageSubtype:e})}, continuationItemViewModel:Cfc})),D("div",{class:"ytSectionListRendererSyncContainer",hidden:function(){return!q().floatingPillRenderers}},D(OC,{data:function(){var R; return(R=q().floatingPillRenderers)==null?void 0:R.buttonRenderer}},{buttonRenderer:function(R){return D(pQb,{data:R.data, handleButtonClickCallback:function(){var W;(W=y)==null||xZ(W)}})}})))},"Lg"),"yt-section-list-renderer",{props:{data:$A, className:aB,marginSettings:$A,overscrollContain:$A,pageSubtype:$A,containerHeight:$A,disableScroll:$A,contentPreviewWidth:$A,disableContinuationPersistence:$A,clearCacheOnNavigation:$A}});function Hfc(a){return{listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:a}}]}}}} function Ifc(a,b,c,d){var e=x("web_enable_chat_autoscroll_to_user_turn")?"user_turn_message_id-"+Date.now():void 0;b=Object.assign({},{text:b,hasGradientBackground:c},d&&{backgroundStyle:d},e&&{itemTargetId:e},void 0);e=e?{scrollToItem:{scrollPosition:"SCROLL_POSITION_START",item:Object.assign({},{itemTargetId:e},{sectionTargetId:"youchat_section_list"})}}:void 0;return{listMutationCommand:{operations:Object.assign({},{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:b}],insertByPositionInSection:{sectionTargetId:a, position:"INSERTION_POSITION_LAST"}}}]},e?{scrollConfig:e}:{})}}} function Jfc(a){return{continuationCommand:{token:a,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}}} function XZ(a){var b=a.clientMessageId;var c=a.playerOffsetMs;var d=a.pageContext;var e=a.userInputText;a=a.lastMessageId;b={clientMessageId:b};c&&(b.playerOffsetMs=c);d&&(b.pageContext=d);e&&(b.userInputText=e);a&&(b.previousClientMessageId=a);return{inputComposerFormData:b}} ;var YZ=new Bn("AI_CHAT_CONTROLLER_TOKEN");function Kfc(a,b){return yA(a.entities,"youchatPendingResponseEntity",b)} function Lfc(a){return function(b){Bu(dA("youchatPendingResponseEntity",a,{entityKey:a,isPendingResponse:b}))}} function Mfc(a,b){return yA(a.entities,"booleanEntity",b)} function Nfc(){return function(a){Bu(dA("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:a}))}} ;function Ofc(a){a.style.height="auto";a.style.height=Math.min(a.scrollHeight||20,80)+"px"} function Pfc(){var a;return String(Math.floor(((a=(0,ND.getPlayer)())==null?void 0:a.getCurrentTime())||0)*1E3)} ;bB(O(function(a){var b=a.data;a=x("web_enable_ask_disclaimer_update");var c=function(){return z(b().inputComposerViewModel,Lsb)},d=eL(iQ.currentPageSubTypeSelector),e=eL(iQ.persistentPanelVisibleSelector),f=fL(iCb,function(){return b().lastMessageIdEntityKey}),h=function(){var Oa; return(Oa=f())==null?void 0:Oa.value},m=l(ip(!1,void 0,"I6cXDd")),p=m.next().value,q=m.next().value; m=l(ip(!1,void 0,"qQBx9c"));var t=m.next().value,u=m.next().value,v=function(){K(!0);var Oa;QB(((Oa=c())==null?void 0:Oa.onSubmitCommand)||{})},w=function(){if(e()&&!t()){var Oa; (Oa=(0,ND.getPlayer)())==null||Oa.removeCueRange("aic-proactive");q(!1);u(!0);v();OB(Jfc(c().endOfVideoContinuation),{form:{formData:XZ({clientMessageId:"youchat-"+Date.now(),pageContext:qb(),lastMessageId:h()})},commandController:{onSuccess:function(){K(!1)}, onServerError:function(){OB(Hfc(R()));K(!1)}}})}},y=function(){var Oa=(0,ND.getPlayer)(); if(Oa&&!p()&&!t()){var Ca=Oa.getDuration();Ca>60&&(Oa.addCueRange("aic-proactive",Ca-60,Ca-20),q(!0))}},A=function(){var Oa; return((Oa=c())==null?void 0:Oa.youchatPendingResponseEntityKey)||""},C=fL(Kfc,A),I=function(){var Oa; return!((Oa=C())==null||!Oa.isPendingResponse)},K=function(Oa){Lfc(A())(Oa)}; m=l(ip(!0,void 0,"Do1bof"));var N=m.next().value,L=m.next().value,R=function(){return c().sectionTargetId||"youchat_messages_section"},W=function(){var Oa; return b().disclaimerText||((Oa=z(b().disclaimer,Drb))==null?void 0:Oa.text)}; m=tw("yt-chat-input-view-model");var S=sw("textarea"),Y=fL(Mfc,"chat_input_view_model_state"),da=Nfc(),Aa=function(){var Oa;return!((Oa=Y())==null||!Oa.value)},Sa=function(){return b().environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"},Ua=function(){var Oa; (Oa=(0,ND.getPlayer)())==null||Oa.removeCueRange("aic-proactive");q(!1);u(!1);var Ca;x("enable_navigational_proactive_messages_on_ai_companion")&&((Ca=c())==null?0:Ca.navigationContinuation)&&e()&&(v(),OB(Jfc(c().navigationContinuation),{form:{formData:XZ({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:Pfc(),pageContext:qb(),lastMessageId:h()})},commandController:{onSuccess:function(){K(!1)}, onServerError:function(){OB(Hfc(R()));K(!1)}}}))},qb=function(){var Oa; return(Oa=Fn().resolve(Cn(YZ)))==null?void 0:Oa.getPageContext(d())}; rw(function(){if(x("enable_ai_chat_controller")){var Oa;(Oa=Fn().resolve(Cn(YZ)))==null||Oa.init(b().environment)}else if(Oa=b().onWelcomeCommand,!Aa()&&Oa){var Ca;((Ca=c())==null?0:Ca.setPendingResponseOnWelcome)&&K(!0);QB(Oa,{form:{formData:XZ({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:Pfc(),pageContext:qb(),lastMessageId:h()})}});da(!0)}var eb=R(),Qa=Fn().resolve(Cn(RR)),Bb=function(){if(x("enable_ai_chat_controller")){var Nb;(Nb=Fn().resolve(Cn(YZ)))==null||Nb.onNavigateStart()}else da(!1)}, dc=function(){So(function(){if(Sa()&&(Ua(eb),d()==="watch")){var Nb=(0,ND.getPlayer)(); Nb&&(Nb.addEventListener("onStateChange",y),Nb.addEventListener("onCueRangeEnter",w))}})}; Ca=x("enable_ai_companion")?!Sa():!0;Qa==null||Qa.addEventListener("yt-navigate-start",Bb,{once:Ca});Qa==null||Qa.addEventListener("yt-navigate-finish",dc,{once:Ca});zp(function(){Qa==null||Qa.removeEventListener("yt-navigate-start",Bb);Qa==null||Qa.removeEventListener("yt-navigate-finish",dc);var Nb=(0,ND.getPlayer)();Nb&&(Nb.removeEventListener("onCueRangeEnter",w),Nb.removeEventListener("onStateChange",y),Nb.removeCueRange("aic-proactive"))})}); lw(function(){if(x("enable_ai_chat_controller")){var Oa=LB(b().onWelcomeCommand);if(Oa){var Ca,eb=((Ca=c())==null?0:Ca.setPendingResponseOnWelcome)?K:void 0,Qa;(Qa=Fn().resolve(Cn(YZ)))==null||Qa.updateWelcomeContinuation({command:Oa,setPending:eb})}}},"FiEYue"); var ab=FC(function(Oa){var Ca=I()||!1;Ofc(S.value);Ca||Oa.key!=="Enter"||Oa.shiftKey||(Oa.preventDefault(),ib());return!1}),La=FC(function(){L(S.value.value.length===0); return!1}),ib=function(){var Oa=S.value.value; S.value.value="";Ofc(S.value);var Ca,eb=((Ca=c())==null?void 0:Ca.enableGradientColorBg)||!1,Qa;Ca=Ifc(R(),Oa,eb,(Qa=c())==null?void 0:Qa.chatUserTurnBackgroundStyle);OB(Ca);v();var Bb,dc,Nb;Qa=(Nb=LB((Bb=b())==null?void 0:Bb.sendUserQueryCommand))!=null?Nb:Jfc((dc=c())==null?void 0:dc.continuation);OB(Qa,{form:{formData:XZ({clientMessageId:"youchat-"+Date.now(),userInputText:Oa,playerOffsetMs:Pfc(),pageContext:qb(),lastMessageId:h()})},commandController:{onSuccess:function(){K(!1)}, onServerError:function(){OB(Hfc(R()));K(!1)}}})},sb=O(function(Oa){var Ca={}; return D(gC,{className:U("chatInputViewModelChatDisclaimer",(Ca.chatInputViewModelChatDisclaimerAboveInput=Oa.isAboveInput,Ca)),text:W})},"Ng"); return D("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:m},D("div",{class:"chatInputViewModelChatInputWrapper"},a?D(P,{cond:function(){return!h()}, then:function(){return D(sb,{isAboveInput:!0})}}):null,D("form",{class:"chatInputViewModelChatInputForm"},D("textarea",{class:"chatInputViewModelChatInput", el:S,"on:keydown":ab,"on:keyup":La,"aria-label":function(){if(I()){var Oa,Ca;return((Oa=c())==null?void 0:(Ca=Oa.loadingConfig)==null?void 0:Ca.loadingAnimationA11yLabel)||""}}, placeholder:function(){var Oa,Ca;var eb=z((Ca=c())==null?void 0:Ca.inputFormField,Ksb);return eb==null?void 0:(Oa=eb.contentProperties)==null?void 0:Oa.placeholderText}, rows:1}),D(BD,{data:function(){return z(b().sendButton,ZJ)}, onClick:function(Oa){Oa.preventDefault();ib();L(S.value.value.length===0)}, buttonOverrides:function(){return{disabled:N()||I()}}})),a?null:D(sb,{isAboveInput:!1}),D(P,{cond:function(){return z(b().promoButton,ZJ)}, then:function(Oa){return D(BD,{className:"chatInputViewModelPromoButton",data:Oa})}})))},"Og"),"yt-chat-input-view-model",{props:{data:$A}});var Qfc=["engagement-panel-clip-create","engagement-panel-clip-view"],Rfc=0,ZZ=function(){var a=E.apply(this,arguments)||this;var b;a.headerData=(b=a.data)==null?void 0:b.header;a.matchContentTheme=x("web_watch_panel_content_match_theme");a.disableAutoFill=!1;a.isFullscreen=!1;a.isTheaterMode=!1;a.liveChatReplyPanel=!1;a.isPersistentPanel=!1;a.overscrollContain=!1;a.useEngagementPanelForStructuredDescription=!1;a.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction", "yt-scroll-to-engagement-panel-command":"onYtScrollToEngagementPanelCommand","yt-update-engagement-panel-action":"onYtUpdateEngagementPanelAction","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction"};return a}; k(ZZ,E);g=ZZ.prototype;g.headerDataChanged=function(){var a=this;if(x("web_ep_header_focus_a11y_fix")){var b=document.activeElement,c;((c=this.headerElement)==null?0:c.contains(b))&&ms(this,function(){var d=a.headerElement.querySelectorAll(b.tagName);d=l(d);for(var e=d.next();!e.done;e=d.next())if(e=e.value,e.isEqualNode(b)){e.focus();break}})}}; g.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]",learningChatEngagementPanel:"[[learningChatEngagementPanel]]",darkerPanels:"[[darkerPanels]]"}},panelAdHeaderImageLockupViewModel:{component:"panel-ad-header-image-lockup-view-model"},pageHeaderViewModel:{component:"yt-page-header-view-model"}}, events:!0},"data.content":{id:"content",mapping:{sectionListRenderer:{matcher:function(a){var b;return(a==null?void 0:(b=a.webComponentHint)==null?void 0:b.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":"ytd-section-list-renderer"}, params:{engagementPanel:!0,clearCacheOnNavigation:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]",overscrollContain:"[[overscrollContain]]"}},continuationItemRenderer:"ytd-continuation-item-renderer",richGridRenderer:"ytd-rich-grid-renderer",transcriptRenderer:"ytd-transcript-renderer",clipSectionRenderer:"ytd-clip-section-renderer", adsEngagementPanelContentRenderer:"ytd-ads-engagement-panel-content-renderer",macroMarkersListRenderer:"ytd-macro-markers-list-renderer",searchInVideoRenderer:"ytd-search-in-video-renderer",structuredDescriptionContentRenderer:{component:"ytd-structured-description-content-renderer",params:{engagementPanel:!0},properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[isWatchWhilePanel]]"}},mediaUpsellRenderer:"ytd-media-upsell-renderer",productListRenderer:"ytd-product-list-renderer",contentLoadingRenderer:"yt-content-loading-renderer", flowRootRenderer:"ytd-flow-root-renderer",sponsorshipsGiftingOptInRenderer:"ytd-sponsorships-gifting-opt-in-renderer",playlistCollaborationViewModel:"playlist-collaboration-view-model"},events:!0},"data.footer":{id:"footer",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}},cardItemRenderer:"yt-card-item-renderer",chatInputViewModel:"yt-chat-input-view-model",liveChatEngagementPanelInputRenderer:{component:"yt-live-chat-engagement-panel-input-renderer", properties:{inReplyPanel:"[[liveChatReplyPanel]]",hideBorder:"[[hideFooterBorder]]"}},liveLeaderboardItemViewModel:"ytvl-live-leaderboard-item-view-model",disableableButtonViewModel:"yt-disableable-button-view-model"}}}}; g.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var a;if((a=this.hostElement.parentElement)==null?0:a.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)}; g.detached=function(){this.updateTheaterDisablement()}; g.showPanel=function(){var a=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?Hl(0,function(){a.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}; g.maybeScrollToItemSection=function(a){var b=this,c,d=a==null?void 0:(c=a.sectionListEngagementPanelExtras)==null?void 0:c.scrollToItemSectionIdentifier;d&&Hl(0,function(){var e;(e=b.sectionListRendererElement)==null||e.scrollToItemSection(d)},8)}; g.hidePanel=function(){var a=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?Hl(0,function(){a.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"}; g.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"}; g.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}}; g.updatePanel=function(a,b,c,d){var e=this;if((a=a==null?void 0:a.engagementPanelSectionListRenderer)||d){if(a){d=a.header;var f=a.content,h=a.footer,m=a.targetId,p=a.onShowCommands;a=a.onHideCommands;m&&this.set("data.targetId",m);d&&this.set("data.header",d);f&&this.set("data.content",f);h&&this.set("data.footer",h);x("enable_on_visibility_change_commands_for_panels")&&(p&&this.set("data.onShowCommands",p),a&&this.set("data.onHideCommands",a))}else d&&(a=d.content,f=d.secondaryHeaderContent,h=d.targetId, d=d.loggingDirectives,h&&this.set("data.targetId",h),a&&this.set("data.content",a),d&&this.set("data.loggingDirectives",d),f&&(this.secondaryHeaderData=f));this.updateChildVisibilityProperties();if(b){var q;x("kevlar_update_panel_focus_scroll_killswitch")||(q={preventScroll:!0});this.focus(q)}ms(this,function(){Gt(e.hostElement,"yt-refit");e.maybeScrollToItemSection(c)})}}; g.onShowCommandsChanged=function(){var a=this;if(x("web_video_companion_modern_transcript")){var b;this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&((b=this.data)==null?0:b.onShowCommands)&&this.data.onShowCommands.forEach(function(c){a.ytComponentBehavior.resolveCommand(c)})}}; g.computeHeaderData=function(){var a,b=Yh((a=this.data)==null?void 0:a.header);if(b){a=new Qk(Object.keys(b)[0]);var c=z(b,a),d=z(this.secondaryHeaderData,a);d&&FB(b,a,Object.assign({},d,c))}return b}; g.getReloadContinuation=function(){var a,b,c,d=l(((a=this.data)==null?void 0:(b=a.content)==null?void 0:(c=b.sectionListRenderer)==null?void 0:c.continuations)||[]);for(a=d.next();!a.done;a=d.next())if(a=a.value,a.reloadContinuationData)return a.reloadContinuationData.continuation}; g.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var a;((a=this.data)==null?0:a.targetId)&&(a=this.contentElement.firstElementChild)&&a.setAttribute("panel-target-id",this.data.targetId)}; g.forwardPopupClosedToFlowRootRenderer=function(){var a=wt(this.hostElement).querySelector("ytd-flow-root-renderer");if(a&&this.hostElement.closest("ytd-popup-container"))a.onPopupClosed()}; g.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var a;if(!Qfc.includes((a=this.theaterDisablementPanelIdentifier)!=null?a:""))if(a=x("web_watch_imax_theater_mode")&&this.isTheaterMode,a=this.isFullscreen||a,this.getIdentifier()!=="engagement-panel-structured-description"||this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||a||this.useEngagementPanelForStructuredDescription){var b; this.visibility=(b=this.data)==null?void 0:b.visibility;var c;if(((c=this.data)==null?void 0:c.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");else{var d;if(((d=this.data)==null?void 0:d.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"){var e,f,h;(b=((e=this.data)==null?void 0:(f=e.identifier)==null?void 0:f.tag)||((h=this.data)==null?void 0:h.panelIdentifier))&&XA.dispatch(RVa(b))}}var m,p,q,t;this.contentEmpty=!!(((m=this.data)== null?0:(p=m.content)==null?0:p.structuredDescriptionContentRenderer)&&Object.keys((q=this.data)==null?void 0:(t=q.content)==null?void 0:t.structuredDescriptionContentRenderer).length===0);(e=Fn().resolve(GL))&&RIb(e,this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility}; g.useEngagementPanelForStructuredDescriptionChanged=function(){if(this.useEngagementPanelForStructuredDescription&&this.getIdentifier()==="engagement-panel-structured-description"){var a=Fn().resolve(GL);a&&RIb(a,this.getIdentifier(),this)}}; g.isTheaterModeChanged=function(){x("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.isAiCompanionPanel||this.hidePanel())}; g.isFullscreenChanged=function(){x("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.isAiCompanionPanel||this.hidePanel())}; g.focus=function(a){if(this.header)this.header.focus(a);else{var b;(b=wt(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||b.focus(a)}}; g.visibilityChanged=function(){if(!x("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var a=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",b=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",c=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",d=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",e=d||!this.lastVisibility,f,h,m,p=((f=this.data)==null?void 0:(h=f.identifier)==null?void 0:h.tag)||( (m=this.data)==null?void 0:m.panelIdentifier);if(a&&e){var q;if((q=this.data)==null?0:q.onShowCommands)if(x("enable_on_visibility_change_commands_for_panels"))for(b=l(this.data.onShowCommands),c=b.next();!c.done;c=b.next())this.ytComponentBehavior.resolveCommand(c.value);else Zu(this.hostElement,this.data.onShowCommands,this.hostElement);p&&XA.dispatch(aA({type:"MAIN_APP_ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:p}}))}else if(b&&c){var t;if((t=this.data)==null?0:t.onHideCommands)if(x("enable_on_visibility_change_commands_for_panels"))for(b= l(this.data.onHideCommands),c=b.next();!c.done;c=b.next())this.ytComponentBehavior.resolveCommand(c.value);else Zu(this.hostElement,this.data.onHideCommands,this.hostElement);p&&XA.dispatch(RVa(p))}a&&this.lastVisibility!==void 0&&(this.hostElement.style.order=String(-1*Rfc++));a&&d&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility}; g.notifyVisibilityChanged=function(a){var b;Yu(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,a,(b=this.data)==null?void 0:b.targetId,this.getIdentifier()]);if(x("autonav_pause_for_comments_ep")){var c;Gt(this.hostElement,"yt-autonav-engagement-panel-visible-changed",{visible:a==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",targetId:(c=this.data)==null?void 0:c.targetId})}}; g.updateTheaterDisablement=function(){if(!x("kevlar_watch_theater_disablement_killswitch")){var a=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&Qfc.includes(a)&&!x("watch_next_grid_ignore_disallowed_panels")){var b=WOb(XA.getState()),c=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";a!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():c?(this.originalTheaterState===void 0&&(this.originalTheaterState=b,this.theaterDisablementPanelIdentifier= a),b&&Xu(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}}; g.clearTheaterDisablement=function(){Xu(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0}; g.updateChildVisibilityProperties=function(){this.hostElement||this._enableProperties();var a=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=a);var b,c=(b=this.headerElement)==null?void 0:b.firstElementChild;if(c&&!this.adHeaderImageLockupViewModel){b=a==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";c.collapsed=b;c=wt(c).querySelector("#visibility-button");if(!c)return;(c=c.firstElementChild)&&c.polymerController.is==="ytd-toggle-button-renderer"&& c.polymerController.data.isToggled!==b&&c.polymerController.set("data.isToggled",b)}var d;if(b=(d=this.contentElement)==null?void 0:d.firstElementChild)if(a&&a!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")b.removeAttribute("panel-content-visible");else{b.setAttribute("panel-content-visible","");var e;(e=b.markDirty)==null||e.call(b)}}; g.onYtChangeEngagementPanelVisibilityAction=function(a){var b=this,c,d=(c=this.data)==null?void 0:c.targetId,e,f,h;c=((e=this.data)==null?void 0:(f=e.identifier)==null?void 0:f.tag)||((h=this.data)==null?void 0:h.panelIdentifier);var m=z(a,imb),p;a=d&&(m==null?void 0:m.targetId)===d||c&&(m==null?void 0:(p=m.panelIdentifier)==null?void 0:p.tag)===c;this.dialog&&a&&(m==null?void 0:m.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(d==="engagement-panel-comments-section"?Xu(this.hostElement,"yt-close-popup-action", ["ytd-engagement-panel-section-list-renderer"]):Xu(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",c]));!x("kevlar_use_engagement_panel_management_component")&&a&&(d=m.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!d?Hl(0,function(){b.visibility=m.visibility},2,this.hideDelayMs):this.visibility=m.visibility,m.visibility&&this.notifyVisibilityChanged(m.visibility))}; g.onYtScrollToEngagementPanelCommand=function(a){var b=this,c,d=(c=this.data)==null?void 0:c.targetId,e,f,h;c=((e=this.data)==null?void 0:(f=e.identifier)==null?void 0:f.tag)||((h=this.data)==null?void 0:h.panelIdentifier);a=z(a,qmb);var m;(d&&(a==null?void 0:a.targetId)===d||c&&(a==null?void 0:(m=a.panelIdentifier)==null?void 0:m.tag)===c)&&Hl(0,function(){b.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&Xu(b.hostElement,"yt-scroll-to-watch-element",[b.hostElement])},2,0)}; g.attachVEs=function(a){var b,c;(a==null?0:(b=a.content)==null?0:(c=b.productListRenderer)==null?0:c.trackingParams)&&Lz(gz(),a.content.productListRenderer.trackingParams);var d,e;(a==null?0:(d=a.content)==null?0:(e=d.transcriptRenderer)==null?0:e.trackingParams)&&Lz(gz(),a.content.transcriptRenderer.trackingParams)}; g.onYtUpdateEngagementPanelAction=function(a){var b,c=(b=this.data)==null?void 0:b.targetId;a=z(a,xmb);c&&(a==null?void 0:a.targetId)===c&&(this.updatePanel({engagementPanelSectionListRenderer:{header:a==null?void 0:a.header,content:a==null?void 0:a.content}},!1),this.attachVEs(a))}; g.onYtShowEngagementPanelScrimAction=function(a){if(!x("web_disable_ep_scrim")){var b,c=(b=this.data)==null?void 0:b.targetId;a=z(a,tmb);c&&(a==null?void 0:a.engagementPanelTargetId)===c&&(this.scrimmed=!0)}}; g.onYtHideEngagementPanelScrimAction=function(a){var b,c=(b=this.data)==null?void 0:b.targetId;a=z(a,kmb);c&&(a==null?void 0:a.engagementPanelTargetId)===c&&(this.scrimmed=!1)}; g.getIdentifier=function(){var a,b,c;return((a=this.data)==null?void 0:a.panelIdentifier)||((b=this.data)==null?void 0:(c=b.identifier)==null?void 0:c.tag)}; g.getSurface=function(){var a,b;return(a=this.data)==null?void 0:(b=a.identifier)==null?void 0:b.surface}; ba.Object.defineProperties(ZZ.prototype,{darkerPanels:{configurable:!0,enumerable:!0,get:function(){return x("web_watch_darker_panels")||this.targetId==="PAyouchat"}}, targetId:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.targetId}}, webSize:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.size}}, hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var a=this.getIdentifier();return a==="engagement-panel-youchat"||a==="PAyouchat"}}, isAiCompanionPanel:{configurable:!0,enumerable:!0,get:function(){return this.getIdentifier()==="PAai_companion"}}, isSyncScrollPanel:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return!!((a=this.data)==null?0:(b=a.content)==null?0:(c=b.sectionListRenderer)==null?0:c.syncModelEntityKey)}}}); ZZ.prototype.visibilityChanged=ZZ.prototype.visibilityChanged;ZZ.prototype.isFullscreenChanged=ZZ.prototype.isFullscreenChanged;ZZ.prototype.isTheaterModeChanged=ZZ.prototype.isTheaterModeChanged;ZZ.prototype.useEngagementPanelForStructuredDescriptionChanged=ZZ.prototype.useEngagementPanelForStructuredDescriptionChanged;ZZ.prototype.dataChanged=ZZ.prototype.dataChanged;ZZ.prototype.forwardPopupClosedToFlowRootRenderer=ZZ.prototype.forwardPopupClosedToFlowRootRenderer; ZZ.prototype.onYtRendererstamperFinished=ZZ.prototype.onYtRendererstamperFinished;ZZ.prototype.onShowCommandsChanged=ZZ.prototype.onShowCommandsChanged;ZZ.prototype.headerDataChanged=ZZ.prototype.headerDataChanged;n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],ZZ.prototype,"actionHandlerBehavior",void 0);n([F(mz.YtComponentBehavior),r("design:type",Object)],ZZ.prototype,"ytComponentBehavior",void 0); n([F($C.YtRendererstamperBehavior),r("design:type",Object)],ZZ.prototype,"ytRendererstamperBehavior",void 0);n([F(kC),r("design:type",Object)],ZZ.prototype,"ytdReduxBehavior",void 0);n([F(x("web_engagement_panel_renderer_behavior")?Yz.YtRendererBehavior:[]),r("design:type",Object)],ZZ.prototype,"ytRendererBehavior",void 0);n([F(WC.YtEventForwardingBehavior),r("design:type",Object)],ZZ.prototype,"ytEventForwardingBehavior",void 0);n([M(),r("design:type",Object)],ZZ.prototype,"data",void 0); n([M({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),r("design:type",Object)],ZZ.prototype,"headerData",void 0);n([Lt("headerData"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],ZZ.prototype,"headerDataChanged",null);n([M(),r("design:type",Object)],ZZ.prototype,"secondaryHeaderData",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],ZZ.prototype,"visibility",void 0); n([M({reflectToAttribute:!0}),r("design:type",Boolean)],ZZ.prototype,"contentEmpty",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],ZZ.prototype,"scrimmed",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],ZZ.prototype,"dialog",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],ZZ.prototype,"dropdown",void 0);n([H("targetId"),M({reflectToAttribute:!0}),r("design:type",Object),r("design:paramtypes",[])],ZZ.prototype,"darkerPanels",null); n([M({reflectToAttribute:!0}),r("design:type",Object)],ZZ.prototype,"matchContentTheme",void 0);n([M(),r("design:type",Object)],ZZ.prototype,"disableAutoFill",void 0);n([M(),r("design:type",Number)],ZZ.prototype,"hideDelayMs",void 0);n([M({selector:function(a){return a!=null&&a.watch?a.watch.isWatchFullscreen:!1}, reflectToAttribute:!0}),r("design:type",Object)],ZZ.prototype,"isFullscreen",void 0);n([M({selector:WOb,reflectToAttribute:!0}),r("design:type",Object)],ZZ.prototype,"isTheaterMode",void 0);n([M(),r("design:type",Number)],ZZ.prototype,"showDelayMs",void 0);n([M({reflectToAttribute:!0}),H("data.targetId"),r("design:type",Object),r("design:paramtypes",[])],ZZ.prototype,"targetId",null); n([M({reflectToAttribute:!0}),H("data"),r("design:type",Object),r("design:paramtypes",[])],ZZ.prototype,"webSize",null);n([M(),H("data"),r("design:type",Object),r("design:paramtypes",[])],ZZ.prototype,"hideFooterBorder",null);n([M(),r("design:type",Object)],ZZ.prototype,"isWatch",void 0);n([M(),r("design:type",Object)],ZZ.prototype,"originalTheaterState",void 0);n([M(),r("design:type",Object)],ZZ.prototype,"theaterDisablementPanelIdentifier",void 0); n([M({reflectToAttribute:!0}),r("design:type",Boolean)],ZZ.prototype,"isWatchWhilePanel",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],ZZ.prototype,"shortsPanel",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],ZZ.prototype,"liveChatEngagementPanel",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],ZZ.prototype,"learningChatEngagementPanel",void 0);n([M({reflectToAttribute:!0}),r("design:type",Object)],ZZ.prototype,"liveChatReplyPanel",void 0); n([M({reflectToAttribute:!0}),r("design:type",Object)],ZZ.prototype,"isPersistentPanel",void 0);n([M(),r("design:type",Object)],ZZ.prototype,"overscrollContain",void 0);n([H("data"),r("design:type",Object),r("design:paramtypes",[])],ZZ.prototype,"isAiCompanionPanel",null);n([M({reflectToAttribute:!0}),H("data.content"),r("design:type",Object),r("design:paramtypes",[])],ZZ.prototype,"isSyncScrollPanel",null); n([M(),r("design:type",Object)],ZZ.prototype,"useEngagementPanelForStructuredDescription",void 0);n([Tt("#header"),r("design:type",HTMLElement)],ZZ.prototype,"headerElement",void 0);n([Tt("#header > *"),r("design:type",HTMLElement)],ZZ.prototype,"header",void 0);n([Tt("ytd-section-list-renderer"),r("design:type",Object)],ZZ.prototype,"sectionListRendererElement",void 0);n([Tt("panel-ad-header-image-lockup-view-model"),r("design:type",HTMLElement)],ZZ.prototype,"adHeaderImageLockupViewModel",void 0); n([Tt("#content"),r("design:type",HTMLElement)],ZZ.prototype,"contentElement",void 0);n([Lt("data.onShowCommands"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],ZZ.prototype,"onShowCommandsChanged",null);n([Kt("yt-rendererstamper-finished"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],ZZ.prototype,"onYtRendererstamperFinished",null); n([Kt("yt-popup-closed"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],ZZ.prototype,"forwardPopupClosedToFlowRootRenderer",null);n([cu("data","isFullscreen","isTheaterMode"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],ZZ.prototype,"dataChanged",null); n([Lt("useEngagementPanelForStructuredDescription"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],ZZ.prototype,"useEngagementPanelForStructuredDescriptionChanged",null);n([Lt("isTheaterMode"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],ZZ.prototype,"isTheaterModeChanged",null);n([Lt("isFullscreen"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],ZZ.prototype,"isFullscreenChanged",null); n([Lt("visibility"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],ZZ.prototype,"visibilityChanged",null);n([gu({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],ZZ); Tu(ZZ,"ytd-engagement-panel-section-list-renderer",function(){if(Cec!==void 0)return Cec;var a=document.createElement("template");Q(a,"
\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);return Cec=a},{mode:2});var Sfc={};Sfc.YtCancelRecurrenceBehavior=[mz.YtComponentBehavior,rEb,{attached:function(){var a=this;qEb(this,function(b,c){return a.ypcCancelRecurrenceHandler(b,c)})}, ypcCancelRecurrenceHandler:function(a,b){var c=this;if(!b||!b.ypcCancelRecurrenceEndpoint)return!1;if(!b.ypcCancelRecurrenceEndpoint.params)return Xk(Error("params not provided for ypcCancelRecurrenceEndpoint")),!0;ML(this.hostElement);var d=oL.instance,e=Fn().resolve(Cn(fE));d&&qL(d,b)?AK(d,b).then(function(f){c.ypcCancelRecurrenceSuccess_(a,b,{data:f})},function(f){c.ypcCancelRecurrenceFailure_(a,b,f)}).thenCatch(function(){Xk(Error("Error occurred in ypc cancel recurrence response handling."))}): e?eE(e,b).then(function(f){c.ypcCancelRecurrenceSuccess_(a,b,f)},function(f){c.ypcCancelRecurrenceFailure_(a,b,f)}).thenCatch(function(){Xk(Error("Error occurred in ypc cancel recurrence response handling."))}):Xk(Error("Network Manager not initialized")); return!0}, ypcCancelRecurrenceSuccess_:function(a,b,c){NL(this.hostElement);c.data||(c={data:c});c.data&&c.data.actions&&Zu(this.hostElement,c.data.actions,this.hostElement);c.data.messageRenderer?WIa(b.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(b=b.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&Cv("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",b);Gt(a,"yt-service-request-completed",c)}, ypcCancelRecurrenceFailure_:function(a,b,c){NL(this.hostElement);WIa(b.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);Gt(a,"yt-service-request-error",{error:c,params:[a,b]})}}];var Tfc=function(a,b){Va.call(this,b)}; k(Tfc,UVb);var Ufc={};Ufc.YtCompleteTransactionBehavior=[mz.YtComponentBehavior,rEb,{attached:function(){var a=this;qEb(this,function(b,c){return a.ypcCompleteTransactionHandler(b,c)})}, completeTransaction:function(a,b){var c=this;b={payments_payload:window.btoa(b.integratorData),buybucket_params:a.data.buybucketParams,offer_params:a.data.offerParams};var d=Fn().resolve(fE),e=a.data.completeTransactionEndpoint,f=this.get("ypcCompleteTransactionEndpoint.actions",e);f&&Zu(this.hostElement,f,this.hostElement);return(f=oL.instance)&&qL(f,e)?AK(f,e,b).then(function(h){return!h||(h==null?0:h.error)?(h=c.get("data.serializedTransactionFlowLoggingParams",a),xj(new VK("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE", h))):{data:h}}).then(function(h){return c.handleCompleteTransactionSuccess_(h,a)},function(){return c.handleCompleteTransactionFailure_(a)}):eE(d,e,b).then(function(h){return c.handleCompleteTransactionSuccess_(h,a)},function(){return c.handleCompleteTransactionFailure_(a)})}, handleCompleteTransactionSuccess_:function(a,b){a.data||(a={data:a});if(a.data.messageRenderer)return xj(new Tfc(a.data.messageRenderer));if(a.data.trackingParams){var c=Tv(),d=Sv();c&&d&&tz(c,d,Qv(a.data.trackingParams))}b=this.get("data.serializedTransactionFlowLoggingParams",b);VIa(b);return vj(a)}, handleCompleteTransactionFailure_:function(a){a=this.get("data.serializedTransactionFlowLoggingParams",a);Ev("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",a);return xj(new VK("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",a))}, ypcCompleteTransactionHandler:function(a,b){var c=this;if(!b.ypcCompleteTransactionEndpoint)return!1;if(!b.ypcCompleteTransactionEndpoint.transactionParams)return Xk(Error("transactionParams not provided for ypcCompleteTransactionEndpoint")),!0;b.ypcCompleteTransactionEndpoint&&b.ypcCompleteTransactionEndpoint.gtmData&&UK(b.ypcCompleteTransactionEndpoint.gtmData);var d=Fn().resolve(Cn(fE));if(d){ML(this.hostElement);var e=oL.instance;e&&qL(e,b)?AK(e,b).then(function(f){return!f||(f==null?0:f.error)?( f=c.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",b),xj(new VK("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",f))):{data:f}}).then(function(f){Gt(a,"yt-service-request-completed"); c.ypcCompleteTransactionSuccess_(b,f)},function(){return c.ypcCompleteTransactionFailure_(b)}):eE(d,b).then(function(f){Gt(a,"yt-service-request-completed"); c.ypcCompleteTransactionSuccess_(b,f)},function(){return c.ypcCompleteTransactionFailure_(b)})}return!0}, ypcCompleteTransactionSuccess_:function(a,b){NL(this.hostElement);b.data||(b={data:b});Xu(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);b.data.messageRenderer||b.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(a):(UK("{\"event\": \"purchase\", \"eventParams\" : {\"purchaseStatus\": \"success\"}}"),this.logTransactionEvent_("transactionFlowSucceeded",a));b.data.actions&&(a=ryb(b.data.actions),b=syb(b.data.actions),a.length&&$u(this.hostElement,a),b.length&& Zu(this.hostElement,b,this.hostElement))}, ypcCompleteTransactionFailure_:function(a){NL(this.hostElement);Xu(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",a,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")}, logTransactionEvent_:function(a,b,c){if(b=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",b))b={serializedTransactionFlowLoggingParams:b},c&&(b.errorType=c),ao(a,b),bo()}}];function Vfc(a,b,c,d){var e=z(c,hK).commandLifeCycleConfig;e&&e.onStartCommand&&Zu(a,[e.onStartCommand],b);ML(b);var f=oL.instance;f&&qL(f,c)?AK(f,c,d).then(function(h){if(!h||(h==null?0:h.error))return h=z(c,hK).serializedTransactionFlowLoggingParams,NL(b),xj(new VK("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",h));NL(b);return{data:h}}).then(function(h){NL(b); Wfc(h.data);var m=h.data.command;m&&Zu(a,[m],b);m=Xfc(c,h.data);if(!m){var p=h.data;h=!1;if(p&&p.command&&z(p.command,iy)){var q;p=((q=z(p.command,iy))==null?void 0:q.commands)||[];for(q=0;qa.popup.positionTarget.clientWidth&&(b.horizontalOffset=a.popup.positionTarget.clientWidth/2-b.shiftedHorizontalOffset),a.popup.style.display=c);jgc(a,b)}},ogc=function(a,b,c){if(b){for(var d=l(Object.keys(b)),e=d.next();!e.done;e=d.next())e=e.value,a.popup.style[e]=b[e]; if(c)for(b=l(Object.keys(c)),d=b.next();!d.done;d=b.next())d=d.value,a.popup.style[d]=c[d]}}; $Z.prototype.getName=function(){return Rk(this.openPopupAction.popup,"renderer")||Rk(this.openPopupAction.popup,"dialog")||Rk(this.openPopupAction.popup,"model")||void 0}; var ngc=function(a){a=a.openPopupAction.durationHintMs;return a===0?a:Math.max(4E3,a||4E3)}; $Z.prototype.isRtl=function(){return Vk("HTML_DIR")==="rtl"}; var mgc=function(a,b){a=a.getElement(b,a.target);a==null&&fo(new Dl("popup getElement returned null",b));return a};function pgc(a){switch(a){case"SHEET_POSITION_RIGHT":return"OPEN_POPUP_POSITION_RIGHT";case"SHEET_POSITION_BOTTOM_LEFT":return"OPEN_POPUP_POSITION_BOTTOMLEFT";case"SHEET_POSITION_BOTTOM_RIGHT":return"OPEN_POPUP_POSITION_BOTTOMRIGHT";default:return"OPEN_POPUP_POSITION_UNKNOWN";}} ;var qgc=new Bn("TOAST_MANAGER_TOKEN");var rgc={}; rgc.YtPopupContainerBehavior=[mz.YtComponentBehavior,ft.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction", "yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set;this.expandToFullWidth=this.isAriaModal=!1;this.doNotCacheList_=["yt-dialog-view-model"]}, attached:function(){this.registerActionMap(this.popupContainerActionMap_);var a=this.hostElement,b=!1;b=b===void 0?!0:b;a.addEventListener("wheel",Ytb);a.overscrollConfig={cooldown:b}}, detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);var a=this.hostElement;a.overscrollConfig=void 0;a.removeEventListener("wheel",Ytb)}, closePopup:function(a){var b=this.createCacheKey(void 0,a);this.popups_[b]&&this.handleClosePopupAction_(void 0,a)}, windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=bj.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=bj.addLowPriorityJob(this.setPopupVisibility_.bind(this)))}, setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(a){a.opened&&a.keepBelowPlayer&&this.ensurePopupBelowPlayer(a)},this); this.setPopupPositioningJobId_=0}, setPopupVisibility_:function(){for(var a in this.popups_){var b=this.popups_[a];if(b.popup.scrollAction==="refit"){var c=b.popup.positionTarget.getBoundingClientRect(),d=b.popup;c=c.top;var e=b;if(!e.naturalHeight){e.popup.hidden=!1;e.popup.style.position="fixed";e.popup.style.top="0px";e.popup.style.left="0px";var f=e.popup.getBoundingClientRect();e.naturalHeight=f.bottom-f.top;e.popup.refit()}d.hidden=!(c>=e.naturalHeight+60);b.popupContent.clientHeight===0&&b.popup.refit()}}this.setPopupVisibilityJobId_= 0}, ensurePopupBelowPlayer:function(){return!1}, initPopupContainerBehavior:function(a){this.popupContainerConfig=a}, handleOpenPopupAction:function(a,b,c){var d=a.openPopupAction,e=Fn().resolve(Cn(qgc))&&d.popupType==="TOAST";e&&!d.uniqueId&&(d.uniqueId=Uw());var f;(b=(f=this.getParentTarget(b))!=null?f:b)||co(Error("popup anchor target is undefined"),"ERROR");var h=this.ensurePopup_(d,b);return new uj(function(m){h.then(function(p){if(!p)return m();this.maybeCreateNarrowMediaQuery_();var q=this.createCacheKey(p.rendererName,p.openPopupAction.uniqueId);if(d.showOncePerUniqueId){if(this.shownPopupKeys_.has(q))return m(); this.shownPopupKeys_.add(q)}q=this.popups_[q];var t=!(!q||!q.openPopupAction.beReused);t=!!d.reusePopup||t;if(p.popup.opened&&!t){e&&!p.openPopupAction.replacePopup||this.handleClosePopupAction_(p.rendererName,p.openPopupAction.uniqueId);t=d.popupType==="DIALOG"&&!x("popup_container_dialog_reopen_killswitch");if(!e&&!t&&q&&q.target==b&&(x("popup_container_event_target_check_killswitch")||q.target==c)&&!p.openPopupAction.replacePopup)return m();ms(p.popup,function(){this.completeOpenPopupAction_(d, b,p);m()}.bind(this))}else p.popup.opened?igc(p,d):this.completeOpenPopupAction_(d,b,p),m()}.bind(this))}.bind(this))}, getParentTarget:function(a){if(a&&a instanceof HTMLElement)for(var b=l(Object.entries(this.popups_)),c=b.next();!c.done;c=b.next())if(c=l(c.value),c.next(),c=c.next().value,this.popupClosesOnClick(c)&&c.popup.contains(a))return c.target}, popupClosesOnClick:function(a){return a.popup.tagName!=="TP-YT-IRON-DROPDOWN"?!1:!["YTD-MULTI-PAGE-MENU-RENDERER","YTCP-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER"].includes(a.rendererName.toUpperCase())}, completeOpenPopupAction_:function(a,b,c){igc(c,a);var d=this.narrowMediaQuery_.queryMatches,e=this.isAriaModal;a=this.expandToFullWidth;c.target=b;c.setPosition();kgc(c);c.popupConfig.forceFocus&&(c.popupContent.style.outline="none");c.popupContent.tabIndex=-1;c.popupConfig.narrowProperties&&(c.popup.style.position="static");c.popupConfig.preventAutonav&&c.popup.setAttribute("prevent-autonav",!0);c.popupConfig.forceCloseOnOutsideClick&&c.popup.setAttribute("force-close-on-outside-click",!0);lgc(c, d,e);b={};b.width=a?"100%":"";ogc(c,c.popupConfig.styles,b);c.isRtl()&&ogc(c,c.popupConfig.rtlStyles,b);if(!c.openPopupAction.shouldStopParentSignal){var f;b=(f=c.target.polymerController)!=null?f:c.target;(c.popupContent.startForwardingEvents||c.popupContainerConfig.forwardingEnabledPopups.has(c.rendererName))&&b.parentComponent!==c.popupContent&&c.popupContent!==c.target&&c.target!==document.body&&(c.popupContent.startForwardingEvents?c.popupContent.startForwardingEvents(c.popupContainerConfig.forwardedEvents, c.target):(c.eventForwarder||(c.eventForwarder=new VC(c.popupContent)),c.eventForwarder.start(c.popupContainerConfig.forwardedEvents,c.target)))}c=c.popup;c.addEventListener("iron-overlay-opened",It(this,this.onPopupIronOverlayOpened_));c.addEventListener("iron-overlay-closed",It(this,this.onPopupIronOverlayClosed_));c.addEventListener("iron-overlay-canceled",It(this,this.onPopupIronOverlayCanceled_));c.addEventListener("yt-refit",It(this,this.refitPopup_));c.addEventListener("yt-invalidate-popup-tabbables", It(this,this.handleInvalidatePopupTabbables_));c.open()}, getPopupDurationMs_:function(a){return a.durationHintMs===0?a.durationHintMs:Math.max(4E3,a.durationHintMs||4E3)}, handleClosePopupAction_:function(a,b){var c=x("web_popup_cache_key_killswitch")||!!b;if(a||c){var d=this.createCacheKey(a,b);a=(a=this.popups_[d])&&a.popup}else a=Yx(Zx);if(a&&a.close){if(b=Fn().resolve(Cn(tD)))a.restoreFocusOnClose=b.keyboardInUse;if(a&&a.positionTarget&&!x("ytpopup_close_sibling_popups_killswitch")&&!x("WebFEAllStudioByChannel__enable_creator_chat_renderer")){b=l(Object.entries(this.popups_));for(c=b.next();!c.done;c=b.next()){var e=l(c.value);c=e.next().value;e=e.next().value; var f=void 0,h=void 0,m=void 0,p=void 0,q=void 0,t=void 0;a.positionTarget==((f=e)==null?void 0:(h=f.popupContent)==null?void 0:h.positionTarget)&&e.popup&&(!((m=e.popup)==null?0:(p=m.style)==null?0:p.display)||((q=e.popup)==null?void 0:(t=q.style)==null?void 0:t.display)!=="none")&&(f=void 0,(f=e.popup)==null?0:f.close)&&(e.popup.close(),this.removePopup_(e.popup,c))}a&&this.popups_[d]&&(a.close(),this.removePopup_(a,d))}else a.close(),this.removePopup_(a,d)}}, handleClosePopupCommand_:function(a){a.closePopupCommand&&a.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,a.closePopupCommand.uniquePopupId)}, handleCloseAllPopupsAction_:function(a){var b={},c;for(c in this.popups_)if(b={key$jscomp$1074:b.key$jscomp$1074},b.key$jscomp$1074=c,!a||!a.some(function(f){return function(h){return h==f.key$jscomp$1074}}(b))){var d=this.popups_[b.key$jscomp$1074],e=d.popup; Fn().resolve(Cn(qgc))&&d.openPopupAction.popupType==="TOAST"||(e&&e.close&&e.close(),this.removePopup_(e,b.key$jscomp$1074))}}, handleClosePopupsAction_:function(a){a.forEach(function(b){var c=this.popups_[b];c&&((c=c.popup)&&c.close&&c.close(),this.removePopup_(c,b))}.bind(this))}, handleGetPopupOpenedAction_:function(a,b){return(b=this.createCacheKey(a,b))&&this.popups_[b]?this.popups_[a].popup.opened:!1}, handleGetOpenedPopupsAction_:function(){var a=[],b;for(b in this.popups_){var c=this.popups_[b];c.popup.opened&&a.push(c)}return a}, getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()}, handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()}, removePopup_:function(a,b){x("ytpopup_disable_default_html_caching")&&a&&a.removeWhenClosed&&(wt(this.hostElement).removeChild(a),b&&this.popups_[b]&&delete this.popups_[b])}, shouldReusePopup_:function(a){return!(!a||!a.reusePopup)||!(!a||!a.beReused)}, ensurePopup_:function(a,b){this.maybeCreateNarrowMediaQuery_();var c=Rk(a.popup,"renderer")||Rk(a.popup,"dialog")||Rk(a.popup,"model");if(!c)return vj();c=jCa(c,gSa(this.popupContainerConfig,c));return vj(this.getAndMaybeCreatePopup_(a,c,b))}, getAndMaybeCreatePopup_:function(a,b,c){var d=this.createCacheKey(b,a.uniqueId);if(this.popups_[d])return this.popups_[d];a=new $Z({openPopupAction:a,target:c,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(b)});return this.popups_[d]=a}, getElement:function(){return null}, shouldRemoveWhenClosed_:function(a){return x("ytpopup_disable_default_html_caching")?x("ytpopup_disable_cache_allowlist")?a&&this.doNotCacheList_.includes(a):a&&a.includes("view-model"):!1}, maybeCreateNarrowMediaQuery_:function(){this.narrowMediaQuery_||(this.narrowMediaQuery_=document.createElement("iron-media-query"),this.narrowMediaQuery_.query="(max-width: 656px)",this.narrowMediaQuery_.addEventListener("query-matches-changed",It(this,this.openPopupQueryMatchesChanged_)),wt(this.hostElement).appendChild(this.narrowMediaQuery_))}, openPopupQueryMatchesChanged_:function(a){a=a.detail.value;for(var b in this.popups_)lgc(this.popups_[b],a)}, onPopupIronOverlayClosed_:function(a){var b=a.currentTarget,c=Et(b);c=c.length>0?c[0]:b;if(c.is!=="ytd-reel-watch-while-dialog-renderer"||a.target.is!=="tp-yt-iron-dropdown"){a.detail.popup=b;a.detail.popupRenderer=c;var d,e={context:{openingElement:((d=this.popups_[(c==null?void 0:c.is)||""])==null?void 0:d.target)||void 0}};Object.assign(e,a.detail);var f;Gt((f=c.hostElement)!=null?f:c,"yt-popup-closed",e);b.removeEventListener("yt-refit",It(this,this.refitPopup_));b.removeEventListener("yt-invalidate-popup-tabbables", It(this,this.handleInvalidatePopupTabbables_));b.removeEventListener("iron-overlay-canceled",It(this,this.onPopupIronOverlayCanceled_));b.removeEventListener("iron-overlay-closed",It(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(b)}}, onPopupIronOverlayCanceled_:function(a,b){var c=a.currentTarget,d=Et(c);d=d.length>0?d[0]:c;if(d.is!=="ytd-reel-watch-while-dialog-renderer"||a.target.is!=="tp-yt-iron-dropdown"){var e;Gt((e=d.hostElement)!=null?e:d,"yt-popup-canceled",a.detail);e=b?lt(b):null;d=x("enable_web_watch_fullscreen_overflow_menu_fixes")&&c.positionTarget===document.documentElement;b&&!["click","tap"].includes(b.type)||c.hasAttribute("force-close-on-outside-click")||!c.positionTarget||!e||!e.includes(c.positionTarget)|| d||a.preventDefault();c.restoreFocusOnClose=Lw.keyboardEventMatchesKeys(b,"esc")}}, onPopupIronOverlayOpened_:function(a){a=a.currentTarget;var b=Et(a);b=b.length>0?b[0]:a;var c,d;Gt((c=b.hostElement)!=null?c:b,"yt-popup-opened",(d=b.hostElement)!=null?d:b);a.keepBelowPlayer&&(this.ensurePopupBelowPlayer(a,!0),this.dynamicallyPositionedElements_.add(a));c=Fn().resolve(Cn(tD));d=!!b.querySelector("#toast");c&&c.keyboardInUse&&!d&&(typeof b.focusFirstItem==="function"?b.focusFirstItem():(b=Phb(a),b.length&&b[0].focus()));a.removeEventListener("iron-overlay-opened",It(this,this.onPopupIronOverlayOpened_))}, refitPopup_:function(a){a=a.currentTarget;a.refit&&a.refit()}, refitPopups_:function(){for(var a in this.popups_)this.popups_[a].refit()}, handleInvalidatePopupTabbables_:function(a){a=a.currentTarget;a.invalidateTabbables&&a.invalidateTabbables()}, createCacheKey:function(a,b){return x("web_popup_cache_key_killswitch")?b?a+"#"+b:a:b?"#"+b:a}, openSheet:function(a,b,c){var d=a==null?void 0:a.openPopupActionCommand;!d&&(a==null?0:a.viewModel)&&(d={openPopupAction:{popup:{sheetViewModel:a.viewModel},popupType:a.openToSide?"SIDE_OPENING_CONTEXTUAL_SHEET":"CONTEXTUAL_SHEET",position:a.sheetPosition?pgc(a.sheetPosition):void 0}});if(d){var e;this.expandToFullWidth=(e=a==null?void 0:a.expandToFullWidth)!=null?e:!1;this.handleOpenPopupAction(d,b,c===void 0?b:c)}}, closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")}, isSheetOpen:function(){var a=this;return ra(function(b){return b.return(a.handleGetOpenedPopupsAction_().filter(function(c){var d,e;return((d=c.openPopupAction)==null?void 0:d.popupType)==="CONTEXTUAL_SHEET"||((e=c.openPopupAction)==null?void 0:e.popupType)==="SIDE_OPENING_CONTEXTUAL_SHEET"}).length>0)})}, getSheetContainerElement:function(){return this.hostElement}, openDialog:function(a,b,c){if(x("web_dialog_utils_killswitch")){var d=a==null?void 0:a.openPopupActionCommand,e=(c==null?0:c.ariaLabel)?{accessibilityData:{accessibilityData:{label:c.ariaLabel}}}:void 0;!d&&(a==null?0:a.viewModel)&&(d={openPopupAction:Object.assign({},{popup:{dialogViewModel:a.viewModel},popupType:(c==null?0:c.isModal)?"MODAL":"DIALOG"},e&&e)});d&&this.handleOpenPopupAction(d,b)}else{if(e=a==null?void 0:a.viewModel){var f=c=c===void 0?{}:c;c=f.ariaLabel;e={popup:{dialogViewModel:e}, popupType:f.isModal?"MODAL":"DIALOG"};f={accessibilityData:{label:c}};c&&(e.accessibilityData=f);e={openPopupAction:e}}else e=void 0;if(e=(d=e)!=null?d:a==null?void 0:a.openPopupActionCommand)this.isAriaModal=x("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(e,b)}}, closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")}, isDialogOpen:function(){var a=this;return ra(function(b){return b.return(a.handleGetOpenedPopupsAction_().filter(function(c){var d;return((d=c.openPopupAction)==null?void 0:d.popupType)==="DIALOG"}).length>0)})}}];function sgc(){var a=isa,b=tgc;a=a===void 0?isa:a;b=b===void 0?{}:b;va("yt.logging.errors.log",co);gsa();dna(ena(),b);window.onerror=a;tka=hsa;window.addEventListener("unhandledrejection",function(c){if(c.reason instanceof Error){var d=c.reason;go(d,{source:"unhandledrejection"});d.name==="AbortError"&&(d.level="WARNING")}hsa(c.reason);c.preventDefault()})} ;var tgc={messageWeights:[{messageRegExp:/.*(window.customElements|HTMLTemplateElement).* is undefined/,weight:500},{messageRegExp:/rq-implicit-test-rule-widget/,weight:0},{messageRegExp:/.*(protonpass).*/,weight:0},{messageRegExp:/.*property '(configurable|polyfillWrapFlushCallback)'.*/,weight:500},{messageRegExp:/.*__shady_(native_addEventListener|getRootNode).*/,weight:500}].concat(ia(x("web_pip_minimize_breakages")?[{messageRegExp:/.*__shady_dispatchEvent.*/,weight:0}]:[]),[{messageRegExp:/ytsignals missing/, weight:500},{messageRegExp:/MutationObserver is not defined/,weight:100},{messageRegExp:/Cannot call 'patch'/,weight:500},{messageRegExp:/ShadyDOM.patch is not a function/,weight:500},{messageRegExp:/Illegal invocation/,weight:500},{messageRegExp:/no such interface supported/,weight:500},{messageRegExp:/play.*request was interrupted/,weight:500},{messageRegExp:/Failed to .* ServiceWorker.*/,weight:500},{messageRegExp:/Cannot call 'onIdle'/,weight:500},{messageRegExp:/Failed to sanitize attribute of
:
/, weight:500},{messageRegExp:/(DOMPurify|vid_mate_check) is not defined/,weight:0},{messageRegExp:/A network error occurred/,weight:500},{messageRegExp:/Ticking CPT when CPT already ticked/,weight:100},{messageRegExp:/Unexpected end of .*(input|data)/,weight:500},{messageRegExp:/JSON .* unexpected/,weight:500},{messageRegExp:/Unexpected token ")||a.fileName==="user-script"||a.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&b.includes(""))return!0;if(b.includes("https://www.youtube.com"))return!1;a=b.split("\n");if(!a.length)return!1;if(a.length<=3&&b.includes("s.onloadeddata"))return!0;b=0;for(var c=l(a),d=c.next();!d.done;d=c.next())d= d.value,(d.includes("https://")||d.includes("http://"))&&b++;return b/a.length>.95}, weight:0},{callback:function(a){return a.message==="Unknown Error"&&a.name.indexOf("NS_")===0}, weight:100},{callback:function(a){if(!xd)return!1;var b=a.message.indexOf("\uBA54\uBAA8\uB9AC \uB9AC\uC18C\uC2A4\uAC00 \uBD80\uC871\uD558\uAE30 \uB54C\uBB38\uC5D0 \uC774 \uC791\uC5C5\uC744 \uC644\uB8CC\uD560")===0||a.message.includes("available to complete this operation"),c=a.stack.includes("webcomponents")&&a.message==="Object doesn't support this action";a=a.message.includes("object that does not implement interface Element");return b||c||a}, weight:0},{callback:function(a){return a.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."}, weight:0},{callback:function(a){return a.message==="Operation is not supported"&&(a.stack.match(/textinputassistant/g)||[]).length>=5}, weight:500},{callback:function(a){return a.stack.includes("eval code (eval (code:1:1)")||a.stack.includes("Object.my_load [as load] ")}, weight:0},{callback:function(a){return a.message.includes("Permission denied")&&a.stack.includes("this.domHandler")?!0:a.name.includes("TypeError")&&a.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")}, weight:500},{callback:function(a){if(!a.stack)return!1;var b=a.stack.trim().split("\n");b.length&&b[0].endsWith("Error: "+a.message)&&b.shift();b.length&&b[b.length-1].includes("at window.onerror (")&&b.pop();if(!b.length)return!0;if(a.message==="Script error.")return b[0].includes("www.youtube.com")||b.length>=2&&b[0].startsWith("at new")&&b[1].startsWith("at window.onerror");if(a.message==="Unexpected token")return!0;a=l(b);for(b=a.next();!b.done;b=a.next())if(b=b.value,!(b.includes("")|| b.startsWith("load@")||b.startsWith("global code@")||b.startsWith("@https://")))return!1;return!0}, weight:500},{callback:function(a){return a.message==="Cannot read property 'experiments'"&&a.stack.includes("/s/player/")}, weight:500},{callback:function(a){return a.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")}, weight:500},{callback:function(a){return a.stack.includes("/embed.js")?(a.params&&a.params&&(a.params.name="56"),!0):!1}, weight:1},{callback:function(){if(x("use_error_suppression"))var a=Vk("SUPPRESS_CLIENT_ERRORS",!1);else{if(a=rda)a=/Chrome\/(\d+)/.exec(jd()),a=(a?parseFloat(a[1]):NaN)>=66;a=!(a||oda&&nda(65)||sda&&nda(12.1)||yd&&nda(79))}return a}, weight:500}]};x("kevlar_unified_errors_init")||sgc();var ugc=function(a,b){b=b===void 0?{}:b;var c=function(d){var e=document.createElement(a),f;var h=(f=e.polymerController)!=null?f:e;oHa(e,h,d,b);e.__owner=zo;return e}; c.debugName=a;return c}("yt-icon",{callbackProps:["onKeydown"]}),vgc=x("kevlar_use_wil_icons")?O(function(a){var b=a.icon; var c=a.active;var d=a.className;var e=a.style;var f=a.title;var h=a.size;var m=a.dataSelected;var p=a.dataDisabled;var q=a.role;var t=a.themeOverride;var u=a.animateIcon;var v=a.ariaHidden;var w=a.ariaExpanded;var y=a.ariaLabel;var A=a.tabindex;var C=a.id;var I=a.iconFilter;var K=a.gradientColor;var N=a.onKeydown;var L=function(){var S=b==null?void 0:b(),Y=null,da=void 0;S&&(S=CWa(S),S=az(S),S.length&&(Y=S[1],da=S[0]));return{iconName:Y,iconSetName:da}},R=function(){return DWa(L().iconName,c==null? void 0:c(),void 0,h==null?void 0:h(),L().iconSetName,Fn().resolve($y))},W=function(){return{iconWidth:"100%", iconHeight:"100%",iconFilter:I==null?void 0:I(),iconColor:K==null?void 0:K()}}; return D(P,{cond:u,then:function(){return D(ugc,{icon:b,active:c,className:d,style:e,title:f,dataSelected:m,dataDisabled:p,role:q,themeOverride:t,ariaHidden:v,ariaExpanded:w,ariaLabel:y,tabindex:A,id:C,iconFilter:I,gradientColor:K,onKeydown:N})}, else:function(){return D(P,{cond:R,then:function(S){return D("span",{class:U("ytIconWrapperHost",d),role:q,"aria-label":y,"aria-hidden":v,tabindex:function(){return isNaN(Number(A==null?void 0:A()))?void 0:Number(A==null?void 0:A())}, id:C,style:e,title:f,"on:keydown":FC(function(Y){return void(N==null?void 0:N(Y))})},D(eB,{data:S, options:W}))}})}})},"Pg"):ugc;var wgc=new Bn("VISIBILITY_TOKEN");var a_=function(){var a=E.apply(this,arguments)||this;a.dirty_=!0;a.visibilityRoot_=null;a.nodeCount_=0;a.prescanRect_=null;a.pendingRefresh_=!1;a.lastJobRunTime_=0;a.lastVisibleSet_=new Set;a.JSC$15490_logger_=null;return a}; k(a_,E);g=a_.prototype;g.ready=function(){Fn().addProvider({provide:wgc,useValue:this})}; g.created=function(){this.timeBetweenJobsMs_=x("kevlar_tuner_should_test_visibility_time_between_jobs")?ll("kevlar_tuner_visibility_time_between_jobs_ms"):Vk("VISIBILITY_TIME_BETWEEN_JOBS_MS",500);this.screenRect_=new ui(0,0,window.innerWidth,window.innerHeight);this.boundDoAfterRenderRequest_=this.doAfterRenderRequest_.bind(this);this.JSC$15490_logger_=null}; g.attached=function(){this.requestVisibilityRefresh();this.trackWindowScroll&&(window.addEventListener("resize",It(this,this.markDirty)),window.addEventListener("scroll",It(this,this.markDirty)));this.visibilityRoot&&this.visibilityRoot.addEventListener("yt-visibility-refresh",It(this,this.markDirty))}; g.reset=function(){this.lastVisibleSet_.clear()}; g.runVisibilityJob_=function(){this.pendingRefresh_=!1;this.lastJobRunTime_=Date.now();this.refreshVisibility_()}; g.doIdleRequest_=function(a){window.setTimeout(this.boundDoAfterRenderRequest_,a)}; g.doAfterRenderRequest_=function(){ms(this,this.runVisibilityJob_)}; g.requestVisibilityRefresh=function(){if(!this.pendingRefresh_){this.pendingRefresh_=!0;var a=Date.now()-this.lastJobRunTime_;a>=this.timeBetweenJobsMs_?this.doAfterRenderRequest_():this.doIdleRequest_(this.timeBetweenJobsMs_-a)}}; g.refreshVisibility_=function(){if(this.dirty_&&!this.pauseScan)if(this.dirty_=!1,this.isAttached){var a=this.visibilityRoot;if(a){var b=window.innerHeight,c=window.innerWidth;this.nodeCount_=0;this.screenRect_=new ui(0,0,c,b);this.prescanRect_=new ui(this.screenRect_.left,this.screenRect_.top+this.screenRect_.height,this.screenRect_.width,this.heightPrescan);b=new Set;this.traverseNodes_(a,this.screenRect_,b,0);a=l(b);for(c=a.next();!c.done;c=a.next())this.lastVisibleSet_.delete(c.value);this.lastVisibleSet_= b;Gt(this.hostElement,"yt-visibility-monitor-refreshed")}else Yk(Error("Cannot find root node for visibility monitor"))}else Yk(Error("Visibility monitor is not attached"))}; g.isNodeVisible=function(a){return this.lastVisibleSet_.has(a)}; g.traverseNodes_=function(a,b,c,d){if(a.visibilityLogging!=3){var e=Hz();d=a.screenLayer||d;var f=window.getComputedStyle(a);if(!f||f.display!="none"&&f.visibility!="hidden"){var h=a.getBoundingClientRect();if(h.top||h.right||h.bottom||h.left||h.width||h.height){h=new ui(h.left,h.top,h.width,h.height);b=Xia(h,b);var m=Xia(h,this.screenRect_);f=f&&f.position=="fixed"?m:b&&m;b=null;this.heightPrescan&&(b=!a.disablePrescanVisibility)&&(b=this.prescanRect_,b=h.left<=b.left+b.width&&b.left<=h.left+h.width&& h.top<=b.top+b.height&&b.top<=h.top+h.height);if(f||b){f&&c.add(a);if(!a.wasVisible&&!a.wasPrescan&&a.onShow)a.onShow();f?e.reportShown(a,void 0,d):e.reportHidden(a,void 0,d);a.wasVisible||(a.wasVisible=!!f);a.wasPrescan||(a.wasPrescan=b);this.nodeCount_++;if((a=a.getNodes?a.getNodes():null)&&a.length)for(e=a.length,f=0;f0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):a.target===document&&Lgc(this,"scroll",200)}; Kgc.prototype.onResize=function(){Lgc(this,"resize",200)}; Kgc.prototype.onMouseMove=function(){Lgc(this,"mousemove",100)}; var GVb=function(){var a=Fn().resolve(EVb);a.scrollEventsToIgnore+=1;a.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){a.scrollEventsToIgnore--},500))};function Mgc(){var a={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};Vk("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(a.enableAnonymousFeedback=!0);Vk("SESSION_INDEX")&&(a.authuser=String(Vk("SESSION_INDEX")));x("enable_pageid_for_feedback")&&Vk("DELEGATED_SESSION_ID")&&(a.pageId=String(Vk("DELEGATED_SESSION_ID")));return a} var Ngc=function(a){this.element=a;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)}; Ngc.prototype.showFeedbackDialog=function(a,b,c,d){var e=Ogc();if(!e)return!1;var f=Mgc();f.productId=e;b&&(f.flow="submit",f.report={description:b});c&&(Ogc()==="59"?f.callback=Wk(function(){ao("userFeedbackEvent",{});c()}):f.callback=Wk(c)); f.bucket=d||Vk("GOOGLE_FEEDBACK_BUCKET","Other");Pgc(f);a=Qgc(this,"GFEEDBACK",a);try{Ukb(f,a)}catch(h){return Xk(h),!1}return!0}; Ngc.prototype.showHelpDialog=function(a,b,c){var d=this,e=Ogc();if(!e)return!1;var f={helpCenterPath:"/youtube",productData:Qgc(this,"GUIDED_HELP",c)};Pgc(f);var h=Mgc();h.context=a||f.productData.context||"default";h.defaultHelpArticleId=b;h.enableSendFeedback=!0;(xa("gapi.load")||function(m,p){return p()})("client",function(){try{var m=THa(e,f); if(x("web_always_load_chat_support")&&!d.chatSupportLoaded)try{m.JSC$7669_loadChatSupport(h),d.chatSupportLoaded=!0}catch(p){}m.startHelp(h)}catch(p){Xk(p)}})}; var Ogc=function(){var a=Vk("GOOGLE_FEEDBACK_PRODUCT_ID");a||Xk(Error("Missing feedback product ID"));return a},Pgc=function(a){a&&(a.locale=x("kevlar_help_use_locale")?Vk("INNERTUBE_CONTEXT_HL","en"):Vk("HTML_LANG","en"))},Qgc=function(a,b,c){var d=a.productData; delete d.origin;d.device=jd();var e;a:{if(e=document.createElement("canvas")){var f=e.getContext("experimental-webgl",{stencil:!0});if(f){var h=f.getExtension("WEBGL_debug_renderer_info");if(h){e=f.getParameter(h.UNMASKED_RENDERER_WEBGL);break a}}if(f=e.getContext("webgl")){e=f.getParameter(f.RENDERER);break a}}e=null}d.gpu=e;d.isSDC=!!Vk("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(e=Vk("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&Zh(d,e);xgc(b,d);ygc(d);(a=Yu(a.element,"yt-get-autonav-pause-debug-state"))&& a.length&&(d.autonav_pause_state=a[0]);a=Fia(window);d.browser_resolution=a.width+"\xD7"+a.height+"@"+(window.devicePixelRatio||1)+"x";c&&Zh(d,c);return d}; Ngc.prototype.resetProductData=function(){this.productData={}};var Rgc=function(a,b){this.isIframed=b===void 0?!1:b;this.feedbackManager=new Ngc(a)}; Rgc.prototype.showFeedbackDialog=function(a,b,c,d){if(this.isIframed){if(c){var e=new MessageChannel;e.port1.onmessage=c;c=[e.port2]}else c=void 0;Vu("yt-show-feedback-dialog",{customProductData:a,feedbackContent:b,bucket:d},c);return!0}return this.feedbackManager.showFeedbackDialog(a,b,c,d)}; Rgc.prototype.showHelpDialog=function(a,b,c){return this.isIframed?(Vu("yt-show-help-dialog",{helpContext:a,articleId:b,customProductData:c}),!0):this.feedbackManager.showHelpDialog(a,b,c)};function Sgc(a){var b=Wc(Vc(ua.location.href));a=Wc(Vc(a));return x("kevlar_clear_non_displayable_url_params")?b==Tgc(a):Tgc(b)==Tgc(a)} function Tgc(a){var b=Bca(a);a=a.slice(0);var c=["frags"];x("kevlar_hide_pp_url_param")&&c.push("pp");x("kevlar_hide_time_continue_url_param")&&c.push("time_continue");c=l(c);for(var d=c.next();!d.done;d=c.next())d=d.value,a=dd(Wc(a),d);return Wc(a)+(b?"#"+b:"")} ;var Ugc=function(){this.pendingNavigationPromise=null}; Ugc.prototype.addEventListener=function(){throw Error("Unimplemented in base class")}; Ugc.prototype.dispatchEvent=function(){throw Error("Unimplemented in base class")}; Ugc.prototype.removeEventListener=function(){throw Error("Unimplemented in base class")};var Vgc=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],b_=function(){Yi.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];Wgc(this)}; k(b_,Yi);b_.prototype.isLoggedIn=function(){return Vk("LOGGED_IN",!1)}; b_.prototype.verifyUser=function(){var a=Wgc(this),b=a.logout;if(!a.sessionChange)return!0;this.dispatchEvent("ytsessionchange");b&&this.dispatchEvent("ytuserinvalid");return!1}; var Wgc=function(a){var b=Vgc.map(function(e){var f;return(f=Fi.get(e))!=null?f:""}),c=b.some(function(e,f){return a.sessionCookies&&a.sessionCookies[f]!==""&&e===""}),d=b.some(function(e,f){return a.sessionCookies&&a.sessionCookies[f]!==e}); a.sessionCookies=b;return{logout:c,sessionChange:d}}; b_.prototype.clearTimeout=function(){this.scheduledJobId&&(bj.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};function Xgc(){var a=Sv(),b=Tv();b&&a&&wz(b,[a],!0)} ;var Ygc="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /feed/ /gaming /gaming/ /hashtag /learning /manage_red /minor_moment /musicpremium /new /originals /paid_memberships /playlist /post/ /premium /product/ /reporthistory /results /search /shorts/ /show/ /user/ /watch /youtuberedoriginals".split(" "),Zgc=[],c_=function(a){this.pendingNavigationPromise=null;this.JSC$15530_clientRoot=a;this.logger=null;this.numNavigations= -1;this.chunksReceived=0;this.lastNavigationUrl=null;this.resetWarmLoads=!1;this.searchDebugUrlMatcher=new RegExp(/\/results\?.*deb|\/scraper_results\?.*deb|\/results\?.*enable=|\/scraper_results\?.*enable=/);this.isMiniplayerExpansion=!1;this.JSC$15530_currentEndpoint=null;this.debugString=a.is;a={"yt-signal-action-history-back":this.handleSignalActionHistoryBack,"yt-signal-action-reload-page":this.handleSignalActionReloadPage.bind(this),"yt-signal-action-soft-reload-page":this.handleSignalActionSoftReloadPage.bind(this), "yt-signal-action-reset-warm-loads":this.handleSignalActionResetWarmLoads.bind(this),"yt-signal-action-close-window":this.handleSignalActionCloseWindow};Xs(Ws.getInstance(),a,this.JSC$15530_clientRoot)}; k(c_,Ugc);var $gc=function(a){var b="";if(!a)return null;var c,d=(c=z(a.commandMetadata,ly))==null?void 0:c.webPageType;d?(a=d.toLowerCase())?(a=a.toLowerCase(),a.startsWith("web_page_type_")&&(a=a.slice(14)),b=a):b=a:z(a,ey)||z(a,FPa)?b="browse":z(a,VJ)?b="search":z(a,py)&&(b="watch");return b}; c_.prototype.reload=function(){window.location.reload()}; c_.prototype.navigate=function(a,b,c,d,e,f){var h=this;b=b===void 0?!1:b;c=c===void 0?{}:c;d=d===void 0?{}:d;var m;ahc(!((m=z(a==null?void 0:a.commandMetadata,ly))==null||!m.ignoreNavigation));m=$gc(a);var p=d.autonav==="1",q=Tv(),t;if(m==="watch"){if(x("block_all_player_prefetch_requests")||(t=cyb(uv(byb),a,p)),this.isMiniplayerActive()&&(rK().userActivation||(rK(),!1)))return bhc(this,a)?Xu(this.JSC$15530_clientRoot,"yt-expand-watch-page-action"):Xu(this.JSC$15530_clientRoot,"yt-miniplayer-load-endpoint", [a]),!1}else if(m!=="watch"){var u,v=(u=z(this.JSC$15530_currentEndpoint,py))==null?void 0:u.videoId;v&&HA.getInstance().then(function(C){C&&C.set("yt-miniplayer-shown-video-id",v)})}t&&(c.frags=t.getMissingFragments().join(",")); u=null;var w=z(a==null?void 0:a.commandMetadata,ly),y=w==null?void 0:w.ignoreNavigation;y||(x("kevlar_command_url")?u=w==null?void 0:w.url:u=bCa(a,c));if(u&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&u==this.lastNavigationUrl)return Xv({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise_");uy(xy(),"CANCELLED")}u&&(this.lastNavigationUrl=u);Uk("IS_HOMEPAGE_COLD",!1);Uk("IS_RESULTS_PAGE_COLD",!1);Uk("IS_WATCH_PAGE_COLD",!1);a.loggingUrls&& a.loggingUrls.forEach(function(C){C.baseUrl&&$m(C.baseUrl)}); T8b(a,f?f.layer:0)&&x("kevlar_flush_logs_on_away_navigation")&&bo();if(S8b(a))return!1;jRa(m,e);if(!u)return y||fo(new Dl("Can't construct url for endpoint",a)),uy(xy(),"FAILURE"),!1;Xgc();w=a&&a.hasOwnProperty("browseEndpoint")&&z(a,ey).browseId.startsWith("UC");w=chc(u)&&!w;b_.instance||(b_.instance=new b_);b_.instance.verifyUser()||(w=!0);if(w||Vk("DISABLE_WARM_LOADS")||this.resetWarmLoads)return hyb(u),uy(xy(),"ABORTED"),!1;this.chunksReceived=0;this.JSC$15530_chunkHandler=void 0;MJa();Wk(GJa)("nr", void 0);p&&Xv({webInfo:{navigationReason:"an"}});var A;a.clickTrackingParams&&(d.itct=a.clickTrackingParams,d.csn=q);d.endpoint=JSON.stringify(a);Wh(d)||Hy(u,d);p={headers:{"X-YouTube-STS":Vk("STS"),"x-youtube-csoc":1}};e&&(p.type=e);p.method="POST";p.postParams={command:JSON.stringify(a)};this.isMiniplayerExpansion&&(f=Object.assign({},{layer:0},f,{parentLayer:3}));this.pendingNavigationPromise=A=WD(Fn().resolve(fE),a,c,function(C){var I=d,K=f;A==h.pendingNavigationPromise&&(C.reload?window.location.reload(!0):( aw("nc"+h.chunksReceived),h.chunksReceived++,h.JSC$15530_currentEndpoint=a,C&&dhc(h,C),C.page=="watch"&&C.response&&!x("disable_watch_next_delay")?Ll(h.loadPageChunk.bind(h,a,C,I,K)):h.loadPageChunk(a,C,I,K)))},p,!!x("cancel_pending_navs")); c=vj().then(function(){return A}).then(this.handleNavigateSuccess.bind(this,A,a,t,d),this.handleNavigateFail.bind(this,A,a)); rK().navigationFinishPromise=c;b={endpoint:a,pageType:m,url:Tgc(u),reload:!!b};e&&(b.type=e);this.fireEvent("yt-navigate-start",b);t&&ehc(this,a,t,d);return!0}; var ehc=function(a,b,c,d){(c=c.getPrefetchedData())&&a.loadPageChunk(b,c,d)},fhc=function(a,b,c,d,e){var f=$gc(b); b={endpoint:b,pageType:f};e&&(b.errorMessage=e);fo(c);b.navigationDoneMs=aw("nd");b.navigationErrorReason=d;a.fireEvent("yt-navigate-error",b)}; c_.prototype.handleNavigateFail=function(a,b,c){var d=void 0;c instanceof Aj&&(d=c,mo(c));if(a!=this.pendingNavigationPromise)return xj(d);uy(xy(),"FAILURE");fhc(this,b,c,"101");return xj(c)}; c_.prototype.handleNavigateSuccess=function(a,b,c,d,e){if(a!=this.pendingNavigationPromise)return vj();this.pendingNavigationPromise=null;if(!e)return b=new Dl("Missing data in response for navigation endpoint",b),xj(b);if(e.reload)return window.location.reload(!0),vj();c&&(a={},Zh(a,c.getPrefetchedData(),e),e=a);var f,h;c=(f=e)==null?void 0:(h=f.timing)==null?void 0:h.responseStart;c!=null&&aw("srt",c);aw("pdc");var m,p;f=(m=e)==null?void 0:(p=m.timing)==null?void 0:p.info;f!=null&&(m=Wk(JJa)(f), Xv(m));uy(xy(),"SUCCESS");ghc(this,b,e,d);return vj()}; var chc=function(a){var b=a;x("kevlar_no_redirect_to_classic_2_ks")||(b=new Gp(a).JSC$6953_path_);if(b=="/"||b=="/red")return!1;var c=!0;Ygc.forEach(function(d){a.indexOf(d)==0&&(c=!1)}); Zgc.forEach(function(d){var e=d.url;x(d.expFlag)&&a.indexOf(e)==0&&(c=!1)}); return c}; c_.prototype.publishPageData=function(a){this.fireEvent("yt-page-data-fetched",{pageData:a})}; c_.prototype.loadPageChunk=function(a,b,c,d){hhc(this,a,b,!0,c,d)}; var hhc=function(a,b,c,d,e,f){if(!a.JSC$15530_chunkHandler)if(c.page=="watch"){if(d){if(x("kevlar_continue_playback_without_player_response")){var h;var m=(h=z(a.JSC$15530_currentEndpoint,py))==null?void 0:h.videoId}d={clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:!1,previousVideoId:m},tempData:e};a.JSC$15530_chunkHandler=new Nxb(a.JSC$15530_playerProvider.bind(a),d,f)}else a.JSC$15530_chunkHandler=new Ixb(a.JSC$15530_playerProvider.bind(a));}else c.page=="shorts"&&d?(d={clientParams:{miniplayer:!1, autoSaveToQueue:!1,fromHistory:!1},tempData:e},a.JSC$15530_chunkHandler=new Mxb(a.JSC$15530_playerProvider.bind(a),d,f)):a.JSC$15530_chunkHandler=new Jxb(f);a.JSC$15530_chunkHandler.processChunk({endpoint:b,data:c});return a.JSC$15530_chunkHandler.JSC$10876_playerPromiseResolver.promise},ihc=function(a,b,c,d,e){var f=null; b.page!="watch"||c?b.filler||Xu(a.JSC$15530_clientRoot,"yt-stop-old-player",[b]):f=hhc(a,d,b,!1,e);if(f)return f.then(a.publishPageData.bind(a,b));a.publishPageData(b);return vj()},jhc=function(a,b,c){var d=null; if(!c)return d=new Dl("Empty data",a.debugString,b);var e=c.response;e||(d=new Dl("Response field missing from data",a.debugString,b));var f={endpointType:$gc(b)||"unknown"};e.responseContext?(e=e.responseContext.errors)&&(d=new Dl("Errors in response context",a.debugString,b,e,f)):d=e.error||e.errorMetadata?new Dl("Errors in response",a.debugString,b,e.error,e.errorMetadata,f):new Dl("responseContext missing",a.debugString,b,Object.keys(e).sort().join(","),f);var h,m,p,q;if(a=c==null?void 0:(h=c.response)== null?void 0:(m=h.responseContext)==null?void 0:(p=m.webResponseContextExtensionData)==null?void 0:(q=p.webResponseContextDebugData)==null?void 0:q.debugErrorMessages)for(h=0;h");a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);mhc=a}a=mhc;return a},{mode:2});var nhc;var ohc;var phc;var qhc;var e_=function(){return E.apply(this,arguments)||this}; k(e_,E); e_.prototype.onCheckedChanged_=function(){if(this.data){var a=wt(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?Xu(this.hostElement,"yt-additional-detail-checkbox-update",[a]):this.data.identifier==="yt-hide-user-checkbox"?Xu(this.hostElement,"yt-hide-user-checkbox-update",[a]):a&&this.data.enableCommand?Xu(this.hostElement,"yt-modify-report-form-command",[z(this.data.enableCommand,fnb)]):!a&&this.data.disableCommand&&Xu(this.hostElement,"yt-modify-report-form-command", [z(this.data.enableCommand,fnb)])}}; e_.prototype.onLabelTap_=function(a){a.target.tagName!="A"&&(wt(this.hostElement).querySelector("#checkbox").checked=!wt(this.hostElement).querySelector("#checkbox").checked)}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],e_.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],e_.prototype,"data",void 0);n([fu({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],e_); Tu(e_,"yt-boolean-form-field-v2-renderer",function(){if(qhc===void 0){var a=document.createElement("template");Q(a,"\n\n
\n \n \n \n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;phc===void 0&&(phc=document.createElement("template"));var d=phc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);qhc=a}a=qhc;return a});var f_=function(){var a=E.apply(this,arguments)||this;a.canShowAdditionalDetailCheckbox=!1;a.canShowCheckbox=!1;a.keepDropdownFocusedAfterSelection=!0;return a}; k(f_,E);f_.prototype.configureRendererStamper=function(){return{"data.legalReportCheckbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}},"data.additionalDetailCheckbox":{id:"additional-detail-checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}}; n([F($C.YtRendererstamperBehavior),r("design:type",Object)],f_.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],f_.prototype,"data",void 0);n([M(),r("design:type",Object)],f_.prototype,"canShowAdditionalDetailCheckbox",void 0);n([M(),r("design:type",Object)],f_.prototype,"canShowCheckbox",void 0);n([M(),r("design:type",Object)],f_.prototype,"keepDropdownFocusedAfterSelection",void 0);n([fu({is:"yt-report-form-modal-content",disableElementRegistration:!0})],f_); Tu(f_,"yt-report-form-modal-content",function(){if(ohc===void 0){var a=document.createElement("template");Q(a,""); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;nhc===void 0&&(nhc=document.createElement("template"));var d=nhc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);ohc=a}a=ohc;return a},{mode:2});var rhc;var shc;var g_=function(){var a=E.apply(this,arguments)||this;a.submitting=!1;a.submitButtonDisabled=!0;a.command=null;a.canShowCheckbox=!1;a.canShowAdditionalDetailCheckbox=!1;a.canShowNextButton=!1;a.additionalDetailCheckboxChecked=!1;a.refitJob=0;a.keepDropdownFocusedAfterSelection=!0;a.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-report-form-endpoint-update":"handleReportFormEndpointUpdateAction","yt-confirm-dialog-close-action":"handleConfirmDialogCloseAction","yt-modify-report-form-command":"handleModifyReportFormCommand", "yt-additional-detail-checkbox-update":"handleAdditionalDetailCheckboxUpdateAction"};return a}; k(g_,E);g=g_.prototype;g.created=function(){this.refitJob=0}; g.attached=function(){this.scroller&&(this.scroller.dialogElement=this.hostElement.parentNode,this.scroller.attached&&typeof this.scroller.attached==="function"&&this.scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")}; g.dataChanged=function(a){a&&(this.toggleSubmitButton(!!this.get("data.submitButton.buttonRenderer.isDisabled")),this.set("data.submitButton.buttonRenderer.isDisabled",void 0),this.set("data.nextButton.buttonRenderer.isDisabled",void 0),this.command=null,this.additionalDetailCheckboxChecked=this.canShowNextButton=this.canShowAdditionalDetailCheckbox=this.canShowCheckbox=this.hideReportForm=this.submitting=!1,a.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value", !1),a.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())}; g.onYtPopupOpened=function(){var a=xO();a&&a.getPlayerPromise().then(function(b){b.pauseVideo()})}; g.onYtNavigate=function(a){z(a.detail.endpoint,ZNa)&&(a.stopPropagation(),this.hideReportForm=!0)}; g.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)}; g.onYtServiceRequestCompleted=function(a,b){var c=b.actions;if(c){if(c.length===1&&z(c[0],iy)){var d;c=((d=z(c[0],iy))==null?void 0:d.commands)||[]}d=0;for(var e=c.length;d\n\n\n \n \n\n
\n \n \n \n \n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;rhc===void 0&&(rhc=document.createElement("template"));var d=rhc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);shc=a}a=shc;return a}}}); g_.prototype.onYtServiceRequestError=g_.prototype.onYtServiceRequestError;g_.prototype.onYtServiceRequestCompleted=g_.prototype.onYtServiceRequestCompleted;g_.prototype.onYtServiceRequestSent=g_.prototype.onYtServiceRequestSent;g_.prototype.onYtNavigate=g_.prototype.onYtNavigate;g_.prototype.onYtPopupOpened=g_.prototype.onYtPopupOpened;n([F(nB.YtOpenPopupBehavior),r("design:type",Object)],g_.prototype,"openPopupBehavior",void 0); n([F(Yz.YtRendererBehavior),r("design:type",Object)],g_.prototype,"ytRendererBehavior",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],g_.prototype,"ytActionHandlerBehavior",void 0);n([F(WC.YtEventForwardingBehavior),r("design:type",Object)],g_.prototype,"eventForwardingBehavior",void 0);n([F(Hs),r("design:type",Object)],g_.prototype,"ironResizableBehavior",void 0);n([M({observer:"dataChanged"}),r("design:type",Object)],g_.prototype,"data",void 0); n([M(),r("design:type",Object)],g_.prototype,"submitting",void 0);n([M({observer:"submitButtonDisabledChanged"}),r("design:type",Object)],g_.prototype,"submitButtonDisabled",void 0);n([M(),r("design:type",Object)],g_.prototype,"command",void 0);n([M({reflectToAttribute:!0}),r("design:type",Boolean)],g_.prototype,"hideReportForm",void 0);n([M(),r("design:type",Object)],g_.prototype,"canShowCheckbox",void 0);n([M(),r("design:type",Object)],g_.prototype,"canShowAdditionalDetailCheckbox",void 0); n([M(),r("design:type",Object)],g_.prototype,"canShowNextButton",void 0);n([M(),r("design:type",Object)],g_.prototype,"additionalDetailCheckboxChecked",void 0);n([M(),r("design:type",Object)],g_.prototype,"refitJob",void 0);n([M(),r("design:type",Object)],g_.prototype,"keepDropdownFocusedAfterSelection",void 0);n([Tt("#scroller"),r("design:type",Object)],g_.prototype,"scroller",void 0); n([Kt("yt-popup-opened"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],g_.prototype,"onYtPopupOpened",null);n([Kt("yt-navigate"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],g_.prototype,"onYtNavigate",null);n([Kt("yt-service-request-sent"),r("design:type",Function),r("design:paramtypes",[CustomEvent,mB]),r("design:returntype")],g_.prototype,"onYtServiceRequestSent",null); n([Kt("yt-service-request-completed"),r("design:type",Function),r("design:paramtypes",[CustomEvent,lB]),r("design:returntype")],g_.prototype,"onYtServiceRequestCompleted",null);n([Kt("yt-service-request-error"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],g_.prototype,"onYtServiceRequestError",null);n([fu({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],g_);var thc;var uhc;var h_=function(){var a=As.apply(this,arguments)||this;a.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return a}; k(h_,As);g=h_.prototype;g.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}}; g.attached=function(){var a=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){a.$.thumbnail.onShow();a.$["header-image"].onShow()})}; g.handleCheckBoxUpdateAction_=function(a){this.canShowCheckboxEnabledConfirmButton=a}; g.computeUseOverlayForSpinner_=function(a,b){return!!a&&b}; g.computeShowSpinner_=function(a,b){return a||!!b}; g.fireOnCloseActions_=function(){var a,b=l(((a=this.data)==null?void 0:a.onClosedActions)||[]);for(a=b.next();!a.done;a=b.next())this.ytRendererBehavior.resolveCommand(a.value)}; g.fireOnOpenCommands_=function(a){var b,c=(b=this.data)==null?void 0:b.onOpenCommands;if(c)for(a.stopImmediatePropagation(),a=l(c),b=a.next();!b.done;b=a.next())this.ytRendererBehavior.resolveCommand(b.value)}; g.fireOnDismissCommands_=function(a){var b,c=(b=this.data)==null?void 0:b.onDismissCommands;if(c)for(a.stopImmediatePropagation(),a=l(c),b=a.next();!b.done;b=a.next())this.ytRendererBehavior.resolveCommand(b.value)}; g.openPopupHandler_=function(a){a.detail==this&&(this.fireOnOpenCommands_(a),this.focus())}; g.closePopupHandler_=function(a,b){Yu(this,"yt-confirm-dialog-close-action",[b]);this.fireOnCloseActions_();(b&&b.canceled===!0||b&&b.canceled===!1&&b.confirmed===!1)&&this.fireOnDismissCommands_(a)}; g.onHeaderImageChanged_=function(){var a;((a=this.data)==null?0:a.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")}; g.computeHasHeaderImageWidth_=function(a){return a!=void 0}; g.computeHasLoadingMessage=function(a){return!!a}; g.onHeaderImageWidthChanged_=function(){var a,b=(a=this.data)==null?void 0:a.headerImageWidth;if(b){if(a=1.25*b*2+b,this.$.main.style.width=a+"px",b=this.$.scroller.firstElementChild)b.style.minWidth=a+"px"}else this.$.main.style.width="100%"}; g.onThumbnailChanged_=function(){var a;((a=this.data)==null?0:a.thumbnail)?(this.setAttribute("dialog-with-thumbnail",""),this.$.scroller.scrollTarget.style.maxHeight="139px",this.$.thumbnail.onShow()):(this.removeAttribute("dialog-with-thumbnail"),this.$.scroller.scrollTarget.style.maxHeight="none")}; g.onYtNavigate_=function(a){a=mt(a);a instanceof Node&&At(this.$["confirm-button"]).contains(a)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()}; g.computePrimaryIsCancel_=function(a){return a}; g.computeIsCancelButtonHidden_=function(a){return a.skipCancelButton||!a.cancelButton}; g.computeIsCheckboxHidden_=function(a){return!a.checkbox}; g.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()}; g.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0}; g.onYtServiceRequestCompleted_=function(){var a;((a=this.data)==null?0:a.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1}; ba.Object.defineProperties(h_,{template:{configurable:!0,enumerable:!0,get:function(){if(uhc===void 0){var a=document.createElement("template");Q(a,"\n\n\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;thc===void 0&&(thc=document.createElement("template"));var d=thc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);uhc=a}a=uhc;return a}}}); h_.prototype.onYtServiceRequestCompleted_=h_.prototype.onYtServiceRequestCompleted_;h_.prototype.onYtServiceRequestSent_=h_.prototype.onYtServiceRequestSent_;h_.prototype.onThumbnailLoaded_=h_.prototype.onThumbnailLoaded_;h_.prototype.onYtNavigate_=h_.prototype.onYtNavigate_;h_.prototype.onThumbnailChanged_=h_.prototype.onThumbnailChanged_;h_.prototype.onHeaderImageWidthChanged_=h_.prototype.onHeaderImageWidthChanged_;h_.prototype.onHeaderImageChanged_=h_.prototype.onHeaderImageChanged_; h_.prototype.closePopupHandler_=h_.prototype.closePopupHandler_;h_.prototype.openPopupHandler_=h_.prototype.openPopupHandler_;n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],h_.prototype,"ytActionHandlerBehavior",void 0);n([F($C.YtRendererstamperBehavior),r("design:type",Object)],h_.prototype,"ytRendererstamperBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],h_.prototype,"ytRendererBehavior",void 0); n([F(WC.YtEventForwardingBehavior),r("design:type",Object)],h_.prototype,"ytEventForwardingBehavior",void 0);n([M(),r("design:type",Object)],h_.prototype,"data",void 0);n([M({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),r("design:type",Boolean)],h_.prototype,"primaryIsCancel",void 0);n([M({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),r("design:type",Boolean)],h_.prototype,"isCancelButtonHidden",void 0); n([M({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),r("design:type",Boolean)],h_.prototype,"isCheckboxHidden",void 0);n([M({value:!1,reflectToAttribute:!0}),r("design:type",Boolean)],h_.prototype,"canShowCheckboxEnabledConfirmButton",void 0);n([M({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),r("design:type",Boolean)],h_.prototype,"useOverlayForSpinner_",void 0); n([M({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),r("design:type",Boolean)],h_.prototype,"showSpinner_",void 0);n([M({value:!1}),r("design:type",Boolean)],h_.prototype,"isActionInProgress_",void 0);n([M({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),r("design:type",Boolean)],h_.prototype,"hasHeaderImageWidth_",void 0); n([M({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),r("design:type",Boolean)],h_.prototype,"hasLoadingMessage",void 0);n([Kt("yt-popup-opened"),r("design:type",Function),r("design:paramtypes",[CustomEvent,Object]),r("design:returntype")],h_.prototype,"openPopupHandler_",null);n([Kt("yt-popup-closed"),r("design:type",Function),r("design:paramtypes",[CustomEvent,Object]),r("design:returntype")],h_.prototype,"closePopupHandler_",null); n([Lt("data.headerImage"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],h_.prototype,"onHeaderImageChanged_",null);n([Lt("data.headerImageWidth"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],h_.prototype,"onHeaderImageWidthChanged_",null);n([Lt("data.thumbnail"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],h_.prototype,"onThumbnailChanged_",null); n([Kt("yt-navigate"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],h_.prototype,"onYtNavigate_",null);n([Kt("yt-img-shadow-loaded"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],h_.prototype,"onThumbnailLoaded_",null);n([Kt("yt-service-request-sent"),r("design:type",Function),r("design:paramtypes",[CustomEvent,mB]),r("design:returntype")],h_.prototype,"onYtServiceRequestSent_",null); n([Kt("yt-service-request-completed"),r("design:type",Function),r("design:paramtypes",[CustomEvent,lB]),r("design:returntype")],h_.prototype,"onYtServiceRequestCompleted_",null);n([fu({is:"yt-confirm-dialog-renderer",noInjection:!0})],h_);var vhc;var whc;var i_=function(){return E.apply(this,arguments)||this}; k(i_,E);i_.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");wt(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode}; i_.prototype.computeConfirmButton_=function(a){var b={text:a.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};a.confirmNavigationEndpoint?b.navigationEndpoint=a.confirmNavigationEndpoint:a.confirmServiceEndpoint&&(b.serviceEndpoint=a.confirmServiceEndpoint);return b}; i_.prototype.computeShowTitle_=function(a){return!(a==null||!a.title)}; n([F(Yz.YtRendererBehavior),r("design:type",Object)],i_.prototype,"ytRendererBehavior",void 0);n([M(),r("design:type",Object)],i_.prototype,"data",void 0);n([M({computed:"computeShowTitle_(data)"}),r("design:type",Boolean)],i_.prototype,"showTitle",void 0);n([fu({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],i_); Tu(i_,"yt-fancy-dismissible-dialog-renderer",function(){if(whc===void 0){var a=document.createElement("template");Q(a,"\n\n \n \n\n
\n \n \n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;vhc===void 0&&(vhc=document.createElement("template"));var d=vhc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);whc=a}a=whc;return a});var xhc;var yhc;var j_=function(){var a=E.apply(this,arguments)||this;a.actionMap={"yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return a}; k(j_,E);j_.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{formRenderer:{component:"yt-form-renderer"}}}}}; j_.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),Xu(this.hostElement,"yt-close-popup-action"))}; n([F($C.YtRendererstamperBehavior),r("design:type",Object)],j_.prototype,"ytRendererstamperBehavior",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],j_.prototype,"ytActionHandlerBehavior",void 0);n([M(),r("design:type",Object)],j_.prototype,"data",void 0);n([Tt("yt-form-renderer"),r("design:type",Object)],j_.prototype,"formRenderer",void 0);n([fu({is:"yt-show-action-dialog-content-renderer",disableElementRegistration:!0})],j_); Tu(j_,"yt-show-action-dialog-content-renderer",function(){if(yhc===void 0){var a=document.createElement("template");Q(a,"
"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;xhc===void 0&&(xhc=document.createElement("template"));var d=xhc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);yhc=a}a=yhc;return a},{mode:2});var zhc;var Ahc;var k_=function(){var a=E.apply(this,arguments)||this;a.actionMap={"yt-report-form-update":"handleFormUpdate"};return a}; k(k_,E);k_.prototype.configureRendererStamper=function(){return{"data.body":{id:"show-action-dialog-content",mapping:{showActionDialogContentRenderer:{component:"yt-show-action-dialog-content-renderer"}}},"data.footer.showActionDialogFooterRenderer.primaryAction":{id:"show-action-dialog-primary-action",mapping:{buttonRenderer:{component:"yt-button-renderer"}}},"data.footer.showActionDialogFooterRenderer.secondaryAction":{id:"show-action-dialog-secondary-action",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}}; k_.prototype.handleFormUpdate=function(){this.set("data.footer.showActionDialogFooterRenderer.primaryAction.buttonRenderer.isDisabled",!1)}; n([F($C.YtRendererstamperBehavior),r("design:type",Object)],k_.prototype,"ytRendererstamperBehavior",void 0);n([M(),r("design:type",Object)],k_.prototype,"data",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],k_.prototype,"ytActionHandlerBehavior",void 0);n([Tt("#show-action-dialog-primary-action yt-button-renderer"),r("design:type",HTMLButtonElement)],k_.prototype,"primaryAction",void 0);n([fu({is:"yt-show-action-dialog-renderer",disableElementRegistration:!0})],k_); Tu(k_,"yt-show-action-dialog-renderer",function(){if(Ahc===void 0){var a=document.createElement("template");Q(a,"
"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;zhc===void 0&&(zhc=document.createElement("template"));var d=zhc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Ahc=a}a=Ahc;return a},{mode:2});function Bhc(a){var b=new lG;if(a.interpreterJavascript){var c=xla(a.interpreterJavascript);c=hc(c).toString();var d=new Wva;fg(d,6,c);Gf(b,1,d,ge)}else a.interpreterUrl&&(c=Lk(a.interpreterUrl),c=nb(c).toString(),d=new Xva,fg(d,4,c),Gf(b,2,d,ge));a.interpreterHash&&gg(b,3,a.interpreterHash,ge);a.program&&gg(b,4,a.program,ge);a.globalName&&gg(b,5,a.globalName,ge);a.clientExperimentsStateBlob&&gg(b,7,a.clientExperimentsStateBlob,ge);return b} function Chc(a){var b={};a=a.split("&");a=l(a);for(var c=a.next();!c.done;c=a.next())c=c.value.split("="),c.length===2&&(b[c[0]]=c[1]);return b} function Dhc(a){return Number(a.t)||7200} ;function Ehc(){var a=a===void 0?window:a;var b,c;return ra(function(d){if(d.nextAddress==1)return d.yield(q7a(),2);b=a;c=b.bgevmc;if(!c)throw Error("BGE Controls not exposed");return d.return({pause:function(){c.p()}, resume:function(){c.r()}, checkForRefresh:function(){return c.cr()}})})} function r7a(){if(x("bg_st_hr"))return"havuokmhhs-0";var a,b=((a=globalThis.performance)==null?void 0:a.timeOrigin)||0;return"havuokmhhs-"+Math.floor(b)} function l_(a){window.bgens=a} var m_=function(a){this.lua=a}; m_.prototype.bindInnertubeChallengeFetcher=function(a){this.lua.bicf(a)}; m_.prototype.registerChallengeFetchedCallback=function(a){this.lua.bcr(a)}; m_.prototype.getLatestChallengeResponse=function(){return this.lua.blc()}; function Fhc(){return new Promise(function(a){var b=window;b.ntpevasrs!==void 0?a(new m_(b.ntpevasrs)):(b.ntpqfbel===void 0&&(b.ntpqfbel=[]),b.ntpqfbel.push(function(c){a(new m_(c))}))})} ;var Ghc=la(["https://static.doubleclick.net/instream/ad_status.js"]);Lh(Ghc);var n_=function(a,b,c){var d=this;this.network=a;this.options=b;this.networkStatusManager=c;this.kK=0;this.iQ=null;this.jK=new dKa;b.useBotguardEverywhere?Hhc(this,Ihc(this)):b.preload&&Hhc(this,new Promise(function(e){Il(0,function(){e(Jhc(d))},0)}))},Ihc=function(a){var b,c,d,e,f,h,m,p,q,t,u,v; return ra(function(w){switch(w.nextAddress){case 1:b=ua;if(!b.ytAtP||x("ytatp_ks")){b.ytAtRC?(d=ll("att_init_delay",0),Kl(0,function(){var y,A;return ra(function(C){if(C.nextAddress==1){c=b.ytAtT;delete b.ytAtT;if(!b.ytAtRC)return a.jK.increment(6,a.kK++),C.return();a.jK.increment(2,a.kK++);y=Khc(c,null);return C.yield(a.cS(y),2)}A=C.yieldResult;b.ytAtRC&&b.ytAtRC(JSON.stringify(A));C.jumpToEnd()})},d)):(c=b.ytAtT,delete b.ytAtT,a.jK.increment(1,a.kK++)); w.jumpTo(2);break}return w.yield(b.ytAtP,3);case 3:e=w.yieldResult;delete b.ytAtP;h=(f=e)==null?void 0:f.R;c=(m=e)==null?void 0:m.T;if(h){a.jK.increment(1,a.kK++);w.jumpTo(4);break}a.jK.increment(2,a.kK++);return w.yield(a.cS(Khc(c,null)),5);case 5:p=w.yieldResult,h=JSON.stringify(p);case 4:b.ytAtRC?b.ytAtRC(h):fo(Error("ytAtRC not defined for ytAtP."));case 2:return w.yield(Fhc(),6);case 6:return q=w.yieldResult,q.bindInnertubeChallengeFetcher(function(y){a.jK.increment(3,a.kK++);return a.cS(Khc(c, y))}),q.registerChallengeFetchedCallback(function(y){y=y.challenge; if(!y)throw Error("BGE_MACR");y={challenge:y,jQ:Chc(y),jc:t,bgChallenge:new lG};y=Promise.resolve(y);a.iQ=y}),w.yield(q7a(),7); case 7:t=w.yieldResult;u=q.getLatestChallengeResponse();v=u.challenge;if(!v)throw Error("BGE_MACIL");return w.return({challenge:v,jQ:Chc(v),jc:t,bgChallenge:new lG});}})}; n_.prototype.yMb=function(a,b,c){var d=this,e,f,h;return ra(function(m){d.iQ===null&&Hhc(d,Jhc(d));e=!1;f={};h=function(){var p,q,t,u,v;return ra(function(w){switch(w.nextAddress){case 1:if(!d.options.uQc||!d.options.useBotguardEverywhere){w.jumpTo(2);break}return w.yield(Ehc(),3);case 3:return p=w.yieldResult,w.yield((q=p)==null?void 0:q.checkForRefresh(),2);case 2:return w.yield(d.iQ,5);case 5:t=w.yieldResult;f.challenge=t.challenge;if(!t.jc){"c1a"in t.jQ&&(f.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED"); w.jumpTo(6);break}u=Object.assign({},{c:t.challenge,e:a},b);w.setCatchFinallyBlocks(7);e=!0;return w.yield(t.jc.snapshot({ot:u}),9);case 9:(v=w.yieldResult)?f.webResponse=v:f.error="ATTESTATION_ERROR_VM_NO_RESPONSE";w.leaveTryBlock(6);break;case 7:w.enterCatchBlock(),f.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 6:if(a==="ENGAGEMENT_TYPE_PLAYBACK"){var y=t.jQ,A={};if(y.c6a){var C=Number(Vk("DCLKSTAT",0));A.reportingStatus=String(Number(y.c)^(isNaN(C)?0:C))}y.c6b&&(A.broadSpectrumDetectionResult= String(Number(y.c)^Number(Vk("CATSTAT",0))));f.adblockReporting=A}return w.return(f);}})}; return m.return(Promise.race([h(),Lhc(c,function(){var p=Object.assign({},f);e&&(p.error="ATTESTATION_ERROR_VM_TIMEOUT");return p})]))})}; var Jhc=function(a){var b,c,d,e,f,h,m,p,q;return ra(function(t){switch(t.nextAddress){case 1:return b=Khc(void 0,H8a().oKa),t.setCatchFinallyBlocks(2),t.yield(Mhc(a,b),4);case 4:c=t.yieldResult;t.leaveTryBlock(3);break;case 2:return t.enterCatchBlock(),fo(Error("Failed to fetch attestation challenge after 5 attempts; not retrying for 24h.")),Nhc(a,864E5),t.return({challenge:"",jQ:{},jc:void 0,bgChallenge:void 0});case 3:d=c.tjc;e=c.ujc;f=Dhc(e);Nhc(a,f*1E3);h=void 0;if(!("c1a"in e&&c.bgChallenge)){t.jumpTo(5); break}m=Bhc(c.bgChallenge);t.setCatchFinallyBlocks(6);return t.yield(J8a(H8a(),m),8);case 8:t.leaveTryBlock(7);break;case 6:return p=t.enterCatchBlock(),fo(p),t.return({challenge:d,jQ:e,jc:h,bgChallenge:m});case 7:return t.setCatchFinallyBlocks(9),h=new mG({challenge:m,eU:{tk:"aGIf"}}),t.yield(h.sV,11);case 11:t.leaveTryBlock(5);break;case 9:q=t.enterCatchBlock(),fo(q),h=void 0;case 5:return t.return({challenge:d,jQ:e,jc:h,bgChallenge:m});}})},Ohc=function(a,b){var c; return ra(function(d){if(d.nextAddress==1)return l_(2),d.setCatchFinallyBlocks(2),d.yield(a.network.cS(b),4);if(d.nextAddress!=2)return(c=d.yieldResult)?c.challenge&&!c.bgChallenge?l_(1):l_(4):l_(3),d.return(c);d.enterCatchBlock();l_(3);return d.return(void 0)})}; n_.prototype.cS=function(a){var b=this,c;return ra(function(d){c=b.networkStatusManager;if(!c||c.isNetworkAvailable())return d.return(Ohc(b,a));cw("att_pna","attestation_challenge_fetch");return d.return(new Promise(function(e){c.listenOnce("publicytnetworkstatus-online",function(){Ohc(b,a).then(e)})}))})}; var Phc=function(a){if(!a)throw Error("Fetching Attestation challenge returned falsy");if(!a.challenge)throw Error("Missing Attestation challenge");var b=a.challenge,c=Chc(b);if("c1a"in c&&(!a.bgChallenge||!a.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},a,{tjc:b,ujc:c})},Mhc=function(a,b){var c,d,e,f,h; return ra(function(m){switch(m.nextAddress){case 1:c=void 0,d=0,e={};case 2:if(!(d<5)){m.jumpTo(4);break}if(!(d>0)){m.jumpTo(5);break}e.x4a=1E3*Math.pow(2,d-1)+Math.random()*1E3;return m.yield(new Promise(function(p){return function(q){Il(0,function(){q(void 0)},p.x4a)}}(e)),5); case 5:return m.setCatchFinallyBlocks(7),a.jK.increment(4,a.kK++),m.yield(a.cS(b),9);case 9:return f=m.yieldResult,m.return(Phc(f));case 7:c=h=m.enterCatchBlock(),h instanceof Error&&fo(h);case 8:d++;e={x4a:void 0};m.jumpTo(2);break;case 4:throw c;}})},Hhc=function(a,b){a.iQ=b},Qhc=function(a){var b,c,d; return ra(function(e){if(e.nextAddress==1)return e.yield(Promise.race([a.iQ,null]),2);b=e.yieldResult;var f=Jhc(a);a.iQ=f;(c=b)==null||(d=c.jc)==null||d.dispose();e.jumpToEnd()})},Nhc=function(a,b){var c=Date.now()+b,d=function(){var e; return ra(function(f){e=c-Date.now();return e<1E3?f.yield(Qhc(a),0):(Il(0,d,Math.min(e,6E4)),f.jumpTo(0))})}; d()},Lhc=function(a,b){return new Promise(function(c){Il(0,function(){c(b())},a)})}; function Khc(a,b){var c={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};a&&(c.eacrToken=a);b&&(c.interpreterHash=b);return c} ;var Rhc=function(a){this.qDb=a}; Rhc.prototype.cS=function(a){cw("att_fsr","attestation_challenge_fetch");return BK(this.qDb,a,zK(eub)).then(function(b){cw("att_frr","attestation_challenge_fetch");return b})};function Shc(){return new Promise(function(a){var b=window;b.attmp!==void 0?a(b.attmp):(b.attmq===void 0&&(b.attmq=[]),b.attmq.push(function(c){a(c)}))})} function Thc(a,b){var c,d,e;return ra(function(f){if(f.nextAddress==1){if(!Uhc())return f.jumpTo(2);c=window;return c.attmp!==void 0?f.return(c.attmp.s(a,b,6E4)):f.yield(Shc(),3)}return f.nextAddress!=2?(d=f.yieldResult,f.return(d.s(a,b,6E4))):(e=Vhc())?f.return(e(a,b,6E4)):f.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})} function Vhc(){var a=xa("yt.aba.att");return a?a:n_.instance!==void 0?n_.instance.yMb.bind(n_.instance):null} function Uhc(){return(x("attmusi")||x("attmusiw"))&&x("attmusi_ue")} ;var Whc=function(a){this.mua=a},Yhc=function(a,b,c){var d={}; b.ids&&(d.ids=[].concat(ia(b.ids)));b.engagementType&&(d.engagementType=b.engagementType);return BK(a.mua,d,zK(eub),c).then(function(e){if(!e)throw new Dl("GetAttestationChallenge returned falsy");Xhc(a,e,c)}).thenCatch(function(e){co(e)})},Xhc=function(a,b,c){if(!b.challenge)throw Error("Bad AttestationChallengeResponse: no attestation challenge string"); if(b.botguardData&&b.botguardData.program){var d=new jK;d.initialize(b.botguardData,function(){Vtb(d,{atr_challenge:b.challenge}).then(function(e){if(!e)throw Error("BG invocation returned null");return Zhc(a,b.challenge,e,c)}).catch(function(e){fo(e); return Zhc(a,b.challenge,void 0,c)})},void 0)}else Zhc(a,b.challenge,void 0,c)},$hc=function(a,b,c){return new uj(function(d,e){var f; return ra(function(h){if(h.nextAddress==1){var m=h.yield,p=b.engagementType,q=b.ids,t={};q=l(q!=null?q:[]);for(var u=q.next();!u.done;u=q.next())u=u.value,u.encryptedVideoId?t.encryptedVideoId=u.encryptedVideoId:u.externalChannelId?t.externalChannelId=u.externalChannelId:u.commentId?t.commentId=u.commentId:u.externalOwnerId?t.externalOwnerId=u.externalOwnerId:u.artistId?t.artistId=u.artistId:u.playlistId?t.playlistId=u.playlistId:u.externalPostId?t.externalPostId=u.externalPostId:u.shareId?t.shareId= u.shareId:u.postPlayNonce&&(t.postPlayNonce=u.postPlayNonce);return m.call(h,Thc(p,t),2)}f=h.yieldResult;if(!f.challenge)return fo(Error("Bad AttestationResponseData; no attestation challenge string")),Yhc(a,b,c).then(d,e),h.return();m=f;p={challenge:m.challenge};p.webResponse=m.webResponse;p.engagementType=b.engagementType;p.ids=b.ids;BK(a.mua,p,zK($ub),c).then(d,e);h.jumpToEnd()})})},Zhc=function(a,b,c,d){b={challenge:b}; c&&(b.webResponse=c);return BK(a.mua,b,zK($ub),d)};var aic=function(a){this.store=a}; aic.prototype.handleResponse=function(a){(a=z(a.frameworkUpdates,xJ))&&OA(a,this.store)}; aic[An]=[zu];var bic=new Bn("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var cic={account_advanced:[[0,1,155]],account_box:[[0,1,24],[1,1,24]],account_notifications:[[0,1,155]],account_playback:[[0,1,155]],account_privacy:[[0,1,155]],account_settings:[[0,1,155]],account_sharing:[[0,1,155]],admin_panel_settings:[[1,1,24]],ameba:[[0,1,60]],android_messenger:[[0,2,192]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0, 1,24]],countdown_to_close:[[0,1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0, 1,36]],face_filled_very_happy:[[0,1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0, 1,300]],hi5:[[0,1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,2,24]],offline_downloading_forty:[[0,2,24]],offline_downloading_sixty:[[0, 2,24]],offline_downloading_spinner:[[0,2,24]],offline_downloading_twenty:[[0,2,24]],offline_downloading_zero:[[0,2,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,2,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0, 1,100]],screen_light:[[1,1,24]],search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],shorts_text_logo:[[0,1,72]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1, 1,24]],video_call:[[0,1,24]],view_module:[[0,1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,1,192]],youtube_community_post:[[0,1,60]],youtube_community_repost:[[0,1,60]],youtube_create_logo:[[0,1,24]],youtube_kids_round:[[0,2,24]],youtube_logo:[[0,1,24]],youtube_music:[[0,2,24]],youtube_round:[[0, 2,24]],youtube_shorts_brand_24:[[0,2,24]],youtube_shorts_fill_no_triangle_red_16:[[0,1,16]],"yt-logo-red-updated":[[0,3,24]],"yt-logo-updated":[[0,3,24]]};function dic(a,b,c,d){var e=void 0;a=l(a[b.iconName]||[]);for(var f=a.next();!f.done;f=a.next()){f=f.value;var h=b.iconSize;var m=b.iconStyle;h=!h||h===f[2];var p=fB[f[0]];d&&d!==f[1]||!h||m&&m!==p?m=!1:e?(m=fB[f[0]],m=!!b.iconStyle||m==="youtube_outline",h=e.version<=f[1],m=(!!b.iconSize||f[2]===24)&&m&&h):m=!0;m&&(e={name:b.iconName,style:fB[f[0]],size:f[2],version:f[1],allowMirroring:!!f[3],url:c(b.iconName,f)})}return e} function eic(a,b,c,d){return""+a+(""+fB[c[0]]+((d===void 0?0:d)?"_experimental":"")+"/"+b+"/v"+c[1]+"/")+(c[2]+"px.svg")} ;function fic(a){return Vk("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&Vk("INNERTUBE_CLIENT_NAME")!=="WEB_CREATOR"?"bookmark":a} var o_={},gic=(o_.ACCESS_TIME="clock",o_.ACCOUNT_BOX=Vk("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?"person_box":"person_account",o_.ACCOUNT_BOX_CAIRO="person_account_cairo",o_.ACCOUNT_CIRCLE="person_circle",o_.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",o_.ACCOUNT_LINKED="account_link_success",o_.ACCOUNT_UNLINKED="account_link",o_.ADD_FRIEND="people",o_.ADD_MODERATOR="shield_add",o_.ADD_TO_LIBRARY="bookmark",o_.ADD_TO_PLAYLIST="add",o_.ADD_TO_QUEUE_TAIL="list_queue",o_.ADD_TO_REMOTE_QUEUE="list_music", o_.ADD_TO_WATCH_LATER="clock",o_.ADD_VIDEO_LINK="film_strip_add",o_.ALERT_WARN_RED="alert_triangle",o_.ARROW_BACK="arrow_left",o_.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",o_.ARROW_DROP_DOWN="chevron_down",o_.ARROW_DROP_UP="chevron_up",o_.ARROW_FORWARD="arrow_right",o_.ARTIST="person_music",o_.AUDIOTRACK="audio",o_.AUTO_AWESOME="sparkle",o_.AVATAR_ANONYMOUS="person_circle",o_.AVATAR_LOGGED_OUT="person_circle",o_.BACK="arrow_left",o_.BAR_CHART="bar_graph",o_.BLOCK="slash_circle_left", o_.BLOCK_USER="slash_circle_left",o_.BOOKMARK_BORDER="bookmark",o_.BREAKING_NEWS_ALT_1="article_alert",o_.BROADCAST_CAIRO="podcast_cairo",o_.BUG_REPORT="bug",o_.CAMERA_ALT="camera",o_.CAMPAIGN="megaphone",o_.CANCEL="x_circle",o_.CAPTIONS="closed_caption",o_.CAST_OUTLINE="chromecast",o_.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",o_.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",o_.CHAT="message_bubble_left",o_.CHAT_BUBBLE="message_bubble_empty",o_.CHAT_SPARK="spark_message_bubble_left",o_.CHECK_BOX_OUTLINE_BLANK= "box_empty",o_.CHECK_CIRCLE_OUTLINE="check_circle",o_.CHECK_CIRCLE_THICK="check_circle",o_.CLARIFY="article_clarify",o_.CLOSED_CAPTION_SELECTED="closed_caption",o_.CLOSE="x_mark",o_.CLOUD_UPLOAD="cloud_arrow_up",o_.COLLAPSE="chevron_up",o_.COLLAPSE_CAIRO="chevron_up_cairo",o_.COLLECTION="layers",o_.COLOR_LENS="palette",o_.COMMENT="message_bubble_right",o_.CONSENT_SHIELD="person_shield",o_.CONTENT_CUT="scissors",o_.CONTENT_CUT_CAIRO="scissors_cairo",o_.COURSE=x("web_enable_course_icon_update")?"creator_academy": "lightbulb",o_.COURSE_CAIRO=x("web_enable_course_icon_update")?"creator_academy_cairo":"lightbulb_cairo",o_.CREATION_LIVE="radar_live",o_.CREATION_POST="box_pencil",o_.CREATION_UPLOAD="my_videos",o_.CREATION_UPLOAD_RED="upload",o_.CREATOR_METADATA_MONETIZATION="dollar_sign",o_.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",o_.CREATOR_STUDIO="youtube_studio",o_.DASHBOARD="grid_asymmetrical",o_.DELETE="trash_can",o_.DELETE_SWEEP="trash_can",o_.DESKTOP="laptop",o_.DISLIKE="thumb_down",o_.DISLIKE_SELECTED= "thumb_down",o_.DISMISSAL="x_mark",o_.DISMISS_QUEUE="list_remove",o_.DONE_ALL="check_double",o_.DOWN_ARROW="arrow_down",o_.DO_NOT_DISTURB="slash_circle_left",o_.DRAFT="paper_corner_folded",o_.DRAG_HANDLE="bars_2",o_.EDIT="pencil",o_.EMOJI="face_very_happy",o_.EMOJI_FLAGS="flag",o_.EMOJI_OBJECTS="lightbulb",o_.EMOJI_PEOPLE="face_very_happy",o_.EMOJI_RECENT="clock",o_.EMPTY_HEART="heart",o_.EMPTY_LIKE="thumb_up",o_.ERROR_BLACK="alert_circle",o_.ERROR_OUTLINE="alert_circle",o_.EXIT_APP="arrow_in",o_.EXIT_TO_APP= "arrow_in",o_.EXPAND="chevron_down",o_.EXPAND_ALL="chevron_expand",o_.EXPAND_CAIRO="chevron_down_cairo",o_.EXPAND_LESS="chevron_up",o_.EXPAND_MORE="chevron_down",o_.EXPLORE="compass",o_.EXPLORE_DESTINATION="compass",o_.EXTERNAL_LINK="open_new",o_.FAB_UPLOAD="upload",o_.FACE_HAPPY_OUTLINE="face_happy",o_.FACT_CHECK="article_check",o_.FASHION_LOGO="fashion",o_.FASHION_LOGO_CAIRO="fashion_cairo",o_.FAVORITE="heart",o_.FEEDBACK="message_bubble_alert",o_.FEEDBACK_CAIRO="message_bubble_alert_cairo",o_.FILL_ARROW_SOLID_DOWN_16= "arrow_solid_down",o_.FILL_ARROW_SOLID_UP_16="arrow_solid_up",o_.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",o_.FILTER="menu_filter",o_.FIRST_PAGE="chevron_first",o_.FLAG="flag",o_.FULL_HEART="heart",o_.GAME_CONSOLE_DPAD="game_console_dpad",o_.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",o_.GAMING_LOGO="gaming",o_.GAMING_LOGO_CAIRO="gaming_cairo",o_.GO_TO_PAGE="arrow_right",o_.GROUPS="people_group",o_.HAPPY="face_happy",o_.HEALTH_AND_SAFETY="shield_plus",o_.HELP="question_circle",o_.HELP_CAIRO= "question_circle_cairo",o_.HELP_OUTLINE="question_circle",o_.HIDE="slash_circle_left",o_.IMAGE="image",o_.INFINITY_ICON="infinity",o_.INFO="info_circle",o_.INFO_OUTLINE="info_circle",o_.INSERT_CHART="bar_graph_box_vertical",o_.INSERT_CHART_OUTLINED="bar_graph_box_vertical",o_.INSERT_PHOTO="image",o_.KEEP="pin",o_.KEEP_OFF="pin_off",o_.KEYBOARD="keyboard",o_.KEYBOARD_ARROW_DOWN="chevron_down",o_.KEYBOARD_ARROW_UP="chevron_up",o_.KIDS_BLOCK="slash_circle_left",o_.LANGUAGE="globe",o_.LAST_PAGE="chevron_last", o_.LAUNCH="open_new",o_.LEARNING="lightbulb",o_.LEARNING_CAIRO="lightbulb_cairo",o_.LIBRARY_ADD=fic("library_add"),o_.LIBRARY_OUTLINE="library",o_.LIBRARY_REMOVE=fic(),o_.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",o_.LIKES_PLAYLIST="thumb_up",o_.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",o_.LIKE="thumb_up",o_.LIKE_SELECTED="thumb_up",o_.LIVE="radar_live",o_.LIVE_CAIRO="radar_live_cairo",o_.LIVE_UNLISTED="link",o_.LOCATION_ON="location_point",o_.LOCATION_PIN="location_point",o_.LOOP="arrow_repeat",o_.LOOP_ACTIVE= "arrow_repeat",o_.LOOP_ONE="arrow_repeat_1",o_.LOOP_ONE_ACTIVE="arrow_repeat_1",o_.MEH="face_meh",o_.MEMBERS_ONLY_MODE_OFF="message_bubble_left",o_.MENU="bars_3",o_.MESSAGE="message_bubble_left",o_.MICROPHONE_ON="mic",o_.MIX="youtube_mix",o_.MONETIZATION_ON="dollar_sign_circle",o_.MONEY_FILL="dollar_sign_container",o_.MONEY_FILL_JPY="yen_sign_container",o_.MONEY_HEART="dollar_sign_heart",o_.MORE_HORIZ="overflow_horizontal",o_.MORE_VERT="overflow_vertical",o_.MUSIC="audio",o_.MUSIC_CAIRO="audio_cairo", o_.MUSIC_NOTE_SYMBOL="music",o_.MUSIC_SHUFFLE="arrow_shuffle",o_.MY_CHANNEL="person_circle",o_.MY_LOCATION="location_point",o_.NEWS_STORY="news",o_.NEXT="chevron_right",o_.NOTIFICATIONS="bell",o_.NOTIFICATIONS_ACTIVE="bell_on",o_.NOTIFICATIONS_CAIRO="bell_cairo",o_.NOTIFICATIONS_DONE_CHECKMARK="check",o_.NOTIFICATIONS_INBOX="bell",o_.NOTIFICATIONS_NONE="bell",o_.NOTIFICATIONS_OFF="bell_off",o_.NOT_INTERESTED="slash_circle_left",o_.OFFICIAL_ARTIST_BADGE="audio",o_.OFFLINE_CLOUD="cloud_off",o_.OFFLINE_DOWNLOAD= "download",o_.OFFLINE_DOWNLOAD_CAIRO="download_cairo",o_.OFFLINE_PAUSE="pause",o_.OPEN_IN_NEW="open_new",o_.OUTLINE_ADJUST="adjust",o_.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",o_.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",o_.OUTLINE_BAG="bag",o_.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",o_.OUTLINE_MOBILE_DOWNLOAD="mobile_download",o_.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",o_.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",o_.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",o_.PAID= "dollar_sign",o_.PAUSE_OUTLINED="pause",o_.PAYMENT="credit_card",o_.PERSON_RADAR_FILLED="person_radar",o_.PHONE_DOWNLOAD="mobile_download",o_.PLAYABLES_LOGO="tic_tac_toe",o_.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",o_.PLAYLISTS="list_play_arrow",o_.PLAYLISTS_CAIRO="list_play_arrow_cairo",o_.PLAYLIST_ADD=fic("list_add"),o_.PLAYLIST_ADD_CHECK=fic("list_check"),o_.PLAYLIST_PLAY="list_play_arrow",o_.PLAY_ALL="play_arrow",o_.PLAY_CIRCLE="play_arrow_circle",o_.PLAY_OUTLINED="play_arrow_circle",o_.PRIVACY_INFO= "shield",o_.PRIVACY_PRIVATE="lock",o_.PRIVACY_PUBLIC="earth",o_.PRIVACY_UNLISTED="link",o_.PROMOTE="megaphone",o_.PURCHASES="price_tag",o_.PURCHASE_SUPER_CHAT="super_chat",o_.PURCHASE_SUPER_STICKER="super_sticker",o_.QUESTION_ANSWER="message_bubble_question",o_.QUEUE_PLAY_LAST="list_queue_last",o_.QUEUE_PLAY_NEXT="list_play_arrow",o_.REMIX_FILLED="youtube_shorts_remix",o_.REMOVE="bar_circle",o_.REMOVE_CIRCLE="bar_circle",o_.REMOVE_CIRCLE_OUTLINE="bar_circle",o_.REMOVE_DONE="check_double_off",o_.REMOVE_FROM_HISTORY= "bar_circle",o_.REMOVE_FROM_PLAYLIST="bar_circle",o_.REMOVE_MODERATOR="shield_off",o_.REPLAY="arrow_circle",o_.REPLAY_10="skip_back_10",o_.REPORT_PROBLEM="alert_triangle",o_.SAD="face_sad",o_.SAVE_PLAYLIST="bookmark",o_.SCHEDULE="clock",o_.SCHOOL="creator_academy",o_.SCREEN_FULLSCREEN="screen_full",o_.SEARCH_HISTORY="arrow_time",o_.SELL="price_tag",o_.SETTINGS="gear",o_.SETTINGS_CAIRO="gear_cairo",o_.SETTINGS_LIGHT="gear",o_.SETTINGS_MATERIAL="gear",o_.SHARE_ARROW="share",o_.SHIELD_WITH_AVATAR="person_shield", o_.SHOPPING_BAG="bag",o_.SHOPPING_BAG_CAIRO="bag_cairo",o_.SHOPPING_CART="cart",o_.SHORTS_COMMENT="youtube_shorts_message_bubble_right",o_.SHORTS_DISLIKE="youtube_shorts_thumb_down",o_.SHORTS_LIKE="youtube_shorts_thumb_up",o_.SHORTS_SHARE="youtube_shorts_share",o_.SHUFFLE="arrow_shuffle",o_.SLOW_MODE_OFF="message_bubble_left",o_.SOCIAL="people",o_.SORT="menu_sort",o_.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",o_.SPEED_1X="1x",o_.SPEED_1_POINT_2X="1_point_2x",o_.SPEED_1_POINT_5X="1_point_5x",o_.SPEED_1_POINT_8X= "1_point_8x",o_.SPEED_2X="2x",o_.SPEED_POINT_2X="point_2x",o_.SPEED_POINT_8X="point_8x",o_.SPONSORSHIP_STAR="star_circle",o_.STAFF_PICK="spotlight",o_.START_DVR="add",o_.STAR_BORDER="star",o_.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",o_.STICKER_EMOTICON="face_happy",o_.STOP_DVR="stop",o_.SUBSCRIBE="youtube_logo_icon",o_.SUBSCRIBE_PLUS="add_cairo",o_.SUBSCRIPTION_MANAGER="gear",o_.SUPERVISOR_ACCOUNT="people",o_.SUPER_CHAT_FOR_GOOD="hands_heart",o_.SWAP_HORIZ="arrow_swap_horizontal",o_.SWITCH_ACCOUNTS= "person_account",o_.TAB_ACCOUNT="person",o_.TAB_ACTIVITY="bell",o_.TAB_BOOKMARK="bookmark",o_.TAB_EXPLORE="compass",o_.TAB_HOME="home",o_.TAB_HOME_CAIRO="home_cairo",o_.TAB_INBOX="mail",o_.TAB_LIKED="thumb_up",o_.TAB_MUSIC_PREMIUM="youtube_music",o_.TAB_SHORTS="youtube_shorts",o_.TAB_SHORTS_CAIRO="youtube_shorts_cairo",o_.TAB_SUBSCRIPTIONS="subscriptions",o_.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",o_.TAB_TRENDING="fire",o_.TIMER="stopwatch",o_.TRAILER="youtube_originals",o_.TRENDING="fire", o_.TRENDING_CAIRO="fire_cairo",o_.TRENDING_DOWN="rating_down",o_.TRENDING_UP="rating_up",o_.TROPHY="trophy",o_.TROPHY_CELEBRATIONS="fireworks",o_.TUNE="adjust",o_.UNBLOCK_USER="bar_circle",o_.UNLIMITED="youtube_logo_icon",o_.UNPLUGGED_LIVE_GUIDE="radar_live",o_.UNPLUGGED_SPORTS="eye_off",o_.UPLOADS="library",o_.UP_ARROW="arrow_up",o_.VERTICAL_ALIGN_BOTTOM="download",o_.VERY_HAPPY="face_very_happy",o_.VERY_SAD="face_very_sad",o_.VIDEOGAME_ASSET="gaming",o_.VIDEOS="play_arrow_circle",o_.VIDEO_CALL= "video_camera_add",o_.VIDEO_LIBRARY_WHITE="library",o_.VIDEO_YOUTUBE="youtube_logo_icon",o_.VIEW_LIST="list_view",o_.VIEW_LIST_CAIRO="list_view_cairo",o_.VISIBILITY="eye",o_.VISIBILITY_OFF="eye_off",o_.VOLUME_MUTE="volume_off",o_.VOLUME_UP="volume_on",o_.WALLPAPER="image",o_.WARNING="alert_triangle",o_.WATCH_HISTORY="arrow_time",o_.WATCH_HISTORY_CAIRO="arrow_time_cairo",o_.WATCH_LATER="clock",o_.WATCH_LATER_CAIRO="clock_cairo",o_.WATCH_RELATED_MIX="youtube_mix",o_.WHAT_TO_WATCH="home",o_.YOUTUBE_CREATE_RED_LOGO= "youtube_create_logo",o_.YOUTUBE_MUSIC_MONOCHROME="youtube_music",o_.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",o_.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",o_.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",o_.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",o_.YT_OUTLINE_MUSIC_24="music",o_);var p_={},hic=(p_.ACCESS_TIME="clock",p_.ACCOUNT_BOX="person_square",p_.ACCOUNT_BOX_CAIRO="person_square",p_.ACCOUNT_CIRCLE="person_circle",p_.ACCOUNT_CIRCLE_CAIRO="person_circle",p_.ACCOUNT_LINKED="account_link",p_.ACCOUNT_UNLINKED="account_link",p_.ADD_CIRCLE="add_circle",p_.ADD_CIRCLE_OUTLINE="add_circle",p_.ADD_FRIEND="person_child",p_.ADD_MODERATOR="shield_add",p_.ADD_TO_LIBRARY="bookmark",p_.ADD_TO_PLAYLIST="add",p_.ADD_TO_QUEUE_TAIL="queue",p_.ADD_TO_REMOTE_QUEUE="playlist_audio",p_.ADD_TO_WATCH_LATER= "clock",p_.ADD_VIDEO_LINK="film_strip_add",p_.ADMIN_PANEL_SETTINGS="person_gear",p_.ALERT_WARN_RED="alert_triangle",p_.ALIGN_LEFT="text_align_left",p_.ARROWS_ALERT="arrow_split_alert",p_.ARROW_BACK="arrow_left",p_.ARROW_CIRCLE="arrow_counterclockwise",p_.ARROW_CIRCLE_PLAY="replay",p_.ARROW_CIRCLE_RIGHT="arrow_clockwise",p_.ARROW_DIAGONAL="arrow_up_left",p_.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",p_.ARROW_DROP_DOWN="triangle_down",p_.ARROW_DROP_UP="triangle_up",p_.ARROW_FORWARD="arrow_right",p_.ARROW_PAUSE= "pause_history",p_.ARROW_UNDO="undo",p_.ARTICLE="text_page",p_.ARTICLE_ALERT="text_page_alert",p_.ARTICLE_CHECK="text_page_check",p_.ARTICLE_CLARIFY="text_page_info",p_.ARTIST="person_audio",p_.AUDIOTRACK="audio",p_.AUDIO_BADGE="audio_badge",p_.AUDIO_SURROUND="surround_sound",p_.AUTO_AWESOME="sparkles",p_.AVATAR_ANONYMOUS="person_circle",p_.AVATAR_LOGGED_OUT="person_circle",p_.BACK="arrow_left",p_.BAR_CHART="chart_bar",p_.BAR_CIRCLE="minus_circle",p_.BAR_HORIZONTAL="minus",p_.BLOCK="circle_slash", p_.BLOCK_USER="circle_slash",p_.BOOKMARK_BORDER="bookmark",p_.BOX_OPEN_CHECK="quiz",p_.BOX_PENCIL="square_pencil",p_.BOX_STACK_3="square3_stack",p_.BREAKING_NEWS_ALT_1="text_page_alert",p_.BROADCAST="podcast",p_.BROADCAST_CAIRO="podcast",p_.BUG_REPORT="bug",p_.CAMERA_ALT="camera",p_.CAMPAIGN="megaphone",p_.CANCEL="x_circle",p_.CAPTIONS="closed_captions",p_.CAST_ICON="chromecast",p_.CAST_OUTLINE="chromecast",p_.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",p_.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves", p_.CHAT="text_bubble",p_.CHAT_BUBBLE="bubble",p_.CHECK_BOX="check_square",p_.CHECK_BOX_OUTLINE_BLANK="square",p_.CHECK_CIRCLE_FILLED="check_circle",p_.CHECK_CIRCLE_OUTLINE="check_circle",p_.CHECK_CIRCLE_THICK="check_circle",p_.CHECK_DOUBLE="check_done",p_.CHECK_DOUBLE_OFF="check_done_slash",p_.CHEVRON_LEFT="chevron_left",p_.CHEVRON_RIGHT="chevron_right",p_.CHEVRON_RIGHT_CAIRO="chevron_right",p_.CIRCLES_OVERLAP="account_link",p_.CLAPPERBOARD_CAIRO="clapperboard",p_.CLARIFY="text_page_info",p_.CLOCK_ARROWS= "clock_split",p_.CLOCK_ARROWS_ALERT="clock_split_alert",p_.CLOSED_CAPTION="closed_captions",p_.CLOSED_CAPTION_SELECTED="closed_captions",p_.CLOSE="x",p_.CLOUD_UPLOAD="cloud_arrow_up",p_.COLLAPSE="chevron_up",p_.COLLAPSE_CAIRO="chevron_up",p_.COLLECTION="square3d_stack",p_.COLOR_LENS="paint_palette",p_.COMMENT="text_bubble",p_.CONSENT_SHIELD="person_shield",p_.CONTENT_CUT="scissors",p_.CONTENT_CUT_CAIRO="scissors",p_.COURSE="graduation_cap",p_.COURSE_CAIRO="graduation_cap",p_.CREATION_LIVE="live", p_.CREATION_POST="square_pencil",p_.CREATION_UPLOAD="video",p_.CREATION_UPLOAD_RED="upload",p_.CREATOR_ACADEMY="graduation_cap",p_.CREATOR_METADATA_MONETIZATION="dollar_sign_circle",p_.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_circle_slash",p_.CREATOR_STUDIO="youtube_studio",p_.DARK_THEME="theme",p_.DELETE="trash_can",p_.DELETE_SWEEP="trash_can",p_.DESKTOP="laptop",p_.DISLIKE="thumb_down",p_.DISLIKE_SELECTED="thumb_down",p_.DISMISSAL="x",p_.DISMISS_QUEUE="playlist_x",p_.DOGFOOD="pawprint",p_.DOLLAR_SIGN= "dollar_sign_circle",p_.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",p_.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",p_.DOWN_ARROW="arrow_down",p_.DO_NOT_DISTURB="circle_slash",p_.DRAFT="document",p_.DRAG_HANDLE="equal",p_.EARTH="globe",p_.EDIT="pencil",p_.EMOJI="face_very_happy",p_.EMOJI_FLAGS="flag",p_.EMOJI_OBJECTS="lightbulb",p_.EMOJI_PEOPLE="face_very_happy",p_.EMOJI_RECENT="clock",p_.EMPTY_HEART="heart",p_.EMPTY_LIKE="thumb_up",p_.ERROR_BLACK="alert_circle",p_.ERROR_OUTLINE="alert_circle",p_.ERROR_WHITE= "alert_circle",p_.EXIT_APP="arrow_in",p_.EXIT_TO_APP="arrow_in",p_.EXPAND="chevron_down",p_.EXPAND_ALL="chevron_expand",p_.EXPAND_CAIRO="chevron_down",p_.EXPAND_LESS="chevron_up",p_.EXPAND_MORE="chevron_down",p_.EXPLORE="compass",p_.EXPLORE_DESTINATION="compass",p_.EXTERNAL_LINK="arrow_up_right",p_.EYE_OFF="eye_slash",p_.FAB_UPLOAD="upload",p_.FACE_HAPPY_OUTLINE="face_happy",p_.FACE_MEH="face_neutral",p_.FACT_CHECK="text_page_check",p_.FASHION_LOGO="fashion",p_.FASHION_LOGO_CAIRO="fashion",p_.FAVORITE= "thumb_up",p_.FEEDBACK="alert_bubble",p_.FEEDBACK_CAIRO="alert_bubble",p_.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",p_.FILL_ARROW_SOLID_UP_16="arrow_solid_up",p_.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",p_.FIRST_PAGE="chevron_left_end",p_.FLAG_CAIRO="flag",p_.FLASH_OFF="flash_slash",p_.FLASH_ON="flash",p_.FULL_HEART="heart",p_.GAMING_LOGO="gaming",p_.GAMING_LOGO_CAIRO="gaming",p_.GO_TO_PAGE="arrow_right",p_.GRID_ASYMMETRICAL="dashboard",p_.GROUPS="person3",p_.HAND_SWIPE_LEFT="gesture_swipe_left", p_.HAND_SWIPE_RIGHT="gesture_swipe_right",p_.HAPPY="face_happy",p_.HEALTH_AND_SAFETY="shield_health",p_.HEART_BOX="heart_cube",p_.HELP="help_circle",p_.HELP_CAIRO="help_circle",p_.HELP_OUTLINE="help_circle",p_.HIDE="circle_slash",p_.INCOGNITO_CAIRO="incognito",p_.INFINITY_ICON="infinity",p_.INFO="info_circle",p_.INFO_OUTLINE="info_circle",p_.INSERT_CHART="chart_bar_square",p_.INSERT_CHART_OUTLINED="chart_bar_square",p_.INSERT_PHOTO="image",p_.KEEP="pin",p_.KEEP_OFF="pin_slash",p_.KEYBOARD="keyboard", p_.KEYBOARD_ARROW_DOWN="chevron_down",p_.KEYBOARD_ARROW_UP="chevron_up",p_.KIDS_BLOCK="circle_slash",p_.LANGUAGE="globe",p_.LAST_PAGE="chevron_right_end",p_.LAUNCH="arrow_up_right",p_.LEARNING="lightbulb",p_.LEARNING_CAIRO="lightbulb",p_.LIBRARY_ADD="bookmark",p_.LIBRARY_IMAGE="image_stack",p_.LIBRARY_MUSIC="audio_square_stack",p_.LIBRARY_OUTLINE="play_square_stack",p_.LIBRARY_REMOVE="bookmark",p_.LIBRARY_SAVED="check_square_stack",p_.LIKES_PLAYLIST="thumb_up",p_.LIKES_PLAYLIST_CAIRO="thumb_up",p_.LIKE= "thumb_up",p_.LIKE_SELECTED="thumb_up",p_.LIST_QUEUE="queue",p_.LIVE_CAIRO="live",p_.LIVE_UNLISTED="link",p_.LOCATION_ON="location_pin",p_.LOCATION_PIN="location_pin",p_.LOCATION_POINT="location_pin",p_.LOOP="repeat",p_.LOOP_ACTIVE="repeat",p_.LOOP_ONE="repeat1",p_.LOOP_ONE_ACTIVE="repeat1",p_.MEET="google_meet",p_.MEH="face_neutral",p_.MEMBERSHIPS="memberships",p_.MEMBERS_ONLY_MODE_OFF="text_bubble",p_.MENU_FILTER="filter",p_.MESSAGE="text_bubble",p_.MESSAGE_BUBBLE_GEAR="bubble_gear",p_.MESSAGE_BUBBLE_LEFT= "text_bubble",p_.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",p_.MESSAGE_BUBBLE_OVERLAP="bubble_stack",p_.MESSAGE_BUBBLE_QUESTION="help_bubble",p_.MICROPHONE_ON="mic",p_.MONETIZATION_ON="dollar_sign_circle",p_.MONEY_FILL="dollar_sign_rectangle",p_.MONEY_FILL_JPY="yen_sign_rectangle",p_.MONEY_HAND="dollar_sign_circle_hand",p_.MONEY_HEART="dollar_sign_heart",p_.MOON_Z="sleep_timer",p_.MORE_HORIZ="overflow_horizontal",p_.MORE_VERT="overflow_vertical",p_.MUSIC="audio",p_.MUSIC_CAIRO="audio",p_.MUSIC_EXPLICIT_BADGE= "explicit",p_.MUSIC_NEW_RELEASE="audio_badge",p_.MUSIC_NOTE_SYMBOL="audio",p_.MUSIC_SCISSORS="audio_scissors",p_.MUSIC_SHUFFLE="shuffle",p_.MY_CHANNEL="person_circle",p_.MY_LOCATION="location_pin",p_.MY_VIDEOS="video",p_.MY_VIDEOS_CAIRO="video",p_.NEWS_CAIRO="news",p_.NEWS_STORY="news",p_.NEXT="chevron_right",p_.NOTE_ADD="bubble_pencil",p_.NOTIFICATIONS="bell",p_.NOTIFICATIONS_ACTIVE="bell_waves",p_.NOTIFICATIONS_CAIRO="bell",p_.NOTIFICATIONS_DONE_CHECKMARK="check",p_.NOTIFICATIONS_INBOX="bell",p_.NOTIFICATIONS_NONE= "bell",p_.NOTIFICATIONS_OFF="bell_slash",p_.NOT_INTERESTED="circle_slash",p_.OFFICIAL_ARTIST_BADGE="audio",p_.OFFLINE_CLOUD="cloud_slash",p_.OFFLINE_DOWNLOAD="download",p_.OFFLINE_DOWNLOAD_CAIRO="download",p_.OFFLINE_PAUSE="pause",p_.OPEN_IN_NEW="arrow_up_right",p_.OUTLINE_ADJUST="adjust",p_.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",p_.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",p_.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",p_.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",p_.OUTLINE_BAG="bag",p_.OUTLINE_CLOCK_HALF_CIRCLE= "clock_half_dashed",p_.OUTLINE_MOBILE_DOWNLOAD="mobile_arrow_down",p_.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",p_.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",p_.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",p_.PAID="dollar_sign_circle",p_.PAUSE_OUTLINED="pause",p_.PAYMENT="credit_card",p_.PEOPLE="person_child",p_.PEOPLE_2="person2_rectangle",p_.PEOPLE_GROUP="person3",p_.PEOPLE_NOTE="bubble_asterisk",p_.PERSON_2="person2",p_.PERSON_ACCOUNT="person_square_stack",p_.PERSON_MINUS="person_x",p_.PERSON_MUSIC= "person_audio",p_.PERSON_RADAR="person_waves",p_.PERSON_RADAR_FILLED="person_waves",p_.PERSON_SETTING="person_gear",p_.PHONELINK="qr_code",p_.PHONE="phone",p_.PHONE_DOWNLOAD="mobile_arrow_down",p_.PICTURE_IN_PICTURE="picture_in_picture",p_.PLAYABLES_LOGO="playables",p_.PLAYABLES_LOGO_CAIRO="playables",p_.PLAYLISTS="playlist",p_.PLAYLISTS_CAIRO="playlist",p_.PLAYLIST_ADD_CHECK="bookmark",p_.PLAY_ALL="play",p_.PLAY_ARROW="play",p_.PLAY_ARROW_CIRCLE="play_circle",p_.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed", p_.PLAY_ARROW_OUTLINED="play",p_.PLAY_CIRCLE="play_circle",p_.PLAY_OUTLINED="play_circle",p_.PODCAST_ADD="podcast_add",p_.PODCAST_CHECK="podcast_check",p_.PRIVACY_INFO="shield_x",p_.PRIVACY_PRIVATE="lock",p_.PRIVACY_PUBLIC="globe",p_.PRIVACY_UNLISTED="link",p_.PROMOTE="megaphone",p_.PURCHASES="price_tag",p_.PURCHASE_SUPER_CHAT="super_chat",p_.PURCHASE_SUPER_STICKER="super_sticker",p_.QUESTION_ANSWER="help_bubble",p_.QUESTION_CIRCLE="help_circle",p_.QUEUE_PLAY_LAST="queue_last",p_.QUEUE_PLAY_NEXT= "queue_next",p_.QUOTATION_MARK="quote",p_.RADAR_LIVE="live",p_.REMOVE="minus_circle",p_.REMOVE_CIRCLE="minus_circle",p_.REMOVE_CIRCLE_OUTLINE="minus_circle",p_.REMOVE_FROM_HISTORY="minus_circle",p_.REMOVE_FROM_PLAYLIST="minus_circle",p_.REMOVE_MODERATOR="shield_slash",p_.REPLAY="arrow_counterclockwise",p_.REPLAY_10="skip10_back",p_.REPLAY_ARROW="replay",p_.REPORT_PROBLEM="alert_triangle",p_.RSS_OFF="rss_slash",p_.SAD="face_sad",p_.SAVE_PLAYLIST="bookmark",p_.SCHEDULE="clock",p_.SCHOOL="graduation_cap", p_.SCREEN_DEFAULT="player_default",p_.SCREEN_FULLSCREEN="player_full_enter",p_.SCREEN_LIGHT="ambient_mode",p_.SCREEN_ROTATION="rotate_portrait",p_.SCREEN_SWITCH="player_switch",p_.SCREEN_THEATRE="player_theater",p_.SEARCH_CAIRO="search",p_.SEARCH_HISTORY="history",p_.SELL="price_tag",p_.SETTINGS="gear",p_.SETTINGS_CAIRO="gear",p_.SETTINGS_LIGHT="gear",p_.SETTINGS_MATERIAL="gear",p_.SETTINGS_REMOTE="remote_waves",p_.SHARE="share",p_.SHARE_ARROW="share",p_.SHARE_CAIRO="share",p_.SHIELD="shield_x",p_.SHIELD_EMPTY= "shield",p_.SHIELD_OFF="shield_slash",p_.SHIELD_WITH_AVATAR="person_shield",p_.SHOPPING_BAG="bag",p_.SHOPPING_BAG_CAIRO="bag",p_.SHOPPING_CART="cart",p_.SHORTS_COMMENT="text_bubble",p_.SHORTS_DISLIKE="thumb_down",p_.SHORTS_LIKE="thumb_up",p_.SHORTS_SHARE="share",p_.SKIP_FORWARD_30="skip30_forward",p_.SLASH_CIRCLE_LEFT="circle_slash",p_.SLASH_CIRCLE_RIGHT="circle_slash",p_.SLOW_MODE="bubble_slow",p_.SLOW_MODE_OFF="text_bubble",p_.SLOW_MOTION_VIDEO="play_circle_half_dashed",p_.SOCIAL="person_child", p_.SPARKLE="sparkles",p_.SPARK_IMAGE="image_spark",p_.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",p_.SPARK_PENCIL="pencil_spark",p_.SPARK_RADAR="spark_waves",p_.SPARK_VIDEO="video_spark",p_.SPEAKER_GROUP="speaker_stack",p_.SPEAKER_OFF="speaker_slash",p_.SPEED_1X="n1x",p_.SPEED_1_POINT_2X="n1point2x",p_.SPEED_1_POINT_5X="n1point5x",p_.SPEED_1_POINT_8X="n1point8x",p_.SPEED_2X="n2x",p_.SPONSORSHIP_STAR="star_circle",p_.SPORTS="basketball",p_.SPOTLIGHT="spotlight",p_.STAFF_PICK="spotlight",p_.START_DVR= "add",p_.STAR_BORDER="star",p_.STAR_CIRCLE_RIBBON="memberships_gift",p_.STAR_HALF="star_full_half",p_.STAR_SHOOTING="hype",p_.STICKER="sticker",p_.STICKER_EMOTICON="face_happy",p_.STOP_DVR="stop",p_.SUBSCRIBE="youtube",p_.SUBSCRIBE_PLUS="add",p_.SUBSCRIPTION_MANAGER="gear",p_.SUPERSTAR="super_star",p_.SUPERVISOR_ACCOUNT="person_child",p_.SUPER_CHAT_FOR_GOOD="hands_heart",p_.SWAP_HORIZ="arrow_swap_horizontal",p_.SWITCH_ACCOUNTS="person_square_stack",p_.TAB_ACCOUNT="person",p_.TAB_ACTIVITY="bell",p_.TAB_BOOKMARK= "bookmark",p_.TAB_EXPLORE="compass",p_.TAB_HOME="home",p_.TAB_HOME_CAIRO="home",p_.TAB_INBOX="mail",p_.TAB_LIKED="thumb_up",p_.TAB_MUSIC_PREMIUM="youtube_music",p_.TAB_SHORTS="shorts",p_.TAB_SHORTS_CAIRO="shorts",p_.TAB_SUBSCRIPTIONS="subscriptions",p_.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",p_.TAB_TRENDING="trending",p_.TARGET="target",p_.TARGET_ADD="target_add",p_.TEMPLATE_ADD="template_add",p_.TEXT="font",p_.TICKET_STAR="star_ticket",p_.TIMER="stopwatch",p_.TRENDING_CAIRO="trending",p_.TRENDING_DOWN= "arrow_trend_down",p_.TRENDING_UP="arrow_trend_up",p_.TROPHY_CAIRO="trophy",p_.TROPHY_CELEBRATIONS="fireworks",p_.TROPHY_STAR="star_trophy",p_.TUNE="adjust",p_.TV_OFF="tv_slash",p_.UNBLOCK_USER="minus_circle",p_.UNFAVORITE="thumb_down",p_.UNLIMITED="youtube",p_.UNPLUGGED_LIVE_GUIDE="live",p_.UNPLUGGED_SPORTS="eye_slash",p_.UPLOADS="play_square_stack",p_.UP_ARROW="arrow_up",p_.VERTICAL_ALIGN_BOTTOM="chevron_down_end",p_.VERTICAL_ALIGN_TOP="chevron_up_end",p_.VERY_HAPPY="face_very_happy",p_.VERY_SAD= "face_very_sad",p_.VIDEOS="play_circle",p_.VIDEO_CALL="video_camera_add",p_.VIDEO_LIBRARY_WHITE="play_square_stack",p_.VIDEO_QUALITY_4K="n4k",p_.VIDEO_QUALITY_8K="n8k",p_.VIDEO_YOUTUBE="youtube",p_.VIEW_LIST_CAIRO="view_list",p_.VIEW_MODULE="view_column3_row2",p_.VISIBILITY="eye",p_.VISIBILITY_OFF="eye_slash",p_.VOLUME_DOWN="volume_min",p_.VOLUME_MUTE="volume_mute",p_.VOLUME_OFF="volume_mute",p_.VOLUME_STABLE="stable_volume",p_.VOLUME_UP="volume_max",p_.WALLPAPER="image",p_.WARNING="alert_triangle", p_.WATCH_HISTORY="history",p_.WATCH_HISTORY_CAIRO="history",p_.WATCH_LATER="clock",p_.WATCH_LATER_CAIRO="clock",p_.WATCH_RELATED_MIX="mix",p_.WHAT_TO_WATCH="home",p_.YOUTUBE_CREATE_RED_LOGO="youtube_create_logo",p_.YOUTUBE_LINKED_TV="tv_mobile",p_.YOUTUBE_MUSIC_MONOCHROME="youtube_music",p_.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",p_.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",p_.YOUTUBE_SHORTS_ARROW_UP="arrow_up",p_.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",p_.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16= "shorts_empty",p_.YOUTUBE_SHORTS_OUTLINE_24="shorts",p_.YOUTUBE_SHORTS_OUTLINE_WITH_TEXT_24="shorts_text_logo",p_.YT_OUTLINE_MUSIC_24="audio",p_);var iic={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,3,24],[1,3,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,9,16],[1,9,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,6,24], [1,6,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,5,24],[1,5,20],[1,5,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,8,24],[1,8,24]],alert_circle:[[0,10,24],[1,10,16],[1,10,24]],alert_triangle:[[0,10,12],[0,10,24],[1,10,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1, 36],[1,1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,8,24],[1,8,24]],arrow_left:[[1, 8,24,!0]],arrow_left_cairo:[[1,2,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[0,2,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,3,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_solid_up:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18], [1,5,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,14,12],[0,14,16],[0,14,18],[0,14,24],[1,14,18],[1,14,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0, 1,24],[1,1,24]],background:[[1,1,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0, 2,24]],blur:[[1,2,24]],book:[[1,3,24]],bookmark:[[0,9,24],[1,9,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3, 24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,10,24],[1,10,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0, 13,12],[0,13,16],[0,13,24],[1,13,16],[1,13,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,2,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0, 7,16,!0],[0,7,18,!0],[0,7,24,!0],[1,7,16,!0],[1,7,18,!0],[1,7,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,9,16],[1,9,18],[1,9,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,10,24],[1,10,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1, 2,24]],circle:[[0,8,24],[1,8,24]],circle_full:[[0,3,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,10,24],[1,10,16],[1,10,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0, 6,24],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,16],[0,5,24],[1,5,12],[1,5,16],[1,5,24]],curve_s:[[0,1,24]],dashboard_plus:[[1, 1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,11,16],[0,11,24],[1,11,16],[1,11,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,16],[1,23,24]],dollar_sign_off:[[1,3,24]],dot:[[0,2,12],[0,2,24]],download:[[0,11,24],[1,11,16],[1,11,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7, 24]],downloading:[[1,5,24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_add:[[1,1,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_image:[[1,2,24]], face_meh:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]], film_strip:[[0,7,24],[1,7,24]],film_strip_add:[[1,2,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0, 4,16],[0,4,24],[1,4,24]],font_square_spark:[[1,1,16],[1,1,24]],football:[[0,4,24],[1,4,24]],gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,9,24],[1,9,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],globe_image:[[0,2,24],[0,2,36],[1,2,24],[1,2,36]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0, 1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,18,13],[0,18,24],[1,18,16],[1,18,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1, 2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,3,16],[1,3,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,10,16],[1,10,18],[1,10,20],[1,10,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1, 2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,8,18],[1,8,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24], [1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,12],[1,13,16],[1,13,18],[1,13,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],math_add:[[0, 3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,12],[0,9,16],[0,9,18],[0,9,24],[1,9,24]],mention:[[1, 5,16],[1,5,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_left_off:[[1,1,16],[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1, 1,24]],mic:[[0,14,24],[1,14,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,4,24],[1,4,24]],mobile_check:[[1,2,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,3,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,2,24]],move:[[1,2,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1, 3,24]],music_shape:[[1,3,24]],music_video:[[1,4,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,3,24],[1,3,12],[1,3,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],note_add:[[1,1,16],[1,1,24]],note_spark:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,6,24],[1,6,32]],overflow_vertical:[[1,13,24]],overflow_vertical_cairo:[[1, 1,24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,9,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,10,16],[1,10,18],[1,10,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,7,12],[0,7,13],[0,7,16],[0,7,24],[0,7,48],[1,7,13],[1,7,16],[1,7,24]],person_2:[[1, 1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,7,24]],person_box:[[1,5,24]],person_circle:[[0,10,24],[1,10,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,2,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_square_spark:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],phone:[[0,3,24],[1,3,24]],picture_in_picture:[[0, 2,24],[1,2,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,7,12],[0,7,24],[1,7,16],[1,7,24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,6,24],[1,6,12],[1,6,16],[1,6,18],[1,6,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1, 9,16],[1,9,24],[1,9,40]],pound:[[1,3,24]],presentation:[[1,3,24]],presentation_remove:[[1,1,24]],price_tag:[[0,8,12],[0,8,24],[1,8,24]],price_tag_heart:[[1,2,24]],qr_code:[[1,3,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,2,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,2,24]],remix:[[1, 2,16],[1,2,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,2,16],[1,2,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,2,12],[1,2,16],[1,2,18],[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,12],[0,8,24],[1,8,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,4,16],[1,4,18],[1,4,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_cairo:[[1,1,24]],screen_full_exit:[[1,6,24]], screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,2,24]],sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,5,24,!0], [1,5,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,3,24]],shadow_soft:[[0,3,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[0,12,32,!0],[1,12,16,!0],[1,12,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,24]],shield_add:[[1,2,24]],shield_check:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1, 1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1, 24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,7,24]],skip_previous:[[0,6,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,3,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,10,12],[0,10,16],[0,10,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4, 16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,6,12],[0,6,16],[0,6,24],[1,6,12],[1,6,16],[1,6,24]],star_circle:[[0, 6,12],[0,6,16],[0,6,18],[0,6,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],[1,1,24],[1,1,36]],star_half:[[0,3,12],[0,3,16],[0,3,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,5,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,11,24],[1,11,18],[1,11,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,4,12],[0,4,24],[1,4,24]],super_chat:[[1,8,18], [1,8,24]],super_sticker:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],super_store:[[1,3,24]],superstar:[[1,1,24]],tablet:[[1,1,24]],target:[[0,2,24],[1,2,16],[1,2,24]],target_add:[[0,2,24],[1,2,16],[1,2,24]],template_add:[[1,3,16],[1,3,24]],template_play:[[0,3,24],[1,3,24]],text:[[0,9,24],[1,9,16],[1,9,18],[1,9,24]],text_bell_cairo:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1, 2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,1,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,16],[0,24,24],[0,24,36],[1,24,16],[1,24,24],[1,24,36]],thumb_up:[[0,22,16],[0,22,24],[0,22,36],[1,22,16],[1,22,24],[1,22,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,4,24],[1,4,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],ticket_star:[[1,1,24]],tilt:[[1,4,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,3, 24]],toolbox:[[1,4,24]],transcript:[[1,2,16],[1,2,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,16],[1,4,24]],trash_can:[[1,10,16],[1,10,18],[1,10,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,12],[0,8,16],[0,8,24],[1,8,16],[1,8,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0, 1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,5,24]],uploading:[[1,1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,9,24],[1,9,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,5,16],[1,5,24]],video_reverse:[[1,1,24]],video_spark:[[1,2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,2,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]], volume_stable:[[0,1,24],[1,1,24]],vr:[[0,7,24],[1,7,24]],waveform:[[1,3,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,24],[1,3,24]],x:[[1,11,18],[1,11,24]],x_cairo:[[1,1,24]],x_circle:[[0,9,24],[1,9,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,2,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]], youtube_music:[[0,7,24],[1,7,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0, 2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,8,24],[1, 8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[0,2,24],[1,2,24]]};var jic={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,9,18],[1,9,24]],add_circle:[[0,6,18],[0,6,24],[1,6,24],[1,6,36]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,5,24],[0,5,48],[1,5,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,8,24],[1,8,18],[1,8,24],[1,8,48]],alert_bubble:[[1,2,18],[1,2,24]],alert_circle:[[0,11,24],[1,11,12],[1,11,24],[1,11,48]],alert_octagon:[[0, 2,24],[1,2,24]],alert_triangle:[[0,10,12],[0,10,24],[0,10,48],[1,10,24]],ambient_mode:[[1,1,24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,2,24],[1,2,48]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_circle_slash:[[0,1,24],[1,1,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,8,18],[1,8,24]],arrow_left:[[1,8, 24,!0],[1,8,36,!0]],arrow_merge:[[1,2,24]],arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,2,24],[1,2,24]],arrow_solid_down:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_solid_up:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,2,12],[1,2,24]],arrow_turn_down_right:[[1,2,18],[1,2,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1, 1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,2,18],[1,2,24],[1,2,36]],aspect_ratio_w16_h9:[[1,1,24]],aspect_ratio_w9_h16:[[1,1,24]],audio:[[0,14,12],[0,14,18],[0,14,24],[1,14,12],[1,14,18],[1,14,24],[1,14,48]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]], bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bed:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],bell:[[0,11,24],[1,11,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,10,18],[0,10,24],[1,10,18],[1,10,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]], bubble_ellipsis:[[1,1,24]],bubble_gear:[[1,1,24]],bubble_list:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,24]],bubble_slow:[[0,2,24],[0,2,48],[1,2,24],[1,2,48]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,4,18],[0,4,24],[1,4,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,10,24],[1,10,18],[1,10,24]], camera_audio:[[1,5,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cart_spark:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,2,12],[1,2,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,3,24],[1,3,18],[1,3,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,13,12],[1,13,18],[1,13,24],[1,13, 36]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,24]],check_square:[[0,2,24],[1,2,24]],check_square_stack:[[0,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_left_ios:[[1,3,24]],chevron_right:[[1,7,18,!0],[1,7,24,!0]],chevron_right_circle:[[0, 3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,9,12],[1,9,24]],chevron_up_circle:[[0,3,24],[1,3,24]],chevron_up_end:[[1,1,24]],chromecast:[[0,11,24],[1,11,18],[1,11,24],[1,11,36]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,2,24]],circle:[[0,9,24],[1,9,24]],circle_full:[[0,3,24]],circle_full_half:[[0,1,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,4,24],[1,4,18],[1,4,24],[1,4,48]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3, 24]],clapperboard_slash:[[1,1,24]],clapperboard_sparkles:[[0,2,24],[1,2,24]],clock:[[0,10,24],[0,10,48],[1,10,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,3,24],[0,3,48],[1,3,24],[1,3,48]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,6,24],[1,6,18],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,2,24],[1,2,48]],cms_allowlist:[[0, 2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,2,24]],compass:[[0,9,24],[1,9,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,2,24],[1,2,24]],cover_claim:[[1,1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,4,18],[1,4,24]],crop_rotate:[[1,2,24]],crosshair:[[1,1,18],[1,1,24]],crown:[[0,5,18],[0,5,24],[1,5,24]],csv:[[0,2,24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cube_spark:[[1,1,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1, 1,24]],cvp:[[0,2,24],[1,2,24]],dance_spark:[[0,1,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,12,24],[1,12,12],[1,12,18],[1,12,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,1,24]],dollar_sign_circle_pause:[[1,2,24]], dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[0,24,12],[0,24,24],[1,24,12],[1,24,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],dot:[[0,2,12],[0,2,24]],download:[[1,11,18],[1,11,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,2,18],[1,2,24]],equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_slash:[[1,1,24]],eyedropper:[[1,2,24]],eyeglasses:[[1,1,24]],face_add:[[1,1,24]],face_happy:[[0,12,24],[0,12,36],[0,12,48],[1, 12,24],[1,12,36]],face_image:[[1,2,24]],face_meh:[[0,10,24],[1,10,24]],face_neutral:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,12,24],[0,12,36],[1,12,24],[1,12,36]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,10,24],[1,10,24]],face_very_happy:[[0,12,24],[0,12,36],[1,12,24],[1,12,36]],face_very_sad:[[0,10,24],[1,10,24]],fashion:[[0,4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0, 2,24],[1,2,24]],film_strip:[[0,7,24],[0,7,48],[1,7,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,10,24],[0,10,48],[1,10,18],[1,10,24],[1,10,48]],flash:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,1,24]],flip_vertical_half_dashed:[[1,1,24]],folder:[[0,4, 24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_spark:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_square_spark:[[1,1,18],[1,1,24]],font_strikethrough:[[1,1,24]],font_style:[[1,1,24]],font_underline:[[1,1,24]],football:[[0,4,24],[1,4,24],[1,4,36]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,10,24],[0,10,48],[1,10,18],[1,10,24],[1,10,48]],gesture_long_press:[[0, 2,24],[1,2,24]],gesture_pinch_in:[[1,1,24]],gesture_swipe_left:[[1,1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,4,24]],globe_image:[[1,3,24]],glow:[[1,2,24]],google:[[0,1,24]],google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,2,24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,3,18],[0,3,24],[1,3,24]],greater_than:[[1, 1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,1,24]],hand:[[1,2,24]],hand_wave:[[1,2,24]],hands_clap:[[1,1,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],hearing:[[0,2,24],[1,2,24]],heart:[[0,19,24],[1,19,18],[1,19,24]],heart_circle:[[1,2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],help_circle:[[1,2,18],[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],history:[[1,1,24]], home:[[0,10,24],[1,10,24]],hourglass:[[1,3,18],[1,3,24]],hype:[[0,2,24],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,10,18],[1,10,24]],info_circle_spark:[[1,1,24]],jewel:[[1,1,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0, 4,24],[1,4,24]],label_slash:[[0,2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1, 24]],lightbulb:[[0,4,24],[1,4,24]],link:[[1,8,18],[1,8,24]],link_slash:[[1,1,24]],live:[[1,3,12],[1,3,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,18],[1,13,24],[1,13,48]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,9,24],[1,9,24]],map:[[1,3,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],megaphone:[[0,5,24],[1,5,12],[1,5,24]],memberships:[[0, 9,24],[0,9,36],[1,9,24]],memberships_gift:[[1,1,24]],mention:[[1,5,24]],menu:[[1,1,24]],mic:[[0,14,18],[0,14,24],[0,14,36],[0,14,48],[1,14,18],[1,14,24],[1,14,48]],mic_slash:[[1,2,24]],mic_spark:[[0,1,18],[0,1,24],[1,1,18],[1,1,24]],minus:[[1,2,18],[1,2,24]],minus_circle:[[0,3,24],[1,3,18],[1,3,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,4,24],[1,4,18],[1,4,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_arrow_in:[[1,1,24]],mobile_arrow_out:[[1,1,24]],mobile_check:[[1,2,24]], mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,4,18],[1,4,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,1,24]],n1point5x:[[1,1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,1,24]],news:[[0,3,24],[1,3,24]],news_alert:[[0,1,24]],node_left:[[1,2,24]],node_right:[[1,2, 24]],note:[[0,1,18],[0,1,24],[1,1,18],[1,1,24]],note_spark:[[0,2,18],[0,2,24],[1,2,18],[1,2,24]],open_in_panel:[[1,2,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,6,24],[1,6,36]],overflow_vertical:[[1,13,18],[1,13,24],[1,13,36]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,9,24],[0,9,36],[0,9,48],[1,9,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[0,2,24],[1,2,24]],pdf:[[1,2,24]],pencil:[[0,10, 24],[1,10,18],[1,10,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,7,24],[1,7,12],[1,7,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,2,24],[1,2,18],[1,2,24]],person_add:[[0,7,24],[1,7,18],[1,7,24]],person_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],person_background_spark:[[1,1,24]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[0,10,24],[1,10,24],[1,10,48]],person_circle_slash:[[1,2,24]],person_gear:[[0,2,24],[1,2,24]],person_shield:[[1, 7,24]],person_square:[[0,2,24],[1,2,18],[1,2,24]],person_square_spark:[[0,1,24],[1,1,24]],person_square_stack:[[0,2,24],[1,2,18],[1,2,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,3,24],[1,3,12],[1,3,24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,7,24],[1,7,18],[1,7,24]],pin_slash:[[0,2,24],[1,2,18],[1,2,24]],play:[[0,4,18],[0,4,24],[0,4,36],[0,4,48],[1, 4,24]],play_circle:[[0,2,24],[0,2,48],[1,2,24]],play_circle_half_dashed:[[1,1,24]],play_pause:[[0,1,24],[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,2,24],[1,2,18],[1,2,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,1,24]],player_full_enter_alt:[[1,1,24]],player_full_enter_portrait:[[1,2,24]],player_full_exit:[[1,1,24]],player_full_exit_alt:[[1,1,24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1, 1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,5,12],[1,5,18],[1,5,24],[1,5,48]],playlist_add:[[1,3,18],[1,3,24]],playlist_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,2,24],[1,2,48]],playlist_x:[[1,3,18],[1,3,24]],podcast:[[0,6,12],[0,6,24],[1,6,12],[1,6,18],[1,6,24],[1,6,48]],podcast_add:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point2x:[[1, 1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,24]],poll:[[1,10,18],[1,10,24],[1,10,36]],post:[[0,2,12],[0,2,18],[0,2,24],[1,2,12],[1,2,18],[1,2,24]],premium:[[0,1,24],[1,1,24]],presentation:[[1,3,24]],price_tag:[[0,8,24],[0,8,48],[1,8,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],question_head:[[1,2,24]],queue:[[1,1,24]],queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0, 1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,24]],repeat:[[0,2,24],[1,2,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,2,24],[1,2,36]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,2,18],[1,2,24]],rotate_portrait:[[1,1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,24],[1,8,18],[1,8,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]], sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,18],[1,15,24],[1,15,48]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,2,18],[1,2,24]],seek_forward:[[0,1,24]],seek_rewind:[[0,1,24]],send:[[0,7,18,!0],[0,7,24,!0],[1,7,18,!0],[1,7,24,!0]],shadow:[[1,1,24]],shadow_hard:[[0,3,24],[1,3,24]],shadow_soft:[[0,3,24],[1,3,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[1,12,18,!0],[1,12,24,!0]],share_android:[[0,2,24],[1,2,24]],share_ios:[[1,2,24]],sharpen:[[1,1,24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1, 2,24]],shield_health:[[1,1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,3,24],[1,3,18],[1,3,24]],shorts:[[0,3,18],[0,3,24],[1,3,24]],shorts_add:[[1,1,18],[1,1,24]],shorts_empty:[[0,3,18],[0,3,24],[1,3,24]],shuffle:[[0,4,24],[1,4,18],[1,4,24]],skip10_back:[[1,2,24],[1,2,36]],skip10_forward:[[1,1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,2,24],[1,2,36]],skip5_back:[[1,1,24]], skip5_forward:[[1,1,24]],skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,6,24],[1,6,24]],skip_next:[[0,7,12],[0,7,24],[0,7,36],[1,7,24]],skip_previous:[[0,6,24],[0,6,36],[1,6,24]],skip_up:[[0,6,24],[1,6,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],slip:[[1,1,18],[1,1,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,2,18],[1,2,24]],spacebar:[[1,2,24]],spark:[[0,11,12],[0,11,24],[1,11,24]],spark_bubble_chat:[[1,1,24]],spark_lightbulb:[[0,3,24], [1,3,24]],spark_search:[[1,1,24]],spark_waves:[[0,2,24],[1,2,24]],sparkles:[[0,2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,4,24]],spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[0,2,24],[1,2,24]],square3_stack:[[0,2,24],[1,2,24]],square3d_stack:[[0,2,24],[1,2,24]],square_grid2x2:[[1,1,24]],square_grid3x3:[[0,2,24],[1,2,24]],square_paintbrush:[[1, 1,24]],square_pencil:[[0,3,24],[1,3,18],[1,3,24]],stable_volume:[[0,2,24],[1,2,24]],star:[[0,6,12],[0,6,24],[1,6,12],[1,6,24]],star_circle:[[0,6,12],[0,6,18],[0,6,24],[0,6,36],[1,6,24]],star_full_half:[[0,1,12],[0,1,24]],star_half_filled:[[1,2,12],[1,2,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,1,24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,6,24],[0,6,36],[1,6,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],stopwatch10:[[0,1,24]],stopwatch3:[[0,1,24]],storage:[[0, 2,24],[1,2,24]],subscriptions:[[0,12,24],[1,12,24],[1,12,48]],subtitles:[[0,5,24],[0,5,48],[1,5,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],super_chat:[[0,8,24],[1,8,24]],super_star:[[1,1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],support_agent:[[1,1,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],template_play_spark:[[1,1,24]],text_align_center:[[0, 2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,4,24],[1,4,12],[1,4,18],[1,4,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],text_page_check:[[1,1,24]],text_page_info:[[1,1,24]],text_spark:[[1,1,24]],texture:[[1,1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,25,18],[0,25,24],[0,25,36],[0,25,48],[1,25,18],[1,25,24],[1,25,36],[1,25,48]],thumb_up:[[0,23,18],[0,23,24],[0,23,36],[0,23,48], [1,23,18],[1,23,24],[1,23,36],[1,23,48]],thumb_up_down:[[0,4,24],[1,4,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],timestamp_add:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,18],[1,4,24]],trash_can:[[0,10,24],[1,10,18],[1,10,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,8,18],[0,8,24],[1,8,24]],triangle_up:[[0,3,18],[0,3,24],[1,3,24]],trophy:[[0,3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,24],[1,8,24], [1,8,48]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,2,24],[1,2,36]],tv_slash:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,4,24]],video:[[0,3,24],[1,3,18],[1,3,24]],video_camera:[[0,9,24],[0,9,48],[1,9,24],[1,9,48]],video_camera_add:[[1,2,24]],video_camera_slash:[[1,1,24]],video_link:[[1,5,18],[1,5,24]],video_portrait_spark:[[1,1,24]],video_reverse:[[1,1,24]],video_spark:[[1,2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],view_column2:[[1, 1,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],vignette:[[1,1,24]],volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,3,24],[1,3,48]],waveform_spark:[[1,2,24]],wifi_tethering:[[1,1,24]],wrench:[[0, 3,18],[0,3,24],[1,3,18],[1,3,24]],x:[[1,11,18],[1,11,24],[1,11,36]],x_circle:[[0,9,24],[1,9,18],[1,9,24]],x_octagon:[[1,3,12],[1,3,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_labs:[[0,1,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_shorts:[[0,11,24],[1,11,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[1,2,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var kic={VOLUME_UP_DELHI_PLAYER_FILLED:"VOLUME_MAX",VOLUME_OFF_DELHI_PLAYER:"VOLUME_MUTE",VOLUME_DOWN_DELHI_PLAYER_FILLED:"VOLUME_MIN",CLOSED_CAPTION_DELHI_PLAYER:"CAPTIONS",CLOSED_CAPTION_DELHI_PLAYER_FILLED:"CAPTIONS",SUBTITLES_DELHI_PLAYER:"SUBTITLES",SUBTITLES_DELHI_PLAYER_FILLED:"SUBTITLES",PLAYER_FULL_ENTER_ALT:"PLAYER_FULL_ENTER_ALT",PLAYER_FULL_EXIT_ALT:"PLAYER_FULL_EXIT_ALT",PAUSE_DELHI_PLAYER_FILLED:"PAUSE",PLAY_ARROW_DELHI_PLAYER_FILLED:"PLAY_ARROW"},q_=function(a){this.iconUrlProvider= a}; q_.prototype.resolveIcon=function(a,b){var c=kic[a.iconName.toUpperCase()];c&&(a.iconName=c);var d=a.iconName;d=d.replace(/-/g,"_");a=Object.assign({},a,{iconName:this.mapIconTypeToStandardName(d,!!c)||d.toLowerCase()});if(x("enable_web_delhi_icons")||c){var e;return dic(jic,a,((e=this.iconUrlProvider)==null?void 0:e.getYtStandardUrl)||lic,b)}var f;return dic(iic,a,((f=this.iconUrlProvider)==null?void 0:f.getYtStandardUrl)||mic,b)}; q_.prototype.mapIconTypeToStandardName=function(a,b){return x("enable_web_delhi_icons")||b?hic[a.toUpperCase()]:gic[a.toUpperCase()]}; q_[An]=[Cn(rKb)];function mic(a,b){return eic("https://fonts.gstatic.com/s/i/",a,b)} function lic(a,b){return eic("https://fonts.gstatic.com/s/i/",a,b,!0)} ;var nic=new Set("audio_badge offline_pause pause play_all play_arrow sponsorship_star youtube_music".split(" ")),oic=function(a){this.urlProvider=this.iconUrlProvider=a}; k(oic,q_); oic.prototype.resolveIcon=function(a,b){a.iconName==="youtube_logo"&&(a.iconName="yt-logo-updated");if(a.iconName==="youtube_premium_logo"||a.iconName==="youtube_red_logo")a.iconName="yt-logo-red-updated";var c=Object.assign({},a);a.iconName==="menu"&&(x("enable_web_delhi_icons")||(c.iconName="bars_3"),c.iconStyle="youtube_outline");a.iconSetName==="socialNetworksRound"&&(a.iconName==="mail"&&(c.iconName="email"),a.iconName==="embed"&&(c.iconSize=60));a.iconName==="more"&&(c.iconName="overflow_horizontal");a.iconName=== "fullscreen"&&(c.iconName="screen_full");a.iconName==="premium_standalone"&&(c.iconName="premium_standalone_cairo");a.iconName==="account_linked"&&(c.iconName="circles_overlap_check",c.iconStyle="youtube_fill");a.iconName==="account_unlinked"&&(c.iconName="circles_overlap",c.iconStyle="youtube_outline");nic.has(a.iconName)&&(c.iconStyle="youtube_fill");x("enable_web_delhi_icons")&&(a.iconName==="playlist_add"&&(c.iconName="bookmark"),a.iconName==="offline_pin"&&(c.iconName="arrow_down_circle",c.iconStyle= "youtube_fill"),a.iconName==="circles_overlap_check"||c.iconName==="circles_overlap_check")&&(c.iconName="account_link",c.iconStyle="youtube_fill");x("enable_lockup_redesign")&&a.iconName==="more_vert"&&(c.iconName="overflow_horizontal");a=Object.assign({},c,{iconName:(q_.prototype.mapIconTypeToStandardName.call(this,c.iconName)||c.iconName).toLowerCase()});var d;return(a=dic(cic,a,((d=this.urlProvider)==null?void 0:d.getUrl)||pic,b))?a:q_.prototype.resolveIcon.call(this,c,b)}; oic[An]=[Cn(rKb)];function pic(a,b){return eic("https://www.gstatic.com/youtube/img/icons/web/",a,b)} ;var r_=function(a){this.JSC$15623_storeWithEntities=a}; k(r_,mL);r_.prototype.getApiPaths=function(){return Rvb}; r_.prototype.getExtension=function(a){return z(a,hK)}; r_.prototype.JSC$11204_buildRequest=function(a,b,c){c.purchase_price_micros&&(a.productData={pdgData:{purchasePriceMicros:c.purchase_price_micros.toString()}},c.rich_chat_message&&(a.productData.pdgData.richChatMessage=c.rich_chat_message),c.currency_code&&(a.productData.pdgData.currencyCode=c.currency_code));b.transactionParams&&(a.transactionParams=b.transactionParams);b.clientLocationContext&&(a.clientLocationContext=b.clientLocationContext);c.payments_payload&&(a.paymentsPayload=c.payments_payload); c.funds_guarantee_callback_client_data&&(a.fundsGuaranteeCallbackClientData=c.funds_guarantee_callback_client_data);var d,e;c=(d=this.JSC$15623_storeWithEntities)==null?void 0:(e=d.getState())==null?void 0:e.entities;if(b.entityKeys&&c){d=[];b=l(b.entityKeys);for(e=b.next();!e.done;e=b.next()){var f=e.value;e=mA(f).entityType;if(f=yA(c,e,f)){var h={};d.push((h[e]=f,h))}}a.entityMutationPayloads=d}}; r_[An]=[wL];var qic=new Bn("VIDEO_NOTICES_VIEW_MODEL_TOKEN");var sic=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("i6Xome"),2);a=ric;return b.return(a)})},tic=yD(function(){return sic()},{debugName:"radioButtonItemViewModel"}); Gn(xD,function(a){a.registerLoadFn("radioButtonItemViewModel","i6Xome",sic)});var uic=O(function(a){var b=a.data,c=a.onSelected,d=a.selectedKey,e=a.groupName,f=a.className;a=a.role;var h=l(ip(!1,void 0,"GWO5Ce")),m=h.next().value,p=h.next().value,q=function(){return!!b().isDisabled},t=function(){if(d!==void 0){var v=d(); return!(!v||b().key!==v)}return m()}; h=FC(function(v){q()||(c?c(v.currentTarget,b(),e==null?void 0:e()):p(!m()))}); var u={};return D("yt-selectable-item-view-model",{"aria-checked":t,class:U("ytSelectableItemViewModelHost",f,"ytSelectableItemViewModelContainer",(u.ytSelectableItemViewModelDisabled=q,u)),"on:click":h,"prop:checked":t,role:a,"aria-disabled":q,tabindex:0},D(OC,{data:function(){return b().content}},{cardViewModel:function(v){return D(tV,{data:v.data, isSelected:t})}}))},"Qg");var xJb=O(function(a){function b(v,w,y){(d()?2:1)===1&&w.key&&t(w.key);var A;(A=e)==null||A(v,w,y)} a=Hu(a,{controlledMode:!0});var c=a.data,d=a.controlledMode,e=a.onSelected,f=a.selectedKey,h=a.groupName;a=a.className;var m=function(){return(h==null?void 0:h())||c().key},p=l(Gu(function(){if((d()?2:1)===1)return c().defaultSelectedKey})),q=p.next().value,t=p.next().value,u=function(){return(d()?2:1)===1?q():f==null?void 0:f()}; return D("yt-radio-button-group-view-model",{class:U("ytRadioButtonGroupViewModelHost",a)},D("fieldset",{class:"ytRadioButtonGroupViewModelFieldset",role:"radiogroup"},D(OC,{data:function(){return c().radioButtons}},{radioButtonItemViewModel:function(v){return D(tic,{data:v.data, onSelected:b,selectedKey:u,groupName:m})}, selectableItemViewModel:function(v){return D(uic,{data:v.data,onSelected:b,selectedKey:u,groupName:m,role:"radio"})}})))},"Rg");var vic=O(function(a){var b=Hu(a,{controlledMode:!1,selected:!1,isCompact:!1,disableHorizontalPadding:!1,disableFormsApiMode:!1}),c=b.data,d=b.controlledMode,e=b.selected,f=b.onTap,h=b.groupName;a=b.className;var m=b.isCompact,p=b.disableHorizontalPadding,q=b.disableFormsApiMode,t=function(){return d()?2:c().formFieldMetadata&&!q()?3:1}; rw(function(){t()===2&&c().defaultSelected?co(Error("props.data().defaultSelected should not be set when in controlled mode")):t()===1&&e()?co(Error("props.selected() should not be set when in uncontrolled mode")):t()===3&&e()&&co(Error("props.selected() should not be set when in Forms API mode"))}); var u=rD(function(){return c().formFieldMetadata}); b=l(Gu(function(){if(t()===1)return c().defaultSelected})); var v=b.next().value,w=b.next().value,y=function(){if(t()===3){var A;return((A=u())==null?void 0:A.value)||!1}return t()===1?v():e()}; return D("yt-checkbox-item-view-model",{class:U("ytCheckboxItemViewModelHost",a)},D(RD,{data:function(){var A=c(),C=y();return{title:A.text,subtitle:A.subtext,superlabel:A.superlabel,isSelected:!!C,isDisabled:A.isDisabled,selectionStyle:"LIST_ITEM_SELECTION_STYLE_CHECKBOX"}}, onTap:function(){var A=!y();if(t()===3){var C;(C=u())==null||C.updateValue(A)}else t()===1&&w(A);f==null||f(A,c(),h==null?void 0:h())}, isCompact:m,disableHorizontalPadding:p}))},"Sg");var F0b=O(function(a){var b=a.data;var c=a.controlledMode;var d=a.selectedKeys;var e=a.onItemTap;var f=a.groupName;var h=a.disableHorizontalPadding;var m=function(){return(c==null?0:c())?2:b().formFieldMetadata?3:1},p=function(){return(f==null?void 0:f())||b().key}; rw(function(){m()===2&&b().defaultSelectedKeys?co(Error("props.data().defaultSelectedKeys should not be set when in controlled mode")):m()===1&&(d==null?0:d())?co(Error("props.selectedKeys() should not be set when in uncontrolled mode")):m()===3&&((d==null?void 0:d())!==void 0&&co(Error("props.selectedKeys() should not be set when in Forms API mode")),b().defaultSelectedKeys&&co(Error("props.data().defaultSelectedKeys should not be set when in Forms API mode")))}); var q=b1a(function(){return b().formFieldMetadata}); a=l(Gu(function(){if(m()===1)return b().defaultSelectedKeys})); var t=a.next().value,u=a.next().value,v=function(){if(m()===2)return(d==null?void 0:d())||[];if(m()===3){var y;return((y=q())==null?void 0:y.value)||[]}return t()||[]},w=function(y,A,C){var I,K,N,L,R,W,S,Y; return ra(function(da){if(da.nextAddress==1){I=[];if(m()===1&&A.key)return I=wic(A.key,t()||[]),u(I),da.jumpTo(2);if(m()!==3||!A.key)return da.jumpTo(2);N=((K=q())==null?void 0:K.value)||[];return N.includes(A.key)?(R=N.indexOf(A.key),R===-1?da.jumpTo(5):da.yield((W=q())==null?void 0:W.remove(R),5)):da.yield((L=q())==null?void 0:L.add(A.key),5)}da.nextAddress!=2&&(I=((S=q())==null?void 0:S.value)||[]);(Y=e)==null||Y(A,I,C);da.jumpToEnd()})}; return D("yt-checkbox-group-view-model",{class:U("ytCheckboxGroupViewModelHost")},D("fieldset",{class:U("ytCheckboxGroupViewModelFieldset")},D("div",{role:"list"},D(OC,{data:function(){return b().checkboxes}},{checkboxItemViewModel:function(y){var A=y.data; return D(vic,{data:A,controlledMode:!0,selected:function(){var C=v(),I=A().key;return I?C.includes(I):!1}, onTap:w,groupName:p,disableHorizontalPadding:h})}}))))},"Tg"); function wic(a,b){b.includes(a)?b=b.filter(function(c){return c!==a}):b.push(a); return[].concat(ia(b))} ;var xic=O(function(a){var b=a.data;a=a.className;var c=function(){var m;return((m=d())==null?void 0:m.isToggled)!==void 0},d=eL(function(m){a:{var p=b().entityKey,q=b().entitySelectorType; if(q)switch(q){case"TOGGLEABLE_LIST_ITEM_ENTITY_SELECTOR_TYPE_TOGGLE_MENU_SERVICE_ITEM_ENTITY":if(!p)break;m=(m=SC.toggleMenuServiceItemEntitySelector(m,p))&&m.isToggled!==void 0?{isToggled:m.isToggled}:void 0;break a;default:fo(new Dl("Error: entitySelectorType defined but not matched in selector.",m,q));}m=void 0}return m}),e=l(Gu(function(){var m,p,q; return c()?(m=d())==null?void 0:m.isToggled:(p=b())==null?void 0:(q=p.initialState)==null?void 0:q.isToggled})),f=e.next().value,h=e.next().value; return D("toggleable-list-item-view-model",{el:dB(MD(function(){return b().rendererContext},{onTap:function(m,p){p(); c()||h(!f())}})), class:U("toggleableListItemViewModelHost",a)},D(P,{cond:function(){if(f()){var m=b().toggledListItem;m=z(m,cK)}else m=b().defaultListItem,m=z(m,cK);return m}, then:function(m){return D(RD,{data:m,isToggled:f,ariaLabel:function(){var p=f()?b().toggledListItem:b().defaultListItem,q;p=(q=z(p,cK))==null?void 0:q.rendererContext;var t;return(t=z(p,dy))==null?void 0:t.label}, ariaPressed:function(){return f()}})}}))},"Ug");var yic=zy("DOWNLOAD",{},"Download"),zic=zy("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),Aic=zy("RETRY",{},"Retry"),Bic=zy("PAUSE_DOWNLOADING",{},"Pause downloading"),Cic=zy("RESUME_DOWNLOAD",{},"Resume download"),Dic={text:yic,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},s_={text:zic,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},Eic={text:Aic,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"}, Fic={text:Bic,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},Gic={text:Cic,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};function Hic(a,b,c){if(b)return[Dic];switch(a){case"TRANSFER_STATE_TRANSFER_IN_QUEUE":case"TRANSFER_STATE_COMPLETE":return[s_];case"TRANSFER_STATE_PRE_TRANSFER":case"TRANSFER_STATE_TRANSFERRING":return c?[s_]:[Fic,s_];case"TRANSFER_STATE_PAUSED_BY_USER":return[Gic,s_];case"TRANSFER_STATE_FAILED":case"TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[Eic,s_];default:return[Dic];}} function Iic(a,b,c,d){return Hic(a,b,d).map(function(e){var f=e.text,h=e.iconType,m=e.videoAction;e=e.playlistAction;f=f?{content:f}:void 0;h=h&&{sources:[{clientResource:{imageName:h}}]};var p=Yh(c);if(p){var q=z(p,sy),t=z(p,Xrb);q&&m?q.action=m:t&&e&&(t.action=e)}return{title:f,leadingImage:h,rendererContext:p&&{commandContext:{onTap:{innertubeCommand:p}}}}})} ;var Kic=O(function(a){var b=function(){var m=a.data();m=LD(m.rendererContext);var p;return(p=z(m,sy))==null?void 0:p.videoId},c=eL(function(m){var p=b(),q=Jic(a.data()); return p?wC(m,p):q?xC(m,q):"TRANSFER_STATE_UNKNOWN"}),d=fL(zC,b),e=eL(function(m){return d_a(m,b(),Jic(a.data()))}),f=function(){return Iic(c(),d(),LD(a.data().rendererContext),!!Jic(a.data()))},h=function(){return e()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}; return D("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:h},D(P,{cond:function(){return!h()}, then:function(){return D(P,{cond:f,then:function(m){return D(mw,{each:m},function(p){return D(RD,{data:p,isCompact:a.isCompact,isMenuItem:a.isMenuItem,inPopup:a.inPopup,disableHorizontalPadding:a.disableHorizontalPadding})})}})}}))},"Vg"); function Jic(a){a=LD(a.rendererContext);var b;return(b=z(a,Xrb))==null?void 0:b.playlistId} Kic.idomCompat=!0;var DJb=O(function(a){var b=a.data;var c=a.isCompact;var d=a.hideSelectionTextChevron;var e=a.inPopup;var f=a.isOverlay;var h=a.disableHorizontalPadding;var m=function(){return Lic(b())&&(e==null?void 0:e())}; a=FC(function(q){if(e!=null&&e()&&x("web_enable_arrow_key_navigation_in_dropdown")){var t=V2a(q.currentTarget);if(t.length!==0){var u=Array.prototype.indexOf.call(t,document.activeElement);switch(q.key){case"ArrowDown":q.preventDefault();Mic(t,u);break;case"ArrowUp":q.preventDefault();Nic(t,u);break;case"Tab":q.preventDefault(),q.shiftKey?Nic(t,u):Mic(t,u);}}}}); var p={};return D("yt-list-view-model",{class:U("ytListViewModelHost",(p.ytListViewModelHostKaiosSpatNav=Bd&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",p)),role:function(){return m()?"menu":"list"}, style:GC({"max-height":function(){var q,t=(q=b())==null?void 0:q.visibleElementCount;if(t)return(t+.5)*40+"px"}}), "on:keydown":a},D(OC,{data:function(){return b().listItems}},{listItemViewModel:function(q){return D(RD,{data:q.data, isMenuItem:m,isCompact:c,hideSelectionTextChevron:d,inPopup:e,isOverlay:f,disableHorizontalPadding:h})}, toggleableListItemViewModel:function(q){return D(xic,{data:q.data})}, downloadListItemViewModel:function(q){return D(Kic,{data:q.data,isMenuItem:m,isCompact:c,inPopup:e,disableHorizontalPadding:h})}, switchListItemViewModel:function(q){return D(SD,{data:q.data,disableHorizontalPadding:h})}}))},"Wg"); DJb.idomCompat=!0;function Lic(a){var b;return(b=a.listItems)==null?void 0:b.some(function(c){var d;return KD((d=z(c,cK))==null?void 0:d.rendererContext)})} function Mic(a,b){var c;(c=a[(b+1)%a.length])==null||c.focus()} function Nic(a,b){var c=a.length,d;(d=a[b===-1?c-1:(b-1+c)%c])==null||d.focus()} ;var PJb=O(function(a){var b=Hu(a,{type:1,disablePadding:!1,disablePrimaryButton:!1}),c=b.data,d=b.type;a=b.disablePadding;var e=b.disablePrimaryButton,f=b.onClickPrimaryButton,h=function(){return c().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},m=function(){return{disabled:e(), state:e()?"disabled":"active"}},p=function(){return c().leadingLabel||c().trailingLabel}; b={};return D("yt-panel-footer-view-model",{class:U("ytPanelFooterViewModelHost",(b.ytPanelFooterViewModelHideDivider=function(){return c().shouldHideDivider},b.ytPanelFooterViewModelDisablePadding=a,b))},D(P,{cond:p, then:function(){var q={},t={};return D("div",{class:U("ytPanelFooterViewModelTextRow",(q.ytPanelFooterViewModelRowBottomPadding=function(){var u=c();return!(!u.leadingLabel&&!u.trailingLabel||!u.primaryButton&&!u.secondaryButton)},q))},D(gC,{text:function(){return c().leadingLabel}, className:U((t.ytPanelFooterViewModelTextPadding=p,t))}),D(gC,{text:function(){return c().trailingLabel}}))}}),D(P,{cond:h, then:function(){var q={};return D("div",{class:"ytPanelFooterViewModelButtonStack"},D("div",{class:U("ytPanelFooterViewModelPrimaryButton",(q.ytPanelFooterViewModelButtonStackTopButton=function(){return c().secondaryButton},q))},D(OC,{data:function(){return c().primaryButton}},{buttonViewModel:function(t){return D(AD,{data:t.data, buttonOverrides:m,onClick:f})}})),D(OC,{data:function(){return c().secondaryButton}},{buttonViewModel:AD}))}}),D(P,{cond:function(){return!h()}, then:function(){var q={},t={},u={};return D("div",{class:U("ytPanelFooterViewModelButtonRow",(q.ytPanelFooterViewModelButtonRowTrailing=function(){return 3===d()},q))},D("div",{class:U("ytPanelFooterViewModelButtonRowLeftButton",(t.ytPanelFooterViewModelButtonRowFullWidth=function(){return 1===d()},t.ytPanelFooterViewModelButtonRowHidden=function(){return!c().secondaryButton||0===d()},t.ytPanelFooterViewModelButtonRowShrink=function(){return 2===d()},t))},D(OC,{data:function(){return c().secondaryButton}}, {buttonViewModel:AD})),D("div",{class:U("ytPanelFooterViewModelPrimaryButton",(u.ytPanelFooterViewModelButtonRowFullWidth=function(){return 0===d()||1===d()},u.ytPanelFooterViewModelButtonRowExpand=function(){return 2===d()},u))},D(OC,{data:function(){return c().primaryButton}},{buttonViewModel:function(v){return D(AD,{data:v.data, buttonOverrides:m,onClick:f})}})))}}))},"Xg"); PJb.idomCompat=!0;var Oic=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("ZQKx1"),2);a=c1a;return b.return(a)})},Pic=yD(function(){return Oic()},{debugName:"buttonOrAnchor"}); Gn(xD,function(a){a.registerLoadFn("buttonOrAnchor","ZQKx1",Oic)});var Qic=O(function(a){var b=a.data;return D("div",{class:"ytPanelHeaderViewModelTitleWrapper"},D(P,{cond:function(){return b().title}, then:function(c){var d={};return D("h2",{class:U("ytPanelHeaderViewModelTitleHeader",(d.ytPanelHeaderViewModelTitleHeaderNonInteractive=!x("web_panel_header_title_non_interactive_killswitch"),d))},D(gC,{text:c,className:"ytPanelHeaderViewModelTitle"}))}}),D(P,{cond:function(){return b().subtitle}, then:function(c){return D(gC,{text:c,className:"ytPanelHeaderViewModelSubtitle"})}}))},"Yg"),Ric=O(function(a){var b=a.data; var c=Y1a(function(){return b().rendererContext}); a={};return D("yt-panel-header-view-model",{class:U("ytPanelHeaderViewModelHost",(a.ytPanelHeaderViewModelHostHideDivider=function(){return!!b().shouldHideDivider},a.ytPanelHeaderViewModelHostCompact=function(){return!!b().subtitle},a)), "aria-label":function(){var d;return(d=c())==null?void 0:d.label}},D(P,{cond:function(){return KD(b().rendererContext)}, then:function(){return D(Pic,{className:"ytPanelHeaderViewModelButtonOrAnchor",command:function(){return LD(b().rendererContext)}, focusedClassName:"ytPanelHeaderViewModelButtonOrAnchorFocused"},D(Qic,{data:b}))}, else:function(){return D(Qic,{data:b})}}),D("div",{class:"ytPanelHeaderViewModelTrailingButtons"},D(OC,{data:function(){return b().trailingButtons}},{buttonViewModel:function(d){return D(AD,{data:d.data, className:"ytPanelHeaderViewModelButton"})}})))},"Zg"); Ric.idomCompat=!0;function t_(){for(var a=[],b=l(sa.apply(0,arguments)),c=b.next();!c.done;c=b.next())if(c=c.value)if(typeof c==="string")a.push(c);else{c=l(Object.entries(c));for(var d=c.next();!d.done;d=c.next()){var e=l(d.value);d=e.next().value;(e=e.next().value)&&a.push(d)}}return a.join(" ")} ;function Sic(a){var b=21;if(!a)return b;b+=a.headerTitle?27:0;b+=a.headerTitle&&a.hasHeaderActionHeader?4:0;return b+=a.headerTitle&&a.headerSubtitle?16:0} function Tic(a){var b=0;if(!a)return b;b+=a.hasFooterPrimaryButton||a.hasFooterSecondaryButton?48:0;b+=a.footerTrailingLabel||a.footerLeadingLabel?30:0;return b+=a.hasFooterPrimaryButton||a.hasFooterSecondaryButton||!a.footerTrailingLabel&&!a.footerLeadingLabel?0:12} function Uic(a){var b=new Bj,c=a;return{subscribe:function(d){b.subscribe("changed",d)}, dispatch:function(d,e){var f=c;if(d==="Drag Start")c=Object.assign({},f,{isAnimating:!1,initialY:e.clientY});else if(d==="Drag Move"){d=e.contentScrollable?-1*(f.initialY-24):0;var h,m=(h=e.headerDivHeight)!=null?h:Sic(e.header),p;h=(p=e.footerDivHeight)!=null?p:Tic(e.footer);p=Math.min(e.fullContentWrapperHeight,e.heightMap[e.contentWrapperId]+m-h);d=Math.max(d,e.clientY-f.initialY);c=Object.assign({},f,{currentY:d,maxHeightForContentWrapper:Math.min(p,Math.max(0,(f.isFullScreen?p:e.contentWrapperHeight)- d))})}else c=d==="Snap To Full Screen"?Object.assign({},f,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:e.maxHeight}):d==="Snap To Neutral Position"?Object.assign({},f,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:e.maxHeight}):d==="Close Sheet"?Object.assign({},f,{isAnimating:!0,currentY:e.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:e.maxHeight}):f;b.publish("changed",c)}}} ;var Vic=O(function(a){var b=FC(function(f){var h;if((h=a.skipContentClick)==null?0:h.call(a))return!1;a.onContentWrapperClick(f);return!0}),c,d,e; return D("div",{class:U("ytSpecBottomSheetLayoutHost","ytSpecBottomSheetLayoutContainer","ytSpecBottomSheetLayoutModern"),style:function(){return a.isAnimating()?"transform: translateY("+a.currentY()+"px);transition: 0.2s":""}},(c=a.header)==null?void 0:c.call(a),D("div",{id:a.contentWrapperId, class:"ytSpecBottomSheetLayoutContentWrapper",style:GC({"max-height":VV(a.maxHeightForContentWrapper)}),"on:scroll":FC(function(f){return a.onScroll(f),!1}), "on:touchmove":FC(function(f){return f.stopPropagation(),!1})},D("div",{el:dB(a.contentWrapperEl), class:"ytSpecBottomSheetLayoutBottomSheetContent","on:click":b},(d=a.body)==null?void 0:d.call(a))),(e=a.footer)==null?void 0:e.call(a))},"$g"); Vic.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};function Wic(a){switch(a){case 0:return"ytSpecBottomSheetLayoutPrimaryButtonDefault";case 1:return"ytSpecBottomSheetLayoutPrimaryButtonTrailingPair";case 2:return"ytSpecBottomSheetLayoutPrimaryButtonSplitPair";case 3:return"ytSpecBottomSheetLayoutPrimaryButtonPrimarySplitPair";}} var Xic=O(function(a){a=Hu(a,{leadingLabel:void 0,trailingLabel:void 0,footerButtonType:void 0});var b=a.leadingLabel,c=a.trailingLabel,d=a.footerButtonType,e=a.primaryButton,f=a.hasPrimaryButton,h=a.secondaryButton,m=a.hasSecondaryButton,p=a.footerOverride,q=function(){return b()||c()||f()||m()}; return D(P,{cond:a.hasFooterOverride,then:function(){return D(mq,null,p==null?void 0:p())}, else:function(){return D(P,{cond:q,then:function(){return D("div",{class:"ytSpecBottomSheetLayoutFooterWrapper"},D(P,{cond:function(){return b()||c()}, then:function(){var t={};return D("div",{class:U("ytSpecBottomSheetLayoutFooterLabelWrapper",(t.ytSpecBottomSheetLayoutFooterLabelWrapperWithoutButtons=function(){return!f()},t))},D(P,{cond:b, then:function(){return D("div",{class:"ytSpecBottomSheetLayoutLeadingLabel"},b)}}),D(P,{cond:c, then:function(){return D("div",{class:"ytSpecBottomSheetLayoutTrailingLabel"},c)}}))}}),D(P,{cond:function(){return f()||m()}, then:function(){var t={};return D("div",{class:U("ytSpecBottomSheetLayoutFooterButtonWrapper",(t.ytSpecBottomSheetLayoutFooterButtonWrapperLandscapeButtonWrapper=yYa,t))},D(P,{cond:function(){return m()&&d()!==0}, then:function(){var u={};return D("div",{class:U("ytSpecBottomSheetLayoutSecondaryButton",(u.ytSpecBottomSheetLayoutSecondaryButtonTrailingPair=function(){return d()===1&&m()},u.ytSpecBottomSheetLayoutSecondaryButtonSplitPair=function(){return d()===2&&m()},u.ytSpecBottomSheetLayoutSecondaryButtonPrimarySplitPair=function(){return d()===3&&f()},u))},h==null?void 0:h())}}),D(P,{cond:f, then:function(){return D("div",{class:U("ytSpecBottomSheetLayoutPrimaryButton",function(){return Wic(d())})},e==null?void 0:e())}}))}}))}})}})},"ah"); Xic.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var Yic=O(function(a){var b=Hu(a,{title:void 0,subtitle:void 0}),c=b.title,d=b.subtitle,e=b.headerOverride;a=b.hasHeaderOverride;var f=b.actionHeader,h=b.hasActionHeader,m=b.touchstart,p=b.touchmove,q=b.touchend,t=b.mousedown,u=b.headerId;b=b.isDragging;var v=FC(function(I){m==null||m(I);return!1}),w=FC(function(I){p==null||p(I); return!1}),y=FC(function(I){q==null||q(I); return!1}),A=FC(function(I){t==null||t(I); return!1}),C={}; return D("div",{class:U("ytSpecBottomSheetLayoutHeaderWrapper",(C.ytSpecBottomSheetLayoutHeaderWrapperIsDragging=b,C)),id:u,"on:touchstart":v,"on:touchmove":w,"on:touchend":y,"on:mousedown":A},D("div",{class:"ytSpecBottomSheetLayoutDragLine"}),D(P,{cond:a,then:function(){return D(mq,null,e==null?void 0:e())}, else:function(){var I={};return D("div",{class:U((I.ytSpecBottomSheetLayoutHeader=!0,I.ytSpecBottomSheetLayoutHeaderWithTitle=c,I))},D("div",{class:"ytSpecBottomSheetLayoutTitleWrapper"},D(P,{cond:c,then:function(){return D(mq,null,D("h2",{class:"ytSpecBottomSheetLayoutTitle"},c),D(P,{cond:d,then:function(){return D("h3",{class:"ytSpecBottomSheetLayoutSubtitle"},d)}}))}})),D(P,{cond:function(){return c()&&h()}, then:function(){return D("div",{class:"ytSpecBottomSheetLayoutActionHeader"},f==null?void 0:f())}}))}}))},"bh"); Yic.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,mousedown:!0,actionHeader:!0,headerOverride:!0,isDragging:!0}};O(function(a){function b(ab){if(!W&&typeof MutationObserver!=="undefined"){var La={childList:!0};"MutationObserver"in window&&(W=new MutationObserver(c.bind(void 0,ab)),W.observe(ab,La))}} function c(ab){typeof W!=="undefined"&&(S["content-wrapper"]===void 0&&(S["content-wrapper"]=ab.children[0].clientHeight),K(S["content-wrapper"]),I()>N()||L(I()))} function d(){C(window.innerHeight);I()>N()||L(I());Y.isFullScreen[0]()&&I()>N()?da().dispatch("Snap To Full Screen",{maxHeight:R()}):da().dispatch("Snap To Neutral Position",{maxHeight:N()})} function e(ab){document.body.style.overscrollBehavior="none";ab.preventDefault();da().dispatch("Drag Start",{clientY:ab.touches[0].clientY})} function f(ab){ab.preventDefault();da().dispatch("Drag Move",{clientY:ab.touches[0].clientY,contentScrollable:I()>N(),fullContentWrapperHeight:R(),contentWrapperHeight:N(),heightMap:S,contentWrapperId:"content-wrapper",header:u_(a),footer:u_(a),headerDivHeight:S["bottom-sheet-header"],footerDivHeight:S["bottom-sheet-footer"]})} function h(ab){ab.button===0&&(ab.preventDefault(),Sa(!0),da().dispatch("Drag Start",{clientY:ab.clientY}),window.addEventListener("mousemove",Ua),window.addEventListener("mouseup",m))} function m(){Sa(!1);window.removeEventListener("mousemove",Ua);window.removeEventListener("mouseup",m);q()} function p(){document.body.style.overscrollBehavior="";q()} function q(){Y.isFullScreen[0]()?Y.currentY[0]()>=60?da().dispatch("Snap To Neutral Position",{maxHeight:N()}):da().dispatch("Snap To Full Screen",{maxHeight:R()}):Y.currentY[0]()>=60?t():Y.currentY[0]()<=-60&&I()>N()?da().dispatch("Snap To Full Screen",{maxHeight:R()}):da().dispatch("Snap To Neutral Position",{maxHeight:N()})} function t(){da().dispatch("Close Sheet",{clientHeight:A(),maxHeight:0});setTimeout(function(){Zic()},250)} var u=sw("div"),v=sw("div"),w=l(ip(window.innerHeight,void 0,"CmOsU")),y=w.next().value;w=w.next().value;var A=y,C=w;w=l(ip(0,void 0,"p0Flhb"));y=w.next().value;w=w.next().value;var I=y,K=w;w=l(Gu(function(){var ab=u_(a);return .6*A()-Sic(ab)-Tic(ab)})); y=w.next().value;w=w.next().value;var N=y,L=w,R=function(){var ab=u_(a),La=A(),ib=S["bottom-sheet-header"],sb=S["bottom-sheet-footer"];return La-(ab.hasHeaderFn&&ib!==void 0?ib:Sic(ab))-(ab.hasFooterFn&&sb!==void 0?sb:Tic(ab))-24-24},W=null,S={},Y={initialY:ip(0,void 0,"sxdESd"), currentY:ip(0,void 0,"GZzqeb"),isAnimating:ip(!1,void 0,"vJBupc"),isFullScreen:ip(!1,void 0,"XyRDp"),maxHeightForContentWrapper:Gu(N)},da=function(){var ab=null;return function(){if(!ab){var La={initialY:Y.initialY[0](),currentY:Y.currentY[0](),isAnimating:Y.isAnimating[0](),isFullScreen:Y.isFullScreen[0](),maxHeightForContentWrapper:Y.maxHeightForContentWrapper[0]()};ab=Uic(La)}return ab}}(); rw(function(){window.addEventListener("resize",d);da().subscribe(function(ab){Y.initialY[1](ab.initialY);Y.currentY[1](ab.currentY);Y.isAnimating[1](ab.isAnimating);Y.isFullScreen[1](ab.isFullScreen);Y.maxHeightForContentWrapper[1](ab.maxHeightForContentWrapper)}); requestAnimationFrame(function(){u.value&&(S["bottom-sheet-header"]=u.value.clientHeight);v.value&&(S["bottom-sheet-footer"]=v.value.clientHeight)})}); zp(function(){window.removeEventListener("resize",d);window.removeEventListener("mousemove",Ua);window.removeEventListener("mouseup",m);W&&(W.disconnect(),W=null)}); y=l(ip(!1,void 0,"KsiTYe"));var Aa=y.next().value,Sa=y.next().value,Ua=function(ab){da().dispatch("Drag Move",{clientY:ab.clientY,contentScrollable:I()>N(),fullContentWrapperHeight:R(),contentWrapperHeight:N(),heightMap:S,contentWrapperId:"content-wrapper",header:u_(a),footer:u_(a),headerDivHeight:S["bottom-sheet-header"],footerDivHeight:S["bottom-sheet-footer"]})},qb=U({"bottom-sheet-content-without-icon":function(){var ab; return!((ab=a.shouldShowIcons)==null?0:ab.call(a))}}); return D("bottom-sheet-layout",null,D(Vic,{contentWrapperId:"content-wrapper",isAnimating:function(){return Y.isAnimating[0]()}, currentY:function(){return Y.currentY[0]()}, maxHeightForContentWrapper:function(){return Y.maxHeightForContentWrapper[0]()}, shouldShowIcons:a.shouldShowIcons,skipContentClick:a.skipContentClick,onScroll:function(){var ab=document.getElementById("bottom-sheet-header"),La=document.getElementById("content-wrapper");if(ab&&La){var ib={};ib=(ib.ytSpecBottomSheetLayoutHeaderWrapper=!0,ib.ytSpecBottomSheetLayoutHeaderWrapperBottomBorder=!0,ib);ab.className=La.scrollTop>1?t_(ib):"ytSpecBottomSheetLayoutHeaderWrapper"}}, onContentWrapperClick:Zic,contentWrapperEl:function(ab){b(ab);requestAnimationFrame(function(){c(ab)})}, header:function(){return D("div",{el:u},D(Yic,{isDragging:Aa,touchstart:e,touchmove:f,touchend:p,mousedown:h,title:a.headerTitle,subtitle:a.headerSubtitle,headerId:"bottom-sheet-header",headerOverride:a.headerFn,hasHeaderOverride:a.hasHeaderFn,actionHeader:a.headerActionHeader,hasActionHeader:a.hasHeaderActionHeader}))}, footer:function(){return D("div",{el:v},D(Xic,{footerButtonType:a.footerButtonType,leadingLabel:a.footerLeadingLabel,trailingLabel:a.footerTrailingLabel,primaryButton:a.footerPrimaryButton,hasPrimaryButton:a.hasFooterPrimaryButton,secondaryButton:a.footerSecondaryButton,hasSecondaryButton:a.hasFooterSecondaryButton,footerOverride:a.footerFn,hasFooterOverride:a.hasFooterFn}))}, body:function(){return D(P,{cond:a.hasContentFn,then:function(){var ab;return D("div",{class:qb},(ab=a.contentFn)==null?void 0:ab.call(a))}})}}))},"ch").idomCompat={callbacks:{headerActionHeader:!0, headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};function Zic(){Fn().resolve(HL).closeSheet()} function u_(a){var b,c,d,e,f,h,m,p,q,t,u;return{headerTitle:(b=a.headerTitle)==null?void 0:b.call(a),headerSubtitle:(c=a.headerSubtitle)==null?void 0:c.call(a),headerActionHeader:a.headerActionHeader,footerPrimaryButton:a.footerPrimaryButton,footerSecondaryButton:a.footerSecondaryButton,footerButtonType:(d=a.footerButtonType)==null?void 0:d.call(a),footerLeadingLabel:(e=a.footerLeadingLabel)==null?void 0:e.call(a),footerTrailingLabel:(f=a.footerTrailingLabel)==null?void 0:f.call(a),shouldShowIcons:(h= a.shouldShowIcons)==null?void 0:h.call(a),skipContentClick:(m=a.skipContentClick)==null?void 0:m.call(a),additionalClassName:(p=a.additionalClassName)==null?void 0:p.call(a),onClosedCallback:a.onClosedCallback,focusOnClose:(q=a.focusOnClose)==null?void 0:q.call(a),isDisabled:(t=a.isDisabled)==null?void 0:t.call(a),disabledCommand:(u=a.disabledCommand)==null?void 0:u.call(a),headerFn:a.headerFn,contentFn:a.contentFn,footerFn:a.footerFn,hasHeaderFn:a.hasHeaderFn(),hasContentFn:a.hasContentFn(),hasFooterFn:a.hasFooterFn(), hasFooterPrimaryButton:a.hasFooterPrimaryButton(),hasFooterSecondaryButton:a.hasFooterSecondaryButton(),hasHeaderActionHeader:a.hasHeaderActionHeader()}} ;var $ic=O(function(a){var b=Fn().resolve(HL),c=FC(function(){var e;(a==null?0:(e=a.preventCloseSheetOnClick)==null?0:e.call(a))||b.closeSheet()}),d={}; return D("yt-contextual-sheet-layout",{class:U("ytContextualSheetLayoutHost",(d.ytContextualSheetLayoutAddPadding=a.addContentPadding,d.ytContextualSheetLayoutHostOldMinWidth=function(){var e,f;return!((e=a.hasHeader)==null||!e.call(a))||!((f=a.hasFooter)==null||!f.call(a))||x("enable_contextual_sheet_old_min_width_killswitch")},d)), "on:click":c},D(P,{cond:function(){return!!a.header}, then:function(){return D("div",{class:"ytContextualSheetLayoutHeaderContainer"},a.header())}}),D(P,{cond:function(){return!!a.content}, then:function(){return D("div",{class:"ytContextualSheetLayoutContentContainer"},a.content())}}),D(P,{cond:function(){return!!a.footer}, then:function(){return D("div",{class:"ytContextualSheetLayoutFooterContainer"},a.footer())}}))},"dh"); $ic.idomCompat={callbacks:{header:!0,content:!0,footer:!0,hasHeader:!0,hasContent:!0,hasFooter:!0,addContentPadding:!0}};function ajc(a){switch(a){case 2:return"ytSpecTouchFeedbackShapeTouchResponseInverse";case 3:return"ytSpecTouchFeedbackShapeOverlayTouchResponse";case 4:return"ytSpecTouchFeedbackShapeOverlayTouchResponseInverse";default:return"ytSpecTouchFeedbackShapeTouchResponse";}} function bjc(a,b){if(b)return"ytSpecTouchFeedbackShapeThumbnailSizeSmall";if(a)switch(a){case"large":return"ytSpecTouchFeedbackShapeThumbnailSizeLarge";case"medium":return"ytSpecTouchFeedbackShapeThumbnailSizeMedium";default:return"ytSpecTouchFeedbackShapeThumbnailSizeSmall";}} var YK=O(function(a){var b=a.model;var c=a.pointerDownEvent;var d=a.pointerUpEvent;var e=a.pointerLeaveEvent;var f=a.hovered;a=sw("yt-touch-feedback-shape");var h=sw("div"),m=sw("div"),p=l(Gu(function(){return(d==null?0:d())||(e==null?0:e())?!1:!(c==null||!c())||!1})),q=p.next().value,t=p.next().value,u=void 0,v=function(){!u&&m.value&&h.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(u=new LBb(m.value,h.value)); var K;(K=u)==null||K.play()},w=function(){var K; (K=u)==null||K.cancel()},y=function(){var K; (K=u)==null||K.cancel()}; lw(function(){(d==null?0:d())&&v()},"rm551d"); lw(function(){(c==null?0:c())&&w()},"oA1ybb"); lw(function(){(e==null?0:e())&&y()},"G3ZY5b"); p=FC(function(){v();t(!1)}); var A=FC(function(){w();t(!0)}),C=FC(function(){y(); t(!1)}); zp(function(){if(u){var K;(K=u)==null||K.cancel();u=void 0}}); var I={};return D("yt-touch-feedback-shape",{el:a,class:U("ytSpecTouchFeedbackShapeHost",function(){return ajc(b().color)},function(){return bjc(b().thumbnailSize,!!b().isExtended)},(I.ytSpecTouchFeedbackShapeFocused=function(){return!!b().focused&&!b().disabled},I.ytSpecTouchFeedbackShapeCircular=function(){return!!b().circular},I.ytSpecTouchFeedbackShapeDown=q,I.ytSpecTouchFeedbackShapeTriggerEvents=function(){return!!b().triggerEvents},I.ytSpecTouchFeedbackShapeHovered=function(){return f==null? void 0:f()},I)), style:GC({margin:function(){return b().margin?"-"+b().margin+"px":void 0}, "margin-top":function(){return b().customTopExtend?"-"+b().customTopExtend+"px":void 0}}), "on:mousedown":A,"on:mouseup":p,"on:pointerleave":C,"on:touchstart":A,"on:touchend":p,"aria-hidden":!0},D(P,{cond:function(){return!!b().hoverEffect}, then:function(){return D("div",{class:"ytSpecTouchFeedbackShapeHoverEffect",style:GC({"border-radius":function(){return b().borderRadius}, background:function(){var K;if(K=b().hoverEffect){for(var N=[],L=l((K==null?void 0:K.lightingTechniques)||[]),R=L.next();!R.done;R=L.next())switch(R.value){case 2:var W=R=void 0,S=void 0,Y=void 0;N.push("linear-gradient(180deg, "+((R=K)==null?void 0:(W=R.palette)==null?void 0:W.keyLight)+", "+((S=K)==null?void 0:(Y=S.palette)==null?void 0:Y.background)+")");}var da,Aa;N.push((da=b().hoverEffect)==null?void 0:(Aa=da.palette)==null?void 0:Aa.background);K=N.join(", ")}else K=void 0;return K}})})}}), D("div",{class:"ytSpecTouchFeedbackShapeStroke", style:GC({"border-radius":function(){return b().borderRadius}, "border-color":function(){var K,N;return(K=b().touchEffect)==null?void 0:(N=K.palette)==null?void 0:N.background}}), el:h}),D("div",{class:"ytSpecTouchFeedbackShapeFill",style:GC({"border-radius":function(){return b().borderRadius}, "background-color":function(){var K,N;return(K=b().touchEffect)==null?void 0:(N=K.palette)==null?void 0:N.background}}), el:m}))},"hh"); YK.idomCompat=!0;var cjc=O(function(a){var b=sw("input"),c=l(Gu(function(){var q;return(q=a.value())!=null?q:0})),d=c.next().value,e=c.next().value; lw(function(){var q=b.value;q.valueAsNumber=d();var t=d(),u=a.minValue(),v=a.inputRange();q.style.setProperty("--yt-slider-shape-gradient-percent",(t-u)/v*100+"%")},"ioqwI"); c=FC(function(q){var t;(t=a.onInput)==null||t.call(a,q);q=b.value;var u;q=(u=q==null?void 0:q.value)!=null?u:0;e(Number(q));return!1}); var f=FC(function(q){var t;(t=a.onChange)==null||t.call(a,q);return!1}),h=FC(function(){var q=d()-a.stepSize(); b.value.valueAsNumber=q;b.value.dispatchEvent(new Event("input"));b.value.dispatchEvent(new Event("change"));return!1}),m=FC(function(){var q=d()+a.stepSize(); b.value.valueAsNumber=q;b.value.dispatchEvent(new Event("input"));b.value.dispatchEvent(new Event("change"));return!1}),p={}; return D("slider-shape",{class:U("ytSliderShapeHost",(p.ytSliderShapeVertical=function(){return a.isVertical()},p))},D(P,{cond:a.shouldShowButtonControllers, then:function(){return D("button",{class:"ytSliderShapeHostIncrementButton","aria-label":a.decrementButtonLabel,disabled:function(){return d()===a.minValue()}, "on:click":h},D(YK,{model:{circular:!0}}),D("div",{class:"ytSliderShapeHostIncrementButtonIconWrapper"},D(aC,{icon:"BAR_HORIZONTAL",className:"ytSliderShapeHostIncrementButtonIcon"})))}}),D("input",{class:function(){return a.isVertical()?"ytSliderShapeVerticalSlider":"ytSliderShapeHostSlider"}, type:"range",id:"slider",el:b,min:a.minValue,max:a.maxValue,"aria-label":a.ariaLabel,"aria-valuemin":a.minValue,"aria-valuemax":a.maxValue,"aria-valuenow":d,"aria-valuetext":function(){return String(d())}, value:d,step:a.stepSize,"on:input":c,"on:change":f}),D(P,{cond:a.shouldShowButtonControllers,then:function(){return D("button",{class:"ytSliderShapeHostIncrementButton","aria-label":a.incrementButtonLabel,disabled:function(){return d()===a.maxValue()}, "on:click":m},D(YK,{model:{circular:!0}}),D("div",{class:"ytSliderShapeHostIncrementButtonIconWrapper"},D(aC,{icon:"ADD",className:"ytSliderShapeHostIncrementButtonIcon"})))}}))},"jh");function djc(a,b){return function(c){a&&QB(a);b&&b(c)}} ;var ejc=O(function(a){var b=function(){var c;if((c=a.data())&&c.maxValue&&c.minValue&&c.stepCount){var d,e=(d=c.valueDenominator)!=null?d:1;d=(c.maxValue-c.minValue)/e;var f=d/c.stepCount,h,m=((h=c.initialValue)!=null?h:c.minValue)/e,p,q;h=(q=(p=z(c.increaseButton,ZJ))==null?void 0:p.accessibilityText)!=null?q:"";var t,u;p=(u=(t=z(c.decreaseButton,ZJ))==null?void 0:t.accessibilityText)!=null?u:"";t=!!z(c.increaseButton,ZJ)&&!!z(c.decreaseButton,ZJ);var v,w;u=(w=(v=z(c.rendererContext,dy))==null?void 0: v.label)!=null?w:"";c={value:m,ariaLabel:u,minValue:c.minValue/e,maxValue:c.maxValue/e,inputRange:d,stepSize:f,onChange:djc(c.onSliderValueSetCommand,a.onChangeCallback),onInput:djc(c.onSliderTouchCommand,a.onInputCallback),incrementButtonLabel:h,decrementButtonLabel:p,isVertical:!1,shouldShowButtonControllers:t}}else c={};return c}; return D("div",{class:"ytHorizontalSliderViewModelHost"},D(cjc,{value:function(){return b().value}, ariaLabel:function(){return b().ariaLabel}, minValue:function(){return b().minValue}, maxValue:function(){return b().maxValue}, stepSize:function(){return b().stepSize}, inputRange:function(){return b().inputRange}, incrementButtonLabel:function(){return b().incrementButtonLabel}, decrementButtonLabel:function(){return b().decrementButtonLabel}, isVertical:function(){return b().isVertical}, onChange:function(c){b().onChange(c)}, onInput:function(c){b().onInput(c)}, shouldShowButtonControllers:function(){return b().shouldShowButtonControllers}}))},"kh");var fjc=O(function(a){var b=a.data;var c=a.className;var d=a.onClick;return D("ytw-variable-speed-controller-speed-button-view-model",{class:U("ytwVariableSpeedControllerSpeedButtonViewModelHost",c)},D(OC,{data:function(){return b().playbackSpeedButton}},{buttonViewModel:function(e){return D(AD,{data:e.data, onClick:d})}}),D(gC,{className:"ytwVariableSpeedControllerSpeedButtonViewModelSpeedLabel", text:function(){return b().buttonLabel}}))},"lh");var gjc;function hjc(a){if(!gjc)a:{if(iXa()){var b=Aka(Fl()+"::yt-maw-player");if(b){gjc=new uB(b);break a}}gjc=void 0}var c;(c=gjc)==null||c.set("recent-custom-speed",String(a*100))} function ijc(a){a=a.target.valueAsNumber;var b,c;(b=ND.getPlayer)==null||(c=(0,b.call)(ND))==null||c.setPlaybackRate(a)} function jjc(a){hjc(a.target.valueAsNumber)} function kjc(a){var b,c;(b=ND.getPlayer)==null||(c=(0,b.call)(ND))==null||c.setPlaybackRate(a);hjc(a)} var ljc=O(function(a){var b=a.data;var c=a.onSliderInput===void 0?ijc:a.onSliderInput;var d=a.onSliderChange===void 0?jjc:a.onSliderChange;var e=a.onSpeedButtonClick===void 0?kjc:a.onSpeedButtonClick;a=l(ip(100,void 0,"Yqskqd"));var f=a.next().value,h=a.next().value,m=l(ip(!1,void 0,"os7mpb"));a=m.next().value;var p=m.next().value;m=FC(function(u){u.target.tagName==="INPUT"&&p(!0);return!0}); var q=FC(function(u){u.target.tagName==="INPUT"&&p(!1);return!0}),t=function(u){h(u.target.valueAsNumber); c==null||c(u)}; lw(function(){if(b().slider){var u=z(b().slider,Zpb);u&&(u.initialValue&&u.valueDenominator?h(u.initialValue/u.valueDenominator):h(0))}},"ZooIJd"); return D("variable-speed-controller-view-model",{class:"ytwVariableSpeedControllerViewModelHost"},D("div",{class:"ytwVariableSpeedControllerViewModelSpeedIndicatorContainer"},D(P,{cond:function(){return f()>2}, then:function(){return D("div",{class:"ytwVariableSpeedControllerViewModelPremiumBadge"},D(OC,{data:function(){return b().badge}},{badgeViewModel:function(u){return D(DD,{data:u.data})}}))}}),D("div",{class:"ytwVariableSpeedControllerViewModelPlaybackSpeedDisplay", "aria-live":"polite","aria-atomic":"true","aria-busy":a},function(){return zy("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+f().toFixed(2)})})),D("div",{class:"ytwVariableSpeedControllerViewModelSliderContainer", "on:focusin":m,"on:focusout":q},D(OC,{data:function(){return b().slider}},{horizontalSliderViewModel:function(u){var v=u.data; return D(ejc,{data:function(){return Object.assign({},v(),{initialValue:f()*100})}, onInputCallback:t,onChangeCallback:d})}})),D("div",{class:"ytwVariableSpeedControllerViewModelButtonContainer"},D(OC,{data:function(){return b().playbackSpeedButtons}},{variableSpeedControllerSpeedButtonViewModel:function(u){var v=u.data; return D(fjc,{data:v,className:"ytwVariableSpeedControllerViewModelPlaybackSpeedButton",onClick:function(){var w,y=(w=v())==null?void 0:w.playbackSpeedButtonCentiValue;y&&(h(y/100),e==null||e(y/100))}})}})))},"nh");var mjc=new Bn("CONTENT_FEEDBACK_VIEW_MODEL_TOKEN");var njc=O(function(a){var b=a.data;var c=Fn().resolve(JB);a=vw({visibilityCallback:function(t,u){!x("sheet_focus_first_killswitch")&&t&&W2a(u)}, showOption:{calledOnce:!1,state:"visible"}});var d=FC(function(t){x("sheet_focus_first_killswitch")&&W2a(t.currentTarget)}),e=FC(function(t){x("sheet_focus_first_killswitch")&&t.currentTarget!==t.target&&t.preventDefault()}),f=function(){var t,u; return!!(b==null?0:(t=b())==null?0:t.header)&&!(b==null?0:(u=b())==null?0:u.footer)},h=FC(function(){var t,u=I1a(b==null?void 0:(t=b())==null?void 0:t.rendererContext); u&&c.resolveCommand(u)}),m=Fn().resolve(Cn(mjc)),p=Fn().resolve(Cn(qic)),q={}; return D("yt-sheet-view-model",{"on:mousedown":e,"on:focus":d,"on:mouseleave":h,class:U("ytSheetViewModelHost",(q.ytSheetViewModelContextual=!0,q.ytSheetViewModelDisableBackdropFilter=x("web_disable_backdrop_filter"),q)),el:dB(a),tabindex:-1},D(P,{cond:b,then:function(t){return D($ic,{header:function(){return D(OC,{data:function(){return t().header}},{panelHeaderViewModel:Ric})}, hasHeader:function(){return!!t().header}, content:function(){return D(OC,{data:function(){return t().content}},Object.assign({},{checkboxGroupViewModel:function(u){return D(F0b,{data:u.data, controlledMode:!1})}, radioButtonGroupViewModel:function(u){return D(xJb,{data:u.data,controlledMode:!1})}, listViewModel:function(u){return D(DJb,{data:u.data,isCompact:!0,inPopup:!0})}, variableSpeedControllerViewModel:ljc,linearLayoutViewModel:TJb,upsellViewModel:oJb,miniAppScoreChallengeViewModel:rJb},p&&{videoNoticesViewModel:p},m&&{contentFeedbackViewModel:function(u){return D(m,{data:u.data,className:"ytSheetViewModelPaddedContent",isNarrow:!0})}}))}, hasContent:function(){return!!t().content}, footer:function(){return D(OC,{data:function(){return t().footer}},{panelFooterViewModel:PJb})}, hasFooter:function(){return!!t().footer}, preventCloseSheetOnClick:function(){var u;return!((u=t())==null||!u.preventDismissOnContentClick)}, addContentPadding:f})}}))},"oh"); njc.idomCompat=!0;bB(njc,"yt-sheet-view-model",{props:{data:$A}});function ojc(a){return new Promise(function(b){window.setTimeout(b,a)})} var pjc=function(a,b,c){this.requestKey=a;this.m1b=b;this.hmb=c;this.jvc=function(){return new XMLHttpRequest}; this.fIa=void 0;this.hpb=[]}; pjc.prototype.getLatestChallengeResponse=function(){return this.hmb}; var $8a=function(a,b,c){var d,e,f,h;return ra(function(m){if(m.nextAddress==1){Yv("attestation_challenge_fetch");aw("att_fs",void 0,"attestation_challenge_fetch");if(!a.fIa)throw new fG(9,"Missing fetcher");return m.yield(a.fIa(b,c),2)}d=m.yieldResult;f=(e=d)==null?void 0:e.bgChallenge;if(!f)throw new fG(15,"Missing field");a.hmb=d;a.hpb.forEach(function(p){p(d)}); h=Bhc(f);aw("att_fc",void 0,"attestation_challenge_fetch");Zv("attestation_challenge_fetch");return m.return(h)})},y9a=function(a,b){var c,d,e,f,h; return ra(function(m){switch(m.nextAddress){case 1:c=new aG(100,3E5,.25,2),d=void 0;case 2:if(!(c.currBackoffCount_<10)){m.jumpTo(4);break}m.setCatchFinallyBlocks(5);if(!(c.currBackoffCount_>0)){m.jumpTo(7);break}return m.yield(ojc(c.currValue_),7);case 7:return m.yield(qjc(a,b),9);case 9:return e=m.yieldResult,m.return(e);case 5:f=m.enterCatchBlock();f instanceof fG?d=f:(h=f instanceof Error?f.message:"Unknown",d=new fG(9,h));e8a(c);m.jumpTo(2);break;case 4:if(d)throw d;throw new fG(9,"Unknown error");} })},qjc=function(a,b){b=O8a(P8a(new N8a,b),a.requestKey); var c=new nj,d=a.jvc();d.open("POST",a.m1b);d.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");d.setRequestHeader("Content-Type","application/json+protobuf");d.onload=function(){if(Ama(d)){var e=g$a(d.responseText);c.resolve(e)}else c.reject(new fG(t8a(cl(d)),d.statusText))}; d.onerror=function(){c.reject(new fG(t8a(cl(d)),d.statusText))}; d.send(b.serialize());return c.promise}; function rjc(a){var b={bicf:function(f){a.fIa=f}, blc:function(){return a.getLatestChallengeResponse()}, bcr:function(f){a.hpb.push(f)}},c=window; c.ntpevasrs=b;if(c.ntpqfbel!==void 0)for(var d=l(c.ntpqfbel),e=d.next();!e.done;e=d.next())e=e.value,e(b);c.ntpqfbel=void 0} ;function sjc(a){var b,c;(b=a.ytcsi)==null||(c=b.tick)==null||c.call(b,"pot_ist")} function tjc(a){if(a instanceof Error){var b=xa("yt.logging.errors.log");b&&b(a,"WARNING")}} ;var ujc=function(a){var b=this;this.lastRefreshTime=0;this.vfa=window;this.requestKey=ml("par_bir_key")||"O43z0dpjhgX20SCx4KAo";this.tuc=function(c){return new oG(c)}; this.bgChallenge=Bhc(a.bgChallenge);this.ttlSeconds=Dhc(Chc(a.challenge||""));this.xA=function(c,d,e){return new pjc(c,d,e)}(this.requestKey,x("par_at_ep")?["www.youtube.com", "m.youtube.com"].includes(ua.location.hostname)?"/api/jnn/v1/GenerateIT":"https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/GenerateIT":"https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/GenerateIT",a);rjc(this.xA);this.xlc=function(c){Ri(b.vfa.document,"visibilitychange",function(){b.vfa.document.visibilityState==="visible"&&c()})}},wjc=function(a){if(!a.jc){var b={maxAttempts:5, tsb:a.ttlSeconds*1E3};sjc(a.vfa);a.jc=a.tuc({xA:a.xA,eU:{disable:x("html5_web_po_disable_remote_logging"),tk:"aGIf",mTb:Dma("html5_web_po_experiment_ids"),cec:x("wpo_dis_lfdms")?0:1E3,aW:function(c){var d=hXa.get(c);d||(d=new gXa(c),d=new Cw(d),hXa.set(c,d));return d}}, nW:b,v0b:a.bgChallenge,rgc:tjc});a.lastRefreshTime=Date.now();W8a(a.jc,function(){a.lastRefreshTime=Date.now()}); a.vfa.bgevmc={p:function(){var c;(c=a.jc)==null||c.pause()}, r:function(){var c;(c=a.jc)==null||c.resume()}, cr:function(){var c,d;return(d=(c=a.jc)==null?void 0:c.checkForRefresh())!=null?d:Promise.resolve()}}; w7a(a.jc,function(){return ra(function(c){return c.return(vjc(a))})}); b=a.mdc.bind(a);a.xlc(b)}}; ujc.prototype.mdc=function(){if(Date.now()>this.lastRefreshTime+this.ttlSeconds*1E3){var a;(a=this.jc)==null||V8a(a)}}; var vjc=function(a){if(a.kVa)return a.kVa;if(!a.jc)throw Error("VMNI");a.kVa=new xG({jc:a.jc,xA:a.xA,qVa:!0,onError:tjc,nW:void 0});return a.kVa},xjc=function(a){a=new ujc(a); wjc(a);vjc(a)}; function yjc(a){try{var b=JSON.parse(a);if(b.bgChallenge)return b}catch(c){}} function zjc(){var a=window;a=a===void 0?window:a;var b=a.ytAtR;b?((b=yjc(b))&&xjc(b),a.ytAtR=void 0):a.ytAtRC=function(c){if(c=yjc(c))xjc(c),a.ytAtRC=void 0}} ;var v_=function(a,b){var c=sa.apply(2,arguments);a=a===void 0?0:a;Dl.call(this,b,c);this.errorType=a;Object.setPrototypeOf(this,this.constructor.prototype)}; k(v_,Dl);var Ajc=new Bn("NETWORK_SLI_TOKEN");var Bjc=function(a){this.networkSli=a}; Bjc.prototype.fetch=function(a,b,c,d){var e=this,f,h,m,p,q,t,u,v,w,y,A;return ra(function(C){switch(C.nextAddress){case 1:return f=Cjc(e,a,b),C.setCatchFinallyBlocks(2),C.yield(fetch(f),4);case 4:h=C.yieldResult;if(!(x("web_unified_fetch")&&d&&h.ok&&h.body&&typeof h.body.getReader==="function")){C.jumpTo(5);break}m=h.clone();p=m.body.getReader();return C.yield(p.read(),6);case 6:if(q=C.yieldResult,t=q.value,p.cancel().catch(function(){}),t&&t[0]===91)return u=[],v=h.body.pipeThrough(new TextDecoderStream).getReader(), w=new lI,C.return(Djc(e,v,w,u,d)); case 5:return C.yield(e.handleResponse(h,c),7);case 7:return C.return(C.yieldResult);case 2:y=C.enterCatchBlock();fo(y);if(((A=c)==null?0:A.expectJsonStrict)&&y instanceof v_&&y.errorType===1)throw y;return C.return(void 0);}})}; var zAb=function(a,b,c,d){var e,f,h,m,p,q,t;return ra(function(u){switch(u.nextAddress){case 1:return e=Cjc(a,b,c),u.setCatchFinallyBlocks(2),u.yield(fetch(e),4);case 4:f=u.yieldResult;u.leaveTryBlock(3);break;case 2:throw u.enterCatchBlock(),new v_(2,"Failed to parse streaming response",e.url);case 3:if(!f.redirected&&!f.ok)throw(h=a.networkSli)==null||h.failure(),new Dl("Streaming fetch request not ok",e.url,f.status);if(!f.body)throw new Dl("No response body in streaming response",e.url);m=[]; if(x("web_streaming_fast")||typeof TextDecoderStream==="undefined")return p=f.body.getReader(),u.return(Ejc(a,p,m,d));q=f.body.pipeThrough(new TextDecoderStream).getReader();t=new lI;return u.return(Djc(a,q,t,m,d));}})},Cjc=function(a,b,c){if(a.networkSli){var d=Uc(dd(b,"key"))||"/UNKNOWN_PATH"; a.networkSli.start(d)}a=c;x("wug_networking_gzip_request")&&(a=upa(c));return new window.Request(b,a)},Ejc=function(a,b,c,d){var e,f,h,m,p,q,t,u,v,w,y,A,C,I,K,N,L; return ra(function(R){switch(R.nextAddress){case 1:e=new TextDecoder("utf-8"),f=new Uint8Array(65536),h=0,m=function(W){if(h+W>f.length){for(var S=f.length*2;h+W>S;)S*=2;W=new Uint8Array(S);W.set(f.subarray(0,h));f=W}},p=function(W){var S=W.indexOf(123),Y=W.lastIndexOf(125); if(S!==-1&&Y!==-1&&Y>S){W=W.subarray(S,Y+1);try{var da=JSON.parse(e.decode(W));c.push(da);d==null||d(da)}catch(Aa){throw new v_(1,"Failed to parse streaming response object",e.decode(W))}}},R.setCatchFinallyBlocks(2,3); case 5:return R.yield(b.read(),8);case 8:q=R.yieldResult;t=q.value;if(u=q.done)return h>0&&p(f.subarray(0,h)),v=void 0,(v=a.networkSli)==null||v.success(),R.return(c);w=[];for(y=t.indexOf(10);y!==-1;)w.push(y),y=t.indexOf(10,y+1);if(w.length===0)m(t.length),f.set(t,h),h+=t.length;else{A=t.subarray(0,w[0]);m(A.length);f.set(A,h);h+=A.length;p(f.subarray(0,h));for(C=h=0;C0&&(m(N.length),f.set(N,h),h+=N.length)}R.jumpTo(5); break;case 3:R.enterFinallyBlock();b.releaseLock();R.leaveFinallyBlock(0);break;case 2:L=R.enterCatchBlock();if(L instanceof v_)throw L;throw new v_(1,"Failed to process streaming response");}})},Djc=function(a,b,c,d,e){var f,h,m,p,q,t,u,v,w; return ra(function(y){if(y.nextAddress==1)return y.yield(b.read(),2);f=y.yieldResult;h=f.value;if(m=f.done)return(p=a.networkSli)==null||p.success(),y.return(d);try{q=c.parse(h)}catch(A){throw new v_(1,"Failed to parse streaming response",h)}if(q!=null)for(t=l(q),u=t.next();!u.done;u=t.next())v=u.value,d.push(v),w=void 0,(w=e)==null||w(v);return y.return(Djc(a,b,c,d,e))})}; Bjc.prototype.handleResponse=function(a,b){var c=a.text().then(function(d){if((b==null?0:b.jspbResponseCtor)&&a.ok)return Jg(b.jspbResponseCtor,d);d=d.replace(")]}'","");if((b==null?0:b.expectJsonStrict)&&d)try{var e=JSON.parse(d)}catch(h){throw new v_(1,"JSON parsing failed after fetch")}var f;return(f=e)!=null?f:JSON.parse(d)}); a.redirected||a.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),c=c.then(function(d){fo(new Dl("Error: API fetch failed",a.status,a.url,d));return Object.assign({},d,{errorMetadata:{status:a.status}})})); return c}; Bjc[An]=[Cn(Ajc)];var Fjc=new Bn("NETWORK_MANAGER_TOKEN");function Gjc(a,b){var c={errorSeverity:b.errorSeverity.toString(),wizFeatureFlags:Object.entries(b.featureFlags).join("\n")};if(x("web_wiz_enable_error_metadata_reporting")){var d=c;d=d===void 0?{}:d;var e=a.wizMetadata;if(e){var f=e.errorSeverity,h=e.featureFlags,m;e=[["componentStack",e.componentStack],["wizTagName",e.tagName],["wizOwnerTrace",(m=e.ownerTrace)==null?void 0:m.join(" > ")],["errorSeverity",f==null?void 0:f.toString()],["wizFeatureFlags",h?Object.entries(h).join("\n"):void 0]];f=l(e); for(h=f.next();!h.done;h=f.next())m=l(h.value),h=m.next().value,m=m.next().value,m!==void 0&&(d[h]=m)}}else Zra(b,c);b=b.errorSeverity;b===3?co(a,"ERROR",void 0,void 0,void 0,c):b===2&&co(a,"WARNING",void 0,void 0,void 0,c);x("cow_if_errors_in_popup")&&b===3&&a.message.indexOf("")!==-1&&window.alert(a.message)} ;function Hjc(a,b){var c=Cz.get(a)||{layerNode:b};c.layerNode=b;sTa(a,c);a.getScreenLayer=function(){return Xz(c.layerNode)}} function Ijc(a){var b;a=a.parentNode;for(var c;a&&((b=Cz.get(a))==null||!b.isRenderer)&&!((c=a.polymerController)!=null?c:a).isRenderer_;)a=a.parentNode||a.host;if(b=a)return Cz.get(b)} ;function Jjc(a,b){var c=a.getAttribute("client-ve-type");if(b.data&&!b.disableReactiveLogging||c)yp(function(){var d=Bp(b.data);Kjc(a,d);if(x("debug_web_ve_data")){var e,f=(e=z(d==null?void 0:d.rendererContext,oy))==null?void 0:e.loggingDirectives;!f&&d&&(f=d.loggingDirectives);var h,m;e=LTa((m=d==null?void 0:d.trackingParams)!=null?m:(h=f)==null?void 0:h.trackingParams);(e==null?void 0:e.veType)!==void 0&&(a.dataset.ve=String(e.veType));(e==null?void 0:e.veIndex)!==void 0&&(a.dataset.veIndex=String(e.veIndex)); var p,q;d=d==null?void 0:(p=d.loggingDirectives)==null?void 0:(q=p.clientVeSpec)==null?void 0:q.uiType;if(!d){var t;d=b.veType||((t=b.loggingConfig)==null?void 0:t.veType)}d&&(a.dataset.ve=String(d))}},"ph"),zp(function(){if(a){Cz.delete(a); var d=Fn().resolve(uw);Qz(a,d)}})} function Kjc(a,b){Ljc++;Mjc(a,b)&&Hl(0,function(){Ll(function(){if(Mjc(a,b)&&a.ownerDocument.documentElement===document.documentElement&&a){var c;if(a.getAttribute("layer")){var d=c=Number(a.getAttribute("layer")),e=Cz.get(a);e?e.layerNode.layer=d:Hjc(a,new Wz(d));if(d=Ijc(a)){var f;(f=Cz.get(a))==null||f.layerNode.setParent(d.layerNode)}}else(c=Cz.get(a))?c=Xz(c.layerNode):(c=Xz,f=new Wz,(d=Ijc(a))&&f.setParent(d.layerNode),Hjc(a,f),c=c(f));c!=null||(c=0);f=a.getAttribute("client-ve-type");d=Number(f); f=e=!1;var h=Cz.get(a),m;if((m=h)&&!(m=h[Bz]!==b)&&(m=d)){var p;m=((p=Cz.get(a))==null?void 0:p.clientVeType)===void 0}m&&(h[Bz]=b,e=f=h.isRenderer=!0);Cz.has(a)&&(Cz.get(a).clientVeType=d);a.visualElement&&(f=!0);if(x("wiz_next_ld_fix_client_ve_spec")){var q;p=((q=z(b==null?void 0:b.rendererContext,oy))==null?void 0:q.loggingDirectives)||(b==null?void 0:b.loggingDirectives)}else p=b==null?void 0:b.loggingDirectives;x("wiz_next_client_ve_parent_fix")?p&&(p.clientVeSpec||p.trackingParams)&&(q=(q=Az(a))? xTa(q):null,q=CTa(gz(),p,q||void 0,c))&&(a.visualElement=q):p&&p.clientVeSpec&&(q=xTa(a),q=CTa(gz(),p,q||void 0,c))&&(a.visualElement=q);!a.visualElement&&d&&e&&(a.veType=d,q=void 0,x("wiz_next_client_ve_parent_fix")&&(p=Az(a))&&(q=xTa(p)),q=Mz(gz(),a,q,c),a.visualElement=q);f&&(q=Fn().resolve(uw),Sz(a,{data:b,observer:q,layer:c,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));x("web_attention_logging_enabled")&&rTa().track(a)}},0)},8)} function Mjc(a,b){return(b==null?0:b.trackingParams)||(b==null?0:b.loggingDirectives)||z(b==null?void 0:b.rendererContext,oy)||a.getAttribute("client-ve-type")?!0:!1} var Ljc=0;function Njc(a,b,c){a.componentType!==Wo&&c instanceof HTMLElement&&b&&!x("cow_logging_in_component_wrapper")&&Jjc(c,b)} ;var Ojc=!1;function Pjc(){if(!Ojc){Ojc=!0;var a=x("enable_wiz_context_per_component")||!1;a=Object.assign({},{flushRenderEffectsDuringRender:!0,enableContextPerComponent:a,enableContextBasedComponentStacks:a,enablePerformanceTracing:x("web_include_cow_tracing")},{handleError:Gjc,enableComponentStacksInErrorMessages:!1});Object.assign(Uo,a);Qjc();Nva=vHa;Ova=xHa}} function Qjc(){x("cow_logging_in_component_wrapper")?(Fu=function(a,b){b instanceof HTMLElement&&Jjc(b,a)},kq=function(){}):(Fu=function(){},kq=Njc)} ;var w_=function(){}; k(w_,mL);w_.prototype.getApiPaths=function(){return[]}; w_.prototype.getExtension=function(a){return z(a,$kb)}; w_.prototype.JSC$11204_buildRequest=function(a,b){a.recaptchaToken=b.recaptchaToken}; w_.prototype.getApiUrl=function(){return"/das_captcha"};var x_=function(){}; k(x_,mL);x_.prototype.getApiPaths=function(){return mub}; x_.prototype.getExtension=function(a){return z(a,zlb)}; x_.prototype.JSC$11204_buildRequest=function(a,b,c){c=c===void 0?{}:c;b.createBackstagePostParams&&(a.createBackstagePostParams=b.createBackstagePostParams);c.comment_text&&(a.commentText=c.comment_text);if(c.attached_video_id)a.videoAttachment={videoId:c.attached_video_id};else if(c.image_poll_options)a.pollAttachmentData={options:c.image_poll_options};else if(c.poll_options)a.pollAttachment={choices:c.poll_options};else if(c.quiz_options)a.quizAttachmentData={options:c.quiz_options};else if(c.image_blob_id)a.imageAttachment= {encryptedBlobId:c.image_blob_id},c.source_video_id&&(a.imageAttachment.sourceExternalVideoId=c.source_video_id),c.image_preview_coordinates&&(a.imageAttachment.previewCoordinates=JSON.parse(c.image_preview_coordinates));else if(c.images_data)a.imagesAttachment={imagesData:c.images_data};else if(c.clip_external_video_id!==void 0||c.clip_offset_ms!==void 0||c.clip_duration_ms!==void 0){var d,e,f,h,m;a.clipAttachment={externalVideoId:(f=c.clip_external_video_id)!=null?f:"",offsetMs:(h=(d=c.clip_offset_ms)== null?void 0:d.toString())!=null?h:"",durationMs:(m=(e=c.clip_duration_ms)==null?void 0:e.toString())!=null?m:""}}else c.shared_post_id&&(a.sharedPostAttachment={postId:c.shared_post_id});c.tagged_video_id&&(a.postCreationData={taggedVideoId:c.tagged_video_id});c.access_restrictions&&(typeof c.access_restrictions==="number"&&(b=c.access_restrictions,a.accessRestrictions={restriction:b!==1&&b===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof c.access_restrictions==="string"&&( a.accessRestrictionsParams=c.access_restrictions));c.scheduled_publish_time_sec&&(a.scheduledPublishTimeSec=c.scheduled_publish_time_sec.toString())};var y_=function(){}; k(y_,mL);y_.prototype.getApiPaths=function(){return tub}; y_.prototype.getExtension=function(a){return z(a,qrb)}; y_.prototype.JSC$11204_buildRequest=function(a,b,c){c=c===void 0?{}:c;b.decorateMessageParams&&(a.params=b.decorateMessageParams);c.text&&(a.text=c.text)};var z_=function(){}; k(z_,mL);z_.prototype.getApiPaths=function(){return Oub}; z_.prototype.getExtension=function(a){return z(a,Alb)}; z_.prototype.JSC$11204_buildRequest=function(a,b,c){c=c===void 0?{}:c;c.video_id&&(a.videoId=c.video_id)};var A_=function(){}; k(A_,mL);A_.prototype.getApiPaths=function(){return Tub}; A_.prototype.getExtension=function(a){return z(a,my)}; A_.prototype.JSC$11204_buildRequest=function(a,b,c){c.suggestions_query&&(a.input=c.suggestions_query)};var B_=function(){}; k(B_,mL);B_.prototype.getApiPaths=function(){return zvb}; B_.prototype.getExtension=function(a){return z(a,Blb)}; B_.prototype.JSC$11204_buildRequest=function(a,b,c){c.comment_text!==void 0&&(a.commentText=c.comment_text);c.scheduled_publish_time_sec&&(a.scheduledPublishTimeSec=c.scheduled_publish_time_sec.toString());a.updateBackstagePostParams=b.updateBackstagePostParams};var C_=function(){}; k(C_,mL);C_.prototype.getApiPaths=function(){return fub}; C_.prototype.getExtension=function(a){return z(a,uJ)}; C_.prototype.JSC$11204_buildRequest=function(a,b,c){c.formData&&(a.formData=c.formData);c.genericFormData&&(a.genericFormData=c.genericFormData);b.token?a.continuation=b.token:b.continuationTokenKey&&(c=Fn().resolve(wL),b=jVa(c.getState(),b.continuationTokenKey))&&(a.continuation=String(b.continuationToken))}; var Rjc=function(){}; k(Rjc,mL);g=Rjc.prototype;g.getApiPaths=function(){return fub}; g.getExtension=function(a){return z(a,ey)}; g.isNavigationCommand=function(){return!0}; g.getStoreKey=function(a){if((a=this.getExtension(a))&&a.browseId){var b={browseId:a.browseId};a.browseEndpointContextSupportedConfigs&&(b.browseEndpointContextSupportedConfigs=JSON.stringify(a.browseEndpointContextSupportedConfigs));a.params&&(b.params=a.params);a.query&&(b.query=a.query);return Gy("browse",b)}}; g.JSC$11204_buildRequest=function(a,b,c){b.browseId&&(a.browseId=b.browseId);b.params&&(a.params=b.params);b.query&&(a.query=b.query);c.formData?a.formData=c.formData:b.formData&&(a.formData=b.formData);b.browseId==="FEsubscriptions"&&Cl(Bl(),155)&&(a.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");b.browseId==="SPaccount_playback"&&(Bl(),a.formData||(a.formData={}),a.formData.accountSettingsFormData={flagCaptionsDefaultOff:Cl(0,65),flagAutoCaptionsDefaultOn:Cl(0,66),flagDisableInlinePreview:Cl(0, 186),flagAudioDescriptionDefaultOn:Cl(0,198)});b.browseId==="FEwhat_to_watch"&&(Bl(),c=Cl(0,196),Cl(0,197)&&(a.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:c}}}));b.browseId==="FEwhat_to_watch"&&(b=Cl(Bl(),186),a.inlineSettingStatus=b?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")}; g.getRequestConfig=function(a,b){b=b===void 0?{}:b;var c={},d=this.getStoreKey(a,b);if(d){var e;c.storeStrategy={storeKey:d,disableCache:b.disableCache||((e=this.getExtension(a))==null?void 0:e.forceReload)}}x("web_log_browse_ticks_ks")||(c.requestTick="br_s",c.responseTick="br_r");return c};var D_=function(){}; k(D_,mL);D_.prototype.getApiPaths=function(){return gub}; D_.prototype.getExtension=function(a){return z(a,Pmb)}; D_.prototype.JSC$11204_buildRequest=function(a,b,c){a.legacyYoutubeChannelUsername=c.legacyYouTubeChannelUsername||"";a.legacyYoutubeChannelPassword=c.legacyYouTubeChannelPassword||""};var E_=function(){}; k(E_,mL);E_.prototype.getApiPaths=function(){return nvb}; E_.prototype.getExtension=function(a){return z(a,Hlb)}; E_.prototype.JSC$11204_buildRequest=function(a,b,c){c.recaptcha_response_token&&(a.recaptchaResponseToken=c.recaptcha_response_token);c.channel_id&&(a.channelId=c.channel_id)};var F_=function(){}; k(F_,mL);F_.prototype.getApiPaths=function(){return Avb}; F_.prototype.getExtension=function(a){return z(a,Nlb)}; F_.prototype.JSC$11204_buildRequest=function(a,b,c){b.externalChannelId&&(a.externalChannelId=b.externalChannelId);c.handle&&(a.handleUpdate={handle:c.handle},b.handleEditSource&&(a.handleUpdate.handleEditSource=b.handleEditSource))};var G_=function(){}; k(G_,mL);G_.prototype.getApiPaths=function(){return Evb}; G_.prototype.getExtension=function(a){return z(a,emb)}; G_.prototype.JSC$11204_buildRequest=function(a,b,c){b.request&&(a.channelId=b.request.channelId);var d;if(c==null?0:(d=c.uploadDefaults)==null?0:d.emojiReactionSet)a.uploadDefaultsRequest||(a.uploadDefaultsRequest={}),a.uploadDefaultsRequest.emojiReactionSet=c.uploadDefaults.emojiReactionSet};var H_=function(){}; k(H_,mL);H_.prototype.getApiPaths=function(){return Hvb}; H_.prototype.getExtension=function(a){return z(a,Ilb)}; H_.prototype.JSC$11204_buildRequest=function(a,b,c){b.externalChannelId&&(a.externalChannelId=b.externalChannelId);b.channelHandleEntityKey&&(a.channelHandleEntityKey=b.channelHandleEntityKey);b.handleEditSource&&(a.handleEditSource=b.handleEditSource);c.handle?a.handle=c.handle:c.name&&(a.name=c.name)};var I_=function(){}; k(I_,mL);I_.prototype.getApiPaths=function(){return jub}; I_.prototype.getExtension=function(a){return z(a,WJ)}; I_.prototype.JSC$11204_buildRequest=function(a,b){b.actions?a.actions=b.actions:b.action&&(a.actions=[b.action])};var J_=function(){}; k(J_,mL);J_.prototype.getApiPaths=function(){return kub}; J_.prototype.getExtension=function(a){return z(a,uJ)}; J_.prototype.JSC$11204_buildRequest=function(a,b){b.token&&(a.continuation=b.token)};var K_=function(){}; k(K_,mL);K_.prototype.getApiPaths=function(){return Mub}; K_.prototype.getExtension=function(a){return z(a,uJ)}; K_.prototype.JSC$11204_buildRequest=function(a,b){a.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";b.token&&(a.fetchCommentsParams={continuation:b.token})};var L_=function(){}; k(L_,mL);L_.prototype.getApiPaths=function(){return pub}; L_.prototype.getExtension=function(a){return z(a,Prb)}; L_.prototype.JSC$11204_buildRequest=function(a,b,c){c=c===void 0?{}:c;b.createReplyParams&&(a.createReplyParams=b.createReplyParams);b.commentText&&(a.commentText=lz(b.commentText));c.comment_text&&(a.commentText=c.comment_text);c.image_blob_id&&(a.imageAttachment={encryptedBlobId:c.image_blob_id});c.botguard_response&&(a.botguardResponse=c.botguard_response)}; ba.Object.defineProperties(L_.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var M_=function(){}; k(M_,mL);M_.prototype.getApiPaths=function(){return qub}; M_.prototype.getExtension=function(a){return z(a,Orb)}; M_.prototype.JSC$11204_buildRequest=function(a,b,c){c=c===void 0?{}:c;b.createCommentParams&&(a.createCommentParams=b.createCommentParams);b.commentText&&(a.commentText=lz(b.commentText));b.videoPositionMention&&(a.videoPositionMention=b.videoPositionMention);b.sources&&(a.sources=b.sources);c.comment_text&&(a.commentText=c.comment_text);c.attached_video_id?a.videoAttachment={videoId:c.attached_video_id}:c.poll_options?a.pollAttachment={choices:c.poll_options}:c.image_blob_id?a.imageAttachment={encryptedBlobId:c.image_blob_id}: c.shared_post_id&&(a.sharedPostAttachment={postId:c.shared_post_id});c.access_restrictions&&typeof c.access_restrictions==="number"&&(b=c.access_restrictions,a.accessRestrictions={restriction:b!==1&&b===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});c.botguard_response&&(a.botguardResponse=c.botguard_response)}; ba.Object.defineProperties(M_.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var N_=function(){}; k(N_,mL);N_.prototype.getApiPaths=function(){return Bvb}; N_.prototype.getExtension=function(a){return z(a,Rrb)}; N_.prototype.JSC$11204_buildRequest=function(a,b,c){b.commentText&&(a.replyText=lz(b.commentText));c.comment_text&&(a.replyText=c.comment_text);a.updateReplyParams=b.updateReplyParams}; ba.Object.defineProperties(N_.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var O_=function(){}; k(O_,mL);O_.prototype.getApiPaths=function(){return Cvb}; O_.prototype.getExtension=function(a){return z(a,Qrb)}; O_.prototype.JSC$11204_buildRequest=function(a,b,c){b.commentText&&(a.commentText=lz(b.commentText));c.comment_text&&(a.commentText=c.comment_text);a.updateCommentParams=b.updateCommentParams}; ba.Object.defineProperties(O_.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var P_=function(){}; k(P_,mL);P_.prototype.getApiPaths=function(){return Dvb}; P_.prototype.getExtension=function(a){return z(a,amb)}; P_.prototype.JSC$11204_buildRequest=function(a,b){b.settings&&(a.settings=b.settings)};var Q_=function(){}; k(Q_,mL);Q_.prototype.getApiPaths=function(){return Eub}; Q_.prototype.getExtension=function(a){return z(a,Jlb)}; Q_.prototype.JSC$11204_buildRequest=function(a,b){b.channelCreationToken&&(a.channelCreationToken=b.channelCreationToken);b.source&&(a.source=b.source)};var R_=function(){}; k(R_,mL);R_.prototype.getApiPaths=function(){return oub}; R_.prototype.getExtension=function(a){return z(a,Mlb)}; R_.prototype.JSC$11204_buildRequest=function(a,b,c){c=c===void 0?{}:c;if(c.name&&(c.given_name||c.family_name))a=new Dl("channel creation cannot set both GAIA and YouTube names",b),co(a);else{if(b.zeroStepChannelCreationParams){if(!c.comment_text){a=new Dl("zero_step_create_comment_params but no zero_step_texts",b);co(a);return}a.zeroStepChannelCreationParams=b.zeroStepChannelCreationParams;a.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(a.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input= c.comment_text,c.botguard_response&&(a.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=c.botguard_response))}a.channelCreationToken=b.channelCreationToken;c.given_name&&(a.givenName=c.given_name);c.family_name&&(a.familyName=c.family_name);b.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(a.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(c.name||c.handle||c.avatar_url||c.encryptedBlobId||c.isNameChanged!==void 0||c.isHandleChanged!==void 0||c.isDefaultProfilePhoto!== void 0||c.obakeImageSource)a.overrideChannelCreationParams={},c.name&&(a.overrideChannelCreationParams.name=c.name),c.handle&&(a.overrideChannelCreationParams.handle=c.handle),c.avatar_url&&(a.overrideChannelCreationParams.avatarUrl=c.avatar_url),c.encryptedBlobId&&(a.overrideChannelCreationParams.blobEncryptionId=c.encryptedBlobId),c.enableIdentityForAllChannelCreationDialog&&(c.encryptedBlobId?a.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM": c.isDefaultProfilePhoto!==void 0&&(a.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=c.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),c.isNameChanged!==void 0&&(a.overrideChannelCreationParams.identityForAllChannelCreationNameTag=c.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),c.isHandleChanged!== void 0&&(a.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=c.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),c.obakeImageSource&&(a.overrideChannelCreationParams.obakeImageSourceType=c.obakeImageSource))}};var S_=function(){}; k(S_,mL);S_.prototype.getApiPaths=function(a){return(a=this.getExtension(a))&&a.status==="DISLIKE"?xub:a&&a.status==="INDIFFERENT"?kvb:Yub}; S_.prototype.getExtension=function(a){return z(a,xob)}; S_.prototype.JSC$11204_buildRequest=function(a,b){b.target&&(a.target=b.target);if(b=this.getParams(b))a.params=b}; S_.prototype.getParams=function(a){switch(a==null?void 0:a.status){case"DISLIKE":return a.dislikeParams;case"INDIFFERENT":return a.removeLikeParams;default:return a==null?void 0:a.likeParams;}};var T_=function(){}; k(T_,mL);T_.prototype.getApiPaths=function(){return svb}; T_.prototype.getExtension=function(a){return z(a,$rb)}; T_.prototype.JSC$11204_buildRequest=function(a,b){b.settingItemId&&(a.settingItemId=b.settingItemId);b.stringValue!=null&&b.stringValue!==void 0?a.newValue={stringValue:b.stringValue}:b.intValue?a.newValue={intValue:b.intValue}:b.boolValue!==null&&b.boolValue!==void 0?a.newValue={boolValue:b.boolValue}:(a=new Dl("Unknown value type for SetSettingEndpoint.",b),co(a))};var U_=function(){}; k(U_,mL);U_.prototype.getApiPaths=function(){return uvb}; U_.prototype.getExtension=function(a){return z(a,nsb)||void 0}; U_.prototype.JSC$11204_buildRequest=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)}; ba.Object.defineProperties(U_.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var V_=function(){}; k(V_,mL);V_.prototype.getApiPaths=function(){return yvb}; V_.prototype.getExtension=function(a){return z(a,bsb)||void 0}; V_.prototype.JSC$11204_buildRequest=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)}; ba.Object.defineProperties(V_.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var W_=function(a){this.shareClientParamsProvider=a}; k(W_,mL);W_.prototype.getApiPaths=function(){return Pub}; W_.prototype.getExtension=function(a){return z(a,CPa)||z(a,DPa)||z(a,BPa)}; W_.prototype.JSC$11204_buildRequest=function(a,b){b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);if(b.clientParamIdentifier){var c;if((c=this.shareClientParamsProvider)==null?0:c.hasParam(b.clientParamIdentifier))a.clientParams=this.shareClientParamsProvider.popClientParams(b.clientParamIdentifier)}}; W_[An]=[J4b];var X_=function(){}; k(X_,mL);X_.prototype.getApiPaths=function(){return cub}; X_.prototype.getExtension=function(a){return z(a,Xmb)}; X_.prototype.JSC$11204_buildRequest=function(a,b){b.params&&(a.params=b.params)};var Y_=function(){}; k(Y_,mL);Y_.prototype.getApiPaths=function(){return yub}; Y_.prototype.getExtension=function(a){return z(a,Umb)}; Y_.prototype.JSC$11204_buildRequest=function(a,b){b.dismissal&&(a.items=[b.dismissal])}; ba.Object.defineProperties(Y_.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Z_=function(){}; k(Z_,mL);Z_.prototype.getApiPaths=function(){return Wub}; Z_.prototype.getExtension=function(a){return z(a,yJ)||void 0}; Z_.prototype.JSC$11204_buildRequest=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))}; ba.Object.defineProperties(Z_.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var $_=function(){}; k($_,mL);$_.prototype.getApiPaths=function(){return Wub}; $_.prototype.getExtension=function(a){return z(a,my)}; $_.prototype.JSC$11204_buildRequest=function(a,b,c){c.feedback_tokens&&(a.feedbackTokens=c.feedback_tokens,a.shouldMerge=!0)}; ba.Object.defineProperties($_.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var a0=function(){}; k(a0,mL);a0.prototype.getApiPaths=function(){return Wub}; a0.prototype.getExtension=function(a){return z(a,asb)}; a0.prototype.JSC$11204_buildRequest=function(a,b){b.undoToken&&(a.feedbackTokens=[b.undoToken]);b.isUndoTokenUnencrypted&&(a.isFeedbackTokenUnencrypted=b.isUndoTokenUnencrypted)}; ba.Object.defineProperties(a0.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var b0=function(){}; k(b0,mL);b0.prototype.getApiPaths=function(){return Ivb}; b0.prototype.getExtension=function(a){return z(a,Tmb)}; b0.prototype.JSC$11204_buildRequest=function(a,b){b.nextEndpoint&&z(b.nextEndpoint,Qs)?a.nextEndpoint={urlEndpoint:z(b.nextEndpoint,Qs)}:b.nextEndpoint&&z(b.nextEndpoint,py)&&(a.nextEndpoint={watchEndpoint:z(b.nextEndpoint,py)});b.setRacy&&(a.setRacy=b.setRacy);b.setControvercy&&(a.setControvercy=b.setControvercy)};var Sjc=function(){}; k(Sjc,mL);g=Sjc.prototype;g.getApiPaths=function(){return Vub}; g.getStoreKey=function(){return Gy("guide")}; g.getRequestConfig=function(){var a=this.getStoreKey(),b;a&&(b={storeStrategy:{storeKey:a}});return b}; g.isNavigationCommand=function(){return!0}; g.getExtension=function(a){return z(a,my)}; g.JSC$11204_buildRequest=function(a){a.fetchLiveState=!0};var c0=function(){}; k(c0,mL);c0.prototype.getApiPaths=function(){return hub}; c0.prototype.getExtension=function(a){return z(a,Mrb)}; c0.prototype.JSC$11204_buildRequest=function(){};var d0=function(){}; k(d0,mL);d0.prototype.getApiPaths=function(){return iub}; d0.prototype.getExtension=function(a){return z(a,Nrb)}; d0.prototype.JSC$11204_buildRequest=function(){};var e0=function(){}; k(e0,mL);e0.prototype.getApiPaths=function(){return bub}; e0.prototype.getExtension=function(a){return z(a,uJ)}; e0.prototype.JSC$11204_buildRequest=function(a,b){b.token&&(a.continuation=b.token);var c,d;a==null||(c=a.context)==null||(d=c.user)==null||delete d.onBehalfOfUser}; e0.prototype.getRequestConfig=function(a){var b={},c;if(((c=this.getExtension(a))==null?void 0:c.sessionIndex)!==void 0){var d;b={authStrategy:{sessionIndex:(d=this.getExtension(a))==null?void 0:d.sessionIndex}}}return b};var f0=function(){}; k(f0,mL);f0.prototype.JSC$11204_getRequest=function(a){var b=this.getExtension(a),c=a="";if(b==null?0:b.popup)a="true";if(b==null?0:b.disableSignout)c="true";b={};return{input:"/getAccountSwitcherEndpoint",requestShell:Fy("/getAccountSwitcherEndpoint","GET",(b["X-YouTube-Delegation-Context"]=Vk("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),b["X-YouTube-Account-Switcher-Popup"]=a,b["X-YouTube-Account-Switcher-Disable-Signout"]=c,b)),innerTubeRequest:{}}}; f0.prototype.getApiPaths=function(){return[]}; f0.prototype.getExtension=function(a){return z(a,XNa)}; f0.prototype.JSC$11204_buildRequest=function(){};var g0=function(){}; k(g0,mL);g0.prototype.JSC$11204_getRequest=function(a){var b="/cross_account_channel_transfer";(a=this.getExtension(a))&&(b=al(b,{target_session:a.targetSessionIndex,source_rapt:a.sourceRapt,rapt:a.targetRapt},!1));return{input:b,requestShell:Fy(b,"GET"),innerTubeRequest:{}}}; g0.prototype.getApiPaths=function(){return[]}; g0.prototype.getExtension=function(a){return z(a,elb)}; g0.prototype.JSC$11204_buildRequest=function(){};var h0=function(){}; k(h0,mL);h0.prototype.getApiPaths=function(){return Bub}; h0.prototype.isNavigationCommand=function(){return!0}; h0.prototype.getExtension=function(a){return z(a,my)}; h0.prototype.JSC$11204_buildRequest=function(a){var b=Bl().get("gsml","");b&&(a.safetyModeLockerObfuscatedGaiaId=b);a.userInterfaceTheme=My(!0);Bl();!cRa()||Cl(0,165)||Cl(0,174)?cRa()?a.deviceTheme="DEVICE_THEME_SUPPORTED":a.deviceTheme="DEVICE_THEME_UNSUPPORTED":a.deviceTheme="DEVICE_THEME_SELECTED"};var i0=function(){}; k(i0,mL);i0.prototype.getApiPaths=function(){return bub}; i0.prototype.getExtension=function(a){return z(a,glb)}; i0.prototype.JSC$11204_buildRequest=function(a,b){if(b&&b.requestType&&(a.requestType=b.requestType,b.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||b.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var c=b.nextUrl;c&&(uma(c)||bl(c))&&(a.nextNavendpoint={urlEndpoint:{url:c}})}b&&b.channelSwitcherQuery&&(a.channelSwitcherQuery=b.channelSwitcherQuery);b&&b.triggerChannelCreation&&(a.triggerChannelCreation=b.triggerChannelCreation);var d;if(b==null?0:(d=b.contentOwnerConfig)== null?0:d.externalContentOwnerId)a.contentOwnerConfig=b.contentOwnerConfig;a.callCircumstance=b&&b.requestType&&b.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var e,f;b=a==null?void 0:(e=a.context)==null?void 0:(f=e.user)==null?void 0:f.onBehalfOfUser;if(b!==void 0){a.obfuscatedSelectedGaiaId=b;var h,m;a==null||(h=a.context)==null||(m=h.user)==null||delete m.onBehalfOfUser}var p,q;if(e=a==null?void 0:(p=a.context)==null?void 0:(q=p.user)==null? void 0:q.serializedDelegationContext)a.selectedSerializedDelegationContext=e};var j0=function(){}; k(j0,mL);j0.prototype.getApiPaths=function(){return dub}; j0.prototype.getExtension=function(a){return z(a,qqb)}; j0.prototype.JSC$11204_buildRequest=function(a,b){b.params&&(a.params=b.params)};var k0=function(){}; k(k0,mL);k0.prototype.getApiPaths=function(){return nub}; k0.prototype.getExtension=function(a){return z(a,aqb)}; k0.prototype.JSC$11204_buildRequest=function(a,b){if(b=b.createBroadcastRequest)a.useMasks=b.useMasks,a.broadcastType=b.broadcastType,a.broadcastSource=b.broadcastSource,a.broadcastMetadata=b.broadcastMetadata,a.broadcastMetadataMask=b.broadcastMetadataMask,a.videoMetadata=b.videoMetadata,a.videoMetadataMask=b.videoMetadataMask,a.liveChatSettingsUpdate=b.liveChatSettingsUpdate,a.liveChatSettingsUpdateMask=b.liveChatSettingsUpdateMask,a.cloneVideoId=b.cloneVideoId,a.cloneWithOverrides=b.cloneWithOverrides, a.targetEntity=b.targetEntity,a.scheduledRedirectMetadata=b.scheduledRedirectMetadata};var l0=function(){}; k(l0,mL);l0.prototype.getApiPaths=function(){return rub}; l0.prototype.getExtension=function(a){return z(a,xpb)}; l0.prototype.JSC$11204_buildRequest=function(a,b,c){c=c===void 0?{}:c;b.params&&(a.params=b.params);c.questionText&&(a.questionText=c.questionText);c.optionText&&c.optionText.length>0&&(a.optionText=c.optionText)};var m0=function(){}; k(m0,mL);m0.prototype.getApiPaths=function(){return uub}; m0.prototype.getExtension=function(a){return z(a,vpb)}; m0.prototype.JSC$11204_buildRequest=function(a,b){b.params&&(a.params=b.params)};var n0=function(){}; k(n0,mL);n0.prototype.getApiPaths=function(){return Hub}; n0.prototype.getExtension=function(a){return z(a,ppb)}; n0.prototype.JSC$11204_buildRequest=function(a,b){b.params&&(a.params=b.params)};var o0=function(){}; k(o0,mL);o0.prototype.getApiPaths=function(){return Jub}; o0.prototype.getExtension=function(a){return z(a,qpb)}; o0.prototype.JSC$11204_buildRequest=function(a,b,c){b.params&&(a.params=b.params);b.continuation&&(a.continuation=b.continuation);c.currentPlayerState&&c.currentPlayerState.playerOffsetMs&&(a.currentPlayerState={playerOffsetMs:c.currentPlayerState.playerOffsetMs.toString()})};var p0=function(){}; k(p0,mL);p0.prototype.getApiPaths=function(){return Kub}; p0.prototype.getExtension=function(a){return z(a,opb)}; p0.prototype.JSC$11204_buildRequest=function(a,b,c){b.params&&(a.params=b.params);c.continuation&&(a.continuation=c.continuation);"hidden"in c&&(a.webClientInfo={isDocumentHidden:c.hidden});c.isInvalidationTimeoutRequest&&(a.isInvalidationTimeoutRequest=c.isInvalidationTimeoutRequest);c.invalidationPayload&&(b=mpb(Gd(Mc(c.invalidationPayload))),a.invalidationPayloadLastPublishAtUsec=Wf(b,2));c.reloadActionPanel&&(a.reloadActionPanel=c.reloadActionPanel);c.fullReload&&(a.fullReload=c.fullReload);c.currentPlayerState&&( a.currentPlayerState=c.currentPlayerState)};var q0=function(){}; k(q0,mL);q0.prototype.getApiPaths=function(){return Zub}; q0.prototype.getExtension=function(a){return z(a,wpb)}; q0.prototype.JSC$11204_buildRequest=function(a,b){a.params=b.params};var r0=function(){}; k(r0,mL);r0.prototype.getApiPaths=function(){return Iub}; r0.prototype.getExtension=function(a){return z(a,zqb)}; r0.prototype.JSC$11204_buildRequest=function(a,b){b.params&&(a.params=b.params)};var s0=function(){}; k(s0,mL);s0.prototype.getApiPaths=function(){return Lub}; s0.prototype.getExtension=function(a){return z(a,Aqb)}; s0.prototype.JSC$11204_buildRequest=function(a,b){b.params&&(a.params=b.params)};var t0=function(){}; k(t0,mL);t0.prototype.getApiPaths=function(){return avb}; t0.prototype.getExtension=function(a){return z(a,ypb)}; t0.prototype.JSC$11204_buildRequest=function(a,b){b.params&&(a.params=b.params)};var u0=function(){}; k(u0,mL);u0.prototype.getApiPaths=function(){return cvb}; u0.prototype.getExtension=function(a){return z(a,zpb)}; u0.prototype.JSC$11204_buildRequest=function(a,b){b.params&&(a.params=b.params)};var v0=function(){}; k(v0,mL);v0.prototype.getApiPaths=function(){return lvb}; v0.prototype.getExtension=function(a){return z(a,uqb)}; v0.prototype.JSC$11204_buildRequest=function(a,b){b.params&&(a.params=b.params)};var w0=function(){}; k(w0,mL);w0.prototype.getApiPaths=function(){return qvb}; w0.prototype.getExtension=function(a){return z(a,Bpb)}; w0.prototype.JSC$11204_buildRequest=function(a,b,c){c=c===void 0?{}:c;b.params&&(a.params=b.params);c.client_message_id&&(a.clientMessageId=c.client_message_id);c.recaptcha_token&&(a.recaptchaToken=c.recaptcha_token);c.rich_message&&c.rich_message.text_segments?(b=c.rich_message.text_segments.map(function(d){var e={};d.text&&(e.text=d.text);d.emoji_id&&(e.emojiId=d.emoji_id);return e}),a.richMessage={textSegments:b}):c.message&&(a.message=c.message); c.currentPlayerState&&(a.currentPlayerState=c.currentPlayerState)};var x0=function(){}; k(x0,mL);x0.prototype.getApiPaths=function(){return rvb}; x0.prototype.getExtension=function(a){return z(a,Cpb)}; x0.prototype.JSC$11204_buildRequest=function(a,b){b.params&&(a.params=b.params)};var y0=function(){}; k(y0,mL);y0.prototype.getApiPaths=function(){return wvb}; y0.prototype.getExtension=function(a){return z(a,Wsb)}; y0.prototype.JSC$11204_buildRequest=function(a,b){b.screenContext&&(a.screenContext=b.screenContext);b.userInput&&(a.userInput=b.userInput)};var z0=function(){}; k(z0,mL);z0.prototype.getApiPaths=function(){return xvb}; z0.prototype.getExtension=function(a){return z(a,Ipb)}; z0.prototype.JSC$11204_buildRequest=function(a,b,c){b.isUserInitiated&&(a.isUserInitiated=b.isUserInitiated);b.initiationSource&&(a.initiationSource=b.initiationSource);c.locationInfo&&(a.context.client.locationInfo=c.locationInfo)};var A0=function(){}; k(A0,mL);A0.prototype.getApiPaths=function(){return bvb}; A0.prototype.getExtension=function(a){return z(a,bqb)}; A0.prototype.JSC$11204_buildRequest=function(a,b,c){b.metadataUpdateRequest&&(b=b.metadataUpdateRequest,a.encryptedVideoId=b.encryptedVideoId,b.liveChat&&(b=b.liveChat,a.liveChat||(a.liveChat={}),b.performAsExternalChannelId&&(a.liveChat.performAsExternalChannelId=b.performAsExternalChannelId),b.source&&(a.liveChat.source=b.source)));var d;if(c==null?0:(d=c.liveChat)==null?0:d.liveChatSettings)a.liveChat||(a.liveChat={}),c=c.liveChat.liveChatSettings,a.liveChat.newLiveChatSettings=c,a.liveChat.newLiveChatSettingsMask||( a.liveChat.newLiveChatSettingsMask={}),c.emojiReactionSet&&(a.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var B0=function(){}; k(B0,mL);B0.prototype.getApiPaths=function(){return Gvb}; B0.prototype.getExtension=function(a){return z(a,csb)}; B0.prototype.JSC$11204_buildRequest=function(a,b,c){c.continuation?a.continuation=c.continuation:b.videoId&&(a.videoId=b.videoId);c.clientParams&&(a.clientParams=c.clientParams)};var C0=function(){}; k(C0,mL);C0.prototype.getApiPaths=function(){return Mub}; C0.prototype.getExtension=function(a){return z(a,rqb)}; C0.prototype.JSC$11204_buildRequest=function(a,b){a.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";a.fetchCommentsParams={};b.videoId&&(a.fetchCommentsParams.encryptedVideoId=b.videoId);b.postId&&(a.fetchCommentsParams.postId=b.postId);b.externalChannelId&&(a.fetchCommentsParams.externalChannelId=b.externalChannelId);b.linkedCommentId&&(a.fetchCommentsParams.linkedCommentId=b.linkedCommentId);Wh(a.fetchCommentsParams)&&delete a.fetchCommentsParams};var D0=function(){}; k(D0,mL);D0.prototype.getApiPaths=function(){return fub}; D0.prototype.JSC$11204_buildRequest=function(a){a.browseId="FEnotifications_inbox"}; D0.prototype.getExtension=function(a){return z(a,my)};var E0=function(){}; k(E0,mL);E0.prototype.getApiPaths=function(){return Mub}; E0.prototype.JSC$11204_buildRequest=function(a,b){b.signal==="GET_NOTIFICATIONS_MENU"&&(a.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");b.ctoken&&(a.ctoken=b.ctoken)}; var Tjc=function(){}; k(Tjc,E0);Tjc.prototype.getExtension=function(a){return z(a,my)}; var Ujc=function(){}; k(Ujc,E0);Ujc.prototype.getExtension=function(a){return z(a,Qmb)};var F0=function(){}; k(F0,mL);F0.prototype.getApiPaths=function(){return Sub}; F0.prototype.getExtension=function(a){return z(a,my)}; F0.prototype.JSC$11204_buildRequest=function(){};var G0=function(){}; k(G0,mL);G0.prototype.getApiPaths=function(){return dvb}; G0.prototype.getExtension=function(a){return z(a,Wrb)||void 0}; G0.prototype.JSC$11204_buildRequest=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};var H0=function(){}; k(H0,mL);H0.prototype.getApiPaths=function(){return evb}; H0.prototype.getExtension=function(a){return z(a,sqb)}; H0.prototype.JSC$11204_buildRequest=function(a,b){b.undo&&(a.undo=b.undo);b.serializedOptOut&&(a.serializedOptOut=b.serializedOptOut);b.serializedRecordInteractionsRequest&&(a.serializedRecordInteractionsRequest=b.serializedRecordInteractionsRequest)};var I0=function(){}; k(I0,mL);I0.prototype.getApiPaths=function(){return hvb}; I0.prototype.getExtension=function(a){return z(a,tqb)}; I0.prototype.JSC$11204_buildRequest=function(a,b){b.serializedInteractionsRequest&&(a.serializedRecordNotificationInteractionsRequest=b.serializedInteractionsRequest)};var J0=function(){}; k(J0,mL);J0.prototype.getApiPaths=function(){return Fub}; J0.prototype.getExtension=function(a){return z(a,vqb)}; J0.prototype.JSC$11204_buildRequest=function(a,b,c){b=b===void 0?{}:b;c=c===void 0?{}:c;b.videoId?a.videoId=b.videoId:b.playlistId&&(a.playlistId=b.playlistId);var d;a.crossDeviceDownloadData={isCrossDeviceDownload:(d=b.isCrossDeviceDownload)!=null?d:!1};!c.downloadToMobileEduShown&&b.isCrossDeviceDownload&&(a.crossDeviceDownloadData.shouldShowDownloadToMobileEdu=!0);var e;if(d=(e=b.offlineWebClientEligibility)!=null?e:c.offlineWebClientEligibility)a.offlineWebClientEligibility=d;var f;if(e=(f=b.preferredFormatType)!= null?f:c.preferredFormatType)a.preferredFormatType=e;var h;if(f=(h=b.lastOfflineQualitySettingsSavedMs)!=null?h:c.lastOfflineQualitySettingsSavedMs)a.lastOfflineQualitySettingsSavedMs=f;b.params&&(a.params=b.params)};var K0=function(){}; k(K0,mL);K0.prototype.getApiPaths=function(){return kK}; K0.prototype.getExtension=function(a){return z(a,uJ)}; K0.prototype.JSC$11204_buildRequest=function(a,b,c){c=c===void 0?{}:c;if(b.token)a.continuation=b.token;else if(b.continuationTokenKey){var d=Fn().resolve(wL);if(b=jVa(d.getState(),b.continuationTokenKey))a.continuation=String(b.continuationToken)}c.formData&&(a.formData=c.formData)};var L0=function(){}; k(L0,mL);L0.prototype.getApiPaths=function(){return kK}; L0.prototype.getExtension=function(a){return z(a,Xpb)}; L0.prototype.JSC$11204_buildRequest=function(a,b,c){c=c===void 0?{}:c;a.continuation=c.continuation};var Vjc=new Bn("SESSION_STORAGE");var M0=function(){}; k(M0,mL);M0.prototype.getApiPaths=function(){return kK}; M0.prototype.getExtension=function(a){return z(a,Ypb)}; M0.prototype.JSC$11204_buildRequest=function(a,b){var c,d=b.panelIdentifier||((c=b.identifier)==null?void 0:c.tag);d&&(a.panelId=d);var e;if((e=b.globalConfiguration)==null?0:e.params){var f;a.params=(f=b.globalConfiguration)==null?void 0:f.params}if(x("enable_ai_companion")){var h;b=b.engagementPanelExtras;if(b==null?0:(h=b.aiCompanionPanelExtras)==null?0:h.includeClientConversationId){var m,p;h=(p=(m=Fn().resolve(Cn(Vjc)))==null?void 0:m("conversations"))==null?void 0:p.get("conversation_id")}else h= void 0;if(m=h)a.formData=Object.assign({},a.formData,{inputComposerFormData:{conversationId:m}})}}; ba.Object.defineProperties(M0.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});function Wjc(a,b){var c;if(b==null?0:(c=b.requestTemplate)==null?0:c.panelId)a.panelId=b.requestTemplate.panelId;var d;if(b==null?0:(d=b.requestTemplate)==null?0:d.params)a.params=b.requestTemplate.params} ;var N0=function(){}; k(N0,mL);N0.prototype.getApiPaths=function(){return kK}; N0.prototype.getExtension=function(a){return z(a,XJ)}; N0.prototype.JSC$11204_buildRequest=function(a,b){b.panelLoadingStrategy&&Wjc(a,b.panelLoadingStrategy)};var O0=function(){}; k(O0,mL);O0.prototype.getApiPaths=function(){return kK}; O0.prototype.getExtension=function(a){return z(a,wqb)}; O0.prototype.JSC$11204_buildRequest=function(a,b){b.loadingStrategy&&Wjc(a,b.loadingStrategy)};var P0=function(){}; k(P0,mL);P0.prototype.getApiPaths=function(){return kK}; P0.prototype.getExtension=function(a){return z(a,osb)}; P0.prototype.JSC$11204_buildRequest=function(a,b){b.panelLoadingStrategy&&Wjc(a,b.panelLoadingStrategy)};var Q0=function(){}; k(Q0,mL);Q0.prototype.getApiPaths=function(){return kK}; Q0.prototype.getExtension=function(a){return z(a,xqb)}; Q0.prototype.JSC$11204_buildRequest=function(a,b){var c,d=(c=b.contentSourcePanelIdentifier)==null?void 0:c.tag;d&&(a.panelId=d);var e;if((e=b.globalConfiguration)==null?0:e.params){var f;a.params=(f=b.globalConfiguration)==null?void 0:f.params}};var R0=function(){}; k(R0,mL);R0.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]}; R0.prototype.getExtension=function(a){return z(a,yqb)}; R0.prototype.JSC$11204_buildRequest=function(a,b){b.params&&(a.params=b.params)};var S0=function(){}; k(S0,mL);S0.prototype.getApiPaths=function(){return Fvb}; S0.prototype.getExtension=function(a){return z(a,Eqb)}; S0.prototype.JSC$11204_buildRequest=function(a,b){b.externalChannelId&&(a.externalChannelId=b.externalChannelId);b.superChatAction&&(a.superChatAction=b.superChatAction);b.superStickersAction&&(a.superStickersAction=b.superStickersAction)};var T0=function(){}; k(T0,mL);T0.prototype.getApiPaths=function(){return Cub}; T0.prototype.getExtension=function(a){return z(a,Lrb)||z(a,gqb)}; T0.prototype.JSC$11204_buildRequest=function(a,b){b.videoIds?a.videoIds=b.videoIds:b.videoId&&(a.videoIds=[b.videoId]);b.playlistId&&(a.playlistId=b.playlistId);b.params&&(a.params=b.params);a.excludeWatchLater=!1};var U0=function(){}; k(U0,mL);U0.prototype.getApiPaths=function(){return sub}; U0.prototype.getExtension=function(a){return z(a,Srb)}; U0.prototype.JSC$11204_buildRequest=function(a,b,c){c.create_playlist_title?a.title=c.create_playlist_title:b.title&&(a.title=b.title);if(c.create_playlist_privacy_status&&typeof c.create_playlist_privacy_status==="number"){a:{var d=c.create_playlist_privacy_status;if(d!==0){if(d===1){d="PUBLIC";break a}if(d===2){d="UNLISTED";break a}}d="PRIVATE"}a.privacyStatus=d}else b.privacyStatus&&(a.privacyStatus=b.privacyStatus);c.create_playlist_description&&(a.description=c.create_playlist_description);b.videoIds&&( a.videoIds=b.videoIds);b.params&&(a.params=b.params);b.sourcePlaylistId&&(a.sourcePlaylistId=b.sourcePlaylistId)};var V0=function(){}; k(V0,mL);V0.prototype.getApiPaths=function(){return vub}; V0.prototype.getExtension=function(a){return z(a,Trb)}; V0.prototype.JSC$11204_buildRequest=function(a,b){a.playlistId=b.playlistId};var W0=function(){}; k(W0,mL);W0.prototype.getApiPaths=function(){return Nub}; W0.prototype.getExtension=function(a){return z(a,oqb)}; W0.prototype.JSC$11204_buildRequest=function(a,b){b.playlistId&&(a.playlistId=b.playlistId);b.params&&(a.params=b.params)};var X0=function(){}; k(X0,mL);X0.prototype.getApiPaths=function(){return gvb}; X0.prototype.getExtension=function(a){return z(a,qy)||void 0}; X0.prototype.JSC$11204_buildRequest=function(a,b){b.actions&&(a.actions=b.actions);b.params&&(a.params=b.params);b.playlistId&&(a.playlistId=b.playlistId)};var Xjc=function(){}; k(Xjc,mL);g=Xjc.prototype;g.getApiPaths=function(){return ivb}; g.getExtension=function(a){return z(a,ry)}; g.JSC$11204_buildRequest=function(a,b){b.videoId&&(a.playerRequest={videoId:b.videoId},b.playerParams&&(a.playerRequest.params=b.playerParams),b.racyCheckOk&&(a.playerRequest.racyCheckOk=!!b.racyCheckOk),b.contentCheckOk&&(a.playerRequest.contentCheckOk=!!b.contentCheckOk));b.params&&(a.params=b.params);b.inputType&&(a.inputType=b.inputType);a.disablePlayerResponse=!0}; g.getRequestConfig=function(a){var b;(a=this.getStoreKey(a))&&(b={storeStrategy:{storeKey:a}});x("web_log_reels_ticks")&&(b=b||{},b.requestTick="r_wrs",b.responseTick="r_wrr");return b}; g.getStoreKey=function(a){a=this.getExtension(a);if(a!=null&&a.videoId){var b={videoId:a.videoId};a.params&&(b.params=a.params);return Gy("reel_item_watch",b)}};var Yjc=function(){}; k(Yjc,mL);g=Yjc.prototype;g.getApiPaths=function(){return jvb}; g.getExtension=function(a){return z(a,ry)}; g.JSC$11204_buildRequest=function(a,b,c){c=c===void 0?{}:c;a.sequenceParams=b.sequenceParams;var d;((d=c)==null?0:d.contentPlaybackContext)&&x("web_shorts_prefetch_service_enabled")&&(a.playbackContext={contentPlaybackContext:c.contentPlaybackContext})}; g.getStoreKey=function(a){if(x("shorts_controller_retrieve_seedless_sequence_v2")&&(a=this.getExtension(a),a==null?0:a.sequenceParams))return Gy("reel_watch_sequence",{sequenceParams:a.sequenceParams})}; g.getRequestConfig=function(a){a=this.getStoreKey(a);var b;a&&(b={storeStrategy:{storeKey:a}});b=b||{};b.requestTick="r_wsrs";b.responseTick="r_wsrr";b.processorTick="r_wsrp";return b}; var Y0=function(){}; k(Y0,mL);Y0.prototype.getApiPaths=function(){return jvb}; Y0.prototype.getExtension=function(a){return z(a,uJ)}; Y0.prototype.JSC$11204_buildRequest=function(a,b,c){c=c===void 0?{}:c;b.token&&(a.continuation=b.token);var d;((d=c)==null?0:d.contentPlaybackContext)&&x("web_shorts_prefetch_service_enabled")&&(a.playbackContext={contentPlaybackContext:c.contentPlaybackContext})}; Y0.prototype.getRequestConfig=function(a){a=this.getStoreKey(a);var b;a&&(b={storeStrategy:{storeKey:a}});b=b||{};b.requestTick="r_wsrs";b.responseTick="r_wsrr";b.processorTick="r_wsrp";return b};var Z0=function(){}; k(Z0,mL);Z0.prototype.getApiPaths=function(){return zub}; Z0.prototype.getExtension=function(a){return z(a,knb)}; Z0.prototype.JSC$11204_buildRequest=function(a,b,c){c=c===void 0?{}:c;b.flagAction&&(a.action=b.flagAction);b.flagRequestType&&(a.flagRequestType=b.flagRequestType);b.additionalDetailCheckboxChecked&&(a.additionalDetailCheckboxChecked=b.additionalDetailCheckboxChecked);b.legalCheckboxChecked&&(a.legalCheckboxChecked=b.legalCheckboxChecked);b={};c.flag_issue_type!==void 0&&(b.issue=c.flag_issue_type);c.flag_affiliation!==void 0&&(b.affiliation=c.flag_affiliation);c.flag_full_name&&(b.fullName=c.flag_full_name); Object.keys(b).length&&(a.legalReportDetails=b);if(c.flag_description||c.text)a.userComments=c.flag_description||c.text;b={};c.minutes!==void 0&&c.seconds!==void 0&&(b.minutes=c.minutes,b.seconds=c.seconds);c.vss_id&&(b.vssId=c.vss_id);Object.keys(b).length&&(a.videoReportDetails=b);b={};c.video_ids&&(b.videoIds=c.video_ids);c.impersonated_channel_url&&(b.impersonatedChannelUrl=c.impersonated_channel_url);Object.keys(b).length&&(a.channelAbuseReportDetails=b)}; ba.Object.defineProperties(Z0.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var $0=function(){}; k($0,mL);$0.prototype.getApiPaths=function(){return Gub}; $0.prototype.getExtension=function(a){return z(a,vob)}; $0.prototype.JSC$11204_buildRequest=function(a,b){b.blockedForKidsContent&&(a.blockedForKidsContent=b.blockedForKidsContent)};var a1=function(){}; k(a1,mL);a1.prototype.getApiPaths=function(){return mvb}; a1.prototype.getExtension=function(a){return z(a,Vrb)}; a1.prototype.JSC$11204_buildRequest=function(a,b,c){a.params=b.params;c.impersonated_channel_url&&(a.impersonatedChannelUrl=c.impersonated_channel_url)};var b1=function(){}; k(b1,mL);b1.prototype.getApiPaths=function(){return Xub}; b1.prototype.getExtension=function(a){return z(a,wob)}; b1.prototype.JSC$11204_buildRequest=function(a,b){b.items&&(a.items=b.items);b.kidGaiaId&&(a.kidGaiaId=b.kidGaiaId)};var c1=function(){}; k(c1,mL);c1.prototype.getApiPaths=function(){return Dub}; c1.prototype.getExtension=function(a){return z(a,Irb)}; c1.prototype.JSC$11204_buildRequest=function(a,b){b.params&&(a.params=b.params);b.targetId&&(a.targetId=b.targetId)};var d1=function(){}; k(d1,mL);d1.prototype.getApiPaths=function(){return ovb}; d1.prototype.getExtension=function(a){return z(a,Rmb)}; d1.prototype.JSC$11204_buildRequest=function(a,b){b.externalVideoId&&(a.externalVideoId=b.externalVideoId);b.query&&(a.query=b.query);b.sourceTimelines&&(a.sourceTimelines=b.sourceTimelines)};var e1=function(){}; k(e1,mL);e1.prototype.getApiPaths=function(){return pvb}; e1.prototype.getExtension=function(a){return z(a,uJ)||void 0}; e1.prototype.JSC$11204_buildRequest=function(a,b,c){c=c===void 0?{}:c;b.token&&(a.continuation=b.token);x("enable_form_data_in_search_request")&&c.formData&&(a.genericFormData=c.formData)}; var Zjc=function(){}; k(Zjc,mL);g=Zjc.prototype;g.getApiPaths=function(){return pvb}; g.getExtension=function(a){return z(a,VJ)||void 0}; g.isNavigationCommand=function(){return!0}; g.getStoreKey=function(a,b){b=b===void 0?{}:b;if(!b.disableCache&&(a=this.getExtension(a))&&a.query)return b={query:a.query},a.params&&(b.params=a.params),Gy("search",b)}; g.JSC$11204_buildRequest=function(a,b,c){b.query&&(a.query=b.query);b.params&&(a.params=b.params);x("enable_page_type_in_search_request")&&b.pageType&&(a.searchPageType=b.pageType);if(!x("web_forward_suggest_stats_killswitch")){var d=z(b,hqb);d&&(a.suggestStats=d)}var e;!x("kevlar_searchbox_stats_killswitch")&&((e=c.tempData)==null?0:e.gs_l)&&!z(b,hqb)&&(a.webSearchboxStatsUrl="/search?oq="+(c.tempData.oq||"")+"&gs_l="+c.tempData.gs_l);var f;if((f=c.tempData)==null?0:f.entityMid)b=a.suggestionSearchParams|| {},b.entityMid=c.tempData.entityMid,a.suggestionSearchParams=b;b=Cl(Bl(),186);a.inlineSettingStatus=b?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON";c.isFromShorts&&(a.shortsContext={isShortsContext:!0,shouldSelectShortsChip:!1})}; g.getRequestConfig=function(a,b){b=b===void 0?{}:b;a=this.getStoreKey(a,b);var c;a&&(c={storeStrategy:{storeKey:a}});x("web_log_search_ticks_ks")||(c=c||{},c.requestTick="sr_s",c.responseTick="sr_r");return c};var f1=function(){}; k(f1,mL);f1.prototype.getApiPaths=function(){return Qub}; f1.prototype.getExtension=function(a){return z(a,dsb)}; f1.prototype.JSC$11204_buildRequest=function(a,b){b.serializedGetSharingProviderDataParams&&(a.serializedGetSharingProviderDataParams=b.serializedGetSharingProviderDataParams)};var g1=function(){}; k(g1,mL);g1.prototype.getApiPaths=function(){return Rub}; g1.prototype.getExtension=function(a){return z(a,bnb)}; g1.prototype.JSC$11204_buildRequest=function(a,b){b.endpoint&&(a.endpoint=b.endpoint);b.action&&(a.action=b.action)};var h1=function(){}; k(h1,mL);h1.prototype.getApiPaths=function(){return wub}; h1.prototype.getExtension=function(a){return z(a,Urb)}; h1.prototype.JSC$11204_buildRequest=function(a,b){a.videoId=b.videoId;b.scheduledRedirectMetadataSourceVideoId&&(a.scheduledRedirectMetadata={sourceVideoId:b.scheduledRedirectMetadataSourceVideoId})};var $jc=XMLHttpRequest.prototype.fetch,akc=$jc&&$jc.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!yd?!0:!1;var i1=function(a){this.JSC$16169_storeWithEntities=a}; k(i1,mL);g=i1.prototype;g.getApiPaths=function(){return fvb}; g.getExtension=function(a){return z(a,py)||z(a,ry)||z(a,Oqb)}; g.isNavigationCommand=function(){return!0}; g.getStoreKey=function(a){if((x("kevlar_cache_on_ttl_player")||x("mweb_enable_shorts_innertube_player_prefetch")||x("web_shorts_prefetch_service_enabled"))&&(a=this.getExtension(a))&&a.videoId){var b={videoId:a.videoId};a.playlistId&&(b.playlistId=a.playlistId);a.playerParams&&(b.params=a.playerParams);return Gy("player",b)}}; g.JSC$11204_getClientScreen=function(a){var b;return((b=a.contentPlaybackContext)==null?void 0:b.vis)===2?"WATCH_FULL_SCREEN":"WATCH"}; g.JSC$11204_buildRequest=function(a,b,c){if(x("enable_interstitial_entity_check")){var d=this.JSC$16169_storeWithEntities;if(b.videoId)for(var e=l(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),f=e.next();!f.done;f=e.next()){f=f.value;var h;var m=void 0,p=void 0,q=b.videoId,t=f;(h=d)?(q=nA(q+t,"interstitialInteractionStateEntity"),h=(m=(p=yA(h.getState().entities,"interstitialInteractionStateEntity",q))==null?void 0:p.primaryButtonClicked)!=null?m:!1):h=!1;if(h)switch(f){case"CONTENT_CHECK_REQUIRED":b.contentCheckOk= !0;break;case"AGE_CHECK_REQUIRED":b.racyCheckOk=!0;}}}b.videoId&&(a.videoId=b.videoId);b.playlistId&&(a.playlistId=b.playlistId);b.index!==void 0&&(a.playlistIndex=b.index+1);b.playerParams&&(a.params=b.playerParams);"startTimeSeconds"in b&&b.startTimeSeconds&&(x("enable_player_request_builder_start_time_floor")?a.startTimeSecs=Math.floor(b.startTimeSeconds):a.startTimeSecs=b.startTimeSeconds);c.contentPlaybackContext&&(a.playbackContext={contentPlaybackContext:c.contentPlaybackContext});c.prefetchPlaybackContext&&( a.playbackContext=Object.assign({},a.playbackContext,{prefetchPlaybackContext:c.prefetchPlaybackContext}),a.context.request||(a.context.request={}),a.context.request.isPrefetch=!0);a.playbackContext||(a.playbackContext={});d=Z9b();a.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!d,supportXhr:akc};c.overrideMutedAtStart&&(a.overrideMutedAtStart=c.overrideMutedAtStart);a.racyCheckOk=!!b.racyCheckOk;a.contentCheckOk=!!b.contentCheckOk;!x("captions_prefs_killswitch")&&(c=(c=SK("yt-player-caption-language-preferences"))? c:[],c==null?0:c.length)&&(a.captionParams={viewerSelectedCaptionLangs:c})}; g.getRequestConfig=function(a){a=this.getStoreKey(a);var b;a&&(b={storeStrategy:{storeKey:a}});x("web_log_player_watch_next_ticks")&&(b=b||{},b.requestTick="ps_s",b.responseTick="ps_r");return b}; i1[An]=[wL];var j1=function(){}; k(j1,mL);j1.prototype.getApiPaths=function(){return tvb}; j1.prototype.getExtension=function(a){return z(a,Rsb)}; j1.prototype.JSC$11204_buildRequest=function(a,b){a.params=b.params;a.correctionText=b.correctionText};var k1=function(){}; k(k1,mL);k1.prototype.getApiPaths=function(){return vvb}; k1.prototype.getExtension=function(a){return z(a,Smb)}; k1.prototype.JSC$11204_buildRequest=function(a,b){b.params&&(a.params=b.params);a.searchQuery=b.searchQuery;a.languageCode=b.languageCode;a.kind=b.kind;a.name=b.name;a.externalVideoId=b.externalVideoId};var bkc=function(){}; k(bkc,mL);g=bkc.prototype;g.getApiPaths=function(){return Jvb}; g.getExtension=function(a){return z(a,py)}; g.isNavigationCommand=function(){return!0}; g.getStoreKey=function(a){if((a=this.getExtension(a))&&a.videoId){var b={videoId:a.videoId};a.playlistId&&(b.playlistId=a.playlistId);a.index&&(b.index=a.index);a.params&&(b.params=a.params);return Gy("next",b)}}; g.JSC$11204_getClientScreen=function(a){var b;return((b=a.contentPlaybackContext)==null?void 0:b.vis)===2?"WATCH_FULL_SCREEN":"WATCH"}; g.JSC$11204_buildRequest=function(a,b,c){b.videoId&&(a.videoId=b.videoId);b.playlistId&&(a.playlistId=b.playlistId);b.params&&(a.params=b.params);b.index!==void 0&&(a.playlistIndex=b.index);a.racyCheckOk=!(!c.racyCheckOk&&!b.racyCheckOk);a.contentCheckOk=!!b.contentCheckOk;c.contentPlaybackContext&&(a.autonavState=c.contentPlaybackContext.autonavState,a.playbackContext={vis:c.contentPlaybackContext.vis,lactMilliseconds:c.contentPlaybackContext.lactMilliseconds});c.prefetchPlaybackContext&&(a.context.request||( a.context.request={}),a.context.request.isPrefetch=!0);x("captions_hats_killswitch")||(b=Cl(Bl(),65),b=b!=null?!b:!1,c=!!SK("yt-player-sticky-caption"),a.captionsRequested=b&&c)}; g.getRequestConfig=function(a){a=this.getStoreKey(a);var b;a&&(b={storeStrategy:{storeKey:a}});x("web_log_player_watch_next_ticks")&&(b=b||{},b.requestTick="wn_s",b.responseTick="wn_r");return b}; var l1=function(){}; k(l1,mL);l1.prototype.getApiPaths=function(){return Jvb}; l1.prototype.getExtension=function(a){return z(a,uJ)}; l1.prototype.JSC$11204_buildRequest=function(a,b){b.token&&(a.continuation=b.token)};var m1=function(a,b){this.playerRequestBuilder=a;this.watchNextRequestBuilder=b}; k(m1,mL);m1.prototype.getApiPaths=function(){return Uub}; m1.prototype.getExtension=function(a){return z(a,py)}; m1.prototype.isNavigationCommand=function(){return!0}; m1.prototype.JSC$11204_buildRequest=function(a,b,c){a.playerRequest={};this.playerRequestBuilder.JSC$11204_buildRequest(a.playerRequest,b,c);if(x("web_streaming_watch")||x("mweb_streaming_watch"))a.watchNextRequest={},this.watchNextRequestBuilder.JSC$11204_buildRequest(a.watchNextRequest,b,c)}; m1[An]=[i1,bkc];var n1=function(){}; k(n1,mL);n1.prototype.getApiPaths=function(){return Kvb}; n1.prototype.getExtension=function(a){return z(a,mtb)}; n1.prototype.JSC$11204_buildRequest=function(a,b){b.params&&(a.params=b.params)};var o1=function(a){this.JSC$16200_storeWithEntities=a}; k(o1,mL);o1.prototype.getApiPaths=function(){return lub}; o1.prototype.getExtension=function(a){return z(a,otb)||z(a,qtb)}; o1.prototype.JSC$11204_buildRequest=function(a,b,c){c.client_data&&(a.clientData=c.client_data);if(b.commerceActionConfig){var d=b.commerceActionConfig;b=d.actionId;d=d.commerceActionParams;b&&(a.actionId=b);d&&(a.commerceActionParams=d)}else{var e=b.actionId,f=b.commerceActionParams;c=b.entityKeys;e&&(a.actionId=e);f&&(a.commerceActionParams=f);var h;b=(d=this.JSC$16200_storeWithEntities)==null?void 0:(h=d.getState())==null?void 0:h.entities;if(c&&b){d=[];h=l(c);for(c=h.next();!c.done;c=h.next())if(e= c.value,c=mA(e).entityType,e=yA(b,c,e))f={},d.push((f[c]=e,f));a.entityMutationPayloads=d}}}; o1.prototype.getRequestConfig=function(a){var b,c=(b=z(a,otb))==null?void 0:b.requestSequenceType;if(c&&a.clickTrackingParams&&c!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:a.clickTrackingParams,sequenceType:c}}}; o1[An]=[wL];var p1=function(){}; k(p1,mL);p1.prototype.getApiPaths=function(){return Lvb}; p1.prototype.getExtension=function(a){return z(a,Ctb)}; p1.prototype.JSC$11204_buildRequest=function(a,b){b.feedbackData&&(a.feedbackData=b.feedbackData);b.params&&(a.itemParams=b.params)}; ba.Object.defineProperties(p1.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var q1=function(){}; k(q1,mL);q1.prototype.getApiPaths=function(){return Mvb}; q1.prototype.getExtension=function(a){return z(a,Dtb)}; q1.prototype.JSC$11204_buildRequest=function(a,b,c){c.payments_payload&&(a.paymentsPayload=c.payments_payload);c.offer_params&&(a.offerParams=c.offer_params);b.transactionParams&&(a.transactionParams=b.transactionParams)};var r1=function(){}; k(r1,mL);r1.prototype.getApiPaths=function(){return Nvb}; r1.prototype.getExtension=function(a){return z(a,fK)}; r1.prototype.JSC$11204_buildRequest=function(a,b,c){c=c===void 0?{}:c;b.buybucketParams&&(a.buybucketData={params:b.buybucketParams},b.stickerParams?a.buybucketData.stickerParams=b.stickerParams:(c.rich_chat_message?a.buybucketData.richChatMessage=c.rich_chat_message:c.chat_message_text&&(a.buybucketData.chatMessageText=c.chat_message_text),c.purchase_price_micros&&(a.buybucketData.purchasePriceMicros=c.purchase_price_micros.toString())));b.donationAmountMicros&&(a.tipAmountMicros=b.donationAmountMicros, b.tipParams&&(a.tipParams=b.tipParams));b.offerParams&&(a.offerParams=b.offerParams);b.productData&&(a.productData=b.productData);b.transactionParams&&(a.transactionParams=b.transactionParams)};var s1=function(){}; k(s1,mL);s1.prototype.getApiPaths=function(){return Ovb}; s1.prototype.getExtension=function(a){return z(a,Gtb)}; s1.prototype.JSC$11204_buildRequest=function(a,b){b.updateFopParams&&(a.updateFopParams=b.updateFopParams)};var t1=function(){}; k(t1,mL);t1.prototype.getApiPaths=function(){return Pvb}; t1.prototype.getExtension=function(a){return z(a,gK)}; t1.prototype.JSC$11204_buildRequest=function(a,b){b.couponCode&&(a.couponCode=b.couponCode);b.params&&(a.itemParams=b.params)};var u1=function(){}; k(u1,mL);u1.prototype.getApiPaths=function(){return Qvb}; u1.prototype.getExtension=function(a){return z(a,ptb)}; u1.prototype.JSC$11204_buildRequest=function(a,b,c){c=c===void 0?{}:c;b.params&&(a.params=b.params);c.ctk&&(a.clientToken=c.ctk)};var v1=function(){}; k(v1,mL);v1.prototype.getApiPaths=function(){return Svb}; v1.prototype.getExtension=function(a){return z(a,Etb)}; v1.prototype.JSC$11204_buildRequest=function(a,b,c){c=c===void 0?{}:c;c.backend_analytics&&(a.serializedBackendAnalyticsEvent=c.backend_analytics);b.offerParams&&(a.offerParams=b.offerParams)};var w1=function(){}; k(w1,mL);w1.prototype.getApiPaths=function(){return Pvb}; w1.prototype.getExtension=function(a){return z(a,ytb)}; w1.prototype.JSC$11204_buildRequest=function(a,b){b.params&&(a.itemParams=b.params)};var x1=function(){}; k(x1,mL);x1.prototype.getApiPaths=function(){return Tvb}; x1.prototype.getExtension=function(a){return z(a,utb)}; x1.prototype.JSC$11204_buildRequest=function(a,b,c){c.resume_time_ms&&(a.resumeTimeMs=c.resume_time_ms);b.pauseParams&&(a.pauseParams=b.pauseParams)};var y1=function(){}; k(y1,mL);y1.prototype.getApiPaths=function(){return Uvb}; y1.prototype.getExtension=function(a){return z(a,Ftb)}; y1.prototype.JSC$11204_buildRequest=function(a,b,c){c=c===void 0?{}:c;c.c&&(a.redeemCode=c.c);c.rd&&(a.riskData=c.rd);c.ctk&&(a.clientToken=c.ctk)};var z1=function(){}; k(z1,mL);z1.prototype.getApiPaths=function(){return Vvb}; z1.prototype.getExtension=function(a){return z(a,vtb)}; z1.prototype.JSC$11204_buildRequest=function(a,b){b.resumeParams&&(a.resumeParams=b.resumeParams)};var ckc={acknowledgeChannelTouStrikeCommand:kL(X_),addToPlaylistServiceEndpoint:kL(T0),addToPlaylistEndpoint:kL(T0),addUpcomingEventReminderEndpoint:kL(j0),browseEndpoint:kL(Rjc),channelCreationFormEndpoint:kL(Q_),channelCreationServiceEndpoint:kL(R_),claimLegacyYoutubeChannelEndpoint:kL(D_),clearSearchHistoryEndpoint:kL(c0),clearWatchHistoryEndpoint:kL(d0),commerceActionCommand:lL(o1),createBackstagePostEndpoint:kL(x_),createBroadcastCommand:kL(k0),createCommentEndpoint:kL(M_),createCommentReplyEndpoint:kL(L_), createLiveChatPollEndpoint:kL(l0),createPlaylistServiceEndpoint:kL(U0),crossAccountChannelTransferEndpoint:kL(g0),deleteLiveChatMessageCommand:kL(m0),deletePlaylistEndpoint:kL(V0),deleteVideoEndpoint:kL(h1),dismissalEndpoint:kL(Y_),feedbackEndpoint:kL(Z_),flagEndpoint:kL(Z0),getAccountSwitcherEndpoint:kL(f0),verifyCommand:kL(w_),getAccountsListInnertubeEndpoint:kL(i0),getCommentsFromInboxCommand:kL(C0),getDownloadActionCommand:kL(J0),getFlowCommand:lL(fP),getKidsBlocklistPickerCommand:kL($0),getNotificationMenuEndpoint:kL(Ujc), getPaymentInstrumentsParamsCommand:kL(u1),getPaymentsClientTokenCommand:lL(o1),getPdgBuyFlowCommand:kL(R0),getReportFormEndpoint:kL(a1),getSearchInVideoCommand:kL(d1),getAnswerCommand:kL(c1),getSurveyCommand:kL(g1),getTranscriptEndpoint:kL(k1),getPostVideoPreviewEndpoint:kL(z_),decorateMessageEndpoint:kL(y_),likeEndpoint:kL(S_),liveChatActionEndpoint:kL(q0),liveChatEndpoint:kL(p0),liveChatItemContextMenuEndpoint:kL(n0),liveChatPurchaseMessageEndpoint:kL(r0),liveChatReplayEndpoint:kL(o0),manageLiveChatUserEndpoint:kL(t0), metadataUpdateCommand:kL(A0),moderateLiveChatEndpoint:kL(u0),modifyChannelNotificationPreferenceEndpoint:kL(G0),notificationOptOutEndpoint:kL(H0),openSuperStickerBuyFlowCommand:kL(s0),performCommentActionEndpoint:kL(I_),playlistEditEndpoint:kL(X0),playlistEditorEndpoint:kL(W0),recordNotificationInteractionsEndpoint:kL(I0),reelWatchEndpoint:kL(Xjc),refreshPanelEndpoint:kL(L0),removeUpcomingEventReminderEndpoint:kL(v0),resolveLocationCommand:kL(z0),revealBusinessEmailCommand:kL(E_),searchEndpoint:kL(Zjc), sendLiveChatMessageEndpoint:kL(w0),sendLiveChatVoteEndpoint:kL(x0),setSettingEndpoint:kL(T_),shareEntityServiceEndpoint:lL(W_),sharingProviderDataCommand:kL(f1),showEngagementPanelEndpoint:kL(M0),showMoreDrawerCommand:kL(O0),showSheetCommand:kL(P0),showDialogCommand:kL(N0),subscribeEndpoint:kL(U_),transcriptSubmitCaptionCorrectionCommand:kL(j1),undoFeedbackEndpoint:kL(a0),unpluggedHomeLocationCommand:kL(y0),unsubscribeEndpoint:kL(V_),updateBackstagePostEndpoint:kL(B_),updateCommentEndpoint:kL(O_), updateCommentReplyEndpoint:kL(N_),updateCommentsSettingsEndpoint:kL(P_),updateCreatorChannelInnertubeCommand:kL(G_),updateKidsBlacklistEndpoint:kL(b1),updateEngagementPanelContentCommand:kL(Q0),updatePdgFeatureEnablementCommand:kL(S0),updatedMetadataEndpoint:kL(B0),validateChannelHandleCommand:kL(H_),updateChannelPageSettingsEndpoint:kL(F_),verifyAgeEndpoint:kL(b0),watchEndpoint:lL(i1),whitelistEditEndpoint:kL(n1),ypcCancelRecurrenceEndpoint:kL(p1),ypcCompleteTransactionEndpoint:kL(q1),ypcFixInstrumentEndpoint:kL(s1), ypcGetCartEndpoint:kL(r1),ypcGetOffersEndpoint:kL(t1),ypcHandleTransactionEndpoint:lL(r_),ypcLogWalletAnalyticDataEndpoint:kL(v1),ypcOffersEndpoint:kL(w1),ypcPauseSubscriptionCommand:kL(x1),ypcRedeemCodeEndpoint:kL(y1),ypcResumeSubscriptionCommand:kL(z1),ypcUpdateFopEndpoint:kL(s1)},A1={},dkc=(A1.GET_ACCOUNT_MENU=kL(h0),A1.GET_NOTIFICATIONS_MENU=kL(Tjc),A1.GET_NOTIFICATIONS_INBOX=kL(D0),A1.GET_UNSEEN_NOTIFICATION_COUNT=kL(F0),A1.GET_USER_MENTION_SUGGESTIONS=kL(A_),A1.LOAD_GUIDE=kL(Sjc),A1.SUBMIT_FEEDBACK= kL($_),A1),B1={},ekc=(B1.CONTINUATION_REQUEST_TYPE_BROWSE=kL(C_),B1.CONTINUATION_REQUEST_TYPE_SEARCH=kL(e1),B1.CONTINUATION_REQUEST_TYPE_STREAMING_SEARCH=kL(e1),B1.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=kL(l1),B1.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=kL(e0),B1.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=kL(K_),B1.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=kL(J_),B1.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=kL(Y0),B1.CONTINUATION_REQUEST_TYPE_GET_PANEL=kL(K0),B1),fkc={player:lL(i1),watchNext:kL(bkc)}, gkc={player:lL(i1),reelItemWatch:kL(Xjc),reelWatchSequence:kL(Yjc)},hkc={watchEndpoint:lL(m1)},oAb={commandEndpointMap:ckc,signalEndpointMap:dkc,continuationEndpointMap:ekc,watchEndpointMap:fkc,reelWatchEndpointMap:gkc,streamingEndpointMap:hkc};var C1=function(){var a=E.apply(this,arguments)||this;a.isPopupContainerReady=!1;a.isRendererStamperDone=!1;a.actionRouterIsRoot=!0;a.actionMap={"yt-live-chat-open-popup":"onOpenPopup","yt-user-activity":"onUserActivityAction","yt-log-flow-logging-event-command":"onLogFlowLoggingEventCommand","yt-hide-engagement-panel-endpoint":"onHideEngagementPanelEndpoint","yt-command-executor-command":"onCommandExecutorCommand"};a.dynamicActionMap={"yt-run-attestation-command":function(b){var c=Whc.instance,d= z(b,Zkb);return d?x("use_rta_manager_for_async")&&(Uhc()?window.attmp:Vhc())?$hc(c,d,b.clickTrackingParams):Yhc(c,d,b.clickTrackingParams):xj(Error("Bad Command: no runAttestationCommand"))}}; a.handlePageHide=function(){a.hostElement.remove()}; a.handleIframeEvent=function(b){b&&window.location.href.startsWith(b.origin)&&Ga(b.data)&&("yt-live-chat-set-dark-theme"in b.data?(b=b.data["yt-live-chat-set-dark-theme"],a.setGlobalDarkTheme(b),Yu(a.hostElement,"yt-live-chat-set-dark-theme",[b])):"yt-live-chat-keyboard-event"in b.data?Xu(a.hostElement,"yt-live-chat-keyboard-event",[b.data["yt-live-chat-keyboard-event"]]):"yt-live-chat-forward-redux-action"in b.data?a.ytLiveChatReduxBehavior.dispatch(b.data["yt-live-chat-forward-redux-action"]):"yt-live-chat-buy-flow-callback"in b.data?Xu(a.hostElement,"yt-live-chat-buy-flow-callback",[b.data["yt-live-chat-buy-flow-callback"]]):"yt-live-chat-close-buy-flow"in b.data&&Xu(a.hostElement,"yt-live-chat-close-buy-flow"))}; a.handleWindowBlur=function(){Xu(a.hostElement,"yt-close-all-popups-action")}; return a}; k(C1,E);g=C1.prototype;g.configureRendererStamper=function(){return{"data.contents":{id:"contents",events:!0,mapping:{liveChatRenderer:"yt-live-chat-renderer",messageRenderer:"yt-live-chat-message-renderer"}}}}; g.created=function(){dBb()||this.initializeThirdPartyVeLogging();this.isGlobalDarkTheme()&&this.setGlobalDarkTheme(!0);var a=Fn();a.addProvider({provide:WB,useValue:Vk("HTML_DIR")==="rtl"?"rtl":"ltr"});a.addProvider({provide:qKb,useClass:oic});a.addProvider({provide:$y,useClass:mP});a.addProvider({provide:EVb,useValue:new Kgc(this.hostElement)});x("kevlar_network_sli_killswitch")||a.addProvider({provide:Ajc,useValue:kRa});a.addProvider({provide:Fjc,useClass:Bjc});a.addProvider({provide:Ss,useValue:new Us}); a.addProvider({provide:rYa,useValue:vgc});a.addProvider({provide:zu,useValue:this.ytLiveChatReduxBehavior.store});a.addProvider({provide:wL,useValue:this.ytLiveChatReduxBehavior.store});a.addProvider({provide:r_,useClass:r_});a.addProvider({provide:dWa,useValue:function(){return Promise.resolve(window.lottie)}}); x("live_chat_cow_visibility_set_up")&&Pjc()}; g.ready=function(){this.useVimio||(this.visibilityMonitor.visibilityRoot=this.hostElement);var a=Fn();a.addProvider({provide:RR,useValue:new c_(this.hostElement)});a.addProvider({provide:tD,useValue:Wxb()});var b={};b=(b.consistency=fRa(),b);a.addProvider({provide:bic,useClass:aic});b.entities=a.resolve(bic);var c=a.resolve(Fjc);pAb(c,b);a.addProvider({provide:DK,useValue:oL.instance});a=oL.instance;Whc.instance=new Whc(a);x("live_chat_enable_rta_manager")&&(x("attmusiw")&&zjc(),a=new Rhc(a),b={preload:!1, useBotguardEverywhere:x("attmusiw")},b=Object.assign({preload:!0},b),c=b.bQc?void 0:new en,n_.instance=new n_(a,b,c));a=window.ytInitialData;(a==null?0:a.trackingParams)&&dBb()&&this.initializeFirstPartyVeLogging(a.trackingParams);(b=z(a==null?void 0:a.continuationContents,upb))?this.data={contents:{liveChatRenderer:b}}:a&&(this.data=a);x("kevlar_watch_color_update")&&document.documentElement.setAttribute("watch-color-update","");this.updateEntitiesOnColdLoad(a)}; g.updateEntitiesOnColdLoad=function(a){try{var b=this.get("frameworkUpdates.entityBatchUpdate",a);if(b)this.onEntitiesUpdated(b)}catch(c){Xk(c)}}; g.onEntitiesUpdated=function(a){OA(a,this.ytLiveChatReduxBehavior.store)}; g.onRenderStamperFinished=function(a){(a==null?void 0:a.target)===this.hostElement&&(this.isRendererStamperDone=!0)}; g.attached=function(){window.addEventListener("message",this.handleIframeEvent);window.addEventListener("blur",this.handleWindowBlur);window.top!==window&&window.addEventListener("pagehide",this.handlePageHide);this.hostElement.hasAttribute("iframe-buyflow-launcher")&&wt(this.hostElement).appendChild(document.createElement("yt-iframed-buyflow-launcher"));Fn().addProvider({provide:zgc,useValue:new Rgc(this.hostElement,this.hostElement.hasAttribute("iframe-gfeedback-manager"))});Xs(Ws.getInstance(), this.dynamicActionMap,this.hostElement);Jgc=new Igc(this.hostElement)}; g.detached=function(){window.removeEventListener("message",this.handleIframeEvent);window.removeEventListener("blur",this.handleWindowBlur);window.top!==window&&window.removeEventListener("pagehide",this.handlePageHide);Ys(Ws.getInstance(),Jgc.feedbackCollectorActionMap,Jgc.JSC$25134_clientRoot)}; g.getElement=function(a){return document.createElement(a)}; g.rendererStamperDoneOrPopupContainerReadyChanged=function(){this.isRendererStamperDone&&this.isPopupContainerReady&&Yu(this.hostElement,"yt-live-chat-popup-config-ready",[])}; g.initializeThirdPartyVeLogging=function(){var a=Wk(SSa)(void 0,54473,void 0,void 0,void 0,void 0);Vv(a,54473);vTa()}; g.initializeFirstPartyVeLogging=function(a){Vu("yt-attach-live-chat-response-tracking-params",{trackingParams:a});var b,c;(a=xa("yt_logging_screen.getCurrentCsn",window.top))&&(b=a());(a=xa("yt_logging_screen.getRootVeType",window.top))&&(c=a());b&&c?Vv(b,c):(b=b||c?b?"Could not fetch the root VE type from the parent frame":"Could not fetch the CSN from the parent frame":"Could not fetch the CSN and root VE type from parent frame.",Vk("INNERTUBE_CONTEXT_CLIENT_VERSION","").indexOf("2.")===0&&fo(Error(b)))}; g.onUserActivityAction=function(){dBb()&&Vu("yt-user-activity",{})}; g.onPopupConfigReceived=function(a,b){this.ytPopupContainerBehavior.initPopupContainerBehavior(b);this.isPopupContainerReady=!0;if(a=Fn().resolve(Cn(PIb)))a.container=this.ytPopupContainerBehavior;if(a=Fn().resolve(HL))a.container=this.ytPopupContainerBehavior;if(a=Fn().resolve(WAb))b=this.ytPopupContainerBehavior,a.containerWasInjected?fo(Error("Dialog container was injected, cannot register a new one.")):a.container=b,Yu(this.hostElement,"yt-live-chat-dialog-container-ready",[])}; g.onOpenPopup=function(a){Vu("yt-open-popup",a)}; g.onLogFlowLoggingEventCommand=function(a){Vu("yt-log-flow-logging-event-command",a)}; g.onYtNavigate=function(a){a=a.detail.endpoint;T8b(a)&&x("kevlar_flush_logs_on_away_navigation")&&bo();if(a.urlEndpoint){if(a.urlEndpoint.target==="TARGET_NEW_WINDOW"){var b=Eb(a.urlEndpoint.url);if(b){Yb(window,b,"_blank");return}Xk(Error("Could not get url for: "+a));return}if(Tc(a.urlEndpoint.url)&&!Yc(window.location.href,a.urlEndpoint.url)){Wv();this.navigateToUrl(a.urlEndpoint.url);return}}(a=(Fn().resolve(Cn(Ss))||new Us).getUrl(a))&&this.navigateToUrl(a)}; g.onHideEngagementPanelEndpoint=function(a){jz(a,this.hostElement)}; g.onCommandExecutorCommand=function(a){jz(a,this.hostElement)}; g.navigateToUrl=function(a){var b=Eb(a);b?kca(window.top.location,b):Xk(Error("Could not get url for: "+a))}; g.setGlobalDarkTheme=function(a){Vk("LIVE_CHAT_ALLOW_DARK_MODE")&&(a?document.documentElement.setAttribute("dark",""):document.documentElement.removeAttribute("dark"),Ft(this.hostElement))}; g.isGlobalDarkTheme=function(){return My()==="USER_INTERFACE_THEME_DARK"}; ba.Object.defineProperties(C1,{observers:{configurable:!0,enumerable:!0,get:function(){return["rendererStamperDoneOrPopupContainerReadyChanged(isRendererStamperDone, isPopupContainerReady)"]}}}); C1.prototype.onYtNavigate=C1.prototype.onYtNavigate;C1.prototype.onPopupConfigReceived=C1.prototype.onPopupConfigReceived;C1.prototype.rendererStamperDoneOrPopupContainerReadyChanged=C1.prototype.rendererStamperDoneOrPopupContainerReadyChanged;C1.prototype.onRenderStamperFinished=C1.prototype.onRenderStamperFinished;n([M(),r("design:type",Object)],C1.prototype,"data",void 0);n([F(rgc.YtPopupContainerBehavior),r("design:type",Object)],C1.prototype,"ytPopupContainerBehavior",void 0); n([F($C.YtRendererstamperBehavior),r("design:type",Object)],C1.prototype,"ytRendererstamperBehavior",void 0);n([F(Yz.YtRendererBehavior),r("design:type",Object)],C1.prototype,"ytRendererBehavior",void 0); n([F({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=Ws.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;x("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()}, attached:function(){this.registerActionRouterEventListeners_()}, detached:function(){this.unregisterActionRouterEventListeners_()}, registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var a;((a=this.actionRouterNode.hostElement)!=null?a:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}}, unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var a;((a=this.actionRouterNode.hostElement)!=null?a:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)}, onYtAction_:function(a){this.actionRouter_.handleAction(a.detail)}}), r("design:type",Object)],C1.prototype,"ytActionRouterBehavior",void 0);n([F(ft.YtActionHandlerBehavior),r("design:type",Object)],C1.prototype,"ytActionHandlerBehavior",void 0);n([F(ggc.YtEndpointHandlerWithYpcBehavior),r("design:type",Object)],C1.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);n([F(zB.YtEndpointBehavior),r("design:type",Object)],C1.prototype,"ytEndpointBehavior",void 0);n([F(iE),r("design:type",Object)],C1.prototype,"ytLiveChatReduxBehavior",void 0); n([M({notify:!0}),r("design:type",Object)],C1.prototype,"isPopupContainerReady",void 0);n([M({notify:!0}),r("design:type",Object)],C1.prototype,"isRendererStamperDone",void 0);n([M({value:x("kevlar_use_vimio_behavior")}),r("design:type",Boolean)],C1.prototype,"useVimio",void 0);n([Tt("#visibility-monitor"),r("design:type",Object)],C1.prototype,"visibilityMonitor",void 0); n([Kt("yt-rendererstamper-finished"),r("design:type",Function),r("design:paramtypes",[Event]),r("design:returntype")],C1.prototype,"onRenderStamperFinished",null);n([Lt("isRendererStamperDone","isPopupContainerReady"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],C1.prototype,"rendererStamperDoneOrPopupContainerReadyChanged",null); n([Kt("yt-live-chat-popup-config"),r("design:type",Function),r("design:paramtypes",[Event,fSa]),r("design:returntype")],C1.prototype,"onPopupConfigReceived",null);n([Kt("yt-navigate"),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype")],C1.prototype,"onYtNavigate",null);n([gu({disableElementRegistration:!0,is:"yt-live-chat-app"})],C1); Tu(C1,"yt-live-chat-app",function(){if(dFb===void 0){var a=document.createElement("template");Q(a,"\n\n\n\n\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);var b=a.content,c=b.insertBefore;cFb===void 0&&(cFb=document.createElement("template"));var d=cFb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);dFb=a}a=dFb;return a},{mode:0});za=function(a){return Promise.resolve(a)};function ikc(a){if(window.ResizeObserver){var b=new ResizeObserver(function(){Gt(a,"yt-refit")}); b.observe(a);return function(){b.disconnect()}}} ;function jkc(a,b,c){if(c&&c!=="TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(c){case"TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!b)break;a=SC.selectSfvAudioItemPlaybackState(a,b);if(a==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING")return{isToggled:!0};if(a)return{isToggled:!1};break;case"TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":return{isToggled:a.mainAppWatch.openEngagementPanels.includes("engagement-panel-comments-section")};case"TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":return{isToggled:!a.mainAppWatch.isLiveChatCollapsed}; case"TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_BOOLEAN":if(!b)break;var d;return{isToggled:!((d=QA(a,b))==null||!d.value)};case"TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_PLAYLIST_PANEL":return{isToggled:!a.mainAppWatch.isPlaylistPanelCollapsed};case"TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_DESCRIPTION_PANEL":return{isToggled:a.mainAppWatch.openEngagementPanels.includes("engagement-panel-structured-description")};case"TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_ASK_PANEL":return{isToggled:a.mainAppWatch.openEngagementPanels.includes("PAyouchat")}; default:fo(new Dl("Error: entitySelectorType defined but not matched in selector.",a,c));}} ;var j1a=O(function(a){function b(S){return z(S,ZJ)} function c(){var S=d().isTogglingDisabled||A()&&d().toggledIsTogglingDisabled,Y=S||v()?A():!A();C(Y);K(!1);if(!S){var da;(da=h)==null||da(!!Y)}var Aa;((Aa=f)==null?0:Aa())||Oz(Fn().resolve(tL),d().trackingParams);var Sa;if(!Y||!b(d().defaultButtonViewModel)||(Sa=f)!=null&&Sa()){var Ua;!b(d().toggledButtonViewModel)||((Ua=f)==null?0:Ua())||Oz(Fn().resolve(tL),b(d().toggledButtonViewModel).trackingParams)}else Oz(Fn().resolve(tL),b(d().defaultButtonViewModel).trackingParams)} var d=a.data,e=a.buttonShapeOverrides,f=a.disableExplicitClickLogging,h=a.onToggle,m=a.style,p=a.useOutlinedIcon,q=a.className,t=function(){var S,Y;return A()?(S=a.animatedTextPropsToggled)==null?void 0:S.call(a):(Y=a.animatedTextPropsDefault)==null?void 0:Y.call(a)},u=Vo(function(){return t()?Object.assign({},t(),{shouldAnimate:I()}):void 0},void 0,"rf2XOe"),v=function(){var S; return((S=R())==null?void 0:S.isToggled)!==void 0},w=l(Gu(function(){var S,Y,da; return v()?(S=R())==null?void 0:S.isToggled:(da=e==null?void 0:(Y=e())==null?void 0:Y.toggled)!=null?da:d().isToggled})),y=w.next().value; w=w.next().value;var A=y,C=w;w=l(Gu(function(){var S,Y;return(S=a.animatedTextPropsToggled)==null?void 0:(Y=S.call(a))==null?void 0:Y.shouldAnimate})); y=w.next().value;w=w.next().value;var I=y,K=w;y=l(ip(!1,void 0,"CMzvPb"));var N=y.next().value,L=y.next().value,R=eL(function(S){return jkc(S,d().entityKey,d().toggledStateEntitySelectorType)}); y=FC(function(){var S=Fn().resolve(Cn(tD));S&&L(S.keyboardInUse);return!1}); w=FC(function(){L(!1);return!1}); var W=function(){return Object.assign({},e==null?void 0:e(),{onToggle:c,toggleable:!0,toggled:A(),focused:N(),useOutlinedIcon:p==null?void 0:p()})}; return D("toggle-button-view-model",{"on:focusin":y,"on:focusout":w},D(P,{cond:function(){return A()?b(d().toggledButtonViewModel):b(d().defaultButtonViewModel)}, then:function(S){return D(BD,{data:S,className:q,style:m,useOutlinedIcon:p,buttonOverrides:W,animatedTextProps:u})}}))},"qh"); j1a.idomCompat={callbacks:{onToggle:!0}};var kkc=O(function(a){var b=a.data;return D("yt-disclaimer-item-view-model",{class:"ytDisclaimerItemViewModelHost"},D(P,{cond:function(){return b().linkfiedText}, then:function(c){return D(gC,{text:c})}}))},"rh");var r0b=O(function(a){var b=a.data;a=a.className;var c=D(lkc,{data:b}),d=D(OC,{data:function(){return b().actionsBar}},{flexibleActionsViewModel:mV}); return D("yt-response-actions-view-model",{class:U("ytResponseActionsViewModelHost",a)},D(pw,null,D(jw,{when:function(){return b().textAlignment==="RESPONSE_ACTIONS_TEXT_ALIGNMENT_LEFT"}},function(){return D(mq,null,c,d)}),D(jw,{when:function(){return b().textAlignment!=="RESPONSE_ACTIONS_TEXT_ALIGNMENT_LEFT"}},function(){return D(mq,null,d,c)})))},"sh"),mkc=O(function(a){var b=a.data; return D("div",{class:U("ytResponseActionsViewModelText",function(){a:switch(b().textAlignment){case"RESPONSE_ACTIONS_TEXT_ALIGNMENT_LEFT":var c="ytResponseActionsViewModelTextLeft";break a;default:c="ytResponseActionsViewModelTextRight";}return c})},D(P,{cond:function(){return b().text}, then:function(c){return D(gC,{text:c})}}),D(OC,{data:function(){return b().disclaimerItem}},{disclaimerItemViewModel:kkc}))},"th"),lkc=O(function(a){var b=a.data; return D(P,{cond:function(){return b().text||b().disclaimerItem}, then:function(){return D(mkc,{data:b})}})},"uh");var nkc=new Qk("listViewModel");var OWb=O(function(a){var b=a.data;var c=a.controlledMode;var d=a.disableFormsApiMode;var e=a.text;var f=a.onInput;var h=a.characterLimit;var m=a.validation;a=a.disabled;var p=function(){return b().formFieldMetadata},q=function(){return(c==null?0:c())?2:!p()||d!=null&&d()?1:3}; rw(function(){q()===2?(e==null?void 0:e())===void 0&&co(Error("props.text() should be set when in Controlled mode.")):q()===3&&((e==null?void 0:e())!==void 0&&co(Error("props.text() should not be set when in Forms API mode.")),(m==null?void 0:m())!==void 0&&co(Error("props.validation() should not be set when in Forms API mode.")),(h==null?void 0:h())!==void 0&&co(Error("props.characterLimit() should not be set when in Forms API mode.")),f!==void 0&&co(Error("props.onInput() should not be set when in Forms API mode.")))}); var t=rD(p);return D("text-field-view-model",{class:"ytTextFieldViewModelHost"},D(Mzb,{text:function(){if(q()===2)return e==null?void 0:e();if(q()===3){var u;return(u=t())==null?void 0:u.value}return""}, label:function(){var u;return(u=b().contentProperties)==null?void 0:u.labelText}, hideLabel:function(){var u;return(u=b().displayProperties)==null?void 0:u.hideLabel}, placeholder:function(){var u;return(u=b().contentProperties)==null?void 0:u.placeholderText}, hint:function(){var u;return(u=b().contentProperties)==null?void 0:u.hintText}, outline:function(){var u;return!((u=b().displayProperties)==null?0:u.hideBorder)}, overflowStyle:function(){var u;return((u=b().displayProperties)==null?0:u.isMultiline)?"expand-vertically":"scroll-vertically"}, disabled:a,disableNewLines:function(){var u;return(u=b().displayProperties)==null?void 0:u.disableNewLines}, onInput:function(u){if(q()===3){var v;(v=t())==null||v.updateValue(u)}else f==null||f(u)}, error:function(){if(q()===3){var u;if(((u=t())==null?0:u.errors)&&t().errors.length>0){u=t().errors[0].message;var v,w=(v=b().contentProperties)==null?void 0:v.maxCharacterCount;return{errorMessage:u,maxChars:w}}}}, validation:m,characterLimit:h,rows:function(){var u;return(u=b().displayProperties)==null?void 0:u.rows}}))},"vh");function okc(a,b){if(a&&b)switch(b){case"SELECTION_TYPE_BOOL":return a.boolValue;case"SELECTION_TYPE_INT":return a.intValue;case"SELECTION_TYPE_STRING":return a.stringValue;case"SELECTION_TYPE_PRIVACY_STATUS":return a.privacyStatusValue;case"SELECTION_TYPE_TIME_PICKER_FORMAT":return a.timePickerFormatValue;}} ;function pkc(a,b,c){a=a.map(function(d,e){return{listItemViewModel:{title:d.title,subtitle:d.subtitle,leadingImage:d.leadingImage,trailingImage:e===b?qkc:void 0,rendererContext:{commandContext:{onTap:d.onTap}}}}}); return Object.assign({},c&&{header:{panelHeaderViewModel:{title:c}}},{content:{listViewModel:{listItems:a}}})} var qkc={sources:[{clientResource:{imageName:"CHECK"}}]};var h8b=O(function(a){var b=sw("div"),c=Hu(a,{error:void 0}),d=c.data,e=c.error,f=c.onSelected;a=c.className;var h=c.formFieldMetadata,m=rD(function(){return h==null?void 0:h()}); c=l(Gu(function(){return rkc(d())})); var p=c.next().value,q=c.next().value,t=function(){var I;return((h==null?0:h())?3:1)===3?skc((I=m())==null?void 0:I.value,d()):p()}; tkc(d,function(I){var K,N,L=okc((K=d().options)==null?void 0:(N=K[I])==null?void 0:N.value,d().type);if(((h==null?0:h())?3:1)===3){var R;(R=m())==null||R.updateValue(L)}else q(I);f==null||f(L);b.value.focus()}); c=FC(function(){if(!d().disabled){var I=d(),K=t(),N=b.value;I.options&&(I=pkc(I.options,K,I.label),Fn().resolve(HL).openSheet({viewModel:I},N))}}); var u=OHb(),v=function(){var I,K;return(K=(I=m())==null?void 0:I.errors)!=null?K:[]},w=function(){return!!e()||v().length>0},y=function(){return!!d().disabled},A={},C={}; return D("dropdown-view-model",{class:"ytDropdownViewModelHost"},D("div",{class:U("ytDropdownViewModelDropdownContainer",a,(A.ytDropdownViewModelDropdownContainerErrorBorder=w,A.ytDropdownViewModelDropdownContainerDisabled=y,A)),"on:click":c,el:b,role:"combobox",tabindex:0,"on:keydown":u,"aria-invalid":w,"aria-disabled":y,"aria-describedby":function(){return w()?"dropdown-view-model-error":void 0}},D("div",{class:"ytDropdownViewModelText"},ukc(d,w,t),vkc(d,t)),D("div",{class:U("ytDropdownViewModelChevronDown",( C.ytDropdownViewModelChevronDownDisabled=y,C))},D(aC,{icon:"CHEVRON_DOWN"}))),wkc(d,function(){if(((h==null?0:h())?3:1)===3&&v().length>0){var I=v()[0].message; if(I)return{content:I}}return e()}))},"wh"); function rkc(a){var b;a=(b=a.options)==null?void 0:b.findIndex(function(c){return c.isSelected}); return a===void 0?-1:a} function skc(a,b){var c=b.type;if(a===void 0)return-1;var d;b=(d=b.options)==null?void 0:d.findIndex(function(e){return okc(e.value,c)===a}); return b===void 0?-1:b} function ukc(a,b,c){var d=function(){return a().label},e={},f=U("ytDropdownViewModelLabel",(e.ytDropdownViewModelLabelError=b,e)); return D(P,{cond:function(){return a().label&&!(c()===-1&&a().label&&!a().placeholderText)}, then:function(){return D("div",{class:f},D(gC,{text:d}))}})} function vkc(a,b){var c={};c=U("ytDropdownViewModelTitle",(c.ytDropdownViewModelTitlePlaceholder=function(){return b()===-1},c)); return D("div",{class:c},D(gC,{text:function(){var d=a();var e=b();if(e===-1)d=d.placeholderText?d.placeholderText:d.label;else{var f,h;d=(f=d.options)==null?void 0:(h=f[e])==null?void 0:h.title}return d}}))} function wkc(a,b){var c=function(){return a().hint}; return D(mq,null,D(P,{cond:function(){return c()&&!b()}, then:function(){return D("div",{class:U("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},D(gC,{text:c,className:"ytDropdownViewModelSupportText"}))}}),D(P,{cond:b, then:function(){return D("div",{id:"dropdown-view-model-error",role:"alert",class:U("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},D(aC,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),D(gC,{text:b,className:"ytDropdownViewModelSupportText"}))}}))} function tkc(a,b){var c=Fn().resolve(VAb);rw(function(){var d=a().id;d&&c!=null&&c.dropdownMap.set(d,b)})} ;var jP=O(function(a){a=Hu(a,{className:void 0});var b=a.data;return D("basic-content-view-model",{class:U("ytBasicContentViewModelHost",a.className)},D(P,{cond:function(){return b().headline}, then:function(c){return D("div",{class:"ytBasicContentViewModelHeadline"},D(gC,{text:c}))}}),D(mw,{each:function(){return b().paragraphs||[]}, keyBy:"INDEX"},function(c){return D("div",{class:"ytBasicContentViewModelParagraph"},D(P,{cond:function(){var d=c();return!!(d.header||d.customHeader||d.headline)}, then:function(){return D(xkc,{paragraph:c})}}),D(P,{cond:function(){return c().asset||c().text}, then:function(){return D("div",{class:"ytBasicContentViewModelParagraphContent"},D(P,{cond:function(){return c().asset}, then:function(d){return D("div",{class:"ytBasicContentViewModelParagraphAsset"},D(OC,{data:d},{contentPreviewImageViewModel:WV}))}}),D(P,{cond:function(){return c().text}, then:function(d){return D("div",{class:"ytBasicContentViewModelParagraphText"},D(gC,{text:d}))}}))}}))}))},"xh"),xkc=O(function(a){var b=a.paragraph; return D(mq,null,D(P,{cond:function(){return b().headline}, then:function(c){return D(gC,{text:c,className:"ytBasicContentViewModelParagraphHeadline"})}}),D(OC,{data:function(){return b().header||b().customHeader}},{sectionHeaderViewModel:function(c){return D(UV,{data:c.data, disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"yh");var ykc=O(function(a){var b=a.data;a=sw("ad-card-badge-view-model");return D("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"}, el:a},D(P,{cond:function(){return b().imageBadge}, then:function(c){return D(eC,{data:c,alt:""})}}))},"zh");function zkc(a){if(a.querySelector("img")){var b=a.querySelector("img");b.addEventListener("error",function(){sE(b.src).then(function(c){(c=Gb(c).toString())?b.src=c:b.removeAttribute("src")}).catch(function(){b.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}} ;var JUb=O(function(a){var b=Hu(a,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});a=Object.assign({},b);var c=b.data;b=b.customCommandResolver;var d=(delete a.data,delete a.customCommandResolver,a);a=vw({visibilityCallback:function(m,p){var q,t=(q=c().interaction)==null?void 0:q.onFirstVisible;m&&(t&&QB(t),d.setOnErrorHandler()&&zkc(p))}, showOption:tT});b=wT(function(){return c().interaction},b,function(){var m; return(m=d.listenToTapEvent)==null?void 0:m.call(d)}); var e=l(ip(!1,void 0,"WO6VMc")),f=e.next().value,h=e.next().value;e=FC(function(m){var p;((p=d.setTouchEndHandler)==null?0:p.call(d))&&!f()&&(m.currentTarget.click(),h(!0),setTimeout(function(){h(!1)},100)); return!1}); return D("ad-image-view-model",{class:function(){var m,p=[((m=c().interaction)==null?0:m.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],q;((q=d.isGridViewEnabled)==null?0:q.call(d))&&p.push("ytwAdImageViewModelHostInGridView");return p.join(" ")}, el:dB(a,b),"on:touchend":e},D("div",{class:"ytwAdImageViewModelHostImageContainer"},D(eC,{data:function(){var m;return{sources:c().imageSources,contentMode:(m=c().imageProperties)==null?void 0:m.contentMode}}, alt:function(){var m,p;return((m=c().interaction)==null?void 0:(p=m.accessibility)==null?void 0:p.label)||""}, targetHeight:d.targetHeight,targetWidth:d.targetWidth,preserveHeight:d.preserveHeight,preserveWidth:d.preserveWidth,useWidth:d.useWidth,style:function(){var m,p;return"vertical-align: bottom;"+(((m=c().background)==null?0:m.color)?"background-color:"+Iy((p=c().background)==null?void 0:p.color)+";":"")}, className:function(){return d.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0}, draggable:function(){var m,p;return(p=(m=d.setDraggable)==null?void 0:m.call(d))!=null?p:void 0}})))},"Ah");var Akc=O(function(a){var b=a.data;var c=a.customCommandResolver;var d=a.enableClickActionForLockup;a=vw({visibilityCallback:function(h){var m,p=(m=b().interaction)==null?void 0:m.onFirstVisible;h&&p&&QB(p)}, showOption:tT});var e=wT(function(){return b().interaction},c,void 0,function(){return(d==null?0:d())?!1:void 0}),f=OHb(function(h){if(d!=null&&d()){var m,p=(m=b().interaction)==null?void 0:m.onTap; p&&vT(h,p,c)}}); return D("carousel-ad-card-image-view-model",{class:function(){var h;return((h=b().interaction)==null?0:h.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"}, el:dB(a,e),"aria-label":function(){var h,m;return(h=b().interaction)==null?void 0:(m=h.accessibility)==null?void 0:m.label}, tabindex:function(){var h;return(d==null?0:d())&&((h=b().interaction)==null?0:h.onTap)?0:void 0}, role:function(){var h;return(d==null?0:d())&&((h=b().interaction)==null?0:h.onTap)?"button":void 0}, "on:keydown":f},D(OC,{data:function(){return b().adImage}},{adImageViewModel:function(h){return D(JUb,{data:h.data, customCommandResolver:c})}}),D("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},D(OC,{data:function(){return b().badge}},{adCardBadgeViewModel:ykc})),D(ZK,{model:{color:4}}))},"Bh");var Bkc=O(function(a){var b=l(ip(0,void 0,"bIhlTb")),c=b.next().value;b.next();var d=b.next().value,e=l(ip(!1,void 0,"eEDoNd"));b=e.next().value;var f=e.next().value,h;zp(function(){clearTimeout(h)}); e=FC(function(){var q;((q=a.animate)==null?0:q.call(a))?(f(!0),h=setTimeout(function(){f(!1);m()},200)):m(); return!1}); var m=function(){d(function(q){return(q+a.numShownItems())%a.data().length})},p={}; return D("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},D("div",{class:U("ytwHorizontalCarouselCarouselWrapper")},D("div",{class:U("ytwHorizontalCarouselCarouselInnerWrapper",(p.ytwHorizontalCarouselAnimating=b,p))},D(mw,{each:a.data,keyBy:"INDEX"},function(q,t){return D("div",{class:"ytwHorizontalCarouselCarouselItem",style:GC({"flex-basis":function(){return"calc((100% - (8px * "+(a.numShownItems()-1)+")) / "+a.numShownItems()+")"}, order:function(){var u=t-c();u<0&&(u+=a.data().length);return u}})},a.children(q,t))}))),D("div",{class:"ytwHorizontalCarouselNextButton", "on:click":e},a.nextButton()))},"Ch");var Ekc=O(function(a){var b=a.data;var c=a.customCommandResolver;var d=a.isLockupAttachment;a=vw({visibilityCallback:function(e){var f,h=(f=b().interaction)==null?void 0:f.onFirstVisible;e&&h&&QB(h)}, showOption:tT});return D("carousel-ad-card-collection-view-model",{el:dB(a),class:"ytwCarouselAdCardCollectionViewModelHost"},D(P,{cond:function(){return d==null?void 0:d()}, then:function(){return D(Ckc,{data:b,customCommandResolver:c})}, else:function(){return D(Dkc,{data:b,customCommandResolver:c})}}))},"Dh"),Ckc=O(function(a){var b=a.data; var c=a.customCommandResolver;return D("div",{class:"ytwCarouselAdCardCollectionViewModelMetadataAttachmentCarousel"},D(OC,{data:function(){return b().carouselAdCards||[]}},{carouselAdCardImageViewModel:function(d){return D("div",{class:"ytwCarouselAdCardCollectionViewModelMetadataAttachmentCarouselItem"},D(Akc,{data:d.data, customCommandResolver:c,enableClickActionForLockup:!0}))}}))},"Eh"),Dkc=O(function(a){var b=a.data; var c=a.customCommandResolver;var d=eL(AT);return D(Bkc,{data:function(){var e;return((e=b())==null?void 0:e.carouselAdCards)||[]}, nextButton:function(){return D(OC,{data:function(){return b().nextButton}},{buttonViewModel:function(e){var f=e.data; return D(AD,{data:function(){return d()===1?Object.assign({},f(),{style:"mono"}):f()}, className:x("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})}, numShownItems:3,animate:!0},function(e){return D(OC,{data:e},{carouselAdCardImageViewModel:function(f){return D(Akc,{data:f.data,customCommandResolver:c})}})})},"Fh");var Fkc=O(function(a){return D("yt-table-view-model",{class:U("ytTableViewModelHost",a.className)},D(mw,{each:function(){return a.data().rows||[]}},function(b){var c={}; return D("div",{class:U("ytTableViewModelRow",(c.ytTableViewModelRowBottomBorder=function(){return a.data().showSeparators},c))},D(mw,{each:function(){return(b==null?void 0:b.cells)||[]}},function(d,e){var f,h={}; return D("span",{class:U((h.ytTableViewModelRowLabel=function(){return e()===0&&a.data().showHorizontalHeaders},h.ytTableViewModelCell=function(){return!a.data().showHorizontalHeaders||e()>0},h))},(f=d.text)==null?void 0:f.content)}))}))},"Gh");var d1b=O(function(a){a=Hu(a,{isOverlay:!1});var b=a.data,c={};return D("yt-progress-view-model",{class:U("ytwProgressViewModelHost",(c.ytwProgressViewModelHostOverlay=a.isOverlay,c))},D(P,{cond:function(){return b().progressSummary}, then:function(d){return D("p",{class:"ytwProgressViewModelHostProgressSubtitle"},D(gC,{text:d}))}}),D("div",{class:"ytwProgressViewModelHostProgressContainer"},D(P,{cond:function(){return b().leadingLabel}, then:function(d){return D("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},D(gC,{text:d}))}}),D("div",{class:"ytwProgressViewModelHostProgressBar"},D("div",{class:"ytwProgressViewModelHostProgressBarFill", style:function(){return"width: "+(b().progressPercentage||0)*100+"%"}}))))},"Hh");var QYb=O(function(a){var b=a.className;var c=a.data;var d=a.isOverlay;var e=a.maxLinesOverride;var f=a.useMediumText;var h=function(){return c().alwaysShowTruncationText},m=function(){return c().truncationText},p=function(){return f!==void 0&&f()?"medium":"small"},q=function(){return d!==void 0&&d()?"overlay":"default"},t=function(){var y,A; return(A=(y=z(c().rendererContext,dy))==null?void 0:y.label)!=null?A:""}; a=l(ip(!1,void 0,"llBUm"));var u=a.next().value,v=a.next().value;a=FC(function(){c().expandOnTap&&v(!u());return!0}); var w={};return D("yt-description-preview-view-model",{el:dB(MD(function(){return c().rendererContext})), class:U("ytDescriptionPreviewViewModelHost",b,(w.ytDescriptionPreviewViewModelClickable=function(){var y;return!((y=z(c().rendererContext,hy))==null||!y.onTap)},w.ytDescriptionPreviewViewModelIsOverlay=d,w)), "on:click":a},D(P,{cond:function(){return c().description}, then:function(y){return D(P,{cond:u,then:function(){var A={};return D("div",{class:U("ytDescriptionPreviewViewModelDescription",(A.ytDescriptionPreviewViewModelDescriptionMediumText=f,A))},D(gC,{text:y}))}, else:function(){return D(uRb,{text:y,alwaysShowTruncationText:h,truncationText:m,maxLines:function(){var A;return(A=e==null?void 0:e())!=null?A:c().maxLines}, textStyle:q,accessibilityLabel:t,textSize:p})}})}}))},"Ih"); QYb.idomCompat=!0;function Gkc(a){return a==="IMAGE_BANNER_STYLE_INSET"||a==="IMAGE_BANNER_STYLE_UNKNOWN"} var Rbc=O(function(a){var b=a.data;var c=a.isPositionRelative;var d=dP("(max-width: 527.9px)"),e=function(){var f,h;return(h=(f=b())==null?void 0:f.style)!=null?h:"IMAGE_BANNER_STYLE_FULL_BLEED"}; a={};return D("yt-image-banner-view-model",{el:dB(MD(function(){var f;return(f=b())==null?void 0:f.rendererContext})), class:U((a.ytImageBannerViewModelHost=!0,a.ytImageBannerViewModelInset=function(){return Gkc(e())},a.ytImageBannerViewModelPositionAbsolute=function(){return Bp(!0)&&!(c==null?0:c())},a.ytImageBannerViewModelSmallInset=function(){return Gkc(e())&&d()},a.ytImageBannerViewModelTappable=function(){var f; return KD((f=b())==null?void 0:f.rendererContext)},a))},D(P,{cond:function(){var f; return(f=b())==null?void 0:f.image}, then:function(){return D(eC,{data:function(){return b().image}, alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),D(OC,{data:function(){var f; return(f=b())==null?void 0:f.overlays}},{thumbnailHoverOverlayViewModel:wIb}))},"Jh"); Rbc.idomCompat=!0;var Hkc=new Bn("INFO_PANEL_CONTENT_RENDERER_TOKEN");var Ikc=new Bn("SHELF_RENDERER_TOKEN");var Jkc=new Bn("VIDEO_RENDERER_TOKEN");var Lkc=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("hU04te"),2);a=Kkc;return b.return(a)})},Mkc=yD(function(){return Lkc()},{debugName:"feedbackPromptViewModel"}); Gn(xD,function(a){a.registerLoadFn("feedbackPromptViewModel","hU04te",Lkc)});var Okc=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("f8YPh"),2);a=Nkc;return b.return(a)})},Pkc=yD(function(){return Okc()},{debugName:"chatLoadingViewModel"}); Gn(xD,function(a){a.registerLoadFn("chatLoadingViewModel","f8YPh",Okc)});var Rkc=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("b3MoKf"),2);a=Qkc;return b.return(a)})},Skc=yD(function(){return Rkc()},{debugName:"chatUserTurnViewModel"}); Gn(xD,function(a){a.registerLoadFn("chatUserTurnViewModel","b3MoKf",Rkc)});function Tkc(a){switch(a){case"AD_AVATAR_SIZE_XXS":return"tiny";case"AD_AVATAR_SIZE_XS":return"extra-small";case"AD_AVATAR_SIZE_S":return"small";case"AD_AVATAR_SIZE_M":return"medium";case"AD_AVATAR_SIZE_MPLUS":return"48";case"AD_AVATAR_SIZE_L":return"large";case"AD_AVATAR_SIZE_XL":return"extra-large";default:return"medium";}} ;var Ukc=O(function(a){var b=a.data;var c=a.customCommandResolver;a=vw({visibilityCallback:function(f){var h,m=(h=b().interaction)==null?void 0:h.onFirstVisible;f&&m&&QB(m)}, showOption:tT});a=dB(a);var d=function(){var f;return((f=b().interaction)==null?0:f.onTap)?function(h){var m;vT(h,(m=b().interaction)==null?void 0:m.onTap,c)}:void 0},e=function(){var f,h=b(),m=d(),p=(f=z(b().rendererContext,dy))==null?void 0:f.label; a:switch(h.style){case"AD_AVATAR_STYLE_ROUNDED_CORNER":f=1;break a;default:f=0;}return{size:Tkc(h.size),type:f,onTap:m,accessibilityText:p}}; return D("ad-avatar-view-model",{class:function(){var f;return((f=b().interaction)==null?0:f.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"}, el:a},D(P,{cond:function(){return b().image}, then:function(f){return D(AIb,{data:e,image:f})}}))},"Kh");var D1=O(function(a){var b=a.data;var c=a.customCommandResolver;var d=a.adRenderingContextType;a=vw({visibilityCallback:function(e){var f,h=(f=b().interaction)==null?void 0:f.onFirstVisible;e&&h&&QB(h)}, showOption:tT});return D("ad-details-line-view-model",{class:function(){var e;return((e=b().interaction)==null?0:e.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"}, el:dB(a,wT(function(){return b().interaction},c))},D(P,{cond:function(){return b().style}, then:function(e){return D(mw,{each:function(){var f;return((f=b())==null?void 0:f.attributes)||[]}, keyBy:"INDEX"},function(f){return D(Vkc,{attribute:f,style:e,adRenderingContextType:function(){return d()}})})}}))},"Lh"),Vkc=O(function(a){var b=a.attribute; var c=a.style;var d=a.adRenderingContextType;return D(P,{cond:function(){return b().text}, then:function(e){return D(gC,{text:e,className:function(){var f=d();c();return f==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Mh");var Wkc=O(function(a){var b=a.data;a=a.className;var c=function(){return b().attachmentStyle==="AI_COMPANION_ATTACHMENT_STYLE_STANDALONE_WIDTH"},d=nV(),e=OD(function(){return b().topPaddingToken}),f=OD(function(){return b().bottomPaddingToken}),h=oV(function(){return b().titleTypographyToken},d,{maxLines:2}),m=oV(function(){return b().descriptionTypographyToken},d); return D("yt-ai-companion-attachment-view-model",{el:dB(MD(function(){return b().rendererContext})), class:U("ytAiCompanionAttachmentViewModelHost",a,function(){a:{switch(b().attachmentStyle){case"AI_COMPANION_ATTACHMENT_STYLE_STANDALONE_WIDTH":var p="ytAiCompanionAttachmentViewModelHostStandalone";break a;}p=void 0}return p}), style:GC({"padding-top":e,"padding-bottom":f})},D("div",{class:"ytAiCompanionAttachmentViewModelTitleContainer"},D(P,{cond:function(){return b().title}, then:function(p){return D("h3",{class:"ytAiCompanionAttachmentViewModelTitleHeading"},D(gC,{text:p,style:h}))}}),D(P,{cond:function(){return wD(b().trailingTitleIcon)}, then:function(p){return D("div",{class:"ytAiCompanionAttachmentViewModelTitleTrailingIcon"},D(eC,{data:p,alt:"",preserveWidth:!0,preserveHeight:!0}))}})),D(P,{cond:function(){return b().description}, then:function(p){var q={};return D("div",{class:U("ytAiCompanionAttachmentViewModelDescription",(q.ytAiCompanionAttachmentViewModelDescriptionStandalone=c,q))},D(gC,{text:p,style:m}))}}),D(P,{cond:function(){return b().bottomItem}, then:function(p){return D("div",{class:"ytAiCompanionAttachmentViewModelBottomItem"},D(OC,{data:p},{tableViewModel:Fkc}))}}))},"Nh");var Xkc=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("YZG94"),2);a=Wkc;return b.return(a)})},Ykc=yD(function(){return Xkc()},{debugName:"aiCompanionAttachmentViewModel"}); Gn(xD,function(a){a.registerLoadFn("aiCompanionAttachmentViewModel","YZG94",Xkc)});var Zkc=O(function(a){var b=function(){return a.data().style==="CLUSTER_VIEW_MODEL_STYLE_HORIZONTAL"},c=function(){return a.data().horizontalAlignment==="CLUSTER_VIEW_MODEL_HORIZONTAL_ALIGNMENT_START"},d={},e={}; return D("yt-cluster-view-model",{class:U("ytClusterViewModelHost",a.className,(d.ytClusterViewModelIsSingleShort=function(){return a.data().style==="CLUSTER_VIEW_MODEL_STYLE_LARGE_SINGLE_SHORT"},d.ytClusterViewModelAlignStart=c,d.ytClusterViewModelHostDisableBottomPadding=a.disableBottomPadding,d.ytClusterViewModelIsHorizontal=b,d))},D("div",{class:"ytClusterViewModelItemsWrapper"},D("div",{class:U("ytClusterViewModelItems",(e.ytClusterViewModelCentered=function(){var f,h; return a.data().itemsType==="CLUSTER_VIEW_MODEL_ITEMS_TYPE_SHORTS"&&((h=(f=a.data().items)==null?void 0:f.length)!=null?h:0)===2&&!c()},e))},D(OC,{data:function(){return a.data().items}},{lockupViewModel:function(f){return D(oS,{data:f.data, className:"ytClusterViewModelLockup"})}, shortsLockupViewModel:function(f){return D("div",{class:"ytClusterViewModelShortsWrapper"},D(X_b,{data:f.data,scrimStyle:3,aspectRatio:function(){return b()?1:3}}))}}))),D(OC,{data:function(){return a.data().metadata}},{aiCompanionAttachmentViewModel:function(f){return D(Ykc,{data:f.data, className:"ytClusterViewModelMetadata"})}}))},"Oh");function $kc(a){var b=a.itemWidth;var c=a.gutter;var d=a.itemsLength;var e=a.containerWidth;a=a.numOfItemsToShift;b+=c;if(!d)return 0;a===void 0&&(a=Math.round(e/b)||1);return a*b} var dlc=O(function(a){var b=function(){var S,Y,da,Aa;return(Aa=(S=a.data().rows)==null?void 0:(Y=S[0])==null?void 0:(da=Y.cells)==null?void 0:da.length)!=null?Aa:0},c=function(){var S; return(S=a.data().rows)==null?void 0:S.slice(1)},d=function(){return a.data().showRowSeparators},e=sw("yt-comparison-table-view-model"),f=l(ip(0,void 0,"qYkVBf")),h=f.next().value,m=f.next().value; f=l(ip(0,void 0,"p09tJf"));var p=f.next().value,q=f.next().value;f=l(ip("50%",void 0,"Dokq2d"));var t=f.next().value,u=f.next().value;f=Vo(function(){return"transform:translateX("+(Vk("HTML_DIR")==="rtl"?"":"-")+p()+"px)"},void 0,"DTiJWe"); var v=Vo(function(){return jS({containerWidth:h(),hasPeek:a.hasPeek!==void 0?a.hasPeek():!1,sizing:"STANDARD",marginSettings:0})},void 0,"CC2gbf"),w=Vo(function(){return v().gutter},void 0,"YlcsIe"),y=Vo(function(){return v().margin},void 0,"ImFyBf"),A=Vo(function(){return v().itemWidth},void 0,"wJ9h5e"),C=Vo(function(){return v().maxContainerWidth},void 0,"K6OPqe"),I=Vo(function(){return b()?(A()+w())*b()-w():0},void 0,"rOGvEe"),K=Vo(function(){return p()>0},void 0,"muXl2"),N=Vo(function(){return p()< I()-C()},void 0,"sluM1"),L=function(){e.value!==null&&W()},R; rw(function(){W();window.ResizeObserver?(R=new ResizeObserver(zh(L,0)),R.observe(e.value)):window.addEventListener("resize",L)}); zp(function(){if(window.ResizeObserver){var S;(S=R)==null||S.disconnect()}else window.removeEventListener("resize",L)}); var W=function(){if(e.value){m(e.value.clientWidth);var S;a:{if(S=e.value.querySelector(".ytComparisonTableViewModelHeaderCell"))if(S=S.getBoundingClientRect(),S.height>0){S=S.height*.4+"px";break a}S=void 0}S&&u(S)}}; return D("yt-comparison-table-view-model",{class:"ytComparisonTableViewModelHost",el:e},D("div",{class:"ytComparisonTableViewModelOuterContainer"},D("div",{class:"ytComparisonTableViewModelHorizontalContainer",style:GC({width:function(){return C()+"px"}, padding:function(){return"0 "+y()+"px"}})},D("div",{class:"ytComparisonTableViewModelItems", style:f},D("table",{class:"ytComparisonTableViewModelComparisonTable",style:GC({"border-spacing":function(){return w()+"px 0"}, margin:function(){return"0 -"+w()+"px"}})},D(P,{cond:function(){var S; return(S=a.data().rows)==null?void 0:S[0]}, then:function(S){return D("thead",null,D(alc,{row:S}),D("tr",null,D(mw,{each:function(){return S().cells||[]}},function(Y){return D("th",{class:U("ytComparisonTableViewModelCell","ytComparisonTableViewModelHeaderCell"), style:GC({width:function(){return A()+"px"}}), scope:"col"},D(blc,{cell:function(){return Y}}))})))}}),D(P,{cond:function(){var S; return(S=c())==null?void 0:S.length}, then:function(){return D("tbody",null,D(mw,{each:function(){var S;return(S=c())!=null?S:[]}},function(S){return D(mq,null,D(alc,{row:function(){return S}}),D("tr",null,D(mw,{each:function(){return(S==null?void 0:S.cells)||[]}},function(Y){var da={}; return D("td",{class:U("ytComparisonTableViewModelCell",(da.ytComparisonTableViewModelCellSeparator=d,da)),style:GC({width:function(){return A()+"px"}})},D(blc,{cell:function(){return Y}}))})))}))}})))),D(P,{cond:K, then:function(){return D(clc,{isLeft:!0,topOffset:t,onTap:function(){var S=p()-$kc({itemWidth:A(),gutter:w(),itemsLength:b(),containerWidth:C(),numOfItemsToShift:void 0}),Y=I(),da=C();q(Math.min(Math.max(S,0),Y-da))}})}}),D(P,{cond:N, then:function(){return D(clc,{isLeft:!1,topOffset:t,onTap:function(){var S=p()+$kc({itemWidth:A(),gutter:w(),itemsLength:b(),containerWidth:C(),numOfItemsToShift:void 0}),Y=I(),da=C();q(Math.min(Math.max(S,0),Y-da))}})}})))},"Ph"),clc=O(function(a){return D("div",{class:function(){return a.isLeft()?"ytComparisonTableViewModelLeftArrow":"ytComparisonTableViewModelRightArrow"}, style:GC({top:a.topOffset})},D(bL,{data:function(){return{style:"mono",type:"filled",state:"active",iconPosition:"icon-only",size:"M",onTap:function(){a.onTap()}, accessibilityLabel:a.isLeft()?"Previous":"Next"}}, iconName:function(){return a.isLeft()?"CHEVRON_LEFT":"CHEVRON_RIGHT"}}))},"Qh"),alc=O(function(a){var b=a.row; return D(P,{cond:function(){var c;return(c=b().labels)==null?void 0:c.length}, then:function(){return D("tr",null,D("th",{class:"ytComparisonTableViewModelRowLabel",colspan:function(){var c;return((c=b().cells)==null?void 0:c.length)||1}, scope:"row"},b().labels))}})},"Rh"),blc=O(function(a){var b=nV(),c=oV(function(){return a.cell().textTypographyToken},b); return D(mq,null,D(P,{cond:function(){return a.cell().text}, then:function(d){return D(gC,{text:d,style:c})}}),D(OC,{data:function(){return a.cell().content}},{basicContentViewModel:kP, lockupViewModel:zT,clusterViewModel:function(d){return D(Zkc,{data:d.data,disableBottomPadding:!0})}}))},"Sh");var gVb=O(function(a){var b=a.data;a=a.className;var c=sw("pivot-button-view-model");rw(function(){var d;((d=b())==null?0:d.backgroundColor)&&c.value.setAttribute("data-background-color",String(b().backgroundColor))}); return D("pivot-button-view-model",{el:c,class:U("ytwPivotButtonViewModelHost",a)},D(vD,{command:function(){var d=b();d=d.onClickCommand?LB(d.onClickCommand):d.contentDescription?lxb(kz(d.contentDescription)):void 0;return d}, ariaLabel:function(){return b().contentDescription}},D(P,{cond:function(){return b().thumbnail}, then:function(d){return D(eC,{data:d,alt:"",className:"ytwPivotButtonViewModelHostImage"})}, else:function(){return D(P,{cond:function(){return b().icon}, then:function(d){return D(aC,{icon:function(){return d().iconType}, className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Th");var elc=new Qk("adAvatarViewModel");var flc=new Qk("adBadgeViewModel");var glc=O(function(a){var b=a.avatar;var c=a.headline;var d=a.badge;a=a.description;var e=eL(AT),f=eL(cVb),h=function(){return f()===1},m={}; return D("yt-ad-metadata-shape",{class:U("ytAdMetadataShapeHost",(m.ytAdMetadataShapeHostLarge=h,m))},D("div",{class:"ytAdMetadataShapeHostAvatarLockup"},D(P,{cond:b,then:function(p){return D(Ukc,{data:function(){return h()?Object.assign({},p(),{size:"AD_AVATAR_SIZE_M"}):p()}})}}),D("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},D(gC,{text:c, className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0,noEndpoints:x("web_enable_no_endpoints_on_ad_metadata")}),D(P,{cond:d,then:function(p){return D(ET,{data:function(){return e()===1?Object.assign({},p(),{style:"AD_BADGE_STYLE_STARK"}):p()}, adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),D("h2",{class:"ytAdMetadataShapeHostDescription"},D(gC,{text:a, linkInheritColor:!0,isHeadline:h,noEndpoints:x("web_enable_no_endpoints_on_ad_metadata")})))},"Uh");var Y4b=O(function(a){var b=a.data;return D("yt-dual-avatar-view-model",{class:U("ytDualAvatarViewModelHost",a.className),style:GC({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var c;return((c=b().badgeCutoutRadius)!=null?c:14)+"px"}})},D("div",{class:"ytDualAvatarViewModelAvatarsContainer"},D(OC,{data:function(){return b().startAvatar}},{avatarViewModel:zD}),D(OC,{data:function(){return b().endAvatar}},{avatarViewModel:zD})),D(OC,{data:function(){return b().badge}},{contentPreviewImageViewModel:function(c){return D("div", {class:"ytDualAvatarViewModelBadge"},D(WV,{data:c.data}))}}))},"Vh"); Y4b.idomCompat=!0;var hlc=O(function(a){var b=a.data;var c=a.active;var d=sw("transcript-segment-view-model");lw(function(){var e,f,h,m=((e=Fn().resolve(Cn(HB)))==null?0:e())?(f=b())==null?void 0:f.darkThemeColorPalette:(h=b())==null?void 0:h.lightThemeColorPalette;m&&(m.additiveBackground&&d.value.style.setProperty("--timestamp-active-background-color",Jy(m.additiveBackground)),m.textSecondary&&d.value.style.setProperty("--timestamp-active-color",Iy(m.textSecondary)))},"wLIisf"); a={};return D("transcript-segment-view-model",{class:U("ytwTranscriptSegmentViewModelHost",(a.ytwTranscriptSegmentViewModelHostActive=c,a)),el:d},D(P,{cond:function(){var e;return(e=b())==null?void 0:e.timestamp}, then:function(e){var f={};return D(mq,null,D("div",{class:U("ytwTranscriptSegmentViewModelTimestamp",(f.ytwTranscriptSegmentViewModelTimestampActive=c,f)),"aria-hidden":!0},e),D("div",{class:"ytwTranscriptSegmentViewModelTimestampA11yLabel"},function(){var h=e().split(":").map(Number);h=l(h.reverse());var m=h.next().value,p=h.next().value;h={hours:h.next().value,minutes:p,seconds:m};h=kwb(h);m=h.hours===void 0?0:h.hours;p=h.minutes===void 0?0:h.minutes;var q=h.seconds===void 0?0:h.seconds;h=[];if(m> 0){var t=nwb().format({hours:m});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(vK)||m>9999)t=t.replace(m.toString(),lwb(m)),vK==="km"&&(t=t.replace(".",","));h.push(t)}p>0&&h.push(nwb().format({minutes:p}));q>0&&h.push(nwb().format({seconds:q}));m="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");p=vK=="am"?"{0}\u1363 ":vK=="fa"?"{0}\u060C\u200F ":vK=="my"?"{0} - ":vK=="th"?"{0} ":vK=="ur"?"{0}\u060C ":vK=="ar"||vK=="ar-XB"?"{0} \u0648":vK=="ja"||vK=="zh-CN"||vK=="zh-HK"|| vK=="zh-TW"?"{0}\u3001":"{0}, ";q=vK=="am"?"\u1363 ":vK=="fa"?"\u060C\u200F ":vK=="my"?" - ":vK=="th"?" ":vK=="ur"?"\u060C ":vK=="ar"||vK=="ar-XB"?" \u0648":vK=="ja"||vK=="zh-CN"||vK=="zh-HK"||vK=="zh-TW"?"\u3001":", ";t=vK=="am"?" \u12A5\u1293 {0}":vK=="as"?" \u0986\u09F0\u09C1 {0}":vK=="az"?" v\u0259 {0}":vK=="bn"?" \u098F\u09AC\u0982 {0}":vK=="cs"?" a\xA0{0}":vK=="de"?" und {0}":vK=="el"?" \u03BA\u03B1\u03B9 {0}":vK=="eu"?" eta {0}":vK=="fa"?"\u060C \u0648 {0}":vK=="fil"?", at {0}":vK=="gu"? " \u0A85\u0AA8\u0AC7 {0}":vK=="hi"?", \u0914\u0930 {0}":vK=="hu"?" \xE9s {0}":vK=="hy"?" \u0587 {0}":vK=="id"?", dan {0}":vK=="iw"?" \u05D5-{0}":vK=="ja"?"\u3001{0}":vK=="ka"?" \u10D3\u10D0 {0}":vK=="km"?" \u1793\u17B7\u1784 {0}":vK=="kn"?", \u0CAE\u0CA4\u0CCD\u0CA4\u0CC1 {0}":vK=="ko"?" \uBC0F {0}":vK=="ky"?" \u0436\u0430\u043D\u0430 {0}":vK=="lt"?" ir {0}":vK=="lv"?" un {0}":vK=="mr"?" \u0906\u0923\u093F {0}":vK=="ms"?" dan {0}":vK=="my"?"\u1014\u103E\u1004\u1037\u103A {0}":vK=="ne"?" \u0930 {0}": vK=="or"?", \u0B13 {0}":vK=="pa"?" \u0A05\u0A24\u0A47 {0}":vK=="ro"?" \u0219i {0}":vK=="si"?", \u0DC3\u0DC4 {0}":vK=="sk"?" a {0}":vK=="sl"?" in {0}":vK=="sq"?" dhe {0}":vK=="sv"?" och {0}":vK=="sw"?" na {0}":vK=="ta"?" \u0BAE\u0BB1\u0BCD\u0BB1\u0BC1\u0BAE\u0BCD {0}":vK=="te"?" \u0C2E\u0C30\u0C3F\u0C2F\u0C41 {0}":vK=="th"?" \u0E41\u0E25\u0E30{0}":vK=="tr"?" ve {0}":vK=="ur"?"\u060C \u0627\u0648\u0631 {0}":vK=="uz"?" va {0}":vK=="vi"?" v\xE0 {0}":vK=="zh-HK"?"\u53CA{0}":vK=="zu"?", ne-{0}":vK=="af"|| vK=="nl"?" en {0}":vK=="ar"||vK=="ar-XB"?" \u0648{0}":vK=="be"||vK=="uk"?" \u0456 {0}":vK=="en-GB"||vK=="en-IN"?" and {0}":vK=="en"||vK=="en-XA"?", and {0}":vK=="et"||vK=="fi"?" ja {0}":vK=="fr"||vK=="fr-CA"?" et {0}":vK=="zh-CN"||vK=="zh-TW"?"\u548C{0}":vK=="da"||vK=="is"||vK=="no"?" og {0}":vK=="es"||vK=="es-419"||vK=="es-US"?" y {0}":vK=="bg"||vK=="mk"||vK=="ru"||vK=="sr"?" \u0438 {0}":vK=="gl"||vK=="it"||vK=="pt-BR"||vK=="pt-PT"?" e {0}":vK=="kk"||vK=="lo"||vK=="ml"||vK=="mn"?", {0}":" i {0}"; var u=vK=="am"?"{0} \u12A5\u1293 {1}":vK=="as"?"{0} \u0986\u09F0\u09C1 {1}":vK=="az"?"{0} v\u0259 {1}":vK=="bn"?"{0} \u098F\u09AC\u0982 {1}":vK=="de"?"{0} und {1}":vK=="el"?"{0} \u03BA\u03B1\u03B9 {1}":vK=="eu"?"{0} eta {1}":vK=="fa"?"{0} \u0648 {1}":vK=="fil"?"{0} at {1}":vK=="gu"?"{0} \u0A85\u0AA8\u0AC7 {1}":vK=="hi"?"{0} \u0914\u0930 {1}":vK=="hu"?"{0} \xE9s {1}":vK=="hy"?"{0} \u0587 {1}":vK=="iw"?"{0} \u05D5-{1}":vK=="ja"?"{0}\u3001{1}":vK=="ka"?"{0} \u10D3\u10D0 {1}":vK=="kk"?"{0} \u0436\u04D9\u043D\u0435 {1}": vK=="km"?"{0} \u1793\u17B7\u1784\u200B{1}":vK=="kn"?"{0} \u0CAE\u0CA4\u0CCD\u0CA4\u0CC1 {1}":vK=="ko"?"{0} \uBC0F {1}":vK=="ky"?"{0} \u0436\u0430\u043D\u0430 {1}":vK=="lo"?"{0} \u0EC1\u0EA5\u0EB0 {1}":vK=="lt"?"{0} ir {1}":vK=="lv"?"{0} un {1}":vK=="mr"?"{0} \u0906\u0923\u093F {1}":vK=="my"?"{0}\u1014\u103E\u1004\u1037\u103A {1}":vK=="ne"?"{0} \u0930 {1}":vK=="or"?"{0} \u0B13 {1}":vK=="pa"?"{0} \u0A05\u0A24\u0A47 {1}":vK=="ro"?"{0} \u0219i {1}":vK=="si"?"{0} \u0DC3\u0DC4 {1}":vK=="sl"?"{0} in {1}": vK=="sq"?"{0} dhe {1}":vK=="sv"?"{0} och {1}":vK=="sw"?"{0} na {1}":vK=="ta"?"{0} \u0BAE\u0BB1\u0BCD\u0BB1\u0BC1\u0BAE\u0BCD {1}":vK=="te"?"{0} \u0C2E\u0C30\u0C3F\u0C2F\u0C41 {1}":vK=="th"?"{0}\u0E41\u0E25\u0E30{1}":vK=="tr"?"{0} ve {1}":vK=="ur"?"{0} \u0627\u0648\u0631 {1}":vK=="uz"?"{0} va {1}":vK=="vi"?"{0} v\xE0 {1}":vK=="zh-HK"?"{0}\u53CA{1}":vK=="zu"?"{0} ne-{1}":vK=="af"||vK=="nl"?"{0} en {1}":vK=="ar"||vK=="ar-XB"?"{0} \u0648{1}":vK=="be"||vK=="uk"?"{0} \u0456 {1}":vK=="cs"||vK=="sk"?"{0} a\xA0{1}": vK=="et"||vK=="fi"?"{0} ja {1}":vK=="fr"||vK=="fr-CA"?"{0} et {1}":vK=="id"||vK=="ms"?"{0} dan {1}":vK=="ml"||vK=="mn"?"{0}, {1}":vK=="zh-CN"||vK=="zh-TW"?"{0}\u548C{1}":vK=="da"||vK=="is"||vK=="no"?"{0} og {1}":vK=="es"||vK=="es-419"||vK=="es-US"?"{0} y {1}":vK=="bg"||vK=="mk"||vK=="ru"||vK=="sr"?"{0} \u0438 {1}":vK=="en"||vK=="en-GB"||vK=="en-IN"||vK=="en-XA"?"{0} and {1}":vK=="gl"||vK=="it"||vK=="pt-BR"||vK=="pt-PT"?"{0} e {1}":"{0} i {1}";vK==="sq"?(t=t.replace("dhe","e"),u=u.replace("dhe","e")): vK==="th"?(q=q.replace("{0}"," {0}"),u=u.replace("{0}","{0} "),u=u.replace("{1}"," {1}")):vK==="ne"?q=",":vK==="zh-CN"?q="":m.includes(vK)&&(q=" ");return h.length<2?h.join(""):"am ar bg bs ca cs da es es-419 es-US eu fa fi fr-CA fr gl gu hi hr hu hy is it lt lv mk my no nl pl pt-BR pt-PT ro si sl sq sr-Latn sr sw th uk".split(" ").includes(vK)?h.length===2?u.replace("{0}",h[0]).replace("{1}",h[1]):p.replace("{0}",h[0])+h.slice(1,-1).join(q)+t.replace("{0}",h[h.length-1]):h.join(q)}))}}),D(gC,{text:function(){var e, f,h; return(h=(e=b())==null?void 0:e.attributedText)!=null?h:{content:(f=b())==null?void 0:f.simpleText}}, linkInheritColor:!0,noPreWrap:!0}))},"Xh");var b2b=O(function(a){var b=a.data;var c=a.active;var d={};return D("timeline-item-view-model",{class:U("ytwTimelineItemViewModelHost",(d.ytwTimelineItemViewModelHostChapterChild=a.chapterChild,d.ytwTimelineItemViewModelHostSmallerPadding=x("web_timeline_view_section_list_renderer"),d))},D("div",{class:"ytwTimelineItemViewModelContentItems"},D(OC,{data:function(){return b().contentItems}},{transcriptSegmentViewModel:function(e){return D(hlc,{data:e.data, active:c})}, videoAttributesSectionViewModel:i2b})))},"Yh");function ilc(a,b,c){var d=x("web_enable_chat_autoscroll_to_user_turn");if((c==="ai_search_loading_response_message_id"&&x("enable_ai_search_ui")||d)&&a&&b)return a-4+"px"} ;function jlc(a,b,c,d,e,f){var h;e={formId:a,orderedShelfIds:P0a((h=e==null?void 0:e.orderedShelfIds)!=null?h:[],"orderedShelfIds",a,SJ(function(m){return qD(a,m)},b,d==null?void 0:d.orderedShelfIds))}; oD(a,{form:e,formType:"ContentHubForm",dependentValidationMap:jrb({orderedShelfIds:d==null?void 0:d.orderedShelfIds}),formDelegate:c,nestedFormAccessor:void 0,submitConfig:f,toFormData:klc});return e} function klc(a){return{orderedShelfIds:a.orderedShelfIds.value}} ;function llc(a,b){if(a==null||!a.id)throw eD(a);var c=a.id,d=a.fieldSchemas,e=a.initialValues;a=a.submitConfig;var f=irb(b==null?void 0:b.customValidationRegistry);b=jlc(c,f,b,d,e,a);RJ(b).catch(function(h){throw dD(c,h)})} ;var nlc=O(function(a){rw(function(){(a.data().formFieldMetadata?3:0)!==3&&co(Error("Component only supports Forms API mode."))}); var b=b1a(function(){var p;return(p=a.data().formFieldMetadata)!=null?p:{}}),c=Vo(function(){if((a.data().formFieldMetadata?3:0)===3){var p,q,t=(q=(p=b())==null?void 0:p.value)!=null?q:[]; return mlc(t,a.data().items)}return(t=a.data().items)!=null?t:[]},void 0,"QpXr5e"),d=l(ip(null,void 0,"dGE4sd")),e=d.next().value,f=d.next().value; d=l(ip(null,void 0,"Fjamwe"));var h=d.next().value,m=d.next().value;return D("yt-reorderable-list-view-model",{class:"ytReorderableListViewModelHost",role:"list"},D(mw,{each:c,keyBy:"INDEX"},function(p,q){var t={};return D("div",{class:U("ytReorderableListViewModelItemContainer",(t.ytReorderableListViewModelItemDragging=function(){return e()===q},t.ytReorderableListViewModelItemDragOverTop=function(){var u=e(); return h()===q&&(u===null||u>q)},t.ytReorderableListViewModelItemDragOverBottom=function(){var u=e(); return h()===q&&(u===null||u0&&f(!0),e())){var S=qlc(a.data());if(S){var Y=S.minLength;S=S.maxLength;Y&&W.lengthS?m(!0):m(!1)}}},C=function(){var W=!(!v()||p()!=="PRIVATE"); u(W)},I=function(W){W!==void 0&&(q(W),C())},K=function(){if(t())return rlc(a.data())},N=function(){w(!v()); C()},L=function(){return{validate:function(W){if(e()){var S=qlc(a.data()); if(S){var Y=S.minLength;S=S.translations;if(Y&&W.length0}, then:function(){return D("div",{id:t,class:"ytmOptionItemRendererFeatureListData"},D(mw,{each:function(){return b().featureListData||[]}},function(w){var y,A=(y=w.icon)==null?void 0:y.iconType; a:switch(w.style){case"BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":y="ytmOptionItemRendererFeatureListIconGreen";break a;case"BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":y="ytmOptionItemRendererFeatureListIconSmall";break a;default:y="ytmOptionItemRendererFeatureListIconDefault";}return D("div",{class:"ytmOptionItemRendererFeatureList"},D(aC,{icon:A,className:y,active:function(){return w.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),D("div",{class:"ytmOptionItemRendererFeatureListText"}, D(gC,{text:w.text, className:function(){return w.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytmOptionItemRendererFeatureListSecondaryText":""}})))}))}}),D(P,{cond:function(){return b().description}, then:function(){return D("div",{id:q,class:"ytmOptionItemRendererOptionItemDescription"},D(gC,{text:function(){return b().description}}))}})))},"gi");var e7b=O(function(a){var b=a.data;var c=a.flowClassName;var d=a.flowStateEntityKey;var e=a.selectionStepStyle;return D("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"ytOptionSectionRendererHost"},D("div",{class:"ytOptionSectionRendererOptionSectionHeaderSection"},D("div",{class:"ytOptionSectionRendererOptionSectionHeader"},D(gC,{text:function(){return b().title}}),D(OC,{data:function(){return b().titleBadge}},{badgeViewModel:function(f){return D(ED,{data:f.data, class:"ytOptionSectionRendererOptionSectionTitleBadge"})}})),D(P,{cond:function(){return b().subtitle}, then:function(){return D("div",{class:"ytOptionSectionRendererOptionSectionSubtitle"},D(gC,{text:function(){return b().subtitle}}))}}),D(P,{cond:function(){return b().featureListData}, then:function(f){return D("div",{class:"ytOptionSectionRendererOptionSectionFeatureList"},D(mw,{each:f},function(h){var m;return D("div",{class:"ytOptionSectionRendererOptionSectionFeatureItem"},D(aC,{icon:(m=h.icon)==null?void 0:m.iconType,active:function(){return h.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}, className:function(){switch(h.style){case"BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconGreen";case"BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconSmall";default:return"ytOptionSectionRendererOptionSectionFeatureItemIconDefault";}}}),D("div",{class:"ytOptionSectionRendererOptionSectionFeatureItemText"},D(gC,{text:h.text, className:function(){return h.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOptionSectionRendererOptionSectionFeatureItemTextSecondary":""}})))}))}}),D(P,{cond:function(){return b().secondaryTitle}, then:function(){return D("div",{class:"ytOptionSectionRendererOptionSectionSecondaryTitle"},D(gC,{text:function(){return b().secondaryTitle}}))}}),D(mw,{each:function(){return b().sectionDisclaimers||[]}},function(f){return D("div",{class:"ytOptionSectionRendererOptionSectionDisclaimer"},D(gC,{text:f}))})),D(OC,{data:function(){return b().optionItems}},{optionItemRenderer:function(f){return D("div",{class:"ytOptionSectionRendererOptionItem"},D(d7b,{data:f.data, className:c,flowStateEntityKey:d,selectionStepStyle:e}))}}),D(P,{cond:function(){return b().offerText}, then:function(){return D("div",{class:"ytOptionSectionRendererOptionSectionOfferText"},D(gC,{text:function(){return b().offerText}}))}}))},"hi"); e7b.idomCompat=!0;var U6b=O(function(a){var b=a.data;var c=a.className;var d=fL(yL,function(){return b().flowStateEntityKey}); return D("ytm-premium-purchase-button-renderer",{class:U("ytPremiumPurchaseButtonRendererHost",c)},D(OC,{data:function(){var e;return(e=z(d(),xtb))==null?void 0:e.primaryButtonOverride}},{buttonRenderer:function(e){return D(pQb,{data:e.data, className:c})}, buttonViewModel:function(e){return D(AD,{data:e.data,className:c})}}))},"ii"); U6b.idomCompat=!0;var slc=O(function(a){var b=a.data;return D("upsell-offer-table-cell-content-view-model",null,D("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},D(pw,null,D(jw,{when:function(){var c;return(c=b().icon)==null?void 0:c.iconType}},function(){return D("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},D(aC,{icon:function(){var c; return(c=b().icon)==null?void 0:c.iconType.toString()}}))}),D(jw,{when:function(){return b().title}},function(){return D(gC,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle", text:function(){return b().title}})}),D(jw,{when:function(){return b().subtitle}},function(){return D(gC,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle", text:function(){return b().subtitle}})}),D(jw,{when:function(){return b().infoText}},function(){return D(gC,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText", text:function(){return b().infoText}})}),D(jw,{when:function(){return b().featureDescription}},function(){return D(gC,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription", text:function(){return b().featureDescription}})}),D(jw,{when:function(){return b().note}},function(){return D(gC,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote", text:function(){return b().note}})})),D(P,{cond:function(){var c; return(c=b().icon)==null?void 0:c.iconAccessibilityText}, then:function(){return D("span",{class:"ytUpsellOfferTableCellContentViewModelVisuallyHiddenAccessibility"},function(){var c;return(c=b().icon)==null?void 0:c.iconAccessibilityText})}})))},"ji"); slc.idomCompat=!0;var tlc=O(function(a){var b=a.data;var c=a.cellIndex;var d=a.rowIndex;return D("upsell-offer-table-cell-view-model",null,D("div",{class:U("ytUpsellOfferTableCellViewModelCellWrapper",function(){return b().isFirstRow?"ytUpsellOfferTableCellViewModelCellWrapperHeaderRowCell":b().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"}), id:function(){var e,f;return"cell-"+((e=d==null?void 0:d())!=null?e:0)+"-"+((f=c==null?void 0:c())!=null?f:0)}, role:function(){return b().isFirstRow?"columnHeader":b().isFirstColumn?"rowheader":"gridcell"}},D(OC,{data:function(){return b().contents}},{upsellOfferTableCellContentViewModel:slc})))},"ki"); tlc.idomCompat=!0;var ulc=O(function(a){var b=a.data;var c=a.upsellTableIsFirstRow;var d=a.rowIndex;var e=function(){return(c==null?0:c())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},f=function(){return(c==null?0:c())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"}; return D("ytm-upsell-offer-table-row-view-model",null,D("div",{class:function(){return(c==null?0:c())?"ytUpsellOfferTableRowViewModelHostFirstRow":"ytUpsellOfferTableRowViewModelHost"}, role:"row","aria-owns":function(){return"cell-"+(d==null?void 0:d())+"-1 cell-"+(d==null?void 0:d())+"-2"}},D(OC,{data:function(){return b().rowHeaderCell}},{upsellOfferTableCellViewModel:function(h){return D("div",{class:e},D(tlc,{data:h.data, cellIndex:0,rowIndex:d}))}}),D("div",{class:"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCells"},D(OC,{data:function(){return b().contentCells}},{upsellOfferTableCellViewModel:function(h,m){return D("div",{class:f},D(tlc,{data:h.data, cellIndex:function(){return m()+1}, rowIndex:d}))}}))))},"li"); ulc.idomCompat=!0;var vlc=O(function(a){var b=a.data;return D("ytm-upsell-offer-table-view-model",null,D("div",{class:"ytUpsellOfferTableViewModelHost",role:"grid"},D("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},D(OC,{data:function(){return b().rows}},{upsellOfferTableRowViewModel:function(c,d){return D(ulc,{data:c.data, upsellTableIsFirstRow:function(){return d()===0}, rowIndex:d})}}))))},"mi"); vlc.idomCompat=!0;var mJb=O(function(a){a=Hu(a,{noPadding:!1});var b=a.noPadding,c=a.data,d=function(){var e,f;return(f=(e=c().logo.accessibilityData)==null?void 0:e.label)!=null?f:""}; a={};return D("upsell-view-model",{class:U("ytUpsellViewModelHost",(a.ytUpsellViewModelHostNoPadding=function(){return b()},a.ytUpsellViewModelHostWide=function(){return c().offerTable!==void 0},a))},D("div",{class:"ytUpsellViewModelHostUpsellLogo"},D(P,{cond:function(){return wD(c().logo)}, then:function(e){return D(eC,{data:e,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:d})}})),D("div",{class:"ytUpsellViewModelHostUpsellTitle", role:"heading","aria-level":1,autofocus:!0,tabindex:-1},D(gC,{text:function(){return c().title}})),D("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},D(mw,{each:function(){var e; return(e=c().subtitles)!=null?e:[]}, keyBy:"INDEX"},function(e){var f={};return D("div",{class:U("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(f.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return c().offerTable!==void 0},f))},D(gC,{text:e}))})),D("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},D(mw,{each:function(){var e; return(e=c().benefitInfos)!=null?e:[]}, keyBy:"INDEX"},function(e){return D(P,{cond:function(){return e().info}, then:function(f){return D("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},D(aC,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),D(gC,{text:f}))}})})),D(P,{cond:function(){return c().offerTable!==void 0}, then:function(){return D("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},D(OC,{data:function(){return c().offerTable}},{upsellOfferTableViewModel:function(e){return D(vlc,{data:e.data})}}))}}),D("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},D(mw,{each:function(){var e; return(e=c().legalInfos)!=null?e:[]}, keyBy:"INDEX"},function(e){var f={};return D("div",{class:U("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(f.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return c().offerTable!==void 0},f))},D(gC,{text:e}))})))},"ni");var pJb=O(function(a){var b=a.data;a={};return D("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},D("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return b().title}),D("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return b().subtitle}),D("div",{class:U((a.ytMiniAppScoreChallengeViewModelScoreRadial=!0,a.ytMiniAppScoreChallengeViewModelDarkScoreRadial=wlc(),a))},D("div",{class:"ytMiniAppScoreChallengeViewModelScore"},function(){return b().score})), D("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return b().prompt}))},"oi"); function wlc(){var a,b;return(b=(a=Fn().resolve(Cn(HB)))==null?void 0:a())!=null?b:!1} ;var ylc=xlc;function xlc(){return Math.floor(Math.random()*4)+1} function zlc(a,b,c,d){a=l(Object.entries(a));for(var e=a.next(),f={};!e.done;f={message$jscomp$985:void 0},e=a.next()){var h=l(e.value);e=h.next().value;h=h.next().value;f.message$jscomp$985=h;b.push(setTimeout(function(m){return function(){d(!1);c(m.message$jscomp$985.text)}}(f),f.message$jscomp$985.delayMs)); Number(e)>0&&b.push(setTimeout(function(){d(!0)},f.message$jscomp$985.delayMs-400))}} var D4b=O(function(a){var b=a.data;var c=a.loadingProgress;var d=a.forPaused;a=l(ip("",void 0,"m0Rlx"));var e=a.next().value,f=a.next().value;a=l(ip(!1,void 0,"iejAfd"));var h=a.next().value,m=a.next().value,p=[],q=function(){return"transform: scaleX("+(Bp(c)||0)+")"},t=null,u=function(){return b()&&t!==null&&t!==void 0?t:t=b().showAnniversaryAnimation?6:ylc()}; lw(function(){var A;if(b().timeOutMessages&&((A=b().timeOutMessages)==null?0:A.length)){t=null;A=l(p);for(var C=A.next();!C.done;C=A.next())clearTimeout(C.value);p.length=0;zlc(b().timeOutMessages,p,f,m)}},"bFWUdc"); var v=function(){return!!b().persistentErrorMessageTitle},w=function(){return c!==void 0},y=function(){return b().title}; return D("yt-mini-splash-screen-view-model",{class:"miniAppSplashScreenViewModelHost"},D("div",{class:"miniAppSplashScreenViewModelLoadingScreen",role:"region",tabindex:0},D("div",{class:"miniAppSplashScreenViewModelBackgroundBase"}),D("div",{class:"miniAppSplashScreenViewModelBackgroundBlur",style:function(){var A,C=(A=b().backgroundImage)==null?void 0:A.sources,I;return(C==null?0:C.length)?"background-image: url("+((I=C[0])==null?void 0:I.url)+")":""}}),D("div",{class:"miniAppSplashScreenViewModelBackgroundScrim"}), D(P,{cond:function(){return!v()&&!(d==null?0:d())}, then:function(){var A={};return D("div",{class:"miniAppSplashScreenViewModelLoadingScreenContent"},D("div",{class:"miniAppSplashScreenViewModelLoadingIcon"},D(YA,{className:"miniAppSplashScreenViewModelLoadingIconAnimation",animationName:function(){return"loading_animation_"+u()}, data:function(){var C="loading_animation_"+u();return{animationConfig:{name:C,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+C+".json",loop:!0,autoplay:!0}}}})),D("div",{class:"miniAppSplashScreenViewModelTimeoutMessageContainer"},D(P,{cond:y, then:function(){return D("h3",{class:"miniAppSplashScreenViewModelTimeoutHeading"},y)}}),D("p",{class:U("miniAppSplashScreenViewModelTimeoutMessage",(A.miniAppSplashScreenViewModelTimeoutMessageFadeOut=function(){return h()},A)), "aria-live":"polite"},e),D(P,{cond:w,then:function(){return D("div",{class:"miniAppSplashScreenViewModelLoadingBarTrack"},D("div",{class:"miniAppSplashScreenViewModelLoadingBarSegment miniAppSplashScreenViewModelLoadingBarSegmentResourceAnimation",style:q}))}})))}}),D(P,{cond:v, then:function(){return D("div",{class:"miniAppSplashScreenViewModelPersistentErrorContent"},D("h3",{class:"miniAppSplashScreenViewModelPersistentErrorMessageTitle"},function(){return b().persistentErrorMessageTitle}),D(P,{cond:function(){return!!b().persistentErrorMessageDescription}, then:function(){return D("p",{class:"miniAppSplashScreenViewModelPersistentErrorMessageDescription"},function(){return b().persistentErrorMessageDescription})}}))}}),D(P,{cond:d, then:function(){return D("div",{class:"miniAppSplashScreenViewModelPauseContent"},D("img",{class:"miniAppSplashScreenViewModelPauseIcon",src:"https://fonts.gstatic.com/s/i/short-term/release/youtube_fill/svg/tic_tac_toe_cairo_24px.svg"}),D("h3",{class:"miniAppSplashScreenViewModelPauseMessage"},y))}})))},"qi");var Alc=new Qk("miniAppScoreChallengeViewModel");function Blc(a,b){var c=c===void 0?l1b:c;a&&uYa(function(){var d=c;d=d===void 0?l1b:d;if(a){var e=Fn().resolve(uw);e?Sz(a,{data:b,observer:e,visibilityCallback:d,hideOption:YB,showOption:XB,layer:a.layer}):fo(new Dl("Warning: monitorVisibility called with null observer",a.tagName,b==null?void 0:b.loggingDirectives,b==null?void 0:b.trackingParams))}else fo(new Dl("Warning: monitorVisibility called with null element",b==null?void 0:b.loggingDirectives,b==null?void 0:b.trackingParams,b==null?void 0: b.rendererContext))})} ;var Clc=O(function(a){var b=a.data;var c=a.score;var d=a.formattedScore;var e=a.onScoreChanged;var f=a.isEmbeddedInWebview;var h=tw("yt-mini-app-score-button-view-model"),m=function(){var C;return z(b==null?void 0:(C=b())==null?void 0:C.buttonViewModel,ZJ)},p=function(){var C; return(c==null?void 0:c())||Number(b==null?void 0:(C=b())==null?void 0:C.lastScore)||0},q=function(){var C; return(d==null?void 0:d())||((C=m())==null?void 0:C.title)||""},t={ytSysMeasurementReference:"YT_SYS_MEASUREMENT_REFERENCE_ACTION_HEIGHT_STANDARD"},u=OD(function(){return t}),v,w=1; if(a=new URLSearchParams(window.location.search).get("deviceTextZoomSetting"))a=Number(a),w=isNaN(a)?1:a/100;lw(function(){e==null||e(p());var C;var I=LB((C=m())==null?void 0:C.onTap);if(I){C=z(I,XJ);var K,N,L;C=z(C==null?void 0:(K=C.panelLoadingStrategy)==null?void 0:(N=K.inlineContent)==null?void 0:(L=N.dialogViewModel)==null?void 0:L.customContent,Alc)}else C=void 0;if(K=C)K.score=q()},"PzybBb"); a=FC(function(){var C,I,K=b==null?void 0:(C=b())==null?void 0:(I=C.loggingDirectives)==null?void 0:I.trackingParams;K&&Oz(Fn().resolve(tL),K);return!1}); rw(function(){if(h.value){var C=h.value.querySelector("button"),I=m();C&&I&&Blc(C,I);DH("yt-share-playable-with-high-score",function(){var K=p().toString(),N=b==null?void 0:b().onShareHighScoreCommand,L=b==null?void 0:b().highScoreShareClientParamIdentifier,R=f==null?void 0:f();N&&(R?(L=new esb,K=fg(L,2,K),UW(N,K.JSC$10817_serializeBinary())):L&&(Fn().resolve(J4b).addClientParams(L,{miniAppClientParams:{highScore:K}}),D3b(N,!1)))})}}); var y=function(){var C=m();C&&(c==null?0:c())&&C.accessibilityText&&(C.accessibilityText=C.accessibilityText.replace(v,q()));v=q();C=p();var I=q();if(x("enable_button_height_token_killswitch"))var K=36;else{var N;K=(N=WK(u()))!=null?N:36}return{numberValue:C,numberText:I,heightPx:K,fontSizeMultiplier:w,shouldAnimate:!(c==null||!c())&&!0}},A={}; return D("yt-mini-app-score-button-view-model",{class:U("miniAppScoreButtonViewModelHost",(A.miniAppScoreButtonViewModelIsVisible=function(){return p()!==0},A)), el:h,"on:click":a},void 0,D(OC,{data:function(){var C;return b==null?void 0:(C=b())==null?void 0:C.buttonViewModel}},{buttonViewModel:function(C){return D(AD,{data:C.data, animatedTextProps:y})}}))},"si");var G4b=O(function(a){var b,c=(b=SK("yt-mini-app-is-theater-mode-enabled"))!=null?b:!1,d=x("enable_playable_container_save_button"),e=x("enable_play_next_destination_page_in_toolbar");b={};return D("ytm-mini-app-top-bar-view-model",null,D("div",{class:U("ytMiniAppTopBarViewModelHost",(b.ytMiniAppTopBarViewModelMobile=!1,b.ytMiniAppTopBarViewModelDesktop=!0,b))},D("div",{class:"ytMiniAppTopBarViewModelStartButtons"},D(P,{cond:function(){var f;return!!a.data().backButtonEdu&&!((f=a.isExitMiniAppSeen)== null?0:f.call(a))}, then:function(){return D(OC,{data:function(){return a.data().backButtonEdu}},{buttonViewModel:AD})}, else:function(){return D(OC,{data:function(){return a.data().backButton}},{buttonViewModel:AD})}}),D(P,{cond:function(){return a.data().viewAllButton&&!0}, then:function(){return D(OC,{data:function(){return a.data().viewAllButton}},{buttonViewModel:AD})}}),D(P,{cond:function(){return a.data().title&&!0}, then:function(){return D("div",{class:"ytMiniAppTopBarViewModelTitle"},function(){return a.data().title})}})),D("div",{class:"ytMiniAppTopBarViewModelCenterButtons"},D(P,{cond:function(){var f; return(f=a.isDesktopPlayPage)==null?void 0:f.call(a)}, then:function(){return D(mq,null,D(Dlc,{highScoreButton:function(){return a.data().highScoreButton}, score:a.score,formattedScore:a.formattedScore,onScoreChanged:a.onScoreChanged,isEmbeddedInWebview:a.isEmbeddedInWebview}),D(Elc,{enableSaveButton:function(){return Bp(d)}, saveButton:function(){return a.data().saveButton}, isSaved:a.isSaved,onSaveToggled:function(){return a.onSaveToggled}}),D(Flc,{menuButton:function(){return a.data().menuButton}}))}, else:function(){return D(P,{cond:function(){return!1}, then:function(){return D(OC,{data:function(){return a.data().playPageButton}},{buttonViewModel:function(f){return D(AD,{data:f.data, className:"ytMiniAppTopBarViewModelPlayPageButtonViewModel"})}})}, else:function(){return D(Dlc,{highScoreButton:function(){return a.data().highScoreButton}, score:a.score,formattedScore:a.formattedScore,onScoreChanged:a.onScoreChanged,isEmbeddedInWebview:a.isEmbeddedInWebview})}})}})),D("div",{class:"ytMiniAppTopBarViewModelEndButtons"},D(OC,{data:function(){return a.data().muteButton}},{toggleButtonViewModel:function(f){var h=f.data; return D(CD,{data:function(){var m,p;return Object.assign({},h(),{isToggled:(p=(m=a.isAudioEnabled)==null?void 0:m.call(a))!=null?p:!0})}, onToggle:a.onAudioToggled,useOutlinedIcon:!0})}}),D(OC,{data:function(){return a.data().theatreModeButton}},{toggleButtonViewModel:function(f){var h=f.data; return D("div",{class:"ytMiniAppTopBarViewModelTheatreModeButton"},D(CD,{data:function(){return Object.assign({},h(),{isToggled:c})}, useOutlinedIcon:!0}))}}),D(Glc,{fullscreenButton:function(){return a.data().fullscreenButton}}),D(P,{cond:function(){return Bp(e)&&a.data().viewAllButton&&!1}, then:function(){return D(OC,{data:function(){return a.data().viewAllButton}},{buttonViewModel:AD})}}),D(P,{cond:function(){var f; return!((f=a.isDesktopPlayPage)==null?0:f.call(a))}, then:function(){return D(mq,null,D(Elc,{enableSaveButton:function(){return Bp(d)}, saveButton:function(){return a.data().saveButton}, isSaved:a.isSaved,onSaveToggled:function(){return a.onSaveToggled}}),D(Flc,{menuButton:function(){return a.data().menuButton}}))}}))))},"ti"); G4b.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var Flc=O(function(a){return D(OC,{data:a.menuButton},{buttonViewModel:AD})},"ui"),Elc=O(function(a){var b=a.enableSaveButton; var c=a.saveButton;var d=a.isSaved;var e=a.onSaveToggled;return D(P,{cond:function(){return b()&&!(c==null||!c())}, then:function(){return D(OC,{data:function(){var f=z(c==null?void 0:c(),aK),h;return{toggleButtonViewModel:Object.assign({},f,{isToggled:(h=d==null?void 0:d())!=null?h:!(f==null||!f.isToggled)})}}},{toggleButtonViewModel:function(f){return D(CD,{data:f.data, onToggle:e})}})}})},"vi"),Dlc=O(function(a){var b=a.highScoreButton; var c=a.score;var d=a.formattedScore;var e=a.onScoreChanged;var f=a.isEmbeddedInWebview;return D(OC,{data:b},{miniAppScoreButtonViewModel:function(h){return D(Clc,{data:h.data,score:c,formattedScore:d,onScoreChanged:e,isEmbeddedInWebview:f})}})},"wi"),Glc=O(function(a){a=a.fullscreenButton; return navigator.userAgent.includes("CriOS")?D(mq,null):D(OC,{data:a},{buttonViewModel:AD})},"xi");var Hlc;function Ilc(a){return a.scrollHeight-a.offsetHeight>1} function Jlc(a,b){var c;return UB(a,((c=a.content)==null?void 0:c.length)||0,!b)} function Klc(a,b,c,d,e,f){if(!b||Bd){var h;return UB(a,((h=a.content)==null?void 0:h.length)||0,!0)}b=d.value;if(!c.value||!b||!a.content)return a;c=0;d=a.content.length;h=0;Hlc||(Hlc=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var m=Hlc;for(e=e*f*m;c<=d;)f=Math.floor(c+(d-c)/2),m=UB(a,f)||a,b.firstChild&&(b.firstChild.textContent=m.content),b.scrollHeight>e?d=f-1:(h=f,c=f+1);return UB(a,h)} function Llc(a,b){var c,d;return(((c=a.content)==null?void 0:c.length)||0)>(((d=b.content)==null?void 0:d.length)||0)} function Mlc(a,b,c,d,e,f){var h=sw("truncated-text-content"),m=sw("truncated-text-content"),p=sw("button"),q=sw("button"),t=sw("button"),u=Fn().resolve(WB),v=l(Gu(function(){return Jlc(a(),e())})),w=v.next().value,y=v.next().value; v=l(Gu(function(){return Llc(a(),w())})); var A=v.next().value,C=v.next().value,I=null;lw(function(){function K(){if(h.value&&p.value&&t.value){var R=f()?a():Klc(a(),e(),h,m,b(),c());y(R);requestAnimationFrame(function(){if(h.value&&p.value&&t.value){var W=Ilc(h.value)||Llc(a(),R);C(W);if(!d()){var S=Ilc(h.value),Y=c(),da=h.value,Aa=p.value,Sa=t.value,Ua=u==="rtl";if(da&&Aa){var qb=Aa.offsetLeft;Ua&&(qb=da.offsetWidth-Aa.offsetWidth-Aa.offsetLeft);if(W){W=Aa.offsetWidth;Aa=da.offsetWidth;var ab=S?Aa-W-70:qb-70;Y="linear-gradient(\n to top, transparent 0%,\n transparent "+ Y+"rem,\n #000 "+Y+"rem,\n #000 100%), linear-gradient(\n to "+((Ua?"left":"right")+",\n #000 0px,\n #000 "+ab+"px,\n transparent "+(S?Aa-W:ab+70)+"px)");da.style.setProperty("-webkit-mask-image",Y);da.style.setProperty("mask-image",Y)}else da.style.setProperty("-webkit-mask-image",""),da.style.setProperty("mask-image","");S?Ua?(Sa.style.setProperty("left","0"),Sa.style.setProperty("right","unset")):(Sa.style.setProperty("left",""),Sa.style.setProperty("right","0")): Ua?(Sa.style.setProperty("left","unset"),Sa.style.setProperty("right",qb+"px")):(Sa.style.setProperty("left",qb+"px"),Sa.style.setProperty("right","unset"))}}}})}} var N,L;(N=I)==null||(L=N.stop)==null||L.call(N);N=new Fw(K,17);K();I=N},"sM6LEd"); rw(function(){y(Jlc(a(),e()));C(Llc(a(),w()));var K=function(){Hlc=void 0;var L,R;(L=I)==null||(R=L.fire)==null||R.call(L)}; if(window.ResizeObserver){var N=new ResizeObserver(K);N.observe(h.value);zp(function(){var L,R;(L=I)==null||(R=L.stop)==null||R.call(L);N.disconnect()})}else window.addEventListener("resize",K),zp(function(){var L,R; (L=I)==null||(R=L.stop)==null||R.call(L);window.removeEventListener("resize",K)})}); return{isTruncated:A,displayText:w,contentRef:h,hiddenRef:m,placeholderTruncationTextRef:p,hiddenTruncationTextRef:q,truncationTextRef:t}} var sRb=O(function(a){var b=Hu(a,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),c=b.text,d=b.alwaysShowTruncationText;a=b.truncationText;var e=b.onTextClick,f=b.maxLines,h=b.disableTextMask,m=b.textStyle,p=b.accessibilityLabel,q=b.textSize,t=b.alwaysTruncateAtMaxLines,u=b.expandOnClick;b=l(ip(!1,void 0,"rQ38E"));var v=b.next().value,w=b.next().value;b=FC(function(){u()&&w(!v());e==null||e()}); var y=function(){a:switch(q()){case"medium":var S=2;break a;case"large":S=2.2;break a;default:S=1.8;}return S},A=Mlc(c,function(){return v()?Infinity:f()},y,h,t,v),C=A.isTruncated; c=A.displayText;t=A.contentRef;var I=A.hiddenRef,K=A.placeholderTruncationTextRef,N=A.hiddenTruncationTextRef;A=A.truncationTextRef;var L={},R={},W={};return D("truncated-text",{class:U((L.ytTruncatedTextHost=!0,L.ytTruncatedTextOverlay=function(){return m()==="overlay"},L.ytTruncatedTextMediumText=function(){return q()==="medium"},L.ytTruncatedTextLargeText=function(){return q()==="large"},L.ytTruncatedTextPrimaryText=function(){return m()==="primary-text"},L)), "on:click":b,style:GC({"line-height":function(){return y()+"rem"}, overflow:function(){return v()?null:"hidden"}})},D("truncated-text-content",{class:"ytTruncatedTextTruncatedTextContent", el:t,style:function(){return v()?"":"max-height: "+f()*y()+"rem;"}},D(gC,{text:c}),D("button",{"aria-disabled":!0, disabled:!0,class:U((R.ytTruncatedTextInlineButton=!0,R.ytTruncatedTextHidden=function(){return!(!v()&&(d!=null&&d()||C()))},R)), el:K,style:function(){return"line-height: "+y()+"rem;"}},D(gC,{text:a}))),D("truncated-text-content",{class:U("ytTruncatedTextTruncatedTextContent","ytTruncatedTextHiddenTextContent"), el:I,style:function(){return v()?"":"max-height: "+f()*y()+"rem;"}, "aria-hidden":"true"},D(gC,{text:c}),D("button",{"aria-disabled":!0,disabled:!0,class:"ytTruncatedTextInlineButton",el:N,style:function(){return"line-height: "+y()+"rem;"}},D(gC,{text:a}))),D("button",{"aria-label":p, class:U((W.ytTruncatedTextAbsoluteButton=function(){return!h()},W.ytTruncatedTextBottomButton=function(){return h()},W.ytTruncatedTextHidden=function(){return!(!v()&&(d!=null&&d()||C()))},W)), el:A,style:function(){return"line-height: "+y()+"rem;"}},D(gC,{text:a})))},"zi"); sRb.idomCompat={callbacks:{onTextClick:!0}};function Nlc(a){return a==null?void 0:a.stringValue} var T7b=O(function(a){var b=l(Gu(function(){var f;if((f=a.controlled)==null?0:f.call(a))return[];var h;return(((h=a.data())==null?void 0:h.chips)||[]).map(function(m){m=z(m,$J);if(m==null?0:m.selected)return Nlc(m.chipValue)}).filter(function(m){return m!==void 0})})),c=b.next().value,d=b.next().value,e=function(f){var h=Nlc(f.chipValue); if(h!==void 0){var m;if((m=a.controlled)==null?0:m.call(a))return void a.controlled().onTap(h);f=c().includes(h)?[].concat(ia(c().filter(function(q){return q!==h}))):[].concat(ia(c()),[h]); d(f);var p;if((p=a.uncontrolled)==null?0:p.call(a))a.uncontrolled().onUpdate(f)}}; return D("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost",role:"tablist"},D(mw,{each:function(){return a.data().chips||[]}},function(f){return D("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},D(Bzb,{data:function(){return z(f,$J)}, selected:function(){var h;if(h=z(f,$J)){var m=Nlc(h.chipValue);if(m!==void 0){var p;h=((p=a.controlled)==null?0:p.call(a))?a.controlled().selectedValues.includes(m):c().includes(m)}else h=void 0}else h=!1;return h}, callback:e}))}))},"Ai");var gZb=O(function(a){var b=a.data;var c=a.topbarOffset;var d,e=((d=Fn().resolve(Cn(HB)))==null?void 0:d())||!1,f=function(){return!!b().fadeToThemeConfig},h=function(){return"background: "+Olc(e,b().gradientColorConfig)+";"}; return D("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var m=b();var p,q,t=e?(p=m.config)==null?void 0:p.darkThemeBackgroundColor:(q=m.config)==null?void 0:q.lightThemeBackgroundColor;m=t?""+Iy(t):void 0;m="background-color: "+m+";";c!==void 0&&(m+="top: -"+c()+"px;");return m}, "aria-hidden":!0},D(P,{cond:function(){var m,p,q;return!!((m=b().backgroundImageConfig)==null?0:(p=m.image)==null?0:(q=p.sources)==null?0:q.length)}, then:function(){return D(P,{cond:f,then:function(){return D(Plc,{backgroundImageConfig:function(){return b().backgroundImageConfig}, fadeToThemeConfig:function(){return b().fadeToThemeConfig}, gradualBlurConfig:function(){return b().gradualBlurConfig}})}, else:function(){return D(eC,{data:function(){var m;return(m=b().backgroundImageConfig)==null?void 0:m.image}, className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}})}}),D(P,{cond:function(){return!f()}, then:function(){return D("div",{class:"ytCinematicContainerViewModelBackgroundGradient",style:h})}}))},"Bi"); gZb.idomCompat=!0;var Plc=O(function(a){var b=a.backgroundImageConfig;var c=a.fadeToThemeConfig;var d=a.gradualBlurConfig;var e=Fn().resolve(WB);return D("div",{class:"ytCinematicContainerViewModelFadeToThemeContainer"},D("div",{class:"ytCinematicContainerViewModelFadeToThemeImageContainer"},D(eC,{data:function(){return b().image}, className:"ytCinematicContainerViewModelFadeToThemeImage",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),D(P,{cond:function(){return d==null?void 0:d()}, then:function(f){return D("div",{class:"ytCinematicContainerViewModelFadeToThemeImageGradualBlur","aria-hidden":"true",style:function(){var h=f(),m="linear-gradient(to bottom, transparent 0%, transparent "+((h.startPercentage||0)*100+"%, black ")+((h.stopPercentage||0)*100+"%)");h="blur("+(h.blurRadius||0)+"px)";return GC({"backdrop-filter":h,"-webkit-backdrop-filter":h,"mask-image":m,"-webkit-mask-image":m})()}})}}),D("div",{class:"ytCinematicContainerViewModelFadeToThemeGradient", "aria-hidden":"true",style:function(){var f=c();var h=f.darkThemeStartColor;f=f.darkThemeEndColor;h!==void 0&&f!==void 0?(h=Jy(h)+" 0%",f=Jy(f)+" 100%",h="background: linear-gradient("+((e==="rtl"?"to right":"to left")+", "+h+", "+f+"), linear-gradient(to bottom, ")+(h+", "+f+");")):h="";return h}})))},"Ci"); Plc.idomCompat=!0;function Olc(a,b){var c;return"linear-gradient(to bottom, "+((c=b==null?void 0:b.map(function(d){var e=a?d.darkThemeColor:d.lightThemeColor;return e?Jy(e)+" "+((d==null?void 0:d.startLocation)||0)*100+"%":"transparent"}))==null?void 0:c.join(", "))+")"} ;var Qlc=function(a){this.setActiveSlideIndex=a;this.jobIds=[];this.isSlideshowPlaying=!1},Tlc=function(a,b){a.isSlideshowPlaying||(a.isSlideshowPlaying=!0,Rlc(a),Slc(a,b,0))},Rlc=function(a){Ml(function(){a.setActiveSlideIndex(0)},1)},Slc=function(a,b,c){a.jobIds.push(Ml(function(){var d=c=0&&b<=.1?e="OFFLINE_DOWNLOADING_ZERO":b>.1&&b<=.3?e="OFFLINE_DOWNLOADING_TWENTY":b>.3&&b<=.5?e="OFFLINE_DOWNLOADING_FORTY":b>.5&&b<=.7?e="OFFLINE_DOWNLOADING_SIXTY":b>.7&&b<1?e="OFFLINE_DOWNLOADING_EIGHTY":b===1&&(e="OFFLINE_PIN");return{text:Ylc,iconType:e,onTap:fmc(c,d.ACTION_REMOVE_WITH_PROMPT),disabled:a}} function emc(a){var b=a.data;var c=a.actionType;a=a.disabled;return{text:Zlc,iconType:"OFFLINE_PIN",onTap:fmc(b,c.ACTION_REMOVE_WITH_PROMPT),disabled:a}} function dmc(a){var b=a.data;var c=a.actionType;a=a.disabled;return{text:$lc,iconType:"OFFLINE_DOWNLOAD",onTap:fmc(b,c.ACTION_RETRY),disabled:a}} ;function gmc(a){var b=fL(wC,function(){return a().videoId}),c=fL(xC,function(){return a().playlistId}); return function(){return a().videoId?b:a().playlistId?c:l(ip("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}} function hmc(a){var b=fL(yC,function(){return a().videoId}),c=fL(c_a,function(){return a().playlistId}); return function(){return a().videoId?b:a().playlistId?c:l(ip(0,void 0,"K4tgOc")).next().value}} function imc(a){var b=fL(zC,function(){return a().videoId}); return function(){return a().videoId?b:l(ip(!1,void 0,"Oaxwcf")).next().value}} function jmc(a){var b=fL(e_a,function(){return a().videoId}); return function(){return a().videoId?b:l(ip("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}} ;function kmc(){return{}} ;var sNb=O(function(a){var b=kmc,c=function(){return""},d=gmc(a.data),e=hmc(a.data),f=imc(a.data),h=jmc(a.data); b=function(){var m=a.data(),p=amc(m,d(),e(),f(),h()),q=!!m.videoId,t=p.text;return{title:q?t:void 0,tooltip:q?void 0:t,accessibilityText:t,onTap:p.onTap,iconName:p.iconType,style:m.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:p.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:m.buttonSize}}; c={};c=U("ytDownloadButtonViewModelHost",(c.ytDownloadButtonViewModelIsHidden=function(){var m=a.data(),p=h();return m.playlistId||p()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||p()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},c)); return D("download-button-view-model",{class:c},D(AD,{data:b}))},"Hi"); sNb.idomCompat=!0;var ric=O(function(a){var b=a.data;var c=a.selectedKey;var d=a.onSelected;var e=a.groupName;var f=Fn().resolve(Cn(JB));a=OD(function(){return b().horizontalPaddingToken}); var h=OD(function(){return b().verticalPaddingToken}),m=function(){return b().text},p=function(){return b().attributedText},q=function(){return b().subtext},t=function(){return b().attributedSubtext},u=function(){return b().superlabel},v=function(){return b().selectionText},w=function(){return b().trailingIconName},y=D("div",{class:"ytRadioButtonItemViewModelLabel"},D("div",null,D(P,{cond:u, then:function(){return D(gC,{text:u,className:"ytRadioButtonItemViewModelSuperlabel"})}}),D(P,{cond:m, then:function(){return D("div",null,m)}}),D(P,{cond:p, then:function(){return D(gC,{text:p})}}),D(P,{cond:q, then:function(){return D("div",{class:"ytRadioButtonItemViewModelSubText"},q)}}),D(P,{cond:t, then:function(){return D(gC,{text:t,className:"ytRadioButtonItemViewModelSubText"})}})),D(P,{cond:function(){return v()||w()}, then:function(){return D("div",{class:"ytRadioButtonItemViewModelTrailingContainer"},D(P,{cond:v,then:function(){return D(gC,{text:v,className:"ytRadioButtonItemViewModelTrailingAccessory"})}}),D(P,{cond:w, then:function(){return D(aC,{icon:w,className:"ytRadioButtonItemViewModelTrailingAccessory"})}}))}})),A={},C={}; return D("yt-radio-button-item-view-model",{class:U("ytRadioButtonItemViewModelHost",(A.ytRadioButtonItemViewModelDisabled=function(){return!!b().isDisabled},A))},D(I6b,{name:e, checked:function(){return!(c==null||!c()||b().key!==(c==null?void 0:c()))}, onChange:function(I){b().confirmSelectionCommand||d==null||d(I.target,b(),e==null?void 0:e())}, onClick:function(I){if(b().confirmSelectionCommand){var K=LB(b().confirmSelectionCommand);K&&f&&f.resolveCommand(K);I.preventDefault()}}, labelRenderable:function(){return y}, ariaLabel:function(){var I,K=(I=u())==null?void 0:I.content,N,L;I=(L=(N=t())==null?void 0:N.content)!=null?L:q();var R,W;N=(W=(R=p())==null?void 0:R.content)!=null?W:m();return[K,N,I].filter(Boolean).join(", ")}, className:U((C.ytRadioButtonItemViewModelSubTitle=function(){return!!q()},C)), disabled:function(){return!!b().isDisabled}, horizontalPadding:a,verticalPadding:h}))},"Ii");var AJb=O(function(a){function b(m){if(m&&(m=z(m,cK)))return Object.assign({},m,{isSelected:f()})} var c=l(Gu(function(){var m,p;return(p=(m=z(a.data().option,cK))==null?void 0:m.isSelected)!=null?p:!1})),d=c.next().value,e=c.next().value,f=d; rw(function(){var m;k7b((m=a.data().formSchema)==null?void 0:m.id,{onSubmit:function(){var p=Fn().resolve(JB),q=!!a.data().selectedCommand,t=!!a.data().unselectedCommand;if(f()){if(q)var u=a.data().selectedCommand}else t&&(u=a.data().unselectedCommand);u=LB(u);b(a.data().option)&&!u?(p="",!q&&t?p="selected ":q&&!t&&(p="unselected "),q=new Dl("No "+p+"command found for SelectionListItemFormViewModel"),co(q)):u&&p.resolveCommand(u)}, isValid:function(){return!0}})}); var h=function(){e(!f())}; zp(function(){var m,p,q=(m=a.data())==null?void 0:(p=m.formSchema)==null?void 0:p.id;q&&QX()().delete(q)}); return D("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},D("div",{class:"ytSelectionListItemFormViewModelParagraph"},D(gC,{text:function(){return a.data().paragraph}})),D(P,{cond:function(){return b(a.data().option)}, then:function(m){return D(RD,{data:m,isCompact:!0,hideSelectionTextChevron:!0,onTap:h,disableHorizontalPadding:!0})}}))},"Ji");var vNb=O(function(a){var b=a.data;a=a.className;qw(function(){b().formId||co(Error("YtSubmitButtonViewModel formId is required."))}); var c=n7b(function(){return b().formId},function(){return b().beforeSubmitCommand},function(){return b().afterSubmitCommand}),d=c.submitForm,e=c.isValid,f=c.isSubmitting,h=function(){return{state:b().isDisabled||!e()||f()?"disabled":"active"}}; return D("yt-submit-button-view-model",{class:U("ytSubmitButtonViewModelHost",a)},D(OC,{data:function(){return b().button}},{buttonViewModel:function(m){return D(AD,{data:m.data, buttonOverrides:h,onClick:d})}}))},"Li");var lmc=new Bn("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var mmc=O(function(a){var b=a.data;a=function(){return b().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"}; var c=vw({visibilityCallback:function(f){var h,m=(h=b().interaction)==null?void 0:h.onFirstVisible;f&&m&&QB(m)}, showOption:tT}),d={},e={};return D("ad-button-group-view-model",{class:U("ytwAdButtonGroupViewModelHost",(d.ytwAdButtonGroupViewModelHostCompactWidth=a,d)),el:dB(c)},D("div",{class:U("ytwAdButtonGroupViewModelHostSecondaryButton",(e.ytwAdButtonGroupViewModelHostCompactWidthSecondaryButton=a,e))},D(OC,{data:function(){return b().secondaryAdButton}},{adButtonViewModel:function(f){return D(xT,{data:f.data})}})),D("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},D(OC,{data:function(){return b().primaryAdButton}}, {adButtonViewModel:function(f){return D(xT,{data:f.data})}})))},"Mi");var HQb=O(function(a){return D("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},D(OC,{data:function(){var b;return(b=a.data())==null?void 0:b.attachments}},{flexibleActionsViewModel:function(b){return D("div",{class:"ytLockupAttachmentsViewModelAttachment"},D(AQ,{data:b.data, layout:function(){var c;return((c=a.lockupStyle())==null?void 0:c.arrangement)===1?0:1}, justifyContentOverride:function(){var c;return((c=a.lockupStyle())==null?void 0:c.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))}, slimlineSurveyViewModel:function(b){return D("div",{class:"ytLockupAttachmentsViewModelAttachment"},D(pYb,{data:b.data}))}, expandableMetadataViewModel:function(b){b=b.data;var c;return D("div",{class:U("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(c=Fn().resolve(Cn(lmc)))==null?void 0:c({data:b}))}, adButtonGroupViewModel:function(b){return D("div",{class:"ytLockupAttachmentsViewModelAttachment"},D(mmc,{data:b.data}))}, adButtonViewModel:function(b){return D("div",{class:"ytLockupAttachmentsViewModelAttachment"},D(xT,{data:b.data,isCompactWidth:!0}))}, tableViewModel:function(b){return D("div",{class:"ytLockupAttachmentsViewModelAttachment"},D(Fkc,{data:b.data}))}, aiCompanionAttachmentViewModel:function(b){b=b.data;var c;return D("div",{class:"ytLockupAttachmentsViewModelAttachment"},(c=Fn().resolve(Cn(u0b)))==null?void 0:c({data:b}))}, carouselAdCardCollectionViewModel:function(b){return D("div",{class:"ytLockupAttachmentsViewModelAttachment"},D(Ekc,{data:b.data,isLockupAttachment:!0}))}, engagementBarViewModel:function(b){return D("div",{class:"ytLockupAttachmentsViewModelAttachment"},D(LYb,{data:b.data}))}}))},"Ni");var omc=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("wcpITe"),2);a=nmc;return b.return(a)})},pmc=yD(function(){return omc()},{debugName:"channelInfoViewModel"}); Gn(xD,function(a){a.registerLoadFn("channelInfoViewModel","wcpITe",omc)});var qmc=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("OaToWd"),2);a=c1b;return b.return(a)})},rmc=yD(function(){return qmc()},{debugName:"coursePerksViewModel"}); Gn(xD,function(a){a.registerLoadFn("coursePerksViewModel","OaToWd",qmc)});var tmc=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("gCOMDf"),2);a=smc;return b.return(a)})},umc=yD(function(){return tmc()},{debugName:"factoidsRowViewModel"}); Gn(xD,function(a){a.registerLoadFn("factoidsRowViewModel","gCOMDf",tmc)});var vmc=O(function(a){var b=a.data;var c=a.isOverlay;return D("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},D(OC,{data:function(){return b().items}},{channelInfoViewModel:function(d){return D("div",{class:"ytwCourseMetadataViewModelHostItem"},D(pmc,{data:d.data, isOverlay:c}))}, coursePerksViewModel:function(d){return D("div",{class:"ytwCourseMetadataViewModelHostItem"},D(rmc,{data:d.data,isOverlay:c}))}, descriptionPreviewViewModel:function(d){return D("div",{class:"ytwCourseMetadataViewModelHostItem"},D(lV,{data:d.data,isOverlay:c}))}, factoidsRowViewModel:function(d){return D("div",{class:"ytwCourseMetadataViewModelHostItem"},D(umc,{data:d.data,isOverlay:c}))}, progressViewModel:function(d){return D("div",{class:"ytwCourseMetadataViewModelHostItem"},D(f1b,{data:d.data,isOverlay:c}))}}))},"Oi");var $bc=O(function(a){return D("yt-flexible-container",{class:"ytFlexibleContainerHost"},D(OC,{data:function(){return a.data().content}},{courseMetadataViewModel:function(b){return D(vmc,{data:b.data, isOverlay:a.isOverlay})}, progressViewModel:function(b){return D(d1b,{data:b.data})}}))},"Pi");var GJb=O(function(a){var b=a.data;var c=a.disablePadding;var d=a.className;var e=sw("yt-dialog-header-view-model"),f=function(){var p=b().imageBanner;a:switch(b().assetContainerPaddingStyle){case"DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var q="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:q="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT";}return{themedImage:p,style:q,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},h=function(){return b().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"}, m=function(){return b().alignment==="DIALOG_HEADER_ALIGNMENT_CENTER"}; rw(function(){var p=function(){Xu(e.value,"yt-refit-popups-action")},q; (q=e.value)==null||q.addEventListener("image-loaded",p);zp(function(){var t;(t=e.value)==null||t.removeEventListener("image-loaded",p)})}); a={};return D("yt-dialog-header-view-model",{el:e,class:U(d,(a.ytDialogHeaderViewModelHost=!0,a.ytDialogHeaderViewModelHostDisablePadding=c,a.ytDialogHeaderViewModelHostCentered=m,a))},D(P,{cond:function(){return b().imageBanner}, then:function(){var p={};return D("div",{class:U(d,(p.ytDialogHeaderViewModelBanner=!0,p.ytDialogHeaderViewModelBannerFullBleed=h,p)),style:GC({"max-height":function(){return b().assetContainerMaxHeight!==void 0?b().assetContainerMaxHeight+"px":void 0}})},D(WV,{data:f, className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),D(P,{cond:function(){return b().headerBlock}, then:function(){var p={};return D("div",{class:U("ytDialogHeaderViewModelHeaderBlock",(p.ytDialogHeaderViewModelHeaderBlockCentered=m,p))},D(OC,{data:function(){return b().headerBlock}},{contentPreviewImageViewModel:function(q){return D(WV,{data:q.data, notifyOnLoaded:!0})}}))}}),D(P,{cond:function(){return b().customBanner}, then:function(p){var q={};return D("div",{class:U("ytDialogHeaderViewModelCustomAssetContainer",(q.ytDialogHeaderViewModelCustomAssetContainerCentered=m,q))},D(OC,{data:p},{avatarStackViewModel:NR}))}}),D(P,{cond:function(){return b().headline}, then:function(p){return D("h2",null,D(gC,{text:p,className:"ytDialogHeaderViewModelText"}))}}))},"Qi"); GJb.idomCompat=!0;var JJb=O(function(a){var b=n7b(function(){return a.data().formId}),c=b.submitForm,d=b.isValid; return D("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},D(OC,{data:function(){return a.data().panelFooter}},{panelFooterViewModel:function(e){return D(PJb,{data:e.data, disablePadding:!0,disablePrimaryButton:function(){return!d()}, onClickPrimaryButton:function(){c()}})}}))},"Ri");var MJb=O(function(a){var b=function(){var c,d;return(d=(c=z(a.data().rendererContext,dy))==null?void 0:c.label)!=null?d:""}; return D("yt-dialog-image-content-view-model",{class:U("ytDialogImageContentViewModelHost",a.className)},D(P,{cond:function(){return wD(a.data().image)}, then:function(c){var d={};return D("div",{style:GC((d.width=VV(function(){var e;return(e=a.data().imageMaxWidth)!=null?e:""}),d)), class:"ytDialogImageContentViewModelImage"},D(eC,{data:c,alt:b,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"}))}}),D(gC,{text:function(){return a.data().description}, className:"ytDialogImageContentViewModelDescription"}))},"Si");var iSb=O(function(a){return D("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},D(P,{cond:function(){var b;return(b=a.data())==null?void 0:b.thumbnail}, then:function(b){return D(eC,{data:b,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"Ti");var uIb=O(function(a){var b=a.data;var c=a.className;a=a.alwaysShow;var d=OHb(),e={};return D("thumbnail-hover-overlay-view-model",{el:dB(MD(function(){return b().rendererContext})), class:U("ytThumbnailHoverOverlayViewModelHost",c,(e.ytThumbnailHoverOverlayViewModelHostForceHover=a,e)),"aria-label":function(){var f;return(f=z(b().rendererContext,dy))==null?void 0:f.label}, role:function(){return LD(b().rendererContext)!==void 0?"button":void 0}, tabindex:function(){return LD(b().rendererContext)!==void 0?0:void 0}, "on:keypress":d},D("div",{class:U("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(b().style){case"THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var f="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:f="ytThumbnailHoverOverlayViewModelStyleCover";}return f})},D(P,{cond:function(){return b().icon}, then:function(f){return D(eC,{data:f,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),D(P,{cond:function(){return b().text}, then:function(f){return D(gC,{text:f,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"Ui"); uIb.idomCompat=!0;function wmc(a){switch(a){case"THUMBNAIL_OVERLAY_PROGRESS_BAR_STYLE_SEGMENT_FIXED_TO_BOTTOM":return"ytThumbnailOverlayProgressBarHostProgressBarFixedToBottomInactiveSegment";}} var FPb=O(function(a){var b=a.data;var c=a.thumbnailSize;var d=function(){return b().enableSegmentView}; return D("yt-thumbnail-overlay-progress-bar-view-model",{class:U("ytThumbnailOverlayProgressBarHost",function(){a:switch(c==null?void 0:c()){case"small":var e="ytThumbnailOverlayProgressBarHostSmall";break a;case"large":e="ytThumbnailOverlayProgressBarHostLarge";break a;default:e="ytThumbnailOverlayProgressBarHostMedium";}return e})},D(P,{cond:d, then:function(){return D("div",{class:U("ytThumbnailOverlayProgressBarHostProgressBar",function(){a:{switch(b().style){case"THUMBNAIL_OVERLAY_PROGRESS_BAR_STYLE_SEGMENT_FIXED_TO_BOTTOM":var e="ytThumbnailOverlayProgressBarHostProgressBarFixedToBottom";break a;}e=void 0}return e})},D("div",{class:U("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment",function(){return wmc(b().style)}), style:function(){return"width:"+b().startPercent+"%"}}),D("div",{class:"ytThumbnailOverlayProgressBarHostProgressBarContainer", style:function(){return"width:"+b().segmentDurationPercent+"%"}},D("div",{class:U("ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarActiveSegment",function(){a:{switch(b().style){case"THUMBNAIL_OVERLAY_PROGRESS_BAR_STYLE_SEGMENT_FIXED_TO_BOTTOM":var e="ytThumbnailOverlayProgressBarHostProgressBarFixedToBottomActiveSegment"; break a;}e=void 0}return e})}),D("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},D("div",null," ",function(){return b().segmentLabel})),D(P,{cond:function(){return b().style!=="THUMBNAIL_OVERLAY_PROGRESS_BAR_STYLE_SEGMENT_FIXED_TO_BOTTOM"}, then:function(){return D("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})}})),D("div",{class:U("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment",function(){return wmc(b().style)})}))}}),D(P,{cond:function(){return!d()&&b().startPercent}, then:function(){var e={};return D("div",{class:U("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(e.ytThumbnailOverlayProgressBarHostUseLegacyBar=!x("web_enable_modern_progress_bar_overlay"),e))},D("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+b().startPercent+"%"}}))}}))},"Vi"); FPb.idomCompat=!0;var sSb=O(function(a){var b=x("web_enable_thumbnail_overlay_alignment"),c=FC(function(e){e.preventDefault();return!1}),d={}; return D("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:U("ytThumbnailHoverOverlayToggleActionsViewModelHost",function(){if(!b)return"";switch(a.data().alignment){case"THUMBNAIL_OVERLAY_ALIGNMENT_BOTTOM_END_VERTICAL":return"ytThumbnailHoverOverlayToggleActionsViewModelBottomEndVertical";case"THUMBNAIL_OVERLAY_ALIGNMENT_TOP_END_HORIZONTAL":return"ytThumbnailHoverOverlayToggleActionsViewModelTopEndHorizontal";default:return"ytThumbnailHoverOverlayToggleActionsViewModelTopEndVertical";}},( d.ytThumbnailHoverOverlayToggleActionsViewModelWithAlignment=function(){return b},d.ytThumbnailHoverOverlayToggleActionsViewModelOverlayBackground=function(){return a.data().showOverlayBackgroundColor},d)), "on:click":c},D(OC,{data:function(){return a.data().buttons}},{toggleButtonViewModel:function(e){return D("div",{class:function(){return b?"ytThumbnailHoverOverlayToggleActionsViewModelButtonWithAlignment":"ytThumbnailHoverOverlayToggleActionsViewModelButton"}},D(CD,{data:e.data}))}}))},"Wi"); sSb.idomCompat=!0;var vSb=O(function(a){var b=function(){var c;return((c=z(a.data().rendererContext,dy))==null?void 0:c.label)||""}; return D("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},D(P,{cond:function(){return a.data().image}, then:function(){return D("div",{class:"ytThumbnailOverlayFullViewModelIcon"},D(eC,{data:function(){return a.data().image}, alt:b}))}}),D(P,{cond:function(){return a.data().text}, then:function(){return D("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return a.data().text})}}))},"Xi");var xmc=new Bn("VOTING_ANIMATION_CONTROLLER_TOKEN");function ymc(a,b){return yA(a.entities,"votingEntity",b)} ;var IYb=O(function(a){var b=a.data;var c=sw("div"),d=sw("div");a=l(ip("VOTE_STATUS_NONE",void 0,"Y7Qjcf"));var e=a.next().value,f=a.next().value,h=fL(ymc,function(){var v;return(v=b())==null?void 0:v.entityKey}),m=x("web_enable_voting_animation")||x("enable_music_web_cairo_voting_animation"); rw(function(){var v;((v=b().initialState)==null?0:v.status)&&f(b().initialState.status)}); var p=function(){var v,w,y=Number((w=(v=b().initialState)==null?void 0:v.votes)!=null?w:0),A;v=(A=b().initialState)==null?void 0:A.status;return v==="VOTE_STATUS_UPVOTED"?y-1:v==="VOTE_STATUS_DOWNVOTED"?y+1:y},q=function(){return e()==="VOTE_STATUS_UPVOTED"?p()+1:e()==="VOTE_STATUS_DOWNVOTED"?p()-1:p()},t=function(v){var w=v?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE"; f(w);var y=q(),A=Fn().resolve(Cn(xmc)),C=h();C&&(v&&(C==null?0:C.upvoteDefaultButtonOnTap)?QB(C.upvoteDefaultButtonOnTap,{form:{element:c.value},disableClickTracking:!0}):(C==null?0:C.upvoteToggledButtonOnTap)&&QB(C.upvoteToggledButtonOnTap,{form:{element:c.value},disableClickTracking:!0}));var I;v=(I=C==null?void 0:C.enableOptimisticReordering)!=null?I:b().enableOptimisticReordering;m&&A&&b().itemId&&v&&A.updateVoteCount(b().itemId,y,w)},u=function(v){var w=v?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE"; f(w);var y=q(),A=Fn().resolve(Cn(xmc)),C=h();C&&(v&&(C==null?0:C.downvoteDefaultButtonOnTap)?QB(C.downvoteDefaultButtonOnTap,{form:{element:d.value},disableClickTracking:!0}):(C==null?0:C.downvoteToggledButtonOnTap)&&QB(C.downvoteToggledButtonOnTap,{form:{element:d.value},disableClickTracking:!0}));var I;v=(I=C==null?void 0:C.enableOptimisticReordering)!=null?I:b().enableOptimisticReordering;m&&A&&b().itemId&&v&&A.updateVoteCount(b().itemId,y,w)}; a={};a=U("ytVotingViewModelVoteCount",(a.ytVotingViewModelVoteCountDisabled=function(){return b().isDisabled},a)); return D("voting-view-model",{class:"ytVotingViewModelHost"},D("div",{el:c},D(OC,{data:function(){var v=z(b().upvoteButton,aK);return{toggleButtonViewModel:Object.assign({},v,{isToggled:e()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(v){return D(CD,{data:v.data, onToggle:t})}})),D("div",{class:a},function(){var v,w,y; return e()==="VOTE_STATUS_UPVOTED"?(v=b().initialState)==null?void 0:v.compactVotesUpvoted:e()==="VOTE_STATUS_DOWNVOTED"?(w=b().initialState)==null?void 0:w.compactVotesDownvoted:(y=b().initialState)==null?void 0:y.compactVotes}),D("div",{el:d},D(OC,{data:function(){var v=z(b().downvoteButton,aK); return{toggleButtonViewModel:Object.assign({},v,{isToggled:e()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(v){return D(CD,{data:v.data, onToggle:u})}})))},"Yi");var zyb=O(function(a){var b=a.data;var c=a.className;a=a.shouldFillContainer;var d={},e=zmc(b),f=function(){return b().animationEntityKey||""},h=fL(kCb,f); lw(function(){if(h()){var q,t;if(((q=h())==null?0:q.hadUserInteraction)&&((t=d.lottieEl)==null?0:t.isPaused)){var u;(u=d.lottieEl)==null||u.stop();var v;(v=d.lottieEl)==null||v.goToAndPlay(0)}}},"OH9bUd"); rw(function(){if(!h()&&f()){var q=Fn().resolve(JB),t=q.resolveCommand,u=f();t.call(q,Amc(u,"ENTITY_MUTATION_TYPE_REPLACE",{hadUserInteraction:!1,key:u}))}}); var m=Bmc(e,b,function(){var q;if((q=h())==null?0:q.hadUserInteraction){q=Fn().resolve(JB);var t=q.resolveCommand,u=f();t.call(q,Amc(u,"ENTITY_MUTATION_TYPE_UPDATE",{hadUserInteraction:!1}))}}),p={}; return D("yt-animated-asset-view-model",{class:U("ytAnimatedAssetViewModelHost",c)},D(YA,{data:m,className:U((p.ytAnimatedAssetViewModelFill=a,p)),animationRef:d,animationName:e}))},"$i"); function zmc(a){return function(){var b,c,d,e,f,h,m;return(m=(c=(b=Fn().resolve(Cn(HB)))==null?void 0:b())!=null&&c?(d=a().lottieAsset)==null?void 0:(e=d.themedUrl)==null?void 0:e.dark:(f=a().lottieAsset)==null?void 0:(h=f.themedUrl)==null?void 0:h.light)!=null?m:""}} function Bmc(a,b,c){return function(){var d,e,f,h,m,p,q=a(),t=(h=(d=b().genericBehavior)==null?void 0:d.loop)!=null?h:!1;d=(m=(e=b().genericBehavior)==null?void 0:e.autoplay)!=null?m:!1;e=(p=(f=b().genericBehavior)==null?void 0:f.speed)!=null?p:1;p=b();var u;f=(u=p.lottieAsset)!=null&&u.preserveAspectRatio&&p.lottieAsset.preserveAspectRatio==="LOTTIE_PRESERVE_ASPECT_RATIO_NONE"?{preserveAspectRatio:"none"}:void 0;return{animationConfig:{path:q,loop:t,autoplay:d,speed:e,rendererSettings:f},listeners:{complete:c}}}} function Amc(a,b,c){c=c===void 0?{}:c;return{entityUpdateCommand:{entityBatchUpdate:{mutations:[{entityKey:a,type:b,payload:{animationEntity:c},options:void 0}]}}}} ;var fec=O(function(a){var b=a.data;var c=a.maxLines;a=a.className;var d=function(){var m;return KD((m=b())==null?void 0:m.rendererContext)},e={}; e=(e.dynamicTextViewModelHost=!0,e.dynamicTextViewModelHostTappable=function(){return d()},e); var f=function(){if(x("enable_dynamic_text_max_lines")){var m,p=(m=b())==null?void 0:m.maxLines;if(p&&p>0)return p;if((m=c==null?void 0:c())&&m>0)return m}},h={}; return D("yt-dynamic-text-view-model",{el:dB(MD(function(){var m;return(m=b())==null?void 0:m.rendererContext})), role:function(){return d()?"link":void 0}, tabindex:function(){return d()?0:void 0}, class:U(a,e)},D("h1",{class:U("dynamicTextViewModelH1",(h.dynamicTextViewModelLineClamp=f,h)),style:GC({"-webkit-line-clamp":f}),"aria-label":function(){var m,p,q;return(q=(p=z((m=b())==null?void 0:m.rendererContext,dy))==null?void 0:p.label)!=null?q:""}},D(gC,{text:function(){return b().text}, userInput:!0})))},"aj"); fec.idomCompat=!0;var T_b=O(function(a){var b=Hu(a,{className:void 0}).className,c=Y1a(function(){return a.data().rendererContext}),d=function(){return a.data().state==="ENTRY_POINT_BUTTON_STATE_DISABLED"},e={}; return D("yt-entry-point-button-view-model",{class:U("ytEntryPointButtonViewModelHost",b)},D("button",{el:dB(MD(function(){return a.data().rendererContext})), class:U("ytEntryPointButtonViewModelEntryPointButton",function(){a:switch(a.data().size){case"ENTRY_POINT_BUTTON_SIZE_SMALL":var f="ytEntryPointButtonViewModelSmall";break a;default:f="ytEntryPointButtonViewModelMedium";}return f},(e.ytEntryPointButtonViewModelNoIcon=function(){return!a.data().image},e.ytEntryPointButtonViewModelDisabled=d,e)), disabled:d,"aria-label":function(){var f,h;return((f=c())==null?void 0:f.label)||((h=a.data().titleFormatted)==null?void 0:h.content)}},D(YK,{model:function(){return{color:1}}}),D(P,{cond:function(){var f=kV(a.data().accentThemedColor); return f?Jy(f):void 0}, then:function(f){return D("div",{class:"ytEntryPointButtonViewModelIndicator",style:GC({"background-color":function(){return d()?void 0:f()}})})}}),D(P,{cond:function(){return a.data().image}, then:function(f){return D(eC,{data:f,alt:"",targetWidth:18,targetHeight:18,preserveWidth:!0,preserveHeight:!0})}}),D(P,{cond:function(){return a.data().titleFormatted}, then:function(f){return D(gC,{text:f})}})))},"bj");var Dmc=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("nBvByd"),2);a=Cmc;return b.return(a)})},Emc=yD(function(){return Dmc()},{debugName:"youthBasicSectionHeaderViewModel"}); Gn(xD,function(a){a.registerLoadFn("youthBasicSectionHeaderViewModel","nBvByd",Dmc)});var Gmc=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("eDUDoc"),2);a=Fmc;return b.return(a)})},Hmc=yD(function(){return Gmc()},{debugName:"youthSectionBodyViewModel"}); Gn(xD,function(a){a.registerLoadFn("youthSectionBodyViewModel","eDUDoc",Gmc)});var oZb=O(function(a){var b=l(ip(!1,void 0,"APz57d")),c=b.next().value,d=b.next().value,e=function(){return a.data().inlineExpansionEntityKey},f=fL(cVa,e); b=FC(function(q){if(!x("web_inline_expander_child_tap_kill_switch")){var t=HD(q);if(t.some(function(u){var v;return(v=u.classList)==null?void 0:v.contains("ytInlineExpanderViewModelBody")})&&ID(t,q.currentTarget,["BUTTON".toString(), "A".toString()]))return}a.isSelected!==void 0||e()||d(!c())}); var h=function(){if(a.isSelected!==void 0)return a.isSelected();if(e()){var q;return(q=f())==null?void 0:q.expanded}return c()},m={},p={}; return D("yt-inline-expander-view-model",{class:"ytInlineExpanderViewModelHost","on:click":b},D("div",{class:"ytInlineExpanderViewModelHeader"},D(OC,{data:function(){return a.data().headerContent}},{youthBasicSectionHeaderViewModel:Emc, basicContentViewModel:kP}),D("div",{class:U("ytInlineExpanderViewModelButton",(m.ytInlineExpanderViewModelButtonExpanded=h,m))},D(bL,{data:function(){return{style:"mono",type:"text",state:"active",size:"M",iconPosition:"icon-only",toggleable:!0,toggled:h(),accessibilityLabel:h()?zy("SHOW_LESS",void 0,"Show Less"):zy("SHOW_MORE",void 0,"Show More")}}, iconName:"chevron_down"}))),D("div",{class:U("ytInlineExpanderViewModelBody",(p.ytInlineExpanderViewModelBodyExpanded=h,p)),"aria-hidden":function(){return!h()}},D("div",{class:"ytInlineExpanderViewModelBodyContent"},D(OC,{data:function(){return a.data().bodyContent}},{youthSectionBodyViewModel:Hmc, linearLayoutViewModel:lP}))))},"cj");var Jmc=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("vvxGsf"),2);a=Imc;return b.return(a)})},Kmc=yD(function(){return Jmc()},{debugName:"chatItemViewModel"}); Gn(xD,function(a){a.registerLoadFn("chatItemViewModel","vvxGsf",Jmc)});var Lmc=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("JoU6vf"),2);a=b0b;return b.return(a)})},Mmc=yD(function(){return Lmc()},{debugName:"gridShelfViewModel"}); Gn(xD,function(a){a.registerLoadFn("gridShelfViewModel","JoU6vf",Lmc)});var Nmc=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("m9Vw4"),2);a=v1b;return b.return(a)})},Omc=yD(function(){return Nmc()},{debugName:"accordionViewModel"}); Gn(xD,function(a){a.registerLoadFn("accordionViewModel","m9Vw4",Nmc)});var Pmc=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("mcjWUc"),2);a=N1b;return b.return(a)})},Qmc=yD(function(){return Pmc()},{debugName:"videoOverviewViewModel"}); Gn(xD,function(a){a.registerLoadFn("videoOverviewViewModel","mcjWUc",Pmc)});var Rmc=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("lTbA0c"),2);a=dlc;return b.return(a)})},Smc=yD(function(){return Rmc()},{debugName:"comparisonTableViewModel"}); Gn(xD,function(a){a.registerLoadFn("comparisonTableViewModel","lTbA0c",Rmc)});var Tmc=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("wHZukc"),2);a=R1b;return b.return(a)})},Umc=yD(function(){return Tmc()},{debugName:"searchFrictionViewModel"}); Gn(xD,function(a){a.registerLoadFn("searchFrictionViewModel","wHZukc",Tmc)});var Wmc=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("xdYm6d"),2);a=Vmc;return b.return(a)})},Xmc=yD(function(){return Wmc()},{debugName:"sponsorshipsDestinationHubHeaderViewModel"}); Gn(xD,function(a){a.registerLoadFn("sponsorshipsDestinationHubHeaderViewModel","xdYm6d",Wmc)});var Ymc=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("xuzkce"),2);a=g2b;return b.return(a)})},Zmc=yD(function(){return Ymc()},{debugName:"macroMarkersPanelItemViewModel"}); Gn(xD,function(a){a.registerLoadFn("macroMarkersPanelItemViewModel","xuzkce",Ymc)});var anc=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("nFrksc"),2);a=$mc;return b.return(a)})},bnc=yD(function(){return anc()},{debugName:"timelineSearchNoResultsViewModel"}); Gn(xD,function(a){a.registerLoadFn("timelineSearchNoResultsViewModel","nFrksc",anc)});var dnc=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("QiZf0e"),2);a=cnc;return b.return(a)})},enc=yD(function(){return dnc()},{debugName:"youChatItemViewModel"}); Gn(xD,function(a){a.registerLoadFn("youChatItemViewModel","QiZf0e",dnc)});var wfc=O(function(a){var b=l(kQ(a.data,{persist:!0})).next().value,c=function(){var N;return(N=a.responsiveLayout)==null?void 0:N.call(a)},d=function(N){var L,R; return((L=c())==null?void 0:(R=L.itemStyles)==null?void 0:R.call(L,N===0,N===v()-1,void 0))||{}},e=dB(),f=l(ip(!1,void 0,"uhxgj")),h=f.next().value,m=f.next().value,p; f=l(ip(((p=document.querySelector("ytd-masthead"))==null?void 0:p.clientHeight)||0,void 0,"zGNuBc"));var q=f.next().value,t=f.next().value,u;p=function(){return a.data().targetId||""}; var v=function(){var N,L;return(L=(N=b().contents)==null?void 0:N.length)!=null?L:0},w=function(){if(x("web_enable_constrained_list_layout"))return""; var N;return((N=a.contentPreviewWidth)==null?void 0:N.call(a))||""},y=function(){e.value&&m(e.value.getBoundingClientRect().y<=q())},A=function(){if(a.data().headerStyle==="ITEM_SECTION_HEADER_STYLE_STICKY"){var N=document.querySelector("ytd-masthead"); N&&(u=new ResizeObserver(function(L){L=l(L);for(var R=L.next();!R.done;R=L.next())t(R.value.contentRect.height)}),u.observe(N)); window.addEventListener("scroll",y)}}; rw(function(){A()}); zp(function(){u&&u.disconnect();window.removeEventListener("scroll",y)}); f=Fn().resolve(Cn(Hkc));var C=Fn().resolve(Cn(Jkc)),I=Fn().resolve(Cn(Ikc));zfc(p,{clearOnNavigation:a.clearCacheOnNavigation,clearOnMount:a.disableContinuationPersistence});var K={};return D("yt-item-section-renderer",{class:"ytItemSectionRendererHost",el:e,style:function(){var N;var L=((N=c())==null?void 0:N.containerStyles)||{};return GC(L)()}, "data-target-id":p,"aria-busy":function(){var N,L;return(L=(N=b().contents)==null?void 0:N.some(function(R){return!!R.chatLoadingViewModel}))!=null?L:!1}},D("div",{id:"header", class:U((K.ytItemSectionRendererStickyHeader=h,K)),style:GC({top:VV(q)})},D(OC,{data:function(){return b().header}, wrapper:function(N,L,R){return D("div",{style:function(){return GC(d(R()))()}},N())}},{chipBarViewModel:function(N){return D(C0b,{className:"ytItemSectionRendererChipBar", data:N.data})}, macroMarkersPanelItemViewModel:Zmc,sectionHeaderViewModel:UV})),D("div",{id:"contents"},D(OC,{data:function(){return b().contents}, wrapper:function(N,L,R){return D("div",{style:function(){return GC(d(R()))()}},N())}},Object.assign({},{accordionViewModel:Omc, alertBannerViewModel:y1b,basicContentViewModel:jP,chatItemViewModel:Kmc,chatLoadingViewModel:function(N,L){return D(Pkc,{data:N.data,containerHeight:a.containerHeight,isLastItem:function(){return L()===v()-1}})}, chatUserTurnViewModel:function(N,L){return D(Skc,{data:N.data,containerHeight:a.containerHeight,isLastItem:function(){return L()===v()-1}})}, comparisonTableViewModel:Smc,continuationItemViewModel:Cfc,feedbackPromptViewModel:Mkc,gridShelfViewModel:function(N){return D(Mmc,{data:N.data,shouldUseOwnContainerSize:!0,marginSettings:a.marginSettings,useUpdatedMargin:!0})}, horizontalShelfViewModel:p0b,learningJourneyLoaderViewModel:A1b,linearLayoutViewModel:lP,lockupViewModel:function(N){return D(zT,{data:N.data,containerLayoutConfig:a.containerLayoutConfig,thumbnailFixedWidth:w,lockupExperiments:{onFocusEffect:{onFocusStyle:"ON_FOCUS_STYLE_BACKGROUND"}}})}, macroMarkersPanelItemViewModel:Zmc,responseActionsViewModel:r0b,searchFrictionViewModel:Umc,sectionHeaderViewModel:UV,sponsorshipsDestinationHubHeaderViewModel:Xmc,timelineSearchNoResultsViewModel:bnc,videoOverviewViewModel:Qmc,youChatItemViewModel:function(N,L){return D(enc,{data:N.data,pending:!1,containerHeight:a.containerHeight,isLastItem:function(){return L()===v()-1}})}},f&&{infoPanelContentRenderer:f},I&&{shelfRenderer:function(N){return D(I,{data:N.data, containerLayoutConfig:a.containerLayoutConfig})}},C&&{videoRenderer:function(N){return D(C,{data:N.data, className:"ytItemSectionRendererVideoRenderer",containerLayoutConfig:a.containerLayoutConfig})}}))))},"dj");var fnc={isOpen:!1};function gnc(a,b){a=a===void 0?fnc:a;switch(b.type){case"SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},a,{isOpen:b.payload});default:return a;}} ;var hnc={isAllowed:!1};function inc(a,b){a=a===void 0?hnc:a;switch(b.type){case"SET_CINEMATIC_SETTING_STATE":return Object.assign({},a,{isAllowed:b.payload});default:return a;}} ;var jnc={errorMessage:"",title:"",privacy:"",isDisabled:!0};function knc(a,b){a=a===void 0?jnc:a;switch(b.type){case"SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},a,{errorMessage:b.payload});case"SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},a,{title:b.payload});case"SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},a,{privacy:b.payload});case"SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},a,{isDisabled:b.payload});default:return a;}} ;var lnc={isOpen:!1};function mnc(a,b){a=a===void 0?lnc:a;switch(b.type){case"SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},a,{isOpen:b.payload});default:return a;}} ;var nnc={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};function onc(a,b){a=a===void 0?nnc:a;switch(b.type){case"SET_IS_FULLSCREEN_STATE":return Object.assign({},a,{isFullscreen:b.payload});case"SET_NAVIGATION_BUTTON":var c=b.payload.targetId,d=Object.assign({},a.navigationButtons);d[c]=b.payload.button;return Object.assign({},a,{navigationButtons:d});case"SET_TOP_PANEL_ID_STATE":return Object.assign({},a,{topPanelId:b.payload});case"SET_SECONDARY_HEADER":return c=b.payload.panelId,d=Object.assign({},a.secondaryHeader),d[c]=b.payload.secondaryHeader, Object.assign({},a,{secondaryHeader:d});default:return a;}} ;var pnc={response:void 0};var qnc=function(a,b){a=a===void 0?pnc:a;switch(b.type){case"LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},a,{response:b.payload});default:return a;}};var rnc={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var snc=function(a,b){a=a===void 0?rnc:a;switch(b.type){case"REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},a,{nextDisabled:b.payload});case"REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},a,{nextCommand:b.payload});case"REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},a,{footerSubmissionData:b.payload});case"REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},a,{isImpersonationValid:b.payload});default:return a;}};var tnc={reportFormData:void 0,reportDetailsFormData:void 0};var unc=function(a,b){a=a===void 0?tnc:a;switch(b.type){case"REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},a,{reportFormData:b.payload});case"REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},a,{reportDetailsFormData:b.payload});default:return a;}};function vnc(){return Vw(Object.assign({},{engagementPanel:onc,bottomSheet:gnc,cinematicSetting:inc,drawerLayout:mnc,createPlaylist:knc,locationCollection:qnc,reportChannel:snc,reportForm:unc},qVa,UVa))} var wnc=void 0;wnc=new bA(vnc());var znc=O(function(a){a=Hu(a,{themeOverride:void 0,animationRef:{}});var b=a.animatedIconType,c=a.active,d=a.themeOverride,e=a.animationRef;a=a.staticIconFn;var f=l(ip(void 0,void 0,"mXhpGf")),h=f.next().value,m=f.next().value,p=function(){a:{var C=b();var I=d==null?void 0:d();var K;I=(I==null?void 0:I.useDarkTheme)||((K=Fn().resolve(Cn(HB)))==null?void 0:K());switch(C){case"LIKE":wnc||(wnc=new bA(vnc()));C=(C=iVa(wnc.getState()))&&C.animationLightUrl&&C.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:I? "custom_animated_like_icon_dark":"custom_animated_like_icon",path:I?C.animationDarkUrl:C.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(C){I=C;break a}I="animated_like_icon_"+(I?"dark":"light")+"_v5";I={lottiePlayerProps:{animationConfig:{name:I,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+I+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}}, totalFrames:120,lazyLoad:!0};break a;case"NOTIFICATION_BELL":I={lottiePlayerProps:{animationConfig:{name:I?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(I?"dark":"light")+"_v4.json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"}}},totalFrames:120,lazyLoad:!1};break a;}I=void 0}return I},q=function(){var C,I; return(I=(C=p())==null?void 0:C.lottiePlayerProps.animationConfig.name)!=null?I:""},t=function(){if(p()){var C=p().lottiePlayerProps.animationConfig.path; return SA.get(C)||h()}}; f=l(ip(!1,void 0,"wDva5d"));var u=f.next().value;f=f.next().value;var v=xnc(f),w=function(){var C=p(),I,K,N;return(N=C==null?void 0:(I=C.lottiePlayerProps.animationConfig)==null?void 0:(K=I.rendererSettings)==null?void 0:K.className)!=null?N:""},y=void 0,A=void 0; lw(function(){var C=p(),I=q(),K=t(),N=u(),L=c();if(C&&(A!==I&&(A=I,y=L,I=e(),v.animationConfig=C.lottiePlayerProps.animationConfig,v.animationRef=I,K&&(v.animationConfig.animationData=K,v.animationConfig.path=void 0),I=C.lottiePlayerProps.animationConfig.path,!SA.get(I)&&C.lazyLoad&&I&&ync(I,m)),!(N||C.lazyLoad&&!K))){if(K=!e().lottieEl)L?(N=C.totalFrames,v.animationConfig.initialSegment=[N-1,N]):v.animationConfig.initialSegment=void 0;if(y!==L&&!K)if(K=e(),L){var R;(R=K.lottieEl)==null||R.playSegments([0, C.totalFrames],!0)}else{var W;(W=K.lottieEl)==null||W.playSegments([0,1],!0)}y=L}},"j4Xabb"); return D("animated-icon",{class:"ytAnimatedIconHost"},D(P,{cond:function(){var C,I;return!((C=p())==null||!C.lottiePlayerProps.animationConfig.path||((I=p())==null?0:I.lazyLoad)&&!t()||u())}, then:function(){return D(YA,{data:v,animationName:q,className:w,animationRef:e})}, else:a}))},"fj"); function ync(a,b){bj.addLowPriorityJob(function(){var c,d,e;return ra(function(f){switch(f.nextAddress){case 1:return f.setCatchFinallyBlocks(2),f.yield(lVa(),4);case 4:return f.yield(fetch(a),5);case 5:return c=f.yieldResult,f.yield(c.json(),6);case 6:d=f.yieldResult;SA.set(a,d);requestAnimationFrame(function(){b(d)}); f.leaveTryBlock(0);break;case 2:e=f.enterCatchBlock(),fo(e),f.jumpToEnd();}})})} function xnc(a){var b={animationConfig:{},listeners:{}},c=function(){a(!0)}; b.listeners.data_failed=c;b.listeners.error=c;b.listeners.data_ready=function(){a(!1)}; return b} ;function Anc(a){var b=a.model;var c=a.subscribed;var d=a.isOverlay;var e=a.isDarkTheme;var f=a.element;var h=a.commandController;var m=a.notificationState;var p=a.disableTextEllipsis;if(c){var q,t;var u=(b==null?void 0:(q=b.buttonStyle)==null?void 0:q.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:b==null?void 0:(t=b.unsubscribeButtonContent)==null?void 0:t.buttonText}else{var v;u=b==null?void 0:(v=b.subscribeButtonContent)==null?void 0:v.buttonText}var w; a:switch(b==null?void 0:(w=b.buttonStyle)==null?void 0:w.buttonSize){case"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":w="S";break a;default:w="M";}a:if(d)q="overlay";else switch(b.backgroundStyle){case"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_OVERLAY":case"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_FULLSCREEN_OVERLAY":case"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY":case"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_COLOR_SAMPLED":case"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_COLOR_SAMPLED_OUTLINED":q= "overlay";break a;default:q="mono";}t=Bnc(b,c);v=b.disableSubscribeButton?"disabled":"active";a=a.focused;m=Cnc(b,c,m);var y=b.disableNotificationBell?"none":"leading-trailing";f=Dnc(b,c,f,h);a:{switch(b.backgroundStyle){case"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_COLOR_SAMPLED":case"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_COLOR_SAMPLED_OUTLINED":break;default:b=void 0;break a;}var A,C;h=(C=(A=c?b.unsubscribeButtonContent:b.subscribeButtonContent)==null?void 0:A.colorPalettes)!=null?C: {};A=h.darkThemePalette;C=h.lightThemePalette;d=d||e?A!=null?A:C:C!=null?C:A;if(d!=null&&d.textPrimary&&(!c||d!=null&&d.additiveBackground)){if(c&&(d==null?0:d.additiveBackground)){b={color:Jy(d.textPrimary),backgroundColor:Jy(d.additiveBackground)};break a}switch(b.backgroundStyle){case"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_COLOR_SAMPLED_OUTLINED":b=d!=null&&d.outline?{color:Jy(d.textPrimary),borderColor:Jy(d.outline)}:void 0;break a;case"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_COLOR_SAMPLED":b= d!=null&&d.textPrimaryInverse?{color:Jy(d.textPrimaryInverse),backgroundColor:Jy(d.textPrimary)}:void 0;break a;}}b=void 0}return{style:q,type:t,state:v,size:w,focused:a,toggled:c,accessibilityLabel:m,buttonText:u,iconPosition:y,onTap:f,customColors:b,disableTextEllipsis:!!p}} function Dnc(a,b,c,d){return function(e){if(b){var f;var h=a.disableNotificationBell?LB(a==null?void 0:(f=a.unsubscribeButtonContent)==null?void 0:f.onTapCommand):LB(a==null?void 0:a.onShowSubscriptionOptions)}else{var m;h=LB(a==null?void 0:(m=a.subscribeButtonContent)==null?void 0:m.onTapCommand)}h&&cL(h,{form:{element:c==null?void 0:c.value},commandController:d});e.stopPropagation()}} function Cnc(a,b,c){if(b){if(a==null?0:a.disableNotificationBell){var d;return a==null?void 0:(d=a.unsubscribeButtonContent)==null?void 0:d.accessibilityText}switch(c){case"SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var e;return a==null?void 0:(e=a.bellAccessibilityData)==null?void 0:e.occasionalLabel;case"SUBSCRIPTION_NOTIFICATION_STATE_ALL":var f;return a==null?void 0:(f=a.bellAccessibilityData)==null?void 0:f.allLabel;case"SUBSCRIPTION_NOTIFICATION_STATE_OFF":var h;return a==null?void 0:(h= a.bellAccessibilityData)==null?void 0:h.offLabel;case"SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var m;return a==null?void 0:(m=a.bellAccessibilityData)==null?void 0:m.disabledLabel;default:var p;return a==null?void 0:(p=a.unsubscribeButtonContent)==null?void 0:p.accessibilityText;}}else{var q;return a==null?void 0:(q=a.subscribeButtonContent)==null?void 0:q.accessibilityText}} function Bnc(a,b){if(b)return"tonal";switch(a.backgroundStyle){case"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_COLOR_SAMPLED_OUTLINED":return"outline";}var c;switch((c=a.buttonStyle)==null?void 0:c.unsubscribedStateStyle){case"SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":return"tonal";default:return"filled";}} ;function Enc(a){if(a){switch(a){case"SUBSCRIPTION_NOTIFICATION_STATE_ALL":a="NOTIFICATIONS_ACTIVE";break;case"SUBSCRIPTION_NOTIFICATION_STATE_OFF":case"SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":a="NOTIFICATIONS_OFF";break;default:a="NOTIFICATIONS_NONE";}return a}} function Fnc(a,b,c){c.subscribed!==b&&((c=c.key)&&Bu(dA("subscriptionStateEntity",c,{key:c,subscribed:b})),a.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:b})),b||Xu(a,"yt-unsubscribe-action"))} function Gnc(a){a=z(LB(a),osb);var b,c,d,e;return(e=z(a==null?void 0:(b=a.panelLoadingStrategy)==null?void 0:(c=b.inlineContent)==null?void 0:(d=c.sheetViewModel)==null?void 0:d.content,nkc))==null?void 0:e.listItems} function Hnc(a,b){if(a.onShowSubscriptionOptions&&b&&(a=Gnc(a.onShowSubscriptionOptions),a!=null&&a.length)){var c=Enc(b);a.forEach(function(d){d=z(d,cK);var e,f,h,m,p=d==null?void 0:(e=d.leadingImage)==null?void 0:(f=e.sources)==null?void 0:(h=f[0])==null?void 0:(m=h.clientResource)==null?void 0:m.imageName;d&&p&&(d.isSelected=p===c)})}} function Inc(a,b,c,d){b&&c?a.style.width=c+"px":!b&&d&&(a.style.width=d+"px")} function Jnc(a,b,c){var d;(d=a.lottieEl)==null||d.goToAndPlay(0);var e;(e=b.lottieEl)==null||e.goToAndPlay(0);Kl(0,function(){var f;(f=c.lottieEl)==null||f.goToAndPlay(0)},300)} var m1a=O(function(a){var b=Fn().resolve(Cn(HB)),c=sw("yt-subscribe-button-view-model"),d=sw("div"),e=sw("div"),f=tQ(),h=tQ(),m=tQ(),p=fL(lPb,function(){return a.data().stateEntityStoreKey}),q=fL(mPb,function(){var Ca,eb; return(eb=(Ca=a.data().notificationStateEntityStoreKeys)==null?void 0:Ca.subsNotificationStateKey)!=null?eb:""}),t=function(){return!a.data().enableSubscribeButtonPostClickAnimation},u=l(ip(0,void 0,"hlVDId")),v=u.next().value,w=u.next().value; u=l(ip(0,void 0,"IScfQ"));var y=u.next().value,A=u.next().value;u=l(ip(!1,void 0,"h4vER"));var C=u.next().value,I=u.next().value;u=l(ip(!1,void 0,"p8k2wd"));var K=u.next().value,N=u.next().value;u=l(ip(!1,void 0,"JGKXJf"));var L=u.next().value,R=u.next().value,W;u=l(ip(!1,void 0,"RrFJKe"));var S=u.next().value,Y=u.next().value,da=function(){N(!0);Kl(0,function(){N(!1)},1500)}; lw(function(){var Ca=K();So(function(){Ca&&!t()&&p()&&Jnc(f,h,m)})},"P2Aosb"); lw(function(){var Ca=p();So(function(){if(!t()&&Ca){var eb;((eb=a.animateWidth)==null?0:eb.call(a))&&Inc(c.value,!!Ca.subscribed,v(),y());var Qa,Bb;((Qa=W)==null?0:Qa.subscribed)||!Ca.subscribed||Ca.key!==((Bb=W)==null?void 0:Bb.key)||da();W=Ca}})},"yisFPd"); var Aa=Vo(function(){var Ca,eb,Qa,Bb=a.data(),dc=!((Ca=p())==null||!Ca.subscribed);Ca=!((eb=a.isOverlay)==null||!eb.call(a));eb=!(b==null||!b());var Nb=C()?c:void 0,Lc=(Qa=q())==null?void 0:Qa.state;Qa=S();Hnc(Bb,Lc);return Anc({model:Bb,subscribed:dc,isOverlay:Ca,isDarkTheme:eb,element:Nb,notificationState:Lc,disableTextEllipsis:!0,focused:Qa})},void 0,"dZ1Dqc"),Sa=function(){var Ca; if(!t()&&((Ca=a.animateWidth)==null?0:Ca.call(a))&&(d==null?0:d.value)&&(e==null?0:e.value)&&!L()){Ca=p();var eb=l((Ca==null?0:Ca.subscribed)?[d,e]:[e,d]),Qa=eb.next().value;eb=eb.next().value;Qa=Math.ceil(Qa.value.getBoundingClientRect().width);eb=Math.ceil(eb.value.getBoundingClientRect().width);w(Qa);A(eb);Inc(c.value,!(Ca==null||!Ca.subscribed),Qa,eb);R(!0)}}; u=FC(function(Ca){Sa();var eb=p();eb&&(Ca.detail.endpoint.subscribeEndpoint||Ca.detail.endpoint.unsubscribeEndpoint)&&Fnc(c.value,!eb.subscribed,eb)}); var Ua=function(){var Ca=Fn().resolve(Cn(tD));Ca&&Y(Ca.keyboardInUse)},qb=function(){Y(!1)}; CH("yt-player-subscribe",function(Ca){var eb=p();eb&&Ca===a.data().channelId&&Fnc(c.value,!0,eb)}); CH("yt-player-unsubscribe",function(Ca){var eb=p();eb&&Ca===a.data().channelId&&Fnc(c.value,!1,eb)}); CH("yt-update-subscribe-button-action",function(Ca){Ca=z(Ca,zmb);var eb=p();eb&&Ca&&Ca.channelId===a.data().channelId&&Fnc(c.value,!!Ca.subscribed,eb)}); rw(function(){c.value&&(c.value.addEventListener("focusin",Ua),c.value.addEventListener("focusout",qb));var Ca=Il(0,function(){Sa()}); I(!0);zp(function(){bj.cancelJob(Ca);c.value&&(c.value.removeEventListener("focusin",Ua),c.value.removeEventListener("focusout",qb))})}); var ab=function(){var Ca,eb,Qa;if(Qa=!((Ca=p())==null||!Ca.subscribed))Ca=!!a.data().disableNotificationBell,Qa=(eb=q())==null?void 0:eb.state,Qa=!Ca&&!!Qa;return Qa},La=function(){var Ca; return!((Ca=p())==null?0:Ca.subscribed)},ib=function(){var Ca,eb; if(eb=La()){eb=!!a.data().disableNotificationBell;var Qa=(Ca=q())==null?void 0:Ca.state;eb=!eb&&!!Qa}return eb},sb={},Oa={}; return D("yt-subscribe-button-view-model",{class:U(a.className,"ytSubscribeButtonViewModelHost",(sb.ytSubscribeButtonViewModelHostCanAnimateWidth=function(){var Ca,eb;return!((Ca=p())==null||!Ca.subscribed)&&((eb=a.animateWidth)==null?void 0:eb.call(a))&&K()},sb.ytSubscribeButtonViewModelHostHidden=function(){var Ca; return!((Ca=p())==null?0:Ca.subscribed)&&a.data().hideWhenUnsubscribed},sb)), el:c,"on:yt-service-request-sent":u},D(gPb,{backgroundLottieRef:f,foregroundLottieRef:h,wrapperClass:U("ytSubscribeButtonViewModelAnimatedActionWrapper",(Oa.ytSubscribeButtonViewModelAnimatedActionWrapperIsAnimating=function(){var Ca;return((Ca=a.animateWidth)==null?void 0:Ca.call(a))&&K()},Oa.ytSubscribeButtonViewModelStaticWidth=function(){var Ca; return!((Ca=a.animateWidth)==null?0:Ca.call(a))},Oa)), disableAnimation:t},D("div",{el:d,class:"ytSubscribeButtonViewModelContainer"},D(bL,{data:Aa,icon:function(){return D(P,{cond:ab,then:function(){var Ca=function(){var eb;return Enc((eb=q())==null?void 0:eb.state)}; return D(P,{cond:function(){return t()||Ca()!=="NOTIFICATIONS_NONE"}, then:function(){return D(aC,{icon:Ca})}, else:function(){return D(znc,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:m,themeOverride:function(){return{useDarkTheme:Aa().style==="overlay"}}})}})}})}, secondaryIconName:function(){return ab()?"EXPAND":void 0}}))),D("div",{el:e, class:"ytSubscribeButtonViewModelInvisible"},D(P,{cond:function(){var Ca;return((Ca=a.animateWidth)==null?void 0:Ca.call(a))&&!t()&&!L()}, then:function(){return D(bL,{data:Vo(function(){var Ca;return Anc({model:a.data(),subscribed:La(),isOverlay:!((Ca=a.isOverlay)==null||!Ca.call(a)),isDarkTheme:!(b==null||!b()),element:c,disableTextEllipsis:!0})},void 0,"zpCWLd"), iconName:function(){var Ca;return ib()?Enc((Ca=q())==null?void 0:Ca.state):void 0}, secondaryIconName:function(){return ib()?"EXPAND":void 0}})}})))},"ij"); m1a.idomCompat=!0;var Knc=new Qk("getVideoPerformanceInsightsCardCommand");var Mnc=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("f23d4e"),2);a=Lnc;return b.return(a)})},Nnc=yD(function(){return Mnc()},{debugName:"askStudioCardLoadingViewModel"}); Gn(xD,function(a){a.registerLoadFn("askStudioCardLoadingViewModel","f23d4e",Mnc)});var Onc=new Bn("SUSPENSE_CONTROLLER_TOKEN");function Pnc(a,b){if(a){var c,d=(c=a.configs)!=null?c:[];if(d.length>0){var e;return(e=d.find(function(f){return f.configKey===b}))!=null?e:d[0]}return a.config}} function Qnc(a,b){var c,d=(c=a.configs)!=null?c:[];if(d.length>0){var e,f,h;return(h=(e=d.find(function(p){return p.configKey===b}))==null?void 0:e.configKey)!=null?h:(f=d[0])==null?void 0:f.configKey}var m; return(m=a.config)==null?void 0:m.suspenseKey} var g0b=O(function(a){var b=l(ip(void 0,void 0,"SN8mFb")),c=b.next().value,d=b.next().value;b=l(ip(void 0,void 0,"bfoabf"));var e=b.next().value,f=b.next().value,h=l(kQ(function(){return{targetId:Qnc(a.data(),c()),contents:[a.data()]}})).next().value,m=function(){return Pnc(h().contents.length>0?h().contents[0]:void 0,c())},p=Fn().resolve(JB),q=Fn().resolve(Onc),t=function(I){if(I){if(z(I,Knc)){var K=a.data(); var N=c();K=(K=Qnc(K,N))?"suspense_card_load_ask_studio_card_"+K:"suspense_card_load_ask_studio_card";Yv(K);f(K)}p.resolveCommand(I)}}; lw(function(){var I,K=(I=a.data().configs)!=null?I:[];I=l(K);K=I.next();for(var N={};!K.done;N={config$jscomp$226:void 0},K=I.next())N.config$jscomp$226=K.value,N.config$jscomp$226.configKey&&(K=q.registerKeyCallback(N.config$jscomp$226.configKey,function(L){return function(){d(L.config$jscomp$226.configKey)}}(N)),zp(K))},"edls6b"); var u=function(){var I,K,N,L,R;return(R=(I=m())==null?void 0:(K=I.triggerConfigs)==null?void 0:(N=K.find(function(W){return W.entityTrigger}))==null?void 0:N.entityTrigger)!=null?R:(L=m())==null?void 0:L.entityTriggerConfig},v=fL(jCb,function(){var I,K; return(K=(I=u())==null?void 0:I.entityKey)!=null?K:""}); lw(function(){var I,K,N=(K=(I=h().contents.length>0?h().contents[0]:void 0)==null?void 0:I.configs)!=null?K:[];if(N.length>0){I=l(N);for(K=I.next();!K.done;K=I.next())if(K=K.value,K.configKey&&(N=void 0,!L&&((N=K.triggerConfigs)==null?0:N.some(function(Y){return Y.onActiveTrigger}))))var L=K.configKey; L&&d(L)}var R,W;if((R=m())==null?0:(W=R.triggerConfigs)==null?0:W.some(function(Y){var da;return((da=Y.onActiveTrigger)==null?void 0:da.triggerMode)==="ON_ACTIVE_TRIGGER_MODE_FIRST_TIME_ONLY"})){var S; t((S=m())==null?void 0:S.continuationCommand)}},"GYL2Cc"); lw(function(){if(u()){var I,K,N,L=(N=Number((I=u())==null?void 0:(K=I.invalidationTimestamp)==null?void 0:K.seconds))!=null?N:0,R,W,S;if(((S=Number((R=v())==null?void 0:(W=R.lastUpdated)==null?void 0:W.seconds))!=null?S:0)>L){var Y;t((Y=m())==null?void 0:Y.continuationCommand)}}},"mR5An"); lw(function(){w()&&e()&&OJa(e())&&(RJa(e()),f(void 0))},"s6kZ0e"); var w=function(){var I,K,N,L;return(L=(I=m())==null?void 0:(K=I.suspenseContents)==null?void 0:K.contents)!=null?L:(N=m())==null?void 0:N.contents},y=function(){var I,K,N,L; return(L=(I=m())==null?void 0:(K=I.suspenseContents)==null?void 0:K.placeholder)!=null?L:(N=m())==null?void 0:N.placeholder},A=function(){var I,K; return(I=m())==null?void 0:(K=I.suspenseContents)==null?void 0:K.error},C=Fn().resolve(Cn(e0b)); return D("yt-suspense-view-model",{class:U("ytSuspenseViewModelHost")},D(pw,null,D(jw,{when:A},function(){return D(OC,{data:A},{lockupViewModel:oS})}),D(jw,{when:w},function(){return D(OC,{data:w},Object.assign({},{lockupViewModel:oS, cardViewModel:tV},C&&{shortsLockupViewModel:function(I){return D(C,{data:I.data,scrimStyle:2,aspectRatio:1})}}))}),D(jw,{when:function(){return!w()&&!A()&&y()}},function(){return D(OC,{data:y},Object.assign({},{lockupViewModel:oS, askStudioCardLoadingViewModel:Nnc},C&&{shortsLockupViewModel:function(I){return D(C,{data:I.data,scrimStyle:2,aspectRatio:1})}}))}),D(kw,null,function(){return D(jQ,null)})))},"nj");var UJb=O(function(a){a=Hu(a,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,hasTitle:!0,isHeaderWizDefined:!1,isFooterWizDefined:!1});var b=a.Icon,c=a.Asset,d=a.assetType,e=a.Title,f=a.hasTitle,h=a.LeadingActionHeader,m=a.TrailingActionHeader,p=a.headerPosition,q=a.Content,t=a.buttonLayout,u=a.buttonStyle,v=a.primaryButtonWiz,w=a.secondaryButtonWiz,y=a.contentAlignment,A=a.isFullscreen,C=a.width,I=a.maxHeight,K=a.Header,N=a.Footer,L=a.isHeaderWizDefined, R=a.isFooterWizDefined,W=v?function(){var qb={};return v({buttonOverrides:function(){return{style:(u==null?void 0:u())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}}, className:U((qb.ytSpecDialogLayoutButton=!0,qb.ytSpecDialogLayoutDialogButtonsInlineStretched=function(){return(t==null?void 0:t())===0||(t==null?void 0:t())===2},qb))})}:void 0,S=w?function(){var qb={}; return w({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:U((qb.ytSpecDialogLayoutButton=!0,qb.ytSpecDialogLayoutDialogButtonsInlineStretched=function(){return(t==null?void 0:t())===0||(t==null?void 0:t())===2},qb))})}:void 0,Y=function(){return(!!e&&f()||!!h||!!m)&&p()===0},da={},Aa={},Sa={},Ua={}; return D("dialog-layout",{el:dB(a.elRefCallback,ikc),class:U((da.ytSpecDialogLayoutHost=!0,da.ytSpecDialogLayoutFullscreen=A,da.ytSpecDialogLayoutResponsive=function(){return!A()},da.ytSpecDialogLayoutExtendedMaxHeight=function(){return I()===1},da.ytSpecDialogLayoutAssetInset=function(){return(d==null?void 0:d())===1},da)), style:function(){return(C==null?void 0:C())!==void 0?"width: "+C()+"px;":""}},b?D("div",{class:U((Aa.ytSpecDialogLayoutIcon=!0,Aa.ytSpecDialogLayoutIconAboveMedia=function(){return!!c&&p()===1},Aa.ytSpecDialogLayoutIconCenterAlign=function(){return y()===1},Aa))},D(b,null)):null,D(P,{cond:L, then:function(){return K?D("div",{class:"ytSpecDialogLayoutDialogHeaderContainer"},D(K,null)):null}, else:function(){return D(mq,null,D(P,{cond:Y,then:function(){return D(Rnc,{contentAlignment:y,LeadingActionHeader:h,TrailingActionHeader:m,Title:e,hasTitle:f,isAboveAsset:!!c})}}),c?D("div",{class:"ytSpecDialogLayoutAsset"},D(c,{className:"ytSpecDialogLayoutAssetItem"})):null)}}),D("div",{class:U((Sa.ytSpecDialogLayoutContainer=!0,Sa.ytSpecDialogLayoutCenterAlign=function(){return(y==null?void 0:y())===1},Sa.ytSpecDialogLayoutTopPadding=function(){return!Y()&&!L()&&!(e&&f()&&!K&&(p==null?void 0:p())=== 1)||!!c&&(p==null?void 0:p())===0},Sa))},D(P,{cond:function(){return e&&f()&&!K&&(p==null?void 0:p())===1}, then:function(){return D(Rnc,{contentAlignment:y,LeadingActionHeader:h,TrailingActionHeader:m,Title:e,hasTitle:f,isAboveAsset:!1})}}),q?D("div",{class:"ytSpecDialogLayoutContent"},D("div",{class:"ytSpecDialogLayoutContentInner"},D(q,null))):null,D(P,{cond:R, then:function(){return N?D("div",{class:"ytSpecDialogLayoutFooterContainer"},D(N,null)):null}}),W||S?D(Snc,{footerClasses:U((Ua.ytSpecDialogLayoutFooterContainer=!0,Ua.ytSpecDialogLayoutFooter=!0,Ua.ytSpecDialogLayoutDialogButtonsStacked=function(){return(t==null?void 0:t())===2},Ua.ytSpecDialogLayoutDialogButtonsInlineEnd=function(){return(t==null?void 0:t())===1},Ua)), PrimaryButton:W,SecondaryButton:S}):null))},"oj"),Rnc=O(function(a){var b=Hu(a,{isAboveAsset:!1, enableLeadingActionHeader:!0}),c=b.contentAlignment,d=b.LeadingActionHeader,e=b.Title;a=b.hasTitle;var f=b.TrailingActionHeader,h=b.isAboveAsset,m=b.enableLeadingActionHeader;b={};return D("div",{class:U((b.ytSpecDialogLayoutDialogHeaderContainer=!0,b.ytSpecDialogLayoutDialogHeader=!0,b.ytSpecDialogLayoutDialogHeaderAboveAsset=h,b.ytSpecDialogLayoutCenterAlign=function(){return(c==null?void 0:c())===1&&m()},b))},D(P,{cond:function(){return m()}, then:function(){return d?D("div",{class:"ytSpecDialogLayoutLeadingActionHeader"},D(d,null)):null}}),e?D(P,{cond:a, then:function(){return D("h2",{class:"ytSpecDialogLayoutTitle"},D(e,null))}}):null,f?D("div",null,D(f,null)):null)},"pj"),Snc=O(function(a){var b=a.footerClasses; var c=a.PrimaryButton;a=a.SecondaryButton;return D("div",{class:b},a?D(a,null):null,c?D(c,null):null)},"qj");var yNb=O(function(a){var b=fL(fCb,function(){var e;return(e=a.data().dislikeEntityKey)!=null?e:""}),c=Vo(function(){var e=b(); return e?e.likeStatus==="DISLIKE":z(a.data().toggleButtonViewModel,aK).isToggled},void 0,"kxCfGf"),d=Vo(function(){return Object.assign({},z(a.data().toggleButtonViewModel,aK),{isToggled:c()})},void 0,"TrqMfc"); return D("dislike-button-view-model",{class:U("ytDislikeButtonViewModelHost",a.className)},D(CD,{data:d,buttonShapeOverrides:a.buttonShapeOverrideables,onToggle:function(e){var f=b();f&&e!==(f.likeStatus==="DISLIKE")&&f.key&&Bu(eA("likeStatusEntity",f.key,{likeStatus:e?"DISLIKE":"INDIFFERENT",hadUserInteraction:e}))}}))},"rj"); yNb.idomCompat=!0;var ANb=O(function(a){var b=x("web_supports_animations_api"),c={ytSysMeasurementReference:"YT_SYS_MEASUREMENT_REFERENCE_ACTION_HEIGHT_STANDARD"},d=OD(function(){return c}),e=function(){if(x("enable_button_height_token_killswitch"))return 36; var A;return(A=WK(d()))!=null?A:36},f=fC(function(A){var C=v(); if(!A){var I,K;return{numberText:(K=C==null?void 0:(I=C.likeCountIfIndifferent)==null?void 0:I.content)!=null?K:"",numberValue:Number(C==null?void 0:C.likeCountIfIndifferentNumber),heightPx:e(),shouldAnimate:!1}}var N;I=(C==null?void 0:(N=C.likeCountIfIndifferent)==null?void 0:N.content)!==A.numberText;if(t()||!I)return A;var L;return{numberText:(C==null?void 0:(L=C.likeCountIfIndifferent)==null?void 0:L.content)||"",numberValue:Number(C==null?void 0:C.likeCountIfIndifferentNumber),heightPx:e(),shouldAnimate:!!C}}), h=fC(function(A){var C=v(); if(!A){var I,K;return{numberText:(K=C==null?void 0:(I=C.likeCountIfLiked)==null?void 0:I.content)!=null?K:"",numberValue:Number(C==null?void 0:C.likeCountIfLikedNumber),heightPx:e(),shouldAnimate:!1}}var N;I=(C==null?void 0:(N=C.likeCountIfIndifferent)==null?void 0:N.content)!==A.numberText;if(t()||!I)return A;var L;return{numberText:(C==null?void 0:(L=C.likeCountIfLiked)==null?void 0:L.content)||"",numberValue:Number(C==null?void 0:C.likeCountIfLikedNumber),heightPx:e(),shouldAnimate:!!C}}),m=l(ip(void 0, void 0,"hC0PBb")),p=m.next().value,q=m.next().value,t=p,u=fL(fCb,function(){var A,C; return(C=(A=a.data())==null?void 0:A.likeStatusEntityKey)!=null?C:""}),v=fL(gCb,function(){var A,C; return((A=a.likeCountEntity)==null?void 0:(C=A.call(a))==null?void 0:C.key)||""}),w=Vo(function(){var A; return((A=u())==null?void 0:A.likeStatus)==="LIKE"},void 0,"xvEcmc"),y=function(){var A; return b&&!((A=a.likeCountEntity)==null||!A.call(a))}; return D("like-button-view-model",{class:U("ytLikeButtonViewModelHost",a.className)},D(CD,{data:function(){var A=Object,C=A.assign,I;var K=z((I=a.data())==null?void 0:I.toggleButtonViewModel,aK);return C.call(A,{},K||{},{isToggled:w()})}, buttonShapeOverrides:a.buttonShapeOverrideables,animatedTextPropsDefault:function(){return y()?f():void 0}, animatedTextPropsToggled:function(){return y()?h():void 0}, onToggle:function(A){Tnc(A,u(),t(),q)}, style:function(){var A;return((A=a.disableIconAnimation)==null?0:A.call(a))?void 0:{animateIcon:"true"}}}))},"sj"); ANb.idomCompat=!0;function Tnc(a,b,c,d){c&&bj.cancelJob(c);c=bj.addLowPriorityJob(function(){d(void 0)},5E3); d(c);b&&a!==(b.likeStatus==="LIKE")&&b.key&&Bu(dA("likeStatusEntity",b.key,{key:b.key,likeStatus:a?"LIKE":"INDIFFERENT",hadUserInteraction:a}))} ;var Unc=O(function(a){a=Hu(a,{disabled:!1});var b=a.active,c=a.disabled;a={};a=U("ytSwitchShapeTrack",(a.ytSwitchShapeTrackActive=function(){return b()},a.ytSwitchShapeTrackDisabled=function(){return c()},a)); var d={};d=U("ytSwitchShapeKnob",(d.ytSwitchShapeKnobActive=function(){return b()},d)); return D("switch-shape",{class:"ytSwitchShapeHost"},D("div",{class:a}),D("div",{class:d}))},"tj");var o1a=O(function(a){var b=Hu(a,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),c=b.data;a=b.className;var d=b.handleOnTapEventInParent,e=b.parentActive,f=b.onTap;b=l(Gu(function(){var v;return(v=e())!=null?v:c().switchedOnByDefault||!1})); var h=b.next().value,m=b.next().value,p=function(){return c().isDisabled},q=sw("button"); b=FC(function(v){return v.key==="Enter"?(v.preventDefault(),q.value.click(),!1):!0}); var t=FC(function(v){if(c().handleOnTapEventInParent||d())return!0;if(p())return!1;if(f)return f(v),!0;b2a(c(),h(),v);m(!h());return!1}),u={}; u=U("ytSwitchButtonViewModelButton",(u.ytSwitchButtonViewModelTappable=function(){return!p()},u)); return D("switch-button-view-model",{class:U("ytSwitchButtonViewModelHost",a)},D("button",{el:q,class:u,"on:click":t,"on:keydown":b,"aria-label":function(){return h()?c().a11yLabelSwitchedOn:c().a11yLabelSwitchedOff}, "aria-checked":h,"aria-disabled":p,role:"switch"},D(Unc,{active:h,disabled:p})))},"uj");function Vnc(a){switch(GRb(a)){case 18:return"ytSpecAvatarShapeAvatarInClusterSize18";case 20:return"ytSpecAvatarShapeAvatarInClusterSize20";case 22:return"ytSpecAvatarShapeAvatarInClusterSize22";case 24:return"ytSpecAvatarShapeAvatarInClusterSize24";default:return"";}} function Wnc(a){switch(a){case"tiny":return"ytSpecAvatarShapeAvatarSizeTiny";case"extra-small":return"ytSpecAvatarShapeAvatarSizeExtraSmall";case"small":return"ytSpecAvatarShapeAvatarSizeSmall";case"medium":return"ytSpecAvatarShapeAvatarSizeMedium";case"48":return"ytSpecAvatarShapeAvatarSize48";case"large":return"ytSpecAvatarShapeAvatarSizeLarge";case"extra-large":return"ytSpecAvatarShapeAvatarSizeExtraLarge";case"extra-extra-large":return"ytSpecAvatarShapeAvatarSizeExtraExtraLarge";case"giant":return"ytSpecAvatarShapeAvatarSizeGiant"; case"responsive":return"ytSpecAvatarShapeAvatarSizeResponsive";default:return"";}} function Xnc(a){switch(GRb(a)){case 18:return"ytSpecAvatarShapeButtonInClusterSize18";case 20:return"ytSpecAvatarShapeButtonInClusterSize20";case 22:return"ytSpecAvatarShapeButtonInClusterSize22";case 24:return"ytSpecAvatarShapeButtonInClusterSize24";default:return"";}} function Ync(a){switch(a){case"tiny":return"ytSpecAvatarShapeButtonTiny";case"extra-small":return"ytSpecAvatarShapeButtonExtraSmall";case"small":return"ytSpecAvatarShapeButtonSmall";case"medium":return"ytSpecAvatarShapeButtonMedium";case"48":return"ytSpecAvatarShapeButton48";case"large":return"ytSpecAvatarShapeButtonLarge";case"extra-large":return"ytSpecAvatarShapeButtonExtraLarge";case"extra-extra-large":return"ytSpecAvatarShapeButtonExtraExtraLarge";case"giant":return"ytSpecAvatarShapeButtonGiant"; case"responsive":return"ytSpecAvatarShapeButtonResponsive";default:return"";}} function Znc(a){switch(a){case"tiny":return 16;case"extra-small":return 24;case"small":return 32;case"medium":return 36;case"48":return 48;case"large":return 56;case"extra-large":return 72;case"extra-extra-large":return 120;case"giant":return 160;default:return 0;}} function $nc(a){return a==="medium"||a==="48"||a==="large"||a==="extra-large"||a==="extra-extra-large"||a==="giant"} function aoc(a){return!!((a==null?0:a.includes(3))||(a==null?0:a.includes(5)))} var yIb=O(function(a){var b=a.data;var c=a.image;var d=a.state;var e=a.iconType;var f=a.overlays;var h=a.isOverlay;var m=tw("div");a=l(ip(!0,void 0,"ijD5me"));var p=a.next().value,q=a.next().value,t=function(){return!!b().onTap},u=function(){var y; return(y=e==null?void 0:e())!=null?y:"LIVE"},v=function(){return b().badgeIcon}; lw(function(){var y=b();requestAnimationFrame(function(){if(m.value===null)var A=!0;else{var C=m.value;A=y.badgeText;var I=FRb(y.size);A in ERb?C=ERb[A]:(C=C.clientWidth,ERb[A]=C);(A=C>I)?m.value.style.display="none":m.value.style.visibility="visible"}q(A)})},"HSfNV"); var w=function(){var y={};return y.ytSpecAvatarShapeImage=!0,y.ytSpecAvatarShapeAdsApp=b().type===1,y.ytSpecAvatarShapeInscribedSquare=b().type===2,y}; return D("yt-avatar-shape",null,D("div",{el:dB(Z1a(t,{keydown:function(y){if(y.key==="Enter"){var A;(A=y.currentTarget)==null||A.click()}}, click:function(y){var A,C;return void((C=(A=b()).onTap)==null?void 0:C.call(A,y))}})), class:function(){var y={ytSpecAvatarShapeHost:!0,ytSpecAvatarShapeButton:!0},A=b();y=(y[A.clusterLayoutConfig?Xnc(A.clusterLayoutConfig):Ync(A.size)]=!0,y.ytSpecAvatarShapeTappable=t(),y);(A=b().avatarButtonCustomClassName)&&(y[A]=!0);return t_(y)}, "aria-label":function(){return t()?b().accessibilityText:""}, role:function(){return t()?"button":void 0}, tabindex:function(){return t()?0:void 0}},D("div",{class:function(){var y,A=b(),C=d==null?void 0:d(),I=h==null?void 0:h(),K=!((y=A.decorations)==null||!y.includes(2)||A.size!=="medium"&&A.size!=="large"),N=A.size==="tiny"||A.size==="extra-small",L,R,W,S,Y={}; y=(Y.ytSpecAvatarShapeLiveRing=!!(((L=A.decorations)==null?0:L.includes(0))&&$nc(A.size)),Y.ytSpecAvatarShapeStoriesWatched=K&&!(C==null||!C.storiesWatched),Y.ytSpecAvatarShapeStoriesUnwatched=K&&!(C==null?0:C.storiesWatched),Y.ytSpecAvatarShapeBackgroundBorder=aoc(A.decorations)&&!N,Y.ytSpecAvatarShapeBackgroundBorderThin=aoc(A.decorations)&&N,Y.ytSpecAvatarShapeOnSelectBorder=!((R=A.decorations)==null||!R.includes(4)),Y.ytSpecAvatarShapeWhiteBorder=!((W=A.decorations)==null||!W.includes(5)),Y.ytSpecAvatarShapeWhiteBorderThin= !!(((S=A.decorations)==null?0:S.includes(5))&&N),Y.ytSpecAvatarShapeIsOverlay=!!I,Y);return t_(y)}, style:function(){a:{var y=b().clusterLayoutConfig;if(y){b:{var A=y.numAvatarsInCluster;var C=y.avatarIndex;if(C!==A-1){switch(y.clusterSize){case"small":y="32";break;case"medium":y="36";break;case"40":y="40";break;default:A=void 0;break b;}A="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+y+"x"+y+"_avatars_"+A+"_index_"+C+".svg"}else A=void 0}if(A){A=GC({"-webkit-mask-image":"url("+A+")","mask-image":"url("+A+")","--webkit-mask-size":"100%","--mask-size":"100%", "-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}A=void 0}return A}},D("div",{class:function(){var y={}; var A=b();y=(y[A.clusterLayoutConfig?Vnc(A.clusterLayoutConfig):Wnc(A.size)]=!0,y.ytSpecAvatarShapeNoMargin=aoc(b().decorations),y.ytSpecAvatarShapeSquare=b().type===2,y);return t_(y)}},D(eC,{data:c, alt:function(){return!t()&&b().accessibilityText?b().accessibilityText:""}, targetWidth:function(){return Znc(b().size)}, targetHeight:function(){return Znc(b().size)}, className:function(){return t_(w())}}),D(P,{cond:function(){var y; return((y=b().decorations)==null?void 0:y.includes(0))&&$nc(b().size)}, then:function(){return D("div",{class:function(){var y={};y=(y.ytSpecAvatarShapeLiveBadge=!0,y.ytSpecAvatarShapeLiveBadgeSmall=b().size==="small",y.ytSpecAvatarShapeLiveBadgeMedium=b().size==="medium"||b().size==="48",y.ytSpecAvatarShapeLiveBadgeLarge=b().size==="large",y.ytSpecAvatarShapeLiveBadgeExtraLarge=b().size==="extra-large"||b().size==="extra-extra-large"||b().size==="giant",y);return t_(y)}},D(P,{cond:function(){return b().badgeText}, then:function(y){return D("div",{class:"ytSpecAvatarShapeLiveBadgeText",el:m},y)}}),D(P,{cond:p, then:function(){return D("div",{class:"ytSpecAvatarShapeLiveBadgeIcon"},D(aC,{icon:u,size:function(){a:switch(b().size){case"extra-large":var y=16;break a;default:y=13;}return y}}))}}))}}),D(P,{cond:function(){var y,A; return((y=b().decorations)==null?void 0:y.includes(1))||((A=b().decorations)==null?void 0:A.includes(0))&&!$nc(b().size)}, then:function(){return D("div",{class:function(){var y=b(),A,C,I={};var K=(I.ytSpecAvatarShapeLiveDot=!((A=y.decorations)==null||!A.includes(0)||$nc(y.size)),I.ytSpecAvatarShapeNewContent=!((C=y.decorations)==null||!C.includes(1)),I);return t_(K)}})}}),D(P,{cond:function(){return!!f}, then:function(){return D("div",{class:function(){var y={};y=Object.assign((y.ytSpecAvatarShapeImageOverlays=!0,y),w());return t_(y)}},f==null?void 0:f())}}),D(P,{cond:v, then:function(){return D("div",{class:function(){var y={};y=(y.ytSpecAvatarShapeBadgeIconContainer=!0,y.ytSpecAvatarShapeBadgeIconContainerTiny=b().size==="tiny",y.ytSpecAvatarShapeBadgeIconContainerExtraSmall=b().size==="extra-small",y.ytSpecAvatarShapeBadgeIconContainerSmall=b().size==="small",y.ytSpecAvatarShapeBadgeIconContainerMedium=b().size==="medium",y.ytSpecAvatarShapeBadgeIconContainer48=b().size==="48",y.ytSpecAvatarShapeBadgeIconContainerLarge=b().size==="large",y.ytSpecAvatarShapeBadgeIconContainerExtraLarge= b().size==="extra-large",y.ytSpecAvatarShapeBadgeIconContainerExtraExtraLarge=b().size==="extra-extra-large",y.ytSpecAvatarShapeBadgeIconContainerGiant=b().size==="giant",y);return t_(y)}, style:GC({"background-color":function(){return b().badgeIconBorderColor}})},D(aC,{icon:v, className:"ytSpecAvatarShapeBadgeIcon",style:GC({color:function(){return b().badgeIconColor}})}))}})))))},"wj"); yIb.idomCompat={callbacks:{overlays:!0}};var dVb=O(function(a){var b=a.data;var c=a.customCommandResolver;var d=a.className;var e=a.buttonClassName;var f=a.animationEntityKey;var h=eL(AT);return D("carousel-button-view-model",{class:U("ytwCarouselButtonViewModelHost",d)},D(OC,{data:function(){return b().carousel}},{carouselAdCardCollectionViewModel:function(m){return D(Ekc,{data:m.data, customCommandResolver:c})}}),D(OC,{data:function(){return b().button}},{adButtonViewModel:function(m){var p=m.data; return D(xT,{data:function(){return h()===1?Object.assign({},p(),{style:"AD_BUTTON_STYLE_TONAL"}):p()}, className:e,customCommandResolver:c,animationEntityKey:f})}}))},"xj");var boc=O(function(a){var b=a.data;var c=a.customCommandResolver;return D(mq,null,D("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},D(OC,{data:function(){return b().adAvatar}},{adAvatarViewModel:function(d){return D(Ukc,{data:d.data, customCommandResolver:c})}})),D("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},D(P,{cond:function(){return b().headline}, then:function(d){return D(gC,{text:d,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),D("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},D(OC,{data:function(){return b().adBadge}},{adBadgeViewModel:function(d){return D(ET,{data:d.data, hasDot:function(){return b().primaryDetailsLine!==void 0}, customCommandResolver:c,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),D(OC,{data:function(){return b().primaryDetailsLine}},{adDetailsLineViewModel:function(d){return D(D1,{data:d.data, customCommandResolver:c,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"yj"),rfc=O(function(a){var b=a.data; var c=a.customCommandResolver;a=vw({visibilityCallback:function(d){var e,f=(e=b().interaction)==null?void 0:e.onFirstVisible;d&&f&&QB(f)}, showOption:tT});return D("ad-avatar-lockup-view-model",{class:function(){var d;return((d=b().interaction)==null?0:d.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"}, el:dB(a,wT(function(){return b().interaction},c)), "aria-label":function(){var d,e;return(d=b().interaction)==null?void 0:(e=d.accessibility)==null?void 0:e.label}},D(pw,null,D(jw,{when:function(){return b().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return D(boc,{data:b, customCommandResolver:c})}),D(kw,null,function(){return null})))},"zj");var WUb=O(function(a){var b=a.data,c=a.customCommandResolver;a=vw({visibilityCallback:function(e){var f,h=(f=b().interaction)==null?void 0:f.onFirstVisible;e&&h&&QB(h)}, showOption:tT});c=wT(function(){return b().interaction},c); var d={};return D("ad-text-image-view-model",{class:U("ytwAdTextImageViewModelHost",(d.ytwAdTextImageViewModelHostDarkBackground=function(){return b().style==="AD_TEXT_IMAGE_STYLE_DARK_BACKGROUND"},d)), el:dB(a,c),"aria-label":function(){var e,f;return(e=b().interaction)==null?void 0:(f=e.accessibility)==null?void 0:f.label}},D("div",{class:"ytwAdTextImageViewModelHostHeadlineContainer"},D(gC,{text:function(){return b().headline}, className:"ytwAdTextImageViewModelHostHeadlineContainerHeadline",linkInheritColor:!0,noEndpoints:!0})),D(P,{cond:function(){return b().overlayIcon}, then:function(e){return D("div",{class:"ytwAdTextImageViewModelHostOverlayIconContainer"},D(eC,{data:e,alt:"",className:"ytwAdTextImageViewModelHostOverlayIconContainerOverlayIcon"}))}}))},"Aj");var MUb=O(function(a){var b=a.data,c=a.listenToTapEvent;a=vw({visibilityCallback:function(h){var m,p=(m=b().interaction)==null?void 0:m.onFirstVisible;h&&p&&QB(p)}, showOption:tT});var d=wT(function(){return b().interaction},void 0,function(){return!x("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(c==null?void 0:c())}),e=FC(function(h){if(x("enable_web_home_top_landscape_image_layout_legacy_click_command")){var m,p=(m=b().interaction)==null?void 0:m.onTap; p&&Gt(h.currentTarget,"yt-navigate",{endpoint:LB(p)})}}),f=function(){}; return D("ad-button-hover-overlay-view-model",{"on:click":e,class:function(){var h;return((h=b().interaction)==null?0:h.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"}, el:dB(a,d)},function(){return x("enable_web_home_top_landscape_image_layout_legacy_click_command")?D(OC,{data:function(){return b().button}},{adButtonViewModel:function(h){return D(xT,{data:h.data, customCommandResolver:f})}}):D(OC,{data:function(){return b().button}},{adButtonViewModel:xT})}())},"Bj");var coc=O(function(a){var b=a.data;var c=a.typographyBump;var d=function(){return b().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"},e=function(){return{size:"M"}}; a={};var f={};return D(mq,null,D("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},D(gC,{text:function(){return b().headline}, className:U("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(a.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return d==null?void 0:d()},a.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(c==null?void 0:c())&&!(d==null?0:d())},a)), linkInheritColor:!0}),D(P,{cond:function(){return b().description}, then:function(h){var m={};return D(gC,{text:h,className:U("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(m.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return d==null?void 0:d()},m.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(c==null?void 0:c())&&!(d==null?0:d())},m)), linkInheritColor:!0})}}),D(P,{cond:function(){return b().secondaryDescription}, then:function(h){var m={};return D(gC,{text:h,className:U("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(m.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return c==null?void 0:c()},m)), linkInheritColor:!0})}}),D("div",{class:function(){return d()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},D(P,{cond:function(){return b().adAvatar}, then:function(){return D("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},D(OC,{data:function(){return b().adAvatar}},{adAvatarViewModel:Ukc}))}}),D(OC,{data:function(){return b().adBadge}},{adBadgeViewModel:function(h){return D(ET,{data:h.data, hasDot:function(){return!!b().adDetailsLine}, adRenderingContextType:function(){return b().adRenderingContextType}})}}),D(OC,{data:function(){return b().adDetailsLine}},{adDetailsLineViewModel:function(h){return D(D1,{data:h.data, adRenderingContextType:function(){return b().adRenderingContextType}})}}))),D("div",{class:U("ytwFeedAdMetadataViewModelHostMenuButton",(f.ytwFeedAdMetadataViewModelHostMenuButtonMenuPosAdjusted=function(){return b().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"},f))},D(OC,{data:function(){return b().menu}},{buttonViewModel:function(h){return D(AD,{data:h.data, buttonOverrides:e})}})))},"Cj"),doc=O(function(a){var b=a.data; var c=a.noBottomMargin;var d=a.useVideoLockupTopPadding;var e=a.typographyBump;a={};a=U("ytwFeedAdMetadataViewModelHostMetadata",(a.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return c==null?void 0:c()},a.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return d==null?void 0:d()},a)); var f=function(){return b().adBadge}; f!==void 0&&f!==null||Yk(Error("No adBadge data filled at FeedAdMetadata."));f={};var h={};return D(mq,null,D(P,{cond:function(){return b().adAvatar}, then:function(){return D("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},D(OC,{data:function(){return b().adAvatar}},{adAvatarViewModel:function(m){return D(Ukc,{data:m.data})}}))}}),D("div",{class:a},D("div",{class:U("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(f.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return e==null?void 0:e()},f.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(e== null?void 0:e())&&x("web_enable_typography_bump_v2")},f))},D(gC,{text:function(){return b().headline}, linkInheritColor:!0})),D(P,{cond:function(){return b().description}, then:function(m){return D(gC,{text:m,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),D("div",{class:"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"},D(OC,{data:function(){return b().adBadge}},{adBadgeViewModel:function(m){return D(ET,{data:m.data, hasDot:function(){return!!b().adDetailsLine}, adRenderingContextType:function(){return b().adRenderingContextType}})}}),D(OC,{data:function(){return b().adDetailsLine}},{adDetailsLineViewModel:function(m){return D(D1,{data:m.data, adRenderingContextType:function(){return b().adRenderingContextType}})}})),D(P,{cond:function(){return b().secondaryDescription}, then:function(m){return D(gC,{text:m,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),D("div",{class:U("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(h.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return d==null?void 0:d()},h.ytwFeedAdMetadataViewModelHostMenuStyleStandardMenuPosAdjusted=function(){return b().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"},h))},D(OC,{data:function(){return b().menu}},{buttonViewModel:AD})))}, "Dj"),oRb=O(function(a){var b=a.data; var c=a.noBottomMargin;var d=a.listenToTapEvent;var e=a.setTouchEndHandler;var f=a.useVideoLockupTopPadding;var h=a.typographyBump;a=vw({visibilityCallback:function(u){var v,w=(v=b().interaction)==null?void 0:v.onFirstVisible;u&&w&&QB(w)}, showOption:tT});var m=wT(function(){return b().interaction},void 0,function(){return d==null?void 0:d()}),p=l(ip(!1,void 0,"A6DxNe")),q=p.next().value,t=p.next().value; p=FC(function(u){(e==null?0:e())&&!q()&&(u.currentTarget.click(),t(!0),setTimeout(function(){t(!1)},100)); return!1}); return D("feed-ad-metadata-view-model",{class:function(){var u;return((u=b().interaction)==null?0:u.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"}, el:dB(a,m),"on:touchend":p},D(pw,null,D(jw,{when:function(){return b().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return D(coc,{data:b, typographyBump:h})}),D(jw,{when:function(){return b().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return D(doc,{data:b, noBottomMargin:c,useVideoLockupTopPadding:f,typographyBump:h})})))},"Ej");var eoc=O(function(a){var b=a.data;return D("feed-ad-sitelink-view-model",{class:function(){var c;return((c=b().interaction)==null?0:c.onTap)?"ytwFeedAdSitelinkViewModelHostIsClickableAdComponent":"ytwFeedAdSitelinkViewModelHost"}, el:dB(wT(function(){return b().interaction},a.customCommandResolver,void 0,function(){return!0})), "aria-label":function(){var c,d;return(c=b().interaction)==null?void 0:(d=c.accessibility)==null?void 0:d.label}, role:"link",tabindex:0},D(gC,{text:function(){return b().headline}, className:"ytwFeedAdSitelinkViewModelHeadline",linkInheritColor:!0}))},"Fj");var ZUb=O(function(a){var b=a.data;a=vw({visibilityCallback:function(d){var e,f=(e=b().interaction)==null?void 0:e.onFirstVisible;d&&f&&QB(f)}, showOption:tT});var c={};return D("feed-ad-sitelinks-carousel-view-model",{el:dB(a),class:U("ytwFeedAdSitelinksCarouselViewModelHost",(c.ytwFeedAdSitelinksCarouselViewModelHostDefault=function(){return b().style==="FEED_AD_SITELINKS_STYLE_NONE"},c))},D(OC,{data:function(){return b().sitelinks}},{feedAdSitelinkViewModel:eoc}))},"Gj");var foc=O(function(a){var b=a.data;var c=a.customCommandResolver;a=vw({visibilityCallback:function(d){var e,f=(e=b().interaction)==null?void 0:e.onFirstVisible;d&&f&&QB(f)}, showOption:tT});return D("ad-grid-card-image-full-metadata-view-model",{class:function(){var d;return((d=b().interaction)==null?0:d.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"}, el:dB(a,wT(function(){return b().interaction},c)), "aria-label":function(){var d,e;return(d=b().interaction)==null?void 0:(e=d.accessibility)==null?void 0:e.label}},D("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},D(OC,{data:function(){return b().adImage}},{adImageViewModel:function(d){return D(JUb,{data:d.data, customCommandResolver:c})}})),D("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},D(P,{cond:function(){return b().headline}, then:function(d){return D(gC,{text:d,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),D(P,{cond:function(){return b().detailsLine}, then:function(d){return D("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},D(OC,{data:d},{adDetailsLineViewModel:function(e){return D(D1,{data:e.data,customCommandResolver:c,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),D(P,{cond:function(){return b().secondaryDetailsLine}, then:function(d){var e={};return D("div",{class:U((e.ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary=function(){return!b().displayDateForNightlyHotelRate},e))},D(OC,{data:d},{adDetailsLineViewModel:function(f){return D(D1,{data:f.data, customCommandResolver:c,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),D(P,{cond:function(){return b().ternaryDetailsLine}, then:function(d){return D("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataTernary"},D(OC,{data:d},{adDetailsLineViewModel:function(e){return D(D1,{data:e.data,customCommandResolver:c,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Hj");var goc=O(function(a){var b=a.data;var c=a.customCommandResolver;a=vw({visibilityCallback:function(d){var e,f=(e=b().interaction)==null?void 0:e.onFirstVisible;d&&f&&QB(f)}, showOption:tT});return D("ad-grid-card-image-view-model",{class:function(){var d;return((d=b().interaction)==null?0:d.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"}, el:dB(a,wT(function(){return b().interaction},c)), "aria-label":function(){var d,e;return(d=b().interaction)==null?void 0:(e=d.accessibility)==null?void 0:e.label}},D(OC,{data:function(){return b().adImage}},{adImageViewModel:function(d){return D(JUb,{data:d.data, customCommandResolver:c})}}),D("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},D(OC,{data:function(){return b().adCardBadge}},{adCardBadgeViewModel:ykc})))},"Ij");var hoc=O(function(a){var b=a.data;var c=a.customCommandResolver;a=vw({visibilityCallback:function(d){var e,f=(e=b().interaction)==null?void 0:e.onFirstVisible;d&&f&&QB(f)}, showOption:tT});return D("ad-grid-card-text-view-model",{class:function(){var d;return((d=b().interaction)==null?0:d.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"}, el:dB(a,wT(function(){return b().interaction},c)), "aria-label":function(){var d,e;return(d=b().interaction)==null?void 0:(e=d.accessibility)==null?void 0:e.label}},D("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},D(P,{cond:function(){return b().title}, then:function(d){return D(gC,{text:d,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),D("div",{class:"ytwAdGridCardTextViewModelHostMetadataDescriptionInline"},D(mw,{each:function(){var d; return((d=b())==null?void 0:d.descriptions)||[]}, keyBy:"INDEX"},function(d){return D(gC,{text:d,className:"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline"})}))),D("div",{class:"ytwAdGridCardTextViewModelHostButton"},D(OC,{data:function(){return b().moreInfoButton}},{adButtonViewModel:function(d){return D(xT,{data:d.data, customCommandResolver:c})}})))},"Jj");function ioc(a){switch(a){case"AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN":return 1;case"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS":return 6;case"AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":return 2;default:return 3;}} var L8b=O(function(a){var b=a.data;var c=a.customCommandResolver;var d=a.adGridCardCollectionStyle;a=vw({visibilityCallback:function(e){var f,h=(f=b().interaction)==null?void 0:f.onFirstVisible;e&&h&&QB(h)}, showOption:tT});return D("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"}, el:dB(a),style:function(){return"grid-template-columns: repeat("+ioc(d?d():b().style)+", minmax(0, 1fr));"}},D(OC,{data:function(){var e; return(e=b())==null?void 0:e.gridCards}},{adGridCardImageViewModel:function(e){return D(goc,{data:e.data, customCommandResolver:c})}, adGridCardImageFullMetadataViewModel:function(e){return D(foc,{data:e.data,customCommandResolver:c})}, adGridCardTextViewModel:function(e){return D(hoc,{data:e.data,customCommandResolver:c})}}))},"Kj");var joc=new Qk("continuationItemViewModel");function koc(a,b){var c=c===void 0?"INSERTION_POSITION_UNSPECIFIED":c;var d=d===void 0?"contents":d;MMb({targetId:a},function(e){var f,h=(f=e[d])!=null?f:[];f=b!=null?b:[];var m=loc(h);switch(c){case"INSERTION_POSITION_UNSPECIFIED":h=[].concat(ia(h.slice(0,m)),ia(f),ia(h.slice(m+1)));break;case"INSERTION_POSITION_FIRST":h=[].concat(ia(f),ia(h));break;case"INSERTION_POSITION_LAST":h=[].concat(ia(h),ia(f));break;default:return e;}f={};return Object.assign({},e,(f[d]=h,f))})} function loc(a){var b=a.findIndex(function(c){return z(c,vJ)||z(c,joc)}); return b>=0?b:a.length} ;var YJb=O(function(a){var b=a.data;var c=l(kQ(b)).next().value;CH("yt-append-continuation-items-action",function(d){(d=z(d,hmb))&&d.targetId&&d.targetId===c().targetId&&koc(d.targetId,d.continuationItems)}); return D("yt-channel-blocks-view-model",{class:"ytwChannelBlocksViewModelHost"},D(OC,{data:function(){return b().searchInput}},{searchInputViewModel:function(d){return D("div",{class:"ytwChannelBlocksViewModelSearchContainer"},D(Nzb,{data:d.data}))}}),D("div",{class:"ytwChannelBlocksViewModelListWrapper", role:"list","data-target-id":function(){return b().targetId}},D(OC,{data:function(){return c().contents}},{listItemViewModel:function(d){return D(RD,{data:d.data, disableHorizontalPadding:!0})}, continuationItemViewModel:Cfc})))},"Lj"); YJb.idomCompat=!0;var Afc=O(function(a){function b(){var m=a.data();m&&!e()&&m.trigger==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&m.continuationCommand&&(f(!0),QB(m.continuationCommand,{commandController:{onSuccess:function(){f(!1)}, onServerError:function(){f(!1)}}}))} var c=l(ip(!1,void 0,"TkDVCb")),d=c.next().value;c=c.next().value;var e=d,f=c,h;lw(function(){var m=a.data(),p,q,t=(q=(p=a.continuationTriggerOffset)==null?void 0:p.call(a))!=null?q:0;if(h&&m){if(window.IntersectionObserver){var u=new IntersectionObserver(function(y){if(y.some(function(C){return C.isIntersecting})){b(); var A;(A=u)==null||A.disconnect()}},{rootMargin:"0px 0px "+t+"px", threshold:0});u.observe(h)}else{var v=function(){if(h){var y=h.getBoundingClientRect();if(y.top<(window.innerHeight||document.documentElement.clientHeight)+t&&y.bottom>0){b();var A;(A=w)==null||A()}}}; window.addEventListener("scroll",v,{passive:!0,capture:!0});window.addEventListener("resize",v,{passive:!0});v();var w=function(){window.removeEventListener("scroll",v,{capture:!0});window.removeEventListener("resize",v)}}zp(function(){var y; (y=u)==null||y.disconnect();var A;(A=w)==null||A()})}},"eSaCmd"); return D("yt-continuation-item-view-model",{class:U("ytContinuationItemViewModelHost",a.className),el:dB(function(m){h=m})},D(P,{cond:e, then:function(){return D(jQ,null)}}))},"Nj");var E1=O(function(a){var b=a.starNumber;var c=a.data;var d=function(){var e;return((e=c())==null?void 0:e.rating)||0}; return D(P,{cond:function(){return b()}, then:function(e){return D(pw,null,D(jw,{when:function(){return d()>=e()-.25}},function(){return D("div",{class:"ytStarRatingViewModelHostStar"},D(aC,{icon:"STAR_FILLED", size:function(){return 24}}))}),D(jw,{when:function(){return d()>=e()-.75}},function(){return D("div",{class:"ytStarRatingViewModelHostStar"},D(aC,{icon:"STAR_HALF", active:!0,size:function(){return 24}}))}),D(kw,null,function(){return D("div",{class:"ytStarRatingViewModelHostStar"},D(aC,{icon:"STAR", size:function(){return 24}}))}))}})},"Oj"),g1b=O(function(a){a=a.data; return D("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},D(E1,{starNumber:1,data:a}),D(E1,{starNumber:2,data:a}),D(E1,{starNumber:3,data:a}),D(E1,{starNumber:4,data:a}),D(E1,{starNumber:5,data:a}))},"Pj");var moc=O(function(a){var b=function(){var c;return(c=a.data())==null?void 0:c.image}; return D("yt-featured-content-item-view-model",{class:U("ytFeaturedContentItemViewModelHost")},D("div",{class:U(function(){return b()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},D("div",{class:function(){return b()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},D(P,{cond:b, then:function(){return D("div",{class:"ytFeaturedContentItemViewModelImage"},D(OC,{data:function(){return a.data().image}},{themedImageViewModel:function(c){return D(IX,{data:c.data, className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),D(P,{cond:function(){var c; return!b()&&((c=a.data())==null?void 0:c.iconName)}, then:function(){return D("div",{class:"ytFeaturedContentItemViewModelIcon"},D(aC,{icon:function(){return a.data().iconName}}))}}),D("div",{class:"ytFeaturedContentItemViewModelContent"},D(P,{cond:function(){var c; return(c=a.data())==null?void 0:c.title}, then:function(){return D("div",{class:"ytFeaturedContentItemViewModelContentTitle"},D(gC,{text:function(){return a.data().title}}))}}),D(P,{cond:function(){var c; return(c=a.data())==null?void 0:c.body}, then:function(){return D("div",{class:"ytFeaturedContentItemViewModelContentBody"},D(gC,{text:function(){return a.data().body}}))}})))))},"Qj");function noc(a){switch(a){case"LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleContentFontSizeXS";case"LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleContentFontSizeS";case"LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleContentFontSizeM";default:return"ytLandingPageViewModelHeaderTitleContentFontSizeL";}} function ooc(a){switch(a){case"LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXS";case"LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeS";case"LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeM";case"LANDING_PAGE_YOUTUBE_FONT_SIZE_L":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL";case"LANDING_PAGE_YOUTUBE_FONT_SIZE_XL":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXL"; default:return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL";}} var x7b=O(function(a){var b=function(){var e;return noc((e=a.data())==null?void 0:e.titleFontSize)},c=function(){var e; return ooc((e=a.data())==null?void 0:e.descriptionFontSize)},d=function(){var e; return((e=a.data())==null?void 0:e.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"}; return D("yt-landing-page-view-model",{class:U("ytLandingPageViewModelHost",a.className)},D("div",{class:"ytLandingPageViewModelHeader"},D(P,{cond:function(){var e;return(e=a.data())==null?void 0:e.bannerImage}, then:function(e){return D("div",{class:"ytLandingPageViewModelHeaderImage"},D(OC,{data:function(){return e()}},{imageBannerViewModel:function(f){return D(Rbc,{data:f.data, isPositionRelative:!0})}}))}}),D(P,{cond:function(){var e; return(e=a.data())==null?void 0:e.bannerAnimation}, then:function(e){return D(YA,{data:function(){var f=e();if(f==null?0:f.url){var h;f={path:(h=f==null?void 0:f.url)!=null?h:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(f==null?0:f.payload){var m;f={animationData:JSON.parse((m=f==null?void 0:f.payload)!=null?m:""),autoplay:!0,loop:!0,renderer:"svg"}}else f=void 0;return{animationConfig:f}}, animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),D("div",{class:"ytLandingPageViewModelHeaderTitle"},D(P,{cond:function(){var e; return(e=a.data())==null?void 0:e.title}, then:function(e){return D("div",{class:U("ytLandingPageViewModelHeaderTitleContent",b)},D(gC,{text:function(){return e()}}))}}),D(P,{cond:function(){var e; return(e=a.data())==null?void 0:e.description}, then:function(e){var f={};return D(gC,{className:U("ytLandingPageViewModelHeaderTitleDescription",c,(f.ytLandingPageViewModelHeaderTitleDescriptionMargin=d,f)),text:function(){return e()}})}}))),D(P,{cond:function(){var e,f; return(e=a.data())==null?void 0:(f=e.featuredContentList)==null?void 0:f.length}, then:function(){return D("div",{class:"ytLandingPageViewModelFeaturedContentSection"},D(OC,{data:function(){return a.data().featuredContentList}},{featuredContentItemViewModel:function(e){return D(moc,{data:e.data})}}))}}),D(P,{cond:function(){var e,f; return(e=a.data())==null?void 0:(f=e.expandableContentList)==null?void 0:f.length}, then:function(){return D("div",{class:"ytLandingPageViewModelFaqSection"},D(OC,{data:function(){return a.data().expandableContentList}},{faqEntryViewModel:function(e){return D("div",{class:"ytLandingPageViewModelFaqSectionEntry"},D(p_b,{data:e.data}))}}))}}),D("div",{class:"ytLandingPageViewModelFooter"},D(P,{cond:function(){var e; return(e=a.data())==null?void 0:e.legalCopy}, then:function(e){return D("div",{class:"ytLandingPageViewModelFooterLegalCopy"},D(gC,{text:function(){return e()}}))}}),D(P,{cond:function(){var e; return(e=a.data())==null?void 0:e.actions}, then:function(e){return D("div",null,D(OC,{data:function(){return e()}},{flexibleActionsViewModel:function(f){return D(AQ,{data:f.data, layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"Rj");var sZb=O(function(a){return D("yt-channel-attribution-view-model",{class:U("ytChannelAttributionViewModelHost",a.className)},D("div",{class:"ytChannelAttributionViewModelUpper"},D(OC,{data:function(){return a.data().avatar}},{decoratedAvatarViewModel:OR}),D("div",{class:"ytChannelAttributionViewModelChannelTitle"},D(gC,{text:function(){return a.data().title}}))),D("div",{class:"ytChannelAttributionViewModelBottom"},D(gC,{text:function(){return a.data().subtitle}})))},"Sj");var U9b=O(function(a){var b=Hu(a,{numberOfChips:5}).numberOfChips;return D("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},D(mw,{each:function(){return Array(b==null?void 0:b())}},function(){return D("div",{class:"ytGhostChipShelfChip"})}))},"Tj");var tXb=O(function(a){var b=a.data;var c=a.buttonIndex;var d=a.selectedIndex;var e=a.onSelect;var f=function(){return c()===d()},h=function(){var t,u; return(u=(t=b().text)==null?void 0:t.content)!=null?u:""}; FC(function(){}); a=NHb(["Enter"]);var m=FC(function(){e(b().onSubmitCommand);return!1}),p={},q={}; return D("yt-toggleable-image-button-view-model",{class:U((p.toggleableImageButtonViewModelHost=!0,p[""]=!0,p.toggleableImageButtonViewModelSemiTransparent=function(){return d()!==-1&&!f()},p)), tabindex:0,"aria-label":h,"aria-pressed":f,role:"button","on:keydown":a,"on:click":m},D(P,{cond:function(){return b().logo}, then:function(t){var u={};return D(eC,{data:t,className:U((u.toggleableImageButtonViewModelImage=!0,u.toggleableImageButtonViewModelCircularRadius=function(){return!(!b().backgroundColor||!b().backgroundColorDarkMode)},u.toggleableImageButtonViewModelGradientRing=function(){return!!(f()&&b().backgroundColor&&b().backgroundColorDarkMode)},u)), alt:h,useWidth:!1,style:function(){if(f()&&b().backgroundColor&&b().backgroundColorDarkMode){var v=Ky(Number(b().backgroundColorDarkMode),"1");var w=Ky(Number(b().backgroundColor),"1");v="background: linear-gradient(180deg,"+v+","+w+") border-box;"}else v="";return v}})}}),D(ZK,{model:{borderRadius:"16px"}}),D("p",{class:U((q.toggleableImageButtonViewModelLabel=!0,q.toggleableImageButtonViewModelBoldText=f,q))},D(gC,{text:function(){return b().text}})))},"Uj"); tXb.idomCompat=!0;var poc=O(function(a){var b=a.targetElement;return D("ytd-ai-response-box-remove-animation",{class:U("ytdAiResponseBoxRemoveAnimationViewModelHost")},D("div",{class:"ytdAiResponseBoxRemoveAnimationViewModelTopPosition"},D(qec,{data:{numRows:2},removalAnimation:function(){var c=b().getBoundingClientRect();return{enabled:!0,targetX:c.left+c.width/2,targetY:c.top+c.height/2}}})))},"Vj");var wMb=O(function(a){var b=a.data;var c=a.showChips;var d=a.disableChipsAnimation;var e=a.isUpdateInProgress;var f=a.allowRemovalAnimation;var h=a.chipClickCallback;var m=a.isCustomFeed;var p=a.isCustomFeedZeroState;a=l(ip(null,void 0,"QhxtPc"));var q=a.next().value;a=a.next().value;var t=l(ip(!1,void 0,"HJEpzc")),u=t.next().value,v=t.next().value;t=l(ip(!1,void 0,"Q26R4"));var w=t.next().value,y=t.next().value,A=function(){var N,L;return!((N=b())==null?0:N.responseMessage)&&!((L=b())==null||!L.chipsShelf)}, C=function(){return p()&&!x("fmf_enable_custom_feed_arrow_suggestion_chips")},I=void 0; lw(function(){var N=d();y(!N);var L=(c()||A())&&!e();N?v(L):requestAnimationFrame(function(){v(L)}); I&&clearTimeout(I);N||(I=setTimeout(function(){y(!1)},300))},"ySRErd"); zp(function(){I&&clearTimeout(I)}); t={};var K={};return D("ytd-ai-response-box-view-model",{class:U("ytdAiResponseBoxViewModelHost")},D("div",{class:U("ytdAiResponseBoxViewModelAiResponseBoxContent",(t.ytdAiResponseBoxViewModelAiResponseBoxContentCustomFeed=m,t))},D("div",{el:dB(a),class:U("ytdAiResponseBoxViewModelResponseMessageContainer",(K.ytdAiResponseBoxViewModelResponseMessageContainerHidden=u,K.ytdAiResponseBoxViewModelNotShown=function(){return u()&&!w()},K))},D(P,{cond:e, then:function(){return D("div",{class:"ytdAiResponseBoxViewModelLoadingMessage"},D("div",{class:"ytdAiResponseBoxViewModelSpinner"},D(jQ,null)),D("div",null,D(gC,{text:function(){return b().responsePendingMessage}})))}, else:function(){return D(mq,null,D(P,{cond:function(){var N;return(N=b().responseMessageIcon)==null?void 0:N.iconType}, then:function(N){return D("div",{class:"ytdAiResponseBoxViewModelResponseMessageIcon"},D(aC,{icon:N}))}}),D("div",null,D(gC,{text:function(){return b().responseMessage}})))}})),D(OC,{data:function(){return b().chipsShelf}},{chipsShelfViewModel:function(N){N=N.data; var L={};return D("div",{class:U("ytdAiResponseBoxViewModelChipsShelfContainer",(L.ytdAiResponseBoxViewModelChipsShelfContainerShown=u,L.ytdAiResponseBoxViewModelChipsShelfContainerNoAnimation=d,L.ytdAiResponseBoxViewModelNotShown=function(){return!u()&&!w()},L))},D(b1b,{data:N, selectionBehavior:3,nextButtonStyle:1,callback:h,centerAlignChips:C}))}})),D(P,{cond:function(){return q()}, then:function(N){return D(P,{cond:function(){var L;return((L=b())==null?void 0:L.showRemovedContentAnimation)&&f()}, then:function(){return D(poc,{targetElement:N})}})}}))},"Xj");var s1b=O(function(a){var b=function(){return a.data().targetId||""},c=function(){var K; return((K=a.data())==null?void 0:K.expansionEntityKey)||""},d=fL(iCb,c),e=l(ip(0,void 0,"NNkT2e")),f=e.next().value,h=e.next().value,m=!0,p=function(){var K; return((K=d())==null?void 0:K.value)===b()},q=function(K){Bu(dA("stringEntity",c(),{key:c(), value:K?b():""}))}; qw(function(){m=!1;a.data().isExpanded&&q(!0)}); var t=function(){if(p()){var K=!0;a.onCollapse!==void 0&&(K=a.onCollapse());K&&q(!1)}else q(!0)}; e=FC(t);var u=function(){var K;return(((K=a.accordionStyle)==null?void 0:K.call(a))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},v=sw("div"),w=sw("div",function(K){var N=new ResizeObserver(function(){var L,R; h((R=(L=K.parentElement)==null?void 0:L.scrollHeight)!=null?R:0)}); N.observe(K);return function(){N.disconnect()}}),y=function(){var K,N; return(N=(K=z(a.data().rendererContext,dy))==null?void 0:K.label)!=null?N:""},A=function(){var K,N; return{disabled:(K=a.hideIfNotExpanded)==null?void 0:K.call(a),ariaHidden:(N=a.hideIfNotExpanded)==null?void 0:N.call(a)}},C={},I={}; return D("yt-accordion-item-view-model",{class:U("ytAccordionItemViewModelHost",a.className,(C.ytAccordionItemViewModelExpanded=function(){return p()},C.ytAccordionItemViewModelHidden=function(){var K; return(K=a.hideIfNotExpanded)==null?void 0:K.call(a)},C.ytAccordionItemViewModelMini=u,C)), "data-target-id":b},D("div",{class:"ytAccordionItemViewModelContainer"},D("div",{class:"ytAccordionItemViewModelLeftSection","on:click":e,title:y,"aria-hidden":function(){var K;return(K=a.hideIfNotExpanded)==null?void 0:K.call(a)}},D(gC,{text:function(){return a.data().title}, className:"ytAccordionItemViewModelLabel",ariaLabel:y})),D("div",{class:"ytAccordionItemViewModelRightSection"},D(OC,{data:function(){return p()?a.data().expandButton:a.data().collapseButton}},{buttonViewModel:function(K){return D(AD,{data:K.data, className:"ytAccordionItemViewModelToggleButton",onClick:t,buttonOverrides:A})}}))),D("div",{class:"ytAccordionItemViewModelContainer"},D("div",{class:U("ytAccordionItemViewModelContent",(I.ytAccordionItemViewModelExpandedSubtitle=function(){return p()},I)), el:v,style:GC({"max-height":function(){return m?"auto":p()?f()>0?f()+"px":"auto":"0"}}), "aria-hidden":function(){return!p()}},D("div",{el:w},D(P,{cond:function(){return!u()}, then:function(){return D(gC,{text:function(){return a.data().description}, className:"ytAccordionItemViewModelSubtitle"})}}),D(OC,{data:function(){return a.data().content}},{horizontalShelfViewModel:function(K){return D(aW,{data:K.data, className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}})))))},"Zj");var aKb=O(function(a){var b=a.data;return D("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},D("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},D(OC,{data:function(){return b().avatar}},{avatarViewModel:zD})),D("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},D(gC,{text:function(){return b().title}})),D(gC,{text:function(){return b().description}, className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"$j");var B1b=O(function(a){var b=a.data;return D("ytvl-live-leaderboard-item-action-content-view-model",{class:U("ytvlLiveLeaderboardItemActionContentViewModelHost")},D(gC,{text:function(){var c;return(c=b())==null?void 0:c.actionDescription}, className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),D(OC,{data:function(){return b().actionButton}},{buttonViewModel:function(c){return D(AD,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton", data:c.data})}}))},"ak");var E1b=O(function(a){var b=a.data;return D("ytvl-live-leaderboard-item-channel-content-view-model",{class:U("ytvlLiveLeaderboardItemChannelContentViewModelHost")},D(gC,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var c;return(c=b())==null?void 0:c.displayName}, ellipsisTruncate:!0}),D(OC,{data:function(){return b().badge}},{buttonViewModel:function(c){return D(AD,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge", data:c.data})}}))},"bk");var K4b=O(function(a){var b=a.data;var c=eL(AT);a={};return D("player-disclosure-view-model",{class:U("ytwPlayerDisclosureViewModelHost",(a.ytwPlayerDisclosureViewModelExtractOverlay=function(){return c()===1},a))},D(vD,{command:function(){return b().navigationEndpoint}, className:"ytwPlayerDisclosureViewModelEndpoint"},D(P,{cond:function(){return b().iconName}, then:function(d){return D(aC,{icon:d})}}),D(P,{cond:function(){return b().iconName?void 0:b().image}, then:function(d){return D(eC,{data:d,alt:function(){return b().title||""}, className:"ytwPlayerDisclosureViewModelImage"})}}),D(P,{cond:function(){return b().title||b().secondaryText}, then:function(){return D("div",null,D("div",{class:"ytwPlayerDisclosureViewModelTitle"},function(){return b().title}),D("div",{class:"ytwPlayerDisclosureViewModelText"},function(){return b().text}),D(P,{cond:function(){return b().secondaryText}, then:function(d){return D(mq,null,D("div",{class:"ytwPlayerDisclosureViewModelDivider"}),D("div",{class:"ytwPlayerDisclosureViewModelText"},d))}}))}, else:function(){return D("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return b().text})}}),D(P,{cond:function(){return b().showEndChevron}, then:function(){return D(aC,{icon:"CHEVRON_RIGHT"})}})))},"ck");var dKb=O(function(a){return D("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},D("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},D(gC,{text:function(){return a.data().inviteMessage}})),D("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},D(gC,{text:function(){return a.data().attributedAccountSectionHeaderText}})),D("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"}, D(OC,{data:function(){return a.data().accountAvatar}},{avatarViewModel:zD}),D("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},D(gC,{text:function(){return a.data().accountName}}),D("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},D(gC,{text:function(){return a.data().handle}}))),D(OC,{data:function(){return a.data().trailingButton}},{buttonViewModel:AD})),D("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},D(gC,{text:function(){return a.data().termsOfService}})))}, "dk");var gKb=O(function(a){rw(function(){var b;m7b("fan-community-nudge-form",{isValid:function(){return!0}, formData:function(){var c,d=(c=a.data().enablementActionMetadata)==null?void 0:c.viewerPostSettings;return{viewerPostSettingsFormData:{enablementType:"VIEWER_POST_ENABLEMENT_TYPE_ON",moderationType:(d==null?0:d.moderationType)&&(d==null?void 0:d.moderationType)!=="VIEWER_POST_MODERATION_TYPE_UNKNOWN"?d.moderationType:"VIEWER_POST_MODERATION_TYPE_BASIC_AUTOMOD",allowedPosterType:(d==null?0:d.allowedPosterType)&&(d==null?void 0:d.allowedPosterType)!=="VIEWER_POST_ALLOWED_POSTER_TYPE_UNKNOWN"?d.allowedPosterType: "VIEWER_POST_ALLOWED_POSTER_TYPE_SUBSCRIBERS_ONLY",minimumSubscriberDuration:d==null?void 0:d.minimumSubscriberDuration}}}, submitConfig:{submitId:"SUBMIT_ID_VIEWER_POST_SETTINGS_FORM",params:(b=a.data().enablementActionMetadata)==null?void 0:b.submitViewerPostSettingsFormParams},disableDuringSubmission:!0,onSubmitResult:function(){var c=Fn().resolve(JB),d,e=(d=a.data().enablementActionMetadata)==null?void 0:d.onEnablementSuccess;e&&(d=LB(e))&&c.resolveCommand(d);QX()().delete("fan-community-nudge-form");location.reload()}})}); return D("yt-community-edu-view-model",{class:U("ytCommunityEduViewModelHost")},D("div",{class:"ytCommunityEduViewModelHeader"},D(P,{cond:function(){var b;return(b=a.data().titleImage)==null?void 0:b.image}, then:function(){return D(eC,{className:"ytCommunityEduViewModelTitleImage",data:function(){return a.data().titleImage.image}, alt:""})}}),D(P,{cond:function(){return a.data().creatorAvatar}, then:function(){return D("div",{class:"ytCommunityEduViewModelAvatar"},D(OC,{data:function(){return a.data().creatorAvatar}},{avatarViewModel:function(b){var c=b.data; return D(zD,{data:function(){return Object.assign({},c(),{avatarBorderStyle:"AVATAR_BORDER_STYLE_SQUARE"})}})}}))}})),D(P,{cond:function(){return a.data().titleText}, then:function(){return D(gC,{className:"ytCommunityEduViewModelTitle",text:function(){return a.data().titleText}})}}),D("div",{class:"ytCommunityEduViewModelContent"},D(P,{cond:function(){var b; return(b=a.data().educationalTextSet)==null?void 0:b.length}, then:function(){return D(mw,{each:function(){return a.data().educationalTextSet}},function(b){return D("div",{class:"ytCommunityEduViewModelEducationalTextSet"},D(P,{cond:function(){return b.primaryText}, then:function(){return D(gC,{className:"ytCommunityEduViewModelPrimaryText",text:function(){return b.primaryText}})}}),D(P,{cond:function(){return b.secondaryText}, then:function(){return D(gC,{className:"ytCommunityEduViewModelSecondaryText",text:function(){return b.secondaryText}})}}))})}}),D(P,{cond:function(){return a.data().learnMoreText}, then:function(b){return D(gC,{className:"ytCommunityEduViewModelLearnMore",text:b})}})))},"ek");var qoc=new Bn("EMERGENCY_ONEBOX_RENDERER_TOKEN");var soc=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("BJcdPd"),2);a=roc;return b.return(a)})},toc=yD(function(){return soc()},{debugName:"adaptiveGridViewModel"}); Gn(xD,function(a){a.registerLoadFn("adaptiveGridViewModel","BJcdPd",soc)});var Dfc=O(function(a){var b=l(kQ(a.data,{persist:!0})).next().value,c=x("web_enable_ai_search_streaming"),d=OD(function(){return a.data().verticalPaddingToken}),e=function(){var q,t; return(t=(q=b().contents)==null?void 0:q.length)!=null?t:0},f=Fn().resolve(Cn(Hkc)),h=Fn().resolve(Cn(Jkc)),m=Fn().resolve(Cn(Ikc)),p=Fn().resolve(Cn(qoc)); return D("yt-ai-search-result-section-renderer",{class:"ytAiSearchResultSectionRendererHost "+(c?"ytAiSearchResultSectionRendererStreamingSection":""),el:dB(),"data-target-id":function(){return a.data().targetId||""}, style:GC({"padding-top":d,"padding-bottom":d}),"aria-busy":function(){var q,t;return(t=(q=b().contents)==null?void 0:q.some(function(u){return!!u.chatLoadingViewModel}))!=null?t:!1}},D("div",{id:"contents", class:"ytAiSearchResultSectionRendererContents"},D(OC,{data:function(){return b().contents}, wrapper:function(q){return D("div",{class:"ytAiSearchResultSectionRendererItem"},q())}},Object.assign({},{adaptiveGridViewModel:toc, aiCompanionAttachmentViewModel:Wkc,basicContentViewModel:jP,chatLoadingViewModel:function(q,t){return D(Pkc,{data:q.data,containerHeight:a.containerHeight,isLastItem:function(){return t()===e()-1}})}, chatUserTurnViewModel:function(q,t){return D(Skc,{data:q.data,containerHeight:a.containerHeight,isLastItem:function(){return t()===e()-1}})}, comparisonTableViewModel:dlc,feedbackPromptViewModel:Mkc,linearLayoutViewModel:lP,responseActionsViewModel:r0b,searchFrictionViewModel:R1b,sectionHeaderViewModel:UV},p&&{emergencyOneboxRenderer:p},f&&{infoPanelContentRenderer:f},m&&{shelfRenderer:function(q){return D(m,{data:q.data,containerLayoutConfig:a.containerLayoutConfig})}},h&&{videoRenderer:function(q){return D(h,{data:q.data, className:"ytAiSearchResultSectionRendererVideoRenderer",containerLayoutConfig:a.containerLayoutConfig})}}))))},"fk");var uoc=new Qk("shoppingContentLineItemViewModel");var voc=O(function(a){var b=Hu(a,{}).data;return D("yt-shopping-content-line-item-view-model",{class:U("ytShoppingContentLineItemViewModelHost")},D(gC,{text:function(){var c;return(c=b().text)==null?void 0:c.attributedString}}))},"gk");var woc=O(function(a){a=Hu(a,{});var b=a.data,c={};return D("yt-shopping-content-line-view-model",{class:U("ytShoppingContentLineViewModelHost",a.className,(c.ytShoppingContentLineViewModelTruncateText=function(){return!b().wrapContent},c)), style:GC({"--shopping-content-line-gap":function(){return b().itemGap?b().itemGap+"px":void 0}, "--shopping-content-line-height":function(){return b().lineHeight?b().lineHeight+"px":void 0}})},D(mw,{each:function(){return(b().items||[]).map(function(d){return z(d,uoc)}).filter(function(d){return!!d})}},function(d){return D(voc,{data:d})}))},"hk");var W1b=O(function(a){var b=a.data;var c=function(){var f;return((f=b().image)==null?void 0:f.height)||48},d=function(){var f; return((f=b().image)==null?void 0:f.width)||48},e=function(){return"width: "+d()+"px; height: "+c()+"px;"}; return D("yt-shopping-description-item-view-model",{class:"ytShoppingDescriptionItemViewModelHost",style:function(){if(window.matchMedia("(-ms-high-contrast: active)").matches||window.matchMedia("(forced-colors: active)").matches)var f="";else{var h,m,p=((f=Fn().resolve(Cn(HB)))==null?0:f())?(h=b())==null?void 0:h.darkThemeBackgroundColor:(m=b())==null?void 0:m.lightThemeBackgroundColor;f=p?Jy(p):""}return"background-color: "+f+";"}, el:dB(MD(function(){var f;return(f=b())==null?void 0:f.rendererContext})), role:"link",tabindex:0},D(P,{cond:function(){var f,h;return(h=(f=b().image)==null?void 0:f.image)!=null?h:b().thumbnail}, then:function(f){return D("div",{class:"ytShoppingDescriptionItemViewModelThumbnail",style:function(){var h;return"background-color: "+(((h=b().image)==null?0:h.backgroundColor)?Jy(b().image.backgroundColor):"")+";"+e()}},D(eC,{data:f, height:c,width:d,style:e,alt:""}))}}),D("div",{class:"ytShoppingDescriptionItemViewModelText"},D(OC,{data:function(){return b().line1}},{shoppingContentLineViewModel:function(f){return D(woc,{data:f.data})}}),D(OC,{data:function(){return b().line2}},{shoppingContentLineViewModel:function(f){return D(woc,{data:f.data})}}),D(OC,{data:function(){return b().line3}},{shoppingContentLineViewModel:function(f){return D(woc,{data:f.data})}})))},"ik");var jVb=O(function(a){var b=a.data;var c=a.buttonShapeOverrideables;var d=function(){return"ytwReelActionBarViewModelHostDesktopActionButton"}; a={};return D("reel-action-bar-view-model",{class:U("ytwReelActionBarViewModelHost",(a.ytwReelActionBarViewModelHostMobile=function(){return!1},a.ytwReelActionBarViewModelHostDesktop=function(){return!0},a))},D(OC,{data:function(){return b().buttonViewModels}},{buttonViewModel:function(e){return D(BD,{className:d, data:e.data,buttonOverrides:c})}, likeButtonViewModel:function(e){return D(yQ,{className:d,data:e.data,buttonShapeOverrideables:c})}, dislikeButtonViewModel:function(e){return D(xQ,{className:d,data:e.data,buttonShapeOverrideables:c})}, toggleButtonViewModel:function(e){return D(CD,{className:d,data:e.data,buttonShapeOverrides:c})}, pivotButtonViewModel:function(e){return D(gVb,{className:d,data:e.data})}}))},"jk");var mVb=O(function(a){var b=a.data;var c=a.onShow;a=wT(function(){return b().interaction}); rw(function(){var h,m=(h=b().animatedRenderingConfig)==null?void 0:h.delayedSecondsToVisible;if(m){var p=setTimeout(c,m*1E3);zp(function(){clearTimeout(p)})}}); var d=eL(AT),e=function(){return d()===1},f={}; return D("reels-ad-card-buttoned-view-model",{class:U(function(){var h;return((h=b().interaction)==null?0:h.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(f.ytwReelsAdCardButtonedViewModelHostExpansive=e,f)), el:dB(a)},D(glc,{avatar:function(){return z(b().avatar,elc)}, headline:function(){return b().headline}, badge:function(){return z(b().adBadge,flc)}, description:function(){return b().description}}),D(OC,{data:function(){return b().ctaButton}},{adButtonViewModel:function(h){var m=h.data; return D(xT,{data:function(){return e()?Object.assign({},m(),{style:"AD_BUTTON_STYLE_MONO_FILLED"}):m()}})}}))},"kk");var pVb=O(function(a){var b=a.data;return D("reels-ad-metadata-view-model",{class:function(){var c;return((c=b().interaction)==null?0:c.onTap)?"ytwReelsAdMetadataViewModelHostIsClickableAdComponent":"ytwReelsAdMetadataViewModelHost"}, el:dB(wT(function(){return b().interaction},void 0,function(){return!0}))},D(glc,{avatar:function(){return z(b().avatar,elc)}, headline:function(){return b().headline}, badge:function(){return z(b().adBadge,flc)}, description:function(){return b().description}}))},"lk");var jKb=O(function(a){var b=a.data;return D("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},D("div",{class:"ytAccessConfirmationViewModelContent"},D(OC,{data:function(){var c;return(c=b().avatar)!=null?c:b().dualAvatar}},{dualAvatarViewModel:function(c){return D(Y4b,{data:c.data, className:"ytAccessConfirmationViewModelAvatar"})}, decoratedAvatarViewModel:function(c){return D(OR,{data:c.data,className:"ytAccessConfirmationViewModelAvatar"})}}),D("h2",{class:"ytAccessConfirmationViewModelTitle"},D(gC,{text:function(){return b().title}})),D(gC,{text:function(){return b().subtitle}, className:"ytAccessConfirmationViewModelSubtitle"})))},"mk");var Q4b=O(function(a){var b=a.data;return D("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},D("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":FC(function(){var c=b().onTap;c&&QB(c)})},D(P,{cond:function(){return b().icon}, then:function(c){return D(aC,{icon:function(){return c().iconType}, className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),D("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return b().title})))},"nk"); Q4b.idomCompat=!0;var T4b=O(function(a){var b=sw("div"),c=l(ip(void 0,void 0,"sYIoGe")),d=c.next().value,e=c.next().value;c=l(ip(void 0,void 0,"f2RKJd"));var f=c.next().value,h=c.next().value;c=l(ip(void 0,void 0,"qG4Cyb"));var m=c.next().value,p=c.next().value,q=function(){var I=d();return I!==void 0?Math.abs(I):void 0},t=function(){var I=q(); return I===void 0||I<=3},u=function(){var I=q(); var K=f(),N=m();I=I!==void 0&&K!==void 0&&N!==void 0?K-N-I:void 0;return I===void 0||I<=3},v=function(I){b.value&&b.value.scrollBy({top:0, left:(Vk("HTML_DIR")==="rtl"?-1:1)*I*b.value.clientWidth,behavior:"smooth"})},w=function(){var I; e((I=b.value)==null?void 0:I.scrollLeft);var K;h((K=b.value)==null?void 0:K.scrollWidth);var N;p((N=b.value)==null?void 0:N.clientWidth)},y=function(){v(-.5)},A=function(){v(.5)}; c=FC(function(){w()}); qw(function(){w();if(b.value&&window.ResizeObserver){var I=new ResizeObserver(w);I.observe(b.value);zp(function(){I.disconnect()})}}); var C={};return D("yt-sponsorships-scrollable-shelf",{class:U("ytdSponsorshipsScrollableShelfHost",a.className)},D("div",{class:U("ytdSponsorshipsScrollableShelfContent",(C.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return a.data().previousButton&&a.data().nextButton&&!t()&&!u()},C.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return a.data().previousButton&&!t()&&u()},C.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return a.data().nextButton&&t()&&!u()}, C)), el:b,"on:scroll":c},a.children),D(P,{cond:function(){return!t()}, then:function(){return D(OC,{data:function(){return a.data().previousButton}},{buttonViewModel:function(I){return D(AD,{data:I.data, className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:y})}})}}),D(P,{cond:function(){return!u()}, then:function(){return D(OC,{data:function(){return a.data().nextButton}},{buttonViewModel:function(I){return D(AD,{data:I.data, className:"ytdSponsorshipsScrollableShelfNextButton",onClick:A})}})}}))},"pk"); T4b.idomCompat=!0;var CNb=O(function(a){var b=a.data;var c=fL(lPb,function(){return b().subscriptionStateEntityKey}); return D(P,{cond:function(){var d=b(),e=c();return!d.hideWhenUnsubscribed||(e==null?0:e.subscribed)?z(b().button,ZJ):void 0}, then:function(d){return D("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},D(AD,{data:d,buttonOverrides:function(){return{toggled:!0}}}))}})},"qk"); CNb.idomCompat=!0;var mYb=O(function(a){var b=function(){var c;return((c=a.data())==null?void 0:c.answers)||[]}; return D("yt-survey-icons",{class:"ytSurveyIconsHost"},D("div",{class:"ytSurveyIconsHeader"},D("div",{class:"ytSurveyIconsTitle"},function(){var c;return(c=a.data())==null?void 0:c.text}),D("div",null,D(bL,{data:function(){return{style:"mono", type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var c;(c=a.onDismiss)==null||c.call(a)}}}, iconName:"DISMISSAL"}))),D("div",null,D("div",{class:"ytSurveyIconsAnswers"},D(mw,{each:function(){return b()}, keyBy:"INDEX"},function(c,d){return D("div",null,D(bL,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var e;(e=a.onSelect)==null||e.call(a,c(),d)}}}, icon:function(){return D(aC,{icon:function(){var e,f;return(e=c())==null?void 0:(f=e.icon)==null?void 0:f.iconType}, className:"ytSurveyIconsIcon"})}}))})),D("div",{class:"ytSurveyIconsAnswersText"},D("div",null,function(){return b().length?b()[0].text:""}),D("div",null,function(){return b().length?b()[b().length-1].text:""}))))},"rk");var Z1b=O(function(a){var b=a.data;a={};return D("timeline-chapter-view-model",{class:U("ytwTimelineChapterViewModelHost",(a.ytwTimelineChapterViewModelHostSmallerPadding=x("web_timeline_view_section_list_renderer"),a))},D("h3",{class:U("ytwTimelineChapterViewModelTitle")},function(){return b().title}),D(OC,{data:function(){return b().contents}},{timelineItemViewModel:function(c){return D(b2b,{data:c.data, chapterChild:!0})}, videoAttributesSectionViewModel:function(c){return D(i2b,{data:c.data})}}))},"sk");var mKb=O(function(a){var b=function(){var m,p;return(m=a.data().formSchema)==null?void 0:(p=m.initialValues)==null?void 0:p.selectedLanguages},c=l(Gu(function(){return b()})),d=c.next().value,e=c.next().value,f={}; lw(function(){var m=a.data().formSchema,p=m==null?void 0:m.submitConfig;a.data()!==f&&(f=a.data(),m&&p&&m7b(m.id,{isValid:function(){var q,t=(q=d())!=null?q:[],u;q=(u=b())!=null?u:[];if(t.length!==q.length)return!0;u=new Set(q);t=l(t);for(q=t.next();!q.done;q=t.next())if(!u.has(q.value))return!0;return!1}, formData:function(){return{preferredLanguageSettingsFormData:{selectedLanguages:d()||[]}}}, submitConfig:p}))},"iCaJcc"); var h=function(m){var p=m.key;if(p){var q;if(p&&((q=d())==null?0:q.includes(p))){var t;e((t=d())==null?void 0:t.filter(function(u){return u!==p}))}else e([].concat(ia(d()||[]),[p]))}}; return D("yt-preferred-language-settings-panel-view-model",{class:"ytPreferredLanguageSettingsPanelViewModelHost"},D(OC,{data:function(){return a.data().checkboxGroup}},{checkboxGroupViewModel:function(m){return D(H0b,{data:m.data, onItemTap:h,selectedKeys:d,controlledMode:!0,disableHorizontalPadding:a.disableHorizontalPadding})}}))},"uk");var xoc=["channel","c","user"];function yoc(a,b){if(!a||!b||a===b)return!1;b=b?b.split("/").filter(Boolean):[];a=a?a.split("/").filter(Boolean):[];if(b.length===0||a.length===0||b[0]!==a[0])b=!1;else{var c=b[0];b=c.startsWith("@")||xoc.includes(c)&&b.length>=2&&a.length>=2&&b[1]===a[1]?!0:!1}return b} function zoc(){if(typeof document==="undefined"||!document.referrer)return"";try{var a=new URL(document.referrer)}catch(b){return""}return a.origin===window.location.origin?a.pathname:""} ;var Aoc=O(function(a){var b=Hu(a,{useCustomTabRenderable:!1}),c=b.shape;b=b.useCustomTabRenderable;var d=a.customTabRenderable,e=function(){return c().disabled},f=function(){return!!c().selected},h=function(){return c().title},m=function(){return c().icon},p=sw("yt-tab-shape"); a=FC(function(u){var v;if(!e()&&((v=c().aTagConfig)==null?0:v.onclick))c().aTagConfig.onclick(u);return!1}); var q=FC(function(u){if(u.key==="Enter"||u.key==="ArrowUp"||u.key==="ArrowDown")u.preventDefault(),p.value.click();return!1}),t={}; return D("yt-tab-shape",{class:U("ytTabShapeHost",function(){return c().className},(t.ytTabShapeLastTab=function(){return c().isLastTab},t.ytTabShapeHostDisabled=e,t.ytTabShapeHostClickable=!d,t)), role:d?void 0:"tab","aria-selected":f,"aria-disabled":e,tabindex:d?void 0:0,"on:click":a,"on:keydown":q,el:p,"tab-identifier":function(){return c().identifier}, "tab-title":h},D(P,{cond:b,then:function(){return d()}, else:function(){var u={},v={};return D(mq,null,D("div",{class:U("ytTabShapeTab",(u.ytTabShapeTabSelected=f,u))},D(P,{cond:m,then:function(w){return D(aC,{className:"ytTabShapeTabIcon",icon:function(){return w().iconType}})}}),h),D("div",{class:U("ytTabShapeTabBar",(v.ytTabShapeTabBarSelected=f,v))}))}}))},"vk"); Aoc.idomCompat={callbacks:{customTabRenderable:!0}};function Boc(a){return Math.round((a==null?void 0:a.getBoundingClientRect().width)||0)} var Doc=O(function(a){function b(){t()||Hl(0,function(){u(!0)},0)} var c=a.shape;a=l(ip(48,void 0,"Xl09Qc"));var d=a.next().value,e=a.next().value;a=l(ip(0,void 0,"SPITrb"));var f=a.next().value,h=a.next().value,m=function(){return c().tabs},p=dB(),q=l(ip(!1,void 0,"JOCiIb")); a=q.next().value;q=q.next().value;var t=a,u=q;a=l(ip(zoc()||window.location.pathname,void 0,"XALISd"));var v=a.next().value,w=a.next().value;Czb(function(){return[m()]},function(y){var A,C,I=(C=(A=l(y).next().value)==null?void 0:A.findIndex(function(L){return L.selected}))!=null?C:-1; y=window.location.pathname;A=v();var K=yoc(A,y);I!==-1&&w(y);var N=Hl(0,function(){var L,R=Array.from(((L=p.value)==null?void 0:L.querySelectorAll("yt-tab-shape"))||[]);L=I>-1?R[I]:void 0;for(var W=Boc(L),S=0,Y=0;Y0&&e.setAttribute("accept",d.join(","));e.style.position="absolute";e.style.overflow="hidden";e.style.height="0px";e.style.width="0px";e.style.opacity="0";e.setAttribute("aria-hidden","true");e.setAttribute("tabIndex",-1);if(a.overlayTarget_!=null)return e.style.height= b.offsetHeight+"px",e.style.width=b.offsetWidth+"px",a.parentOverlay_&&(a.parentOverlay_.style.position="relative"),ni(e,b),b=new Ph(b.offsetLeft,b.offsetTop),b instanceof Ph?(a=b.x,b=b.y):(a=b,b=void 0),e.style.left=wi(a,!1),e.style.top=wi(b,!1),e;a.parentOverlay_.appendChild(e);return e}; Joc.prototype.click=function(){this.overlay_.click()}; Joc.prototype.onFilesSelected_=function(a){a:{try{var b=new XMLHttpRequest().upload!==void 0;break a}catch(q){}b=!1}if(b){var c;a=Array.from((c=a.target.files)!=null?c:[]);c=[];if(this.selectorType_==="single_directory"&&(Ad||yd||zd)){c=new Hoc("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(b=0;bthis.naturalWidth?{top:(this.naturalHeight-this.naturalWidth)/2/this.naturalHeight,right:1,bottom:(this.naturalHeight+this.naturalWidth)/2/this.naturalHeight,left:0}:{top:0,right:(this.naturalWidth+this.naturalHeight)/2/this.naturalWidth,bottom:1,left:(this.naturalWidth-this.naturalHeight)/2/this.naturalWidth}}; function Toc(a,b,c){return ra(function(d){return d.return(new Promise(function(e){var f=new Image;f.onload=function(){e(new Soc(a,b,c,f.naturalWidth,f.naturalHeight))}; f.src=c.toString()}))})} ;function Uoc(a,b){return Math.round(a/1E-5)===Math.round(b/1E-5)} var F1=function(){var a=E.apply(this,arguments)||this;a.a11yConfig=Qoc;a.imageDisplayOffsetTop=0;a.imageDisplayOffsetLeft=0;a.pickerDisplayOffsetTop=0;a.pickerDisplayOffsetLeft=0;a.showPreviewContainer=!0;a.startPicker=!1;a.repositionOptional=!1;a.editOnlyMode=!1;a.savedImageDisplayOffsetTop=0;a.savedImageDisplayOffsetLeft=0;return a}; k(F1,E);g=F1.prototype;g.created=function(){PI.requestAvailability()}; g.ready=function(){this.keyboardInterfaceTarget=this.imageInBackground}; g.onArrowKeysDown=function(a){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){a.detail.keyboardEvent.preventDefault();var b=0,c=0,d="";switch(a.detail.keyboardEvent.key){case"ArrowUp":Uoc(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?d=this.a11yConfig.reachBottomOfImage:b=this.imageHeight*.05*-1;break;case"ArrowDown":Uoc(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?d=this.a11yConfig.reachTopOfImage: b=this.imageHeight*.05;break;case"ArrowLeft":Uoc(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?d=this.a11yConfig.reachRightOfImage:c=this.imageWidth*.05*-1;break;case"ArrowRight":Uoc(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?d=this.a11yConfig.reachLeftOfImage:c=this.imageWidth*.05;}d&&zy(d)&&Gt(this.hostElement,"iron-announce",{text:zy(d)});if(c||b)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop, Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+b)),a=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),a=zy(this.a11yConfig.imageVerticalPosition,{x_percent:""+a,y_percent:""+(100-a)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+c)),a=this.getPreviewPosition(this.pickerDisplayOffsetLeft, this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),a=zy(this.a11yConfig.imageHorizontalPosition,{x_percent:""+a,y_percent:""+(100-a)})),a&&Gt(this.hostElement,"iron-announce",{text:a})}}; g.getPreviewPosition=function(a,b,c,d){return Math.round(100*(a+b*.5-c)/d)}; g.calculateDisplayPosition=function(){var a=this.imageData.naturalWidth,b=this.imageData.naturalHeight;this.displayScale=Math.max(200/a,200/b);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var c=a*this.displayScale*this.imageData.previewCoordinates.left,d=b*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=b>a?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-c;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=a>b?this.pickerDisplayOffsetTop: this.pickerDisplayOffsetTop-d;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=a*this.displayScale;this.imageHeight=b*this.displayScale}; g.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())}; g.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode}; g.getSignedPosition=function(a,b,c){return b==="X"&&Vk("HTML_DIR")==="rtl"?c==="-"?a+"px":a*-1+"px":c==="-"?a*-1+"px":a+"px"}; g.pickerMove=function(a){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var b=this.pickerOffsetX-a.clientX,c=this.pickerOffsetY-a.clientY;this.pickerOffsetX=a.clientX;this.pickerOffsetY=a.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop- c)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-b))}}; g.pickerMoveStart=function(a){this.startPicker=!0;this.pickerOffsetX=a.clientX;this.pickerOffsetY=a.clientY}; g.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var a=this.generateCropPreview();a&&Gt(this.hostElement,"ytd-backstage-image-preview-coordinates-update",a)}; g.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);Gt(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")}; g.deleteImage=function(){Gt(this.hostElement,"ytd-backstage-image-preview-delete")}; g.editCropCoordinates=function(){this.showPreviewContainer=!1}; g.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var a=this.generateCropPreview();a&&Gt(this.hostElement,"ytd-backstage-image-preview-coordinates-save",a)}; g.getPreviewOffset=function(a,b,c){return b&&a?(c==="X"&&Vk("HTML_DIR")==="rtl"?300/b*a:300/b*a*-1)+"px":"0px"}; g.getSimpleText=function(a){return a?lz(a):""}; g.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize)return{top:this.cropOffsetTop/this.imageHeight,right:(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,bottom:(this.cropOffsetTop+this.pickerSize)/this.imageHeight,left:this.cropOffsetLeft/this.imageWidth}}; ba.Object.defineProperties(F1.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var a=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return zy(this.a11yConfig.imageVerticalPosition,{x_percent:""+a,y_percent:""+(100-a)})+"\n"+zy(this.a11yConfig.verticalRepositionInstruction)}a=this.getPreviewPosition(this.pickerDisplayOffsetLeft, this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return zy(this.a11yConfig.imageHorizontalPosition,{x_percent:""+a,y_percent:""+(100-a)})+"\n"+zy(this.a11yConfig.horizontalRepositionInstruction)}}, pickerSize:{configurable:!0,enumerable:!0,get:function(){return this.imageHeight&&this.imageWidth?this.imageHeight>this.imageWidth?this.imageWidth:this.imageHeight:0}}, imageOrientationStyle:{configurable:!0,enumerable:!0,get:function(){if(this.imageHeight&&this.imageWidth)return this.imageHeight===this.imageWidth?"SQUARE":this.imageHeight>this.imageWidth?"PORTRAIT":"LANDSCAPE"}}, editButton:{configurable:!0,enumerable:!0,get:function(){var a,b,c=(a=this.instruction)==null?void 0:(b=a.previewInstruction)==null?void 0:b.editButtonLabel;return c?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:c,accessibilityData:{accessibilityData:{label:this.getSimpleText(c)}}}:void 0}}, saveButton:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d,e=this.editOnlyMode?(a=this.instruction)==null?void 0:(b=a.editInstruction)==null?void 0:b.saveImagesButtonLabel:(c=this.instruction)==null?void 0:(d=c.editInstruction)==null?void 0:d.saveButtonLabel;return e?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:e,accessibilityData:{accessibilityData:{label:this.getSimpleText(e)}}}:void 0}}, deleteButton:{configurable:!0,enumerable:!0,get:function(){var a,b,c=(a=this.instruction)==null?void 0:(b=a.previewInstruction)==null?void 0:b.deleteButtonLabel;return c?{size:"SIZE_SMALL",text:c,accessibilityData:{accessibilityData:{label:this.getSimpleText(c)}}}:void 0}}, cancelButton:{configurable:!0,enumerable:!0,get:function(){var a,b,c=(a=this.instruction)==null?void 0:(b=a.editInstruction)==null?void 0:b.cancelButtonLabel;a=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return c?{style:a,size:"SIZE_SMALL",text:c,accessibilityData:{accessibilityData:{label:this.getSimpleText(c)}}}:void 0}}, cropOffsetTop:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetTop===void 0||this.pickerDisplayOffsetTop===void 0?0:this.pickerDisplayOffsetTop-this.imageDisplayOffsetTop}}, cropOffsetLeft:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetLeft===void 0||this.pickerDisplayOffsetLeft===void 0?0:this.pickerDisplayOffsetLeft-this.imageDisplayOffsetLeft}}, pickerBackgroundStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.imageDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.imageDisplayOffsetTop,"Y",void 0)+");"}}, pickerDisplayStyle:{configurable:!0,enumerable:!0,get:function(){return"width:"+this.pickerSize+"px;height:"+this.pickerSize+"px;transform:translateX("+this.getSignedPosition(this.pickerDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.pickerDisplayOffsetTop,"Y",void 0)+");"}}, imageInPickerStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.cropOffsetLeft,"X","-")+") translateY("+this.getSignedPosition(this.cropOffsetTop,"Y","-")+");"}}, previewClipperStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getPreviewOffset(this.cropOffsetLeft,this.pickerSize,"X")+") translateY("+this.getPreviewOffset(this.cropOffsetTop,this.pickerSize,"Y")+");"}}, pickerModeStyle:{configurable:!0,enumerable:!0,get:function(){return this.showPreviewContainer?"preview":"edit"}}}); F1.prototype.onEditOnlyModeUpdate=F1.prototype.onEditOnlyModeUpdate;F1.prototype.onImageChange=F1.prototype.onImageChange;n([M(),r("design:type",Soc)],F1.prototype,"imageData",void 0);n([M(),r("design:type",Object)],F1.prototype,"instruction",void 0);n([M(),r("design:type",Object)],F1.prototype,"a11yConfig",void 0);n([M(),r("design:type",Number)],F1.prototype,"imageWidth",void 0);n([M(),r("design:type",Number)],F1.prototype,"imageHeight",void 0); n([M(),r("design:type",Number)],F1.prototype,"displayScale",void 0);n([M(),r("design:type",Object)],F1.prototype,"imageDisplayOffsetTop",void 0);n([M(),r("design:type",Object)],F1.prototype,"imageDisplayOffsetLeft",void 0);n([M(),r("design:type",Object)],F1.prototype,"pickerDisplayOffsetTop",void 0);n([M(),r("design:type",Object)],F1.prototype,"pickerDisplayOffsetLeft",void 0);n([M(),r("design:type",Object)],F1.prototype,"showPreviewContainer",void 0); n([M(),r("design:type",Object)],F1.prototype,"startPicker",void 0);n([M(),r("design:type",Number)],F1.prototype,"pickerOffsetX",void 0);n([M(),r("design:type",Number)],F1.prototype,"pickerOffsetY",void 0);n([M(),r("design:type",Object)],F1.prototype,"repositionOptional",void 0);n([M(),r("design:type",Object)],F1.prototype,"editOnlyMode",void 0);n([Tt("#picker-container"),r("design:type",HTMLElement)],F1.prototype,"pickerContainer",void 0); n([Tt("#picker"),r("design:type",HTMLElement)],F1.prototype,"picker",void 0);n([Tt("#preview-clipper"),r("design:type",HTMLElement)],F1.prototype,"previewClipper",void 0);n([Tt("#image-in-picker-background"),r("design:type",HTMLImageElement)],F1.prototype,"imageInBackground",void 0);n([Tt("#image-in-picker"),r("design:type",HTMLImageElement)],F1.prototype,"imageInPicker",void 0);n([Tt("#image-in-preview-clipper"),r("design:type",HTMLImageElement)],F1.prototype,"imageInPreviewClipper",void 0); n([H("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),r("design:type",String),r("design:paramtypes",[])],F1.prototype,"altLabelForImage",null);n([H("imageHeight","imageWidth"),r("design:type",Number),r("design:paramtypes",[])],F1.prototype,"pickerSize",null);n([H("imageHeight","imageWidth"),r("design:type",Object),r("design:paramtypes",[])],F1.prototype,"imageOrientationStyle",null); n([H("instruction"),r("design:type",Object),r("design:paramtypes",[])],F1.prototype,"editButton",null);n([H("instruction","editOnlyMode"),r("design:type",Object),r("design:paramtypes",[])],F1.prototype,"saveButton",null);n([H("instruction"),r("design:type",Object),r("design:paramtypes",[])],F1.prototype,"deleteButton",null);n([H("instruction","editOnlyMode"),r("design:type",Object),r("design:paramtypes",[])],F1.prototype,"cancelButton",null); n([H("imageDisplayOffsetTop","pickerDisplayOffsetTop"),r("design:type",Number),r("design:paramtypes",[])],F1.prototype,"cropOffsetTop",null);n([H("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),r("design:type",Number),r("design:paramtypes",[])],F1.prototype,"cropOffsetLeft",null);n([H("imageDisplayOffsetLeft","imageDisplayOffsetTop"),r("design:type",String),r("design:paramtypes",[])],F1.prototype,"pickerBackgroundStyle",null); n([H("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),r("design:type",String),r("design:paramtypes",[])],F1.prototype,"pickerDisplayStyle",null);n([H("cropOffsetLeft","cropOffsetTop"),r("design:type",String),r("design:paramtypes",[])],F1.prototype,"imageInPickerStyle",null);n([H("cropOffsetLeft","cropOffsetTop","pickerSize"),r("design:type",String),r("design:paramtypes",[])],F1.prototype,"previewClipperStyle",null); n([cu("imageData"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],F1.prototype,"onImageChange",null);n([cu("editOnlyMode"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype")],F1.prototype,"onEditOnlyModeUpdate",null);n([H("showPreviewContainer"),r("design:type",String),r("design:paramtypes",[])],F1.prototype,"pickerModeStyle",null);n([gu({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],F1); Tu(F1,"ytd-backstage-image-preview-renderer",function(){if(Roc!==void 0)return Roc;var a=document.createElement("template");Q(a,"
\n \n \n
\n\n\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);return Roc=a},{mode:1});var Voc;var Woc;var G1=function(){var a=E.apply(this,arguments)||this;a.selected=!1;return a}; k(G1,E);g=G1.prototype;g.computeSelected=function(a){return a==null?void 0:a.selected}; g.computeTransform=function(a,b,c){var d,e,f=(e=(d=this.imageContainer)==null?void 0:d.getBoundingClientRect())!=null?e:{width:0,height:0};d=Math.max(f.width/b,f.height/c);c=c*d*a.top;return"translateX("+this.getSignedPosition(b*d*a.left,"X","-")+") translateY("+this.getSignedPosition(c,"Y","-")+")"}; g.getSignedPosition=function(a,b,c){return b==="X"&&Vk("HTML_DIR")==="rtl"?c==="-"?a+"px":a*-1+"px":c==="-"?a*-1+"px":a+"px"}; g.onClick=function(){var a;Gt(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(a=this.data)==null?void 0:a.image)}; g.onKeyPress=function(a){if(a.keyCode===13)this.onClick()}; ba.Object.defineProperties(G1.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.data)==null?void 0:(b=a.image)==null?void 0:b.localImageSrc)||void 0}}, thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)!=null&&a.image){var b;a=(b=this.data)==null?void 0:b.image;return a.previewCoordinates.top!==0||a.previewCoordinates.left!==0?(b=this.computeTransform(a.previewCoordinates,a.naturalWidth,a.naturalHeight),a.naturalHeight>=a.naturalWidth?"width:inherit;transform:"+b+";":"height:inherit;transform:"+b+";"):a.naturalHeight>=a.naturalWidth?"width:inherit;":"height:inherit;"}}}}); G1.prototype.onKeyPress=G1.prototype.onKeyPress;n([Tt(".image-container"),r("design:type",HTMLElement)],G1.prototype,"imageContainer",void 0);n([M(),r("design:type",Object)],G1.prototype,"data",void 0);n([M({reflectToAttribute:!0,computed:"computeSelected(data)"}),r("design:type",Object)],G1.prototype,"selected",void 0);n([H("data.image"),r("design:type",Object),r("design:paramtypes",[])],G1.prototype,"thumbnailUrl",null); n([H("data.image","data.image.previewCoordinates"),r("design:type",Object),r("design:paramtypes",[])],G1.prototype,"thumbnailStyle",null);n([Kt("keypress"),r("design:type",Function),r("design:paramtypes",[Event]),r("design:returntype")],G1.prototype,"onKeyPress",null);n([gu({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],G1); var Xoc=Uu()(G1,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(Woc===void 0){var a=document.createElement("template");Q(a,"
\n
\n \"\"\n
\n
\n");a.content.insertBefore(T().content.cloneNode(!0), a.content.firstChild);Woc=a}a=Woc;return a},{allowedProps:["data"], mode:2});var H1=function(){var a=E.apply(this,arguments)||this;a.images=[];a.selectedImageIndex=0;return a}; k(H1,E);g=H1.prototype;g.ready=function(){Ri(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);Ri(this.imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);Ri(this.imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);Ri(this.imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,!1,this)}; g.onThumbnailClick=function(a){if(a=a.JSC$6269_event_.detail)this.selectedImageIndex=this.images.indexOf(a)}; g.updateImageThumbnails=function(a){a=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:a.JSC$6269_event_.detail});this.images.splice(this.selectedImageIndex,1,a);this.images=[].concat(ia(this.images))}; g.cancelImageRepositions=function(){this.selectedImageIndex=0;Gt(this.hostElement,"ytd-backstage-image-reposition-cancel")}; g.saveImageRepositions=function(){this.selectedImageIndex=0;Gt(this.hostElement,"ytd-backstage-image-reposition-save",this.images)}; ba.Object.defineProperties(H1.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var a=this;return(this.images||[]).map(function(b,c){return{image:b,selected:c===a.selectedImageIndex}})}}, selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}}); n([F($C.YtRendererstamperBehavior),r("design:type",Object)],H1.prototype,"ytRendererstamperBehavior",void 0);n([Tt("ytd-backstage-image-preview-renderer"),r("design:type",Object)],H1.prototype,"imagePreviewContainer",void 0);n([Tt(".thumbnail-images-container"),r("design:type",HTMLElement)],H1.prototype,"thumbnailImagesContainer",void 0);n([M(),r("design:type",Array)],H1.prototype,"images",void 0);n([M(),r("design:type",Object)],H1.prototype,"repositionInstructions",void 0); n([M(),r("design:type",Object)],H1.prototype,"selectedImageIndex",void 0);n([H("images","selectedImageIndex"),r("design:type",Array),r("design:paramtypes",[])],H1.prototype,"thumbnailRendererDatas",null);n([H("images","selectedImageIndex"),r("design:type",Object),r("design:paramtypes",[])],H1.prototype,"selectedImageData",null);n([gu({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],H1); var Yoc=Uu()(H1,"ytd-backstage-multi-image-reposition-renderer",function(){if(Voc===void 0){var a=document.createElement("template");Q(a,"
\n
\n \n
\n
\n \n \n
\n
\n"); a.content.insertBefore(T().content.cloneNode(!0),a.content.firstChild);Voc=a}a=Voc;return a},{allowedProps:["images", "repositionInstructions","selectedImageIndex"],callbackProps:["onYtdBackstageImageRepositionSave","onYtdBackstageImageRepositionCancel"],mode:1});var Zoc={style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT"},$oc=[".jpeg",".jpg",".png"],apc=O(function(a){function b(C){if(C.files&&C.files.length!==0&&(C=C.files[0],C.type.startsWith("image/"))){var I=Gb(C),K=Date.now();Toc(K,C,I).then(function(N){u(N);if(!a.isImageType()){var L;(L=a.onOptionTypeChange)==null||L.call(a)}var R;if(L=(R=a.uploadManager)==null?void 0:R.call(a)){XWb(L,[N]);var W,S;(W=L.imagesUploadData.find(function(Y){return Y.image.id===N.id}))==null||(S=W.uploadPromise)== null||S.then(function(){u(Object.assign({},N))})}},function(){URL.revokeObjectURL(I.toString())})}} function c(){var C;(C=v)==null||C.click()} function d(){c()} var e=l(ip(void 0,void 0,"O1iuGc")),f=e.next().value,h=e.next().value,m=Ooc(function(){var C,I;return(C=a.optionFormSchema)==null?void 0:(I=C.call(a))==null?void 0:I.id}); e=l(ip(!1,void 0,"Tp6Kae"));var p=e.next().value,q=e.next().value;lw(function(){if(m!=null&&m.form()&&!p()){var C,I=(C=m.form())==null?void 0:C.text;I&&!I.value&&(I.updateValue(" "),I.updateValue(""));q(!0)}},"bPo2M"); e=l(ip(null,void 0,"Ij2sie"));var t=e.next().value,u=e.next().value,v=new Joc(null,"single_file",$oc),w=rD(function(){return{formId:f(),fieldId:"uri"}}); lw(function(){var C=a.option().uri;if(C){var I,K,N,L=(I=a.uploadManager)==null?void 0:(K=I.call(a))==null?void 0:(N=K.imagesUploadData.find(function(R){return R.image.id.toString()===C}))==null?void 0:N.image; L&&u(Object.assign({},L))}},"TvPeeb"); var y=rD(function(){var C;return{formId:(C=a.optionFormSchema)==null?void 0:C.call(a).id,fieldId:"isImageType"}}); lw(function(){var C=t();if(C){C=C.id.toString();var I;if(((I=w())==null?void 0:I.value)!==C){var K;(K=w())==null||K.updateValue(C)}}},"Fwx09d"); lw(function(){var C=a.isImageType(),I;if(((I=y())==null?void 0:I.value)!==C){var K;(K=y())==null||K.updateValue(C)}},"yUKLBf"); lw(function(){var C=m==null?void 0:m.form();if(C){var I=C.uri.value;C=C.text.value;var K=m.state().isValid,N="IMAGE_UPLOADING_STATE_UNSPECIFIED",L=t();L&&(N=L.encryptedBlobId?"IMAGE_UPLOADING_STATE_SUCCEED":"IMAGE_UPLOADING_STATE_UPLOADING");a.onOptionUpdated(a.index(),I!=null?I:"",C!=null?C:"",K,N)}},"XFQ4ce"); rw(function(){v.listen("p",b);zp(function(){var C;(C=v)==null||C.dispose()})}); lw(function(){var C,I=(C=a.optionFormSchema)==null?void 0:C.call(a);if((C=I==null?void 0:I.id)&&C!==f()){var K;(K=Ooc(C))==null||K.dispose();Noc(I)}h(C)},"nllxid"); zp(function(){var C;(C=Ooc(f()))==null||C.dispose();h(void 0)}); e={};var A={};return D("yt-posts-creation-option-view-model",{class:U("ytPostsCreationOptionViewModelHost",a.className)},D("div",{class:U("ytPostsCreationOptionViewModelQuizOption",(e.ytPostsCreationOptionViewModelQuizOptionCorrect=a.isCorrect,e)),role:"group"},D("div",{class:"ytPostsCreationOptionViewModelQuizOptionContainer"},D(AD,{className:U("ytPostsCreationOptionViewModelOptionSelectorButton",(A.ytPostsCreationOptionViewModelOptionSelectorButtonCorrect=a.isCorrect,A.ytPostsCreationOptionViewModelOptionSelectorButtonImageType= a.isImageType,A)),data:function(){return Object.assign({},Zoc,{iconName:a.isCorrect()?"check_circle":"check_circle_outline",accessibilityText:a.isCorrect()?a.data().markedAsCorrectAnswerAccessibilityLabel:a.data().markAnswerButtonAccessibilityLabel})}, buttonOverrides:function(){return{toggleable:!0,toggled:a.isCorrect()}}, onClick:a.onMarkCorrect}),D(P,{cond:function(){return a.isImageType()}, then:function(){return D("div",{class:"ytPostsCreationOptionViewModelImageThumbnailContainer"},D(P,{cond:t,then:function(C){return D("div",{class:"ytPostsCreationOptionViewModelImageThumbnailRenderer"},D(Xoc,{data:function(){return{image:C(),selected:!1}}}),D("div",{class:"ytPostsCreationOptionViewModelImageThumbnailOverlay", "aria-hidden":"true"}),D("div",{class:"ytPostsCreationOptionViewModelImageRepositionContainer"},D("div",{class:"ytPostsCreationOptionViewModelImageRepositionButton","on:click":FC(function(){var I;(I=a.onRepositionClick)==null||I.call(a,a.index())}), role:"button","aria-label":function(){return a.data().repositionImageButtonAccessibilityLabel}},D(aC,{icon:function(){return"pencil"}}))))}, else:function(){return D("div",{class:"ytPostsCreationOptionViewModelImageSelectContainer","on:click":FC(d),role:"button","aria-label":function(){return a.data().selectImageButtonAccessibilityLabel}},D(aC,{className:"ytPostsCreationOptionViewModelImageUploadButton", icon:function(){return"image"}}))}}))}}),D("div",{class:"ytPostsCreationOptionViewModelTextFieldContainer"},D(OC,{data:function(){return a.data().optionTextViewModel}},{textFieldViewModel:function(C){var I=C.data; return D(OWb,{data:function(){var K=I();if(K){var N,L=Object,R=L.assign,W={formId:f(),fieldId:(N=K.formFieldMetadata)==null?void 0:N.fieldId};N=Object;var S=N.assign,Y=K.contentProperties,da;var Aa,Sa=(da=I())==null?void 0:(Aa=da.contentProperties)==null?void 0:Aa.placeholderText;Sa?(da=String(a.index()+1),da=Sa.includes("$0")?Sa.replace("$0",da):Sa+" "+da):da="";return R.call(L,{},K,{formFieldMetadata:W,contentProperties:S.call(N,{},Y,{placeholderText:da})})}}})}})),D(P,{cond:function(){return!a.isImageType()}, then:function(){return D(AD,{className:"ytPostsCreationOptionViewModelImageTypeButton",data:function(){return Object.assign({},Zoc,{iconName:"image",accessibilityText:a.data().selectImageButtonAccessibilityLabel})}, onClick:function(){c()}})}}),D(AD,{className:"ytPostsCreationOptionViewModelRemoveOptionButton", data:function(){return Object.assign({},Zoc,{iconName:"delete",accessibilityText:a.data().deleteOptionButtonAccessibilityLabel})}, onClick:a.onRemove}))))},"Lk");var bXb=O(function(a){function b(I){if(I){var K,N,L=(K=a.uploadManager)==null?void 0:(N=K.call(a))==null?void 0:N.imagesUploadData;if(L){var R=I.toString();if(R.startsWith("blob:")){var W;return(W=L.find(function(da){var Aa;return((Aa=da.image.localImageSrc)==null?void 0:Aa.toString())===R}))==null?void 0:W.image}var S=Number(I),Y; return(Y=L.find(function(da){return da.image.id===S}))==null?void 0:Y.image}}} function c(I){I=b(I);(I==null?0:I.localImageSrc)&&URL.revokeObjectURL(I.localImageSrc.toString())} function d(){return A().map(function(I){return b(I.uri)}).filter(function(I){return!!I})} function e(I){if(I){var K=A().findIndex(function(da){return da.id===I}); if(K!==-1){var N=a.correctOptionIndex(),L=N;K=A().length)){var W=A()[I];if(W.uri!==K||W.text!==N||W.isValid!==L||W.imageUploadingState!==R){W.uri!==K&&c(W.uri);var S;(S=y())==null||Q0a(S,I,Object.assign({},W,{uri:K,text:N,isValid:L,imageUploadingState:R}))}}} function h(I){var K=d();if(K.length!==0){var N;K=(I=b((N=A()[I])==null?void 0:N.uri))?K.indexOf(I):-1;w(K);u(!0)}} function m(I){var K=I.detail,N=0,L;(L=A())==null||L.forEach(function(R,W){var S=K[N++];if(S&&S.previewCoordinates){var Y=b(S.id);Y&&(Y.previewCoordinates=S.previewCoordinates,(Y=y())!=null&&(S=S?{cropCoordinates:S.previewCoordinates,width:S.naturalWidth,height:S.naturalHeight}:void 0,Q0a(Y,W,Object.assign({},R,{cropDetails:S}))))}}); u(!1)} function p(){u(!1)} var q=l(ip(!1,void 0,"dbBqXe")),t=q.next().value,u=q.next().value;q=l(ip(-1,void 0,"OYa8qb"));var v=q.next().value,w=q.next().value,y=b1a(function(){return a.data().formFieldMetadata}),A=function(){var I,K; return(K=(I=y())==null?void 0:I.value)!=null?K:[]},C=FC(function(){var I=Uw(),K; (K=y())==null||K.add({id:I})}); zp(function(){A().forEach(function(I){c(I.uri)})}); q={};return D("yt-posts-creation-options-view-model",{class:U("ytPostsCreationOptionsViewModelHost",a.className)},D("div",{class:U("ytPostsCreationOptionsViewModelContainer",(q.ytPostsCreationOptionsViewModelHidden=t,q))},D(P,{cond:function(){return!!z(a.data().optionViewModel||{},Poc)}, then:function(){return D(mw,{each:A,keyBy:function(I){return I.id}},function(I,K){return D(apc,{data:function(){return z(a.data().optionViewModel||{},Poc)}, index:K,isCorrect:function(){return a.correctOptionIndex()===K()}, onMarkCorrect:function(){if(a.correctOptionIndex()!==K()){var N;(N=a.onCorrectOptionIndexChange)==null||N.call(a,K())}}, onRemove:function(){return void e(I().id)}, optionFormSchema:function(){return Object.assign({},a.data().optionFormSchemaTemplate,{id:I().id})}, option:I,onOptionTypeChange:function(){var N;(N=a.onOptionTypeChange)==null||N.call(a,!0)}, isImageType:a.isImageType,onOptionUpdated:f,uploadManager:a.uploadManager,onRepositionClick:h})})}}),D(P,{cond:function(){var I; return A().length<((I=a.data().maxTextOptions)!=null?I:Number.MAX_SAFE_INTEGER)}, then:function(){var I={},K={},N={},L={},R={};return D("button",{type:"button",class:U("ytPostsCreationOptionsViewModelAddOptionButton",(I.ytPostsCreationOptionsViewModelAddOptionButtonImageType=a.isImageType,I)),"on:click":C},D("span",{class:U("ytPostsCreationOptionsViewModelAddOptionContainer",(K.ytPostsCreationOptionsViewModelAddOptionContainerImageType=a.isImageType,K))},D("span",{class:U("ytPostsCreationOptionsViewModelImageThumbnail",(N.ytPostsCreationOptionsViewModelImageThumbnailImage=a.isImageType, N))},D(aC,{className:U("ytPostsCreationOptionsViewModelAddOptionIcon",(L.ytPostsCreationOptionsViewModelAddOptionIconImageType=a.isImageType,L)),icon:"ADD"})),D(gC,{className:U("ytPostsCreationOptionsViewModelAddOptionButtonText",(R.ytPostsCreationOptionsViewModelAddOptionButtonTextImageType=a.isImageType,R)),text:function(){return a.data().addOptionButtonText}})))}})),D(P,{cond:t, then:function(){return D(Yoc,{images:function(){return d()}, repositionInstructions:{editInstruction:{saveImagesButtonLabel:{runs:[{text:"SAVE IMAGES"}]},cancelButtonLabel:{runs:[{text:"CANCEL"}]}}},selectedImageIndex:v,onYtdBackstageImageRepositionSave:m,onYtdBackstageImageRepositionCancel:p})}}))},"Mk");var Lnc=O(function(a){var b=fL(kVa,function(){return a.data().askStudioCardLoadingStateEntityKey}); return D("ytcp-ask-studio-card-loading-view-model",{class:U("ytcpAskStudioCardLoadingViewModelHost"),"data-target-id":function(){return a.data().targetId||""}},D("div",{class:U("ytcpAskStudioCardLoadingViewModelLoadingHeader","ytcpAskStudioCardLoadingViewModelIsStreamingEnabled"), "aria-live":"polite"},D("div",{class:"ytcpAskStudioCardLoadingViewModelLoader"},D("svg",{"aria-hidden":"true",style:"width: 0; height: 0; position: absolute;",focusable:"false",xmlns:"http://www.w3.org/2000/svg"},D("linearGradient",{id:"spark-gradient"},D("stop",{class:"ytcpAskStudioCardLoadingViewModelSparkGradientStop1",offset:"0%"}),D("stop",{class:"ytcpAskStudioCardLoadingViewModelSparkGradientStop2",offset:"20%"}),D("stop",{class:"ytcpAskStudioCardLoadingViewModelSparkGradientStop3",offset:"100%"}))), D(aC,{gradientColor:"url(#spark-gradient)",icon:"spark_filled"})),D(gC,{text:function(){if(a.data().askStudioCardLoadingStateEntityKey){var c;return(c=b())==null?void 0:c.loadingText}return a.data().loadingText}, className:"ytcpAskStudioCardLoadingViewModelLoadingText"})))},"Nk");var bpc=new Qk("responseActionsViewModel");var cpc=new Qk("disclaimerItemViewModel");var epc=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("neNTs"),2);a=dpc;return b.return(a)})},fpc=yD(function(){return epc()},{debugName:"youchatQuizViewModel"}); Gn(xD,function(a){a.registerLoadFn("youchatQuizViewModel","neNTs",epc)});var hpc=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("RCG9Xe"),2);a=gpc;return b.return(a)})},ipc=yD(function(){return hpc()},{debugName:"flashcardSetViewModel"}); Gn(xD,function(a){a.registerLoadFn("flashcardSetViewModel","RCG9Xe",hpc)});var Imc=O(function(a){var b={};return D("yt-chat-item-view-model",{class:"ytChatItemViewModelHost","data-target-id":function(){return a.data().targetId||""}},D(P,{cond:function(){return a.data().icon}, then:function(c){return D(eC,{data:c,className:"ytChatItemViewModelIcon",alt:""})}}),D("div",{class:U("ytChatItemViewModelItemContent",(b.ytChatItemViewModelItemContentNoVerticalPadding=function(){return a.data().removeVerticalPadding},b)), role:function(){var c=a.data();c=z(c.content,bpc)||z(c.content,cpc)?void 0:"alert";return c}},D(P,{cond:function(){var c; return((c=a.data().textContent)==null?void 0:c.content)||""}, then:function(c){return D(bW,{text:c,wrapCodeBlocks:!0})}}),D(OC,{data:function(){return a.data().content}},{basicContentViewModel:jP, cardViewModel:tV,linearLayoutViewModel:lP,responseActionsViewModel:r0b,disclaimerItemViewModel:kkc,youchatQuizViewModel:fpc,flashcardSetViewModel:ipc})))},"Ok");var Cmc=O(function(a){var b=a.data,c=function(){var h;return(h=b())==null?void 0:h.description},d=function(){var h; return(h=b())==null?void 0:h.subtitle},e=function(){var h; return(h=b())==null?void 0:h.title},f={}; return D("ytfc-youth-basic-section-header-view-model",{class:U("ytfcYouthBasicSectionHeaderViewModelHost",a.className,(f.ytfcYouthBasicSectionHeaderViewModelDisableHorizontalPadding=function(){var h,m,p;return(p=(h=a.disableHorizontalPadding)==null?void 0:h.call(a))!=null?p:(m=b())==null?void 0:m.disableHorizontalPadding},f))},D("div",{class:"ytfcYouthBasicSectionHeaderViewModelLeading"},D(OC,{data:function(){var h; return(h=b())==null?void 0:h.avatar}},{avatarViewModel:zD, decoratedAvatarViewModel:OR}),D(P,{cond:function(){var h;return wD((h=b())==null?void 0:h.themedImage)}, then:function(h){return D(eC,{data:h,alt:function(){var m,p;return(p=(m=e())==null?void 0:m.content)!=null?p:""}, className:"ytfcYouthBasicSectionHeaderViewModelImage"})}})),D("div",{class:"ytfcYouthBasicSectionHeaderViewModelDetails"},D(P,{cond:e, then:function(){return D(gC,{text:e,className:"ytfcYouthBasicSectionHeaderViewModelTitle"})}}),D("div",{class:"ytfcYouthBasicSectionHeaderViewModelMetadata"},D(OC,{data:function(){var h; return(h=b())==null?void 0:h.bottomBadge}},{badgeViewModel:function(h){return D("div",{class:"ytfcYouthBasicSectionHeaderViewModelBadge"},D(ED,{data:h.data}))}}),D(P,{cond:d, then:function(){return D(gC,{text:d,className:"ytfcYouthBasicSectionHeaderViewModelSubtitle"})}}),D(P,{cond:c, then:function(){var h={};return D(gC,{text:c,className:U("ytfcYouthBasicSectionHeaderViewModelDescription",(h.ytfcYouthBasicSectionHeaderViewModelClickableDescription=function(){var m,p;return!!((m=c())==null?0:(p=m.commandRuns)==null?0:p.length)},h))})}}))))},"Pk");var Fmc=O(function(a){var b=a.data;return D("ytfc-youth-section-body-view-model",{class:U("ytfcYouthSectionBodyViewModelHost",a.className)},D(OC,{data:function(){var c;return(c=b())==null?void 0:c.topContent}},{avatarStackViewModel:function(c){return D(NR,{data:c.data, className:"ytfcYouthSectionBodyViewModelAvatarStack"})}}),D(gC,{text:function(){var c; return(c=b())==null?void 0:c.description}, className:"ytfcYouthSectionBodyViewModelDescription"}))},"Qk");var nmc=O(function(a){var b=a.data;var c=a.isOverlay;return D("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},D("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},D(OC,{data:function(){return b().header}},{sectionHeaderViewModel:function(d){return D(UV,{data:d.data, isOverlay:c})}})),D("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},D(OC,{data:function(){return b().channelInfoButtons}},{flexibleActionsViewModel:AQ})),D("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},D(OC,{data:function(){return b().description}},{descriptionPreviewViewModel:function(d){return D(QYb,{data:d.data, isOverlay:c})}})))},"Rk"); nmc.idomCompat=!0;var Kkc=O(function(a){var b=nV(),c=oV(function(){return a.data().textTypographyToken},b); return D("yt-feedback-prompt-view-model",{class:U("ytFeedbackPromptViewModelHost",a.className)},D(OC,{data:function(){return a.data().likeButton}},{likeButtonViewModel:function(d){return D(yQ,{data:d.data, className:"ytFeedbackPromptViewModelLikeButton"})}}),D(OC,{data:function(){return a.data().dislikeButton}},{dislikeButtonViewModel:xQ}),D(P,{cond:function(){return a.data().text}, then:function(d){return D(gC,{text:d,className:"ytFeedbackPromptViewModelPrompt",style:c})}}))},"Sk");var jpc=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("xgv4kf"),2);a=Zkc;return b.return(a)})},kpc=yD(function(){return jpc()},{debugName:"clusterViewModel"}); Gn(xD,function(a){a.registerLoadFn("clusterViewModel","xgv4kf",jpc)});var lpc=[],roc=O(function(a){var b=l(TV({canHaveZeroSize:!1})),c=b.next().value;b=b.next().value;var d=function(){var e;return(e=a.data().items)!=null?e:lpc}; return D("yt-adaptive-grid-view-model",{class:"ytAdaptiveGridViewModelHost",el:dB(b),style:GC({"--adaptive-num-cols-large":function(){var e=d().length;return e===4||e===2?2:3}, "--adaptive-num-cols-medium":2,"--adaptive-num-cols-small":1})},D("div",{class:"ytAdaptiveGridViewModelContainer"},D(OC,{data:d,wrapper:function(e){return D("div",{class:"ytAdaptiveGridViewModelGridItem"},e())}},{lockupViewModel:zT, shortsLockupViewModel:function(e){return D(X_b,{data:e.data,scrimStyle:3,aspectRatio:3})}, clusterViewModel:kpc,chatUserTurnViewModel:function(e){return D(Skc,{data:e.data,containerHeight:c.height,isFullWidth:!0,isFullHeight:!0,disableMargin:!0})}})))},"Tk");var Vmc=O(function(a){var b=Fn().resolve(Cn(HB));return D("yt-sponsorships-destination-hub-header-view-model",{class:U("ytSponsorshipsDestinationHubHeaderViewModelHost",a.className)},D("div",{class:"ytSponsorshipsDestinationHubHeaderViewModelHeader"},D("div",{class:"ytSponsorshipsDestinationHubHeaderViewModelIcon","aria-hidden":"true"},D(P,{cond:function(){var c;return(c=b==null?void 0:b())!=null&&c?a.data().animationDarkUrl:a.data().animationLightUrl}, then:function(c){return D(YA,{data:function(){return{animationConfig:{autoplay:!0,loop:!0,path:c(),name:"sponsorships-destination-hub-header"}}}, animationName:"sponsorships-destination-hub-header"})}, else:function(){return D(OC,{data:function(){var c;return(c=a.data())==null?void 0:c.image}},{themedImageViewModel:IX})}})),D(P,{cond:function(){return a.data().title}, then:function(c){return D("div",{class:"ytSponsorshipsDestinationHubHeaderViewModelTitle"},D(gC,{text:c}))}})),D(P,{cond:function(){return a.data().subtitle}, then:function(c){return D("div",{class:"ytSponsorshipsDestinationHubHeaderViewModelSubtitle"},D(gC,{text:c}))}}))},"Uk");var mpc=O(function(a){var b=a.data;var c={};return D("factoid-view-model",{class:U("ytwFactoidViewModelHost",(c.ytwFactoidViewModelHostOverlay=a.isOverlay,c))},D(gC,{text:function(){return b().value}, className:"ytwFactoidViewModelHostFactoidValue"}),D(gC,{text:function(){return b().label}, className:"ytwFactoidViewModelHostFactoidLabel"}))},"Vk"); mpc.idomCompat=!0;var smc=O(function(a){var b=a.data;var c=a.isOverlay;return D("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},D(OC,{data:function(){return b().factoids}},{factoidViewModel:function(d){return D(mpc,{data:d.data, isOverlay:c})}}))},"Wk"); smc.idomCompat=!0;var $mc=O(function(a){return D("yt-timeline-search-no-results-view-model",{class:U("ytTimelineSearchNoResultsViewModelHost")},function(){var b;return(b=a.data())==null?void 0:b.text})},"Xk");var npc=la(["",""]);function opc(){return sa.apply(0,arguments).flat().filter(function(a){return a}).join(";")} function ppc(){return xva(npc,opc.apply(null,ia(sa.apply(0,arguments))))} ;var rpc=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("Tx5i5b"),2);a=qpc;return b.return(a)})},spc=yD(function(){return rpc()},{debugName:"expandableMetadataViewModel"}); Gn(xD,function(a){a.registerLoadFn("expandableMetadataViewModel","Tx5i5b",rpc)});var tpc=O(function(a){var b=void 0,c=function(){return a.data()},d=function(){return!!YV(XV(c())).optionColor},e=l(ip(-1,void 0,"GLzYed")),f=e.next().value,h=e.next().value,m=function(v){return f()===v},p=function(v){return c().correctAnswerIndex===v},q=function(){return f()!==-1}; e=l(ip("",void 0,"yz0zt"));var t=e.next().value,u=e.next().value;return D("yoututor-quiz-view-model",{class:U("learningQuizComponentHost","learningYoututorQuizHost",a.className),style:GC({background:function(){return YV(XV(c())).backgroundColor}})},D("div",{"aria-live":"polite", class:"learningYoututorQuizVisuallyHidden"},t),D("div",{class:"learningQuizComponentQuizContainer"},D("div",{class:"learningQuizComponentQuiz"},D("div",{class:"learningQuizComponentQuizContent"},D(P,{cond:function(){return!!c().aiGeneratedQuizLabel}, then:function(){return D("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},D(gC,{text:function(){return c().aiGeneratedQuizLabel}}))}}),D("div",{class:"learningQuizComponentQuizHeader"},D("div",{class:"learningQuizComponentQuizHeaderTextContainer"},D("div",{class:"learningYoututorQuizText", style:GC({color:function(){return YV(XV(c())).primaryTextColor}})},D(gC,{text:function(){return c().questionHeaderText}}))))),D("div",{role:"group", class:U("learningQuizComponentQuizOptionsList","learningYoututorQuizOptionsListGap")},D(mw,{each:function(){return c().optionsData||[]}},function(v,w){var y={}; return D("button",{class:U("learningQuizComponentQuizOptions","learningYoututorQuizOptionsGap","learningYoututorQuizOptionsBorderSquare",(y.learningQuizComponentQuizHover=function(){return!q()},y.learningQuizComponentQuizOptionWithCustomColor=d,y.learningYoututorQuizOptionSelectedCorrectOutline=function(){return q()&&p(w())},y.learningYoututorQuizOptionSelectedIncorrectOutline=function(){return f()!==c().correctAnswerIndex&&m(w())},y.learningQuizComponentQuizIncorrectShake=function(){return f()!== c().correctAnswerIndex&&m(w())},y)), "on:click":FC(function(){Pz(gz(),{data:v});if(q())return!1;h(w());u(p(w())?c().correctAnswerAriaLabel||"":c().incorrectAnswerAriaLabel||"");return!1}), style:GC({background:"transparent"}),"aria-description":function(){return q()?p(w())?c().correctAnswerAriaLabel:c().incorrectAnswerAriaLabel:""}, "aria-disabled":q,el:dB(function(A){$V(271905,A,b,function(C){b=C})}), "client-ve-type":271905},D("div",{class:"learningQuizComponentQuizOptionContainer"},D(gC,{text:v.optionText}),D(P,{cond:function(){var A=w();return q()&&(m(A)||p(A))}, then:function(){var A={};return D(aC,{className:U("learningYoututorQuizOptionIcon",(A.learningQuizComponentQuizPulse=function(){return f()===c().correctAnswerIndex&&p(w())},A)), size:24,icon:function(){return p(w())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"}, active:!0})}})))}),D(P,{cond:q, then:function(){return D("div",{class:"learningYoututorQuizExplanationContainer"},D("div",{class:"learningYoututorQuizExplanationText"},D(gC,{text:function(){return c().explanationHeaderText}})),D(gC,{text:function(){return c().optionsData[f()].explanationText}, className:"learningYoututorQuizExplanationDescriptionText"}))}})))))},"Yk"); tpc.idomCompat=!0;var upc=O(function(a){var b=a.thumbsUp,c=a.thumbsDown,d=a.rightAlignThumbs;a=l(ip(!1,void 0,"pB5C5"));var e=a.next().value,f=a.next().value;a=l(ip(!1,void 0,"l0yeYe"));var h=a.next().value,m=a.next().value;a={};return D("div",{class:U("ytwThumbsUpDownThumbs",(a.ytwThumbsUpDownRightAlign=function(){return d==null?void 0:d()},a))},D(CD,{data:b, onToggle:function(p){f(p);h()&&m(!1)}, buttonShapeOverrides:function(){return{toggled:e()}}}),D(CD,{data:c, onToggle:function(p){m(p);e()&&f(!1)}, buttonShapeOverrides:function(){return{toggled:h()}}}))},"Zk"); upc.idomCompat=!0;var wpc=O(function(a){var b=function(){return a.data().pendingStateEntityKey||""},c=fL(Kfc,b),d=fL(iCb,function(){return a.data().lastMessageIdEntityKey}),e=function(){var q; return(q=d())==null?void 0:q.value},f=function(){var q; if(!(q=a.disabled())){var t;q=!((t=c())==null||!t.isPendingResponse)}return q},h=l(ip(ppc(""),void 0,"YGalFd")),m=h.next().value,p=h.next().value; qw(function(){requestAnimationFrame(function(){var q=a.data().onShowAnimationMs||0;q=q>0?ppc("--chip-animation-duration: "+q+"ms;"):ppc("");p(q)})}); return D("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:m},D(mw,{each:function(){return a.data().chipData||[]}, keyBy:"REFERENCE"},function(q){return D(vpc,{data:q,disabled:f,pendingStateKey:b,lastMessageId:e,onError:a.onError})}))},"al"),vpc=O(function(a){var b=tw("button"),c=l(ip(!0,void 0,"ze5VMd")),d=c.next().value,e=c.next().value,f=function(){return a.data().text.content},h=function(){return a.data().transparentWhenLoading},m=eL(iQ.currentPageSubTypeSelector),p=function(){var t; return(t=Fn().resolve(Cn(YZ)))==null?void 0:t.getPageContext(m())},q=FC(function(t){var u,v,w,y,A,C,I,K; return ra(function(N){switch(N.nextAddress){case 1:t.stopPropagation();if(a.disabled())return N.return();v=String(Math.floor(((u=(0,ND.getPlayer)())==null?void 0:u.getCurrentTime())||0)*1E3);w="youchat-"+Date.now();y=function(){OB(a.data().onClick||{});var L=Jfc(a.data().continuation),R,W=XZ({clientMessageId:w,playerOffsetMs:v,pageContext:p(),lastMessageId:(R=a.lastMessageId)==null?void 0:R.call(a)});return new Promise(function(S,Y){OB(L,{form:{formData:W},commandController:{onSuccess:function(da, Aa){S(Aa)}, onServerError:function(da,Aa){Y(Aa.error)}}})})}; A=Lfc(a.pendingStateKey());A(!0);Jcb("#youchat-input, ytd-engagement-panel-section-list-renderer #footer yt-chat-input-view-model textarea, ytm-engagement-panel-section-list-renderer .engagement-panel-section-list-footer-wrapper yt-chat-input-view-model button");e(!1);N.setCatchFinallyBlocks(2);return N.yield(y(),4);case 4:N.leaveTryBlock(3);break;case 2:C=N.enterCatchBlock(),(K=(I=a).onError)==null||K.call(I,C);case 3:A(!1),N.jumpToEnd();}})}); return D(P,{cond:d,then:function(){return D("div",{class:"ytwYouChatChipsDataChipWrapper"},D("button",{el:b,class:"ytwYouChatChipsDataChip","data-disabled":a.disabled,"data-transparent-loading":h,"on:click":q,tabindex:0},f))}})},"bl");var xpc=O(function(a){var b=a.data;var c=a.initiallyExpanded;var d=function(){var q;return(q=b().conversationResourceData)==null?void 0:q.learningGuideData}; a=l(Gu(function(){var q;return(q=c==null?void 0:c())!=null?q:!1})); var e=a.next().value,f=a.next().value,h=function(){var q,t=z((q=d())==null?void 0:q.expandButton,ZJ);t&&Pz(gz(),{data:t});f(!0)},m=Vo(function(){var q,t; return(t=(q=d())==null?void 0:q.sections)!=null?t:[]},void 0,"Glbr3e"),p=Vo(function(){return m().length>4},void 0,"Co55sc"); a=Vo(function(){var q;return!e()&&p()&&(q=d())!=null&&q.expandButton?m().slice(0,4):m()},void 0,"KBMXXb"); return D("yt-conversation-resource-view-model",{class:U("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},D(OC,{data:a},{expandableMetadataViewModel:spc}),D(P,{cond:function(){return p()&&!e()}, then:function(){return D("div",{id:"showMoreButton"},D(OC,{data:function(){var q;return(q=d())==null?void 0:q.expandButton}},{buttonViewModel:function(q){return D(AD,{data:q.data, onClick:h})}}))}}))},"cl");var cnc=O(function(a){var b=x("web_enable_youchat_ux_changes"),c=l(ip([],void 0,"Wv8ycc")),d=c.next().value,e=c.next().value,f=function(){var S,Y;return((S=a.data().text)==null?void 0:S.content)||((Y=a.data().textContent)==null?void 0:Y.content)||""},h=function(){var S,Y; return(S=a.data().webData)==null?void 0:(Y=S.textResult)==null?void 0:Y.content},m=Fn().resolve(WB),p=tQ(),q=function(){return a.data().chatResponseStyle},t=function(){return!a.data().transparentBackground},u=function(){return a.data().rightAlignThumbs},v=function(){return a.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||a.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"||!!a.data().icon}, w=function(){return{animationConfig:{autoplay:!1, loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:v()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:a.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},y=function(){var S,Y; return a.data().webData||((S=a.data().text)==null?void 0:S.content)||a.data().videoResultsData||a.data().conversationResourceViewModel||a.data().quiz||a.data().yoututorQuiz||a.data().richContent||a.data().content||((Y=a.data().textContent)==null?void 0:Y.content)},A=function(){return!!a.data().sectionHeader||y()},C=function(){return a.data().hideIcon||q()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||q()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?!1:A()},I=function(){var S; return(S=a.data().videoResultsData)==null?void 0:S.videoShelf},K=function(){var S; return(S=a.data().webData)==null?void 0:S.sourcesShelf},N=function(){return q()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||q()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:a.data().thumbsDownViewModel&&a.data().thumbsUpViewModel},L=function(){return z(a.data().thumbsUpViewModel,aK)},R=function(){return z(a.data().thumbsDownViewModel,aK)},W=function(){return v()}; qw(function(){requestAnimationFrame(function(){f()&&x("enable_youchat_latex_rendering")&&za("kn8kmd").then(function(){e(d().concat([ypc]))}); var S;(S=a.shouldAnimateIcon)!=null&&S.call(a)&&zpc(p.lottieEl)})}); c={};return D("you-chat-item-view-model",{class:U("ytwYouChatItemViewModelYouChatItemViewModel",(c.ytwYouChatItemViewModelColumnLayout=W,c.ytwYouChatItemViewModelYouChatItemViewModelNoZIndex=b,c)),style:GC({"min-height":function(){var S,Y;return ilc((S=a.containerHeight)==null?void 0:S.call(a),(Y=a.isLastItem)==null?void 0:Y.call(a))}}), "data-target-id":function(){return a.data().id||""}},D(P,{cond:function(){return a.data().removeIcon||v()&&!C()?!1:A()}, then:function(){return D("div",{"aria-hidden":"true"},D(P,{cond:function(){return a.data().icon}, then:function(S){var Y={};return D(eC,{data:S,className:U("ytwYouChatItemViewModelIcon",(Y.ytwYouChatItemViewModelIconVertical=W,Y)),alt:""})}, else:function(){var S={};return D(YA,{className:U("ytwYouChatItemViewModelIcon",(S.ytwYouChatItemViewModelRtl=m==="rtl",S.ytwYouChatItemViewModelHidden=function(){return!C()},S)), animationName:"YOUCHAT_ICON",data:w,animationRef:p})}}))}}),D(P,{cond:A, then:function(){var S={};return D("div",{class:U("ytwYouChatItemViewModelHost",(S.ytwYouChatItemViewModelHostNoPadding=function(){return!!a.data().sectionHeader&&!y()},S.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return q()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},S.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return q()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},S.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return q()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"}, S.ytwYouChatItemViewModelGradientBackground=t,S.ytwYouChatItemViewModelHostAlignStart=function(){return!v()},S.ytwYouChatItemViewModelHostDefaultFlex=function(){return!v()},S)), role:"alert"},D(P,{cond:f,then:function(Y){return D(bW,{text:Y,wrapCodeBlocks:!0,plugins:d})}}),D(OC,{data:function(){return a.data().sectionHeader}},{sectionHeaderViewModel:function(Y){var da={}; return D(UV,{data:Y.data,className:U("ytwYouChatItemViewModelSectionHeader",(da.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!a.data().sectionHeader&&!y()},da)), forceSmallLayout:!0})}}),D(P,{cond:h, then:function(Y){return D(bW,{text:Y,wrapCodeBlocks:!0})}}),D(P,{cond:I, then:function(){return D("div",{class:"ytwYouChatItemViewModelLockupShelf"},D(OC,{data:function(){var Y;return(Y=a.data().videoResultsData)==null?void 0:Y.videoShelf}},{horizontalShelfViewModel:function(Y){return D(aW,{data:Y.data, hasPeek:!0,disableArrows:!1,protectBackground:!0})}}))}}),D(P,{cond:K, then:function(){return D("div",{class:"ytwYouChatItemViewModelLockupShelf"},D(OC,{data:function(){var Y;return(Y=a.data().webData)==null?void 0:Y.sourcesShelf}},{horizontalShelfViewModel:function(Y){return D(aW,{data:Y.data, hasPeek:!0,disableArrows:!1})}}))}}),D(OC,{data:function(){return a.data().conversationResourceViewModel}},{conversationResourceViewModel:xpc}),D(OC,{data:function(){return a.data().quiz}},{learningJourneyQuizViewModel:r1b}),D(OC,{data:function(){return a.data().yoututorQuiz}},{yoututorQuizViewModel:tpc}),D(OC,{data:function(){return a.data().richContent}},{cardViewModel:tV, linearLayoutViewModel:lP}),D(OC,{data:function(){return a.data().content}},{cardViewModel:tV, yoututorQuizViewModel:tpc,linearLayoutViewModel:lP,learningJourneyQuizViewModel:r1b,conversationResourceViewModel:xpc}),D(P,{cond:N,then:function(){return D(upc,{thumbsUp:L,thumbsDown:R,rightAlignThumbs:u})}}))}}),D(P,{cond:function(){return a.data().chipsData}, then:function(S){return D(wpc,{data:S,disabled:a.pending,onError:a.onError})}}))},"el"); cnc.idomCompat={callbacks:{onError:!0,onSend:!0}};function zpc(a){a==null||a.addEventListener("DOMLoaded",function(){a.goToAndPlay(a.totalFrames-48,!0)})} ;var Apc=new Qk("lottieAnimationViewModel");var Nkc=O(function(a){var b=function(){return a.data().targetId||""},c=function(){var h; return((h=Fn().resolve(Cn(HB)))==null?0:h())&&a.data().darkThemeAnimation?Bpc(a.data().darkThemeAnimation):a.data().animation?Bpc(a.data().animation):a.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},d=tQ(),e=Fn().resolve(WB); qw(function(){requestAnimationFrame(function(){var h;(h=d.lottieEl)==null||h.addEventListener("DOMLoaded",function(){var m;(m=a.onLottieLoaded)==null||m.call(a)})})}); var f={};return D("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":b,"aria-label":function(){return a.data().loadingAnimationA11yLabel||""}, role:function(){return a.data().loadingAnimationA11yLabel?"progressbar":void 0}, style:GC({"min-height":function(){var h,m;return ilc((h=a.containerHeight)==null?void 0:h.call(a),(m=a.isLastItem)==null?void 0:m.call(a),b())}})},D(YA,{"aria-hidden":"true", className:U((f.ytChatLoadingViewModelRtl=e==="rtl",f)),animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:c()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||c()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:c()}}}, animationRef:d}))},"gl"); function Bpc(a){a=z(a,Apc);if(a==null?0:a.trustedAnimationUrl){var b;return(b=Lk(a.trustedAnimationUrl))==null?void 0:b.toString()}return a==null?void 0:a.animationUrl} ;var Qkc=O(function(a){var b=a.data;var c=a.containerHeight;var d=a.isLastItem;var e=a.isFullWidth;var f=a.isFullHeight;a=a.disableMargin;var h=function(){return KD(b().rendererContext)},m={},p={}; return D("yt-chat-user-turn-view-model",{el:dB(MD(function(){return h()?b().rendererContext:void 0})), class:U("ytChatUserTurnViewModelHost",(m.ytChatUserTurnViewModelHostFullHeight=f,m.ytChatUserTurnViewModelHostFullWidth=e,m)),style:GC({"min-height":function(){return ilc(c==null?void 0:c(),d==null?void 0:d())}}), "data-target-id":function(){var q;return(q=b().itemTargetId)!=null?q:""}, role:function(){return h()?"button":void 0}, tabindex:function(){return h()?0:void 0}},D(P,{cond:function(){return b().choiceSelectedText}, then:function(q){return D("div",{class:"ytChatUserTurnViewModelChoiceSelected"},D(gC,{text:q}))}}),D("div",{class:U("ytChatUserTurnViewModelTextContainer",function(){a:switch(b().type){case"CHAT_USER_TURN_TYPE_ACTION":var q="ytChatUserTurnViewModelTextContainerAction"; break a;default:q="ytChatUserTurnViewModelTextContainerMessage";}return q},function(){return Cpc(b())},function(){a:switch(b().surface){case"CHAT_USER_TURN_SURFACE_PAGE":var q="ytChatUserTurnViewModelTextContainerPage"; break a;default:q="ytChatUserTurnViewModelTextContainerPanel";}return q},(p.ytChatUserTurnViewModelTappable=h,p.ytChatUserTurnViewModelTextContainerAlignEnd=function(){return!(e==null?0:e())},p.ytChatUserTurnViewModelTextContainerFullHeight=f,p.ytChatUserTurnViewModelDisableMargin=a,p))},function(){return b().text}))},"hl"); function Cpc(a){if(a.backgroundStyle)switch(a.backgroundStyle){case"CHAT_USER_TURN_BACKGROUND_STYLE_MONO":return"ytChatUserTurnViewModelMonoContainer";case"CHAT_USER_TURN_BACKGROUND_STYLE_GRADIENT":return"ytChatUserTurnViewModelGradientContainer";case"CHAT_USER_TURN_BACKGROUND_STYLE_TONAL":return"ytChatUserTurnViewModelTonalContainer";default:return"ytChatUserTurnViewModelDefaultContainer";}return a.hasGradientBackground?"ytChatUserTurnViewModelGradientContainer":"ytChatUserTurnViewModelDefaultContainer"} ;Object.create(null);var I1=function(){}; I1.prototype.equals=function(a){return J1(this,a)}; I1.prototype.hashCode=function(){return Dpc(this)}; I1.prototype.toString=function(){var a=K1(L1(M1(this.constructor)))+"@";var b=(this.hashCode()>>>0).toString(16);return a+K1(b)}; var Epc=function(a){return a!=null}; I1.prototype.$$classMetadata=["java.lang.Object",0];var N1=function(a){this.f_localeString__com_google_apps_xplat_i18n_context_LocaleContext_=a}; k(N1,I1);var Fpc=function(a){return a instanceof N1}; N1.prototype.$$classMetadata=["com.google.apps.xplat.i18n.context.LocaleContext",0];var O1=function(){},Gpc=function(a){var b=typeof a; return P1(b,"boolean")||P1(b,"number")||P1(b,"string")||a instanceof MG?!0:a!=null&&a.$implements__java_lang_Comparable==1}; O1.prototype.$implements__java_lang_Comparable=!0;O1.prototype.$$classMetadata=["java.lang.Comparable",1];var Q1=function(){}; k(Q1,I1);var R1=function(a){Hpc();Ipc(a)},S1=function(a,b){Hpc(); a.f_detailMessage__java_lang_Throwable_=b;Ipc(a)},T1=function(a,b){a.backingJsObject=b; Jpc(b,a)},Ipc=function(a){Kpc(a.backingJsObject)&&(Error.captureStackTrace?Error.captureStackTrace(V(a.backingJsObject,Kpc,Lpc)):V(a.backingJsObject,Kpc,Lpc).stack=Error().stack)}; Q1.prototype.toString=function(){var a=L1(M1(this.constructor)),b=this.f_detailMessage__java_lang_Throwable_;return b==null?a:K1(a)+": "+K1(b)}; var W1=function(a){if(a!=null){var b=a.__java$exception;if(b!=null)return b}a instanceof TypeError?b=U1():(b=new V1,R1(b),T1(b,Error(b)));b.f_detailMessage__java_lang_Throwable_=a==null?"null":a.toString();T1(b,a);return b},Hpc=function(){X1([0],Y1,Mpc)},Npc=function(a){return a instanceof Q1}; Q1.prototype.$$classMetadata=["java.lang.Throwable",0];var Z1=function(){}; k(Z1,Q1);Z1.prototype.$$classMetadata=["java.lang.Exception",0];var $1=function(){}; k($1,Z1);$1.prototype.$$classMetadata=["java.lang.RuntimeException",0];var a2=function(){}; k(a2,$1);var Opc=function(){var a=new a2;R1(a);T1(a,Error(a));return a},Ppc=function(a){var b=new a2; S1(b,a);T1(b,Error(b));return b}; a2.prototype.$$classMetadata=["java.lang.IndexOutOfBoundsException",0];var J1=function(a,b){return Object.is(a,b)||a==null&&b==null};var Qpc=function(){}; k(Qpc,$1);Qpc.prototype.$$classMetadata=["java.lang.ArithmeticException",0];var Rpc=function(){}; k(Rpc,a2);Rpc.prototype.$$classMetadata=["java.lang.ArrayIndexOutOfBoundsException",0];var Spc=function(){}; k(Spc,$1);Spc.prototype.$$classMetadata=["java.lang.ArrayStoreException",0];var Tpc=function(){}; k(Tpc,Q1);Tpc.prototype.$$classMetadata=["java.lang.Error",0];var Upc=function(){}; k(Upc,Tpc);var b2=function(a){var b=new Upc,c=K1(a);a=Npc(a)?a:null;Hpc();b.f_cause__java_lang_Throwable_=a;b.f_detailMessage__java_lang_Throwable_=c;Ipc(b);T1(b,Error(b));return b}; Upc.prototype.$$classMetadata=["java.lang.AssertionError",0];var c2=function(){}; k(c2,$1);var Vpc=function(a){var b=new c2;S1(b,a);T1(b,Error(b));return b}; c2.prototype.$$classMetadata=["java.lang.ClassCastException",0];var d2=function(){}; k(d2,$1);var Wpc=function(){var a=new d2;R1(a);T1(a,Error(a));return a},e2=function(a){var b=new d2; S1(b,a);T1(b,Error(b));return b}; d2.prototype.$$classMetadata=["java.lang.IllegalArgumentException",0];var Xpc=function(){}; k(Xpc,$1);var Ypc=function(){var a=new Xpc;R1(a);T1(a,Error(a));return a}; Xpc.prototype.$$classMetadata=["java.lang.IllegalStateException",0];var V1=function(){}; k(V1,$1);V1.prototype.$$classMetadata=["java.lang.JsException",0];var f2=function(){}; k(f2,V1);var U1=function(){var a=new f2;R1(a);T1(a,new TypeError(a));return a},Zpc=function(a){var b=new f2; S1(b,a);T1(b,new TypeError(b));return b}; f2.prototype.$$classMetadata=["java.lang.NullPointerException",0];var $pc=function(){}; k($pc,a2);var aqc=function(a){var b=new $pc;S1(b,a);T1(b,Error(b));return b}; $pc.prototype.$$classMetadata=["java.lang.StringIndexOutOfBoundsException",0];var bqc=function(){}; k(bqc,$1);bqc.prototype.$$classMetadata=["java.util.ConcurrentModificationException",0];var cqc=function(){}; k(cqc,$1);var g2=function(){var a=new cqc;R1(a);T1(a,Error(a));return a}; cqc.prototype.$$classMetadata=["java.util.NoSuchElementException",0];var h2=function(){}; k(h2,I1);h2.prototype.$$classMetadata=["java.lang.Number",0];var i2=function(){}; k(i2,h2);var k2=function(a){return j2(a)},l2=function(a){return"number"===typeof a}; i2.prototype.$implements__java_lang_Comparable=!0;i2.prototype.$$classMetadata=["java.lang.Double",0];var dqc=function(){throw m2().backingJsObject},n2=function(a){var b; a.m_hasNext__boolean()?b={value:a.m_next__java_lang_Object(),done:!1}:b={value:null,done:!0};return b};var eqc,fqc=function(){fqc=function(){}; for(var a=X1([256],o2,p2),b=0;b<256;b=b+1|0)q2(a,b,gqc(b-128|0));eqc=a};var r2=function(){}; k(r2,I1);var hqc=function(a){return"boolean"===typeof a}; r2.prototype.$implements__java_lang_Comparable=!0;r2.prototype.$$classMetadata=["java.lang.Boolean",0];var V=function(a,b,c){if(a!=null&&!b(a))throw a=K1(L1(s2(a)))+" cannot be cast to "+K1(L1(M1(c))),Vpc(a).backingJsObject;return a};var iqc=function(a,b,c){if(Object.prototype.hasOwnProperty.call(a.prototype,b))return a.prototype[b];c=c();return a.prototype[b]=c};var t2=function(a){if(!isFinite(a))throw a=new Qpc,R1(a),T1(a,Error(a)),a.backingJsObject;return a|0},u2=function(a){return Math.max(Math.min(a,2147483647),-2147483648)|0};var jqc=function(a,b){if(ab)return 1;if(a==b){if(a!=0)return 0;a=1/a;b=1/b;return a==b?0:a",1];z2.prototype.$implements__$$JavaScriptFunction=!0;var mqc=function(){}; k(mqc,I1);mqc.prototype.$$classMetadata=["",0];var X1=function(a,b,c){return nqc(a,oqc(b,c,a.length))},nqc=function(a,b){var c=a[0]; if(c==null)return null;var d=new globalThis.Array(c);b&&(d.$$arrayMetadata=b);if(a.length>1){a=a.slice(1);b=b&&oqc(b.leafType,b.leafTypeIsInstance,b.dimensionCount-1);for(var e=0;e1){if(!pqc(c,d.leafType,d.leafTypeIsInstance,d.dimensionCount-1)){d=!1;break a}}else if(c!=null&&!d.leafTypeIsInstance(c)){d=!1;break a}d=!0}if(!d)throw a=new Spc,R1(a),T1(a,Error(a)),a.backingJsObject;a[b]=c},pqc=function(a,b,c,d){if(a==null||!Array.isArray(a))return!1; a=a.$$arrayMetadata||{leafType:I1,dimensionCount:1};var e=a.dimensionCount;return e==d?(d=a.leafType,d===b?!0:b&&b.prototype.$$isPrimitive||d&&d.prototype.$$isPrimitive?!1:c(d.prototype)):e>d?I1==b:!1},qqc=function(a,b,c){if(a!=null&&!pqc(a,b,c,1))throw b=M1(b,1),a=L1(s2(a))+" cannot be cast to "+L1(b),Vpc(a).backingJsObject; return a},oqc=function(a,b,c){return{leafType:a, leafTypeIsInstance:b,dimensionCount:c}};var o2=function(){this.f_value__java_lang_Integer_=0}; k(o2,h2);var tqc=function(a){if(a==null)throw rqc("null").backingJsObject;for(var b=a.length,c=b>0&&(v2(a,0)==45||v2(a,0)==43)?1:0;c=48&&d<58?d-48|0:d>=97&&d<97?d-97+10|0:d>=65&&d<65?d-65+10|0:-1)==-1)throw sqc(a).backingJsObject}b=parseInt(a,10);c=b<-2147483648;if(isNaN(b))throw sqc(a).backingJsObject;if(c||b>2147483647)throw sqc(a).backingJsObject;return b},C2=function(a){a>-129&&a<128?(fqc(),a=eqc[a+128|0]):a=gqc(a); return a},gqc=function(a){var b=new o2; b.f_value__java_lang_Integer_=a;return b}; g=o2.prototype;g.equals=function(a){return p2(a)&&V(a,p2,o2).f_value__java_lang_Integer_==this.f_value__java_lang_Integer_}; g.hashCode=function(){return this.f_value__java_lang_Integer_}; g.intValue=function(){return this.f_value__java_lang_Integer_}; g.toString=function(){return""+this.f_value__java_lang_Integer_}; g.m_compareTo__java_lang_Object__int=function(a){var b=V(a,p2,o2);a=this.f_value__java_lang_Integer_;b=b.f_value__java_lang_Integer_;return ab?1:0}; var p2=function(a){return a instanceof o2}; o2.prototype.$implements__java_lang_Comparable=!0;o2.prototype.$$classMetadata=["java.lang.Integer",0];var uqc,vqc,wqc=function(a){uqc==null&&(uqc=RegExp("\\d"));return uqc.test(D2(a))},xqc=function(a){return a>=56320&&a<=57343},yqc=function(a,b){var c=E2(a,b=b-1|0),d,e; if(e=xqc(c)&&b>0)a=d=E2(a,b-1|0),e=a>=55296&&a<=56319;return e?65536+((d&1023)<<10)+(c&1023)|0:c};var zqc=function(){}; k(zqc,$1);var m2=function(){var a=new zqc;R1(a);T1(a,Error(a));return a}; zqc.prototype.$$classMetadata=["java.lang.UnsupportedOperationException",0];var Aqc=function(a){this.f_fn__java_lang_Iterable_$LambdaAdaptor=a}; k(Aqc,I1);Aqc.prototype.m_iterator__java_util_Iterator=function(){var a;return a=this.f_fn__java_lang_Iterable_$LambdaAdaptor,a()}; Aqc.prototype.$$classMetadata=["java.lang.Iterable$$LambdaAdaptor",0];var Bqc=function(){},Cqc=function(a){return a!=null&&!!a.$implements__java_util_Comparator}; Bqc.prototype.$implements__java_util_Comparator=!0;Bqc.prototype.$$classMetadata=["java.util.Comparator",1];var F2=function(){}; k(F2,I1);F2.prototype.m_compare__java_lang_Object__java_lang_Object__int=function(a,b){a=V(a,Gpc,O1);b=V(b,Gpc,O1);return Dqc(V(j2(a),Gpc,O1),V(j2(b),Gpc,O1))}; F2.prototype.$implements__java_util_Comparator=!0;F2.prototype.$$classMetadata=["java.util.Comparators$NaturalOrderComparator",0];var Dqc=function(a,b){switch(j2(typeof a)){case"number":return b=V(b,l2,i2),a=j2(a),b=j2(b),jqc(a,b);case"boolean":return b=V(b,hqc,r2),a=j2(a),b=j2(b),a==b?0:a?1:-1;case"string":return Eqc(a,V(b,G2,y2));}a instanceof MG?(b=V(b,Fqc,A2),a=j2(a),b=j2(b),a=a.compare(b)<0?-1:a.compare(b)>0?1:0):a=a.m_compareTo__java_lang_Object__int(b);return a};var Gqc,Iqc=function(a){Hqc();return a==null?Gqc:a},Hqc=function(){Hqc=function(){}; Gqc=new F2};var H2=function(){}; k(H2,I1);g=H2.prototype;g.add=function(){throw m2().backingJsObject}; g.addAll=function(a){j2(a);var b=!1;for(a=a.m_iterator__java_util_Iterator();a.m_hasNext__boolean();){var c=a.m_next__java_lang_Object();b=!!(+b|+this.add(c))}return b}; g.clear=function(){for(var a=this.m_iterator__java_util_Iterator();a.m_hasNext__boolean();)a.m_next__java_lang_Object(),a.JSC$17334_m_remove__void()}; g.contains=function(a){return Jqc(this,a,!1)}; g.containsAll=function(a){j2(a);for(a=a.m_iterator__java_util_Iterator();a.m_hasNext__boolean();){var b=a.m_next__java_lang_Object();if(!this.contains(b))return!1}return!0}; g.isEmpty=function(){return this.size()==0}; g.remove=function(a){return Jqc(this,a,!0)}; g.removeAll=function(a){j2(a);for(var b=!1,c=this.m_iterator__java_util_Iterator();c.m_hasNext__boolean();){var d=c.m_next__java_lang_Object();a.contains(d)&&(c.JSC$17334_m_remove__void(),b=!0)}return b}; g.m_toArray__arrayOf_java_lang_Object=function(){return Kqc(this,Array(this.size()))}; g.m_toArray__arrayOf_java_lang_Object__arrayOf_java_lang_Object=function(a){return Kqc(this,a)}; g.toString=function(){for(var a=Lqc("[","]"),b=this.m_iterator__java_util_Iterator();b.m_hasNext__boolean();){var c=b.m_next__java_lang_Object();Mqc(a,J1(c,this)?"(this Collection)":K1(c))}return a.toString()}; var Jqc=function(a,b,c){for(a=a.m_iterator__java_util_Iterator();a.m_hasNext__boolean();){var d=a.m_next__java_lang_Object();if(I2(b,d))return c&&a.JSC$17334_m_remove__void(),!0}return!1}; H2.prototype.$$classMetadata=["java.util.AbstractCollection",0];var Nqc=function(){}; k(Nqc,I1);Nqc.prototype.toString=function(){return this.f_string__java_lang_AbstractStringBuilder}; Nqc.prototype.$$classMetadata=["java.lang.AbstractStringBuilder",0];var J2=function(){},Pqc=function(a,b){var c=a.m_toArray__arrayOf_java_lang_Object(); b=Iqc(b);var d=c.length,e=c.slice(0,d);Oqc(e,c,0,d,0,b);for(b=0;b-1;b=b-1|0)if(I2(a,this.getAtIndex(b)))return b;return-1}; g.m_listIterator__java_util_ListIterator=function(){return this.m_listIterator__int__java_util_ListIterator(0)}; g.m_listIterator__int__java_util_ListIterator=function(a){var b=new Qqc;b.$outer_this__java_util_AbstractList_ListIteratorImpl=this;b.$outer_this__java_util_AbstractList_IteratorImpl=this;b.f_i__java_util_AbstractList_IteratorImpl=0;b.f_last__java_util_AbstractList_IteratorImpl=-1;Rqc(a,this.size());b.f_i__java_util_AbstractList_IteratorImpl=a;return b}; g.removeAtIndex=function(){throw m2().backingJsObject}; g.setAtIndex=function(){throw m2().backingJsObject}; g.subList=function(a,b){var c=new Sqc;Tqc(a,b,this.size());c.f_wrapped__java_util_AbstractList_SubList_=this;c.f_fromIndex__java_util_AbstractList_SubList_=a;c.f_size__java_util_AbstractList_SubList_=b-a|0;return c}; g.m_removeRange__int__int__void=function(a,b){for(var c=this.m_listIterator__int__java_util_ListIterator(a);a=0;b=b-1|0)if(I2(a,this.f_array__java_util_ArrayListBase[b])){a=b;break a}a=-1}return a}; g.removeAtIndex=function(a){var b=this.getAtIndex(a);this.f_array__java_util_ArrayListBase.splice(a,1);return b}; g.remove=function(a){a=this.indexOf(a);if(a==-1)return!1;this.f_array__java_util_ArrayListBase.splice(a,1);return!0}; g.setAtIndex=function(a,b){var c=this.getAtIndex(a);q2(this.f_array__java_util_ArrayListBase,a,b);return c}; g.size=function(){return this.f_array__java_util_ArrayListBase.length}; g.m_toArray__arrayOf_java_lang_Object__arrayOf_java_lang_Object=function(a){var b=this.f_array__java_util_ArrayListBase.length;a.lengthb&&q2(a,b,null);return a}; g.m_sort__java_util_Comparator__void=function(a){Xqc(this.f_array__java_util_ArrayListBase,this.f_array__java_util_ArrayListBase.length,Iqc(a))}; g.$implements__java_util_List=!0;g.$implements__java_util_RandomAccess=!0;g.$$classMetadata=["java.util.ArrayListBase",0];var Yqc=function(){}; k(Yqc,Uqc);var Zqc=function(){var a=new Yqc;a.f_array__java_util_ArrayListBase=[];return a}; g=Yqc.prototype;g.add=function(a){this.f_array__java_util_ArrayListBase.push(a);return!0}; g.addAtIndex=function(a,b){Rqc(a,this.f_array__java_util_ArrayListBase.length);this.f_array__java_util_ArrayListBase.splice(a,0,b)}; g.addAllAtIndex=function(a,b){Rqc(a,this.f_array__java_util_ArrayListBase.length);b=b.m_toArray__arrayOf_java_lang_Object();var c=b.length;if(c==0)a=!1;else{var d=this.f_array__java_util_ArrayListBase.length+c|0;this.f_array__java_util_ArrayListBase.length=d;var e=a+c|0;$qc(this.f_array__java_util_ArrayListBase,a,this.f_array__java_util_ArrayListBase,e,d-e|0);$qc(b,0,this.f_array__java_util_ArrayListBase,a,c);a=!0}return a}; g.m_toArray__arrayOf_java_lang_Object=function(){var a=this.f_array__java_util_ArrayListBase,b=a.slice();b.$$arrayMetadata=a.$$arrayMetadata;return qqc(b,I1,Epc)}; g.m_removeRange__int__int__void=function(a,b){Tqc(a,b,this.f_array__java_util_ArrayListBase.length);this.f_array__java_util_ArrayListBase.splice(a,b-a|0)}; g.$$classMetadata=["java.util.ArrayList",0];var Vqc=function(){this.f_last__java_util_ArrayListBase_1=this.f_i__java_util_ArrayListBase_1=0}; k(Vqc,I1);g=Vqc.prototype;g.m_hasNext__boolean=function(){return this.f_i__java_util_ArrayListBase_10}; g.m_nextIndex__int=function(){return this.f_i__java_util_AbstractList_IteratorImpl}; g.m_previous__java_lang_Object=function(){R2(this.m_hasPrevious__boolean());return this.$outer_this__java_util_AbstractList_ListIteratorImpl.getAtIndex(this.f_last__java_util_AbstractList_IteratorImpl=this.f_i__java_util_AbstractList_IteratorImpl=this.f_i__java_util_AbstractList_IteratorImpl-1|0)}; g.m_previousIndex__int=function(){return this.f_i__java_util_AbstractList_IteratorImpl-1|0}; g.$$classMetadata=["java.util.AbstractList$ListIteratorImpl",0];var Sqc=function(){this.f_size__java_util_AbstractList_SubList_=this.f_fromIndex__java_util_AbstractList_SubList_=0}; k(Sqc,L2);g=Sqc.prototype;g.addAtIndex=function(a,b){Rqc(a,this.f_size__java_util_AbstractList_SubList_);this.f_wrapped__java_util_AbstractList_SubList_.addAtIndex(this.f_fromIndex__java_util_AbstractList_SubList_+a|0,b);this.f_size__java_util_AbstractList_SubList_=this.f_size__java_util_AbstractList_SubList_+1|0}; g.getAtIndex=function(a){Q2(a,this.f_size__java_util_AbstractList_SubList_);return this.f_wrapped__java_util_AbstractList_SubList_.getAtIndex(this.f_fromIndex__java_util_AbstractList_SubList_+a|0)}; g.removeAtIndex=function(a){Q2(a,this.f_size__java_util_AbstractList_SubList_);a=this.f_wrapped__java_util_AbstractList_SubList_.removeAtIndex(this.f_fromIndex__java_util_AbstractList_SubList_+a|0);this.f_size__java_util_AbstractList_SubList_=this.f_size__java_util_AbstractList_SubList_-1|0;return a}; g.setAtIndex=function(a,b){Q2(a,this.f_size__java_util_AbstractList_SubList_);return this.f_wrapped__java_util_AbstractList_SubList_.setAtIndex(this.f_fromIndex__java_util_AbstractList_SubList_+a|0,b)}; g.size=function(){return this.f_size__java_util_AbstractList_SubList_}; g.$$classMetadata=["java.util.AbstractList$SubList",0];var ssc=function(){}; k(ssc,L2);g=ssc.prototype;g.contains=function(a){return this.indexOf(a)!=-1}; g.getAtIndex=function(a){Q2(a,this.size());return this.f_array__java_util_Arrays_ArrayList_[a]}; g.setAtIndex=function(a,b){var c=this.getAtIndex(a);q2(this.f_array__java_util_Arrays_ArrayList_,a,b);return c}; g.size=function(){return this.f_array__java_util_Arrays_ArrayList_.length}; g.m_sort__java_util_Comparator__void=function(a){Xqc(this.f_array__java_util_Arrays_ArrayList_,this.f_array__java_util_Arrays_ArrayList_.length,Iqc(a))}; g.m_toArray__arrayOf_java_lang_Object=function(){return this.m_toArray__arrayOf_java_lang_Object__arrayOf_java_lang_Object(Array(this.f_array__java_util_Arrays_ArrayList_.length))}; g.m_iterator__java_util_Iterator=function(){var a=new tsc;a.f_array__javaemul_internal_ArrayIterator_=this.f_array__java_util_Arrays_ArrayList_;return a}; g.m_toArray__arrayOf_java_lang_Object__arrayOf_java_lang_Object=function(a){var b=this.f_array__java_util_Arrays_ArrayList_.length;a.lengthb&&q2(a,b,null);return a}; g.$implements__java_util_RandomAccess=!0;g.$$classMetadata=["java.util.Arrays$ArrayList",0];var tsc=function(){this.f_i__javaemul_internal_ArrayIterator_=0}; k(tsc,I1);g=tsc.prototype;g.m_hasNext__boolean=function(){return this.f_i__javaemul_internal_ArrayIterator_c&&q2(b,c,null);return b};var vsc,wsc=function(a,b,c){b=new RegExp(b,"g");for(var d=0;0<=(d=c.indexOf("\\",d));)c=v2(c,d+1|0)==36?K1(t3(c,0,d))+"$"+K1(u3(c,d=d+1|0)):K1(t3(c,0,d))+K1(u3(c,d=d+1|0));return a.replace(b,c)},xsc=function(a){return wsc(a.toString(),"([/\\\\\\.\\*\\+\\?\\|\\(\\)\\[\\]\\{\\}$^])","\\\\$1")};var v3=function(){}; k(v3,d2);var sqc=function(a){return rqc("For input string: \""+K1(a)+"\"")},rqc=function(a){var b=new v3; S1(b,a);T1(b,Error(b));return b}; v3.prototype.$$classMetadata=["java.lang.NumberFormatException",0];var $qc=function(a,b,c,d,e){var f=a.length,h=c.length;if(b<0||d<0||e<0||(b+e|0)>f||(d+e|0)>h)throw Opc().backingJsObject;if(e!=0)if(J1(a,c)&&bd;)q2(c,e=e-1|0,a[b=b-1|0]);else for(e=d+e|0;db)throw e2("fromIndex: 0 > toIndex: "+b).backingJsObject;if(b>d)throw a=new Rpc,S1(a,"fromIndex: 0, toIndex: "+b+", length: "+d),T1(a,Error(a)),a.backingJsObject;d=a.slice(0,b);Oqc(d,a,0,b,0,c)};var Wqc=function(a,b){a.$$arrayMetadata=b.$$arrayMetadata;return a};var Oqc=function(a,b,c,d,e,f){if((d-c|0)<17){a=c;for(var h=a+1|0;ha;){c=b[p-1|0];if(f.m_compare__java_lang_Object__java_lang_Object__int(c,m)<=0)break;q2(b,p,c);p=p-1|0}q2(b,p,m)}}else if(p=c+e|0,h=d+e|0,m=p+((h-p|0)>>1)|0,Oqc(b,a,p,m,-e|0,f),Oqc(b,a,m,h,-e|0,f),f.m_compare__java_lang_Object__java_lang_Object__int(a[m-1|0],a[m])<=0)for(;c=h||p=b)throw Ppc("Index: "+a+", Size: "+b).backingJsObject; },ysc=function(a,b){if(a<0||a>=b)throw aqc("Index: "+a+", Size: "+b).backingJsObject; },Rqc=function(a,b){if(a<0||a>b)throw Ppc("Index: "+a+", Size: "+b).backingJsObject; },Tqc=function(a,b,c){if(a<0||b>c)throw Ppc("fromIndex: "+a+", toIndex: "+b+", size: "+c).backingJsObject; if(a>b)throw e2("fromIndex: "+a+" > toIndex: "+b).backingJsObject},Grc=function(a,b){if(a!=b)throw a=new bqc,R1(a),T1(a,Error(a)),a.backingJsObject; };var Y1=function(){}; k(Y1,I1);Y1.prototype.equals=function(a){return Mpc(a)?J1(this.f_methodName__java_lang_StackTraceElement_,a.f_methodName__java_lang_StackTraceElement_)&&J1(this.f_className__java_lang_StackTraceElement_,a.f_className__java_lang_StackTraceElement_)&&J1(this.f_fileName__java_lang_StackTraceElement_,a.f_fileName__java_lang_StackTraceElement_):!1}; Y1.prototype.hashCode=function(){var a=[C2(0),this.f_className__java_lang_StackTraceElement_,this.f_methodName__java_lang_StackTraceElement_,this.f_fileName__java_lang_StackTraceElement_];return usc(a)}; Y1.prototype.toString=function(){return K1(this.f_className__java_lang_StackTraceElement_)+"."+K1(this.f_methodName__java_lang_StackTraceElement_)+"("+K1(this.f_fileName__java_lang_StackTraceElement_!=null?this.f_fileName__java_lang_StackTraceElement_:"Unknown Source")+":0)"}; var Mpc=function(a){return a instanceof Y1}; Y1.prototype.$$classMetadata=["java.lang.StackTraceElement",0];var Lpc=function(){},Kpc=function(a){return a instanceof Error}; Lpc.prototype.$$classMetadata=["Error",0];var Jpc=function(a,b){if(a instanceof Object)try{a.__java$exception=b,Object.defineProperties(a,{cause:{get:function(){return b.f_cause__java_lang_Throwable_&&b.f_cause__java_lang_Throwable_.backingJsObject}}})}catch(c){}};var y2=function(){}; k(y2,I1);var D2=function(a){return String.fromCharCode(a)},K1=function(a){return a==null?"null":a.toString()},v2=function(a,b){ysc(b,a.length); return a.charCodeAt(b)},x3=function(a,b){var c=a.length,d,e=E2(a,(d=b,b=b+1|0,d)),f; return e>=55296&&e<=56319&&bd||c1E3)throw e2("Found too many placeholders during substitution. Check placeholderValues for unescaped ... substrings.").backingJsObject;var e=V(A3(V(d[0],G2,y2)),G2,y2);d=V(A3(V(d[1],G2,y2)),G2,y2);d=tqc(d);d=b[d-1|0].toString();a=wsc(a,xsc(e),xsc(d));d=Lsc.exec(a)}return a},Msc=function(){Msc=function(){}; Lsc=RegExp("%(\\d)","i")};var Osc=function(a,b){a=K1(a);b==null&&(b=["(Object[])null"]);for(var c=osc(),d=0,e=0;e>>0).toString(16));a=Psc;if(Qsc==null){var d=new Rsc;d.f_loggerMap__java_util_logging_LogManager_=j3();Qsc=d;d=Ssc("");var e=(Tsc(),Usc);d.f_level__java_util_logging_Logger_=e;Vsc(Qsc,d)}d=a(Qsc,"com.google.common.base.Strings");e=(Tsc(),Wsc);var f="Exception during lenientFormat for "+K1(c);if(Xsc&&e.JSC$16947_m_intValue__int()>=Ysc.JSC$16947_m_intValue__int())for(a=new Zsc,a.f_thrown__java_util_logging_LogRecord_= null,a.f_level__java_util_logging_LogRecord_=e,a.f_msg__java_util_logging_LogRecord_=f,e=Date.now(),TG(e),a.f_thrown__java_util_logging_LogRecord_=b;d!=null;){e=qqc(d.f_handlers__java_util_logging_Logger_.m_toArray__arrayOf_java_lang_Object__arrayOf_java_lang_Object(X1([d.f_handlers__java_util_logging_Logger_.size()],C3,$sc)),C3,$sc);for(f=0;f=Ysc.JSC$16947_m_intValue__int()?"error":h>=Wsc.JSC$16947_m_intValue__int()?"warn":h>=Usc.JSC$16947_m_intValue__int()?"info":"log",console[h].call(console,m.f_msg__java_util_logging_LogRecord_),m.f_thrown__java_util_logging_LogRecord_!=null&&ctc(p,h,m.f_thrown__java_util_logging_LogRecord_,"Exception: ",!0))}d=d.f_useParentHandlers__java_util_logging_Logger_? d.f_parent__java_util_logging_Logger_:null}return"<"+K1(c)+" threw "+K1(L1(s2(b)))+">"}throw b.backingJsObject}};var D3=function(){},btc,Usc,Ysc,Wsc; k(D3,I1);D3.prototype.JSC$16947_m_getName__java_lang_String=function(){return"DUMMY"}; D3.prototype.JSC$16947_m_intValue__int=function(){return-1}; D3.prototype.toString=function(){return this.JSC$16947_m_getName__java_lang_String()}; var Tsc=function(){Tsc=function(){}; btc=new E3;Usc=new F3;Ysc=new G3;Wsc=new H3}; D3.prototype.$$classMetadata=["java.util.logging.Level",0];var E3=function(){}; k(E3,D3);E3.prototype.JSC$16947_m_getName__java_lang_String=function(){return"ALL"}; E3.prototype.JSC$16947_m_intValue__int=function(){return-2147483648}; E3.prototype.$$classMetadata=["java.util.logging.Level$LevelAll",0];var F3=function(){}; k(F3,D3);F3.prototype.JSC$16947_m_getName__java_lang_String=function(){return"INFO"}; F3.prototype.JSC$16947_m_intValue__int=function(){return 800}; F3.prototype.$$classMetadata=["java.util.logging.Level$LevelInfo",0];var G3=function(){}; k(G3,D3);G3.prototype.JSC$16947_m_getName__java_lang_String=function(){return"SEVERE"}; G3.prototype.JSC$16947_m_intValue__int=function(){return 1E3}; G3.prototype.$$classMetadata=["java.util.logging.Level$LevelSevere",0];var H3=function(){}; k(H3,D3);H3.prototype.JSC$16947_m_getName__java_lang_String=function(){return"WARNING"}; H3.prototype.JSC$16947_m_intValue__int=function(){return 900}; H3.prototype.$$classMetadata=["java.util.logging.Level$LevelWarning",0];var Zsc=function(){}; k(Zsc,I1);Zsc.prototype.$$classMetadata=["java.util.logging.LogRecord",0];var C3=function(){}; k(C3,I1);var $sc=function(a){return a instanceof C3}; C3.prototype.$$classMetadata=["java.util.logging.Handler",0];var Rsc=function(){},Qsc; k(Rsc,I1);var Vsc=function(a,b){if(r3(b.f_name__java_util_logging_Logger_)){var c=new dtc;Xsc=!0;b.f_handlers__java_util_logging_Logger_.add(c)}a.f_loggerMap__java_util_logging_LogManager_.put(b.f_name__java_util_logging_Logger_,b)},Psc=function(a,b){var c=V(a.f_loggerMap__java_util_logging_LogManager_.get(b),etc,I3); if(c==null){b=Ssc(b);c=b.f_name__java_util_logging_Logger_;var d=Math,e=d.max;var f=String.fromCodePoint(46);f=c.lastIndexOf(f);c=t3(c,0,e.call(d,0,f));c=Psc(a,c);c!=null&&(b.f_parent__java_util_logging_Logger_=c);Vsc(a,b);return b}return c}; Rsc.prototype.$$classMetadata=["java.util.logging.LogManager",0];var dtc=function(){}; k(dtc,C3);dtc.prototype.$$classMetadata=["java.util.logging.SimpleConsoleLogHandler",0];var atc=function(){}; k(atc,I1); var ctc=function(a,b,c,d,e){(e||console.groupCollapsed==null?console.group!=null?console.group:console.log:console.groupCollapsed).call(console,K1(d)+K1(c.toString()));d=c.backingJsObject;console[b].call(console,d&&d.stack||"");d=c.f_cause__java_lang_Throwable_;d!=null&&ctc(a,b,d,"Caused by: ",!1);c=c.f_suppressedExceptions__java_lang_Throwable_==null?X1([0],Q1,Npc):qqc(c.f_suppressedExceptions__java_lang_Throwable_.m_toArray__arrayOf_java_lang_Object__arrayOf_java_lang_Object(X1([0],Q1,Npc)),Q1, Npc);for(d=0;d0}; g.m_previous__java_lang_Object=function(){if(!this.m_hasPrevious__boolean())throw g2().backingJsObject;var a=this.f_position__com_google_common_collect_AbstractIndexedListIterator_=this.f_position__com_google_common_collect_AbstractIndexedListIterator_-1|0;return this.$outer_this__com_google_common_collect_ImmutableList_1.getAtIndex(a)}; g.m_previousIndex__int=function(){return this.f_position__com_google_common_collect_AbstractIndexedListIterator_-1|0}; g.$$classMetadata=["com.google.common.collect.AbstractIndexedListIterator",0];var K3=function(){}; k(K3,J3);K3.prototype.m_hasNext__boolean=function(){return this.$captured_iterator__com_google_common_collect_Iterators_1.m_hasNext__boolean()}; K3.prototype.m_next__java_lang_Object=function(){return this.$captured_iterator__com_google_common_collect_Iterators_1.m_next__java_lang_Object()}; K3.prototype.$$classMetadata=["com.google.common.collect.Iterators$1",0];var mtc=function(a,b){if(a==null)throw Zpc("null key in entry: null="+K1(b)).backingJsObject;if(b==null)throw Zpc("null value in entry: "+K1(a)+"=null").backingJsObject};var L3=function(){this.f_done__com_google_common_collect_Iterators_SingletonIterator_=!1}; k(L3,J3);L3.prototype.m_hasNext__boolean=function(){return!this.f_done__com_google_common_collect_Iterators_SingletonIterator_}; L3.prototype.m_next__java_lang_Object=function(){if(this.f_done__com_google_common_collect_Iterators_SingletonIterator_)throw g2().backingJsObject;this.f_done__com_google_common_collect_Iterators_SingletonIterator_=!0;return this.f_value__com_google_common_collect_Iterators_SingletonIterator_}; L3.prototype.$$classMetadata=["com.google.common.collect.Iterators$SingletonIterator",0];var ntc=function(a){A3(a);if(jtc(a))a=V(a,jtc,J3);else{var b=new K3;b.$captured_iterator__com_google_common_collect_Iterators_1=a;a=b}return a};var M3=function(){}; k(M3,H2);g=M3.prototype;g.contains=function(a){return a!=null&&H2.prototype.contains.call(this,a)}; g.add=function(){throw m2().backingJsObject}; g.remove=function(){throw m2().backingJsObject}; g.addAll=function(){throw m2().backingJsObject}; g.removeAll=function(){throw m2().backingJsObject}; g.clear=function(){throw m2().backingJsObject}; g.m_asList__com_google_common_collect_ImmutableList=function(){var a=this.f_asList__com_google_common_collect_ImmutableCollection_;return a==null?this.f_asList__com_google_common_collect_ImmutableCollection_=this.m_createAsList__com_google_common_collect_ImmutableList_$pp_com_google_common_collect():a}; g.m_createAsList__com_google_common_collect_ImmutableList_$pp_com_google_common_collect=function(){switch(this.size()){case 0:return otc(),ptc;case 1:var a=this.m_iterator__com_google_common_collect_UnmodifiableIterator().m_next__java_lang_Object();return qtc(A3(a));default:return rtc(this,this.m_toArray__arrayOf_java_lang_Object());}}; g.m_iterator__java_util_Iterator=function(){return this.m_iterator__com_google_common_collect_UnmodifiableIterator()}; g.$$classMetadata=["com.google.common.collect.ImmutableCollection",0];var stc=function(){}; k(stc,M3);var utc=function(a){switch(a.size()){case 0:return otc(),ptc;case 1:return a=a.getAtIndex(0),qtc(A3(a));default:return ttc(a);}}; g=stc.prototype;g.indexOf=function(a){if(a==null)a=-1;else a:if(P2(this))b:{var b=this.size();if(a==null)for(a=0;a=0;a=a-1|0){if(this.getAtIndex(a)==null)break b}else for(var b=this.size()-1|0;b>=0;b=b-1|0)if(w2(a,this.getAtIndex(b))){a=b;break b}a=-1}else{for(b=this.m_listIterator__int__java_util_ListIterator(this.size());b.m_hasPrevious__boolean();)if(I2(a,b.m_previous__java_lang_Object())){a=b.m_nextIndex__int();break a}a=-1}return a}; g.addAllAtIndex=function(){throw m2().backingJsObject}; g.setAtIndex=function(){throw m2().backingJsObject}; g.addAtIndex=function(){throw m2().backingJsObject}; g.removeAtIndex=function(){throw m2().backingJsObject}; g.m_iterator__com_google_common_collect_UnmodifiableIterator=function(){return this.m_listIterator__int__com_google_common_collect_UnmodifiableListIterator(0)}; g.subList=function(a,b){if(P2(this)){var c=new vtc;c.f_backingList__com_google_common_collect_Lists_AbstractListWrapper=V(A3(this),K2,J2)}else c=new wtc,c.f_backingList__com_google_common_collect_Lists_AbstractListWrapper=V(A3(this),K2,J2);a=c.subList(a,b);return utc(a)}; g.m_listIterator__int__com_google_common_collect_UnmodifiableListIterator=function(a){var b=this.size(),c=new xtc;c.$outer_this__com_google_common_collect_ImmutableList_1=this;if(a<0||a>b){if(a<0)a=Osc("%s (%s) must not be negative",["index",C2(a)]);else{if(b<0)throw e2("negative size: "+b).backingJsObject;a=Osc("%s (%s) must not be greater than size (%s)",["index",C2(a),C2(b)])}throw Ppc(a).backingJsObject}c.f_size__com_google_common_collect_AbstractIndexedListIterator_=b;c.f_position__com_google_common_collect_AbstractIndexedListIterator_= a;return c}; g.m_asList__com_google_common_collect_ImmutableList=function(){return this}; g.equals=function(a){return ytc(this,a)}; g.hashCode=function(){for(var a=1,b=this.m_iterator__java_util_Iterator();b.m_hasNext__boolean();){var c=b.m_next__java_lang_Object();a=Math.imul(31,a)+(c==null?0:x2(c))|0;a=~~a}return a}; g.m_listIterator__java_util_ListIterator=function(){return this.m_listIterator__int__com_google_common_collect_UnmodifiableListIterator(0)}; g.m_listIterator__int__java_util_ListIterator=function(a){return this.m_listIterator__int__com_google_common_collect_UnmodifiableListIterator(a)}; g.m_sort__java_util_Comparator__void=function(a){Pqc(this,a)}; g.$implements__java_util_List=!0;g.$implements__java_util_RandomAccess=!0;g.$$classMetadata=["com.google.common.collect.ImmutableList",0];var ztc=function(){}; k(ztc,I1);ztc.prototype.toString=function(){return N3(this).toString()}; ztc.prototype.$$classMetadata=["com.google.common.collect.ForwardingObject",0];var Atc=function(){}; k(Atc,ztc);g=Atc.prototype;g.m_iterator__java_util_Iterator=function(){return N3(this).m_iterator__java_util_Iterator()}; g.size=function(){return N3(this).size()}; g.removeAll=function(a){return N3(this).removeAll(a)}; g.isEmpty=function(){return N3(this).isEmpty()}; g.contains=function(a){return N3(this).contains(a)}; g.add=function(a){return N3(this).add(a)}; g.remove=function(a){return N3(this).remove(a)}; g.containsAll=function(a){return N3(this).containsAll(a)}; g.addAll=function(a){return N3(this).addAll(a)}; g.clear=function(){N3(this).clear()}; g.m_toArray__arrayOf_java_lang_Object=function(){return N3(this).m_toArray__arrayOf_java_lang_Object()}; g.m_toArray__arrayOf_java_lang_Object__arrayOf_java_lang_Object=function(a){return N3(this).m_toArray__arrayOf_java_lang_Object__arrayOf_java_lang_Object(a)}; g.$$classMetadata=["com.google.common.collect.ForwardingCollection",0];var O3=function(){}; k(O3,Atc);O3.prototype.equals=function(a){return J1(a,this)||w2(N3(this),a)}; O3.prototype.hashCode=function(){return x2(N3(this))}; O3.prototype.$implements__java_util_Set=!0;O3.prototype.$$classMetadata=["com.google.common.collect.ForwardingSet",0];var P3=function(){}; k(P3,O3);var N3=function(a){return a.$outer_this__com_google_common_collect_ForwardingImmutableMap_1.f_delegate__com_google_common_collect_ForwardingImmutableMap.entrySet()}; P3.prototype.contains=function(a){if(S2(a)&&V(a,S2,T2).JSC$16875_getKey()==null)return!1;try{return O3.prototype.contains.call(this,a)}catch(c){var b=W1(c);if(b instanceof c2)return!1;throw b.backingJsObject}}; P3.prototype.m_toArray__arrayOf_java_lang_Object__arrayOf_java_lang_Object=function(a){a=O3.prototype.m_toArray__arrayOf_java_lang_Object__arrayOf_java_lang_Object.call(this,a);this.size()0,"Font size must be positive."); var c;return c=b.f_transformCreator__com_google_apps_xplatmath_api_CanvasTransform_YAxisDirection_,c(a)}; iuc.prototype.$$classMetadata=["com.google.apps.xplatmath.api.CanvasTransform",0];var kuc=function(){}; k(kuc,iuc);g=kuc.prototype;g.canvasFontSize=function(){return this.$captured_fontSize__com_google_apps_xplatmath_api_CanvasTransform_YAxisDirection_1.value()}; g.canvasLengthUnit=function(){return this.$captured_fontSize__com_google_apps_xplatmath_api_CanvasTransform_YAxisDirection_1.unit()}; g.layoutToCanvasX=function(a){return this.$captured_fontSize__com_google_apps_xplatmath_api_CanvasTransform_YAxisDirection_1.value()*a}; g.layoutToCanvasY=function(a){return this.$captured_fontSize__com_google_apps_xplatmath_api_CanvasTransform_YAxisDirection_1.value()*-a}; g.layoutToCanvasLength=function(a){return this.$captured_fontSize__com_google_apps_xplatmath_api_CanvasTransform_YAxisDirection_1.value()*a}; g.canvasYAxisDirection=function(){return k4(),luc}; g.$$classMetadata=["com.google.apps.xplatmath.api.CanvasTransform$YAxisDirection$1",0];var muc=function(){}; k(muc,iuc);g=muc.prototype;g.canvasFontSize=function(){return this.$captured_fontSize__com_google_apps_xplatmath_api_CanvasTransform_YAxisDirection_2.value()}; g.canvasLengthUnit=function(){return this.$captured_fontSize__com_google_apps_xplatmath_api_CanvasTransform_YAxisDirection_2.unit()}; g.layoutToCanvasX=function(a){return this.$captured_fontSize__com_google_apps_xplatmath_api_CanvasTransform_YAxisDirection_2.value()*a}; g.layoutToCanvasY=function(a){return this.$captured_fontSize__com_google_apps_xplatmath_api_CanvasTransform_YAxisDirection_2.value()*a}; g.layoutToCanvasLength=function(a){return this.$captured_fontSize__com_google_apps_xplatmath_api_CanvasTransform_YAxisDirection_2.value()*a}; g.canvasYAxisDirection=function(){return k4(),l4}; g.$$classMetadata=["com.google.apps.xplatmath.api.CanvasTransform$YAxisDirection$2",0];var m4=function(a){nuc(a,"false")},nuc=function(a,b){if(!a)throw b2(b).backingJsObject; },n4=function(){throw b2("Unreachable.").backingJsObject; },o4=function(a){j4(a,"false")},j4=function(a,b){if(!a)throw e2(b).backingJsObject; },p4=function(a){return ouc(a,"null")},ouc=function(a,b){if(a==null)throw b2(b).backingJsObject; return a};var puc=function(){}; puc.prototype.$$classMetadata=["com.google.apps.xplatmath.util.Length$Unit",0];var q4=function(){this.f_value__com_google_apps_xplatmath_util_AutoValue_Length_=0},quc; k(q4,g4);var suc=function(a,b){ruc();j4(b!=="EM"||a==1,"An `em` length other than 1 will result in double-scaling.");var c=new q4;c.f_value__com_google_apps_xplatmath_util_AutoValue_Length_=a;s3(c3(b,puc));c.f_unit__com_google_apps_xplatmath_util_AutoValue_Length_=b;return c}; q4.prototype.value=function(){return this.f_value__com_google_apps_xplatmath_util_AutoValue_Length_}; q4.prototype.unit=function(){return this.f_unit__com_google_apps_xplatmath_util_AutoValue_Length_}; var ruc=function(){ruc=function(){}; quc=suc(1,"EM")}; q4.prototype.$$classMetadata=["com.google.apps.xplatmath.util.Length",0];var r4=function(){this.f_y__com_google_apps_xplatmath_util_AutoValue_Point_=this.f_x__com_google_apps_xplatmath_util_AutoValue_Point_=0},tuc; k(r4,g4);var t4=function(a,b){return s4(a,b)},u4=function(){uuc(); return tuc},vuc=function(a,b){return a.offset(b.x(),b.y())}; r4.prototype.offset=function(a,b){return t4(this.x()+a,this.y()+b)}; r4.prototype.sub=function(a){return t4(this.x()-a.x(),this.y()-a.y())}; r4.prototype.offsetX=function(a){return t4(this.x()+a,this.y())}; r4.prototype.offsetY=function(a){return t4(this.x(),this.y()+a)}; var s4=function(a,b){uuc();var c=new r4;c.f_x__com_google_apps_xplatmath_util_AutoValue_Point_=a;c.f_y__com_google_apps_xplatmath_util_AutoValue_Point_=b;return c}; r4.prototype.x=function(){return this.f_x__com_google_apps_xplatmath_util_AutoValue_Point_}; r4.prototype.y=function(){return this.f_y__com_google_apps_xplatmath_util_AutoValue_Point_}; var uuc=function(){uuc=function(){}; tuc=s4(0,0)},wuc=function(a){return a instanceof r4}; r4.prototype.$$classMetadata=["com.google.apps.xplatmath.util.Point",0];var v4=function(){}; k(v4,I1);var xuc=function(a){var b=new v4;b.$outer_this__com_google_apps_xplatmath_collections_BaseXArray_1=a;return b}; v4.prototype.m_iterator__java_util_Iterator=function(){var a=new yuc;a.f_list__com_google_apps_xplatmath_collections_BaseXArray_ReverseIter_=this.$outer_this__com_google_apps_xplatmath_collections_BaseXArray_1;a.f_left__com_google_apps_xplatmath_collections_BaseXArray_ReverseIter_=a.f_list__com_google_apps_xplatmath_collections_BaseXArray_ReverseIter_.size();return a}; v4.prototype.toString=function(){return this.$outer_this__com_google_apps_xplatmath_collections_BaseXArray_1.toString()}; v4.prototype.$$classMetadata=["com.google.apps.xplatmath.collections.BaseXArray$1",0];var yuc=function(){this.f_left__com_google_apps_xplatmath_collections_BaseXArray_ReverseIter_=0}; k(yuc,I1);g=yuc.prototype;g.m_hasNext__boolean=function(){return this.f_left__com_google_apps_xplatmath_collections_BaseXArray_ReverseIter_>0}; g.m_next__java_lang_Object=function(){if(!this.m_hasNext__boolean())throw g2().backingJsObject;return this.f_list__com_google_apps_xplatmath_collections_BaseXArray_ReverseIter_.get(this.f_left__com_google_apps_xplatmath_collections_BaseXArray_ReverseIter_=this.f_left__com_google_apps_xplatmath_collections_BaseXArray_ReverseIter_-1|0)}; g.next=function(){return n2(this)}; g.JSC$17334_m_remove__void=function(){dqc()}; g.$$classMetadata=["com.google.apps.xplatmath.collections.BaseXArray$ReverseIter",0];var zuc=function(){}; k(zuc,I1);g=zuc.prototype;g.m_hasNext__boolean=function(){return this.f_iter__com_google_apps_xplatmath_collections_BaseXArray_Iter_.m_hasNext__boolean()}; g.m_next__java_lang_Object=function(){return this.f_iter__com_google_apps_xplatmath_collections_BaseXArray_Iter_.m_next__java_lang_Object()}; g.next=function(){return n2(this)}; g.JSC$17334_m_remove__void=function(){dqc()}; g.$$classMetadata=["com.google.apps.xplatmath.collections.BaseXArray$Iter",0];var w4=function(a){this.list=a}; k(w4,I1);var Auc=function(a,b){return 0<=b&&b=0;b=b-1|0)if(a(this.get(b)))return b;return-1}; g.some=function(a){return this.findIndex(a)!=-1}; g.every=function(a){for(var b=0;b0&&q3(b,a),p3(b,this.get(c));return b.toString()}; g.iterator=function(){var a=new zuc;a.f_iter__com_google_apps_xplatmath_collections_BaseXArray_Iter_=this.list.m_iterator__java_util_Iterator();return a}; g.equals=function(a){return J1(this,a)||a!=null&&Duc(a)&&this.list.equals(V(a,Duc,w4).list)}; g.hashCode=function(){return this.list.hashCode()}; g.toString=function(){return"["+K1(this.join(", "))+"]"}; g.m_iterator__java_util_Iterator=function(){return this.iterator()}; var Duc=function(a){return a instanceof w4}; w4.prototype.$$classMetadata=["com.google.apps.xplatmath.collections.BaseXArray",0];w4.prototype[Symbol.iterator]=function(){var a=this;return function c(){var d,e;return taa(c,function(f){switch(f.nextAddress){case 1:f.setFinallyBlock(2),d=0;case 4:if(!(d=0,"Initial capacity must not be negative");this.list=b}; k(H4,w4);var x4=function(a){return new H4(a)},C4=function(){return new H4(0)},Guc=function(a){var b=new H4(0); b.add(a);return b},F4=function(a,b){var c=new H4(0); c.add(a);c.add(b);return c},Huc=function(a,b,c,d){var e=new H4(0); e.add(a);e.add(b);e.add(c);e.add(d);return e}; H4.prototype.copy=function(){return Kuc(this)}; var Kuc=function(a){var b=x4(a.size());b.addAll(a);return b}; g=H4.prototype;g.set=function(a,b){if(0>a||a>=this.size())throw Opc().backingJsObject;this.list.setAtIndex(a,b)}; g.add=function(a){this.list.add(a);return this}; g.addAll=function(a){this.list.addAll(a.list);return this}; g.pop=function(){return this.list.isEmpty()?null:this.list.removeAtIndex(this.list.size()-1|0)}; g.clear=function(){this.list.clear()}; var Luc=function(a,b){b=65536?2:1)|0;return C2(a)}; g.JSC$17334_m_remove__void=function(){dqc()}; g.$$classMetadata=["com.google.apps.xplatmath.util.StringUtil$StringIterator",0];var V4=function(a){for(var b=a.length,c=0,d=0;d=55296&&f<=56319&&d=128)return!1; return!0};var Y4=function(){this.f_maxY__com_google_apps_xplatmath_util_AutoValue_Rect_=this.f_maxX__com_google_apps_xplatmath_util_AutoValue_Rect_=this.f_minY__com_google_apps_xplatmath_util_AutoValue_Rect_=this.f_minX__com_google_apps_xplatmath_util_AutoValue_Rect_=0},Ouc; k(Y4,g4);g=Y4.prototype;g.width=function(){return this.f_maxX__com_google_apps_xplatmath_util_AutoValue_Rect_-this.f_minX__com_google_apps_xplatmath_util_AutoValue_Rect_}; g.height=function(){return this.f_maxY__com_google_apps_xplatmath_util_AutoValue_Rect_-this.f_minY__com_google_apps_xplatmath_util_AutoValue_Rect_}; g.centerX=function(){return(this.f_minX__com_google_apps_xplatmath_util_AutoValue_Rect_+this.f_maxX__com_google_apps_xplatmath_util_AutoValue_Rect_)/2}; g.centerY=function(){return(this.f_minY__com_google_apps_xplatmath_util_AutoValue_Rect_+this.f_maxY__com_google_apps_xplatmath_util_AutoValue_Rect_)/2}; g.isZero=function(){return this.equals(Ouc)}; g.union=function(a){return h4(Math.min(this.f_minX__com_google_apps_xplatmath_util_AutoValue_Rect_,a.f_minX__com_google_apps_xplatmath_util_AutoValue_Rect_),Math.min(this.f_minY__com_google_apps_xplatmath_util_AutoValue_Rect_,a.f_minY__com_google_apps_xplatmath_util_AutoValue_Rect_),Math.max(this.f_maxX__com_google_apps_xplatmath_util_AutoValue_Rect_,a.f_maxX__com_google_apps_xplatmath_util_AutoValue_Rect_),Math.max(this.f_maxY__com_google_apps_xplatmath_util_AutoValue_Rect_,a.f_maxY__com_google_apps_xplatmath_util_AutoValue_Rect_))}; var Quc=function(a,b){var c=a.f_minX__com_google_apps_xplatmath_util_AutoValue_Rect_,d=a.f_maxX__com_google_apps_xplatmath_util_AutoValue_Rect_,e=a.f_minY__com_google_apps_xplatmath_util_AutoValue_Rect_;a=a.f_maxY__com_google_apps_xplatmath_util_AutoValue_Rect_;for(b=b.iterator();b.m_hasNext__boolean();){var f=V(b.m_next__java_lang_Object(),Puc,Y4);c=Math.min(c,f.f_minX__com_google_apps_xplatmath_util_AutoValue_Rect_);d=Math.max(d,f.f_maxX__com_google_apps_xplatmath_util_AutoValue_Rect_);e=Math.min(e, f.f_minY__com_google_apps_xplatmath_util_AutoValue_Rect_);a=Math.max(a,f.f_maxY__com_google_apps_xplatmath_util_AutoValue_Rect_)}return h4(c,e,d,a)}; Y4.prototype.offset=function(a,b){return Ruc(this.f_minX__com_google_apps_xplatmath_util_AutoValue_Rect_+a,this.f_minY__com_google_apps_xplatmath_util_AutoValue_Rect_+b,this.f_maxX__com_google_apps_xplatmath_util_AutoValue_Rect_+a,this.f_maxY__com_google_apps_xplatmath_util_AutoValue_Rect_+b)}; Y4.prototype.scale=function(a){return Ruc(this.f_minX__com_google_apps_xplatmath_util_AutoValue_Rect_*a,this.f_minY__com_google_apps_xplatmath_util_AutoValue_Rect_*a,this.f_maxX__com_google_apps_xplatmath_util_AutoValue_Rect_*a,this.f_maxY__com_google_apps_xplatmath_util_AutoValue_Rect_*a)}; Y4.prototype.contains=function(a,b){return a>=this.f_minX__com_google_apps_xplatmath_util_AutoValue_Rect_&&a<=this.f_maxX__com_google_apps_xplatmath_util_AutoValue_Rect_&&b>=this.f_minY__com_google_apps_xplatmath_util_AutoValue_Rect_&&b<=this.f_maxY__com_google_apps_xplatmath_util_AutoValue_Rect_}; Y4.prototype.clip=function(a){return this.contains(a.x(),a.y())?a:t4(Math.max(Math.min(a.x(),this.f_maxX__com_google_apps_xplatmath_util_AutoValue_Rect_),this.f_minX__com_google_apps_xplatmath_util_AutoValue_Rect_),Math.max(Math.min(a.y(),this.f_maxY__com_google_apps_xplatmath_util_AutoValue_Rect_),this.f_minY__com_google_apps_xplatmath_util_AutoValue_Rect_))}; var h4=function(a,b,c,d){Z4();return Ruc(Math.min(a,c),Math.min(b,d),Math.max(a,c),Math.max(b,d))},$4=function(){Z4(); return Ouc},Ruc=function(a,b,c,d){Z4(); var e=new Y4;e.f_minX__com_google_apps_xplatmath_util_AutoValue_Rect_=a;e.f_minY__com_google_apps_xplatmath_util_AutoValue_Rect_=b;e.f_maxX__com_google_apps_xplatmath_util_AutoValue_Rect_=c;e.f_maxY__com_google_apps_xplatmath_util_AutoValue_Rect_=d;return e},Z4=function(){Z4=function(){}; Ouc=h4(0,0,0,0)},Puc=function(a){return a instanceof Y4}; Y4.prototype.$$classMetadata=["com.google.apps.xplatmath.util.Rect",0];var Suc=function(){this.f_ordinal__java_lang_Enum_=0},luc,l4; k(Suc,Z2);var Tuc=function(a,b,c){var d=new Suc;d.f_name__java_lang_Enum_=a;d.f_ordinal__java_lang_Enum_=b;d.f_transformCreator__com_google_apps_xplatmath_api_CanvasTransform_YAxisDirection_=c;return d},k4=function(){k4=function(){}; luc=Tuc("DOWN",0,function(a){a.value();var b=new kuc;b.$captured_fontSize__com_google_apps_xplatmath_api_CanvasTransform_YAxisDirection_1=a;return b}); l4=Tuc("UP",1,function(a){a.value();var b=new muc;b.$captured_fontSize__com_google_apps_xplatmath_api_CanvasTransform_YAxisDirection_2=a;return b})}; Suc.prototype.$$classMetadata=["com.google.apps.xplatmath.api.CanvasTransform$YAxisDirection",2];var Uuc=function(){}; k(Uuc,I1);Uuc.prototype.$$classMetadata=["com.google.apps.xplatmath.api.CommonConverterOptions$BaseConverterOptionsBuilder",0];var a5=function(){}; k(a5,g4);var Vuc=function(a){return a instanceof a5}; a5.prototype.$$classMetadata=["com.google.apps.xplatmath.util.I18nContext",0];var Wuc=function(){}; k(Wuc,I1);Wuc.prototype.$$classMetadata=["com.google.apps.xplatmath.api.CommonConverterOptions",0];var b5=function(){}; k(b5,Uuc);var Xuc=function(a){return a instanceof b5}; b5.prototype.$$classMetadata=["com.google.apps.xplatmath.api.CommonRenderOptions$BaseRenderOptionsBuilder",0];var Yuc=function(){}; k(Yuc,I1);var avc=function(){Zuc();var a=new Yuc;a.f_fontData__com_google_apps_xplatmath_api_MathFont_=$uc;return a}; Yuc.prototype.$$classMetadata=["com.google.apps.xplatmath.api.MathFont",0];var bvc=function(){this.f_italicsCorrection__com_google_apps_xplatmath_font_AutoValue_FontMathVariantsHelper_GlyphAssembly_=0}; k(bvc,g4);var c5=function(a){var b=new bvc;b.f_italicsCorrection__com_google_apps_xplatmath_font_AutoValue_FontMathVariantsHelper_GlyphAssembly_=0;s3(a);b.f_partRecords__com_google_apps_xplatmath_font_AutoValue_FontMathVariantsHelper_GlyphAssembly_=a;return b}; bvc.prototype.$$classMetadata=["com.google.apps.xplatmath.font.FontMathVariantsHelper$GlyphAssembly",0];var d5=function(){this.f_partFlags__com_google_apps_xplatmath_font_AutoValue_FontMathVariantsHelper_GlyphPartRecord_=this.f_endConnectorLength__com_google_apps_xplatmath_font_AutoValue_FontMathVariantsHelper_GlyphPartRecord_=this.f_startConnectorLength__com_google_apps_xplatmath_font_AutoValue_FontMathVariantsHelper_GlyphPartRecord_=this.f_fullAdvance__com_google_apps_xplatmath_font_AutoValue_FontMathVariantsHelper_GlyphPartRecord_=this.f_glyph__com_google_apps_xplatmath_font_AutoValue_FontMathVariantsHelper_GlyphPartRecord_= 0}; k(d5,g4); var e5=function(a,b,c,d,e){var f=new d5;f.f_glyph__com_google_apps_xplatmath_font_AutoValue_FontMathVariantsHelper_GlyphPartRecord_=a;f.f_fullAdvance__com_google_apps_xplatmath_font_AutoValue_FontMathVariantsHelper_GlyphPartRecord_=b;f.f_startConnectorLength__com_google_apps_xplatmath_font_AutoValue_FontMathVariantsHelper_GlyphPartRecord_=c;f.f_endConnectorLength__com_google_apps_xplatmath_font_AutoValue_FontMathVariantsHelper_GlyphPartRecord_=d;f.f_partFlags__com_google_apps_xplatmath_font_AutoValue_FontMathVariantsHelper_GlyphPartRecord_=e; return f},cvc=function(a){return a instanceof d5}; d5.prototype.$$classMetadata=["com.google.apps.xplatmath.font.FontMathVariantsHelper$GlyphPartRecord",0];var dvc=function(){this.f_value__com_google_apps_xplatmath_font_proto_GlobalConstant_=this.f_ordinal__java_lang_Enum_=0}; k(dvc,Z2); var f5=function(a,b,c){var d=new dvc;d.f_name__java_lang_Enum_=a;d.f_ordinal__java_lang_Enum_=b;d.f_value__com_google_apps_xplatmath_font_proto_GlobalConstant_=c;return d},evc=f5("UNITS_PER_EM",1,1),fvc=f5("MIN_CONNECTOR_OVERLAP",2,2),gvc=f5("SCRIPT_PERCENT_SCALE_DOWN",3,3),hvc=f5("SCRIPT_SCRIPT_PERCENT_SCALE_DOWN",4,4),g5=f5("AXIS_HEIGHT",8,8),ivc=f5("ACCENT_BASE_HEIGHT",9,9),jvc=f5("SUBSCRIPT_SHIFT_DOWN",11,11),kvc=f5("SUBSCRIPT_TOP_MAX",12,12),lvc=f5("SUBSCRIPT_BASELINE_DROP_MIN",13,13),mvc=f5("SUPERSCRIPT_SHIFT_UP", 14,14),nvc=f5("SUPERSCRIPT_SHIFT_UP_CRAMPED",15,15),ovc=f5("SUPERSCRIPT_BOTTOM_MIN",16,16),pvc=f5("SUPERSCRIPT_BASELINE_DROP_MAX",17,17),qvc=f5("SUB_SUPERSCRIPT_GAP_MIN",18,18),rvc=f5("SUPERSCRIPT_BOTTOM_MAX_WITH_SUBSCRIPT",19,19),svc=f5("SPACE_AFTER_SCRIPT",20,20),tvc=f5("UPPER_LIMIT_GAP_MIN",21,21),uvc=f5("UPPER_LIMIT_BASELINE_RISE_MIN",22,22),vvc=f5("LOWER_LIMIT_GAP_MIN",23,23),wvc=f5("LOWER_LIMIT_BASELINE_DROP_MIN",24,24),xvc=f5("STACK_TOP_SHIFT_UP",25,25),yvc=f5("STACK_TOP_DISPLAY_STYLE_SHIFT_UP", 26,26),zvc=f5("STACK_BOTTOM_SHIFT_DOWN",27,27),Avc=f5("STACK_BOTTOM_DISPLAY_STYLE_SHIFT_DOWN",28,28),Bvc=f5("STACK_GAP_MIN",29,29),Cvc=f5("STACK_DISPLAY_STYLE_GAP_MIN",30,30),Dvc=f5("FRACTION_NUMERATOR_SHIFT_UP",35,35),Evc=f5("FRACTION_NUMERATOR_DISPLAY_STYLE_SHIFT_UP",36,36),Fvc=f5("FRACTION_DENOMINATOR_SHIFT_DOWN",37,37),Gvc=f5("FRACTION_DENOMINATOR_DISPLAY_STYLE_SHIFT_DOWN",38,38),Hvc=f5("FRACTION_NUMERATOR_GAP_MIN",39,39),Ivc=f5("FRACTION_NUM_DISPLAY_STYLE_GAP_MIN",40,40),Jvc=f5("FRACTION_RULE_THICKNESS", 41,41),Kvc=f5("FRACTION_DENOMINATOR_GAP_MIN",42,42),Lvc=f5("FRACTION_DENOM_DISPLAY_STYLE_GAP_MIN",43,43),Mvc=f5("OVERBAR_VERTICAL_GAP",46,46),Nvc=f5("OVERBAR_RULE_THICKNESS",47,47),Ovc=f5("OVERBAR_EXTRA_ASCENDER",48,48),Pvc=f5("UNDERBAR_VERTICAL_GAP",49,49),Qvc=f5("UNDERBAR_RULE_THICKNESS",50,50),Rvc=f5("UNDERBAR_EXTRA_DESCENDER",51,51),Svc=f5("RADICAL_VERTICAL_GAP",52,52),Tvc=f5("RADICAL_RULE_THICKNESS",54,54),Uvc=f5("RADICAL_EXTRA_ASCENDER",55,55),Vvc=f5("RADICAL_KERN_BEFORE_DEGREE",56,56),Wvc= f5("RADICAL_KERN_AFTER_DEGREE",57,57),Xvc=f5("RADICAL_DEGREE_BOTTOM_RAISE_PERCENT",58,58); dvc.prototype.$$classMetadata=["com.google.apps.xplatmath.font.proto.GlobalConstant",2];var Yvc=function(){}; k(Yvc,I1);var h5=function(a,b,c){return Zvc(a,b,c,255)},Zvc=function(a,b,c,d){i5(); a=$vc(a);b=$vc(b);c=$vc(c);d=$vc(d);var e=new j5;e.f_red__com_google_apps_xplatmath_util_AutoValue_Color_Rgba_=a;e.f_green__com_google_apps_xplatmath_util_AutoValue_Color_Rgba_=b;e.f_blue__com_google_apps_xplatmath_util_AutoValue_Color_Rgba_=c;e.f_alpha__com_google_apps_xplatmath_util_AutoValue_Color_Rgba_=d;return e},k5=function(){i5(); return awc(),bwc},$vc=function(a){if(0<=a&&a<256)return a; throw b2("Invalid color byte "+a).backingJsObject},cwc=function(a){i5(); if(v2(a,0)!=35)return null;try{switch(a.length){case 4:return h5(Math.imul(l5(a,1),17),Math.imul(l5(a,2),17),Math.imul(l5(a,3),17));case 5:return Zvc(Math.imul(l5(a,1),17),Math.imul(l5(a,2),17),Math.imul(l5(a,3),17),Math.imul(l5(a,4),17));case 7:return h5(Math.imul(l5(a,1),16)+l5(a,2)|0,Math.imul(l5(a,3),16)+l5(a,4)|0,Math.imul(l5(a,5),16)+l5(a,6)|0);case 9:return Zvc(Math.imul(l5(a,1),16)+l5(a,2)|0,Math.imul(l5(a,3),16)+l5(a,4)|0,Math.imul(l5(a,5),16)+l5(a,6)|0,Math.imul(l5(a,7),16)+l5(a,8)|0);default:return null;}}catch(c){var b= W1(c);if(b instanceof d2)return null;throw b.backingJsObject}},l5=function(a,b){a=v2(a,b); if(48<=a&&a<=57)return a-48|0;if(97<=a&&a<=102)return a-97+10|0;if(65<=a&&a<=70)return a-65+10|0;throw Wpc().backingJsObject},i5=function(){i5=function(){}; h5(0,0,0);h5(68,68,68);h5(136,136,136);h5(204,204,204);h5(255,255,255);h5(255,0,0);h5(0,255,0);h5(0,0,255);h5(255,255,0);h5(0,255,255);h5(255,0,255);Zvc(0,0,0,0)}; Yvc.prototype.$$classMetadata=["com.google.apps.xplatmath.util.Color",0];var dwc=function(){},bwc; k(dwc,Yvc);dwc.prototype.toHtmlColor=function(){return"currentColor"}; var awc=function(){awc=function(){}; i5();bwc=new dwc}; dwc.prototype.$$classMetadata=["com.google.apps.xplatmath.util.Color$InheritAmbient",0];var j5=function(){this.f_alpha__com_google_apps_xplatmath_util_AutoValue_Color_Rgba_=this.f_blue__com_google_apps_xplatmath_util_AutoValue_Color_Rgba_=this.f_green__com_google_apps_xplatmath_util_AutoValue_Color_Rgba_=this.f_red__com_google_apps_xplatmath_util_AutoValue_Color_Rgba_=0}; k(j5,Yvc);g=j5.prototype;g.toHtmlColor=function(){var a=psc("#");o3(a,v2("0123456789ABCDEF",t2(t2(this.red()/16)%16)));o3(a,v2("0123456789ABCDEF",t2(this.red()%16)));o3(a,v2("0123456789ABCDEF",t2(t2(this.green()/16)%16)));o3(a,v2("0123456789ABCDEF",t2(this.green()%16)));o3(a,v2("0123456789ABCDEF",t2(t2(this.blue()/16)%16)));o3(a,v2("0123456789ABCDEF",t2(this.blue()%16)));this.alpha()!=255&&(o3(a,v2("0123456789ABCDEF",t2(t2(this.alpha()/16)%16))),o3(a,v2("0123456789ABCDEF",t2(this.alpha()%16))));return a.toString()}; g.red=function(){return this.f_red__com_google_apps_xplatmath_util_AutoValue_Color_Rgba_}; g.green=function(){return this.f_green__com_google_apps_xplatmath_util_AutoValue_Color_Rgba_}; g.blue=function(){return this.f_blue__com_google_apps_xplatmath_util_AutoValue_Color_Rgba_}; g.alpha=function(){return this.f_alpha__com_google_apps_xplatmath_util_AutoValue_Color_Rgba_}; huc(j5,g4,7);j5.prototype.$$classMetadata=["com.google.apps.xplatmath.util.Color$Rgba",0];var ewc=function(){},fwc; k(ewc,Wuc);var gwc=function(){gwc=function(){}; fwc=h5(153,153,153)}; ewc.prototype.$$classMetadata=["com.google.apps.xplatmath.api.CommonRenderOptions",0];var m5=function(){this.f_codePoint__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_GlyphData_=this.f_fontSize__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_GlyphData_=this.f_id__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_GlyphData_=0}; k(m5,g4);g=m5.prototype;g.contains=function(a,b){return this.f_bounds__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_GlyphData_.contains(a-this.offset().x(),b-this.offset().y())}; g.centerX=function(){return this.offset().x()+this.f_bounds__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_GlyphData_.centerX()}; g.centerY=function(){return this.offset().y()+this.f_bounds__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_GlyphData_.centerY()}; g.id=function(){return this.f_id__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_GlyphData_}; g.fontSize=function(){return this.f_fontSize__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_GlyphData_}; g.codePoint=function(){return this.f_codePoint__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_GlyphData_}; g.offset=function(){return this.f_offset__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_GlyphData_}; g.color=function(){return this.f_color__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_GlyphData_}; g.text=function(){return this.f_text__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_GlyphData_}; var hwc=function(a){return a instanceof m5}; m5.prototype.$$classMetadata=["com.google.apps.xplatmath.api.RenderGeometry$GlyphData",0];var iwc=function(){}; iwc.prototype.$$classMetadata=["com.google.apps.xplatmath.api.RenderGeometry$LineData$LineStyle",0];var n5=function(){this.f_thickness__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_LineData_=0}; k(n5,g4);var jwc=function(a,b,c,d,e){var f=new n5;s3(a);f.f_from__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_LineData_=a;s3(b);f.f_to__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_LineData_=b;s3(c);f.f_color__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_LineData_=c;f.f_thickness__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_LineData_=d;s3(c3(e,iwc));f.f_lineStyle__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_LineData_=e;return f}; n5.prototype.from=function(){return this.f_from__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_LineData_}; n5.prototype.to=function(){return this.f_to__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_LineData_}; n5.prototype.color=function(){return this.f_color__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_LineData_}; n5.prototype.thickness=function(){return this.f_thickness__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_LineData_}; var kwc=function(a){return a instanceof n5}; n5.prototype.$$classMetadata=["com.google.apps.xplatmath.api.RenderGeometry$LineData",0];var o5=function(){this.f_strokeWidth__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_RectData_=0}; k(o5,g4);var lwc=function(a,b,c,d){var e=new o5;s3(a);e.f_rect__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_RectData_=a;e.f_fillColor__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_RectData_=b;e.f_strokeWidth__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_RectData_=c;e.f_strokeColor__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_RectData_=d;return e}; o5.prototype.rect=function(){return this.f_rect__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_RectData_}; o5.prototype.fillColor=function(){return this.f_fillColor__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_RectData_}; o5.prototype.strokeWidth=function(){return this.f_strokeWidth__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_RectData_}; o5.prototype.strokeColor=function(){return this.f_strokeColor__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_RectData_}; var mwc=function(a){return a instanceof o5}; o5.prototype.$$classMetadata=["com.google.apps.xplatmath.api.RenderGeometry$RectData",0];var p5=function(){this.f_scale__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_SvgPathData_=0}; k(p5,g4);p5.prototype.path=function(){return this.f_path__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_SvgPathData_}; p5.prototype.fillColor=function(){return this.f_fillColor__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_SvgPathData_}; p5.prototype.offset=function(){return this.f_offset__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_SvgPathData_}; p5.prototype.scale=function(){return this.f_scale__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_SvgPathData_}; var nwc=function(a){return a instanceof p5}; p5.prototype.$$classMetadata=["com.google.apps.xplatmath.api.RenderGeometry$SvgPathData",0];var owc=function(){}; k(owc,g4); var qwc=function(a,b,c,d,e,f,h){pwc();var m=new owc;s3(a);m.f_rects__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_=a;s3(b);m.f_lines__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_=b;s3(c);m.f_glyphs__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_=c;s3(d);m.f_svgPaths__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_=d;s3(e);m.f_typesetBounds__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_=e;s3(f);m.f_renderBounds__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_=f; s3(h);m.f_canvasTransform__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_=h;return m}; owc.prototype.lines=function(){return this.f_lines__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_}; var pwc=function(){pwc=function(){}; qwc(D4(),D4(),D4(),D4(),$4(),$4(),juc(suc(1,"PX"),(k4(),l4)))}; owc.prototype.$$classMetadata=["com.google.apps.xplatmath.api.RenderGeometry",0];var q5=function(){this.f_forceItalic__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_=this.f_forceBold__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_=this.f_useAdditionalUltraThinSpacing__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_=this.f_useTallCursor__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_=this.f_showPlaceholders__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_=this.f_isInlineWithText__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_= this.f_autocorrectInvalidInput__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_=!1;this.f_set$0__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_=this.f_lineSpacingFactor__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_=0}; k(q5,b5);var rwc=function(a,b){a.f_autocorrectInvalidInput__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_=b;a.f_set$0__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_=(a.f_set$0__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_|1)<<24>>24;return a},swc=function(a,b){a.f_isInlineWithText__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_=b; a.f_set$0__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_=(a.f_set$0__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_|2)<<24>>24;return a},twc=function(a,b){a.f_showPlaceholders__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_=b; a.f_set$0__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_=(a.f_set$0__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_|4)<<24>>24;return a},uwc=function(a,b){a.f_useAdditionalUltraThinSpacing__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_=b; a.f_set$0__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_=(a.f_set$0__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_|16)<<24>>24;return a},vwc=function(a,b){a.f_forceBold__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_=b; a.f_set$0__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_=(a.f_set$0__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_|32)<<24>>24;return a},wwc=function(a,b){a.f_forceItalic__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_=b; a.f_set$0__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_=(a.f_set$0__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_|64)<<24>>24;return a},xwc=function(a,b){a.f_lineSpacingFactor__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_=b; a.f_set$0__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_=(a.f_set$0__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_|-128)<<24>>24;return a}; q5.prototype.build=function(){if(this.f_set$0__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_!=-1||this.f_i18nContext__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_==null||this.f_defaultColor__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_==null||this.f_font__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_==null||this.f_placeholderColor__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_==null)throw Ypc().backingJsObject; var a=this.f_autocorrectInvalidInput__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_,b=this.f_i18nContext__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_,c=this.f_defaultColor__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_,d=this.f_font__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_,e=this.f_isInlineWithText__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_,f=this.f_showPlaceholders__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_, h=this.f_debugOutput__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_,m=this.f_placeholderColor__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_,p=this.f_useTallCursor__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_,q=this.f_useAdditionalUltraThinSpacing__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_,t=this.f_forceBold__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_,u=this.f_forceItalic__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_, v=this.f_lineSpacingFactor__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_;gwc();var w=new r5;w.f_autocorrectInvalidInput__com_google_apps_xplatmath_api_AutoValue_RenderOptions_=a;w.f_i18nContext__com_google_apps_xplatmath_api_AutoValue_RenderOptions_=b;w.f_defaultColor__com_google_apps_xplatmath_api_AutoValue_RenderOptions_=c;w.f_font__com_google_apps_xplatmath_api_AutoValue_RenderOptions_=d;w.f_isInlineWithText__com_google_apps_xplatmath_api_AutoValue_RenderOptions_=e;w.f_showPlaceholders__com_google_apps_xplatmath_api_AutoValue_RenderOptions_= f;w.f_debugOutput__com_google_apps_xplatmath_api_AutoValue_RenderOptions_=h;w.f_placeholderColor__com_google_apps_xplatmath_api_AutoValue_RenderOptions_=m;w.f_useTallCursor__com_google_apps_xplatmath_api_AutoValue_RenderOptions_=p;w.f_useAdditionalUltraThinSpacing__com_google_apps_xplatmath_api_AutoValue_RenderOptions_=q;w.f_forceBold__com_google_apps_xplatmath_api_AutoValue_RenderOptions_=t;w.f_forceItalic__com_google_apps_xplatmath_api_AutoValue_RenderOptions_=u;w.f_lineSpacingFactor__com_google_apps_xplatmath_api_AutoValue_RenderOptions_= v;return w}; var ywc=function(a){return a instanceof q5}; q5.prototype.$$classMetadata=["com.google.apps.xplatmath.api.RenderOptions$Builder",0];var r5=function(){this.f_forceItalic__com_google_apps_xplatmath_api_AutoValue_RenderOptions_=this.f_forceBold__com_google_apps_xplatmath_api_AutoValue_RenderOptions_=this.f_useAdditionalUltraThinSpacing__com_google_apps_xplatmath_api_AutoValue_RenderOptions_=this.f_useTallCursor__com_google_apps_xplatmath_api_AutoValue_RenderOptions_=this.f_showPlaceholders__com_google_apps_xplatmath_api_AutoValue_RenderOptions_=this.f_isInlineWithText__com_google_apps_xplatmath_api_AutoValue_RenderOptions_=this.f_autocorrectInvalidInput__com_google_apps_xplatmath_api_AutoValue_RenderOptions_= !1;this.f_lineSpacingFactor__com_google_apps_xplatmath_api_AutoValue_RenderOptions_=0}; k(r5,ewc);g=r5.prototype;g.autocorrectInvalidInput=function(){return this.f_autocorrectInvalidInput__com_google_apps_xplatmath_api_AutoValue_RenderOptions_}; g.defaultColor=function(){return this.f_defaultColor__com_google_apps_xplatmath_api_AutoValue_RenderOptions_}; g.font=function(){return this.f_font__com_google_apps_xplatmath_api_AutoValue_RenderOptions_}; g.isInlineWithText=function(){return this.f_isInlineWithText__com_google_apps_xplatmath_api_AutoValue_RenderOptions_}; g.showPlaceholders=function(){return this.f_showPlaceholders__com_google_apps_xplatmath_api_AutoValue_RenderOptions_}; g.placeholderColor=function(){return this.f_placeholderColor__com_google_apps_xplatmath_api_AutoValue_RenderOptions_}; g.useAdditionalUltraThinSpacing=function(){return this.f_useAdditionalUltraThinSpacing__com_google_apps_xplatmath_api_AutoValue_RenderOptions_}; g.forceBold=function(){return this.f_forceBold__com_google_apps_xplatmath_api_AutoValue_RenderOptions_}; g.forceItalic=function(){return this.f_forceItalic__com_google_apps_xplatmath_api_AutoValue_RenderOptions_}; g.lineSpacingFactor=function(){return this.f_lineSpacingFactor__com_google_apps_xplatmath_api_AutoValue_RenderOptions_}; var zwc=function(a){return a instanceof r5}; huc(r5,g4,7);r5.prototype.$$classMetadata=["com.google.apps.xplatmath.api.RenderOptions",0];var Awc,Bwc=function(){Bwc=function(){}; Awc=avc()};var s5=function(){}; k(s5,I1);s5.prototype.size=function(){return this.f_map__com_google_apps_xplatmath_collections_BaseXMap.size()}; s5.prototype.isEmpty=function(){return this.f_map__com_google_apps_xplatmath_collections_BaseXMap.isEmpty()}; var t5=function(a,b){return a.f_map__com_google_apps_xplatmath_collections_BaseXMap.get(b)}; s5.prototype.get=function(a){var b=this.f_map__com_google_apps_xplatmath_collections_BaseXMap.get(a);if(b==null)throw b=new cqc,S1(b,a.toString()),T1(b,Error(b)),b.backingJsObject;return b}; s5.prototype.forEach=function(a){for(var b=this.f_map__com_google_apps_xplatmath_collections_BaseXMap.entrySet().m_iterator__java_util_Iterator();b.m_hasNext__boolean();){var c=V(b.m_next__java_lang_Object(),S2,T2);a(c.JSC$16875_getKey(),c.JSC$16875_getValue())}}; var Ewc=function(){return Cwc(Dwc,function(a){return a},function(a,b){throw b2("Keys "+K1(a)+" and "+K1(b)+" mapped to the same value.").backingJsObject; })},Cwc=function(a,b,c){var d=u5(); a.forEach(function(e,f){f=b(f);if(f!=null){var h=t5(d,f);(h==null||c(e,h))&&d.put(f,e)}}); return d}; s5.prototype.$$classMetadata=["com.google.apps.xplatmath.collections.BaseXMap",0];var v5=function(){}; k(v5,I1);var Fwc=function(a){var b=new v5;b.f_builder__com_google_apps_xplatmath_collections_ImmutableXMap_Builder_=a;return b}; v5.prototype.get=function(a){return this.f_builder__com_google_apps_xplatmath_collections_ImmutableXMap_Builder_.get(a)}; v5.prototype.put=function(a,b){if(this.f_builder__com_google_apps_xplatmath_collections_ImmutableXMap_Builder_.f_map__com_google_apps_xplatmath_collections_BaseXMap.JSC$17075_containsKey(a))throw b2("Map already contains \""+K1(a)+"\"").backingJsObject;this.f_builder__com_google_apps_xplatmath_collections_ImmutableXMap_Builder_.put(a,b);return this}; var w5=function(a,b,c,d){a.put(b,d);a.put(c,d);return a},x5=function(a,b,c,d,e){a.put(b,e); a.put(c,e);a.put(d,e);return a},Gwc=function(a,b){b.forEach(function(c,d){a.put(c,d)}); return a}; v5.prototype.build=function(){return y5(this.f_builder__com_google_apps_xplatmath_collections_ImmutableXMap_Builder_)}; v5.prototype.$$classMetadata=["com.google.apps.xplatmath.collections.ImmutableXMap$Builder",0];var z5=function(){}; k(z5,s5);var Hwc=function(a){var b=new z5;b.f_map__com_google_apps_xplatmath_collections_BaseXMap=a;return b},u5=function(){return Hwc(j3())},Iwc=function(a,b,c){var d=a.f_map__com_google_apps_xplatmath_collections_BaseXMap.get(b); d==null&&(d=c(),a.f_map__com_google_apps_xplatmath_collections_BaseXMap.put(b,d));return d}; z5.prototype.put=function(a,b){this.f_map__com_google_apps_xplatmath_collections_BaseXMap.put(a,b);return this}; z5.prototype.remove=function(a){this.f_map__com_google_apps_xplatmath_collections_BaseXMap.remove(a)}; z5.prototype.clear=function(){this.f_map__com_google_apps_xplatmath_collections_BaseXMap.clear()}; var y5=function(a){var b=Jwc(a.f_map__com_google_apps_xplatmath_collections_BaseXMap);a.f_map__com_google_apps_xplatmath_collections_BaseXMap=j3();return b},Kwc=function(){var a=Ewc(); var b=Fwc(Hwc(a.f_map__com_google_apps_xplatmath_collections_BaseXMap));a.f_map__com_google_apps_xplatmath_collections_BaseXMap=j3();return b}; z5.prototype.$$classMetadata=["com.google.apps.xplatmath.collections.XMap",0];var Lwc=function(){}; k(Lwc,s5);var Jwc=function(a){Mwc();var b=new Lwc;b.f_map__com_google_apps_xplatmath_collections_BaseXMap=a;return b},A5=function(){Mwc(); return Fwc(u5())},Mwc=function(){Mwc=function(){}; Jwc(j3())}; Lwc.prototype.$$classMetadata=["com.google.apps.xplatmath.collections.ImmutableXMap",0];var B5=function(){this.f_lastY__com_google_apps_xplatmath_font_gen_CompactPathRenderer_=this.f_lastX__com_google_apps_xplatmath_font_gen_CompactPathRenderer_=0}; k(B5,I1);var C5=function(a,b,c){a.f_renderer__com_google_apps_xplatmath_font_gen_CompactPathRenderer_.moveTo(b,c);a.f_lastX__com_google_apps_xplatmath_font_gen_CompactPathRenderer_=b;a.f_lastY__com_google_apps_xplatmath_font_gen_CompactPathRenderer_=c;return a},D5=function(a,b,c){a.f_renderer__com_google_apps_xplatmath_font_gen_CompactPathRenderer_.lineTo(b,c); a.f_lastX__com_google_apps_xplatmath_font_gen_CompactPathRenderer_=b;a.f_lastY__com_google_apps_xplatmath_font_gen_CompactPathRenderer_=c;return a},E5=function(a,b){a.f_renderer__com_google_apps_xplatmath_font_gen_CompactPathRenderer_.lineTo(b,a.f_lastY__com_google_apps_xplatmath_font_gen_CompactPathRenderer_); a.f_lastX__com_google_apps_xplatmath_font_gen_CompactPathRenderer_=b;return a},F5=function(a,b){a.f_renderer__com_google_apps_xplatmath_font_gen_CompactPathRenderer_.lineTo(a.f_lastX__com_google_apps_xplatmath_font_gen_CompactPathRenderer_,b); a.f_lastY__com_google_apps_xplatmath_font_gen_CompactPathRenderer_=b;return a},Z=function(a,b,c,d,e,f,h){var m=a.f_renderer__com_google_apps_xplatmath_font_gen_CompactPathRenderer_; G5(m,"C",b,c);G5(m," ",d,e);G5(m," ",f,h);m.f_lastX__com_google_apps_xplatmath_svg_SvgPath_SvgPathRenderer_=f;m.f_lastY__com_google_apps_xplatmath_svg_SvgPath_SvgPathRenderer_=h;a.f_lastX__com_google_apps_xplatmath_font_gen_CompactPathRenderer_=f;a.f_lastY__com_google_apps_xplatmath_font_gen_CompactPathRenderer_=h;return a},H5=function(a){a.f_renderer__com_google_apps_xplatmath_font_gen_CompactPathRenderer_.close(); return a},I5=function(a){return a instanceof B5}; B5.prototype.$$classMetadata=["com.google.apps.xplatmath.font.gen.CompactPathRenderer",0];var Owc=function(a,b,c,d,e,f,h,m,p,q,t){Nwc(this,a,b,c,d,e,f,h,m,p,q,t)}; k(Owc,I1); var Nwc=function(a,b,c,d,e,f,h,m,p,q,t,u){a.f_fontFamily__com_google_apps_xplatmath_font_gen_GeneratedFontData_=b;a.f_globalConstants__com_google_apps_xplatmath_font_gen_GeneratedFontData_=d;a.f_horizontalAdvance__com_google_apps_xplatmath_font_gen_GeneratedFontData_=e;a.f_italicsCorrection__com_google_apps_xplatmath_font_gen_GeneratedFontData_=f;a.f_rectsMin__com_google_apps_xplatmath_font_gen_GeneratedFontData_=h;a.f_rectsMax__com_google_apps_xplatmath_font_gen_GeneratedFontData_=m;a.f_topAccentAttachment__com_google_apps_xplatmath_font_gen_GeneratedFontData_=p; a.f_horizontalVariants__com_google_apps_xplatmath_font_gen_GeneratedFontData_=q;a.f_verticalVariants__com_google_apps_xplatmath_font_gen_GeneratedFontData_=t;a.f_glyphPaths__com_google_apps_xplatmath_font_gen_GeneratedFontData_=u;var v=u5(),w=u5();Pwc(c,function(y,A){y=V(y,p2,o2);A=V(A,p2,o2);v.put(A,y);w.put(y,A)}); a.f_codePointForGlyphId__com_google_apps_xplatmath_font_gen_GeneratedFontData_=y5(v);a.f_glyphIdForCodePoint__com_google_apps_xplatmath_font_gen_GeneratedFontData_=y5(w)},Qwc=function(a,b){a=V(t5(a.f_glyphIdForCodePoint__com_google_apps_xplatmath_font_gen_GeneratedFontData_,C2(b)),p2,o2); return a==null?0:a.intValue()},Swc=function(a,b,c){a=J1(b,0)?a.f_horizontalVariants__com_google_apps_xplatmath_font_gen_GeneratedFontData_:a.f_verticalVariants__com_google_apps_xplatmath_font_gen_GeneratedFontData_; c=V(t5(a,C2(c)),Rwc,J5);return c==null?D4():c.f_variantGlyphIds__com_google_apps_xplatmath_font_AutoValue_FontMathVariantsHelper_MathGlyphConstruction_},Twc=function(a,b){var c=V(t5(a.f_glyphPaths__com_google_apps_xplatmath_font_gen_GeneratedFontData_,C2(b)),B2,z2); return c==null?null:function(d){var e=new B5;e.f_renderer__com_google_apps_xplatmath_font_gen_CompactPathRenderer_=d;c(e)}},Uwc=function(a,b,c){b=Math.imul(b,2); return h4(K5(a.f_rectsMin__com_google_apps_xplatmath_font_gen_GeneratedFontData_,b+0|0)*c,K5(a.f_rectsMin__com_google_apps_xplatmath_font_gen_GeneratedFontData_,b+1|0)*c,K5(a.f_rectsMax__com_google_apps_xplatmath_font_gen_GeneratedFontData_,b+0|0)*c,K5(a.f_rectsMax__com_google_apps_xplatmath_font_gen_GeneratedFontData_,b+1|0)*c)},Wwc=function(a,b){return Vwc(a.f_topAccentAttachment__com_google_apps_xplatmath_font_gen_GeneratedFontData_,b,K5(a.f_horizontalAdvance__com_google_apps_xplatmath_font_gen_GeneratedFontData_, b)/2)},K5=function(a,b){a=v2(a,b); if(a==0)throw b2("Unset value in table. Use lookupTableWithDefault instead.").backingJsObject;return a-28672|0},Vwc=function(a,b,c){a=v2(a,b); return a==0?c:a-28672|0},Pwc=function(a,b){var c=0; for(a=B4(a).m_iterator__java_util_Iterator();a.m_hasNext__boolean();){var d=V(a.m_next__java_lang_Object(),p2,o2).intValue();d!=0&&b(C2(d),C2(c));c=c+1|0}}; Owc.prototype.$$classMetadata=["com.google.apps.xplatmath.font.gen.GeneratedFontData",0];var J5=function(){}; k(J5,g4);var L5=function(a,b){var c=new J5;c.f_assembly__com_google_apps_xplatmath_font_AutoValue_FontMathVariantsHelper_MathGlyphConstruction_=a;s3(b);c.f_variantGlyphIds__com_google_apps_xplatmath_font_AutoValue_FontMathVariantsHelper_MathGlyphConstruction_=b;return c},Rwc=function(a){return a instanceof J5}; J5.prototype.$$classMetadata=["com.google.apps.xplatmath.font.FontMathVariantsHelper$MathGlyphConstruction",0];var Xwc,Ywc,Zwc,$wc=function(){$wc=function(){}; Xwc=y5(u5().put(C2(548),L5(null,K4(C2(548),C2(3627),C2(3695),C2(3743),C2(3790),C2(3828)))).put(C2(549),L5(null,K4(C2(549),C2(3628),C2(3696),C2(3744),C2(3791),C2(3829)))).put(C2(558),L5(null,K4(C2(558),C2(3630),C2(3698),C2(3746),C2(3793),C2(3831)))).put(C2(613),L5(c5(I4(e5(959,436,0,350,0),e5(3850,300,300,300,1),e5(960,436,350,0,0))),E4(C2(613)))).put(C2(938),L5(c5(G4(e5(938,436,0,350,0),e5(3849,300,300,0,1))),E4(C2(938)))).put(C2(939),L5(c5(G4(e5(3849,300,0,300,1),e5(939,436,350,0,0))),E4(C2(939)))).put(C2(941), L5(c5(G4(e5(941,436,0,350,0),e5(3849,300,300,0,1))),E4(C2(941)))).put(C2(942),L5(c5(G4(e5(3849,300,0,300,1),e5(942,436,350,0,0))),E4(C2(942)))).put(C2(948),L5(c5(I4(e5(941,436,0,350,0),e5(3849,300,300,300,1),e5(942,436,350,0,0))),E4(C2(948)))).put(C2(959),L5(c5(G4(e5(959,436,0,350,0),e5(3850,300,300,0,1))),E4(C2(959)))).put(C2(960),L5(c5(G4(e5(3850,300,0,300,1),e5(960,436,350,0,0))),E4(C2(960)))).put(C2(1463),L5(c5(I4(e5(3862,1855,0,618,0),e5(3867,635,212,212,1),e5(3863,1855,618,0,0))),K4(C2(1463), C2(3652),C2(3712),C2(3760),C2(3806),C2(3835)))).put(C2(1464),L5(c5(I4(e5(3864,1855,0,618,0),e5(3868,635,212,212,1),e5(3865,1855,618,0,0))),K4(C2(1464),C2(3653),C2(3713),C2(3761),C2(3807),C2(3836)))).put(C2(1471),L5(c5(I4(e5(3858,1855,0,618,0),e5(4227,635,212,212,1),e5(3859,1855,618,0,0))),K4(C2(1471),C2(3654),C2(3714),C2(3762),C2(3808),C2(3837)))).put(C2(1472),L5(c5(I4(e5(3860,1855,0,618,0),e5(4228,635,212,212,1),e5(3861,1855,618,0,0))),K4(C2(1472),C2(3655),C2(3715),C2(3763),C2(3809),C2(3838)))).put(C2(1473), L5(c5(J4(e5(3851,933,0,311,0),e5(3855,327,109,109,1),e5(3856,1864,621,621,0),e5(3855,327,109,109,1),e5(3852,933,311,0,0))),K4(C2(1473),C2(3656),C2(3716),C2(3764),C2(3810),C2(3839)))).put(C2(1474),L5(c5(J4(e5(3853,933,0,311,0),e5(3854,327,109,109,1),e5(3857,1864,621,621,0),e5(3854,327,109,109,1),e5(3866,933,311,0,0))),K4(C2(1474),C2(3657),C2(3717),C2(3765),C2(3811),C2(3840)))));Ywc=y5(u5().put(C2(41),L5(c5(I4(e5(1440,1005,0,150,0),e5(1439,1010,150,150,1),e5(1438,1005,150,0,0))),J4(C2(41),C2(3617), C2(3685),C2(3733),C2(3780)))).put(C2(42),L5(c5(I4(e5(1443,1005,0,150,0),e5(1442,1010,150,150,1),e5(1441,1005,150,0,0))),J4(C2(42),C2(3618),C2(3686),C2(3734),C2(3781)))).put(C2(48),L5(null,J4(C2(48),C2(3619),C2(3687),C2(3735),C2(3782)))).put(C2(92),L5(c5(I4(e5(1446,1005,0,950,0),e5(1445,1010,500,500,1),e5(1444,1005,950,0,0))),J4(C2(92),C2(3620),C2(3688),C2(3736),C2(3783)))).put(C2(93),L5(null,J4(C2(93),C2(3625),C2(3693),C2(3741),C2(3788)))).put(C2(94),L5(c5(I4(e5(1449,1005,0,950,0),e5(1448,1010,500, 500,1),e5(1447,1005,950,0,0))),J4(C2(94),C2(3621),C2(3689),C2(3737),C2(3784)))).put(C2(124),L5(c5(J4(e5(1452,1005,0,600,0),e5(1453,1010,600,200,1),e5(1451,1010,200,200,0),e5(1453,1010,200,600,1),e5(1450,1005,600,0,0))),J4(C2(124),C2(3623),C2(3691),C2(3739),C2(3786)))).put(C2(125),L5(c5(G4(e5(125,879,0,400,0),e5(125,879,400,0,1))),J4(C2(125),C2(3634),C2(3702),C2(3750),C2(3797)))).put(C2(126),L5(c5(J4(e5(1456,1005,0,600,0),e5(1453,1010,600,200,1),e5(1455,1010,200,200,0),e5(1453,1010,200,600,1),e5(1454, 1005,600,0,0))),J4(C2(126),C2(3624),C2(3692),C2(3740),C2(3787)))).put(C2(885),L5(c5(G4(e5(885,879,0,400,0),e5(885,879,400,0,1))),J4(C2(885),C2(3635),C2(3703),C2(3751),C2(3798)))).put(C2(1035),L5(c5(G4(e5(1470,304,101,101,1),e5(1035,818,273,273,0))),D4())).put(C2(1037),L5(c5(G4(e5(1037,818,273,273,0),e5(1470,304,101,101,1))),D4())).put(C2(1039),L5(c5(I4(e5(1037,818,273,273,0),e5(1470,304,101,101,1),e5(1035,818,273,273,0))),D4())).put(C2(1099),L5(c5(G4(e5(3869,304,101,101,1),e5(1099,818,273,273,0))), D4())).put(C2(1101),L5(c5(G4(e5(1101,818,273,273,0),e5(3869,304,101,101,1))),D4())).put(C2(1103),L5(c5(I4(e5(1101,818,273,273,0),e5(3869,304,101,101,1),e5(1099,818,273,273,0))),D4())).put(C2(1152),L5(null,G4(C2(1152),C2(3638)))).put(C2(1153),L5(null,G4(C2(1153),C2(3639)))).put(C2(1154),L5(null,G4(C2(1154),C2(3640)))).put(C2(1163),L5(c5(I4(e5(1466,1855,0,600,0),e5(3843,635,300,300,1),e5(3844,626,500,0,0))),Iuc(C2(1163),C2(3641),C2(3705),C2(3753)))).put(C2(1180),L5(null,G4(C2(1180),C2(3590)))).put(C2(1181), L5(null,G4(C2(1181),C2(3591)))).put(C2(1182),L5(null,G4(C2(1182),C2(3592)))).put(C2(1183),L5(null,G4(C2(1183),C2(3593)))).put(C2(1184),L5(null,G4(C2(1184),C2(3594)))).put(C2(1185),L5(null,G4(C2(1185),C2(3595)))).put(C2(1329),L5(null,G4(C2(1329),C2(3644)))).put(C2(1330),L5(null,G4(C2(1330),C2(3645)))).put(C2(1331),L5(null,G4(C2(1331),C2(3646)))).put(C2(1332),L5(null,G4(C2(1332),C2(3647)))).put(C2(1397),L5(c5(G4(e5(1445,1010,337,337,1),e5(1444,1005,335,335,0))),J4(C2(1397),C2(3648),C2(3708),C2(3756), C2(3802)))).put(C2(1398),L5(c5(G4(e5(1448,1010,337,337,1),e5(1447,1005,335,335,0))),J4(C2(1398),C2(3649),C2(3709),C2(3757),C2(3803)))).put(C2(1399),L5(c5(G4(e5(1446,1005,335,335,0),e5(1445,1010,337,337,1))),J4(C2(1399),C2(3650),C2(3710),C2(3758),C2(3804)))).put(C2(1400),L5(c5(G4(e5(1449,1005,335,335,0),e5(1448,1010,337,337,1))),J4(C2(1400),C2(3651),C2(3711),C2(3759),C2(3805)))).put(C2(1459),L5(c5(I4(e5(1456,1005,0,90,0),e5(1453,1010,90,90,1),e5(1450,1005,90,0,0))),E4(C2(1459)))).put(C2(1460),L5(c5(I4(e5(1452, 1005,0,90,0),e5(1453,1010,90,90,1),e5(1454,1005,90,0,0))),E4(C2(1460)))).put(C2(1815),L5(null,J4(C2(1815),C2(3662),C2(3722),C2(3770),C2(3816)))).put(C2(1816),L5(null,J4(C2(1816),C2(3663),C2(3723),C2(3771),C2(3817)))).put(C2(1817),L5(null,J4(C2(1817),C2(3664),C2(3724),C2(3772),C2(3818)))).put(C2(1818),L5(null,J4(C2(1818),C2(3665),C2(3725),C2(3773),C2(3819)))).put(C2(1823),L5(c5(I4(e5(1440,1005,0,90,0),e5(1439,1010,90,90,1),e5(1438,1005,90,0,0))),E4(C2(1823)))).put(C2(1824),L5(c5(I4(e5(1443,1005,0, 90,0),e5(1442,1010,90,90,1),e5(1441,1005,90,0,0))),E4(C2(1824)))).put(C2(1972),L5(null,J4(C2(1972),C2(3668),C2(3728),C2(3776),C2(3822)))).put(C2(1973),L5(null,J4(C2(1973),C2(3669),C2(3729),C2(3777),C2(3823)))).put(C2(2097),L5(null,G4(C2(2097),C2(3674)))).put(C2(2098),L5(null,G4(C2(2098),C2(3675)))).put(C2(2099),L5(null,G4(C2(2099),C2(3676)))).put(C2(2101),L5(null,G4(C2(2101),C2(3678)))).put(C2(2103),L5(null,G4(C2(2103),C2(3680)))).put(C2(2109),L5(null,G4(C2(2109),C2(3600)))));Zwc=y5(u5().put(C2(3590), function(a){H5(Z(Z(Z(Z(Z(Z(Z(D5(Z(Z(Z(Z(Z(Z(Z(C5(V(a,I5,B5),280,-10),247,-143,221,-231,156,-231),147,-231,141,-227,141,-219),143,-207,164,-193,164,-169),164,-147,145,-139,126,-139),87,-139,56,-172,56,-215),56,-244,77,-269,128,-269),267,-269,344,-144,389,37),808,1741),840,1871,869,1962,934,1962),943,1962,949,1958,949,1951),947,1937,926,1927,926,1900),926,1878,945,1870,964,1870),1003,1870,1035,1903,1035,1945),1035,1975,1014,2E3,962,2E3),820,2E3,742,1865,694,1670))}).put(C2(3591),function(a){H5(Z(Z(Z(Z(Z(Z(Z(D5(Z(Z(Z(Z(Z(Z(Z(C5(H5(Z(Z(Z(Z(Z(Z(Z(D5(Z(Z(Z(Z(Z(Z(Z(C5(V(a, I5,B5),280,-10),247,-143,221,-231,156,-231),147,-231,141,-227,141,-219),143,-207,164,-193,164,-169),164,-147,145,-139,126,-139),87,-139,56,-172,56,-215),56,-244,77,-269,128,-269),267,-269,344,-144,389,37),808,1741),840,1871,869,1962,934,1962),943,1962,949,1958,949,1951),947,1937,926,1927,926,1900),926,1878,945,1870,964,1870),1003,1870,1035,1903,1035,1945),1035,1975,1014,2E3,962,2E3),820,2E3,742,1865,694,1670)),590,-10),557,-143,531,-231,466,-231),457,-231,451,-227,451,-219),453,-207,474,-193,474, -169),474,-147,455,-139,436,-139),397,-139,366,-172,366,-215),366,-244,387,-269,438,-269),577,-269,654,-144,699,37),1118,1741),1150,1871,1179,1962,1244,1962),1253,1962,1259,1958,1259,1951),1257,1937,1236,1927,1236,1900),1236,1878,1255,1870,1274,1870),1313,1870,1345,1903,1345,1945),1345,1975,1324,2E3,1272,2E3),1130,2E3,1052,1865,1004,1670))}).put(C2(3592),function(a){H5(Z(Z(Z(Z(Z(Z(Z(D5(Z(Z(Z(Z(Z(Z(Z(C5(H5(Z(Z(Z(Z(Z(Z(Z(D5(Z(Z(Z(Z(Z(Z(Z(C5(H5(Z(Z(Z(Z(Z(Z(Z(D5(Z(Z(Z(Z(Z(Z(Z(C5(V(a,I5,B5),280,-10),247, -143,221,-231,156,-231),147,-231,141,-227,141,-219),143,-207,164,-193,164,-169),164,-147,145,-139,126,-139),87,-139,56,-172,56,-215),56,-244,77,-269,128,-269),267,-269,344,-144,389,37),808,1741),840,1871,869,1962,934,1962),943,1962,949,1958,949,1951),947,1937,926,1927,926,1900),926,1878,945,1870,964,1870),1003,1870,1035,1903,1035,1945),1035,1975,1014,2E3,962,2E3),820,2E3,742,1865,694,1670)),590,-10),557,-143,531,-231,466,-231),457,-231,451,-227,451,-219),453,-207,474,-193,474,-169),474,-147,455,-139, 436,-139),397,-139,366,-172,366,-215),366,-244,387,-269,438,-269),577,-269,654,-144,699,37),1118,1741),1150,1871,1179,1962,1244,1962),1253,1962,1259,1958,1259,1951),1257,1937,1236,1927,1236,1900),1236,1878,1255,1870,1274,1870),1313,1870,1345,1903,1345,1945),1345,1975,1324,2E3,1272,2E3),1130,2E3,1052,1865,1004,1670)),900,-10),867,-143,841,-231,776,-231),767,-231,761,-227,761,-219),763,-207,784,-193,784,-169),784,-147,765,-139,746,-139),707,-139,676,-172,676,-215),676,-244,697,-269,748,-269),887,-269, 964,-144,1009,37),1428,1741),1460,1871,1489,1962,1554,1962),1563,1962,1569,1958,1569,1951),1567,1937,1546,1927,1546,1900),1546,1878,1565,1870,1584,1870),1623,1870,1655,1903,1655,1945),1655,1975,1634,2E3,1582,2E3),1440,2E3,1362,1865,1314,1670))}).put(C2(3593),function(a){H5(Z(Z(Z(Z(Z(Z(Z(D5(Z(Z(Z(D5(Z(Z(Z(Z(Z(Z(Z(D5(Z(Z(Z(C5(H5(Z(Z(D5(C5(H5(Z(Z(D5(C5(V(a,I5,B5),559,1124),435,620),344,661,280,754,280,860),280,1007,398,1124,542,1124)),527,598),651,1102),742,1061,808,968,808,860),808,712,684,598,539, 598)),571,1172),561,1173,552,1173,542,1173),372,1173,230,1035,230,860),230,731,310,618,423,571),280,-10),247,-143,221,-231,156,-231),147,-231,141,-227,141,-219),143,-207,164,-193,164,-169),164,-147,145,-139,126,-139),87,-139,56,-172,56,-215),56,-244,77,-269,128,-269),267,-269,345,-144,389,37),514,548),525,547,537,547,549,547),716,547,858,688,858,860),858,994,776,1104,663,1150),808,1741),840,1871,869,1962,934,1962),943,1962,949,1958,949,1951),947,1937,926,1927,926,1900),926,1878,945,1870,964,1870), 1003,1870,1035,1903,1035,1945),1035,1975,1014,2E3,962,2E3),820,2E3,742,1865,694,1670))}).put(C2(3594),function(a){H5(Z(Z(Z(Z(Z(Z(Z(D5(Z(Z(D5(Z(Z(Z(Z(Z(Z(Z(D5(Z(Z(D5(Z(Z(Z(Z(Z(Z(Z(D5(Z(Z(D5(Z(Z(Z(Z(Z(Z(Z(D5(Z(Z(C5(H5(Z(Z(C5(H5(Z(Z(D5(Z(Z(C5(H5(Z(Z(C5(V(a,I5,B5),450,679),387,725,349,790,349,866),349,979,433,1069,556,1109)),741,605),728,603,714,603,700,603),640,603,584,613,535,632),657,1129),671,1130,685,1131,700,1131),759,1131,815,1121,864,1102)),949,1056),1013,1009,1052,943,1052,866),1052,753,967, 664,843,625)),876,1151),822,1171,761,1181,700,1181),690,1181,680,1181,670,1180),808,1741),840,1871,869,1962,934,1962),943,1962,949,1958,949,1951),947,1937,926,1927,926,1900),926,1878,945,1870,964,1870),1003,1870,1035,1903,1035,1945),1035,1975,1014,2E3,962,2E3),820,2E3,742,1865,694,1670),570,1165),417,1125,299,1017,299,866),299,763,354,681,437,627),280,-10),247,-143,221,-231,156,-231),147,-231,141,-227,141,-219),143,-207,164,-193,164,-169),164,-147,145,-139,126,-139),87,-139,56,-172,56,-215),56,-244, 77,-269,128,-269),267,-269,345,-144,389,37),523,584),577,564,638,553,700,553),709,553,719,553,729,554),590,-10),557,-143,531,-231,466,-231),457,-231,451,-227,451,-219),453,-207,474,-193,474,-169),474,-147,455,-139,436,-139),397,-139,366,-172,366,-215),366,-244,387,-269,438,-269),577,-269,654,-144,699,37),830,569),983,608,1102,715,1102,866),1102,969,1046,1053,962,1108),1118,1741),1150,1871,1179,1962,1244,1962),1253,1962,1259,1958,1259,1951),1257,1937,1236,1927,1236,1900),1236,1878,1255,1870,1274,1870), 1313,1870,1345,1903,1345,1945),1345,1975,1324,2E3,1272,2E3),1130,2E3,1052,1865,1004,1670))}).put(C2(3595),function(a){H5(Z(Z(Z(Z(Z(Z(Z(D5(Z(Z(D5(Z(Z(Z(Z(Z(Z(Z(D5(Z(E5(D5(Z(Z(Z(Z(Z(Z(Z(D5(Z(D5(Z(Z(Z(Z(Z(Z(Z(D5(Z(Z(D5(Z(Z(Z(Z(Z(Z(Z(D5(Z(Z(D5(Z(Z(Z(Z(Z(Z(Z(D5(Z(C5(H5(Z(Z(C5(H5(Z(D5(Z(C5(H5(Z(D5(Z(D5(C5(H5(Z(Z(C5(V(a,I5,B5),453,692),388,735,349,793,349,866),349,970,428,1045,550,1088)),871,1131),742,607),667,613,598,627,539,649),654,1115),710,1126,771,1131,836,1131)),1056,627),991,611,916,603,838,603), 966,1123),1041,1114,1110,1096,1166,1070)),1250,1018),1297,977,1325,927,1325,866),1325,774,1262,705,1162,661)),1178,1119),1121,1144,1054,1162,978,1172),1118,1741),1150,1871,1179,1962,1244,1962),1253,1962,1259,1958,1259,1951),1257,1937,1236,1927,1236,1900),1236,1878,1255,1870,1274,1870),1313,1870,1345,1903,1345,1945),1345,1975,1324,2E3,1272,2E3),1130,2E3,1052,1865,1004,1670),883,1180),867,1181,852,1181,836,1181),776,1181,719,1177,667,1168),808,1741),840,1871,869,1962,934,1962),943,1962,949,1958,949, 1951),947,1937,926,1927,926,1900),926,1878,945,1870,964,1870),1003,1870,1035,1903,1035,1945),1035,1975,1014,2E3,962,2E3),820,2E3,742,1865,694,1670),564,1144),400,1094,299,996,299,866),299,773,351,697,441,643),280,-10),247,-143,221,-231,156,-231),147,-231,141,-227,141,-219),143,-207,164,-193,164,-169),164,-147,145,-139,126,-139),87,-139,56,-172,56,-215),56,-244,77,-269,128,-269),267,-269,345,-144,389,37),527,601),586,580,654,565,730,558),590,-10),557,-143,531,-231,466,-231),457,-231,451,-227,451,-219), 453,-207,474,-193,474,-169),474,-147,455,-139,436,-139),397,-139,366,-172,366,-215),366,-244,387,-269,438,-269),577,-269,654,-144,699,37),826,553),836),911,553,980,560,1043,573),900,-10),867,-143,841,-231,776,-231),767,-231,761,-227,761,-219),763,-207,784,-193,784,-169),784,-147,765,-139,746,-139),707,-139,676,-172,676,-215),676,-244,697,-269,748,-269),887,-269,965,-144,1009,37),1148,603),1289,655,1375,747,1375,866),1375,948,1334,1018,1263,1070),1428,1741),1460,1871,1489,1962,1554,1962),1563,1962, 1569,1958,1569,1951),1567,1937,1546,1927,1546,1900),1546,1878,1565,1870,1584,1870),1623,1870,1655,1903,1655,1945),1655,1975,1634,2E3,1582,2E3),1440,2E3,1362,1865,1314,1670))}).put(C2(3600),function(a){H5(Z(Z(Z(Z(Z(Z(Z(D5(Z(Z(Z(Z(Z(Z(Z(C5(H5(Z(Z(Z(Z(Z(Z(Z(D5(Z(Z(Z(Z(Z(Z(Z(C5(H5(Z(Z(Z(Z(Z(Z(Z(D5(Z(Z(Z(Z(Z(Z(Z(C5(H5(Z(Z(Z(Z(Z(Z(Z(D5(Z(Z(Z(Z(Z(Z(Z(C5(V(a,I5,B5),280,-10),247,-143,221,-231,156,-231),147,-231,141,-227,141,-219),143,-207,164,-193,164,-169),164,-147,145,-139,126,-139),87,-139,56,-172,56,-215), 56,-244,77,-269,128,-269),267,-269,344,-144,389,37),808,1741),840,1871,869,1962,934,1962),943,1962,949,1958,949,1951),947,1937,926,1927,926,1900),926,1878,945,1870,964,1870),1003,1870,1035,1903,1035,1945),1035,1975,1014,2E3,962,2E3),820,2E3,742,1865,694,1670)),590,-10),557,-143,531,-231,466,-231),457,-231,451,-227,451,-219),453,-207,474,-193,474,-169),474,-147,455,-139,436,-139),397,-139,366,-172,366,-215),366,-244,387,-269,438,-269),577,-269,654,-144,699,37),1118,1741),1150,1871,1179,1962,1244,1962), 1253,1962,1259,1958,1259,1951),1257,1937,1236,1927,1236,1900),1236,1878,1255,1870,1274,1870),1313,1870,1345,1903,1345,1945),1345,1975,1324,2E3,1272,2E3),1130,2E3,1052,1865,1004,1670)),900,-10),867,-143,841,-231,776,-231),767,-231,761,-227,761,-219),763,-207,784,-193,784,-169),784,-147,765,-139,746,-139),707,-139,676,-172,676,-215),676,-244,697,-269,748,-269),887,-269,964,-144,1009,37),1428,1741),1460,1871,1489,1962,1554,1962),1563,1962,1569,1958,1569,1951),1567,1937,1546,1927,1546,1900),1546,1878, 1565,1870,1584,1870),1623,1870,1655,1903,1655,1945),1655,1975,1634,2E3,1582,2E3),1440,2E3,1362,1865,1314,1670)),1210,-10),1177,-143,1151,-231,1086,-231),1077,-231,1071,-227,1071,-219),1073,-207,1094,-193,1094,-169),1094,-147,1075,-139,1056,-139),1017,-139,986,-172,986,-215),986,-244,1007,-269,1058,-269),1197,-269,1274,-144,1319,37),1738,1741),1770,1871,1799,1962,1864,1962),1873,1962,1879,1958,1879,1951),1877,1937,1856,1927,1856,1900),1856,1878,1875,1870,1894,1870),1933,1870,1965,1903,1965,1945),1965, 1975,1944,2E3,1892,2E3),1750,2E3,1672,1865,1624,1670))}).put(C2(3617),function(a){H5(Z(Z(F5(Z(Z(C5(V(a,I5,B5),382,-134),292,-24,220,145,220,451),220,754,292,926,382,1036),1066),240,932,139,718,139,451),139,179,240,-30,382,-164))}).put(C2(3618),function(a){H5(Z(Z(F5(Z(Z(C5(V(a,I5,B5),86,1036),176,926,248,757,248,451),248,148,176,-24,86,-134),-164),228,-30,329,184,329,451),329,723,228,932,86,1066))}).put(C2(3619),function(a){H5(E5(D5(E5(C5(V(a,I5,B5),552,1066),479),25,-164),98))}).put(C2(3620),function(a){H5(F5(E5(F5(E5(F5(E5(F5(C5(V(a, I5,B5),363,-164),-131),250),1033),363),1066),180),-164))}).put(C2(3621),function(a){H5(F5(E5(F5(E5(F5(E5(F5(C5(V(a,I5,B5),203,-164),1066),20),1033),133),-131),20),-164))}).put(C2(3623),function(a){H5(Z(F5(Z(F5(Z(F5(Z(F5(Z(Z(F5(Z(F5(Z(F5(Z(Z(C5(V(a,I5,B5),466,-136),364,-111,324,-58,324,9),324,76,329,137,329,145),234),329,332,280,408,166,450),452),280,494,329,571,329,669),758),329,766,324,873,324,893),324,960,378,1024,466,1038),1066),334,1050,247,969,247,790),622),247,563,205,475,114,462),441),205, 427,247,340,247,281),113),247,-66,334,-148,466,-164))}).put(C2(3624),function(a){H5(Z(F5(Z(F5(Z(Z(F5(Z(F5(Z(F5(Z(Z(F5(Z(F5(Z(C5(V(a,I5,B5),461,461),370,475,328,562,328,621),789),328,968,241,1050,109,1066),1038),211,1013,251,960,251,893),251,826,246,765,246,757),668),246,570,295,494,409,452),450),295,408,246,331,246,233),144),246,136,251,29,251,9),251,-58,197,-122,109,-136),-164),241,-148,328,-67,328,112),280),328,339,370,427,461,440))}).put(C2(3625),function(a){H5(D5(E5(D5(C5(V(a,I5,B5),552,-164), 100,1066),27),479,-164))}).put(C2(3627),function(a){H5(D5(D5(E5(D5(E5(D5(C5(V(a,I5,B5),560,554),304,767),256),0,554),64),280,700),496,554))}).put(C2(3628),function(a){H5(Z(Z(Z(Z(E5(Z(Z(Z(Z(C5(V(a,I5,B5),535,750),527,689,487,657,434,657),412,657,375,667,325,689),232,729,168,750,135,750),73,750,0,702,0,598),26),36,658,77,689,127,689),148,689,184,679,234,658),342,614,352,598,421,598),491,598,560,654,560,750))}).put(C2(3630),function(a){H5(E5(D5(E5(D5(D5(E5(C5(V(a,I5,B5),560,767),496),280,621),64,767), 0),256,554),304))}).put(C2(3634),function(a){H5(F5(E5(F5(C5(V(a,I5,B5),193,-164),1066),127),-164))}).put(C2(3635),function(a){H5(F5(E5(F5(C5(H5(F5(E5(F5(C5(V(a,I5,B5),195,-164),1066),129),-164)),394,-164),1066),328),-164))}).put(C2(3638),function(a){H5(F5(E5(Z(F5(E5(F5(Z(E5(F5(E5(F5(E5(Z(F5(Z(E5(F5(E5(F5(Z(F5(Z(E5(F5(C5(V(a,I5,B5),1305,49),87),1280),1187,87,1141,147,1141,267),1293),1141,1412,1180,1462,1305,1462),1500),50),1462),74),161,1462,215,1426,215,1287),241),215,139,171,87,77,87),50),49),565), 87),522),430,87,398,146,398,276),1411),958),276),958,168,932,87,834,87),790),49))}).put(C2(3639),function(a){H5(F5(E5(Z(F5(Z(E5(F5(E5(F5(E5(Z(F5(E5(F5(Z(E5(F5(E5(F5(E5(Z(F5(Z(F5(C5(V(a,I5,B5),1305,49),87),1180,87,1141,137,1141,256),1282),1141,1402,1187,1462,1280,1462),1305),1500),790),1462),834),932,1462,958,1381,958,1273),138),398),1273),398,1403,430,1462,522,1462),565),1500),50),1462),77),171,1462,215,1410,215,1308),262),215,123,161,87,74,87),50),49))}).put(C2(3640),function(a){H5(E5(D5(D5(E5(F5(E5(Z(Z(Z(E5(D5(D5(E5(Z(E5(C5(V(a, I5,B5),1202,465),1163),1127,301,1058,232,919,232),351),821,845),410,1409),787),822,1409,865,1408,893,1404),960,1396,1027,1344,1055,1213),1059,1193,1066,1167,1066,1148),1102),1499),126),647,784),90,49),1128))}).put(C2(3641),function(a){H5(E5(D5(Z(Z(D5(D5(E5(D5(E5(D5(E5(C5(V(a,I5,B5),1089,1552),1032),532,-94),528),301,643),276),112,517),124,497),148,516,173,524,192,524),224,524,240,502,254,456),485,-295),527))}).put(C2(3644),function(a){H5(D5(E5(D5(E5(D5(E5(D5(C5(V(a,I5,B5),1205,49),671,1500),593), 60,49),162),630,1321),633),1103,49))}).put(C2(3645),function(a){H5(E5(D5(E5(D5(E5(D5(E5(C5(V(a,I5,B5),1205,1500),1103),633,228),630),162,1500),60),593,49),671))}).put(C2(3646),function(a){H5(F5(Z(Z(F5(E5(F5(Z(Z(F5(C5(V(a,I5,B5),1147,49),1018),1147,1295,886,1510,641,1510),364,1510,118,1314,118,1018),49),214),1043),214,1221,400,1414,639,1414),878,1414,1051,1221,1051,1043),49))}).put(C2(3647),function(a){H5(Z(Z(F5(E5(F5(Z(Z(F5(E5(C5(V(a,I5,B5),1147,1500),1051),506),1051,328,878,135,639,135),400,135, 214,328,214,506),1500),118),531),118,235,364,39,641,39),886,39,1147,254,1147,531))}).put(C2(3648),function(a){H5(F5(E5(F5(E5(F5(C5(V(a,I5,B5),426,1033),1066),180),-164),250),1033))}).put(C2(3649),function(a){H5(F5(E5(F5(E5(F5(C5(V(a,I5,B5),273,-164),1066),25),1033),203),-164))}).put(C2(3650),function(a){H5(F5(E5(F5(E5(F5(C5(V(a,I5,B5),428,-164),-131),250),1066),180),-164))}).put(C2(3651),function(a){H5(F5(E5(F5(E5(F5(C5(V(a,I5,B5),273,-164),1066),203),-131),27),-164))}).put(C2(3652),function(a){H5(F5(E5(F5(E5(F5(E5(F5(C5(V(a, I5,B5),994,650),872),69),650),135),806),928),650))}).put(C2(3653),function(a){H5(F5(E5(F5(E5(F5(E5(F5(C5(V(a,I5,B5),993,-422),-200),927),-356),134),-200),68),-422))}).put(C2(3654),function(a){H5(Z(Z(E5(Z(Z(C5(V(a,I5,B5),926,650),785,793,640,863,464,863),286,863,132,793,0,650),30),145,745,277,803,464,803),624,803,780,745,896,650))}).put(C2(3655),function(a){H5(Z(Z(E5(Z(Z(C5(V(a,I5,B5),896,-200),780,-295,624,-353,464,-353),277,-353,145,-295,30,-200),0),132,-343,286,-413,464,-413),640,-413,785,-343, 926,-200))}).put(C2(3656),function(a){H5(Z(Z(E5(Z(E5(Z(E5(Z(Z(E5(Z(E5(Z(E5(Z(E5(Z(C5(V(a,I5,B5),925,650),902,746,829,799,697,799),582),537,799,482,819,473,875),452),443,819,388,799,343,799),228),96,799,23,746,0,650),30),46,701,85,743,162,743),190,743,223,739,255,739),314),378,739,429,766,462,827),463),496,766,547,739,611,739),670),702,739,735,743,763,743),840,743,879,701,895,650))}).put(C2(3657),function(a){H5(Z(E5(Z(E5(Z(E5(Z(E5(Z(Z(E5(Z(E5(Z(E5(Z(Z(C5(V(a,I5,B5),895,-200),879,-251,840,-293,763, -293),735,-293,702,-289,670,-289),611),547,-289,496,-316,463,-377),462),429,-316,378,-289,314,-289),255),223,-289,190,-293,162,-293),85,-293,46,-251,30,-200),0),23,-296,96,-349,228,-349),343),388,-349,443,-369,452,-425),473),482,-369,537,-349,582,-349),697),829,-349,902,-296,925,-200))}).put(C2(3662),function(a){H5(F5(E5(F5(E5(F5(E5(F5(C5(H5(Z(F5(Z(C5(V(a,I5,B5),362,-131),298,-128,250,-111,250,-47),936),250,1014,293,1031,362,1033)),486,-164),-131),414),1033),486),1066),180),-164))}).put(C2(3663), function(a){H5(F5(E5(F5(E5(F5(E5(F5(C5(H5(Z(F5(Z(C5(V(a,I5,B5),265,-34),265,-112,222,-129,153,-131),1033),217,1030,265,1013,265,949)),335,-164),1066),29),1033),101),-131),29),-164))}).put(C2(3664),function(a){H5(D5(D5(E5(D5(D5(C5(V(a,I5,B5),462,-164),191,451),462,1066),387),116,451),387,-164))}).put(C2(3665),function(a){H5(E5(D5(D5(E5(D5(C5(V(a,I5,B5),462,451),191,1066),116),387,451),116,-164),191))}).put(C2(3668),function(a){H5(Z(F5(Z(F5(Z(F5(Z(E5(F5(E5(F5(E5(F5(C5(H5(E5(Z(Z(F5(Z(F5(Z(F5(Z(Z(E5(C5(V(a, I5,B5),446,-134),436),355,-134,324,-38,324,29),324,96,329,137,329,145),234),329,332,280,408,166,450),452),280,494,329,571,329,669),758),329,766,324,853,324,873),324,940,355,1036,436,1036),446)),587,-164),-134),500),1036),586),1066),436),304,1050,247,969,247,790),622),247,563,205,475,114,462),441),205,427,247,340,247,281),113),247,-66,304,-148,436,-164))}).put(C2(3669),function(a){H5(Z(F5(Z(E5(F5(E5(F5(E5(F5(E5(Z(F5(Z(C5(H5(Z(F5(Z(Z(E5(F5(E5(Z(Z(F5(Z(C5(V(a,I5,B5),535,450),421,408,372,331,372,233), 144),372,136,377,49,377,29),377,-38,346,-134,265,-134),255),1036),265),346,1036,377,940,377,873),377,806,372,765,372,757),668),372,570,421,494,535,452)),587,461),496,475,454,562,454,621),789),454,968,397,1050,265,1066),114),1036),201),-134),115),-164),265),397,-148,454,-67,454,112),280),454,339,496,427,587,440))}).put(C2(3674),function(a){H5(Z(Z(Z(Z(C5(H5(Z(Z(Z(Z(C5(H5(Z(Z(Z(Z(C5(V(a,I5,B5),1377,775),1377,442,1110,175,777,175),444,175,178,442,178,775),178,1108,444,1374,777,1374),1110,1374,1377,1108, 1377,775)),1503,775),1503,1175,1177,1500,777,1500),377,1500,52,1175,52,775),52,375,377,49,777,49),1177,49,1503,375,1503,775)),893,771),893,835,842,886,778,886),714,886,663,835,663,771),663,707,714,656,778,656),842,656,893,707,893,771))}).put(C2(3675),function(a){H5(Z(Z(Z(Z(C5(H5(Z(F5(C5(H5(Z(E5(C5(H5(F5(F5(Z(C5(H5(E5(Z(C5(V(a,I5,B5),712,181),445,198,197,441,180,707),712)),1374,707),1340,412,1105,203,842,175),181),707)),712,837),180),197,1103,442,1359,712,1369)),842,837),1369),1108,1352,1357,1103, 1374,837)),1503,775),1503,1175,1177,1500,777,1500),377,1500,52,1175,52,775),52,375,377,49,777,49),1177,49,1503,375,1503,775))}).put(C2(3676),function(a){H5(Z(Z(Z(Z(C5(H5(Z(Z(D5(C5(H5(Z(Z(D5(C5(H5(Z(Z(D5(C5(H5(D5(Z(Z(C5(V(a,I5,B5),1149,312),1038,214,912,175,778,175),646,175,518,214,407,312),778,680)),686,772),316,400),228,499,178,634,178,772),178,910,222,1048,310,1148)),778,864),402,1240),502,1328,640,1374,778,1374),916,1374,1054,1328,1154,1240)),870,772),1246,1148),1334,1048,1377,910,1377,772),1377, 634,1328,499,1240,400)),1503,775),1503,1175,1177,1500,777,1500),377,1500,52,1175,52,775),52,375,377,49,777,49),1177,49,1503,375,1503,775))}).put(C2(3678),function(a){H5(Z(Z(F5(E5(F5(Z(Z(F5(E5(C5(H5(F5(E5(F5(E5(F5(E5(F5(E5(F5(E5(F5(C5(V(a,I5,B5),913,636),716),673),958),593),716),353),636),593),397),673),636)),1147,1500),1051),506),1051,328,878,135,639,135),400,135,214,328,214,506),1500),118),531),118,235,364,39,641,39),886,39,1147,254,1147,531))}).put(C2(3680),function(a){H5(F5(E5(F5(E5(F5(E5(F5(C5(V(a, I5,B5),1071,49),1500),975),135),178),1500),82),49))}).put(C2(3685),function(a){H5(Z(Z(F5(Z(Z(C5(V(a,I5,B5),503,-243),369,-78,234,187,234,643),234,1101,369,1395,503,1533),1566),290,1395,139,1043,139,643),139,234,290,-79,503,-279))}).put(C2(3686),function(a){H5(Z(Z(F5(Z(Z(C5(V(a,I5,B5),114,1530),248,1365,383,1103,383,643),383,189,248,-108,114,-246),-279),327,-108,478,243,478,643),478,1052,327,1366,114,1566))}).put(C2(3687),function(a){H5(E5(D5(E5(C5(V(a,I5,B5),781,1566),701),25,-279),105))}).put(C2(3688), function(a){H5(F5(E5(F5(E5(F5(E5(F5(C5(V(a,I5,B5),422,-279),-239),266),1526),422),1566),190),-279))}).put(C2(3689),function(a){H5(F5(E5(F5(E5(F5(E5(F5(C5(V(a,I5,B5),269,-279),1566),37),1526),193),-239),37),-279))}).put(C2(3691),function(a){H5(Z(F5(Z(F5(Z(F5(Z(F5(Z(Z(F5(Z(Z(F5(Z(Z(C5(V(a,I5,B5),531,-239),413,-201,367,-120,367,-20),367,10,372,172,372,183),314),372,462,316,579,184,643),316,706,372,825,372,973),1103),372,1114,367,1277,367,1307),367,1406,448,1522,531,1526),1566),383,1553,277,1419,277, 1151),903),277,813,230,679,124,659),627),230,608,277,474,277,384),136),277,-132,379,-256,531,-279))}).put(C2(3692),function(a){H5(Z(F5(Z(F5(Z(Z(F5(Z(Z(F5(Z(Z(F5(Z(F5(Z(C5(V(a,I5,B5),593,660),487,679,440,813,440,903),1151),440,1419,338,1543,186,1566),1526),304,1488,350,1407,350,1307),350,1277,345,1115,345,1104),973),345,825,401,707,533,643),401,580,345,462,345,314),184),345,173,350,10,350,-20),350,-119,269,-235,186,-239),-279),334,-266,440,-132,440,136),384),440,474,487,608,593,628))}).put(C2(3693), function(a){H5(D5(E5(D5(C5(V(a,I5,B5),781,-279),105,1566),25),701,-279))}).put(C2(3695),function(a){H5(D5(D5(E5(D5(E5(D5(C5(V(a,I5,B5),979,564),514,777),466),0,564),99),490,709),880,564))}).put(C2(3696),function(a){H5(Z(Z(Z(Z(E5(Z(Z(Z(Z(C5(V(a,I5,B5),953,760),938,699,876,667,777,667),735,667,665,677,571,699),397,739,277,760,215,760),99,760,20,720,0,608),26),45,668,106,699,200,699),239,699,307,688,401,668),604,624,623,608,752,608),883,608,960,654,979,760))}).put(C2(3698),function(a){H5(E5(D5(E5(D5(D5(E5(C5(V(a, I5,B5),979,777),880),490,632),99,777),0),466,564),514))}).put(C2(3702),function(a){H5(F5(E5(F5(C5(V(a,I5,B5),193,-279),1566),127),-279))}).put(C2(3703),function(a){H5(F5(E5(F5(C5(H5(F5(E5(F5(C5(V(a,I5,B5),195,-279),1566),129),-279)),394,-279),1566),328),-279))}).put(C2(3705),function(a){H5(E5(D5(Z(Z(D5(D5(E5(D5(E5(D5(E5(C5(V(a,I5,B5),1157,2056),1096),567,-153),560),321,836),293),110,709),125,682),148,700,177,710,194,710),232,710,247,674,258,628),508,-404),567))}).put(C2(3708),function(a){H5(F5(E5(F5(E5(F5(C5(V(a, I5,B5),479,1526),1566),190),-279),266),1526))}).put(C2(3709),function(a){H5(F5(E5(F5(E5(F5(C5(V(a,I5,B5),336,-279),1566),47),1526),260),-279))}).put(C2(3710),function(a){H5(F5(E5(F5(E5(F5(C5(V(a,I5,B5),479,-279),-239),266),1566),190),-279))}).put(C2(3711),function(a){H5(F5(E5(F5(E5(F5(C5(V(a,I5,B5),336,-279),1566),260),-239),47),-279))}).put(C2(3712),function(a){H5(F5(E5(F5(E5(F5(E5(F5(C5(V(a,I5,B5),1532,650),872),74),650),140),806),1466),650))}).put(C2(3713),function(a){H5(F5(E5(F5(E5(F5(E5(F5(C5(V(a, I5,B5),1532,-422),-200),1466),-356),140),-200),74),-422))}).put(C2(3714),function(a){H5(Z(Z(E5(Z(Z(C5(V(a,I5,B5),1460,650),1301,774,1048,863,729,863),407,863,159,774,0,650),36),166,729,366,797,729,797),1091,797,1294,729,1424,650))}).put(C2(3715),function(a){H5(Z(Z(E5(Z(Z(C5(V(a,I5,B5),1424,-200),1294,-279,1091,-347,729,-347),366,-347,166,-279,36,-200),0),159,-324,407,-413,729,-413),1048,-413,1301,-324,1460,-200))}).put(C2(3716),function(a){H5(Z(Z(E5(Z(E5(Z(E5(Z(Z(E5(Z(E5(Z(E5(Z(E5(Z(C5(V(a,I5,B5), 1460,650),1441,731,1344,797,1132,797),933),863,797,759,818,743,874),718),701,818,598,797,529,797),329),117,797,19,731,0,650),33),63,712,126,734,205,734),285,734,357,731,367,731),472),589,731,679,772,729,841),731),781,772,872,731,989,731),1094),1104,731,1231,734,1254,734),1334,734,1410,704,1427,650))}).put(C2(3717),function(a){H5(Z(E5(Z(E5(Z(E5(Z(E5(Z(Z(E5(Z(E5(Z(E5(Z(Z(C5(V(a,I5,B5),1427,-200),1410,-254,1334,-284,1254,-284),1231,-284,1104,-281,1094,-281),989),872,-281,781,-322,731,-391),729),679, -322,589,-281,472,-281),367),357,-281,285,-284,205,-284),126,-284,63,-262,33,-200),0),19,-281,117,-347,329,-347),529),598,-347,701,-368,718,-424),743),759,-368,863,-347,933,-347),1132),1344,-347,1441,-281,1460,-200))}).put(C2(3722),function(a){H5(F5(E5(F5(E5(F5(E5(F5(C5(H5(Z(F5(Z(C5(V(a,I5,B5),384,-239),308,-239,266,-203,266,-129),1427),266,1509,313,1526,384,1526)),517,-279),-239),440),1526),517),1566),190),-279))}).put(C2(3723),function(a){H5(F5(E5(F5(E5(F5(E5(F5(C5(H5(Z(F5(Z(C5(V(a,I5,B5),289,-140), 289,-222,242,-239,171,-239),1526),247,1526,289,1490,289,1416)),365,-279),1566),38),1526),115),-239),38),-279))}).put(C2(3724),function(a){H5(D5(D5(E5(D5(D5(C5(V(a,I5,B5),531,-279),190,643),531,1566),441),95,643),441,-279))}).put(C2(3725),function(a){H5(E5(D5(D5(E5(D5(C5(V(a,I5,B5),527,643),181,1566),91),432,643),91,-279),181))}).put(C2(3728),function(a){H5(Z(F5(Z(F5(Z(F5(Z(E5(F5(E5(F5(E5(F5(C5(H5(E5(Z(Z(F5(Z(Z(F5(Z(Z(E5(C5(V(a,I5,B5),516,-246),509),426,-246,365,-120,365,-20),365,10,370,172,370,183), 314),370,462,314,579,182,643),314,706,370,825,370,973),1103),370,1114,365,1277,365,1307),365,1406,426,1533,509,1533),516)),692,-279),-246),576),1533),692),1566),519),366,1566,275,1419,275,1151),903),275,813,228,679,122,659),627),228,608,275,474,275,384),136),275,-132,366,-279,519,-279))}).put(C2(3729),function(a){H5(Z(F5(Z(E5(F5(E5(F5(E5(F5(E5(Z(F5(Z(C5(H5(Z(Z(F5(Z(Z(E5(F5(E5(Z(Z(C5(V(a,I5,B5),457,183),457,172,462,9,462,-21),462,-120,401,-247,318,-247),311),1532),318),401,1532,462,1406,462,1306), 462,1276,457,1114,457,1103),972),457,824,513,707,645,643),513,580,457,461,457,313)),705,659),599,678,552,812,552,902),1150),552,1418,461,1565,308,1565),135),1532),251),-247),135),-280),308),461,-280,552,-133,552,135),383),552,473,599,607,705,627))}).put(C2(3733),function(a){H5(Z(Z(F5(Z(Z(C5(V(a,I5,B5),667,-346),489,-126,292,223,292,836),292,1442,489,1838,667,2022),2066),383,1838,182,1374,182,836),182,295,383,-127,667,-394))}).put(C2(3734),function(a){H5(Z(Z(F5(Z(Z(C5(V(a,I5,B5),83,2018),261,1801, 458,1450,458,836),458,230,261,-166,83,-350),-394),367,-166,568,302,568,836),568,1381,367,1799,83,2066))}).put(C2(3735),function(a){H5(E5(D5(E5(C5(V(a,I5,B5),1071,2066),968),30,-394),133))}).put(C2(3736),function(a){H5(F5(E5(F5(E5(F5(E5(F5(C5(V(a,I5,B5),491,2022),2066),225),-394),490),-350),320),2022))}).put(C2(3737),function(a){H5(F5(E5(F5(E5(F5(E5(F5(C5(V(a,I5,B5),283,-394),2066),17),2022),188),-350),17),-394))}).put(C2(3739),function(a){H5(Z(F5(Z(F5(Z(F5(Z(F5(Z(Z(F5(Z(F5(Z(F5(Z(Z(C5(V(a,I5,B5), 717,-350),528,-286,462,-130,462,36),462,108,474,180,474,244),401),474,597,413,751,226,835),837),413,920,474,1072,474,1269),1432),474,1489,462,1598,462,1676),462,1837,540,1965,717,2022),2066),501,2035,359,1877,359,1523),1176),359,1057,290,882,143,857),813),290,788,359,613,359,494),157),359,-198,501,-364,717,-394))}).put(C2(3740),function(a){H5(Z(F5(Z(F5(Z(Z(F5(Z(F5(Z(F5(Z(Z(F5(Z(F5(Z(C5(V(a,I5,B5),763,858),616,883,547,1058,547,1177),1515),547,1870,405,2036,189,2066),2022),379,1958,444,1803,444,1635), 444,1563,432,1485,432,1428),1270),432,1074,493,920,680,836),834),493,751,432,598,432,402),225),432,172,444,68,444,-7),444,-162,362,-295,189,-350),-394),405,-363,547,-238,547,141),495),547,614,616,789,763,814))}).put(C2(3741),function(a){H5(D5(E5(D5(C5(V(a,I5,B5),1071,-394),133,2066),30),969,-394))}).put(C2(3743),function(a){H5(D5(D5(E5(D5(E5(D5(C5(V(a,I5,B5),1460,564),754,777),706),0,564),153),730,709),1307,564))}).put(C2(3744),function(a){H5(Z(Z(Z(Z(E5(Z(Z(Z(Z(C5(V(a,I5,B5),1434,774),1413,707,1328, 672,1186,672),1126,672,984,684,850,707),599,750,416,774,326,774),159,774,32,729,0,608),26),54,674,169,707,304,707),360,707,469,696,603,674),895,626,965,608,1150,608),1338,608,1434,657,1460,774))}).put(C2(3746),function(a){H5(E5(D5(E5(D5(D5(E5(C5(V(a,I5,B5),1460,777),1307),730,632),153,777),0),706,564),754))}).put(C2(3750),function(a){H5(F5(E5(F5(C5(V(a,I5,B5),193,-394),2066),127),-394))}).put(C2(3751),function(a){H5(F5(E5(F5(C5(H5(F5(E5(F5(C5(V(a,I5,B5),195,-394),2066),129),-394)),394,-394),2066), 328),-394))}).put(C2(3753),function(a){H5(E5(D5(Z(Z(D5(D5(E5(D5(E5(D5(E5(C5(V(a,I5,B5),1110,2565),1043),574,-99),570),371,1019),332),112,880),130,846),149,862,174,879,215,879),257,879,272,831,286,754),511,-510),568))}).put(C2(3756),function(a){H5(F5(E5(F5(E5(F5(C5(V(a,I5,B5),550,2022),2066),225),-394),320),2022))}).put(C2(3757),function(a){H5(F5(E5(F5(E5(F5(C5(V(a,I5,B5),340,-394),2066),15),2022),245),-394))}).put(C2(3758),function(a){H5(F5(E5(F5(E5(F5(C5(V(a,I5,B5),550,-394),-350),320),2066),225), -394))}).put(C2(3759),function(a){H5(F5(E5(F5(E5(F5(C5(V(a,I5,B5),340,-394),2066),245),-350),15),-394))}).put(C2(3760),function(a){H5(F5(E5(F5(E5(F5(E5(F5(C5(V(a,I5,B5),2069,650),872),78),650),144),806),2003),650))}).put(C2(3761),function(a){H5(F5(E5(F5(E5(F5(E5(F5(C5(V(a,I5,B5),2069,-422),-200),2003),-356),144),-200),78),-422))}).put(C2(3762),function(a){H5(Z(Z(E5(Z(Z(C5(V(a,I5,B5),1886,650),1681,780,1354,881,941,881),526,881,205,780,0,650),47),214,733,472,811,941,811),1410,811,1671,733,1838,650))}).put(C2(3763), function(a){H5(Z(Z(E5(Z(Z(C5(V(a,I5,B5),1838,-200),1671,-283,1410,-361,941,-361),472,-361,214,-283,47,-200),0),205,-330,526,-431,941,-431),1354,-431,1681,-330,1886,-200))}).put(C2(3764),function(a){H5(Z(Z(E5(Z(E5(Z(E5(Z(Z(E5(Z(E5(Z(E5(Z(E5(Z(C5(V(a,I5,B5),1886,650),1861,741,1736,806,1462,806),1205),1116,806,981,830,960,893),927),905,830,772,806,683,806),426),151,806,25,741,0,650),43),81,720,164,738,265,738),369,738,461,736,474,736),610),761,736,877,778,942,856),944),1009,778,1127,736,1277,736),1413), 1426,736,1590,738,1620,738),1722,738,1821,711,1843,650))}).put(C2(3765),function(a){H5(Z(E5(Z(E5(Z(E5(Z(E5(Z(Z(E5(Z(E5(Z(E5(Z(Z(C5(V(a,I5,B5),1843,-200),1821,-261,1722,-288,1620,-288),1590,-288,1426,-286,1413,-286),1277),1127,-286,1009,-328,944,-406),942),877,-328,761,-286,610,-286),474),461,-286,369,-288,265,-288),164,-288,81,-270,43,-200),0),25,-291,151,-356,426,-356),683),772,-356,905,-380,927,-443),960),981,-380,1116,-356,1205,-356),1462),1736,-356,1861,-291,1886,-200))}).put(C2(3770),function(a){H5(F5(E5(F5(E5(F5(E5(F5(C5(H5(Z(F5(Z(C5(V(a, I5,B5),437,-350),342,-347,315,-311,315,-198),1895),315,1997,350,2020,437,2022)),597,2022),2066),225),-394),596),-350),499),2022))}).put(C2(3771),function(a){H5(F5(E5(F5(E5(F5(E5(F5(C5(H5(Z(F5(Z(C5(V(a,I5,B5),332,-223),332,-325,297,-348,210,-350),2022),305,2019,332,1983,332,1870)),422,-394),2066),51),2022),148),-350),50),-394))}).put(C2(3772),function(a){H5(D5(D5(E5(D5(D5(C5(V(a,I5,B5),670,-394),199,836),670,2066),567),96,836),567,-394))}).put(C2(3773),function(a){H5(E5(D5(D5(E5(D5(C5(V(a,I5,B5),669, 836),198,2066),95),566,836),95,-394),198))}).put(C2(3776),function(a){H5(Z(F5(Z(F5(Z(F5(Z(E5(F5(E5(F5(E5(F5(C5(H5(Z(Z(F5(Z(F5(Z(F5(Z(Z(C5(V(a,I5,B5),650,-348),485,-330,462,-121,462,36),462,108,474,180,474,244),401),474,597,413,751,226,835),837),413,920,474,1072,474,1269),1432),474,1489,462,1598,462,1676),462,1829,496,2005,650,2021)),867,-394),-350),716),2022),867),2066),677),461,2066,359,1877,359,1523),1176),359,1057,290,882,143,857),813),290,788,359,613,359,494),157),359,-198,461,-394,677,-394))}).put(C2(3777), function(a){H5(Z(F5(Z(E5(F5(E5(F5(E5(F5(E5(Z(F5(Z(C5(H5(Z(F5(Z(Z(F5(Z(Z(F5(Z(C5(V(a,I5,B5),805,835),618,752,557,600,557,403),240),557,183,569,74,569,-4),569,-157,535,-350,381,-350),2022),545,2022,569,1793,569,1636),569,1564,557,1492,557,1428),1271),557,1075,618,921,805,837)),888,859),741,884,672,1059,672,1178),1515),672,1870,570,2066,354,2066),164),2022),315),-350),164),-394),354),570,-394,672,-205,672,149),496),672,615,741,790,888,815))}).put(C2(3780),function(a){H5(Z(Z(F5(Z(Z(C5(V(a,I5,B5),732, -453),508,-221,254,283,254,1029),254,1806,508,2279,732,2510),2566),377,2280,124,1702,124,1029),124,354,377,-223,732,-509))}).put(C2(3781),function(a){H5(Z(Z(F5(Z(Z(C5(V(a,I5,B5),76,2510),300,2278,554,1796,554,1030),554,273,300,-222,76,-453),-509),431,-223,684,362,684,1029),684,1710,431,2280,76,2566))}).put(C2(3782),function(a){H5(E5(D5(E5(C5(V(a,I5,B5),1293,2566),1189),16,-509),120))}).put(C2(3783),function(a){H5(F5(E5(F5(E5(F5(E5(F5(C5(V(a,I5,B5),634,-509),-453),390),2510),634),2566),295),-509))}).put(C2(3784), function(a){H5(F5(E5(F5(E5(F5(E5(F5(C5(V(a,I5,B5),366,-509),2566),27),2510),271),-453),27),-509))}).put(C2(3786),function(a){H5(Z(F5(Z(F5(Z(F5(Z(F5(Z(Z(F5(Z(Z(F5(Z(Z(C5(V(a,I5,B5),882,-453),644,-400,566,-170,566,46),566,134,571,224,571,299),484),571,729,508,924,278,1030),508,1136,571,1329,571,1574),1797),571,1892,567,1953,567,2058),567,2241,653,2458,882,2510),2566),615,2527,441,2319,441,1875),1457),441,1309,356,1090,173,1057),1003),356,970,441,749,441,601),182),441,-262,615,-470,882,-509))}).put(C2(3787), function(a){H5(Z(F5(Z(F5(Z(Z(F5(Z(Z(F5(Z(Z(F5(Z(F5(Z(C5(V(a,I5,B5),903,1056),720,1089,635,1309,635,1457),1875),635,2319,461,2527,194,2566),2510),432,2457,510,2229,510,2011),510,1919,505,1861,505,1786),1574),505,1326,568,1135,798,1029),568,923,505,729,505,484),260),505,165,509,104,509,-1),509,-184,423,-401,194,-453),-509),461,-470,635,-285,635,182),601),635,749,720,969,903,1002))}).put(C2(3788),function(a){H5(D5(E5(D5(C5(V(a,I5,B5),1293,-509),120,2566),16),1189,-509))}).put(C2(3790),function(a){H5(D5(D5(D5(D5(D5(C5(V(a, I5,B5),1886,599),943,796),0,599),5,573),942,734),1881,573))}).put(C2(3791),function(a){H5(Z(Z(Z(Z(E5(Z(Z(Z(Z(C5(V(a,I5,B5),1857,771),1830,705,1666,674,1513,674),1449,674,1224,685,1081,707),813,748,533,771,436,771),257,771,35,727,0,608),29),62,673,278,705,422,705),482,705,652,693,796,671),1107,624,1286,608,1485,608),1685,608,1857,656,1886,771))}).put(C2(3793),function(a){H5(D5(D5(D5(D5(D5(C5(V(a,I5,B5),1886,770),1881,796),942,635),5,796),0,770),943,573))}).put(C2(3797),function(a){H5(F5(E5(F5(C5(V(a, I5,B5),193,-509),2566),127),-509))}).put(C2(3798),function(a){H5(F5(E5(F5(C5(H5(F5(E5(F5(C5(V(a,I5,B5),195,-509),2566),129),-509)),394,-509),2566),328),-509))}).put(C2(3802),function(a){H5(F5(E5(F5(E5(F5(C5(V(a,I5,B5),655,2510),2566),295),-509),390),2510))}).put(C2(3803),function(a){H5(F5(E5(F5(E5(F5(C5(V(a,I5,B5),387,-509),2566),27),2510),292),-509))}).put(C2(3804),function(a){H5(F5(E5(F5(E5(F5(C5(V(a,I5,B5),655,-509),-453),390),2566),295),-509))}).put(C2(3805),function(a){H5(F5(E5(F5(E5(F5(C5(V(a, I5,B5),387,-509),2566),292),-453),27),-509))}).put(C2(3806),function(a){H5(F5(E5(F5(E5(F5(E5(F5(C5(V(a,I5,B5),2608,650),872),84),650),150),806),2542),650))}).put(C2(3807),function(a){H5(F5(E5(F5(E5(F5(E5(F5(C5(V(a,I5,B5),2608,-422),-200),2542),-356),150),-200),84),-422))}).put(C2(3808),function(a){H5(Z(Z(E5(Z(Z(C5(V(a,I5,B5),2328,650),2075,791,1671,894,1162,894),649,894,253,791,0,650),58),264,740,583,818,1162,818),1741,818,2063,740,2269,650))}).put(C2(3809),function(a){H5(Z(Z(E5(Z(Z(C5(V(a,I5,B5), 2269,-200),2063,-290,1741,-368,1162,-368),583,-368,264,-290,58,-200),0),253,-341,649,-444,1162,-444),1671,-444,2075,-341,2328,-200))}).put(C2(3810),function(a){H5(Z(Z(E5(Z(E5(Z(E5(Z(Z(E5(Z(E5(Z(E5(Z(E5(Z(C5(V(a,I5,B5),2328,650),2298,754,2143,816,1805,816),1488),1377,816,1211,843,1185,915),1144),1117,843,953,816,842,816),526),186,816,31,754,0,650),53),100,730,201,743,328,743),455,743,569,740,584,740),752),939,740,1082,784,1162,873),1166),1246,784,1391,740,1578,740),1745),1760,740,1963,743,1999,743), 2127,743,2248,718,2275,650))}).put(C2(3811),function(a){H5(Z(E5(Z(E5(Z(E5(Z(E5(Z(Z(E5(Z(E5(Z(E5(Z(Z(C5(V(a,I5,B5),2275,-200),2248,-268,2127,-293,1999,-293),1963,-293,1760,-290,1745,-290),1578),1391,-290,1246,-334,1166,-423),1162),1082,-334,939,-290,752,-290),584),569,-290,455,-293,328,-293),201,-293,100,-280,53,-200),0),31,-304,186,-366,526,-366),842),953,-366,1117,-393,1144,-465),1185),1211,-393,1377,-366,1488,-366),1805),2143,-366,2298,-304,2328,-200))}).put(C2(3816),function(a){H5(F5(E5(F5(E5(F5(E5(F5(C5(H5(Z(F5(Z(C5(V(a, I5,B5),514,-453),431,-453,390,-427,390,-314),2355),390,2480,414,2507,514,2510)),708,-509),-453),580),2510),708),2566),295),-509))}).put(C2(3817),function(a){H5(F5(E5(F5(E5(F5(E5(F5(C5(H5(Z(F5(Z(C5(V(a,I5,B5),388,-298),388,-423,364,-450,264,-453),2510),347,2510,388,2484,388,2371)),483,-509),2566),70),2510),198),-453),70),-509))}).put(C2(3818),function(a){H5(D5(D5(E5(D5(D5(C5(V(a,I5,B5),796,-509),216,1030),796,2566),695),113,1030),695,-509))}).put(C2(3819),function(a){H5(E5(D5(D5(E5(D5(C5(V(a,I5,B5), 795,1030),213,2566),112),692,1030),112,-509),213))}).put(C2(3822),function(a){H5(Z(F5(Z(F5(Z(F5(Z(E5(F5(E5(F5(E5(F5(C5(H5(Z(Z(F5(Z(Z(F5(Z(Z(C5(V(a,I5,B5),819,-453),592,-444,575,-166,575,46),575,134,580,224,580,299),484),580,729,517,924,287,1030),517,1136,580,1329,580,1574),1797),580,1892,576,1953,576,2058),576,2238,601,2501,819,2510)),1052,-509),-453),895),2510),1051),2566),831),564,2566,450,2319,450,1875),1457),450,1309,365,1090,182,1057),1003),365,970,450,749,450,601),182),450,-262,564,-509,831, -509))}).put(C2(3823),function(a){H5(Z(F5(Z(E5(F5(E5(F5(E5(F5(E5(Z(F5(Z(C5(H5(Z(Z(F5(Z(Z(F5(Z(Z(C5(V(a,I5,B5),645,260),645,165,649,104,649,-1),649,-181,624,-444,406,-453),2510),633,2501,650,2223,650,2011),650,1923,645,1833,645,1758),1573),645,1328,708,1133,938,1027),708,921,645,728,645,483)),1043,1054),860,1087,775,1308,775,1456),1875),775,2319,661,2566,394,2566),173),2510),330),-453),174),-509),394),661,-509,775,-262,775,182),600),775,748,860,967,1043,1E3))}).put(C2(3828),function(a){H5(D5(D5(D5(D5(D5(C5(V(a, I5,B5),2328,603),1164,816),0,603),5,572),1163,754),2323,572))}).put(C2(3829),function(a){H5(Z(Z(Z(Z(E5(Z(Z(Z(Z(C5(V(a,I5,B5),2299,780),2272,714,1993,683,1840,683),1776,683,1439,694,1296,716),1028,757,648,780,551,780),372,780,35,736,0,617),29),62,682,393,714,537,714),597,714,867,702,1011,680),1322,633,1613,617,1812,617),2012,617,2299,665,2328,780))}).put(C2(3831),function(a){H5(D5(D5(D5(D5(D5(C5(V(a,I5,B5),2328,785),2323,816),1163,634),5,816),0,785),1164,572))}).put(C2(3835),function(a){H5(F5(E5(F5(E5(F5(E5(F5(C5(V(a, I5,B5),3147,650),872),90),650),156),806),3081),650))}).put(C2(3836),function(a){H5(F5(E5(F5(E5(F5(E5(F5(C5(V(a,I5,B5),3147,-422),-200),3081),-356),156),-200),90),-422))}).put(C2(3837),function(a){H5(Z(E5(Z(E5(Z(Z(C5(V(a,I5,B5),3237,650),2747,918,2163,919,1619,919),1076,919,489,918,0,650),58),456,820,911,839,1339,839),1679),2159,839,2732,840,3179,650))}).put(C2(3838),function(a){H5(Z(Z(E5(Z(E5(Z(C5(V(a,I5,B5),3179,-200),2745,-386,2181,-389,1713,-389),1429),976,-389,481,-381,58,-200),0),487,-468,1078, -469,1619,-469),2159,-469,2751,-467,3237,-200))}).put(C2(3839),function(a){H5(Z(Z(E5(Z(Z(E5(Z(Z(E5(Z(Z(E5(Z(E5(Z(E5(Z(Z(C5(V(a,I5,B5),3238,650),3236,657,3234,669,3231,675),3187,768,3031,822,2712,822),1939),1828,822,1667,849,1640,921),1598),1571,849,1410,822,1299,822),526),207,822,51,768,7,675),4,669,2,656,0,650),53),100,730,201,743,328,743),455,743,569,740,584,740),1209),1396,740,1539,784,1619,873),1699,784,1842,740,2029,740),2654),2669,740,2783,743,2910,743),3037,743,3138,730,3185,650))}).put(C2(3840), function(a){H5(Z(Z(E5(Z(E5(Z(E5(Z(Z(E5(Z(Z(E5(Z(Z(E5(Z(Z(C5(V(a,I5,B5),3185,-200),3138,-280,3037,-293,2910,-293),2783,-293,2669,-290,2654,-290),2029),1842,-290,1699,-334,1619,-423),1539,-334,1396,-290,1209,-290),584),569,-290,455,-293,328,-293),201,-293,100,-280,53,-200),0),2,-207,4,-219,7,-225),51,-317,207,-372,526,-372),1299),1410,-372,1571,-399,1598,-471),1640),1667,-399,1828,-372,1939,-372),2712),3031,-372,3187,-317,3231,-225),3234,-219,3236,-206,3238,-200))}).put(C2(3843),function(a){H5(F5(E5(F5(C5(V(a, I5,B5),895,0),635),829),0))}).put(C2(3844),function(a){H5(F5(E5(F5(E5(F5(C5(V(a,I5,B5),1211,560),626),829),0),895),560))}).put(C2(3849),function(a){H5(F5(E5(F5(C5(V(a,I5,B5),300,627),681),0),627))}).put(C2(3850),function(a){H5(F5(E5(F5(C5(V(a,I5,B5),300,-173),-119),0),-173))}).put(C2(3851),function(a){H5(Z(E5(Z(E5(F5(C5(V(a,I5,B5),908,958),1093),665),355,1093,26,1002,-25,650),31),53,886,354,958,548,958))}).put(C2(3852),function(a){H5(Z(E5(F5(E5(Z(C5(V(a,I5,B5),922,650),871,1002,542,1093,232,1093), -11),958),349),543,958,844,886,866,650))}).put(C2(3853),function(a){H5(Z(E5(Z(E5(F5(C5(V(a,I5,B5),908,-643),-508),548),354,-508,53,-436,31,-200),-25),26,-552,355,-643,665,-643))}).put(C2(3854),function(a){H5(F5(E5(F5(C5(V(a,I5,B5),326,-643),-508),-1),-643))}).put(C2(3855),function(a){H5(F5(E5(F5(C5(V(a,I5,B5),326,958),1093),-1),958))}).put(C2(3856),function(a){H5(Z(E5(Z(E5(F5(E5(Z(E5(Z(E5(F5(C5(V(a,I5,B5),1854,958),1093),1347),1199,1093,982,1173,949,1356),895),862,1173,639,1093,491,1093),-10),958), 374),619,958,814,1019,920,1249),924),1030,1019,1219,958,1464,958))}).put(C2(3857),function(a){H5(Z(E5(Z(E5(F5(E5(Z(E5(Z(E5(F5(C5(V(a,I5,B5),1854,-643),-508),1470),1225,-508,1030,-569,924,-799),920),814,-569,625,-508,380,-508),-10),-643),497),645,-643,862,-723,895,-906),949),982,-723,1205,-643,1353,-643))}).put(C2(3858),function(a){H5(Z(E5(Z(E5(F5(C5(V(a,I5,B5),1830,1128),1263),1580),833,1263,257,1017,-25,650),31),261,889,852,1128,1580,1128))}).put(C2(3859),function(a){H5(Z(E5(F5(E5(Z(C5(V(a,I5,B5), 1845,650),1563,1017,987,1263,240,1263),-10),1128),240),968,1128,1559,889,1789,650))}).put(C2(3860),function(a){H5(Z(E5(Z(E5(F5(C5(V(a,I5,B5),1830,-813),-678),1580),852,-678,261,-439,31,-200),-25),257,-567,833,-813,1580,-813))}).put(C2(3861),function(a){H5(Z(E5(F5(E5(Z(C5(V(a,I5,B5),1789,-200),1559,-439,968,-678,240,-678),-10),-813),240),987,-813,1563,-567,1845,-200))}).put(C2(3862),function(a){H5(Z(F5(E5(F5(E5(F5(C5(V(a,I5,B5),1830,916),1051),-25),650),34),799),34,904,51,916,225,916))}).put(C2(3863), function(a){H5(F5(Z(E5(F5(E5(F5(C5(V(a,I5,B5),1845,650),1051),-10),916),1595),1769,916,1786,904,1786,799),650))}).put(C2(3864),function(a){H5(F5(E5(F5(Z(E5(F5(C5(V(a,I5,B5),1830,-601),-466),225),51,-466,34,-454,34,-349),-200),-25),-601))}).put(C2(3865),function(a){H5(F5(E5(Z(F5(E5(F5(C5(V(a,I5,B5),1845,-601),-200),1786),-349),1786,-454,1769,-466,1595,-466),-10),-601))}).put(C2(3866),function(a){H5(Z(E5(F5(E5(Z(C5(V(a,I5,B5),866,-200),844,-436,543,-508,349,-508),-11),-643),232),542,-643,871,-552,922, -200))}).put(C2(3867),function(a){H5(F5(E5(F5(C5(V(a,I5,B5),634,916),1051),-1),916))}).put(C2(3868),function(a){H5(F5(E5(F5(C5(V(a,I5,B5),634,-601),-466),-1),-601))}).put(C2(3869),function(a){H5(F5(E5(F5(C5(H5(F5(E5(F5(C5(V(a,I5,B5),276,101),405),210),101)),476,101),405),410),101))}).put(C2(4227),function(a){H5(F5(E5(F5(C5(V(a,I5,B5),634,1128),1263),-1),1128))}).put(C2(4228),function(a){H5(F5(E5(F5(C5(V(a,I5,B5),634,-813),-678),-1),-813))}))};var $uc,Zuc=function(){Zuc=function(){}; $uc=new Owc("XITSMath-Regular","\0\0\x01\x02\x03\x04\x05\x06\x07\b\t\n\x0B\f\r\x0E\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\xD0\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\xDE\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF\u0100\u0101\u0102\u0103\u0104\u0105\u0106\u0107\u0108\u0109\u010A\u010B\u010C\u010D\u010E\u010F\u0110\u0111\u0112\u0113\u0114\u0115\u0116\u0117\u0118\u0119\u011A\u011B\u011C\u011D\u011E\u011F\u0120\u0121\u0122\u0123\u0124\u0125\u0126\u0127\u0128\u0129\u012A\u012B\u012C\u012D\u012E\u012F\u0130\u0131\u0132\u0133\u0134\u0135\u0136\u0137\u0138\u0139\u013A\u013B\u013C\u013D\u013E\u013F\u0140\u0141\u0142\u0143\u0144\u0145\u0146\u0147\u0148\u0149\u014A\u014B\u014C\u014D\u014E\u014F\u0150\u0151\u0152\u0153\u0154\u0155\u0156\u0157\u0158\u0159\u015A\u015B\u015C\u015D\u015E\u015F\u0160\u0161\u0162\u0163\u0164\u0165\u0166\u0167\u0168\u0169\u016A\u016B\u016C\u016D\u016E\u016F\u0170\u0171\u0172\u0173\u0174\u0175\u0176\u0177\u0178\u0179\u017A\u017B\u017C\u017D\u017E\u017F\u0180\u0188\u0190\u0192\u0195\u0199\u019A\u019B\u019E\u01A0\u01A1\u01A5\u01AA\u01AB\u01AD\u01AF\u01B0\u01B5\u01BA\u01BB\u01BE\u01C0\u01C1\u01C2\u01C3\u01F0\u01FA\u01FB\u01FC\u01FD\u01FE\u01FF\u0218\u0219\u021A\u021B\u0221\u0234\u0235\u0236\u0237\u0250\u0251\u0252\u0253\u0254\u0255\u0256\u0257\u0258\u0259\u025A\u025B\u025C\u025D\u025E\u025F\u0260\u0261\u0262\u0263\u0264\u0265\u0266\u0267\u0268\u0269\u026A\u026B\u026C\u026D\u026E\u026F\u0270\u0271\u0272\u0273\u0274\u0275\u0276\u0277\u0278\u0279\u027A\u027B\u027C\u027D\u027E\u027F\u0280\u0281\u0282\u0283\u0284\u0285\u0286\u0287\u0288\u0289\u028A\u028B\u028C\u028D\u028E\u028F\u0290\u0291\u0292\u0293\u0294\u0295\u0296\u0297\u0298\u0299\u029A\u029B\u029C\u029D\u029E\u029F\u02A0\u02A1\u02A2\u02A3\u02A4\u02A5\u02A6\u02A7\u02A8\u02AE\u02AF\u02B0\u02B1\u02B2\u02B3\u02B4\u02B5\u02B6\u02B7\u02B8\u02B9\u02BA\u02BB\u02BC\u02BD\u02BE\u02BF\u02C0\u02C1\u02C2\u02C3\u02C4\u02C5\u02C6\u02C7\u02C8\u02C9\u02CA\u02CB\u02CC\u02CD\u02CE\u02CF\u02D0\u02D1\u02D2\u02D3\u02D4\u02D5\u02D6\u02D7\u02D8\u02D9\u02DA\u02DB\u02DC\u02DD\u02DE\u02DF\u02E0\u02E1\u02E2\u02E3\u02E4\u02E5\u02E6\u02E7\u02E8\u02E9\u02EC\u02ED\u02F3\u02F7\u0300\u0301\u0302\u0303\u0304\u0305\u0306\u0307\u0308\u0309\u030A\u030B\u030C\u030D\u030E\u030F\u0310\u0311\u0312\u0313\u0314\u0315\u0316\u0317\u0318\u0319\u031A\u031B\u031C\u031D\u031E\u031F\u0320\u0321\u0322\u0323\u0324\u0325\u0326\u0327\u0328\u0329\u032A\u032B\u032C\u032D\u032E\u032F\u0330\u0331\u0332\u0333\u0334\u0335\u0336\u0337\u0338\u0339\u033A\u033B\u033C\u033D\u033E\u033F\u0346\u0347\u034C\u034D\u0359\u035C\u0360\u0361\u0362\u037E\u0384\u0385\u0386\u0387\u0388\u0389\u038A\u038C\u038E\u038F\u0390\u0391\u0392\u0393\u0394\u0395\u0396\u0397\u0398\u0399\u039A\u039B\u039C\u039D\u039E\u039F\u03A0\u03A1\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03AA\u03AB\u03AC\u03AD\u03AE\u03AF\u03B0\u03B1\u03B2\u03B3\u03B4\u03B5\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C2\u03C3\u03C4\u03C5\u03C6\u03C7\u03C8\u03C9\u03CA\u03CB\u03CC\u03CD\u03CE\u03D0\u03D1\u03D2\u03D5\u03D6\u03D8\u03D9\u03DA\u03DB\u03DC\u03DD\u03DE\u03DF\u03E0\u03E1\u03F0\u03F1\u03F4\u03F5\u03F6\u0401\u0402\u0403\u0404\u0405\u0406\u0407\u0408\u0409\u040A\u040B\u040C\u040E\u040F\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0451\u0452\u0453\u0454\u0455\u0456\u0457\u0458\u0459\u045A\u045B\u045C\u045E\u045F\u0462\u0463\u046A\u046B\u0472\u0473\u0474\u0475\u0490\u0491\u0606\u0607\u0608\u0609\u060A\u060C\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u066A\u066B\u066C\u066D\u06F0\u06F1\u06F2\u06F3\u06F4\u06F5\u06F6\u06F7\u06F8\u06F9\u1D00\u1D07\u1D1C\u1D81\u1D84\u1D85\u1D8A\u1D8D\u1D8E\u1D9B\u1DA3\u1E80\u1E81\u1E82\u1E83\u1E84\u1E85\u1EF2\u1EF3\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u200B\u200C\u200D\u200E\u200F\u2010\u2011\u2012\u2013\u2014\u2015\u2016\u2017\u2018\u2019\u201A\u201B\u201C\u201D\u201E\u201F\u2020\u2021\u2022\u2025\u2026\u2028\u2029\u202A\u202B\u202C\u202D\u202E\u202F\u2030\u2031\u2032\u2033\u2034\u2035\u2036\u2037\u2038\u2039\u203A\u203B\u203C\u203E\u2040\u2043\u2044\u2047\u204E\u204F\u2050\u2051\u2052\u2057\u205F\u207F\u20A3\u20A4\u20A7\u20AC\u20D0\u20D1\u20D2\u20D6\u20D7\u20DB\u20DC\u20DD\u20DE\u20DF\u20E1\u20E4\u20E5\u20E6\u20E7\u20E8\u20E9\u20EA\u20EB\u20EC\u20ED\u20EE\u20EF\u20F0\u2102\u2105\u2107\u210A\u210B\u210C\u210D\u210E\u210F\u2110\u2111\u2112\u2113\u2115\u2116\u2117\u2118\u2119\u211A\u211B\u211C\u211D\u211E\u2122\u2124\u2125\u2126\u2127\u2128\u2129\u212B\u212C\u212D\u212E\u212F\u2130\u2131\u2132\u2133\u2134\u2135\u2136\u2137\u2138\u213C\u213D\u213E\u213F\u2140\u2141\u2142\u2143\u2144\u2145\u2146\u2147\u2148\u2149\u214A\u214B\u2153\u2154\u2155\u2156\u2157\u2158\u2159\u215A\u215B\u215C\u215D\u215E\u2190\u2191\u2192\u2193\u2194\u2195\u2196\u2197\u2198\u2199\u219A\u219B\u219C\u219D\u219E\u219F\u21A0\u21A1\u21A2\u21A3\u21A4\u21A5\u21A6\u21A7\u21A8\u21A9\u21AA\u21AB\u21AC\u21AD\u21AE\u21AF\u21B0\u21B1\u21B2\u21B3\u21B4\u21B5\u21B6\u21B7\u21B8\u21B9\u21BA\u21BB\u21BC\u21BD\u21BE\u21BF\u21C0\u21C1\u21C2\u21C3\u21C4\u21C5\u21C6\u21C7\u21C8\u21C9\u21CA\u21CB\u21CC\u21CD\u21CE\u21CF\u21D0\u21D1\u21D2\u21D3\u21D4\u21D5\u21D6\u21D7\u21D8\u21D9\u21DA\u21DB\u21DC\u21DD\u21DE\u21DF\u21E0\u21E1\u21E2\u21E3\u21E4\u21E5\u21E6\u21E7\u21E8\u21E9\u21EA\u21F4\u21F5\u21F6\u21F7\u21F8\u21F9\u21FA\u21FB\u21FC\u21FD\u21FE\u21FF\u2200\u2201\u2202\u2203\u2204\u2205\u2206\u2207\u2208\u2209\u220A\u220B\u220C\u220D\u220E\u220F\u2210\u2211\u2212\u2213\u2214\u2215\u2216\u2217\u2218\u2219\u221A\u221B\u221C\u221D\u221E\u221F\u2220\u2221\u2222\u2223\u2224\u2225\u2226\u2227\u2228\u2229\u222A\u222B\u222C\u222D\u222E\u222F\u2230\u2231\u2232\u2233\u2234\u2235\u2236\u2237\u2238\u2239\u223A\u223B\u223C\u223D\u223E\u223F\u2240\u2241\u2242\u2243\u2244\u2245\u2246\u2247\u2248\u2249\u224A\u224B\u224C\u224D\u224E\u224F\u2250\u2251\u2252\u2253\u2254\u2255\u2256\u2257\u2258\u2259\u225A\u225B\u225C\u225D\u225E\u225F\u2260\u2261\u2262\u2263\u2264\u2265\u2266\u2267\u2268\u2269\u226A\u226B\u226C\u226D\u226E\u226F\u2270\u2271\u2272\u2273\u2274\u2275\u2276\u2277\u2278\u2279\u227A\u227B\u227C\u227D\u227E\u227F\u2280\u2281\u2282\u2283\u2284\u2285\u2286\u2287\u2288\u2289\u228A\u228B\u228C\u228D\u228E\u228F\u2290\u2291\u2292\u2293\u2294\u2295\u2296\u2297\u2298\u2299\u229A\u229B\u229C\u229D\u229E\u229F\u22A0\u22A1\u22A2\u22A3\u22A4\u22A5\u22A6\u22A7\u22A8\u22A9\u22AA\u22AB\u22AC\u22AD\u22AE\u22AF\u22B0\u22B1\u22B2\u22B3\u22B4\u22B5\u22B6\u22B7\u22B8\u22B9\u22BA\u22BB\u22BC\u22BD\u22BE\u22BF\u22C0\u22C1\u22C2\u22C3\u22C4\u22C5\u22C6\u22C7\u22C8\u22C9\u22CA\u22CB\u22CC\u22CD\u22CE\u22CF\u22D0\u22D1\u22D2\u22D3\u22D4\u22D5\u22D6\u22D7\u22D8\u22D9\u22DA\u22DB\u22DC\u22DD\u22DE\u22DF\u22E0\u22E1\u22E2\u22E3\u22E4\u22E5\u22E6\u22E7\u22E8\u22E9\u22EA\u22EB\u22EC\u22ED\u22EE\u22EF\u22F0\u22F1\u22F2\u22F3\u22F4\u22F5\u22F6\u22F7\u22F8\u22F9\u22FA\u22FB\u22FC\u22FD\u22FE\u22FF\u2300\u2302\u2305\u2306\u2308\u2309\u230A\u230B\u230C\u230D\u230E\u230F\u2310\u2311\u2312\u2313\u2315\u2316\u2317\u2318\u2319\u231A\u231C\u231D\u231E\u231F\u2320\u2321\u2322\u2323\u2329\u232A\u232C\u232D\u232E\u2332\u2336\u233D\u233F\u2340\u2353\u2370\u237C\u2393\u2394\u239B\u239C\u239D\u239E\u239F\u23A0\u23A1\u23A2\u23A3\u23A4\u23A5\u23A6\u23A7\u23A8\u23A9\u23AA\u23AB\u23AC\u23AD\u23AE\u23AF\u23B0\u23B1\u23B2\u23B3\u23B4\u23B5\u23B6\u23B7\u23B8\u23B9\u23CE\u23D0\u23DC\u23DD\u23DE\u23DF\u23E0\u23E1\u23E2\u23E3\u23E4\u23E5\u23E6\u23E7\u2423\u2460\u2461\u2462\u2463\u2464\u2465\u2466\u2467\u2468\u24B6\u24B7\u24B8\u24B9\u24BA\u24BB\u24BC\u24BD\u24BE\u24BF\u24C0\u24C1\u24C2\u24C3\u24C4\u24C5\u24C6\u24C7\u24C8\u24C9\u24CA\u24CB\u24CC\u24CD\u24CE\u24CF\u24D0\u24D1\u24D2\u24D3\u24D4\u24D5\u24D6\u24D7\u24D8\u24D9\u24DA\u24DB\u24DC\u24DD\u24DE\u24DF\u24E0\u24E1\u24E2\u24E3\u24E4\u24E5\u24E6\u24E7\u24E8\u24E9\u24EA\u2500\u2502\u2506\u2508\u250A\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550\u2551\u2552\u2553\u2554\u2555\u2556\u2557\u2558\u2559\u255A\u255B\u255C\u255D\u255E\u255F\u2560\u2561\u2562\u2563\u2564\u2565\u2566\u2567\u2568\u2569\u256A\u256B\u256C\u2571\u2572\u2580\u2584\u2588\u258C\u2590\u2591\u2592\u2593\u25A0\u25A1\u25A2\u25A3\u25A4\u25A5\u25A6\u25A7\u25A8\u25A9\u25AA\u25AB\u25AC\u25AD\u25AE\u25AF\u25B0\u25B1\u25B2\u25B3\u25B4\u25B5\u25B6\u25B7\u25B8\u25B9\u25BA\u25BB\u25BC\u25BD\u25BE\u25BF\u25C0\u25C1\u25C2\u25C3\u25C4\u25C5\u25C6\u25C7\u25C8\u25C9\u25CA\u25CB\u25CC\u25CD\u25CE\u25CF\u25D0\u25D1\u25D2\u25D3\u25D4\u25D5\u25D6\u25D7\u25D8\u25D9\u25DA\u25DB\u25DC\u25DD\u25DE\u25DF\u25E0\u25E1\u25E2\u25E3\u25E4\u25E5\u25E6\u25E7\u25E8\u25E9\u25EA\u25EB\u25EC\u25ED\u25EE\u25EF\u25F0\u25F1\u25F2\u25F3\u25F4\u25F5\u25F6\u25F7\u25F8\u25F9\u25FA\u25FB\u25FC\u25FD\u25FE\u25FF\u2605\u2606\u2609\u260C\u260E\u2612\u2621\u2639\u263A\u263B\u263C\u263D\u263E\u263F\u2640\u2641\u2642\u2643\u2644\u2646\u2647\u2648\u2649\u2660\u2661\u2662\u2663\u2664\u2665\u2666\u2667\u2669\u266A\u266B\u266D\u266E\u266F\u267E\u2680\u2681\u2682\u2683\u2684\u2685\u2686\u2687\u2688\u2689\u26A0\u26A5\u26AA\u26AB\u26AC\u26B2\u26E2\u2702\u2709\u2713\u2720\u272A\u2736\u273D\u2772\u2773\u2780\u2781\u2782\u2783\u2784\u2785\u2786\u2787\u2788\u2789\u278A\u278B\u278C\u278D\u278E\u278F\u2790\u2791\u2792\u2793\u279B\u27C0\u27C1\u27C2\u27C3\u27C4\u27C5\u27C6\u27C7\u27C8\u27C9\u27CB\u27CC\u27CD\u27D0\u27D1\u27D2\u27D3\u27D4\u27D5\u27D6\u27D7\u27D8\u27D9\u27DA\u27DB\u27DC\u27DD\u27DE\u27DF\u27E0\u27E1\u27E2\u27E3\u27E4\u27E5\u27E6\u27E7\u27E8\u27E9\u27EA\u27EB\u27EC\u27ED\u27EE\u27EF\u27F0\u27F1\u27F2\u27F3\u27F4\u27F5\u27F6\u27F7\u27F8\u27F9\u27FA\u27FB\u27FC\u27FD\u27FE\u27FF\u2900\u2901\u2902\u2903\u2904\u2905\u2906\u2907\u2908\u2909\u290A\u290B\u290C\u290D\u290E\u290F\u2910\u2911\u2912\u2913\u2914\u2915\u2916\u2917\u2918\u2919\u291A\u291B\u291C\u291D\u291E\u291F\u2920\u2921\u2922\u2923\u2924\u2925\u2926\u2927\u2928\u2929\u292A\u292B\u292C\u292D\u292E\u292F\u2930\u2931\u2932\u2933\u2934\u2935\u2936\u2937\u2938\u2939\u293A\u293B\u293C\u293D\u293E\u293F\u2940\u2941\u2942\u2943\u2944\u2945\u2946\u2947\u2948\u2949\u294A\u294B\u294C\u294D\u294E\u294F\u2950\u2951\u2952\u2953\u2954\u2955\u2956\u2957\u2958\u2959\u295A\u295B\u295C\u295D\u295E\u295F\u2960\u2961\u2962\u2963\u2964\u2965\u2966\u2967\u2968\u2969\u296A\u296B\u296C\u296D\u296E\u296F\u2970\u2971\u2972\u2973\u2974\u2975\u2976\u2977\u2978\u2979\u297A\u297B\u297C\u297D\u297E\u297F\u2980\u2981\u2982\u2983\u2984\u2985\u2986\u2987\u2988\u2989\u298A\u298B\u298C\u298D\u298E\u298F\u2990\u2991\u2992\u2993\u2994\u2995\u2996\u2997\u2998\u2999\u299A\u299B\u299C\u299D\u299E\u299F\u29A0\u29A1\u29A2\u29A3\u29A4\u29A5\u29A6\u29A7\u29A8\u29A9\u29AA\u29AB\u29AC\u29AD\u29AE\u29AF\u29B0\u29B1\u29B2\u29B3\u29B4\u29B5\u29B6\u29B7\u29B8\u29B9\u29BA\u29BB\u29BC\u29BD\u29BE\u29BF\u29C0\u29C1\u29C2\u29C3\u29C4\u29C5\u29C6\u29C7\u29C8\u29C9\u29CA\u29CB\u29CC\u29CD\u29CE\u29CF\u29D0\u29D1\u29D2\u29D3\u29D4\u29D5\u29D6\u29D7\u29D8\u29D9\u29DA\u29DB\u29DC\u29DD\u29DE\u29DF\u29E0\u29E1\u29E2\u29E3\u29E4\u29E5\u29E6\u29E7\u29E8\u29E9\u29EA\u29EB\u29EC\u29ED\u29EE\u29EF\u29F0\u29F1\u29F2\u29F3\u29F4\u29F5\u29F6\u29F7\u29F8\u29F9\u29FA\u29FB\u29FC\u29FD\u29FE\u29FF\u2A00\u2A01\u2A02\u2A03\u2A04\u2A05\u2A06\u2A07\u2A08\u2A09\u2A0A\u2A0B\u2A0C\u2A0D\u2A0E\u2A0F\u2A10\u2A11\u2A12\u2A13\u2A14\u2A15\u2A16\u2A17\u2A18\u2A19\u2A1A\u2A1B\u2A1C\u2A1D\u2A1E\u2A1F\u2A20\u2A21\u2A22\u2A23\u2A24\u2A25\u2A26\u2A27\u2A28\u2A29\u2A2A\u2A2B\u2A2C\u2A2D\u2A2E\u2A2F\u2A30\u2A31\u2A32\u2A33\u2A34\u2A35\u2A36\u2A37\u2A38\u2A39\u2A3A\u2A3B\u2A3C\u2A3D\u2A3E\u2A3F\u2A40\u2A41\u2A42\u2A43\u2A44\u2A45\u2A46\u2A47\u2A48\u2A49\u2A4A\u2A4B\u2A4C\u2A4D\u2A4E\u2A4F\u2A50\u2A51\u2A52\u2A53\u2A54\u2A55\u2A56\u2A57\u2A58\u2A59\u2A5A\u2A5B\u2A5C\u2A5D\u2A5E\u2A5F\u2A60\u2A61\u2A62\u2A63\u2A64\u2A65\u2A66\u2A67\u2A68\u2A69\u2A6A\u2A6B\u2A6C\u2A6D\u2A6E\u2A6F\u2A70\u2A71\u2A72\u2A73\u2A74\u2A75\u2A76\u2A77\u2A78\u2A79\u2A7A\u2A7B\u2A7C\u2A7D\u2A7E\u2A7F\u2A80\u2A81\u2A82\u2A83\u2A84\u2A85\u2A86\u2A87\u2A88\u2A89\u2A8A\u2A8B\u2A8C\u2A8D\u2A8E\u2A8F\u2A90\u2A91\u2A92\u2A93\u2A94\u2A95\u2A96\u2A97\u2A98\u2A99\u2A9A\u2A9B\u2A9C\u2A9D\u2A9E\u2A9F\u2AA0\u2AA1\u2AA2\u2AA3\u2AA4\u2AA5\u2AA6\u2AA7\u2AA8\u2AA9\u2AAA\u2AAB\u2AAC\u2AAD\u2AAE\u2AAF\u2AB0\u2AB1\u2AB2\u2AB3\u2AB4\u2AB5\u2AB6\u2AB7\u2AB8\u2AB9\u2ABA\u2ABB\u2ABC\u2ABD\u2ABE\u2ABF\u2AC0\u2AC1\u2AC2\u2AC3\u2AC4\u2AC5\u2AC6\u2AC7\u2AC8\u2AC9\u2ACA\u2ACB\u2ACC\u2ACD\u2ACE\u2ACF\u2AD0\u2AD1\u2AD2\u2AD3\u2AD4\u2AD5\u2AD6\u2AD7\u2AD8\u2AD9\u2ADA\u2ADB\u2ADC\u2ADD\u2ADE\u2ADF\u2AE0\u2AE1\u2AE2\u2AE3\u2AE4\u2AE5\u2AE6\u2AE7\u2AE8\u2AE9\u2AEA\u2AEB\u2AEC\u2AED\u2AEE\u2AEF\u2AF0\u2AF1\u2AF2\u2AF3\u2AF4\u2AF5\u2AF6\u2AF7\u2AF8\u2AF9\u2AFA\u2AFB\u2AFC\u2AFD\u2AFE\u2AFF\u2B12\u2B13\u2B14\u2B15\u2B16\u2B17\u2B18\u2B19\u2B1A\u2B1B\u2B1C\u2B1D\u2B1E\u2B1F\u2B20\u2B21\u2B22\u2B23\u2B24\u2B25\u2B26\u2B27\u2B28\u2B29\u2B2A\u2B2B\u2B2C\u2B2D\u2B2E\u2B2F\u2B30\u2B31\u2B32\u2B33\u2B34\u2B35\u2B36\u2B37\u2B38\u2B39\u2B3A\u2B3B\u2B3C\u2B3D\u2B3E\u2B3F\u2B40\u2B41\u2B42\u2B43\u2B44\u2B45\u2B46\u2B47\u2B48\u2B49\u2B4A\u2B4B\u2B4C\u2B50\u2B51\u2B52\u2B53\u2B54\u3012\u3030\u306E\uA727\uA792\uFE00\uFFFD\uD835\uDC00\uD835\uDC01\uD835\uDC02\uD835\uDC03\uD835\uDC04\uD835\uDC05\uD835\uDC06\uD835\uDC07\uD835\uDC08\uD835\uDC09\uD835\uDC0A\uD835\uDC0B\uD835\uDC0C\uD835\uDC0D\uD835\uDC0E\uD835\uDC0F\uD835\uDC10\uD835\uDC11\uD835\uDC12\uD835\uDC13\uD835\uDC14\uD835\uDC15\uD835\uDC16\uD835\uDC17\uD835\uDC18\uD835\uDC19\uD835\uDC1A\uD835\uDC1B\uD835\uDC1C\uD835\uDC1D\uD835\uDC1E\uD835\uDC1F\uD835\uDC20\uD835\uDC21\uD835\uDC22\uD835\uDC23\uD835\uDC24\uD835\uDC25\uD835\uDC26\uD835\uDC27\uD835\uDC28\uD835\uDC29\uD835\uDC2A\uD835\uDC2B\uD835\uDC2C\uD835\uDC2D\uD835\uDC2E\uD835\uDC2F\uD835\uDC30\uD835\uDC31\uD835\uDC32\uD835\uDC33\uD835\uDC34\uD835\uDC35\uD835\uDC36\uD835\uDC37\uD835\uDC38\uD835\uDC39\uD835\uDC3A\uD835\uDC3B\uD835\uDC3C\uD835\uDC3D\uD835\uDC3E\uD835\uDC3F\uD835\uDC40\uD835\uDC41\uD835\uDC42\uD835\uDC43\uD835\uDC44\uD835\uDC45\uD835\uDC46\uD835\uDC47\uD835\uDC48\uD835\uDC49\uD835\uDC4A\uD835\uDC4B\uD835\uDC4C\uD835\uDC4D\uD835\uDC4E\uD835\uDC4F\uD835\uDC50\uD835\uDC51\uD835\uDC52\uD835\uDC53\uD835\uDC54\uD835\uDC56\uD835\uDC57\uD835\uDC58\uD835\uDC59\uD835\uDC5A\uD835\uDC5B\uD835\uDC5C\uD835\uDC5D\uD835\uDC5E\uD835\uDC5F\uD835\uDC60\uD835\uDC61\uD835\uDC62\uD835\uDC63\uD835\uDC64\uD835\uDC65\uD835\uDC66\uD835\uDC67\uD835\uDC68\uD835\uDC69\uD835\uDC6A\uD835\uDC6B\uD835\uDC6C\uD835\uDC6D\uD835\uDC6E\uD835\uDC6F\uD835\uDC70\uD835\uDC71\uD835\uDC72\uD835\uDC73\uD835\uDC74\uD835\uDC75\uD835\uDC76\uD835\uDC77\uD835\uDC78\uD835\uDC79\uD835\uDC7A\uD835\uDC7B\uD835\uDC7C\uD835\uDC7D\uD835\uDC7E\uD835\uDC7F\uD835\uDC80\uD835\uDC81\uD835\uDC82\uD835\uDC83\uD835\uDC84\uD835\uDC85\uD835\uDC86\uD835\uDC87\uD835\uDC88\uD835\uDC89\uD835\uDC8A\uD835\uDC8B\uD835\uDC8C\uD835\uDC8D\uD835\uDC8E\uD835\uDC8F\uD835\uDC90\uD835\uDC91\uD835\uDC92\uD835\uDC93\uD835\uDC94\uD835\uDC95\uD835\uDC96\uD835\uDC97\uD835\uDC98\uD835\uDC99\uD835\uDC9A\uD835\uDC9B\uD835\uDC9C\uD835\uDC9E\uD835\uDC9F\uD835\uDCA2\uD835\uDCA5\uD835\uDCA6\uD835\uDCA9\uD835\uDCAA\uD835\uDCAB\uD835\uDCAC\uD835\uDCAE\uD835\uDCAF\uD835\uDCB0\uD835\uDCB1\uD835\uDCB2\uD835\uDCB3\uD835\uDCB4\uD835\uDCB5\uD835\uDCB6\uD835\uDCB7\uD835\uDCB8\uD835\uDCB9\uD835\uDCBB\uD835\uDCBD\uD835\uDCBE\uD835\uDCBF\uD835\uDCC0\uD835\uDCC1\uD835\uDCC2\uD835\uDCC3\uD835\uDCC5\uD835\uDCC6\uD835\uDCC7\uD835\uDCC8\uD835\uDCC9\uD835\uDCCA\uD835\uDCCB\uD835\uDCCC\uD835\uDCCD\uD835\uDCCE\uD835\uDCCF\uD835\uDCD0\uD835\uDCD1\uD835\uDCD2\uD835\uDCD3\uD835\uDCD4\uD835\uDCD5\uD835\uDCD6\uD835\uDCD7\uD835\uDCD8\uD835\uDCD9\uD835\uDCDA\uD835\uDCDB\uD835\uDCDC\uD835\uDCDD\uD835\uDCDE\uD835\uDCDF\uD835\uDCE0\uD835\uDCE1\uD835\uDCE2\uD835\uDCE3\uD835\uDCE4\uD835\uDCE5\uD835\uDCE6\uD835\uDCE7\uD835\uDCE8\uD835\uDCE9\uD835\uDCEA\uD835\uDCEB\uD835\uDCEC\uD835\uDCED\uD835\uDCEE\uD835\uDCEF\uD835\uDCF0\uD835\uDCF1\uD835\uDCF2\uD835\uDCF3\uD835\uDCF4\uD835\uDCF5\uD835\uDCF6\uD835\uDCF7\uD835\uDCF8\uD835\uDCF9\uD835\uDCFA\uD835\uDCFB\uD835\uDCFC\uD835\uDCFD\uD835\uDCFE\uD835\uDCFF\uD835\uDD00\uD835\uDD01\uD835\uDD02\uD835\uDD03\uD835\uDD04\uD835\uDD05\uD835\uDD07\uD835\uDD08\uD835\uDD09\uD835\uDD0A\uD835\uDD0D\uD835\uDD0E\uD835\uDD0F\uD835\uDD10\uD835\uDD11\uD835\uDD12\uD835\uDD13\uD835\uDD14\uD835\uDD16\uD835\uDD17\uD835\uDD18\uD835\uDD19\uD835\uDD1A\uD835\uDD1B\uD835\uDD1C\uD835\uDD1E\uD835\uDD1F\uD835\uDD20\uD835\uDD21\uD835\uDD22\uD835\uDD23\uD835\uDD24\uD835\uDD25\uD835\uDD26\uD835\uDD27\uD835\uDD28\uD835\uDD29\uD835\uDD2A\uD835\uDD2B\uD835\uDD2C\uD835\uDD2D\uD835\uDD2E\uD835\uDD2F\uD835\uDD30\uD835\uDD31\uD835\uDD32\uD835\uDD33\uD835\uDD34\uD835\uDD35\uD835\uDD36\uD835\uDD37\uD835\uDD38\uD835\uDD39\uD835\uDD3B\uD835\uDD3C\uD835\uDD3D\uD835\uDD3E\uD835\uDD40\uD835\uDD41\uD835\uDD42\uD835\uDD43\uD835\uDD44\uD835\uDD46\uD835\uDD4A\uD835\uDD4B\uD835\uDD4C\uD835\uDD4D\uD835\uDD4E\uD835\uDD4F\uD835\uDD50\uD835\uDD52\uD835\uDD53\uD835\uDD54\uD835\uDD55\uD835\uDD56\uD835\uDD57\uD835\uDD58\uD835\uDD59\uD835\uDD5A\uD835\uDD5B\uD835\uDD5C\uD835\uDD5D\uD835\uDD5E\uD835\uDD5F\uD835\uDD60\uD835\uDD61\uD835\uDD62\uD835\uDD63\uD835\uDD64\uD835\uDD65\uD835\uDD66\uD835\uDD67\uD835\uDD68\uD835\uDD69\uD835\uDD6A\uD835\uDD6B\uD835\uDD6C\uD835\uDD6D\uD835\uDD6E\uD835\uDD6F\uD835\uDD70\uD835\uDD71\uD835\uDD72\uD835\uDD73\uD835\uDD74\uD835\uDD75\uD835\uDD76\uD835\uDD77\uD835\uDD78\uD835\uDD79\uD835\uDD7A\uD835\uDD7B\uD835\uDD7C\uD835\uDD7D\uD835\uDD7E\uD835\uDD7F\uD835\uDD80\uD835\uDD81\uD835\uDD82\uD835\uDD83\uD835\uDD84\uD835\uDD85\uD835\uDD86\uD835\uDD87\uD835\uDD88\uD835\uDD89\uD835\uDD8A\uD835\uDD8B\uD835\uDD8C\uD835\uDD8D\uD835\uDD8E\uD835\uDD8F\uD835\uDD90\uD835\uDD91\uD835\uDD92\uD835\uDD93\uD835\uDD94\uD835\uDD95\uD835\uDD96\uD835\uDD97\uD835\uDD98\uD835\uDD99\uD835\uDD9A\uD835\uDD9B\uD835\uDD9C\uD835\uDD9D\uD835\uDD9E\uD835\uDD9F\uD835\uDDA0\uD835\uDDA1\uD835\uDDA2\uD835\uDDA3\uD835\uDDA4\uD835\uDDA5\uD835\uDDA6\uD835\uDDA7\uD835\uDDA8\uD835\uDDA9\uD835\uDDAA\uD835\uDDAB\uD835\uDDAC\uD835\uDDAD\uD835\uDDAE\uD835\uDDAF\uD835\uDDB0\uD835\uDDB1\uD835\uDDB2\uD835\uDDB3\uD835\uDDB4\uD835\uDDB5\uD835\uDDB6\uD835\uDDB7\uD835\uDDB8\uD835\uDDB9\uD835\uDDBA\uD835\uDDBB\uD835\uDDBC\uD835\uDDBD\uD835\uDDBE\uD835\uDDBF\uD835\uDDC0\uD835\uDDC1\uD835\uDDC2\uD835\uDDC3\uD835\uDDC4\uD835\uDDC5\uD835\uDDC6\uD835\uDDC7\uD835\uDDC8\uD835\uDDC9\uD835\uDDCA\uD835\uDDCB\uD835\uDDCC\uD835\uDDCD\uD835\uDDCE\uD835\uDDCF\uD835\uDDD0\uD835\uDDD1\uD835\uDDD2\uD835\uDDD3\uD835\uDDD4\uD835\uDDD5\uD835\uDDD6\uD835\uDDD7\uD835\uDDD8\uD835\uDDD9\uD835\uDDDA\uD835\uDDDB\uD835\uDDDC\uD835\uDDDD\uD835\uDDDE\uD835\uDDDF\uD835\uDDE0\uD835\uDDE1\uD835\uDDE2\uD835\uDDE3\uD835\uDDE4\uD835\uDDE5\uD835\uDDE6\uD835\uDDE7\uD835\uDDE8\uD835\uDDE9\uD835\uDDEA\uD835\uDDEB\uD835\uDDEC\uD835\uDDED\uD835\uDDEE\uD835\uDDEF\uD835\uDDF0\uD835\uDDF1\uD835\uDDF2\uD835\uDDF3\uD835\uDDF4\uD835\uDDF5\uD835\uDDF6\uD835\uDDF7\uD835\uDDF8\uD835\uDDF9\uD835\uDDFA\uD835\uDDFB\uD835\uDDFC\uD835\uDDFD\uD835\uDDFE\uD835\uDDFF\uD835\uDE00\uD835\uDE01\uD835\uDE02\uD835\uDE03\uD835\uDE04\uD835\uDE05\uD835\uDE06\uD835\uDE07\uD835\uDE08\uD835\uDE09\uD835\uDE0A\uD835\uDE0B\uD835\uDE0C\uD835\uDE0D\uD835\uDE0E\uD835\uDE0F\uD835\uDE10\uD835\uDE11\uD835\uDE12\uD835\uDE13\uD835\uDE14\uD835\uDE15\uD835\uDE16\uD835\uDE17\uD835\uDE18\uD835\uDE19\uD835\uDE1A\uD835\uDE1B\uD835\uDE1C\uD835\uDE1D\uD835\uDE1E\uD835\uDE1F\uD835\uDE20\uD835\uDE21\uD835\uDE22\uD835\uDE23\uD835\uDE24\uD835\uDE25\uD835\uDE26\uD835\uDE27\uD835\uDE28\uD835\uDE29\uD835\uDE2A\uD835\uDE2B\uD835\uDE2C\uD835\uDE2D\uD835\uDE2E\uD835\uDE2F\uD835\uDE30\uD835\uDE31\uD835\uDE32\uD835\uDE33\uD835\uDE34\uD835\uDE35\uD835\uDE36\uD835\uDE37\uD835\uDE38\uD835\uDE39\uD835\uDE3A\uD835\uDE3B\uD835\uDE3C\uD835\uDE3D\uD835\uDE3E\uD835\uDE3F\uD835\uDE40\uD835\uDE41\uD835\uDE42\uD835\uDE43\uD835\uDE44\uD835\uDE45\uD835\uDE46\uD835\uDE47\uD835\uDE48\uD835\uDE49\uD835\uDE4A\uD835\uDE4B\uD835\uDE4C\uD835\uDE4D\uD835\uDE4E\uD835\uDE4F\uD835\uDE50\uD835\uDE51\uD835\uDE52\uD835\uDE53\uD835\uDE54\uD835\uDE55\uD835\uDE56\uD835\uDE57\uD835\uDE58\uD835\uDE59\uD835\uDE5A\uD835\uDE5B\uD835\uDE5C\uD835\uDE5D\uD835\uDE5E\uD835\uDE5F\uD835\uDE60\uD835\uDE61\uD835\uDE62\uD835\uDE63\uD835\uDE64\uD835\uDE65\uD835\uDE66\uD835\uDE67\uD835\uDE68\uD835\uDE69\uD835\uDE6A\uD835\uDE6B\uD835\uDE6C\uD835\uDE6D\uD835\uDE6E\uD835\uDE6F\uD835\uDE70\uD835\uDE71\uD835\uDE72\uD835\uDE73\uD835\uDE74\uD835\uDE75\uD835\uDE76\uD835\uDE77\uD835\uDE78\uD835\uDE79\uD835\uDE7A\uD835\uDE7B\uD835\uDE7C\uD835\uDE7D\uD835\uDE7E\uD835\uDE7F\uD835\uDE80\uD835\uDE81\uD835\uDE82\uD835\uDE83\uD835\uDE84\uD835\uDE85\uD835\uDE86\uD835\uDE87\uD835\uDE88\uD835\uDE89\uD835\uDE8A\uD835\uDE8B\uD835\uDE8C\uD835\uDE8D\uD835\uDE8E\uD835\uDE8F\uD835\uDE90\uD835\uDE91\uD835\uDE92\uD835\uDE93\uD835\uDE94\uD835\uDE95\uD835\uDE96\uD835\uDE97\uD835\uDE98\uD835\uDE99\uD835\uDE9A\uD835\uDE9B\uD835\uDE9C\uD835\uDE9D\uD835\uDE9E\uD835\uDE9F\uD835\uDEA0\uD835\uDEA1\uD835\uDEA2\uD835\uDEA3\uD835\uDEA4\uD835\uDEA5\uD835\uDEA8\uD835\uDEA9\uD835\uDEAA\uD835\uDEAB\uD835\uDEAC\uD835\uDEAD\uD835\uDEAE\uD835\uDEAF\uD835\uDEB0\uD835\uDEB1\uD835\uDEB2\uD835\uDEB3\uD835\uDEB4\uD835\uDEB5\uD835\uDEB6\uD835\uDEB7\uD835\uDEB8\uD835\uDEB9\uD835\uDEBA\uD835\uDEBB\uD835\uDEBC\uD835\uDEBD\uD835\uDEBE\uD835\uDEBF\uD835\uDEC0\uD835\uDEC1\uD835\uDEC2\uD835\uDEC3\uD835\uDEC4\uD835\uDEC5\uD835\uDEC6\uD835\uDEC7\uD835\uDEC8\uD835\uDEC9\uD835\uDECA\uD835\uDECB\uD835\uDECC\uD835\uDECD\uD835\uDECE\uD835\uDECF\uD835\uDED0\uD835\uDED1\uD835\uDED2\uD835\uDED3\uD835\uDED4\uD835\uDED5\uD835\uDED6\uD835\uDED7\uD835\uDED8\uD835\uDED9\uD835\uDEDA\uD835\uDEDB\uD835\uDEDC\uD835\uDEDD\uD835\uDEDE\uD835\uDEDF\uD835\uDEE0\uD835\uDEE1\uD835\uDEE2\uD835\uDEE3\uD835\uDEE4\uD835\uDEE5\uD835\uDEE6\uD835\uDEE7\uD835\uDEE8\uD835\uDEE9\uD835\uDEEA\uD835\uDEEB\uD835\uDEEC\uD835\uDEED\uD835\uDEEE\uD835\uDEEF\uD835\uDEF0\uD835\uDEF1\uD835\uDEF2\uD835\uDEF3\uD835\uDEF4\uD835\uDEF5\uD835\uDEF6\uD835\uDEF7\uD835\uDEF8\uD835\uDEF9\uD835\uDEFA\uD835\uDEFB\uD835\uDEFC\uD835\uDEFD\uD835\uDEFE\uD835\uDEFF\uD835\uDF00\uD835\uDF01\uD835\uDF02\uD835\uDF03\uD835\uDF04\uD835\uDF05\uD835\uDF06\uD835\uDF07\uD835\uDF08\uD835\uDF09\uD835\uDF0A\uD835\uDF0B\uD835\uDF0C\uD835\uDF0D\uD835\uDF0E\uD835\uDF0F\uD835\uDF10\uD835\uDF11\uD835\uDF12\uD835\uDF13\uD835\uDF14\uD835\uDF15\uD835\uDF16\uD835\uDF17\uD835\uDF18\uD835\uDF19\uD835\uDF1A\uD835\uDF1B\uD835\uDF1C\uD835\uDF1D\uD835\uDF1E\uD835\uDF1F\uD835\uDF20\uD835\uDF21\uD835\uDF22\uD835\uDF23\uD835\uDF24\uD835\uDF25\uD835\uDF26\uD835\uDF27\uD835\uDF28\uD835\uDF29\uD835\uDF2A\uD835\uDF2B\uD835\uDF2C\uD835\uDF2D\uD835\uDF2E\uD835\uDF2F\uD835\uDF30\uD835\uDF31\uD835\uDF32\uD835\uDF33\uD835\uDF34\uD835\uDF35\uD835\uDF36\uD835\uDF37\uD835\uDF38\uD835\uDF39\uD835\uDF3A\uD835\uDF3B\uD835\uDF3C\uD835\uDF3D\uD835\uDF3E\uD835\uDF3F\uD835\uDF40\uD835\uDF41\uD835\uDF42\uD835\uDF43\uD835\uDF44\uD835\uDF45\uD835\uDF46\uD835\uDF47\uD835\uDF48\uD835\uDF49\uD835\uDF4A\uD835\uDF4B\uD835\uDF4C\uD835\uDF4D\uD835\uDF4E\uD835\uDF4F\uD835\uDF50\uD835\uDF51\uD835\uDF52\uD835\uDF53\uD835\uDF54\uD835\uDF55\uD835\uDF56\uD835\uDF57\uD835\uDF58\uD835\uDF59\uD835\uDF5A\uD835\uDF5B\uD835\uDF5C\uD835\uDF5D\uD835\uDF5E\uD835\uDF5F\uD835\uDF60\uD835\uDF61\uD835\uDF62\uD835\uDF63\uD835\uDF64\uD835\uDF65\uD835\uDF66\uD835\uDF67\uD835\uDF68\uD835\uDF69\uD835\uDF6A\uD835\uDF6B\uD835\uDF6C\uD835\uDF6D\uD835\uDF6E\uD835\uDF6F\uD835\uDF70\uD835\uDF71\uD835\uDF72\uD835\uDF73\uD835\uDF74\uD835\uDF75\uD835\uDF76\uD835\uDF77\uD835\uDF78\uD835\uDF79\uD835\uDF7A\uD835\uDF7B\uD835\uDF7C\uD835\uDF7D\uD835\uDF7E\uD835\uDF7F\uD835\uDF80\uD835\uDF81\uD835\uDF82\uD835\uDF83\uD835\uDF84\uD835\uDF85\uD835\uDF86\uD835\uDF87\uD835\uDF88\uD835\uDF89\uD835\uDF8A\uD835\uDF8B\uD835\uDF8C\uD835\uDF8D\uD835\uDF8E\uD835\uDF8F\uD835\uDF90\uD835\uDF91\uD835\uDF92\uD835\uDF93\uD835\uDF94\uD835\uDF95\uD835\uDF96\uD835\uDF97\uD835\uDF98\uD835\uDF99\uD835\uDF9A\uD835\uDF9B\uD835\uDF9C\uD835\uDF9D\uD835\uDF9E\uD835\uDF9F\uD835\uDFA0\uD835\uDFA1\uD835\uDFA2\uD835\uDFA3\uD835\uDFA4\uD835\uDFA5\uD835\uDFA6\uD835\uDFA7\uD835\uDFA8\uD835\uDFA9\uD835\uDFAA\uD835\uDFAB\uD835\uDFAC\uD835\uDFAD\uD835\uDFAE\uD835\uDFAF\uD835\uDFB0\uD835\uDFB1\uD835\uDFB2\uD835\uDFB3\uD835\uDFB4\uD835\uDFB5\uD835\uDFB6\uD835\uDFB7\uD835\uDFB8\uD835\uDFB9\uD835\uDFBA\uD835\uDFBB\uD835\uDFBC\uD835\uDFBD\uD835\uDFBE\uD835\uDFBF\uD835\uDFC0\uD835\uDFC1\uD835\uDFC2\uD835\uDFC3\uD835\uDFC4\uD835\uDFC5\uD835\uDFC6\uD835\uDFC7\uD835\uDFC8\uD835\uDFC9\uD835\uDFCA\uD835\uDFCB\uD835\uDFCE\uD835\uDFCF\uD835\uDFD0\uD835\uDFD1\uD835\uDFD2\uD835\uDFD3\uD835\uDFD4\uD835\uDFD5\uD835\uDFD6\uD835\uDFD7\uD835\uDFD8\uD835\uDFD9\uD835\uDFDA\uD835\uDFDB\uD835\uDFDC\uD835\uDFDD\uD835\uDFDE\uD835\uDFDF\uD835\uDFE0\uD835\uDFE1\uD835\uDFE2\uD835\uDFE3\uD835\uDFE4\uD835\uDFE5\uD835\uDFE6\uD835\uDFE7\uD835\uDFE8\uD835\uDFE9\uD835\uDFEA\uD835\uDFEB\uD835\uDFEC\uD835\uDFED\uD835\uDFEE\uD835\uDFEF\uD835\uDFF0\uD835\uDFF1\uD835\uDFF2\uD835\uDFF3\uD835\uDFF4\uD835\uDFF5\uD835\uDFF6\uD835\uDFF7\uD835\uDFF8\uD835\uDFF9\uD835\uDFFA\uD835\uDFFB\uD835\uDFFC\uD835\uDFFD\uD835\uDFFE\uD835\uDFFF\uD83B\uDE00\uD83B\uDE01\uD83B\uDE02\uD83B\uDE03\uD83B\uDE05\uD83B\uDE06\uD83B\uDE07\uD83B\uDE08\uD83B\uDE09\uD83B\uDE0A\uD83B\uDE0B\uD83B\uDE0C\uD83B\uDE0D\uD83B\uDE0E\uD83B\uDE0F\uD83B\uDE10\uD83B\uDE11\uD83B\uDE12\uD83B\uDE13\uD83B\uDE14\uD83B\uDE15\uD83B\uDE16\uD83B\uDE17\uD83B\uDE18\uD83B\uDE19\uD83B\uDE1A\uD83B\uDE1B\uD83B\uDE1C\uD83B\uDE1D\uD83B\uDE1E\uD83B\uDE1F\uD83B\uDE21\uD83B\uDE22\uD83B\uDE24\uD83B\uDE27\uD83B\uDE29\uD83B\uDE2A\uD83B\uDE2B\uD83B\uDE2C\uD83B\uDE2D\uD83B\uDE2E\uD83B\uDE2F\uD83B\uDE30\uD83B\uDE31\uD83B\uDE32\uD83B\uDE34\uD83B\uDE35\uD83B\uDE36\uD83B\uDE37\uD83B\uDE39\uD83B\uDE3B\uD83B\uDE42\uD83B\uDE47\uD83B\uDE49\uD83B\uDE4B\uD83B\uDE4D\uD83B\uDE4E\uD83B\uDE4F\uD83B\uDE51\uD83B\uDE52\uD83B\uDE54\uD83B\uDE57\uD83B\uDE59\uD83B\uDE5B\uD83B\uDE5D\uD83B\uDE5F\uD83B\uDE61\uD83B\uDE62\uD83B\uDE64\uD83B\uDE67\uD83B\uDE68\uD83B\uDE69\uD83B\uDE6A\uD83B\uDE6C\uD83B\uDE6D\uD83B\uDE6E\uD83B\uDE6F\uD83B\uDE70\uD83B\uDE71\uD83B\uDE72\uD83B\uDE74\uD83B\uDE75\uD83B\uDE76\uD83B\uDE77\uD83B\uDE79\uD83B\uDE7A\uD83B\uDE7B\uD83B\uDE7C\uD83B\uDE7E\uD83B\uDE80\uD83B\uDE81\uD83B\uDE82\uD83B\uDE83\uD83B\uDE84\uD83B\uDE85\uD83B\uDE86\uD83B\uDE87\uD83B\uDE88\uD83B\uDE89\uD83B\uDE8B\uD83B\uDE8C\uD83B\uDE8D\uD83B\uDE8E\uD83B\uDE8F\uD83B\uDE90\uD83B\uDE91\uD83B\uDE92\uD83B\uDE93\uD83B\uDE94\uD83B\uDE95\uD83B\uDE96\uD83B\uDE97\uD83B\uDE98\uD83B\uDE99\uD83B\uDE9A\uD83B\uDE9B\uD83B\uDEA1\uD83B\uDEA2\uD83B\uDEA3\uD83B\uDEA5\uD83B\uDEA6\uD83B\uDEA7\uD83B\uDEA8\uD83B\uDEA9\uD83B\uDEAB\uD83B\uDEAC\uD83B\uDEAD\uD83B\uDEAE\uD83B\uDEAF\uD83B\uDEB0\uD83B\uDEB1\uD83B\uDEB2\uD83B\uDEB3\uD83B\uDEB4\uD83B\uDEB5\uD83B\uDEB6\uD83B\uDEB7\uD83B\uDEB8\uD83B\uDEB9\uD83B\uDEBA\uD83B\uDEBB\uD83B\uDEF0\uD83B\uDEF1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", "\u7000\u73E8\u7032\u704B\u703C\u75DC\u75AA\u7096\u70FA\u71C2\u7296\u70FA\u7190\u7032\u7190\u7113\u707D\u7177\u7108\u7190\u7029\u7096\u712C\u7096\u7258\u71E0\u7244\u7320\u7384\u70C6\u71CE\u712C\u7258\u7096\u7096\u71E0\u7244\u71E0\u72BC\u7042\u70C6\u7042\u7042\u70C6\u712C\u7042\u70C6\u7042\u7042\u70C6\u7042\u7042\u7052\u70BA\u7042\u7042\u7115\u6DD5\u7046","\u70FA\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u70FA\u714D\u7198\u71F4\u71F4\u72EB\u730A\u70B4\u714D\u714D\u71F4\u72AD\u70FA\u714D\u70FA\u7116\u71F4\u71F4\u71F4\u71F4\u71F4\u71F4\u71F4\u71F4\u71F4\u71F4\u7116\u7116\u72AD\u72AD\u72AD\u71BC\u7399\u72D2\u729B\u729B\u72D2\u7263\u722C\u72D2\u72D2\u714D\u7175\u72D2\u7263\u7379\u72D2\u72D2\u722D\u72D2\u729B\u722C\u7263\u72D2\u72D2\u73B0\u72D2\u72D2\u7264\u714D\u7116\u714D\u71D5\u71F4\u714D\u71BC\u71F4\u71BC\u71F4\u71BC\u714D\u71F4\u71F4\u7116\u7116\u71F4\u7116\u730A\u71F4\u71F4\u71F4\u71F4\u714D\u7185\u7116\u71F4\u71F4\u72D2\u71F4\u71F4\u71BC\u71E0\u7140\u71E0\u721D\u70FA\u714A\u71F4\u71F4\u71F4\u71F4\u70C8\u71F4\u714D\u72F8\u7114\u71F4\u7258\u714D\u72F8\u714D\u7190\u72AD\u712C\u712C\u714D\u71F4\u7250\u70FA\u714D\u712C\u7136\u71F4\u72EE\u72EE\u72EE\u71BC\u72D2\u72D2\u72D2\u72D2\u72D2\u72D2\u7379\u729B\u7263\u7263\u7263\u7263\u714D\u714D\u714D\u714D\u72D2\u72D2\u72D2\u72D2\u72D2\u72D2\u72D2\u7280\u72D2\u72D2\u72D2\u72D2\u72D2\u72D2\u722C\u71F4\u71BC\u71BC\u71BC\u71BC\u71BC\u71BC\u729B\u71BC\u71BC\u71BC\u71BC\u71BC\u7116\u7116\u7116\u7116\u71F4\u71F4\u71F4\u71F4\u71F4\u71F4\u71F4\u7234\u71F4\u71F4\u71F4\u71F4\u71F4\u71F4\u71F4\u71F4\u72D2\u71BC\u72D2\u71BC\u72D2\u71BC\u729B\u71BC\u729B\u71BC\u729B\u71BC\u729B\u71BC\u72D2\u724A\u72D2\u71F4\u7263\u71BC\u7263\u71BC\u7263\u71BC\u7263\u71BC\u7263\u71BC\u72D2\u71F4\u72D2\u71F4\u72D2\u71F4\u72D2\u71F4\u72D2\u71F4\u72D3\u71F4\u714D\u7116\u714D\u7116\u714D\u7116\u714D\u7116\u714D\u7116\u72EB\u721A\u7175\u7116\u72D2\u71F4\u721E\u7263\u7116\u7263\u7116\u7263\u717D\u726C\u7172\u7263\u7116\u72D2\u71F4\u72D2\u71F4\u72D2\u71F4\u724E\u72C6\u71F8\u72D2\u71F4\u72D2\u71F4\u72D2\u71F4\u7379\u72D2\u729B\u714D\u729B\u714D\u729B\u714D\u722C\u7185\u722C\u7185\u722C\u7185\u722C\u7185\u7263\u7116\u7263\u713B\u7265\u7117\u72D2\u71F4\u72D2\u71F4\u72D2\u71F4\u72D2\u71F4\u72D2\u71F4\u72D2\u71F4\u73B0\u72D2\u72D2\u71F4\u72D2\u7264\u71BC\u7264\u71BC\u7264\u71BC\u714E\u71F4\u71F4\u7244\u71B2\u72DF\u71F4\u7116\u7208\u71F4\u72D2\u7221\u71F4\u71B0\u7122\u7136\u72FE\u71F4\u7264\u717D\u71F4\u71F4\u70A0\u7118\u71B3\u714D\u7116\u72D2\u71BC\u7379\u729B\u72D2\u71F4\u722C\u7185\u7263\u7116\u729F\u71AD\u72A0\u7191\u7116\u71BC\u71F4\u71F4\u71F4\u71BC\u71BC\u7229\u724B\u71BC\u71BC\u7291\u71B6\u71B6\u726F\u71DF\u713B\u7252\u7219\u723A\u71F4\u71F4\u71F4\u71F4\u71E1\u7116\u714D\u7102\u715E\u7177\u712E\u7225\u730A\u7323\u730A\u7211\u7215\u725A\u71F4\u72D0\u729B\u729B\u7172\u7172\u71A2\u714D\u7172\u713B\u715E\u71DB\u71DB\u7185\u7142\u7130\u7190\u71B5\u7116\u710E\u71F4\u7219\u71F4\u71F4\u72D2\u71BC\u724B\u7210\u71FB\u719D\u71AF\u71C2\u71C2\u71C2\u71C2\u72D3\u71CC\u71DF\u7258\u723C\u7183\u7207\u71D6\u7258\u71C2\u71C2\u7322\u72E7\u7360\u7218\u71E3\u728A\u726B\u72A7\u717A\u717A\u712C\u70FC\u7115\u7145\u7186\u7208\u7172\u70D0\u7131\u714D\u714D\u714D\u70C6\u70C6\u7146\u7146\u713D\u713D\u713D\u713D\u714D\u714D\u7116\u714E\u714D\u714D\u7116\u714E\u714D\u714D\u714D\u714D\u714D\u714D\u714D\u714D\u714D\u714D\u714F\u714D\u714D\u714D\u714D\u714D\u712A\u714D\u717A\u70D7\u7123\u717C\u7155\u719D\u7195\u7195\u7195\u7195\u714D\u7195\u714D\u714D\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7001\u7000\u71DE\u7000\u7000\u7000\u7000\u7000\u7116\u7115\u714D\u72D2\u7116\u72EE\u7352\u71D6\u72D2\u7348\u72E8\u7154\u72D2\u729B\u724B\u72D2\u7263\u7264\u72D2\u72D2\u714D\u72DB\u72BE\u7379\u72D2\u7283\u72D2\u72D2\u722D\u7270\u7263\u72D2\u72FB\u72D2\u72EA\u72E8\u714D\u72D2\u721F\u71B7\u7200\u7113\u720C\u721F\u71F0\u71DA\u71F4\u71B7\u71B9\u7200\u71F0\u7113\u71F4\u71F1\u7210\u71C7\u71B9\u71F9\u71F5\u71F0\u71B9\u7224\u71DD\u720C\u726F\u71F4\u72B6\u7271\u7154\u720C\u71F9\u720C\u7271\u71C2\u722A\u72D2\u726F\u72FA\u72D2\u71F4\u729B\u71CD\u722C\u71D6\u72BF\u71FF\u7321\u7210\u7227\u71F4\u72D2\u71B7\u71BC\u7275\u72F4\u723B\u728B\u722C\u714D\u714D\u7175\u73DC\u73F9\u7323\u72B2\u72C7\u72CB\u72C9\u7263\u728B\u723B\u7299\u7275\u73FD\u7240\u72D3\u72D3\u72B2\u72AB\u737D\u72D6\u72D9\u72D4\u723B\u72A5\u726A\u72C7\u7301\u72CC\u72CB\u7291\u73E2\u73E2\u72E1\u7374\u7264\u728B\u7386\u727D\u71C2\u71FB\u71DA\u718A\u71CE\u71D2\u72D1\u7186\u720D\u720D\u71F7\u71F3\u7269\u720D\u7200\u720D\u71F3\u71C8\u71B2\u71EB\u72A6\u71E9\u720D\u7200\u7300\u7300\u721B\u729E\u71C9\u71BC\u72E2\u71D7\u71D2\u7200\u718A\u71BC\u7185\u7116\u7116\u7116\u72BE\u72D1\u7200\u71F7\u71EB\u7206\u72EA\u721B\u73E6\u72D2\u72D9\u7200\u72FE\u721B\u723B\u718A\u73A0\u73A0\u735C\u7362\u742F\u7171\u7249\u7249\u7249\u7249\u7249\u7249\u7249\u7249\u7249\u7249\u7295\u712B\u712B\u7220\u7249\u7249\u7249\u7249\u7249\u7249\u7249\u7249\u7249\u7249\u71FE\u71F8\u7247\u7210\u721E\u7126\u7185\u7204\u71C5\u71B9\u71E0\u73B0\u72D2\u73B0\u72D2\u73B0\u72D2\u72D2\u71F4\u71F4\u73E8\u71F4\u73E8\u714D\u70FA\u70A7\u71F4\u70FA\u70C8\u7064\u7000\u7000\u7000\u7000\u7000\u714D\u714D\u71F4\u71F4\u73E8\u77D0\u720B\u71F4\u714D\u714D\u714D\u714D\u71BC\u71BC\u71BC\u71BC\u71F4\u71F4\u720B\u729B\u73E8\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u70C8\u7455\u75BF\u7136\u71E0\u728B\u7136\u71DF\u728B\u71FF\u714D\u714D\u72AD\u7225\u71F4\u731E\u714D\u71E1\u7347\u71F4\u7116\u7316\u71F5\u71D7\u7335\u73E8\u721D\u722C\u71F4\u749E\u71F4\u71B4\u71B4\u7000\u71B4\u71B4\u7000\u7000\u7000\u7000\u7000\u71DE\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u71B4\u71B4\u71B4\u71B4\u7000\u72C1\u7345\u7256\u72E2\u7381\u7338\u72CE\u7241\u7243\u72EA\u72FA\u7362\u7243\u72BA\u73F4\u72F8\u733A\u72A6\u72FD\u73B0\u736A\u72EB\u730C\u73D4\u72D7\u71A8\u72E8\u72E8\u72D6\u7168\u72D2\u73B6\u72CD\u734B\u7273\u72B2\u7301\u7217\u7430\u72B9\u72AA\u727F\u71F9\u7257\u72A1\u721C\u71D5\u72CE\u739B\u72B7\u722F\u722F\u7276\u72C9\u7245\u7203\u7125\u7155\u7298\u730A\u72EE\u72EE\u72EE\u72EE\u72EE\u72EE\u72EE\u72EE\u72EE\u72EE\u72EE\u72EE\u739E\u71FF\u739E\u71FF\u739E\u71FF\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u71FF\u739E\u71FF\u739E\u739E\u739E\u71FF\u739E\u71FF\u71FF\u739E\u739E\u739E\u739E\u74B0\u739E\u71FF\u71CF\u71CF\u71CF\u71CF\u739E\u739E\u739E\u739E\u739E\u739E\u73CE\u73CE\u73BB\u73BB\u71FF\u71FF\u73BB\u73BB\u71FF\u71FF\u739E\u7305\u739E\u739E\u7305\u739E\u7305\u739E\u739E\u739E\u739E\u739E\u739E\u72AD\u739E\u72AD\u739E\u72AD\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u71FF\u71FF\u739E\u71FF\u739E\u71FF\u739E\u739E\u739E\u72AD\u739E\u72AD\u72AD\u739E\u7305\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u7230\u71CF\u71B1\u7230\u7230\u72FA\u72DB\u72DB\u72AD\u72AD\u71E6\u72AD\u72AD\u71E6\u7221\u73E8\u73E8\u7392\u72AD\u72AD\u72AD\u720B\u71AC\u720B\u715E\u715E\u73A0\u73A0\u73A0\u72AD\u739E\u72AD\u72AD\u72AD\u72AD\u710A\u7194\u720B\u7261\u726C\u726C\u726C\u726C\u72B4\u73A3\u7495\u72B4\u73A3\u7494\u72B4\u72B4\u72B4\u726C\u726C\u71FF\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u711E\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u7338\u7338\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u73A5\u73A5\u71D2\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u726C\u726C\u726C\u72AD\u72AD\u72AD\u72AD\u726C\u726C\u734A\u734A\u734A\u734A\u72FA\u734A\u734A\u734A\u734A\u738E\u738E\u738E\u738E\u72AD\u72AD\u72AD\u72AD\u71F1\u71F2\u72AD\u735C\u735C\u735C\u7312\u7312\u73C8\u73C8\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u7479\u7479\u7351\u72AD\u71E0\u726C\u726C\u726C\u72AD\u738F\u739C\u739C\u739C\u739C\u720B\u711E\u72BC\u72AD\u732A\u732A\u732A\u732A\u732A\u72AD\u7244\u7244\u72AD\u72AD\u726C\u726C\u726C\u72AD\u72AD\u72AD\u74FA\u74FA\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u727B\u727B\u727B\u727B\u71FF\u739E\u739E\u739E\u7337\u72AD\u71E6\u72AD\u72AD\u71E6\u72AD\u72AD\u7337\u72AD\u71E6\u72AD\u71E6\u738E\u725E\u739E\u726C\u726C\u71D5\u71D5\u71D5\u71D5\u71CF\u71CF\u71CF\u71CF\u7258\u720B\u72FA\u72FA\u734F\u744C\u744C\u739E\u7258\u72AD\u71CF\u71CF\u71CF\u71CF\u72B0\u72B0\u73FB\u73FB\u7190\u7190\u739E\u73DA\u7270\u7379\u739E\u738E\u72AB\u72AB\u731A\u731A\u7367\u7391\u739E\u71C2\u71C2\u71C2\u71C2\u71C2\u71C2\u71C2\u71C2\u71C2\u71C2\u71C2\u71C2\u7280\u7280\u7280\u7280\u7280\u7280\u7280\u72B0\u713B\u7258\u7258\u75CA\u75CA\u739E\u739E\u739E\u74A0\u72D1\u72D1\u739E\u71FF\u73E8\u73E8\u73E8\u73E8\u73E8\u73E8\u7478\u738E\u7446\u73FA\u739E\u731E\u71F4\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72AC\u72C4\u72C4\u72C4\u72C4\u72C4\u72C4\u72C4\u72C4\u72C4\u72C4\u72C4\u72C4\u72C4\u72C4\u72C4\u72C4\u72C4\u72C4\u72C4\u72C4\u72C4\u72C4\u72C4\u72C4\u72C4\u72C4\u72C4\u72C4\u72C4\u72C4\u72C4\u72C4\u72C4\u72C4\u72C4\u72C4\u72C4\u72C4\u72C4\u72C4\u72C4\u72C4\u72C4\u72C4\u72C4\u74BD\u74BD\u74BD\u74BC\u74BC\u74B0\u74B0\u74B0\u738E\u738E\u738E\u738E\u738E\u738E\u738E\u738E\u738E\u738E\u71E4\u71E4\u73FC\u73FC\u7230\u7230\u7474\u7474\u7479\u7479\u7294\u7294\u7413\u7413\u7294\u7294\u73A2\u73A2\u7479\u7479\u7294\u7294\u7413\u7413\u7294\u7294\u73A2\u73A2\u7428\u7428\u7428\u734A\u7316\u734A\u738E\u738E\u734A\u734A\u734A\u734A\u734A\u734A\u734A\u734A\u7244\u7244\u738E\u738E\u738E\u738E\u738E\u738E\u738E\u738E\u738E\u738E\u738F\u738F\u738F\u738F\u720B\u738E\u738E\u738E\u738E\u738E\u7479\u7479\u7479\u74B7\u738E\u738E\u738E\u738E\u734A\u734A\u734A\u734A\u738F\u738F\u738F\u72EA\u72EA\u7259\u7259\u738F\u7366\u7366\u72FA\u7245\u73E8\u738E\u726B\u747E\u747E\u747E\u7345\u7281\u7281\u725B\u725B\u725B\u7294\u73CA\u73CA\u7348\u7278\u73C4\u730D\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u7186\u7230\u7348\u71AA\u71AA\u71AA\u74A2\u7408\u7408\u7408\u7408\u7408\u7408\u7408\u7408\u7408\u7408\u75E6\u7294\u72FA\u72FA\u7235\u725B\u72BC\u73C1\u72B2\u72F3\u72FF\u7315\u72B7\u72AA\u71E8\u71E8\u7314\u7314\u7314\u7314\u7314\u7314\u7314\u7314\u7314\u7314\u7314\u7314\u7314\u7314\u7314\u7314\u7314\u7314\u7314\u7314\u7396\u72AD\u7479\u72B5\u72AD\u72AD\u71C7\u71C7\u726C\u73C6\u73C6\u7346\u7145\u7346\u7428\u726C\u726C\u72AD\u72AD\u73FB\u73FB\u74CC\u7362\u7362\u7560\u7560\u7351\u7626\u7626\u71F6\u7316\u72FC\u7323\u7323\u749E\u749E\u71F8\u71F8\u7190\u7190\u7262\u7262\u71E8\u71E8\u70E9\u70E9\u7409\u7409\u73CE\u73CE\u74B0\u7626\u7626\u7626\u7626\u7626\u7626\u7626\u7626\u7626\u7626\u7626\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u71FF\u71FF\u739E\u739E\u739E\u739E\u739E\u739E\u7584\u739E\u71FF\u71FF\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u7310\u7310\u71FF\u71FF\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u71FF\u739E\u739E\u71FF\u71FF\u739E\u71FF\u739E\u71FF\u739E\u739E\u71FF\u71FF\u739E\u739E\u71FF\u71FF\u739E\u739E\u71FF\u71FF\u739E\u739E\u71FF\u71FF\u739E\u72AD\u739E\u72AD\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u72AD\u72AD\u739E\u739E\u739E\u739E\u739E\u739E\u72AD\u739E\u72AD\u72AD\u739E\u72AD\u739E\u739E\u72AD\u72AD\u7252\u7235\u71F7\u7254\u7254\u71CF\u71CF\u71FF\u71FF\u71FF\u71FF\u71D5\u71D5\u71D5\u71D5\u71D5\u71D5\u7190\u7190\u72AD\u72AD\u72AD\u72AD\u71E8\u71E8\u70D3\u71FF\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u7384\u7384\u72AD\u72AD\u72AD\u72AD\u72C2\u72C2\u72C2\u72C4\u72FA\u72FA\u72FA\u72FA\u72FA\u738E\u734A\u734A\u734A\u734A\u734A\u734A\u734A\u734A\u734A\u734A\u734A\u734A\u7443\u7443\u738E\u738E\u738E\u738E\u738E\u7416\u7479\u7479\u7479\u748D\u730C\u7359\u7359\u732A\u732A\u732A\u732A\u732A\u732A\u732A\u71FF\u71FF\u72B0\u72B0\u739E\u739E\u739E\u7479\u738E\u729B\u7316\u72AD\u72AD\u72AD\u731E\u7274\u7479\u7479\u72FA\u7316\u72FA\u72FA\u72FA\u72FA\u72FA\u72FA\u72FA\u72FA\u739E\u720B\u7208\u7208\u725A\u725A\u72AD\u72AD\u71CB\u71CB\u72FA\u72FA\u7466\u7466\u7466\u739C\u739C\u739C\u739C\u749C\u749C\u73FD\u7392\u72B4\u7586\u72B4\u72B4\u72B4\u72B4\u72B4\u72B4\u72B4\u72B4\u72B4\u72B4\u72B4\u72B4\u72B4\u72B4\u72B4\u72B4\u74F6\u73FA\u71F7\u7499\u7223\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72D4\u72D4\u71EA\u7280\u7280\u7280\u72AD\u72A2\u72A2\u734A\u744C\u734A\u7479\u7479\u7479\u7258\u7258\u712C\u72B6\u726C\u726C\u726C\u726C\u726C\u726C\u726C\u726C\u726C\u726C\u7436\u7436\u726C\u726C\u726C\u726C\u726C\u726C\u726C\u726C\u726C\u730C\u730C\u72C2\u72C2\u726C\u726C\u726C\u726C\u726C\u726C\u726C\u726C\u726C\u726C\u726C\u7413\u7413\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u73F7\u73E5\u759C\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AF\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u73A5\u730E\u7357\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u73A5\u73A5\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u7548\u7548\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u74E2\u74E2\u726C\u726C\u726C\u726C\u726C\u71F1\u72AD\u72AD\u72AD\u72AD\u735C\u72AD\u735C\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u7258\u7258\u7194\u71F6\u71F6\u71F6\u720B\u72AD\u72AD\u72AD\u72AD\u7492\u7492\u72AD\u72AD\u737E\u72B2\u72C5\u719A\u719A\u738E\u738E\u738E\u738E\u7428\u7428\u7428\u7428\u738E\u7410\u7410\u70F0\u70F0\u738E\u738E\u738E\u738E\u739E\u74B7\u730B\u730B\u7220\u7220\u720B\u7165\u7165\u734A\u734A\u7254\u7254\u739E\u739E\u74B0\u7626\u739E\u739E\u739E\u7584\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u739E\u73A0\u73A0\u739E\u739E\u739E\u739E\u739E\u739E\u731A\u731A\u72BC\u7361\u7361\u72AD\u7584\u7385\u71E1\u72DE\u7406\u7368\u72D2\u729B\u72D2\u72D2\u729B\u7263\u730A\u730A\u7185\u71F4\u730A\u729B\u73B0\u72D2\u730A\u7263\u730A\u72D2\u722C\u729B\u72D2\u72D2\u73E8\u72D2\u72D2\u729B\u71F4\u722C\u71BC\u722C\u71BC\u714D\u71F4\u722C\u7116\u714D\u722C\u7116\u7341\u722C\u71F4\u722C\u722C\u71BC\u7185\u714D\u722C\u71F4\u72D2\u71F4\u71F4\u71BC\u72CD\u72B8\u729F\u7316\u72CA\u726A\u72DE\u7369\u71E0\u721C\u72FA\u72C4\u73ED\u7353\u72DC\u7252\u730D\u72E4\u728A\u7226\u72C1\u723F\u7394\u7316\u7217\u7304\u71F6\u71D6\u719F\u7214\u71BD\u722B\u71EC\u7137\u7185\u721E\u713E\u72C6\u71F1\u71CA\u71E9\u71CA\u7198\u71B8\u7139\u71DA\u71FA\u7307\u7226\u71F0\u71F3\u72F7\u72D6\u72BD\u7332\u72DC\u727B\u7300\u737B\u71F6\u722E\u731B\u72E8\u73F8\u7365\u7309\u7264\u732A\u7321\u729F\u7238\u72DD\u7251\u739D\u7328\u7225\u731D\u7245\u71FD\u71DD\u7253\u71F2\u723C\u720F\u7240\u7165\u71AF\u7244\u715A\u72F8\u722F\u7231\u723B\u720E\u71B9\u71DA\u715F\u7217\u722A\u732E\u724B\u7207\u7213\u72FD\u72B9\u7325\u72A1\u7296\u73A1\u7302\u7282\u72C6\u72B4\u7283\u72C8\u7318\u72E6\u7378\u732B\u734E\u7354\u7333\u7244\u7296\u734D\u72AD\u72F1\u71F0\u72DA\u72D6\u7243\u740E\u72F9\u7305\u730C\u7244\u7203\u7227\u72F1\u726A\u7378\u72F0\u7292\u72B3\u73D8\u7424\u7390\u73DF\u733A\u7412\u7342\u7493\u73E5\u738A\u7482\u740C\u7514\u7447\u7329\u7401\u7329\u7418\u7330\u7406\u73C4\u7410\u7528\u7409\u73DD\u73E4\u73AE\u7286\u72FC\u73B5\u72D6\u7300\u7333\u7346\u722E\u7348\u732A\u728A\u7471\u7353\u7350\u7375\u7391\u72A5\u7232\u726A\u734A\u72DC\u73F4\u7334\u7310\u730E\u7311\u7336\u7364\u72D9\u72FF\u7326\u7304\u734E\u729D\u743B\u733B\u7345\u7337\u7361\u7358\u72FE\u7313\u733F\u7433\u72FB\u72FE\u7212\u7201\u7181\u71FA\u71A4\u7147\u71F3\u7210\u7180\u7159\u71A4\u718E\u738E\u727C\u71F7\u722B\u71FB\u71CF\u7206\u7176\u7287\u7203\u72F7\u71C8\u7204\u71C9\u72E5\u72A4\u72D2\u726E\u71D5\u72C2\u7142\u7230\u72DF\u724F\u7357\u72F8\u727C\u720F\u72BA\u7238\u7398\u7300\u7233\u7231\u7235\u7208\u723E\u720B\u7170\u723E\u7220\u7102\u7131\u7227\u7102\u733E\u7220\u7229\u723E\u723E\u712D\u7207\u7149\u7220\u71BB\u72A4\u7230\u71D4\u7207\u7358\u7351\u7305\u737B\u7314\u7323\u7341\u734B\u7316\u7323\u7360\u72BB\u746D\u735E\u738D\u7352\u73A2\u7374\u7354\u7319\u735C\u7357\u7461\u7333\u7345\u72F3\u7258\u722F\u71D0\u722D\u71DC\u7172\u7236\u7240\u71AD\u7185\u71C8\u71B1\u73D8\u72B8\u722A\u7280\u723E\u720D\u722D\u71B6\u72A9\u723D\u7352\u7209\u7254\u71E4\u729A\u725C\u729F\u72B4\u7247\u7217\u72B7\u7292\u7191\u718E\u727A\u722F\u734B\u72A3\u72CA\u720D\u72CC\u724D\u721D\u7260\u7295\u728E\u7399\u72BC\u7276\u727D\u71C0\u71F0\u71C8\u71EE\u71BC\u7150\u71F0\u71E7\u70DC\u70FE\u71C5\u70CD\u72F4\u71E7\u71F3\u71F2\u71F2\u7150\u7185\u7123\u71EB\u71DA\u72BE\u71E2\u71E4\u71BF\u72B2\u727C\u72D3\u72C5\u727B\u7246\u72EA\u72CB\u71B8\u71E1\u72C8\u725B\u7391\u72D4\u730A\u7245\u730B\u729E\u722A\u7281\u72BB\u72B2\u73E5\u72E4\u72B6\u728D\u71E9\u7200\u71CE\u7206\u71C4\u7154\u71F8\u71FE\u70F5\u7144\u7207\u70EB\u7308\u71FE\u71F5\u7200\u7200\u719B\u7181\u7182\u7206\u71CE\u72BD\u71FA\u71D8\u71B9\u729A\u725C\u729F\u72B4\u7247\u7217\u72B7\u7292\u7191\u718E\u727A\u722F\u734B\u72A3\u72CA\u720D\u72CC\u724D\u721D\u7260\u7295\u728E\u7399\u72BC\u7276\u727D\u71C0\u71F0\u71C8\u71EE\u71BC\u7150\u71F0\u71E7\u70DC\u70FE\u71C5\u70CD\u72F4\u71E7\u71F3\u71F2\u71F2\u7150\u7185\u7123\u71EB\u71DA\u72BE\u71E2\u71E4\u71BF\u72B2\u727C\u72D3\u72C5\u727B\u7246\u72EA\u72CB\u71B8\u71E1\u72C8\u725B\u7391\u72D4\u730A\u7245\u730B\u729E\u722A\u7281\u72BB\u72B2\u73E5\u72E4\u72B6\u728D\u71E9\u7200\u71CE\u7206\u71C4\u7154\u71F8\u71FE\u70F5\u7144\u7207\u70EB\u7308\u71FE\u71F5\u7200\u7200\u719B\u7181\u7182\u7206\u71CE\u72BD\u71FA\u71D8\u71B9\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u7116\u7116\u72DF\u729B\u726C\u72B3\u72A7\u72B5\u732A\u730A\u71A5\u7334\u72C3\u73CC\u72D2\u726F\u730A\u730C\u7263\u730A\u7299\u729B\u72D2\u7344\u72EB\u7320\u730A\u72B3\u7284\u722C\u7206\u71F6\u71BC\u71CB\u7244\u71F5\u7146\u7245\u7222\u7262\u7206\u71D1\u71F4\u7277\u7223\u71D0\u7238\u71EC\u7240\u728D\u7264\u72FB\u72DE\u7203\u71BC\u7287\u7233\u728D\u71FF\u7360\u72CD\u72B8\u7268\u7254\u72CA\u7304\u7369\u72E1\u71E0\u72FA\u72CE\u73ED\u7353\u72C2\u72DC\u7369\u7252\u72E1\u72DF\u7226\u7265\u7304\u7316\u729E\u7320\u7273\u720C\u71ED\u71AC\u71CF\u71E4\u71B3\u71CC\u71E4\u710B\u7216\u721D\u7243\u71C4\u71B1\u71CA\u722E\u71F6\u71B7\u7219\u71BA\u71CC\u729A\u7253\u7295\u72A9\u71D7\u71AE\u722A\u7231\u7285\u71FD\u7358\u72F7\u72D6\u727A\u7278\u72DC\u731D\u737B\u730F\u71F6\u731B\u72F7\u73F8\u7365\u72CE\u7309\u7377\u7264\u730F\u72F7\u7238\u7281\u733B\u7328\u72B6\u733A\u7278\u7270\u722B\u71EA\u721A\u71EF\u71D8\u7205\u7236\u713E\u7230\u723A\u727C\u720B\u71DC\u7231\u7243\u7253\u71E0\u7250\u71D5\u7228\u72C2\u726D\u72BD\u72AF\u722F\u71E1\u725F\u725F\u72AB\u7249\u7364\u72B2\u727C\u724F\u72D0\u727B\u728D\u72CB\u730A\u71B8\u72C8\u72C2\u7391\u72D4\u7280\u730A\u72CB\u7245\u730A\u72A2\u7281\u72EC\u7320\u72E4\u7326\u72F0\u72DF\u7296\u7200\u71F6\u71F6\u71C3\u71F4\u71FE\u71F4\u713F\u720F\u722A\u7226\u71EC\u71F5\u71F5\u7252\u71FF\u71F2\u7208\u71DF\u7202\u727A\u723D\u72A8\u72E4\u71F5\u71CE\u7218\u723A\u727A\u71EE\u7350\u72B2\u72C2\u725A\u72D0\u72AB\u72C3\u72EC\u734F\u71B3\u72C8\u72AE\u73A5\u72E8\u72B2\u7351\u72E9\u7245\u734F\u72B8\u7281\u729F\u7343\u72E4\u7317\u7330\u730C\u72A6\u7228\u720D\u71FB\u71F8\u71E0\u7214\u7230\u7145\u7219\u723E\u7252\u720D\u71E1\u721F\u7278\u7230\u7205\u7266\u720B\u7226\u72AB\u723F\u72BF\u72F4\u7224\u71D4\u7243\u7286\u72A6\u7220\u7379\u726C\u71EB\u71F4\u71F4\u71F4\u71F4\u71F4\u71F4\u71F4\u71F4\u71F4\u71F4\u721C\u721C\u7223\u721C\u721C\u721C\u721C\u721C\u721C\u721C\u71F4\u71F4\u71F4\u71F4\u71F4\u71F4\u71F4\u71F4\u71F4\u71F4\u71F4\u71F4\u71F4\u71F4\u71F4\u71F4\u71F4\u71F4\u71F4\u71F4\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u70CF\u7394\u732B\u71DE\u7219\u7219\u732B\u730E\u72F5\u7287\u7251\u71B9\u7232\u73D6\u7309\u73CE\u74B3\u72A5\u7219\u73D6\u7394\u7394\u732B\u71DE\u74B3\u730E\u7309\u7394\u7232\u73CE\u72A5\u71B1\u73B3\u7256\u73B3\u71BB\u72E7\u71B8\u71D2\u71B1\u7281\u7233\u7209\u7306\u7209\u7281\u71B1\u71B1\u73B3\u7306\u7233\u7329\u7329\u734D\u72C4\u72B4\u744F\u7329\u7518\u7304\u744F\u7329\u7518\u7329\u72B4\u7304\u71B4\u7352\u72B6\u7352\u732A\u71B4\u7388\u7277\u71B4\u732A\u7283\u7219\u73AD\u7219\u732A\u71B4\u71B4\u7352\u73AD\u732A\u7283\u71B4\u7219\u7166\u7394\u72ED\u71C1\u72C8\u722C\u722C\u72ED\u7344\u72F5\u7251\u71D8\u7232\u73D6\u72E5\u73CE\u74B4\u72A5\u722C\u73D6\u7394\u7394\u72ED\u71C1\u74B4\u7344\u72E5\u73A3\u7336\u71B6\u7235\u7233\u7336\u7338\u730F\u7269\u71DB\u7245\u73E9\u7328\u73DD\u74CA\u72B9\u7233\u73E9\u73A3\u73A3\u7336\u71B6\u74CA\u7338\u7328\u75B6\u7725\u7258\u733E\u7424\u7258\u733E\u7424\u7258\u7258\u7258\u7258\u750A\u7258\u7258\u7258\u7258\u7258\u7258\u7258\u7258\u7258\u7258\u7258\u7258\u7258\u7258\u7258\u7258\u746F\u75A5\u76DB\u746F\u75A5\u76DB\u746F\u746F\u746F\u746F\u7811\u746F\u746F\u746F\u746F\u746F\u746F\u746F\u746F\u746F\u746F\u746F\u746F\u746F\u746F\u746F\u746F\u71D4\u71D4\u7243\u717F\u717F\u73E8\u723F\u723F\u7243\u73E8\u7230\u7230\u73E8\u7230\u7230\u73E8\u7000\u7140\u720B\u7252\u74EB\u754B\u754B\u750C\u7421\u7421\u7421\u74F1\u74F1\u74F1\u74F1\u71C5\u71C5\u71C5\u71C5\u7427\u7427\u739E\u739E\u739E\u739E\u75B4\u75B4\u7236\u7236\u7203\u7203\u7242\u7242\u731E\u731E\u72C8\u72C8\u7278\u7278\u7326\u7326\u7613\u7613\u7613\u74F1\u74F1\u7481\u7481\u75FA\u75FA\u75CA\u750C\u724D\u7260\u7326\u71CB\u71CB\u75DC\u72CD\u72CD\u7326\u75DC\u73D3\u73D3\u75DC\u73D3\u73D3\u75DC\u7000\u7140\u720B\u7252\u7464\u7464\u7464\u720C\u720E\u720C\u720E\u7646\u7646\u75B4\u75B4\u75B4\u75B4\u775E\u775E\u72B0\u72B0\u722B\u722B\u726E\u726E\u7385\u7385\u733B\u733B\u7319\u7319\u738A\u72EE\u72EE\u744D\u71FC\u71FC\u77D0\u738A\u738A\u744D\u77D0\u75B4\u75B4\u77D0\u75B4\u75B4\u77D0\u7000\u7140\u720B\u7252\u7434\u7434\u7434\u7235\u7235\u7235\u7235\u7863\u7863\u775E\u775E\u775E\u775E\u7908\u7908\u734A\u734A\u7287\u7287\u72FD\u72FD\u7443\u7443\u7407\u7407\u7405\u7405\u7328\u7328\u751D\u7295\u7295\u79C4\u7434\u7434\u751D\u79C4\u775E\u775E\u79C4\u775E\u775E\u79C4\u7000\u7140\u720B\u7252\u74A0\u74A0\u72AA\u72AA\u72AA\u72AA\u7A84\u7A84\u7918\u7918\u7918\u7918\u7AB2\u7AB2\u7407\u7407\u730A\u730A\u738C\u738C\u74F9\u74F9\u74C9\u74C9\u7497\u7497\u7BB8\u7BB8\u7918\u7918\u7BB8\u7918\u7918\u7BB8\u7000\u7CA5\u7CA5\u7CA5\u7CA5\u7CA6\u7CA6\u7C5C\u7C5C\u74A0\u74A0\u713B\u739E\u713B\u7409\u712C\u712C\u7381\u7381\u7381\u7145\u7145\u7734\u7734\u771C\u771C\u771C\u771C\u771C\u771C\u771C\u771C\u7381\u7279\u7279\u72AD\u713B\u713B\u719D\u7280\u7364\u719D\u727F\u7364\u7447\u71F5\u7300\u740C\u71F5\u72FF\u740C\u7517\u7354\u72D4\u7239\u7321\u7229\u728C\u7244\u733F\u723F\u7278\u7329\u72B5\u748E\u73BD\u72E1\u729B\u72E8\u7356\u727A\u71FD\u7331\u727E\u73BC\u72B4\u72CF\u72F0\u7367\u72F3\u729B\u7322\u7261\u7285\u7267\u7351\u726D\u7285\u7358\u72D6\u74A2\u73E5\u7304\u7285\u730A\u7365\u729B\u7223\u7313\u728C\u73BC\u72D0\u72D0\u730A\u7165\u7202\u7116\u714D\u729A\u725C\u7217\u729A\u7247\u727D\u7292\u72CA\u7191\u727A\u729A\u734B\u72A3\u7283\u72CA\u7292\u720D\u72CA\u7270\u7260\u72B2\u72CC\u72BC\u72D4\u72E8\u7219\u71F2\u71DA\u71F3\u71B6\u71A0\u71EE\u71BE\u710E\u71D8\u71E9\u71E7\u71CC\u71A2\u71F3\u71FB\u71F2\u71A0\u720E\u71AA\u71F7\u7278\u718F\u728E\u7270\u71C8\u71E9\u726E\u71EB\u72FA\u7294\u7296\u7232\u7294\u727F\u72BA\u72BC\u730C\u71B1\u7277\u7298\u737A\u72D4\u72D2\u730C\u72BC\u721A\u730C\u728E\u7249\u7251\u72E0\u72D2\u72C8\u731B\u724A\u7217\u71F7\u71F1\u71EE\u71AD\u71ED\u7206\u7128\u71D8\u7218\u7231\u7178\u71B2\u7215\u7235\u7216\u71B4\u725F\u71D4\u7202\u7299\u7202\u728E\u7276\u7218\u71CE\u7216\u7288\u7218\u731B\u71F3\u71F4\u71F4\u71F4\u71F4\u71F4\u71F4\u71F4\u71F4\u71F4\u71F4\u71F4\u71F4\u71F4\u71F4\u71F4\u71F4\u71F4\u71F4\u71F4\u71F4\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u720D\u7313\u72D9\u728A\u71DA\u72EF\u717C\u726A\u7318\u7296\u7392\u7313\u72BE\u722C\u72E2\u7273\u73E4\u731A\u728C\u726F\u7283\u723E\u71DA\u7283\u7270\u7286\u7145\u738C\u7270\u7256\u7283\u7283\u7153\u7225\u71BE\u726B\u71EE\u7312\u7294\u71D7\u7201\u72DD\u72D9\u72A8\u71DA\u72CE\u717E\u725B\u72FE\u7265\u7390\u72AE\u71BD\u72C5\u71F8\u737B\u72F7\u72ED\u71CE\u727A\u7295\u723B\u723F\u71B6\u729A\u7295\u7281\u7174\u73AE\u7295\u724A\u72A8\u7296\u7193\u7215\u7193\u7295\u71DD\u72DD\u7232\u7248\u726B\u729F\u72AE\u727F\u71D5\u72BE\u7140\u7232\u72BC\u7260\u735A\u72D3\u7270\u71CF\u7288\u71EC\u732A\u728A\u71CA\u7236\u7256\u71F8\u714B\u7257\u724C\u7221\u7132\u7359\u724C\u7216\u7274\u725C\u714C\u71F6\u7143\u724C\u718B\u727F\u722D\u71D7\u721C\u71F0\u72DA\u722E\u7348\u7180\u7159\u7102\u7131\u71AD\u7185\u70DC\u70FE\u70F5\u7144\u70DC\u70FE\u70F5\u7144\u720D\u720D\u7125\u7155\u7279\u7279\u71FC\u72E2\u73C8\u721B\u72D8\u73FA\u7228\u721B\u721B\u726E\u74D3\u722F\u722F\u724F\u7229\u7221\u71E4\u71F7\u71F7\u7217\u7213\u72CF\u722B\u7247\u7247\u7249\u7206\u7264\u73A4\u74E4\u72BC\u73A5\u74DD\u72B4\u72BC\u72B1\u731B\u7606\u7289\u7289\u72C4\u72B9\u72B0\u7264\u7264\u7264\u72B9\u72B9\u7371\u7296\u72FB\u72FB\u7349\u7264\u72B4\u73A3\u7495\u72B4\u73A3\u7494\u72B4\u72B4\u72B4\u72B4\u7586\u72B4\u72B4\u72B4\u72B4\u72B4\u72B4\u72B4\u72B4\u72B4\u72B4\u7367\u72B4\u72B4\u72B4\u72B4\u72B4\u746F\u75A5\u76DB\u746F\u75A5\u76DB\u746F\u746F\u746F\u746F\u7811\u746F\u746F\u746F\u746F\u746F\u746F\u746F\u746F\u746F\u746F\u746F\u746F\u746F\u746F\u746F\u746F\u73A0\u73A0\u73A0\u7421\u7421\u7421\u7464\u7464\u7464\u7434\u7434\u7434\u74A0\u74A0\u74A0\u739B\u7392\u7392\u74EB\u750C\u750C\u7421\u7421\u7464\u7464\u7434\u7434\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u7230\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u726C\u726C\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u726C\u726C\u734A\u734A\u734A\u72AD\u72AD\u71CF\u71CF\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72AD\u72B7\u72B7\u72AD\u72AD\u72AD\u72AD\u709A\u70C8\u709A\u71CF\u71D7\u7230\u7230\u72AD\u726C\u72AD\u71F2\u735C\u7312\u7312\u73C8\u73C8\u7351\u72AD\u7351\u739E\u739E\u7499\u73F7\u72AD\u72AD\u73A5\u72AD\u72AD\u72B0\u72B0\u727C\u72BE\u72DC\u72AF\u72D3\u72F2\u72C9\u7245\u7203\u7125\u7155\u72D7\u72AF\u72C9\u72EC\u7305\u72F8\u71F1\u72F2\u72D7\u7327\u7279\u717B\u71A5\u71B1\u72D7\u72EC\u7300\u72E2\u72BC\u731D\u730F\u7309\u7283\u723D\u714A\u7173\u7243\u71A3\u70CF\u7226\u78A6\u7ACB\u71FC\u72E2\u73C8\u721B\u72D8\u73FA\u7228\u721B\u721B\u726E\u74D3\u722F\u722F\u724F\u7229\u7221\u71E4\u71F7\u71F7\u7217\u7213\u72CF\u722B\u7247\u7247\u7249\u7206\u7264\u73A4\u74E4\u72BC\u73A5\u74DD\u72B4\u72BC\u72B1\u731B\u7606\u7289\u7289\u72C4\u72B9\u72B0\u7264\u7264\u7264\u72B9\u72B9\u7371\u7296\u72FB\u72FB\u7349\u7264\u7344", "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\u7064\0\0\0\0\0\0\0\0\0\0\0\u703C\0\u703C\0\0\0\0\u7014\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\u7028\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\u7091\0\0\0\0\u70C3\0\u707D\0\0\0\0\0\0\0\u702D\0\0\0\0\0\0\0\0\0\0\0\u702D\0\0\0\u7069\u70C3\0\u702D\0\0\0\0\0\0\0\u7082\0\0\0\0\0\0\u7014\u7050\0\u7050\u7050\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\u70B4\u70B4\u70B4\u70B4\u70B4\u70B4\u70B4\u70B4\u70B4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\u70B4\u70B4\u70B4\u70B4\u70B4\u70B4\u70B4\u70B4\u70B4\u70B4\u70B4\u70B4\u70B4\u70B4\u70B4\u70B4\u70B4\u70B4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\u7064\0\0\0\0\0\0\0\0\0\0\0\u703C\0\u703C\0\0\0\u7014\u7014\u7014\0\u7028\u7050\u700F\u703C\u7091\u7014\u705A\u705A\u7078\u7050\0\u705A\u705A\u7014\u7096\0\0\u7046\u70A0\u706E\u70E1\u70E1\u703C\u70C8\u7046\0\0\u7032\u703C\0\u7078\u7028\0\u703C\0\u7014\0\0\0\0\u7028\0\0\0\0\0\0\0\0\0\0\u7028\u7054\u7044\u703E\u709B\u7014\u705F\u705F\u7080\u7054\0\u705F\u705F\u7014\u70A1\0\u7019\u7049\u70AC\u7075\u70F4\u70F4\u703E\u70D8\u7049\0\0\u7032\u7028\0\u7078\0\0\0\u7028\0\0\0\0\0\0\u7028\0\0\0\0\0\0\0\0\0\u707D\u7091\u707D\u7091\u70B9\u707D\u70F5\u705F\u70F5\u702D\u7091\u70F5\u705F\u70F5\u70F5\u707D\u707D\u707D\0\0\0\0\u7028\0\u7028\u7028\0\u7028\0\0\0\0\0\0\u7014\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\u7028\0\0\u7028\u7028\0\u7028\0\0\0\0\0\0\0\u7028\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\u708C\0\0\0\0\0\0\0\0\u708C\0\u7082\u703C\0\u7096\0\0\0\0\0\u7069\0\0\0\0\0\0\0\0\0\0\0\u7091\0\0\0\u7046\u703C\0\u7050\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\u7064\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\u7064\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\u704D\u707C\u7064\u7087\u70B8\u7064\u7082\u7096\u7070\u7087\0\u7082\u7082\u7069\u7099\u7067\u705A\u7060\u70B4\u706A\u70AE\u70B0\u7092\u70B8\u70A6\0\0\0\u70A0\0\u70F0\u7078\u703C\u7091\u708C\u7078\u70A0\u703C\u703C\u7046\u7050\u705A\u708C\u705A\u7078\u7050\u7050\u7050\u7050\u7050\u7050\0\u705F\u7072\u7067\u7085\u70B7\u7050\u7080\u7086\u7085\u7090\0\u7080\u7080\u7066\u7091\u7064\u7044\u707B\u70B8\u7085\u70B7\u70B2\u7099\u70BC\u709C\0\u705A\u7050\u708C\u7050\u70F0\u708C\u7028\u708C\u708C\u7050\u708C\u7046\u7046\u7046\u7046\u705A\u7078\u703C\u7064\u703C\u7064\u7064\u7064\u7064\u7064\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\u7028\u7091\0\u703C\u7046\u705A\u700F\u705A\u7046\0\u705A\u705A\u704B\u7014\u705A\u7096\u700F\u7041\u70A0\u70A0\u700F\u703C\u7071\u7014\u700F\u7028\u7041\u7050\u7028\0\u7064\u7028\u7028\0\u703C\0\u701E\u7032\u7032\0\u7032\0\u7041\u7032\u7046\0\0\u705A\u705A\0\u7028\u7028\0\u7046\0\0\u703C\0\u7014\u709B\0\u703E\u7049\u705F\u7044\u705F\u7054\0\u705F\u705F\u7050\u7012\u705F\u70A1\u700C\u7044\u70AC\u70AC\u700C\u7012\u707F\u7014\u700A\u7028\u7046\u7035\0\0\u705A\0\0\0\u7032\0\0\u7032\u7032\0\u7032\0\u7046\u7032\u7050\0\0\u705F\u705F\0\u7028\u7028\0\u703C\0\0\u7032\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\u7041\u7046\u705A\u7050\0\u7078\0\0\0\u705A\0\0\u705A\u705A\0\u7050\0\u7050\u703C\u703C\0\0\u706E\u7064\0\u7028\u7028\0\u703C\0\0\u7046\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\u70A0\u70A0\u70A0\u70A0\u70A0\u70A0\u70A0\u70A0\u70A0\u70A0\u70A0\u70A0\u70A0\u70A0\u70A0\u70A0\u70A0\u70A0\u70A0\u70A0\u70A0\u70A0\u70A0\u70A0\u70A0\u70A0\u70A0\u7226\u7226\u7226\u7226\u7226\u7226\u7226\u7226\u7226\u7226\u7226\u7226\u7226\u7226\u7226\u7226\u7226\u7226\u7226\u7226\u7226\u7226\u7226\u7226\u7226\u7226\u712C\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\u703E\0\u705B\u7067\0\u703B\u703D\u70C6\0\0\0\u7098\0\u7057\0\0\u7052\u710A\u70B2\u7057\u7057\u705C\u7059\0\0\0\u702F\u7033\u703E\u708A\0\u7036\u702F\u70D3\0\0\0\u7092\u7037\u7083\0\0\u704D\u70F5\u70C2\u7063\u7063\u706A\u7062\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\u703D\0\0\0\u7056\0\0\0\0\0\0\0\0\0\u7094\0\u7046\u706B\u7050\0\u7073\u7081\0\u7049\u7049\u704D\0\u7050\u7083\0\u7061\u7077\u70B1\0\u7076\u708A\0\u704B\u7045\u7045\u7055\0\u7046\0\0\0\u705A\0\0\u7055\u704B\0\u7045\0\u706D\u703F\u703F\0\0\u7053\u7060\u7033\0\0\0\0\0\u703D\0\u707B\0\u707E\u7083\u7080\u70C4\u70B7\u70B8\u708B\u7085\u707B\0\u7077\u7059\u705C\u70AB\u70A2\u70A1\u7069\u707C\0\0\0\0\0\0\0\0\0\0\0\0\0\u70A6\0\0\0\0\0\0\0\0\u7086\0\u707A\u7040\0\u7084\0\0\0\u706B\0\0\0\0\0\0\0\0\0\u7097\0\0\0\u705F\0\0\u706F\0\0\0\u7044\u7112\0\u704A\u7056\0\0\u704C\u7046\u70FD\u705B\u70F6\u7091\u7076\0\u7129\0\0\0\0\u70E1\0\0\0\u7056\0\0\0\0\0\u70B4\0\u7040\0\u7066\u704B\u7048\u7068\0\0\0\u7046\u70F0\0\u704B\u704E\u704B\0\u704F\0\u705A\u7108\u7071\u70E7\u70C6\u70A5\u70F5\0\0\0\u70E9\0\0\0\u705F\0\0\0\0\0\u70B4\0\0\0\u7070\u7060\0\u7070\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\u708E\u708E\u708E\u708E\u708E\u708E\u708E\u708E\u708E\u708E\u708E\u708E\u708E\u708E\u708E\u708E\u708E\u708E\u708E\u708E\u708E\u708E\u708E\u708E\u708E\u708E\u7032\u7091\u7091\u7091\u7091\u7091\u7091\u7091\u7091\u7091\u7091\u7091\u7091\u7091\u7091\u7091\u7091\u7091\u7091\u7091\u7091\u7091\u7091\u7091\u7091\u7091\u708C\u6F38\u70B4\u70B4\u70B4\u70B4\u70B4\u70B4\u70B4\u70B4\u70B4\u70B4\u70B4\u70B4\u70B4\u70B4\u70B4\u70B4\u70B4\u70B4\u70B4\u70B4\u70B4\u70B4\u70B4\u70B4\u70B4\u70B4\u70B4\u7226\u7226\u7226\u7226\u7226\u7226\u7226\u7226\u7226\u7226\u7226\u7226\u7226\u7226\u7226\u7226\u7226\u7226\u7226\u7226\u7226\u7226\u7226\u7226\u7226\u7226\u712C\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\u7014\u7050\0\u7050\u7050\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", "\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7082\u6FF7\u704D\u71AF\u7006\u7000\u702C\u6FA9\u703D\u6FED\u702A\u6FF3\u7030\u71AF\u7030\u6F4F\u701D\u6F4F\u7044\u7109\u7030\u6FD7\u7037\u6F73\u7027\u70C2\u7046\u6FF5\u6FF7\u6FF2\u7018\u6FF2\u706F\u7000\u701D\u7000\u7029\u6FF2\u700C\u7000\u701F\u6FF2\u7022\u6FF2\u7014\u6FF8\u7038\u6FF2\u701E\u6FEA\u7051\u6FF5\u7050\u6F73\u7038\u6FE8\u7030\u7078\u7038\u6FE8\u7044\u6FF8\u7074\u6FF2\u700F\u7000\u7011\u7000\u701C\u6FF2\u7010\u7000\u700C\u7000\u700B\u7000\u7020\u6FF2\u7012\u7000\u7012\u7000\u6FFA\u6FF2\u7021\u7000\u700C\u7000\u700C\u7000\u700C\u6FF5\u7022\u6FF2\u7010\u7000\u7022\u6F4F\u7011\u7000\u702B\u6FF2\u7011\u7000\u700E\u6FF2\u7010\u6FF5\u7005\u6FF5\u700A\u7000\u7016\u7000\u700A\u7000\u7058\u6F64\u6FF7\u6FF2\u7022\u6F64\u7018\u7129\u7000\u6F83\u7012\u71FB\u7025\u6FF6\u7003\u6FF6\u7019\u6FF6\u701B\u6FF6\u7019\u6FF6\u7014\u7000\u701C\u6F26\u7009\u7000\u7010\u7000\u6FBA\u6F26\u7007\u7000\u7013\u7000\u7010\u7000\u7010\u7000\u701D\u6FF6\u7005\u6F27\u7018\u6F27\u7005\u7000\u7033\u6FF6\u700D\u6FF6\u7009\u6FF6\u7013\u6FF2\u7015\u6FF2\u7011\u7000\u700E\u6F26\u701B\u7000\u7064\u6F4B\u707F\u6F43\u7082\u6F4B\u7028\u70B7\u7000\u7000\u7060\u6F26\u7035\u6F76\u700C\u6FF8\u6FEA\u6FF6\u6FCB\u7000\u7043\u6FF2\u7046\u6F6C\u7012\u720B\u7026\u6FF2\u7004\u718A\u702A\u7021\u7030\u7073\u7027\u70C2\u7026\u6FF2\u700B\u7223\u7039\u7186\u7030\u6FA9\u7001\u710E\u700D\u7106\u705D\u71FB\u7024\u6F26\u703C\u6F66\u7046\u70C7\u7034\u6F29\u7039\u710E\u7006\u718A\u702B\u7021\u702A\u6FF2\u7024\u6FF2\u700D\u6FF2\u701E\u6F26\u700F\u7000\u700F\u7000\u700F\u7000\u700F\u7000\u700F\u7000\u700F\u7000\u7000\u7000\u701C\u6F29\u700C\u7000\u700C\u7000\u700C\u7000\u700C\u7000\u7012\u7000\u7012\u7000\u700A\u7000\u7011\u7000\u7010\u7000\u700C\u6FF5\u7022\u6FF2\u7022\u6FF2\u7022\u6FF2\u7022\u6FF2\u7022\u6FF2\u702B\u6FE7\u7022\u6FB0\u700E\u6FF2\u700E\u6FF2\u700E\u6FF2\u700E\u6FF2\u7016\u7000\u7010\u7000\u700C\u6FF7\u7025\u6FF6\u7025\u6FF6\u7025\u6FF6\u7025\u6FF6\u7025\u6FF6\u7025\u6FF6\u7026\u6FF9\u7019\u6F29\u7019\u6FF6\u7019\u6FF6\u7019\u6FF6\u7019\u6FF6\u7006\u7000\u7010\u7000\u6FEF\u7000\u6FF6\u7000\u701D\u6FF6\u7010\u7000\u701D\u6FF6\u701D\u6FF6\u701D\u6FF6\u701D\u6FF6\u701D\u6FF6\u701E\u6FF6\u701D\u6F90\u7009\u6FF6\u7009\u6FF6\u7009\u6FF6\u7009\u6FF6\u700E\u6F26\u7005\u6F27\u700E\u6F26\u700F\u7000\u7025\u6FF6\u700F\u7000\u7025\u6FF6\u700F\u6F5B\u7025\u6F5B\u701C\u6FF2\u7019\u6FF6\u701C\u6FF2\u7019\u6FF6\u701C\u6FF2\u7019\u6FF6\u701C\u6FF2\u7019\u6FF6\u7010\u7000\u701B\u6FF6\u7010\u7000\u701B\u6FF6\u700C\u7000\u7019\u6FF6\u700C\u7000\u7019\u6FF6\u700C\u7000\u7019\u6FF6\u700C\u6F5B\u7019\u6F5B\u700C\u7000\u7019\u6FF6\u7020\u6FF2\u701C\u6F26\u7020\u6FF2\u701C\u6F26\u7020\u6FF2\u701C\u6F26\u7020\u6EE8\u701C\u6F26\u7012\u7000\u7009\u7000\u7011\u7000\u7008\u7000\u7001\u7000\u6FE7\u7000\u700B\u7000\u6FEB\u7000\u7012\u7000\u6FFF\u7000\u7012\u6F5B\u7010\u6F5B\u7012\u7000\u7010\u7000\u7012\u6FF2\u7010\u6F26\u6FFA\u6FF2\u6FBA\u6F26\u7021\u6EE8\u7007\u6EE8\u7005\u7000\u700C\u7000\u7013\u7000\u700C\u6EE8\u7013\u6EE8\u700C\u7000\u7013\u7000\u701D\u7000\u7013\u7000\u700A\u7000\u7013\u7000\u700C\u6FF5\u7010\u7000\u700C\u6EE8\u7010\u6EE8\u700C\u6FF5\u7010\u7000\u7014\u7000\u7010\u6FEE\u7010\u6F26\u7022\u6FF2\u701D\u6FF6\u7022\u6FF2\u701D\u6FF6\u7022\u6FF2\u701D\u6FF6\u701E\u6FFA\u701E\u6FF6\u7011\u7000\u7005\u7000\u7011\u6EE8\u7005\u6EE8\u7011\u7000\u7005\u7000\u702B\u6FF2\u7033\u6FF6\u702B\u6FF2\u7028\u6FF6\u702B\u6F29\u7033\u6F29\u702B\u6FF2\u7026\u6FF6\u7011\u6F29\u700D\u6F29\u7011\u7000\u700D\u6FF6\u7011\u7000\u700B\u6FFB\u700E\u6FF2\u7009\u6FF6\u700E\u6FF2\u7009\u6FF6\u700E\u6FF2\u7009\u6FF6\u700E\u6FF2\u7009\u6FF6\u700E\u6FF2\u7009\u6FF6\u700E\u6F5B\u7009\u6F64\u7005\u6FF5\u7015\u6FF2\u7016\u7000\u700E\u6F26\u7016\u7000\u700A\u7000\u701B\u7000\u700A\u7000\u701B\u7000\u700A\u7000\u701B\u7000\u7014\u7000\u6FED\u6FF6\u7019\u6FF6\u7021\u6FFA\u7006\u6F61\u7009\u6FF6\u7007\u7000\u7013\u7000\u7037\u7000\u7010\u6F17\u7022\u6FF2\u701D\u6FF6\u7005\u6F27\u7014\u6F17\u700D\u6F26\u700E\u6FF6\u700E\u6FF2\u7009\u6FF6\u700A\u7000\u7004\u6F16\u7016\u7000\u7049\u6FF4\u7036\u7000\u7036\u7000\u7022\u7000\u7082\u6FF7\u6FBA\u6F26\u700F\u7000\u7025\u6FF6\u7000\u7000\u7026\u6FF9\u7022\u6FB0\u701D\u6F90\u702B\u6EC3\u7033\u6EC7\u7011\u6ED1\u700D\u6EC7\u701B\u6F6A\u7013\u6F6A\u7010\u6F6A\u700D\u6F6A\u6FBA\u6F26\u7008\u6FF6\u701B\u6FF6\u701B\u6FF6\u7045\u6FF6\u700A\u6FF5\u7019\u6F60\u701B\u6F17\u701B\u6FF6\u7014\u6FF6\u700E\u6FF6\u7024\u6FF3\u7014\u6FF2\u7014\u6FF2\u7014\u6FF2\u7014\u6FF2\u6FCF\u6F26\u7020\u6F2C\u7020\u6F2C\u701E\u6FF5\u7013\u6F16\u700D\u6FF6\u700D\u6F17\u7009\u7000\u7009\u6F17\u7010\u7000\u7011\u6FF6\u7015\u7000\u700A\u7000\u700C\u7000\u700A\u6F17\u7013\u6F17\u700B\u6FF6\u700B\u6F17\u7010\u6F17\u6FBA\u6F17\u7010\u6F17\u701D\u6FF8\u701D\u6FF6\u7017\u6FFA\u7025\u6FFC\u7028\u6F17\u701E\u6FF6\u701E\u6FF6\u701E\u6F17\u7005\u6F17\u7007\u6F17\u700A\u7000\u7005\u7000\u7015\u7000\u7015\u7000\u7032\u6F26\u6FBA\u6F17\u6FBA\u6F26\u700F\u6F17\u6FE9\u6F0D\u7010\u6F7F\u700D\u6F17\u7009\u6FF6\u702E\u6FF6\u7020\u6FF6\u6FFC\u7000\u7015\u7000\u6FFE\u7000\u7017\u7000\u701B\u6F26\u701B\u6F6A\u700C\u6F17\u700C\u6ECF\u702F\u7000\u7030\u7000\u702F\u6FF2\u7050\u6F1A\u7021\u6FEF\u700F\u7000\u7014\u6FF2\u701D\u6FF5\u7015\u7000\u6FE9\u6F17\u7001\u6F17\u7015\u7000\u7018\u6F27\u7030\u7000\u7030\u7000\u701B\u6FF6\u701B\u6F17\u701B\u6F60\u700D\u6FF6\u700D\u6F17\u700D\u6FF6\u700F\u6F18\u700F\u6F17\u7007\u7150\u7007\u7150\u702C\u70A9\u7005\u7150\u700A\u714F\u700A\u70A8\u7006\u714F\u7006\u714B\u700E\u70B0\u705A\u71A5\u7013\u71A5\u704F\u71BB\u704F\u71BB\u704F\u71BB\u7023\u71E5\u7023\u71E5\u7017\u7127\u7017\u7127\u7021\u71A3\u7021\u71A3\u6FF7\u71CD\u6FF7\u71CD\u700B\u71FB\u700B\u71FB\u7077\u71C0\u700B\u7223\u705D\u71FD\u7016\u71FD\u7077\u6F3D\u700B\u6F61\u7019\u6F40\u7054\u6F40\u7059\u7013\u7059\u712B\u7048\u704B\u7047\u704B\u7033\u7012\u7033\u7012\u7047\u701A\u7047\u7064\u701B\u71FB\u7076\u720B\u7043\u7200\u7040\u6F5B\u7001\u7214\u6FFD\u71FB\u7000\u70BA\u7030\u71A9\u7018\u70DB\u7013\u7150\u7024\u714B\u7005\u7150\u702D\u7150\u7030\u7000\u7028\u7000\u7028\u7000\u7028\u7000\u7028\u7000\u7015\u6F6D\u700A\u71FB\u7043\u6EF4\u7001\u6F25\u6E8D\u71FB\u6E8D\u71FB\u6E7E\u71FB\u6E75\u7214\u6E7F\u7223\u6E20\u7302\u6E8B\u71FB\u6EE8\u720B\u6E85\u720B\u6ECD\u71EC\u6EB7\u7200\u6E6F\u71FB\u6E7F\u71FB\u6F06\u71F4\u6EBA\u71F4\u6E6F\u71FB\u6E8B\u71FB\u6E8B\u71FB\u6ED5\u71F6\u6ED5\u71F6\u6ED5\u71F6\u6FAB\u71F6\u6EA1\u6F20\u6E8D\u6F20\u6E73\u6EE5\u6EF5\u6EE5\u6E84\u7213\u6FD4\u7159\u6E98\u6EF6\u6EA7\u6F10\u6EA7\u6F10\u6EBA\u6F06\u6EBA\u6F58\u6F15\u6EE1\u6FCA\u6EE1\u6EE8\u6F27\u6E85\u6F26\u6EB7\u6EF4\u6ED5\u6E9F\u6EB2\u6F29\u6EBE\u6F5B\u6F06\u6F16\u6E7F\u6F15\u6E84\u6F1D\u6E7F\u6F10\u6E7F\u6F10\u6E8E\u6F1F\u6E8E\u6F28\u6E75\u6F25\u6E7F\u6F3D\u6E20\u6F41\u6E20\u6ED4\u6E6F\u70D6\u6E80\u70E6\u6E20\u70E6\u6E84\u6FB6\u6E84\u6F64\u6EE8\u6EF6\u6E7F\u6F42\u6EC7\u6F1D\u6E84\u6F43\u6EBA\u720D\u6EE5\u71F3\u6E20\u7302\u6EA2\u721A\u700B\u6EDC\u6E7E\u7214\u7000\u6F04\u6E9B\u6E91\u6E8B\u6F17\u6E75\u7205\u6E8B\u71FB\u6E75\u6EF2\u7050\u6F73\u7071\u71FB\u7012\u71FB\u700F\u7000\u7051\u715C\u7008\u7000\u7008\u7000\u7008\u7000\u7008\u6FF2\u7008\u7000\u7008\u7000\u7012\u6FF6\u700F\u7000\u7011\u7000\u700B\u7000\u7030\u7000\u700C\u7000\u700A\u7000\u7012\u7000\u7022\u6FF2\u7012\u7000\u7021\u7000\u700F\u7000\u700C\u7000\u700C\u6FF5\u701D\u7000\u7022\u6FF2\u7012\u7000\u7010\u7000\u701E\u7000\u7011\u7000\u701D\u7000\u7023\u7000\u700A\u7000\u7016\u7000\u701D\u7000\u7012\u7000\u701D\u7000\u701D\u6FF6\u7019\u6FF6\u700A\u6F27\u7014\u6FF6\u7010\u6FF6\u701D\u6FF6\u7037\u6F27\u700A\u6F26\u701D\u6FF6\u7019\u6FF6\u7023\u6F26\u700A\u6F27\u701B\u6FF6\u7014\u6FF6\u7007\u7000\u700C\u6FF5\u7037\u6F27\u7014\u6FF2\u7023\u6F26\u7023\u6FF6\u7009\u6FF2\u7037\u6F27\u7023\u6F26\u701D\u6FF6\u7003\u6FF6\u7010\u6FF6\u701D\u6F27\u700B\u6F24\u7014\u6F27\u701D\u6FF6\u7012\u6FF6\u7010\u6FF6\u7023\u6FF6\u7010\u6FF6\u701D\u6FF6\u7036\u6FF6\u7000\u6FF6\u701D\u7000\u701D\u6F27\u7006\u6FF6\u7022\u6F27\u701D\u6F27\u701C\u6F26\u7023\u6F26\u700B\u7000\u7050\u6F42\u700D\u6FF2\u7040\u7000\u700B\u6F26\u6FFA\u6F28\u702A\u6FF6\u701D\u6F29\u7022\u6FF2\u7019\u6FF6\u7020\u6FF6\u7016\u7000\u7012\u6F43\u7013\u7000\u7026\u6FF2\u703E\u6FF2\u7012\u7000\u7019\u7000\u6FFA\u6FF2\u700A\u6FF2\u7013\u7000\u7012\u7000\u7013\u7000\u700F\u6FF1\u7013\u6F67\u7009\u7000\u7013\u7000\u7013\u7000\u7013\u7000\u700E\u6F67\u7016\u7000\u7008\u7000\u701C\u6FF2\u7013\u7000\u7013\u7000\u7013\u7000\u7009\u6FF2\u7013\u7000\u7013\u7000\u7024\u6FF2\u7013\u7000\u7013\u7000\u7024\u6FF2\u701E\u7000\u700F\u6FF1\u7026\u7000\u7009\u7000\u7013\u6F67\u7003\u7000\u701D\u7000\u701D\u6F67\u700D\u7000\u7013\u7000\u7013\u7000\u701E\u6FF2\u7013\u6FF2\u7003\u7000\u7025\u6FF6\u7027\u6FF6\u7018\u7000\u7011\u7000\u700E\u6F77\u7026\u6FF6\u700E\u7000\u700E\u6FF6\u7017\u7000\u7017\u7000\u7017\u7000\u7008\u6FF6\u7017\u7000\u7017\u7000\u7023\u6FF6\u7017\u7000\u6FFE\u6F27\u7029\u6FF6\u7008\u7000\u7008\u6F26\u702B\u6F27\u700E\u7000\u7017\u6F77\u7012\u7000\u7017\u7000\u7017\u6F77\u7008\u7000\u7017\u7000\u7017\u7000\u700E\u6FF6\u7017\u6FF6\u7004\u7000\u7026\u6FF6\u7006\u6F26\u7011\u7000\u7022\u6FF6\u7031\u6FF6\u701D\u7000\u7001\u7000\u6FB3\u6F26\u7008\u6FF6\u7017\u7000\u7006\u7000\u7017\u7000\u7008\u6F26\u7017\u6F77\u701A\u7000\u7008\u7000\u7006\u7000\u700E\u7000\u7024\u6FF2\u7023\u6FF6\u7010\u6FF5\u7013\u6FF2\u7013\u7000\u7011\u7000\u6FDD\u6EFD\u6FDD\u6EFD\u702C\u6EFF\u702E\u6F46\u702E\u6F46\u7062\u7007\u70D2\u7075\u70D2\u6FA4\u706F\u6FA5\u7043\u6FA5\u7097\u6F9F\u707C\u7001\u705F\u6FA5\u704E\u6FA3\u704E\u6FA3\u707B\u6FA2\u702E\u6F46\u701A\u6F27\u7030\u70C0\u702A\u7065\u70D2\u7075\u70D2\u6FA4\u706F\u6FA5\u7043\u6FA5\u706E\u6FA5\u7064\u6FB5\u7047\u6FA1\u704E\u6FA3\u704E\u6FA3\u707B\u6FA2\u700F\u7000\u7015\u7000\u7015\u6FF2\u701B\u6EE1\u7007\u6EE1\u7013\u6EE1\u7033\u6EE1\u7011\u6EE1\u701B\u6EE1\u7039\u71A9\u7040\u7117\u7005\u6FF5\u7015\u6FF2\u7005\u6FF5\u7015\u6FF2\u7005\u6FF5\u7015\u6FF2\u7016\u7000\u700E\u6F26\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7027\u70C1\u7027\u70C2\u7000\u70C1\u7000\u70C9\u7000\u70C9\u7000\u70C9\u7081\u6F43\u7000\u6ED4\u7073\u71B1\u704F\u71B1\u704F\u6F73\u704F\u71B1\u702B\u71B1\u701E\u71B1\u702D\u6F73\u701E\u71B1\u703B\u6F6B\u703A\u6F67\u7046\u703B\u706F\u6FF5\u706F\u6FF5\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u703D\u6FED\u703D\u6FED\u704B\u7193\u704B\u7193\u704B\u7193\u704B\u7193\u704B\u7193\u704B\u7193\u703B\u6F64\u703F\u7021\u7030\u7021\u7030\u6FD7\u7082\u6FF7\u7000\u7302\u7048\u7200\u7027\u70AC\u6FF7\u6FF2\u7044\u6FF8\u7044\u6F55\u703C\u6F73\u7037\u6FD8\u7044\u6F55\u7036\u6F38\u704B\u7193\u7000\u7000\u7039\u710E\u700B\u7000\u700C\u6FF8\u7010\u6FF6\u7026\u6FF4\u7000\u7273\u7000\u7273\u6F0E\u6F64\u7000\u7224\u7000\u7224\u6E32\u720B\u6DA8\u720B\u6D2D\u6F23\u6D26\u6F4C\u6CB8\u6EAB\u7000\u7224\u6C36\u6F65\u6E52\u6F64\u6EB1\u6F64\u6D76\u6F4E\u6E32\u6F26\u6E20\u721A\u6D6E\u7057\u6E40\u6F27\u7000\u6F04\u7000\u6F04\u7000\u6F04\u7000\u6F04\u6E9B\u7205\u702D\u6FF2\u7030\u6FF2\u701C\u6FF2\u701E\u6F25\u7035\u6FF1\u702B\u6F34\u7046\u7000\u702F\u6FF6\u702F\u6FF6\u701A\u6FF1\u702D\u6FDE\u7021\u6FF1\u7030\u6FF5\u7046\u7000\u7007\u6FF2\u7026\u6FF2\u7034\u6F27\u7046\u7000\u702D\u6FBF\u7022\u6FF1\u7032\u6FEA\u7046\u7000\u7045\u6F9B\u701E\u7100\u7032\u7000\u7023\u6F26\u701D\u7000\u701D\u6FF2\u7032\u6F34\u7020\u7000\u700F\u7000\u7022\u6FF1\u702F\u6FE8\u7023\u6FEF\u701E\u6FF5\u7064\u6FF1\u702B\u7000\u700D\u7000\u7026\u6FF1\u701E\u6FF5\u702B\u6FF3\u7039\u6FED\u7028\u6FED\u7034\u6FED\u7019\u6FF4\u7000\u6F26\u7046\u7000\u7046\u7000\u703D\u6EFD\u7044\u6FF2\u700D\u7000\u700D\u7000\u7015\u7000\u7011\u7000\u7028\u6FF5\u7028\u6FF5\u701B\u7000\u6F98\u6F27\u702D\u7000\u701C\u6FF3\u7024\u6FF2\u700E\u6FF2\u7025\u6FF2\u700E\u6FF2\u700D\u6FF2\u700E\u6FF2\u7025\u6FF2\u701D\u6FF1\u7025\u6FF2\u700D\u6FF2\u701D\u6FF2\u701C\u6FF2\u7047\u703A\u703C\u6F64\u7046\u7039\u703C\u6F64\u7026\u7039\u703C\u6F20\u7046\u6F64\u7046\u6F64\u7046\u6F64\u7046\u6F64\u703C\u703A\u703C\u703A\u7046\u7066\u7046\u7066\u7046\u703A\u703C\u6F66\u7046\u703A\u703C\u6F66\u7046\u703A\u7046\u703A\u7046\u7039\u703C\u6F66\u7046\u7039\u703B\u6F66\u703B\u6F66\u7046\u7039\u7046\u7039\u7046\u7000\u7046\u7000\u7031\u703A\u7026\u703A\u703C\u6F66\u701E\u6F64\u7027\u6F64\u7019\u6F66\u7027\u6F66\u7046\u6F66\u7046\u6F64\u702C\u7000\u702C\u7000\u7037\u6F64\u703C\u6FA4\u7074\u6F8C\u7074\u6F8C\u7036\u70DC\u7036\u700C\u70DE\u6F64\u7045\u6F64\u7036\u70DC\u7036\u700C\u70DE\u6F64\u7045\u6F64\u7047\u6FA4\u701F\u6F64\u7047\u6FA4\u7046\u6FA4\u7029\u6F64\u7046\u6FA4\u7029\u6F64\u7046\u6FDF\u7046\u6FDF\u703C\u6FD3\u7014\u6FF6\u703C\u6FD3\u703C\u6FD3\u702D\u6F64\u703C\u6FD3\u702D\u6F64\u7014\u6FF6\u702D\u6F20\u7037\u6F64\u7037\u6F64\u7037\u6F64\u7037\u6F64\u702E\u6F75\u704A\u6F76\u703C\u703A\u703C\u703A\u703C\u6F64\u703C\u6F64\u703C\u703A\u703C\u6F64\u703C\u703A\u703C\u6F64\u703C\u703A\u703C\u703A\u703C\u6FD3\u702D\u6F64\u703C\u6FD3\u702D\u6F64\u702D\u6F48\u7046\u7039\u701F\u6F64\u703C\u6F18\u703C\u703A\u7037\u703A\u7030\u703A\u703C\u703A\u703C\u703A\u7026\u703A\u703C\u7039\u703C\u7039\u7014\u7039\u7002\u7000\u703B\u6FF1\u7032\u6FF5\u7049\u7000\u7047\u6F86\u7032\u6FB1\u703F\u7000\u703F\u6FF4\u703C\u6FE5\u703C\u6F63\u7040\u702D\u703C\u6FE5\u703C\u6F63\u7040\u702D\u703C\u7000\u7034\u6EFD\u7034\u6EFD\u703A\u6EFD\u7040\u70DC\u7030\u6FA9\u7030\u6FD7\u702E\u6F22\u7019\u705D\u7043\u7021\u7028\u7075\u7028\u7075\u7070\u6EFD\u7070\u6EFD\u7070\u6EFD\u7029\u7000\u7046\u7000\u7032\u7000\u7017\u7000\u7016\u6FB8\u7038\u6FF5\u7064\u6F43\u7017\u6F43\u7081\u6F43\u7017\u6F43\u701F\u6FE3\u701F\u6FE3\u7030\u6FE1\u7030\u6FE1\u7020\u6EC0\u7020\u6EC0\u7020\u6EC0\u7020\u6EC0\u7020\u6EC0\u7020\u6EC0\u7020\u6EC0\u7020\u6EC0\u7020\u6EC0\u7026\u6FF0\u7026\u6FF0\u70C0\u6FF3\u7052\u6FF3\u7030\u70DC\u7030\u6FFB\u7030\u6FFB\u7030\u6FF3\u7030\u7094\u7030\u7094\u7030\u705A\u7031\u7027\u7023\u6FD6\u7030\u7058\u7030\u7037\u7030\u7037\u7030\u6FDD\u7030\u6FE5\u702F\u6F95\u7030\u6F36\u7030\u7019\u7030\u6FCF\u7030\u6FD3\u7030\u6FE6\u7030\u6FE5\u7030\u7008\u7030\u7023\u7030\u7078\u7030\u7078\u7030\u6F96\u7030\u6F97\u7030\u6F96\u7030\u7059\u7030\u7059\u7030\u705A\u7030\u7078\u7030\u7078\u7030\u7078\u7030\u7078\u7030\u7078\u7030\u7078\u7007\u7078\u7030\u7078\u7030\u7078\u7030\u6F64\u7030\u701C\u7030\u6F64\u7030\u6FDA\u7040\u6F99\u7040\u6F99\u7039\u6F2D\u7039\u6F2D\u7038\u6EFC\u7038\u6EFC\u7019\u6FE6\u7019\u6FE6\u7055\u6F20\u7030\u6FBE\u7038\u6F64\u7038\u6F64\u7038\u6F1B\u7038\u6F1B\u7030\u6F5C\u7030\u6F5C\u7030\u6F1C\u7030\u6F1B\u7038\u6F34\u7038\u6F34\u7030\u6F06\u7030\u6F06\u7040\u6FE6\u7040\u6FE6\u7040\u6F88\u7040\u6F89\u7030\u6F5C\u7030\u6F5C\u7040\u6F64\u7040\u6F64\u7040\u6FE7\u7040\u6FE7\u7041\u6F64\u7041\u6F64\u7040\u6F99\u7040\u6F99\u7040\u6F1B\u7040\u6F1B\u7040\u6F28\u7040\u6F28\u7030\u6FE1\u7030\u6FE1\u7030\u6FE1\u7040\u6FE7\u7040\u6FE7\u7040\u6F99\u7040\u6F99\u7030\u6FE1\u7030\u6FE1\u7032\u6F89\u7032\u6F89\u7032\u6F89\u7032\u6F89\u7032\u6FB1\u7032\u6F89\u7032\u6F89\u7032\u6F89\u7032\u6F89\u702D\u6F62\u702D\u6F62\u702D\u6F62\u702D\u6F63\u7040\u7000\u7040\u7000\u7030\u7000\u7030\u7000\u7040\u7000\u7040\u7000\u7040\u7000\u7039\u7000\u702D\u7000\u7039\u7000\u7009\u7000\u7009\u7000\u7009\u7000\u7009\u7000\u7040\u6FD3\u7040\u6FD3\u7018\u6FE7\u7036\u6FE7\u7018\u6F99\u7036\u6F99\u7032\u7067\u7032\u7067\u7032\u7067\u7030\u6FD7\u704A\u6F2C\u7020\u6F75\u7020\u6FE3\u7020\u6FE3\u7032\u7000\u702D\u6F62\u7036\u6EFD\u7036\u6EFD\u705E\u6F02\u705E\u6EF8\u701A\u7010\u7053\u70C1\u7023\u6FF3\u7033\u6FDA\u7036\u6FB0\u705D\u6FB0\u705D\u6FB0\u704A\u6FB0\u704A\u6FB0\u7030\u7037\u701F\u6FE7\u701F\u6FE7\u7040\u6FE7\u7040\u6FE7\u7030\u6FE1\u7030\u6FE1\u7030\u6FE1\u7030\u6F43\u7038\u6FE8\u7038\u6FE8\u702D\u6FE8\u702D\u6FE8\u7038\u6EBC\u7038\u6EBC\u7040\u6F99\u7040\u6F99\u7040\u6F87\u7040\u6F87\u7040\u6F1B\u7040\u6F1B\u7041\u6F1B\u7041\u6F1B\u7040\u6F28\u7040\u6F28\u7030\u6EE9\u7030\u6EE9\u7030\u6EE9\u7030\u6EE9\u7018\u6F64\u7036\u6F64\u7018\u6F1B\u7036\u6F1B\u70C0\u6F98\u706C\u70BD\u70C2\u6FEE\u70C2\u6FEE\u7037\u6FE5\u703C\u6FE5\u703E\u702D\u703C\u6FE5\u703C\u6FE5\u703E\u702D\u703C\u6F4C\u703D\u6FE5\u7037\u6FE5\u703B\u6FE5\u703E\u702D\u703D\u6FE5\u7043\u702D\u702D\u6F62\u7019\u700E\u7037\u7000\u7030\u7000\u7030\u7000\u70BC\u6F2B\u701B\u6F2B\u70BC\u6F2B\u701B\u6F2B\u7034\u6F29\u7034\u6F29\u7034\u71EF\u7034\u71EF\u7030\u7073\u704B\u7041\u7032\u7000\u7032\u7000\u701A\u6F43\u7035\u6F0A\u7035\u6F0B\u7037\u6F64\u7030\u7073\u7040\u6FBB\u7033\u7119\u7033\u7119\u7033\u6F27\u7034\u6F27\u7126\u6FB1\u7073\u6FC5\u7036\u7093\u7036\u7093\u704D\u6F2B\u7041\u6F2B\u7053\u6F46\u7037\u6FA8\u6FEE\u6F74\u7050\u6FC8\u7055\u6F64\u7054\u6F4D\u703C\u6F50\u703C\u6F50\u7037\u6F50\u7037\u6F50\u7032\u6F24\u7055\u7078\u7018\u6F81\u7032\u7000\u7032\u7000\u7032\u7000\u7032\u7000\u7114\u7000\u7032\u7000\u7032\u7000\u7032\u7000\u7032\u7000\u7023\u7000\u712C\u7000\u7023\u7000\u7104\u7000\u7028\u7000\u7104\u7000\u7104\u7000\u7028\u7000\u7104\u7000\u7028\u7005\u7126\u7000\u7000\u70DC\u7023\u6ED3\u7023\u6ED3\u705C\u6FFB\u705C\u6FFB\u7037\u728A\u7037\u6E78\u7037\u700B\u7070\u7000\u7000\u6EDF\u728F\u6EDF\u7032\u6F1F\u70DE\u7065\u7000\u728A\u7000\u6E70\u7000\u728A\u7000\u6DF0\u7000\u728A\u7000\u6E62\u7036\u6FCB\u7052\u6F4E\u702F\u70DC\u7017\u6FEC\u7037\u7048\u70C2\u6F9F\u7028\u6F88\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u7000\u6FF2\u6FF5\u710B\u713D\u6ED1\u713D\u6ED1\u6FF5\u710B\u713D\u6ED1\u713D\u6ED1\u6FF5\u6ED1\u713D\u710B\u6FF5\u710B\u713D\u6ED1\u6FF5\u6ED1\u6FF5\u6ED1\u6FF5\u710B\u6FF5\u6ED1\u6FF5\u70AE\u70E1\u6ED1\u713D\u6ED1\u70E1\u6ED1\u70E1\u6ED1\u6FF5\u6ED1\u6FF5\u6ED1\u6FF5\u6ED1\u713D\u70AE\u70E1\u710B\u70E1\u70AE\u6FF5\u70AE\u6FF5\u710B\u6FF5\u70AE\u713D\u6ED1\u70E1\u6ED1\u70E1\u6ED1\u6FF5\u6ED1\u6FF5\u6ED1\u6FF5\u6ED1\u6FF5\u6ED1\u6FF5\u6ED1\u6FF5\u6ED1\u6FF5\u70AE\u6FF5\u710B\u6FF5\u70AE\u6FF5\u6ED1\u6FF5\u6ED1\u6FF5\u6ED1\u6FF1\u6ED1\u6FF1\u6ED1\u7000\u7130\u7000\u6ED1\u7000\u6ED1\u7000\u6ED1\u725E\u6ED1\u7000\u6EFE\u7000\u6EEF\u7000\u6EEF\u702D\u6F62\u702D\u6F62\u702D\u6F62\u702D\u6F62\u702D\u6F62\u702D\u6F62\u702D\u6F62\u702D\u6F62\u702D\u6F62\u702D\u6F62\u7020\u7028\u7020\u7028\u7026\u6FF5\u7026\u6FF5\u7028\u6F24\u7028\u6F24\u701C\u6FF5\u701D\u6FF5\u7023\u6F81\u7023\u6F81\u701B\u701C\u701B\u701C\u7046\u6EE3\u7046\u6EE4\u7050\u6FCF\u7050\u6FCE\u7041\u6FCE\u7041\u6FCE\u7023\u6F81\u7023\u6F81\u701B\u6FD0\u701B\u6FD0\u7023\u6EE3\u7046\u6EE4\u7037\u6FCE\u7037\u6FCD\u702D\u6FCE\u702D\u6FCE\u7027\u6F0E\u7027\u6F0E\u7027\u6F0E\u7032\u6F89\u702D\u6EDF\u7032\u6F89\u701D\u6F50\u701B\u6F50\u7032\u6F89\u7032\u6F89\u7032\u6F89\u7032\u6F89\u7032\u6F89\u7032\u6F89\u7032\u6F89\u7032\u6F89\u7042\u6F50\u7056\u6F50\u702D\u6F62\u702D\u6F62\u702D\u70FC\u702D\u6F62\u701B\u70FC\u71C7\u70FC\u71C7\u6F50\u701A\u6F50\u701B\u70FB\u701B\u6F50\u702D\u6F62\u702D\u6F62\u702D\u6F62\u702D\u6F62\u7046\u703B\u702D\u6F63\u702D\u6F63\u702D\u6F63\u702D\u6F63\u702D\u6F63\u7023\u6F81\u7023\u6F81\u7023\u6F81\u7046\u6EE6\u702D\u6F62\u702D\u6F62\u702D\u6F62\u702D\u6F62\u7032\u6F89\u7032\u6F89\u7032\u6F89\u7032\u6F89\u702D\u6F62\u702D\u6F62\u702D\u6F62\u702D\u6FB4\u702D\u6FB4\u7026\u6FF4\u7026\u6FF5\u702D\u6F62\u703C\u6FBE\u703C\u6FBE\u7032\u6FB1\u7036\u6F7D\u7020\u7000\u702D\u6F62\u7046\u6FDD\u70AA\u6FAE\u70AA\u6FAE\u70AA\u6FAE\u702E\u6F86\u7028\u6FAE\u7028\u6FAE\u7041\u6F3A\u7041\u6F79\u7041\u6F79\u7036\u6F7D\u7042\u6F50\u703F\u6F74\u703C\u6F92\u704C\u6F92\u7019\u6F92\u702B\u6F75\u7022\u6F9D\u7022\u6F97\u7029\u6F97\u7022\u6F9D\u7022\u6F9D\u7022\u6F97\u7029\u6F97\u7022\u6F9D\u702D\u6F83\u7032\u6F83\u7028\u6F83\u7039\u6FF6\u704B\u6F4B\u7029\u6F4B\u7046\u6EF1\u70AA\u6FE9\u70AA\u6FE9\u70AA\u6FE9\u70AA\u6FE9\u70AA\u6FE9\u70AA\u6FE9\u7098\u6FD6\u7098\u6FD6\u7098\u6FD6\u7098\u6FD6\u7019\u6F65\u7036\u6EE7\u7032\u6FB1\u7032\u6FB1\u702E\u700E\u7041\u6F79\u705E\u6FB0\u7023\u7052\u7022\u708A\u7022\u6FF4\u7035\u6FA9\u7023\u6F96\u7023\u6F94\u7023\u6F94\u70BC\u6F2B\u7016\u6F2B\u7023\u6FF2\u7023\u6FF2\u7023\u6FF2\u7023\u6FF2\u7023\u6FF2\u7023\u6FF2\u7023\u6FF2\u7023\u6FF2\u7023\u6FF2\u7023\u6FF2\u7023\u6FF2\u7023\u6FF2\u7023\u6FF2\u7023\u6FF2\u7023\u6FF2\u7023\u6FF2\u7023\u6FF2\u7023\u6FF2\u7023\u6FF2\u7023\u6FF2\u7023\u7046\u7032\u7000\u7023\u6F81\u7034\u7000\u703C\u6FE5\u703D\u6FE5\u7037\u6F3A\u7037\u6F3A\u701F\u6FE3\u703C\u6FE7\u703C\u6FE7\u7000\u6F64\u7014\u6F2B\u7000\u6F64\u7027\u6F0E\u701F\u6FE3\u7030\u6FE1\u7032\u7000\u7032\u7000\u7028\u6FB0\u7036\u6FB0\u7028\u6FB0\u7032\u6F2B\u7032\u6F2B\u7040\u7000\u7040\u7000\u7032\u7067\u7037\u7039\u7037\u7039\u7065\u6F45\u702D\u6EDF\u702D\u6FA9\u702D\u6FA9\u702D\u6FA9\u702D\u6F62\u702D\u6F62\u70BC\u6F2B\u7016\u6F2B\u704D\u6F2B\u7041\u6F2B\u7049\u6F2B\u7041\u6F2B\u70B2\u6F2B\u7016\u6F2B\u7038\u6F4F\u7016\u6F4F\u7045\u6F64\u7045\u6F64\u7036\u6F8C\u705C\u6F8C\u7034\u6FC3\u7037\u703A\u7037\u7039\u7037\u7039\u7037\u6FD3\u7037\u6FD3\u7037\u6FF6\u7037\u7039\u7037\u7039\u7037\u6FD3\u7037\u6FD3\u7037\u703A\u7038\u7039\u7037\u7039\u7037\u6FD3\u7037\u6FD3\u7014\u6FD3\u7037\u7039\u7037\u6FD3\u7037\u6FD3\u703B\u6F64\u703B\u6F64\u7047\u6F64\u7048\u6F64\u7037\u7039\u7037\u7039\u7037\u7039\u7037\u7039\u7037\u7039\u7037\u7039\u703B\u6F64\u703B\u6F64\u7037\u7039\u7037\u7039\u7037\u7039\u7037\u7039\u7032\u7039\u7037\u7039\u7037\u7039\u7037\u7039\u7037\u7039\u7037\u7039\u7037\u7039\u7037\u7039\u7037\u7039\u7037\u6F64\u7037\u6F64\u7037\u6F64\u7037\u6F64\u7037\u6F64\u7037\u6F64\u7037\u6F64\u7035\u6F64\u7035\u6F64\u7037\u6F64\u7037\u6F64\u7037\u6F64\u7037\u6F64\u7037\u6F64\u7037\u6F64\u7037\u6F66\u7036\u6F64\u7037\u6F64\u7037\u7039\u708D\u7000\u708D\u7000\u7057\u6F5D\u7087\u6F5D\u7046\u6F67\u7060\u6F67\u7045\u704E\u703C\u704E\u703B\u7040\u7045\u6FE3\u7045\u6F8C\u7045\u6F8C\u705C\u6F8C\u705C\u6F8C\u7037\u6FA4\u7037\u6FA4\u7037\u6FA4\u7037\u6FBB\u7037\u6FBB\u7037\u7039\u7026\u7039\u703C\u6F66\u7026\u7043\u7026\u7043\u7045\u6F64\u7045\u6F64\u7026\u70DC\u70DE\u6F64\u7026\u7043\u7045\u6F64\u7037\u703A\u7037\u703A\u703C\u6F64\u703C\u6F64\u7037\u703A\u7037\u703A\u703C\u6F64\u703C\u6F64\u7037\u703A\u7037\u703A\u703C\u6F64\u703C\u6F64\u7037\u703A\u7037\u703A\u703B\u6F64\u703B\u6F64\u7037\u6FDF\u7039\u6F64\u7037\u6FDF\u7039\u6F64\u7037\u7078\u7037\u6FDF\u7037\u7078\u7037\u6FDF\u7037\u7078\u7037\u6FDF\u7037\u7078\u7037\u6FDF\u7039\u6F64\u7039\u6F64\u7037\u7078\u7037\u7039\u7037\u7039\u7037\u6FFE\u7037\u6FFE\u7037\u6F73\u7040\u6EE5\u702D\u6FE6\u7040\u6EE6\u7040\u6EFA\u702D\u6FE6\u703F\u6EFA\u7087\u6FFB\u7087\u6FFB\u7054\u6FB5\u7054\u6FB5\u7055\u6F43\u702E\u700E\u706E\u6FC5\u706C\u6F2B\u7077\u6F2B\u7046\u6F2B\u7046\u6F2B\u7073\u6F2A\u7090\u6F2A\u7064\u6F2B\u709F\u6F2B\u70BC\u6F2B\u7016\u6F2B\u70BC\u6F2B\u7016\u6F2B\u70BC\u6F2B\u7016\u6F2B\u7049\u6F2B\u7049\u6F2B\u7022\u6F71\u705E\u6F71\u7056\u6F71\u702A\u6F71\u70BC\u6F2B\u7016\u6F2B\u7032\u6F65\u70B1\u6F64\u702A\u6FB8\u7032\u7000\u7032\u7000\u700B\u7000\u7018\u7000\u7039\u6FF3\u704D\u700C\u702A\u7000\u702A\u7000\u7017\u6F38\u702A\u6F38\u7028\u7000\u7028\u7000\u701D\u6FB8\u7024\u6FB8\u701D\u6FBC\u7024\u6FBC\u7022\u6FC6\u701A\u6FC6\u7022\u6FC6\u701A\u6FC6\u7032\u6FB1\u7032\u6FB1\u7032\u6FB1\u7032\u6FB1\u7032\u6FB1\u7018\u6F89\u7032\u6F89\u7032\u6F89\u7032\u6F89\u7032\u6F89\u7032\u6F89\u7032\u6F89\u7032\u6F89\u7032\u6F4D\u7032\u6F89\u7032\u6F89\u7032\u6F89\u7032\u6F89\u7032\u6F89\u7032\u6F89\u702D\u6F62\u702D\u6F62\u702D\u6F62\u702D\u6F62\u702D\u6F62\u7040\u6F31\u7023\u6F81\u7023\u6EFD\u7023\u6F81\u700F\u6F81\u7046\u6F3F\u7030\u6FE7\u7050\u6FE7\u705D\u6FB0\u705D\u6FB0\u705D\u6FB0\u705E\u6FB0\u705D\u6FB0\u704A\u6F9C\u704A\u6F9C\u70B1\u6F8C\u70B0\u6F8C\u70B1\u6F8C\u70B1\u6F8C\u7046\u7000\u7046\u7000\u7046\u6F43\u7032\u7067\u702D\u6F63\u7018\u6FF8\u7040\u7000\u702F\u6F64\u702F\u6F64\u7030\u6F64\u703C\u6FB2\u7030\u6F43\u7023\u6F81\u7023\u6F81\u7020\u6F0F\u702D\u6EDF\u7032\u6F0F\u7032\u6F0F\u7061\u6F0D\u7061\u6F0D\u7020\u6F0D\u7020\u6F0D\u7041\u6F0D\u7041\u6F0D\u7037\u6FF3\u702E\u6F22\u705E\u6FB0\u705E\u6FB0\u7055\u6EBB\u7055\u6EBB\u7040\u6FE7\u7040\u6FE7\u704D\u6F2B\u7041\u6F2B\u705D\u6FDC\u705D\u70BE\u7035\u6EFD\u7035\u6EFD\u7035\u6EFD\u705E\u6EF8\u705E\u6EF8\u705E\u6EFD\u705E\u6EFD\u7053\u6EFD\u7053\u6EFD\u7032\u6EFD\u703A\u6EFD\u7021\u6EC0\u7020\u6EC0\u7020\u6EC0\u7020\u6EC0\u7020\u6EC0\u7020\u6EC0\u7020\u6EC0\u7020\u6EC0\u7020\u6EC0\u7020\u6EC0\u7020\u6EC0\u7020\u6EC0\u7020\u6EC0\u7020\u6EC0\u7020\u6EC0\u7020\u6EC0\u7020\u6EC0\u7020\u6E45\u705D\u6F04\u702D\u6EFE\u706E\u6EDD\u7062\u6F81\u70D7\u6ED4\u7030\u6FD7\u7030\u6FD7\u7030\u6FD7\u7030\u6F15\u7030\u6F3A\u7029\u6F2E\u7030\u6FD7\u7030\u70DC\u7030\u6FFB\u7030\u6FFB\u7030\u6FFB\u7032\u6F89\u7032\u6F89\u7032\u703B\u702B\u6FE7\u702B\u6F7E\u702B\u6FD3\u7039\u6FE0\u7032\u6F89\u7032\u6F89\u7032\u6F89\u7032\u6F08\u7032\u6F89\u7023\u6F81\u7023\u6F81\u7023\u6F81\u7030\u7073\u7030\u7073\u703C\u6F56\u701E\u7000\u7030\u6FE1\u7030\u6FE1\u7030\u6FE1\u7030\u6FE1\u7030\u6FE1\u7030\u6FE1\u7030\u6E6A\u7030\u6E6A\u7030\u6E6A\u7030\u6E6A\u7030\u6FD9\u7030\u6FD8\u700A\u6FE1\u700A\u6F9F\u7030\u6FE1\u7030\u6FE1\u700A\u6FE1\u701F\u6FE3\u701F\u6FE3\u701F\u6FE3\u701F\u6FE3\u7020\u6FE3\u7020\u6FE3\u706A\u6FE3\u7017\u6FE3\u701F\u6FB3\u701F\u6FE3\u701F\u6FE3\u701F\u6FE3\u701F\u6FE3\u701F\u6FE3\u701E\u6F75\u701E\u6EDF\u702D\u7000\u701E\u6FE3\u701E\u6EDF\u7046\u6EE4\u7046\u6EE4\u7030\u6F97\u7030\u701C\u7030\u6F43\u7030\u6F64\u7030\u7094\u7030\u6FF3\u7030\u6FDA\u7030\u6FE5\u7030\u7078\u7030\u7019\u7030\u6F6E\u7030\u6F73\u7030\u6F73\u7030\u6FE5\u7030\u7059\u7030\u7078\u7030\u7078\u7030\u6F96\u7026\u701C\u702C\u6FE6\u704C\u6FE6\u702C\u6FE6\u704C\u6FE6\u7038\u6F77\u7038\u6F77\u703C\u6F77\u703C\u6F77\u703C\u6F77\u703C\u6F77\u703C\u6F77\u703C\u6F77\u7030\u6EED\u7030\u6EED\u703C\u6F28\u7038\u6F28\u7030\u6ECB\u7030\u6ECB\u7038\u6E58\u7038\u6E58\u7030\u6F50\u7030\u6F50\u703C\u6E97\u703C\u6E97\u7037\u6EAE\u7037\u6EAE\u703C\u6E97\u703C\u6E97\u7038\u6F86\u7038\u6F86\u7038\u6F86\u7038\u6F86\u703C\u6F2D\u703C\u6F2D\u703C\u6F24\u703C\u6F24\u7035\u6F5C\u702B\u6F5C\u7030\u6EF5\u7030\u6EF5\u702C\u6FE6\u704C\u6FE6\u7019\u6F99\u703C\u6FE6\u703C\u6FE6\u7023\u6FE6\u703C\u6FE6\u7032\u6F77\u702D\u6F77\u702D\u6FE1\u704C\u6FE1\u703C\u6F99\u703C\u6F99\u7030\u701C\u7040\u6F99\u7040\u6F99\u703C\u6F28\u703C\u6F28\u703C\u6F2D\u703C\u6F2D\u7041\u6EFC\u7041\u6EFC\u7030\u6EED\u7030\u6EED\u7030\u6ECB\u7030\u6ECB\u7019\u6FE6\u7019\u6FE6\u703C\u6FE6\u703C\u6FE6\u703C\u6F99\u703C\u6F99\u703C\u6F99\u703C\u6F99\u703C\u6F99\u703C\u6F99\u7040\u6F2D\u7041\u6F2D\u703C\u6F5C\u703C\u6F5C\u703C\u6EEE\u703C\u6EEE\u703D\u6EC1\u7042\u6EC1\u7040\u6FCB\u7040\u6FCB\u7032\u6FE6\u7046\u6FE6\u703C\u6F99\u703C\u6F99\u703C\u6F2F\u703C\u6F2F\u703C\u6F2F\u703C\u6F2F\u703C\u6FE6\u703C\u6FE6\u7030\u6FE1\u7030\u6F80\u7030\u6F9F\u700B\u6FF6\u7030\u6FF6\u7040\u7000\u7030\u7000\u7030\u7000\u7030\u7000\u703C\u7000\u702E\u7000\u703C\u7000\u702E\u7000\u7039\u7000\u7030\u7000\u7030\u7000\u7030\u6F47\u7030\u7000\u7030\u7000\u7030\u7012\u7030\u7012\u7017\u6F43\u7065\u6F66\u7065\u6F66\u7065\u6F45\u700A\u6F43\u7030\u6F43\u7083\u6F43\u700C\u6F43\u7117\u6F9A\u703A\u6F65\u705A\u6F65\u703C\u6F24\u703C\u6F24\u702E\u6F22\u7085\u6E95\u702E\u6F22\u7064\u6F43\u7064\u6E95\u702D\u6F63\u702D\u6F63\u702D\u6F63\u702D\u6F63\u7027\u6F0E\u7027\u6F0E\u7027\u6F0E\u7027\u6F0E\u702D\u6F63\u7028\u6F4C\u7028\u6F4C\u7032\u70AC\u7032\u70AC\u7024\u6F97\u7024\u6F97\u7052\u6F4E\u7052\u6F4E\u7018\u6F81\u7046\u6EE6\u702D\u6FA0\u702D\u6FA0\u7028\u6F97\u7028\u6F97\u701A\u7010\u701A\u7010\u701A\u7010\u7032\u7004\u7032\u7004\u7032\u6F89\u7032\u6F89\u7046\u7039\u703C\u6F18\u7034\u6FC3\u7037\u703A\u7038\u7039\u7037\u7039\u7037\u7039\u7037\u7039\u7037\u7039\u7037\u7039\u7037\u7039\u7037\u7039\u7037\u7039\u7032\u7039\u7037\u7039\u7037\u7039\u7037\u7039\u7037\u7039\u7037\u6F73\u702D\u6FE6\u702D\u6FE6\u7037\u6F3D\u7037\u6F3D\u7037\u7039\u7037\u6F73\u7037\u7039\u7037\u6F73\u7037\u6FFE\u7037\u6FFE\u703C\u6FE2\u703C\u6FE2\u7023\u6FF3\u702D\u6F82\u702D\u6F81\u700A\u7000\u702D\u705D\u7025\u6FD7\u7009\u6F17\u7012\u6FF2\u7000\u7000\u7037\u6F27\u7009\u7000\u7010\u7000\u7031\u6FED\u700E\u7000\u7010\u7000\u7010\u7000\u7025\u6FED\u7015\u7000\u7014\u7000\u7003\u6FA0\u701E\u7000\u7013\u7000\u700E\u7000\u7010\u6FEE\u7023\u6FED\u7010\u7000\u7023\u6F50\u701A\u7000\u7023\u6FED\u701F\u7000\u7010\u6FED\u7010\u6FEE\u7013\u6FF1\u7010\u7000\u700F\u7000\u701C\u7000\u7019\u6FF2\u7011\u6FF2\u7019\u6FF2\u7019\u6FF2\u7019\u6FF2\u700E\u7000\u701C\u6F32\u700F\u7000\u700F\u7000\u6FC7\u6F35\u7016\u7000\u700F\u7000\u700F\u7000\u7015\u7000\u7019\u6FF2\u7013\u6F33\u7022\u6F33\u701C\u7000\u7019\u6FF2\u7013\u6FF4\u7010\u6FF2\u7015\u6FF2\u7017\u6FF2\u700C\u7000\u7010\u6F33\u7015\u7000\u7023\u7000\u7026\u7000\u7032\u6FF4\u7026\u7000\u7026\u7000\u7026\u7000\u7032\u6FF4\u7026\u7000\u7026\u7000\u703C\u6FF4\u7026\u7000\u7026\u7000\u7026\u7000\u7026\u7000\u7032\u6FF5\u7026\u7000\u7032\u6F68\u7026\u7000\u7032\u6FF6\u7019\u7000\u7041\u6FF3\u703C\u6FF0\u703C\u6FF0\u7019\u7000\u7023\u7000\u703C\u7000\u7028\u6FF6\u702D\u6FF5\u7028\u6FF5\u7028\u6FF4\u7028\u6FF5\u7028\u6F45\u7014\u6F45\u7032\u6FF5\u6FF0\u6F45\u702D\u6FF5\u702D\u6FF6\u701E\u6FF8\u701E\u6FF8\u7028\u6FF5\u6FE2\u6F49\u7028\u6F49\u701E\u7000\u7032\u6FF5\u7028\u6FF7\u701E\u6FF7\u7048\u6FF7\u7048\u6FF7\u701E\u6FF7\u701E\u6F49\u702A\u6FF2\u7027\u7000\u702A\u7000\u7037\u6FF4\u702A\u7000\u702A\u7000\u702C\u7000\u7037\u6FF4\u702A\u7000\u702A\u7000\u7042\u6FF4\u702A\u7000\u702A\u7000\u702A\u7000\u702A\u7000\u7037\u6FF0\u702A\u7000\u7037\u6F66\u702A\u7000\u7037\u6FF6\u701C\u7000\u7048\u6FF6\u7042\u6FF1\u7042\u6FEF\u701C\u7000\u7027\u7000\u7042\u7000\u702C\u6FF6\u7032\u6FF8\u702C\u6FF6\u702C\u6FF2\u702C\u6FF6\u702C\u6F32\u7016\u6F35\u7032\u6FF6\u7037\u6FF7\u6FEE\u6F31\u7037\u6FF5\u7032\u6FF7\u7021\u6FF7\u7021\u6FF6\u702C\u6FF6\u6FDF\u6F33\u702C\u6F33\u7021\u7000\u7037\u6FF5\u702C\u6FF6\u7021\u6FF6\u7034\u6FF2\u7034\u6FF2\u7021\u6FF8\u7024\u6F33\u7023\u6FED\u701F\u6FF1\u7025\u6FF1\u7024\u6FF1\u7053\u6FF1\u7009\u6F4F\u7028\u6FF1\u7026\u6FF1\u7052\u6FF1\u7026\u6FF1\u7052\u6FDA\u7043\u6FF1\u702B\u6FF1\u7024\u6FF1\u7023\u6FF1\u7023\u6FF1\u7024\u6FF1\u705B\u6F1E\u703B\u6FF1\u701E\u6FF5\u702F\u6FF4\u701E\u6FF5\u701E\u6FF5\u701B\u6F2F\u7026\u6FF5\u7053\u6FF5\u7009\u6F25\u7028\u6FF5\u7030\u6FF5\u7031\u6FF5\u7031\u6FF5\u7017\u6F2F\u701E\u6F2F\u7030\u7000\u703E\u6FF5\u701E\u6FF5\u701E\u6FF5\u701E\u6FF5\u701E\u6FF5\u7041\u6FF5\u701E\u6F25\u7034\u6FF5\u7032\u6FEB\u7037\u6FEB\u703C\u6FEB\u703C\u6FEB\u705F\u6FEB\u7041\u6FEB\u7052\u6FEB\u7041\u6FEB\u702F\u6FEB\u7013\u6F20\u702D\u6FEB\u7028\u6FEB\u703C\u6FEB\u703C\u6FEB\u7048\u6FEB\u7037\u6FEB\u7048\u6FCC\u7037\u6FEB\u7051\u6FEB\u7041\u6FEB\u703C\u6FEB\u703C\u6FEB\u703C\u6FEB\u7040\u6FEB\u703C\u6F20\u7032\u6FEB\u7023\u6FF2\u703C\u6FF2\u7023\u6FF2\u701C\u6FF2\u7023\u6FF2\u7019\u6F33\u701B\u6F20\u7037\u6FF2\u7028\u6FF2\u7029\u6F21\u7037\u6FF2\u702B\u6FF2\u702D\u6FF2\u702D\u6FF2\u7023\u6FF2\u7019\u6F33\u7023\u6F33\u7028\u7000\u7033\u6FF2\u702F\u6FF2\u701F\u6FF2\u7028\u6FF2\u7028\u6FF2\u703F\u6FF2\u7028\u6F20\u703D\u6FF2\u702F\u6FEA\u7030\u6FE8\u7032\u6FE8\u7032\u6FE8\u7032\u6F34\u7032\u6FE8\u7032\u6F34\u7032\u6FEA\u702F\u6FE8\u7032\u6FEA\u7032\u6FEA\u7025\u6FE8\u7028\u6F34\u7025\u6FC0\u7037\u6FE8\u702F\u6FE8\u7032\u6FEA\u7030\u6FE8\u7030\u6FE8\u702E\u6FE1\u702F\u6F34\u7033\u6FEE\u702E\u6FEE\u7039\u6FEE\u702D\u6FEE\u702F\u6FEE\u701B\u6F2F\u7033\u6F2F\u7030\u6F2F\u702A\u6FEE\u702C\u6F2F\u7030\u6FEE\u702E\u6FEE\u703B\u6FE7\u703C\u6FE7\u7032\u6FEE\u7026\u6F2F\u7033\u6F2F\u7026\u6FEE\u7031\u6FE8\u7026\u6FEE\u703C\u6FEE\u702F\u6FEE\u7029\u6FE7\u702D\u6F43\u7030\u6F2F\u702B\u6F2F\u7032\u7000\u7046\u7000\u7046\u7000\u7046\u7000\u7046\u7000\u702D\u6FF3\u704E\u7000\u7028\u6FF2\u7046\u7000\u7046\u7000\u7046\u7000\u702D\u6FF2\u7023\u6FF2\u7014\u7000\u7041\u6FF2\u700C\u7000\u700C\u7000\u7023\u7000\u700C\u7000\u702D\u6FF6\u7032\u6FF6\u702D\u6FF6\u702D\u6FF6\u702D\u6FF6\u7019\u7000\u702D\u6F26\u7037\u7000\u7037\u7000\u6FF1\u6F27\u7032\u7000\u7037\u7000\u7037\u7000\u7037\u7000\u702D\u6FF4\u7037\u6F26\u702D\u6F26\u7037\u7000\u7024\u6FF6\u7014\u6FF6\u7037\u6FF6\u7014\u7000\u7014\u7000\u701E\u7000\u7014\u6F26\u702B\u7000\u7032\u6FE7\u7032\u6FED\u7036\u6FED\u7036\u6FED\u7036\u6FED\u7036\u6F33\u7036\u6FED\u702A\u6F33\u7036\u6FE7\u7036\u6F33\u702A\u6FE7\u7033\u6FE7\u7032\u6FE7\u7032\u6FE7\u7036\u6FED\u7032\u6F33\u7036\u6FC5\u7032\u6FE7\u7036\u6FED\u7036\u6FE7\u7036\u6FE7\u7032\u6FED\u7032\u6FED\u7032\u6FE7\u7032\u6F33\u702C\u6F3D\u7037\u6FE8\u702D\u6FE8\u7037\u6FE8\u7030\u6FE7\u7037\u6FE8\u7021\u6F2A\u7037\u6F25\u702D\u6F25\u7023\u6FE8\u7028\u6F25\u7030\u6FE8\u702D\u6FE8\u7028\u6FE8\u7028\u6FE8\u702D\u6FE8\u7024\u6F25\u7037\u6F25\u7028\u6FE8\u7034\u6FE1\u702D\u6FE9\u7023\u6FE8\u7037\u6FE8\u7037\u6FE8\u7032\u6F2F\u7037\u6F25\u7024\u6F25\u701F\u7000\u704A\u7000\u701B\u6FF2\u704A\u7000\u704A\u7000\u704A\u7000\u701B\u6FF2\u704A\u7000\u702D\u7000\u700C\u6FF2\u704A\u7000\u704A\u7000\u704B\u7000\u704A\u6FF2\u701E\u6FF2\u704A\u7000\u701E\u6F51\u704A\u7000\u7020\u6FF2\u700F\u7000\u7045\u6FF2\u701F\u6FF5\u701D\u6FF5\u701F\u7000\u7015\u7000\u701C\u7000\u7023\u6FF6\u703F\u6FF6\u7017\u6FF6\u701C\u6FF5\u7017\u6FF6\u7014\u7000\u7015\u6F28\u703F\u7000\u7040\u7000\u6FB6\u6F28\u703F\u7000\u703D\u7000\u7041\u7000\u703F\u7000\u701C\u6FF6\u7043\u6F28\u701C\u6F28\u703F\u7000\u7031\u6FF6\u7001\u6FF6\u703F\u6FF5\u701F\u6FF2\u701C\u6FF2\u701E\u7000\u701C\u6F28\u7019\u7000\u7019\u7000\u7050\u7000\u7031\u6FED\u7050\u7000\u7050\u7000\u7050\u7000\u7025\u6FED\u7050\u7000\u7041\u7000\u700F\u6FA0\u7050\u7000\u7050\u7000\u7050\u7000\u7050\u6FEE\u7023\u6FEE\u7050\u7000\u7023\u6F50\u7050\u7000\u7023\u6FED\u700E\u7000\u704B\u6FED\u7019\u6FEE\u701E\u6FF1\u7028\u7000\u7014\u7000\u7019\u7000\u7017\u6FF2\u7037\u6FF3\u7019\u6FF2\u7019\u6FF2\u7019\u6FF3\u700E\u7000\u701C\u6F32\u7037\u7000\u7032\u7000\u6FC7\u6F35\u7037\u7000\u7037\u7000\u7037\u7000\u7037\u7000\u7019\u6FF2\u7037\u6F33\u7019\u6F33\u7037\u7000\u7019\u6FF3\u7007\u6FF4\u7037\u6FF1\u700F\u6FF2\u7011\u6FF2\u7014\u7000\u7012\u6F33\u7015\u7000\u701F\u7000\u704A\u7000\u7060\u6FF2\u704A\u7000\u704A\u7000\u704A\u7000\u7061\u6FF2\u704A\u7000\u703B\u7000\u7016\u6FF2\u704A\u7000\u704A\u7000\u704B\u7000\u704A\u6FF2\u7063\u6FF2\u704A\u7000\u7063\u6F51\u704A\u7000\u703E\u6FF2\u70A1\u7000\u7075\u6FF2\u70C4\u6FF5\u70C2\u6FF5\u701F\u7000\u70BA\u7000\u701C\u7000\u7037\u6FF6\u704A\u6FF6\u7043\u6FF6\u7048\u6FF5\u7045\u6FF6\u7065\u7000\u6FF9\u6F28\u703F\u7000\u7045\u7000\u6F8A\u6F28\u703F\u7000\u703D\u7000\u7041\u7000\u703F\u7000\u704C\u6FF6\u700E\u6F28\u7048\u6F28\u703F\u7000\u703D\u6FF6\u7060\u6FF6\u7059\u6FF5\u708F\u6FF2\u708C\u6FF2\u701E\u7000\u6FED\u6F28\u7019\u7000\u7019\u7000\u7050\u7000\u7077\u6FED\u7050\u7000\u7050\u7000\u7050\u7000\u706B\u6FED\u7050\u7000\u704F\u7000\u700F\u6FA0\u7050\u7000\u7050\u7000\u7050\u7000\u7050\u6FEE\u706A\u6FEE\u7050\u7000\u7069\u6F50\u7050\u7000\u7042\u6FED\u709D\u7000\u707B\u6FED\u70C1\u6FEE\u70C6\u6FF1\u7028\u7000\u70BC\u7000\u7019\u7000\u7030\u6FF2\u7033\u6FF3\u7047\u6FF2\u7045\u6FF2\u7047\u6FF3\u7048\u7000\u7002\u6F32\u7037\u7000\u703B\u7000\u6FA6\u6F36\u7037\u7000\u7037\u7000\u7037\u7000\u7037\u7000\u7048\u6FF2\u7003\u6F33\u7045\u6F33\u7037\u7000\u7025\u6FF3\u7062\u6FF4\u7051\u6FF1\u7081\u6FF2\u7083\u6FF2\u7014\u7000\u6FE5\u6F34\u7015\u7000\u701A\u7000\u701D\u7000\u7028\u6FF5\u7019\u7000\u701F\u7000\u7022\u7000\u7025\u6FF5\u701A\u7000\u7054\u7000\u7055\u6FF5\u701E\u7000\u7025\u7000\u7015\u7000\u701F\u7000\u7038\u6FF5\u701F\u7000\u7038\u6F75\u701A\u6FF5\u7034\u6FF5\u701A\u7000\u7009\u6FF5\u7011\u6FF8\u700B\u6FF8\u7018\u7000\u700F\u7000\u702F\u7000\u703A\u6FFA\u7011\u6FFA\u704E\u6FFA\u7029\u6FFA\u703C\u6FFA\u702A\u7000\u701D\u6F1C\u7011\u7000\u7054\u7000\u702F\u6F1D\u7018\u7000\u703F\u7000\u7002\u7000\u7011\u7000\u703E\u6FFA\u7011\u6F23\u702D\u6F23\u7025\u7000\u7048\u6FFA\u7019\u6FFA\u7011\u6FFA\u7016\u6FFC\u700F\u6FFC\u7017\u7000\u7018\u6F1D\u7020\u7000\u702F\u6FF5\u6F84\u6F31\u7009\u7000\u7010\u7000\u7010\u7000\u7010\u7000\u7010\u7000\u701C\u7000\u7015\u7000\u7023\u6FEE\u7014\u7000\u701E\u7000\u7009\u7000\u700E\u7000\u7010\u6FEE\u701C\u7000\u7023\u6FED\u7015\u7000\u7010\u7000\u7023\u6FEE\u700E\u7000\u701F\u7000\u7003\u7000\u7012\u7000\u7010\u7000\u7003\u7000\u7023\u7000\u7010\u6FF2\u7019\u6FF2\u702D\u6F33\u700C\u6F33\u701A\u6FF2\u701C\u6FF2\u7017\u6F33\u700C\u6F33\u7019\u6FF2\u700F\u6FF2\u7015\u7000\u7013\u6FEE\u702D\u6F33\u700F\u6FF2\u7017\u6F33\u7019\u6FF2\u7014\u6FEE\u702D\u6F33\u7017\u6F35\u7019\u6FF2\u7012\u6FF2\u700C\u6FF2\u7018\u6F33\u7015\u6F33\u700C\u6F33\u701A\u6FF2\u7019\u6FF2\u7019\u6FF2\u700C\u6FF2\u700C\u6FED\u7018\u6F33\u7019\u6F33\u7009\u6FF2\u7023\u7000\u7026\u7000\u7026\u7000\u701E\u7000\u7026\u7000\u703C\u7000\u7026\u7000\u7032\u6FF5\u7026\u7000\u7026\u7000\u7023\u7000\u7026\u7000\u7026\u7000\u7034\u7000\u7032\u6FF5\u7026\u7000\u7026\u7000\u7032\u6FF5\u703A\u7000\u7019\u7000\u701C\u7000\u7019\u7000\u7019\u7000\u701C\u7000\u7020\u7000\u702A\u6FF1\u7028\u6FF6\u7019\u6F49\u7023\u6F45\u7028\u6FF5\u7019\u6FF5\u7028\u6F49\u701E\u6F49\u7028\u6FF5\u7032\u6FF5\u7032\u7000\u7032\u6FF0\u701E\u6F49\u7032\u6FF7\u7019\u6F49\u7028\u6FF5\u7023\u6FF3\u701E\u6F49\u7023\u6F49\u7028\u6FF5\u701E\u6FFB\u701E\u6FF5\u7032\u6F49\u701E\u6F36\u701E\u6F49\u7014\u6FF5\u7028\u6FF5\u7028\u6FF5\u7014\u6FF6\u700C\u6FF3\u7028\u6F49\u7028\u6F45\u701E\u6FF5\u7027\u7000\u702A\u7000\u702A\u7000\u7020\u7000\u702A\u7000\u7042\u7000\u702A\u7000\u7037\u6FF0\u702A\u7000\u702A\u7000\u7027\u7000\u702A\u7000\u702A\u7000\u7039\u7000\u7037\u6FF0\u7027\u7000\u702A\u7000\u7037\u6FF0\u7040\u7000\u701C\u7000\u701F\u7000\u701C\u7000\u701C\u7000\u701E\u7000\u7039\u7000\u702B\u6FF0\u702C\u6FF4\u701C\u6F33\u702C\u6F36\u702C\u6FF8\u701C\u6FF6\u702C\u6F35\u7021\u6F33\u702C\u6FF5\u7037\u6FF7\u7037\u7000\u7037\u6FF0\u7021\u6F33\u7037\u6FF6\u701C\u6F35\u702C\u6FF6\u7027\u6FF3\u7021\u6F33\u7027\u6F35\u702C\u6FF6\u7021\u6FF9\u7021\u6FF6\u7037\u6F33\u7021\u6F34\u7021\u6F33\u7016\u6FF6\u702C\u6FF6\u702C\u6FF6\u7021\u6FF3\u6FF4\u6FF1\u702C\u6F33\u702C\u6F33\u7021\u6FF6\u7019\u7000\u7050\u7000\u7050\u7000\u7028\u7000\u7050\u7000\u7019\u7000\u7050\u7000\u7023\u6FED\u7041\u7000\u7050\u7000\u7028\u7000\u7050\u7000\u7050\u6FEE\u7023\u7000\u7023\u6FEE\u7050\u7000\u7050\u7000\u7023\u6FED\u701C\u7000\u700E\u7000\u7014\u7000\u7019\u7000\u7028\u7000\u700F\u7000\u7020\u7000\u702D\u6FE2\u7028\u6FF2\u7027\u6F33\u700A\u6F33\u7019\u6FF2\u7019\u6FF2\u701C\u6F33\u7023\u6F33\u7017\u6FF2\u7035\u6FF2\u7037\u7000\u7012\u6FF2\u7027\u6F33\u7037\u6FF2\u701C\u6F33\u7019\u6FF2\u700A\u6FF2\u7026\u6F33\u701A\u6F33\u7019\u6FF2\u7006\u6FF2\u7023\u6FF2\u7019\u6F33\u7009\u6F33\u7019\u6F33\u702A\u6FF2\u7019\u6FF2\u7019\u6FF2\u7023\u6FF2\u700E\u6FF2\u7019\u6F33\u7019\u6F33\u7006\u6FF2\u7019\u7000\u703C\u7000\u703C\u7000\u7028\u7000\u703C\u7000\u7019\u7000\u703C\u7000\u705A\u6FED\u7032\u7000\u703C\u7000\u7014\u7000\u703C\u7000\u703C\u6FEE\u702F\u7000\u705A\u6FEE\u703C\u7000\u703C\u7000\u705A\u6FED\u7015\u7000\u7057\u7000\u705B\u7000\u7048\u7000\u7014\u7000\u707D\u7000\u702F\u7000\u7078\u6FE2\u702F\u6FF2\u6FF4\u6F33\u7054\u6F34\u701E\u6FF2\u702D\u6FF2\u7031\u6F33\u7026\u6F33\u7041\u6FF2\u7038\u6FF2\u7026\u7000\u7012\u6FF2\u6FF4\u6F33\u7029\u6FF2\u702B\u6F33\u702D\u6FF2\u702D\u6FF2\u6FDF\u6F33\u7034\u6F33\u702D\u6FF2\u702A\u6FF2\u703D\u6FF2\u7037\u6F33\u6FB0\u6F33\u704B\u6F33\u7040\u6FF2\u702D\u6FF2\u702D\u6FF2\u7036\u6FF2\u6FF6\u6FF6\u7030\u6F33\u7026\u6F33\u7028\u6FF2\u7010\u7000\u702D\u6F33\u7018\u6FF3\u7041\u7000\u7011\u7000\u7010\u6FF2\u7013\u7000\u7016\u6FF8\u701C\u6FF3\u7011\u7000\u701C\u6FF3\u701A\u6FF3\u701C\u6FF2\u705B\u7000\u7030\u7000\u7031\u6FF2\u7014\u7000\u7023\u6FF2\u701C\u6FF2\u7018\u7000\u701C\u6FF2\u701C\u6FF4\u7017\u6FF2\u706C\u7000\u7023\u7000\u701F\u6FF2\u700B\u7000\u7024\u6FF2\u7020\u6FF2\u7026\u6FF8\u7031\u6FF2\u701C\u6FEB\u7018\u6FF3\u7052\u7000\u7014\u7000\u7012\u6FF3\u7013\u7000\u700D\u6FF3\u701A\u6FF3\u7023\u7000\u701C\u6FF3\u701A\u6FF3\u7037\u6FF5\u706E\u7000\u7034\u7000\u702B\u6FF5\u701D\u7000\u7034\u6FF5\u703A\u6FF5\u702B\u6FF5\u702B\u6FF5\u703A\u6FF5\u7036\u7000\u703B\u6EF9\u703C\u6F38\u703B\u6FDE\u703C\u6FA3\u703B\u6FA4\u703C\u6F38\u703A\u6FE4\u703A\u6EE2\u703A\u7000\u703A\u6FC0\u703B\u6E56\u703B\u6FBE\u703A\u6F9A\u703A\u6F39\u703A\u6FF8\u703B\u6F98\u703A\u6FCB\u703B\u6FA4\u703A\u6F9A\u703B\u6FF9\u703B\u6FF9\u703C\u6F38\u703B\u6FDE\u703B\u6F98\u703A\u6FE4\u703A\u6F39\u703B\u6FF9\u703B\u6FBE\u703A\u6FF8\u703A\u6FCB\u703C\u6F12\u703A\u6F5A\u703A\u6FF0\u703A\u6FF0\u7046\u6F0C\u703B\u6FFA\u703C\u6FFD\u703B\u7000\u703C\u6FFE\u703A\u7000\u703B\u7000\u703C\u6FFF\u703A\u6FA2\u703C\u6FFF\u703A\u7000\u703C\u6FFE\u703C\u6FFE\u703A\u6FF0\u703A\u6FA2\u703B\u7000\u703B\u6F0A\u703B\u6F0A\u703B\u6EE3\u703B\u6FC0\u703B\u6FBE\u703B\u6F9A\u703B\u6F0A\u703B\u6F98\u703B\u6FCB\u703B\u6F9A\u703B\u6F0A\u703B\u6F98\u703B\u6F0A\u703B\u6FBE\u703B\u6FCB\u703B\u6F12\u703B\u6F31\u703B\u7000\u703B\u6FFE\u703B\u7000\u703B\u6EFB\u703B\u6FFA\u703B\u7000\u703B\u7000\u703B\u7000\u703B\u6FFE\u703B\u7000\u703B\u6FA2\u703B\u7000\u703B\u7000\u703B\u7000\u703B\u7000\u703B\u6FFE\u703B\u6FA2\u703B\u7000\u703B\u6FFE\u703B\u7000\u703B\u7000\u703B\u6F8F\u703B\u6EF9\u7040\u6EBE\u703B\u6F99\u703B\u6FAC\u703B\u6F40\u703B\u6F4C\u7040\u6EBE\u703A\u6F98\u703A\u6EED\u703B\u6F1B\u703B\u6EBA\u703A\u6F1B\u703A\u6EF5\u703B\u6EBB\u703A\u6F22\u703B\u6EF3\u703A\u6F15\u703B\u6F4C\u703A\u6EF5\u703B\u6F22\u703B\u6F22\u7040\u6EBE\u703B\u6F99\u703B\u6EF3\u703A\u6F98\u703B\u6EBB\u703A\u6EEA\u703B\u6F20\u703B\u6FE3\u703B\u6F8E\u703B\u6F8F\u703B\u6F20\u703B\u6FCE\u703B\u6ED4\u703B\u6FAA\u703B\u6F26\u703B\u6FA8\u703B\u6F84\u703B\u6F20\u703A\u6FE2\u703B\u6F83\u703A\u6FB6\u703B\u6F8F\u703B\u6F84\u703A\u6FE3\u703A\u6FE3\u703B\u6F20\u703B\u6FE3\u703B\u6F83\u703B\u6FCE\u703B\u6F20\u703A\u6FEB\u703B\u6FE3\u7029\u6F43\u7029\u6F43\u7029\u6F43\u7029\u6F43\u7029\u6F43\u7029\u6F43\u7029\u6F43\u7029\u6F43\u7029\u6F43\u7029\u6F42\u7029\u6F43\u7029\u6F42\u7029\u6F42\u7029\u6F42\u7029\u6F42\u7029\u6F43\u7029\u6F41\u7029\u6F42\u7029\u6F42\u702B\u6F42\u7029\u6F43\u700D\u6F42\u7029\u6F43\u7028\u6F42\u7028\u6F42\u7029\u6F42\u7029\u6EE4\u7038\u6EF3\u7038\u6EF3\u7038\u6EF3\u7038\u6EF3\u7038\u6EF3\u7038\u6EF3\u7038\u6EF3\u7038\u6EF3\u7038\u6EF3\u7038\u6EF3\u7038\u6EF3\u7038\u6EF3\u7038\u6EF3\u7038\u6EF3\u7038\u6EF3\u7038\u6EF3\u7038\u6EF3\u7038\u6EF3\u7038\u6EF3\u7038\u6EF3\u7038\u6EF3\u7018\u6EF3\u7038\u6EF3\u7038\u6EF3\u7038\u6EF3\u7038\u6EF3\u7038\u6E56\u708B\u6F5C\u7056\u6F5C\u7019\u6F5C\u70B4\u6F5C\u7014\u6F5C\u7000\u6F4F\u7072\u6F5C\u706D\u6F5C\u701B\u6F5C\u7000\u7302\u7000\u722A\u7000\u7256\u7000\u7302\u7000\u722A\u7000\u6EF3\u7000\u6F4F\u6DD6\u6F4B\u707F\u6F5C\u7081\u6F5C\u7055\u6F5C\u7037\u7032\u7032\u7031\u7032\u7031\u705A\u7031\u7070\u6ED9\u7070\u6ED9\u7070\u6ED9\u703C\u7031\u703C\u7031\u7076\u7031\u7076\u7027\u70B4\u6F5C\u7019\u6F5C\u70B4\u6F5C\u701B\u6F5C\u7045\u728A\u7044\u6E5A\u7000\u728A\u7000\u6E63\u7000\u728A\u7000\u6E57\u7000\u728A\u7000\u6E22\u70CD\u6F5C\u701B\u6F5C\u70B4\u6F5C\u701D\u6F5C\u7074\u6F5C\u7074\u6F5C\u7074\u6F5C\u7080\u6F5C\u7072\u6F5C\u7072\u6F5C\u7087\u6F5C\u7056\u6F5C\u7019\u6EE9\u7019\u6EE9\u7034\u7031\u7034\u7031\u7034\u7031\u7076\u7027\u7076\u7027\u7052\u7031\u7052\u7031\u703C\u7031\u703C\u7031\u703C\u7031\u705A\u7032\u708B\u6EE9\u7072\u6EE9\u7019\u6EE9\u70BE\u6EE9\u7025\u6EE9\u7000\u6F4F\u707C\u6EE9\u70BA\u6EE9\u7019\u6EE9\u7000\u7302\u7000\u7234\u7000\u7260\u7000\u7302\u7000\u7234\u7000\u6EF3\u7000\u6F4F\u6DC1\u6F1B\u707F\u6EE9\u7081\u6EE9\u7055\u6EE9\u706E\u6E6C\u706E\u6E6C\u706E\u6E6C\u70BE\u6EE9\u702F\u6EE9\u70BE\u6EE9\u702F\u6EE9\u704A\u728A\u704A\u6E5A\u7000\u728A\u7000\u6E63\u7000\u728A\u7000\u6E58\u7000\u728A\u7000\u6E22\u70E6\u6EE9\u7025\u6EE9\u70BE\u6EE9\u7026\u6EE9\u705F\u6EE9\u705B\u6EE9\u705D\u6EE9\u706C\u6EE9\u707A\u6EE9\u7087\u6EE8\u709B\u6EE6\u7064\u6EE6\u7085\u6EDF\u70B6\u6E76\u7053\u6E76\u701E\u6E76\u70E1\u6E76\u7011\u6E76\u7000\u6F4F\u708F\u6E76\u70BD\u6E76\u701E\u6E76\u7000\u7302\u7000\u7234\u7000\u7260\u7000\u7302\u7000\u7234\u7000\u6EE5\u7000\u6F4F\u6DAB\u6EE8\u707F\u6E76\u7081\u6E76\u7055\u6E76\u7070\u6E02\u7070\u6E02\u7070\u6E02\u70E1\u6E76\u700F\u6E76\u70E1\u6E76\u700F\u6E76\u704E\u728A\u704E\u6E5A\u7000\u728A\u7000\u6E51\u7000\u728A\u7000\u6E45\u7000\u728A\u7000\u6E22\u7109\u6E77\u7034\u6E77\u70E1\u6E76\u7032\u6E76\u7060\u6E76\u705F\u6E76\u7068\u6E76\u7088\u6E76\u708F\u6E76\u70A4\u6E76\u70B4\u6E77\u7073\u6E77\u707C\u6E03\u704C\u6E03\u7010\u6E03\u7127\u6E03\u701B\u6E03\u7000\u6F4F\u70AD\u6E03\u70C2\u6E03\u7010\u6E03\u7000\u7302\u7000\u723D\u7000\u7260\u7000\u7302\u7000\u723D\u7000\u6EE8\u7000\u6F4F\u6DFA\u6EB9\u707F\u6E03\u7081\u6E03\u7055\u6E03\u7070\u7000\u7070\u7000\u7127\u6E03\u701B\u6E03\u7127\u6E03\u701B\u6E03\u7054\u728A\u7054\u6E5A\u7000\u728A\u7000\u6E44\u7000\u728A\u7000\u6E2F\u7000\u728A\u7000\u6E22\u7140\u6E03\u7048\u6E03\u7127\u6E03\u7046\u6E03\u7071\u6E03\u7070\u6E03\u707E\u6E03\u708C\u6E03\u70B6\u6E03\u70AD\u6E03\u70C3\u6E03\u70C2\u6E03\u7000\u6F4F\u7000\u7302\u7000\u723C\u7000\u7269\u7000\u7302\u7000\u723C\u7000\u6EE8\u7000\u6F4F\u6DD6\u6E53\u705A\u728A\u705A\u6E5A\u7000\u728A\u7000\u6E2B\u7000\u728A\u7000\u6E29\u7000\u728A\u7000\u6E22\u733D\u7000\u733D\u7000\u7000\u7014\u70E6\u7065\u7000\u6FDD\u70E5\u7065\u7000\u7273\u7000\u6F53\u6FE7\u728A\u6FF5\u728A\u6FE7\u6D7D\u6FFF\u6D7D\u6FFF\u73BE\u6FF6\u73BE\u6FF6\u6C76\u6FE7\u728A\u6FF6\u728A\u6FE7\u6CD3\u6FF6\u6CD3\u6FE7\u728A\u6FF6\u728A\u6FE7\u6DA7\u6FF6\u6DA7\u6FF5\u6D7D\u6FFF\u7394\u6FFF\u6DA7\u70D2\u7065\u7000\u7078\u7000\u70DC\u7064\u701D\u7064\u701D\u7064\u701D\u7064\u701D\u7064\u701D\u7064\u701D\u7064\u701D\u707D\u701C\u707D\u701C\u707D\u701C\u707D\u701C\u707D\u701C\u707D\u701C\u707D\u701C\u702B\u6FD3\u7023\u6FFD\u702B\u6FF5\u7022\u7000\u7028\u6FFC\u702B\u7000\u7028\u6F7D\u7029\u6FEB\u7026\u7000\u701F\u6F88\u701E\u6FF3\u701E\u6FF9\u7028\u6FD3\u7028\u6FDB\u7026\u6FF6\u7026\u7000\u702B\u6F7D\u7026\u6FFD\u7026\u7000\u7029\u7000\u7025\u6FF3\u7021\u6FDF\u7021\u6FE0\u7026\u6FF3\u7022\u6F7D\u7026\u6FA2\u7026\u6FD1\u7021\u6FF6\u7024\u6FF4\u701E\u7000\u7029\u6FF8\u7022\u7000\u702B\u6F70\u7016\u6FE8\u7024\u7000\u7024\u6F8C\u7026\u6FF2\u7026\u6FF8\u7026\u6FD3\u7024\u6FD9\u702B\u6FF6\u7024\u7000\u702B\u6F6F\u7024\u6FF3\u7024\u6FF9\u7021\u7000\u7021\u6FF2\u7024\u6FE1\u7024\u6FDE\u7024\u6FF2\u7024\u6F70\u7024\u6F9E\u7037\u6FF7\u702F\u6F31\u700F\u7000\u6FC7\u6F35\u701F\u7000\u704A\u7000\u704A\u7000\u701F\u7000\u704A\u7000\u701C\u7000\u704A\u7000\u701E\u6FF2\u702D\u7000\u704A\u7000\u701F\u7000\u704B\u7000\u704A\u6FF2\u701C\u7000\u701E\u6FF2\u704A\u7000\u704A\u7000\u701E\u6FF2\u701A\u7000\u700F\u7000\u7018\u7000\u7017\u7000\u701F\u7000\u700C\u7000\u701D\u7000\u701C\u6FF6\u7029\u6F29\u701B\u6F28\u701C\u6FF6\u7016\u6FF6\u7021\u6F2B\u7029\u6F29\u7015\u6FF6\u7039\u6FF6\u7052\u7000\u7008\u6FF5\u702C\u6F29\u701E\u6FF2\u7021\u6F29\u701C\u6FF6\u7007\u6FF6\u7030\u6F28\u7021\u6F2C\u701C\u6FF6\u7002\u6FF6\u7029\u6FF6\u7022\u6F28\u6FEC\u6F29\u700C\u6F28\u701D\u6FF6\u7017\u6FF6\u702A\u6FF4\u701C\u6F28\u701C\u6F28\u7007\u6FF6\u701C\u7000\u703C\u7000\u703C\u7000\u701C\u7000\u703C\u7000\u7019\u7000\u703C\u7000\u704B\u6FF2\u7032\u7000\u703C\u7000\u7014\u7000\u703C\u7000\u703C\u6FF2\u702F\u7000\u704B\u6FF2\u703C\u7000\u703C\u7000\u704B\u6FF2\u7015\u7000\u7048\u7000\u7053\u7000\u7034\u7000\u7014\u7000\u7069\u7000\u7027\u7000\u702F\u6FF6\u6FF4\u6F29\u7054\u6F28\u701E\u6FF6\u7023\u6FF6\u7020\u6F2B\u7026\u6F29\u7041\u6FF6\u7038\u6FF6\u7026\u7000\u7012\u6FF5\u6FF7\u6F29\u7029\u6FF2\u702B\u6F29\u702D\u6FF6\u702D\u6FF6\u6FDF\u6F28\u7034\u6F2C\u702D\u6FF6\u702A\u6FF6\u703D\u6FF6\u7037\u6F28\u6FB8\u6F29\u704B\u6F28\u7032\u6FF6\u702D\u6FF6\u702D\u6FF6\u702D\u6FF4\u7030\u6F28\u7026\u6F28\u7028\u6FF6\u701C\u6FF6\u7059\u6FF3\u70CC\u7000\u7014\u7000\u7020\u6FF3\u7037\u7000\u701B\u6FF3\u7050\u6FF3\u7078\u7000\u703F\u6FF3\u701C\u6FF3\u7056\u6FF2\u70DF\u7000\u7023\u7000\u702C\u6FF2\u7034\u7000\u7031\u6FF2\u7053\u6FF2\u7092\u6FF8\u7051\u6FF2\u7033\u6FEB\u7028\u6FF5\u705A\u7000\u7034\u7000\u702B\u6FF5\u701D\u7000\u7034\u6FF5\u702B\u6FF5\u702B\u6FF5\u702B\u6FF5\u702B\u6FF5\u7032\u7000\u704B\u7000\u704B\u7000\u704B\u7000\u702D\u6FED\u7050\u7000\u7032\u6FED\u704B\u7000\u7046\u7000\u704B\u7000\u702D\u6FED\u702D\u6FED\u7019\u7000\u7046\u6FED\u7011\u7000\u7011\u7000\u7014\u7000\u7017\u7000\u7032\u6FF2\u703C\u6FF2\u7032\u6FF2\u7019\u7000\u7032\u6F33\u703C\u7000\u703C\u7000\u703C\u7000\u703C\u7000\u703C\u7000\u702D\u6FF2\u703C\u6F33\u7032\u6F33\u703C\u7000\u7034\u6FF2\u7019\u6FF2\u7037\u6FF0\u7006\u7000\u7016\u7000\u7019\u7000\u6FF7\u6F33\u7028\u7000\u7007\u7000\u7012\u7000\u7012\u7000\u7012\u7000\u7023\u6FF2\u7016\u7000\u7013\u6FF2\u7012\u7000\u7012\u7000\u701A\u7000\u701E\u6FF2\u701E\u7000\u7023\u6FF2\u702A\u7000\u7051\u7000\u7007\u7000\u7023\u6FF2\u700A\u7000\u702D\u6FF3\u7022\u6FF3\u702D\u6FF3\u702D\u6FF3\u702D\u7000\u701C\u6F33\u7022\u7000\u7022\u7000\u7022\u7000\u7023\u7000\u7022\u7000\u702D\u6FF3\u7003\u6F33\u702D\u6F33\u7021\u7000\u7021\u6FF3\u7016\u6FF2\u702D\u6FF3\u7020\u7000\u7037\u7000\u6FF4\u7000\u6FF7\u6F33\u7023\u7000\u7003\u7000\u7011\u7000\u7011\u7000\u7012\u7000\u7023\u6FEE\u7015\u7000\u7010\u6FEE\u7011\u7000\u7012\u7000\u7019\u7000\u7023\u6FEE\u7018\u6FEE\u701E\u7000\u7021\u6FF2\u704B\u7000\u7064\u7000\u6FE8\u7000\u702A\u7000\u7028\u6FF5\u701B\u6FF5\u7028\u6FF5\u701C\u7000\u7009\u6F24\u701B\u7000\u7019\u7000\u701B\u7000\u701B\u7000\u701B\u7000\u7028\u6FF5\u7005\u6F26\u7028\u6F26\u701B\u7000\u7022\u6FF5\u7014\u6FF6\u7028\u6FF3\u702D\u7000\u7038\u7000\u700E\u7000\u7005\u6F26\u7015\u7000\u7053\u6FF5\u7009\u6F25\u7028\u6FF2\u7029\u6F21\u702A\u6FEE\u702C\u6F2F\u7037\u7000\u6FF1\u6F27\u7023\u6FE8\u7028\u6F25\u7045\u7000\u6FB6\u6F28\u703B\u7000\u6FC7\u6F35\u7045\u7000\u6F8A\u6F28\u703B\u7000\u6FA6\u6F36\u7054\u7000\u702F\u6F1D\u701B\u7000\u6F98\u6F27\u6FFF\u7468\u6FFF\u6CD3\u703B\u6EC0\u703B\u6EC0\u703B\u6EC0\u7023\u6EC0\u7023\u6EC0\u7036\u6EC0\u7036\u6EC0\u7023\u6EC0\u7023\u6EC0\u702B\u6EB4\u703B\u6EB4\u703B\u6EB4\u703B\u6EB4\u703B\u6EB4\u7023\u6EB4\u7036\u6EB4\u7023\u6EB4\u7036\u6EB4\u7036\u6EB4\u7023\u6EB4\u701F\u6EB4\u702D\u6EB4\u702D\u6EB4\u702D\u6EB4\u702D\u6EB4\u702D\u6EB4\u703B\u6E39\u703A\u6EF3\u703A\u6EF3\u703A\u6EF3\u7038\u6EF3\u7027\u6EF3\u7024\u6EF3\u702F\u6EF3\u7038\u6EF3\u7038\u6EF3\u703A\u6EF3\u703A\u6EF3\u7023\u6EF3\u7023\u6EF2\u7019\u6EF2\u7038\u6EF3\u702F\u6EF3\u703A\u6EF3\u703A\u6EF3\u703A\u6EF3\u7038\u6EF3\u7038\u6EF3\u7018\u6EF3\u703E\u6EF3\u7041\u6EF3\u7041\u6EF3\u7000\u6EF3\u703A\u6E56\u7020\u6EC0\u7020\u6EC0\u7020\u6EC0\u7020\u6EC0\u7020\u6EC0\u7020\u6EC0\u7020\u6EC0\u7020\u6EC0\u7020\u6EC0\u7021\u6EC0\u7020\u6EC0\u7020\u6EC0\u7020\u6EC0\u7020\u6EC0\u7020\u6EC0\u7020\u6EC0\u7020\u6EC0\u7020\u6EC0\u7020\u6EC0\u7020\u6EC0\u7020\u6EC0\u7020\u6EC0\u7020\u6EC0\u7020\u6EC0\u7020\u6EC0\u7020\u6EC0\u7020\u6E45\u7038\u6EF3\u7038\u6EF3\u7038\u6EF3\u7038\u6EF3\u7038\u6EF3\u7038\u6EF3\u7038\u6EF3\u7038\u6EF3\u7038\u6EF3\u7038\u6EF3\u7038\u6EF3\u7038\u6EF3\u7038\u6EF3\u7038\u6EF3\u7038\u6EF3\u7038\u6EF3\u7038\u6EF3\u7038\u6EF3\u7038\u6EF3\u7038\u6EF3\u7038\u6EF3\u7018\u6EF3\u7038\u6EF3\u7038\u6EF3\u7038\u6EF3\u7038\u6EF3\u7038\u6E56\u6FDD\u6EFD\u6FDD\u6EFD\u6FDD\u6EFD\u6FE0\u6ED9\u6FE0\u6ED9\u6FE0\u6ED9\u6FDF\u6E6C\u6FDF\u6E6C\u6FDF\u6E6C\u6FDE\u6E02\u6FDE\u6E02\u6FDE\u6E02\u7121\u7000\u6FE5\u7000\u7121\u7000\u7029\u6EFD\u703A\u6EFD\u703A\u6EFD\u7037\u7032\u705A\u7031\u705A\u7032\u6FE0\u6ED9\u6FE0\u6ED9\u6FDF\u6E6C\u6FDF\u6E6C\u6FDE\u6E02\u6FDE\u6E02\u7029\u7000\u7032\u7000\u7017\u7000\u7016\u6FB8\u7038\u6FF5\u703C\u6FE5\u703C\u6F4C\u703D\u6FE5\u7049\u7000\u6D07\u6EE7\u6F0E\u6EE9\u6F0E\u6F4D\u6F0E\u6F1B\u6F0E\u6EE9\u6F0E\u6EB7\u6F0E\u6E53\u700A\u6FE1\u700A\u6FE1\u7038\u6EED\u7038\u6EED\u700A\u6F99\u703A\u6F70\u7033\u6F1B\u7045\u6F1B\u700A\u6FE1\u700A\u6FE1\u7032\u6F89\u7032\u6F89\u7032\u6F89\u703C\u6EFA\u703C\u6EFA\u7033\u6F7F\u7033\u6F7F\u7031\u6F5A\u7036\u6F5A\u703C\u6F77\u703C\u6F77\u7040\u6EBF\u704A\u6EBF\u703C\u6F64\u703C\u6F64\u7030\u7030\u7030\u6FDD\u7030\u6F8B\u7030\u6F64\u7030\u6F64\u7038\u6EED\u7038\u6EED\u7030\u6FBE\u702F\u6F64\u7049\u6F64\u7038\u6F43\u7040\u6F43\u7030\u6F1D\u7030\u6F1D\u7038\u6EC9\u7037\u6EC9\u7040\u6F64\u7040\u6F64\u7037\u6F64\u7041\u6F64\u7041\u6F35\u7041\u6F35\u703C\u6F2C\u703C\u6F2C\u7036\u6F43\u704A\u6F43\u7000\u721A\u7000\u7273\u7000\u721A\u703B\u6FF1\u7000\u6FF5\u7049\u7000\u7043\u6F86\u7030\u7078\u7030\u6FE1\u7030\u6FFB\u7040\u7000\u702D\u7000\u703F\u7000\u703F\u7000\u702E\u7000\u702E\u7000\u7032\u7067\u7032\u7000\u7032\u7067\u7046\u7000\u7037\u6FF3\u7062\u6F81\u7030\u7059\u702C\u6FE6\u704C\u6FE6\u7019\u6F99\u703C\u7000\u7039\u7000\u7072\u6FB1\u7126\u6FC5\u7085\u6EDF\u7023\u6FEE\u7011\u7000\u7011\u7000\u7023\u6FB9\u7007\u7000\u7011\u7000\u7028\u6FF5\u7028\u6FF5\u701B\u7000\u6F98\u6F27\u7019\u7000\u7011\u7000\u7023\u6FF2\u7012\u7000\u7015\u7000\u701B\u7000\u7012\u7000\u7023\u6FB6\u7012\u7000\u7017\u7000\u702D\u6FF3\u7028\u7000\u6FA3\u6F33\u7014\u6FF5\u702D\u6FED\u704B\u7000\u704B\u7000\u704B\u7000\u704B\u7000\u702D\u6FC0\u704B\u7000\u7034\u7000\u7032\u6FF2\u7032\u6FF2\u7041\u7000\u6FEC\u6F33\u702F\u6FF6\u703B\u6FFA\u700D\u7000\u703A\u6FE6\u7061\u6FE0\u7062\u6FD4\u7064\u6EC0\u7064\u6EC0\u7064\u6EC0\u7023\u6EC0\u705B\u6EC0\u702E\u6EC0\u7035\u6EC0\u702F\u6EC0\u702F\u6EC0\u6FD9\u6EB4\u7064\u6EB4\u7032\u6EB4\u7032\u6EB4\u7014\u6EB4\u7076\u6EB4\u702A\u6EB4\u7032\u6EB4\u7032\u6EB4\u6FB5\u6EB4\u7032\u6EB4\u7032\u6EB4\u6F85\u6EB4\u7028\u6EB4\u700E\u6EB4\u700E\u6EB4\u705A\u6EB4\u7009\u6E39\u7064\u6EF3\u7064\u6EF3\u7064\u6EF3\u700F\u6EF3\u7054\u6EF3\u7049\u6EF3\u6FFB\u6EF3\u700A\u6EF3\u6FFF\u6EF3\u6FC3\u6EF3\u7064\u6EF3\u7002\u6EF3\u7002\u6EF2\u6FE6\u6EF2\u703E\u6EF3\u700F\u6EF3\u700F\u6EF3\u700D\u6EF3\u6F5C\u6EF3\u700D\u6EF3\u700F\u6EF3\u6F37\u6EF3\u7036\u6EF3\u6FDA\u6EF3\u6FDA\u6EF3\u7064\u6EF3\u6F45\u6E56\u703B\u6FAB", "\u70FA\u72AC\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u70EC\u72A4\u714B\u72A4\u71EF\u7296\u71CA\u72D7\u72AE\u72C2\u72EE\u72A4\u7085\u72A4\u7130\u72A4\u711D\u72A4\u71B1\u72A4\u727C\u7223\u70C3\u7066\u711D\u7101\u70B5\u7064\u711F\u72A4\u71DC\u72A4\u718A\u72A4\u71DA\u72A4\u71AF\u72A4\u71D9\u72A4\u71B6\u72B0\u71D4\u72AC\u71C1\u7296\u71BD\u72A4\u71CB\u72A4\u70C0\u71CB\u70DB\u71CB\u726D\u7216\u727D\u7182\u726D\u7216\u719E\u72A4\u7329\u72A4\u72C3\u72A2\u7251\u7296\u7279\u72A4\u72AD\u7296\u7255\u7296\u7222\u7296\u72C5\u72A4\u72BF\u7296\u713B\u7296\u7162\u7296\u72D3\u7296\u7256\u7296\u7360\u7296\u72C3\u7296\u72B0\u72A4\u721E\u7296\u72BD\u72A4\u7294\u7296\u71EB\u72A4\u7251\u7296\u72C1\u7296\u72B9\u7296\u73A4\u7296\u72C0\u7296\u72BF\u7296\u7256\u7296\u712B\u7296\u711F\u72A4\u70F5\u7296\u71BE\u7296\u71F4\u6FB5\u70F2\u72A6\u71BA\u71CC\u71D4\u72AB\u719C\u71CC\u71EB\u72AB\u71A8\u71CC\u717F\u72AB\u71D6\u71CC\u71E7\u72AB\u70FD\u72AB\u70C2\u72AB\u71F9\u72AB\u7101\u72AB\u7307\u71CC\u71E5\u71CC\u71D6\u71CC\u71D6\u71CC\u71E8\u71CC\u714F\u71CC\u715C\u71CB\u7117\u7243\u71E0\u71C2\u71DD\u71C2\u72B6\u71C2\u71DF\u71C2\u71DB\u71C2\u71A2\u71C2\u715E\u72A8\u70C1\u72B2\u717C\u72A8\u71F6\u7145\u7000\u7000\u70CA\u71D4\u71C0\u7243\u71EA\u72A4\u720A\u7216\u7200\u7296\u7085\u72A4\u71AA\u72A4\u713C\u726E\u72D2\u72A4\u710E\u72A4\u71C8\u71A0\u7228\u7189\u711D\u7101\u72D2\u72A4\u7142\u7259\u7157\u72A4\u727D\u71F6\u7128\u72A4\u7123\u72A4\u713D\u72A6\u7200\u71C2\u7214\u7296\u70B5\u7136\u7105\u7000\u70F8\u72A4\u7130\u72A4\u71CA\u71A0\u72C9\u72A4\u72E5\u72A4\u72CE\u72A4\u7178\u71D3\u72C3\u73A0\u72C3\u73A0\u72C3\u739C\u72C3\u7378\u72C3\u7368\u72C3\u73C1\u735F\u7296\u7279\u72A4\u7255\u73A0\u7255\u73A0\u7255\u739C\u7255\u7368\u713B\u73A0\u713B\u73A0\u7141\u739C\u713B\u7368\u72AD\u7296\u72C3\u7378\u72B0\u73A0\u72B0\u73A0\u72B0\u739C\u72B0\u7378\u72B0\u7368\u7255\u7211\u72B0\u72DE\u72C1\u73A0\u72C1\u73A0\u72C1\u739C\u72C1\u7368\u72BF\u73A0\u721E\u7296\u71D4\u72AB\u71BA\u72A6\u71BA\u72A6\u71BA\u72A2\u71BA\u727E\u71BA\u726E\u71BA\u72C9\u7278\u71CC\u719C\u71CC\u71A8\u72A6\u71A8\u72A6\u71A8\u72A2\u71A8\u726E\u70FD\u72A6\u7111\u72A6\u7126\u72A2\u7120\u726E\u71D7\u72AE\u71E5\u727E\u71D6\u72A6\u71D6\u72A6\u71D6\u72A2\u71D6\u727E\u71D6\u726E\u7216\u7204\u71D6\u7227\u71E0\u72A6\u71E0\u72A6\u71E0\u72A2\u71E0\u726E\u71DB\u72A6\u71D6\u72AB\u71DB\u726E\u72C3\u7305\u71BA\u7231\u72C3\u736C\u71BA\u7298\u72C3\u72A2\u71D8\u71CC\u7279\u737A\u719C\u72A6\u7279\u7376\u719C\u72A2\u7279\u7342\u719C\u726E\u7279\u7376\u719C\u72A2\u72AD\u7376\u725C\u72BD\u72AD\u7296\u71FB\u72AB\u7255\u7305\u71A8\u7231\u7255\u736C\u71A8\u7298\u7255\u7342\u71A8\u726E\u7255\u7296\u71A8\u71CC\u7255\u7376\u71A8\u72A2\u72C5\u7376\u71D6\u72A2\u72C5\u736C\u71D6\u7298\u72C5\u7342\u71D6\u726E\u72C5\u72A4\u71D6\u72FE\u72BF\u7376\u71E7\u7376\u72BE\u7296\u71E7\u72AB\u714B\u7352\u7131\u727E\u7142\u7305\u7122\u7231\u713B\u736C\u7118\u7298\u713B\u7296\u7115\u72AB\u713B\u7342\u70FD\u71CC\u72D8\u7296\u71C6\u72AB\u716F\u7376\u7127\u72A2\u72D3\u7296\u71F9\u72AB\u7214\u71CB\u7256\u737A\u7101\u737A\u7256\u7296\u7101\u72AB\u7256\u72AB\u716A\u72BE\u7267\u7296\u7162\u72AB\u7255\u7296\u7103\u72AB\u72C3\u737A\u71E5\u72A6\u72C3\u7296\u71E5\u71CC\u72C3\u7376\u71E5\u72A2\u7236\u72BE\u72A1\u72A6\u71A8\u71CC\u72B0\u7305\u71D6\u7231\u72B0\u736C\u71D6\u7298\u72B0\u737A\u71D6\u72A6\u7375\u729C\u72B2\u71CC\u7294\u737A\u714F\u72A6\u7294\u7296\u714F\u71CC\u7294\u7376\u714F\u72A2\u71EB\u737A\u715C\u72A6\u71EB\u7376\u715F\u72A2\u71EB\u72A4\u715C\u71CB\u71EB\u739C\u715D\u72A2\u7251\u7296\u7117\u7243\u7251\u7376\u714D\u72BD\u7251\u7296\u7118\u7248\u72C1\u7351\u71E0\u727E\u72C1\u7305\u71E0\u7231\u72C1\u736C\u71E0\u7298\u72C1\u7382\u71E0\u72C7\u72C1\u737A\u71E0\u72A6\u72C1\u7296\u71E0\u71C2\u73A4\u7376\u72B6\u72A2\u72BF\u7376\u71DB\u72A2\u72BF\u7368\u7256\u737A\u71A2\u72A6\u7256\u7342\u71A2\u726E\u7256\u739C\u71A2\u72A2\u717F\u72AB\u71D8\u72AB\u71FF\u722F\u7232\u72AC\u71AA\u72C2\u72C6\u72AB\u71F9\u72AB\u7101\u72AB\u7204\u729C\u71E5\u71CC\u72B0\u72F2\u7213\u71DA\u71D6\u729D\u719C\u72AC\u7117\u7243\u714D\u72AB\u732A\u7306\u721B\u7231\u7256\u7296\u7168\u71C2\u71E2\u72A4\u71AB\u721B\u7069\u72E0\u70E1\u72E0\u7190\u72E0\u70EC\u72A4\u7126\u72A2\u72C3\u73AA\u71BA\u737A\u735F\u737A\u7278\u72A6\u72B0\u737A\u71D6\u72A6\u71EB\u72A4\u715C\u71CB\u7251\u7296\u7117\u7243\u728C\u72AB\u719A\u72AB\u728D\u71CC\u717E\u7243\u70C1\u71CC\u719D\u71CC\u71EB\u71CC\u71EB\u71CC\u71D4\u72AB\u718D\u71CB\u71A1\u71CC\u7257\u72AB\u725A\u72AB\u71A3\u71CC\u719D\u71CC\u728B\u71CC\u7185\u71DB\u7185\u71DB\u725B\u71DB\u71AE\u71DB\u7128\u71CC\u727A\u72AB\u71C7\u71E2\u721B\u71C2\u71E0\u71C2\u71E6\u71C2\u71EB\u71C2\u71E7\u72AB\u71AB\u72AB\u70FD\u72AB\u7137\u71C6\u70E7\u71C2\u7154\u72AB\u716A\u72AB\u7160\u72AB\u721A\u72AB\u7302\u71C2\u7311\u71C2\u72C2\u71CC\u7202\u71CC\u725B\u71CC\u7231\u71C2\u71D6\u71CC\u72B9\u71C2\u7275\u71DB\u7272\u72AB\u7168\u71C2\u716C\u72AB\u71D4\u71C2\u714F\u71CC\u7153\u71CC\u7151\u71D6\u714C\u71D6\u71D6\u71D0\u71D6\u71D0\u715C\u71CA\u7174\u72AB\u7174\u72AB\u71C9\u71D6\u71A6\u72AB\u711A\u71CC\u711B\u7243\u71E0\u71C2\u71EA\u71C2\u71DC\u71CC\u71C6\u71D0\u72B6\u71D0\u71CB\u729C\u7234\u71D0\u7239\u71C2\u71E7\u71C2\u7188\u71C2\u719A\u71C2\u7190\u72AB\u7191\u72AB\u7190\u7296\u719A\u71CC\u72B2\u72A7\u71BC\u71D0\u71AE\u71DB\u7247\u720B\u7230\u71D0\u719C\u72AB\u71F3\u71C2\u71B9\u71D0\u724E\u7246\u7191\u72AB\u7191\u72AB\u7307\u72AB\u72D2\u72AB\u734C\u72AB\u71EF\u7243\u721C\u72AB\u7281\u7243\u7264\u71D5\u72D9\u71D5\u716D\u7350\u716D\u7350\u70F4\u7354\u70FC\u72A9\u7101\u72A8\u7152\u72A8\u717B\u72A8\u7200\u72A8\u7169\u72A8\u7101\u72AC\u7144\u72AC\u70DA\u72AE\u70DA\u72AE\u70DA\u72AE\u70A3\u72A8\u70A3\u72A8\u712F\u72B2\u712F\u72B2\u711D\u72F3\u711D\u72F3\u7147\u72C9\u7147\u72C9\u7142\u72A2\u7142\u72A2\u709F\u72C9\u7142\u7259\u7140\u72A7\u70F9\u72A7\u709F\u7046\u7143\u6F98\u70F9\u6FEB\u7134\u6FEB\u70F4\u71CC\u70F4\u71CC\u7106\u716D\u7105\u716D\u7119\u70CD\u7119\u70CD\u7107\u70DA\u7107\u7090\u7134\u7298\u70D9\u726E\u710A\u72C7\u70F9\u7000\u714B\u727E\u7178\u72A6\u7107\u71BB\u711C\u7296\u714F\u72AC\u70C5\u7350\u7105\u72A9\u7174\u72A8\u713F\u7352\u7175\u7296\u716D\u7296\u716D\u7296\u716D\u7296\u716D\u7296\u7137\u7046\u718B\u7299\u710A\u6FBB\u714B\u6F8F\u6F6D\u72A6\u6F6D\u72A6\u6FB5\u72A2\u6FBF\u727E\u6FB6\u7259\u7014\u7334\u6FA4\u7298\u6F4B\u726E\u6FAF\u726E\u6F8A\u72EF\u6F7E\u72C7\u6FEA\u72A6\u6FB6\u72A2\u6F3D\u72BC\u6F7B\u72BC\u6FEA\u72A6\u6FA4\u72FF\u6FA4\u7298\u6F60\u72E9\u6F60\u72E9\u6F60\u72E9\u7036\u72E9\u6F81\u6FCB\u6F6D\u6FCB\u6F2E\u6FCB\u6FB0\u6FCB\u6FB0\u72DF\u7033\u71DA\u6F18\u6FB9\u6F8D\u6FCB\u6F8D\u6FCB\u6F7A\u6FCB\u6F7A\u6F84\u7001\u704B\u70B6\u704B\u6F4B\u6F8A\u6FAF\u6F89\u6F7E\u6FBB\u6F60\u6F92\u6F83\u7000\u6F77\u7000\u6F2E\u6F9A\u6FB7\u6F9E\u6FB5\u6F92\u6FB6\u6FB7\u6FB6\u6FB7\u6FA7\u6FBC\u6FA7\u6FC5\u6FBF\u6F8F\u6FB6\u6F73\u7014\u6F73\u7014\u6F73\u6FB9\u7140\u6FB2\u7112\u7014\u7112\u6FD7\u7244\u701F\u7296\u6F68\u6FB9\u6FB7\u6FCB\u6F6D\u6FCB\u6FB1\u6FBF\u6F79\u72CB\u6F4F\u733D\u7014\u73A0\u6FBC\u72A9\u7143\u6F74\u6FC8\u7309\u71DE\u6FD8\u6FA9\u6FBF\u7127\u6FB4\u716D\u7279\u7127\u7298\u7163\u6FBF\u70DB\u71CB\u70F0\u7296\u713C\u7296\u72C3\u72AB\u70C0\u71CB\u72E1\u72AB\u7344\u72AB\u71C1\u72AB\u72B0\u72AB\u7332\u72AB\u72CB\u72AB\u713C\u7296\u72C3\u72A2\u7251\u7296\u7241\u7296\u72A3\u72A2\u7255\u7296\u7256\u7296\u72BF\u7296\u72B0\u72A4\u713B\u7296\u72D3\u7296\u72AF\u72A2\u7360\u7296\u72C3\u7296\u7266\u7296\u72B0\u72A4\u72BF\u7296\u721E\u7296\u7258\u7296\u7251\u7296\u72BF\u72A2\u72D8\u7296\u72C0\u7296\u72D4\u72B2\u72CB\u72A4\u713C\u7369\u72BF\u7369\u7211\u7296\u7197\u7296\u71C4\u7296\u710B\u7296\u71EE\u7296\u7211\u71CC\u71D2\u72AB\u71BC\u71C9\u71D6\u72AB\u7197\u71CC\u7197\u72AB\u71C4\u71CC\u71D4\u72AB\u710B\u71CC\u71F7\u71CC\u71EC\u72AB\u7204\u71C2\u71BB\u71CC\u7197\u72AB\u71D9\u71CC\u71E2\u71C2\u71D2\u71CC\u71B0\u71CC\u7206\u71C2\u71BA\u71C2\u71EE\u71CC\u7251\u71CC\u71E6\u71CC\u72AC\u71CC\u7253\u71CC\u713C\u726E\u71EE\u726E\u71D9\u7296\u71EE\u7296\u7253\u7296\u719B\u72B5\u7220\u72AB\u72BA\u72A4\u7251\u72AB\u72D6\u71C2\u72B0\u72A4\u71D6\u71CC\u726E\u72A4\u71B4\u71EA\u7222\u7296\u71B3\u71C2\u72A6\u731D\u71C7\u7296\u72FF\u72A4\u71E7\u723D\u7203\u71CC\u71D6\u71CC\u72B0\u72A4\u7197\u71CC\u719E\u71CC\u725F\u7368\u72BC\u7296\u7220\u73A0\u726D\u72A4\u71FE\u72A4\u713B\u7296\u7143\u7368\u7162\u7296\u73BA\u7296\u73D7\u7296\u7312\u7296\u72AE\u73A0\u72B6\u7393\u72B8\u7296\u72BD\u72A2\u7241\u7296\u7253\u7296\u7220\u7296\u7286\u7296\u725F\u7296\u73F5\u72A4\u7221\u72A4\u72C0\u7296\u72C0\u7393\u72AE\u72A4\u7298\u7296\u7367\u7296\u72C0\u7296\u72B2\u72A4\u72C1\u7296\u7217\u7296\u7281\u72A4\u7250\u7296\u72B6\u7296\u72DB\u7296\u72BF\u7296\u72B8\u7296\u727F\u7296\u73C5\u7296\u73C5\u7296\u72BF\u7296\u7361\u7296\u7242\u7296\u7265\u72A4\u735F\u72A4\u726A\u7296\u71BE\u71CC\u71DE\u72AD\u71B6\u71C2\u7183\u71C2\u71B7\u71C2\u71B5\u71CC\u72C3\u71C8\u7165\u71CC\u71F6\u71C2\u71F6\u72C0\u71EF\u71C8\u71DC\u71C2\u7252\u71C2\u71F6\u71C2\u71DC\u71CC\u71F6\u71C2\u71CF\u71CC\u71AC\u71CC\u71AA\u71C2\u71E3\u71C2\u727B\u7296\u71DC\u71C2\u71F6\u71C2\u71E9\u71C2\u72E9\u71C2\u72E9\u71C2\u71FB\u71C2\u7286\u71C2\u71A9\u71C2\u719A\u71CC\u72BF\u71CC\u71C0\u71C2\u71B5\u726E\u71B7\u72AB\u7183\u72A7\u71AE\u71CC\u715A\u71CB\u710A\u72AB\u712B\u726E\u70BB\u72AB\u729E\u71C2\u72B1\u71C2\u71F3\u72AB\u71EF\u72A7\u71E3\u72C0\u71EF\u71C2\u72C9\u7296\u71FB\u72AB\u73E0\u7296\u72C4\u71C2\u72B2\u72A4\u71DC\u71CC\u72F8\u72A4\u7214\u71C8\u7220\u7323\u7183\u722E\u7330\u73CD\u7330\u73CD\u7328\u711D\u7335\u72BE\u7402\u72BE\u7123\u7192\u7178\u7144\u7179\u721D\u71DB\u721D\u7206\u7225\u71B3\u7224\u71CE\u71AA\u71EB\u721E\u71FC\u721F\u71FC\u721F\u71CF\u721E\u7268\u72BE\u70FC\u70A8\u7112\u7241\u71F6\u7219\u7178\u7144\u7179\u721D\u71DB\u721D\u7206\u7225\u7221\u722E\u71DD\u7216\u7200\u7233\u71FC\u721F\u71FC\u721F\u71CF\u721E\u71EF\u71D4\u71E1\u71D0\u7230\u71D0\u71EB\u72AB\u71F9\u72AB\u7101\u72AB\u715C\u71CB\u71DF\u71C2\u71A0\u71C2\u7183\u72F3\u718E\u72F5\u73A4\u737A\u72B6\u72A6\u73A4\u737A\u72B6\u72A6\u73A4\u7342\u72B6\u726E\u72BF\u737A\u71DB\u72A6\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u711D\u7103\u711D\u7101\u71F4\u7103\u71F4\u70FA\u73E8\u70FA\u77D0\u70FA\u718A\u72B2\u71F4\u6F73\u70FE\u72A4\u70DA\u72A4\u70DA\u7066\u70DA\u72A4\u719E\u72A4\u7191\u72A4\u71A0\u7066\u7191\u72A4\u71BA\u72A4\u71BA\u72A4\u71C7\u71BC\u722B\u7064\u7378\u7064\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7000\u7418\u72C2\u7582\u72C2\u70EB\u72E9\u7195\u72E9\u7240\u72E9\u70EB\u72E9\u7195\u72E9\u7240\u72E9\u71C6\u7066\u711D\u71A0\u710E\u71A0\u727B\u7223\u71C4\u72A4\u71F4\u7334\u72D6\u72C5\u711D\u714C\u71EA\u72A4\u7329\u72A4\u71B1\u70F0\u70C7\u71CB\u72DF\u72B3\u71B1\u72A4\u71A1\u72C2\u72EA\u72E9\u7000\u7000\u71E4\u72A4\u7222\u7296\u71EA\u72A4\u7475\u7296\u71CE\u7298\u71B4\u72F8\u71B4\u72F8\u6F40\u7296\u71B4\u72F8\u71B4\u72F8\u7023\u726E\u7060\u726E\u70DF\u72D5\u70E6\u730C\u7158\u734B\u71DE\u72F8\u71EA\u73FF\u6FD8\u7296\u6F9A\u7296\u70A6\u72D5\u7023\u6F89\u7035\u72A9\u7076\u71A3\u70C1\u72F4\u71B4\u6F89\u71B4\u6F89\u71B4\u6FD8\u71B4\u6FD8\u6FA9\u7333\u7297\u72A4\u731B\u72A4\u7231\u72A4\u72A6\u71B9\u73DF\u72AF\u7305\u72B7\u7288\u7296\u7221\u72AB\u7223\u72AB\u7378\u72A3\u72C7\u72B7\u73A3\u72AF\u723B\u72AF\u7274\u7296\u73C6\u72A4\u72D2\u72A4\u731F\u7223\u7274\u7296\u72CB\u72A4\u736C\u72AF\u733D\u72C0\u72C8\u7296\u72FB\u729B\u73BD\u7296\u72A5\u7296\u7187\u7296\u72CB\u72A4\u72CB\u7296\u72A4\u72B7\u7114\u71CF\u72C3\u7367\u7386\u72AF\u72A3\u72B7\u7328\u72A4\u722A\u71B9\u72DE\u72AF\u738B\u72A8\u71CE\u7296\u7420\u72A2\u72A8\u71B9\u727A\u72A5\u723C\u72A5\u71CF\u72A5\u71EF\u72A5\u7285\u71C2\u720E\u71CC\u7237\u7296\u7288\u7296\u7372\u72FB\u729C\u72A4\u71E5\u7296\u71E5\u7296\u7261\u7296\u72BF\u728D\u727A\u72AB\u71E5\u71B9\u715A\u728D\u718A\u728D\u725A\u72B4\u72E0\u72A4\u72D5\u72A4\u72DB\u72A4\u72CB\u72A4\u72D0\u72A4\u72D0\u72A4\u72D0\u72A4\u72CD\u72A4\u72D2\u72A4\u72D2\u72A4\u72D7\u72A4\u72D7\u72A4\u72D7\u72A4\u7359\u71C1\u71C3\u7296\u7358\u71C0\u71C3\u7296\u7378\u71C1\u71C3\u72DA\u7358\u7296\u7358\u7296\u7358\u7296\u7358\u7296\u7362\u71C2\u7362\u71C2\u7358\u719B\u7358\u719B\u7358\u71C1\u71C3\u7296\u7358\u71C1\u71C3\u7296\u7358\u71C1\u7358\u71C1\u7359\u71C2\u71C3\u7296\u7359\u71C2\u71C3\u7296\u71C3\u7296\u7358\u7229\u7358\u7229\u7358\u7229\u7358\u7229\u747F\u71C1\u7378\u71C2\u71C3\u7296\u71A8\u7296\u71B1\u7296\u71A3\u7296\u71B1\u7296\u7358\u7296\u7358\u7296\u7372\u7216\u7372\u7216\u7368\u72DC\u7362\u7256\u735A\u72AE\u735A\u72AE\u7385\u71EE\u7385\u711E\u71B9\u7296\u7120\u7296\u7385\u71EE\u7385\u711E\u71B9\u7296\u7120\u7296\u7358\u7256\u72E6\u7296\u7358\u7256\u7358\u7257\u72DC\u7296\u7358\u7257\u72DC\u7296\u7358\u721B\u7358\u721B\u7362\u7227\u738A\u7205\u7362\u7227\u7362\u7227\u7281\u7296\u7362\u7227\u7281\u7296\u738A\u7205\u7281\u72DA\u736A\u7296\u736A\u7296\u736A\u7296\u736A\u7296\u7354\u7284\u7370\u7285\u7362\u71C1\u7362\u71C1\u71C3\u7296\u71C3\u7296\u7362\u71C1\u71C3\u7296\u7362\u71C1\u71C3\u7296\u7362\u71C2\u7362\u71C2\u7362\u7227\u7281\u7296\u7362\u7227\u7281\u7296\u7281\u72B2\u7358\u71C0\u72E6\u7296\u7362\u72E3\u7362\u71C2\u735D\u71C2\u736E\u71C2\u7362\u71C2\u7362\u71C2\u7378\u71C2\u7362\u71C1\u7362\u71C1\u738A\u71C1\u722E\u7296\u7194\u72F8\u719D\u7298\u71E7\u7296\u71E7\u7307\u72C8\u7247\u7299\u72A2\u729B\u7296\u7271\u7213\u7271\u7296\u71A6\u71CB\u7271\u7213\u7271\u7296\u71A6\u71CB\u71E5\u7280\u73B4\u72FB\u73B4\u72FB\u7358\u72FB\u726D\u711E\u727D\u71F6\u727C\u72E5\u71DE\u72C6\u7193\u719B\u71C9\u71D7\u7136\u7183\u7136\u7183\u73C3\u73CD\u73C3\u73CD\u73C3\u73CD\u7283\u71AE\u7356\u71AE\u727A\u7248\u7283\u7223\u7282\u7223\u728D\u7207\u70A6\u72B2\u717D\u72B2\u718A\u72B2\u724A\u72B2\u724D\u7218\u724D\u7218\u723C\u7218\u723C\u7218\u727F\u7338\u7371\u7338\u7463\u7338\u727F\u7338\u7371\u7338\u7462\u7338\u727F\u7338\u727F\u7338\u727F\u7338\u7246\u7209\u7246\u7209\u713F\u7209\u725A\u7209\u727D\u71FF\u727D\u71FF\u727D\u71FF\u727D\u7209\u727D\u716A\u727D\u716A\u727D\u719D\u727D\u71D3\u70F9\u7223\u727D\u71A8\u727D\u71BD\u727D\u71BD\u727D\u7207\u727D\u7214\u727D\u725C\u727D\u7287\u727D\u71DB\u727D\u7225\u727D\u7228\u727E\u7214\u727D\u7214\u727D\u71F2\u727D\u71D7\u727D\u71D7\u727D\u7263\u727D\u7263\u727D\u7263\u727D\u7263\u7308\u71A1\u7308\u71A1\u727D\u71A0\u727D\u72F0\u727D\u72D9\u727D\u7355\u727D\u7355\u727D\u72F4\u727D\u7355\u72A6\u7337\u727D\u72BF\u727D\u735F\u727D\u7296\u727D\u71DE\u727D\u7296\u727D\u7220\u7275\u7261\u7275\u7261\u726E\u72CE\u726E\u72CE\u726D\u72EA\u726D\u72EA\u738C\u7214\u738C\u7214\u717D\u72DA\u727D\u723C\u726D\u7296\u726D\u7296\u726D\u72DA\u726E\u72DA\u727D\u7298\u727D\u7298\u727D\u72DB\u727D\u72DA\u726D\u72C1\u726D\u72C1\u727D\u72EE\u727D\u72EE\u726D\u7214\u726D\u7214\u726D\u7274\u726D\u7275\u727D\u7298\u727D\u7298\u726D\u7296\u726D\u7296\u726D\u7213\u726D\u7213\u726F\u7296\u726F\u7296\u726D\u725F\u726D\u725F\u726D\u72DA\u726D\u72DA\u726D\u7273\u726D\u7273\u723C\u7218\u723C\u7218\u723C\u7218\u726D\u7213\u726D\u7213\u726D\u725F\u726D\u725F\u723C\u7218\u723C\u7218\u7318\u726F\u7318\u726F\u7318\u726F\u7318\u726F\u72C8\u7247\u7318\u726F\u7318\u726F\u7318\u726F\u7318\u726F\u7361\u7296\u7361\u7296\u7361\u7296\u7361\u7296\u726D\u7296\u726D\u7296\u727D\u7296\u727D\u7296\u71B1\u7296\u71B2\u7296\u726D\u7296\u732E\u7296\u732F\u7296\u732E\u7296\u72D3\u7296\u72D3\u7296\u739A\u7296\u739A\u7296\u726D\u7227\u726D\u7227\u7277\u7213\u7295\u7213\u7277\u725F\u7295\u725F\u7447\u7193\u7447\u7193\u731F\u7193\u727C\u7223\u7196\u71C2\u724E\u7218\u724E\u7286\u724E\u7286\u727A\u7248\u7361\u7296\u7366\u72FB\u7366\u72FB\u733E\u730A\u733E\u7300\u71F1\u71E8\u70CB\u7139\u7299\u7255\u727A\u7221\u72F4\u7246\u72CC\u7246\u72CC\u7246\u72E0\u7246\u72E0\u7246\u727D\u71BD\u7225\u7214\u7225\u7214\u726D\u7213\u726D\u7213\u723C\u7218\u723C\u7218\u723C\u7277\u727D\u72B2\u726D\u7216\u726D\u7216\u74CD\u7216\u74CD\u7216\u726D\u733E\u726D\u733E\u726D\u725F\u726D\u725F\u726D\u7273\u726D\u7273\u726D\u72DA\u726D\u72DA\u726E\u72DA\u726E\u72DA\u726D\u7273\u726D\u7273\u727D\u729D\u727D\u729D\u727D\u729E\u727D\u729E\u7245\u7296\u7263\u7296\u7245\u72DA\u7263\u72DA\u713F\u725E\u7332\u713C\u72DC\u7208\u72DC\u7208\u72FB\u7213\u7271\u7213\u71A4\u71CB\u7271\u72CC\u7271\u72AD\u71A4\u7265\u7271\u7214\u7271\u7213\u72FB\u7213\u7270\u7213\u71A4\u71CB\u7272\u72AD\u71A9\u7265\u7361\u7296\u7245\u71E7\u7367\u7306\u723C\u7241\u723C\u72D8\u71BF\u72C9\u711E\u72C9\u71BF\u72C9\u711E\u72C9\u719C\u70A6\u719C\u70A6\u719C\u736C\u719C\u736C\u7228\u7189\u71C1\u71B7\u72C8\u714B\u72C8\u714B\u731C\u7246\u7417\u72EC\u7417\u72ED\u7367\u7296\u7228\u7189\u726E\u729F\u719B\u7296\u719B\u7296\u719B\u70A4\u719C\u70A4\u723E\u742A\u718A\u743E\u73C5\u7168\u73C5\u7168\u714F\u72C9\u7143\u72C9\u734B\u72B4\u73A3\u7250\u723E\u71C2\u7329\u7232\u7349\u72EF\u733A\u72AB\u726F\u72BF\u726F\u72BF\u72E3\u72EF\u72E3\u72EF\u7334\u7248\u7349\u7182\u7386\u7279\u7190\u73ED\u70AE\u73F2\u7190\u73ED\u7190\u73ED\u7190\u73F2\u7190\u73ED\u719F\u73ED\u7096\u73F2\u719F\u73ED\u7190\u73ED\u7190\u73F2\u7190\u73ED\u7258\u73ED\u717C\u73F2\u7258\u73ED\u717C\u73F2\u717C\u73ED\u7258\u73F2\u717C\u73F2\u718A\u727B\u713B\u711E\u7236\u72BC\u7236\u72BC\u750C\u75DC\u7556\u75DC\u7367\u734A\u7367\u6F38\u7367\u71EF\u737F\u773F\u7042\u761E\u72D1\u761E\u7358\u72DB\u7120\u7195\u73E8\u7352\u73E8\u6F38\u73E8\u73D2\u73E8\u6F38\u73E8\u7360\u73E8\u6F38\u7442\u722E\u733C\u72A8\u7417\u711E\u73E3\u720F\u7367\u71B2\u72DD\u725E\u71CC\u7010\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72AC\u72A4\u72CF\u7154\u7186\u738E\u7186\u738E\u72CF\u7154\u7186\u738E\u72D0\u7154\u7186\u7154\u72D0\u738E\u7186\u738E\u72CF\u738E\u7186\u738E\u72CF\u7154\u72CF\u738E\u72CF\u738E\u72CF\u71B1\u71E3\u738E\u72D0\u71B1\u72D0\u7154\u72CF\u71B1\u7186\u71B1\u71E3\u7154\u71E3\u71B1\u72D0\u738E\u72D0\u738E\u72CF\u738E\u7186\u738E\u71E3\u738E\u71E3\u738E\u72D0\u738E\u72D0\u738E\u72D0\u738E\u7186\u738E\u71E3\u738E\u71E3\u738E\u72CF\u71B1\u72CF\u7154\u72CF\u71B1\u72CF\u738E\u72CF\u738E\u72CF\u738E\u72CF\u738E\u72CF\u738E\u72CF\u738E\u72D3\u738E\u72D3\u738E\u74BD\u738E\u74BD\u712F\u74BD\u738E\u725E\u738E\u74BC\u738E\u74B0\u735C\u74B0\u736A\u74B0\u736A\u7361\u7296\u7361\u7296\u7361\u7296\u7361\u7296\u7361\u7296\u7361\u7296\u7361\u7296\u7361\u7296\u7361\u7296\u7361\u7296\u71C4\u71CC\u71C4\u71CC\u73D6\u71D5\u73D6\u71D5\u7208\u72D4\u7208\u72D4\u7458\u7202\u7457\u7202\u7456\u732B\u7456\u732B\u7278\u7229\u7278\u7229\u73F0\u7316\u73F0\u7317\u725D\u722C\u725D\u722B\u7375\u722B\u7375\u722B\u7456\u732B\u7456\u732B\u7278\u71DD\u7278\u71DD\u73CD\u7316\u73F0\u7317\u7244\u722B\u7244\u722A\u7361\u722B\u7361\u722B\u7401\u72E8\u7401\u72E8\u7401\u72E8\u7318\u726F\u72E9\u731B\u7318\u726F\u7371\u72A8\u7374\u72A8\u7318\u726F\u7318\u726F\u7318\u726F\u7318\u726F\u7318\u726F\u7318\u726F\u7318\u726F\u7318\u726F\u71EE\u72A8\u7202\u72A8\u7361\u7296\u7361\u7296\u7361\u7296\u7361\u70FC\u71C7\u72A8\u7374\u72A8\u7374\u70FC\u71C7\u70FC\u7374\u72A8\u7374\u70FC\u7361\u7296\u7361\u7296\u7361\u7296\u7361\u7296\u71C7\u71BC\u7361\u7296\u7361\u7296\u7361\u7296\u7361\u7296\u7361\u7296\u7456\u732B\u7456\u732B\u7456\u732B\u7471\u7311\u7361\u7296\u7361\u7296\u7361\u7296\u7361\u7296\u7318\u726F\u7318\u726F\u7318\u726F\u7318\u726F\u7361\u7296\u7361\u7296\u7361\u7296\u72BD\u7244\u72BD\u7244\u7233\u7201\u7233\u7202\u7361\u7296\u732A\u728F\u732A\u728F\u72C8\u7247\u7229\u727A\u73C7\u72A4\u7361\u7296\u7225\u7276\u73D4\u72D8\u73D4\u72D8\u73D4\u72D8\u7317\u726F\u7259\u72D8\u7259\u72D8\u721A\u72BE\u721A\u727E\u721A\u727E\u726C\u727A\u7388\u72DC\u7362\u7319\u730C\u72F8\u7240\u72DA\u73AB\u72F8\u72E2\u7283\u728B\u7261\u728B\u725B\u7283\u7261\u728B\u725B\u728B\u7261\u728B\u725B\u7283\u7261\u728B\u725B\u7159\u72CA\u71FE\u72CA\u72D1\u734A\u715A\u7300\u715E\u7300\u7182\u7300\u745C\u7307\u735E\u729D\u735E\u729D\u735E\u729D\u735E\u729D\u735E\u729D\u735E\u729D\u7371\u72AF\u7371\u72AF\u7371\u72AF\u7371\u72AF\u75CD\u73FF\u726C\u7310\u72C8\u7247\u72C8\u7247\u7207\u71E7\u721A\u727E\u725E\u7305\u7389\u7264\u727E\u722B\u72C0\u72C3\u72CA\u7250\u72DD\u7265\u7282\u7268\u7272\u7264\u71D2\u72CF\u712C\u72CF\u72DD\u72C1\u72DD\u72C1\u72DD\u72C1\u72DD\u72C1\u72DD\u72C1\u72DD\u72C1\u72DD\u72C1\u72DD\u72C1\u72DD\u72C1\u72DD\u72C1\u72DD\u72C1\u72DD\u72C1\u72DD\u72C1\u72DD\u72C1\u72DD\u72C1\u72DD\u72C1\u72DD\u72C1\u72DD\u72C1\u72DD\u72C1\u72DD\u72C1\u735D\u71B1\u727A\u7248\u7456\u732B\u7281\u7296\u7271\u7211\u7272\u7211\u7190\u72BE\u7190\u72BE\u724D\u7218\u738A\u7215\u738A\u7215\u731F\u7296\u7159\u7326\u731F\u7296\u7401\u72E8\u724D\u7218\u723C\u7218\u727A\u7248\u727A\u7248\u73C5\u7246\u73D3\u7246\u74A4\u7246\u7330\u72CE\u7330\u72CE\u7520\u7296\u7520\u7296\u731F\u7193\u75EF\u71C2\u75EF\u71C2\u7191\u72B5\u72E9\u731B\u72CF\u724D\u72F6\u724D\u72F6\u724D\u7471\u7296\u7471\u7296\u71E2\u72CD\u713C\u72CD\u714F\u72C9\u7143\u72C9\u7221\u72CF\u7219\u72CF\u71D2\u72CF\u7136\u72CF\u70D3\u72A4\u70B1\u72A4\u73C5\u7296\u73C5\u7296\u7372\u7272\u7398\u7272\u747B\u7239\u75EF\u71C1\u75EF\u71C1\u75EF\u71C1\u75EF\u7227\u75EF\u7227\u75EF\u7205\u75EF\u71C2\u75EF\u71C2\u75EF\u7227\u75EF\u7227\u75EF\u71C1\u7367\u71C2\u7367\u71C2\u7367\u7227\u7367\u7227\u738A\u7227\u7367\u71C2\u7367\u7227\u7367\u7227\u71C4\u7296\u71C4\u7296\u7356\u7296\u7357\u7296\u7367\u71C1\u7367\u71C1\u7367\u71C1\u7367\u71C1\u754D\u71C1\u7369\u71C1\u71C4\u7296\u71C4\u7296\u7367\u71C2\u7367\u71C2\u7367\u71C1\u7367\u71C2\u736C\u71C2\u7367\u71C1\u7367\u71C1\u7367\u71C1\u7367\u71C1\u7367\u71C1\u7367\u71C1\u7367\u71C2\u7367\u71C2\u7367\u7296\u7369\u7294\u7367\u7296\u7367\u7296\u7367\u7296\u7367\u7296\u7369\u7296\u7367\u7296\u7367\u7296\u7369\u7296\u7367\u7296\u7367\u7296\u7367\u7296\u7367\u7296\u7367\u7296\u7369\u7296\u7366\u7296\u7367\u7296\u7367\u71C1\u731D\u7232\u731D\u7232\u7289\u71ED\u72B9\u71ED\u719F\u7291\u71B9\u7291\u7362\u71A7\u7359\u71A7\u7358\u71A7\u7362\u71A7\u7358\u7233\u7358\u7233\u7342\u7314\u7342\u7314\u7367\u7256\u7367\u7256\u7367\u7256\u7367\u71C1\u7367\u71C1\u7367\u71C1\u7378\u71C1\u71C3\u7296\u7378\u71B7\u7378\u71B7\u71B9\u7296\u71B9\u7296\u7378\u71B7\u71B9\u7296\u7378\u711E\u7120\u7296\u7367\u71C0\u7367\u71C0\u71C3\u7296\u71C3\u7296\u7367\u71C0\u7367\u71C0\u71C3\u7296\u71C3\u7296\u7367\u71C0\u7367\u71C0\u71C3\u7296\u71C3\u7296\u7367\u71C0\u7367\u71C0\u71C2\u7296\u71C2\u7296\u7367\u721B\u7275\u7296\u7367\u721B\u7275\u7296\u7367\u721B\u7367\u7182\u7367\u721B\u7367\u7182\u7367\u721B\u7367\u7182\u7367\u721B\u7367\u7182\u7275\u7296\u7275\u7296\u7367\u7182\u7367\u7235\u7367\u71FC\u7367\u71C1\u7367\u71C1\u7367\u71C1\u726D\u725F\u7367\u7214\u726D\u7260\u726D\u7273\u7367\u7214\u726C\u7273\u7317\u71FF\u7317\u71FF\u7258\u7245\u7258\u7245\u71FD\u72B2\u7207\u71E7\u7189\u7236\u71DD\u72CF\u71E8\u72CF\u7189\u72CF\u7189\u72CF\u716F\u72CF\u718C\u72CF\u7160\u72CF\u719B\u72CF\u71BF\u72CF\u7119\u72CF\u71BF\u72CF\u7119\u72CF\u71BF\u72CF\u7119\u72CF\u7165\u72CF\u7165\u72CF\u724F\u7289\u728B\u7289\u7283\u7289\u7257\u7289\u71D2\u72CF\u712C\u72CF\u70A1\u7295\u714E\u7296\u7296\u7223\u727A\u7248\u727A\u7248\u72A3\u7223\u7283\u718C\u728E\u7205\u725F\u7261\u7296\u7223\u7296\u7223\u7283\u7223\u7296\u7223\u735C\u7223\u735C\u7223\u7289\u723E\u7290\u723E\u7289\u7242\u7290\u7242\u72A8\u7232\u72A0\u7232\u72A8\u7232\u72A0\u7232\u72C8\u7247\u72C8\u72CD\u72C8\u7333\u72C8\u7340\u72C8\u7340\u7376\u726F\u7318\u726F\u7318\u726F\u7318\u726F\u7318\u726F\u7318\u726F\u7318\u726F\u7318\u726F\u7318\u7372\u7318\u726F\u7318\u726F\u7318\u726F\u7318\u726F\u7420\u726F\u7420\u726F\u7361\u7296\u7361\u7296\u7361\u7296\u7361\u7296\u7361\u7296\u73D6\u72C8\u7456\u73EB\u7456\u732B\u7456\u732B\u747E\u732B\u72C6\u72BA\u7309\u7213\u7329\u7213\u72CC\u7246\u72CC\u7246\u72CC\u7246\u72CD\u7246\u72CC\u7246\u72E0\u725A\u72E0\u725A\u714E\u726C\u714D\u726C\u71FF\u726C\u71FF\u726C\u7356\u71AE\u7356\u728D\u7356\u72B7\u7447\u7193\u7361\u7296\u7265\u7200\u72D6\u719E\u727D\u7296\u727D\u734A\u727D\u7296\u72E2\u7248\u7244\u72B7\u7456\u732B\u7456\u732B\u72DA\u72E8\u72E9\u731B\u72C8\u72E7\u72C8\u72E7\u7299\u72EB\u7299\u72EB\u72DA\u72EB\u72DA\u72EB\u72B9\u72EB\u72B9\u72EB\u7367\u7209\u71DE\u72C6\u71AA\u72FD\u71AA\u7296\u7205\u72B7\u7205\u72B7\u726D\u7214\u726D\u7214\u718A\u72C9\u717E\u72C9\u729D\u721C\u729D\u713C\u7431\u72FB\u7431\u72FB\u7431\u72FB\u733E\u7300\u733E\u7300\u733E\u72FB\u733E\u72FB\u7449\u72FB\u7449\u72FB\u73CB\u72FB\u7358\u72FB\u7293\u7338\u7554\u7338\u727F\u7338\u727F\u7338\u727F\u7338\u727F\u7338\u727F\u7338\u727F\u7338\u727F\u7338\u72B0\u7338\u727F\u7338\u727F\u7338\u7332\u7338\u727F\u7338\u727F\u7338\u727F\u7338\u727F\u73B3\u727F\u7338\u7499\u7302\u739C\u72FC\u719A\u7236\u7437\u7279\u71D8\u7325\u727C\u7333\u727C\u72C3\u727C\u72C0\u727C\u7223\u727C\u7223\u72A1\u7223\u727C\u7223\u727D\u722C\u727D\u711E\u727D\u71FF\u727D\u71FF\u72A2\u726F\u72A2\u726F\u71B7\u71BF\u7255\u72AE\u7255\u7211\u7255\u7211\u7273\u721A\u7270\u726F\u7270\u726F\u7318\u732A\u741A\u72F0\u7318\u726F\u7456\u732B\u7456\u732B\u7456\u732B\u7228\u7189\u7228\u7189\u70E6\u71E8\u7298\u7296\u723C\u7218\u723C\u7218\u723C\u729C\u723C\u729C\u723C\u7218\u723C\u7218\u723C\u7392\u723C\u7392\u723C\u7392\u723C\u7392\u7406\u7210\u7406\u720F\u7262\u725A\u7262\u7218\u723C\u7218\u723C\u7218\u7262\u725A\u724D\u72C6\u724D\u72C6\u724D\u7218\u724D\u7218\u72EC\u7218\u72EC\u7218\u72AB\u7218\u7258\u7218\u724D\u7249\u724D\u7218\u724D\u7218\u724D\u7218\u724D\u7218\u724D\u731C\u724E\u7218\u724E\u7218\u723F\u71DF\u724E\u7326\u724E\u7218\u73F0\u7317\u73F0\u7317\u727D\u7182\u727D\u72BF\u727D\u72B7\u727D\u7296\u727D\u7209\u727D\u7209\u727D\u721F\u727D\u72BF\u727D\u734F\u727D\u72C3\u727D\u728A\u727D\u7288\u727D\u7288\u727D\u7214\u73C7\u71A1\u73B5\u7182\u756C\u7182\u727D\u7263\u7287\u72BF\u7261\u7214\u7281\u7214\u7261\u7326\u7281\u7326\u726D\u7271\u726D\u7271\u7271\u7271\u7271\u7271\u7271\u7271\u7271\u7271\u7271\u7309\u7271\u7309\u727D\u72EA\u727D\u72EA\u7271\u7274\u726D\u7274\u727D\u72EA\u727D\u72EA\u726D\u73A2\u726D\u73A2\u727D\u72EA\u727D\u72EA\u7289\u7363\u7289\u7363\u7276\u734C\u7276\u734C\u7271\u7362\u7271\u7362\u726D\u7280\u726D\u7280\u726D\u7280\u726D\u7280\u7271\u72CE\u7271\u72CE\u7271\u72D6\u7271\u72D6\u7282\u7298\u7278\u7298\u727D\u7306\u727D\u7306\u7261\u7214\u7281\u7214\u738C\u7261\u72D2\u7214\u731B\u7214\u7271\u7214\u728A\u7214\u7280\u7271\u727B\u7272\u7261\u7219\u7280\u7219\u7271\u7265\u7271\u7265\u727D\u7233\u726D\u7261\u726D\u7261\u7271\u7274\u7271\u7274\u7271\u72CD\u7271\u72CD\u726E\u72EB\u726E\u72EB\u727D\u72EB\u727D\u72EB\u727D\u72EB\u727D\u72EB\u738C\u7214\u738C\u7214\u7271\u7214\u7271\u7214\u7271\u725F\u7271\u725F\u7271\u725F\u7271\u725F\u7271\u72C5\u7271\u72C5\u726E\u72CD\u726F\u72CD\u7271\u7299\u7271\u7299\u7271\u72EA\u7271\u72EA\u726B\u72CD\u7270\u72CD\u7508\u722E\u7508\u722E\u7267\u7214\u727B\u7214\u7272\u7261\u7271\u7261\u7271\u72CB\u7271\u72CB\u7271\u72CB\u7271\u72CB\u74A6\u7214\u74A6\u7214\u723C\u7218\u723C\u72B9\u723C\u72B7\u723C\u722D\u723C\u722D\u71B1\u7296\u727D\u7173\u727D\u7173\u727D\u7296\u7271\u7296\u7323\u7296\u7271\u7296\u7323\u7296\u7272\u7296\u727D\u723B\u727D\u723B\u727D\u72B3\u727D\u7296\u727D\u7296\u7228\u71E9\u7228\u71E9\u717D\u72B2\u7191\u7294\u7191\u7294\u7191\u72B5\u7201\u72B7\u727D\u72B7\u722B\u72B7\u72A2\u72B7\u7196\u7260\u7438\u7295\u7458\u7295\u7271\u72D6\u7271\u72D6\u7350\u72C6\u722D\u7363\u7297\u72C6\u7136\u72B2\u7136\u7363\u7361\u7296\u7361\u7296\u7361\u7296\u7361\u7296\u7401\u72E8\u7401\u72E8\u7401\u72E8\u7401\u72E8\u7361\u7296\u73E8\u730C\u73E8\u730C\u70BE\u714C\u70BE\u714C\u736A\u72B2\u736A\u72B2\u733C\u72A8\u733C\u72A8\u7386\u7279\u7471\u7311\u72DE\u7245\u72DE\u7245\u71F8\u7261\u71F8\u7261\u71F1\u71E8\u714B\u71E8\u714B\u71E8\u7318\u71F4\u7318\u71F4\u7222\u726F\u7222\u726F\u7358\u71C0\u7362\u72E3\u747B\u7239\u75EF\u71C1\u7367\u71C2\u7367\u71C2\u7367\u71C2\u754D\u71C1\u7369\u71C1\u7367\u71C2\u7367\u71C2\u7367\u71C1\u7367\u71C2\u736C\u71C2\u7367\u71C1\u7367\u71C1\u7367\u7235\u7367\u71FC\u7367\u71C1\u7367\u7214\u7367\u7214\u7369\u72BD\u7369\u72BD\u7367\u71FC\u7367\u71C1\u7367\u71FC\u7367\u71C1\u7367\u71C1\u7367\u71C1\u72DE\u726B\u72DE\u726B\u7299\u7255\u7348\u72C8\u7348\u72C8\u72A0\u7296\u7557\u71A1\u7348\u7295\u71AB\u72AB\u72BC\u72A4\u7406\u7406\u7331\u7296\u72B1\u72B2\u726B\u72A4\u72AF\u72B3\u72B2\u72A4\u7281\u72A4\u7247\u72A4\u72F3\u72B3\u72F7\u72A4\u7172\u72A4\u71DE\u72A4\u7301\u72A4\u727E\u72A4\u7399\u72A4\u72BD\u72A4\u72E7\u72B3\u7258\u72A4\u72E7\u72B3\u72CC\u72A4\u7201\u72B4\u727C\u72A4\u72BD\u72A4\u72BD\u72A4\u73D5\u72A4\u72BB\u72A4\u72BB\u72A4\u727A\u72A4\u71E8\u71D9\u7209\u72A4\u71AE\u71D9\u7216\u72A4\u71AB\u71D9\u7185\u72B3\u71E3\u71D8\u7216\u72A4\u7100\u72B3\u7107\u72B3\u721F\u72A4\u7100\u72A4\u732E\u71D9\u721B\u71D9\u71DC\u71D9\u720C\u71D9\u7218\u71D9\u71B2\u71D9\u7169\u71D9\u714C\u7276\u721A\u71CD\u71E5\u71CD\u72C3\u71CD\u71E4\u71CD\u71E2\u71CD\u71A4\u71CD\u72AD\u729B\u72AE\u728D\u72C7\u7293\u72FD\u728D\u72DE\u728D\u72D3\u728D\u72DE\u729C\u739B\u728D\u7212\u728D\u726C\u728D\u7322\u728D\u729C\u728D\u741F\u728D\u7385\u728D\u72C8\u729D\u72C0\u728D\u72DB\u729B\u72D5\u728D\u72A8\u729C\u729E\u728D\u7307\u728D\u72F8\u728D\u744D\u728D\u732A\u728D\u72B7\u728D\u7322\u728D\u71D8\u71B9\u71C2\u729C\u7190\u71B9\u720F\u729C\u719A\u71B9\u7267\u729C\u71EC\u71B9\u7101\u7268\u7174\u7268\u720F\u729C\u7116\u729C\u72A8\u71B9\u71D3\u71B9\u71B6\u71B9\u71DA\u71B9\u71CF\u71B9\u7189\u71B9\u7186\u71B9\u711B\u7237\u71BC\u71B9\u71DF\u71CA\u72EC\u71CC\u71FE\u71B9\u71F0\u71B8\u71D3\u71C2\u72D4\u72AD\u72CB\u729D\u72E9\u72AD\u7316\u729D\u72F2\u729D\u72EE\u729D\u7300\u72AD\u73B2\u729D\u722D\u729D\u7286\u729D\u7347\u729D\u72BC\u729D\u742F\u729D\u739C\u729D\u72F3\u72AD\u72DD\u729D\u72F3\u72AD\u7310\u729D\u72C0\u72AD\u72BC\u729D\u732A\u729D\u731D\u729D\u7469\u729D\u733E\u729D\u72D5\u729D\u733E\u729D\u7224\u71CE\u71E7\u72AD\u71CC\u71CE\u724D\u72AD\u71CB\u71CE\u7278\u72AD\u720F\u71CE\u721F\u72AD\u712C\u726C\u719E\u726C\u7233\u72AE\u7136\u72AD\u72D7\u71D3\u720E\u71D3\u721B\u71CE\u722A\u71D5\u7214\u71CE\u71A8\u71D3\u71A3\u71CE\u713E\u7250\u71F6\u71CF\u721B\u71D9\u731F\u71D9\u721F\u71CE\u720A\u71CE\u71F3\u71CD\u734E\u72A2\u730D\u72AF\u7332\u72AF\u72E4\u72AF\u7318\u72A2\u73EC\u72AF\u73BC\u72AF\u7297\u72A8\u7376\u72AF\u7297\u72A8\u72BD\u72A8\u738B\u72AF\u7325\u72AF\u739A\u72AF\u742E\u72AF\u7369\u72AF\u7394\u72AF\u7390\u72AF\u72F6\u71B9\u722F\u72AF\u724D\u71B9\u733B\u72AF\u72A1\u72AF\u72B2\u72AF\u71E4\u728D\u72CE\u728D\u729A\u72AF\u723B\u72AF\u73D2\u71B9\u72BD\u71B9\u72B6\u71B9\u72E7\u71B9\u723C\u71BC\u719C\u7213\u7214\u7292\u72B5\u71A8\u7246\u71B9\u7354\u71B9\u72A3\u71B9\u7269\u71A8\u7269\u71DE\u73BB\u72BB\u73D9\u72BB\u736D\u72BB\u738A\u72BB\u7317\u72BB\u7401\u72BB\u731F\u72BB\u7482\u72BB\u73D1\u72BB\u7376\u72BB\u746A\u72BB\u73F7\u72BB\u74DD\u72BB\u7436\u72BB\u72ED\u72BB\u73E2\u72BB\u72ED\u72BB\u73CD\u72BB\u730D\u72BB\u7401\u72BB\u7388\u72BB\u7400\u72BB\u751A\u72BB\u73F2\u72BB\u73C3\u72BB\u73D0\u72BB\u7361\u71CE\u7270\u72BB\u72AB\u71CE\u7390\u72BB\u7288\u71CE\u72ED\u72BB\u7303\u71CE\u72F6\u72BB\u7216\u72BA\u7337\u72BA\u72DA\u72BB\u7278\u72BB\u7421\u71CE\u7303\u71CE\u730C\u71CE\u7302\u71CE\u7341\u71CE\u7288\u71CE\u71C1\u722D\u7264\u729D\u72FA\u71C2\u729E\u71CA\u73B6\u71CA\u72E4\u71CE\u72C7\u71C2\u72BE\u71ED\u72E6\u72B7\u7306\u72C0\u7331\u72B7\u72A6\u72B7\u72CC\u72B7\u72F3\u72B7\u72D1\u72B7\u7321\u72B7\u7272\u72B7\u7407\u72B7\u7307\u72B7\u7312\u72B7\u7305\u72B7\u732E\u72B7\u7321\u72B7\u72D2\u72B7\u72E8\u72B8\u730D\u72B7\u7401\u72B7\u72DF\u72B7\u72CA\u72B7\u71DF\u71D4\u71CE\u72B7\u7158\u71D4\u71C7\u72B7\u717B\u71D4\u713C\u72B6\u71CD\u71D4\u71DC\u72B7\u7152\u72B6\u7137\u72B7\u7170\u72B7\u715E\u72B7\u7358\u71D4\u7246\u71D4\u71C4\u71D4\u71F8\u724A\u71CB\u71D4\u71AA\u71D4\u71D5\u726F\u7151\u7290\u7251\u71DE\u71D0\u724A\u72C4\u724A\u7196\u71D4\u71D0\u724A\u7197\u71D4\u72B3\u7296\u7272\u7296\u72A5\u7296\u7237\u7296\u7237\u7296\u7298\u72A4\u70F4\u7296\u71EF\u7296\u72D9\u72A2\u723B\u7296\u7311\u7296\u72CB\u72A4\u7255\u72A4\u726E\u7296\u7279\u7296\u728D\u7296\u73B5\u7296\u72DD\u7296\u72AD\u7296\u71FA\u71CC\u720C\u72AB\u71DB\u71CC\u7207\u72AB\u71DE\u71CC\u71AF\u72AB\u7207\u71CC\u71E9\u72AB\u70CB\u72AB\u70FA\u72AB\u721B\u72AB\u70CB\u72AB\u7307\u71CC\u71E9\u71CC\u71FC\u71CA\u7211\u71CC\u7207\u71CC\u7197\u71CE\u71E3\u71CC\u7129\u7279\u71E9\u71C2\u71DF\u71C2\u72B7\u71C2\u7212\u71C2\u71FE\u71C2\u71DC\u71C2\u7325\u72BD\u731A\u72BD\u72DB\u72BD\u7344\u72BD\u72DB\u72BD\u72EC\u72BD\u730D\u72BD\u731B\u72BD\u72DF\u72BD\u72EC\u72BD\u732E\u72BD\u7285\u72BD\u7439\u72BD\u732A\u72BD\u7356\u72BD\u731B\u72BD\u7386\u72BD\u7349\u72BD\u7322\u72BD\u72E4\u72BD\u7329\u72BD\u7320\u72BD\u742A\u72BD\u7307\u72BD\u730E\u72BD\u72BF\u72BD\u7221\u71DB\u71F8\u72B7\u719C\u71DB\u71F6\u72B6\u71AB\u71DB\u7160\u72BC\u71FA\u71DB\u7204\u72B7\u717B\u72B9\u7151\u72B9\u7192\u72B7\u717B\u72B7\u73A4\u71DB\u7284\u71DB\u71F3\u71DB\u7249\u7251\u720A\u71DB\u71ED\u71DB\u71F9\u7283\u717A\u7290\u7275\u71DB\u720E\u7251\u731B\u7251\u71E9\u71DB\u7218\u7251\u71B5\u71DB\u727B\u72A2\u7223\u7296\u727D\u72A4\u7290\u7296\u721C\u7296\u720B\u7296\u7273\u72A4\u7248\u7296\u7164\u7296\u7131\u7296\u7276\u7296\u7222\u7296\u7300\u7296\u7259\u7296\u72AC\u72A4\u7200\u7296\u72B3\u72A4\u7245\u7296\u71E1\u72A4\u7251\u7296\u7250\u7296\u726F\u7296\u737C\u7296\u729D\u7296\u7261\u7296\u725B\u7296\u7187\u71CF\u71D2\u72AC\u71B0\u71CF\u71B5\u72AC\u71AC\u71CF\u7171\u72AB\u71D3\u71CF\u71A8\u72AC\u709C\u72A7\u70B9\u72A7\u71C4\u72AC\u7090\u72AC\u72B3\u71D0\u71A8\u71D0\u71D7\u71CF\u71D6\u71D0\u71B3\u71D0\u7148\u71D0\u715E\u71CF\u711F\u7244\u71AE\u71C5\u71BB\u71C5\u72A3\u71C5\u71C4\u71C5\u71C5\u71C5\u71A1\u71C5\u7299\u72B2\u7252\u72A4\u72B0\u72B3\u72A2\u72A4\u7255\u72A4\u723A\u72A4\u729F\u72B3\u727B\u72A4\u7177\u72A4\u7196\u72A4\u72C3\u72A4\u724B\u72A4\u7341\u72A4\u7284\u72A4\u72E7\u72B4\u7239\u72A4\u72F2\u72B3\u7291\u72A4\u71FF\u72B3\u7273\u72A4\u7270\u72A4\u7299\u72A4\u73C7\u72A4\u72BC\u72A4\u72A2\u72A4\u726F\u72A4\u71AC\u71D9\u71E7\u72A4\u71BA\u71D9\u71CF\u72A4\u71B1\u71D9\u7176\u72B3\u71EA\u71D8\u71C7\u72A4\u70C3\u72B0\u710D\u72B0\u71FA\u72A4\u70B4\u72A4\u72D1\u71D9\u71C7\u71D9\u71DC\u71D9\u71E7\u71D9\u71C9\u71D9\u7196\u71D9\u7165\u71D9\u7173\u7276\u71CF\u71CD\u71BF\u71CD\u72AC\u71CD\u71E6\u71CD\u71C7\u71CD\u71A1\u71CD\u727B\u72A2\u7281\u7296\u72F3\u72A4\u72EF\u7296\u72A6\u7296\u72A7\u7296\u72F3\u72A4\u72ED\u7296\u7200\u7296\u71D6\u7296\u72D9\u7296\u7234\u7296\u73A5\u7296\u72FE\u7296\u730B\u72A4\u727E\u7296\u730B\u72A4\u727F\u7296\u7255\u72A4\u72EC\u7296\u72F5\u7296\u7314\u7296\u7421\u7296\u7326\u7296\u7306\u7296\u72FB\u7296\u71D3\u71CF\u7217\u72AC\u71F7\u71CF\u7258\u72AC\u71E7\u71CF\u720E\u72AB\u723F\u71CF\u71FE\u72AC\u7145\u72A7\u7162\u72A7\u722C\u72AC\u7139\u72AC\u7307\u71D0\u71FE\u71D0\u7218\u71CF\u721A\u71D0\u7225\u71D0\u71B7\u71D0\u71B0\u71CF\u7178\u7244\u7218\u71C5\u722B\u71C5\u7313\u71C5\u7220\u71C5\u7235\u71C5\u7205\u71C5\u7299\u72B2\u72B3\u72A4\u731D\u72B3\u7304\u72A4\u72D8\u72A4\u72D5\u72A4\u7311\u72B3\u7323\u72A4\u7216\u72A4\u723E\u72A4\u7330\u72A4\u7264\u72A4\u73E9\u72A4\u732C\u72A4\u7348\u72B4\u72B7\u72A4\u7347\u72B3\u72BA\u72A4\u727D\u72B3\u7311\u72A4\u7318\u72A4\u7341\u72A4\u746F\u72A4\u7355\u72A4\u734A\u72A4\u7301\u72A4\u71FB\u71D9\u722E\u72A4\u720C\u71D9\u7271\u72A4\u71EC\u71D9\u7215\u72B4\u7257\u71D8\u721E\u72A4\u716E\u72B0\u71B8\u72B0\u7257\u72A4\u715C\u72A4\u7329\u71D9\u721E\u71D9\u721E\u71D9\u722F\u71D9\u723E\u71D9\u7207\u71D9\u71BA\u71D9\u71BF\u7277\u7239\u71CE\u7231\u71CE\u731E\u71CE\u7246\u71CE\u7239\u71CE\u7212\u71CE\u71F0\u72A1\u71E0\u7296\u71E2\u72A0\u71E3\u7296\u71F4\u7296\u71E8\u7296\u71EF\u72A0\u71F0\u7296\u71B6\u7296\u71DC\u7296\u71EE\u7296\u71E7\u7296\u71F5\u7296\u71EB\u7296\u71D2\u72A0\u71DF\u7296\u71D2\u72A0\u7208\u7296\u71D6\u72A0\u71F0\u7296\u7202\u7296\u71FA\u7296\u7200\u7296\u71F1\u7296\u71FB\u7296\u71DF\u7296\u7204\u71CB\u71E1\u7261\u71D0\u71CB\u71F9\u7261\u71CE\u71CB\u71B5\u7267\u71FC\u71CD\u71F9\u7261\u71C0\u7262\u716A\u7262\u71F9\u7261\u71CB\u7261\u7208\u71C8\u71F9\u71C8\u71CC\u71CB\u71E1\u71C8\u7212\u71C8\u71E5\u71C8\u71C9\u71CB\u71C0\u7244\u71F9\u71C2\u71F4\u71C2\u71FC\u71C2\u71F2\u71C2\u71F5\u71C2\u71D9\u71C2\u70EB\u71B9\u70F6\u71B9\u72B1\u72B2\u726B\u72A4\u7251\u72A4\u7290\u72B2\u7281\u72A4\u727A\u72A4\u72F7\u72A4\u72E7\u72B4\u7172\u72A4\u7301\u72A4\u72A2\u72B2\u7399\u72A4\u72BD\u72A4\u7253\u72A4\u72E7\u72B3\u72F7\u72A4\u7258\u72A4\u72E7\u72B4\u7273\u72A4\u727C\u72A4\u72BB\u72B4\u7332\u72A4\u72BB\u72A4\u7311\u72B4\u72D3\u72B4\u7290\u72A4\u726A\u71D9\u720C\u72B4\u71F5\u71D9\u71DD\u72B4\u71AD\u71D9\u71B5\u72B4\u7221\u71D9\u71DC\u72B4\u7130\u71CD\u722F\u71D9\u720F\u72B4\u724C\u71CD\u71EF\u71D9\u71B7\u72B4\u71DC\u71D9\u7261\u71CD\u7203\u71D9\u71BC\u71D9\u7211\u71CD\u71C9\u71CD\u7227\u71D9\u7275\u71D9\u724A\u71D9\u72EF\u71D9\u72C4\u71D9\u71EB\u72C3\u71AE\u71D9\u726C\u72B4\u7222\u71D9\u7275\u72A4\u71E6\u71D9\u7353\u71CD\u72AD\u729B\u72AE\u728D\u72D1\u728D\u722C\u729B\u72DE\u728D\u7322\u728D\u739B\u728D\u72C8\u729D\u7212\u728D\u7322\u728D\u72AE\u729B\u741F\u728D\u7385\u728D\u72E5\u728D\u72C8\u729D\u739B\u728D\u72C0\u728D\u72C8\u729D\u72F8\u728D\u729E\u728D\u72E7\u729C\u72EB\u728D\u732A\u728D\u72E7\u729B\u7309\u729A\u7258\u728D\u7211\u71B9\u7206\u729C\u71CA\u71B9\u71C3\u729C\u71BC\u71B9\u71E0\u729C\u71C7\u71B9\u71DA\u729C\u70E3\u71B9\u7225\u71B9\u71FF\u729C\u7225\u71AC\u71CE\u71BE\u71BB\u729C\u71B6\u71B9\u7238\u71AC\u71D8\u71B9\u71D0\u71EA\u7223\u71AC\u71D8\u71AC\u71BD\u71B7\u7277\u71B9\u7285\u71B9\u72C7\u71B9\u7295\u71B9\u71D7\u729C\u71AE\u71B9\u71FB\u72A6\u724B\u71B9\u726C\u729C\u71E9\u71B9\u7362\u71AC\u72D4\u72AD\u72CB\u729D\u72ED\u729D\u724D\u72AD\u72F2\u729D\u733E\u729D\u73B2\u729D\u72F3\u72AD\u722D\u729D\u7347\u729D\u72D4\u72AD\u742F\u729D\u739C\u729D\u72F5\u729D\u72F3\u72AD\u73AE\u729D\u72DD\u729D\u72F3\u72AD\u7313\u729D\u72BC\u729D\u7310\u72AD\u731F\u729D\u733E\u729D\u730D\u72AD\u732F\u72AD\u7258\u729D\u7276\u71CD\u7247\u72AD\u71F7\u71CE\u721A\u72AD\u71C3\u71CE\u720A\u72AD\u71FF\u71CE\u722B\u72AD\u7112\u71CE\u7241\u71CE\u7219\u72AD\u725B\u71C2\u7216\u71CB\u71E7\u72AD\u721B\u71CE\u724E\u71C2\u7232\u71CE\u71FC\u71CE\u725B\u71C2\u71F6\u71C2\u7217\u71CE\u729B\u71CE\u72A4\u71CE\u72F4\u71CE\u7299\u71CE\u722F\u72AE\u71E1\u71CD\u7248\u72BA\u7276\u71CE\u728F\u72AD\u7233\u71CE\u736F\u71C2\u7299\u72B2\u7252\u72A4\u7239\u72A4\u72A8\u72B2\u7255\u72A4\u726F\u72A4\u727B\u72A4\u72E7\u72B3\u7177\u72A4\u72C3\u72A4\u729A\u72B2\u7341\u72A4\u7284\u72A4\u725D\u72A4\u72E7\u72B4\u727B\u72A4\u7239\u72A4\u72E7\u72B3\u7278\u72A4\u7273\u72A4\u72D8\u72B3\u7307\u72A4\u72BC\u72A4\u7317\u72B3\u72D0\u72B3\u72AD\u7298\u7275\u71D9\u71E7\u72B4\u71DD\u71D9\u71DD\u72B4\u71B2\u71D9\u71E8\u72B4\u71DA\u71D9\u71DD\u72B4\u7128\u71CD\u7200\u71D9\u7208\u72B4\u7205\u71CD\u71D8\u71D9\u71E9\u72B4\u71DC\u71D9\u723C\u71CD\u71E6\u71D9\u71E6\u71D9\u7228\u71CD\u71D8\u71CD\u71E9\u71D9\u7261\u71D9\u7229\u71D9\u72BB\u71D9\u72B1\u71CD\u71DC\u72B3\u71B8\u71D9\u720A\u72B4\u722A\u71D9\u7261\u72B4\u71D5\u71D9\u7347\u71CD\u7299\u72B2\u729F\u72A4\u72C1\u72A4\u72A8\u72B2\u72C4\u72A4\u7301\u72A4\u730F\u72A4\u7336\u72B3\u71F9\u72A4\u731C\u72A4\u7286\u72B2\u73D5\u72A4\u7318\u72A4\u72E1\u72A4\u7338\u72B4\u730F\u72A4\u72A3\u72A4\u7336\u72B3\u72EC\u72A4\u72CB\u72A4\u731F\u72B3\u7343\u72A4\u7341\u72A4\u7385\u72B3\u7330\u72B3\u72F8\u7298\u72BF\u71D9\u7245\u72B4\u723B\u71D9\u7223\u72B4\u71FC\u71D9\u721B\u72B4\u720D\u71D9\u7229\u72B4\u712E\u71CE\u7246\u71D9\u721C\u72B4\u7239\u71CE\u7235\u71D9\u720D\u72B4\u7203\u71D9\u7290\u71CE\u7218\u71D9\u722A\u71D9\u727F\u71CE\u7223\u71CE\u720E\u71D9\u7293\u71D9\u7272\u71D9\u72EF\u71D9\u72DC\u71CD\u721B\u72B3\u71D6\u71D9\u7243\u72B4\u7299\u71D9\u728E\u72B4\u7208\u71D9\u7390\u71CE\u7251\u72A4\u71CA\u71CD\u71DC\u72B0\u71B9\u72B0\u71DE\u72B0\u71D4\u72B0\u71DC\u72B0\u71D6\u72A4\u71DB\u72B0\u71DD\u72A4\u71D8\u72B0\u71D9\u72B0\u7200\u72A4\u7163\u72B5\u7202\u72A4\u71DE\u72A4\u720C\u72A4\u71E9\u7296\u7200\u72A4\u71FF\u7296\u7200\u72A4\u7200\u72A4\u71DD\u72A4\u712E\u72A5\u71D5\u72A4\u71B9\u72A4\u71E9\u72A4\u71CA\u72A4\u71D6\u72AC\u71C3\u7296\u71BF\u72A4\u71D2\u72A4\u71DC\u72B0\u714E\u72B0\u71DA\u72B0\u71DF\u72B0\u71E4\u72B0\u71E3\u72A4\u71DB\u72B0\u71D7\u72A4\u71D8\u72B0\u71DB\u72B0\u71D3\u72A9\u71B3\u72A9\u71D6\u72A9\u71DF\u72A9\u71ED\u72AA\u71D6\u729E\u71D0\u72A9\u71DF\u72AE\u71DF\u72A9\u71D0\u72A9\u7099\u72B7\u735B\u717B\u72F1\u723D\u71A3\u71FF\u71DF\u71A2\u71DF\u72D9\u72F1\u723D\u72D4\u72D8\u72BB\u7225\u724D\u7317\u7217\u72EF\u7180\u719F\u71F8\u7265\u739C\u71F6\u72D0\u72DD\u7393\u72D1\u7479\u7207\u726B\u72DC\u71DF\u71A5\u739C\u7346\u735B\u71FC\u735B\u7264\u72F1\u7330\u71A3\u72E4\u7479\u72DA\u72D4\u72D8\u72D0\u73A3\u735B\u717B\u71F8\u71D5\u7393\u71FA\u726B\u71F8\u7177\u711B\u7379\u7138\u721C\u7170\u7379\u7138\u7182\u711B\u72AD\u72F2\u717E\u72CA\u7198\u713E\u7177\u71C8\u7247\u711F\u71F9\u7190\u71CF\u726F\u72CD\u711D\u71CF\u7285\u7247\u7273\u7177\u71DA\u7177\u7242\u7379\u720E\u72CD\u71F2\u71F9\u7257\u72EF\u723D\u72EF\u723D\u7313\u7225\u728B\u72EF\u727A\u7265\u7415\u71F6\u72EF\u72DD\u74DE\u7207\u72CA\u72DC\u7415\u7346\u72EF\u7330\u74DE\u72DA\u72EF\u73A3\u727A\u71D5\u72CA\u71F8\u717A\u72D6\u7318\u72D6\u727C\u72D6\u7318\u72D6\u72EF\u72D6\u717A\u72D6\u734E\u72F2\u723D\u72D6\u717C\u72D6\u72F0\u72D6\u7249\u72D6\u71DF\u72D6\u7373\u72D6\u71DF\u72D6\u72F0\u72D6\u71AC\u72D6\u71A8\u72D6\u7318\u72D6\u7373\u72D6\u72EF\u72D6\u7249\u72D6\u717A\u72D6\u71DF\u72D6\u712C\u72B8\u735A\u717B\u72B3\u723D\u7188\u7187\u728E\u719A\u71F1\u719E\u71F2\u72DA\u72B3\u723D\u730A\u72D8\u72BC\u7226\u7217\u72EF\u719E\u7280\u71F8\u7265\u739C\u71F5\u72AB\u72DD\u7394\u72D1\u747A\u7208\u726B\u72DC\u71F2\u71A5\u739C\u7346\u735A\u71FC\u735A\u7264\u72B3\u7330\u7188\u7288\u747A\u72DA\u730A\u72D8\u72AB\u73A3\u736A\u7188\u72FC\u7255\u717C\u719A\u71FB\u71BD\u71F9\u72E7\u72FC\u7255\u72FE\u72F0\u72D5\u723B\u722F\u7306\u71A1\u729D\u720B\u7273\u73AF\u7215\u72EE\u72EF\u73A3\u72DF\u7490\u721E\u727F\u72EB\u71F9\u71C4\u73AF\u7374\u736A\u720B\u736A\u7293\u72FC\u733D\u717C\u7295\u7490\u72E8\u72FE\u72F0\u72EE\u73B1\u757D\u721C\u76EB\u71FC\u7228\u72B2\u730E\u72B2\u73F4\u72B2\u7228\u72B2\u730E\u72B2\u73F4\u72B2\u7228\u72B2\u7228\u72B2\u7228\u72B2\u7228\u72B6\u74DA\u72B7\u7228\u72B6\u7228\u72B5\u7228\u72B6\u7228\u72B6\u7228\u72B7\u7228\u72B6\u7228\u72B6\u7255\u72B6\u7228\u72B6\u7228\u72B7\u724A\u72B6\u7228\u72B7\u7227\u72B6\u7227\u72B6\u7228\u7310\u7228\u72B6\u740B\u77D0\u7541\u77D0\u7677\u77D0\u740B\u77D0\u7541\u77D0\u7677\u77D0\u740B\u77D0\u740B\u77D0\u740B\u77D0\u740B\u77D0\u77AD\u77D0\u740B\u77D0\u740B\u77D0\u740B\u77D0\u740B\u77D0\u740B\u77D0\u740B\u77D0\u740B\u77D0\u741E\u77D0\u740B\u77D0\u740B\u77D0\u740F\u77D0\u740B\u77D0\u740B\u77D0\u740B\u77D0\u740C\u786D\u740B\u77D0\u717E\u742A\u7149\u742A\u7228\u742A\u716B\u742A\u70CB\u742A\u73E8\u6F81\u71D2\u742A\u71CD\u742A\u7228\u742A\u73E8\u7334\u7230\u72FF\u7230\u72EE\u73E8\u7334\u7230\u72FF\u7230\u6F8B\u73E8\u6F81\u6F83\u72A8\u70C1\u742A\u718A\u742A\u71FD\u742A\u74B4\u75DC\u7519\u75DC\u7519\u75DC\u74B2\u75DB\u7441\u7610\u7441\u7610\u7441\u7610\u74B5\u75DC\u74B5\u75DC\u747B\u75E6\u747B\u75DC\u71AA\u742A\u7111\u742A\u71AC\u742A\u7111\u742A\u73E2\u7368\u73E1\u6F38\u739E\u735F\u739E\u6F38\u739D\u736B\u739D\u6F38\u75B4\u73A0\u75B4\u6F38\u721B\u742A\u7169\u742A\u71E6\u742A\u714F\u742A\u71CE\u742A\u71CE\u742A\u729E\u742A\u72AA\u742A\u724B\u742A\u724B\u742A\u7222\u742A\u71F1\u742A\u730D\u761E\u730D\u761E\u75DF\u75DC\u75DF\u75DC\u75DF\u75DC\u747B\u75DC\u747B\u75DC\u742F\u75DC\u742F\u75DC\u75BE\u75DC\u75BE\u75DC\u758E\u75DC\u74B2\u75DC\u71F7\u761E\u71DE\u761E\u730D\u761E\u71A6\u761E\u710D\u761E\u75DC\u6F81\u7213\u761E\u7251\u761E\u730D\u761E\u75DC\u7334\u73D3\u7309\u73D3\u72F8\u75DC\u7334\u73D3\u7309\u73D3\u6F8B\u75DC\u6F81\u6F99\u72D9\u70C1\u761E\u718A\u761E\u71FD\u761E\u7485\u7808\u7485\u7808\u7485\u7808\u71DF\u761E\u7150\u761E\u71DF\u761E\u7150\u761E\u75FC\u7368\u75FC\u6F38\u75B4\u735F\u75B4\u6F38\u75B4\u736A\u75B4\u6F38\u775E\u73A0\u775E\u6F38\u728B\u761E\u71CA\u761E\u7205\u761E\u716D\u761E\u7213\u761E\u720F\u761E\u7319\u761E\u7328\u761E\u72B4\u761E\u72C1\u761D\u72B5\u761E\u727E\u761E\u7305\u7632\u729B\u7812\u7238\u7812\u742F\u7812\u71EB\u7812\u711B\u7812\u77D0\u6F81\u72CD\u7812\u72FB\u7812\u742F\u7812\u77D0\u7334\u75B4\u7309\u75B4\u7306\u77D0\u7334\u75B4\u7309\u75B4\u6F8B\u77D0\u6F81\u6FAE\u730A\u70C1\u7812\u718A\u7812\u71FD\u7812\u7456\u7A05\u7456\u7A05\u7456\u7A05\u7226\u7812\u7154\u7812\u7226\u7812\u7154\u7812\u7815\u7368\u7815\u6F38\u775E\u7371\u775E\u6F38\u775E\u737D\u775E\u6F38\u7908\u73A0\u7908\u6F38\u7316\u7812\u7241\u7812\u7255\u7812\u71A6\u7812\u729E\u7812\u729D\u7812\u73BB\u7813\u73DB\u7813\u7363\u7812\u7378\u7812\u7392\u7812\u7351\u7812\u72DC\u7A06\u72AC\u7A06\u750D\u7A06\u727A\u7A06\u716E\u7A06\u79C4\u6F81\u7372\u7A06\u7387\u7A06\u750D\u7A06\u79C4\u7334\u775E\u731C\u775E\u7303\u79C4\u7334\u775E\u731C\u775E\u6F8B\u79C4\u6F81\u6F73\u733E\u70C1\u7A06\u718A\u7A06\u71FD\u7A06\u737F\u785C\u737F\u7857\u728F\u7A06\u7183\u7A06\u728F\u7A06\u7183\u7A06\u7A30\u7368\u7A30\u6F38\u7918\u737E\u7918\u6F38\u7918\u7393\u7918\u6F38\u7AB2\u73A0\u7AB2\u6F38\u73BF\u7A06\u72C7\u7A06\u72C4\u7A06\u71E3\u7A06\u731C\u7A06\u731B\u7A06\u746D\u7A06\u747B\u7A06\u741C\u7A06\u7413\u7A06\u741A\u7A06\u7419\u7A06\u7BB8\u6F81\u7BB8\u7334\u7918\u7330\u7918\u730C\u7BB8\u7334\u7918\u7330\u7918\u6F8B\u7BB8\u6F81\u6F7D\u73A3\u7C4B\u7368\u7C4B\u6F38\u7CA5\u7397\u7CA5\u6F38\u7CA6\u7399\u7CA6\u6F38\u7C5C\u73A0\u7C5C\u6F38\u737F\u727B\u74BB\u7272\u713B\u71E6\u72B8\u7195\u713B\u721D\u7325\u7195\u712C\u72A9\u712C\u6F89\u738C\u7445\u739A\u7445\u738C\u6F38\u7146\u6E04\u7146\u7445\u773E\u754C\u773E\u6E04\u7726\u74EF\u7735\u74EF\u7726\u6F38\u7735\u6F38\u7726\u741B\u7735\u741B\u7726\u6F38\u7735\u6F38\u739A\u6F38\u727A\u741B\u727A\u6E2E\u71DC\u7195\u713B\u7182\u713B\u711E\u7139\u71E5\u721C\u71E5\u7300\u71E5\u7139\u71E5\u721B\u71E5\u7300\u71E5\u73E3\u71E5\u7178\u7235\u7283\u7235\u738F\u7235\u7178\u7235\u7282\u7235\u738F\u7235\u749A\u7235\u732C\u72A5\u72C5\u729E\u724A\u729F\u7314\u7296\u7257\u729E\u72C6\u7296\u7244\u729F\u734D\u7298\u724F\u7296\u7311\u7296\u730F\u729E\u728D\u729E\u7468\u729F\u7428\u731B\u72D9\u729D\u72C5\u7296\u72C0\u729F\u7330\u7296\u729F\u729F\u72DA\u72D1\u73B6\u72A0\u72A8\u72A5\u73E6\u72AD\u72E3\u72A0\u72FB\u72A3\u72CA\u7298\u7342\u72C7\u72E4\u72BF\u729D\u72C0\u7328\u72B8\u7272\u72C0\u72E2\u72B8\u7267\u72C0\u735A\u72B8\u726F\u72B8\u732B\u72B7\u7334\u72BF\u72B0\u72C0\u747A\u72C1\u744A\u7343\u730E\u72C3\u72DB\u72B8\u72E1\u72C0\u733F\u72B9\u72BB\u72C1\u72EB\u730F\u73A8\u72BC\u72C2\u72C7\u73F2\u72C7\u730D\u72C6\u7305\u72C7\u72E8\u72BE\u7112\u71CE\u71DB\u71CE\u7100\u71CD\u7104\u71CD\u727B\u72A2\u7223\u7296\u720B\u7296\u727B\u72A2\u721C\u7296\u725B\u7296\u7248\u7296\u72AC\u72A4\u7164\u7296\u7276\u7296\u727B\u72A2\u7300\u7296\u7259\u7296\u7267\u7296\u72AC\u72A4\u7248\u7296\u7200\u7296\u72AC\u72A4\u7252\u7296\u7251\u7296\u729A\u72A4\u72B5\u7296\u729D\u7296\u72C8\u72A9\u72CB\u72A4\u7214\u71CF\u71D7\u72AB\u71C7\u71CF\u71D7\u72AB\u71A3\u71CF\u7198\u72AB\u71BB\u71CF\u71A9\u72AB\u710D\u71D0\u71D8\u71D0\u71DE\u72AB\u71E2\u71C5\u71AB\u71D0\u719A\u72AB\u71D7\u71CF\u71E7\u71C5\u71D6\u71CE\u719E\u71CF\u721E\u71C5\u719A\u71C5\u71CF\u71CF\u7258\u71D0\u71B8\u71CF\u7282\u71CD\u7253\u71C6\u71B0\u71CF\u71EB\u72AB\u7252\u72AC\u71CF\u71CF\u72E3\u71C5\u7278\u72A2\u7273\u7296\u7299\u7296\u7278\u72A2\u7298\u7296\u72F8\u7296\u72DF\u7296\u72F3\u72A4\u71F7\u7296\u72CB\u7296\u7270\u72A2\u7396\u7296\u72F0\u7296\u72F2\u7296\u72F3\u72A4\u72DF\u7296\u7270\u7296\u72F3\u72A4\u72C2\u7296\u7293\u7296\u72D5\u72A4\u72E0\u7296\u731B\u7296\u7325\u72A9\u731B\u72A4\u7268\u71CF\u722F\u72AB\u720F\u71CF\u7219\u72AB\u71E4\u71CF\u71C6\u72AB\u71E6\u71CF\u71FF\u72AB\u710C\u71D0\u7205\u71D0\u71F6\u72AB\u7218\u71C5\u71A0\u71D0\u71D0\u72AB\u71F9\u71CF\u724D\u71C5\u71FE\u71CE\u71F4\u71CF\u7271\u71C5\u71E6\u71C5\u71EA\u71CF\u7281\u71D0\u7228\u71CF\u72C1\u71CD\u727C\u71C6\u720F\u72AB\u71D3\u71CF\u720D\u72AB\u7276\u72AC\u7206\u71CF\u732B\u71C5\u71D7\u72AB\u7242\u72B0\u71F9\u72B0\u7245\u72B0\u724A\u72B0\u7247\u72B0\u728B\u72A4\u727E\u72B0\u727F\u72A4\u7252\u72B0\u724C\u72B0\u7242\u72A4\u71D5\u72A5\u723E\u72A4\u7220\u72A4\u7223\u72A4\u7272\u72A4\u7269\u72AC\u7268\u7296\u7230\u72A4\u7243\u72A4\u71E2\u72A9\u71C2\u72A9\u71D6\u72A9\u71DF\u72A9\u71ED\u72AA\u71D6\u729E\u71DF\u72A9\u71DF\u72AE\u71DF\u72A9\u71DF\u72A9\u72E1\u72A4\u729D\u72A4\u7253\u72A4\u7253\u72A4\u72AE\u72B3\u712C\u72A4\u7224\u72A4\u72FF\u72A4\u725F\u72A4\u7347\u72A4\u72E6\u72B3\u7291\u72B4\u7285\u72A4\u729C\u72A4\u72C0\u72A4\u73F7\u72A4\u7301\u72A4\u72E3\u72A4\u7233\u71D9\u7251\u72A4\u720C\u71D9\u7218\u72A4\u7247\u71D9\u7234\u72A4\u726D\u72A4\u7109\u72A4\u7350\u71D9\u7234\u71D9\u7229\u71D9\u7251\u71D9\u7247\u71D9\u71BD\u71D9\u71F1\u71D9\u719B\u72A4\u722F\u71CD\u7220\u71CD\u7315\u71CD\u727B\u71CD\u7219\u71CD\u71D9\u71CD\u729B\u729D\u72CA\u729D\u72BF\u729D\u72BF\u729D\u72C4\u72AD\u719B\u729D\u7284\u729D\u72FE\u729D\u7238\u729D\u73AF\u729D\u72C7\u72AD\u728D\u729D\u72F3\u729D\u72C1\u729D\u73DF\u729D\u7340\u729D\u72DE\u72AD\u72CA\u729D\u724D\u71CE\u726B\u72BB\u7221\u71CE\u721C\u71CE\u726A\u72BB\u7282\u71CE\u7268\u72BB\u7268\u72BB\u719D\u72BB\u7381\u71CE\u7268\u71CE\u7227\u71CE\u7285\u71CE\u7276\u71CE\u721A\u71CE\u7207\u71CE\u71A6\u72A4\u7273\u71C1\u7216\u71C1\u72FB\u71C1\u724D\u71C1\u7283\u71C1\u7252\u71C1\u725E\u728D\u72A4\u728D\u7298\u728D\u7298\u728D\u72BE\u729A\u715E\u728D\u7253\u728D\u72DA\u728D\u720C\u728D\u737C\u728D\u72C9\u729A\u729D\u729A\u72AA\u728D\u72CC\u728D\u72A6\u728D\u73C3\u728D\u7302\u728D\u7292\u728D\u7209\u71B9\u722E\u72AB\u71E0\u71B9\u7207\u72AB\u723C\u71B9\u721F\u72AB\u7212\u72AB\u7164\u72AB\u732C\u71B9\u721F\u71B9\u71EE\u71B9\u724C\u71B9\u723E\u71B9\u71D3\u71BA\u71D4\u71B9\u7148\u7279\u722C\u71AC\u71CE\u71AC\u72B2\u71AC\u722A\u71AC\u721A\u71AC\u7212\u71AC\u71B6\u71A8\u7254\u71A8\u71E6\u71C2\u72C6\u71C2\u7152\u71D4\u7137\u71D4\u70CB\u71C2\u70FA\u71C2\u717B\u71DB\u7151\u71DB\u7098\u71D0\u70B4\u71D0\u70B8\u71CD\u7102\u71CD\u710A\u71D0\u7126\u71D0\u712A\u71CE\u7174\u71CE\u71C0\u71C2\u7169\u71C2\u711D\u71AC\u7149\u71AC\u727A\u74EF\u727A\u6D5A\u7198\u7338\u727E\u7338\u7364\u7338\u71E6\u7338\u727D\u7338\u73CC\u7338\u7223\u7338\u7212\u7338\u7234\u7338\u7295\u732C\u746F\u732C\u71FD\u732C\u71FD\u732C\u723B\u732C\u71B3\u732C\u7223\u732C\u71B2\u732C\u71C5\u732C\u7242\u732C\u71E5\u732C\u71E1\u732C\u733F\u732C\u7203\u732C\u7239\u732C\u7239\u732C\u71EF\u73A7\u71FD\u732C\u7200\u77D0\u7340\u77D0\u7480\u77D0\u72AD\u77D0\u7351\u77D0\u7494\u77D0\u72E0\u77D0\u72EA\u77D0\u7311\u77D0\u7358\u77D0\u75A2\u77D0\u7287\u77D0\u7287\u77CF\u72DE\u77CF\u727B\u77D0\u72E0\u77D0\u7255\u77D0\u7257\u77D0\u7308\u77D0\u72AC\u77D0\u72AA\u77D0\u740F\u77D0\u7260\u77D0\u7321\u77D0\u7321\u77D0\u72E5\u786D\u731F\u77D0\u727F\u7338\u7371\u7338\u7463\u7338\u727F\u7338\u7371\u7338\u7462\u7338\u727F\u7338\u727F\u7338\u7287\u7338\u7293\u7338\u7554\u7338\u727F\u7338\u727F\u7338\u727F\u7338\u727F\u7338\u727F\u7338\u727F\u7338\u727F\u7338\u72B0\u7338\u727F\u7338\u727F\u7338\u7332\u7338\u727F\u7338\u727F\u7338\u727F\u7338\u727F\u73B3\u727F\u7338\u740B\u77D0\u7541\u77D0\u7677\u77D0\u740B\u77D0\u7541\u77D0\u7677\u77D0\u740B\u77D0\u740B\u77D0\u740B\u77D0\u740B\u77D0\u77AD\u77D0\u740B\u77D0\u740B\u77D0\u740B\u77D0\u740B\u77D0\u740B\u77D0\u740B\u77D0\u740B\u77D0\u741E\u77D0\u740B\u77D0\u740B\u77D0\u740F\u77D0\u740B\u77D0\u740B\u77D0\u740B\u77D0\u740C\u786D\u740B\u77D0\u7330\u73CD\u7330\u73CD\u7330\u73CD\u73B1\u7610\u73B1\u7610\u73B1\u7610\u73F6\u7808\u73F6\u7808\u73F6\u7808\u73C4\u7A05\u73C4\u7A05\u73C4\u7A05\u7163\u727B\u7163\u7272\u7430\u773F\u735E\u72FB\u7358\u72FB\u7358\u72FB\u74B4\u75DC\u74B2\u75DB\u74B2\u75DC\u73B1\u7610\u73B1\u7610\u73F6\u7808\u73F6\u7808\u73C4\u7A05\u73C4\u7A05\u7283\u71AE\u727A\u7248\u7283\u7223\u7282\u7223\u728D\u7207\u7271\u72CC\u7271\u7214\u7271\u7213\u71E7\u7296\u6F2E\u761D\u6F40\u761E\u6F40\u72A9\u6F40\u72DB\u6F40\u730D\u6F40\u733F\u6F40\u73A3\u7262\u725A\u7262\u725A\u726D\u72CE\u726D\u72CE\u7278\u72A1\u7270\u72A1\u7268\u725F\u727A\u725F\u7262\u7218\u7262\u7218\u7318\u726F\u7318\u726F\u7318\u726F\u7271\u7300\u7271\u7300\u719B\u7279\u719B\u7279\u7273\u7287\u72A4\u7267\u7271\u7271\u7271\u7271\u7275\u72CE\u727F\u72CE\u7271\u7296\u7271\u7296\u727D\u71CE\u727D\u7211\u727D\u725E\u727D\u7296\u727D\u7296\u726D\u72CE\u726D\u72CE\u727D\u723C\u7264\u7296\u727E\u7296\u726D\u72B7\u7275\u72B7\u727D\u72DA\u728A\u72DA\u726D\u7332\u726C\u7332\u726D\u7296\u726D\u7296\u726C\u7296\u7276\u7296\u7276\u72C3\u7276\u72C3\u7271\u7323\u7271\u7323\u7263\u72B7\u7277\u72B7\u709A\u72A9\u70C8\u72A9\u709A\u72A9\u7194\u72F8\u71AF\u729C\u71E7\u7296\u71E9\u7307\u727D\u735F\u723C\u7218\u727D\u71FF\u71B2\u7296\u732F\u7296\u7309\u7296\u7309\u7296\u73BF\u7296\u73BF\u7296\u731F\u7193\u727A\u7248\u731F\u7193\u7356\u71AE\u7367\u7209\u7437\u7279\u73C7\u71A1\u7261\u7326\u7281\u7326\u738C\u7261\u7271\u7296\u7272\u7296\u718A\u742A\u723D\u743E\u71F7\u7632\u72BE\u729A\u72FF\u728D\u72AE\u728D\u72C9\u729A\u72EE\u728D\u72BF\u728D\u727A\u72AB\u71E5\u71B9\u715A\u728D\u718A\u728D\u72F3\u728D\u72AE\u728D\u72C0\u72AD\u72DD\u729D\u7328\u729D\u730F\u729D\u72CB\u729D\u72DE\u72AD\u72CE\u729D\u7345\u729D\u72BA\u72BB\u719D\u729D\u71C7\u729D\u717F\u7298\u72A0\u72B3\u72BF\u72A4\u72B5\u72A4\u7297\u72A4\u729E\u72A4\u72EB\u72B3\u72F6\u72A4\u72D7\u72B3\u7247\u72A4\u720B\u71D9\u7109\u72B3\u7137\u72B3\u7223\u72AB\u716A\u7187\u70C6\u72B7\u71EC\u71C2\u7845\u732A\u7A6B\u72FB\u71C1\u7338\u72A7\u7338\u738D\u7338\u71E6\u7338\u72B5\u7338\u73C4\u7338\u7222\u7338\u721E\u7338\u7240\u7338\u7243\u732C\u7498\u732C\u71F4\u732C\u71F4\u732C\u7214\u732C\u7206\u732C\u7217\u732C\u71C1\u732C\u71C1\u732C\u71C1\u732C\u71F4\u732C\u71F4\u732C\u7297\u732C\u71FE\u732C\u721A\u732C\u721A\u732C\u721C\u73A7\u71CB\u732C\u722A\u77D0\u736A\u77D0\u74AA\u77D0\u7284\u77D0\u737E\u77D0\u74B9\u77D0\u72AC\u77D0\u72BC\u77D0\u72D8\u77D0\u72E1\u77D0\u75CC\u77D0\u7266\u77D0\u7266\u77CF\u72AB\u77CF\u7281\u77D0\u72C0\u77D0\u722A\u77D0\u722A\u77D0\u722A\u77D0\u7281\u77D0\u7281\u77D0\u732E\u77D0\u7258\u77D0\u72BA\u77D0\u72BA\u77D0\u7349\u786D\u722A\u77D0\u730B\u71B3", "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\u7169\u7131\u7168\u715E\u7130\u7126\u7178\u7168\u70A6\u70D6\u7170\u7097\u71B6\u7168\u7169\u7117\u7166\u7110\u710B\u7131\u7186\u7184\u71C8\u718D\u718C\u7130\0\0\0\0\0\0\u70DE\u7070\u70F4\u716F\u70E0\u7108\u70E9\u7074\u7084\u7090\u7074\u708A\u718C\u70FA\u70FA\u70EE\u7100\u70AA\u70C8\u7074\u70EA\u7114\u7166\u70FE\u711C\u70F6\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\u707E\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\u7086\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\u7096\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\u70A6\u70A6\u708B\u70A6\u70CE\u7088\u708B\u70A7\u7089\u70C4\0\0\0\0\0\0\0\0\u70A8\u70A8\u70A6\0\u70A6\u70BA\0\0\0\0\0\0\0\0\0\0\0\0\0\0\u70A6\u70A6\u6EFD\u6EFD\u6F1A\u6F1A\u6F1A\u6F1A\u6F18\u6F1A\u6F1A\u6F2C\u6F1A\u6F2C\u6F1A\u6F22\u6F1A\u6F2C\u6F18\u6F18\u6F1A\u6F1A\u6F1A\u6FF0\u6F11\u6EFD\u6ED0\u6F52\u6F1A\u7004\u6ED8\u6F1A\u6F1A\u6F1A\u6F1A\u6F8B\u7040\u6F1A\u6F1A\u6F1A\u6F1A\u6F1A\u6F1A\u6F1A\u6F1B\u6F1C\u6F1A\u6F1A\u6F1A\u6F1A\u6F1A\u6F1A\u6F1A\u6F1A\u6F14\u6F19\u6F1A\u6F2E\u6F52\u6F28\u6F1B\u6F1A\u6F1A\u6F1A\u6F1A\u6F1A\u6F2F\0\u6F23\u70EF\u6F22\u6FD9\u6FF1\u6FD9\u6FEC\0\0\0\0\0\0\0\0\0\0\0\0\u7169\u7131\u7126\u716A\u7130\u7130\u7168\u7169\u70A6\u7172\u715D\u71B6\u7168\u7142\u7169\u7168\u7117\u713B\u7131\u7186\u717E\u7191\u7175\u7174\0\0\0\0\0\0\0\u7117\u7104\u70E3\u70FA\u70D8\u70DD\u70E7\u70F8\u7090\u70FF\u7088\u70FE\u70E8\u70DD\u70FE\u70F6\u7104\u70EA\u7112\u70F0\u70FF\u7137\u7110\u7160\u7138\0\0\0\0\0\u70E8\u70F2\u718E\u7137\u7196\u7169\u70FA\u71B9\u70EC\u7116\u7102\0\0\0\0\u7116\u70FA\u7169\u70D8\u70DF\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\u70FA\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\u70DA\u70DA\u6F27\u70DA\u70DA\u6F2A\u6F04\u6F06\u6F06\u6F08\u70EF\u6F07\u6F15\u6F26\u6F0E\u6F2A\u6F2A\u6EF2\u6F80\u70DA\u70DA\u70DA\u70DA\u6F22\0\0\0\u71EB\u72BC\0\0\u70F6\u70F6\u7287\0\u7352\u71FA\0\0\0\0\0\0\u7302\0\0\0\0\0\0\0\0\0\0\0\u7328\0\0\u71CF\u7279\u7292\0\u7363\0\0\0\0\0\0\0\0\0\0\0\0\0\0\u71CC\u71B5\u716A\u711E\u7139\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\u70E8\0\0\0\0\0\0\0\0\0\0\0\0\u71F4\u71F4\u71C9\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\u708F\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\u7159\u713E\u7170\u7160\u7148\u712C\u718C\u7186\u70C3\u7136\u719A\u70C0\u71D4\u7166\u7185\u7134\u7185\u7143\u7112\u714E\u71A4\u71A8\u721C\u7192\u719F\u714B\u7100\u708B\u7105\u7190\u70EB\u70F6\u70F0\u7082\u7088\u70BD\u708C\u7088\u719E\u7118\u70FA\u7110\u711D\u70E7\u70C1\u70B0\u70F9\u7120\u7197\u7106\u7109\u70DC\u71FE\u71DC\u71EC\u71EE\u71EA\u71EA\u71E8\u722C\u7184\u71DE\u7218\u7183\u7270\u7218\u71DB\u71DD\u71EA\u71DA\u71D5\u717E\u71B8\u71B6\u723E\u7212\u7187\u7209\u7144\u70F0\u7130\u71D6\u712B\u7210\u7144\u70D0\u7142\u70EA\u70DE\u718F\u7132\u7125\u7140\u7154\u70F4\u710C\u70D6\u7115\u713F\u71E1\u7130\u713F\u712C\u7206\u71E6\u71EE\u71DE\u71EC\u71EB\u71FE\u7234\u7194\u71EA\u722A\u718F\u7276\u7219\u71ED\u71CC\u71E3\u71C7\u71DA\u7194\u71D9\u71CE\u7256\u7211\u719A\u7200\u714A\u70F4\u7148\u71F6\u7152\u7210\u7152\u70F6\u70EA\u715C\u70F7\u70EE\u717C\u713E\u7154\u7162\u7170\u7108\u7121\u70F3\u712A\u7156\u71E6\u714C\u714F\u7134\u7320\u72B9\u72D5\u7282\u7296\u7304\u72E4\u7207\u72C6\u7208\u7232\u725D\u7228\u7294\u72F4\u725A\u7288\u728C\u71F3\u71F1\u71E7\u730E\u7258\u71FF\u71BB\u729F\u7201\u71FF\u725B\u71C7\u7221\u71EC\u7194\u7178\u71A6\u71B1\u7189\u720D\u71C6\u71B2\u718F\u7384\u7358\u72E8\u731F\u7291\u72CF\u729B\u7313\u72D6\u7277\u734B\u738A\u73EE\u733B\u7232\u7330\u7232\u7330\u725E\u72CB\u7270\u72D2\u73A8\u729A\u727A\u72A4\u7249\u720D\u7230\u7350\u720B\u7282\u722D\u722D\u71D5\u72F6\u722B\u720D\u7288\u71E1\u7240\u727C\u7232\u71C4\u7177\u71DB\u71DB\u71D0\u726E\u71E8\u71F4\u7187\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\u714D\u70FA\u716C\u716D\u7133\u712A\u7173\u7149\u70C8\u7108\u7118\u713E\u71A5\u7151\u7165\u7105\u7168\u7105\u7100\u7130\u714A\u7147\u71CC\u715E\u713B\u713B\u70D5\u7108\u70E3\u70E8\u70E1\u70F4\u70F4\u70F3\u706E\u708D\u7101\u7066\u717A\u70F3\u70F9\u710C\u70E7\u70C3\u70C7\u707C\u70F6\u70ED\u715F\u70F1\u7104\u70DD\u7159\u7111\u7170\u7179\u7152\u7145\u7188\u7165\u70DC\u7158\u714D\u714D\u71C8\u716A\u7185\u7122\u718A\u712A\u7111\u7140\u715D\u7159\u71F2\u7172\u715B\u7144\u70E1\u710F\u70E9\u70F4\u70E5\u70F2\u7103\u70FF\u707A\u706A\u7118\u7075\u7184\u70FF\u70FA\u710F\u70F1\u70E6\u70BF\u70BD\u7103\u70E7\u715E\u70FD\u70EC\u70DB\u71F3\u71B4\u7218\u719C\u71D6\u71D8\u7220\u71D8\u7160\u71A8\u71D4\u71AE\u7248\u720E\u720F\u71B4\u720D\u71A4\u71AA\u71C6\u71E9\u71EC\u7272\u71FE\u71E0\u71E6\u714D\u7130\u7163\u71CA\u715E\u719E\u7160\u711E\u710C\u712F\u7135\u710C\u7200\u7168\u7168\u718C\u7168\u714F\u7136\u7116\u715A\u715D\u71B7\u7157\u7163\u715F\u7205\u71D4\u723A\u71EE\u71F0\u71F8\u7234\u720C\u7198\u71FA\u7200\u71B8\u726C\u7224\u7231\u71CA\u7232\u71D3\u71BC\u71FB\u720A\u7201\u729A\u7218\u7203\u7213\u7161\u7130\u7173\u71BB\u7163\u719C\u7174\u712A\u711C\u715F\u7147\u7107\u7216\u716A\u7173\u716F\u7167\u7175\u7137\u714C\u716F\u7159\u71D0\u7169\u715D\u715B\u7106\u7106\u7106\u7106\u7106\u7106\u7106\u7106\u7106\u7168\u7106\u7106\u7106\u7106\u7106\u7106\u7106\u7106\u7106\u7106\u7106\u7106\u7106\u7106\u7106\u7106\u7106\u7106\u7134\u7106\u7106\u7106\u7106\u7106\u7106\u7106\u7106\u7106\u7106\u7106\u7106\u7106\u7106\u7106\u7106\u7106\u7106\u7106\u7106\u7106\u7106\u7106\u70B3\u70C1\u7157\u713E\u7130\u7146\u7148\u714B\u7186\u7185\u70C3\u719A\u7150\u71D4\u7166\u7138\u7185\u7186\u7134\u7185\u7140\u714E\u7193\u71A2\u7190\u718A\u717B\u7150\u7100\u711C\u7100\u70FC\u70E4\u70E6\u7116\u70FA\u7088\u7122\u708D\u711A\u70FF\u70E7\u70FA\u713A\u7118\u70EA\u7115\u70EE\u711A\u7146\u7130\u717E\u716F\u7102\u70E4\u713C\u7117\u7146\u7100\u71DC\u71FC\u71D0\u71EC\u71C5\u71EC\u71F7\u7230\u71CF\u7168\u721C\u71FE\u7266\u721A\u71DC\u71D1\u722A\u71DD\u71D1\u71FD\u715C\u7166\u71D0\u7212\u7182\u7222\u7141\u711C\u71A8\u70F6\u7156\u7123\u714E\u7120\u7143\u70A4\u712C\u715C\u7176\u711C\u7134\u7125\u7172\u714D\u70FA\u7126\u7127\u70EE\u7154\u71B6\u7172\u7188\u713A\u7135\u715C\u712C\u71BA\u715E\u71F8\u7206\u71F0\u7214\u71D0\u7200\u7206\u7230\u71E5\u716E\u722E\u7208\u7278\u720B\u71EF\u71E3\u722E\u720E\u71E5\u720E\u716C\u7178\u71E2\u7217\u7196\u7224\u7142\u7151\u71CE\u7112\u7171\u7118\u7171\u7150\u717A\u70A4\u713C\u715A\u7194\u7174\u715C\u7154\u7180\u718E\u7194\u7144\u7134\u711C\u71AD\u71BC\u718A\u718E\u7194\u7146\u718E\u7135\u71C6\u7172\u71FA\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\u7205\u71D4\u71F5\u7216\u71F0\u7213\u720C\u722F\u71A1\u7200\u71FB\u726C\u7224\u7201\u7231\u7214\u71CA\u722F\u71F8\u7208\u71D1\u7231\u7218\u7217\u7224\u71C6\u71B7\u71B4\u716A\u7187\u7160\u7192\u716E\u717C\u7106\u7170\u7183\u718D\u716A\u7188\u7173\u71A0\u717C\u7166\u7197\u7169\u7177\u71B9\u7183\u71C3\u71DE\u7176\u714E\u7185\u71A7\u71E9\u7174\u7220\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\u71F4\u7118\u7118\u71F4\u7118\u7118\u71F4\u6EAD\0\0\0\0\u72A6\u72A6\u7286\0\0\0\0\0\0\0\0\0\0\0\u7214\u7212\u71CF\u71CF\u71CE\u71CE\u72DA\u72DA\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\u72EE\u71E9\u71E9\u72EE\u71E9\u71E9\u72EE\u6EAD\0\0\0\0\0\0\0\0\0\0\u7323\u7323\u72DA\u72DA\u72DA\u72DA\u73AF\u73AF\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\u73E8\u72DA\u72DA\u73E8\u72DA\u72DA\u73E8\u6EAC\0\0\0\0\0\0\0\0\0\0\u7432\u7432\u73AF\u73AF\u73AF\u73AF\u7484\u7484\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\u74E2\u73AF\u73AF\u74E2\u73AF\u73AF\u74E2\u6EB6\0\0\0\0\0\0\0\0\0\u7542\u7542\u748C\u748C\u748C\u748C\u7559\u7559\0\0\0\0\0\0\0\0\0\0\0\0\0\u75DC\u748C\u748C\u75DC\u748C\u748C\u75DC\u6EA9\u7652\u7652\u7652\u7652\u7653\u7653\u762E\u762E\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\u7282\u7200\u71BC\u71F4\u71BE\u719A\u71C4\u71FD\u719B\u7264\u71F4\u71DC\u72C9\u727C\u71D2\u7187\u71C8\u71AB\u71DD\u718C\u7218\u71B1\u723E\u71FE\u71EF\u71F0\u728B\u7229\u7207\u71FF\u71CC\u71DA\u71E1\u71F6\u71A2\u726E\u7204\u71ED\u72C3\u728E\u71E2\u71CE\u71D9\u71DA\u71E7\u719B\u7225\u71B6\u7244\u7216\u720A\u7201\u70B2\u7159\u708B\u70BE\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\u71F3\u71B4\u71BB\u71F2\u71D6\u71E6\u71D8\u71EA\u7160\u71D4\u71EC\u7248\u720E\u71EF\u71EA\u71F8\u71B4\u71EA\u71CF\u7188\u718C\u71E6\u71FE\u71C8\u721B\u7189\u71AB\u715F\u7178\u715B\u7150\u715A\u7167\u70F8\u7150\u7170\u717C\u7120\u715D\u716E\u717E\u716F\u713E\u7193\u714E\u7165\u71B0\u7165\u71AB\u719F\u7170\u714B\u716F\u71CA\u7170\u71F1\u715D\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\u71D3\u71F0\u71EA\u71EA\u71F5\u715A\u71CD\u720A\u71A7\u7266\u71F4\u7158\u720D\u7199\u7256\u7225\u7202\u719A\u71A1\u71AA\u718B\u7188\u71AF\u71B3\u71A9\u71A9\u7143\u7236\u71A9\u7162\u71A8\u71B5\u7181\u7178\u7142\u71B4\u713F\u71BE\u7164\u71A1\u719E\u71B2\u71DC\u71D6\u71D7\u71F2\u713B\u71B3\u71F7\u7191\u724C\u71F8\u71B8\u7175\u71F8\u718D\u7245\u71F7\u7183\u717C\u7188\u7168\u7175\u7186\u7181\u7179\u7123\u7207\u7181\u713A\u718C\u7197\u715B\u715F\u7112\u7157\u712C\u7193\u715C\u7157\u7177\u713D\u722A\u7162\u728B\u70B1\u70C7\u7081\u70B6\u70C7\u70CE\u706E\u708B\u707A\u70C3\u70DB\u70F4\u70E9\u7132\u70CE\u70FD\u70CE\u70F8\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\u6E1A\u6F27\u6F27\u6F27\u6F27\u6F27\u6F27\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\u71D4\u71EC\u71C3\u71DA\u71DE\u71CC\u71B5\u716A\u711E\u7139\u71EA\u71C3\u71CA\u71E4\u71F6\u71F1\u71C6\u71CA\u71CA\u722A\0\u712E\u7155\u70C9\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",( $wc(),Xwc),Ywc,Zwc)};var M5=function(){}; k(M5,g4);var N5=function(a,b){var c=new M5;s3(a);c.f_key__com_google_apps_xplatmath_collections_AutoValue_KeyValuePair_=a;s3(b);c.f_value__com_google_apps_xplatmath_collections_AutoValue_KeyValuePair_=b;return c}; M5.prototype.key=function(){return this.f_key__com_google_apps_xplatmath_collections_AutoValue_KeyValuePair_}; M5.prototype.value=function(){return this.f_value__com_google_apps_xplatmath_collections_AutoValue_KeyValuePair_}; var axc=function(a){return a instanceof M5}; M5.prototype.$$classMetadata=["com.google.apps.xplatmath.collections.KeyValuePair",0];var O5=function(){}; k(O5,I1);var bxc=function(a){var b=new O5;b.f_root__com_google_apps_xplatmath_dom_Dom_=a;return b},dxc=function(a){cxc(); if(!a.m_isRootTable__boolean())throw b2("Must have a LINES table at the DOM root.").backingJsObject;return bxc(a)},fxc=function(){var a=P5(D4()); cxc();dxc(exc(E4(E4(a)),D4()))}; O5.prototype.getRoot=function(){return this.f_root__com_google_apps_xplatmath_dom_Dom_}; var gxc=function(a){return a.f_root__com_google_apps_xplatmath_dom_Dom_.numRows()==1&&Q5(a.f_root__com_google_apps_xplatmath_dom_Dom_.f_cells__com_google_apps_xplatmath_dom_MathTable_)==1?V(V(a.f_root__com_google_apps_xplatmath_dom_Dom_.cells().get(0),T4,A4).get(0),R5,S5):null}; O5.prototype.transform=function(a){return bxc(this.f_root__com_google_apps_xplatmath_dom_Dom_.transform(a))}; var cxc=function(){cxc=function(){}; fxc()}; O5.prototype.$$classMetadata=["com.google.apps.xplatmath.dom.Dom",0];var hxc=function(){}; k(hxc,I1);hxc.prototype.$$classMetadata=["com.google.apps.xplatmath.dom.DomTransformer",0];var T5=function(){this.f_end__com_google_apps_xplatmath_dom_AutoValue_ListPositionRange_=this.f_start__com_google_apps_xplatmath_dom_AutoValue_ListPositionRange_=0},ixc; k(T5,g4);T5.prototype.width=function(){return this.end()-this.start()|0}; T5.prototype.contains=function(a){return this.start()<=a&&a<=this.end()}; var kxc=function(a,b){jxc();m4(a<=b);var c=new T5;c.f_start__com_google_apps_xplatmath_dom_AutoValue_ListPositionRange_=a;c.f_end__com_google_apps_xplatmath_dom_AutoValue_ListPositionRange_=b;return c}; T5.prototype.start=function(){return this.f_start__com_google_apps_xplatmath_dom_AutoValue_ListPositionRange_}; T5.prototype.end=function(){return this.f_end__com_google_apps_xplatmath_dom_AutoValue_ListPositionRange_}; var jxc=function(){jxc=function(){}; ixc=kxc(-1,-1)}; T5.prototype.$$classMetadata=["com.google.apps.xplatmath.dom.ListPositionRange",0];var U5=function(){this.f_end__com_google_apps_xplatmath_dom_AutoValue_AtomPositionRange_=this.f_nucleusEnd__com_google_apps_xplatmath_dom_AutoValue_AtomPositionRange_=this.f_start__com_google_apps_xplatmath_dom_AutoValue_AtomPositionRange_=0},lxc; k(U5,g4);U5.prototype.width=function(){return this.end()-this.start()|0}; var nxc=function(a,b,c){mxc();var d=new U5;d.f_start__com_google_apps_xplatmath_dom_AutoValue_AtomPositionRange_=a;d.f_nucleusEnd__com_google_apps_xplatmath_dom_AutoValue_AtomPositionRange_=b;d.f_end__com_google_apps_xplatmath_dom_AutoValue_AtomPositionRange_=c;return d}; U5.prototype.start=function(){return this.f_start__com_google_apps_xplatmath_dom_AutoValue_AtomPositionRange_}; U5.prototype.end=function(){return this.f_end__com_google_apps_xplatmath_dom_AutoValue_AtomPositionRange_}; var mxc=function(){mxc=function(){}; lxc=nxc(-1,-1,-1)}; U5.prototype.$$classMetadata=["com.google.apps.xplatmath.dom.AtomPositionRange",0];var V5=function(){}; k(V5,hxc);V5.prototype.transform=function(a){return a}; V5.prototype.$$classMetadata=["com.google.apps.xplatmath.dom.MathAtom$1",0];var oxc=function(){this.f_ordinal__java_lang_Enum_=0}; k(oxc,Z2); var W5=function(a,b){var c=new oxc;c.f_name__java_lang_Enum_=a;c.f_ordinal__java_lang_Enum_=b;return c},X5=W5("NONE",0),Y5=W5("ORDINARY",1),pxc=W5("NUMBER",2),Z5=W5("VARIABLE",3),qxc=W5("LARGE_OPERATOR",4),rxc=W5("BINARY_OPERATOR",5),sxc=W5("RELATION",6),$5=W5("OPEN",7),a6=W5("CLOSE",8),txc=W5("FRACTION",9),uxc=W5("RADICAL",10),b6=W5("PUNCTUATION",11),vxc=W5("INNER",12),wxc=W5("CANCEL",13),xxc=W5("UNDERLINE",14),yxc=W5("OVERLINE",15),zxc=W5("OVERPAREN",16),Axc=W5("UNDERPAREN",17),Bxc=W5("UNDERGROUP",18), Cxc=W5("OVERGROUP",19),c6=W5("ACCENT",20),Dxc=W5("COLOR",21),Exc=W5("TABLE",22),d6=W5("TEXT",23),Fxc=W5("BOX",24),Gxc=W5("PHANTOM",25),e6=W5("SPACE",26),Hxc=W5("STYLE",27),Ixc=W5("XARROW",28),Jxc=W5("TEXTCIRCLED",29),Kxc=W5("FONT_SIZE",30),Lxc=W5("SET",31),Mxc=W5("CHEMICAL_FORMULA",32),Nxc=W5("TABLE_DECORATION",33); oxc.prototype.$$classMetadata=["com.google.apps.xplatmath.dom.MathAtom$Type",2];var f6=function(){}; k(f6,I1);var g6=function(a,b,c){a.JSC$17279_type_=b;a.nucleus_=c;a.sup_=null;a.sub_=null;mxc();a.JSC$17279_range_=lxc},h6=function(a,b,c){a.JSC$17279_type_=b.JSC$17279_type_; a.nucleus_=b.nucleus_;var d=b.sup_;d=d==null?null:c.transform(d);a.sup_=d;d=b.sub_;c=d==null?null:c.transform(d);a.sub_=c;a.JSC$17279_range_=b.JSC$17279_range_}; f6.prototype.m_isRootTable__boolean=function(){return!1}; var i6=function(a,b,c){if(J1(b,a.sup_)&&J1(c,a.sub_))return a;if(!(a.JSC$17279_type_.ordinal()=Oyc(a);return Pyc(a.list(),b,c,d)}; c7.prototype.slice=function(a,b){return Ryc(this,this.f_startListIndex__com_google_apps_xplatmath_cursor_AutoValue_DomSelectionLocation_+a|0,this.f_startListIndex__com_google_apps_xplatmath_cursor_AutoValue_DomSelectionLocation_+b|0)}; var f7=function(a,b){return a.slice(b,a.size())}; c7.prototype.iterator=function(){var a=new Myc;a.$outer_this__com_google_apps_xplatmath_cursor_DomSelectionLocation_Iter=this;a.f_i__com_google_apps_xplatmath_cursor_DomSelectionLocation_Iter_=0;return a}; c7.prototype.m_iterator__java_util_Iterator=function(){return this.iterator()}; c7.prototype.list=function(){return this.f_list__com_google_apps_xplatmath_cursor_AutoValue_DomSelectionLocation_}; c7.prototype.size=function(){return this.f_size__com_google_apps_xplatmath_cursor_AutoValue_DomSelectionLocation_}; var Syc=function(a){return a instanceof c7}; c7.prototype.$$classMetadata=["com.google.apps.xplatmath.cursor.DomSelectionLocation",0];var g7=function(){}; k(g7,f6);var Tyc=function(a){var b=new g7;g6(b,Mxc,"");b.f_innerList__com_google_apps_xplatmath_dom_ChemicalFormula_=a;return b}; g7.prototype.transform=function(a){return Tyc(a.transform(this.f_innerList__com_google_apps_xplatmath_dom_ChemicalFormula_))}; g7.prototype.allNucleusArgumentsAreEmpty=function(){return this.f_innerList__com_google_apps_xplatmath_dom_ChemicalFormula_.isEmpty()}; var Uyc=function(a){return a instanceof g7}; g7.prototype.$$classMetadata=["com.google.apps.xplatmath.dom.ChemicalFormula",0];var h7=function(){}; k(h7,g4);h7.prototype.left=function(){return this.f_left__com_google_apps_xplatmath_dom_AutoValue_Delimiter_Pair_}; h7.prototype.right=function(){return this.f_right__com_google_apps_xplatmath_dom_AutoValue_Delimiter_Pair_}; var Vyc=function(a){return a instanceof h7}; h7.prototype.$$classMetadata=["com.google.apps.xplatmath.dom.Delimiter$Pair",0];var i7=function(){this.f_ordinal__java_lang_Enum_=0},Wyc,Xyc,Yyc,j7,Zyc,$yc,k7,azc,l7,bzc,czc,m7,dzc; k(i7,Z2);var n7=function(a,b,c){var d=new i7;d.f_name__java_lang_Enum_=a;d.f_ordinal__java_lang_Enum_=b;d.f_nucleus__com_google_apps_xplatmath_dom_Delimiter_=c;return d},p7=function(a){o7(); return a.f_nucleus__com_google_apps_xplatmath_dom_Delimiter_},q7=function(a,b){o7(); var c=new h7;s3(a);c.f_left__com_google_apps_xplatmath_dom_AutoValue_Delimiter_Pair_=a;s3(b);c.f_right__com_google_apps_xplatmath_dom_AutoValue_Delimiter_Pair_=b;return c},ezc=function(a){o7(); return V(Wyc.get(a),r7,i7)},fzc=function(a){o7(); return!J1(a.type(),d6)&&Xyc.f_map__com_google_apps_xplatmath_collections_BaseXMap.JSC$17075_containsKey(a.nucleus_)},gzc=function(a){o7(); return!J1(a.type(),d6)&&Yyc.f_map__com_google_apps_xplatmath_collections_BaseXMap.JSC$17075_containsKey(a.nucleus_)},hzc=function(a){o7(); return V(t5(Xyc,a),G2,y2)},izc=function(a,b){a=hzc(a); return a!=null&&P1(b,a)},Bzc=function(){o7(); var a=[s7,jzc,kzc,t7,u7,lzc,mzc,nzc,ozc,pzc,qzc,v7,w7,x7,y7,z7,A7,B7,C7,rzc,szc,tzc,uzc,D7,E7,F7,G7,vzc,wzc,xzc,yzc,H7,I7,zzc,Azc];a.$$arrayMetadata=oqc(i7,r7,1);return a},o7=function(){o7=function(){}; for(var a=A5(),b=Bzc(),c=0;c=0)b=Y5;else{if(b=b==="text")b=String.fromCodePoint(a),b=":-".indexOf(b)>=0;b=b?d6:null}}return b},FAc=function(a){k8(); var b;if(fBc(a)&&(b=V(a,fBc,v8),!0))switch(b.variant().ordinal()){case 0:return"\\varinjlim";case 1:return"\\varprojlim";case 2:return"\\varliminf";case 3:return"\\varlimsup";}return vBc(a.nucleus_,J1(a.type(),d6)?"text":"math")},vBc=function(a,b){k8(); return r3(a)?null:uBc(a,b)!=null?a:V(t5(gBc,a),G2,y2)},D8=function(a,b){b=uBc(a,b); if(b!=null)return V(C8(b,a)(),n6,f6);b=V(t5(hBc,a),G2,y2);a=V(t5(iBc,b!=null?b:a),B2,z2);return a==null?null:V(a(),n6,f6)},C8=function(a,b){k8(); return function(){return j6(a,b)}},E8=function(a){k8(); return function(){var b=j6(Z5,a);b.fontStyle_=w6;return b}},F8=function(a,b,c){k8(); return function(){var d=new R6;g6(d,qxc,a);d.f_limitsExplicitlyOverridden__com_google_apps_xplatmath_dom_MathLargeOperator_=!1;d.f_defaultHasLimits__com_google_apps_xplatmath_dom_MathLargeOperator_=b;d.f_hasLimits__com_google_apps_xplatmath_dom_MathLargeOperator_=b;d.f_isSimpleFunction__com_google_apps_xplatmath_dom_MathLargeOperator_=c;return d}},wBc=function(a){k8(); return function(){var b=new v8;g6(b,qxc,"lim");b.f_limitsExplicitlyOverridden__com_google_apps_xplatmath_dom_MathLargeOperator_=!1;b.f_defaultHasLimits__com_google_apps_xplatmath_dom_MathLargeOperator_=!0;b.f_hasLimits__com_google_apps_xplatmath_dom_MathLargeOperator_=!0;b.f_isSimpleFunction__com_google_apps_xplatmath_dom_MathLargeOperator_=!1;b.f_variant__com_google_apps_xplatmath_dom_MathLimitVariant_=a;return b}},G8=function(a){k8(); return function(){return Zzc(a)}},xBc=function(a){k8(); return function(){var b=new b8;g6(b,Hxc,"");b.f_style__com_google_apps_xplatmath_dom_MathStyle_=a;return b}},H8=function(a){k8(); return function(){var b=new s8;g6(b,Kxc,"");b.f_fontSize__com_google_apps_xplatmath_dom_MathFontSize_=a;return b}},K8=function(a){k8(); return function(){try{return I8("\u030C",0)(E6(V(a(),n6,f6)))}catch(c){var b=W1(c);if(b instanceof J8)throw b2(b).backingJsObject;throw b.backingJsObject}}},yBc=function(a){k8(); return function(){try{return I8("\u0308",0)(E6(j6(Z5,a)))}catch(c){var b=W1(c);if(b instanceof J8)throw b2(b).backingJsObject;throw b.backingJsObject}}},zBc=function(){var a=A5(); a.put("\\alpha",C8(Z5,"\u03B1"));a.put("\\beta",C8(Z5,"\u03B2"));a.put("\\gamma",C8(Z5,"\u03B3"));a.put("\\delta",C8(Z5,"\u03B4"));a.put("\\varepsilon",C8(Z5,"\u03B5"));a.put("\\zeta",C8(Z5,"\u03B6"));a.put("\\eta",C8(Z5,"\u03B7"));a.put("\\theta",C8(Z5,"\u03B8"));a.put("\\iota",C8(Z5,"\u03B9"));a.put("\\kappa",C8(Z5,"\u03BA"));a.put("\\lambda",C8(Z5,"\u03BB"));a.put("\\mu",C8(Z5,"\u03BC"));a.put("\\nu",C8(Z5,"\u03BD"));a.put("\\xi",C8(Z5,"\u03BE"));a.put("\\omicron",C8(Z5,"\u03BF"));a.put("\\pi", C8(Z5,"\u03C0"));a.put("\\rho",C8(Z5,"\u03C1"));a.put("\\varsigma",C8(Z5,"\u03C2"));a.put("\\sigma",C8(Z5,"\u03C3"));a.put("\\tau",C8(Z5,"\u03C4"));a.put("\\upsilon",C8(Z5,"\u03C5"));a.put("\\varphi",C8(Z5,"\u03C6"));a.put("\\chi",C8(Z5,"\u03C7"));a.put("\\psi",C8(Z5,"\u03C8"));a.put("\\omega",C8(Z5,"\u03C9"));a.put("\\vartheta",C8(Z5,"\u03D1"));a.put("\\phi",C8(Z5,"\u03D5"));a.put("\\varpi",C8(Z5,"\u03D6"));a.put("\\varkappa",C8(Z5,"\u03F0"));a.put("\\varrho",C8(Z5,"\u03F1"));a.put("\\epsilon",C8(Z5, "\u03F5"));a.put("\\digamma",C8(Z5,"\u03DD"));a.put("\\Alpha",C8(Z5,"\u0391"));a.put("\\Beta",C8(Z5,"\u0392"));a.put("\\Gamma",C8(Z5,"\u0393"));a.put("\\Delta",C8(Z5,"\u0394"));a.put("\\Epsilon",C8(Z5,"\u0395"));a.put("\\Zeta",C8(Z5,"\u0396"));a.put("\\Eta",C8(Z5,"\u0397"));a.put("\\Theta",C8(Z5,"\u0398"));a.put("\\Iota",C8(Z5,"\u0399"));a.put("\\Kappa",C8(Z5,"\u039A"));a.put("\\Lambda",C8(Z5,"\u039B"));a.put("\\Mu",C8(Z5,"\u039C"));a.put("\\Nu",C8(Z5,"\u039D"));a.put("\\Xi",C8(Z5,"\u039E"));a.put("\\Omicron", C8(Z5,"\u039F"));a.put("\\Pi",C8(Z5,"\u03A0"));a.put("\\Rho",C8(Z5,"\u03A1"));a.put("\\Sigma",C8(Z5,"\u03A3"));a.put("\\Tau",C8(Z5,"\u03A4"));a.put("\\Upsilon",C8(Z5,"\u03A5"));a.put("\\Phi",C8(Z5,"\u03A6"));a.put("\\Chi",C8(Z5,"\u03A7"));a.put("\\Psi",C8(Z5,"\u03A8"));a.put("\\Omega",C8(Z5,"\u03A9"));a.put("\\varDelta",E8("\u0394"));a.put("\\varGamma",E8("\u0393"));a.put("\\varLambda",E8("\u039B"));a.put("\\varOmega",E8("\u03A9"));a.put("\\varPhi",E8("\u03A6"));a.put("\\varPi",E8("\u03A0"));a.put("\\varPsi", E8("\u03A8"));a.put("\\varSigma",E8("\u03A3"));a.put("\\varTheta",E8("\u0398"));a.put("\\varUpsilon",E8("\u03A5"));a.put("\\varXi",E8("\u039E"));a.put("\\langle",C8(w8,p7(v7)));w5(a,"[","\\lbrack",C8(w8,p7(x7)));a.put("\\lceil",C8(w8,p7(z7)));w5(a,"\\{","\\lbrace",C8(w8,p7(B7)));a.put("\\lBrace",C8(w8,p7(rzc)));a.put("\\llbracket",C8(w8,p7(tzc)));a.put("\\lfloor",C8(w8,p7(D7)));a.put("\\lgroup",C8(w8,p7(F7)));a.put("\\llcorner",C8(w8,p7(vzc)));a.put("\\lmoustache",C8(w8,p7(xzc)));w5(a,"(","\\lparen", C8(w8,p7(H7)));a.put("\\ulcorner",C8(w8,p7(zzc)));a.put("\\lvert",C8(w8,p7(t7)));a.put("\\lVert",C8(w8,p7(u7)));a.put("\\rangle",C8(x8,p7(w7)));w5(a,"]","\\rbrack",C8(x8,p7(y7)));a.put("\\rceil",C8(x8,p7(A7)));w5(a,"\\}","\\rbrace",C8(x8,p7(C7)));a.put("\\rBrace",C8(x8,p7(szc)));a.put("\\rrbracket",C8(x8,p7(uzc)));a.put("\\rfloor",C8(x8,p7(E7)));a.put("\\rgroup",C8(x8,p7(G7)));a.put("\\lrcorner",C8(x8,p7(wzc)));a.put("\\rmoustache",C8(x8,p7(yzc)));w5(a,")","\\rparen",C8(x8,p7(I7)));a.put("\\urcorner", C8(x8,p7(Azc)));a.put("\\rvert",C8(x8,p7(t7)));a.put("\\rVert",C8(x8,p7(u7)));a.put("!",C8(x8,"!"));a.put("?",C8(x8,"?"));a.put("\\leftarrow",C8(y8,"\u2190"));a.put("\\uparrow",C8(y8,"\u2191"));a.put("\\rightarrow",C8(y8,"\u2192"));a.put("\\downarrow",C8(y8,"\u2193"));a.put("\\leftrightarrow",C8(y8,"\u2194"));a.put("\\updownarrow",C8(y8,"\u2195"));a.put("\\nwarrow",C8(y8,"\u2196"));a.put("\\nearrow",C8(y8,"\u2197"));a.put("\\searrow",C8(y8,"\u2198"));a.put("\\swarrow",C8(y8,"\u2199"));a.put("\\mapsto", C8(y8,"\u21A6"));a.put("\\hookleftarrow",C8(y8,"\u21A9"));a.put("\\hookrightarrow",C8(y8,"\u21AA"));a.put("\\leftharpoonup",C8(y8,"\u21BC"));a.put("\\leftharpoondown",C8(y8,"\u21BD"));a.put("\\upharpoonright",C8(y8,"\u21BE"));a.put("\\upharpoonleft",C8(y8,"\u21BF"));a.put("\\rightharpoonup",C8(y8,"\u21C0"));a.put("\\rightharpoondown",C8(y8,"\u21C1"));a.put("\\downharpoonright",C8(y8,"\u21C2"));a.put("\\downharpoonleft",C8(y8,"\u21C3"));a.put("\\rightleftarrows",C8(y8,"\u21C4"));a.put("\\leftrightarrows", C8(y8,"\u21C6"));a.put("\\rightleftharpoons",C8(y8,"\u21CC"));a.put("\\leftrightharpoons",C8(y8,"\u21CB"));a.put("\\Leftarrow",C8(y8,"\u21D0"));a.put("\\Uparrow",C8(y8,"\u21D1"));a.put("\\Rightarrow",C8(y8,"\u21D2"));a.put("\\Downarrow",C8(y8,"\u21D3"));a.put("\\Leftrightarrow",C8(y8,"\u21D4"));a.put("\\Updownarrow",C8(y8,"\u21D5"));a.put("\\longleftarrow",C8(y8,"\u27F5"));a.put("\\longrightarrow",C8(y8,"\u27F6"));a.put("\\longleftrightarrow",C8(y8,"\u27F7"));w5(a,"\\Longleftarrow","\\impliedby", C8(y8,"\u27F8"));w5(a,"\\Longrightarrow","\\implies",C8(y8,"\u27F9"));w5(a,"\\Longleftrightarrow","\\iff",C8(y8,"\u27FA"));a.put("\\longmapsto",C8(y8,"\u27FC"));a.put("\\Lleftarrow",C8(y8,"\u21DA"));a.put("\\Rrightarrow",C8(y8,"\u21DB"));a.put("\\Lsh",C8(y8,"\u21B0"));a.put("\\Rsh",C8(y8,"\u21B1"));a.put("\\downdownarrows",C8(y8,"\u21CA"));a.put("\\dashleftarrow",C8(y8,"\u21E0"));a.put("\\dashrightarrow",C8(y8,"\u21E2"));a.put("\\leftarrowtail",C8(y8,"\u21A2"));a.put("\\leftleftarrows",C8(y8,"\u21C7")); a.put("\\leftrightsquigarrow",C8(y8,"\u21AD"));a.put("\\looparrowleft",C8(y8,"\u21AB"));a.put("\\looparrowright",C8(y8,"\u21AC"));a.put("\\nLeftarrow",C8(y8,"\u21CD"));a.put("\\nLeftrightarrow",C8(y8,"\u21CE"));a.put("\\nRightarrow",C8(y8,"\u21CF"));a.put("\\nleftarrow",C8(y8,"\u219A"));a.put("\\nleftrightarrow",C8(y8,"\u21AE"));a.put("\\nrightarrow",C8(y8,"\u219B"));a.put("\\rightarrowtail",C8(y8,"\u21A3"));a.put("\\rightrightarrows",C8(y8,"\u21C9"));a.put("\\rightsquigarrow",C8(y8,"\u21DD"));a.put("\\twoheadleftarrow", C8(y8,"\u219E"));a.put("\\twoheadrightarrow",C8(y8,"\u21A0"));a.put("\\upuparrows",C8(y8,"\u21C8"));a.put("=",C8(y8,"="));w5(a,"<","\\lt",C8(y8,"<"));w5(a,">","\\gt",C8(y8,">"));a.put(":",C8(y8,"\u2236"));w5(a,"\\le","\\leq",C8(y8,"\u2264"));w5(a,"\\ge","\\geq",C8(y8,"\u2265"));w5(a,"\\ne","\\neq",C8(y8,"\u2260"));a.put("\\complement",C8(y8,"\u2201"));w5(a,"\\in","\\isin",C8(y8,"\u2208"));a.put("\\notin",C8(y8,"\u2209"));a.put("\\ni",C8(y8,"\u220B"));a.put("\\notni",C8(y8,"\u220C"));a.put("\\propto", C8(y8,"\u221D"));a.put("\\mid",C8(y8,"\u2223"));a.put("\\nshortmid",C8(y8,"\u2224"));a.put("\\parallel",C8(y8,"\u2225"));a.put("\\nshortparallel",C8(y8,"\u2226"));a.put("\\therefore",C8(y8,"\u2234"));a.put("\\because",C8(y8,"\u2235"));a.put("\\sim",C8(y8,"\u223C"));a.put("\\nsim",C8(y8,"\u2241"));a.put("\\simeq",C8(y8,"\u2243"));a.put("\u2244",C8(y8,"\u2244"));a.put("\\cong",C8(y8,"\u2245"));a.put("\\ncong",C8(y8,"\u2247"));a.put("\\approx",C8(y8,"\u2248"));a.put("\\asymp",C8(y8,"\u224D"));a.put("\\doteq", C8(y8,"\u2250"));a.put("\\triangleq",C8(y8,"\u225C"));a.put("\\equiv",C8(y8,"\u2261"));w5(a,"\\gvertneqq","\\gneqq",C8(y8,"\u2269"));a.put("\\lvertneqq",C8(y8,"\u2268"));a.put("\\ll",C8(y8,"\u226A"));a.put("\\gg",C8(y8,"\u226B"));a.put("\\nless",C8(y8,"\u226E"));a.put("\\ngtr",C8(y8,"\u226F"));x5(a,"\\nleq","\\nleqq","\\nleqslant",C8(y8,"\u2270"));x5(a,"\\ngeq","\\ngeqq","\\ngeqslant",C8(y8,"\u2271"));a.put("\\lessgtr",C8(y8,"\u2276"));a.put("\\gtrless",C8(y8,"\u2277"));a.put("\\prec",C8(y8,"\u227A")); a.put("\\succ",C8(y8,"\u227B"));a.put("\\nprec",C8(y8,"\u2280"));a.put("\\nsucc",C8(y8,"\u2281"));a.put("\\npreceq",C8(y8,"\u22E0"));a.put("\\nsucceq",C8(y8,"\u22E1"));a.put("\\subset",C8(y8,"\u2282"));a.put("\\supset",C8(y8,"\u2283"));a.put("\u2284",C8(y8,"\u2284"));a.put("\u2285",C8(y8,"\u2285"));a.put("\\subseteq",C8(y8,"\u2286"));a.put("\\supseteq",C8(y8,"\u2287"));w5(a,"\\nsubseteq","\\nsubseteqq",C8(y8,"\u2288"));w5(a,"\\nsupseteq","\\nsupseteqq",C8(y8,"\u2289"));w5(a,"\\subsetneq","\\varsubsetneq", C8(y8,"\u228A"));w5(a,"\\supsetneq","\\varsupsetneq",C8(y8,"\u228B"));a.put("\\sqsubset",C8(y8,"\u228F"));a.put("\\sqsupset",C8(y8,"\u2290"));a.put("\\sqsubseteq",C8(y8,"\u2291"));a.put("\\sqsupseteq",C8(y8,"\u2292"));w5(a,"\\vcentcolon","\\ratio",C8(y8,"\u2236"));a.put("\\vdash",C8(y8,"\u22A2"));a.put("\\dashv",C8(y8,"\u22A3"));a.put("\\models",C8(y8,"\u22A7"));a.put("\\vDash",C8(y8,"\u22A8"));a.put("\\Vdash",C8(y8,"\u22A9"));a.put("\\Vvdash",C8(y8,"\u22AA"));a.put("\\perp",C8(y8,"\u27C2"));a.put("\\leqslant", C8(y8,"\u2A7D"));a.put("\\geqslant",C8(y8,"\u2A7E"));a.put("\\leqq",C8(y8,"\u2266"));a.put("\\geqq",C8(y8,"\u2267"));w5(a,"\\varsubsetneqq","\\subsetneqq",C8(y8,"\u2ACB"));w5(a,"\\varsupsetneqq","\\supsetneqq",C8(y8,"\u2ACC"));a.put("\\nmid",C8(y8,"\u2AEE"));a.put("\\lnapprox",C8(y8,"\u2A89"));a.put("\\gnapprox",C8(y8,"\u2A8A"));a.put("\\smallfrown",C8(y8,"\u2322"));a.put("\\smallsmile",C8(y8,"\u2323"));a.put("\\Bumpeq",C8(y8,"\u224E"));a.put("\\bumpeq",C8(y8,"\u224F"));w5(a,"\\doteqdot","\\Doteq", C8(y8,"\u2251"));a.put("\\approxeq",C8(y8,"\u224A"));a.put("\\backsim",C8(y8,"\u223D"));a.put("\\backsimeq",C8(y8,"\u22CD"));a.put("\\between",C8(y8,"\u226C"));w5(a,"\\bowtie","\\Join",C8(y8,"\u22C8"));a.put("\\circeq",C8(y8,"\u2257"));a.put("\\eqcirc",C8(y8,"\u2256"));a.put("\\curlyeqprec",C8(y8,"\u22DE"));a.put("\\curlyeqsucc",C8(y8,"\u22DF"));a.put("\\Subset",C8(y8,"\u22D0"));a.put("\\Supset",C8(y8,"\u22D1"));a.put("\\coloneq",C8(y8,":\u2212"));w5(a,"\\coloneqq","\\colonequals",C8(y8,":="));x5(a, "\\eqcolon","\\eqqcolon","\\equalscolon",C8(y8,"\u2255"));a.put("\\Coloneq",C8(y8,"::\u2212"));w5(a,"\\Coloneqq","\\coloncolonequals",C8(y8,"::="));w5(a,"\\coloncolon","\\dblcolon",C8(y8,"\u2237"));a.put("\\backepsilon",C8(y8,"\u03F6"));a.put("\\eqsim",C8(y8,"\u2242"));a.put("\\eqslantgtr",C8(y8,"\u22DD"));a.put("\\eqslantless",C8(y8,"\u22DC"));a.put("\\fallingdotseq",C8(y8,"\u2252"));w5(a,"\\ggg","\\gggtr",C8(y8,"\u22D9"));a.put("\\gneq",C8(y8,"\u2A88"));a.put("\\gnsim",C8(y8,"\u22E7"));a.put("\\gtrapprox", C8(y8,"\u2A86"));a.put("\\gtreqless",C8(y8,"\u22DB"));a.put("\\gtreqqless",C8(y8,"\u2A8C"));a.put("\\gtrsim",C8(y8,"\u2273"));a.put("\\imageof",C8(y8,"\u22B7"));a.put("\\lessapprox",C8(y8,"\u2A85"));a.put("\\lesseqgtr",C8(y8,"\u22DA"));a.put("\\lesseqqgtr",C8(y8,"\u2A8B"));a.put("\\lesssim",C8(y8,"\u2272"));w5(a,"\\lll","\\llless",C8(y8,"\u22D8"));a.put("\\lneq",C8(y8,"\u2A87"));a.put("\\lnsim",C8(y8,"\u22E6"));a.put("\\minuscolon",C8(y8,"\u2239"));a.put("\\multimap",C8(y8,"\u22B8"));a.put("\\nVDash", C8(y8,"\u22AF"));a.put("\\nVdash",C8(y8,"\u22AE"));a.put("\\ntriangleleft",C8(y8,"\u22EA"));a.put("\\ntrianglelefteq",C8(y8,"\u22EC"));a.put("\\ntriangleright",C8(y8,"\u22EB"));a.put("\\ntrianglerighteq",C8(y8,"\u22ED"));a.put("\\nvDash",C8(y8,"\u22AD"));a.put("\\nvdash",C8(y8,"\u22AC"));a.put("\\origof",C8(y8,"\u22B6"));a.put("\\pitchfork",C8(y8,"\u22D4"));a.put("\\precapprox",C8(y8,"\u2AB7"));a.put("\\preceq",C8(y8,"\u227C"));a.put("\\precnapprox",C8(y8,"\u2AB9"));a.put("\\precneqq",C8(y8,"\u2AB5")); a.put("\\precnsim",C8(y8,"\u22E8"));a.put("\\precsim",C8(y8,"\u227E"));a.put("\\risingdotseq",C8(y8,"\u2253"));a.put("\\shortmid",C8(y8,"\u2223"));a.put("\\shortparallel",C8(y8,"\u2225"));a.put("\\subseteqq",C8(y8,"\u2AC5"));a.put("\\succapprox",C8(y8,"\u2AB8"));a.put("\\succeq",C8(y8,"\u227D"));a.put("\\succnapprox",C8(y8,"\u2ABA"));a.put("\\succneqq",C8(y8,"\u2AB6"));a.put("\\succnsim",C8(y8,"\u22E9"));a.put("\\succsim",C8(y8,"\u227F"));a.put("\\supseteqq",C8(y8,"\u2AC6"));a.put("\\thickapprox", C8(y8,"\u2248"));a.put("\\thicksim",C8(y8,"\u223C"));a.put("\\trianglelefteq",C8(y8,"\u22B4"));a.put("\\trianglerighteq",C8(y8,"\u22B5"));a.put("\\varpropto",C8(y8,"\u221D"));a.put("\\vartriangleleft",C8(y8,"\u22B2"));a.put("\\vartriangleright",C8(y8,"\u22B3"));a.put("\\And",C8(z8,"&"));a.put("*",C8(z8,"*"));a.put("+",C8(z8,"+"));a.put("\\times",C8(z8,"\xD7"));a.put("\\div",C8(z8,"\xF7"));a.put("\\pm",C8(z8,"\xB1"));w5(a,"\\dag","\\dagger",C8(z8,"\u2020"));x5(a,"\\ddag","\\ddagger","\\Dagger", C8(z8,"\u2021"));a.put("\\slash",C8(z8,"\u2044"));a.put("-",C8(z8,"\u2212"));a.put("\\mp",C8(z8,"\u2213"));a.put("\\dotplus",C8(z8,"\u2214"));a.put("\\setminus",C8(z8,"\u2216"));a.put("\\ast",C8(z8,"\u2217"));a.put("\\circ",C8(z8,"\u2218"));a.put("\\bullet",C8(z8,"\u2219"));w5(a,"\\wedge","\\land",C8(z8,"\u2227"));w5(a,"\\vee","\\lor",C8(z8,"\u2228"));a.put("\\cap",C8(z8,"\u2229"));a.put("\\cup",C8(z8,"\u222A"));a.put("\\wr",C8(z8,"\u2240"));a.put("\\uplus",C8(z8,"\u228E"));a.put("\\sqcap",C8(z8, "\u2293"));a.put("\\sqcup",C8(z8,"\u2294"));a.put("\\oplus",C8(z8,"\u2295"));a.put("\\ominus",C8(z8,"\u2296"));a.put("\\otimes",C8(z8,"\u2297"));a.put("\\oslash",C8(z8,"\u2298"));a.put("\\odot",C8(z8,"\u2299"));a.put("\\boxplus",C8(z8,"\u229E"));a.put("\\boxminus",C8(z8,"\u229F"));a.put("\\boxtimes",C8(z8,"\u22A0"));a.put("\\boxdot",C8(z8,"\u22A1"));a.put("\\lhd",C8(z8,"\u22B2"));a.put("\\rhd",C8(z8,"\u22B3"));a.put("\\unlhd",C8(z8,"\u22B4"));a.put("\\unrhd",C8(z8,"\u22B5"));a.put("\\veebar",C8(z8, "\u22BB"));a.put("\\barwedge",C8(z8,"\u22BC"));a.put("\\star",C8(z8,"\u22C6"));a.put("\\cdot",C8(z8,"\u22C5"));a.put("\\divideontimes",C8(z8,"\u22C7"));a.put("\\ltimes",C8(z8,"\u22C9"));a.put("\\rtimes",C8(z8,"\u22CA"));a.put("\\leftthreetimes",C8(z8,"\u22CB"));a.put("\\rightthreetimes",C8(z8,"\u22CC"));a.put("\\curlyvee",C8(z8,"\u22CE"));a.put("\\curlywedge",C8(z8,"\u22CF"));w5(a,"\\Cap","\\doublecap",C8(z8,"\u22D2"));w5(a,"\\Cup","\\doublecup",C8(z8,"\u22D3"));a.put("\\lessdot",C8(z8,"\u22D6")); a.put("\\amalg",C8(z8,"\u2A3F"));a.put("\\gtrdot",C8(z8,"\u22D7"));a.put("\\intercal",C8(z8,"\u22BA"));a.put("\\centerdot",C8(z8,"\u22C5"));a.put("\\circledast",C8(z8,"\u229B"));a.put("\\circledcirc",C8(z8,"\u229A"));a.put("\\doublebarwedge",C8(z8,"\u2A5E"));a.put("\\circleddash",C8(z8,"\u229D"));a.put("\\bigcirc",C8(z8,"\u25EF"));a.put("\\bmod",F8("mod",!1,!1));a.put("\\mod",F8("mod",!1,!1));a.put("\\log",F8("log",!1,!0));a.put("\\lg",F8("lg",!1,!0));a.put("\\ln",F8("ln",!1,!0));a.put("\\sin",F8("sin", !1,!0));a.put("\\arcsin",F8("arcsin",!1,!0));a.put("\\sinh",F8("sinh",!1,!0));a.put("\\cos",F8("cos",!1,!0));a.put("\\arccos",F8("arccos",!1,!0));a.put("\\cosh",F8("cosh",!1,!0));a.put("\\tan",F8("tan",!1,!0));a.put("\\arctan",F8("arctan",!1,!0));a.put("\\tanh",F8("tanh",!1,!0));a.put("\\cot",F8("cot",!1,!0));a.put("\\coth",F8("coth",!1,!0));a.put("\\sec",F8("sec",!1,!0));a.put("\\csc",F8("csc",!1,!0));a.put("\\cosec",F8("cosec",!1,!0));a.put("\\arg",F8("arg",!1,!0));a.put("\\ker",F8("ker",!1,!0)); a.put("\\dim",F8("dim",!1,!0));a.put("\\hom",F8("hom",!1,!0));a.put("\\exp",F8("exp",!1,!0));a.put("\\deg",F8("deg",!1,!0));a.put("\\lim",F8("lim",!0,!1));a.put("\\limsup",F8("lim sup",!0,!1));a.put("\\liminf",F8("lim inf",!0,!1));a.put("\\varinjlim",wBc(bBc));a.put("\\varprojlim",wBc(cBc));a.put("\\injlim",F8("inj lim",!0,!1));a.put("\\projlim",F8("proj lim",!0,!1));a.put("\\varliminf",wBc(dBc));a.put("\\varlimsup",wBc(eBc));a.put("\\max",F8("max",!0,!1));a.put("\\min",F8("min",!0,!1));a.put("\\sup", F8("sup",!0,!1));a.put("\\inf",F8("inf",!0,!1));a.put("\\det",F8("det",!0,!1));a.put("\\Pr",F8("Pr",!0,!1));a.put("\\gcd",F8("gcd",!0,!1));Gwc(a,jBc);a.put("\\P",C8(A8,"\xB6"));a.put("\u2013",C8(A8,"\u2013"));a.put("\u2014",C8(A8,"\u2014"));a.put("\\$",C8(A8,"$"));a.put("\\&",C8(A8,"&"));a.put("\\#",C8(A8,"#"));a.put("\\%",C8(A8,"%"));a.put("\\_",C8(A8,"_"));a.put("\\ ",C8(A8," "));a.put("\\space",C8(A8," "));a.put("~",C8(A8,"\xA0"));a.put("\\nobreakspace",C8(A8,"\xA0"));a.put("\\backslash", C8(A8,"\\"));a.put("\\yen",C8(A8,"\xA5"));a.put("\\pounds",C8(A8,"\xA3"));a.put("\\textsterling",C8(A8,"\xA3"));a.put("\\euro",C8(A8,"\u20AC"));a.put("\\texteuro",C8(A8,"\u20AC"));a.put("\\rupee",C8(A8,"\u20B9"));a.put("\\textyen",C8(A8,"\xA5"));a.put("\\LaTeX",C8(A8,"LaTeX"));a.put(",",C8(b6,","));a.put(";",C8(b6,";"));a.put("\\colon",C8(b6,":"));a.put("\\cdotp",C8(b6,"\xB7"));a.put("\\ldotp",C8(b6,"."));a.put("\\circlearrowleft",C8(A8,"\u21BA"));a.put("\\circlearrowright",C8(A8,"\u21BB")); a.put("\\curvearrowleft",C8(A8,"\u21B6"));a.put("\\curvearrowright",C8(A8,"\u21B7"));a.put("\\degree",C8(A8,"\xB0"));a.put("\\copyright",C8(A8,"\xA9"));w5(a,"\\neg","\\lnot",C8(A8,"\xAC"));w5(a,"\\textregistered","\\circledR",C8(A8,"\xAE"));w5(a,"\\AA","\\angstrom",C8(A8,"\xC5"));a.put("\\eth",C8(A8,"\xF0"));w5(a,"\\|","\\Vert",C8(A8,"\u2016"));a.put("\\vert",C8(A8,"|"));x5(a,"\\ldots","\\mathellipsis","\\textellipsis",C8(A8,"\u2026"));x5(a,"\\dots","\\dotsc","\\dotso",C8(A8,"\u2026")); a.put("\\prime",C8(A8,"\u2032"));a.put("\\hbar",C8(A8,"\u210F"));a.put("\\Im",C8(A8,"\u2111"));a.put("\\ell",C8(A8,"\u2113"));a.put("\\wp",C8(A8,"\u2118"));a.put("\\Re",C8(A8,"\u211C"));a.put("\\mho",C8(A8,"\u2127"));a.put("\\aleph",C8(A8,"\u2135"));a.put("\\beth",C8(A8,"\u2136"));a.put("\\gimel",C8(A8,"\u2137"));a.put("\\forall",C8(A8,"\u2200"));a.put("\\exists",C8(A8,"\u2203"));a.put("\\nexists",C8(A8,"\u2204"));w5(a,"\\emptyset","\\varnothing",C8(A8,"\u2205"));a.put("\\nabla",C8(A8,"\u2207")); a.put("\\surd",C8(A8,"\u221A"));a.put("\\infty",C8(A8,"\u221E"));a.put("\\angle",C8(A8,"\u2220"));a.put("\\measuredangle",C8(A8,"\u2221"));a.put("\\sphericalangle",C8(A8,"\u2222"));a.put("\\nparallel",C8(A8,"\u2226"));a.put("\\diagup",C8(A8,"\u2571"));a.put("\\diagdown",C8(A8,"\u2572"));a.put("\\top",C8(A8,"\u22A4"));a.put("\\bot",C8(A8,"\u22A5"));a.put("\\vdots",C8(A8,"\u22EE"));var b=C8(A8,"\u22EF");a.put("\\cdots",b);a.put("\\dotsb",b);a.put("\\dotsm",b);a.put("\\dotsi",b);a.put("\\ddots",C8(A8, "\u22F1"));a.put("\\frown",C8(A8,"\u2322"));a.put("\\smile",C8(A8,"\u2323"));a.put("\\blacksquare",C8(A8,"\u25A0"));w5(a,"\\square","\\Box",C8(A8,"\u25A1"));a.put("\\blacktriangle",C8(A8,"\u25B2"));w5(a,"\\triangle","\\bigtriangleup",C8(A8,"\u25B3"));a.put("\\vartriangle",C8(A8,"\u25B5"));a.put("\\blacktriangleright",C8(A8,"\u25B6"));a.put("\\triangleright",C8(A8,"\u25B9"));a.put("\\blacktriangledown",C8(A8,"\u25BC"));w5(a,"\\triangledown","\\bigtriangledown",C8(A8,"\u25BD"));a.put("\\blacktriangleleft", C8(A8,"\u25C0"));a.put("\\triangleleft",C8(A8,"\u25C3"));w5(a,"\\Diamond","\\lozenge",C8(A8,"\u25CA"));a.put("\\diamond",C8(A8,"\u22C4"));a.put("\\bigstar",C8(A8,"\u2605"));a.put("\\flat",C8(A8,"\u266D"));a.put("\\natural",C8(A8,"\u266E"));a.put("\\sharp",C8(A8,"\u266F"));a.put("\\checkmark",C8(A8,"\u2713"));a.put("\\placeholder",C8(A8,"\u2B1A"));a.put("\\minuso",C8(A8,"\u29B5"));a.put("\\blacklozenge",C8(A8,"\u29EB"));a.put("\\S",C8(A8,"\xA7"));a.put("\\imath",C8(A8,"\uD835\uDEA4"));a.put("\\jmath", C8(A8,"\uD835\uDEA5"));a.put("\\partial",C8(A8,"\uD835\uDF15"));w5(a,"\\diamondsuit","\\diamonds",C8(A8,"\u2666"));w5(a,"\\heartsuit","\\hearts",C8(A8,"\u2665"));w5(a,"\\spadesuit","\\spades",C8(A8,"\u2660"));w5(a,"\\clubsuit","\\clubs",C8(A8,"\u2663"));a.put("\u01CE",K8(C8(B8,"a")));a.put("\u01D2",K8(C8(B8,"o")));a.put("\u01D0",K8(C8(A8,"\uD835\uDEA4")));a.put("\u01D4",K8(C8(B8,"u")));a.put("\u01DA",K8(yBc("u")));a.put("\u01CD",K8(C8(B8,"A")));a.put("\u01D1",K8(C8(B8,"O")));a.put("\u01CF",K8(C8(B8, "I")));a.put("\u01D3",K8(C8(B8,"U")));a.put("\u01D9",K8(yBc("U")));a.put("\\,",G8(3));a.put("\\thinspace",G8(3));a.put("\\>",G8(4));a.put("\\;",G8(5));a.put("\\thickspace",G8(5));a.put("\\!",G8(-3));a.put("\\negthinspace",G8(-3));a.put("\\quad",G8(18));a.put("\\qquad",G8(36));a.put("\\displaystyle",xBc(S6));a.put("\\textstyle",xBc(U6));a.put("\\scriptstyle",xBc(V6));a.put("\\scriptscriptstyle",xBc(W6));a.put(RAc.f_latexCommand__com_google_apps_xplatmath_font_FontSize_,H8(RAc));a.put(SAc.f_latexCommand__com_google_apps_xplatmath_font_FontSize_, H8(SAc));a.put(TAc.f_latexCommand__com_google_apps_xplatmath_font_FontSize_,H8(TAc));a.put(UAc.f_latexCommand__com_google_apps_xplatmath_font_FontSize_,H8(UAc));a.put(u8.f_latexCommand__com_google_apps_xplatmath_font_FontSize_,H8(u8));a.put(VAc.f_latexCommand__com_google_apps_xplatmath_font_FontSize_,H8(VAc));a.put(WAc.f_latexCommand__com_google_apps_xplatmath_font_FontSize_,H8(WAc));a.put(XAc.f_latexCommand__com_google_apps_xplatmath_font_FontSize_,H8(XAc));a.put(YAc.f_latexCommand__com_google_apps_xplatmath_font_FontSize_, H8(YAc));a.put(ZAc.f_latexCommand__com_google_apps_xplatmath_font_FontSize_,H8(ZAc));return a.build()},ABc=function(a){k8(); var b=a.fontStyle();b=r8(b,"text");Dwc.f_map__com_google_apps_xplatmath_collections_BaseXMap.JSC$17075_containsKey(b)&&(a=V(a.transform(new V5),r6,p6),a.JSC$17279_type_=d6);return a},xAc=function(a){k8(); return V(Dwc.get(a),G2,y2)},BBc=function(a){k8(); return function(b){return Lyc(Bxc,a,b)}},CBc=function(a){k8(); return function(b){return Lyc(Cxc,a,b)}},I8=function(a,b){k8(); return function(c){var d=new L7;Y6(d,c6,a,c);d.f_stretchy__com_google_apps_xplatmath_dom_MathAccent_=!1;d.f_diacriticType__com_google_apps_xplatmath_dom_MathAccent_=b;return d}},L8=function(a,b){k8(); return function(c){var d=new L7;Y6(d,c6,a,c);d.f_stretchy__com_google_apps_xplatmath_dom_MathAccent_=!0;d.f_diacriticType__com_google_apps_xplatmath_dom_MathAccent_=b;return d}},DBc=function(a,b){k8(); a=V(t5(kBc,a),B2,z2);return a==null?null:a(V(b(),R5,S5))},AAc=function(a){k8(); o4(M7(a)||b7(a));var b=V(t5(lBc,EBc(a)),G2,y2);if(b==null)throw b2("One-argument atom nucleus "+K1(a.nucleus_)+" should be valid by construction.").backingJsObject;return b},FBc=function(a,b){k8(); a=V(t5(lBc,a),G2,y2);if(a==null)return b;try{return V(p4(DBc(a,function(){return E6(b)})),n6,f6)}catch(d){var c=W1(d); if(c instanceof J8)throw b2(c).backingJsObject;throw c.backingJsObject}},EBc=function(a){k8(); var b=M7(a)&&V(a,M7,L7).f_stretchy__com_google_apps_xplatmath_dom_MathAccent_||b7(a);return K1(a.nucleus_)+String(b?"\tstretchy":"")},LAc=function(a){k8(); var b=V(t5(oBc,p7(a)),G2,y2);if(b==null)throw b2("Delimiter glyph "+K1(p7(a))+" should be valid by construction.").backingJsObject;return b},GBc=function(a){a=LAc(a); switch(j2(a)){case".":return k6();case"<":a="\\langle";break;case">":a="\\rangle";}return V(p4(D8(a,"math")),n6,f6)},HBc=function(a){k8(); j4(J1(a.type(),Y5)||J1(a.type(),$5)||J1(a.type(),a6)||J1(a.type(),sxc),"Delimiter-convertible atom required.");var b=FAc(a);return V(nBc.get(b==null?a.nucleus_:b),r7,i7)},IBc=function(){for(var a=A5(),b=Bzc(),c=0;c").put("\\restriction","\\upharpoonright").build();gBc=JBc(iBc,function(b){b=V(b,B2,z2);b=V(b(),n6,f6);return r3(b.nucleus_)?null:b.nucleus_}); Dwc=A5().put(r8(u6,"math"),"\\mathrm").put(r8(u6,"text"),"\\textrm").put(r8(v6,"math"),"\\mathbf").put(r8(v6,"text"),"\\textbf").put(r8(Yxc,"math"),"\\mathcal").put(r8(Zxc,"math"),"\\mathtt").put(r8(Zxc,"text"),"\\texttt").put(r8(w6,"math"),"\\mathit").put(r8(w6,"text"),"\\textit").put(r8($xc,"math"),"\\mathsf").put(r8($xc,"text"),"\\textsf").put(r8(ayc,"math"),"\\mathfrak").put(r8(byc,"math"),"\\mathbb").put(r8(x6,"math"),"\\mathbfit").put(h8(),"\\mathnormal").put(OAc(),"\\text").build();var a=Kwc(); l8=x5(a.put("\\rm",V(a.get("\\mathrm"),m8,n8)),"\\Bbb","\\bold","\\bf",V(a.get("\\mathbf"),m8,n8)).put("\\cal",V(a.get("\\mathcal"),m8,n8)).put("\\mathscr",V(a.get("\\mathcal"),m8,n8)).put("\\mit",V(a.get("\\mathit"),m8,n8)).put("\\frak",V(a.get("\\mathfrak"),m8,n8)).put("\\bm",V(a.get("\\mathbfit"),m8,n8)).put("\\boldsymbol",V(a.get("\\mathbfit"),m8,n8)).put("\\textnormal",V(a.get("\\text"),m8,n8)).build();IAc=A5().put(S6.toString(),"\\displaystyle").put(U6.toString(),"\\textstyle").put(V6.toString(), "\\scriptstyle").put(W6.toString(),"\\scriptscriptstyle").build();sBc=A5().put("\\widehat",L8("\u0302",0)).put("\\widetilde",L8("\u0303",0)).put("\\widecheck",L8("\u030C",0)).put("\\overleftharpoon",L8("\u20D0",0)).put("\\overrightharpoon",L8("\u20D1",0)).put("\\overleftarrow",L8("\u20D6",0)).put("\\overrightarrow",L8("\u20D7",0)).put("\\overleftrightarrow",L8("\u20E1",0)).put("\\underleftarrow",L8("\u20EE",1)).put("\\underrightarrow",L8("\u20EF",1)).put("\\underleftrightarrow",L8("\u034D",1)).put("\\overbracket", CBc("\u23B4")).put("\\overbrace",CBc("\u23DE")).put("\\overgroup",CBc("\u23DC")).put("\\underbracket",BBc("\u23B5")).put("\\underbrace",BBc("\u23DF")).put("\\undergroup",BBc("\u23DD")).build();kBc=Gwc(w5(w5(w5(w5(w5(w5(w5(w5(w5(w5(A5(),"\\`","\\grave",I8("\u0300",0)),"\\'","\\acute",I8("\u0301",0)),"\\^","\\hat",I8("\u0302",0)),"\\~","\\tilde",I8("\u0303",0)),"\\=","\\bar",I8("\u0304",0)),"\\u","\\breve",I8("\u0306",0)),"\\.","\\dot",I8("\u0307",0)),"\\\"","\\ddot",I8("\u0308",0)),"\\r","\\mathring", I8("\u030A",0)).put("\\vec",I8("\u20D7",0)).put("\\overarc",I8("\u23DC",0)).put("\\H",I8("\u030B",0)),"\\v","\\check",I8("\u030C",0)).put("\\c",I8("\u0327",2)).put("\\not",I8("\u0338",2)),sBc).build();mBc=P5(D4());lBc=JBc(kBc,function(b){a:{b=V(b,B2,z2);try{var c=EBc(b(mBc));break a}catch(d){c=W1(d);if(c instanceof J8)throw b2(c).backingJsObject;throw c.backingJsObject}c=void 0}return c}); pBc=Iuc("","\\","{","}");nBc=IBc().put(".",s7).put("\\|",u7).put("\\Vert",u7).put("\\lVert",u7).put("\\rVert",u7).put("\\vert",t7).put("\\lvert",t7).put("\\rvert",t7).put("\\uparrow",lzc).put("\\downarrow",nzc).put("\\updownarrow",pzc).put("\\Uparrow",mzc).put("\\Downarrow",ozc).put("\\Updownarrow",qzc).put("\\backslash",jzc).put("<",v7).put(">",w7).put("\\lt",v7).put("\\gt",w7).put("\\langle",v7).put("\\rangle",w7).put("\\lbrack",x7).put("\\rbrack",y7).put("\\{",B7).put("\\}",C7).put("\\lbrace", B7).put("\\rbrace",C7).put("\\lceil",z7).put("\\rceil",A7).put("\\lBrace",rzc).put("\\rBrace",szc).put("\\llbracket",tzc).put("\\rrbracket",uzc).put("\\lfloor",D7).put("\\rfloor",E7).put("\\lgroup",F7).put("\\rgroup",G7).put("\\llcorner",vzc).put("\\lrcorner",wzc).put("\\lmoustache",xzc).put("\\rmoustache",yzc).put("\\lparen",H7).put("\\rparen",I7).put("\\ulcorner",zzc).put("\\urcorner",Azc).build();oBc=JBc(nBc,function(b){return p7(V(b,r7,i7))}); qBc=K4(N5(3,"\\,"),N5(4,"\\>"),N5(5,"\\;"),N5(-3,"\\!"),N5(18,"\\quad"),N5(36,"\\qquad"))};var M8=function(){this.f_start__com_google_apps_xplatmath_latex_AutoValue_Token_=0}; k(M8,g4);var KBc=function(a,b){o4(a.length>0);var c=new M8;s3(a);c.f_string__com_google_apps_xplatmath_latex_AutoValue_Token_=a;c.f_start__com_google_apps_xplatmath_latex_AutoValue_Token_=b;return c},LBc=function(a){return a.start()+", '"+K1(a.string())+"'"}; M8.prototype.string=function(){return this.f_string__com_google_apps_xplatmath_latex_AutoValue_Token_}; M8.prototype.start=function(){return this.f_start__com_google_apps_xplatmath_latex_AutoValue_Token_}; M8.prototype.$$classMetadata=["com.google.apps.xplatmath.latex.Token",0];var Brc=function(){}; Brc.prototype.$$classMetadata=["com.google.apps.xplatmath.latex.LatexParseException$ErrorCode",0];var J8=function(a,b,c){Hpc();this.f_cause__java_lang_Throwable_=c;this.f_detailMessage__java_lang_Throwable_=b;Ipc(this);this.f_errorCode__com_google_apps_xplatmath_latex_LatexParseException_=a;T1(this,Error(this))}; k(J8,Z1);var MBc=function(a,b,c){return new J8(b,"At "+K1(a)+": "+K1(c),null)},N8=function(a,b,c){return MBc(""+a,b,c)}; J8.prototype.errorCode=function(){return this.f_errorCode__com_google_apps_xplatmath_latex_LatexParseException_}; J8.prototype.$$classMetadata=["com.google.apps.xplatmath.latex.LatexParseException",0];var NBc=function(){}; k(NBc,g4);var OBc=function(a){return a.f_atomBeforeCursor__com_google_apps_xplatmath_cursor_AutoValue_DomCursorLocation_!=null?a.f_atomBeforeCursor__com_google_apps_xplatmath_cursor_AutoValue_DomCursorLocation_:a.f_nucleusBeforeCursor__com_google_apps_xplatmath_cursor_AutoValue_DomCursorLocation_},O8=function(a,b,c){var d=new NBc; d.f_atomBeforeCursor__com_google_apps_xplatmath_cursor_AutoValue_DomCursorLocation_=a;d.f_nucleusBeforeCursor__com_google_apps_xplatmath_cursor_AutoValue_DomCursorLocation_=b;d.f_listStartingAtCursor__com_google_apps_xplatmath_cursor_AutoValue_DomCursorLocation_=c;return d}; NBc.prototype.$$classMetadata=["com.google.apps.xplatmath.cursor.DomCursorLocation",0];var PBc=function(){}; k(PBc,I1);PBc.prototype.$$classMetadata=["com.google.apps.xplatmath.debug.DebugLogger$1",0];var QBc=function(){this.f_fontSizePerUnit__com_google_apps_xplatmath_font_FontMetrics_=this.f_sizeScale__com_google_apps_xplatmath_font_FontMetrics_=this.f_styleScale__com_google_apps_xplatmath_font_FontMetrics_=0}; k(QBc,I1); var Q8=function(a,b,c){var d=new QBc;d.f_data__com_google_apps_xplatmath_font_FontMetrics_=a;d.f_mathStyle__com_google_apps_xplatmath_font_FontMetrics_=b;d.f_sizeScale__com_google_apps_xplatmath_font_FontMetrics_=RBc(c);a:{switch(b.ordinal()){case 0:case 1:b=1;break a;case 2:b=K5(d.f_data__com_google_apps_xplatmath_font_FontMetrics_.f_globalConstants__com_google_apps_xplatmath_font_gen_GeneratedFontData_,gvc.f_value__com_google_apps_xplatmath_font_proto_GlobalConstant_)*.01;break a;case 3:b=K5(d.f_data__com_google_apps_xplatmath_font_FontMetrics_.f_globalConstants__com_google_apps_xplatmath_font_gen_GeneratedFontData_, hvc.f_value__com_google_apps_xplatmath_font_proto_GlobalConstant_)*.01;break a;}throw n4().backingJsObject}d.f_styleScale__com_google_apps_xplatmath_font_FontMetrics_=b;d.f_fontSizePerUnit__com_google_apps_xplatmath_font_FontMetrics_=P8(d)/K5(a.f_globalConstants__com_google_apps_xplatmath_font_gen_GeneratedFontData_,evc.f_value__com_google_apps_xplatmath_font_proto_GlobalConstant_);return d},RBc=function(a){switch(a.ordinal()){case 0:return .5; case 1:return .7;case 2:return .8;case 3:return .9;case 4:return 1;case 5:return 1.2;case 6:return 1.44;case 7:return 1.728;case 8:return 2.074;case 9:return 2.488;}throw n4().backingJsObject},SBc=function(a,b){switch(b.ordinal()){case 0:return Q8(a,S6,u8); case 1:return Q8(a,U6,u8);case 2:return Q8(a,V6,u8);case 3:return Q8(a,W6,u8);}throw n4().backingJsObject},R8=function(a,b){return SBc(a.f_data__com_google_apps_xplatmath_font_FontMetrics_,b)},S8=function(a){switch(a.f_mathStyle__com_google_apps_xplatmath_font_FontMetrics_.ordinal()){case 0:case 1:return R8(a,V6); case 2:case 3:return R8(a,W6);}throw n4().backingJsObject},TBc=function(a){switch(a.f_mathStyle__com_google_apps_xplatmath_font_FontMetrics_.ordinal()){case 0:return R8(a,U6); case 1:return R8(a,V6);case 2:case 3:return R8(a,W6);}throw n4().backingJsObject}; QBc.prototype.getStyle=function(){return this.f_mathStyle__com_google_apps_xplatmath_font_FontMetrics_}; var P8=function(a){return 1*a.f_styleScale__com_google_apps_xplatmath_font_FontMetrics_*a.f_sizeScale__com_google_apps_xplatmath_font_FontMetrics_},T8=function(a,b){a=a.f_data__com_google_apps_xplatmath_font_FontMetrics_; b=yqc(b,b.length);return Qwc(a,b)},U8=function(a,b){return Qwc(a.f_data__com_google_apps_xplatmath_font_FontMetrics_,x3(b,0))},VBc=function(a,b){var c=C4(); for(b=B4(b).m_iterator__java_util_Iterator();b.m_hasNext__boolean();){var d=V(b.m_next__java_lang_Object(),p2,o2).intValue(),e=Qwc(a.f_data__com_google_apps_xplatmath_font_FontMetrics_,d),f=c,h=f.add;e==0&&hyc(d)?(e=P8(a),d=UBc(0,e,h4(0,-.15*e,e,.85*e),e,d)):d=V8(a,e);h.call(f,d)}return y4(c)},WBc=function(a,b,c){var d=P8(a),e=Uwc(a.f_data__com_google_apps_xplatmath_font_FontMetrics_,b,a.f_fontSizePerUnit__com_google_apps_xplatmath_font_FontMetrics_); a=K5(a.f_data__com_google_apps_xplatmath_font_FontMetrics_.f_horizontalAdvance__com_google_apps_xplatmath_font_gen_GeneratedFontData_,b)*a.f_fontSizePerUnit__com_google_apps_xplatmath_font_FontMetrics_;return UBc(b,d,e,a,c)},V8=function(a,b){var c=V(t5(a.f_data__com_google_apps_xplatmath_font_FontMetrics_.f_codePointForGlyphId__com_google_apps_xplatmath_font_gen_GeneratedFontData_,C2(b)),p2,o2); c=c==null?0:c.intValue();return WBc(a,b,c)},XBc=function(a){var b=Qwc(a.f_data__com_google_apps_xplatmath_font_FontMetrics_,40); a=Uwc(a.f_data__com_google_apps_xplatmath_font_FontMetrics_,b,a.f_fontSizePerUnit__com_google_apps_xplatmath_font_FontMetrics_);return h4(0,a.f_minY__com_google_apps_xplatmath_util_AutoValue_Rect_,0,a.f_maxY__com_google_apps_xplatmath_util_AutoValue_Rect_)},YBc=function(a,b,c,d,e){b=Swc(a.f_data__com_google_apps_xplatmath_font_FontMetrics_,b,c); d=d?xuc(b):b;c=V8(a,c);b=null;for(d=d.m_iterator__java_util_Iterator();d.m_hasNext__boolean();)if(b=V(d.m_next__java_lang_Object(),p2,o2).intValue(),b=WBc(a,b,c.codePoint()),e(b))return b;return b!=null?b:c},ZBc=function(a,b,c){return YBc(a,1,b,!1,function(d){d=V(d,W8,X8); return d.ascent()+d.descent()>=c})},$Bc=function(a,b,c){return YBc(a,0,b,!0,function(d){return V(d,W8,X8).rect().width()<=c})},aCc=function(a,b,c){return YBc(a,0,b,!1,function(d){return V(d,W8,X8).rect().width()>=c})},bCc=function(a,b){return YBc(a,1,b,!1,function(c){return V(c,W8,X8).f_gid__com_google_apps_xplatmath_font_AutoValue_Glyph_!=b})},cCc=function(a,b,c){var d=a.f_data__com_google_apps_xplatmath_font_FontMetrics_; b=J1(b,0)?d.f_horizontalVariants__com_google_apps_xplatmath_font_gen_GeneratedFontData_:d.f_verticalVariants__com_google_apps_xplatmath_font_gen_GeneratedFontData_;c=V(t5(b,C2(c)),Rwc,J5);b=c==null?null:c.f_assembly__com_google_apps_xplatmath_font_AutoValue_FontMathVariantsHelper_MathGlyphConstruction_;if(b==null)return null;c=C4();for(b=b.f_partRecords__com_google_apps_xplatmath_font_AutoValue_FontMathVariantsHelper_GlyphAssembly_.iterator();b.m_hasNext__boolean();){var e=V(b.m_next__java_lang_Object(), cvc,d5),f=V8(a,e.f_glyph__com_google_apps_xplatmath_font_AutoValue_FontMathVariantsHelper_GlyphPartRecord_);d=c;var h=d.add,m=e.f_fullAdvance__com_google_apps_xplatmath_font_AutoValue_FontMathVariantsHelper_GlyphPartRecord_*a.f_fontSizePerUnit__com_google_apps_xplatmath_font_FontMetrics_,p=e.f_startConnectorLength__com_google_apps_xplatmath_font_AutoValue_FontMathVariantsHelper_GlyphPartRecord_*a.f_fontSizePerUnit__com_google_apps_xplatmath_font_FontMetrics_,q=e.f_endConnectorLength__com_google_apps_xplatmath_font_AutoValue_FontMathVariantsHelper_GlyphPartRecord_* a.f_fontSizePerUnit__com_google_apps_xplatmath_font_FontMetrics_;e=(e.f_partFlags__com_google_apps_xplatmath_font_AutoValue_FontMathVariantsHelper_GlyphPartRecord_&1)==1;var t=new Y8;s3(f);t.f_glyph__com_google_apps_xplatmath_font_AutoValue_GlyphPart_=f;t.f_fullAdvance__com_google_apps_xplatmath_font_AutoValue_GlyphPart_=m;t.f_startConnectorLength__com_google_apps_xplatmath_font_AutoValue_GlyphPart_=p;t.f_endConnectorLength__com_google_apps_xplatmath_font_AutoValue_GlyphPart_=q;t.f_isExtender__com_google_apps_xplatmath_font_AutoValue_GlyphPart_= e;h.call(d,t)}return y4(c)},Z8=function(a,b){return K5(a.f_data__com_google_apps_xplatmath_font_FontMetrics_.f_globalConstants__com_google_apps_xplatmath_font_gen_GeneratedFontData_,b.f_value__com_google_apps_xplatmath_font_proto_GlobalConstant_)*a.f_fontSizePerUnit__com_google_apps_xplatmath_font_FontMetrics_}; QBc.prototype.$$classMetadata=["com.google.apps.xplatmath.font.FontMetrics",0];var X8=function(){this.f_codePoint__com_google_apps_xplatmath_font_AutoValue_Glyph_=this.f_advance__com_google_apps_xplatmath_font_AutoValue_Glyph_=this.f_fontSize__com_google_apps_xplatmath_font_AutoValue_Glyph_=this.f_gid__com_google_apps_xplatmath_font_AutoValue_Glyph_=0}; k(X8,g4);X8.prototype.ascent=function(){return Math.max(0,this.rect().f_maxY__com_google_apps_xplatmath_util_AutoValue_Rect_)}; X8.prototype.descent=function(){return Math.max(0,-this.rect().f_minY__com_google_apps_xplatmath_util_AutoValue_Rect_)}; var UBc=function(a,b,c,d,e){var f=new X8;f.f_gid__com_google_apps_xplatmath_font_AutoValue_Glyph_=a;f.f_fontSize__com_google_apps_xplatmath_font_AutoValue_Glyph_=b;s3(c);f.f_rect__com_google_apps_xplatmath_font_AutoValue_Glyph_=c;f.f_advance__com_google_apps_xplatmath_font_AutoValue_Glyph_=d;f.f_codePoint__com_google_apps_xplatmath_font_AutoValue_Glyph_=e;return f}; X8.prototype.scale=function(a){return UBc(this.f_gid__com_google_apps_xplatmath_font_AutoValue_Glyph_,this.fontSize()*a,this.rect().scale(a),this.f_advance__com_google_apps_xplatmath_font_AutoValue_Glyph_*a,this.codePoint())}; X8.prototype.fontSize=function(){return this.f_fontSize__com_google_apps_xplatmath_font_AutoValue_Glyph_}; X8.prototype.rect=function(){return this.f_rect__com_google_apps_xplatmath_font_AutoValue_Glyph_}; X8.prototype.codePoint=function(){return this.f_codePoint__com_google_apps_xplatmath_font_AutoValue_Glyph_}; var W8=function(a){return a instanceof X8}; X8.prototype.$$classMetadata=["com.google.apps.xplatmath.font.Glyph",0];var Y8=function(){this.f_endConnectorLength__com_google_apps_xplatmath_font_AutoValue_GlyphPart_=this.f_startConnectorLength__com_google_apps_xplatmath_font_AutoValue_GlyphPart_=this.f_fullAdvance__com_google_apps_xplatmath_font_AutoValue_GlyphPart_=0;this.f_isExtender__com_google_apps_xplatmath_font_AutoValue_GlyphPart_=!1}; k(Y8,g4);var dCc=function(a){return a instanceof Y8}; Y8.prototype.$$classMetadata=["com.google.apps.xplatmath.font.GlyphPart",0];var eCc=function(){}; k(eCc,I1);eCc.prototype.$$classMetadata=["com.google.apps.xplatmath.label.EditorMessages",0];var $8=function(){},fCc; k($8,I1);var jCc=function(a,b){var c=gxc(b);return c!=null?gCc(a,d7(c)):hCc(a.f_i18nContext__com_google_apps_xplatmath_label_ClearSpeak_,function(d,e){d=V(d,a9,b9);e=V(e,K6,G6);iCc(d,e)||c9(d,e)},b.getRoot())},gCc=function(a,b){return hCc(a.f_i18nContext__com_google_apps_xplatmath_label_ClearSpeak_,function(c,d){c=V(c,a9,b9); d=V(d,Syc,c7);d9(c,d)},b)},kCc=function(){kCc=function(){}; fCc=lCc(function(a){a=V(a,Vuc,a5);var b=new $8;b.f_i18nContext__com_google_apps_xplatmath_label_ClearSpeak_=a;return b})},mCc=function(a){return a instanceof $8}; $8.prototype.$$classMetadata=["com.google.apps.xplatmath.label.ClearSpeak",0];var e9=function(){}; k(e9,I1);var nCc=function(a){return a instanceof e9}; e9.prototype.$$classMetadata=["com.google.apps.xplatmath.label.ClearSpeakMessages",0];var oCc=function(){this.f_intValue__com_google_apps_xplatmath_label_ClearSpeakBuilder_Ordinal=0}; k(oCc,I1);var pCc=function(a){var b=new oCc;b.f_ordinal__com_google_apps_xplatmath_label_ClearSpeakBuilder_Ordinal=a;b.f_intValue__com_google_apps_xplatmath_label_ClearSpeakBuilder_Ordinal=-2147483648;return b}; oCc.prototype.$$classMetadata=["com.google.apps.xplatmath.label.ClearSpeakBuilder$Ordinal",0];var b9=function(){this.f_isEnglish__com_google_apps_xplatmath_label_ClearSpeakBuilder_=!1},qCc,rCc,sCc,tCc,uCc,vCc,wCc; k(b9,I1); var hCc=function(a,b,c){xCc();var d=new b9;d.f_strBuilder__com_google_apps_xplatmath_label_ClearSpeakBuilder_=n3();d.f_i18nContext__com_google_apps_xplatmath_label_ClearSpeakBuilder_=a;d.f_isEnglish__com_google_apps_xplatmath_label_ClearSpeakBuilder_=z3(a.f_localeContext__com_google_apps_xplatmath_util_AutoValue_I18nContext_.f_localeString__com_google_apps_xplat_i18n_context_LocaleContext_,"en");yCc();var e=V(f9(zCc,a),ACc,g9);d.f_labels__com_google_apps_xplatmath_label_ClearSpeakBuilder_=e;d.f_messages__com_google_apps_xplatmath_label_ClearSpeakBuilder_= V(f9((BCc(),CCc),a),nCc,e9);a=d.f_isEnglish__com_google_apps_xplatmath_label_ClearSpeakBuilder_;h9();d.f_simpleExpressionParser__com_google_apps_xplatmath_label_ClearSpeakBuilder_=a?DCc:ECc;b(d,c);return d.f_strBuilder__com_google_apps_xplatmath_label_ClearSpeakBuilder_.toString()},FCc=function(a,b,c){return hCc(a.f_i18nContext__com_google_apps_xplatmath_label_ClearSpeakBuilder_,b,c)},j9=function(a,b){return FCc(a,function(c,d){c=V(c,a9,b9); d=V(d,R5,S5);i9(c,d)},b)},d9=function(a,b){for(;!b.isEmpty();){var c=GCc(a,b); if(c!=null)c9(a,Qyc(c.selection())),b=f7(b,c.size());else{c=a;var d=b.get(0);iCc(c,d)||c9(c,d);b=f7(b,1)}}},GCc=function(a,b){var c=(h9(),HCc).tryParse(b); if(c!=null)return b=ICc(a.f_labels__com_google_apps_xplatmath_label_ClearSpeakBuilder_,V(c.selection().get(0),r6,p6).fontStyle()),r3(b)||k9(a,b),k9(a,c.token()),c;c=JCc.tryParse(b);if(c!=null)return k9(a,KCc(a,c.token())),c;c=LCc(a,b);if(c!=null)return c;c=MCc(b,qCc);if(c!=null)return NCc(a,c.content(),c.f_delimiters__com_google_apps_xplatmath_semantics_AutoValue_SemanticParsers_DelimitedParseResult_),c.f_fullParseResult__com_google_apps_xplatmath_semantics_AutoValue_SemanticParsers_DelimitedParseResult_; c=rCc.tryParse(b);if(c!=null){var d=e7(f7(b,1));if(d!=null&&J1(d.type(),Z5)&&C6(x3(d.nucleus_,0)))return k9(a,l9(a.f_labels__com_google_apps_xplatmath_label_ClearSpeakBuilder_,"\u03B4")),c}return OCc(a,b)},LCc=function(a,b){var c=(h9(),m9).tryParse(b); if(c==null)return null;var d=c.token();if(m6(Qyc(c.selection())))return k9(a,PCc(a,d)),c;var e=y3(d,"."),f=e7(f7(b,c.size()));if(a.f_isEnglish__com_google_apps_xplatmath_label_ClearSpeakBuilder_&&e&&f!=null&&J1(f.type(),yxc)&&(f=V(f,$6,X6).f_innerList__com_google_apps_xplatmath_dom_MathListWrapper_,n9(QCc,f))){k9(a,"the repeating decimal");for(d=c.selection().iterator();d.m_hasNext__boolean();)e=V(d.m_next__java_lang_Object(),n6,f6),k9(a,l9(a.f_labels__com_google_apps_xplatmath_label_ClearSpeakBuilder_, e.nucleus_));k9(a,"with repeating");k9(a,f.size()==1?"digit":"digits");for(d=f.m_iterator__java_util_Iterator();d.m_hasNext__boolean();)e=V(d.m_next__java_lang_Object(),n6,f6),k9(a,e.nucleus_);f.size()!=1&&k9(a,"end-digits");return o9(Ryc(b,c.start(),c.end()+1|0))}k9(a,PCc(a,d));a.f_isEnglish__com_google_apps_xplatmath_label_ClearSpeakBuilder_&&!e&&RCc.tryParse(f7(b,c.size()))!=null&&k9(a,"and");return c},OCc=function(a,b){if(!a.f_isEnglish__com_google_apps_xplatmath_label_ClearSpeakBuilder_)return null; var c=e7(b);if(c==null)return null;var d=SCc(c),e=T6(c)&&V(c,T6,R6).f_isSimpleFunction__com_google_apps_xplatmath_dom_MathLargeOperator_;if(!d&&!e)return null;e=MCc(f7(b,1),(h9(),TCc));if(e==null||UCc(e.content())!=null)return null;iCc(a,c)||c9(a,c);d&&k9(a,"of");c=a.f_simpleExpressionParser__com_google_apps_xplatmath_label_ClearSpeakBuilder_;d=e.content();p9(c,d)!=null?d9(a,e.content()):NCc(a,e.content(),e.f_delimiters__com_google_apps_xplatmath_semantics_AutoValue_SemanticParsers_DelimitedParseResult_); return o9(Ryc(b,b.f_startListIndex__com_google_apps_xplatmath_cursor_AutoValue_DomSelectionLocation_,e.f_fullParseResult__com_google_apps_xplatmath_semantics_AutoValue_SemanticParsers_DelimitedParseResult_.end()))},c9=function(a,b){VCc(a,b.sub()); WCc(a,b.sup())},VCc=function(a,b){b!=null&&(k9(a,a.f_messages__com_google_apps_xplatmath_label_ClearSpeakBuilder_.m_subscriptStart__java_lang_String()),i9(a,b),XCc(a,b)||k9(a,a.f_messages__com_google_apps_xplatmath_label_ClearSpeakBuilder_.m_subscriptEnd__java_lang_String()))},WCc=function(a,b){if(b!=null){var c=d7(b),d=(h9(),YCc).tryParse(c); if(d!=null){switch(d.size()){case 2:k9(a,a.f_messages__com_google_apps_xplatmath_label_ClearSpeakBuilder_.m_primeDouble__java_lang_String());break;case 3:k9(a,a.f_messages__com_google_apps_xplatmath_label_ClearSpeakBuilder_.m_primeTriple__java_lang_String());break;case 4:k9(a,a.f_messages__com_google_apps_xplatmath_label_ClearSpeakBuilder_.m_primeQuadruple__java_lang_String());break;default:d9(a,d.selection());}c=f7(c,d.size());if(c.isEmpty())return}d=ZCc(a,c);d!=null&&d.f_intValue__com_google_apps_xplatmath_label_ClearSpeakBuilder_Ordinal== 2?k9(a,a.f_messages__com_google_apps_xplatmath_label_ClearSpeakBuilder_.m_exponent2__java_lang_String()):d!=null&&d.f_intValue__com_google_apps_xplatmath_label_ClearSpeakBuilder_Ordinal==3?k9(a,a.f_messages__com_google_apps_xplatmath_label_ClearSpeakBuilder_.m_exponent3__java_lang_String()):a.f_isEnglish__com_google_apps_xplatmath_label_ClearSpeakBuilder_&&d!=null?k9(a,"to the "+K1(d.f_ordinal__com_google_apps_xplatmath_label_ClearSpeakBuilder_Ordinal)+" power"):(b=b.atoms_.some(function(e){return V(e, n6,f6).sup()!=null}),!a.f_isEnglish__com_google_apps_xplatmath_label_ClearSpeakBuilder_||b?k9(a,a.f_messages__com_google_apps_xplatmath_label_ClearSpeakBuilder_.m_exponentGeneral__java_lang_String__java_lang_String(FCc(a,function(e,f){e=V(e,a9,b9); f=V(f,Syc,c7);$Cc(e,f)},c))):(k9(a,"raised to the"),$Cc(a,c),k9(a,"power")))}},iCc=function(a,b){switch(b.type().ordinal()){case 20:var c=V(b,M7,L7); if(P1(b.nucleus_,"\u0338")&&c.f_innerList__com_google_apps_xplatmath_dom_MathListWrapper_.size()==1){b=c.f_innerList__com_google_apps_xplatmath_dom_MathListWrapper_.get(0);var d=V(t5(sCc,b.nucleus_),G2,y2);if(d!=null&&l6(b))return k9(a,l9(a.f_labels__com_google_apps_xplatmath_label_ClearSpeakBuilder_,d)),!1}q9(a,c,c.f_diacriticType__com_google_apps_xplatmath_dom_MathAccent_);return!1;case 24:return q9(a,V(b,$6,X6),2),!1;case 13:return q9(a,V(b,P7,O7),2),!1;case 21:return b=V(b,R7,Q7).f_innerList__com_google_apps_xplatmath_dom_MathListWrapper_, d9(a,d7(b)),!1;case 9:d=V(b,U7,S7);b=d.f_numerator__com_google_apps_xplatmath_dom_MathFraction_;c=d.f_denominator__com_google_apps_xplatmath_dom_MathFraction_;if(!d.f_hasRule__com_google_apps_xplatmath_dom_MathFraction_)return aDc(a,G4(E4(b),E4(c))),!1;d=r9(b);var e=r9(c);if(d!=null&&e!=null&&a.f_isEnglish__com_google_apps_xplatmath_label_ClearSpeakBuilder_&&bDc(d.intValue(),e.intValue())){b=K1(V(tCc.get(d.intValue()-1|0),G2,y2))+"-";a:switch(c=e.intValue(),d=d.intValue()!=1,c){case 1:c=d?"oneths": "oneth";break a;case 2:c=d?"halves":"half";break a;default:c=cDc(a.f_labels__com_google_apps_xplatmath_label_ClearSpeakBuilder_,c),c=d?K1(c)+"s":c;}k9(a,b+K1(c));return!1}d=j9(a,b);e=j9(a,c);n9(a.f_simpleExpressionParser__com_google_apps_xplatmath_label_ClearSpeakBuilder_,b)&&n9(a.f_simpleExpressionParser__com_google_apps_xplatmath_label_ClearSpeakBuilder_,c)?k9(a,a.f_messages__com_google_apps_xplatmath_label_ClearSpeakBuilder_.m_fractionSimple__java_lang_String__java_lang_String__java_lang_String(d, e)):k9(a,a.f_messages__com_google_apps_xplatmath_label_ClearSpeakBuilder_.m_fraction__java_lang_String__java_lang_String__java_lang_String(d,e));return!1;case 31:return b=V(b,Yzc,$7),c=j9(a,b.f_inner__com_google_apps_xplatmath_dom_MathSet_),d=j9(a,b.f_outer__com_google_apps_xplatmath_dom_MathSet_),J1(b.f_setType__com_google_apps_xplatmath_dom_MathSet_,Vzc)?k9(a,a.f_messages__com_google_apps_xplatmath_label_ClearSpeakBuilder_.m_overset__java_lang_String__java_lang_String__java_lang_String(c,d)):k9(a, a.f_messages__com_google_apps_xplatmath_label_ClearSpeakBuilder_.m_underset__java_lang_String__java_lang_String__java_lang_String(c,d)),!1;case 12:return b=V(b,X7,V7),NCc(a,d7(b.f_innerList__com_google_apps_xplatmath_dom_MathListWrapper_),b.f_delims__com_google_apps_xplatmath_dom_MathInner_),!1;case 4:if(P1(b.nucleus_,"mod"))return k9(a,l9(a.f_labels__com_google_apps_xplatmath_label_ClearSpeakBuilder_,b.nucleus_)),!1;dDc(a,V(b,T6,R6));return!0;case 19:case 18:return q9(a,V(b,$6,X6),J1(b.type(),Cxc)? 0:1),c=b.sup(),b=b.sub(),a.f_isEnglish__com_google_apps_xplatmath_label_ClearSpeakBuilder_?(b!=null&&(k9(a,"with"),i9(a,b),k9(a,"below")),c!=null&&(k9(a,b==null?"with":"and"),i9(a,c),k9(a,"above"))):(b!=null&&(k9(a,a.f_messages__com_google_apps_xplatmath_label_ClearSpeakBuilder_.m_scriptUnder__java_lang_String()),i9(a,b)),c!=null&&(k9(a,a.f_messages__com_google_apps_xplatmath_label_ClearSpeakBuilder_.m_scriptOver__java_lang_String()),i9(a,c)),b==null&&c==null||k9(a,a.f_messages__com_google_apps_xplatmath_label_ClearSpeakBuilder_.m_scriptsEnd__java_lang_String())), !0;case 15:return q9(a,V(b,$6,X6),0),!1;case 14:return q9(a,V(b,$6,X6),1),!1;case 25:return!1;case 10:return c=V(b,Rzc,Z7),b=c.degree(),c=j9(a,c.f_radicand__com_google_apps_xplatmath_dom_MathRadical_),b==null?k9(a,a.f_messages__com_google_apps_xplatmath_label_ClearSpeakBuilder_.m_rootSquare__java_lang_String__java_lang_String(c)):(d=ZCc(a,d7(b)),d!=null&&d.f_intValue__com_google_apps_xplatmath_label_ClearSpeakBuilder_Ordinal==2?k9(a,a.f_messages__com_google_apps_xplatmath_label_ClearSpeakBuilder_.m_rootSquare__java_lang_String__java_lang_String(c)): d!=null&&d.f_intValue__com_google_apps_xplatmath_label_ClearSpeakBuilder_Ordinal==3?k9(a,a.f_messages__com_google_apps_xplatmath_label_ClearSpeakBuilder_.m_rootCube__java_lang_String__java_lang_String(c)):(b=d!=null&&a.f_isEnglish__com_google_apps_xplatmath_label_ClearSpeakBuilder_?d.f_ordinal__com_google_apps_xplatmath_label_ClearSpeakBuilder_Ordinal:j9(a,b),k9(a,a.f_messages__com_google_apps_xplatmath_label_ClearSpeakBuilder_.m_rootGeneral__java_lang_String__java_lang_String__java_lang_String(b, c)))),!1;case 26:return k9(a,l9(a.f_labels__com_google_apps_xplatmath_label_ClearSpeakBuilder_," ")),!1;case 27:return!1;case 22:return b=V(b,K6,G6),b.f_tableType__com_google_apps_xplatmath_dom_MathTable_.f_getKind__com_google_apps_xplatmath_dom_AutoValue_TableType_.equals(P6)?eDc(a,b.cells()):fDc(a,b.cells()),!1;default:e=b.sub();d=b.sup();if(e!=null&&P1(b.nucleus_,p7(t7)))return d==null?k9(a,a.f_messages__com_google_apps_xplatmath_label_ClearSpeakBuilder_.m_evaluatedAt__java_lang_String__java_lang_String(j9(a, e))):k9(a,a.f_messages__com_google_apps_xplatmath_label_ClearSpeakBuilder_.m_evaluatedFromTo__java_lang_String__java_lang_String__java_lang_String(j9(a,e),j9(a,d))),!0;c=b.renderedSymbols();if(e==null&&d!=null){if(P1(c,"\u2124")&&n9((h9(),JCc),d)&&P1(d.get(0).nucleus_,"+"))return k9(a,a.f_messages__com_google_apps_xplatmath_label_ClearSpeakBuilder_.m_setPositiveIntegers__java_lang_String()),!0;if(!r3(c)&&y3("\u2102\u2115\u211A\u211D\u2124",c)&&(e=null,n9(uCc,d)||n9(vCc,d)?e=l9(a.f_labels__com_google_apps_xplatmath_label_ClearSpeakBuilder_, d.get(0).renderedSymbols()):(d=r9(d),d!=null&&d.intValue()>0&&(e=K1(d))),e!=null))return k9(a,K1(b.nucleus_)+"-"+K1(e)),!0}k9(a,l9(a.f_labels__com_google_apps_xplatmath_label_ClearSpeakBuilder_,c));return!1;}},q9=function(a,b,c){var d=b.f_innerList__com_google_apps_xplatmath_dom_MathListWrapper_,e=P7(b)?a.f_messages__com_google_apps_xplatmath_label_ClearSpeakBuilder_.m_decoratorCrossOut__java_lang_String():l9(a.f_labels__com_google_apps_xplatmath_label_ClearSpeakBuilder_,b.nucleus_); if(wCc.contains(b.nucleus_)&&XCc(a,d))i9(a,d),k9(a,e);else if(a.f_isEnglish__com_google_apps_xplatmath_label_ClearSpeakBuilder_)switch(k9(a,"modified"),i9(a,d),k9(a,"with"),k9(a,e),w3(c!=null),c){case 0:k9(a,"above");break;case 1:k9(a,"below");}else switch(b=j9(a,d),w3(c!=null),c){case 0:k9(a,a.f_messages__com_google_apps_xplatmath_label_ClearSpeakBuilder_.m_modifyingAbove__java_lang_String__java_lang_String__java_lang_String(b,e));break;case 1:k9(a,a.f_messages__com_google_apps_xplatmath_label_ClearSpeakBuilder_.m_modifyingBelow__java_lang_String__java_lang_String__java_lang_String(b, e));break;default:k9(a,a.f_messages__com_google_apps_xplatmath_label_ClearSpeakBuilder_.m_modifying__java_lang_String__java_lang_String__java_lang_String(b,e));}},dDc=function(a,b){var c=b.sub(),d=b.sup(),e=l9(a.f_labels__com_google_apps_xplatmath_label_ClearSpeakBuilder_,b.nucleus_); if(b.f_isSimpleFunction__com_google_apps_xplatmath_dom_MathLargeOperator_){var f=d==null?null:ZCc(a,d7(d));if(a.f_isEnglish__com_google_apps_xplatmath_label_ClearSpeakBuilder_){var h=f!=null&&f.f_intValue__com_google_apps_xplatmath_label_ClearSpeakBuilder_Ordinal!=2&&f.f_intValue__com_google_apps_xplatmath_label_ClearSpeakBuilder_Ordinal!=3,m=!1;f!=null&&h&&(k9(a,"the"),f.f_intValue__com_google_apps_xplatmath_label_ClearSpeakBuilder_Ordinal==-1?(k9(a,"inverse"),m=!0):(k9(a,f.f_ordinal__com_google_apps_xplatmath_label_ClearSpeakBuilder_Ordinal), k9(a,"power of")));k9(a,e);P1(b.nucleus_,"log")&&c!=null?(m=!0,k9(a,"base"),i9(a,c),d==null||h||k9(a,"end-base")):VCc(a,c);h||WCc(a,d);m&&k9(a,"of")}else f!=null&&f.f_intValue__com_google_apps_xplatmath_label_ClearSpeakBuilder_Ordinal==-1?(b=FCc(a,function(p,q){p=V(p,a9,b9);q=V(q,T6,R6);k9(p,l9(p.f_labels__com_google_apps_xplatmath_label_ClearSpeakBuilder_,q.nucleus_));q.sub()!=null&&VCc(p,q.sub())},b),k9(a,a.f_messages__com_google_apps_xplatmath_label_ClearSpeakBuilder_.m_inverse__java_lang_String__java_lang_String(b))):( k9(a,e),c9(a,b))}else k9(a,e),c!=null&&(k9(a,a.f_isEnglish__com_google_apps_xplatmath_label_ClearSpeakBuilder_?d==null?"over":"from":a.f_messages__com_google_apps_xplatmath_label_ClearSpeakBuilder_.m_scriptUnder__java_lang_String()),i9(a,c)),d!=null&&(k9(a,a.f_isEnglish__com_google_apps_xplatmath_label_ClearSpeakBuilder_?"to":a.f_messages__com_google_apps_xplatmath_label_ClearSpeakBuilder_.m_scriptOver__java_lang_String()),i9(a,d)),a.f_isEnglish__com_google_apps_xplatmath_label_ClearSpeakBuilder_? k9(a,"of"):m6(b)&&k9(a,a.f_messages__com_google_apps_xplatmath_label_ClearSpeakBuilder_.m_scriptsEnd__java_lang_String())},NCc=function(a,b,c){var d=UCc(b); if(d!=null){if(w2(c,(o7(),k7))||w2(c,(o7(),m7))||w2(c,(o7(),czc))){aDc(a,d.cells());return}if(w2(c,(o7(),Zyc))||w2(c,(o7(),$yc))){gDc(a,d.cells());return}if(w2(c,(o7(),dzc))){eDc(a,d.cells());return}}if(w2(c,(o7(),l7)))hDc(a,b);else if(w2(c,(o7(),Zyc))){var e;iDc(a,(e=a.f_messages__com_google_apps_xplatmath_label_ClearSpeakBuilder_,function(p){p=V(p,G2,y2);return e.m_circumfixAbsoluteValue__java_lang_String__java_lang_String(p)}),b)}else if(w2(c,(o7(),$yc))){var f; iDc(a,(f=a.f_messages__com_google_apps_xplatmath_label_ClearSpeakBuilder_,function(p){p=V(p,G2,y2);return f.m_circumfixNorm__java_lang_String__java_lang_String(p)}),b)}else if(w2(c,(o7(),azc))){var h; iDc(a,(h=a.f_messages__com_google_apps_xplatmath_label_ClearSpeakBuilder_,function(p){p=V(p,G2,y2);return h.m_circumfixCeiling__java_lang_String__java_lang_String(p)}),b)}else if(w2(c,(o7(),bzc))){var m; iDc(a,(m=a.f_messages__com_google_apps_xplatmath_label_ClearSpeakBuilder_,function(p){p=V(p,G2,y2);return m.m_circumfixFloor__java_lang_String__java_lang_String(p)}),b)}else J1(c.left(),s7)||k9(a,l9(a.f_labels__com_google_apps_xplatmath_label_ClearSpeakBuilder_,p7(c.left()))),d9(a,b),J1(c.right(),s7)||k9(a,l9(a.f_labels__com_google_apps_xplatmath_label_ClearSpeakBuilder_,p7(c.right())))},iDc=function(a,b,c){k9(a,V(b(FCc(a,function(d,e){d=V(d,a9,b9); e=V(e,Syc,c7);d9(d,e)},c)),G2,y2))},hDc=function(a,b){var c; (c=b.isEmpty())||(c=(h9(),jDc),c=p9(c,b)!=null);if(c)k9(a,l9(a.f_labels__com_google_apps_xplatmath_label_ClearSpeakBuilder_,"\u2205"));else{a:{c=null;for(var d=0;d0&&q3(a.f_strBuilder__com_google_apps_xplatmath_label_ClearSpeakBuilder_," "); q3(a.f_strBuilder__com_google_apps_xplatmath_label_ClearSpeakBuilder_,b)},ZCc=function(a,b){if(b.isEmpty())return pCc("empty"); if(p9(uCc,b)!=null){var c=b.get(0);return pCc(K1(l9(a.f_labels__com_google_apps_xplatmath_label_ClearSpeakBuilder_,c.renderedSymbols()))+"-th")}b=p9((h9(),s9),b);if(b==null)return null;b=b.token();try{c=tqc(b);var d=c>0?cDc(a.f_labels__com_google_apps_xplatmath_label_ClearSpeakBuilder_,c):PCc(a,b),e=new oCc;e.f_ordinal__com_google_apps_xplatmath_label_ClearSpeakBuilder_Ordinal=d;e.f_intValue__com_google_apps_xplatmath_label_ClearSpeakBuilder_Ordinal=c;return e}catch(h){var f=W1(h);if(!(f instanceof v3))throw f.backingJsObject}return pCc(PCc(a,b))},PCc=function(a,b){a=KCc(a,t3(b,0,1)); return r3(a)?b:K1(a)+" "+K1(u3(b,1))},KCc=function(a,b){return P1(b,"+")?a.f_messages__com_google_apps_xplatmath_label_ClearSpeakBuilder_.m_signPositive__java_lang_String():P1(b,"-")||P1(b,"\u2212")?a.f_messages__com_google_apps_xplatmath_label_ClearSpeakBuilder_.m_signNegative__java_lang_String():""},XCc=function(a,b){return b.size()==1&&J1(b.get(0).type(),Z5)||a.f_isEnglish__com_google_apps_xplatmath_label_ClearSpeakBuilder_&&n9((h9(),mDc),b)||n9((h9(),s9),b)},xCc=function(){xCc=function(){}; qCc="[({|"+K1(p7(u7))+K1(p7(F7))+K1(p7(z7))+K1(p7(D7));rCc=nDc("\u0394");vCc=nDc("\u221E");wCc=K4("\u0304","\u0307","\u0308","\u0302","\u0303","\u0332");sCc=A5().put("\u2223","\u2224").put("=","\u2260").put("\u223C","\u2241").put("\u2243","\u2244").put("\u2245","\u2246").put("<","\u226E").put(">","\u226F").put("\u2264","\u2270").put("\u2265","\u2271").put("\u2208","\u2209").put("\u220B","\u220C").put("\u2282","\u2284").put("\u2283","\u2285").put("\u2286","\u2288").put("\u2287","\u2289").build();tCc= y4(C4().add("one").add("two").add("three").add("four").add("five").add("six").add("seven").add("eight").add("nine").add("ten").add("eleven").add("twelve").add("thirteen").add("fourteen").add("fifteen").add("sixteen").add("seventeen").add("eighteen").add("nineteen"));uCc=oDc(function(a){return C6(a)||D6(a)},1,1)},a9=function(a){return a instanceof b9}; b9.prototype.$$classMetadata=["com.google.apps.xplatmath.label.ClearSpeakBuilder",0];var g9=function(){},zCc,pDc; k(g9,I1); var l9=function(a,b){var c=V(t5(a.labelMap,b),G2,y2);if(!V4(b))return c!=null?c:b;var d=x3(b,0);if(c!=null&&!gyc(d))return c;b=osc();c=iyc(d);d=J1(c.fontStyle(),q6)||dyc((B6(),A6),c.f_baseChar__com_google_apps_xplatmath_font_AutoValue_CharSet_BaseCharAndFontStyle_,c.fontStyle(),"math")==dyc(A6,c.f_baseChar__com_google_apps_xplatmath_font_AutoValue_CharSet_BaseCharAndFontStyle_,q6,"math")?"":ICc(a,c.fontStyle());r3(d)||q3(q3(b,d)," ");d=c.f_baseChar__com_google_apps_xplatmath_font_AutoValue_CharSet_BaseCharAndFontStyle_;var e= qsc(n3(),d).toString();c=V(t5(a.labelMap,e),G2,y2);c==null&&(c=e);D6(d)||gyc(d)?q3(b,a.messages.m_capitalLetter__java_lang_String__java_lang_String(c)):q3(b,c);return b.toString()},ICc=function(a,b){switch(b.ordinal()){case 0:case 1:return""; case 2:return a.messages.m_styleBold__java_lang_String();case 3:return a.messages.m_styleScript__java_lang_String();case 4:return a.messages.m_styleMonospace__java_lang_String();case 5:return a.messages.m_styleItalic__java_lang_String();case 6:return a.messages.m_styleSansSerif__java_lang_String();case 7:return a.messages.m_styleGerman__java_lang_String();case 8:return a.messages.m_styleDoubleStruck__java_lang_String();case 9:return a.messages.m_styleBoldItalic__java_lang_String();}throw b2(K1(b)+ " unexpected").backingJsObject},cDc=function(a,b){if(b<0)return"negative "+K1(cDc(a,b<0?-b|0:b)); if(0<=b&&b13)switch(t2(b%10)){case 1:return K1(a)+"st";case 2:return K1(a)+"nd";case 3:return K1(a)+"rd";}return K1(a)+"th"},yCc=function(){yCc=function(){}; zCc=lCc(function(a){var b=V(a,Vuc,a5);a=new g9;V(f9((BCc(),CCc),b),nCc,e9);a.messages=V(f9(qDc,b),rDc,t9);b=a.messages;b=x5(x5(x5(w5(w5(w5(w5(w5(w5(w5(w5(w5(w5(w5(w5(w5(w5(x5(w5(w5(x5(x5(x5(w5(w5(w5(w5(w5(x5(w5(x5(w5(w5(x5(w5(w5(w5(w5(w5(w5(w5(w5(w5(w5(w5(w5(w5(w5(w5(w5(w5(w5(w5(A5(),"'","\u2032",b.m_prime__java_lang_String()).put("\xB0",b.m_degrees__java_lang_String()).put("\u2B1A",b.m_placeholder__java_lang_String()).put("|",b.m_verticalLine__java_lang_String()).put("\u2016",b.m_doubleVerticalLine__java_lang_String()).put("\u221E", b.m_infinity__java_lang_String()).put(".",b.m_point__java_lang_String()).put(",",b.m_comma__java_lang_String()).put("?",b.m_questionMark__java_lang_String()).put("!",b.m_exclamationMark__java_lang_String()),":","\u2236",b.m_colon__java_lang_String())," ","\xA0",b.m_space__java_lang_String()),"\u22C5","\xB7",b.m_centerDot__java_lang_String()).put("+",b.m_plus__java_lang_String()),"-","\u2212",b.m_minus__java_lang_String()).put("\xD7",b.m_cross__java_lang_String()).put("\xF7",b.m_dividedBy__java_lang_String()).put("\u2218", b.m_composedWith__java_lang_String()).put("\xB1",b.m_plusOrMinus__java_lang_String()).put("\xAC",b.m_logicalNot__java_lang_String()).put("\u2200",b.m_logicalForAll__java_lang_String()).put("\u2203",b.m_logicalThereExists__java_lang_String()).put("\u2204",b.m_logicalThereDoesNotExist__java_lang_String()).put("=",b.m_relationEqual__java_lang_String()).put("\u2260",b.m_relationEqualNot__java_lang_String()).put("<",b.m_relationLessThan__java_lang_String()).put("\u226E",b.m_relationLessThanNot__java_lang_String()).put(">", b.m_relationGreaterThan__java_lang_String()).put("\u226F",b.m_relationGreaterThanNot__java_lang_String()).put("\u226A",b.m_relationMuchLessThan__java_lang_String()).put("\u226B",b.m_relationMuchGreaterThan__java_lang_String()),"\u2264","\u2A7D",b.m_relationLessThanOrEqual__java_lang_String()).put("\u2270",b.m_relationLessThanOrEqualNot__java_lang_String()),"\u2265","\u2A7E",b.m_relationGreaterThanOrEqual__java_lang_String()).put("\u2271",b.m_relationGreaterThanOrEqualNot__java_lang_String()).put("\u223C", b.m_relationTilde__java_lang_String()).put("\u2241",b.m_relationTildeNot__java_lang_String()).put("\u2248",b.m_relationApproximatelyEqual__java_lang_String()).put("\u2243",b.m_relationAsymptoticallyEqual__java_lang_String()).put("\u2244",b.m_relationAsymptoticallyEqualNot__java_lang_String()).put("\u2245",b.m_relationCongruent__java_lang_String()).put("\u2247",b.m_relationCongruentNot__java_lang_String()).put("\u2261",b.m_relationTripleBar__java_lang_String()).put("\u2208",b.m_setElementOf__java_lang_String()).put("\u2209", b.m_setElementOfNot__java_lang_String()).put("\u220B",b.m_setContainsElement__java_lang_String()).put("\u220C",b.m_setContainsElementNot__java_lang_String()).put("\u2282",b.m_setSubset__java_lang_String()).put("\u2284",b.m_setSubsetNot__java_lang_String()).put("\u2283",b.m_setSuperset__java_lang_String()).put("\u2285",b.m_setSupersetNot__java_lang_String()).put("\u2286",b.m_setSubsetOrEqual__java_lang_String()).put("\u2288",b.m_setSubsetOrEqualNot__java_lang_String()).put("\u228A",b.m_setSubsetStrict__java_lang_String()).put("\u2287", b.m_setSupersetOrEqual__java_lang_String()).put("\u2289",b.m_setSupersetOrEqualNot__java_lang_String()).put("\u228B",b.m_setSupersetStrict__java_lang_String()).put("\u2223",b.m_divides__java_lang_String()).put("\u2224",b.m_dividesNot__java_lang_String()).put("\u25B3",b.m_shapeTriangle__java_lang_String()).put("\u25A1",b.m_shapeSquare__java_lang_String()).put("\u2225",b.m_geometryParallel__java_lang_String()).put("\u2226",b.m_geometryParallelNot__java_lang_String()).put("\u2220",b.m_geometryAngle__java_lang_String()).put("\u2221", b.m_geometryAngleMeasured__java_lang_String()).put("(",b.m_delimiterParenOpen__java_lang_String()).put(")",b.m_delimiterParenClose__java_lang_String()).put("[",b.m_delimiterBracketOpen__java_lang_String()).put("]",b.m_delimiterBracketClose__java_lang_String()).put("{",b.m_delimiterBraceOpen__java_lang_String()).put("}",b.m_delimiterBraceClose__java_lang_String()).put(p7(v7),b.m_delimiterAngleOpen__java_lang_String()).put(p7(w7),b.m_delimiterAngleClose__java_lang_String()).put(p7(z7),b.m_delimiterCeilingOpen__java_lang_String()).put(p7(A7), b.m_delimiterCeilingClose__java_lang_String()).put(p7(D7),b.m_delimiterFloorOpen__java_lang_String()).put(p7(E7),b.m_delimiterFloorClose__java_lang_String()).put(p7(F7),b.m_delimiterFlatParenOpen__java_lang_String()).put(p7(G7),b.m_delimiterFlatParenClose__java_lang_String()).put("\u2205",b.m_setInstanceEmpty__java_lang_String()).put("\u2115",b.m_setInstanceNatural__java_lang_String()).put("\u2124",b.m_setInstanceIntegers__java_lang_String()).put("\u211A",b.m_setInstanceRational__java_lang_String()).put("\u211D", b.m_setInstanceReal__java_lang_String()).put("\u2102",b.m_setInstanceComplex__java_lang_String()).put("\u222B",b.m_integralSingle__java_lang_String()).put("\u222C",b.m_integralDouble__java_lang_String()).put("\u222D",b.m_integralTriple__java_lang_String()).put("\u2A0C",b.m_integralQuadruple__java_lang_String()).put("\u222E",b.m_integralContour__java_lang_String()).put("\u222F",b.m_integralSurface__java_lang_String()).put("\u2230",b.m_integralVolume__java_lang_String()).put("\uD835\uDF15",b.m_derivativePartial__java_lang_String()).put("\u2207", b.m_derivativeNabla__java_lang_String()).put("\u220F",b.m_naryProduct__java_lang_String()).put("\u2210",b.m_naryCoproduct__java_lang_String()).put("\u2211",b.m_narySum__java_lang_String()),"\u2227","\u22C0",b.m_logicalAnd__java_lang_String()),"\u2228","\u22C1",b.m_logicalOr__java_lang_String()),"\u2229","\u22C2",b.m_setIntersection__java_lang_String()),"\u222A","\u22C3",b.m_setUnion__java_lang_String()),"\u228E","\u2A04",b.m_setUnionWithPlus__java_lang_String()),"\u2294","\u2A06",b.m_setUnionDisjoint__java_lang_String()), "\u2299","\u2A00",b.m_circledDot__java_lang_String()),"\u2295","\u2A01",b.m_circledPlus__java_lang_String()).put("\xA5",b.m_yenYuan__java_lang_String()).put("sin",b.m_trigSin__java_lang_String()).put("cos",b.m_trigCos__java_lang_String()).put("tan",b.m_trigTan__java_lang_String()).put("csc",b.m_trigCsc__java_lang_String()).put("sec",b.m_trigSec__java_lang_String()).put("cot",b.m_trigCot__java_lang_String()).put("sinh",b.m_trigSinh__java_lang_String()).put("cosh",b.m_trigCosh__java_lang_String()).put("tanh", b.m_trigTanh__java_lang_String()).put("arcsin",b.m_trigArcSin__java_lang_String()).put("arccos",b.m_trigArcCos__java_lang_String()).put("arctan",b.m_trigArcTan__java_lang_String()).put("lim",b.m_limit__java_lang_String()).put("ln","l n").put("lg","l g"),"\u03B1","\u0391","alpha"),"\u03B2","\u0392","beta"),"\u03B3","\u0393","gamma"),"\u03B4","\u0394","delta"),"\u03B5","\u03F5","\u0395","epsilon"),"\u03B6","\u0396","zeta"),"\u03B7","\u0397","eta"),"\u03B8","\u03D1","\u0398","theta"),"\u03B9","\u0399", "iota"),"\u03BA","\u03F0","\u039A","kappa"),"\u03BB","\u039B","lambda"),"\u03BC","\u039C","mu"),"\u03BD","\u039D","nu"),"\u03BE","\u039E","xi"),"\u03BF","\u039F","omicron"),"\u03C0","\u03D6","\u03A0","pi"),"\u03C1","\u03F1","\u03A1","rho"),"\u03C3","\u03C2","\u03A3","sigma"),"\u03C4","\u03A4","tau"),"\u03C5","\u03A5","upsilon"),"\u03C6","\u03D5","\u03A6","phi"),"\u03C7","\u03A7","chi"),"\u03C8","\u03A8","psi"),"\u03C9","\u03A9","omega"),"\u0300","\u02CB",b.m_diacriticGraveAccent__java_lang_String()), "\u0301","\u02CA",b.m_diacriticAcuteAccent__java_lang_String()).put("\u0302",b.m_diacriticHat__java_lang_String()),"\u0303","~",b.m_relationTilde__java_lang_String()),"\u0304","\u02C9",b.m_diacriticBar__java_lang_String()),"\u0306","\u02D8",b.m_diacriticBreve__java_lang_String()),"\u0307","\u02D9",b.m_diacriticDot__java_lang_String()),"\u0308","\xA8",b.m_diacriticDoubleDot__java_lang_String()),"\u030A","\u02DA",b.m_diacriticRing__java_lang_String()).put("\u030B",b.m_diacriticDoubleAcuteAccent__java_lang_String()), "\u030C","\u02C7",b.m_diacriticCheck__java_lang_String()).put("\u0332",b.m_diacriticUnderline__java_lang_String()).put("\u0327",b.m_diacriticCedilla__java_lang_String()).put("\u0338",b.m_diacriticNotOverlay__java_lang_String()),"\u20D0","\u21BC",b.m_arrowHarpoonLeft__java_lang_String()),"\u20D1","\u21C0",b.m_arrowHarpoonRight__java_lang_String()),"\u20D6","\u20EE","\u2190",b.m_arrowLeft__java_lang_String()),"\u20D7","\u20EF","\u2192",b.m_arrowRight__java_lang_String()),"\u20E1","\u034D","\u2194", b.m_arrowLeftRight__java_lang_String()).put("\u27FC",b.m_arrowMapsTo__java_lang_String()).put("\u2191",b.m_arrowUp__java_lang_String()).put("\u2193",b.m_arrowDown__java_lang_String()).put("\u2195",b.m_arrowUpDown__java_lang_String()).put("\u21D0",b.m_arrowImpliesLeft__java_lang_String()).put("\u21D2",b.m_arrowImpliesRight__java_lang_String()).put("\u21D4",b.m_arrowImpliesLeftRight__java_lang_String()).put("\u21D1",b.m_arrowImpliesUp__java_lang_String()).put("\u21D3",b.m_arrowImpliesDown__java_lang_String()).put("\u21D5", b.m_arrowImpliesUpDown__java_lang_String()).put("\u21CC",b.m_arrowEquilibrium__java_lang_String()).put("\u20DE",b.m_diacriticBoxed__java_lang_String()).put("\u23DF",b.m_diacriticBraceBelow__java_lang_String()).put("\u23DE",b.m_diacriticBraceAbove__java_lang_String()).put("\u23B5",b.m_diacriticBracketBelow__java_lang_String()).put("\u23B4",b.m_diacriticBracketAbove__java_lang_String()).put("\u23DC",b.m_shapeArc__java_lang_String()).put("\u23DD",b.m_shapeUnderArc__java_lang_String()).build();a.labelMap= b;return a}); pDc=y4(C4().add("zeroth").add("first").add("second").add("third").add("fourth").add("fifth").add("sixth").add("seventh").add("eighth").add("nineth").add("tenth"))},ACc=function(a){return a instanceof g9}; g9.prototype.$$classMetadata=["com.google.apps.xplatmath.label.Labels",0];var sDc=function(){}; k(sDc,I1);var lCc=function(a){var b=new sDc;b.f_map__com_google_apps_xplatmath_label_LocaleCachedSupplier_=u5();b.f_supplier__com_google_apps_xplatmath_label_LocaleCachedSupplier_=a;return b},f9=function(a,b){return Iwc(a.f_map__com_google_apps_xplatmath_label_LocaleCachedSupplier_,b.f_localeContext__com_google_apps_xplatmath_util_AutoValue_I18nContext_.f_localeString__com_google_apps_xplat_i18n_context_LocaleContext_,function(){var c; return c=a.f_supplier__com_google_apps_xplatmath_label_LocaleCachedSupplier_,c(b)})}; sDc.prototype.$$classMetadata=["com.google.apps.xplatmath.label.LocaleCachedSupplier",0];var tDc=function(){}; k(tDc,e9);g=tDc.prototype;g.empty=function(){return"empty"}; g.fraction=function(a,b){return B3("the fraction with numerator 1 plus 2x squared%1 and denominator 1 plus 2x squared%2 end-fraction",[a,b])}; g.m_circumfixAbsoluteValue__java_lang_String__java_lang_String=function(a){return B3("the absolute value of 1 plus 2x squared%1 end-absolute-value",[a])}; g.m_circumfixCeiling__java_lang_String__java_lang_String=function(a){return B3("the ceiling of 1 plus 2x squared%1 end-ceiling",[a])}; g.m_circumfixFloor__java_lang_String__java_lang_String=function(a){return B3("the floor of 1 plus 2x squared%1 end-floor",[a])}; g.m_circumfixNorm__java_lang_String__java_lang_String=function(a){return B3("the norm of 1 plus 2x squared%1 end-norm",[a])}; g.m_decoratorCrossOut__java_lang_String=function(){return"cross out"}; g.m_empty__java_lang_String=function(){return this.empty()}; g.m_evaluatedAt__java_lang_String__java_lang_String=function(a){return B3("evaluated at 1 plus 2x squared%1 end-evaluation",[a])}; g.m_evaluatedFromTo__java_lang_String__java_lang_String__java_lang_String=function(a,b){return B3("evaluated from 1 plus 2x squared%1 to 1 plus 2x squared%2 end-evaluation",[a,b])}; g.m_exponent2__java_lang_String=function(){return"squared"}; g.m_exponent3__java_lang_String=function(){return"cubed"}; g.m_exponentGeneral__java_lang_String__java_lang_String=function(a){return B3("raised to the exponent 1 plus 2x squared%1 end-exponent",[a])}; g.m_fraction__java_lang_String__java_lang_String__java_lang_String=function(a,b){return this.fraction(a,b)}; g.m_fractionSimple__java_lang_String__java_lang_String__java_lang_String=function(a,b){return B3("1 plus 2x squared%1 over 1 plus 2x squared%2 end-fraction",[a,b])}; g.m_inverse__java_lang_String__java_lang_String=function(a){return B3("sinef sub 0log%1 inverse",[a])}; g.m_modifying__java_lang_String__java_lang_String__java_lang_String=function(a,b){return B3("modifying 1 plus 2x times y%1 with cedillaslash overlay%2",[a,b])}; g.m_modifyingAbove__java_lang_String__java_lang_String__java_lang_String=function(a,b){return B3("modifying-above 1 plus 2x times y%1 with bartilderight arrowover brace%2",[a,b])}; g.m_modifyingBelow__java_lang_String__java_lang_String__java_lang_String=function(a,b){return B3("modifying-below 1 plus 2x times y%1 with underlineright arrowunder brace%2",[a,b])}; g.m_primeDouble__java_lang_String=function(){return"double prime"}; g.m_primeTriple__java_lang_String=function(){return"triple prime"}; g.m_primeQuadruple__java_lang_String=function(){return"quadruple prime"}; g.m_rootSquare__java_lang_String__java_lang_String=function(a){return B3("the square root of 1 plus 2x times y%1 end-root",[a])}; g.m_rootCube__java_lang_String__java_lang_String=function(a){return B3("the cube root of 1 plus 2x times y%1 end-root",[a])}; g.m_rootGeneral__java_lang_String__java_lang_String__java_lang_String=function(a,b){return B3("the 1 plus 2%1 root of 1 plus 2x times y%2 end-root",[a,b])}; g.m_scriptOver__java_lang_String=function(){return"over-script"}; g.m_scriptUnder__java_lang_String=function(){return"under-script"}; g.m_scriptsEnd__java_lang_String=function(){return"end-scripts"}; g.m_setStart__java_lang_String=function(){return"start-set"}; g.m_setEnd__java_lang_String=function(){return"end-set"}; g.m_setPositiveIntegers__java_lang_String=function(){return"the positive integers"}; g.m_signPositive__java_lang_String=function(){return"positive"}; g.m_signNegative__java_lang_String=function(){return"negative"}; g.m_subscriptStart__java_lang_String=function(){return"sub"}; g.m_subscriptEnd__java_lang_String=function(){return"end-sub"}; g.m_tableCasesStart__java_lang_String__java_lang_String=function(a){return B3("12%1 cases",[a])}; g.m_tableCasesRow__java_lang_String__java_lang_String=function(a){return B3("Case 12%1:",[a])}; g.m_tableCasesEnd__java_lang_String=function(){return"end-cases"}; g.m_tableLinesStart__java_lang_String__java_lang_String=function(a){return B3("12%1 lines",[a])}; g.m_tableLinesRow__java_lang_String__java_lang_String=function(a){return B3("Line 12%1:",[a])}; g.m_tableLinesEnd__java_lang_String=function(){return"end-lines"}; g.m_tableMatrixRegularStart__java_lang_String__java_lang_String__java_lang_String=function(a,b){return B3("the 12%1 by 12%2 matrix",[a,b])}; g.m_tableMatrixColumnMatrixStart__java_lang_String__java_lang_String=function(a){return B3("the 12%1 by 1 column matrix",[a])}; g.m_tableMatrixRowMatrixStart__java_lang_String__java_lang_String=function(a){return B3("the 1 by 12%1 row matrix",[a])}; g.m_tableMatrixEnd__java_lang_String=function(){return"end-matrix"}; g.m_tableMatrixDeterminantStart__java_lang_String__java_lang_String__java_lang_String=function(a,b){return B3("the determinant of the 12%1 by 12%2 matrix",[a,b])}; g.m_tableMatrixDeterminantEnd__java_lang_String=function(){return"end-determinant"}; g.m_tableMatrixRow__java_lang_String__java_lang_String=function(a){return B3("Row 12%1:",[a])}; g.m_tableMatrixColumn__java_lang_String__java_lang_String=function(a){return B3("Column 12%1:",[a])}; g.m_underset__java_lang_String__java_lang_String__java_lang_String=function(a,b){return B3("modifying-expression 1 plus 2x times y%2 with underset bartilderight arrowover brace%1",[a,b])}; g.m_overset__java_lang_String__java_lang_String__java_lang_String=function(a,b){return B3("modifying-expression 1 plus 2x times y%2 with overset bartilderight arrowover brace%1",[a,b])}; g.$$classMetadata=["com.google.apps.xplatmath.label.XplatClearSpeakMessages_En",0];var uDc=new tDc;var vDc=function(){}; k(vDc,eCc);vDc.prototype.$$classMetadata=["com.google.apps.xplatmath.label.XplatEditorMessages_En",0];var wDc=new vDc;var CCc,qDc,xDc=function(a){return lCc(function(b){b=V(b,Vuc,a5);return a(b.f_localeContext__com_google_apps_xplatmath_util_AutoValue_I18nContext_)})},BCc=function(){BCc=function(){}; CCc=xDc(function(a){V(a,Fpc,N1);return uDc}); xDc(function(a){V(a,Fpc,N1);return wDc}); qDc=xDc(function(a){V(a,Fpc,N1);return yDc})};var t9=function(){}; k(t9,I1);var rDc=function(a){return a instanceof t9}; t9.prototype.$$classMetadata=["com.google.apps.xplatmath.label.SymbolMessages",0];var zDc=function(){}; k(zDc,t9);g=zDc.prototype;g.comma=function(){return"comma"}; g.degrees=function(){return"degrees"}; g.limit=function(){return"limit"}; g.placeholder=function(){return"placeholder"}; g.point=function(){return"point"}; g.space=function(){return"space"}; g.m_arrowLeft__java_lang_String=function(){return"left arrow"}; g.m_arrowUp__java_lang_String=function(){return"up arrow"}; g.m_arrowRight__java_lang_String=function(){return"right arrow"}; g.m_arrowDown__java_lang_String=function(){return"down arrow"}; g.m_arrowLeftRight__java_lang_String=function(){return"left-right arrow"}; g.m_arrowUpDown__java_lang_String=function(){return"up-down arrow"}; g.m_arrowHarpoonLeft__java_lang_String=function(){return"left harpoon"}; g.m_arrowHarpoonRight__java_lang_String=function(){return"right harpoon"}; g.m_arrowImpliesLeft__java_lang_String=function(){return"is implied by"}; g.m_arrowImpliesUp__java_lang_String=function(){return"implies upward"}; g.m_arrowImpliesRight__java_lang_String=function(){return"implies"}; g.m_arrowImpliesDown__java_lang_String=function(){return"implies downward"}; g.m_arrowImpliesLeftRight__java_lang_String=function(){return"implies and is implied by"}; g.m_arrowImpliesUpDown__java_lang_String=function(){return"implies upward and downward"}; g.m_arrowEquilibrium__java_lang_String=function(){return"is in equilibrium with"}; g.m_arrowMapsTo__java_lang_String=function(){return"maps to"}; g.m_capitalLetter__java_lang_String__java_lang_String=function(a){return B3("cap D%1",[a])}; g.m_doubleVerticalLine__java_lang_String=function(){return"double vertical line"}; g.m_centerDot__java_lang_String=function(){return"center dot"}; g.m_circledDot__java_lang_String=function(){return"circled dot"}; g.m_circledPlus__java_lang_String=function(){return"circled plus"}; g.m_cross__java_lang_String=function(){return"cross"}; g.m_colon__java_lang_String=function(){return"colon"}; g.m_comma__java_lang_String=function(){return this.comma()}; g.m_composedWith__java_lang_String=function(){return"composed with"}; g.m_delimiterAngleOpen__java_lang_String=function(){return"open angle bracket"}; g.m_delimiterAngleClose__java_lang_String=function(){return"close angle bracket"}; g.m_delimiterBraceOpen__java_lang_String=function(){return"open brace"}; g.m_delimiterBraceClose__java_lang_String=function(){return"close brace"}; g.m_delimiterBracketOpen__java_lang_String=function(){return"open bracket"}; g.m_delimiterBracketClose__java_lang_String=function(){return"close bracket"}; g.m_delimiterCeilingOpen__java_lang_String=function(){return"left ceiling"}; g.m_delimiterCeilingClose__java_lang_String=function(){return"right ceiling"}; g.m_delimiterFlatParenOpen__java_lang_String=function(){return"flattened open paren"}; g.m_delimiterFlatParenClose__java_lang_String=function(){return"flattened close paren"}; g.m_delimiterFloorOpen__java_lang_String=function(){return"left floor"}; g.m_delimiterFloorClose__java_lang_String=function(){return"right floor"}; g.m_delimiterParenOpen__java_lang_String=function(){return"open paren"}; g.m_delimiterParenClose__java_lang_String=function(){return"close paren"}; g.m_derivativePartial__java_lang_String=function(){return"partial"}; g.m_derivativeNabla__java_lang_String=function(){return"nabla"}; g.m_diacriticAcuteAccent__java_lang_String=function(){return"acute accent"}; g.m_diacriticBar__java_lang_String=function(){return"bar"}; g.m_diacriticBoxed__java_lang_String=function(){return"boxed outline"}; g.m_diacriticBraceAbove__java_lang_String=function(){return"over brace"}; g.m_diacriticBraceBelow__java_lang_String=function(){return"under brace"}; g.m_diacriticBracketAbove__java_lang_String=function(){return"over bracket"}; g.m_diacriticBracketBelow__java_lang_String=function(){return"under bracket"}; g.m_diacriticBreve__java_lang_String=function(){return"breve"}; g.m_diacriticCedilla__java_lang_String=function(){return"cedilla"}; g.m_diacriticCheck__java_lang_String=function(){return"check"}; g.m_diacriticDot__java_lang_String=function(){return"dot"}; g.m_diacriticDoubleAcuteAccent__java_lang_String=function(){return"double acute accent"}; g.m_diacriticDoubleDot__java_lang_String=function(){return"double dot"}; g.m_diacriticGraveAccent__java_lang_String=function(){return"grave accent"}; g.m_diacriticHat__java_lang_String=function(){return"hat"}; g.m_diacriticNotOverlay__java_lang_String=function(){return"not overlay"}; g.m_diacriticRing__java_lang_String=function(){return"ring"}; g.m_diacriticUnderline__java_lang_String=function(){return"underline"}; g.m_dividedBy__java_lang_String=function(){return"divided by"}; g.m_divides__java_lang_String=function(){return"divides"}; g.m_dividesNot__java_lang_String=function(){return"does not divide"}; g.m_degrees__java_lang_String=function(){return this.degrees()}; g.m_exclamationMark__java_lang_String=function(){return"exclamation mark"}; g.m_geometryAngle__java_lang_String=function(){return"angle"}; g.m_geometryAngleMeasured__java_lang_String=function(){return"measured angle"}; g.m_geometryParallel__java_lang_String=function(){return"is parallel to"}; g.m_geometryParallelNot__java_lang_String=function(){return"is not parallel to"}; g.m_infinity__java_lang_String=function(){return"infinity"}; g.m_integralSingle__java_lang_String=function(){return"integral"}; g.m_integralDouble__java_lang_String=function(){return"double integral"}; g.m_integralTriple__java_lang_String=function(){return"triple integral"}; g.m_integralQuadruple__java_lang_String=function(){return"quadruple integral"}; g.m_integralContour__java_lang_String=function(){return"contour integral"}; g.m_integralSurface__java_lang_String=function(){return"surface integral"}; g.m_integralVolume__java_lang_String=function(){return"volume integral"}; g.m_limit__java_lang_String=function(){return this.limit()}; g.m_logicalAnd__java_lang_String=function(){return"logical and"}; g.m_logicalForAll__java_lang_String=function(){return"for all"}; g.m_logicalNot__java_lang_String=function(){return"logical not"}; g.m_logicalOr__java_lang_String=function(){return"logical or"}; g.m_logicalThereDoesNotExist__java_lang_String=function(){return"there does not exist"}; g.m_logicalThereExists__java_lang_String=function(){return"there exists"}; g.m_minus__java_lang_String=function(){return"minus"}; g.m_naryCoproduct__java_lang_String=function(){return"coproduct"}; g.m_naryProduct__java_lang_String=function(){return"product"}; g.m_narySum__java_lang_String=function(){return"sum"}; g.m_placeholder__java_lang_String=function(){return this.placeholder()}; g.m_plus__java_lang_String=function(){return"plus"}; g.m_plusOrMinus__java_lang_String=function(){return"plus or minus"}; g.m_point__java_lang_String=function(){return this.point()}; g.m_prime__java_lang_String=function(){return"prime"}; g.m_questionMark__java_lang_String=function(){return"question mark"}; g.m_relationApproximatelyEqual__java_lang_String=function(){return"is approximately equal to"}; g.m_relationAsymptoticallyEqual__java_lang_String=function(){return"is asymptotically equal to"}; g.m_relationAsymptoticallyEqualNot__java_lang_String=function(){return"is not asymptotically equal to"}; g.m_relationCongruent__java_lang_String=function(){return"is congruent to"}; g.m_relationCongruentNot__java_lang_String=function(){return"is not congruent to"}; g.m_relationEqual__java_lang_String=function(){return"equals"}; g.m_relationEqualNot__java_lang_String=function(){return"is not equal to"}; g.m_relationGreaterThan__java_lang_String=function(){return"is greater than"}; g.m_relationGreaterThanNot__java_lang_String=function(){return"is not greater than"}; g.m_relationGreaterThanOrEqual__java_lang_String=function(){return"is greater than or equal to"}; g.m_relationGreaterThanOrEqualNot__java_lang_String=function(){return"is neither greater than nor equal to"}; g.m_relationLessThan__java_lang_String=function(){return"is less than"}; g.m_relationLessThanNot__java_lang_String=function(){return"is not less than"}; g.m_relationLessThanOrEqual__java_lang_String=function(){return"is less than or equal to"}; g.m_relationLessThanOrEqualNot__java_lang_String=function(){return"is neither less than nor equal to"}; g.m_relationMuchGreaterThan__java_lang_String=function(){return"is much greater than"}; g.m_relationMuchLessThan__java_lang_String=function(){return"is much less than"}; g.m_relationTilde__java_lang_String=function(){return"tilde"}; g.m_relationTildeNot__java_lang_String=function(){return"not tilde"}; g.m_relationTripleBar__java_lang_String=function(){return"triple bar"}; g.m_setContainsElement__java_lang_String=function(){return"contains the element"}; g.m_setContainsElementNot__java_lang_String=function(){return"does not contain the element"}; g.m_setElementOf__java_lang_String=function(){return"is an element of"}; g.m_setElementOfNot__java_lang_String=function(){return"is not an element of"}; g.m_setInstanceComplex__java_lang_String=function(){return"the complex numbers"}; g.m_setInstanceEmpty__java_lang_String=function(){return"the empty set"}; g.m_setInstanceIntegers__java_lang_String=function(){return"the integers"}; g.m_setInstanceNatural__java_lang_String=function(){return"the natural numbers"}; g.m_setInstanceRational__java_lang_String=function(){return"the rational numbers"}; g.m_setInstanceReal__java_lang_String=function(){return"the real numbers"}; g.m_setIntersection__java_lang_String=function(){return"intersection"}; g.m_setSubset__java_lang_String=function(){return"is a subset of"}; g.m_setSubsetNot__java_lang_String=function(){return"is not a subset of"}; g.m_setSubsetOrEqual__java_lang_String=function(){return"is a subset of or equal to"}; g.m_setSubsetOrEqualNot__java_lang_String=function(){return"is neither a subset of nor equal to"}; g.m_setSubsetStrict__java_lang_String=function(){return"is a strict subset of"}; g.m_setSuperset__java_lang_String=function(){return"is a superset of"}; g.m_setSupersetNot__java_lang_String=function(){return"is not a superset of"}; g.m_setSupersetOrEqual__java_lang_String=function(){return"is a superset of or equal to"}; g.m_setSupersetOrEqualNot__java_lang_String=function(){return"is neither a superset of nor equal to"}; g.m_setSupersetStrict__java_lang_String=function(){return"is a strict superset of"}; g.m_setUnion__java_lang_String=function(){return"union"}; g.m_setUnionWithPlus__java_lang_String=function(){return"union with plus"}; g.m_setUnionDisjoint__java_lang_String=function(){return"disjoint union"}; g.m_shapeArc__java_lang_String=function(){return"arc"}; g.m_shapeUnderArc__java_lang_String=function(){return"under arc"}; g.m_shapeSquare__java_lang_String=function(){return"square"}; g.m_shapeTriangle__java_lang_String=function(){return"triangle"}; g.m_space__java_lang_String=function(){return this.space()}; g.m_styleBold__java_lang_String=function(){return"bold"}; g.m_styleBoldItalic__java_lang_String=function(){return"bold-italic"}; g.m_styleDoubleStruck__java_lang_String=function(){return"double-struck"}; g.m_styleItalic__java_lang_String=function(){return"italic"}; g.m_styleGerman__java_lang_String=function(){return"German"}; g.m_styleMonospace__java_lang_String=function(){return"monospace"}; g.m_styleSansSerif__java_lang_String=function(){return"sans-serif"}; g.m_styleScript__java_lang_String=function(){return"script"}; g.m_trigArcSin__java_lang_String=function(){return"arc sine"}; g.m_trigArcCos__java_lang_String=function(){return"arc cosine"}; g.m_trigArcTan__java_lang_String=function(){return"arc tangent"}; g.m_trigSin__java_lang_String=function(){return"sine"}; g.m_trigCos__java_lang_String=function(){return"cosine"}; g.m_trigTan__java_lang_String=function(){return"tangent"}; g.m_trigCsc__java_lang_String=function(){return"cosecant"}; g.m_trigSec__java_lang_String=function(){return"secant"}; g.m_trigCot__java_lang_String=function(){return"cotangent"}; g.m_trigSinh__java_lang_String=function(){return"hyperbolic sine"}; g.m_trigCosh__java_lang_String=function(){return"hyperbolic cosine"}; g.m_trigTanh__java_lang_String=function(){return"hyperbolic tangent"}; g.m_verticalLine__java_lang_String=function(){return"vertical line"}; g.m_yenYuan__java_lang_String=function(){return"yen and yuan sign"}; g.$$classMetadata=["com.google.apps.xplatmath.label.XplatSymbolMessages_En",0];var yDc=new zDc;var u9=function(){}; k(u9,g4);g=u9.prototype;g.list=function(){return this.selection().list()}; g.start=function(){return this.selection().f_startListIndex__com_google_apps_xplatmath_cursor_AutoValue_DomSelectionLocation_}; g.end=function(){return Oyc(this.selection())}; g.size=function(){return this.selection().size()}; g.token=function(){for(var a=n3(),b=0;b=0&&c>=0})},!1); mDc=E9(function(a){a=V(a,n6,f6);return mEc(a,function(b,c){return bDc(b,c)})},!1); m9=nEc(!0);s9=nEc(!1);JCc=new QDc;dEc=qEc(!1);HCc=qEc(!0);eEc=E9(function(a){a=V(a,n6,f6);return SCc(a)},!0); fEc=E9(function(a){a=V(a,n6,f6);T6(a)&&V(a,T6,R6).f_isSimpleFunction__com_google_apps_xplatmath_dom_MathLargeOperator_&&a.sub()==null?(a=a.sup(),a==null?a=!0:(a=r9(a),a=a!=null&&a.intValue()>=-1)):a=!1;return a},!0); jDc=new C9(function(a){a=V(a,n6,f6);return J1(a.JSC$17279_type_,e6)||r6(a)&&(P1(a.nucleus_," ")||P1(a.nucleus_,"\xA0"))}); YCc=new C9(function(a){return Pxc(V(a,n6,f6))}); QCc=new C9(function(a){a=V(a,n6,f6);return J1(a.type(),pxc)&&y3("0123456789",a.nucleus_)}); KDc=sEc(1,1);JDc=sEc(2,2);IDc=sEc(1,2);HDc=nDc("\xB0");EDc=A9(HDc);B9=A9(JCc);gEc=rEc(function(a){a=V(a,n6,f6);return r6(a)?(a=V(a,r6,p6),P1(a.nucleus_,"\uD835\uDF15")||P1(a.nucleus_,"d")&&(J1(a.fontStyle(),u6)||J1(a.fontStyle(),q6))):!1},D9,D9); LDc=x9(gEc,rEc(function(a){a=V(a,n6,f6);return SDc(a,function(b){return C6(b)||fyc(b)})},D9,D9)); ECc=MDc();YDc=new VDc;TCc="(["+K1(p7(F7));hEc=new WDc;iEc=new XDc;DCc=FDc(x9(fEc,YDc),x9(z9(fEc,eEc),iEc),ECc);jEc=GDc(tEc(function(a){return C6(a)}),tEc(function(a){return D6(a)}),tEc(function(a){return fyc(a)}),tEc(function(a){return gyc(a)})); kEc=GDc(uEc(function(a){return C6(a)}),uEc(function(a){return D6(a)}),uEc(function(a){return fyc(a)}),uEc(function(a){return gyc(a)})); lEc=x9(B9,LDc);GDc(lEc,y9(m9,A9(jEc)),y9(B9,jEc),E9(cEc,!0));NDc(hEc,lEc,y9(m9,A9(kEc)),y9(B9,kEc),dEc,E9(function(a){a:{switch(V(a,n6,f6).type().ordinal()){case 20:case 24:case 13:case 21:case 2:case 9:case 12:case 10:case 15:case 16:case 23:case 14:case 17:case 3:case 28:case 31:case 29:case 32:a=!0;break a;}a=!1}return a},!0))};var oEc=function(a){switch(a.ordinal()){case 0:case 5:case 6:case 7:case 11:case 4:return!0;}return!1};var F9=function(){},G9; k(F9,I1);F9.prototype.ascent=function(){return Math.max(this.JSC$18215_typesetBounds().f_maxY__com_google_apps_xplatmath_util_AutoValue_Rect_,0)}; F9.prototype.descent=function(){return Math.max(-this.JSC$18215_typesetBounds().f_minY__com_google_apps_xplatmath_util_AutoValue_Rect_,0)}; F9.prototype.width=function(){return this.JSC$18215_typesetBounds().width()}; F9.prototype.height=function(){return this.JSC$18215_typesetBounds().height()}; var vEc=function(a){H9();return-.25*P8(a)},wEc=function(a,b){H9(); return(b.f_useTallCursor__com_google_apps_xplatmath_api_AutoValue_RenderOptions_?.9:.75)*P8(a)}; F9.prototype.type=function(){return this.f_atom__com_google_apps_xplatmath_layout_Layout_.type()}; F9.prototype.firstAtomType=function(){return this.type()}; F9.prototype.lastAtomType=function(){return this.type()}; var I9=function(a){H9();return!J1(a,e6)&&!J1(a,Hxc)}; F9.prototype.draw=function(a,b){var c=this.JSC$18215_typesetBounds(),d=this.JSC$18215_renderBounds();a.JSC$18217_typesetBounds=i4(a.transform,c);a.JSC$18217_renderBounds=i4(a.transform,d);this.drawInternal(a,u4(),b)}; var xEc=function(a){H9();if(a.f_innerList__com_google_apps_xplatmath_dom_MathListWrapper_.size()!=1)return null;a=a.f_innerList__com_google_apps_xplatmath_dom_MathListWrapper_.get(0);return r6(a)&&V4(a.nucleus_)&&l6(a)?a:null},J9=function(a,b,c){H9(); return h4(0,-b,c,a)},H9=function(){H9=function(){}; G9=k6()},yEc=function(a){return a instanceof F9}; F9.prototype.$$classMetadata=["com.google.apps.xplatmath.layout.Layout",0];var L9=function(a,b,c,d,e){H9();K9(this,a,b,c,d,e)}; k(L9,F9);L9.prototype.styleFont=function(){return this.f_styleFont__com_google_apps_xplatmath_layout_LayoutBase_}; L9.prototype.JSC$18215_typesetBounds=function(){return this.f_typesetBounds__com_google_apps_xplatmath_layout_LayoutBase_}; L9.prototype.JSC$18215_renderBounds=function(){return this.f_renderBounds__com_google_apps_xplatmath_layout_LayoutBase_}; L9.prototype.options=function(){return this.f_options__com_google_apps_xplatmath_layout_LayoutBase_}; var K9=function(a,b,c,d,e,f){a.f_atom__com_google_apps_xplatmath_layout_Layout_=b;a.f_styleFont__com_google_apps_xplatmath_layout_LayoutBase_=c;a.f_typesetBounds__com_google_apps_xplatmath_layout_LayoutBase_=d;a.f_renderBounds__com_google_apps_xplatmath_layout_LayoutBase_=e;a.f_options__com_google_apps_xplatmath_layout_LayoutBase_=f},zEc=function(a){return a instanceof L9}; L9.prototype.$$classMetadata=["com.google.apps.xplatmath.layout.LayoutBase",0];var AEc=function(a,b,c,d,e){H9();K9(this,a,b,c,d,e)}; k(AEc,L9);AEc.prototype.drawInternal=function(){}; AEc.prototype.$$classMetadata=["com.google.apps.xplatmath.layout.Layout$1",0];var BEc=function(a){this.JSC$18217_typesetBounds=$4();this.JSC$18217_renderBounds=$4();this.JSC$18217_rects=C4();this.lines=C4();this.JSC$18217_glyphs=C4();this.JSC$18217_svgPaths=C4();this.transform=a}; k(BEc,I1);var N9=function(a,b,c,d,e,f,h){var m=a.lines,p=m.add;b=M9(a,b,c);d=M9(a,d,e);a=a.transform.layoutToCanvasLength(h);f=jwc(b,d,f,a,"solid");p.call(m,f)},O9=function(a,b,c,d,e){var f=a.JSC$18217_glyphs,h=f.add,m=b.f_gid__com_google_apps_xplatmath_font_AutoValue_Glyph_,p=a.transform.layoutToCanvasLength(b.fontSize()),q=b.codePoint(); b=i4(a.transform,b.rect());a=M9(a,c,d);c=X4(q);d=new m5;d.f_id__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_GlyphData_=m;d.f_fontSize__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_GlyphData_=p;d.f_codePoint__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_GlyphData_=q;s3(b);d.f_bounds__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_GlyphData_=b;s3(a);d.f_offset__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_GlyphData_=a;s3(e);d.f_color__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_GlyphData_= e;s3(c);d.f_text__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_GlyphData_=c;h.call(f,d)},P9=function(a,b,c,d,e){var f=a.transform.layoutToCanvasLength(1),h=a.JSC$18217_svgPaths,m=h.add; a=M9(a,b,c);b=new p5;s3(d);b.f_path__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_SvgPathData_=d;s3(e);b.f_fillColor__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_SvgPathData_=e;s3(a);b.f_offset__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_SvgPathData_=a;b.f_scale__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_SvgPathData_=f;m.call(h,b)},M9=function(a,b,c){return t4(a.transform.layoutToCanvasX(b),a.transform.layoutToCanvasY(c))}; BEc.prototype.$$classMetadata=["com.google.apps.xplatmath.layout.RenderGeometryBuilder",0];var Q9=function(a,b){H9();this.f_atom__com_google_apps_xplatmath_layout_Layout_=a;this.layout=b}; k(Q9,F9);g=Q9.prototype;g.JSC$18215_typesetBounds=function(){return this.layout.JSC$18215_typesetBounds()}; g.JSC$18215_renderBounds=function(){return this.layout.JSC$18215_renderBounds()}; g.styleFont=function(){return this.layout.styleFont()}; g.options=function(){return this.layout.options()}; g.type=function(){return this.layout.type()}; g.firstAtomType=function(){return this.layout.firstAtomType()}; g.lastAtomType=function(){return this.layout.lastAtomType()}; g.$$classMetadata=["com.google.apps.xplatmath.layout.ModifiedLayout",0];var R9=function(a,b,c,d){H9();this.f_atom__com_google_apps_xplatmath_layout_Layout_=a;this.layout=d;this.JSC$18229_lineThickness=0;this.corners=b;this.JSC$18229_lineThickness=c}; k(R9,Q9);R9.prototype.JSC$18215_renderBounds=function(){return this.layout.JSC$18215_renderBounds().union(this.corners)}; R9.prototype.drawInternal=function(a,b,c){this.layout.drawInternal(a,b,c);b=this.corners.offset(b.x(),b.y());var d=V(this.f_atom__com_google_apps_xplatmath_layout_Layout_,P7,O7).cancelType();d!=="/"&&d!=="X"||N9(a,b.f_minX__com_google_apps_xplatmath_util_AutoValue_Rect_,b.f_minY__com_google_apps_xplatmath_util_AutoValue_Rect_,b.f_maxX__com_google_apps_xplatmath_util_AutoValue_Rect_,b.f_maxY__com_google_apps_xplatmath_util_AutoValue_Rect_,c,this.JSC$18229_lineThickness);d!=="\\"&&d!=="X"||N9(a,b.f_minX__com_google_apps_xplatmath_util_AutoValue_Rect_, b.f_maxY__com_google_apps_xplatmath_util_AutoValue_Rect_,b.f_maxX__com_google_apps_xplatmath_util_AutoValue_Rect_,b.f_minY__com_google_apps_xplatmath_util_AutoValue_Rect_,c,this.JSC$18229_lineThickness)}; R9.prototype.$$classMetadata=["com.google.apps.xplatmath.layout.CanceledLayout",0];var S9=function(a,b,c,d,e,f,h,m){H9();K9(this,G9,e,f,h,m);this.isPlaceholder=!1;this.mathList=a;this.JSC$18232_atomType=b;this.subLayouts=c;this.isPlaceholder=d}; k(S9,L9);var CEc=function(a,b,c,d){H9();return T9(null,a,b,c,d)},U9=function(a,b,c,d){H9(); return T9(Y5,a,b,c,d)},EEc=function(a,b,c,d){H9(); var e=DEc(c,d,b);return new S9(a,Y5,b,!1,c,e.f_typesetBounds__com_google_apps_xplatmath_layout_Typesetter_LayoutMetrics,e.f_renderBounds__com_google_apps_xplatmath_layout_Typesetter_LayoutMetrics,d)}; S9.prototype.type=function(){throw b2("Shouldn't be used.").backingJsObject}; S9.prototype.firstAtomType=function(){if(this.JSC$18232_atomType!=null)return this.JSC$18232_atomType;for(var a=this.subLayouts.iterator();a.m_hasNext__boolean();){var b=V(a.m_next__java_lang_Object(),V9,W9).firstAtomType();if(I9(b))return b}return Y5}; S9.prototype.lastAtomType=function(){if(this.JSC$18232_atomType!=null)return this.JSC$18232_atomType;for(var a=xuc(this.subLayouts).m_iterator__java_util_Iterator();a.m_hasNext__boolean();){var b=V(a.m_next__java_lang_Object(),V9,W9).lastAtomType();if(I9(b))return b}return Y5}; S9.prototype.drawInternal=function(a,b,c){for(var d=this.subLayouts.iterator();d.m_hasNext__boolean();)V(d.m_next__java_lang_Object(),V9,W9).drawInternal(a,b,c)}; var FEc=function(a){return a instanceof S9}; S9.prototype.$$classMetadata=["com.google.apps.xplatmath.layout.LayoutMathList",0];var X9=function(a,b,c,d,e,f){H9();K9(this,b,c,d,e,f);this.f_innerLayout__com_google_apps_xplatmath_layout_LayoutListWrapper_=a}; k(X9,L9);X9.prototype.$$classMetadata=["com.google.apps.xplatmath.layout.LayoutListWrapper",0];var Y9=function(a,b,c,d,e,f,h,m){H9();X9.call(this,c,a,e,f,h,m);this.f_applySupSubOnAccentee__com_google_apps_xplatmath_layout_LayoutAccent_=!1;this.accent=b;this.f_applySupSubOnAccentee__com_google_apps_xplatmath_layout_LayoutAccent_=d}; k(Y9,X9);Y9.prototype.type=function(){return c6}; Y9.prototype.drawInternal=function(a,b,c){this.f_innerLayout__com_google_apps_xplatmath_layout_LayoutListWrapper_.drawInternal(a,b,c);this.accent.drawInternal(a,b,c)}; var GEc=function(a){return a instanceof Y9}; Y9.prototype.$$classMetadata=["com.google.apps.xplatmath.layout.LayoutAccent",0];var Z9=function(a,b,c,d,e){H9();K9(this,a,b,c,d,e)}; k(Z9,L9);Z9.prototype.$$classMetadata=["com.google.apps.xplatmath.layout.LayoutBasicAtom",0];var $9=function(a,b,c,d,e,f,h,m,p){H9();K9(this,b,f,h,m,p);this.shiftDown=this.shiftLeft=0;this.JSC$18243_atomType=a;this.JSC$18243_glyph=c;this.shiftLeft=d;this.shiftDown=e}; k($9,Z9);var HEc=function(a,b,c,d,e,f,h){H9();e=J9(c.ascent()-d,c.descent()+d,c.f_advance__com_google_apps_xplatmath_font_AutoValue_Glyph_-e);var m=e.union(c.rect().offset(0,-d));return new $9(a,b,c,0,d,f,e,m,h)}; $9.prototype.type=function(){return this.JSC$18243_atomType}; $9.prototype.drawInternal=function(a,b,c){O9(a,this.JSC$18243_glyph,b.x()-this.shiftLeft,b.y()-this.shiftDown,c)}; var IEc=function(a){return a instanceof $9}; $9.prototype.$$classMetadata=["com.google.apps.xplatmath.layout.LayoutGlyph",0];var JEc=function(a,b,c,d,e,f,h){H9();K9(this,a,d,e,f,h);this.JSC$18249_glyphs=b;this.offsets=c}; k(JEc,Z9); var LEc=function(a,b,c,d,e){H9();if(b7(a)){var f=aCc(d,b,c);var h=f.rect().width()}else f=$Bc(d,b,c),h=Swc(d.f_data__com_google_apps_xplatmath_font_FontMetrics_,0,b),h.isEmpty()?h=V8(d,b):(h=V(h.get(h.size()-1|0),p2,o2),h=V8(d,h.intValue())),h=h.rect().width()*1.05;if(c>h){var m=cCc(d,0,b);if(m==null||m.size()==0)b=null;else{h=C4();b=C4();KEc(d,m,c,!1,h,b);c=-Infinity;m=Infinity;for(var p=0,q=0;q1&&h>0)for(a=h/(e.size()-1|0),b=0;b0&&(t+=e,u-=e)));e=h==null?0:c;h=t4(e+p.width(),t);c=t4(p.width(),-u);p=p.width()+Math.max(q==null?0:q.width()+e,m==null?0:m.width())+Z8(d,svc);t=Math.max(b.ascent(),q==null?0:q.ascent()+ t);u=Math.max(b.descent(),m==null?0:m.descent()+u);q=q==null?null:new W9(q,h);m=m==null?null:new W9(m,c);p=J9(t,u,p);c=p.union(b.JSC$18215_renderBounds());q!=null&&(c=c.union(q.JSC$18215_renderBounds()));m!=null&&(c=c.union(m.JSC$18215_renderBounds()));return new a$(a,b,q,m,d,p,c,f)},MEc=function(a,b,c,d,e,f){H9(); c/=2;var h=a.sup(),m=a.sub();if(m==null&&h==null)return b;var p;h==null?p=null:p=T9(Y5,h,S8(d),e,f);e=p;var q;m==null?q=null:q=T9(Y5,m,S8(d),!0,f);m=e==null?0:e.width();p=q==null?0:q.width();m=Math.max(b.width(),Math.max(m,p));h=b.ascent();var t=b.descent(),u=null,v=null;p=b.JSC$18215_renderBounds();e!=null&&(u=Math.max(Z8(d,tvc),Z8(d,uvc)-e.descent()),h=h+u+e.height(),u=t4(c+(m-e.width())/2,b.ascent()+u+e.descent()),u=new W9(e,u),p=p.union(u.JSC$18215_renderBounds()));q!=null&&(e=Math.max(Z8(d,vvc), Z8(d,wvc)-q.ascent()),t=t+e+q.height(),c=t4(c+(m-q.width())/2,-b.descent()-e-q.ascent()),v=new W9(q,c),p=p.union(v.JSC$18215_renderBounds()));c=J9(h,t,m);return new a$(a,new W9(b,t4((m-b.width())/2,0)),u,v,d,c,p,f)}; a$.prototype.drawInternal=function(a,b,c){this.JSC$18254_nucleus.drawInternal(a,b,c);this.sup!=null&&this.sup.drawInternal(a,b,c);this.sub!=null&&this.sub.drawInternal(a,b,c)}; var NEc=function(a){return a instanceof a$}; a$.prototype.$$classMetadata=["com.google.apps.xplatmath.layout.LayoutSupSub",0];var c$=function(a,b){H9();this.f_atom__com_google_apps_xplatmath_layout_Layout_=b;this.layout=a}; k(c$,Q9);c$.prototype.drawInternal=function(a,b){this.layout.drawInternal(a,b,V(this.f_atom__com_google_apps_xplatmath_layout_Layout_,R7,Q7).color())}; c$.prototype.$$classMetadata=["com.google.apps.xplatmath.layout.ColoredLayout",0];var OEc=function(a,b,c,d,e,f,h,m,p,q){H9();X9.call(this,f,a,h,m,p,q);this.JSC$18260_lineThickness=0;this.backgroundColor=b;this.borderColor=c;this.JSC$18260_customStyle=d;this.JSC$18260_lineThickness=e}; k(OEc,X9); OEc.prototype.drawInternal=function(a,b,c){var d=J1(this.backgroundColor,k5())?c:this.backgroundColor,e=J1(this.borderColor,k5())?c:this.borderColor;switch(w3(this.JSC$18260_customStyle!=null),this.JSC$18260_customStyle){case"NONE":var f=this.JSC$18215_typesetBounds().offset(b.x(),b.y()),h=this.JSC$18260_lineThickness,m=a.JSC$18217_rects,p=m.add;f=i4(a.transform,f);h=a.transform.layoutToCanvasLength(h);e=lwc(f,d,h,e);p.call(m,e);break;case"HIGHLIGHT_DASHED":case"HIGHLIGHT_SOLID":if(d==null||e== null)throw b2("MathBox with custom highlight style must have specific border and background colors.").backingJsObject;h=this.JSC$18215_typesetBounds().offset(b.x(),b.y());m=a.JSC$18217_rects;p=m.add;h=i4(a.transform,h);f=a.transform.layoutToCanvasLength(0);d=lwc(h,d,f,null);p.call(m,d);var q=this.JSC$18215_typesetBounds().offset(b.x(),b.y()).f_minY__com_google_apps_xplatmath_util_AutoValue_Rect_+this.JSC$18260_lineThickness/2;p=this.JSC$18260_customStyle==="HIGHLIGHT_DASHED"?"dashed":"solid";f=b.x(); var t=b.x()+this.width();h=this.JSC$18260_lineThickness;d=a.lines;m=d.add;f=M9(a,f,q);q=M9(a,t,q);h=a.transform.layoutToCanvasLength(h);e=jwc(f,q,e,h,p);m.call(d,e);}this.f_innerLayout__com_google_apps_xplatmath_layout_LayoutListWrapper_.drawInternal(a,b,c)}; OEc.prototype.$$classMetadata=["com.google.apps.xplatmath.layout.LayoutBox",0];var PEc=function(a,b,c,d,e,f){H9();K9(this,a,c,d,e,f);this.JSC$18263_innerLayout=b}; k(PEc,L9);PEc.prototype.drawInternal=function(a,b,c){this.JSC$18263_innerLayout.drawInternal(a,b,c)}; PEc.prototype.$$classMetadata=["com.google.apps.xplatmath.layout.LayoutChemicalFormula",0];var QEc=function(a,b,c,d,e,f,h,m){H9();K9(this,a,e,f,h,m);this.JSC$18266_inner=b;this.open=c;this.close=d}; k(QEc,L9);var TEc=function(a,b,c,d,e,f){H9();var h=REc($5,a,e,f,c.left(),d);c=REc(a6,a,e,f,c.right(),d);var m=h.width()+SEc($5,b.firstAtomType(),e,f.useAdditionalUltraThinSpacing());d=m+b.width()+SEc(b.lastAtomType(),a6,e,f.useAdditionalUltraThinSpacing());var p=d+c.width(),q=Math.max(h.ascent(),Math.max(b.ascent(),c.ascent())),t=Math.max(h.descent(),Math.max(b.descent(),c.descent()));b=new W9(b,s4(m,0));p=J9(q,t,p);return new QEc(a,b,h,new W9(c,s4(d,0)),e,p,p.union(b.JSC$18215_renderBounds()),f)}; QEc.prototype.drawInternal=function(a,b,c){this.open.drawInternal(a,b,c);this.JSC$18266_inner.drawInternal(a,b,c);this.close.drawInternal(a,b,c)}; QEc.prototype.$$classMetadata=["com.google.apps.xplatmath.layout.LayoutDelimited",0];var d$=function(a,b,c,d,e,f,h,m){H9();K9(this,b,e,f,h,m);this.JSC$18269_atomType=a;this.JSC$18269_glyphs=c;this.offsets=d}; k(d$,Z9);var VEc=function(a,b,c,d,e){H9();return UEc(Y5,a,b,c,U8(b,"\u221A"),d,e)},UEc=function(a,b,c,d,e,f,h){H9(); var m=ZBc(c,e,f);if(m.ascent()+m.descent()=0&&f<=b&&V(c.get(f),U4,H4).add(e)}}return c},wFc=function(a,b,c,d){d=b.f_tableType__com_google_apps_xplatmath_dom_MathTable_.f_interRowAdditionalSpacingEm__com_google_apps_xplatmath_dom_AutoValue_TableType_*P8(c)*d.lineSpacingFactor()+.1*P8(c); var e=CFc(b,0);e=l$(P8(c),e);e=e>0?e+d/2:0;var f=b.numRows();f=CFc(b,f);f=f.isEmpty()?0:l$(P8(c),f);d=f>0?f+d/2:0;c=yFc(b,c);c>0&&IFc(b)&&(c+=syc(M6,0,0,0,0).thickness());return h4(a.f_minX__com_google_apps_xplatmath_util_AutoValue_Rect_,a.f_minY__com_google_apps_xplatmath_util_AutoValue_Rect_-d,a.f_maxX__com_google_apps_xplatmath_util_AutoValue_Rect_+c,a.f_maxY__com_google_apps_xplatmath_util_AutoValue_Rect_+e)},yFc=function(a,b){return IFc(a)?a.f_tableType__com_google_apps_xplatmath_dom_MathTable_.f_interColumnSpacingMu__com_google_apps_xplatmath_dom_AutoValue_TableType_/ 18*P8(b)/4:0},CFc=function(a,b){return a.decorations().filter(function(c){c=V(c,I6,J6); return J1(c.decorationType(),L6)&&c._rowRange.start()==b})},IFc=function(a){return oyc(a)?!1:a.decorations().some(function(b){b=V(b,I6,J6); return J1(b.decorationType(),M6)&&(b._columnRange.start()==0||b._columnRange.start()==Q5(a.f_cells__com_google_apps_xplatmath_dom_MathTable_))})},l$=function(a,b){var c=0; a*=.15;for(var d=0;d=0?b._columnRange.start():0; h>=0&&hh.width()){var Aa=new W9(q,t4(0,w.y()));var Sa=new W9(h,t4(-w.x(),0))}else Aa=new W9(q,w),Sa=h;var Ua=J9(Y,da,h.width());Qxc(f)&&(Ua=Ua.union(Aa.JSC$18215_typesetBounds()));return new Y9(f,Aa,Sa,u!=null,b,Ua,h.JSC$18215_renderBounds().union(Ua).union(Aa.JSC$18215_renderBounds()), d);case 24:var qb=V(a,Lzc,N7);H9();var ab=U9(qb.f_innerList__com_google_apps_xplatmath_dom_MathListWrapper_,b,c,d),La=qb.backgroundColor(),ib=qb.borderColor(),sb=qb.f_customStyle__com_google_apps_xplatmath_dom_MathBox_;switch(w3(sb!=null),sb){case"NONE":var Oa=ib==null?0:.02*P8(b);var Ca=.3*P8(b),eb=s4(Ca,0);var Qa=new W9(ab,eb);var Bb=J9(Qa.ascent()+Ca,Qa.descent()+Ca,Qa.width()+2*Ca);break;case"HIGHLIGHT_DASHED":case"HIGHLIGHT_SOLID":Oa=.1*P8(b);var dc=.2*P8(b),Nb=.15*P8(b),Lc=.15*P8(b);Qa=new W9(ab, s4(Lc,0));var Fc=XBc(b),wc=Math.max(Fc.f_maxY__com_google_apps_xplatmath_util_AutoValue_Rect_,Qa.ascent()),kd=Math.max(-Fc.f_minY__com_google_apps_xplatmath_util_AutoValue_Rect_,Qa.descent());Bb=J9(wc+dc,kd+Nb+Oa,Qa.JSC$18215_renderBounds().width()+2*Lc);break;default:throw n4().backingJsObject;}return new OEc(qb,La,ib,sb,Oa,Qa,b,Bb,Bb.union(Qa.JSC$18215_renderBounds()),d);case 13:var zc=V(a,P7,O7);H9();var ld=U9(zc.f_innerList__com_google_apps_xplatmath_dom_MathListWrapper_,b,c,d),Sd=Z8(b,Qvc),Jc= P8(b)*.2,ec=ld.JSC$18215_typesetBounds();ec=xEc(zc)!=null?h4(ec.f_minX__com_google_apps_xplatmath_util_AutoValue_Rect_,ec.f_minY__com_google_apps_xplatmath_util_AutoValue_Rect_-Jc,ec.f_maxX__com_google_apps_xplatmath_util_AutoValue_Rect_,ec.f_maxY__com_google_apps_xplatmath_util_AutoValue_Rect_+Jc):h4(ec.f_minX__com_google_apps_xplatmath_util_AutoValue_Rect_-Jc,ec.f_minY__com_google_apps_xplatmath_util_AutoValue_Rect_,ec.f_maxX__com_google_apps_xplatmath_util_AutoValue_Rect_+Jc,ec.f_maxY__com_google_apps_xplatmath_util_AutoValue_Rect_); return new R9(zc,ec,Sd,ld);case 21:var Xa=V(a,R7,Q7);H9();return new c$(CEc(Xa.f_innerList__com_google_apps_xplatmath_dom_MathListWrapper_,b,c,d),Xa);case 10:return uFc(V(a,Rzc,Z7),b,d);case 9:var Mb=V(a,U7,S7),Na=b;H9();var Cb=Mb.f_overrideStyle__com_google_apps_xplatmath_dom_MathFraction_;Cb!=null&&(Na=R8(Na,Cb));var fc=TBc(Na),Cc=U9(Mb.f_numerator__com_google_apps_xplatmath_dom_MathFraction_,fc,!1,d),We=U9(Mb.f_denominator__com_google_apps_xplatmath_dom_MathFraction_,fc,!0,d),bh=Na;var Uj=Mb.f_hasRule__com_google_apps_xplatmath_dom_MathFraction_? J1(bh.getStyle(),S6)?Z8(bh,Evc):Z8(bh,Dvc):J1(bh.getStyle(),S6)?Z8(bh,yvc):Z8(bh,xvc);var Hf=Na;var bf=Mb.f_hasRule__com_google_apps_xplatmath_dom_MathFraction_?J1(Hf.getStyle(),S6)?Z8(Hf,Gvc):Z8(Hf,Fvc):J1(Hf.getStyle(),S6)?Z8(Hf,Avc):Z8(Hf,zvc);var Ci=Z8(Na,g5),pj=Mb.f_hasRule__com_google_apps_xplatmath_dom_MathFraction_?Z8(Na,Jvc):0;if(Mb.f_hasRule__com_google_apps_xplatmath_dom_MathFraction_){var el=Uj-Cc.descent()-(Ci+pj/2),fl=Na;var ch=J1(fl.getStyle(),S6)?Z8(fl,Ivc):Z8(fl,Hvc);el0&&(Xc=new W9(Xc,s4(CI,0)));var JO=J9(bx,JD,Math.max(Xc.width(),je.width())),pY=new nFc(ic,je,Xc,b,JO,JO.union(Xc.JSC$18215_renderBounds()),d);return MEc(ic,pY,0,b,c,d);case 15:case 14:case 16:case 17:var pv=V(a,gAc,c8);H9();var Ot=U9(pv.f_innerList__com_google_apps_xplatmath_dom_MathListWrapper_, b,c,d),tp=J1(pv.type(),xxc),qY=J1(pv.type(),zxc),KO=J1(pv.type(),Axc),qA=tp||KO,rA=qA?Z8(b,Qvc):Z8(b,Nvc),rY=qA?-(Ot.descent()+Z8(b,Pvc)):Ot.ascent()+Z8(b,Mvc),LO=qA?0:Z8(b,Mvc)+(qY?rA*4.5:rA)+Z8(b,Ovc),sY=qA?Z8(b,Pvc)+(KO?rA*4.5:rA)+Z8(b,Rvc):0,rx=J9(Ot.ascent()+LO,Ot.descent()+sY,Ot.width());return new KFc(pv,rY,rA,Ot,b,rx,rx.union(Ot.JSC$18215_renderBounds()),d);case 25:var XD=V(a,Pzc,Y7);H9();var YD=CEc(XD.f_innerList__com_google_apps_xplatmath_dom_MathListWrapper_,b,c,d);return new j$(XD,YD, b,rFc(XD,YD.JSC$18215_typesetBounds()),rFc(XD,YD.JSC$18215_renderBounds()),d);case 26:var ns=V(a,$zc,a8);H9();var DI=ns.em()*P8(b);Z4();var ZD=h4(0,0,0+DI,0);return new g$(ns,b,ZD,ZD,d);case 22:return AFc(V(a,K6,G6),b,d);case 28:var Tq=V(a,uAc,f8);H9();var sx=TBc(b),os=P5(D4());var ps=T9(X5,os,sx,!1,d);var tx=U9(Tq.f_over__com_google_apps_xplatmath_dom_XArrow_,sx,!1,d),qv=Z8(b,g5),up=Z8(b,Jvc),ux=J1(Tq.direction(),sAc)||J1(Tq.direction(),rAc),EI=qv;ux&&(EI-=.15000000000000002);var Pt=tx.mathList!= null&&!tx.mathList.isEmpty(),sh=0;if(Pt){sh=J1(b.getStyle(),S6)?Z8(b,Evc):Z8(b,Dvc);var MO=sh-tx.descent()-(EI+up/2);var NO=J1(b.getStyle(),S6)?Z8(b,Ivc):Z8(b,Hvc);MO1)d=TFc(d,j6(pxc,d.token()));else if(d=HCc.tryParse(c),d!=null&&d.size()>1){var e=c=j6(d6,d.token()),f=V(d.selection().get(0),r6,p6).fontStyle();e.fontStyle_=f;d=TFc(d,c)}else d=null;d!=null?(c=d.f_parseResult__com_google_apps_xplatmath_mathml_BaseMathMLBuilder_ParseResultAndAtom,a=f7(a,c.size()),c=Qyc(c.selection()),b.add(i6(d.f_atom__com_google_apps_xplatmath_mathml_BaseMathMLBuilder_ParseResultAndAtom,c.sup(),c.sub()))):( d=a.get(0),a=f7(a,1),J1(d.type(),Hxc)||b.add(d))}return y4(b)},s$=function(a,b,c){var d=q6,e=$Fc(c); e.size()==1?YFc(a,b,V(e.get(0),n6,f6),d):o$(b,"mrow",function(f){f=V(f,p$,m$);aGc(a,f,e,d)})},aGc=function(a,b,c,d){for(c=c.iterator();c.m_hasNext__boolean();){var e=V(c.m_next__java_lang_Object(),n6,f6); YFc(a,b,e,d)}},YFc=function(a,b,c,d){var e=c.sub(),f=c.sup(),h=bGc(c)?e!=null&&f!=null?"munderover":e!=null?"munder":f!=null?"mover":null:e!=null&&f!=null?"msubsup":e!=null?"msub":f!=null?"msup":null; h==null?cGc(a,b,c,d):o$(b,h,function(m){m=V(m,p$,m$);cGc(a,m,c,d);e!=null&&s$(a,m,e);f!=null&&s$(a,m,f)})},bGc=function(a){return T6(a)&&V(a,T6,R6).f_defaultHasLimits__com_google_apps_xplatmath_dom_MathLargeOperator_||b7(a)},cGc=function(a,b,c,d){switch(c.type().ordinal()){case 20:var e=V(c,M7,L7),f=e.f_innerList__com_google_apps_xplatmath_dom_MathListWrapper_,h=e.f_stretchy__com_google_apps_xplatmath_dom_MathAccent_&&(f.size()!=1||!V4(f.get(0).nucleus_)); n$(b,"mover",h?Huc("accent","true","stretchy","true"):F4("accent","true"),function(da){da=V(da,p$,m$);s$(a,da,f);r$(da,"mo",h?F4("stretchy","true"):D4(),c.nucleus_)}); break;case 24:var m=V(c,Lzc,N7);e=m.backgroundColor();n$(b,"mpadded",e==null?D4():WFc("mathbackground",e.toHtmlColor()),function(da){da=V(da,p$,m$);var Aa=m.f_innerList__com_google_apps_xplatmath_dom_MathListWrapper_,Sa=m.contentMode()==="math"?d:u6;aGc(a,da,$Fc(Aa),Sa)}); break;case 13:var p=V(c,P7,O7);e=p.cancelType()==="/"?"updiagonalstrike":p.cancelType()==="\\"?"downdiagonalstrike":"updiagonalstrike downdiagonalstrike";n$(b,"menclose",F4("notation",e),function(da){da=V(da,p$,m$);s$(a,da,p.f_innerList__com_google_apps_xplatmath_dom_MathListWrapper_)}); break;case 21:var q=V(c,R7,Q7);n$(b,"mstyle",WFc("mathcolor",q.color().toHtmlColor()),function(da){da=V(da,p$,m$);s$(a,da,q.f_innerList__com_google_apps_xplatmath_dom_MathListWrapper_)}); break;case 9:var t=V(c,U7,S7);dGc(b,t.f_delims__com_google_apps_xplatmath_dom_MathFraction_,function(da){n$(V(da,p$,m$),"mfrac",t.f_hasRule__com_google_apps_xplatmath_dom_MathFraction_?D4():F4("linethickness","0"),function(Aa){Aa=V(Aa,p$,m$);s$(a,Aa,t.f_numerator__com_google_apps_xplatmath_dom_MathFraction_);s$(a,Aa,t.f_denominator__com_google_apps_xplatmath_dom_MathFraction_)})}); break;case 29:var u=V(c,iAc,d8).params();o$(b,"mcirc",function(da){da=V(da,p$,m$);u!=null&&s$(a,da,u)}); break;case 32:var v=V(c,Uyc,g7),w=v.f_innerList__com_google_apps_xplatmath_dom_ChemicalFormula_;o$(b,"ce",function(da){da=V(da,p$,m$);w!=null&&s$(a,da,v.f_innerList__com_google_apps_xplatmath_dom_ChemicalFormula_)}); break;case 28:var y=V(c,uAc,f8);o$(b,eGc(y.direction()),function(da){da=V(da,p$,m$);s$(a,da,y.f_over__com_google_apps_xplatmath_dom_XArrow_)}); break;case 31:var A=V(c,Yzc,$7);o$(b,J1(A.f_setType__com_google_apps_xplatmath_dom_MathSet_,Uzc)?"munder":"mover",function(da){da=V(da,p$,m$);s$(a,da,A.f_outer__com_google_apps_xplatmath_dom_MathSet_);s$(a,da,A.f_inner__com_google_apps_xplatmath_dom_MathSet_)}); break;case 12:var C=V(c,X7,V7);dGc(b,C.f_delims__com_google_apps_xplatmath_dom_MathInner_,function(da){da=V(da,p$,m$);aGc(a,da,$Fc(C.f_innerList__com_google_apps_xplatmath_dom_MathListWrapper_),d)}); break;case 4:e=V4(c.nucleus_);var I=C4();e&&I.add("largeop").add("true");bGc(c)&&I.add("movablelimits").add("true");r$(b,e?"mo":"mi",I,c.nucleus_);break;case 19:case 18:var K=V(c,b7,a7);e=J1(K.type(),Bxc);o$(b,e?"munder":"mover",function(da){da=V(da,p$,m$);s$(a,da,K.f_innerList__com_google_apps_xplatmath_dom_MathListWrapper_);r$(da,"mo",F4("stretchy","true"),K.nucleus_)}); break;case 15:case 14:case 16:case 17:var N=V(c,gAc,c8);e=J1(N.type(),xxc)||J1(N.type(),Axc);n$(b,e?"munder":"mover",F4(e?"accentunder":"accent","true"),function(da){da=V(da,p$,m$);s$(a,da,N.f_innerList__com_google_apps_xplatmath_dom_MathListWrapper_);switch(N.type().ordinal()){case 14:var Aa="_";break;case 16:Aa="\u23DC";break;case 17:Aa="\u23DD";break;default:Aa="\xAF";}r$(da,"mo",F4("stretchy","true"),Aa)}); break;case 25:break;case 10:var L=V(c,Rzc,Z7),R=L.degree();o$(b,R!=null?"mroot":"msqrt",function(da){da=V(da,p$,m$);s$(a,da,L.f_radicand__com_google_apps_xplatmath_dom_MathRadical_);R!=null&&s$(a,da,R)}); break;case 26:e=V(c,$zc,a8);n$(b,"mspace",WFc("width",K1(W4(e.em()))+"em"),function(da){V(da,p$,m$)}); break;case 27:break;case 22:var W=V(c,K6,G6),S=function(da){o$(V(da,p$,m$),"mtable",function(Aa){Aa=V(Aa,p$,m$);for(var Sa={},Ua=W.cells().iterator();Ua.m_hasNext__boolean();Sa={row$jscomp$37:void 0})Sa.row$jscomp$37=V(Ua.m_next__java_lang_Object(),T4,A4),o$(Aa,"mtr",function(qb){return function(ab){ab=V(ab,p$,m$);for(var La={},ib=qb.row$jscomp$37.iterator();ib.m_hasNext__boolean();La={cell$jscomp$20:void 0})La.cell$jscomp$20=V(ib.m_next__java_lang_Object(),R5,S5),o$(ab,"mtd",function(sb){return function(Oa){Oa= V(Oa,p$,m$);s$(a,Oa,sb.cell$jscomp$20)}}(La))}}(Sa))})}; W.f_tableType__com_google_apps_xplatmath_dom_MathTable_.f_getKind__com_google_apps_xplatmath_dom_AutoValue_TableType_.equals(P6)?o$(b,"mrow",function(da){da=V(da,p$,m$);r$(da,"mo",D4(),"{");S(da)}):S(b); break;default:if(K7(c))e=V(c,K7,J7),e=K1(W4(e.size().em()))+"em",r$(b,"mo",Huc("minsize",e,"maxsize",e),c.nucleus_);else if(r3(c.nucleus_))o$(b,"mrow",function(da){V(da,p$,m$)});else if(P1(c.nucleus_," "))r$(b,"mtext",D4()," ");else if(r6(c)){e=V(c,r6,p6);I=e.fontStyle();var Y=D4();J1(I,q6)||J1(I,d)||(Y=WFc("mathvariant",fGc(I)));r$(b,gGc(e),Y,c.nucleus_)}else throw b2("Unexpected atom type "+K1(c.type())).backingJsObject;}},eGc=function(a){switch(a.ordinal()){case 0:return"xrightarrow"; case 1:return"xleftarrow";case 2:return"xleftrightarrow";case 3:return"xleftharpoonup";case 4:return"xleftharpoondown";case 5:return"xrightharpoondown";case 6:return"xrightharpoonup";case 7:return"xrightleftharpoons";case 8:return"xleftrightharpoons";}throw b2("Unexpected direction "+K1(a)).backingJsObject},gGc=function(a){switch(a.type().ordinal()){case 23:return"mtext"; case 2:return"mn";case 3:return"mi";default:return"mo";}},fGc=function(a){switch(a.ordinal()){case 0:return""; case 1:return"normal";case 2:return"bold";case 3:return"script";case 4:return"monospace";case 5:return"italic";case 6:return"sans-serif";case 7:return"fraktur";case 8:return"double-struck";case 9:return"bold-italic";}throw n4().backingJsObject},dGc=function(a,b,c){J1(b.left(),s7)&&J1(b.right(),s7)?c(a):o$(a,"mrow",function(d){d=V(d,p$,m$); if(!J1(b.left(),s7)){var e=p7(b.left());r$(d,"mo",D4(),e)}c(d);J1(b.right(),s7)||(e=p7(b.right()),r$(d,"mo",D4(),e))})}; VFc.prototype.$$classMetadata=["com.google.apps.xplatmath.mathml.BaseMathMLBuilder",0];var t$=function(){this.placeCursorAtStart=!1}; k(t$,I1);var hGc=function(a,b,c){var d=new t$;d.$outer_this__com_google_apps_xplatmath_editor_ListWithCursorBuilderFactory_ListBuilder=a;d.JSC$18329_atoms=b;d.placeCursorAtStart=c;return d}; t$.prototype.size=function(){return this.JSC$18329_atoms.size()}; t$.prototype.get=function(a){return V(this.JSC$18329_atoms.get(a),n6,f6)}; t$.prototype.add=function(a){this.JSC$18329_atoms.add(a);return this}; var u$=function(a,b){a.JSC$18329_atoms.addAll(b);return a}; t$.prototype.addAll=function(a){a.placeCursorAtStart&&iGc(this);this.JSC$18329_atoms.addAll(a.JSC$18329_atoms);return this}; var jGc=function(a,b){var c=V(a.JSC$18329_atoms.get(a.JSC$18329_atoms.size()-1|0),n6,f6);J1(b,c)||(a.$outer_this__com_google_apps_xplatmath_editor_ListWithCursorBuilderFactory_ListBuilder.cursorLocation_!=null&&J1(OBc(a.$outer_this__com_google_apps_xplatmath_editor_ListWithCursorBuilderFactory_ListBuilder.cursorLocation_),c)&&(c=J1(a.$outer_this__com_google_apps_xplatmath_editor_ListWithCursorBuilderFactory_ListBuilder.cursorLocation_.f_nucleusBeforeCursor__com_google_apps_xplatmath_cursor_AutoValue_DomCursorLocation_, c)||J1(a.$outer_this__com_google_apps_xplatmath_editor_ListWithCursorBuilderFactory_ListBuilder.cursorLocation_.f_atomBeforeCursor__com_google_apps_xplatmath_cursor_AutoValue_DomCursorLocation_,c)&&l6(c),a.$outer_this__com_google_apps_xplatmath_editor_ListWithCursorBuilderFactory_ListBuilder.cursorLocation_=c?O8(null,b,null):O8(b,null,null)),a.JSC$18329_atoms.set(a.JSC$18329_atoms.size()-1|0,b))},iGc=function(a){if(a.JSC$18329_atoms.isEmpty())a.placeCursorAtStart=!0,a.$outer_this__com_google_apps_xplatmath_editor_ListWithCursorBuilderFactory_ListBuilder.cursorLocation_= null;else {var b=a.$outer_this__com_google_apps_xplatmath_editor_ListWithCursorBuilderFactory_ListBuilder;a=V(a.JSC$18329_atoms.get(a.JSC$18329_atoms.size()-1|0),n6,f6);a=O8(a,null,null);b.cursorLocation_=a}}; t$.prototype.build=function(){if(this.$outer_this__com_google_apps_xplatmath_editor_ListWithCursorBuilderFactory_ListBuilder.collapseEmptyAtoms){var a=this.JSC$18329_atoms.iterator();if(a.m_hasNext__boolean()){this.JSC$18329_atoms=C4();for(var b=V(a.m_next__java_lang_Object(),n6,f6);a.m_hasNext__boolean();){var c=V(a.m_next__java_lang_Object(),n6,f6);if(Oxc(c)&&b.JSC$17279_type_.ordinal()=0;f=f-1|0){var h=V(c.get(f),p2,o2),m=V(b.get(h.intValue()),n6,f6);if(izc(m.nucleus_,e.nucleus_)){nGc(a,b,h.intValue());Luc(c,f);break}}fzc(e)&&c.add(C2(b.size()-1|0))}a.JSC$18329_atoms=b}},nGc=function(a,b,c){var d=b.size()-1|0,e=V(b.get(c),n6,f6),f=V(b.get(d),n6,f6),h=q7(HBc(e),HBc(f)),m=C4(),p=!1; if(m6(e)){var q=i6(k6(),e.sup(),e.sub());m.add(q);a.$outer_this__com_google_apps_xplatmath_editor_ListWithCursorBuilderFactory_ListBuilder.cursorLocation_!=null&&J1(a.$outer_this__com_google_apps_xplatmath_editor_ListWithCursorBuilderFactory_ListBuilder.cursorLocation_.f_atomBeforeCursor__com_google_apps_xplatmath_cursor_AutoValue_DomCursorLocation_,e)&&(a.$outer_this__com_google_apps_xplatmath_editor_ListWithCursorBuilderFactory_ListBuilder.cursorLocation_=O8(q,null,null),p=!0)}q=Math.max(c+1|0, 0);for(d=Math.min(d,b.size());q"))c=kAc;else return B$(b,c),null;}else if(P1(e,"<")){if(e=A$(b),e!=null){if(P1(e.string(),"-"))c=A$(b),c!=null&&P1(c.string(),">")?c=mAc:(c!=null&&B$(b,c),c=lAc);else if(P1(e.string(),"=")){if(e=A$(b),e!=null&&P1(e.string(),">"))c=rAc;else return B$(b,c),null;}else return B$(b,c),null;}else return B$(b,c),null;}else return B$(b,c),null;e=w$(d).build();var f=null,h=A$(b);h!=null&&P1(h.string(),"[")?(e=wGc(a,b,d),h=A$(b),h!=null&&P1(h.string(),"[")?f=wGc(a, b,d):h!=null&&B$(b,h)):h!=null&&B$(b,h);return tAc(c,e,f)},uGc=function(a,b,c,d){for(var e=w$(c),f={};y$(b);f={styleAndMode$jscomp$4:void 0}){var h=A$(b); if(h==null)break;if(xGc(h,b)){B$(b,h);break}var m=h.string();if(P1(m," ")&&!d){B$(b,h);break}P1(m,"{")?(m=yGc(a,b,c,d),e.add(W7(m,(o7(),j7)))):P1(m,"^")||P1(m,"_")?(f=zGc(a,b,c,d),h=k6(),h=P1(m,"^")?i6(h,f,null):i6(h,null,f),e.add(h)):(f.styleAndMode$jscomp$4=V(t5((k8(),l8),m),m8,n8),f.styleAndMode$jscomp$4!=null?(z$(b),m=A$(b),m!=null&&P1(m.string(),"{")?(m=V(C$(a,f.styleAndMode$jscomp$4,function(p){return function(){return yGc(a,b,c,d3(p.styleAndMode$jscomp$4.contentMode(),"text"))}}(f)),R5,S5), u$(e,m.atoms_)):m!=null&&B$(b,m)):d&&P1(m," ")?e.add(V(p4(D8("\\ ","text")),n6,f6)):e.add(AGc(h,a)))}return e.size()>0?d?e:BGc(e.build(),c):w$(c)},xGc=function(a,b){a=a.string(); if(!P1(a,"-")&&!P1(a,"<"))return!1;var c=A$(b);if(c==null)return!1;B$(b,c);return P1(a,"-")?P1(c.string(),">"):P1(c.string(),"-")||P1(c.string(),"=")},wGc=function(a,b,c){for(var d=b.currentIndex(),e=1;y$(b);){var f=A$(b); if(f==null)break;P1(f.string(),"[")?e=e+1|0:P1(f.string(),"]")&&(e=e-1|0);if(e==0)return b=CGc(b,d,f.start()),vGc(a,c,b,!0)}throw N8(b.currentIndex(),14,"Missing ]").backingJsObject},yGc=function(a,b,c,d){for(var e=b.currentIndex(),f=1;y$(b);){var h=A$(b); if(h==null)break;P1(h.string(),"{")?f=f+1|0:P1(h.string(),"}")&&(f=f-1|0);if(f==0)return b=CGc(b,e,h.start()),vGc(a,c,b,!d)}throw N8(b.currentIndex(),14,"Missing }").backingJsObject},zGc=function(a,b,c,d){d||z$(b); var e=A$(b);if(e==null)throw N8(b.currentIndex(),7,"Missing script argument").backingJsObject;if(P1(e.string(),"{"))return yGc(a,b,c,d);a=AGc(e,a);return w$(c).add(a).build()},AGc=function(a,b){var c=D8(a.string(),"text"); c==null&&(c=D8(a.string(),"math"));c=V(p4(c),n6,f6);r6(c)&&(a=c,J1(a.fontStyle(),q6)&&(d3(b.contentMode(),"text")?a.fontStyle_=u6:(b=b.fontStyle(),a.fontStyle_=b)));return c},BGc=function(a,b){var c=w$(b); if(a.isEmpty())return c;for(var d=0;d0&&wqc(v2(f,0))&&!(h.nucleus_.length>0&&wqc(v2(h.nucleus_,0))))m=w$(b),f=h.sub(),f!=null&&u$(m,f.atoms_),m.add(e),jGc(c,i6(h,h.sup(),m.build()));else if(h!=null&&(P1(f,"+")||P1(f,"-"))){m=!0;if(P1(f,"-")&&(d+1|0)0)f=v2(f.nucleus_,0),vqc==null&&(vqc=RegExp("[A-Z]","i")),p=vqc.test(D2(f));p&&(m=!1)}h.nucleus_.length>0&&wqc(v2(h.nucleus_,0))&&(m=!1);m?r3(h.nucleus_)||h.sub()==null?(m=w$(b),f= h.sup(),f!=null&&u$(m,f.atoms_),m.add(e),jGc(c,i6(h,m.build(),h.sub()))):(e=i6(k6(),w$(b).add(e).build(),null),c.add(e)):c.add(e)}else c.add(e)}return c};var x$=function(a){this.currentCharIndex=this.currentCharIndex=0;this.chars=a}; k(x$,I1);x$.prototype.currentIndex=function(){return this.currentCharIndex}; var CGc=function(a,b,c){return t3(a.chars,b,c)},F$=function(a){D$(a,123,14); z$(a);var b=!1,c=E$(a);c==35&&(b=!0);DGc(a,c);c=null;if(b){D$(a,35,0);b=a.currentCharIndex-1|0;var d=EGc(a,function(e){return tBc(e)}); c=cwc("#"+K1(d));if(c==null)throw N8(b,0,"Could not parse color #"+K1(d)).backingJsObject}else{c=EGc(a,function(e){return p8(e)}); b=Bsc(c,(Fsc(),Esc));d=V(t5((k8(),rBc),b),G2,y2);if(d==null)throw N8(a.currentCharIndex,0,"Unknown color name "+K1(b)).backingJsObject;c=cwc(d);if(c==null)throw N8(a.currentCharIndex,0,"Invalid hex "+K1(d)+" for color name "+K1(b)).backingJsObject}D$(a,125,14);return c},A$=function(a){if(!y$(a))return null; var b=a.currentCharIndex,c=E$(a);b=c==92?FGc(a):GGc(a,b);c==32&&z$(a);return b},FGc=function(a){var b=a.currentCharIndex-1|0; if(!y$(a))throw N8(b,1,"Missing command name after '\\'.").backingJsObject;var c=E$(a);p8(c)&&HGc(a,function(d){return p8(d)}); return GGc(a,b)},GGc=function(a,b){return KBc(t3(a.chars,b,a.currentCharIndex),b)},IGc=function(a,b,c){var d=A$(a); if(d!=null&&P1(d.string(),b))return!0;d!=null&&B$(a,d);if(Crc(c)!=null)throw G$(a,d,c,"Expected "+K1(b)).backingJsObject;return!1},KGc=function(a){D$(a,123,14); z$(a);var b=a.currentCharIndex,c=JGc(a,!0);D$(a,125,14);if(r3(c))throw N8(b,14,"Missing environment name").backingJsObject;return KBc(c,b)},LGc=function(a){var b=I4("bgcolor","underlinecolor","linestyle"); D$(a,123,14);for(var c=u5(),d=!0;y$(a);){z$(a);if(!y$(a))break;if(H$(a)==125)break;d?d=!1:D$(a,44,14);z$(a);var e=a.currentCharIndex,f=JGc(a,!1);if(!b.contains(f))throw N8(e,4,"Invalid keyword "+K1(f)).backingJsObject;D$(a,61,14);z$(a);var h=EGc(a,function(m){return tBc(m)||m==35||m==46||m==45||m==43}); if(c.f_map__com_google_apps_xplatmath_collections_BaseXMap.JSC$17075_containsKey(f))throw N8(e,15,"Repeated keyword "+K1(f)).backingJsObject;c.put(f,h)}D$(a,125,14);return y5(c)},JGc=function(a,b){var c=EGc(a,function(d){return p8(d)}); return b&&P1(c,"align")&&y$(a)&&H$(a)==42?K1(c)+D2(E$(a)&65535):c},y$=function(a){return a.currentCharIndex=a.chars.length)throw b2("Retrieving character at index "+a.currentCharIndex+" beyond length "+a.chars.length).backingJsObject; return x3(a.chars,a.currentCharIndex)},E$=function(a){var b=H$(a); a.currentCharIndex=a.currentCharIndex+(b>=65536?2:1)|0;return b},DGc=function(a,b){if(a.currentCharIndex<=0)throw b2("Unlooking when at the first character.").backingJsObject; a.currentCharIndex=a.currentCharIndex-(b>=65536?2:1)|0},z$=function(a){HGc(a,function(b){return b<33})},MGc=function(a){HGc(a,function(b){return b!=10&&b!=13}); y$(a)&&E$(a)==13&&y$(a)&&H$(a)==10&&E$(a)},D$=function(a,b,c){if(b<33)throw b2("Expected non-space character but got '"+D2(b)+"'").backingJsObject; z$(a);if(y$(a)){var d=E$(a);if(d==b)return;DGc(a,d)}throw N8(a.currentCharIndex,c,"Missing "+D2(b)).backingJsObject},EGc=function(a,b){var c=a.currentCharIndex; HGc(a,b);return t3(a.chars,c,a.currentCharIndex)},HGc=function(a,b){for(;y$(a);){var c=E$(a); if(!b(c)){DGc(a,c);break}}},B$=function(a,b){a.currentCharIndex=b.start()},NGc=function(a){var b=C4(),c=C4(),d=0; D$(a,123,14);z$(a);for(var e=A$(a);e!=null;e=A$(a)){z$(a);switch(j2(e.string())){case"l":b.add(c3("l",F6));d=d+1|0;break;case"c":b.add(c3("c",F6));d=d+1|0;break;case"r":b.add(c3("r",F6));d=d+1|0;break;case"|":c.add(syc(M6,-1,-1,d,d));break;default:throw G$(a,e,1,"Invalid table alignment "+K1(e)).backingJsObject;}if(y$(a)&&H$(a)==125)break}D$(a,125,14);return new I$(y4(b),c)},G$=function(a,b,c,d){return MBc(b==null?""+a.currentCharIndex:LBc(b),c,d)}; x$.prototype.$$classMetadata=["com.google.apps.xplatmath.latex.LatexLexer",0];var I$=function(a,b){this.JSC$18342_alignments=a;this.decorations=b}; k(I$,I1);var OGc=function(a){return a instanceof I$}; I$.prototype.$$classMetadata=["com.google.apps.xplatmath.latex.TableColumnSpecs",0];var J$=function(){this.f_lookingForRight__com_google_apps_xplatmath_latex_LatexParserState_=!1;this.f_styleAndMode__com_google_apps_xplatmath_latex_LatexParserState_=h8();this.f_lookingForRight__com_google_apps_xplatmath_latex_LatexParserState_=!1}; k(J$,I1);var PGc=function(a,b){var c=a.f_styleAndMode__com_google_apps_xplatmath_latex_LatexParserState_,d=a.f_lookingForRight__com_google_apps_xplatmath_latex_LatexParserState_;b=b();a.f_styleAndMode__com_google_apps_xplatmath_latex_LatexParserState_=c;a.f_lookingForRight__com_google_apps_xplatmath_latex_LatexParserState_=d;return b},C$=function(a,b,c){return PGc(a,function(){a.f_styleAndMode__com_google_apps_xplatmath_latex_LatexParserState_=b; return c()})},K$=function(a,b){return C$(a,h8(),b)},QGc=function(a,b){return C$(a,OAc(),b)},RGc=function(a,b){return PGc(a,function(){a.f_lookingForRight__com_google_apps_xplatmath_latex_LatexParserState_=!0; return b()})}; J$.prototype.contentMode=function(){return this.f_styleAndMode__com_google_apps_xplatmath_latex_LatexParserState_.contentMode()}; J$.prototype.fontStyle=function(){return this.f_styleAndMode__com_google_apps_xplatmath_latex_LatexParserState_.fontStyle()}; J$.prototype.$$classMetadata=["com.google.apps.xplatmath.latex.LatexParserState",0];var L$=function(){},SGc,TGc; k(L$,I1);var UGc=function(a,b){M$();return N$(w$(b).add(a))},N$=function(a){M$(); var b=new O$;b.f_fragment__com_google_apps_xplatmath_latex_LatexParser_TokenParseResult_Fragment=a;return b},Q$=function(a){M$(); var b=new P$;b.f_result__com_google_apps_xplatmath_latex_LatexParser_TokenParseResult_FinishedWith=a;return b},VGc=function(){M$(); return SGc},WGc=function(){M$(); return TGc}; L$.prototype.m_orElse__com_google_apps_xplatmath_latex_Parser__com_google_apps_xplatmath_latex_LatexParser_TokenParseResult_$pp_com_google_apps_xplatmath_latex=function(){return this}; var M$=function(){M$=function(){}; SGc=new XGc;TGc=new YGc},ZGc=function(a){return a instanceof L$}; L$.prototype.$$classMetadata=["com.google.apps.xplatmath.latex.LatexParser$TokenParseResult",0];var P$=function(){}; k(P$,L$);var $Gc=function(a){return a instanceof P$}; P$.prototype.$$classMetadata=["com.google.apps.xplatmath.latex.LatexParser$TokenParseResult$FinishedWith",0];var XGc=function(){}; k(XGc,L$);XGc.prototype.$$classMetadata=["com.google.apps.xplatmath.latex.LatexParser$TokenParseResult$Consumed",0];var O$=function(){}; k(O$,L$);var aHc=function(a){return a instanceof O$}; O$.prototype.$$classMetadata=["com.google.apps.xplatmath.latex.LatexParser$TokenParseResult$Fragment",0];var YGc=function(){}; k(YGc,L$);YGc.prototype.m_orElse__com_google_apps_xplatmath_latex_Parser__com_google_apps_xplatmath_latex_LatexParser_TokenParseResult_$pp_com_google_apps_xplatmath_latex=function(a){return V(a(),ZGc,L$)}; YGc.prototype.$$classMetadata=["com.google.apps.xplatmath.latex.LatexParser$TokenParseResult$NoMatch",0];var bHc=function(){this.cursorCommandSeen=this.selectionCommandSeen=!1},cHc,dHc; k(bHc,I1);bHc.prototype.parse=function(){var a=this;return V(eHc(function(){var b=fHc(a,null,null),c=A$(a.lexer);if(c!=null)throw G$(a.lexer,c,17,"Unexpected token").backingJsObject;if(K6(b))return V(b,K6,G6);throw b2("Parsed atom should have been a MathTable.").backingJsObject},function(b){throw new J8(16,"Math too deeply nested.",b).backingJsObject; }),K6,G6)}; var S$=function(a){return R$(a,!0,null).build()},T$=function(a,b){var c=R$(a,!1,b); IGc(a.lexer,b,14);return c},R$=function(a,b,c){if(b&&c!=null)throw b2("Cannot set both oneArgOnly and stopToken.").backingJsObject; var d=w$(a.listFactory),e=null;e=A$(a.lexer);for(var f={};e!=null;f={tokenFinal:void 0,listFinal:void 0},e=A$(a.lexer)){var h=e.string();if(c!=null&&P1(h,c))return B$(a.lexer,e),d;m4(!gHc(a,e,null));f.tokenFinal=e;f.listFinal=d;f=hHc(a,e,d,c).m_orElse__com_google_apps_xplatmath_latex_Parser__com_google_apps_xplatmath_latex_LatexParser_TokenParseResult_$pp_com_google_apps_xplatmath_latex(function(m){return function(){return iHc(a,m.tokenFinal,m.listFinal)}}(f)).m_orElse__com_google_apps_xplatmath_latex_Parser__com_google_apps_xplatmath_latex_LatexParser_TokenParseResult_$pp_com_google_apps_xplatmath_latex(function(m){return function(){return jHc(a, m.tokenFinal,b)}}(f)); if(aHc(f)){e=V(f,aHc,O$).f_fragment__com_google_apps_xplatmath_latex_LatexParser_TokenParseResult_Fragment;if(b)return d.addAll(e);kHc(a,d,e)}else if($Gc(f)){d=V(f,$Gc,P$).f_result__com_google_apps_xplatmath_latex_LatexParser_TokenParseResult_FinishedWith;break}}if(b)throw G$(a.lexer,e,7,"Missing argument").backingJsObject;return d},iHc=function(a,b,c){var d=b.string(),e=V(t5((k8(),l8),d),m8,n8); if(e!=null)return z$(a.lexer),N$(V(C$(a.parserState,e,function(){return R$(a,!0,null)}),v$,t$)); switch(j2(d)){case"%":return MGc(a.lexer),VGc();case"{":return N$(T$(a,"}"));case"$":case"\\(":if(a.parserState.contentMode()==="math")throw G$(a.lexer,b,17,"Already in math mode.").backingJsObject;var f=P1(b.string(),"$")?"$":"\\)";return N$(V(K$(a.parserState,function(){return T$(a,f)}),v$,t$)); case"\\cursor":case"\\cursorIfSelection":case"\\selection":if(a.selectedAtoms==null)throw G$(a.lexer,b,1,"Invalid command").backingJsObject;if((e=P1(d,"\\cursor"))||P1(d,"\\cursorIfSelection")){if(a.cursorCommandSeen)throw G$(a.lexer,b,1,"\\cursor and \\cursorIfSelection must not appear more than once and cannot appear together").backingJsObject;a.cursorCommandSeen=!0;(e||a.selectedAtoms.size()>0)&&iGc(c);return VGc()}if(a.selectionCommandSeen)throw G$(a.lexer,b,1,"\\selection must not appear more than once").backingJsObject; a.selectionCommandSeen=!0;c=u$(w$(a.listFactory),a.selectedAtoms);a.cursorCommandSeen||iGc(c);return N$(c);case"\\operatorname":return b=V(l8.get("\\mathrm"),m8,n8),d=w$(a.listFactory),c.size()>0&&d.add(lHc(a,"\\:")),d.addAll(V(C$(a.parserState,b,function(){return R$(a,!0,null)}),v$,t$)),y$(a.lexer)&&d.add(lHc(a,"\\:")),N$(d); default:return WGc();}},jHc=function(a,b,c){var d=b.string(); switch(j2(d)){case"^":case"_":case"'":if(c)throw G$(a.lexer,b,7,"Expected argument instead").backingJsObject;B$(a.lexer,b);b=k6();break;case"\\left":return V(RGc(a.parserState,function(){var e=mHc(a,"\\left"),f=R$(a,!1,null);if(IGc(a.lexer,"\\right",Drc(null,Brc))){var h=mHc(a,"\\right");return UGc(W7(f.build(),q7(e,h)),a.listFactory)}if(a.options.autocorrectInvalidInput())return e=GBc(e),h=w$(a.listFactory),Oxc(e)||h.add(e),h.addAll(f),N$(h);throw N8(a.lexer.currentIndex(),13,"Missing \\right").backingJsObject; }),aHc,O$); default:b=nHc(a,b);if(b==null)return VGc();r6(b)&&(c=b,J1(c.fontStyle(),q6)&&Txc(c,a.parserState.fontStyle()),a.parserState.contentMode()!=="text"||J1(c.type(),d6)||(b=ABc(c)));}return UGc(b,a.listFactory)},nHc=function(a,b){var c=b.string(); if(z3(b.string(),"\\"))return oHc(a,b);if(a.parserState.contentMode()==="text"&&P1(b.string()," "))return lHc(a,"\\ ");var d=D8(c,a.parserState.contentMode());if(d==null)if(P1(c," "))d=null;else a:{c=x3(b.string(),0),j4(b.string().length==(c>=65536?2:1),"Token has more than one code point."),b=a.parserState.contentMode();d=a.options.f_errorHandler__com_google_apps_xplatmath_latex_AutoValue_LatexParser_Options_;k8();var e=iyc(c);var f=e.fontStyle();f=J1(f,u6)?q6:f;e=X4(e.f_baseChar__com_google_apps_xplatmath_font_AutoValue_CharSet_BaseCharAndFontStyle_); e=vBc(e,b);if(e!=null&&(b=D8(e,b),b!=null)){r6(b)&&(V(b,r6,p6).fontStyle_=f);d=b;break a}(b=c>=2304&&c<=2431||d==null)||(b=c>=0&&c<=31||c>=127&&c<=159);!b&&(b=c>=0&&c<=1114111)&&(b=String.fromCodePoint(c),vsc==null&&(vsc=RegExp("^([\\u1680\\u180E\\u2000-\\u2006\\u2008-\\u200A\\u2028\\u2029\\u205F\\u3000\\uFEFF]|[\\t-\\r ]|[\\x1C-\\x1F])+$")),b=vsc.test(b));b||(b=X4(c),f="Unsupported character: "+K1(X4(c))+" (U+",c=(c>>>0).toString(16),e=(Fsc(),Esc),c=J1(e,Asc())?c.toLocaleUpperCase():c.toUpperCase(), c=MBc(b,1,f+K1(c)+")"),d.m_onError__java_lang_Exception__void(c));d=null}if(d==null)return null;c=d;b=A$(a.lexer);b!=null&&(c=FBc(b.string(),c),J1(d,c)&&B$(a.lexer,b));return c},lHc=function(a,b){return V(p4(D8(b,a.parserState.contentMode())),n6,f6)},kHc=function(a,b,c){b.addAll(c); var d=c.size()-1|0;c=V(Auc(c.JSC$18329_atoms,d),n6,f6);if(c!=null){if(c.JSC$17279_type_.ordinal()0){q=!1;break a}q=!0}e.size()>1&&q&&m&&e.pop();if(!h&&d!=null)throw N8(a.lexer.currentIndex(),10,"Missing \\end.").backingJsObject;d=a.listFactory;c!=null&&f.addAll(c.decorations);h=y4(f.copy());b==null?a=exc(tHc(e,d),h):(m=b.string(),f=V(t5(dHc,m),Vyc,h7),f!=null?(a=jyc(P1(m,"smallmatrix")?(H6(),Gyc):(H6(),Fyc),P1(m,"smallmatrix")?"smallmatrix":"matrix",tHc(e,d),h),a=J1(f,(o7(),j7))?a:W7(E6(a),f)):a=jyc(uHc(a,b,c),m,tHc(e,d),h));return a},tHc=function(a,b){sHc(); for(var c=0,d=a.iterator();d.m_hasNext__boolean();){var e=V(d.m_next__java_lang_Object(),U4,H4);c=Math.max(c,e.size())}c==0&&(c=1);for(d=a.iterator();d.m_hasNext__boolean();){e=V(d.m_next__java_lang_Object(),U4,H4);for(var f=c-e.size()|0;f>0;f=f-1|0)e.add(w$(b))}return a.map(function(h){return V(h,U4,H4).map(function(m){return V(m,v$,t$).build()})})},qHc=function(a,b,c){b=V(t5(b,c),G2,y2); if(b==null)throw N8(a.lexer.currentIndex(),11,"Missing expected arg: "+K1(c)).backingJsObject;var d=cwc(b);if(d==null)throw N8(a.lexer.currentIndex(),0,"Could not parse arg '"+K1(b)+"' for keyword '"+K1(c)+"'").backingJsObject;return d},uHc=function(a,b,c){switch(j2(b.string())){case"eqalign":case"split":case"align":case"align*":case"aligned":return H6(),Byc; case"displaylines":case"gather":case"gathered":return H6(),Eyc;case"eqnarray":return H6(),Dyc;case"cases":return H6(),Cyc;case"array":return a=V(p4(c),OGc,I$).JSC$18342_alignments,H6(),Q6(vyc,a,.3,18);default:throw G$(a.lexer,b,3,"Unknown environment").backingJsObject;}},sHc=function(){sHc=function(){}; cHc=y5(u5().put("\\over",(o7(),j7)).put("\\atop",j7).put("\\choose",m7).put("\\brack",k7).put("\\brace",l7));dHc=y5(u5().put("matrix",j7).put("smallmatrix",j7).put("pmatrix",m7).put("bmatrix",k7).put("Bmatrix",l7).put("vmatrix",Zyc).put("Vmatrix",$yc))}; bHc.prototype.$$classMetadata=["com.google.apps.xplatmath.latex.LatexParser",0];var eHc=function(a,b){try{return a()}catch(d){var c=W1(d);if(c instanceof V1&&(a=c.f_detailMessage__java_lang_Throwable_,y3(a,"call stack")||y3(a,"recursion")))return b(c);throw c.backingJsObject}};var U$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(U$,Ig);U$.prototype.getName=function(){return Uf(this,1)};var V$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(V$,Ig);V$.prototype.setAttribute=function(a,b){Lf(this,2,U$,b,a,1);return this}; V$.prototype.removeAttribute=function(a){Lf(this,2,U$,void 0,a,1,!0);return this}; var q$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(q$,Ig);q$.prototype.setText=function(a){return Bf(this,1,W$,Re(a))}; q$.prototype.hasText=function(){return $f(this,1,W$)!=null}; var W$=[1,2];var vHc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=ef(a)}; k(vHc,Ig);vHc.prototype.getRoot=function(){return Ef(this,V$,1)};var wHc=function(a,b){var c=dq();var d=Uf(b,1);d=vva(d);c=bq(c,"<"+d);d=Ff(b,U$,2);for(var e=d.length,f=0;f");d=Ff(b,q$,3);e=d.length;for(f=0;f");return c};var xHc=function(a){UFc(this,a)}; k(xHc,VFc);var XFc=function(a,b){return new yHc("math",a,b).build()},yHc=function(a,b,c){this.JSC$18384_proto=new V$; fg(this.JSC$18384_proto,1,a);for(a=0;a>24;return a},GHc=function(a,b){a.f_showDebugRects__com_google_apps_xplatmath_svg_AutoValue_Svg_Options_Builder_=b; a.f_set$0__com_google_apps_xplatmath_svg_AutoValue_Svg_Options_Builder_=(a.f_set$0__com_google_apps_xplatmath_svg_AutoValue_Svg_Options_Builder_|2)<<24>>24;return a}; DHc.prototype.build=function(){if(this.f_set$0__com_google_apps_xplatmath_svg_AutoValue_Svg_Options_Builder_!=3||this.f_a11yLabel__com_google_apps_xplatmath_svg_AutoValue_Svg_Options_Builder_==null||this.f_font__com_google_apps_xplatmath_svg_AutoValue_Svg_Options_Builder_==null)throw Ypc().backingJsObject;var a=new HHc,b=this.f_a11yLabel__com_google_apps_xplatmath_svg_AutoValue_Svg_Options_Builder_,c=this.f_font__com_google_apps_xplatmath_svg_AutoValue_Svg_Options_Builder_,d=this.f_useExtendedRenderBounds__com_google_apps_xplatmath_svg_AutoValue_Svg_Options_Builder_, e=this.f_showDebugRects__com_google_apps_xplatmath_svg_AutoValue_Svg_Options_Builder_;a.f_a11yLabel__com_google_apps_xplatmath_svg_AutoValue_Svg_Options_=b;a.f_font__com_google_apps_xplatmath_svg_AutoValue_Svg_Options_=c;a.f_useExtendedRenderBounds__com_google_apps_xplatmath_svg_AutoValue_Svg_Options_=d;a.f_showDebugRects__com_google_apps_xplatmath_svg_AutoValue_Svg_Options_=e;return a}; DHc.prototype.$$classMetadata=["com.google.apps.xplatmath.svg.Svg$Options$Builder",0];var HHc=function(){this.f_showDebugRects__com_google_apps_xplatmath_svg_AutoValue_Svg_Options_=this.f_useExtendedRenderBounds__com_google_apps_xplatmath_svg_AutoValue_Svg_Options_=!1}; k(HHc,g4);g=HHc.prototype;g.a11yLabel=function(){return this.f_a11yLabel__com_google_apps_xplatmath_svg_AutoValue_Svg_Options_}; g.font=function(){return this.f_font__com_google_apps_xplatmath_svg_AutoValue_Svg_Options_}; g.useExtendedRenderBounds=function(){return this.f_useExtendedRenderBounds__com_google_apps_xplatmath_svg_AutoValue_Svg_Options_}; g.showDebugRects=function(){return this.f_showDebugRects__com_google_apps_xplatmath_svg_AutoValue_Svg_Options_}; g.$$classMetadata=["com.google.apps.xplatmath.svg.Svg$Options",0];var $$=function(){this.f_lastY__com_google_apps_xplatmath_svg_SvgPath_SvgPathRenderer_=this.f_lastX__com_google_apps_xplatmath_svg_SvgPath_SvgPathRenderer_=0}; k($$,I1);$$.prototype.moveTo=function(a,b){G5(this,"M",a,b);this.f_lastX__com_google_apps_xplatmath_svg_SvgPath_SvgPathRenderer_=a;this.f_lastY__com_google_apps_xplatmath_svg_SvgPath_SvgPathRenderer_=b}; $$.prototype.lineTo=function(a,b){this.f_lastX__com_google_apps_xplatmath_svg_SvgPath_SvgPathRenderer_==a?q3(q3(this.f_sb__com_google_apps_xplatmath_svg_SvgPath_SvgPathRenderer_,"V"),W4(b)):this.f_lastY__com_google_apps_xplatmath_svg_SvgPath_SvgPathRenderer_==b?q3(q3(this.f_sb__com_google_apps_xplatmath_svg_SvgPath_SvgPathRenderer_,"H"),W4(a)):G5(this,"L",a,b);this.f_lastX__com_google_apps_xplatmath_svg_SvgPath_SvgPathRenderer_=a;this.f_lastY__com_google_apps_xplatmath_svg_SvgPath_SvgPathRenderer_= b}; var G5=function(a,b,c,d){q3(q3(a.f_sb__com_google_apps_xplatmath_svg_SvgPath_SvgPathRenderer_,b),W4(c));q3(q3(a.f_sb__com_google_apps_xplatmath_svg_SvgPath_SvgPathRenderer_," "),W4(d))}; $$.prototype.close=function(){q3(this.f_sb__com_google_apps_xplatmath_svg_SvgPath_SvgPathRenderer_,"Z")}; $$.prototype.$$classMetadata=["com.google.apps.xplatmath.svg.SvgPath$SvgPathRenderer",0];var IHc=function(){}; k(IHc,I1);var KHc=function(a,b,c){JHc(a,W4(b.f_minX__com_google_apps_xplatmath_util_AutoValue_Rect_),W4(b.f_minY__com_google_apps_xplatmath_util_AutoValue_Rect_),W4(b.width()),W4(b.height()),"none",W4(c*.05),"#ffaaaa88")},LHc=function(a){return a==null?"none":a.toHtmlColor()}; IHc.prototype.$$classMetadata=["com.google.apps.xplatmath.svg.BaseSvgBuilder",0];var MHc=function(){this.JSC$18422_proto=new Z$}; k(MHc,IHc);MHc.prototype.addText=function(a,b,c,d,e){var f=this.JSC$18422_proto,h=f.addText;a=new Y$().setText(a);b=fg(a,2,b);c=fg(b,3,c);d=fg(c,4,d);e=fg(d,5,e);h.call(f,e)}; var NHc=function(a,b,c,d){a=a.JSC$18422_proto;var e=new zHc;b=fg(e,1,b);c=fg(b,2,c);d=fg(c,3,d);Mf(a,9,zHc,d)},JHc=function(a,b,c,d,e,f,h,m){a=a.JSC$18422_proto; var p=new X$;b=fg(p,1,b);c=fg(b,2,c);d=fg(c,5,d);e=fg(d,6,e);f=fg(e,7,f);h=fg(f,8,h);m=fg(h,9,m);Mf(a,8,X$,m)}; MHc.prototype.build=function(){return this.JSC$18422_proto};var OHc=function(){di()}; OHc.prototype.render=function(a,b){a=a(b||{},{});return String(a)};var PHc=function(a,b){CHc.call(this,a,b,null,new PBc)}; k(PHc,CHc);var QHc=!1; function RHc(a){var b=a.clipboardData;if(b){var c=document.getSelection(),d;if(!(d=!c||c.isCollapsed))b:{d=c.anchorNode;for(d=d instanceof Element?d:d==null?void 0:d.parentElement;d!=null;){if(d.hasAttribute("data-xpm-disable-copy")){d=!0;break b}d=d.parentElement}d=!1}if(d)var e=null;else{d=document.createElement("div");var f=SHc(c);d.appendChild(c.getRangeAt(0).cloneContents());f();if(!d.querySelector("[data-xpm-latex]")||d.querySelector("[data-xpm-disable-copy]"))e=null;else{c=d.innerHTML;f=d.querySelectorAll("[data-xpm-latex]"); f=l(f);for(var h=f.next();!h.done;h=f.next()){var m=h.value,p=void 0;h=(p=m.getAttribute("data-xpm-latex"))!=null?p:"";for(p=m;m.parentElement!=null&&m!==d;m=m.parentElement)m.hasAttribute("data-xpm-copy-root")&&(p=m);m=void 0;(m=p.parentNode)==null||m.replaceChild(new Text("\\("+h+"\\)"),p)}d=(e=d.textContent)!=null?e:"";e={html:c,text:d}}}e&&(b.setData("text/html",e.html),b.setData("text/plain",e.text),a.preventDefault())}} function SHc(a){if(a.rangeCount<=1)return function(){}; for(var b=[],c=0;c>24;var Aa=xwc(wwc(vwc(uwc(Y,!1),!1),!1),1);var Sa=V(Aa,ywc,q5);var Ua=rwc(Sa,v);s3(C);Ua.f_defaultColor__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_=C;s3(w);Ua.f_font__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_=w;var qb=new N1("en"),ab=new a5;s3(qb);ab.f_localeContext__com_google_apps_xplatmath_util_AutoValue_I18nContext_=qb;s3(ab);Ua.f_i18nContext__com_google_apps_xplatmath_api_AutoValue_RenderOptions_Builder_=ab;var La=wwc(vwc(xwc(uwc(twc(swc(Ua,y), I),K),N),L),R).build();var ib=new PHc(A,La);var sb=u.showDebugRects===void 0?!1:u.showDebugRects;var Oa=u.useExtendedRenderBounds===void 0?!1:u.useExtendedRenderBounds;var Ca=EHc(GHc(FHc(EHc(new DHc),!1),!1)),eb=V(ib.options,zwc,r5).font();s3(eb);Ca.f_font__com_google_apps_xplatmath_svg_AutoValue_Svg_Options_Builder_=eb;var Qa=FHc(GHc(Ca,sb),Oa).build();var Bb=u.fontSizePx;var dc=Bb==null?(ruc(),quc):suc(Bb,"PX");var Nb=new MHc,Lc=juc(dc,(k4(),luc)),Fc=ib.layout,wc=V(ib.options,zwc,r5).defaultColor(), kd=new BEc(Lc);Fc.draw(kd,wc);var zc=qwc(y4(kd.JSC$18217_rects),y4(kd.lines),y4(kd.JSC$18217_glyphs),y4(kd.JSC$18217_svgPaths),kd.JSC$18217_typesetBounds,kd.JSC$18217_renderBounds,kd.transform);o4(J1(zc.f_canvasTransform__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_.canvasYAxisDirection(),luc));var ld=Qa.useExtendedRenderBounds()?zc.f_renderBounds__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_:zc.f_typesetBounds__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_,Sd=Qa.useExtendedRenderBounds()? Math.max(0,J1(zc.f_canvasTransform__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_.canvasYAxisDirection(),l4)?-zc.f_renderBounds__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_.f_minY__com_google_apps_xplatmath_util_AutoValue_Rect_:zc.f_renderBounds__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_.f_maxY__com_google_apps_xplatmath_util_AutoValue_Rect_):Math.max(0,J1(zc.f_canvasTransform__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_.canvasYAxisDirection(),l4)?-zc.f_typesetBounds__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_.f_minY__com_google_apps_xplatmath_util_AutoValue_Rect_: zc.f_typesetBounds__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_.f_maxY__com_google_apps_xplatmath_util_AutoValue_Rect_),Jc=K1(W4(ld.f_minX__com_google_apps_xplatmath_util_AutoValue_Rect_))+" "+K1(W4(ld.f_minY__com_google_apps_xplatmath_util_AutoValue_Rect_))+" "+K1(W4(ld.width()))+" "+K1(W4(ld.height())),ec=Bsc(c3(zc.f_canvasTransform__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_.canvasLengthUnit(),puc).toString(),Asc()),Xa=Qa.a11yLabel(),Mb=K1(W4(ld.width()))+K1(ec),Na=K1(W4(ld.height()))+ K1(ec),Cb=K1(W4(-Sd))+K1(ec),fc=fg(Nb.JSC$18422_proto,1,Xa);var Cc=fg(fc,2,Mb);var We=fg(Cc,3,Na);var bh=fg(We,4,Jc);fg(bh,5,Cb);Qa.showDebugRects()&&KHc(Nb,zc.f_renderBounds__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_,zc.f_canvasTransform__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_.canvasFontSize());for(var Uj=zc.f_rects__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_.iterator();Uj.m_hasNext__boolean();){var Hf=V(Uj.m_next__java_lang_Object(),mwc,o5);JHc(Nb,W4(Hf.rect().f_minX__com_google_apps_xplatmath_util_AutoValue_Rect_), W4(Hf.rect().f_minY__com_google_apps_xplatmath_util_AutoValue_Rect_),W4(Hf.rect().width()),W4(Hf.rect().height()),LHc(Hf.fillColor()),W4(Hf.strokeWidth()),LHc(Hf.strokeColor()))}for(var bf=zc.f_glyphs__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_.iterator();bf.m_hasNext__boolean();){var Ci=V(bf.m_next__java_lang_Object(),hwc,m5);if(Qa.showDebugRects()){var pj=Ci.offset();KHc(Nb,Ci.f_bounds__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_GlyphData_.offset(pj.x(),pj.y()),zc.f_canvasTransform__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_.canvasFontSize())}var el= Qa.font(),fl=Ci.id();var ch=Twc(el.f_fontData__com_google_apps_xplatmath_api_MathFont_,fl);if(ch!=null){var qj=Ci.offset(),rj=Ci.fontSize(),zb=Qa.font();var ad=K5(zb.f_fontData__com_google_apps_xplatmath_api_MathFont_.f_globalConstants__com_google_apps_xplatmath_font_gen_GeneratedFontData_,evc.f_value__com_google_apps_xplatmath_font_proto_GlobalConstant_);var rd=W4(rj/ad),pd="translate("+K1(W4(qj.x()))+","+K1(W4(qj.y()))+") scale("+(K1(rd)+",-"+K1(rd)+")"),cf=Nb,np=n3(),jn=ch,Rh=new $$,If=Rh,gl=np; If.f_lastX__com_google_apps_xplatmath_svg_SvgPath_SvgPathRenderer_=0;If.f_lastY__com_google_apps_xplatmath_svg_SvgPath_SvgPathRenderer_=0;If.f_sb__com_google_apps_xplatmath_svg_SvgPath_SvgPathRenderer_=gl;jn(Rh);NHc(cf,np.toString(),Ci.color().toHtmlColor(),pd)}else if(Ci.codePoint()>0){var op=void 0,kn=Nb,hl=Ci,sm=Qa,Vj=K1(W4(hl.fontSize()))+"px",Di=kn.addText,Gh=hl.text();op=sm.font().f_fontData__com_google_apps_xplatmath_api_MathFont_.f_fontFamily__com_google_apps_xplatmath_font_gen_GeneratedFontData_; var ho=hl.color().toHtmlColor(),Bk=n3(),Nq=hl.offset();q3(q3(q3(q3(q3(Bk,"translate("),W4(Nq.x())),","),W4(Nq.y())),")");Di.call(kn,Gh,op,Vj,ho,Bk.toString())}}for(var io=zc.lines().iterator();io.m_hasNext__boolean();){var is=V(io.m_next__java_lang_Object(),kwc,n5),Ei=void 0,jo=void 0,Ui=void 0,tm=void 0,fi=void 0,sj=void 0,Vi=void 0,il=void 0,um=void 0,Oq=Nb,Wj=is,ko="",gi="";if(Wj.f_lineStyle__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_LineData_==="dashed"){var lo=Wj.from(),Tf=Wj.to(); um=Math.hypot(Tf.x()-lo.x(),Tf.y()-lo.y());var hi=((2*Math.ceil((um+.2)/.4)-1)*.2-um)/2;ko=W4(.2);gi=W4(hi)}var ii=W4(Wj.from().x()),Ma=W4(Wj.from().y()),Sb=W4(Wj.to().x()),$b=W4(Wj.to().y()),ic=W4(Wj.thickness()),Xc=Wj.color().toHtmlColor(),ue=ko,je=gi,Dg=Oq.JSC$18422_proto,Jl=new X$;il=fg(Jl,1,ii);Vi=fg(il,2,Ma);sj=fg(Vi,3,Sb);fi=fg(sj,4,$b);tm=fg(fi,9,Xc);Ui=fg(tm,8,ic);jo=fg(Ui,10,ue);Ei=fg(jo,11,je);Mf(Dg,6,X$,Ei)}for(var bx=zc.f_svgPaths__com_google_apps_xplatmath_api_AutoValue_RenderGeometry_.iterator();bx.m_hasNext__boolean();){var JD= V(bx.m_next__java_lang_Object(),nwc,p5),CI=Nb,pA=JD,JO=pA.path(),pY=pA.fillColor().toHtmlColor(),pv=n3(),Ot=pA.offset();q3(q3(q3(q3(q3(pv,"translate("),W4(Ot.x())),","),W4(Ot.y())),")");pA.scale()!=1&&q3(q3(q3(pv," scale("),W4(pA.scale())),")");NHc(CI,JO,pY,pv.toString())}var tp=Nb.build();var qY=ib.options.f_i18nContext__com_google_apps_xplatmath_api_AutoValue_RenderOptions_,KO=ib.dom,qA=u.mathmlId===void 0?null:u.mathmlId;PFc();var rA=new QFc(qA==null?RFc:y4(Kuc(RFc).add("id").add(qA)));var rY= ZFc(new xHc(qY),KO,rA);var LO;new OHc;var sY=ib.dom,rx=new g8;rx.strBuilder=n3();rx.ambientStyleAndMode=h8();rx.serializingForEditor=!1;vAc(rx,sY.getRoot());var XD=rx.build();var YD=(LO=u.scrollWhenLong)!=null?LO:!1,ns=dq(),DI=bq(dq(),"
");var ZD=cq(dq(),wHc({},rY.getRoot()));for(var Tq=bq(cq(DI,ZD),"
"),sx,os="",ps=Ff(tp,X$,8),tx=ps.length,qv=0;qv"}for(var ux= Ff(tp,Y$,7),EI=ux.length,Pt=0;Pt",Qt=Uf(sh,1);var vx=jva(Qt);os=MO+(NO+vx+"")}for(var wx=Ff(tp,zHc,9),OO=wx.length,$D=0;$D"}for(var aE=Ff(tp,X$,6),FI=aE.length,xx=0;xx"}sx=Xp(os+"");var tY=cq(Tq,sx),vp=Uf(tp,5);var vA=vA===void 0?!1:vA;var bE=bq(dq(),"");var cE=Xp("");var sv=bq(cq(cq(bE,cE),jva(tY)),"
");var wA=cq(ns,sv);var St=fva(wA);var PO=Iha("yt-math-latex",{"class":"ytwMarkdownDivMathLatex"},St); return b(PO)}catch(Haa){return c}})};var XHc=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("CUDeyd"),2);a=WHc;return b.return(a)})},YHc=yD(function(){return XHc()},{debugName:"expandableMetadataHeaderViewModel"}); Gn(xD,function(a){a.registerLoadFn("expandableMetadataHeaderViewModel","CUDeyd",XHc)});var qpc=O(function(a){var b=l(Gu(function(){return a.data().initiallyExpanded})),c=b.next().value,d=b.next().value,e,f=(e=Fn().resolve(Cn(HB)))==null?void 0:e(),h=function(){var m=a.data().colorData; if(m)return f?m==null?void 0:m.darkColorPalette:m==null?void 0:m.lightColorPalette}; return D("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:GC({"background-color":function(){var m=h();return(m==null?0:m.section2Color)?Jy(m.section2Color):""}})},D(OC,{data:function(){return a.data().header}},{expandableMetadataHeaderViewModel:function(m){return D(YHc,{data:m.data, expanded:function(){return!!c()}, expandedCallback:function(p){d(p)}})}}),D(P,{cond:function(){return c()}, then:function(){return D("div",{class:"ytExpandableMetadataViewModelExpandedContent"},D(OC,{data:function(){return a.data().expandedContent}},{horizontalShelfViewModel:function(m){return D(aW,{data:m.data, includeMargin:!0,forceNarrowLayout:!0,palette:h})}, videoSummaryContentViewModel:function(m){return D(BRb,{data:m.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})}, lockupViewModel:function(m){return D(oS,{data:m.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"}, containerType:3,sizing:"COMPACT"})}, basicContentViewModel:function(m){return D(jP,{data:m.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),D(OC,{data:function(){return a.data().expandedBottomButtons}},{buttonViewModel:function(m){return D("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},D(AD,{data:m.data}))}}))}}))},"il");var dpc=O(function(a){var b=void 0,c=function(){return a.data()},d=l(ip([],void 0,"QyYHfb")),e=d.next().value,f=d.next().value,h=function(){return!!YV(XV(c())).optionColor}; d=l(ip(-1,void 0,"e4kFGf"));var m=d.next().value,p=d.next().value,q=function(y){return m()===y},t=function(y){return c().correctAnswerIndex===y},u=function(){return m()!==-1}; d=l(ip("",void 0,"QnwdJd"));var v=d.next().value,w=d.next().value;qw(function(){x("enable_youchat_latex_rendering")&&za("kn8kmd").then(function(){f(e().concat([ypc]))})}); return D("youchat-quiz-view-model",{class:U("learningQuizComponentHost","learningYouChatQuizHost",a.className),style:GC({background:function(){return YV(XV(c())).backgroundColor}})},D("div",{"aria-live":"polite", class:"learningYouChatQuizVisuallyHidden"},v),D("div",{class:"learningQuizComponentQuizContainer"},D("div",{class:"learningQuizComponentQuiz"},D("div",{class:"learningQuizComponentQuizContent"},D(P,{cond:function(){return!!c().aiGeneratedQuizLabel}, then:function(){return D("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},D(bW,{className:"learningYouChatQuizMarkdownText",text:function(){var y;return((y=c().aiGeneratedQuizLabel)==null?void 0:y.content)||""}, plugins:e,isSmallText:!0}))}}),D("div",{class:"learningQuizComponentQuizHeader"},D("div",{class:"learningQuizComponentQuizHeaderTextContainer"},D("div",{class:"learningYouChatQuizText", style:GC({color:function(){return YV(XV(c())).primaryTextColor}})},D(bW,{className:"learningYouChatQuizMarkdownText", text:function(){var y;return((y=c().questionHeaderText)==null?void 0:y.content)||""}, plugins:e}))))),D("div",{role:"group",class:U("learningQuizComponentQuizOptionsList","learningYouChatQuizOptionsListGap")},D(mw,{each:function(){return c().optionsData||[]}},function(y,A){var C={}; return D("button",{class:U("learningQuizComponentQuizOptions","learningYouChatQuizOptionsGap","learningYouChatQuizOptionsBorderSquare",(C.learningQuizComponentQuizHover=function(){return!u()},C.learningQuizComponentQuizOptionWithCustomColor=h,C.learningYouChatQuizOptionSelectedCorrectOutline=function(){return u()&&t(A())},C.learningYouChatQuizOptionSelectedIncorrectOutline=function(){return m()!==c().correctAnswerIndex&&q(A())},C.learningQuizComponentQuizIncorrectShake=function(){return m()!==c().correctAnswerIndex&& q(A())},C)), "on:click":FC(function(){Pz(gz(),{data:y});if(u())return!1;p(A());w(t(A())?c().correctAnswerAriaLabel||"":c().incorrectAnswerAriaLabel||"");return!1}), style:GC({background:"transparent"}),"aria-description":function(){return u()?t(A())?c().correctAnswerAriaLabel:c().incorrectAnswerAriaLabel:""}, "aria-disabled":u,el:dB(function(I){$V(271905,I,b,function(K){b=K})}), "client-ve-type":271905},D("div",{class:"learningQuizComponentQuizOptionContainer"},D(bW,{className:"learningYouChatQuizMarkdownText",text:function(){var I;return((I=y.optionText)==null?void 0:I.content)||""}, plugins:e}),D(P,{cond:function(){var I=A();return u()&&(q(I)||t(I))}, then:function(){var I={};return D(aC,{className:U("learningYouChatQuizOptionIcon",(I.learningQuizComponentQuizPulse=function(){return m()===c().correctAnswerIndex&&t(A())},I)), size:24,icon:function(){return t(A())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"}, active:!0})}})))}),D(P,{cond:u, then:function(){return D("div",{class:"learningYouChatQuizExplanationContainer"},D("div",{class:"learningYouChatQuizExplanationText"},D(bW,{className:"learningYouChatQuizMarkdownText",text:function(){var y;return((y=c().explanationHeaderText)==null?void 0:y.content)||""}, plugins:e})),D(bW,{text:function(){var y;return((y=c().optionsData[m()].explanationText)==null?void 0:y.content)||""}, className:U("learningYouChatQuizExplanationDescriptionText","learningYouChatQuizMarkdownText"),plugins:e}))}})))))},"kl"); dpc.idomCompat=!0;var ZHc=function(){var a;return ra(function(b){if(b.nextAddress==1)return b.yield(za("DlvF1d"),2);a=AD;return b.return(a)})},$Hc=yD(function(){return ZHc()},{debugName:"buttonViewModel"}); Gn(xD,function(a){a.registerLoadFn("buttonViewModel","DlvF1d",ZHc)});var gpc=O(function(a){function b(){v()||q(!p())} function c(N){N.stopPropagation();h()>0&&(m(h()-1),q(!1))} function d(N){N.stopPropagation();h()0)},y=function(){return(v()?t():h()+1)+"/"+t()},A=function(){return D(OC,{data:function(){return e().previousButtonViewModel}},{buttonViewModel:function(N){var L=N.data; N={};return D($Hc,{data:function(){return Object.assign({},L(),{state:h()>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED"})}, onClick:c,className:U("ytFlashcardSetViewModelNavButton",(N.ytFlashcardSetViewModelNavButtonDisabled=w,N))})}})},C=function(){return D(OC,{data:function(){return e().nextButtonViewModel}},{buttonViewModel:function(N){return D($Hc,{data:N.data, onClick:d,className:"ytFlashcardSetViewModelNavButton"})}})},I=function(){return D("div",{class:"ytFlashcardSetViewModelNavButtons"},D(A,null),D("div",{class:"ytFlashcardSetViewModelFlipButtonText"},function(){var N; return(N=e().flipButtonText)!=null?N:""}),D(C,null))},K=O(function(N){var L=N.isBack; N=function(){return L()!==p()}; var R={};return D("div",{class:U("ytFlashcardSetViewModelFace",(R.ytFlashcardSetViewModelFaceBack=L,R)),"aria-hidden":N,inert:N},D("div",{class:"ytFlashcardSetViewModelHeader"},D("div",{class:"ytFlashcardSetViewModelHeaderTitle"},D(aC,{className:"ytFlashcardSetViewModelHeaderIcon",icon:function(){return"YTICON_FILL_GRADUATION_CAP_S18"}}),D("h3",{class:"ytFlashcardSetViewModelTitle"},function(){var W; return(W=e().title)!=null?W:""})),D("div",{class:"ytFlashcardSetViewModelIndex"},y)),D(pw,null,D(jw,{when:function(){return v()}},function(){return D(mq,null,D("div",{class:"ytFlashcardSetViewModelCelebration"},D("h3",{class:"ytFlashcardSetViewModelCompletionText"},function(){var W; return(W=e().completionText)!=null?W:""}),D("p",{class:"ytFlashcardSetViewModelCelebrationText"},function(){var W; return(W=e().celebrationText)!=null?W:""})),D("div",{class:"ytFlashcardSetViewModelNavButtons"},D(A,null)))}),D(jw,{when:function(){return!v()&&!L()}},function(){return D(mq,null,D("div",{class:"ytFlashcardSetViewModelFrontText"},function(){var W,S; return(S=(W=u())==null?void 0:W.frontText)!=null?S:""}),D(I,null))}),D(jw,{when:function(){return!v()&&L()}},function(){return D(mq,null,D("div",{class:"ytFlashcardSetViewModelBackText"},D(gC,{text:function(){var W; return(W=u())==null?void 0:W.backText}})),D(I,null))})))},"ll"); return D("yt-flashcard-set-view-model",{class:"ytFlashcardSetViewModelHost"},D(P,{cond:function(){return t()>0}, then:function(){var N={};return D("div",{class:U("ytFlashcardSetViewModelFlashcard",(N.ytFlashcardSetViewModelFlashcardShowingBack=p,N)),"on:click":FC(b)},D(K,{isBack:!1}),D(K,{isBack:!0}))}}))},"ml"); gpc.idomCompat=!0;var WHc=O(function(a){var b=sw("yt-expandable-metadata-header-view-model"),c=FC(function(d){Pz(gz(),{data:a.data()});if(!ID(HD(d),b.value,["A".toString(),"BUTTON".toString()])){var e;(e=a.expandedCallback)==null||e.call(a,!1)}}); return D("yt-expandable-metadata-header-view-model",{el:b,class:"ytExpandableMetadataHeaderViewModelHost"},D(P,{cond:function(){return a.expanded()}, then:function(){return D("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":c},D("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},D(P,{cond:function(){return a.data().expandedTitleImage}, then:function(d){return D("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},D(eC,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:d}))}}),D("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},D("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},D(gC,{text:function(){return a.data().expandedLabel}, className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),D(gC,{text:function(){return a.data().expandedTitle}, className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),D(gC,{text:function(){return a.data().expandedSubtitle}, className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),D("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},D(OC,{data:function(){return a.data().infoButton}},{buttonViewModel:AD}),D(OC,{data:function(){return a.data().collapseButton}},{buttonViewModel:function(d){return D(AD,{data:d.data, onClick:function(){var e;(e=a.expandedCallback)==null||e.call(a,!1)}})}})))}, else:function(){return D(aIc,Object.assign({},a))}}))},"nl"),bIc=O(function(a){return D("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},D(P,{cond:function(){return a.data().collapsedLabelImage}, then:function(b){return D("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},D(eC,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:b,alt:""}))}}),D(gC,{text:function(){return a.data().collapsedLabel}, className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"ol"),aIc=O(function(a){var b=FC(function(){Pz(gz(),{data:a.data()}); var c;(c=a.expandedCallback)==null||c.call(a,!0)}); return D("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader","on:click":b},D("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},D(P,{cond:function(){return a.data().collapsedImage}, then:function(c){return D("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},D(eC,{height:20,preserveHeight:!0,preserveWidth:!0,data:c,alt:""}))}}),D(P,{cond:function(){return a.data().showLeadingCollapsedLabel}, then:function(){return D(bIc,Object.assign({},a))}}),D("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},D(gC,{text:function(){return a.data().collapsedTitle}}))),D("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},D(P,{cond:function(){return!a.data().showLeadingCollapsedLabel}, then:function(){return D(bIc,Object.assign({},a))}}),D(OC,{data:function(){return a.data().infoButton}},{buttonViewModel:AD}),D(OC,{data:function(){return a.data().expandButton}},{buttonViewModel:function(c){var d=c.data; return D(AD,{data:d,onClick:function(){Pz(gz(),{data:d});var e;(e=a.expandedCallback)==null||e.call(a,!0)}})}})))},"pl")}).call(this);